import{a as O}from"./chunk-72HORKXP.js";import{a as L}from"./chunk-F6AHCJAP.js";import{a as V}from"./chunk-WJLIXXN3.js";import"./chunk-3PTVMOA6.js";import{a as T,b as W}from"./chunk-LSMXZOUY.js";import"./chunk-J63OB27M.js";import{b as k}from"./chunk-KBZZ7PX4.js";import"./chunk-ETGLCIRD.js";import"./chunk-JLQUTBFH.js";import"./chunk-JEKS3WOF.js";import"./chunk-BACG4SJJ.js";import"./chunk-CQTLBAQD.js";import"./chunk-GAOYV53E.js";import"./chunk-W6JPMHYE.js";import{b as F,g as P,k as w}from"./chunk-VYA2NFJ5.js";import"./chunk-SH55PTEY.js";import"./chunk-VPS35GPI.js";import"./chunk-UGBMCXS6.js";import"./chunk-5TTXT2K2.js";import"./chunk-YNQPX5G6.js";import"./chunk-4P6SOZDY.js";import"./chunk-XN7T54IM.js";import"./chunk-RULWGB4E.js";import"./chunk-2HIDUY57.js";import"./chunk-HY3IUHOC.js";import"./chunk-4AEX2WLA.js";import"./chunk-2MELUOYA.js";import"./chunk-WOPE6PPO.js";import{E as D,h as _,o as b}from"./chunk-MDIMQ3H3.js";import"./chunk-MWDJTJ3O.js";import"./chunk-3DEA4WWC.js";import"./chunk-TKVDP62Z.js";import{Eb as v,Gb as h,Hb as S,Ib as m,Jb as r,Kb as s,Sd as M,Tc as u,Za as o,ib as y,mc as d,nc as C,ra as g,rc as p,sc as f,tc as c}from"./chunk-GJDGQISV.js";import"./chunk-WFMAM73Y.js";import"./chunk-SNAKHGZS.js";function E(l,a){if(l&1&&(r(0,"mat-option",6),d(1),s()),l&2){let i=a.$implicit;m("value",i),o(),C(i)}}function N(l,a){if(l&1&&(r(0,"mat-option",6),d(1),s()),l&2){let i=a.$implicit;m("value",i),o(),C(i)}}var x=class l{activatedRoute=g(M);settings=g(V);formData=u(()=>this.settings.formData());options=u(()=>this.settings.options());configDefault=u(()=>this.settings.configDefault());constructor(){this.settings.initFormData(this.activatedRoute)}onToggleProduct(a,i){let e=this.formData().Form.Product||[];if(i)e.includes(a)||e.push(a);else{let n=e.indexOf(a);n>-1&&e.splice(n,1)}this.formData().Form.Product=e}onToggleContact(a,i){let e=this.formData().Form.Customer||[];if(i)e.includes(a)||e.push(a);else{let n=e.indexOf(a);n>-1&&e.splice(n,1)}this.formData().Form.Customer=e}static \u0275fac=function(i){return new(i||l)};static \u0275cmp=y({type:l,selectors:[["POS-sensitive-field"]],decls:24,vars:10,consts:[["id","objectsSensitiveField","cardTitle","Objects","description","When you mark a property as sensitive, the property value cannot be viewed by users without the 'sensitive field' role."],[1,"row"],[1,"col-6"],["appearance","outline",1,"w-100"],[1,"fs-4"],["placeholder","Product","multiple","",3,"ngModelChange","ngModel"],[3,"value"],["id","maskingSettingsSensitiveField","cardTitle","Masking","description","Configure how many characters at the beginning and end of sensitive fields remain visible."],["label","Max Visible Prefix","tooltip","Sets the number of characters at the beginning of the sensitive field that remain visible",3,"valueChange","type","step","minValue","value"],["label","Max Visible Suffix","tooltip","Sets the number of characters at the end of the sensitive field that remain visible",3,"valueChange","type","step","minValue","value"]],template:function(i,e){i&1&&(r(0,"POS-card",0)(1,"div",1)(2,"div",2)(3,"mat-form-field",3)(4,"mat-label")(5,"span",4),d(6,"Product"),s()(),r(7,"mat-select",5),c("ngModelChange",function(t){return f(e.formData().Product,t)||(e.formData().Product=t),t}),h(8,E,2,2,"mat-option",6,v),s()()(),r(10,"div",2)(11,"mat-form-field",3)(12,"mat-label")(13,"span",4),d(14,"Contact"),s()(),r(15,"mat-select",5),c("ngModelChange",function(t){return f(e.formData().Customer,t)||(e.formData().Customer=t),t}),h(16,N,2,2,"mat-option",6,v),s()()()()(),r(18,"POS-card",7)(19,"div",1)(20,"div",2)(21,"POS-input-field",8),c("valueChange",function(t){return f(e.formData().Masking.StringPrefixMaskVisibleCharacterLength,t)||(e.formData().Masking.StringPrefixMaskVisibleCharacterLength=t),t}),s()(),r(22,"div",2)(23,"POS-input-field",9),c("valueChange",function(t){return f(e.formData().Masking.StringSuffixMaskVisibleCharacterLength,t)||(e.formData().Masking.StringSuffixMaskVisibleCharacterLength=t),t}),s()()()()),i&2&&(o(7),p("ngModel",e.formData().Product),o(),S(e.options().Product),o(7),p("ngModel",e.formData().Customer),o(),S(e.options().Customer),o(5),m("type","number")("step",1)("minValue",0),p("value",e.formData().Masking.StringPrefixMaskVisibleCharacterLength),o(2),m("type","number")("step",1)("minValue",0),p("value",e.formData().Masking.StringSuffixMaskVisibleCharacterLength))},dependencies:[L,O,k,P,F,W,T,w,D,_,b],encapsulation:2})};export{x as SensitiveFieldComponent};
