1import{a as j}from"./chunk-VGJGP2YZ.js";import{f as A,g as H}from"./chunk-KKXLVD32.js";import"./chunk-MS4AQ6UA.js";import"./chunk-FWHW645B.js";import"./chunk-VEREAF47.js";import"./chunk-3RK6DDJD.js";import"./chunk-LKMMAAB3.js";import"./chunk-APYRT7RB.js";import"./chunk-HKMPNMN4.js";import{F as T,da as z}from"./chunk-ZPP3AZII.js";import"./chunk-PFZE4HOT.js";import"./chunk-7WBI3YQQ.js";import"./chunk-HRMEW5GN.js";import"./chunk-5CJCHN2S.js";import"./chunk-FNI7RJRZ.js";import"./chunk-QMIXMJPI.js";import"./chunk-N27IYGCO.js";import"./chunk-6EQVF4ZV.js";import"./chunk-IQUHMA37.js";import"./chunk-3CNZLL2W.js";import"./chunk-H4YBLBJJ.js";import"./chunk-2OVOW2RQ.js";import"./chunk-7WYL3NSW.js";import"./chunk-5JZO6BWG.js";import"./chunk-YSPZQPOC.js";import"./chunk-XT2LPE6R.js";import"./chunk-IQG3TZRO.js";import"./chunk-FGG2KBZO.js";import"./chunk-UQ4USSF2.js";import{c as N,d as D}from"./chunk-YAJ3K7JW.js";import"./chunk-24UDROAB.js";import"./chunk-3LLHTMOC.js";import"./chunk-LL35JMVY.js";import{c as M}from"./chunk-32UQG7L5.js";import"./chunk-TJ3TBAF4.js";import"./chunk-6ZS3PTEB.js";import"./chunk-CS4JSWOF.js";import{j as $,k as U}from"./chunk-VMAYYK2O.js";import{Aa as _,Ba as x,Ca as S,Cb as B,Da as O,Jb as L,Kc as F,Lc as d,Mc as k,Nc as f,Oc as W,Pb as b,Wc as V,Xc as E,ec as s,fc as o,gc as r,hc as w,jd as p,kd as c,oc as C,qb as n,t as I,uc as h,wc as u}from"./chunk-OF5PZF73.js";import{p as P}from"./chunk-JMI2PEGB.js";function G(a,g){if(a&1&&(o(0,"span",26),d(1),r()),a&2){let i=g.$implicit;n(),f(" ",i.name," ")}}function J(a,g){if(a&1&&(o(0,"div",21)(1,"div",22)(2,"span",23),d(3,"Organizations with patchings:"),r(),o(4,"div",24),b(5,G,2,1,"span",25),r()()()),a&2){let i=u();n(5),s("ngForOf",i.orgsWithPatches)}}function R(a,g){if(a&1&&(o(0,"option",27),d(1),p(2,"translate"),p(3,"translate"),r()),a&2){let i=g.$implicit;s("value",i.name),n(),W(" ",c(2,3,"app."+i.name)," (",c(3,5,"app.calculator."+i.modelGroup),") ")}}function Y(a,g){if(a&1){let i=C();o(0,"button",28),h("click",function(){_(i);let t=u();return x(t.savePatches())}),S(),o(1,"svg",14),w(2,"path",29),r(),d(3),p(4,"translate"),r()}if(a&2){let i=u();s("disabled",i.isLoading),n(3),f(" ",c(4,2,"app.save")," ")}}function q(a,g){if(a&1){let i=C();o(0,"button",30),h("click",function(){_(i);let t=u();return x(t.resetChanges())}),S(),o(1,"svg",14),w(2,"path",31),r(),d(3),p(4,"translate"),r()}if(a&2){let i=u();s("disabled",i.isLoading),n(3),f(" ",c(4,2,"app.reset")," ")}}function X(a,g){if(a&1&&(o(0,"option",48),d(1),p(2,"translate"),r()),a&2){let i=g.$implicit,e=u().$implicit;s("value",i.name)("selected",e.name===i.name),n(),f(" ",c(2,3,"app."+i.name)," ")}}function K(a,g){if(a&1){let i=C();o(0,"input",56),p(1,"translate"),h("input",function(t){_(i);let l=u().$implicit,m=u(2);return x(m.nrValueChange(t.target.value,l))}),r()}if(a&2){let i=u().$implicit;s("placeholder",V(c(1,3,"app.enterValue")))("value",i.value)}}function Q(a,g){if(a&1){let i=C();o(0,"input",57),p(1,"translate"),h("input",function(t){_(i);let l=u().$implicit,m=u(2);return x(m.strValueChange(t.target.value,l))}),r()}if(a&2){let i=u().$implicit;s("placeholder",V(c(1,3,"app.enterValue")))("value",i.value)}}function Z(a,g){if(a&1){let i=C();o(0,"div",58),h("click",function(){_(i);let t=u().$implicit;return x(t.value=!t.value)}),w(1,"input",59)(2,"div",60),r()}if(a&2){let i=u().$implicit;F("relative mt-2 inline-flex cursor-pointer items-center"),n(),s("checked",i.value)}}function ee(a,g){if(a&1){let i=C();o(0,"div",68)(1,"span",69),d(2),p(3,"translate"),r(),o(4,"input",70),h("input",function(t){let l=_(i).index,m=u(3).$implicit,v=u(2);return x(v.presetValueChange(t.target.value,m,l))}),r()()}if(a&2){let i=g.$implicit;n(),s("title",i.key),n(),k(c(3,3,i.key)),n(2),s("value",i.value)}}function te(a,g){if(a&1&&(o(0,"div",66),b(1,ee,5,5,"div",67),r()),a&2){let i=u(2).$implicit;n(),s("ngForOf",i.baseValues)}}function ie(a,g){if(a&1){let i=C();o(0,"div")(1,"label",61),d(2),p(3,"translate"),r(),o(4,"div",62)(5,"input",63),h("change",function(t){_(i);let l=u().$implicit,m=u(2);return x(m.toggleBaseValues(t.target.checked,l))}),r(),o(6,"label",64),d(7),p(8,"translate"),r()(),b(9,te,2,1,"div",65),r()}if(a&2){let i=u().$implicit;n(),s("for",E("enableBaseValues-",i.name)),n(),f(" ",c(3,10,"app.presets")," "),n(3),s("id",E("enableBaseValues-",i.name))("checked",!!i.baseValues),n(),s("for",E("enableBaseValues-",i.name)),n(),k(c(8,12,"app.enablePresets")),n(2),s("ngIf",i.baseValues)}}function ne(a,g){if(a&1){let i=C();o(0,"div",34)(1,"div",35)(2,"h5",36),d(3),p(4,"translate"),r(),o(5,"button",37),p(6,"translate"),h("click",function(){let t=_(i).$implicit,l=u(2);return x(l.deletePatch(t))}),S(),o(7,"svg",38),w(8,"polyline",39)(9,"path",40)(10,"line",41)(11,"line",42),r()()(),O(),o(12,"div")(13,"div")(14,"label",43),d(15),p(16,"translate"),r(),o(17,"select",44),h("change",function(t){let l=_(i).$implicit,m=u(2);return x(m.fieldChange(t.target.value,l))}
1),b(18,X,3,5,"option",45),r()(),o(19,"div")(20,"label",46),d(21),p(22,"translate"),r(),o(23,"select",47),h("change",function(t){let l=_(i).$implicit,m=u(2);return x(m.visibilityChange(t.target.value,l))}),o(24,"option",48),d(25),p(26,"translate"),r(),o(27,"option",48),d(28),p(29,"translate"),r(),o(30,"option",48),d(31),p(32,"translate"),r()()(),o(33,"div")(34,"label",49),d(35),p(36,"translate"),r(),o(37,"select",50),h("change",function(t){let l=_(i).$implicit,m=u(2);return x(m.isDisabledChange(t.target.value,l))}),o(38,"option",48),d(39),p(40,"translate"),r(),o(41,"option",48),d(42),p(43,"translate"),r(),o(44,"option",48),d(45),p(46,"translate"),r()()(),o(47,"div")(48,"label",51),d(49),p(50,"translate"),r(),b(51,K,2,5,"input",52)(52,Q,2,5,"input",53)(53,Z,3,3,"div",54),r(),b(54,ie,10,14,"div",55),r()()}if(a&2){let i=g.$implicit,e=u(2);n(3),f(" Patch for ",c(4,32,i.name?"app."+i.name:"app.notSet")," "),n(2),s("title",V(c(6,34,"app.delete"))),n(7),F(i.name==="interestRatePerYear"?"grid grid-cols-1 gap-4 md:grid-cols-5":"grid grid-cols-1 gap-4 md:grid-cols-4"),n(3),f(" ",c(16,36,"app.chooseField")," "),n(3),s("ngForOf",e.possibleFields),n(3),f(" ",c(22,38,"app.visibility")," "),n(3),s("value",void 0)("selected",i.isVisible==null),n(),f(" ",c(26,40,"app.notSet")," "),n(2),s("value",!0)("selected",i.isVisible==!0),n(),f(" ",c(29,42,"app.visible")," "),n(2),s("value",!1)("selected",i.isVisible==!1),n(),f(" ",c(32,44,"app.notvisible")," "),n(4),f(" ",c(36,46,"app.readOnly")," "),n(3),s("value",void 0)("selected",i.isDisabled==null),n(),f(" ",c(40,48,"app.notSet")," "),n(2),s("value",!0)("selected",i.isDisabled==!0),n(),f(" ",c(43,50,"app.readOnly")," "),n(2),s("value",!1)("selected",i.isDisabled==!1),n(),f(" ",c(46,52,"app.editable")," "),n(4),f(" ",c(50,54,"app.value")," "),n(2),s("ngIf",e.getCurrentType(i)==="number"),n(),s("ngIf",e.getCurrentType(i)==="text"),n(),s("ngIf",e.getCurrentType(i)==="boolean"),n(),s("ngIf",i.name==="interestRatePerYear")}}function ae(a,g){if(a&1&&(o(0,"div",32),b(1,ne,55,56,"div",33),r()),a&2){let i=u();n(),s("ngForOf",i.patches)}}function oe(a,g){if(a&1){let i=C();o(0,"div",71),S(),o(1,"svg",72)(2,"g",73),w(3,"rect",74)(4,"path",75)(5,"line",76)(6,"line",77),r()(),O(),o(7,"h3",78),d(8),p(9,"translate"),r(),o(10,"button",79),h("click",function(){_(i);let t=u();return x(t.addPatch())}),S(),o(11,"svg",14),w(12,"line",15)(13,"line",16),r(),d(14),p(15,"translate"),r()()}a&2&&(n(8),k(c(9,2,"app.noPatches")),n(6),f(" ",c(15,4,"app.addPatch")," "))}function re(a,g){a&1&&(o(0,"div",71)(1,"p",80),d(2,"You have to choose a configuration to set the patch"),r()())}var xe=(()=>{let g=class g{constructor(e,t){this.orgService=e,this.patchingService=t,this.organizationId=1,this.isLoading=!1,this.allOrganizations=[],this.allConfigs=z,this.existingPatches=[],this.lastLoadedPatches=[],this.hasUnsavedChanges=!1,this.config=z[0],this.possibleFields=[],this.currentType="number",this.orgsWithPatches=[]}ngOnInit(){return P(this,null,function*(){this.isLoading=!0;try{this.allOrganizations=yield I(this.orgService.getOrganizations$Json({pageSize:1e3}))}catch(e){console.error("Error fetching organizations:",e)}finally{this.isLoading=!1}this.chooseOrganization(1),this.chooseConfiguration(this.allConfigs[0].name)})}chooseOrganization(e){return P(this,null,function*(){this.organizationId=e,this.loadPatches()})}chooseConfiguration(e){return P(this,null,function*(){let t=this.allConfigs.find(l=>l.name===e);this.config=t,this.possibleFields=this.getAllFieldsOfConfig(t),this.loadPatches()})}loadPatches(){return P(this,null,function*(){if(this.isLoading=!0,!this.organizationId||!this.config?.name){console.warn("Organization ID or configuration name is not set."),this.isLoading=!1;return}try{let e=yield I(this.patchingService.getPatches(this.organizationId)),t=[];for(let y of this.allOrganizations)t.push(I(this.patchingService.getPatchInfo(y.id)));let l=yield Promise.all(t);console.log("All patches:",l);let m=l.filter(y=>y.length>0).map(y=>y[0].organizationId);this.orgsWithPatches=this.allOrganizations.filter(y=>m.includes(y.id)),console.log("Organizations with patches:",this.orgsWithPatches);let v=e.filter(y=>y.name.startsWith("patching_configuration."+this.config.name));v&&v.length>0?this.patches=JSON.parse(v[0]?.value)||[]:this.patches=[],this.lastLoadedPatches=JSON.parse(JSON.stringify(this.patches))}catch(e){this.patches=[],this.lastLoadedPatches=[],this.orgsWithPatches=[],console.error("Error fetching patches:",e)}finally{this.isLoading=!1}})}fieldChange(e,t){t.name=void 0,t.name=e,t.name==="interestRatePerYear"&&!t.baseValues&&(t.baseValues=[{key:"app.calculator.investor.creditWorthinessUser",value:0},{key:"app.calculator.investor.creditWorthinessLow",value:.06875},{key:"app.calculator.investor.creditWorthinessMedium",value:.06125},{key:"app.calculator.investor.creditWorthinessHigh",value:.05375}]),this.hasUnsavedChanges=!0}getCurrentType(e){if(!e||!e.name)return"number";let t=this.possibleFields.find(l=>
1l.name===e.name);return t?t.type:"number"}addPatch(){this.patches||(this.patches=[]);let e={name:this.possibleFields[0].name||""};e.name==="interestRatePerYear"&&(e.baseValues=[{key:"app.calculator.investor.creditWorthinessUser",value:0},{key:"app.calculator.investor.creditWorthinessLow",value:.06875},{key:"app.calculator.investor.creditWorthinessMedium",value:.06125},{key:"app.calculator.investor.creditWorthinessHigh",value:.05375}]),this.patches.push(e),this.hasUnsavedChanges=!0}strValueChange(e,t){e===void 0||e===""?delete t.value:t.value=e,this.hasUnsavedChanges=!0}nrValueChange(e,t){e===void 0||e===""?delete t.value:t.value=+e,this.hasUnsavedChanges=!0}visibilityChange(e,t){e===void 0||e==="undefined"?t.isVisible=void 0:t.isVisible=e==="true",this.hasUnsavedChanges=!0}isDisabledChange(e,t){e===void 0||e==="undefined"?t.isDisabled=void 0:t.isDisabled=e==="true",this.hasUnsavedChanges=!0}presetValueChange(e,t,l){!t.baseValues||!t.baseValues[l]||(t.baseValues[l].value=+e,this.hasUnsavedChanges=!0)}toggleBaseValues(e,t){e?t.baseValues=[{key:"app.calculator.investor.creditWorthinessUser",value:0},{key:"app.calculator.investor.creditWorthinessLow",value:.06875},{key:"app.calculator.investor.creditWorthinessMedium",value:.06125},{key:"app.calculator.investor.creditWorthinessHigh",value:.05375}]:t.baseValues=void 0,this.hasUnsavedChanges=!0}savePatches(){return P(this,null,function*(){if(!(!this.organizationId||!this.config?.name)){this.isLoading=!0;try{yield I(this.patchingService.updatePatches(this.organizationId,this.config.name,this.patches)),this.hasUnsavedChanges=!1,yield this.loadPatches()}catch(e){console.error("Error saving patches:",e)}finally{this.isLoading=!1}}})}getAllFieldsOfConfig(e){if(!e)return[];let t=e.defineConfig(),l=[];for(let v of t)l.push(...this.getAllFieldsForStep(v));let m=new Map;for(let v of l)m.set(v.name,v);return Array.from(m.values())}getAllFieldsForStep(e){let t=[];if(e.children)for(let l of e.children)t.push(...this.getAllFieldsForStep(l));else(e.type==="nvar"||e.type==="var")&&e.name&&t.push({name:e.name,type:this.getComponentTypeName(e.componentType)});return t}getComponentTypeName(e){let t;switch(e){case T.INPUT:case T.TEXT_INPUT_WITHOUT_TOOLTIP:t="string";break;case T.CHOOSE:t="boolean";break;default:t="number";break}return t}deletePatch(e){this.patches=this.patches.filter(t=>t.name!==e.name),this.hasUnsavedChanges=!0}resetChanges(){this.patches=JSON.parse(JSON.stringify(this.lastLoadedPatches)),this.hasUnsavedChanges=!1}};g.\u0275fac=function(t){return new(t||g)(B(M),B(j))},g.\u0275cmp=L({type:g,selectors:[["app-patching-configuration-component"]],decls:33,vars:25,consts:[[1,"mb-8"],[1,"text-3xl","font-bold","text-gray-900"],[1,"mt-2","text-gray-600"],["class","mb-6",4,"ngIf"],[1,"rounded-lg","border","border-gray-200","bg-white","p-6","shadow-md"],[1,"flex","flex-col","md:flex-row","md:items-end","md:space-x-6"],[1,"mb-4","flex-1","md:mb-0"],["for","organizationSelect",1,"mb-2","block","text-sm","font-medium","text-gray-900"],["id","organizationSelect",3,"orgChooseSelectionChanged","organizationList","clearable","preselectedOption"],["for","configurationSelect",1,"mb-2","block","text-sm","font-medium","text-gray-900"],["id","configurationSelect",1,"w-full","rounded-lg","border","border-gray-300","p-2.5","focus:border-blue-500","focus:ring-blue-500",3,"change"],[3,"value",4,"ngFor","ngForOf"],[1,"mt-6","flex","flex-row","justify-end","gap-4"],[1,"inline-flex","h-11","min-w-[120px]","items-center","rounded-lg","bg-blue-600","px-4","py-2","text-sm","font-medium","text-white","shadow","hover:bg-blue-700","focus:outline-none","focus:ring-2","focus:ring-blue-500","focus:ring-offset-2",3,"click"],["fill","none","stroke","currentColor","stroke-width","2","viewBox","0 0 24 24","stroke-linecap","round","stroke-linejoin","round",1,"mr-2","h-5","w-5"],["x1","12","y1","5","x2","12","y2","19"],["x1","5","y1","12","x2","19","y2","12"],["class","inline-flex h-11 min-w-[120px] items-center rounded-lg bg-green-600 px-4 py-2 text-sm font-medium text-white shadow hover:bg-green-700 focus:outline-none focus:ring-2 focus:ring-green-500 focus:ring-offset-2 disabled:opacity-50",3,"disabled","click",4,"ngIf"],["class","inline-flex h-11 min-w-[120px] items-center rounded-lg bg-gray-200 px-4 py-2 text-sm font-medium text-gray-800 shadow hover:bg-gray-300 focus:outline-none focus:ring-2 focus:ring-gray-400 focus:ring-offset-2 disabled:opacity-50",3,"disabled","click",4,"ngIf"],["class","mt-6 space-y-6",4,"ngIf"],["class","flex flex-col items-center justify-center py-12",4,"ngIf"],[1,"mb-6"],[1,"flex","flex-col","rounded-lg","border","border-blue-200","bg-blue-50","p-4","md:flex-row","md:items-center","md:space-x-4"],[1,"mb-2","mr-2","font-semibold","text-blue-700","md:mb-0"],[1,"flex","flex-wrap","gap-2"],["class","inline-block rounded-full border border-blue-300 bg-blue-100 px-3 py-1 text-xs font-medium text-blue-800",4,"ngFor","ngForOf"],[1,"inline-block","rounded-full","border","border-blue-300","bg-blue-100","px-3","py-1","text-xs","font-medium","text-blue-800"],[3,"value"],[1,"inline-flex","h-11","min-w-[120px]","items-center","rounded-lg","bg-green-600","px-4","py-2","text-sm","font-medium","text-white","shadow","hover:bg-green-700","focus:outline-none","focus:ring-2","focus:ring-green-500","focus:ring-offset-2","disabled:opacity-50",3,"click","disabled"],["d","M5 13l4 4L19 7"],[1,"inline-flex","h-11","min-w-[120px]","items-center","rounded-lg","bg-gray-200","px-4","py-2","text-sm","font-medium","text-gray-800","shadow","hover:bg-gray-300","focus:outline-none","focus:ring-2","focus:ring-gray-400","focus:ring-offset-2","disabled:opacity-50",3,"click","disabled"],["d","M4 4v5h.582M20 20v-5h-.581M5 9A7.003 7.003 0 0 1 12 5c1.657 0 3.156.576 4.354 1.536M19 15a7.003 7.003 0 0 1-7 4c-1.657 0-3.156-.576-4.354-1.536"],[1,"mt-6","space-y-6"],["class","rounded-lg border border-gray-200 bg-white p-6 shadow",4,"ngFor","ngForOf"],[1,"rounded-lg","border","border-gray-200","bg-white","p-6","shadow"],[1,"mb-4","flex","items-center","justify-between"],[1,"text-lg","font-semibold","text-gray-800"],[1,"inline-flex","items-center","rounded","bg-red-600","px-2","py-1","text-xs","font-medium","text-white","hover:bg-red-700","focus:outline-none","focus:ring-2","focus:ring-red-500","focus:ring-offset-2",3,"click","title"],["fill","none","stroke","currentColor","stroke-width","2","viewBox","0 0 24 24","stroke-linecap","round","stroke-linejoin","round",1,"h-4","w-4"],["points","3 6 5 6 21 6"],["d","M19 6l-2 14H7L5 6m5 0V4a2 2 0 0 1 2-2h0a2 2 0 0 1 2 2v2"],["x1","10","y1","11","x2","10","y2","17"],["x1","14","y1","11","x2","14","y2","17"],["for","fieldSelect",1,"mb-2","block","text-sm","font-medium","text-gray-900"],["id","fieldSelect",1,"w-full","rounded-lg","border","border-gray-300","p-2.5","focus:border-blue-500","focus:ring-blue-500",3,"change"],[3,"value","selected",4,"ngFor","ngForOf"],["for","visibilitySelect",1,"mb-2","block","text-sm","font-medium","text-gray-900"],["id","visibilitySelect",1,"w-full","rounded-lg","border","border-gray-300","p-2.5","focus:border-blue-500","focus:ring-blue-500",3,"change"],[3,"value","selected"],["for","readOnlySelect",1,"mb-2","block","text-sm","font-medium","text-gray-900"],["id","readOnlySelect",1,"w-full","rounded-lg","border","border-gray-300","p-2.5","focus:border-blue-500","focus:ring-blue-500",3,"change"],["for","valueInput",1,"mb-2","block","text-sm","font-medium","text-gray-900"],["id","valueInput","type","number","class","w-full rounded-lg border border-gray-300 p-2 focus:border-blue-500 focus:ring-blue-500",3,"value","placeholder","input",4,"ngIf"],["id","valueInput","type","text","class","w-full rounded-lg border border-gray-300 p-2 focus:border-blue-500 focus:ring-blue-500",3,"value","placeholder","input",4,"ngIf"],[3,"class","click",4,"ngIf"],[4,"ngIf"],["id","valueInput","type","number",1,"w-full","rounded-lg","border","border-gray-300","p-2","focus:border-blue-500","focus:ring-blue-500",3,"input","value","placeholder"],["id","valueInput","type","text",1,"w-full","rounded-lg","border","border-gray-300","p-2","focus:border-blue-500","focus:ring-blue-500",3,"input","value","placeholder"],[3,"click"],["type","checkbox",1,"peer","sr-only",3,"checked"],[1,"peer","h-6","w-11","rounded-full","bg-gray-200","after:absolute","after:left-[2px]","after:top-[2px]","after:h-5","after:w-5","after:rounded-full","after:border","after:border-gray-300","after:bg-white","after:transition-all","after:content-['']","peer-checked:bg-green-600","peer-checked:after:translate-x-full","peer-checked:after:border-white","peer-focus:outline-none","dar
1k:border-gray-600","dark:bg-gray-700"],[1,"mb-2","block","text-sm","font-medium","text-gray-900",3,"for"],[1,"mb-2","flex","items-center"],["type","checkbox",1,"mr-2",3,"change","id","checked"],[1,"text-sm","text-gray-800",3,"for"],["class","space-y-2",4,"ngIf"],[1,"space-y-2"],["class","flex items-center gap-2",4,"ngFor","ngForOf"],[1,"flex","items-center","gap-2"],[1,"w-56","truncate","text-xs","text-gray-700",3,"title"],["type","number",1,"w-32","rounded-lg","border","border-gray-300","p-2","focus:border-blue-500","focus:ring-blue-500",3,"input","value"],[1,"flex","flex-col","items-center","justify-center","py-12"],["viewBox","0 0 14 14",1,"mx-auto","h-28","w-28","text-gray-400"],["fill","none","stroke","currentColor","stroke-linecap","round","stroke-linejoin","round"],["width","13","height","9","x",".5","y","2","rx",".5"],["d","m6 11l-1 2.5M8 11l1 2.5m-5 0h6"],["x1","4","y1","4","x2","10","y2","9.5","stroke","currentColor"],["x1","4","y1","9.5","x2","10","y2","4","stroke","currentColor"],[1,"mt-4","text-sm","font-semibold","text-gray-900"],[1,"mt-6","inline-flex","items-center","rounded-lg","bg-blue-600","px-4","py-2","text-sm","font-medium","text-white","shadow","hover:bg-blue-700","focus:outline-none","focus:ring-2","focus:ring-blue-500","focus:ring-offset-2",3,"click"],[1,"text-gray-500"]],template:function(t,l){t&1&&(o(0,"div",0)(1,"h1",1),d(2),p(3,"translate"),r(),o(4,"p",2),d(5),p(6,"translate"),r()(),b(7,J,6,1,"div",3),o(8,"div",4)(9,"div",5)(10,"div",6)(11,"label",7),d(12),p(13,"translate"),r(),o(14,"app-org-choose-select",8),h("orgChooseSelectionChanged",function(v){return l.chooseOrganization(v)}),r()(),o(15,"div",6)(16,"label",9),d(17),p(18,"translate"),r(),o(19,"select",10),h("change",function(v){return l.chooseConfiguration(v.target.value)}),b(20,R,4,7,"option",11),r()()(),o(21,"div",12)(22,"button",13),h("click",function(){return l.addPatch()}),S(),o(23,"svg",14),w(24,"line",15)(25,"line",16),r(),d(26),p(27,"translate"),r(),b(28,Y,5,4,"button",17)(29,q,5,4,"button",18),r()(),b(30,ae,2,1,"div",19)(31,oe,16,6,"div",20)(32,re,3,0,"div",20)),t&2&&(n(2),k(c(3,15,"app.patchingConfiguration")),n(3),k(c(6,17,"app.patchingConfigurationDescription")),n(2),s("ngIf",l.orgsWithPatches.length>0),n(5),f(" ",c(13,19,"app.chooseOrg")," "),n(2),s("organizationList",l.allOrganizations)("clearable",!1)("preselectedOption",l.organizationId),n(3),f(" ",c(18,21,"app.chooseConfiguratrion")," "),n(3),s("ngForOf",l.allConfigs),n(6),f(" ",c(27,23,"app.addPatch")," "),n(2),s("ngIf",l.hasUnsavedChanges),n(),s("ngIf",l.hasUnsavedChanges),n(),s("ngIf",l.patches&&l.patches.length>0),n(),s("ngIf",l.patches&&l.patches.length==0),n(),s("ngIf",!l.patches))},dependencies:[H,A,$,U,D,N],encapsulation:2});let a=g;return a})();export{xe as PatchingConfigurationComponentComponent};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.