-
Notifications
You must be signed in to change notification settings - Fork 0
/
432.0af7527625166368.js
1 lines (1 loc) · 17.7 KB
/
432.0af7527625166368.js
1
"use strict";(self.webpackChunkcashwarden_web_ng=self.webpackChunkcashwarden_web_ng||[]).push([[432],{432:(dn,b,a)=>{a.r(b),a.d(b,{SettingsModule:()=>gn});var k=a(8418),m=a(6152),y=a(8800),p=a(9094),h=a(9646),n=a(4650),u=a(9651),T=a(9959),S=a(6616),_=a(7044),w=a(1811),f=a(9597);a(9553);let Z=(()=>{class e{constructor(t,i,o,r,l,d){this.http=t,this.settings=i,this.titleSrv=o,this.msg=r,this.cdr=l,this.i18n=d,this.timezones=[],this.schema={properties:{},required:[]},this.ui={"*":{spanLabelFixed:120,grid:{span:24}}}}ngOnInit(){this.titleSrv.setTitle(this.i18n.fanyi("app.settings.personal.base"));const t=this.settings.user;this.timezones=this.settings.app.timezones,this.schema={properties:{name:{type:"string",minLength:3,default:t.name,ui:{i18n:"app.user.name",placeholder:this.i18n.fanyi("app.user.name")}},email:{type:"string",default:t.email,ui:{type:"email",i18n:"app.user.email",placeholder:this.i18n.fanyi("app.user.email"),validator:i=>i&&!/^\w+@[a-zA-Z_]+?\.[a-zA-Z]{2,20}$/.test(i)?(0,h.of)([{keyword:"email",message:this.i18n.fanyi("app.user.email-invalid")}]):(0,h.of)([])}},timezone:{type:"string",default:t.timezone,ui:{i18n:"app.user.timezone",widget:"select",asyncData:()=>(0,h.of)(this.timezones),placeholder:this.i18n.fanyi("app.user.timezone")}},base_currency_code:{type:"string",default:t.currency,readOnly:!0,ui:{i18n:"app.user.base_currency_code"}}},required:["name","email","timezone"]}}save(t){this.http.put("/api/users",t).subscribe(i=>{i.code||(this.settings.setUser(i),this.msg.success(this.i18n.fanyi("app.form.submit-success")))})}}return e.\u0275fac=function(t){return new(t||e)(n.Y36(p.lP),n.Y36(p.gb),n.Y36(p.yD),n.Y36(u.dD),n.Y36(n.sBO),n.Y36(p.Oi))},e.\u0275cmp=n.Xpm({type:e,selectors:[["app-settings-base"]],decls:8,vars:10,consts:[["nzType","warning",3,"nzMessage"],[3,"schema","ui","button","formSubmit"],["sf",""],["nz-button","","nzType","primary",3,"disabled"]],template:function(t,i){if(1&t&&(n.TgZ(0,"p"),n._UZ(1,"nz-alert",0),n.ALo(2,"i18n"),n.qZA(),n.TgZ(3,"sf",1,2),n.NdJ("formSubmit",function(r){return i.save(r)}),n.TgZ(5,"button",3),n._uU(6),n.ALo(7,"i18n"),n.qZA()()),2&t){const o=n.MAs(4);n.xp6(1),n.Q6J("nzMessage",n.lcZ(2,6,"app.settings.personal.update_email.warn")),n.xp6(2),n.Q6J("schema",i.schema)("ui",i.ui)("button",null),n.xp6(2),n.Q6J("disabled",!o.valid),n.xp6(1),n.Oqu(n.lcZ(7,8,"app.form.submit"))}},dependencies:[T.kJ,S.ix,_.w,w.dQ,f.r,p.Ck],encapsulation:2,changeDetection:0}),e})();var z=a(5156),c=a(9132),C=a(6895),N=a(6497),Q=a(1102);function D(e,s){if(1&e){const t=n.EpF();n.TgZ(0,"a",13),n.NdJ("click",function(){n.CHM(t);const o=n.oxw(3);return n.KtG(o.showModal())}),n._UZ(1,"i",14),n.qZA()}}function U(e,s){1&e&&(n.TgZ(0,"a",15),n._UZ(1,"i",14),n.qZA())}function E(e,s){if(1&e&&(n.YNc(0,D,2,0,"a",11),n.YNc(1,U,2,0,"a",12)),2&e){const t=n.oxw().$implicit,i=n.oxw();n.Q6J("ngIf","telegram"==t.provider&&!i.getProvider(t.provider)),n.xp6(1),n.Q6J("ngIf","telegram"!==t.provider)}}function $(e,s){1&e&&(n.TgZ(0,"a",15),n._UZ(1,"i",17),n.qZA())}const v=function(e){return{provider:e}};function I(e,s){if(1&e){const t=n.EpF();n.TgZ(0,"a",18),n.NdJ("nzOnConfirm",function(){n.CHM(t);const o=n.oxw(2).$implicit,r=n.oxw();let l;return n.KtG(r.unbind(null==(l=r.getProvider(o.provider))?null:l.id))}),n.ALo(1,"i18n"),n._UZ(2,"i",17),n.qZA()}if(2&e){const t=n.oxw(2).$implicit;n.Q6J("nz-popconfirm",n.xi3(1,1,"app.settings.personal.binding.unbound.confirm",n.VKq(4,v,t.provider)))}}function L(e,s){if(1&e&&(n.YNc(0,$,2,0,"a",12),n.YNc(1,I,3,6,"a",16)),2&e){const t=n.oxw().$implicit,i=n.oxw();n.Q6J("ngIf",!i.getProvider(t.provider)),n.xp6(1),n.Q6J("ngIf",i.getProvider(t.provider))}}function V(e,s){if(1&e){const t=n.EpF();n.TgZ(0,"a",13),n.NdJ("click",function(){n.CHM(t);const o=n.oxw(3);return n.KtG(o.showModal())}),n._uU(1),n.ALo(2,"i18n"),n.qZA()}if(2&e){const t=n.oxw(2).$implicit;n.xp6(1),n.hij(" ",n.xi3(2,1,"app.settings.personal.binding.title",n.VKq(4,v,t.name))," ")}}function R(e,s){if(1&e&&(n.TgZ(0,"span"),n._uU(1),n.ALo(2,"i18n"),n.qZA()),2&e){const t=n.oxw(2).$implicit;n.xp6(1),n.hij(" ",n.xi3(2,1,"app.settings.personal.binding.title",n.VKq(4,v,t.name))," ")}}function q(e,s){if(1&e&&(n.YNc(0,V,3,6,"a",11),n.YNc(1,R,3,6,"span",19)),2&e){const t=n.oxw().$implicit,i=n.oxw();n.Q6J("ngIf","telegram"==t.provider&&!i.getProvider(t.provider)),n.xp6(1),n.Q6J("ngIf","telegram"!==t.provider)}}function W(e,s){if(1&e&&n._UZ(0,"i",20),2&e){const t=n.oxw().$implicit;n.Q6J("nzIconfont",t.icon)}}function j(e,s){1&e&&(n.TgZ(0,"div"),n._uU(1),n.ALo(2,"i18n"),n.qZA()),2&e&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"app.settings.personal.binding.unbound")," "))}function G(e,s){if(1&e&&(n.TgZ(0,"a",22),n._uU(1),n.qZA()),2&e){const t=n.oxw(3).$implicit,i=n.oxw();let o,r;n.MGl("href","https://t.me/",null==(o=i.getProvider(t.provider))?null:o.username,"",n.LSH),n.xp6(1),n.hij(" @",null==(r=i.getProvider(t.provider))?null:r.username," ")}}function H(e,s){if(1&e&&(n.TgZ(0,"span"),n._uU(1),n.qZA()),2&e){const t=n.oxw(3).$implicit,i=n.oxw();let o;n.xp6(1),n.hij(" @",null==(o=i.getProvider(t.provider))?null:o.username," ")}}function K(e,s){if(1&e&&(n.TgZ(0,"div"),n._uU(1),n.ALo(2,"i18n"),n.YNc(3,G,2,2,"a",21),n.YNc(4,H,2,1,"span",19),n.qZA()),2&e){const t=n.oxw(2).$implicit,i=n.oxw();let o;n.xp6(1),n.hij(" ",n.lcZ(2,3,"app.settings.personal.binding.bound")," "),n.xp6(2),n.Q6J("ngIf","telegram"===t.provider),n.xp6(1),n.Q6J("ngIf","telegram"!==t.provider&&(null==(o=i.getProvider(t.provider))?null:o.username))}}function X(e,s){if(1&e&&(n.YNc(0,j,3,3,"div",19),n.YNc(1,K,5,5,"div",19)),2&e){const t=n.oxw().$implicit,i=n.oxw();n.Q6J("ngIf",!i.getProvider(t.provider)),n.xp6(1),n.Q6J("ngIf",i.getProvider(t.provider))}}const nn=function(e,s){return[e,s]};function tn(e,s){if(1&e&&(n.ynx(0),n.TgZ(1,"nz-list-item",4),n.YNc(2,E,2,2,"ng-template",null,5,n.W1O),n.YNc(4,L,2,2,"ng-template",null,6,n.W1O),n.TgZ(6,"nz-list-item-meta",7),n.YNc(7,q,2,2,"ng-template",null,8,n.W1O),n.YNc(9,W,1,1,"ng-template",null,9,n.W1O),n.YNc(11,X,2,2,"ng-template",null,10,n.W1O),n.qZA()(),n.BQk()),2&e){const t=n.MAs(3),i=n.MAs(5),o=n.MAs(8),r=n.MAs(10),l=n.MAs(12);n.xp6(1),n.Q6J("nzActions",n.WLB(4,nn,t,i)),n.xp6(5),n.Q6J("nzTitle",o)("nzAvatar",r)("nzDescription",l)}}function en(e,s){if(1&e&&(n.ynx(0),n.TgZ(1,"p"),n._uU(2),n.ALo(3,"i18n"),n.TgZ(4,"a",22),n._uU(5),n.qZA()(),n._UZ(6,"p",23),n.BQk()),2&e){const t=n.oxw();n.xp6(2),n.hij(" ",n.lcZ(3,5,"app.settings.personal.binding.telegram.desc")," "),n.xp6(2),n.MGl("href","https://t.me/",t.telegram.bot_name,"",n.LSH),n.xp6(1),n.hij("@",t.telegram.bot_name,""),n.xp6(1),n.Q6J("nzCopyTooltips",null)("nzContent",t.telegram.code)}}let A=(()=>{class e{constructor(t,i,o,r,l,d,x,Y){this.http=t,this.msg=i,this.modal=o,this.cdr=r,this.route=l,this.titleSrv=d,this.settings=x,this.i18n=Y,this.data=[],this.providers=[{name:"Telegram",provider:"telegram",icon:"icon-telegram"},{name:"Github",provider:"github",icon:"icon-github"},{name:"Google",provider:"google",icon:"icon-google"}],this.isVisible=!1,this.telegram={bot_name:"",code:""}}ngOnInit(){this.titleSrv.setTitle(this.i18n.fanyi("app.settings.personal.binding.title")),this.index()}index(){this.http.get("/api/users/providers").subscribe(t=>{this.data=t,this.cdr.detectChanges()})}getProvider(t){return this.data.find(i=>i.provider===t)}bind(t){if("telegram"===t){const i=this.settings.app.telegram_bot_name;this.http.post("/api/users/rest-token").subscribe(o=>{const r=`/bind ${o.token}:${o.email}`,l=this.i18n.fanyi("app.settings.personal.binding.telegram.desc");this.modal.info({nzWidth:"500px",nzTitle:this.i18n.fanyi("app.settings.personal.binding.telegram.title"),nzContent:`${l} <a href="https://t.me/${i}" target="_blank">@${i}</a> </br> <p nz-typography nzCopyable [nzCopyTooltips]="null" nzContent="${r}"></p>`,nzOnOk:()=>this.index()})})}}unbind(t){!t||this.http.delete(`/api/users/providers/${t}`).subscribe(i=>{i.code||(this.index(),this.msg.success(this.i18n.fanyi("app.form.delete.success")))})}showModal(){this.isVisible=!0;const t=this.settings.app.telegram_bot_name;this.http.post("/api/users/rest-token").subscribe(i=>{this.telegram.bot_name=t,this.telegram.code=`/bind ${i.token}:${i.email}`,this.cdr.detectChanges()})}handleOk(){this.isVisible=!1}}return e.\u0275fac=function(t){return new(t||e)(n.Y36(p.lP),n.Y36(u.dD),n.Y36(z.Sf),n.Y36(n.sBO),n.Y36(c.gz),n.Y36(p.yD),n.Y36(p.gb),n.Y36(p.Oi))},e.\u0275cmp=n.Xpm({type:e,selectors:[["app-settings-binding"]],decls:5,vars:5,consts:[["nzItemLayout","horizontal"],[4,"ngFor","ngForOf"],[3,"nzVisible","nzTitle","nzVisibleChange","nzOnOk","nzOnCancel"],[4,"nzModalContent"],[3,"nzActions"],["edit",""],["del",""],[3,"nzTitle","nzAvatar","nzDescription"],["nzTitle",""],["nzAvatar",""],["nzDescription",""],[3,"click",4,"ngIf"],["disabled","",4,"ngIf"],[3,"click"],["nz-icon","","nzType","edit","theme","outline"],["disabled",""],["nzPopconfirmPlacement","bottom",3,"nz-popconfirm","nzOnConfirm",4,"ngIf"],["nz-icon","","nzType","delete","theme","outline"],["nzPopconfirmPlacement","bottom",3,"nz-popconfirm","nzOnConfirm"],[4,"ngIf"],["nz-icon","",1,"icon-sm",3,"nzIconfont"],["target","_blank",3,"href",4,"ngIf"],["target","_blank",3,"href"],["nz-typography","","nzCopyable","",3,"nzCopyTooltips","nzContent"]],template:function(t,i){1&t&&(n.TgZ(0,"nz-list",0),n.YNc(1,tn,13,7,"ng-container",1),n.qZA(),n.TgZ(2,"nz-modal",2),n.NdJ("nzVisibleChange",function(r){return i.isVisible=r})("nzOnOk",function(){return i.handleOk()})("nzOnCancel",function(){return i.handleOk()}),n.ALo(3,"i18n"),n.YNc(4,en,7,7,"ng-container",3),n.qZA()),2&t&&(n.xp6(1),n.Q6J("ngForOf",i.providers),n.xp6(1),n.Q6J("nzVisible",i.isVisible)("nzTitle",n.lcZ(3,3,"app.settings.personal.binding.telegram.title")))},dependencies:[C.sg,C.O5,_.w,N.JW,z.du,z.Hf,Q.Ls,m.n_,m.AA,m.yi,y.ZU,p.Ck],encapsulation:2,changeDetection:0}),e})();var on=a(538);let O=(()=>{class e{constructor(t,i,o,r,l,d){this.http=t,this.titleSrv=i,this.msg=o,this.router=r,this.tokenService=l,this.i18n=d,this.schema={properties:{current_password:{type:"string",minLength:6,ui:{i18n:"app.user.current_password",type:"password",placeholder:this.i18n.fanyi("app.user.current_password")}},password:{type:"string",minLength:6,ui:{i18n:"app.user.password",type:"password",placeholder:this.i18n.fanyi("app.user.password")}},password_confirmation:{type:"string",minLength:6,ui:{type:"password",i18n:"app.user.password_confirmation",placeholder:this.i18n.fanyi("app.user.password_confirmation"),validator:(x,Y,F)=>F.value&&x!==F.value.password?[{keyword:"required",message:this.i18n.fanyi("app.user.password-not-match")}]:[]}}},required:["current_password","password","password_confirmation"]},this.ui={"*":{spanLabelFixed:160,grid:{span:24}}}}ngOnInit(){this.titleSrv.setTitle(this.i18n.fanyi("app.settings.personal.password"))}save(t){this.http.put("/api/users/change-password",t).subscribe(i=>{i.code||(this.msg.success(this.i18n.fanyi("app.settings.personal.password.success")),this.tokenService.clear(),this.router.navigateByUrl(this.tokenService.login_url).then())})}}return e.\u0275fac=function(t){return new(t||e)(n.Y36(p.lP),n.Y36(p.yD),n.Y36(u.dD),n.Y36(c.F0),n.Y36(on.T),n.Y36(p.Oi))},e.\u0275cmp=n.Xpm({type:e,selectors:[["app-settings-password"]],decls:5,vars:5,consts:[["nzType","warning",3,"nzMessage"],[3,"schema","ui","formSubmit"],["sf",""]],template:function(t,i){1&t&&(n.TgZ(0,"p"),n._UZ(1,"nz-alert",0),n.ALo(2,"i18n"),n.qZA(),n.TgZ(3,"sf",1,2),n.NdJ("formSubmit",function(r){return i.save(r)}),n.qZA()),2&t&&(n.xp6(1),n.Q6J("nzMessage",n.lcZ(2,3,"app.settings.personal.password.warn")),n.xp6(2),n.Q6J("schema",i.schema)("ui",i.ui))},dependencies:[T.kJ,f.r,p.Ck],encapsulation:2,changeDetection:0}),e})();var sn=a(4968),rn=a(8372),M=a(3325);function an(e,s){if(1&e){const t=n.EpF();n.TgZ(0,"li",6),n.NdJ("click",function(){const r=n.CHM(t).$implicit,l=n.oxw();return n.KtG(l.to(r))}),n._uU(1),n.qZA()}if(2&e){const t=s.$implicit;n.Q6J("nzSelected",t.selected),n.xp6(1),n.Oqu(t.title)}}let B=(()=>{class e{constructor(t,i,o,r){this.router=t,this.cdr=i,this.el=o,this.i18n=r,this.mode="inline",this.menus=[{key:"base",title:this.i18n.fanyi("app.settings.personal.base")},{key:"password",title:this.i18n.fanyi("app.settings.personal.password")},{key:"binding",title:this.i18n.fanyi("app.settings.personal.binding")}],this.setActive()}setActive(){const t=this.router.url.substring(this.router.url.lastIndexOf("/")+1);this.menus.forEach(i=>{i.selected=i.key===t}),this.title=this.menus.find(i=>i.selected).title}to(t){this.router.navigateByUrl(`/settings/personal/${t.key}`).then()}resize(){const t=this.el.nativeElement;let i="inline";const{offsetWidth:o}=t;o<641&&o>400&&(i="horizontal"),window.innerWidth<768&&o>400&&(i="horizontal"),this.mode=i,this.cdr.detectChanges()}ngAfterViewInit(){this.resize$=(0,sn.R)(window,"resize").pipe((0,rn.b)(200)).subscribe(()=>this.resize())}ngOnDestroy(){this.resize$.unsubscribe()}}return e.\u0275fac=function(t){return new(t||e)(n.Y36(c.F0),n.Y36(n.sBO),n.Y36(n.SBq),n.Y36(p.Oi))},e.\u0275cmp=n.Xpm({type:e,selectors:[["app-settings-personal"]],decls:8,vars:3,consts:[[1,"main","ant-card-bordered"],[1,"menu"],["nz-menu","",3,"nzMode"],["nz-menu-item","",3,"nzSelected","click",4,"ngFor","ngForOf"],[1,"content"],[1,"title"],["nz-menu-item","",3,"nzSelected","click"]],template:function(t,i){1&t&&(n.TgZ(0,"div",0)(1,"div",1)(2,"ul",2),n.YNc(3,an,2,2,"li",3),n.qZA()(),n.TgZ(4,"div",4)(5,"div",5),n._uU(6),n.qZA(),n._UZ(7,"router-outlet"),n.qZA()()),2&t&&(n.xp6(2),n.Q6J("nzMode",i.mode),n.xp6(1),n.Q6J("ngForOf",i.menus),n.xp6(3),n.Oqu(i.title))},dependencies:[C.sg,c.lC,_.w,M.wO,M.r9],styles:["[_nghost-%COMP%]{display:block;padding-top:24px}[_nghost-%COMP%] .main{display:flex;width:100%;padding-top:16px;padding-bottom:16px;overflow:auto;background-color:#fff}[_nghost-%COMP%] .menu{width:224px;border-right:1px solid #f0f0f0}[_nghost-%COMP%] .menu .ant-menu-inline{border:none}[_nghost-%COMP%] .menu .ant-menu:not(.ant-menu-horizontal) .ant-menu-item-selected{font-weight:700}[_nghost-%COMP%] .content{flex:1;padding:8px 40px}[_nghost-%COMP%] .content .title{margin-bottom:12px;color:#000000d9;font-weight:500;font-size:20px;line-height:28px}[_nghost-%COMP%] .content .ant-list-split .ant-list-item:last-child{border-bottom:1px solid #e8e8e8}[_nghost-%COMP%] .content .ant-list-item{padding-top:14px;padding-bottom:14px}@media screen and (max-width: 767px){[_nghost-%COMP%] .main{flex-direction:column}[_nghost-%COMP%] .main .menu{width:100%;border:none}[_nghost-%COMP%] .main .content{padding:40px}}[data-theme=dark] [_nghost-%COMP%] .main{background-color:#141414}[data-theme=dark] [_nghost-%COMP%] .content .title{color:#ffffffa6}[data-theme=dark] [_nghost-%COMP%] .menu{border-right-color:#303030}[data-theme=dark] [_nghost-%COMP%] .content .ant-list-split .ant-list-item:last-child{border-bottom-color:#303030}"],changeDetection:0}),e})();var g=a(433),P=a(1098),pn=a(6704);const ln=[{path:"personal",component:B,children:[{path:"",redirectTo:"base",pathMatch:"full"},{path:"base",component:Z},{path:"binding",component:A},{path:"password",component:O},{path:"report",component:(()=>{class e{constructor(t,i,o,r){this.http=t,this.titleSrv=i,this.msg=o,this.cdr=r,this.url="/api/users/settings",this.form={daily_report:!1,weekly_report:!1,monthly_report:!1}}ngOnInit(){this.titleSrv.setTitle("\u8bbe\u7f6e\u62a5\u544a"),this.load()}save(t){this.http.post(this.url,{...t}).subscribe(i=>{0===i.code?(this.form=i.data,this.msg.success("\u66f4\u65b0\u6210\u529f")):this.msg.warning(i.message)})}load(){this.http.get(this.url).subscribe(t=>{0===t.code?(this.form=t.data,this.cdr.detectChanges()):this.msg.warning(t.message)})}}return e.\u0275fac=function(t){return new(t||e)(n.Y36(p.lP),n.Y36(p.yD),n.Y36(u.dD),n.Y36(n.sBO))},e.\u0275cmp=n.Xpm({type:e,selectors:[["app-settings-report"]],decls:12,vars:4,consts:[["nzType","warning","nzMessage","\u6ce8\u610f\uff01\u6b64\u529f\u80fd\u53ea\u4e3a Pro \u5e76\u4e14\u5df2\u7ecf\u7ed1\u5b9a Telegram \u7684\u7528\u6237\u4f7f\u7528"],["nz-form","","se-container","1","labelWidth","100",1,"pt-lg",3,"ngSubmit"],["f","ngForm"],["label","\u65e5\u62a5","extra","\u6bcf\u5929\u65e9\u4e0a 10 \u70b9\u62a5\u544a\u6628\u65e5\u6d88\u8d39\u6c47\u603b"],["nzCheckedChildren","\u5f00","nzUnCheckedChildren","\u5173","name","daily_report",3,"ngModel","ngModelChange"],["label","\u5468\u62a5","extra","\u6bcf\u5468\u4e00\u65e9\u4e0a 10 \u70b9\u62a5\u544a\u4e0a\u5468\u6d88\u8d39\u6c47\u603b"],["nzCheckedChildren","\u5f00","nzUnCheckedChildren","\u5173","name","weekly_report",3,"ngModel","ngModelChange"],["label","\u6708\u62a5","extra","\u6bcf\u6708 1 \u53f7\u65e9\u4e0a 10 \u70b9\u62a5\u544a\u4e0a\u4e2a\u6708\u6d88\u8d39\u6c47\u603b"],["nzCheckedChildren","\u5f00","nzUnCheckedChildren","\u5173","name","monthly_report",3,"ngModel","ngModelChange"],["col","1"],["nz-button","","nzType","primary",3,"disabled"]],template:function(t,i){if(1&t&&(n._UZ(0,"nz-alert",0),n.TgZ(1,"form",1,2),n.NdJ("ngSubmit",function(){return i.save(i.form)}),n.TgZ(3,"se",3)(4,"nz-switch",4),n.NdJ("ngModelChange",function(r){return i.form.daily_report=r}),n.qZA()(),n.TgZ(5,"se",5)(6,"nz-switch",6),n.NdJ("ngModelChange",function(r){return i.form.weekly_report=r}),n.qZA()(),n.TgZ(7,"se",7)(8,"nz-switch",8),n.NdJ("ngModelChange",function(r){return i.form.monthly_report=r}),n.qZA()(),n.TgZ(9,"se",9)(10,"button",10),n._uU(11,"\u4fdd\u5b58"),n.qZA()()()),2&t){const o=n.MAs(2);n.xp6(4),n.Q6J("ngModel",i.form.daily_report),n.xp6(2),n.Q6J("ngModel",i.form.weekly_report),n.xp6(2),n.Q6J("ngModel",i.form.monthly_report),n.xp6(2),n.Q6J("disabled",o.invalid)}},dependencies:[g._Y,g.JJ,g.JL,g.On,g.F,P.nV,P.d_,pn.Lr,S.ix,_.w,w.dQ,f.r],encapsulation:2,changeDetection:0}),e})()}]}];let cn=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=n.oAB({type:e}),e.\u0275inj=n.cJS({imports:[c.Bz.forChild(ln),c.Bz]}),e})(),gn=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=n.oAB({type:e}),e.\u0275inj=n.cJS({imports:[k.m8,cn,m.Ph,y.ZJ]}),e})()}}]);