1import"./chunk-Z45IUN4I.js";import{a as te}from"./chunk-WUERK2P4.js";import{a as $,b as ee}from"./chunk-W2JJPWFG.js";import{z as Q}from"./chunk-DLCCILWU.js";import{b as J}from"./chunk-ODRFVXQU.js";import{c as j,g as G,h as U,i as H,j as q,k as z,v as X}from"./chunk-KK6AEUGC.js";import{a as Y,i as Z}from"./chunk-7OPLNMQB.js";import{d as E,e as K}from"./chunk-P32DKPYU.js";import{$ as V,Bd as R,Cb as h,Fa as o,Fd as k,Na as w,Pa as b,Qa as I,Tb as a,Ub as _,Vb as F,X as P,Y as y,Yb as p,Zb as m,_b as u,ea as d,ed as O,fa as g,g as W,la as B,lb as L,mb as i,nb as n,ob as D,pc as f,qc as C,xb as x,yd as N}from"./chunk-WBASJ7TB.js";import"./chunk-JSSFPNKJ.js";var ie=(()=>{class r{constructor(){this.saveSettingsEvent=new B}ngOnInit(){window.scrollTo({top:0,left:0})}onSubmitSettings(){this.saveSettingsEvent.emit()}static{this.\u0275fac=function(s){return new(s||r)}}static{this.\u0275cmp=b({type:r,selectors:[["app-settings-edit"]],inputs:{selectedSettings:"selectedSettings"},outputs:{saveSettingsEvent:"saveSettings"},standalone:!1,decls:60,vars:36,consts:[["settingsForm","ngForm"],[3,"ngSubmit"],[1,"form-group","mb-4"],["for","taxId"],["type","text","id","taxId","name","taxId",3,"ngModelChange","ngModel"],["for","businessRegisterCode"],["type","text","id","businessRegisterCode","name","businessRegisterCode",3,"ngModelChange","ngModel"],["for","socialCapital"],["type","text","id","socialCapital","name","socialCapital",3,"ngModelChange","ngModel"],["for","gtagCode"],["type","text","id","gtagCode","name","gtagCode",3,"ngModelChange","ngModel"],["for","urlFacebook"],["type","text","id","urlFacebook","name","urlFacebook",3,"ngModelChange","ngModel"],["for","urlTwitter"],["type","text","id","urlTwitter","name","urlTwitter",3,"ngModelChange","ngModel"],["for","urlInstagram"],["type","text","id","urlInstagram","name","urlInstagram",3,"ngModelChange","ngModel"],["for","urlTiktok"],["type","text","id","urlTiktok","name","urlTiktok",3,"ngModelChange","ngModel"],["for","urlLinkedin"],["type","text","id","urlLinkedin","name","urlLinkedin",3,"ngModelChange","ngModel"],["for","urlAppAndroid"],["type","text","id","urlAppAndroid","name","urlAppAndroid",3,"ngModelChange","ngModel"],["for","urlAppIos"],["type","text","id","urlAppIos","name","urlAppIos",3,"ngModelChange","ngModel"],["for","emailInfo"],["type","text","id","emailInfo","name","emailInfo",3,"ngModelChange","ngModel"],["type","submit",1,"btn","me-2"]],template:function(s,t){if(s&1){let c=x();i(0,"form",1,0),h("ngSubmit",function(){return t.onSubmitSettings()}),i(2,"div",2)(3,"label",3),a(4),f(5,"translate"),n(),i(6,"input",4),u("ngModelChange",function(e){return d(c),m(t.selectedSettings.taxId,e)||(t.selectedSettings.taxId=e),g(e)}),n()(),i(7,"div",2)(8,"label",5),a(9),f(10,"translate"),n(),i(11,"input",6),u("ngModelChange",function(e){return d(c),m(t.selectedSettings.businessRegisterCode,e)||(t.selectedSettings.businessRegisterCode=e),g(e)}),n()(),i(12,"div",2)(13,"label",7),a(14),f(15,"translate"),n(),i(16,"input",8),u("ngModelChange",function(e){return d(c),m(t.selectedSettings.socialCapital,e)||(t.selectedSettings.socialCapital=e),g(e)}),n()(),i(17,"div",2)(18,"label",9),a(19),f(20,"translate"),n(),i(21,"input",10),u("ngModelChange",function(e){return d(c),m(t.selectedSettings.gtagCode,e)||(t.selectedSettings.gtagCode=e),g(e)}),n()(),i(22,"div",2)(23,"label",11),a(24,"Facebook"),n(),i(25,"input",12),u("ngModelChange",function(e){return d(c),m(t.selectedSettings.urlFacebook,e)||(t.selectedSettings.urlFacebook=e),g(e)}),n()(),i(26,"div",2)(27,"label",13),a(28,"Twitter"),n(),i(29,"input",14),u("ngModelChange",function(e){return d(c),m(t.selectedSettings.urlTwitter,e)||(t.selectedSettings.urlTwitter=e),g(e)}),n()(),i(30,"div",2)(31,"label",15),a(32,"Instagram"),n(),i(33,"input",16),u("ngModelChange",function(e){return d(c),m(t.selectedSettings.urlInstagram,e)||(t.selectedSettings.urlInstagram=e),g(e)}),n()(),i(34,"div",2)(35,"label",17),a(36,"TikTok"),n(),i(37,"input",18),u("ngModelChange",function(e){return d(c),m(t.selectedSettings.urlTiktok,e)||(t.selectedSettings.urlTiktok=e),g(e)}),n()(),i(38,"div",2)(39,"label",19),a(40,"Linkedin"),n(),i(41,"input",20),u("ngModelChange",function(e){return d(c),m(t.selectedSettings.urlLinkedin,e)||(t.selectedSettings.urlLinkedin=e),g(e)}),n()(),i(42,"div",2)(43,"label",21),a(44),f(45,"translate"),n(),i(46,"input",22),u("ngModelChange",function(e){return d(c),m(t.selectedSettings.urlAppAndroid,e)||(t.selectedSettings.urlAppAndroid=e),g(e)}),n()(),i(47,"div",2)(48,"label",23),a(49),f(50,"translate"),n(),i(51,"input",24),u("ngModelChange",function(e){return d(c),m(t.selectedSettings.urlAppIos,e)||(t.selectedSettings.urlAppIos=e),g(e)}),n()(),i(52,"div",2)(53,"label",25),a(54),f(55,"translate"),n(),i(56,"input",26),u("ngModelChange",function(e){return d(c),m(t.selectedSettings.emailInfo,e)||(t.selectedSettings.emailInfo=e),g(e)}),n()(),i(57,"button",27),a(58),f(59,"translate"),n()()}
1s&2&&(o(4),_(C(5,20,"IDS_TAX_ID")),o(2),p("ngModel",t.selectedSettings.taxId),o(3),_(C(10,22,"IDS_BUSINESS_REGISTER_CODE")),o(2),p("ngModel",t.selectedSettings.businessRegisterCode),o(3),_(C(15,24,"IDS_SOCIAL_CAPITAL")),o(2),p("ngModel",t.selectedSettings.socialCapital),o(3),_(C(20,26,"IDS_GTAG_CODE")),o(2),p("ngModel",t.selectedSettings.gtagCode),o(4),p("ngModel",t.selectedSettings.urlFacebook),o(4),p("ngModel",t.selectedSettings.urlTwitter),o(4),p("ngModel",t.selectedSettings.urlInstagram),o(4),p("ngModel",t.selectedSettings.urlTiktok),o(4),p("ngModel",t.selectedSettings.urlLinkedin),o(3),_(C(45,28,"IDS_ANDROID_APP")),o(2),p("ngModel",t.selectedSettings.urlAppAndroid),o(3),_(C(50,30,"IDS_IOS_APP")),o(2),p("ngModel",t.selectedSettings.urlAppIos),o(3),_(C(55,32,"IDS_EMAIL_INFO_ACCOUNT")),o(2),p("ngModel",t.selectedSettings.emailInfo),o(2),F("",C(59,34,"IDS_BTN_SAVE")," "))},dependencies:[z,j,G,U,q,H,E],styles:["i[_ngcontent-%COMP%]{font-size:14px}button[_ngcontent-%COMP%]{background-color:#e3e3e3;border:1px solid #cbcbcb;color:#2f2b27;flex-direction:column;justify-content:center;align-items:center;border-top:none;border-bottom:none;border-radius:0}button[_ngcontent-%COMP%]:hover{border-left:3px solid #cba548;border-top:none;border-bottom:none}button[_ngcontent-%COMP%]:active{background-color:#cba548;color:#fff;border-left:3px solid #cba548;border-right:3px solid #cba548}input[_ngcontent-%COMP%]{height:40px;width:100%;outline:none;padding:0 5px;border:1px solid #e3e3e3}"]})}}return r})();var ne=(()=>{class r{constructor(l){this._api=l}save(l){return this._api.request(Y.settings.save(l))}static{this.\u0275fac=function(s){return new(s||r)(V(Z))}}static{this.\u0275prov=P({token:r,factory:r.\u0275fac,providedIn:"root"})}}return r})();var T=class A{constructor(M,l,s,t){this.router=M,this.route=l,this.publicGenericService=s,this.globalSettingService=t,this.selectedSettings={idSetting:1,urlDemo:"",urlProduction:"",urlFacebook:"",urlTwitter:"",urlInstagram:"",urlTiktok:"",urlLinkedin:"",urlAppAndroid:"",urlAppIos:"",businessRegisterCode:"",socialCapital:0,gtagCode:"",taxId:"",emailInfo:""},this.isEditMode=!1}ngOnInit(){this.loadSettingsList()}loadSettingsList(){this.publicGenericService.getGlobalSettings().subscribe(M=>{this.selectedSettings=M})}save(){this.globalSettingService.save(this.selectedSettings).pipe(ee(this)).subscribe(M=>{})}goBack(){this.router.navigate([".."],{relativeTo:this.route})}static{this.\u0275fac=function(l){return new(l||A)(w(R),w(N),w(te),w(ne))}}static{this.\u0275cmp=b({type:A,selectors:[["app-settings-manager"]],hostAttrs:["ngSkipHydration","true"],standalone:!1,decls:10,vars:4,consts:[[1,"container-md","mt-3","mb-3"],[1,"row","pt-3","pb-3"],[3,"click"],["src","/assets/img/arrow-gold.png","alt","Arrow"],[1,"ms-2","d-inline-block"],[3,"saveSettings","selectedSettings"]],template:function(l,s){l&1&&(i(0,"div",0)(1,"div",1)(2,"h1")(3,"a",2),h("click",function(){return s.goBack()}),a(4,"Admin"),n(),D(5,"img",3),i(6,"h2",4),a(7),f(8,"translate"),n()()(),i(9,"app-settings-edit",5),h("saveSettings",function(){return s.save()}),n()()),l&2&&(o(7),_(C(8,2,"IDS_SETTINGS")),o(2),L("selectedSettings",s.selectedSettings))},dependencies:[ie,E],styles:["h1[_ngcontent-%COMP%]{color:#2f2b27}a[_ngcontent-%COMP%]{cursor:pointer;margin-right:10px}a[_ngcontent-%COMP%]:hover{color:#cba548!important}"]})}};T=W([$()],T);var le=[{path:"",component:T}],oe=(()=>{class r{static{this.\u0275fac=function(s){return new(s||r)}}static{this.\u0275mod=I({type:r})}static{this.\u0275inj=y({imports:[k.forChild(le),k]})}}return r})();var Le=(()=>{class r{static{this.\u0275fac=function(s){return new(s||r)}}static{this.\u0275mod=I({type:r})}static{this.\u0275inj=y({imports:[O,Q,oe,X,J,K]})}}return r})();export{Le as SettingsManagerModule};
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.