(window.webpackJsonp=window.webpackJsonp||[]).push([[3],{"0KVm":function(n,t,l){"use strict";var e=l("8Y7J"),i=l("FaAV"),o=l("wiW3"),s=l("TSSN"),u=l("SVse"),r=l("s7LF"),c=l("4Rf3"),a=l("Ou8G"),d=l("0S3U"),m=l("wIGQ"),h=l("oUVn");l("eN/m"),l("WmRU"),l("jtrZ"),l.d(t,"a",(function(){return p})),l.d(t,"b",(function(){return k}));var p=e.pb({encapsulation:0,styles:[[".title[_ngcontent-%COMP%]{padding:24px;text-align:center;font-size:20px;font-weight:500;position:relative;color:#42236a}.btn-close[_ngcontent-%COMP%]{position:absolute;top:27px;right:20px;width:20px;height:20px;cursor:pointer}.btn-back[_ngcontent-%COMP%]{position:absolute;top:35px;left:20px;width:24px;height:18px;cursor:pointer}.preview[_ngcontent-%COMP%]{position:relative}.preview[_ngcontent-%COMP%] .top-img[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;max-width:100%}.preview[_ngcontent-%COMP%] .bottom-img[_ngcontent-%COMP%]{position:absolute;bottom:0;left:0;width:100%;max-width:100%}.txt-description[_ngcontent-%COMP%]{position:absolute;top:50px;left:0;width:100%}.txt-description[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{width:100%;background:0 0;border:none;text-align:center;font-weight:500}.txt-description[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]:focus{outline:0}.details-info[_ngcontent-%COMP%]{position:absolute;top:70px;left:0;width:100%;text-align:center}.list-sticker[_ngcontent-%COMP%]{margin-top:12px;padding:0 40px;display:flex;flex-wrap:wrap;justify-content:space-between}.list-sticker[_ngcontent-%COMP%] .item[_ngcontent-%COMP%]{width:104px;margin-bottom:16px;cursor:pointer}.list-sticker[_ngcontent-%COMP%] .item[_ngcontent-%COMP%] .img-container[_ngcontent-%COMP%]{position:relative}.list-sticker[_ngcontent-%COMP%] .item[_ngcontent-%COMP%] .img-container[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{display:none;position:absolute;right:6px;bottom:6px;color:#ff9800}.list-sticker[_ngcontent-%COMP%] .item[_ngcontent-%COMP%] .img-container[_ngcontent-%COMP%] i.isLixi[_ngcontent-%COMP%]{color:#ff9800}.list-sticker[_ngcontent-%COMP%] .item[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-width:100%;width:100%;border-radius:5px;border:1px solid transparent}.list-sticker[_ngcontent-%COMP%] .item[_ngcontent-%COMP%] .name[_ngcontent-%COMP%]{margin-top:4px;font-size:12px;color:#ad8ad8;text-align:center}.list-sticker[_ngcontent-%COMP%] .item[_ngcontent-%COMP%]:nth-child(3n-1){margin-left:30px;margin-right:30px}.list-sticker[_ngcontent-%COMP%] .item.active[_ngcontent-%COMP%] .img-container[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{border:1px solid #ff9800}.list-sticker[_ngcontent-%COMP%] .item.active[_ngcontent-%COMP%] .img-container[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{display:inline-block}.list-sticker[_ngcontent-%COMP%] .item.active[_ngcontent-%COMP%] .name[_ngcontent-%COMP%]{font-weight:500;color:#42236a}.coach-mark-sticker-description[_ngcontent-%COMP%]{position:absolute;width:368px;top:40px;left:64px}.remove-border[_ngcontent-%COMP%]{resize:none;overflow:hidden}"]],data:{}});function b(n){return e.Nb(0,[(n()(),e.rb(0,0,null,null,1,null,null,null,null,null,null,null)),(n()(),e.rb(1,0,null,null,0,"img",[["class","top-img"]],[[8,"src",4]],null,null,null,null))],null,(function(n,t){var l=t.component;n(t,1,0,l.baseUrl+l.selectedItem.details[0].topImg)}))}function g(n){return e.Nb(0,[(n()(),e.rb(0,0,null,null,7,"app-coach-mark",[["arrowLeft","140px"],["arrowTop","-20px"],["class","coach-mark-sticker-description"],["key","fund-transfer-sticker-description"]],null,[["document","click"]],(function(n,t,l){var i=!0;return"document:click"===t&&(i=!1!==e.Db(n,1).documentClicked(l)&&i),i}),i.b,i.a)),e.qb(1,4308992,null,0,o.a,[e.k,e.h],{arrowTop:[0,"arrowTop"],arrowLeft:[1,"arrowLeft"],key:[2,"key"]},null),(n()(),e.rb(2,0,null,0,2,"div",[["class","fw-500"]],null,null,null,null,null)),(n()(),e.Lb(3,null,["",""])),e.Fb(131072,s.i,[s.j,e.h]),(n()(),e.rb(5,0,null,0,2,"div",[["class","mt-1"]],null,null,null,null,null)),(n()(),e.Lb(6,null,[" "," "])),e.Fb(131072,s.i,[s.j,e.h])],(function(n,t){n(t,1,0,"-20px","140px","fund-transfer-sticker-description")}),(function(n,t){n(t,3,0,e.Mb(t,3,0,e.Db(t,4).transform("txt_postcard_14"))),n(t,6,0,e.Mb(t,6,0,e.Db(t,7).transform("txt_postcard_15")))}))}function f(n){return e.Nb(0,[(n()(),e.rb(0,0,null,null,7,"app-coach-mark",[["arrowLeft","140px"],["arrowTop","-20px"],["class","coach-mark-sticker-description"],["key","fund-transfer-sticker-description-lixi"]],null,[["document","click"]],(function(n,t,l){var i=!0;return"document:click"===t&&(i=!1!==e.Db(n,1).documentClicked(l)&&i),i}),i.b,i.a)),e.qb(1,4308992,null,0,o.a,[e.k,e.h],{arrowTop:[0,"arrowTop"],arrowLeft:[1,"arrowLeft"],key:[2,"key"]},null),(n()(),e.rb(2,0,null,0,2,"div",[["class","fw-500"]],null,null,null,null,null)),(n()(),e.Lb(3,null,["",""])),e.Fb(131072,s.i,[s.j,e.h]),(n()(),e.rb(5,0,null,0,2,"div",[["class","mt-1"]],null,null,null,null,null)),(n()(),e.Lb(6,null,[" "," "])),e.Fb(131072,s.i,[s.j,e.h])],(function(n,t){n(t,1,0,"-20px","140px","fund-transfer-sticker-description-lixi")}),(function(n,t){n(t,3,0,e.Mb(t,3,0,e.Db(t,4).transform("txt_postcard_14"))),n(t,6,0,e.Mb(t,6,0,e.Db(t,7).transform("txt_postcard_16")))}))}function C(n){return e.Nb(0,[(n()(),e.rb(0,0,null,null,16,"div",[["class","preview"],["style","height: 350px;"]],[[4,"background-color",null]],null,null,null,null)),(n()(),e.gb(16777216,null,null,1,null,b)),e.qb(2,16384,null,0,u.n,[e.N,e.K],{ngIf:[0,"ngIf"]},null),(n()(),e.rb(3,0,null,null,0,"img",[["class","bottom-img"]],[[8,"src",4]],null,null,null,null)),(n()(),e.rb(4,0,null,null,12,"div",[["class","txt-description"]],null,null,null,null,null)),(n()(),e.rb(5,0,null,null,7,"textarea",[["maxlength","140"],["rows","3"]],[[1,"maxlength",0],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"change"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],(function(n,t,l){var i=!0,o=n.component;return"input"===t&&(i=!1!==e.Db(n,6)._handleInput(l.target.value)&&i),"blur"===t&&(i=!1!==e.Db(n,6).onTouched()&&i),"compositionstart"===t&&(i=!1!==e.Db(n,6)._compositionStart()&&i),"compositionend"===t&&(i=!1!==e.Db(n,6)._compositionEnd(l.target.value)&&i),"ngModelChange"===t&&(i=!1!==(o.content=l)&&i),"change"===t&&(i=0!=(o.contentChanged=!0)&&i),i}),null,null)),e.qb(6,16384,null,0,r.d,[e.C,e.k,[2,r.a]],null,null),e.qb(7,540672,null,0,r.k,[],{maxlength:[0,"maxlength"]},null),e.Ib(1024,null,r.m,(function(n){return[n]}),[r.k]),e.Ib(1024,null,r.n,(function(n){return[n]}),[r.d]),e.qb(10,671744,null,0,r.s,[[8,null],[6,r.m],[8,null],[6,r.n]],{model:[0,"model"]},{update:"ngModelChange"}),e.Ib(2048,null,r.o,null,[r.s]),e.qb(12,16384,null,0,r.p,[[4,r.o]],null,null),(n()(),e.gb(16777216,null,null,1,null,g)),e.qb(14,16384,null,0,u.n,[e.N,e.K],{ngIf:[0,"ngIf"]},null),(n()(),e.gb(16777216,null,null,1,null,f)),e.qb(16,16384,null,0,u.n,[e.N,e.K],{ngIf:[0,"ngIf"]},null)],(function(n,t){var l=t.component;n(t,2,0,l.selectedItem.details[0].topImg),n(t,7,0,"140"),n(t,10,0,l.content),n(t,14,0,!l.isLixi),n(t,16,0,l.isLixi)}),(function(n,t){var l=t.component;n(t,0,0,l.selectedItem.details[0].bgColor),n(t,3,0,l.baseUrl+l.selectedItem.details[0].bottomImg),n(t,5,0,e.Db(t,7).maxlength?e.Db(t,7).maxlength:null,e.Db(t,12).ngClassUntouched,e.Db(t,12).ngClassTouched,e.Db(t,12).ngClassPristine,e.Db(t,12).ngClassDirty,e.Db(t,12).ngClassValid,e.Db(t,12).ngClassInvalid,e.Db(t,12).ngClassPending)}))}function v(n){return e.Nb(0,[(n()(),e.rb(0,0,null,null,5,"div",[["class","item"]],[[2,"active",null]],[[null,"click"]],(function(n,t,l){var e=!0;return"click"===t&&(e=!1!==n.component.selectItem(n.context.$implicit)&&e),e}),null,null)),(n()(),e.rb(1,0,null,null,2,"div",[["class","img-container"]],null,null,null,null,null)),(n()(),e.rb(2,0,null,null,0,"img",[],[[8,"src",4]],null,null,null,null)),(n()(),e.rb(3,0,null,null,0,"i",[["class","fas fa-check-circle"]],[[2,"isLixi",null]],null,null,null,null)),(n()(),e.rb(4,0,null,null,1,"div",[["class","name"]],null,null,null,null,null)),(n()(),e.Lb(5,null,["",""]))],null,(function(n,t){var l=t.component;n(t,0,0,l.selectedItem&&l.selectedItem.id==t.context.$implicit.id),n(t,2,0,l.baseUrl+t.context.$implicit.thumbImg),n(t,3,0,l.isLixi),n(t,5,0,l.isVietnamese?t.context.$implicit.nameVN:t.context.$implicit.nameEN)}))}function x(n){return e.Nb(0,[(n()(),e.rb(0,0,null,null,0,"img",[["class","btn-back"],["src","assets/icons/back-dark.svg"]],null,[[null,"click"]],(function(n,t,l){var e=!0;return"click"===t&&(e=!1!==n.component.back()&&e),e}),null,null))],null,null)}function I(n){return e.Nb(0,[(n()(),e.rb(0,0,null,null,0,"img",[["class","btn-close"],["src","assets/images/temp/close.svg"]],null,[[null,"click"]],(function(n,t,l){var e=!0;return"click"===t&&(e=!1!==n.component.back()&&e),e}),null,null))],null,null)}function k(n){return e.Nb(0,[e.Jb(671088640,1,{postcardComponent:0}),(n()(),e.rb(1,0,null,null,31,"app-modal",[],null,null,null,c.b,c.a)),e.qb(2,638976,null,0,a.a,[],{show:[0,"show"],isNotAllowOutSideValid:[1,"isNotAllowOutSideValid"]},null),(n()(),e.rb(3,0,null,0,19,"div",[],[[2,"d-none",null]],null,null,null,null)),(n()(),e.rb(4,0,null,null,3,"div",[["class","title"]],null,null,null,null,null)),(n()(),e.Lb(5,null,[" "," "])),e.Fb(131072,s.i,[s.j,e.h]),(n()(),e.rb(7,0,null,null,0,"img",[["class","btn-close"],["src","assets/images/temp/close.svg"]],null,[[null,"click"]],(function(n,t,l){var e=!0;return"click"===t&&(e=!1!==n.component.closeBtnClicked()&&e),e}),null,null)),(n()(),e.gb(16777216,null,null,1,null,C)),e.qb(9,16384,null,0,u.n,[e.N,e.K],{ngIf:[0,"ngIf"]},null),(n()(),e.rb(10,0,null,null,2,"div",[["class","text-center fw-500 txt-16 mt-3"]],null,null,null,null,null)),(n()(),e.Lb(11,null,[" "," "])),e.Fb(131072,s.i,[s.j,e.h]),(n()(),e.rb(13,0,null,null,2,"div",[["class","list-sticker"]],null,null,null,null,null)),(n()(),e.gb(16777216,null,null,1,null,v)),e.qb(15,278528,null,0,u.m,[e.N,e.K,e.q],{ngForOf:[0,"ngForOf"]},null),(n()(),e.rb(16,0,null,null,6,"div",[["class","my-4 text-center"]],null,null,null,null,null)),(n()(),e.rb(17,0,null,null,2,"button",[["class","btn btn-secondary text-capitalize"],["style","width: 200px;"]],null,[[null,"click"]],(function(n,t,l){var e=!0;return"click"===t&&(e=!1!==n.component.showDetails(!0)&&e),e}),null,null)),(n()(),e.Lb(18,null,["",""])),e.Fb(131072,s.i,[s.j,e.h]),(n()(),e.rb(20,0,null,null,2,"button",[["class","btn btn-primary ml-3"],["style","width: 200px;"]],null,[[null,"click"]],(function(n,t,l){var e=!0;return"click"===t&&(e=!1!==n.component.finish()&&e),e}),null,null)),(n()(),e.Lb(21,null,["",""])),e.Fb(131072,s.i,[s.j,e.h]),(n()(),e.rb(23,0,null,0,9,"div",[],[[2,"d-none",null]],null,null,null,null)),(n()(),e.rb(24,0,null,null,6,"div",[["class","title"]],null,null,null,null,null)),(n()(),e.Lb(25,null,[" "," "])),e.Fb(131072,s.i,[s.j,e.h]),(n()(),e.gb(16777216,null,null,1,null,x)),e.qb(28,16384,null,0,u.n,[e.N,e.K],{ngIf:[0,"ngIf"]},null),(n()(),e.gb(16777216,null,null,1,null,I)),e.qb(30,16384,null,0,u.n,[e.N,e.K],{ngIf:[0,"ngIf"]},null),(n()(),e.rb(31,0,null,null,1,"app-postcard",[],null,null,null,d.b,d.a)),e.qb(32,114688,[[1,4],["postcard",4]],0,m.a,[h.a],null,null)],(function(n,t){var l=t.component;n(t,2,0,l.isShow,!0),n(t,9,0,l.selectedItem),n(t,15,0,l.list),n(t,28,0,l.isBackToList),n(t,30,0,!l.isBackToList),n(t,32,0)}),(function(n,t){var l=t.component;n(t,3,0,"LIST"!=l.step),n(t,5,0,e.Mb(t,5,0,e.Db(t,6).transform(l.isLixi?"txt_postcard_12":"txt_postcard_13"))),n(t,11,0,e.Mb(t,11,0,e.Db(t,12).transform(l.isLixi?"txt_postcard_17":"txt_postcard_18"))),n(t,18,0,e.Mb(t,18,0,e.Db(t,19).transform("txt_postcard_19"))),n(t,21,0,e.Mb(t,21,0,e.Db(t,22).transform("txt_postcard_20"))),n(t,23,0,"DETAILS"!=l.step),n(t,25,0,e.Mb(t,25,0,e.Db(t,26).transform(l.isBackToList?"txt_postcard_19":l.isLixi?"txt_postcard_3":"txt_postcard_21")))}))}},"0S3U":function(n,t,l){"use strict";var e=l("8Y7J"),i=l("4lR6"),o=l("i2XX"),s=l("TSSN"),u=l("SVse"),r=l("2bj0");l("wIGQ"),l("oUVn"),l.d(t,"a",(function(){return c})),l.d(t,"b",(function(){return g}));var c=e.pb({encapsulation:0,styles:[[".preview[_ngcontent-%COMP%]{position:relative}.preview[_ngcontent-%COMP%] .top-img[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;max-width:100%}.preview[_ngcontent-%COMP%] .bottom-img[_ngcontent-%COMP%]{position:absolute;bottom:0;left:0;width:100%;max-width:100%}.details-info[_ngcontent-%COMP%]{position:absolute;top:70px;left:0;width:100%;text-align:center;color:#42236a}.round-border[_ngcontent-%COMP%]{border-radius:5px}"]],data:{}});function a(n){return e.Nb(0,[(n()(),e.rb(0,0,null,null,1,null,null,null,null,null,null,null)),(n()(),e.rb(1,0,null,null,0,"img",[["class","top-img"]],[[8,"src",4]],null,null,null,null))],null,(function(n,t){var l=t.component;n(t,1,0,l.baseUrl+l.postcardDetails.postcard.topImg)}))}function d(n){return e.Nb(0,[(n()(),e.rb(0,0,null,null,1,"app-avatar",[],null,null,null,i.b,i.a)),e.qb(1,114688,null,0,o.a,[],{size:[0,"size"],name:[1,"name"]},null)],(function(n,t){n(t,1,0,50,t.component.fullName)}),null)}function m(n){return e.Nb(0,[(n()(),e.rb(0,0,null,null,0,"img",[["height","50"],["src","assets/images/logo-round.svg"],["width","50"]],null,null,null,null,null))],null,null)}function h(n){return e.Nb(0,[(n()(),e.rb(0,0,null,null,2,"div",[["class","mt-4"]],null,null,null,null,null)),(n()(),e.Lb(1,null,[" "," "])),e.Fb(131072,s.i,[s.j,e.h])],null,(function(n,t){var l=t.component;n(t,1,0,e.Mb(t,1,0,e.Db(t,2).transform(l.isSender?"txt_postcard_8":"txt_postcard_9")))}))}function p(n){return e.Nb(0,[(n()(),e.rb(0,0,null,null,2,"div",[["class","mt-4"]],null,null,null,null,null)),(n()(),e.Lb(1,null,[" "," "])),e.Fb(131072,s.i,[s.j,e.h])],null,(function(n,t){var l=t.component;n(t,1,0,e.Mb(t,1,0,e.Db(t,2).transform(l.isSender?"txt_postcard_10":"txt_postcard_11")))}))}function b(n){return e.Nb(0,[(n()(),e.rb(0,0,null,null,20,"div",[["class","preview"],["style","height: 672px;"]],[[2,"round-border",null],[4,"background-color",null]],null,null,null,null)),(n()(),e.gb(16777216,null,null,1,null,a)),e.qb(2,16384,null,0,u.n,[e.N,e.K],{ngIf:[0,"ngIf"]},null),(n()(),e.rb(3,0,null,null,0,"img",[["class","bottom-img"]],[[8,"src",4]],null,null,null,null)),(n()(),e.rb(4,0,null,null,16,"div",[["class","details-info"]],null,null,null,null,null)),(n()(),e.rb(5,0,null,null,4,"div",[],null,null,null,null,null)),(n()(),e.gb(16777216,null,null,1,null,d)),e.qb(7,16384,null,0,u.n,[e.N,e.K],{ngIf:[0,"ngIf"]},null),(n()(),e.gb(16777216,null,null,1,null,m)),e.qb(9,16384,null,0,u.n,[e.N,e.K],{ngIf:[0,"ngIf"]},null),(n()(),e.gb(16777216,null,null,1,null,h)),e.qb(11,16384,null,0,u.n,[e.N,e.K],{ngIf:[0,"ngIf"]},null),(n()(),e.gb(16777216,null,null,1,null,p)),e.qb(13,16384,null,0,u.n,[e.N,e.K],{ngIf:[0,"ngIf"]},null),(n()(),e.rb(14,0,null,null,1,"div",[["class","mt-1 fw-500 txt-16 text-uppercase"]],null,null,null,null,null)),(n()(),e.Lb(15,null,[" "," "])),(n()(),e.rb(16,0,null,null,2,"div",[["class","mt-1"],["style","font-size: 30px"]],null,null,null,null,null)),(n()(),e.Lb(17,null,[" "," VND "])),e.Hb(18,2),(n()(),e.rb(19,0,null,null,1,"div",[["class","mt-4 px-3 fw-500 txt-16"],["style","white-space: pre-wrap;"]],null,null,null,null,null)),(n()(),e.Lb(20,null,[" "," "]))],(function(n,t){var l=t.component;n(t,2,0,l.postcardDetails.postcard.topImg),n(t,7,0,l.fullName),n(t,9,0,!l.fullName),n(t,11,0,!l.isLixi),n(t,13,0,l.isLixi)}),(function(n,t){var l=t.component;n(t,0,0,l.roundBorder,l.postcardDetails.postcard.bgColor),n(t,3,0,l.baseUrl+l.postcardDetails.postcard.bottomImg),n(t,15,0,l.fullName?l.fullName:"--");var i=l.postcardDetails.amount?e.Mb(t,17,0,n(t,18,0,e.Db(t.parent,0),l.postcardDetails.amount,"VND")):"--";n(t,17,0,i),n(t,20,0,l.postcardDetails.postcard.content)}))}function g(n){return e.Nb(0,[e.Fb(0,r.a,[]),(n()(),e.gb(16777216,null,null,1,null,b)),e.qb(2,16384,null,0,u.n,[e.N,e.K],{ngIf:[0,"ngIf"]},null)],(function(n,t){n(t,2,0,t.component.postcardDetails)}),null)}},CXuL:function(n,t,l){"use strict";l.d(t,"a",(function(){return c}));var e=l("Xwc5"),i=l("2Vo4"),o=l("sDGj"),s=l("Fo8p"),u=l("8Y7J"),r=l("oUVn");let c=(()=>{class n{constructor(n){this.commonService=n,this.accountContacts=[],this.receivedContacts=[],this.bankContacts=[],this.provinceContacts=[],this.isSearchedValid=!0,this.isChooseBankValid=!1,this.isFormatATMCardValid=!1,this.isNAPASErrorValid=!1,this.isQuickTransferValid=!1,this.isCheckCITADValid=!1,this.selectedContact=null,this.modalType=0,this.quickLink$=new i.a(null)}getPeriodicSettingList(n,t){this.commonService.callApi({url:e.a.FT_LIST_PERIODIC_OF_CIF,method:"get",data:null,progress:!1,success:n,error:t})}convertStringToIndochinaTime(n){const t=n.split("-");return new Date(parseInt(t[0]),parseInt(t[1])-1,parseInt(t[2]))}convertToRangeTime(n){return{begin:this.convertStringToIndochinaTime(n.startDate),end:this.convertStringToIndochinaTime(n.endDate)}}handleSaveContact(n,t,l){if(!t)return l(!1);this.saveContact(n,n=>l(n))}saveContact(n,t){this.commonService.callApi({url:e.a.FT_SAVE_CONTACT,method:"post",data:n,success:n=>{t(!0)},error:n=>{console.log(n),t(!1)}})}checkQuickTransferPhoneNumber(n,t){this.commonService.callApi({method:s.a.POST,url:e.a.CREDITOR_INFO_GENERAL,data:{creditorAccountNumber:n.phoneNumber},success:l=>{n.accountNumber=l.creditorInfo.accountNumber,n.creditorName=l.creditorInfo.name,t(n)},error:n=>{this.commonService.showApiError(n)}})}checkQuickTransferAliasName(n,t){this.commonService.callApi({method:s.a.POST,url:e.a.CREDITOR_INFO_GENERAL,data:{creditorAccountNumber:n.aliasName},success:l=>{n.accountNumber=l.creditorInfo.accountNumber,n.creditorName=l.creditorInfo.name,t(n)},error:n=>{this.commonService.showApiError(n)}})}setAccountContacts(n){this.accountContacts=n}setReceivedContacts(n){this.receivedContacts=n}setBankContacts(n){this.bankContacts=n}getAccountContacts(){return this.accountContacts}getBankContacts(){return this.bankContacts}getReceivedContacts(){return this.receivedContacts}getSearchingStatus(){return this.isSearchedValid}setSearchingStatus(n){this.isSearchedValid=n}getFormatATMCardValid(){return this.isFormatATMCardValid}setQuickTransferValid(n){this.isQuickTransferValid=n}getQuickTransferValid(){return this.isQuickTransferValid}setFormatATMCardValid(n){this.isFormatATMCardValid=n}getNAPASErrorStatus(){return this.isNAPASErrorValid}setNAPASErrorStatus(n){this.isNAPASErrorValid=n}setProvincesContacts(n){this.provinceContacts=n}getProvincesContacts(){return this.provinceContacts}getData(n,t,l){this.commonService.callApi({method:n,url:t,success:n=>{l(n)}})}isSupportedNAPASValid(n){let t=!1;return this.bankContacts.forEach(l=>{l.bankId===n&&l.napasSupported&&(t=!0)}),t}getBankByBankId(n){for(let t=0;t{t+=n+" "}),t=t.slice(0,-1),t}formatATMCard(n){let t="",l=n.trim().replace(/[^0-9*]/g,"");return l=l.match(/.{1,4}/g)||[],l.forEach(n=>{t+=n+" "}),t=t.slice(0,-1),t}}return n.ngInjectableDef=u.Rb({factory:function(){return new n(u.Sb(r.a))},token:n,providedIn:"root"}),n})()},FaAV:function(n,t,l){"use strict";var e=l("8Y7J"),i=l("SVse");l("wiW3"),l.d(t,"a",(function(){return o})),l.d(t,"b",(function(){return u}));var o=e.pb({encapsulation:0,styles:[[".coach-mark[_ngcontent-%COMP%]{width:368px;background-color:#7b35bb;color:#fff;box-shadow:0 0 40px rgba(0,0,0,.1);border-radius:5px;padding:16px;font-size:12px;position:relative;display:flex;flex-wrap:nowrap;align-items:center}.arrow-icon[_ngcontent-%COMP%]{left:28px;bottom:-5px;transform:rotate(45deg);position:absolute;color:#7b35bb}"]],data:{}});function s(n){return e.Nb(0,[(n()(),e.rb(0,0,null,null,5,"div",[["class","coach-mark"]],null,null,null,null,null)),(n()(),e.rb(1,0,null,null,1,"div",[["style","width: 235px;"]],null,null,null,null,null)),e.Cb(null,0),(n()(),e.rb(3,0,null,null,1,"div",[["class","text-center"],["style","flex-grow: 1"]],null,null,null,null,null)),(n()(),e.rb(4,0,null,null,0,"img",[["src","assets/images/tips.svg"]],null,null,null,null,null)),(n()(),e.rb(5,0,null,null,0,"i",[["class","fas fa-square-full arrow-icon"]],[[4,"top",null],[4,"left",null],[4,"right",null],[4,"bottom",null]],null,null,null,null))],null,(function(n,t){var l=t.component;n(t,5,0,l.arrowTop,l.arrowLeft,l.arrowRight,l.arrowBottom)}))}function u(n){return e.Nb(0,[(n()(),e.gb(16777216,null,null,1,null,s)),e.qb(1,16384,null,0,i.n,[e.N,e.K],{ngIf:[0,"ngIf"]},null)],(function(n,t){n(t,1,0,t.component.isShow)}),null)}},UoLF:function(n,t,l){"use strict";var e=l("8Y7J");l("yKQa"),l("oUVn"),l.d(t,"a",(function(){return i})),l.d(t,"b",(function(){return o}));var i=e.pb({encapsulation:0,styles:[[""]],data:{}});function o(n){return e.Nb(0,[(n()(),e.rb(0,0,null,null,0,"img",[["src","./assets/images/transfer/icons-copy.svg"]],null,[[null,"click"]],(function(n,t,l){var e=!0;return"click"===t&&(e=!1!==n.component.copyLink()&&e),e}),null,null))],null,null)}},"eN/m":function(n,t,l){"use strict";l.d(t,"a",(function(){return i}));var e=l("8Y7J");class i{constructor(n,t,l){this.commonService=n,this.langService=t,this.configService=l,this.isShow=!1,this.isBackToList=!1,this.step="LIST",this.list=[],this.selectedItem=null,this.confirmedSelectedItem=null,this.baseUrl="",this.isVietnamese=!0,this.content="",this.confirmedContent="",this.contentChanged=!1,this.fullName="",this.amount="",this.isLixi=!1,this.checkPostCard=!1,this.closeEvent=new e.m}ngOnInit(){this.configService.loadActivityServices(()=>{this.checkPostCard=!!this.configService.checkPostCard}),this.baseUrl=this.commonService.getBaseUrl(),this.isVietnamese=this.langService.isVietnamese(),this.isLixi=this.configService.hasLixiPostcard}closeBtnClicked(){this.content===(this.isVietnamese?this.selectedItem.details[0].contentVn:this.selectedItem.details[0].contentEn)?this.isShow=!1:this.commonService.showModal({title:this.isLixi?"txt_postcard_22":"txt_postcard_23",content:"txt_postcard_24",negativeBtn:"txt_postcard_25",positiveBtn:"txt_postcard_26",positiveCallback:()=>{this.isShow=!1},negativeCallback:()=>{}})}finish(){this.confirmedSelectedItem=this.selectedItem,this.confirmedContent=this.content,this.isShow=!1,this.closeEvent.emit()}showStep(n){this.step=n,this.isShow=!0}showList(){if(this.list&&this.list.length>0)return this.selectedItem||this.selectItem(this.list[0]),void this.showStep("LIST");let n=this.isLixi?"LUCKY_MONEY":"";this.checkPostCard&&(n="POSTCARD_NOEL"),this.commonService.callApi({method:"get",url:"tpb-targeting-presentation-service/v1/postcard?type="+n,success:n=>{this.list=n.postcard,this.selectItem(this.list[0]),this.showStep("LIST")}})}showDetails(n,t=null,l=!0){this.isBackToList=n,t||(t={receiverName:this.fullName,amount:this.amount,postcard:Object.assign({},this.selectedItem.details[0],{content:this.content,type:this.selectedItem.type})}),this.isLixi="LUCKY_MONEY"===t.postcard.type,this.postcardComponent.setData(t,l),this.showStep("DETAILS")}selectItem(n){this.selectedItem=n,this.contentChanged||(this.content=this.isVietnamese?n.details[0].contentVn:n.details[0].contentEn)}clearSelected(){this.selectedItem=null,this.confirmedSelectedItem=null}back(){this.isBackToList?this.showStep("LIST"):this.isShow=!1}haveData(){return!!this.confirmedSelectedItem}getData(){return this.haveData()?{content:this.confirmedContent,type:this.confirmedSelectedItem.type,bgColor:this.confirmedSelectedItem.details[0].bgColor,topImg:this.confirmedSelectedItem.details[0].topImg,bottomImg:this.confirmedSelectedItem.details[0].bottomImg,bgTopImg:this.confirmedSelectedItem.details[0].bgTopImg,bgBottomImg:this.confirmedSelectedItem.details[0].bgBottomImg}:null}setData(n){this.selectedItem={type:n.type,details:[{bgColor:n.bgColor,topImg:n.topImg,bottomImg:n.bottomImg,bgTopImg:n.bgTopImg,bgBottomImg:n.bgBottomImg}]},this.content=n.content,this.fullName=n.fullName,this.amount=n.amount,this.confirmedSelectedItem=this.selectedItem,this.confirmedContent=this.content}}},wIGQ:function(n,t,l){"use strict";l.d(t,"a",(function(){return e}));class e{constructor(n){this.commonService=n,this.postcardDetails=null,this.baseUrl="",this.fullName="",this.isSender=!0,this.isLixi=!1,this.roundBorder=!1}ngOnInit(){this.baseUrl=this.commonService.getBaseUrl()}setData(n,t){this.isSender=t,this.fullName=this.isSender?n.receiverName:n.senderName,this.postcardDetails=n,this.isLixi="LUCKY_MONEY"===n.postcard.type}}},wiW3:function(n,t,l){"use strict";l.d(t,"a",(function(){return e}));class e{constructor(n,t){this.eRef=n,this.cdRef=t,this.arrowTop="",this.arrowLeft="",this.arrowBottom="",this.arrowRight="",this.key="",this.isShow=!1}ngOnInit(){}ngAfterViewInit(){setTimeout(()=>{let n=localStorage.getItem("seen-coach-mark-"+this.key);this.isShow="1"!==n,this.cdRef.detectChanges()},500)}documentClicked(n){this.isShow&&!this.eRef.nativeElement.contains(n.target)&&(this.isShow=!1,localStorage.setItem("seen-coach-mark-"+this.key,"1"))}}},yKQa:function(n,t,l){"use strict";l.d(t,"a",(function(){return e}));class e{constructor(n){this.commonService=n}ngOnInit(){}copyLink(){const n=t=>{t.clipboardData.setData("text/plain",this.data),t.preventDefault(),document.removeEventListener("copy",n)};document.addEventListener("copy",n),document.execCommand("copy"),this.commonService.showSnackbar({text:"\u0110\xe3 sao ch\xe9p v\xe0o b\u1ed9 nh\u1edb \u0111\u1ec7m",bgColor:"#5C6370",iconColor:"#41CC70"})}}}}]);