1"use strict";(self.webpackChunkmy_app=self.webpackChunkmy_app||[]).push([[4007],{6370:(g,p,i)=>{i.d(p,{C:()=>n});const n={mobile_number:{placeholder:"Your Mobile Number",popover:{title:"Enter your contact number",desc:"Provide an active contact number"}},name:{placeholder:"Name",error:{minlength:"Minimum 3 characters required",maxlength:"Maximum character limit exceeds",pattern:"Please enter a valid name"}},email:{placeholder:"Email Address",error:{email:"Please enter a valid email",pattern:"Please enter a valid email"}},pincode:{placeholder:"Pincode",error:{minlength:"Please enter a valid Pincode",maxlength:"Please enter a valid Pincode",pattern:"Please enter a valid Pincode"}},address:{placeholder:"Address",error:{minlength:"Please enter a valid Address",maxlength:"Please enter a valid Address"}},pancard:{placeholder:"Pancard",error:{pattern:"Invalid Pancard Number"}},passport:{placeholder:"Passport No.",error:{pattern:"Invalid passport Number"}},otp:{placeholder:"OTP",error:{pattern:"Please enter a valid OTP"}}}},4007:(g,p,i)=>{i.r(p),i.d(p,{TaxBenefitNudgeComponent:()=>Z});var n=i(1222),t=i(2560),u=i(4666),m=i(5953),s=i(2508),h=i(6370),x=i(4865),d=i(1484),f=i(1349),P=i(2487),M=i(1322),v=i(7837),O=i(5313),C=i(9762);const b=["popup"];function D(o,l){1&o&&t._UZ(0,"app-login-main",10),2&o&&t.Q6J("inPopup",!0)}function E(o,l){if(1&o){const e=t.EpF();t.TgZ(0,"div",11)(1,"div",12)(2,"div",13),t.NdJ("click",function(){t.CHM(e);const r=t.oxw();return t.KtG(r.close())}),t.TgZ(3,"span",7),t._uU(4,"close"),t.qZA()(),t.TgZ(5,"div",14)(6,"div",15)(7,"div",4),t._uU(8,"Add your details"),t.qZA(),t.TgZ(9,"div",5),t._uU(10,"Avail 80G tax benefits upto 50% rebate by adding details below"),t.qZA()(),t.TgZ(11,"div",16),t._UZ(12,"img",17),t.qZA()()(),t.TgZ(13,"div",18)(14,"form",19),t._UZ(15,"app-input",20)(16,"app-input",21),t.qZA()(),t.TgZ(17,"div",22)(18,"button",23),t.NdJ("click",function(){t.CHM(e);const r=t.oxw(),c=t.MAs(12);return t.KtG(r.submit(c))}),t.TgZ(19,"span"),t._uU(20),t.qZA()()()()}if(2&o){const e=t.oxw();
1t.xp6(14),t.Q6J("formGroup",e.taxDetails),t.xp6(1),t.Q6J("control",e.pancard)("group",e.taxDetails)("placeHolder",e.info.pancard.placeholder)("errorMessage",e.info.pancard.error),t.xp6(1),t.Q6J("control",e.address)("group",e.taxDetails)("placeHolder",e.info.address.placeholder)("errorMessage",e.info.address.error),t.xp6(4),t.Oqu(e.is_login?"Submit Details":"Login to submit details")}}let Z=(()=>{class o{constructor(){(0,n.Z)(this,"util",(0,t.f3M)(f.f)),(0,n.Z)(this,"api",(0,t.f3M)(P.s)),(0,n.Z)(this,"dialog",(0,t.f3M)(d.uw)),(0,n.Z)(this,"login_dialog",(0,t.f3M)(d.uw)),(0,n.Z)(this,"matbottom",(0,t.f3M)(x.ch)),(0,n.Z)(this,"vars",(0,t.f3M)(M.a)),(0,n.Z)(this,"events",(0,t.f3M)(v.n)),(0,n.Z)(this,"pan_updated",new t.vpe),(0,n.Z)(this,"popup",void 0),(0,n.Z)(this,"taxDetails",void 0),(0,n.Z)(this,"pancard",void 0),(0,n.Z)(this,"pancard_regex",/^([a-zA-Z]){5}([0-9]){4}([a-zA-Z]){1}?$/),(0,n.Z)(this,"userData",void 0),(0,n.Z)(this,"info",h.C),(0,n.Z)(this,"address",void 0),(0,n.Z)(this,"nudge_clicked",!1),(0,n.Z)(this,"is_login",void 0),(0,n.Z)(this,"dialogRef",void 0),(0,n.Z)(this,"sheetRef",void 0)}ngOnInit(){this.taxDetails=new s.cw({pancard:this.pancard=new s.NI("",[s.kI.required,s.kI.pattern(this.pancard_regex)]),address:this.address=new s.NI("",[s.kI.required])}),this.vars.userData.subscribe(e=>{this.userData=e,this.is_login=this.vars.isLoggedIn$.getValue(),this.fillForm()}),this.vars.isLoggedIn$.subscribe(e=>{this.nudge_clicked&&!0===e&&(this.is_login=e,this.submit())})}fillForm(){this.userData?.pan_number?.info_1&&this.taxDetails.patchValue({pancard:this.userData?.pan_number?.info_1||""}),this.userData?.address_1&&this.taxDetails.patchValue({address:this.userData?.address_1||""})}openPopup(e){this.nudge_clicked=!0,this.is_login&&this.fillForm(),this.vars.isMobile?this.sheetRef=this.matbottom.open(e,{}):this.dialogRef=this.dialog.open(e,{maxWidth:"375px",width:"100%",panelClass:"data"}),this.events.sendSystemEvent({eventName:"taxcomp"}).subscribe(a=>a)}submit(e){if(this.taxDetails.valid)if(this.is_login){const a={panNumber:this.pancard.value,address_1:this.address.value},r=O.c.UPDATE_USER(this.userData?.id);this.api.put(r,a).subscribe({next:c=>{c&&(this.setSystemEvent("tax_submit"),this.userData={...this.userData,...c?.data},this.vars.userData.next(this.userData),this.util.openSnackBar("Your invoice certificate will be sent to your registered email.","success"),this.pan_updated.emit(!0),setTimeout(()=>{const _=document.getElementById("tax-nudge-typ");_&&(_.style.display="none")},2e3),this.vars.isMobile?this.sheetRef?.dismiss():this.dialogRef?.close())},error:c=>{this.util.openSnackBar(c,"error")}})}else this.login_dialog.open(e,{maxWidth:"500px",width:"100%",height:this.vars.isMobile?"100%":"",panelClass:"login",data:{fixed_email:this.userData?.email}});else this.util.checkValidForm(this.taxDetails)}close(){this.sheetRef?.dismiss(),this.dialogRef?.close(),this.setSystemEvent("tax_cross")}setSystemEvent(e){this.vars.system_event.contribute_initiated.info_3=";"+e,this.vars.system_event.contribute_cart.info_3=";"+e,this.vars.system_event.order_created.info_3=";"+e,this.events.sendSystemEvent({eventName:e}).subscribe(a=>a)}}return(0,n.Z)(o,"\u0275fac",function(e){return new(e||o)}),(0,n.Z)(o,"\u0275cmp",t.Xpm({type:o,selectors:[["app-tax-benefit-nudge"]],viewQuery:function(e,a){if(1&e&&t.Gf(b,7),2&e){let r;t.iGM(r=t.CRH())&&(a.popup=r.first)}},outputs:{pan_updated:"pan_updated"},standalone:!0,features:[t.jDz],decls:15,vars:0,consts:[[1,"content",3,"click"],[1,"img"],["data-src","/assets/images/taxbenefitgray_1.png","alt","tax","loading","lazy"],[1,"text-content"],[1,"title"],[1,"text"],[1,"arrow"],[1,"material-icons"],["loginPopup",""],["panPopup",""],[3,"inPopup"],[1,"popup-container"],[1,"top"],[1,"line-top",3,"click"],[1,"info"],[1,"text-container"],[1,"img-tax"],["data-src","/assets/images/taxbenefitgray_big.png","alt","tax","loading","lazy"],[1,"middle"],[3,"formGroup"],["icon","icon-PAN",3,"control","group","placeHolder","errorMessage"],["inputType","text","icon","icon-city",3,"control","group","placeHolder","errorMessage"],[1,"bottom"],[1,"tax-submit",3,"click"]],template:function(e,a){if(1&e){const r=t.EpF();t.TgZ(0,"div",0),t.NdJ("click",function(){t.CHM(r);const _=t.MAs(14);return t.KtG(a.openPopup(_))}),t.TgZ(1,"div",1),t._UZ(2,"img",2),t.qZA(),t.TgZ(3,"div",3)(4,"div",4),t._uU(5,"You\u2019re eligible for 80G tax benefits."),t.qZA(),t.TgZ(6,"div",5),t._uU(7,"fill in your details now to avail upto 50% rebate"),t.qZA()(),t.TgZ(8,"div",6)(9,"span",7),t._uU(10,"arrow_forward"),t.qZA()()(),t.YNc(11,D,
11,1,"ng-template",null,8,t.W1O),t.YNc(13,E,21,10,"ng-template",null,9,t.W1O)}},dependencies:[u.ez,s.UX,s._Y,s.JL,s.sg,m.a,C.R,d.Is],styles:[".content[_ngcontent-%COMP%]{border-radius:16px;padding:8px 11px 8px 8px;background:#fff;display:flex;align-items:center;justify-content:normal;flex-direction:row;position:relative;cursor:pointer}.content[_ngcontent-%COMP%] .img[_ngcontent-%COMP%]{position:absolute;left:-17px}.content[_ngcontent-%COMP%] .img[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:42px;height:42px;margin-right:12px}.content[_ngcontent-%COMP%] .text-content[_ngcontent-%COMP%]{margin-left:20px}.content[_ngcontent-%COMP%] .text-content[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{font-size:12px;font-weight:700;line-height:150%;color:#56648c}.content[_ngcontent-%COMP%] .text-content[_ngcontent-%COMP%] .text[_ngcontent-%COMP%]{font-size:10px;font-weight:400;line-height:150%;color:#667085}.content[_ngcontent-%COMP%] .arrow[_ngcontent-%COMP%]{margin-left:auto}.content[_ngcontent-%COMP%] .arrow[_ngcontent-%COMP%] .material-icons[_ngcontent-%COMP%]{color:#667085}.popup-container[_ngcontent-%COMP%]{position:relative;border-radius:10px}.popup-container[_ngcontent-%COMP%] .line-top[_ngcontent-%COMP%]{cursor:pointer;position:absolute;top:-20px;right:-10px}.popup-container[_ngcontent-%COMP%] .top[_ngcontent-%COMP%] .info[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;flex-direction:row;margin-bottom:20px}.popup-container[_ngcontent-%COMP%] .top[_ngcontent-%COMP%] .info[_ngcontent-%COMP%] .text-container[_ngcontent-%COMP%]{display:flex;align-items:flex-start;justify-content:center;flex-direction:column;gap:8px}.popup-container[_ngcontent-%COMP%] .top[_ngcontent-%COMP%] .info[_ngcontent-%COMP%] .text-container[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{font-size:14px;font-weight:700;line-height:normal;color:#204b6b}.popup-container[_ngcontent-%COMP%] .top[_ngcontent-%COMP%] .info[_ngcontent-%COMP%] .text-container[_ngcontent-%COMP%] .text[_ngcontent-%COMP%]{max-width:220px;font-size:12px;font-weight:400;line-height:normal;color:#667085}.popup-container[_ngcontent-%COMP%] .top[_ngcontent-%COMP%] .info[_ngcontent-%COMP%] .img-tax[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:84px;height:84px}.popup-container[_ngcontent-%COMP%] .bottom[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;flex-direction:row;margin-top:10px}.popup-container[_ngcontent-%COMP%] .bottom[_ngcontent-%COMP%] .tax-submit[_ngcontent-%COMP%]{width:100%;max-width:315px;padding:12px;border:none;background:#01BFBD;border-radius:3px}.popup-container[_ngcontent-%COMP%] .bottom[_ngcontent-%COMP%] .tax-submit[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-size:14px;font-weight:700;line-height:22px;color:#fff}@media (max-width: 768px){.content[_ngcontent-%COMP%] .text-content[_ngcontent-%COMP%]{margin-right:10px}.content[_ngcontent-%COMP%] .text-content[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{font-size:10px}.content[_ngcontent-%COMP%] .text-content[_ngcontent-%COMP%] .text[_ngcontent-%COMP%]{font-size:8px}.popup-container[_ngcontent-%COMP%]{padding:10px 30px 30px}.popup-container[_ngcontent-%COMP%] .line-top[_ngcontent-%COMP%]{top:5px;right:5px}}@media (max-width: 768px){ .cdk-overlay-pane.login .mat-dialog-container{border-radius:0!important;padding-top:70px} .cdk-overlay-pane.login .mat-dialog-container .close-btn .material-icons{margin-top:-14px}}"]})),o})()}}]); 2//# sourceMappingURL=4007.1f82d4d4451983b7.js.map
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.