-
Notifications
You must be signed in to change notification settings - Fork 0
/
4375.470f7f2142121938.js
1 lines (1 loc) · 145 KB
/
4375.470f7f2142121938.js
1
"use strict";(self.webpackChunkcheapflightclient=self.webpackChunkcheapflightclient||[]).push([[4375],{14375:(j,J,c)=>{c.r(J),c.d(J,{CreateDiscountFeePageComponent:()=>Nt,DiscountFeeManagePageComponent:()=>Ot,EditDiscountFeePageComponent:()=>Me});var h=c(36895),r=c(24006),A=c(83700),f=c(87683),b=c(88516),T=c(72506),E=c(44143),P=c(17736),g=c(19123),F=c(74713),N=c(67460),B=c(34541),U=c(28746),K=c(50633),D=c(15439),t=c(94650),w=c(82761),G=c(28050);function et(u,s){if(1&u&&t._UZ(0,"cf-input-hint",50),2&u){const e=t.oxw(2);t.Q6J("hint",e.errorMessage.airline)}}const I=function(){return[]};function it(u,s){if(1&u){const e=t.EpF();t.TgZ(0,"div",11)(1,"div",51)(2,"cf-multi-select",52),t.NdJ("valueChange",function(n){t.CHM(e);const o=t.oxw(2);return t.KtG(o.onPointChange(n,"startPointDetails"))})("selectedChange",function(n){t.CHM(e);const o=t.oxw(2);return t.KtG(o.onSelectedChange("startPointDetails",n))}),t.TgZ(3,"label",16),t._uU(4," \u0110i\u1ec3m \u0111i "),t.qZA()(),t.TgZ(5,"button",53),t.NdJ("click",function(){t.CHM(e);const n=t.oxw(2);return t.KtG(n.swapPoint(n.discountConditionForm.controls.startPointDetails,n.discountConditionForm.controls.endPointDetails))}),t._UZ(6,"cf-icon",54),t.qZA(),t.TgZ(7,"cf-multi-select",55),t.NdJ("selectedChange",function(n){t.CHM(e);const o=t.oxw(2);return t.KtG(o.onSelectedChange("endPointDetails",n))})("valueChange",function(n){t.CHM(e);const o=t.oxw(2);return t.KtG(o.onPointChange(n,"endPointDetails"))}),t.TgZ(8,"label",16),t._uU(9," \u0110i\u1ec3m \u0111\u1ebfn "),t.qZA()()(),t.TgZ(10,"div")(11,"cf-select",56)(12,"label",16),t._uU(13," Lo\u1ea1i ch\u1eb7ng bay "),t.qZA()()()()}if(2&u){const e=t.oxw(2),i=t.MAs(8);t.xp6(2),t.Q6J("status","default")("data",e.airportOptions||t.DdM(19,I))("allowSearch",!0)("placeholder",e.discountConditionForm.controls.startPointDetails?"Ch\u1ecdn m\xe3 s\xe2n bay":"Ch\u1ecdn m\xe3 s\xe2n bay ho\u1eb7c b\u1ecf tr\u1ed1ng cho t\u1ea5t c\u1ea3")("customSearch",e.positionSearchCustom)("formControl",e.discountConditionForm.controls.startPointDetails)("maxHeight",230)("optionTmp",i),t.xp6(5),t.Q6J("status","default")("data",e.airportOptions||t.DdM(20,I))("allowSearch",!0)("placeholder",e.discountConditionForm.controls.endPointDetails?"Ch\u1ecdn m\xe3 s\xe2n bay":"Ch\u1ecdn m\xe3 s\xe2n bay ho\u1eb7c b\u1ecf tr\u1ed1ng cho t\u1ea5t c\u1ea3")("formControl",e.discountConditionForm.controls.endPointDetails)("maxHeight",230)("optionTmp",i),t.xp6(4),t.Q6J("status","default")("data",e.classifyListDomestic)("allowSearch",!1)("formControl",e.discountConditionForm.controls.journeyClassify)}}function nt(u,s){if(1&u){const e=t.EpF();t.TgZ(0,"div",60)(1,"cf-multi-select",61),t.NdJ("valueChange",function(n){t.CHM(e);const o=t.oxw(3);return t.KtG(o.onPointChange(n,"startPointDetails"))})("selectedChange",function(n){t.CHM(e);const o=t.oxw(3);return t.KtG(o.onSelectedChange("startPointDetails",n))}),t.TgZ(2,"label",16),t._uU(3," \u0110i\u1ec3m \u0111i "),t.qZA()(),t.TgZ(4,"button",53),t.NdJ("click",function(){t.CHM(e);const n=t.oxw(3);return t.KtG(n.swapPoint(n.discountConditionForm.controls.startPointDetails,n.discountConditionForm.controls.endPointDetails))}),t._UZ(5,"cf-icon",54),t.qZA(),t.TgZ(6,"cf-multi-select",61),t.NdJ("valueChange",function(n){t.CHM(e);const o=t.oxw(3);return t.KtG(o.onPointChange(n,"endPointDetails"))})("selectedChange",function(n){t.CHM(e);const o=t.oxw(3);return t.KtG(o.onSelectedChange("endPointDetails",n))}),t.TgZ(7,"label",16),t._uU(8," \u0110i\u1ec3m \u0111\u1ebfn "),t.qZA()()()}if(2&u){const e=t.oxw(3),i=t.MAs(8);t.xp6(1),t.Q6J("status","default")("data",e.airportOptions||t.DdM(14,I))("allowSearch",!0)("placeholder",e.discountConditionForm.controls.startPointDetails?"Ch\u1ecdn m\xe3 s\xe2n bay":"Ch\u1ecdn m\xe3 s\xe2n bay ho\u1eb7c b\u1ecf tr\u1ed1ng cho t\u1ea5t c\u1ea3")("formControl",e.discountConditionForm.controls.startPointDetails)("maxHeight",230)("optionTmp",i),t.xp6(5),t.Q6J("status","default")("data",e.airportOptions||t.DdM(15,I))("allowSearch",!0)("placeholder",e.discountConditionForm.controls.endPointDetails?"Ch\u1ecdn m\xe3 s\xe2n bay":"Ch\u1ecdn m\xe3 s\xe2n bay ho\u1eb7c b\u1ecf tr\u1ed1ng cho t\u1ea5t c\u1ea3")("formControl",e.discountConditionForm.controls.endPointDetails)("maxHeight",230)("optionTmp",i)}}function ot(u,s){if(1&u){const e=t.EpF();t.TgZ(0,"div",26)(1,"cf-multi-select",62),t.NdJ("selectedChange",function(n){t.CHM(e);const o=t.oxw(3);return t.KtG(o.onSelectedChange("startPointDetails",n))}),t.TgZ(2,"label",16),t._uU(3," \u0110i\u1ec3m \u0111i "),t.qZA()(),t.TgZ(4,"button",53),t.NdJ("click",function(){t.CHM(e);const n=t.oxw(3);return t.KtG(n.swapPoint(n.discountConditionForm.controls.startPointDetails,n.discountConditionForm.controls.endPointDetails))}),t._UZ(5,"cf-icon",54),t.qZA(),t.TgZ(6,"cf-multi-select",62),t.NdJ("selectedChange",function(n){t.CHM(e);const o=t.oxw(3);return t.KtG(o.onSelectedChange("endPointDetails",n))}),t.TgZ(7,"label",16),t._uU(8," \u0110i\u1ec3m \u0111\u1ebfn "),t.qZA()()()}if(2&u){const e=t.oxw(3);t.xp6(1),t.Q6J("status","default")("data",e.countryOptions||t.DdM(10,I))("allowSearch",!0)("formControl",e.discountConditionForm.controls.startPointDetails)("maxHeight",230),t.xp6(5),t.Q6J("status","default")("data",e.countryOptions||t.DdM(11,I))("allowSearch",!0)("formControl",e.discountConditionForm.controls.endPointDetails)("maxHeight",230)}}function ut(u,s){if(1&u){const e=t.EpF();t.TgZ(0,"div",60)(1,"cf-multi-select",63),t.NdJ("selectedChange",function(n){t.CHM(e);const o=t.oxw(3);return t.KtG(o.onSelectedChange("startPointDetails",n))}),t.TgZ(2,"label",16),t._uU(3," \u0110i\u1ec3m \u0111i "),t.qZA()(),t.TgZ(4,"button",53),t.NdJ("click",function(){t.CHM(e);const n=t.oxw(3);return t.KtG(n.swapPoint(n.discountConditionForm.controls.startPointDetails,n.discountConditionForm.controls.endPointDetails))}),t._UZ(5,"cf-icon",54),t.qZA(),t.TgZ(6,"cf-multi-select",63),t.NdJ("selectedChange",function(n){t.CHM(e);const o=t.oxw(3);return t.KtG(o.onSelectedChange("endPointDetails",n))}),t.TgZ(7,"label",16),t._uU(8," \u0110i\u1ec3m \u0111\u1ebfn "),t.qZA()()()}if(2&u){const e=t.oxw(3);t.xp6(1),t.Q6J("status","default")("data",e.areaOptions||t.DdM(10,I))("allowSearch",!0)("formControl",e.discountConditionForm.controls.startPointDetails)("maxHeight",230),t.xp6(5),t.Q6J("status","default")("data",e.areaOptions||t.DdM(11,I))("allowSearch",!0)("formControl",e.discountConditionForm.controls.endPointDetails)("maxHeight",230)}}function at(u,s){if(1&u){const e=t.EpF();t.TgZ(0,"div",11)(1,"cf-radio-group",57),t.NdJ("checkChange",function(n){t.CHM(e);const o=t.oxw(2);return t.KtG(o.onChangeJourneyType(n))}),t.TgZ(2,"cf-radio",22),t._uU(3,"Theo s\xe2n bay"),t.qZA(),t.TgZ(4,"cf-radio",22),t._uU(5,"Theo qu\u1ed1c gia"),t.qZA(),t.TgZ(6,"cf-radio",22),t._uU(7,"Theo khu v\u1ef1c"),t.qZA()(),t.TgZ(8,"div",11),t.YNc(9,nt,9,16,"div",58),t.YNc(10,ot,9,12,"div",23),t.YNc(11,ut,9,12,"div",58),t.TgZ(12,"div")(13,"cf-select",59)(14,"label",16),t._uU(15," Lo\u1ea1i ch\u1eb7ng bay "),t.qZA()()()()()}if(2&u){const e=t.oxw(2);t.xp6(1),t.Q6J("formControl",e.discountConditionForm.controls.journeyType),t.xp6(1),t.Q6J("value","AIRPORT"),t.xp6(2),t.Q6J("value","NATIONAL"),t.xp6(2),t.Q6J("value","AREA"),t.xp6(3),t.Q6J("ngIf","AIRPORT"===e.journeyType),t.xp6(1),t.Q6J("ngIf","NATIONAL"===e.journeyType),t.xp6(1),t.Q6J("ngIf","AREA"===e.journeyType),t.xp6(2),t.Q6J("status","default")("data",e.classifyListInternational)("allowSearch",!1)("formControl",e.discountConditionForm.controls.journeyClassify)}}function st(u,s){if(1&u&&(t.TgZ(0,"div")(1,"cf-input-group",27)(2,"label",16),t._uU(3," T\u1ed5ng s\u1ed1 h\xe0nh kh\xe1ch t\u1ed1i thi\u1ec3u "),t.qZA(),t._UZ(4,"input",64),t.qZA()()),2&u){const e=t.oxw(2);t.xp6(1),t.Q6J("status","default"),t.xp6(3),t.Q6J("formControl",e.discountConditionForm.controls.totalPax)}}function rt(u,s){if(1&u&&(t.TgZ(0,"div",26)(1,"cf-input-group",27)(2,"label",16)(3,"span",65),t._uU(4,"Ng\u01b0\u1eddi l\u1edbn (ADT)"),t.qZA()(),t._UZ(5,"input",66),t.qZA(),t.TgZ(6,"cf-input-group",27)(7,"label",16)(8,"span",65),t._uU(9,"Tr\u1ebb em (CHD)"),t.qZA()(),t._UZ(10,"input",66),t.qZA(),t.TgZ(11,"cf-input-group",27)(12,"label",16)(13,"span",65),t._uU(14,"Em b\xe9 (IFN)"),t.qZA()(),t._UZ(15,"input",66),t.qZA()()),2&u){const e=t.oxw(2);t.xp6(1),t.Q6J("status","default"),t.xp6(2),t.Q6J("CfRequired",!0),t.xp6(2),t.Q6J("formControl",e.discountConditionForm.controls.adtNum),t.xp6(1),t.Q6J("status","default"),t.xp6(2),t.Q6J("CfRequired",!0),t.xp6(2),t.Q6J("formControl",e.discountConditionForm.controls.chdNum),t.xp6(1),t.Q6J("status","default"),t.xp6(2),t.Q6J("CfRequired",!0),t.xp6(2),t.Q6J("formControl",e.discountConditionForm.controls.infNum)}}function lt(u,s){if(1&u&&t._UZ(0,"cf-input-hint",50),2&u){const e=t.oxw(2);t.Q6J("hint",e.errorMessage.startTimeIssue)}}function ct(u,s){1&u&&t._UZ(0,"cf-input-hint",50),2&u&&t.Q6J("hint","Th\u1eddi gian xu\u1ea5t v\xe9 ph\u1ea3i b\u1eaft \u0111\u1ea7u t\u1eeb h\xf4m nay")}function dt(u,s){if(1&u&&t._UZ(0,"cf-input-hint",50),2&u){const e=t.oxw(2);t.Q6J("hint",e.errorMessage.endTimeIssue)}}function pt(u,s){1&u&&(t.TgZ(0,"div",67),t._uU(1," T\xf9y ch\u1ec9nh th\u1eddi gian lo\u1ea1i tr\u1eeb "),t.qZA())}function _t(u,s){if(1&u){const e=t.EpF();t.TgZ(0,"div",60)(1,"cf-input-group",27),t._UZ(2,"cf-icon",28),t.TgZ(3,"label",29),t._uU(4," Lo\u1ea1i tr\u1eeb t\u1eeb ng\xe0y "),t.qZA(),t.TgZ(5,"input",68,31),t.NdJ("input",function(){t.CHM(e);const n=t.MAs(6);return t.KtG(n.close())})("dateSelect",function(){t.CHM(e);const n=t.MAs(6);return t.KtG(n.close())}),t.qZA()(),t.TgZ(7,"cf-input-group",27),t._UZ(8,"cf-icon",28),t.TgZ(9,"label",29),t._uU(10," Lo\u1ea1i tr\u1eeb \u0111\u1ebfn ng\xe0y "),t.qZA(),t.TgZ(11,"input",68,31),t.NdJ("input",function(){t.CHM(e);const n=t.MAs(6);return t.KtG(n.close())})("dateSelect",function(){t.CHM(e);const n=t.MAs(6);return t.KtG(n.close())}),t.qZA()(),t.TgZ(13,"div",69),t.NdJ("click",function(){const o=t.CHM(e).index,a=t.oxw(2);return t.KtG(a.onRemoveTimeIssue(o))}),t._UZ(14,"cf-icon",70),t.qZA()()}if(2&u){const e=s.$implicit;t.xp6(1),t.Q6J("status",null!=e.controls&&e.controls.exceptStart.invalid&&(null!=e.controls&&e.controls.exceptStart.dirty||null!=e.controls&&e.controls.exceptStart.touched)?"error":"default"),t.xp6(2),t.Q6J("CfRequired",!0),t.xp6(2),t.Q6J("secondaryCalendar","lunar")("displayMonths",1)("formControl",null==e.controls?null:e.controls.exceptStart),t.xp6(2),t.Q6J("status",null!=e.controls&&e.controls.exceptEnd.invalid&&(null!=e.controls&&e.controls.exceptEnd.dirty||null!=e.controls&&e.controls.exceptEnd.touched)?"error":"default"),t.xp6(2),t.Q6J("CfRequired",!0),t.xp6(2),t.Q6J("secondaryCalendar","lunar")("displayMonths",1)("formControl",null==e.controls?null:e.controls.exceptEnd)}}function mt(u,s){if(1&u){const e=t.EpF();t.TgZ(0,"div",71)(1,"a",72),t.NdJ("click",function(){t.CHM(e);const n=t.oxw(2);return t.KtG(n.onAddTimeIssue())}),t._uU(2," Th\xeam th\u1eddi gian lo\u1ea1i tr\u1eeb "),t.qZA()()}}function ht(u,s){if(1&u&&t._UZ(0,"cf-input-hint",50),2&u){const e=t.oxw(2);t.Q6J("hint",e.errorMessage.startTimeFly)}}function gt(u,s){if(1&u&&t._UZ(0,"cf-input-hint",50),2&u){const e=t.oxw(2);t.Q6J("hint",e.errorMessage.endTimeFly)}}function ft(u,s){1&u&&(t.TgZ(0,"div",67),t._uU(1," T\xf9y ch\u1ec9nh th\u1eddi gian lo\u1ea1i tr\u1eeb "),t.qZA())}function Et(u,s){if(1&u){const e=t.EpF();t.TgZ(0,"div",60)(1,"cf-input-group",27),t._UZ(2,"cf-icon",28),t.TgZ(3,"label",29),t._uU(4," Lo\u1ea1i tr\u1eeb t\u1eeb ng\xe0y "),t.qZA(),t.TgZ(5,"input",68,31),t.NdJ("input",function(){t.CHM(e);const n=t.MAs(6);return t.KtG(n.close())})("dateSelect",function(){t.CHM(e);const n=t.MAs(6);return t.KtG(n.close())}),t.qZA()(),t.TgZ(7,"cf-input-group",27),t._UZ(8,"cf-icon",28),t.TgZ(9,"label",29),t._uU(10," Lo\u1ea1i tr\u1eeb \u0111\u1ebfn ng\xe0y "),t.qZA(),t.TgZ(11,"input",68,31),t.NdJ("input",function(){t.CHM(e);const n=t.MAs(6);return t.KtG(n.close())})("dateSelect",function(){t.CHM(e);const n=t.MAs(6);return t.KtG(n.close())}),t.qZA()(),t.TgZ(13,"div",69),t.NdJ("click",function(){const o=t.CHM(e).index,a=t.oxw(2);return t.KtG(a.onRemoveTimeFly(o))}),t._UZ(14,"cf-icon",70),t.qZA()()}if(2&u){const e=s.$implicit;t.xp6(1),t.Q6J("status",null!=e.controls&&e.controls.exceptStart.invalid&&(null!=e.controls&&e.controls.exceptStart.dirty||null!=e.controls&&e.controls.exceptStart.touched)?"error":"default"),t.xp6(2),t.Q6J("CfRequired",!0),t.xp6(2),t.Q6J("secondaryCalendar","lunar")("displayMonths",1)("formControl",null==e.controls?null:e.controls.exceptStart),t.xp6(2),t.Q6J("status",null!=e.controls&&e.controls.exceptEnd.invalid&&(null!=e.controls&&e.controls.exceptEnd.dirty||null!=e.controls&&e.controls.exceptEnd.touched)?"error":"default"),t.xp6(2),t.Q6J("CfRequired",!0),t.xp6(2),t.Q6J("secondaryCalendar","lunar")("displayMonths",1)("formControl",null==e.controls?null:e.controls.exceptEnd)}}function Ct(u,s){if(1&u){const e=t.EpF();t.TgZ(0,"div",71)(1,"a",72),t.NdJ("click",function(){t.CHM(e);const n=t.oxw(2);return t.KtG(n.onAddTimeFly())}),t._uU(2," Th\xeam th\u1eddi gian lo\u1ea1i tr\u1eeb "),t.qZA()()}}const V=function(u){return{"!bg-neutral-black !text-white border-none":u}};function Tt(u,s){if(1&u){const e=t.EpF();t.TgZ(0,"div",6)(1,"div",7)(2,"div",8)(3,"div",9),t._uU(4," \u0110i\u1ec1u ki\u1ec7n h\xe3ng bay "),t.qZA(),t.TgZ(5,"div",10),t._uU(6," H\xe3ng bay khai th\xe1c v\xe0 h\u1ea1ng gh\u1ebf "),t.qZA()(),t.TgZ(7,"div",11)(8,"cf-select",12),t.NdJ("selectedChange",function(n){t.CHM(e);const o=t.oxw();return t.KtG(o.onSelectedAirline(n.code))}),t.TgZ(9,"label",13),t._uU(10," H\xe3ng bay "),t.qZA(),t.YNc(11,et,1,1,"cf-input-hint",14),t.qZA(),t.TgZ(12,"cf-multi-select",15),t.NdJ("valueChange",function(n){t.CHM(e);const o=t.oxw();return t.KtG(o.onFareClassChange(n))}),t.TgZ(13,"label",16),t._uU(14," H\u1ea1ng \u0111\u1eb7t ch\u1ed7 "),t.qZA()()()(),t.TgZ(15,"div",7)(16,"div",8)(17,"div",9),t._uU(18," \u0110i\u1ec1u ki\u1ec7n h\xe0nh tr\xecnh "),t.qZA(),t.TgZ(19,"div",10),t._uU(20," H\xe0nh tr\xecnh bay \xe1p d\u1ee5ng, ch\u1ec9 \xe1p d\u1ee5ng cho h\xe0nh tr\xecnh m\u1ed9t chi\u1ec1u "),t.qZA()(),t.TgZ(21,"div",17)(22,"div",18)(23,"div",19),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.onSwitcJourney("DOMESTIC"))}),t.TgZ(24,"span"),t._uU(25,"Qu\u1ed1c n\u1ed9i"),t.qZA()(),t.TgZ(26,"div",19),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.onSwitcJourney("INTERNATIONAL"))}),t.TgZ(27,"span"),t._uU(28,"Qu\u1ed1c t\u1ebf"),t.qZA()()(),t.YNc(29,it,14,21,"div",20),t.YNc(30,at,16,11,"div",20),t.qZA()(),t.TgZ(31,"div",7)(32,"div",8)(33,"div",9),t._uU(34," \u0110i\u1ec1u ki\u1ec7n h\xe0nh kh\xe1ch "),t.qZA(),t.TgZ(35,"div",10),t._uU(36," Y\xeau c\u1ea7u v\u1ec1 s\u1ed1 l\u01b0\u1ee3ng h\xe0nh kh\xe1ch t\u1ed1i thi\u1ec3u "),t.qZA()(),t.TgZ(37,"div",11)(38,"cf-radio-group",21),t.NdJ("checkChange",function(n){t.CHM(e);const o=t.oxw();return t.KtG(o.onChangePaxType(n))})("ngModelChange",function(n){t.CHM(e);const o=t.oxw();return t.KtG(o.paxType=n)}),t.TgZ(39,"cf-radio",22),t._uU(40,"T\u1ed5ng h\xe0nh kh\xe1ch"),t.qZA(),t.TgZ(41,"cf-radio",22),t._uU(42,"T\u1eebng \u0111\u1ed1i t\u01b0\u1ee3ng h\xe0nh kh\xe1ch"),t.qZA()(),t.YNc(43,st,5,2,"div",4),t.YNc(44,rt,16,9,"div",23),t.qZA()(),t.TgZ(45,"div",24)(46,"div",25)(47,"div",9),t._uU(48," Th\u1eddi gian xu\u1ea5t v\xe9 "),t.qZA(),t.TgZ(49,"div",10),t._uU(50," Th\u1eddi gian xu\u1ea5t v\xe9 \xe1p d\u1ee5ng chi\u1ebft kh\u1ea5u, c\xf3 th\u1ec3 bao g\u1ed3m th\u1eddi gian lo\u1ea1i tr\u1eeb "),t.qZA()(),t.TgZ(51,"div",11)(52,"div",26)(53,"cf-input-group",27),t._UZ(54,"cf-icon",28),t.TgZ(55,"label",29),t._uU(56," T\u1eeb ng\xe0y "),t.qZA(),t.TgZ(57,"input",30,31),t.NdJ("input",function(){t.CHM(e);const n=t.MAs(58);return t.KtG(n.close())})("dateSelect",function(){t.CHM(e);const n=t.MAs(58);return t.KtG(n.close())}),t.qZA(),t.YNc(59,lt,1,1,"cf-input-hint",14),t.YNc(60,ct,1,1,"cf-input-hint",14),t.qZA(),t.TgZ(61,"cf-input-group",27),t._UZ(62,"cf-icon",28),t.TgZ(63,"label",29),t._uU(64," \u0110\u1ebfn ng\xe0y "),t.qZA(),t.TgZ(65,"input",30,32),t.NdJ("input",function(){t.CHM(e);const n=t.MAs(66);return t.KtG(n.close())})("dateSelect",function(){t.CHM(e);const n=t.MAs(66);return t.KtG(n.close())}),t.qZA(),t.YNc(67,dt,1,1,"cf-input-hint",14),t.qZA()()(),t.TgZ(68,"cf-collapse",33)(69,"cf-collapse-panel",34),t.YNc(70,pt,2,0,"ng-template",null,35,t.W1O),t.TgZ(72,"div",17)(73,"div",36)(74,"div",37)(75,"span",38),t._uU(76,"L\u01b0u \xfd khi t\xf9y ch\u1ec9nh th\u1eddi gian lo\u1ea1i tr\u1eeb"),t.qZA()(),t.TgZ(77,"div",39)(78,"div"),t._uU(79," Th\u1eddi gian lo\u1ea1i tr\u1eeb ph\u1ea3i x\u1ea3y ra trong kho\u1ea3ng th\u1eddi gian \xe1p d\u1ee5ng ch\u01b0\u01a1ng tr\xecnh. "),t.qZA(),t.TgZ(80,"div"),t._uU(81," T\u1ed5ng s\u1ed1 ng\xe0y c\u1ee7a th\u1eddi gian lo\u1ea1i tr\u1eeb ph\u1ea3i nh\u1ecf h\u01a1n t\u1ed5ng s\u1ed1 ng\xe0y c\u1ee7a th\u1eddi gian \xe1p d\u1ee5ng ch\u01b0\u01a1ng tr\xecnh. "),t.qZA()()(),t.TgZ(82,"div",40)(83,"div",11),t.YNc(84,_t,15,10,"div",41),t.qZA(),t.YNc(85,mt,3,0,"div",42),t.qZA()()()()(),t.TgZ(86,"div",24)(87,"div",25)(88,"div",9),t._uU(89," Th\u1eddi gian bay "),t.qZA(),t.TgZ(90,"div",10),t._uU(91," Th\u1eddi gian bay \xe1p d\u1ee5ng chi\u1ebft kh\u1ea5u, c\xf3 th\u1ec3 bao g\u1ed3m th\u1eddi gian lo\u1ea1i tr\u1eeb "),t.qZA()(),t.TgZ(92,"div",11)(93,"div",26)(94,"cf-input-group",27),t._UZ(95,"cf-icon",28),t.TgZ(96,"label",29),t._uU(97," T\u1eeb ng\xe0y "),t.qZA(),t.TgZ(98,"input",43,44),t.NdJ("input",function(){t.CHM(e);const n=t.MAs(99);return t.KtG(n.close())})("dateSelect",function(){t.CHM(e);const n=t.MAs(99);return t.oxw().onDateSelected("startTimeFly"),t.KtG(n.close())})("closed",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.onDateSelected("startTimeFly"))})("focus",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.onStartTimeFly())})("reset",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.onDateSelected("startTimeFly"))}),t.qZA(),t.YNc(100,ht,1,1,"cf-input-hint",14),t.qZA(),t.TgZ(101,"cf-input-group",27),t._UZ(102,"cf-icon",28),t.TgZ(103,"label",29),t._uU(104," \u0110\u1ebfn ng\xe0y "),t.qZA(),t.TgZ(105,"input",45,46),t.NdJ("input",function(){t.CHM(e);const n=t.MAs(106);return t.KtG(n.close())})("reset",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.onDateSelected("endTimeFly"))})("focus",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.onEndTimeFly())})("closed",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.onDateSelected("endTimeFly"))})("dateSelect",function(){t.CHM(e);const n=t.MAs(106);return t.oxw().onDateSelected("endTimeFly"),t.KtG(n.close())}),t.qZA(),t.YNc(107,gt,1,1,"cf-input-hint",14),t.qZA()()(),t.TgZ(108,"cf-collapse",33)(109,"cf-collapse-panel",34),t.YNc(110,ft,2,0,"ng-template",null,35,t.W1O),t.TgZ(112,"div",17)(113,"div",36)(114,"div",37)(115,"span",38),t._uU(116,"L\u01b0u \xfd khi t\xf9y ch\u1ec9nh th\u1eddi gian lo\u1ea1i tr\u1eeb"),t.qZA()(),t.TgZ(117,"div",39)(118,"div"),t._uU(119," Th\u1eddi gian lo\u1ea1i tr\u1eeb ph\u1ea3i x\u1ea3y ra trong kho\u1ea3ng th\u1eddi gian \xe1p d\u1ee5ng ch\u01b0\u01a1ng tr\xecnh. "),t.qZA(),t.TgZ(120,"div"),t._uU(121," T\u1ed5ng s\u1ed1 ng\xe0y c\u1ee7a th\u1eddi gian lo\u1ea1i tr\u1eeb ph\u1ea3i nh\u1ecf h\u01a1n t\u1ed5ng s\u1ed1 ng\xe0y c\u1ee7a th\u1eddi gian \xe1p d\u1ee5ng ch\u01b0\u01a1ng tr\xecnh. "),t.qZA()()(),t.TgZ(122,"div",40)(123,"div",11),t.YNc(124,Et,15,10,"div",41),t.qZA(),t.YNc(125,Ct,3,0,"div",42),t.qZA()()()()(),t.TgZ(126,"div",47),t._UZ(127,"div"),t.TgZ(128,"button",48),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.onChangeStep("DISCOUNT_APPLY"))}),t._uU(129," Ti\u1ebfp t\u1ee5c "),t._UZ(130,"cf-icon",49),t.qZA()()()}if(2&u){const e=t.MAs(71),i=t.oxw();t.xp6(8),t.Q6J("status",i.discountConditionForm.controls.airline.invalid&&(i.discountConditionForm.controls.airline.dirty||i.discountConditionForm.controls.airline.touched)?"error":"default")("data",i.airlineOptions)("allowSearch",!1)("formControl",i.discountConditionForm.controls.airline),t.xp6(1),t.Q6J("CfRequired",!0),t.xp6(2),t.Q6J("ngIf",i.discountConditionForm.controls.airline.hasError("required")&&(i.discountConditionForm.controls.airline.touched||i.discountConditionForm.controls.airline.dirty)),t.xp6(1),t.Q6J("disabled",i.isDisabledFareClass)("status","default")("data",i.fareClassOptions||t.DdM(60,I))("allowSearch",!1)("placeholder",i.discountConditionForm.controls.fareClass?"Ch\u1ecdn c\xe1c h\u1ea1ng \u0111\u1eb7t ch\u1ed7":"Ch\u1ecdn c\xe1c h\u1ea1ng \u0111\u1eb7t ch\u1ed7 ho\u1eb7c b\u1ecf tr\u1ed1ng cho t\u1ea5t c\u1ea3 h\u1ea1ng")("formControl",i.discountConditionForm.controls.fareClass)("maxHeight",230),t.xp6(11),t.Q6J("ngClass",t.VKq(61,V,"DOMESTIC"===i.flightType)),t.xp6(3),t.Q6J("ngClass",t.VKq(63,V,"INTERNATIONAL"===i.flightType)),t.xp6(3),t.Q6J("ngIf","DOMESTIC"===i.flightType),t.xp6(1),t.Q6J("ngIf","INTERNATIONAL"===i.flightType),t.xp6(8),t.Q6J("ngModel",i.paxType),t.xp6(1),t.Q6J("value","TOTAL_PAX"),t.xp6(2),t.Q6J("value","SINGLE_PAX"),t.xp6(2),t.Q6J("ngIf","TOTAL_PAX"===i.paxType),t.xp6(1),t.Q6J("ngIf","SINGLE_PAX"===i.paxType),t.xp6(9),t.Q6J("status",i.discountConditionForm.controls.startTimeIssue.invalid&&(i.discountConditionForm.controls.startTimeIssue.dirty||i.discountConditionForm.controls.startTimeIssue.touched)?"error":"default"),t.xp6(2),t.Q6J("CfRequired",!0),t.xp6(2),t.Q6J("minDate",i.currentDateIssue)("secondaryCalendar","lunar")("displayMonths",1)("formControl",i.discountConditionForm.controls.startTimeIssue),t.xp6(2),t.Q6J("ngIf",i.discountConditionForm.controls.startTimeIssue.hasError("required")&&(i.discountConditionForm.controls.startTimeIssue.touched||i.discountConditionForm.controls.startTimeIssue.dirty)),t.xp6(1),t.Q6J("ngIf",i.discountConditionForm.controls.startTimeIssue.hasError("ngbDate")&&(i.discountConditionForm.controls.startTimeIssue.touched||i.discountConditionForm.controls.startTimeIssue.dirty)),t.xp6(1),t.Q6J("status",i.discountConditionForm.controls.endTimeIssue.invalid&&(i.discountConditionForm.controls.endTimeIssue.dirty||i.discountConditionForm.controls.endTimeIssue.touched)?"error":"default"),t.xp6(2),t.Q6J("CfRequired",!0),t.xp6(2),t.Q6J("minDate",i.currentDateIssue)("secondaryCalendar","lunar")("displayMonths",1)("formControl",i.discountConditionForm.controls.endTimeIssue),t.xp6(2),t.Q6J("ngIf",i.discountConditionForm.controls.endTimeIssue.hasError("required")&&(i.discountConditionForm.controls.endTimeIssue.touched||i.discountConditionForm.controls.endTimeIssue.dirty)),t.xp6(2),t.Q6J("title",e)("active",i.listTimeIssueCustom.length),t.xp6(15),t.Q6J("ngForOf",i.listTimeIssueCustom.controls),t.xp6(1),t.Q6J("ngIf",i.listTimeIssueCustom.length<3),t.xp6(9),t.Q6J("status",i.discountConditionForm.controls.startTimeFly.invalid&&(i.discountConditionForm.controls.startTimeFly.dirty||i.discountConditionForm.controls.startTimeFly.touched)?"error":"default"),t.xp6(2),t.Q6J("CfRequired",i.isRequiredFlyTime),t.xp6(2),t.Q6J("minDate",i.currentDateFly)("secondaryCalendar","lunar")("displayMonths",1)("formControl",i.discountConditionForm.controls.startTimeFly),t.xp6(2),t.Q6J("ngIf",i.discountConditionForm.controls.startTimeFly.hasError("required")&&(i.discountConditionForm.controls.startTimeFly.touched||i.discountConditionForm.controls.startTimeFly.dirty)),t.xp6(1),t.Q6J("status",i.discountConditionForm.controls.endTimeFly.invalid&&(i.discountConditionForm.controls.endTimeFly.dirty||i.discountConditionForm.controls.endTimeFly.touched)?"error":"default"),t.xp6(2),t.Q6J("CfRequired",i.isRequiredFlyTime),t.xp6(2),t.Q6J("minDate",i.currentDateFly)("secondaryCalendar","lunar")("displayMonths",1)("formControl",i.discountConditionForm.controls.endTimeFly),t.xp6(2),t.Q6J("ngIf",i.discountConditionForm.controls.endTimeFly.hasError("required")&&(i.discountConditionForm.controls.endTimeFly.touched||i.discountConditionForm.controls.endTimeFly.dirty)),t.xp6(2),t.Q6J("title",e)("active",i.listTimeFlyCustom.length),t.xp6(15),t.Q6J("ngForOf",i.listTimeFlyCustom.controls),t.xp6(1),t.Q6J("ngIf",i.listTimeFlyCustom.length<3),t.xp6(3),t.Q6J("disabled",i.discountConditionForm.invalid)}}function vt(u,s){if(1&u){const e=t.EpF();t.TgZ(0,"div",6)(1,"div",7)(2,"div",8)(3,"div",9),t._uU(4," M\u1ee9c chi\u1ebft kh\u1ea5u \u0111\u1ea7u v\xe0o "),t.qZA(),t.TgZ(5,"div",10),t._uU(6," M\u1ee9c chi\u1ebft kh\u1ea5u g\u1ed1c h\xe3ng chia cho \u0111\u1ea1i l\xfd F1 "),t.qZA()(),t.TgZ(7,"div",26)(8,"cf-input-group",27)(9,"label",13),t._uU(10," Chi\u1ebft kh\u1ea5u g\u1ed1c t\u1eeb h\xe3ng "),t.qZA(),t._UZ(11,"input",66),t.qZA(),t.TgZ(12,"cf-select",73)(13,"label",13),t._uU(14," Lo\u1ea1i ti\u1ec1n "),t.qZA()()()(),t.TgZ(15,"div",7)(16,"div",8)(17,"div",9),t._uU(18," M\u1ee9c chi\u1ebft kh\u1ea5u \u0111\u1ea7u ra "),t.qZA(),t.TgZ(19,"div",10),t._uU(20," C\xe1c m\u1ee9c chi\u1ebft kh\u1ea5u \xe1p d\u1ee5ng chi tr\u1ea3 cho \u0111\u1ea1i l\xfd F2 l\u1ea5y t\u1eeb chi\u1ebft kh\u1ea5u \u0111\u1ea7u v\xe0o "),t.qZA()(),t.TgZ(21,"div",74)(22,"div",11)(23,"div",75),t._uU(24,"N\u1ebfu thanh to\xe1n ngay cho \u0111\u1ea1i l\xfd"),t.qZA(),t.TgZ(25,"div",76)(26,"cf-input-group",27)(27,"label",16)(28,"span",65),t._uU(29,"Chi\u1ebft kh\u1ea5u khi d\u01b0\u01a1ng qu\u1ef9"),t.qZA()(),t._UZ(30,"input",77),t.qZA(),t.TgZ(31,"cf-input-group",27)(32,"label",16)(33,"span",65),t._uU(34,"Chi\u1ebft kh\u1ea5u khi \xe2m qu\u1ef9"),t.qZA()(),t._UZ(35,"input",78),t.qZA()()(),t.TgZ(36,"div",11)(37,"div",75),t._uU(38,"N\u1ebfu thanh to\xe1n sau cho \u0111\u1ea1i l\xfd"),t.qZA(),t.TgZ(39,"div",76)(40,"cf-input-group",27)(41,"label",16)(42,"span",65),t._uU(43,"Chi\u1ebft kh\u1ea5u khi d\u01b0\u01a1ng qu\u1ef9"),t.qZA()(),t._UZ(44,"input",77),t.qZA(),t.TgZ(45,"cf-input-group",27)(46,"label",16)(47,"span",65),t._uU(48,"Chi\u1ebft kh\u1ea5u khi \xe2m qu\u1ef9"),t.qZA()(),t._UZ(49,"input",78),t.qZA()()()()(),t.TgZ(50,"div",7)(51,"div",8)(52,"div",79),t._uU(53," M\u1ee9c chi\u1ebft kh\u1ea5u d\xe0nh cho CodeShare "),t.qZA(),t.TgZ(54,"div",10),t._uU(55," Ph\u1ea7n tr\u0103m chi\u1ebft kh\u1ea5u cho c\xe1c chuy\u1ebfn bay codeshare so v\u1edbi chi\u1ebft kh\u1ea5u \u0111\u1ea7y \u0111\u1ee7 "),t.qZA()(),t.TgZ(56,"div",17)(57,"cf-input-group",27),t._UZ(58,"input",80),t.qZA()()(),t.TgZ(59,"div",7)(60,"div",8)(61,"div",9),t._uU(62," Nh\xf3m \u0111\u1ea1i l\xfd "),t.qZA(),t.TgZ(63,"div",10),t._uU(64," C\xe1c \u0111\u1ea1i l\xfd thu\u1ed9c nh\xf3m n\xe0y s\u1ebd \u0111\u01b0\u1ee3c \xe1p d\u1ee5ng m\u1ee9c chi\u1ebft kh\u1ea5u "),t.qZA()(),t.TgZ(65,"div",17),t._UZ(66,"cf-select",81),t.qZA()(),t.TgZ(67,"div",47)(68,"button",82),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.onChangeStep("DISCOUNT_CONDITIONS"))}),t._UZ(69,"cf-icon",83),t._uU(70," Quay l\u1ea1i "),t.qZA(),t.TgZ(71,"button",84),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.onSubmit())}),t._uU(72," Ho\xe0n th\xe0nh "),t._UZ(73,"cf-icon",85),t.qZA()()()}if(2&u){const e=t.oxw();t.xp6(8),t.Q6J("status",e.discountApplyForm.controls.amountFromAirline.invalid&&(e.discountApplyForm.controls.amountFromAirline.dirty||e.discountApplyForm.controls.amountFromAirline.touched)?"error":"default"),t.xp6(1),t.Q6J("CfRequired",!0),t.xp6(2),t.Q6J("formControl",e.discountApplyForm.controls.amountFromAirline),t.xp6(1),t.Q6J("status",e.discountApplyForm.controls.currencyCode.invalid&&(e.discountApplyForm.controls.currencyCode.dirty||e.discountApplyForm.controls.currencyCode.touched)?"error":"default")("data",e.currencyOptions)("allowSearch",!1)("formControl",e.discountApplyForm.controls.currencyCode),t.xp6(1),t.Q6J("CfRequired",!0),t.xp6(13),t.Q6J("status",e.discountApplyForm.controls.amountNowPositive.invalid&&(e.discountApplyForm.controls.amountNowPositive.dirty||e.discountApplyForm.controls.amountNowPositive.touched)?"error":"default"),t.xp6(2),t.Q6J("CfRequired",!0),t.xp6(2),t.Q6J("formControl",e.discountApplyForm.controls.amountNowPositive),t.xp6(1),t.Q6J("status",e.discountApplyForm.controls.amountNowNegative.invalid&&(e.discountApplyForm.controls.amountNowNegative.dirty||e.discountApplyForm.controls.amountNowNegative.touched)?"error":"default"),t.xp6(2),t.Q6J("CfRequired",!0),t.xp6(2),t.Q6J("formControl",e.discountApplyForm.controls.amountNowNegative),t.xp6(5),t.Q6J("status",e.discountApplyForm.controls.amountLaterPositive.invalid&&(e.discountApplyForm.controls.amountLaterPositive.dirty||e.discountApplyForm.controls.amountLaterPositive.touched)?"error":"default"),t.xp6(2),t.Q6J("CfRequired",!0),t.xp6(2),t.Q6J("formControl",e.discountApplyForm.controls.amountLaterPositive),t.xp6(1),t.Q6J("status",e.discountApplyForm.controls.amountLaterNegative.invalid&&(e.discountApplyForm.controls.amountLaterNegative.dirty||e.discountApplyForm.controls.amountLaterNegative.touched)?"error":"default"),t.xp6(2),t.Q6J("CfRequired",!0),t.xp6(2),t.Q6J("formControl",e.discountApplyForm.controls.amountLaterNegative),t.xp6(3),t.Q6J("CfRequired",!0),t.xp6(5),t.Q6J("status",e.discountApplyForm.controls.codeSharePercent.invalid&&(e.discountApplyForm.controls.codeSharePercent.dirty||e.discountApplyForm.controls.codeSharePercent.touched)?"error":"default"),t.xp6(1),t.Q6J("formControl",e.discountApplyForm.controls.codeSharePercent),t.xp6(8),t.Q6J("status","default")("data",e.agentGroupOptions)("allowSearch",!1)("formControl",e.discountApplyForm.controls.groupAgId)}}function yt(u,s){if(1&u){const e=t.EpF();t.TgZ(0,"div",86),t._UZ(1,"img",87),t.TgZ(2,"div",88)(3,"div",89),t._uU(4),t.qZA(),t.TgZ(5,"div",90),t._uU(6),t.qZA()(),t.TgZ(7,"div",91)(8,"button",82),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.onBackToList())}),t._uU(9," Xem danh s\xe1ch "),t.qZA(),t.TgZ(10,"button",82),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.onChangeStep("DISCOUNT_CONDITIONS"))}),t._uU(11," T\u1ea1o b\u1ea3n sao "),t.qZA(),t.TgZ(12,"button",82),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.onCreateNew())}),t._uU(13," T\u1ea1o m\u1edbi "),t.qZA()()()}if(2&u){const e=t.oxw();t.xp6(4),t.hij(" ",e.titleText," "),t.xp6(2),t.hij(" ",e.bodyText,". B\u1ea1n c\xf3 th\u1ec3 t\u1ea1o m\u1edbi ho\u1eb7c tr\u1edf v\u1ec1 m\xe0n h\xecnh danh s\xe1ch. ")}}function Dt(u,s){if(1&u){const e=t.EpF();t.TgZ(0,"div",86),t._UZ(1,"img",92),t.TgZ(2,"div",88)(3,"div",89),t._uU(4," T\u1ea1o quy \u0111\u1ecbnh chi\u1ebft kh\u1ea5u th\u1ea5t b\u1ea1i! "),t.qZA(),t.TgZ(5,"div",90),t._uU(6),t.qZA()(),t.TgZ(7,"div",91)(8,"button",82),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.onChangeStep("DISCOUNT_CONDITIONS"))}),t._uU(9," Th\u1eed l\u1ea1i "),t.qZA(),t.TgZ(10,"button",82),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.onCreateNew())}),t._uU(11," T\u1ea1o m\u1edbi "),t.qZA()()()}if(2&u){const e=t.oxw();t.xp6(6),t.hij(" ",e.bodyText," Vui l\xf2ng th\u1eed l\u1ea1i ho\u1eb7c t\u1ea1o quy \u0111\u1ecbnh chi\u1ebft kh\u1ea5u m\u1edbi! ")}}function xt(u,s){1&u&&t._UZ(0,"cf-spinner")}function Ft(u,s){if(1&u&&(t.TgZ(0,"div",94),t._UZ(1,"div",95),t.ALo(2,"highlighter"),t._UZ(3,"div",96),t.ALo(4,"highlighter"),t.qZA()),2&u){const e=t.oxw(),i=e.item,n=e.search;t.xp6(1),t.Q6J("innerHtml",t.xi3(2,2,i.city+", "+i.nationalName,n.text),t.oJD),t.xp6(2),t.Q6J("innerHtml",t.xi3(4,5,i.code+" - "+i.name,n.text),t.oJD)}}function At(u,s){if(1&u&&(t.TgZ(0,"div"),t._UZ(1,"div",95),t.ALo(2,"highlighter"),t.qZA()),2&u){const e=t.oxw(),i=e.item,n=e.search;t.xp6(1),t.Q6J("innerHtml",t.xi3(2,1,i.name,n.text),t.oJD)}}function Zt(u,s){if(1&u&&(t.YNc(0,Ft,5,8,"div",93),t.YNc(1,At,3,4,"div",4)),2&u){const e=s.item;t.Q6J("ngIf","ALL"!==e.code),t.xp6(1),t.Q6J("ngIf","ALL"===e.code)}}let Nt=(()=>{class u{constructor(e,i,n,o,a,C,_){this.calendar=e,this._discountFeeService=o,this._fb=a,this._route=C,this._cd=_,this.flightType="DOMESTIC",this.journeyType="AIRPORT",this.paxType="TOTAL_PAX",this.step="DISCOUNT_CONDITIONS",this.airlineOptions=[],this.airportOptions=[],this.airportDomesticOptions=[],this.airportInternationalOptions=[],this.countryOptions=[],this.areaOptions=[],this.classifyListDomestic=[],this.classifyListInternational=[],this.currencyOptions=[],this.agentGroupOptions=[],this.errorMessage={airline:"H\xe3ng bay kh\xf4ng \u0111\u01b0\u1ee3c \u0111\u1ec3 tr\u1ed1ng",startTimeIssue:"Th\u1eddi gian xu\u1ea5t v\xe9 kh\xf4ng \u0111\u01b0\u1ee3c \u0111\u1ec3 tr\u1ed1ng",endTimeIssue:"Th\u1eddi gian xu\u1ea5t v\xe9 kh\xf4ng \u0111\u01b0\u1ee3c \u0111\u1ec3 tr\u1ed1ng",startTimeFly:"Th\u1eddi gian bay kh\xf4ng \u0111\u01b0\u1ee3c \u0111\u1ec3 tr\u1ed1ng",endTimeFly:"Th\u1eddi gian bay kh\xf4ng \u0111\u01b0\u1ee3c \u0111\u1ec3 tr\u1ed1ng"},this.isLoading=!1,this.fareClassOptions=[],this.fareClassQH=[],this.fareClassVJ=[],this.fareClassVN=[],this.isDisabledFareClass=!0,this.isRequiredFlyTime=!1,this.positionSearchCustom=(d,M)=>{const S=this.removeAccents(d.code.toLowerCase()),x=this.removeAccents(d.name.toLowerCase()),y=this.removeAccents(d.city.toLowerCase()),p=this.removeAccents(d.nationalName.toLowerCase()),l=this.removeAccents(M.toLowerCase());return S.includes(l)||x.includes(l)||y.includes(l)||p.includes(l)},this.currentDateIssue=e.getToday(),this.currentDateFly=e.getToday(),i.registerIcons([T.rJw,T.NNX,T.toh,T.UNF,T._tC]),this.discountFeeId=n.snapshot.params.id,this.getDiscountFeeInfo()}ngOnInit(){this.initDiscountConditionForm(),this.initDiscountApplyForm()}initDiscountConditionForm(){this.discountConditionForm=this._fb.group({airline:[null,r.kI.required],fareClass:[null],flightType:[this.flightType],journeyType:[this.journeyType],startPointDetails:[null],endPointDetails:[null],journeyClassify:[null],paxType:[this.paxType],totalPax:[0],adtNum:[0],chdNum:[0],infNum:[0],startTimeIssue:[null,r.kI.required],endTimeIssue:[null,r.kI.required],timeIssueCustom:this._fb.array([]),startTimeFly:[null],endTimeFly:[null],timeFlyCustom:this._fb.array([])})}initDiscountApplyForm(){this.discountApplyForm=this._fb.group({amountFromAirline:[0,r.kI.required],currencyCode:["VND",r.kI.required],amountNowPositive:[0,r.kI.required],amountNowNegative:[0,r.kI.required],amountLaterPositive:[0,r.kI.required],amountLaterNegative:[0,r.kI.required],codeSharePercent:[0,r.kI.required],groupAgId:[null]})}get listTimeIssueCustom(){return this.discountConditionForm.get("timeIssueCustom")}get listTimeFlyCustom(){return this.discountConditionForm.get("timeFlyCustom")}getDiscountFeeInfo(){this.isLoading=!0,this._discountFeeService.getDiscountFeeInfoConfig().pipe((0,U.x)(()=>this.isLoading=!1)).subscribe({next:e=>{var i,n,o;e.success&&e.data&&(this.airlineOptions=e.data.airlineList.map(a=>({code:a.code,name:a.name})),this.classifyListDomestic=e.data.classifyListDomestic.map(a=>({code:a.code,name:a.name})),this.classifyListInternational=e.data.classifyListInternational.map(a=>({code:a.code,name:a.name})),this.airportDomesticOptions=e.data.airportDomesticInfoList.map(a=>({code:a.code,name:a.name,city:a.city,nationalName:a.nationalName,displayName:`${a.code} - ${a.city}`})),this.airportDomesticOptions.unshift({code:"ALL",name:"T\u1ea5t c\u1ea3 s\xe2n bay",city:"",nationalName:"",displayName:"T\u1ea5t c\u1ea3 s\xe2n bay"}),this.airportInternationalOptions=e.data.airportInfoList.map(a=>({code:a.code,name:a.name,city:a.city,nationalName:a.nationalName,displayName:`${a.code} - ${a.city}`})),this.airportInternationalOptions.unshift({code:"ALL",name:"T\u1ea5t c\u1ea3 s\xe2n bay",city:"",nationalName:"",displayName:"T\u1ea5t c\u1ea3 s\xe2n bay"}),this.airportOptions="DOMESTIC"===this.flightType?this.airportDomesticOptions:this.airportInternationalOptions,this.countryOptions=e.data.nationalInfoList.map(a=>({code:a.code,name:a.name})),this.areaOptions=e.data.areaInfoList.map(a=>({code:a.code,name:a.name})),this.currencyOptions=e.data.currencyList.map(a=>({code:a.code,name:a.name})),this.agentGroupOptions=e.data.grpAgList.map(a=>({code:a.id,name:a.name})),this.fareClassQH=null===(i=e.data.fareClassList)||void 0===i?void 0:i.fareClassQH.map(a=>({code:a.code,name:a.code})),this.fareClassVJ=null===(n=e.data.fareClassList)||void 0===n?void 0:n.fareClassVJ.map(a=>({code:a.code,name:a.code})),this.fareClassVN=null===(o=e.data.fareClassList)||void 0===o?void 0:o.fareClassVN.map(a=>({code:a.code,name:a.code})),this._cd.detectChanges(),this.discountFeeId&&this.getDiscountFeeDetail())}})}onSelectedAirline(e){this.getFareClass(e),this.discountConditionForm.get("fareClass").setValue(null)}getFareClass(e){switch(e){case"VN":this.fareClassOptions=this.fareClassVN.map(i=>Object.assign({},i)),this.isDisabledFareClass=!1;break;case"VJ":this.fareClassOptions=this.fareClassVJ.map(i=>Object.assign({},i)),this.isDisabledFareClass=!1;break;case"QH":this.fareClassOptions=this.fareClassQH.map(i=>Object.assign({},i)),this.isDisabledFareClass=!1;break;default:this.fareClassOptions=[],this.isDisabledFareClass=!0}this.fareClassOptions.unshift({code:"ALL",name:"T\u1ea5t c\u1ea3 h\u1ea1ng \u0111\u1eb7t ch\u1ed7"})}getDiscountFeeDetail(){this.isLoading=!0,this._discountFeeService.getDiscountFeeById(this.discountFeeId).pipe((0,U.x)(()=>this.isLoading=!1)).subscribe({next:e=>{var i,n;if(e.success&&e.data){const o={airline:e.data.airline,fareClass:"ALL"===e.data.fareClass?"":e.data.fareClass.split(";"),flightType:e.data.flightType,journeyType:e.data.journeyType,startPointDetails:e.data.startPointDetails.split(","),endPointDetails:e.data.endPointDetails.split(","),journeyClassify:e.data.journeyClassify,paxType:e.data.paxType,totalPax:e.data.totalPax,adtNum:e.data.adtNum,chdNum:e.data.chdNum,infNum:e.data.infNum,startTimeIssue:e.data.startTimeIssue?new Date(1e3*e.data.startTimeIssue):null,endTimeIssue:e.data.endTimeIssue?new Date(1e3*e.data.endTimeIssue):null,timeIssueCustom:e.data.timeIssueCustom,startTimeFly:e.data.startTimeFly?new Date(1e3*e.data.startTimeFly):null,endTimeFly:e.data.endTimeFly?new Date(1e3*e.data.endTimeFly):null,timeFlyCustom:e.data.timeFlyCustom},a={amountFromAirline:e.data.amountFromAirline,currencyCode:e.data.currencyCode,amountNowPositive:e.data.amountNowPositive,amountNowNegative:e.data.amountNowNegative,amountLaterPositive:e.data.amountLaterPositive,amountLaterNegative:e.data.amountLaterNegative,codeSharePercent:e.data.codeSharePercent,groupAgId:e.data.groupAgId||""};this._cd.detectChanges(),this.discountConditionForm.patchValue(o),null===(i=e.data.timeIssueCustom)||void 0===i||i.forEach(C=>{this.listTimeIssueCustom.push(this._fb.group({exceptStart:[new Date(1e3*C.exceptStart),r.kI.required],exceptEnd:[new Date(1e3*C.exceptEnd),r.kI.required]}))}),null===(n=e.data.timeFlyCustom)||void 0===n||n.forEach(C=>{this.listTimeFlyCustom.push(this._fb.group({exceptStart:[new Date(1e3*C.exceptStart),r.kI.required],exceptEnd:[new Date(1e3*C.exceptEnd),r.kI.required]}))}),this.discountApplyForm.patchValue(a)}}})}initTimeCustomGroup(){return this._fb.group({exceptStart:[null,r.kI.required],exceptEnd:[null,r.kI.required]})}onAddTimeIssue(){this.listTimeIssueCustom.length<3&&this.listTimeIssueCustom.push(this.initTimeCustomGroup())}onRemoveTimeIssue(e){this.listTimeIssueCustom.removeAt(e)}onAddTimeFly(){this.listTimeFlyCustom.length<3&&this.listTimeFlyCustom.push(this.initTimeCustomGroup())}onRemoveTimeFly(e){this.listTimeFlyCustom.removeAt(e)}removeAccents(e){return e.normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/\u0111/g,"d").replace(/\u0110/g,"D")}onSubmit(){var e,i,n;if(this.discountConditionForm.markAllAsTouched(),this.discountConditionForm.invalid)return;const o=this.discountConditionForm.value,a=this.discountApplyForm.value,C={airline:o.airline,fareClass:o.fareClass?o.fareClass.join(";"):"ALL",flightType:this.flightType,journeyType:o.journeyType,startPointDetails:o.startPointDetails?o.startPointDetails.join(","):"ALL",endPointDetails:o.endPointDetails?o.endPointDetails.join(","):"ALL",journeyClassify:o.journeyClassify||"ALL",paxType:this.paxType,totalPax:"TOTAL_PAX"===this.paxType?o.totalPax:0,adtNum:"SINGLE_PAX"===this.paxType?o.adtNum:0,chdNum:"SINGLE_PAX"===this.paxType?o.chdNum:0,infNum:"SINGLE_PAX"===this.paxType?o.infNum:0,startTimeIssue:D(o.startTimeIssue).format("DD/MM/YYYY"),endTimeIssue:D(o.endTimeIssue).format("DD/MM/YYYY"),timeIssueCustom:null===(e=o.timeIssueCustom)||void 0===e?void 0:e.map(_=>({exceptStart:D(_.exceptStart).format("DD/MM/YYYY"),exceptEnd:D(_.exceptEnd).format("DD/MM/YYYY")})),startTimeFly:o.startTimeFly?D(o.startTimeFly).format("DD/MM/YYYY"):"ALL",endTimeFly:o.endTimeFly?D(o.endTimeFly).format("DD/MM/YYYY"):"ALL",timeFlyCustom:null===(i=o.timeFlyCustom)||void 0===i?void 0:i.map(_=>({exceptStart:D(_.exceptStart).format("DD/MM/YYYY"),exceptEnd:D(_.exceptEnd).format("DD/MM/YYYY")})),amountFromAirline:a.amountFromAirline,currencyCode:a.currencyCode,amountNowPositive:a.amountNowPositive,amountNowNegative:a.amountNowNegative,amountLaterPositive:a.amountLaterPositive,amountLaterNegative:a.amountLaterNegative,codeSharePercent:a.codeSharePercent,groupAgId:a.groupAgId||"ALL",timeZone:7,id:null!==(n=this.discountFeeId)&&void 0!==n?n:""};this.isLoading=!0,this._discountFeeService.createDiscountFee(C).pipe((0,U.x)(()=>this.isLoading=!1)).subscribe({next:_=>{_.success&&_.data?(this.titleText="T\u1ea1o quy \u0111\u1ecbnh chi\u1ebft kh\u1ea5u th\xe0nh c\xf4ng",this.bodyText="Quy \u0111\u1ecbnh chi\u1ebft kh\u1ea5u \u0111\xe3 \u0111\u01b0\u1ee3c t\u1ea1o th\xe0nh c\xf4ng",this.onChangeStep("SUCCESS")):(this.titleText="T\u1ea1o quy \u0111\u1ecbnh chi\u1ebft kh\u1ea5u th\u1ea5t b\u1ea1i",this.bodyText=_.objectError.errorDescription.vi,this.onChangeStep("ERROR"))}})}onSwitcJourney(e){this.flightType=e,this.discountConditionForm.get("startPointDetails").setValue(null),this.discountConditionForm.get("endPointDetails").setValue(null),this.airportOptions="DOMESTIC"===this.flightType?this.airportDomesticOptions:this.airportInternationalOptions}onChangeJourneyType(e){this.journeyType=e,this.discountConditionForm.get("startPointDetails").setValue(null),this.discountConditionForm.get("endPointDetails").setValue(null)}onChangePaxType(e){this.paxType=e}onChangeStep(e){"DISCOUNT_APPLY"===e&&(this.discountConditionForm.markAllAsTouched(),this.discountConditionForm.invalid)||(this.step=e)}onSelectedChange(e,i){i||this.discountConditionForm.get(e).setValue(null)}onBackToList(){this._route.navigate(["admin/discount-fee"])}onCreateNew(){this.step="DISCOUNT_CONDITIONS",this.discountConditionForm.reset(),this.discountApplyForm.reset(),this.discountConditionForm.get("journeyType").setValue(this.journeyType)}swapPoint(e,i){if(""!=e.value&&""!=i.value){const n=e.value;e.setValue(null),e.setValue(i.value),i.setValue(null),i.setValue(n)}}onFareClassChange(e){"ALL"===e.code?(this.discountConditionForm.get("fareClass").setValue(null),this.discountConditionForm.get("fareClass").setValue(["ALL"])):this.discountConditionForm.get("fareClass").value.includes("ALL")&&(this.discountConditionForm.get("fareClass").setValue(null),this.discountConditionForm.get("fareClass").setValue([e.code]))}onPointChange(e,i){"ALL"===e.code?(this.discountConditionForm.get(i).setValue(null),this.discountConditionForm.get(i).setValue(["ALL"])):this.discountConditionForm.get(i).value.includes("ALL")&&(this.discountConditionForm.get(i).setValue(null),this.discountConditionForm.get(i).setValue([e.code]))}onDateSelected(e){const{startTimeFly:i,endTimeFly:n}=this.discountConditionForm.value;!i&&n?(this.discountConditionForm.controls.startTimeFly.setErrors({required:!0}),this.isRequiredFlyTime=!0):i&&!n?(this.isRequiredFlyTime=!0,this.discountConditionForm.controls.endTimeFly.setErrors({required:!0})):(this.discountConditionForm.controls.startTimeFly.setErrors(null),this.discountConditionForm.controls.endTimeFly.setErrors(null),this.isRequiredFlyTime=!1)}onStartTimeFly(){this.currentDateFly=this.calendar.getToday()}onEndTimeFly(){this.discountConditionForm.value.startTimeFly&&(this.currentDateFly=(0,b.jy)(this.discountConditionForm.value.startTimeFly))}}return u.\u0275fac=function(e){return new(e||u)(t.Y36(b.jH),t.Y36(T.KNP),t.Y36(w.gz),t.Y36(G.O),t.Y36(r.qu),t.Y36(w.F0),t.Y36(t.sBO))},u.\u0275cmp=t.Xpm({type:u,selectors:[["create-discount-fee-page"]],standalone:!0,features:[t.jDz],decls:9,vars:5,consts:[[1,"flex","justify-center","py-4","px-[30px]"],[1,"w-[1000px]","max-w-[1000px]"],["class","flex flex-col gap-y-4",4,"ngIf"],["class","rounded-lg bg-neutral-white mx-auto py-32 flex flex-col gap-y-6 justify-center items-center",4,"ngIf"],[4,"ngIf"],["optionTmp",""],[1,"flex","flex-col","gap-y-4"],[1,"bg-white","rounded","shadow-cf-md","flex","flex-col","p-6"],[1,"flex","flex-col","gap-y-1","mb-4"],[1,"text-heading-sm","text-neutral-black"],[1,"text-espressive-sm","text-neutral-gray-4"],[1,"flex","flex-col","gap-y-3"],["textField","name","valueField","code","placeholder","Ch\u1ecdn h\xe3ng bay",1,"w-full","!max-w-full",3,"status","data","allowSearch","formControl","selectedChange"],["cfLabel","",1,"text-express-sm","text-black",3,"CfRequired"],["cfHint","",3,"hint",4,"ngIf"],["textField","name","valueField","code",1,"w-full","!max-w-full",3,"disabled","status","data","allowSearch","placeholder","formControl","maxHeight","valueChange"],["cfLabel","",1,"text-express-sm","text-black"],[1,""],[1,"flex","gap-x-3","mb-3"],[1,"flex","items-center","gap-x-[0.375rem]","rounded-lg","py-[0.3125rem]","px-4","text-espressive-md","text-neutral-gray-4","border","border-neutral-gray-2","bg-white","cursor-pointer",3,"ngClass","click"],["class","flex flex-col gap-y-3",4,"ngIf"],[1,"flex","items-center","gap-x-8",3,"ngModel","checkChange","ngModelChange"],["size","medium",3,"value"],["class","flex gap-x-3",4,"ngIf"],[1,"bg-white","rounded","shadow-cf-md","flex","flex-col","gap-y-4","p-6"],[1,"flex","flex-col","gap-y-1"],[1,"flex","gap-x-3"],[1,"grow-[400]","!w-full",3,"status"],["cfHeadIcon","","icon","calendar","size","small"],["cfLabel","",1,"text-espressive-sm","text-black",3,"CfRequired"],["cfDatepicker","","type","text","size","medium","cf-input","","placeholder","dd/MM/yyyy",1,"py-[7px]",3,"minDate","secondaryCalendar","displayMonths","formControl","input","dateSelect"],["dateFrom","cfDatepicker"],["dateTo","cfDatepicker"],[1,"w-full","border","border-neutral-gray-1"],[3,"title","active"],["titleTemplate",""],[1,"w-full","rounded","bg-[#FCF5E8]","text-neutral-gray-6","py-3","px-4"],[1,"mb-3"],[1,"text-express-md"],[1,"text-body-sm"],[1,"mt-4"],["class","flex items-center gap-x-3",4,"ngFor","ngForOf"],["class","mt-3",4,"ngIf"],["cfDatepicker","","type","text","size","medium","cf-input","","placeholder","Ch\u1ecdn ng\xe0y ho\u1eb7c b\u1ecf tr\u1ed1ng \u0111\u1ec3 kh\xf4ng gi\u1edbi h\u1ea1n",1,"py-[7px]",3,"minDate","secondaryCalendar","displayMonths","formControl","input","dateSelect","closed","focus","reset"],["dateStartTimeFly","cfDatepicker"],["cfDatepicker","","type","text","size","medium","cf-input","","placeholder","Ch\u1ecdn ng\xe0y ho\u1eb7c b\u1ecf tr\u1ed1ng \u0111\u1ec3 kh\xf4ng gi\u1edbi h\u1ea1n",1,"py-[7px]",3,"minDate","secondaryCalendar","displayMonths","formControl","input","reset","focus","closed","dateSelect"],["dateEndTimeFly","cfDatepicker"],[1,"flex","justify-between"],["cf-button","","size","medium",3,"disabled","click"],["cfHeadIcon","","icon","chevron_right","size","small"],["cfHint","",3,"hint"],[1,"flex","gap-x-3","items-center"],["textField","displayName","valueField","code",1,"w-full","!max-w-full",3,"status","data","allowSearch","placeholder","customSearch","formControl","maxHeight","optionTmp","valueChange","selectedChange"],["cf-button","","size","medium","type","secondary",1,"mt-7",3,"click"],["icon","switch","size","small"],["textField","displayName","valueField","code",1,"w-full","!max-w-full",3,"status","data","allowSearch","placeholder","formControl","maxHeight","optionTmp","selectedChange","valueChange"],["textField","name","valueField","code","placeholder","Ch\u1ecdn lo\u1ea1i ch\u1eb7ng bay",1,"w-full","!max-w-full",3,"status","data","allowSearch","formControl"],[1,"flex","items-center","gap-x-8",3,"formControl","checkChange"],["class","flex items-center gap-x-3",4,"ngIf"],["textField","name","valueField","code","placeholder","Ch\u1ecdn lo\u1ea1i ch\u1eb7ng bay ho\u1eb7c b\u1ecf tr\u1ed1ng ch\u1ecdn t\u1ea5t c\u1ea3",1,"w-full","!max-w-full",3,"status","data","allowSearch","formControl"],[1,"flex","items-center","gap-x-3"],["textField","displayName","valueField","code",1,"w-full","!max-w-full",3,"status","data","allowSearch","placeholder","formControl","maxHeight","optionTmp","valueChange","selectedChange"],["textField","name","valueField","code","placeholder","Ch\u1ecdn qu\u1ed1c gia",1,"w-full","!max-w-full",3,"status","data","allowSearch","formControl","maxHeight","selectedChange"],["textField","name","valueField","code","placeholder","Ch\u1ecdn khu v\u1ef1c",1,"w-full","!max-w-full",3,"status","data","allowSearch","formControl","maxHeight","selectedChange"],["cf-input","","type","number","size","medium","placeholder","Nh\u1eadp t\u1ed5ng s\u1ed1 h\xe0nh kh\xe1ch t\u1ed1i thi\u1ec3u",3,"formControl"],[3,"CfRequired"],["cf-input","","type","number","size","medium","placeholder","Nh\u1eadp m\u1ee9c ph\xed d\u1ecbch v\u1ee5",3,"formControl"],[1,"text-heading-xs"],["cfDatepicker","","type","text","size","medium","cf-input","","placeholder","dd/MM/yyyy",1,"py-[7px]",3,"secondaryCalendar","displayMonths","formControl","input","dateSelect"],[1,"mt-7",3,"click"],["cfHeadIcon","","icon","close","size","small"],[1,"mt-3"],[1,"py-1.5","px-3","text-espressive-sm","text-secondary-3-4","cursor-pointer",3,"click"],["textField","name","valueField","code","placeholder","Nh\u1eadp c\xe1c h\u1ea1ng \u0111\u1eb7t ch\u1ed7 ho\u1eb7c b\u1ecf tr\u1ed1ng cho t\u1ea5t c\u1ea3 h\u1ea1ng",1,"w-full","!max-w-full",3,"status","data","allowSearch","formControl"],[1,"flex","flex-col","gap-y-6"],[1,"text-espressive-md","text-neutral-gray-5"],[1,"border","border-neutral-gray-2","p-4","rounded","flex","gap-x-3"],["cf-input","","type","number","size","medium","placeholder","Nh\u1eadp m\u1ee9c chi\u1ebft kh\u1ea5u n\u1ebfu \u0111\u1ea1i l\xfd d\u01b0\u01a1ng qu\u1ef9",3,"formControl"],["cf-input","","type","number","size","medium","placeholder","Nh\u1eadp m\u1ee9c chi\u1ebft kh\u1ea5u n\u1ebfu \u0111\u1ea1i l\xfd \xe2m qu\u1ef9",3,"formControl"],[1,"text-heading-sm","text-neutral-black",3,"CfRequired"],["cf-input","","type","number","size","medium","placeholder","Nh\u1eadp ph\u1ea7n tr\u0103m (%) gi\xe1 tr\u1ecb chi\u1ebft kh\u1ea5u \xe1p d\u1ee5ng",3,"formControl"],["textField","name","valueField","code","placeholder","Ch\u1ecdn nh\xf3m \u0111\u1ea1i l\xfd ho\u1eb7c b\u1ecf tr\u1ed1ng cho t\u1ea5t c\u1ea3",1,"w-full","!max-w-full",3,"status","data","allowSearch","formControl"],["cf-button","","size","medium","type","secondary",1,"bg-white",3,"click"],["icon","chevron_left","size","small",1,"mr-2.5"],["cf-button","","size","medium",3,"click"],["icon","check","size","small",1,"ml-2.5"],[1,"rounded-lg","bg-neutral-white","mx-auto","py-32","flex","flex-col","gap-y-6","justify-center","items-center"],["src","assets/icons/icon-success.svg","alt",""],[1,"flex","flex-col","gap-y-3","justify-center","items-center"],[1,"text-heading-sm","text-neutral-gray-6"],[1,"text-body-md","text-neutral-gray-5"],[1,"flex","gap-x-4"],["src","assets/icons/icon-error.svg","alt",""],["class","flex flex-col",4,"ngIf"],[1,"flex","flex-col"],[1,"text-body-md-short","text-neutral-gray-6",3,"innerHtml"],[1,"text-body-sm","text-neutral-gray-4",3,"innerHtml"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0)(1,"div",1),t.YNc(2,Tt,131,65,"div",2),t.YNc(3,vt,74,27,"div",2),t.YNc(4,yt,14,2,"div",3),t.YNc(5,Dt,12,1,"div",3),t.qZA()(),t.YNc(6,xt,1,0,"cf-spinner",4),t.YNc(7,Zt,2,2,"ng-template",null,5,t.W1O)),2&e&&(t.xp6(2),t.Q6J("ngIf","DISCOUNT_CONDITIONS"===i.step),t.xp6(1),t.Q6J("ngIf","DISCOUNT_APPLY"===i.step),t.xp6(1),t.Q6J("ngIf","SUCCESS"===i.step),t.xp6(1),t.Q6J("ngIf","ERROR"===i.step),t.xp6(1),t.Q6J("ngIf",i.isLoading))},dependencies:[h.ez,h.mk,h.sg,h.O5,r.u5,r.Fj,r.wV,r.JJ,r.On,r.UX,r.oH,F.q,E.j$,E.ND,E.BN,E.v2,B.C,g.o,g.T,A.N8,A.Xq,T.AxE,T.Sm8,b.Cs,f.B,f.K,P.U,N.OR,K.T],encapsulation:2}),u})();var O=c(48373),R=c(62331),Pt=c(80750),z=c(80953),X=c(40833),H=c(17489),m=c(3447),$=c(97579);function Mt(u,s){1&u&&t._UZ(0,"cf-input-hint",36),2&u&&t.Q6J("hint","Th\u1eddi gian kh\xf4ng \u0111\u01b0\u1ee3c \u0111\u1ec3 tr\u1ed1ng")}function It(u,s){if(1&u&&t._UZ(0,"img",47),2&u){const e=t.oxw().$implicit;t.Q6J("src","assets/airline-logo/"+e.airline+".png",t.LSH)}}function St(u,s){1&u&&(t.TgZ(0,"div"),t._uU(1,"T\u1ea5t c\u1ea3 h\xe3ng bay"),t.qZA())}function Jt(u,s){if(1&u){const e=t.EpF();t.TgZ(0,"tr",37)(1,"td",38),t.YNc(2,It,1,1,"img",39),t.YNc(3,St,2,0,"div",35),t.qZA(),t.TgZ(4,"td",38),t._uU(5),t.qZA(),t.TgZ(6,"td",38),t._uU(7),t.qZA(),t.TgZ(8,"td",40)(9,"div",41),t._uU(10),t.qZA(),t.TgZ(11,"cf-icon",42),t.NdJ("click",function(){const o=t.CHM(e).$implicit,a=t.oxw();return t.KtG(a.onExpand(o.startPointDetails,"\u0110i\u1ec3m \u0111i"))}),t.qZA()(),t.TgZ(12,"td",40)(13,"div",41),t._uU(14),t.qZA(),t.TgZ(15,"cf-icon",42),t.NdJ("click",function(){const o=t.CHM(e).$implicit,a=t.oxw();return t.KtG(a.onExpand(o.endPointDetails,"\u0110i\u1ec3m \u0111\u1ebfn"))}),t.qZA()(),t.TgZ(16,"td",40)(17,"div",41),t._uU(18),t.qZA(),t.TgZ(19,"cf-icon",42),t.NdJ("click",function(){const o=t.CHM(e).$implicit,a=t.oxw();return t.KtG(a.onExpand(o.fareClass,"H\u1ea1ng gh\u1ebf"))}),t.qZA()(),t.TgZ(20,"td",38),t._uU(21),t.qZA(),t.TgZ(22,"td",38),t._uU(23),t.ALo(24,"date"),t.qZA(),t.TgZ(25,"td",38),t._uU(26),t.ALo(27,"date"),t.qZA(),t.TgZ(28,"td",38),t._uU(29),t.ALo(30,"date"),t.qZA(),t.TgZ(31,"td",38),t._uU(32),t.ALo(33,"date"),t.qZA(),t.TgZ(34,"td",38),t._uU(35),t.qZA(),t.TgZ(36,"td",38),t._uU(37),t.qZA(),t.TgZ(38,"td",38),t._uU(39),t.qZA(),t.TgZ(40,"td",38),t._uU(41),t.qZA(),t.TgZ(42,"td",38),t._uU(43),t.ALo(44,"date"),t.qZA(),t.TgZ(45,"td",43)(46,"div",44)(47,"div",45),t.NdJ("click",function(){const o=t.CHM(e).$implicit,a=t.oxw();return t.KtG(a.onEdit(o.id))}),t._uU(48," Chi ti\u1ebft "),t.qZA(),t.TgZ(49,"div",46),t.NdJ("click",function(){const o=t.CHM(e).$implicit,a=t.oxw();return t.KtG(a.onDelete(o.id))}),t._uU(50," X\xf3a"),t.qZA()()()()}if(2&u){const e=s.$implicit;t.xp6(2),t.Q6J("ngIf","ALL"!==e.airline),t.xp6(1),t.Q6J("ngIf","ALL"===e.airline),t.xp6(2),t.Oqu(e.flightTypeName),t.xp6(2),t.Oqu(e.journeyTypeName),t.xp6(3),t.hij(" ",e.startPointDetails," "),t.xp6(4),t.hij(" ",e.endPointDetails," "),t.xp6(4),t.hij(" ",e.fareClass," "),t.xp6(3),t.Oqu(e.journeyClassifyName),t.xp6(2),t.hij(" ",e.startTimeIssue?t.xi3(24,18,1e3*e.startTimeIssue,"dd/MM/yyyy"):"-"," "),t.xp6(3),t.hij(" ",e.endTimeIssue?t.xi3(27,21,1e3*e.endTimeIssue,"dd/MM/yyyy"):"-"," "),t.xp6(3),t.hij(" ",e.startTimeFly?t.xi3(30,24,1e3*e.startTimeFly,"dd/MM/yyyy"):"-"," "),t.xp6(3),t.hij(" ",e.endTimeFly?t.xi3(33,27,1e3*e.endTimeFly,"dd/MM/yyyy"):"-"," "),t.xp6(3),t.Oqu(e.totalPax),t.xp6(2),t.Oqu(e.adtNum),t.xp6(2),t.Oqu(e.chdNum),t.xp6(2),t.Oqu(e.infNum),t.xp6(2),t.Oqu(t.xi3(44,30,1e3*e.timeCreate,"dd/MM/yyyy")),t.xp6(2),t.Q6J("sticky","right")}}function Ut(u,s){1&u&&t._UZ(0,"cf-spinner")}const W=function(){return[]},wt=function(){return{num:25}},kt=function(){return{num:50}},Lt=function(){return{num:75}},Qt=function(){return{num:100}},Bt=function(u,s,e,i){return[u,s,e,i]};let Ot=(()=>{class u{constructor(e,i,n,o,a,C){this._router=i,this._discountFeeService=n,this._modal=o,this._toastService=a,this._cd=C,this.pageSize=25,this.currentPage=1,this.dataSource=[],this.listDiscountFee=[],this.timeTypeOptions=[{code:"FLY",name:"Th\u1eddi gian bay"},{code:"ISSUE",name:"Th\u1eddi gian xu\u1ea5t v\xe9"}],this.flightTypeOptions=[],this.airlineOptions=[],this.startPointOptions=[],this.endPointOptions=[],this.filterData={airline:"",flightTypeName:"",journeyTypeName:"",startPointDetails:"",endPointDetails:"",fareClass:"",journeyClassifyName:"",startTimeIssue:"",endTimeIssue:"",startTimeFly:"",endTimeFly:"",totalPax:"",adtNum:"",chdNum:"",infNum:"",timeCreate:""},this.dateRangeStr="",this.invalidTimeFilter=!1,this.isLoading=!1,this.searchChange=(x,y)=>y,this.sortChange=(x,y)=>{let p=y.map(l=>l);for(let l=0;l<x.length;l++){const v=x[l];switch(v.key){case"airline":p=this.airlineSort(p,v);break;case"flightTypeName":p=this.flightTypeNameSort(p,v);break;case"journeyTypeName":p=this.journeyTypeNameSort(p,v);break;case"startPointDetails":p=this.startPointDetailsSort(p,v);break;case"endPointDetails":p=this.endPointDetailsSort(p,v);break;case"fareClass":p=this.fareClassSort(p,v);break;case"journeyClassifyName":p=this.journeyClassifyNameSort(p,v);break;case"startTimeIssue":p=this.startTimeIssueSort(p,v);break;case"endTimeIssue":p=this.endTimeIssueSort(p,v);break;case"startTimeFly":p=this.startTimeFlySort(p,v);break;case"endTimeFly":p=this.endTimeFlySort(p,v);break;case"totalPax":p=this.totalPaxSort(p,v);break;case"adtNum":p=this.adtNumSort(p,v);break;case"chdNum":p=this.chdNumSort(p,v);break;case"infNum":p=this.infNumSort(p,v);break;case"timeCreate":p=this.timeCreateSort(p,v)}}return p},this.increaseAlphabetSort=(x,y)=>x<y?-1:x>y?1:0,this.decreaseAlphabetSort=(x,y)=>x>y?-1:x<y?1:0,e.registerIcons([T.TM4,T.Tdu]);const _=function bt(u){(0,X.Z)(1,arguments);var s=(0,z.Z)(u),e=new Date(0);return e.setFullYear(s.getFullYear(),0,1),e.setHours(0,0,0,0),e}(new Date),d=function qt(u){(0,X.Z)(1,arguments);var s=(0,z.Z)(u),e=s.getFullYear();return s.setFullYear(e+1,0,0),s.setHours(23,59,59,999),s}(new Date),M=(0,h.p6)(_,"dd/MM/yyyy","vi-VN"),S=(0,h.p6)(d,"dd/MM/yyyy","vi-VN");this.dateRangeStr=M+" - "+S,this.filterSearchData={airline:"ALL",startTime:_,startPointDetails:[],endTime:d,endPointDetails:[],flightType:"ALL",type:"ISSUE"},this.onSearch(),this.getJourneyFilter()}getJourneyFilter(){this._discountFeeService.getJourneyInfoFilterDiscountFee().subscribe({next:e=>{e.success&&e.data&&(this.flightTypeOptions=e.data.flightTypeList.map(i=>({code:i.code,name:i.name})),this.airlineOptions=e.data.airlineList.map(i=>({code:i.code,name:i.name})),this.startPointOptions=e.data.mergePointList.map(i=>({code:i.code,name:i.name})),this.endPointOptions=e.data.mergePointList.map(i=>({code:i.code,name:i.name})),this._cd.detectChanges())}})}onSearch(){const e={airline:this.filterSearchData.airline||"ALL",startTime:this.filterSearchData.startTime?D(this.filterSearchData.startTime).format("DD/MM/YYYY"):"",startPointDetails:this.filterSearchData.startPointDetails.join(",")||"ALL",endTime:this.filterSearchData.endTime?D(this.filterSearchData.endTime).format("DD/MM/YYYY"):"",endPointDetails:this.filterSearchData.endPointDetails.join(",")||"ALL",flightType:this.filterSearchData.flightType||"ALL",type:this.filterSearchData.type};this.isLoading=!0,this._discountFeeService.getListDiscountFeeConfig(e).pipe((0,U.x)(()=>this.isLoading=!1)).subscribe({next:i=>{var n;this.dataSource=(null===(n=i.data)||void 0===n?void 0:n.map(o=>Object.assign(Object.assign({},o),{startTimeFly:(0,H.isNumber)(o.startTimeFly)?o.startTimeFly:0,endTimeFly:(0,H.isNumber)(o.endTimeFly)?o.endTimeFly:0,startTimeIssue:(0,H.isNumber)(o.startTimeIssue)?o.startTimeIssue:0,endTimeIssue:(0,H.isNumber)(o.endTimeIssue)?o.endTimeIssue:0})))||[],this.listDiscountFee=this.dataSource.map(o=>o)}})}onEdit(e){this._router.navigate(["admin/discount-fee-detail/"+e])}onDelete(e){this._modal.open(N.V0,{title:"X\xf3a thi\u1ebft l\u1eadp n\xe0y?",body:"B\u1ea1n c\xf3 ch\u1eafc ch\u1eafn mu\u1ed1n x\xf3a thi\u1ebft l\u1eadp n\xe0y? Vi\u1ec7c n\xe0y kh\xf4ng th\u1ec3 ho\xe0n t\xe1c, vui l\xf2ng ki\u1ec3m tra k\u0129 tr\u01b0\u1edbc khi thao t\xe1c."}).afterClosed$.subscribe({next:n=>{n.data&&this._discountFeeService.deleteDiscountFeeConfig(e).subscribe({next:o=>{"OK"===o.status?(this.onSearch(),this._toastService.add({severity:"success",summary:"Th\xe0nh c\xf4ng",detail:"X\xf3a chi\u1ebft kh\u1ea5u th\xe0nh c\xf4ng",sticky:!1})):this._toastService.add({severity:"error",summary:"Th\u1ea5t b\u1ea1i",detail:"X\xf3a chi\u1ebft kh\u1ea5u th\u1ea5t b\u1ea1i",sticky:!0})}})}})}airlineSort(e,i){return e.sort("ascend"===i.sort?(n,o)=>this.increaseAlphabetSort(n.airline,o.airline):(n,o)=>this.decreaseAlphabetSort(n.airline,o.airline))}flightTypeNameSort(e,i){return e.sort("ascend"===i.sort?(n,o)=>this.increaseAlphabetSort(n.flightTypeName,o.flightTypeName):(n,o)=>this.decreaseAlphabetSort(n.flightTypeName,o.flightTypeName))}journeyTypeNameSort(e,i){return e.sort("ascend"===i.sort?(n,o)=>this.increaseAlphabetSort(n.journeyTypeName,o.journeyTypeName):(n,o)=>this.decreaseAlphabetSort(n.journeyTypeName,o.journeyTypeName))}startPointDetailsSort(e,i){return e.sort("ascend"===i.sort?(n,o)=>this.increaseAlphabetSort(n.startPointDetails,o.startPointDetails):(n,o)=>this.decreaseAlphabetSort(n.startPointDetails,o.startPointDetails))}endPointDetailsSort(e,i){return e.sort("ascend"===i.sort?(n,o)=>this.increaseAlphabetSort(n.endPointDetails,o.endPointDetails):(n,o)=>this.decreaseAlphabetSort(n.endPointDetails,o.endPointDetails))}fareClassSort(e,i){return e.sort("ascend"===i.sort?(n,o)=>this.increaseAlphabetSort(n.fareClass,o.fareClass):(n,o)=>this.decreaseAlphabetSort(n.fareClass,o.fareClass))}journeyClassifyNameSort(e,i){return e.sort("ascend"===i.sort?(n,o)=>this.increaseAlphabetSort(n.journeyClassifyName,o.journeyClassifyName):(n,o)=>this.decreaseAlphabetSort(n.journeyClassifyName,o.journeyClassifyName))}startTimeIssueSort(e,i){return e.sort("ascend"===i.sort?(n,o)=>n.startTimeIssue-o.startTimeIssue:(n,o)=>o.startTimeIssue-n.startTimeIssue)}endTimeIssueSort(e,i){return e.sort("ascend"===i.sort?(n,o)=>n.endTimeIssue-o.endTimeIssue:(n,o)=>o.endTimeIssue-n.endTimeIssue)}startTimeFlySort(e,i){return e.sort("ascend"===i.sort?(n,o)=>n.startTimeFly-o.startTimeFly:(n,o)=>o.startTimeFly-n.startTimeFly)}endTimeFlySort(e,i){return e.sort("ascend"===i.sort?(n,o)=>n.endTimeFly-o.endTimeFly:(n,o)=>o.endTimeFly-n.endTimeFly)}totalPaxSort(e,i){return e.sort("ascend"===i.sort?(n,o)=>n.totalPax-o.totalPax:(n,o)=>o.totalPax-n.totalPax)}adtNumSort(e,i){return e.sort("ascend"===i.sort?(n,o)=>n.adtNum-o.adtNum:(n,o)=>o.adtNum-n.adtNum)}chdNumSort(e,i){return e.sort("ascend"===i.sort?(n,o)=>n.chdNum-o.chdNum:(n,o)=>o.chdNum-n.chdNum)}infNumSort(e,i){return e.sort("ascend"===i.sort?(n,o)=>n.infNum-o.infNum:(n,o)=>o.infNum-n.infNum)}timeCreateSort(e,i){return e.sort("ascend"===i.sort?(n,o)=>n.timeCreate-o.timeCreate:(n,o)=>o.timeCreate-n.timeCreate)}onCreateServiceFee(){this._router.navigate(["admin/create-discount-fee"])}onExpand(e,i){this._modal.open(Pt.G,{description:e,title:i})}onDateSelection(e,i,n,o){if(i||n)if(i&&!n&&e&&e.getTime()>=i.getTime()){this.filterSearchData.endTime=e,o.close(),this.startDate=i;const a=(0,h.p6)(e,"dd/MM/yyyy","vi-VN");this.dateRangeStr+=a}else{this.filterSearchData.startTime=e,this.filterSearchData.endTime=null;const a=(0,h.p6)(e,"dd/MM/yyyy","vi-VN");this.dateRangeStr=a+" - "}else{this.filterSearchData.startTime=e,this.filterSearchData.endTime=null;const a=(0,h.p6)(e,"dd/MM/yyyy","vi-VN");this.dateRangeStr=a+" - "}this.invalidTimeFilter=!(this.filterSearchData.startTime&&this.filterSearchData.endTime)}filterChange(){this.listDiscountFee=this.dataSource.filter(e=>{const i=(0,m.E)(this.filterData.airline.toLowerCase());if(!(0,m.E)(e.airline.toLowerCase()).includes(i))return!1;const o=(0,m.E)(this.filterData.flightTypeName.toLowerCase());if(!(0,m.E)(e.flightTypeName.toLowerCase()).includes(o))return!1;const C=(0,m.E)(this.filterData.journeyTypeName.toLowerCase());if(!(0,m.E)(e.journeyTypeName.toLowerCase()).includes(C))return!1;const d=(0,m.E)(this.filterData.startPointDetails.toLowerCase());if(!(0,m.E)(e.startPointDetails.toLowerCase()).includes(d))return!1;const S=(0,m.E)(this.filterData.endPointDetails.toLowerCase());if(!(0,m.E)(e.endPointDetails.toLowerCase()).includes(S))return!1;const y=(0,m.E)(this.filterData.fareClass.toLowerCase());if(!(0,m.E)(e.fareClass.toLowerCase()).includes(y))return!1;const l=(0,m.E)(this.filterData.journeyClassifyName.toLowerCase());if(!(0,m.E)(e.journeyClassifyName.toLowerCase()).includes(l))return!1;const Ie=(0,m.E)(this.filterData.startTimeIssue.toLowerCase());if(!(0,m.E)((0,h.p6)(new Date(1e3*e.startTimeIssue),"dd/MM/yyyy","vi-VN")).includes(Ie))return!1;const Se=(0,m.E)(this.filterData.endTimeIssue.toLowerCase());if(!(0,m.E)((0,h.p6)(new Date(1e3*e.endTimeIssue),"dd/MM/yyyy","vi-VN")).includes(Se))return!1;const Je=(0,m.E)(this.filterData.startTimeFly.toLowerCase());if(!(0,m.E)((0,h.p6)(new Date(1e3*e.startTimeFly),"dd/MM/yyyy","vi-VN")).includes(Je))return!1;const Ue=(0,m.E)(this.filterData.endTimeFly.toLowerCase());if(!(0,m.E)((0,h.p6)(new Date(1e3*e.endTimeFly),"dd/MM/yyyy","vi-VN")).includes(Ue))return!1;const we=(0,m.E)(this.filterData.totalPax.toLowerCase());if(!(0,m.E)(e.totalPax.toString().toLowerCase()).includes(we))return!1;const ke=(0,m.E)(this.filterData.adtNum.toLowerCase());if(!(0,m.E)(e.adtNum.toString().toLowerCase()).includes(ke))return!1;const Le=(0,m.E)(this.filterData.chdNum.toLowerCase());if(!(0,m.E)(e.chdNum.toString().toLowerCase()).includes(Le))return!1;const Qe=(0,m.E)(this.filterData.infNum.toLowerCase());if(!(0,m.E)(e.infNum.toString().toLowerCase()).includes(Qe))return!1;const Be=(0,m.E)(this.filterData.timeCreate.toLowerCase());return!!(0,m.E)((0,h.p6)(new Date(1e3*e.timeCreate),"dd/MM/yyyy","vi-VN")).includes(Be)})}}return u.\u0275fac=function(e){return new(e||u)(t.Y36(T.KNP),t.Y36(w.F0),t.Y36(G.O),t.Y36($.oE),t.Y36(R.BX),t.Y36(t.sBO))},u.\u0275cmp=t.Xpm({type:u,selectors:[["discount-fee-manage-page"]],standalone:!0,features:[t.jDz],decls:130,vars:88,consts:[[1,"flex","flex-col","px-[30px]","py-4","gap-y-4","bg-neutral-white"],[1,"flex","items-end"],["textField","name","valueField","code","size","medium","placeholder","Ch\u1ecdn th\u1eddi gian",1,"!max-w-none","!w-[252px]","mr-4",3,"status","data","allowSearch","ngModel","ngModelChange"],["cfLabel","",1,"text-espressive-sm","text-black","mb-1.5"],[1,"flex","mr-2"],[1,"grow",3,"status"],["cfHeadIcon","","icon","calendar","size","small"],["cf-input","","type","text","size","medium","placeholder","Ch\u1ecdn ng\xe0y kh\u1edfi h\xe0nh",1,"py-[7px]",3,"ngModel","click","ngModelChange"],[1,"hidden"],["cfHint","",3,"hint",4,"ngIf"],["cfDatepicker","","type","text","outsideDays","hidden",1,"w-0","m-0","mr-2","bottom-0",3,"secondaryCalendar","displayMonths","rangeSelection","containerWidth","startDate","canReset","fromDate","toDate","dateSelect"],["dateRange","cfDatepicker"],["textField","name","valueField","code","size","medium","placeholder","Ch\u1ecdn h\xe3ng bay",1,"!max-w-none","!w-[252px]","mr-4",3,"status","data","allowSearch","ngModel","ngModelChange"],["textField","name","valueField","code","size","medium","placeholder","Ch\u1ecdn h\xe0nh tr\xecnh",1,"!max-w-none","!w-[252px]",3,"status","data","allowSearch","ngModel","ngModelChange"],[1,"flex","gap-x-4"],["textField","name","valueField","code",1,"w-full","!max-w-full",3,"status","data","allowSearch","placeholder","ngModel","maxHeight","ngModelChange"],["cfLabel","",1,"text-express-sm","text-black"],["cf-button","","type","secondary",1,"mt-7","whitespace-nowrap","w-[168px]","flex","justify-center","gap-x-2",3,"disabled","click"],["icon","search","size","small",1,"text-[#616161]"],[1,"py-4","px-[30px]","rounded-lg","flex","justify-center"],[1,"bg-neutral-white","rounded-lg","shadow-cf-md","w-full"],[1,"p-4","flex","justify-between","items-center"],[1,"text-heading-sm"],["cf-button","",1,"flex","gap-x-2",3,"click"],["icon","plus"],[1,"",3,"fnSort","fnSearch","pageSizeList","listData","pageSize"],["managerTable",""],["cf-thead",""],["cf-th","",1,"whitespace-nowrap",3,"sortName"],["cf-th","",1,"whitespace-nowrap",3,"sticky"],["cf-td","",1,"py-2","px-1","!bg-neutral-white"],[1,"grow","!w-auto"],["type","text","size","medium","cf-input","","placeholder","L\u1ecdc",3,"ngModel","ngModelChange","input"],["cf-td","",3,"sticky"],["ngFor","",3,"ngForOf"],[4,"ngIf"],["cfHint","",3,"hint"],[1,"border-b","border-neutral-gray-1"],["cf-td","",1,"py-2","px-3","text-body-sm"],["class","w-[80px] h-[40px] object-contain",3,"src",4,"ngIf"],["cf-td","",1,"py-2","px-3","text-body-sm","group","relative"],[1,"w-[170px]","overflow-ellipsis","whitespace-nowrap","overflow-hidden"],["icon","expand","size","small",1,"group-hover:block","hidden","text-body-sm","absolute","right-0","top-0","cursor-pointer",3,"click"],["cf-td","",1,"py-2","px-3","text-body-sm",3,"sticky"],[1,"flex","gap-x-4","items-center"],[1,"text-body-md","text-secondary-3-4","cursor-pointer","whitespace-nowrap",3,"click"],[1,"text-body-md","text-secondary-6-4","cursor-pointer",3,"click"],[1,"w-[80px]","h-[40px]","object-contain",3,"src"]],template:function(e,i){if(1&e){const n=t.EpF();t.TgZ(0,"div",0)(1,"div",1)(2,"cf-select",2),t.NdJ("ngModelChange",function(a){return i.filterSearchData.type=a}),t.TgZ(3,"label",3),t._uU(4," Th\u1eddi gian "),t.qZA()(),t.TgZ(5,"div",4)(6,"cf-input-group",5),t._UZ(7,"cf-icon",6),t.TgZ(8,"label",3),t._uU(9," Kho\u1ea3ng th\u1eddi gian "),t.qZA(),t.TgZ(10,"input",7),t.NdJ("click",function(){t.CHM(n);const a=t.MAs(14);return t.KtG(a.open())})("ngModelChange",function(a){return i.dateRangeStr=a}),t.qZA(),t.TgZ(11,"div",8),t.YNc(12,Mt,1,1,"cf-input-hint",9),t.qZA()(),t.TgZ(13,"input",10,11),t.NdJ("dateSelect",function(a){t.CHM(n);const C=t.MAs(14);return t.KtG(i.onDateSelection(a,i.filterSearchData.startTime,i.filterSearchData.endTime,C))}),t.qZA()(),t.TgZ(15,"cf-select",12),t.NdJ("ngModelChange",function(a){return i.filterSearchData.airline=a}),t.TgZ(16,"label",3),t._uU(17," H\xe3ng bay "),t.qZA()(),t.TgZ(18,"cf-select",13),t.NdJ("ngModelChange",function(a){return i.filterSearchData.flightType=a}),t.TgZ(19,"label",3),t._uU(20," Lo\u1ea1i h\xe0nh tr\xecnh "),t.qZA()()(),t.TgZ(21,"div",14)(22,"cf-multi-select",15),t.NdJ("ngModelChange",function(a){return i.filterSearchData.startPointDetails=a}),t.TgZ(23,"label",16),t._uU(24," \u0110i\u1ec3m \u0111i "),t.qZA()(),t.TgZ(25,"cf-multi-select",15),t.NdJ("ngModelChange",function(a){return i.filterSearchData.endPointDetails=a}),t.TgZ(26,"label",16),t._uU(27," \u0110i\u1ec3m \u0111\u1ebfn "),t.qZA()(),t.TgZ(28,"button",17),t.NdJ("click",function(){return i.onSearch()}),t._UZ(29,"cf-icon",18),t._uU(30," T\xecm ki\u1ebfm "),t.qZA()()(),t.TgZ(31,"div",19)(32,"div",20)(33,"div",21)(34,"div",22),t._uU(35,"Danh s\xe1ch chi\u1ebft kh\u1ea5u"),t.qZA(),t.TgZ(36,"button",23),t.NdJ("click",function(){return i.onCreateServiceFee()}),t._UZ(37,"cf-icon",24),t._uU(38," T\u1ea1o chi\u1ebft kh\u1ea5u "),t.qZA()(),t.TgZ(39,"cf-table",25,26)(41,"thead",27)(42,"th",28),t._uU(43,"H\xe3ng bay"),t.qZA(),t.TgZ(44,"th",28),t._uU(45,"Lo\u1ea1i h\xe0nh tr\xecnh"),t.qZA(),t.TgZ(46,"th",28),t._uU(47,"Lo\u1ea1i \u0111\u1ecba \u0111i\u1ec3m"),t.qZA(),t.TgZ(48,"th",28),t._uU(49,"\u0110i\u1ec3m \u0111i"),t.qZA(),t.TgZ(50,"th",28),t._uU(51,"\u0110i\u1ec3m \u0111\u1ebfn"),t.qZA(),t.TgZ(52,"th",28),t._uU(53,"H\u1ea1ng gh\u1ebf"),t.qZA(),t.TgZ(54,"th",28),t._uU(55,"Lo\u1ea1i ch\u1eb7ng bay"),t.qZA(),t.TgZ(56,"th",28),t._uU(57,"Ng\xe0y xu\u1ea5t v\xe9 \u0111\u1ea7u"),t.qZA(),t.TgZ(58,"th",28),t._uU(59,"Ng\xe0y xu\u1ea5t v\xe9 cu\u1ed1i"),t.qZA(),t.TgZ(60,"th",28),t._uU(61,"Ng\xe0y bay \u0111\u1ea7u"),t.qZA(),t.TgZ(62,"th",28),t._uU(63,"Ng\xe0y bay cu\u1ed1i"),t.qZA(),t.TgZ(64,"th",28),t._uU(65,"T\u1ed5ng h\xe0nh kh\xe1ch t\u1ed1i thi\u1ec3u"),t.qZA(),t.TgZ(66,"th",28),t._uU(67,"Ng\u01b0\u1eddi l\u1edbn t\u1ed1i thi\u1ec3u"),t.qZA(),t.TgZ(68,"th",28),t._uU(69,"Tr\u1ebb em t\u1ed1i thi\u1ec3u"),t.qZA(),t.TgZ(70,"th",28),t._uU(71,"Em b\xe9 t\u1ed1i thi\u1ec3u"),t.qZA(),t.TgZ(72,"th",28),t._uU(73,"Ng\xe0y t\u1ea1o"),t.qZA(),t.TgZ(74,"th",29),t._uU(75,"Ch\u1ee9c n\u0103ng"),t.qZA()(),t.TgZ(76,"tbody")(77,"tr")(78,"td",30)(79,"cf-input-group",31)(80,"input",32),t.NdJ("ngModelChange",function(a){return i.filterData.airline=a})("input",function(){return i.filterChange()}),t.qZA()()(),t.TgZ(81,"td",30)(82,"cf-input-group",31)(83,"input",32),t.NdJ("ngModelChange",function(a){return i.filterData.flightTypeName=a})("input",function(){return i.filterChange()}),t.qZA()()(),t.TgZ(84,"td",30)(85,"cf-input-group",31)(86,"input",32),t.NdJ("ngModelChange",function(a){return i.filterData.journeyTypeName=a})("input",function(){return i.filterChange()}),t.qZA()()(),t.TgZ(87,"td",30)(88,"cf-input-group",31)(89,"input",32),t.NdJ("ngModelChange",function(a){return i.filterData.startPointDetails=a})("input",function(){return i.filterChange()}),t.qZA()()(),t.TgZ(90,"td",30)(91,"cf-input-group",31)(92,"input",32),t.NdJ("ngModelChange",function(a){return i.filterData.endPointDetails=a})("input",function(){return i.filterChange()}),t.qZA()()(),t.TgZ(93,"td",30)(94,"cf-input-group",31)(95,"input",32),t.NdJ("ngModelChange",function(a){return i.filterData.fareClass=a})("input",function(){return i.filterChange()}),t.qZA()()(),t.TgZ(96,"td",30)(97,"cf-input-group",31)(98,"input",32),t.NdJ("ngModelChange",function(a){return i.filterData.journeyClassifyName=a})("input",function(){return i.filterChange()}),t.qZA()()(),t.TgZ(99,"td",30)(100,"cf-input-group",31)(101,"input",32),t.NdJ("ngModelChange",function(a){return i.filterData.startTimeIssue=a})("input",function(){return i.filterChange()}),t.qZA()()(),t.TgZ(102,"td",30)(103,"cf-input-group",31)(104,"input",32),t.NdJ("ngModelChange",function(a){return i.filterData.endTimeIssue=a})("input",function(){return i.filterChange()}),t.qZA()()(),t.TgZ(105,"td",30)(106,"cf-input-group",31)(107,"input",32),t.NdJ("ngModelChange",function(a){return i.filterData.startTimeFly=a})("input",function(){return i.filterChange()}),t.qZA()()(),t.TgZ(108,"td",30)(109,"cf-input-group",31)(110,"input",32),t.NdJ("ngModelChange",function(a){return i.filterData.endTimeFly=a})("input",function(){return i.filterChange()}),t.qZA()()(),t.TgZ(111,"td",30)(112,"cf-input-group",31)(113,"input",32),t.NdJ("ngModelChange",function(a){return i.filterData.totalPax=a})("input",function(){return i.filterChange()}),t.qZA()()(),t.TgZ(114,"td",30)(115,"cf-input-group",31)(116,"input",32),t.NdJ("ngModelChange",function(a){return i.filterData.adtNum=a})("input",function(){return i.filterChange()}),t.qZA()()(),t.TgZ(117,"td",30)(118,"cf-input-group",31)(119,"input",32),t.NdJ("ngModelChange",function(a){return i.filterData.chdNum=a})("input",function(){return i.filterChange()}),t.qZA()()(),t.TgZ(120,"td",30)(121,"cf-input-group",31)(122,"input",32),t.NdJ("ngModelChange",function(a){return i.filterData.infNum=a})("input",function(){return i.filterChange()}),t.qZA()()(),t.TgZ(123,"td",30)(124,"cf-input-group",31)(125,"input",32),t.NdJ("ngModelChange",function(a){return i.filterData.timeCreate=a})("input",function(){return i.filterChange()}),t.qZA()()(),t._UZ(126,"td",33),t.qZA(),t.YNc(127,Jt,51,33,"ng-template",34),t.qZA()()()(),t._UZ(128,"cf-toast"),t.YNc(129,Ut,1,0,"cf-spinner",35)}if(2&e){const n=t.MAs(40);t.xp6(2),t.Q6J("status","default")("data",i.timeTypeOptions)("allowSearch",!1)("ngModel",i.filterSearchData.type),t.xp6(4),t.Q6J("status",i.invalidTimeFilter?"error":"default"),t.xp6(4),t.Q6J("ngModel",i.dateRangeStr),t.xp6(2),t.Q6J("ngIf",i.invalidTimeFilter),t.xp6(1),t.Q6J("secondaryCalendar","lunar")("displayMonths",2)("rangeSelection",!0)("containerWidth",600)("startDate",i.startDate)("canReset",!1)("fromDate",i.filterSearchData.startTime)("toDate",i.filterSearchData.endTime),t.xp6(2),t.Q6J("status","default")("data",i.airlineOptions)("allowSearch",!1)("ngModel",i.filterSearchData.airline),t.xp6(3),t.Q6J("status","default")("data",i.flightTypeOptions)("allowSearch",!1)("ngModel",i.filterSearchData.flightType),t.xp6(4),t.Q6J("status","default")("data",i.startPointOptions||t.DdM(77,W))("allowSearch",!0)("placeholder",i.filterSearchData.startPointDetails?"Ch\u1ecdn m\xe3 s\xe2n bay":"Ch\u1ecdn m\xe3 s\xe2n bay ho\u1eb7c b\u1ecf tr\u1ed1ng cho t\u1ea5t c\u1ea3")("ngModel",i.filterSearchData.startPointDetails)("maxHeight",230),t.xp6(3),t.Q6J("status","default")("data",i.endPointOptions||t.DdM(78,W))("allowSearch",!0)("placeholder",i.filterSearchData.endPointDetails?"Ch\u1ecdn m\xe3 s\xe2n bay":"Ch\u1ecdn m\xe3 s\xe2n bay ho\u1eb7c b\u1ecf tr\u1ed1ng cho t\u1ea5t c\u1ea3")("ngModel",i.filterSearchData.endPointDetails)("maxHeight",230),t.xp6(3),t.Q6J("disabled",i.invalidTimeFilter),t.xp6(11),t.Q6J("fnSort",i.sortChange)("fnSearch",i.searchChange)("pageSizeList",t.l5B(83,Bt,t.DdM(79,wt),t.DdM(80,kt),t.DdM(81,Lt),t.DdM(82,Qt)))("listData",i.listDiscountFee)("pageSize",i.pageSize),t.xp6(3),t.Q6J("sortName","airline"),t.xp6(2),t.Q6J("sortName","flightTypeName"),t.xp6(2),t.Q6J("sortName","journeyTypeName"),t.xp6(2),t.Q6J("sortName","startPointDetails"),t.xp6(2),t.Q6J("sortName","endPointDetails"),t.xp6(2),t.Q6J("sortName","fareClass"),t.xp6(2),t.Q6J("sortName","journeyClassifyName"),t.xp6(2),t.Q6J("sortName","startTimeIssue"),t.xp6(2),t.Q6J("sortName","endTimeIssue"),t.xp6(2),t.Q6J("sortName","startTimeFly"),t.xp6(2),t.Q6J("sortName","endTimeFly"),t.xp6(2),t.Q6J("sortName","totalPax"),t.xp6(2),t.Q6J("sortName","adtNum"),t.xp6(2),t.Q6J("sortName","chdNum"),t.xp6(2),t.Q6J("sortName","infNum"),t.xp6(2),t.Q6J("sortName","timeCreate"),t.xp6(2),t.Q6J("sticky","right"),t.xp6(6),t.Q6J("ngModel",i.filterData.airline),t.xp6(3),t.Q6J("ngModel",i.filterData.flightTypeName),t.xp6(3),t.Q6J("ngModel",i.filterData.journeyTypeName),t.xp6(3),t.Q6J("ngModel",i.filterData.startPointDetails),t.xp6(3),t.Q6J("ngModel",i.filterData.endPointDetails),t.xp6(3),t.Q6J("ngModel",i.filterData.fareClass),t.xp6(3),t.Q6J("ngModel",i.filterData.journeyClassifyName),t.xp6(3),t.Q6J("ngModel",i.filterData.startTimeIssue),t.xp6(3),t.Q6J("ngModel",i.filterData.endTimeIssue),t.xp6(3),t.Q6J("ngModel",i.filterData.startTimeFly),t.xp6(3),t.Q6J("ngModel",i.filterData.endTimeFly),t.xp6(3),t.Q6J("ngModel",i.filterData.totalPax),t.xp6(3),t.Q6J("ngModel",i.filterData.adtNum),t.xp6(3),t.Q6J("ngModel",i.filterData.chdNum),t.xp6(3),t.Q6J("ngModel",i.filterData.infNum),t.xp6(3),t.Q6J("ngModel",i.filterData.timeCreate),t.xp6(1),t.Q6J("sticky","right"),t.xp6(1),t.Q6J("ngForOf",n.partOfdata),t.xp6(2),t.Q6J("ngIf",i.isLoading)}},dependencies:[h.ez,h.sg,h.O5,h.uU,r.u5,r.Fj,r.JJ,r.On,F.q,E.j$,E.ND,E.BN,E.v2,A.N8,A.Xq,T.AxE,T.Sm8,O.rC,O.E_,O.zs,O.qS,R.hj,b.Cs,N.OR,P.U],encapsulation:2}),u})();var Ht=c(4688),k=(()=>{return(u=k||(k={})).DOMESTIC="DOMESTIC",u.INTERNATIONAL="INTERNATIONAL",k;var u})(),L=(()=>{return(u=L||(L={})).AIRPORT="AIRPORT",u.NATIONAL="NATIONAL",u.AREA="AREA",L;var u})(),Q=(()=>{return(u=Q||(Q={})).TOTAL_PAX="TOTAL_PAX",u.SINGLE_PAX="SINGLE_PAX",Q;var u})(),q=c(836),Yt=c(76978);function jt(u,s){if(1&u){const e=t.EpF();t.TgZ(0,"div",13)(1,"button",14),t.NdJ("click",function(){t.CHM(e);const n=t.oxw(2);return t.KtG(n.onEdit())}),t._UZ(2,"cf-icon",15),t._uU(3," Ch\u1ec9nh s\u1eeda "),t.qZA(),t.TgZ(4,"button",8),t.NdJ("click",function(){t.CHM(e);const n=t.oxw(2);return t.KtG(n.onDelete())}),t._UZ(5,"cf-icon",16),t._uU(6," X\xf3a "),t.qZA()()}}function Gt(u,s){if(1&u){const e=t.EpF();t.TgZ(0,"div",13)(1,"button",14),t.NdJ("click",function(){t.CHM(e);const n=t.oxw(2);return t.KtG(n.onSubmit())}),t._UZ(2,"cf-icon",17),t._uU(3," L\u01b0u "),t.qZA(),t.TgZ(4,"button",8),t.NdJ("click",function(){t.CHM(e);const n=t.oxw(2);return t.KtG(n.onCancel())}),t._UZ(5,"cf-icon",18),t._uU(6," H\u1ee7y "),t.qZA()()}}function Rt(u,s){if(1&u&&(t.ynx(0),t.TgZ(1,"cf-label",44),t._uU(2),t.qZA(),t.BQk()),2&u){const e=s.$implicit;t.xp6(1),t.Q6J("size","small")("color","gray-2"),t.xp6(1),t.hij(" ","ALL"===e?"T\u1ea5t c\u1ea3":e," ")}}function Kt(u,s){if(1&u&&(t.ynx(0),t.TgZ(1,"cf-label",44),t._uU(2),t.qZA(),t.BQk()),2&u){const e=s.$implicit;t.xp6(1),t.Q6J("size","small")("color","gray-2"),t.xp6(1),t.hij(" ","ALL"===e?"T\u1ea5t c\u1ea3":e," ")}}const Z=function(){return[]};function Vt(u,s){if(1&u&&(t.TgZ(0,"div",23)(1,"div",11)(2,"div",41)(3,"div",25),t._uU(4,"\u0110i\u1ec3m \u0111i"),t.qZA(),t.TgZ(5,"div",42),t.YNc(6,Rt,3,3,"ng-container",43),t.qZA()(),t.TgZ(7,"div",41)(8,"div",25),t._uU(9,"\u0110i\u1ec3m \u0111\u1ebfn"),t.qZA(),t.TgZ(10,"div",42),t.YNc(11,Kt,3,3,"ng-container",43),t.qZA()()(),t.TgZ(12,"div")(13,"div",24)(14,"div",25),t._uU(15,"Lo\u1ea1i ch\u1eb7ng bay"),t.qZA(),t.TgZ(16,"div",26),t._uU(17),t.qZA()()()()),2&u){const e=t.oxw(4);t.xp6(6),t.Q6J("ngForOf",(null==e.discountConditionDisplay?null:e.discountConditionDisplay.startPointDetails)||t.DdM(3,Z)),t.xp6(5),t.Q6J("ngForOf",(null==e.discountConditionDisplay?null:e.discountConditionDisplay.endPointDetails)||t.DdM(4,Z)),t.xp6(6),t.hij(" ",null==e.discountConditionDisplay?null:e.discountConditionDisplay.journeyClassify," ")}}function zt(u,s){if(1&u&&(t.ynx(0),t.TgZ(1,"cf-label",44),t._uU(2),t.qZA(),t.BQk()),2&u){const e=s.$implicit;t.xp6(1),t.Q6J("size","small")("color","gray-2"),t.xp6(1),t.hij(" ","ALL"===e?"T\u1ea5t c\u1ea3":e," ")}}function Xt(u,s){if(1&u&&(t.ynx(0),t.TgZ(1,"cf-label",44),t._uU(2),t.qZA(),t.BQk()),2&u){const e=s.$implicit;t.xp6(1),t.Q6J("size","small")("color","gray-2"),t.xp6(1),t.hij(" ","ALL"===e?"T\u1ea5t c\u1ea3":e," ")}}function $t(u,s){if(1&u){const e=t.EpF();t.TgZ(0,"div",23)(1,"cf-radio-group",31),t.NdJ("ngModelChange",function(n){t.CHM(e);const o=t.oxw(4);return t.KtG(o.discountConditionDisplay.journeyType=n)}),t.TgZ(2,"cf-radio",32),t._uU(3,"Theo s\xe2n bay"),t.qZA(),t.TgZ(4,"cf-radio",32),t._uU(5,"Theo qu\u1ed1c gia"),t.qZA(),t.TgZ(6,"cf-radio",32),t._uU(7,"Theo khu v\u1ef1c"),t.qZA()(),t.TgZ(8,"div",23)(9,"div",11)(10,"div",41)(11,"div",25),t._uU(12,"\u0110i\u1ec3m \u0111i"),t.qZA(),t.TgZ(13,"div",42),t.YNc(14,zt,3,3,"ng-container",43),t.qZA()(),t.TgZ(15,"div",41)(16,"div",25),t._uU(17,"\u0110i\u1ec3m \u0111\u1ebfn"),t.qZA(),t.TgZ(18,"div",42),t.YNc(19,Xt,3,3,"ng-container",43),t.qZA()()(),t.TgZ(20,"div")(21,"div",24)(22,"div",25),t._uU(23,"Lo\u1ea1i ch\u1eb7ng bay"),t.qZA(),t.TgZ(24,"div",26),t._uU(25),t.qZA()()()()()}if(2&u){const e=t.oxw(4);t.xp6(1),t.Q6J("ngModel",e.discountConditionDisplay.journeyType),t.xp6(1),t.Q6J("disabled",!0)("value",e.JOURNEY_TYPE.AIRPORT),t.xp6(2),t.Q6J("disabled",!0)("value",e.JOURNEY_TYPE.NATIONAL),t.xp6(2),t.Q6J("disabled",!0)("value",e.JOURNEY_TYPE.AREA),t.xp6(8),t.Q6J("ngForOf",(null==e.discountConditionDisplay?null:e.discountConditionDisplay.startPointDetails)||t.DdM(10,Z)),t.xp6(5),t.Q6J("ngForOf",(null==e.discountConditionDisplay?null:e.discountConditionDisplay.endPointDetails)||t.DdM(11,Z)),t.xp6(6),t.hij(" ",null==e.discountConditionDisplay?null:e.discountConditionDisplay.journeyClassify," ")}}function Wt(u,s){if(1&u&&(t.TgZ(0,"div")(1,"div",24)(2,"div",25),t._uU(3,"T\u1ed5ng s\u1ed1 h\xe0nh kh\xe1ch t\u1ed1i thi\u1ec3u"),t.qZA(),t.TgZ(4,"div",26),t._uU(5),t.qZA()()()),2&u){const e=t.oxw(4);t.xp6(5),t.hij(" ",null==e.discountConditionDisplay?null:e.discountConditionDisplay.totalPax," ")}}function te(u,s){if(1&u&&(t.TgZ(0,"div",45)(1,"div",41)(2,"div",25),t._uU(3,"Ng\u01b0\u1eddi l\u1edbn (ADT)"),t.qZA(),t.TgZ(4,"div",26),t._uU(5),t.qZA()(),t.TgZ(6,"div",41)(7,"div",25),t._uU(8,"Tr\u1ebb em (CHD)"),t.qZA(),t.TgZ(9,"div",26),t._uU(10),t.qZA()(),t.TgZ(11,"div",41)(12,"div",25),t._uU(13,"Em b\xe9 (IFN)"),t.qZA(),t.TgZ(14,"div",26),t._uU(15),t.qZA()()()),2&u){const e=t.oxw(4);t.xp6(5),t.hij(" ",null==e.discountConditionDisplay?null:e.discountConditionDisplay.adtNum," "),t.xp6(5),t.hij(" ",null==e.discountConditionDisplay?null:e.discountConditionDisplay.chdNum," "),t.xp6(5),t.hij(" ",null==e.discountConditionDisplay?null:e.discountConditionDisplay.infNum," ")}}function ee(u,s){if(1&u&&(t.TgZ(0,"div",11)(1,"cf-input-group",36),t._UZ(2,"cf-icon",37),t.TgZ(3,"label",38),t._uU(4," Lo\u1ea1i tr\u1eeb t\u1eeb ng\xe0y "),t.qZA(),t._UZ(5,"input",39),t.qZA(),t.TgZ(6,"cf-input-group",36),t._UZ(7,"cf-icon",37),t.TgZ(8,"label",38),t._uU(9," Lo\u1ea1i tr\u1eeb \u0111\u1ebfn ng\xe0y "),t.qZA(),t._UZ(10,"input",39),t.qZA()()),2&u){const e=s.$implicit;t.xp6(1),t.Q6J("disabled",!0),t.xp6(4),t.Q6J("value",e.exceptStart),t.xp6(1),t.Q6J("disabled",!0),t.xp6(4),t.Q6J("value",e.exceptEnd)}}function ie(u,s){if(1&u&&(t.TgZ(0,"div",11)(1,"cf-input-group",36),t._UZ(2,"cf-icon",37),t.TgZ(3,"label",38),t._uU(4," Lo\u1ea1i tr\u1eeb t\u1eeb ng\xe0y "),t.qZA(),t._UZ(5,"input",39),t.qZA(),t.TgZ(6,"cf-input-group",36),t._UZ(7,"cf-icon",37),t.TgZ(8,"label",38),t._uU(9," Lo\u1ea1i tr\u1eeb \u0111\u1ebfn ng\xe0y "),t.qZA(),t._UZ(10,"input",39),t.qZA()()),2&u){const e=s.$implicit;t.xp6(1),t.Q6J("disabled",!0),t.xp6(4),t.Q6J("value",e.exceptStart),t.xp6(1),t.Q6J("disabled",!0),t.xp6(4),t.Q6J("value",e.exceptEnd)}}const Y=function(u){return{"!bg-neutral-black !text-white border-none":u}};function ne(u,s){if(1&u){const e=t.EpF();t.TgZ(0,"div",6)(1,"div",19)(2,"div",20)(3,"div",21),t._uU(4," \u0110i\u1ec1u ki\u1ec7n h\xe3ng bay "),t.qZA(),t.TgZ(5,"div",22),t._uU(6," H\xe3ng bay khai th\xe1c v\xe0 h\u1ea1ng gh\u1ebf "),t.qZA()(),t.TgZ(7,"div",23)(8,"div",24)(9,"div",25),t._uU(10,"H\xe3ng bay"),t.qZA(),t.TgZ(11,"div",26),t._uU(12),t.qZA()(),t.TgZ(13,"div",24)(14,"div",25),t._uU(15,"H\u1ea1ng \u0111\u1eb7t ch\u1ed7"),t.qZA(),t.TgZ(16,"div",26),t._uU(17),t.qZA()()()(),t.TgZ(18,"div",19)(19,"div",20)(20,"div",21),t._uU(21," \u0110i\u1ec1u ki\u1ec7n h\xe0nh tr\xecnh "),t.qZA(),t.TgZ(22,"div",22),t._uU(23," H\xe0nh tr\xecnh bay \xe1p d\u1ee5ng, ch\u1ec9 \xe1p d\u1ee5ng cho h\xe0nh tr\xecnh m\u1ed9t chi\u1ec1u "),t.qZA()(),t.TgZ(24,"div",27)(25,"div",28)(26,"div",29)(27,"span"),t._uU(28,"Qu\u1ed1c n\u1ed9i"),t.qZA()(),t.TgZ(29,"div",29)(30,"span"),t._uU(31,"Qu\u1ed1c t\u1ebf"),t.qZA()()(),t.YNc(32,Vt,18,5,"div",30),t.YNc(33,$t,26,12,"div",30),t.qZA()(),t.TgZ(34,"div",19)(35,"div",20)(36,"div",21),t._uU(37," \u0110i\u1ec1u ki\u1ec7n h\xe0nh kh\xe1ch "),t.qZA(),t.TgZ(38,"div",22),t._uU(39," Y\xeau c\u1ea7u v\u1ec1 s\u1ed1 l\u01b0\u1ee3ng h\xe0nh kh\xe1ch t\u1ed1i thi\u1ec3u "),t.qZA()(),t.TgZ(40,"div",23)(41,"cf-radio-group",31),t.NdJ("ngModelChange",function(n){t.CHM(e);const o=t.oxw(3);return t.KtG(o.paxType=n)}),t.TgZ(42,"cf-radio",32),t._uU(43,"T\u1ed5ng h\xe0nh kh\xe1ch"),t.qZA(),t.TgZ(44,"cf-radio",32),t._uU(45," T\u1eebng \u0111\u1ed1i t\u01b0\u1ee3ng h\xe0nh kh\xe1ch "),t.qZA()(),t.YNc(46,Wt,6,1,"div",4),t.YNc(47,te,16,3,"div",33),t.qZA()(),t.TgZ(48,"div",34)(49,"div",35)(50,"div",21),t._uU(51," Th\u1eddi gian xu\u1ea5t v\xe9 "),t.qZA(),t.TgZ(52,"div",22),t._uU(53," Th\u1eddi gian xu\u1ea5t v\xe9 \xe1p d\u1ee5ng chi\u1ebft kh\u1ea5u, c\xf3 th\u1ec3 bao g\u1ed3m th\u1eddi gian lo\u1ea1i tr\u1eeb "),t.qZA()(),t.TgZ(54,"div",23)(55,"div",11)(56,"cf-input-group",36),t._UZ(57,"cf-icon",37),t.TgZ(58,"label",38),t._uU(59," \xc1p d\u1ee5ng t\u1eeb ng\xe0y "),t.qZA(),t._UZ(60,"input",39),t.qZA(),t.TgZ(61,"cf-input-group",36),t._UZ(62,"cf-icon",37),t.TgZ(63,"label",38),t._uU(64," \xc1p d\u1ee5ng \u0111\u1ebfn ng\xe0y "),t.qZA(),t._UZ(65,"input",39),t.qZA()(),t.YNc(66,ee,11,4,"div",40),t.qZA()(),t.TgZ(67,"div",34)(68,"div",35)(69,"div",21),t._uU(70," Th\u1eddi gian bay "),t.qZA(),t.TgZ(71,"div",22),t._uU(72," Th\u1eddi gian bay \xe1p d\u1ee5ng chi\u1ebft kh\u1ea5u, c\xf3 th\u1ec3 bao g\u1ed3m th\u1eddi gian lo\u1ea1i tr\u1eeb "),t.qZA()(),t.TgZ(73,"div",23)(74,"div",11)(75,"cf-input-group",36),t._UZ(76,"cf-icon",37),t.TgZ(77,"label",38),t._uU(78," \xc1p d\u1ee5ng t\u1eeb ng\xe0y "),t.qZA(),t._UZ(79,"input",39),t.qZA(),t.TgZ(80,"cf-input-group",36),t._UZ(81,"cf-icon",37),t.TgZ(82,"label",38),t._uU(83," \xc1p d\u1ee5ng \u0111\u1ebfn ng\xe0y "),t.qZA(),t._UZ(84,"input",39),t.qZA()(),t.YNc(85,ie,11,4,"div",40),t.qZA()()()}if(2&u){const e=t.oxw(3);t.xp6(12),t.hij(" ",null==e.discountConditionDisplay?null:e.discountConditionDisplay.airline," "),t.xp6(5),t.hij(" ",null==e.discountConditionDisplay?null:e.discountConditionDisplay.fareClass," "),t.xp6(9),t.Q6J("ngClass",t.VKq(23,Y,e.flightType===e.FLIGHT_TYPE.DOMESTIC)),t.xp6(3),t.Q6J("ngClass",t.VKq(25,Y,e.flightType===e.FLIGHT_TYPE.INTERNATIONAL)),t.xp6(3),t.Q6J("ngIf",e.flightType===e.FLIGHT_TYPE.DOMESTIC),t.xp6(1),t.Q6J("ngIf",e.flightType===e.FLIGHT_TYPE.INTERNATIONAL),t.xp6(8),t.Q6J("ngModel",e.paxType),t.xp6(1),t.Q6J("disabled",!0)("value",e.PAX_TYPE.TOTAL_PAX),t.xp6(2),t.Q6J("disabled",!0)("value",e.PAX_TYPE.SINGLE_PAX),t.xp6(2),t.Q6J("ngIf",e.paxType===e.PAX_TYPE.TOTAL_PAX),t.xp6(1),t.Q6J("ngIf",e.paxType===e.PAX_TYPE.SINGLE_PAX),t.xp6(9),t.Q6J("disabled",!0),t.xp6(4),t.Q6J("value",null==e.discountConditionDisplay?null:e.discountConditionDisplay.startTimeIssue),t.xp6(1),t.Q6J("disabled",!0),t.xp6(4),t.Q6J("value",null==e.discountConditionDisplay?null:e.discountConditionDisplay.endTimeIssue),t.xp6(1),t.Q6J("ngForOf",null==e.discountConditionDisplay?null:e.discountConditionDisplay.timeIssueCustom),t.xp6(9),t.Q6J("disabled",!0),t.xp6(4),t.Q6J("value",null==e.discountConditionDisplay?null:e.discountConditionDisplay.startTimeFly),t.xp6(1),t.Q6J("disabled",!0),t.xp6(4),t.Q6J("value",null==e.discountConditionDisplay?null:e.discountConditionDisplay.endTimeFly),t.xp6(1),t.Q6J("ngForOf",null==e.discountConditionDisplay?null:e.discountConditionDisplay.timeFlyCustom)}}function oe(u,s){if(1&u&&(t.TgZ(0,"div")(1,"div",6)(2,"div",19)(3,"div",20)(4,"div",21),t._uU(5," M\u1ee9c chi\u1ebft kh\u1ea5u \u0111\u1ea7u v\xe0o "),t.qZA(),t.TgZ(6,"div",22),t._uU(7," M\u1ee9c chi\u1ebft kh\u1ea5u g\u1ed1c h\xe3ng chia cho \u0111\u1ea1i l\xfd F1 "),t.qZA()(),t.TgZ(8,"div",11)(9,"div",41)(10,"div",25),t._uU(11,"Chi\u1ebft kh\u1ea5u g\u1ed1c t\u1eeb h\xe3ng"),t.qZA(),t.TgZ(12,"div",26),t._uU(13),t.ALo(14,"replace"),t.ALo(15,"number"),t.qZA()(),t.TgZ(16,"div",41)(17,"div",25),t._uU(18,"Lo\u1ea1i ti\u1ec1n"),t.qZA(),t.TgZ(19,"div",26),t._uU(20),t.qZA()()()(),t.TgZ(21,"div",19)(22,"div",20)(23,"div",21),t._uU(24," M\u1ee9c chi\u1ebft kh\u1ea5u \u0111\u1ea7u ra "),t.qZA(),t.TgZ(25,"div",22),t._uU(26," C\xe1c m\u1ee9c chi\u1ebft kh\u1ea5u \xe1p d\u1ee5ng chi tr\u1ea3 cho \u0111\u1ea1i l\xfd F2 l\u1ea5y t\u1eeb chi\u1ebft kh\u1ea5u \u0111\u1ea7u v\xe0o "),t.qZA()(),t.TgZ(27,"div",46)(28,"div",23)(29,"div",47),t._uU(30,"N\u1ebfu thanh to\xe1n ngay cho \u0111\u1ea1i l\xfd"),t.qZA(),t.TgZ(31,"div",48)(32,"div",41)(33,"div",25),t._uU(34,"Chi\u1ebft kh\u1ea5u khi d\u01b0\u01a1ng qu\u1ef9"),t.qZA(),t.TgZ(35,"div",26),t._uU(36),t.ALo(37,"replace"),t.ALo(38,"number"),t.qZA()(),t.TgZ(39,"div",41)(40,"div",25),t._uU(41,"Chi\u1ebft kh\u1ea5u khi \xe2m qu\u1ef9"),t.qZA(),t.TgZ(42,"div",26),t._uU(43),t.ALo(44,"replace"),t.ALo(45,"number"),t.qZA()()()(),t.TgZ(46,"div",23)(47,"div",47),t._uU(48,"N\u1ebfu thanh to\xe1n sau cho \u0111\u1ea1i l\xfd"),t.qZA(),t.TgZ(49,"div",48)(50,"div",41)(51,"div",25),t._uU(52,"Chi\u1ebft kh\u1ea5u khi d\u01b0\u01a1ng qu\u1ef9"),t.qZA(),t.TgZ(53,"div",26),t._uU(54),t.ALo(55,"replace"),t.ALo(56,"number"),t.qZA()(),t.TgZ(57,"div",41)(58,"div",25),t._uU(59,"Chi\u1ebft kh\u1ea5u khi \xe2m qu\u1ef9"),t.qZA(),t.TgZ(60,"div",26),t._uU(61),t.ALo(62,"replace"),t.ALo(63,"number"),t.qZA()()()()()(),t.TgZ(64,"div",19)(65,"div",20)(66,"div",49),t._uU(67," M\u1ee9c chi\u1ebft kh\u1ea5u d\xe0nh cho CodeShare "),t.qZA(),t.TgZ(68,"div",22),t._uU(69," Ph\u1ea7n tr\u0103m chi\u1ebft kh\u1ea5u cho c\xe1c chuy\u1ebfn bay codeshare so v\u1edbi chi\u1ebft kh\u1ea5u \u0111\u1ea7y \u0111\u1ee7 "),t.qZA()(),t.TgZ(70,"div",27)(71,"div",26),t._uU(72),t.qZA()()(),t.TgZ(73,"div",19)(74,"div",20)(75,"div",21),t._uU(76," Nh\xf3m \u0111\u1ea1i l\xfd "),t.qZA(),t.TgZ(77,"div",22),t._uU(78," C\xe1c \u0111\u1ea1i l\xfd thu\u1ed9c nh\xf3m n\xe0y s\u1ebd \u0111\u01b0\u1ee3c \xe1p d\u1ee5ng m\u1ee9c chi\u1ebft kh\u1ea5u "),t.qZA()(),t.TgZ(79,"div",27)(80,"div",26),t._uU(81),t.qZA()()()()()),2&u){const e=t.oxw(3);t.xp6(13),t.hij(" ",t.Dn7(14,9,t.lcZ(15,13,(null==e.discountApplyDisplay?null:e.discountApplyDisplay.amountFromAirline)||0),",",".")," \u0111 "),t.xp6(7),t.hij(" ",null==e.discountApplyDisplay?null:e.discountApplyDisplay.currencyCode," "),t.xp6(16),t.hij(" ",t.Dn7(37,15,t.lcZ(38,19,(null==e.discountApplyDisplay?null:e.discountApplyDisplay.amountNowPositive)||0),",",".")," \u0111 "),t.xp6(7),t.hij(" ",t.Dn7(44,21,t.lcZ(45,25,(null==e.discountApplyDisplay?null:e.discountApplyDisplay.amountNowNegative)||0),",",".")," \u0111 "),t.xp6(11),t.hij(" ",t.Dn7(55,27,t.lcZ(56,31,(null==e.discountApplyDisplay?null:e.discountApplyDisplay.amountLaterPositive)||0),",",".")," \u0111 "),t.xp6(7),t.hij(" ",t.Dn7(62,33,t.lcZ(63,37,(null==e.discountApplyDisplay?null:e.discountApplyDisplay.amountLaterNegative)||0),",",".")," \u0111 "),t.xp6(5),t.Q6J("CfRequired",!0),t.xp6(6),t.hij(" ",(null==e.discountApplyDisplay?null:e.discountApplyDisplay.codeSharePercent)||0," % "),t.xp6(9),t.hij(" ",null==e.discountApplyDisplay?null:e.discountApplyDisplay.groupAgId," ")}}function ue(u,s){if(1&u&&(t.TgZ(0,"div"),t.YNc(1,ne,86,27,"div",2),t.YNc(2,oe,82,39,"div",4),t.qZA()),2&u){const e=t.oxw(2);t.xp6(1),t.Q6J("ngIf","DISCOUNT_CONDITION"===e.viewMode),t.xp6(1),t.Q6J("ngIf","DISCOUNT_APPLY"===e.viewMode)}}function ae(u,s){if(1&u&&t._UZ(0,"cf-input-hint",74),2&u){const e=t.oxw(4);t.Q6J("hint",e.errorMessage.airline)}}function se(u,s){if(1&u){const e=t.EpF();t.TgZ(0,"div",23)(1,"div",13)(2,"cf-multi-select",75),t.NdJ("selectedChange",function(n){t.CHM(e);const o=t.oxw(4);return t.KtG(o.onSelectedChange("startPointDetails",n))}),t.TgZ(3,"label",54),t._uU(4," \u0110i\u1ec3m \u0111i "),t.qZA()(),t.TgZ(5,"button",76),t.NdJ("click",function(){t.CHM(e);const n=t.oxw(4);return t.KtG(n.swapPoint(n.discountConditionForm.controls.startPointDetails,n.discountConditionForm.controls.endPointDetails))}),t._UZ(6,"cf-icon",77),t.qZA(),t.TgZ(7,"cf-multi-select",75),t.NdJ("selectedChange",function(n){t.CHM(e);const o=t.oxw(4);return t.KtG(o.onSelectedChange("endPointDetails",n))}),t.TgZ(8,"label",54),t._uU(9," \u0110i\u1ec3m \u0111\u1ebfn "),t.qZA()()(),t.TgZ(10,"div")(11,"cf-select",78)(12,"label",54),t._uU(13," Lo\u1ea1i ch\u1eb7ng bay "),t.qZA()()()()}if(2&u){const e=t.oxw(4),i=t.MAs(8);t.xp6(2),t.Q6J("status","default")("data",e.airportOptions||t.DdM(18,Z))("allowSearch",!0)("placeholder",e.discountConditionForm.controls.startPointDetails?"Ch\u1ecdn m\xe3 s\xe2n bay":"Ch\u1ecdn m\xe3 s\xe2n bay ho\u1eb7c b\u1ecf tr\u1ed1ng cho t\u1ea5t c\u1ea3")("formControl",e.discountConditionForm.controls.startPointDetails)("maxHeight",230)("optionTmp",i),t.xp6(5),t.Q6J("status","default")("data",e.airportOptions||t.DdM(19,Z))("allowSearch",!0)("placeholder",e.discountConditionForm.controls.endPointDetails?"Ch\u1ecdn m\xe3 s\xe2n bay":"Ch\u1ecdn m\xe3 s\xe2n bay ho\u1eb7c b\u1ecf tr\u1ed1ng cho t\u1ea5t c\u1ea3")("formControl",e.discountConditionForm.controls.endPointDetails)("maxHeight",230)("optionTmp",i),t.xp6(4),t.Q6J("status","default")("data",e.classifyListDomestic)("allowSearch",!1)("formControl",e.discountConditionForm.controls.journeyClassify)}}function re(u,s){if(1&u){const e=t.EpF();t.TgZ(0,"div",11)(1,"cf-multi-select",75),t.NdJ("selectedChange",function(n){t.CHM(e);const o=t.oxw(5);return t.KtG(o.onSelectedChange("startPointDetails",n))}),t.TgZ(2,"label",54),t._uU(3," \u0110i\u1ec3m \u0111i "),t.qZA()(),t.TgZ(4,"button",76),t.NdJ("click",function(){t.CHM(e);const n=t.oxw(5);return t.KtG(n.swapPoint(n.discountConditionForm.controls.startPointDetails,n.discountConditionForm.controls.endPointDetails))}),t._UZ(5,"cf-icon",77),t.qZA(),t.TgZ(6,"cf-multi-select",75),t.NdJ("selectedChange",function(n){t.CHM(e);const o=t.oxw(5);return t.KtG(o.onSelectedChange("endPointDetails",n))}),t.TgZ(7,"label",54),t._uU(8," \u0110i\u1ec3m \u0111\u1ebfn "),t.qZA()()()}if(2&u){const e=t.oxw(5),i=t.MAs(8);t.xp6(1),t.Q6J("status","default")("data",e.airportOptions||t.DdM(14,Z))("allowSearch",!0)("placeholder",e.discountConditionForm.controls.startPointDetails?"Ch\u1ecdn m\xe3 s\xe2n bay":"Ch\u1ecdn m\xe3 s\xe2n bay ho\u1eb7c b\u1ecf tr\u1ed1ng cho t\u1ea5t c\u1ea3")("formControl",e.discountConditionForm.controls.startPointDetails)("maxHeight",230)("optionTmp",i),t.xp6(5),t.Q6J("status","default")("data",e.airportOptions||t.DdM(15,Z))("allowSearch",!0)("placeholder",e.discountConditionForm.controls.endPointDetails?"Ch\u1ecdn m\xe3 s\xe2n bay":"Ch\u1ecdn m\xe3 s\xe2n bay ho\u1eb7c b\u1ecf tr\u1ed1ng cho t\u1ea5t c\u1ea3")("formControl",e.discountConditionForm.controls.endPointDetails)("maxHeight",230)("optionTmp",i)}}function le(u,s){if(1&u){const e=t.EpF();t.TgZ(0,"div",11)(1,"cf-multi-select",81),t.NdJ("selectedChange",function(n){t.CHM(e);const o=t.oxw(5);return t.KtG(o.onSelectedChange("startPointDetails",n))}),t.TgZ(2,"label",54),t._uU(3," \u0110i\u1ec3m \u0111i "),t.qZA()(),t.TgZ(4,"button",76),t.NdJ("click",function(){t.CHM(e);const n=t.oxw(5);return t.KtG(n.swapPoint(n.discountConditionForm.controls.startPointDetails,n.discountConditionForm.controls.endPointDetails))}),t._UZ(5,"cf-icon",77),t.qZA(),t.TgZ(6,"cf-multi-select",81),t.NdJ("selectedChange",function(n){t.CHM(e);const o=t.oxw(5);return t.KtG(o.onSelectedChange("endPointDetails",n))}),t.TgZ(7,"label",54),t._uU(8," \u0110i\u1ec3m \u0111\u1ebfn "),t.qZA()()()}if(2&u){const e=t.oxw(5);t.xp6(1),t.Q6J("status","default")("data",e.countryOptions||t.DdM(10,Z))("allowSearch",!0)("formControl",e.discountConditionForm.controls.startPointDetails)("maxHeight",230),t.xp6(5),t.Q6J("status","default")("data",e.countryOptions||t.DdM(11,Z))("allowSearch",!0)("formControl",e.discountConditionForm.controls.endPointDetails)("maxHeight",230)}}function ce(u,s){if(1&u){const e=t.EpF();t.TgZ(0,"div",11)(1,"cf-multi-select",82),t.NdJ("selectedChange",function(n){t.CHM(e);const o=t.oxw(5);return t.KtG(o.onSelectedChange("startPointDetails",n))}),t.TgZ(2,"label",54),t._uU(3," \u0110i\u1ec3m \u0111i "),t.qZA()(),t.TgZ(4,"button",76),t.NdJ("click",function(){t.CHM(e);const n=t.oxw(5);return t.KtG(n.swapPoint(n.discountConditionForm.controls.startPointDetails,n.discountConditionForm.controls.endPointDetails))}),t._UZ(5,"cf-icon",77),t.qZA(),t.TgZ(6,"cf-multi-select",82),t.NdJ("selectedChange",function(n){t.CHM(e);const o=t.oxw(5);return t.KtG(o.onSelectedChange("endPointDetails",n))}),t.TgZ(7,"label",54),t._uU(8," \u0110i\u1ec3m \u0111\u1ebfn "),t.qZA()()()}if(2&u){const e=t.oxw(5);t.xp6(1),t.Q6J("status","default")("data",e.areaOptions||t.DdM(10,Z))("allowSearch",!0)("formControl",e.discountConditionForm.controls.startPointDetails)("maxHeight",230),t.xp6(5),t.Q6J("status","default")("data",e.areaOptions||t.DdM(11,Z))("allowSearch",!0)("formControl",e.discountConditionForm.controls.endPointDetails)("maxHeight",230)}}function de(u,s){if(1&u){const e=t.EpF();t.TgZ(0,"div",23)(1,"cf-radio-group",79),t.NdJ("checkChange",function(n){t.CHM(e);const o=t.oxw(4);return t.KtG(o.onChangeJourneyType(n))}),t.TgZ(2,"cf-radio",57),t._uU(3,"Theo s\xe2n bay"),t.qZA(),t.TgZ(4,"cf-radio",57),t._uU(5,"Theo qu\u1ed1c gia"),t.qZA(),t.TgZ(6,"cf-radio",57),t._uU(7,"Theo khu v\u1ef1c"),t.qZA()(),t.TgZ(8,"div",23),t.YNc(9,re,9,16,"div",58),t.YNc(10,le,9,12,"div",58),t.YNc(11,ce,9,12,"div",58),t.TgZ(12,"div")(13,"cf-select",80)(14,"label",54),t._uU(15," Lo\u1ea1i ch\u1eb7ng bay "),t.qZA()()()()()}if(2&u){const e=t.oxw(4);t.xp6(1),t.Q6J("formControl",e.discountConditionForm.controls.journeyType),t.xp6(1),t.Q6J("value",e.JOURNEY_TYPE.AIRPORT),t.xp6(2),t.Q6J("value",e.JOURNEY_TYPE.NATIONAL),t.xp6(2),t.Q6J("value",e.JOURNEY_TYPE.AREA),t.xp6(3),t.Q6J("ngIf",e.journeyType===e.JOURNEY_TYPE.AIRPORT),t.xp6(1),t.Q6J("ngIf",e.journeyType===e.JOURNEY_TYPE.NATIONAL),t.xp6(1),t.Q6J("ngIf",e.journeyType===e.JOURNEY_TYPE.AREA),t.xp6(2),t.Q6J("status","default")("data",e.classifyListInternational)("allowSearch",!1)("formControl",e.discountConditionForm.controls.journeyClassify)}}function pe(u,s){if(1&u&&(t.TgZ(0,"div")(1,"cf-input-group",59)(2,"label",54),t._uU(3," T\u1ed5ng s\u1ed1 h\xe0nh kh\xe1ch t\u1ed1i thi\u1ec3u "),t.qZA(),t._UZ(4,"input",83),t.qZA()()),2&u){const e=t.oxw(4);t.xp6(1),t.Q6J("status","default"),t.xp6(3),t.Q6J("formControl",e.discountConditionForm.controls.totalPax)}}function _e(u,s){if(1&u&&(t.TgZ(0,"div",11)(1,"cf-input-group",59)(2,"label",54)(3,"span",84),t._uU(4,"Ng\u01b0\u1eddi l\u1edbn (ADT)"),t.qZA()(),t._UZ(5,"input",85),t.qZA(),t.TgZ(6,"cf-input-group",59)(7,"label",54)(8,"span",84),t._uU(9,"Tr\u1ebb em (CHD)"),t.qZA()(),t._UZ(10,"input",85),t.qZA(),t.TgZ(11,"cf-input-group",59)(12,"label",54)(13,"span",84),t._uU(14,"Em b\xe9 (IFN)"),t.qZA()(),t._UZ(15,"input",85),t.qZA()()),2&u){const e=t.oxw(4);t.xp6(1),t.Q6J("status","default"),t.xp6(2),t.Q6J("CfRequired",!0),t.xp6(2),t.Q6J("formControl",e.discountConditionForm.controls.adtNum),t.xp6(1),t.Q6J("status","default"),t.xp6(2),t.Q6J("CfRequired",!0),t.xp6(2),t.Q6J("formControl",e.discountConditionForm.controls.chdNum),t.xp6(1),t.Q6J("status","default"),t.xp6(2),t.Q6J("CfRequired",!0),t.xp6(2),t.Q6J("formControl",e.discountConditionForm.controls.infNum)}}function me(u,s){if(1&u&&t._UZ(0,"cf-input-hint",74),2&u){const e=t.oxw(4);t.Q6J("hint",e.errorMessage.startTimeIssue)}}function he(u,s){1&u&&t._UZ(0,"cf-input-hint",74),2&u&&t.Q6J("hint","Th\u1eddi gian xu\u1ea5t v\xe9 ph\u1ea3i b\u1eaft \u0111\u1ea7u t\u1eeb h\xf4m nay")}function ge(u,s){if(1&u&&t._UZ(0,"cf-input-hint",74),2&u){const e=t.oxw(4);t.Q6J("hint",e.errorMessage.endTimeIssue)}}function fe(u,s){1&u&&(t.TgZ(0,"div",86),t._uU(1," T\xf9y ch\u1ec9nh th\u1eddi gian lo\u1ea1i tr\u1eeb "),t.qZA())}function Ee(u,s){if(1&u){const e=t.EpF();t.TgZ(0,"div",13)(1,"cf-input-group",59),t._UZ(2,"cf-icon",37),t.TgZ(3,"label",60),t._uU(4," Lo\u1ea1i tr\u1eeb t\u1eeb ng\xe0y "),t.qZA(),t.TgZ(5,"input",87,62),t.NdJ("input",function(){t.CHM(e);const n=t.MAs(6);return t.KtG(n.close())})("dateSelect",function(){t.CHM(e);const n=t.MAs(6);return t.KtG(n.close())}),t.qZA()(),t.TgZ(7,"cf-input-group",59),t._UZ(8,"cf-icon",37),t.TgZ(9,"label",60),t._uU(10," Lo\u1ea1i tr\u1eeb \u0111\u1ebfn ng\xe0y "),t.qZA(),t.TgZ(11,"input",87,62),t.NdJ("input",function(){t.CHM(e);const n=t.MAs(6);return t.KtG(n.close())})("dateSelect",function(){t.CHM(e);const n=t.MAs(6);return t.KtG(n.close())}),t.qZA()(),t.TgZ(13,"div",88),t.NdJ("click",function(){const o=t.CHM(e).index,a=t.oxw(4);return t.KtG(a.onRemoveTimeIssue(o))}),t._UZ(14,"cf-icon",89),t.qZA()()}if(2&u){const e=s.$implicit;t.xp6(1),t.Q6J("status",null!=e.controls&&e.controls.exceptStart.invalid&&(null!=e.controls&&e.controls.exceptStart.dirty||null!=e.controls&&e.controls.exceptStart.touched)?"error":"default"),t.xp6(2),t.Q6J("CfRequired",!0),t.xp6(2),t.Q6J("secondaryCalendar","lunar")("displayMonths",1)("formControl",null==e.controls?null:e.controls.exceptStart),t.xp6(2),t.Q6J("status",null!=e.controls&&e.controls.exceptEnd.invalid&&(null!=e.controls&&e.controls.exceptEnd.dirty||null!=e.controls&&e.controls.exceptEnd.touched)?"error":"default"),t.xp6(2),t.Q6J("CfRequired",!0),t.xp6(2),t.Q6J("secondaryCalendar","lunar")("displayMonths",1)("formControl",null==e.controls?null:e.controls.exceptEnd)}}function Ce(u,s){if(1&u){const e=t.EpF();t.TgZ(0,"div",90)(1,"a",91),t.NdJ("click",function(){t.CHM(e);const n=t.oxw(4);return t.KtG(n.onAddTimeIssue())}),t._uU(2," Th\xeam th\u1eddi gian lo\u1ea1i tr\u1eeb "),t.qZA()()}}function Te(u,s){1&u&&(t.TgZ(0,"div",86),t._uU(1," T\xf9y ch\u1ec9nh th\u1eddi gian lo\u1ea1i tr\u1eeb "),t.qZA())}function ve(u,s){if(1&u){const e=t.EpF();t.TgZ(0,"div",13)(1,"cf-input-group",59),t._UZ(2,"cf-icon",37),t.TgZ(3,"label",60),t._uU(4," Lo\u1ea1i tr\u1eeb t\u1eeb ng\xe0y "),t.qZA(),t.TgZ(5,"input",87,62),t.NdJ("input",function(){t.CHM(e);const n=t.MAs(6);return t.KtG(n.close())})("dateSelect",function(){t.CHM(e);const n=t.MAs(6);return t.KtG(n.close())}),t.qZA()(),t.TgZ(7,"cf-input-group",59),t._UZ(8,"cf-icon",37),t.TgZ(9,"label",60),t._uU(10," Lo\u1ea1i tr\u1eeb \u0111\u1ebfn ng\xe0y "),t.qZA(),t.TgZ(11,"input",87,62),t.NdJ("input",function(){t.CHM(e);const n=t.MAs(6);return t.KtG(n.close())})("dateSelect",function(){t.CHM(e);const n=t.MAs(6);return t.KtG(n.close())}),t.qZA()(),t.TgZ(13,"div",88),t.NdJ("click",function(){const o=t.CHM(e).index,a=t.oxw(4);return t.KtG(a.onRemoveTimeFly(o))}),t._UZ(14,"cf-icon",89),t.qZA()()}if(2&u){const e=s.$implicit;t.xp6(1),t.Q6J("status",null!=e.controls&&e.controls.exceptStart.invalid&&(null!=e.controls&&e.controls.exceptStart.dirty||null!=e.controls&&e.controls.exceptStart.touched)?"error":"default"),t.xp6(2),t.Q6J("CfRequired",!0),t.xp6(2),t.Q6J("secondaryCalendar","lunar")("displayMonths",1)("formControl",null==e.controls?null:e.controls.exceptStart),t.xp6(2),t.Q6J("status",null!=e.controls&&e.controls.exceptEnd.invalid&&(null!=e.controls&&e.controls.exceptEnd.dirty||null!=e.controls&&e.controls.exceptEnd.touched)?"error":"default"),t.xp6(2),t.Q6J("CfRequired",!0),t.xp6(2),t.Q6J("secondaryCalendar","lunar")("displayMonths",1)("formControl",null==e.controls?null:e.controls.exceptEnd)}}function ye(u,s){if(1&u){const e=t.EpF();t.TgZ(0,"div",90)(1,"a",91),t.NdJ("click",function(){t.CHM(e);const n=t.oxw(4);return t.KtG(n.onAddTimeFly())}),t._uU(2," Th\xeam th\u1eddi gian lo\u1ea1i tr\u1eeb "),t.qZA()()}}function De(u,s){if(1&u){const e=t.EpF();t.TgZ(0,"div",6)(1,"div",19)(2,"div",20)(3,"div",21),t._uU(4," \u0110i\u1ec1u ki\u1ec7n h\xe3ng bay "),t.qZA(),t.TgZ(5,"div",22),t._uU(6," H\xe3ng bay khai th\xe1c v\xe0 h\u1ea1ng gh\u1ebf "),t.qZA()(),t.TgZ(7,"div",23)(8,"cf-select",50),t.NdJ("selectedChange",function(n){t.CHM(e);const o=t.oxw(3);return t.KtG(o.onSelectedAirline(n.code))}),t.TgZ(9,"label",51),t._uU(10," H\xe3ng bay "),t.qZA(),t.YNc(11,ae,1,1,"cf-input-hint",52),t.qZA(),t.TgZ(12,"cf-multi-select",53)(13,"label",54),t._uU(14," H\u1ea1ng \u0111\u1eb7t ch\u1ed7 "),t.qZA()()()(),t.TgZ(15,"div",19)(16,"div",20)(17,"div",21),t._uU(18," \u0110i\u1ec1u ki\u1ec7n h\xe0nh tr\xecnh "),t.qZA(),t.TgZ(19,"div",22),t._uU(20," H\xe0nh tr\xecnh bay \xe1p d\u1ee5ng, ch\u1ec9 \xe1p d\u1ee5ng cho h\xe0nh tr\xecnh m\u1ed9t chi\u1ec1u "),t.qZA()(),t.TgZ(21,"div",27)(22,"div",28)(23,"div",55),t.NdJ("click",function(){t.CHM(e);const n=t.oxw(3);return t.KtG(n.onSwitcJourney(n.FLIGHT_TYPE.DOMESTIC))}),t.TgZ(24,"span"),t._uU(25,"Qu\u1ed1c n\u1ed9i"),t.qZA()(),t.TgZ(26,"div",55),t.NdJ("click",function(){t.CHM(e);const n=t.oxw(3);return t.KtG(n.onSwitcJourney(n.FLIGHT_TYPE.INTERNATIONAL))}),t.TgZ(27,"span"),t._uU(28,"Qu\u1ed1c t\u1ebf"),t.qZA()()(),t.YNc(29,se,14,20,"div",30),t.YNc(30,de,16,11,"div",30),t.qZA()(),t.TgZ(31,"div",19)(32,"div",20)(33,"div",21),t._uU(34," \u0110i\u1ec1u ki\u1ec7n h\xe0nh kh\xe1ch "),t.qZA(),t.TgZ(35,"div",22),t._uU(36," Y\xeau c\u1ea7u v\u1ec1 s\u1ed1 l\u01b0\u1ee3ng h\xe0nh kh\xe1ch t\u1ed1i thi\u1ec3u "),t.qZA()(),t.TgZ(37,"div",23)(38,"cf-radio-group",56),t.NdJ("checkChange",function(n){t.CHM(e);const o=t.oxw(3);return t.KtG(o.onChangePaxType(n))})("ngModelChange",function(n){t.CHM(e);const o=t.oxw(3);return t.KtG(o.paxType=n)}),t.TgZ(39,"cf-radio",57),t._uU(40,"T\u1ed5ng h\xe0nh kh\xe1ch"),t.qZA(),t.TgZ(41,"cf-radio",57),t._uU(42,"T\u1eebng \u0111\u1ed1i t\u01b0\u1ee3ng h\xe0nh kh\xe1ch"),t.qZA()(),t.YNc(43,pe,5,2,"div",4),t.YNc(44,_e,16,9,"div",58),t.qZA()(),t.TgZ(45,"div",34)(46,"div",35)(47,"div",21),t._uU(48," Th\u1eddi gian xu\u1ea5t v\xe9 "),t.qZA(),t.TgZ(49,"div",22),t._uU(50," Th\u1eddi gian xu\u1ea5t v\xe9 \xe1p d\u1ee5ng chi\u1ebft kh\u1ea5u, c\xf3 th\u1ec3 bao g\u1ed3m th\u1eddi gian lo\u1ea1i tr\u1eeb "),t.qZA()(),t.TgZ(51,"div",23)(52,"div",11)(53,"cf-input-group",59),t._UZ(54,"cf-icon",37),t.TgZ(55,"label",60),t._uU(56," T\u1eeb ng\xe0y "),t.qZA(),t.TgZ(57,"input",61,62),t.NdJ("input",function(){t.CHM(e);const n=t.MAs(58);return t.KtG(n.close())})("dateSelect",function(){t.CHM(e);const n=t.MAs(58);return t.KtG(n.close())}),t.qZA(),t.YNc(59,me,1,1,"cf-input-hint",52),t.YNc(60,he,1,1,"cf-input-hint",52),t.qZA(),t.TgZ(61,"cf-input-group",59),t._UZ(62,"cf-icon",37),t.TgZ(63,"label",60),t._uU(64," \u0110\u1ebfn ng\xe0y "),t.qZA(),t.TgZ(65,"input",61,62),t.NdJ("input",function(){t.CHM(e);const n=t.MAs(58);return t.KtG(n.close())})("dateSelect",function(){t.CHM(e);const n=t.MAs(58);return t.KtG(n.close())}),t.qZA(),t.YNc(67,ge,1,1,"cf-input-hint",52),t.qZA()()(),t.TgZ(68,"cf-collapse",63)(69,"cf-collapse-panel",64),t.YNc(70,fe,2,0,"ng-template",null,65,t.W1O),t.TgZ(72,"div",27)(73,"div",66)(74,"div",67)(75,"span",68),t._uU(76,"L\u01b0u \xfd khi t\xf9y ch\u1ec9nh th\u1eddi gian lo\u1ea1i tr\u1eeb"),t.qZA()(),t.TgZ(77,"div",69)(78,"div"),t._uU(79," Th\u1eddi gian lo\u1ea1i tr\u1eeb ph\u1ea3i x\u1ea3y ra trong kho\u1ea3ng th\u1eddi gian \xe1p d\u1ee5ng ch\u01b0\u01a1ng tr\xecnh. "),t.qZA(),t.TgZ(80,"div"),t._uU(81," T\u1ed5ng s\u1ed1 ng\xe0y c\u1ee7a th\u1eddi gian lo\u1ea1i tr\u1eeb ph\u1ea3i nh\u1ecf h\u01a1n t\u1ed5ng s\u1ed1 ng\xe0y c\u1ee7a th\u1eddi gian \xe1p d\u1ee5ng ch\u01b0\u01a1ng tr\xecnh. "),t.qZA()()(),t.TgZ(82,"div",70)(83,"div",23),t.YNc(84,Ee,15,10,"div",71),t.qZA(),t.YNc(85,Ce,3,0,"div",72),t.qZA()()()()(),t.TgZ(86,"div",34)(87,"div",35)(88,"div",21),t._uU(89," Th\u1eddi gian bay "),t.qZA(),t.TgZ(90,"div",22),t._uU(91," Th\u1eddi gian bay \xe1p d\u1ee5ng chi\u1ebft kh\u1ea5u, c\xf3 th\u1ec3 bao g\u1ed3m th\u1eddi gian lo\u1ea1i tr\u1eeb "),t.qZA()(),t.TgZ(92,"div",23)(93,"div",11)(94,"cf-input-group",59),t._UZ(95,"cf-icon",37),t.TgZ(96,"label",38),t._uU(97," T\u1eeb ng\xe0y "),t.qZA(),t.TgZ(98,"input",73,62),t.NdJ("input",function(){t.CHM(e);const n=t.MAs(58);return t.KtG(n.close())})("dateSelect",function(){t.CHM(e);const n=t.MAs(58);return t.KtG(n.close())}),t.qZA()(),t.TgZ(100,"cf-input-group",59),t._UZ(101,"cf-icon",37),t.TgZ(102,"label",38),t._uU(103," \u0110\u1ebfn ng\xe0y "),t.qZA(),t.TgZ(104,"input",73,62),t.NdJ("input",function(){t.CHM(e);const n=t.MAs(58);return t.KtG(n.close())})("dateSelect",function(){t.CHM(e);const n=t.MAs(58);return t.KtG(n.close())}),t.qZA()()()(),t.TgZ(106,"cf-collapse",63)(107,"cf-collapse-panel",64),t.YNc(108,Te,2,0,"ng-template",null,65,t.W1O),t.TgZ(110,"div",27)(111,"div",66)(112,"div",67)(113,"span",68),t._uU(114,"L\u01b0u \xfd khi t\xf9y ch\u1ec9nh th\u1eddi gian lo\u1ea1i tr\u1eeb"),t.qZA()(),t.TgZ(115,"div",69)(116,"div"),t._uU(117," Th\u1eddi gian lo\u1ea1i tr\u1eeb ph\u1ea3i x\u1ea3y ra trong kho\u1ea3ng th\u1eddi gian \xe1p d\u1ee5ng ch\u01b0\u01a1ng tr\xecnh. "),t.qZA(),t.TgZ(118,"div"),t._uU(119," T\u1ed5ng s\u1ed1 ng\xe0y c\u1ee7a th\u1eddi gian lo\u1ea1i tr\u1eeb ph\u1ea3i nh\u1ecf h\u01a1n t\u1ed5ng s\u1ed1 ng\xe0y c\u1ee7a th\u1eddi gian \xe1p d\u1ee5ng ch\u01b0\u01a1ng tr\xecnh. "),t.qZA()()(),t.TgZ(120,"div",70)(121,"div",23),t.YNc(122,ve,15,10,"div",71),t.qZA(),t.YNc(123,ye,3,0,"div",72),t.qZA()()()()()()}if(2&u){const e=t.MAs(71),i=t.oxw(3);t.xp6(8),t.Q6J("status",i.discountConditionForm.controls.airline.invalid&&(i.discountConditionForm.controls.airline.dirty||i.discountConditionForm.controls.airline.touched)?"error":"default")("data",i.airlineOptions)("allowSearch",!1)("formControl",i.discountConditionForm.controls.airline),t.xp6(1),t.Q6J("CfRequired",!0),t.xp6(2),t.Q6J("ngIf",i.discountConditionForm.controls.airline.hasError("required")&&(i.discountConditionForm.controls.airline.touched||i.discountConditionForm.controls.airline.dirty)),t.xp6(1),t.Q6J("status","default")("data",i.fareClassOptions||t.DdM(52,Z))("allowSearch",!0)("placeholder",i.discountConditionForm.controls.fareClass?"Ch\u1ecdn c\xe1c h\u1ea1ng \u0111\u1eb7t ch\u1ed7":"Ch\u1ecdn c\xe1c h\u1ea1ng \u0111\u1eb7t ch\u1ed7 ho\u1eb7c b\u1ecf tr\u1ed1ng cho t\u1ea5t c\u1ea3 h\u1ea1ng")("formControl",i.discountConditionForm.controls.fareClass)("maxHeight",230),t.xp6(11),t.Q6J("ngClass",t.VKq(53,Y,i.flightType===i.FLIGHT_TYPE.DOMESTIC)),t.xp6(3),t.Q6J("ngClass",t.VKq(55,Y,i.flightType===i.FLIGHT_TYPE.INTERNATIONAL)),t.xp6(3),t.Q6J("ngIf",i.flightType===i.FLIGHT_TYPE.DOMESTIC),t.xp6(1),t.Q6J("ngIf",i.flightType===i.FLIGHT_TYPE.INTERNATIONAL),t.xp6(8),t.Q6J("ngModel",i.paxType),t.xp6(1),t.Q6J("value",i.PAX_TYPE.TOTAL_PAX),t.xp6(2),t.Q6J("value",i.PAX_TYPE.SINGLE_PAX),t.xp6(2),t.Q6J("ngIf",i.paxType===i.PAX_TYPE.TOTAL_PAX),t.xp6(1),t.Q6J("ngIf",i.paxType===i.PAX_TYPE.SINGLE_PAX),t.xp6(9),t.Q6J("status",i.discountConditionForm.controls.startTimeIssue.invalid&&(i.discountConditionForm.controls.startTimeIssue.dirty||i.discountConditionForm.controls.startTimeIssue.touched)?"error":"default"),t.xp6(2),t.Q6J("CfRequired",!0),t.xp6(2),t.Q6J("minDate",i.currentDate)("secondaryCalendar","lunar")("displayMonths",1)("formControl",i.discountConditionForm.controls.startTimeIssue),t.xp6(2),t.Q6J("ngIf",i.discountConditionForm.controls.startTimeIssue.hasError("required")&&(i.discountConditionForm.controls.startTimeIssue.touched||i.discountConditionForm.controls.startTimeIssue.dirty)),t.xp6(1),t.Q6J("ngIf",i.discountConditionForm.controls.startTimeIssue.hasError("ngbDate")&&(i.discountConditionForm.controls.startTimeIssue.touched||i.discountConditionForm.controls.startTimeIssue.dirty)),t.xp6(1),t.Q6J("status",i.discountConditionForm.controls.endTimeIssue.invalid&&(i.discountConditionForm.controls.endTimeIssue.dirty||i.discountConditionForm.controls.endTimeIssue.touched)?"error":"default"),t.xp6(2),t.Q6J("CfRequired",!0),t.xp6(2),t.Q6J("minDate",i.currentDate)("secondaryCalendar","lunar")("displayMonths",1)("formControl",i.discountConditionForm.controls.endTimeIssue),t.xp6(2),t.Q6J("ngIf",i.discountConditionForm.controls.endTimeIssue.hasError("required")&&(i.discountConditionForm.controls.endTimeIssue.touched||i.discountConditionForm.controls.endTimeIssue.dirty)),t.xp6(2),t.Q6J("title",e)("active",i.listTimeIssueCustom.length),t.xp6(15),t.Q6J("ngForOf",i.listTimeIssueCustom.controls),t.xp6(1),t.Q6J("ngIf",i.listTimeIssueCustom.length<3),t.xp6(9),t.Q6J("status","default"),t.xp6(4),t.Q6J("secondaryCalendar","lunar")("displayMonths",1)("formControl",i.discountConditionForm.controls.startTimeFly),t.xp6(2),t.Q6J("status","default"),t.xp6(4),t.Q6J("secondaryCalendar","lunar")("displayMonths",1)("formControl",i.discountConditionForm.controls.endTimeFly),t.xp6(3),t.Q6J("title",e)("active",i.listTimeFlyCustom.length),t.xp6(15),t.Q6J("ngForOf",i.listTimeFlyCustom.controls),t.xp6(1),t.Q6J("ngIf",i.listTimeFlyCustom.length<3)}}function xe(u,s){if(1&u&&(t.TgZ(0,"div",6)(1,"div",19)(2,"div",20)(3,"div",21),t._uU(4," M\u1ee9c chi\u1ebft kh\u1ea5u \u0111\u1ea7u v\xe0o "),t.qZA(),t.TgZ(5,"div",22),t._uU(6," M\u1ee9c chi\u1ebft kh\u1ea5u g\u1ed1c h\xe3ng chia cho \u0111\u1ea1i l\xfd F1 "),t.qZA()(),t.TgZ(7,"div",11)(8,"cf-input-group",59)(9,"label",51),t._uU(10," Chi\u1ebft kh\u1ea5u g\u1ed1c t\u1eeb h\xe3ng "),t.qZA(),t._UZ(11,"cf-input-number",92),t.qZA(),t.TgZ(12,"cf-select",93)(13,"label",51),t._uU(14," Lo\u1ea1i ti\u1ec1n "),t.qZA()()()(),t.TgZ(15,"div",19)(16,"div",20)(17,"div",21),t._uU(18," M\u1ee9c chi\u1ebft kh\u1ea5u \u0111\u1ea7u ra "),t.qZA(),t.TgZ(19,"div",22),t._uU(20," C\xe1c m\u1ee9c chi\u1ebft kh\u1ea5u \xe1p d\u1ee5ng chi tr\u1ea3 cho \u0111\u1ea1i l\xfd F2 l\u1ea5y t\u1eeb chi\u1ebft kh\u1ea5u \u0111\u1ea7u v\xe0o "),t.qZA()(),t.TgZ(21,"div",46)(22,"div",23)(23,"div",47),t._uU(24,"N\u1ebfu thanh to\xe1n ngay cho \u0111\u1ea1i l\xfd"),t.qZA(),t.TgZ(25,"div",48)(26,"cf-input-group",59)(27,"label",54)(28,"span",84),t._uU(29,"Chi\u1ebft kh\u1ea5u khi d\u01b0\u01a1ng qu\u1ef9"),t.qZA()(),t._UZ(30,"cf-input-number",92),t.qZA(),t.TgZ(31,"cf-input-group",59)(32,"label",54)(33,"span",84),t._uU(34,"Chi\u1ebft kh\u1ea5u khi \xe2m qu\u1ef9"),t.qZA()(),t._UZ(35,"cf-input-number",92),t.qZA()()(),t.TgZ(36,"div",23)(37,"div",47),t._uU(38,"N\u1ebfu thanh to\xe1n sau cho \u0111\u1ea1i l\xfd"),t.qZA(),t.TgZ(39,"div",48)(40,"cf-input-group",59)(41,"label",54)(42,"span",84),t._uU(43,"Chi\u1ebft kh\u1ea5u khi d\u01b0\u01a1ng qu\u1ef9"),t.qZA()(),t._UZ(44,"cf-input-number",92),t.qZA(),t.TgZ(45,"cf-input-group",59)(46,"label",54)(47,"span",84),t._uU(48,"Chi\u1ebft kh\u1ea5u khi \xe2m qu\u1ef9"),t.qZA()(),t._UZ(49,"cf-input-number",92),t.qZA()()()()(),t.TgZ(50,"div",19)(51,"div",20)(52,"div",49),t._uU(53," M\u1ee9c chi\u1ebft kh\u1ea5u d\xe0nh cho CodeShare "),t.qZA(),t.TgZ(54,"div",22),t._uU(55," Ph\u1ea7n tr\u0103m chi\u1ebft kh\u1ea5u cho c\xe1c chuy\u1ebfn bay codeshare so v\u1edbi chi\u1ebft kh\u1ea5u \u0111\u1ea7y \u0111\u1ee7 "),t.qZA()(),t.TgZ(56,"div",27)(57,"cf-input-group",59),t._UZ(58,"input",94),t.qZA()()(),t.TgZ(59,"div",19)(60,"div",20)(61,"div",21),t._uU(62," Nh\xf3m \u0111\u1ea1i l\xfd "),t.qZA(),t.TgZ(63,"div",22),t._uU(64," C\xe1c \u0111\u1ea1i l\xfd thu\u1ed9c nh\xf3m n\xe0y s\u1ebd \u0111\u01b0\u1ee3c \xe1p d\u1ee5ng m\u1ee9c chi\u1ebft kh\u1ea5u "),t.qZA()(),t.TgZ(65,"div",27),t._UZ(66,"cf-select",95),t.qZA()()()),2&u){const e=t.oxw(3);t.xp6(8),t.Q6J("status",e.discountApplyForm.controls.amountFromAirline.invalid&&(e.discountApplyForm.controls.amountFromAirline.dirty||e.discountApplyForm.controls.amountFromAirline.touched)?"error":"default"),t.xp6(1),t.Q6J("CfRequired",!0),t.xp6(2),t.Q6J("placeholder","Nh\u1eadp s\u1ed1 ti\u1ec1n")("formControl",e.discountApplyForm.controls.amountFromAirline),t.xp6(1),t.Q6J("status",e.discountApplyForm.controls.currencyCode.invalid&&(e.discountApplyForm.controls.currencyCode.dirty||e.discountApplyForm.controls.currencyCode.touched)?"error":"default")("data",e.currencyOptions)("allowSearch",!1)("formControl",e.discountApplyForm.controls.currencyCode),t.xp6(1),t.Q6J("CfRequired",!0),t.xp6(13),t.Q6J("status",e.discountApplyForm.controls.amountNowPositive.invalid&&(e.discountApplyForm.controls.amountNowPositive.dirty||e.discountApplyForm.controls.amountNowPositive.touched)?"error":"default"),t.xp6(2),t.Q6J("CfRequired",!0),t.xp6(2),t.Q6J("placeholder","Nh\u1eadp m\u1ee9c chi\u1ebft kh\u1ea5u n\u1ebfu \u0111\u1ea1i l\xfd d\u01b0\u01a1ng qu\u1ef9")("formControl",e.discountApplyForm.controls.amountNowPositive),t.xp6(1),t.Q6J("status",e.discountApplyForm.controls.amountNowNegative.invalid&&(e.discountApplyForm.controls.amountNowNegative.dirty||e.discountApplyForm.controls.amountNowNegative.touched)?"error":"default"),t.xp6(2),t.Q6J("CfRequired",!0),t.xp6(2),t.Q6J("placeholder","Nh\u1eadp m\u1ee9c chi\u1ebft kh\u1ea5u n\u1ebfu \u0111\u1ea1i l\xfd \xe2m qu\u1ef9")("formControl",e.discountApplyForm.controls.amountNowNegative),t.xp6(5),t.Q6J("status",e.discountApplyForm.controls.amountLaterPositive.invalid&&(e.discountApplyForm.controls.amountLaterPositive.dirty||e.discountApplyForm.controls.amountLaterPositive.touched)?"error":"default"),t.xp6(2),t.Q6J("CfRequired",!0),t.xp6(2),t.Q6J("placeholder","Nh\u1eadp m\u1ee9c chi\u1ebft kh\u1ea5u n\u1ebfu \u0111\u1ea1i l\xfd d\u01b0\u01a1ng qu\u1ef9")("formControl",e.discountApplyForm.controls.amountLaterPositive),t.xp6(1),t.Q6J("status",e.discountApplyForm.controls.amountLaterNegative.invalid&&(e.discountApplyForm.controls.amountLaterNegative.dirty||e.discountApplyForm.controls.amountLaterNegative.touched)?"error":"default"),t.xp6(2),t.Q6J("CfRequired",!0),t.xp6(2),t.Q6J("placeholder","Nh\u1eadp m\u1ee9c chi\u1ebft kh\u1ea5u n\u1ebfu \u0111\u1ea1i l\xfd \xe2m qu\u1ef9")("formControl",e.discountApplyForm.controls.amountLaterNegative),t.xp6(3),t.Q6J("CfRequired",!0),t.xp6(5),t.Q6J("status",e.discountApplyForm.controls.codeSharePercent.invalid&&(e.discountApplyForm.controls.codeSharePercent.dirty||e.discountApplyForm.controls.codeSharePercent.touched)?"error":"default"),t.xp6(1),t.Q6J("formControl",e.discountApplyForm.controls.codeSharePercent),t.xp6(8),t.Q6J("status","default")("data",e.agentGroupOptions)("allowSearch",!1)("formControl",e.discountApplyForm.controls.groupAgId)}}function Fe(u,s){if(1&u&&(t.TgZ(0,"div"),t.YNc(1,De,124,57,"div",2),t.YNc(2,xe,67,32,"div",2),t.qZA()),2&u){const e=t.oxw(2);t.xp6(1),t.Q6J("ngIf","DISCOUNT_CONDITION"===e.viewMode),t.xp6(1),t.Q6J("ngIf","DISCOUNT_APPLY"===e.viewMode)}}const tt=function(u){return{"!bg-secondary-3-5 !border-none !text-neutral-white":u}};function Ae(u,s){if(1&u){const e=t.EpF();t.TgZ(0,"div",6)(1,"div",7)(2,"div")(3,"button",8),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.onBackToList())}),t._UZ(4,"cf-icon",9),t._uU(5," Quay l\u1ea1i t\xecm ki\u1ebfm "),t.qZA()(),t.YNc(6,jt,7,0,"div",10),t.YNc(7,Gt,7,0,"div",10),t.qZA(),t.TgZ(8,"div",11)(9,"div",12),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.onChangeMode("DISCOUNT_CONDITION"))}),t._uU(10," \u0110i\u1ec1u ki\u1ec7n chi\u1ebft kh\u1ea5u "),t.qZA(),t.TgZ(11,"div",12),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.onChangeMode("DISCOUNT_APPLY"))}),t._uU(12," C\xe1ch t\xednh chi\u1ebft kh\u1ea5u "),t.qZA()(),t.YNc(13,ue,3,2,"div",4),t.YNc(14,Fe,3,2,"div",4),t.qZA()}if(2&u){const e=t.oxw();t.xp6(6),t.Q6J("ngIf",!e.isEdit),t.xp6(1),t.Q6J("ngIf",e.isEdit),t.xp6(2),t.Q6J("ngClass",t.VKq(6,tt,"DISCOUNT_CONDITION"===e.viewMode)),t.xp6(2),t.Q6J("ngClass",t.VKq(8,tt,"DISCOUNT_APPLY"===e.viewMode)),t.xp6(2),t.Q6J("ngIf",!e.isEdit),t.xp6(1),t.Q6J("ngIf",e.isEdit)}}function Ze(u,s){if(1&u){const e=t.EpF();t.TgZ(0,"div",96),t._UZ(1,"img",97),t.TgZ(2,"div",98)(3,"div",99),t._uU(4),t.qZA(),t.TgZ(5,"div",100),t._uU(6),t.qZA()(),t.TgZ(7,"div",101)(8,"button",102),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.onBackToList())}),t._uU(9," Xem danh s\xe1ch "),t.qZA()()()}if(2&u){const e=t.oxw();t.xp6(4),t.hij(" ",e.titleText," "),t.xp6(2),t.hij(" ",e.bodyText,". B\u1ea1n c\xf3 th\u1ec3 t\u1ea1o m\u1edbi ho\u1eb7c tr\u1edf v\u1ec1 m\xe0n h\xecnh danh s\xe1ch. ")}}function Ne(u,s){if(1&u&&(t.TgZ(0,"div",96),t._UZ(1,"img",103),t.TgZ(2,"div",98)(3,"div",99),t._uU(4),t.qZA(),t.TgZ(5,"div",100),t._uU(6),t.qZA()(),t._UZ(7,"div",101),t.qZA()),2&u){const e=t.oxw();t.xp6(4),t.hij(" ",e.titleText," "),t.xp6(2),t.hij(" ",e.bodyText," Vui l\xf2ng th\u1eed l\u1ea1i ho\u1eb7c t\u1ea1o quy \u0111\u1ecbnh chi\u1ebft kh\u1ea5u m\u1edbi! ")}}function Pe(u,s){if(1&u){const e=t.EpF();t.TgZ(0,"div",96),t._UZ(1,"img",103),t.TgZ(2,"div",98)(3,"div",99),t._uU(4),t.qZA(),t.TgZ(5,"div",100),t._uU(6),t.qZA()(),t.TgZ(7,"div",101)(8,"button",102),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.onBackToList())}),t._uU(9," Xem danh s\xe1ch "),t.qZA()()()}if(2&u){const e=t.oxw();t.xp6(4),t.hij(" ",e.titleText," "),t.xp6(2),t.hij(" ",e.bodyText," ")}}function be(u,s){1&u&&t._UZ(0,"cf-spinner")}function qe(u,s){if(1&u&&(t.TgZ(0,"div",104),t._UZ(1,"div",105),t.ALo(2,"highlighter"),t._UZ(3,"div",106),t.ALo(4,"highlighter"),t.qZA()),2&u){const e=s.item,i=s.search;t.xp6(1),t.Q6J("innerHtml",t.xi3(2,2,e.city+", "+e.nationalName,i.text),t.oJD),t.xp6(2),t.Q6J("innerHtml",t.xi3(4,5,e.code+" - "+e.name,i.text),t.oJD)}}let Me=(()=>{class u{constructor(e,i,n,o,a,C,_,d,M){this._fb=o,this._modal=a,this._discountFeeService=C,this._toastService=_,this._route=d,this._cd=M,this.FLIGHT_TYPE=k,this.JOURNEY_TYPE=L,this.PAX_TYPE=Q,this.flightType=k.DOMESTIC,this.journeyType=L.AIRPORT,this.paxType=Q.TOTAL_PAX,this.airportOptions=[],this.errorMessage={airline:"H\xe3ng bay kh\xf4ng \u0111\u01b0\u1ee3c \u0111\u1ec3 tr\u1ed1ng",startTimeIssue:"Th\u1eddi gian xu\u1ea5t v\xe9 kh\xf4ng \u0111\u01b0\u1ee3c \u0111\u1ec3 tr\u1ed1ng",endTimeIssue:"Th\u1eddi gian xu\u1ea5t v\xe9 kh\xf4ng \u0111\u01b0\u1ee3c \u0111\u1ec3 tr\u1ed1ng"},this.classifyListDomestic=[],this.classifyListInternational=[],this.countryOptions=[],this.areaOptions=[],this.airlineOptions=[],this.airportDomesticOptions=[],this.airportInternationalOptions=[],this.currencyOptions=[],this.agentGroupOptions=[],this.fareClassOptions=[],this.viewMode="DISCOUNT_CONDITION",this.isEdit=!1,this.isLoading=!1,this.step="DISCOUNT",this.disabledFareClass=!0,this.fareClassQH=[],this.fareClassVJ=[],this.fareClassVN=[],this.currentDate=i.getToday(),e.registerIcons([T.HTW,T.Hge,T.rJw,T.oFb,T.P5K,T._tC]),this.discountFeeId=n.snapshot.params.id,this.getDiscountFeeInfo()}ngOnInit(){this.initFormGroup()}initFormGroup(){this.discountConditionForm=this._fb.group({airline:[null,r.kI.required],fareClass:[null],flightType:[this.flightType],journeyType:[this.journeyType],startPointDetails:[null],endPointDetails:[null],journeyClassify:[null],paxType:[this.paxType],totalPax:[0],adtNum:[0],chdNum:[0],infNum:[0],startTimeIssue:[null,r.kI.required],endTimeIssue:[null,r.kI.required],timeIssueCustom:this._fb.array([]),startTimeFly:[null],endTimeFly:[null],timeFlyCustom:this._fb.array([])}),this.discountApplyForm=this._fb.group({amountFromAirline:[0,r.kI.required],currencyCode:["VND",r.kI.required],amountNowPositive:[0,r.kI.required],amountNowNegative:[0,r.kI.required],amountLaterPositive:[0,r.kI.required],amountLaterNegative:[0,r.kI.required],codeSharePercent:[0,r.kI.required],groupAgId:[null]})}getDiscountFeeInfo(){this.isLoading=!0,this._discountFeeService.getDiscountFeeInfoConfig().subscribe({next:e=>{var i,n,o,a,C,_,d,M,S,x,y,p;e.success&&e.data&&(this.airlineOptions=(null===(i=e.data.airlineList)||void 0===i?void 0:i.map(l=>({code:l.code,name:l.name})))||[],this.classifyListDomestic=(null===(n=e.data.classifyListDomestic)||void 0===n?void 0:n.map(l=>({code:l.code,name:l.name})))||[],this.classifyListInternational=(null===(o=e.data.classifyListInternational)||void 0===o?void 0:o.map(l=>({code:l.code,name:l.name})))||[],this.airportDomesticOptions=(null===(a=e.data.airportDomesticInfoList)||void 0===a?void 0:a.map(l=>({code:l.code,name:l.name,city:l.city,nationalName:l.nationalName,displayName:`${l.code} - ${l.city}`})))||[],this.airportInternationalOptions=(null===(C=e.data.airportInfoList)||void 0===C?void 0:C.map(l=>({code:l.code,name:l.name,city:l.city,nationalName:l.nationalName,displayName:`${l.code} - ${l.city}`})))||[],this.countryOptions=(null===(_=e.data.nationalInfoList)||void 0===_?void 0:_.map(l=>({code:l.code,name:l.name})))||[],this.areaOptions=(null===(d=e.data.areaInfoList)||void 0===d?void 0:d.map(l=>({code:l.code,name:l.name})))||[],this.currencyOptions=(null===(M=e.data.currencyList)||void 0===M?void 0:M.map(l=>({code:l.code,name:l.name})))||[],this.agentGroupOptions=(null===(S=e.data.grpAgList)||void 0===S?void 0:S.map(l=>({code:l.id,name:l.name})))||[],this.fareClassQH=(null===(x=e.data.fareClassList)||void 0===x?void 0:x.fareClassQH.map(l=>({code:l.code,name:l.code})))||[],this.fareClassVJ=(null===(y=e.data.fareClassList)||void 0===y?void 0:y.fareClassVJ.map(l=>({code:l.code,name:l.code})))||[],this.fareClassVN=(null===(p=e.data.fareClassList)||void 0===p?void 0:p.fareClassVN.map(l=>({code:l.code,name:l.code})))||[],this.getDiscountFeeDetail())},error:()=>{this.isLoading=!1}})}onSelectedAirline(e){this.getFareClass(e),this.discountConditionForm.get("fareClass").setValue(null),this._cd.detectChanges()}getFareClass(e){switch(e){case"VN":this.fareClassOptions=this.fareClassVN;break;case"VJ":this.fareClassOptions=this.fareClassVJ;break;case"QH":this.fareClassOptions=this.fareClassQH;break;default:this.fareClassOptions=[]}}getDiscountFeeDetail(){this.isLoading=!0,this._discountFeeService.getDiscountFeeById(this.discountFeeId).pipe((0,U.x)(()=>this.isLoading=!1)).subscribe({next:e=>{var i,n,o,a,C,_;if(e.success&&e.data){switch(this.discountFeeDataSource=e.data,this.discountConditionDisplay={airline:null===(i=this.airlineOptions.find(d=>d.code===e.data.airline))||void 0===i?void 0:i.name,fareClass:"ALL"===e.data.fareClass[0]?"T\u1ea5t c\u1ea3 h\u1ea1ng \u0111\u1eb7t ch\u1ed7":e.data.fareClass.map(d=>d),flightType:e.data.flightType,journeyType:e.data.journeyType,startPointDetails:e.data.startPointDetails.map(d=>`${d.code} - ${d.city}`),endPointDetails:e.data.endPointDetails.map(d=>`${d.code} - ${d.city}`),paxType:e.data.paxType,totalPax:e.data.totalPax,adtNum:e.data.adtNum,chdNum:e.data.chdNum,infNum:e.data.infNum,startTimeIssue:e.data.startTimeIssue?(0,q.Z)(new Date(1e3*e.data.startTimeIssue),"dd/MM/yyyy"):"",endTimeIssue:e.data.endTimeIssue?(0,q.Z)(new Date(1e3*e.data.endTimeIssue),"dd/MM/yyyy"):"",timeIssueCustom:null===(n=e.data.timeIssueCustom)||void 0===n?void 0:n.map(d=>({exceptStart:d.exceptStart?(0,q.Z)(new Date(1e3*d.exceptStart),"dd/MM/yyyy"):"",exceptEnd:d.exceptEnd?(0,q.Z)(new Date(1e3*d.exceptEnd),"dd/MM/yyyy"):""})),startTimeFly:e.data.startTimeFly?(0,q.Z)(new Date(1e3*e.data.startTimeFly),"dd/MM/yyyy"):"",endTimeFly:e.data.endTimeFly?(0,q.Z)(new Date(1e3*e.data.endTimeFly),"dd/MM/yyyy"):"",timeFlyCustom:null===(o=e.data.timeFlyCustom)||void 0===o?void 0:o.map(d=>({exceptStart:d.exceptStart?(0,q.Z)(new Date(1e3*d.exceptStart),"dd/MM/yyyy"):"",exceptEnd:d.exceptEnd?(0,q.Z)(new Date(1e3*d.exceptEnd),"dd/MM/yyyy"):""}))},e.data.journeyClassify){case"LONG":this.discountConditionDisplay.journeyClassify="Ch\u1eb7ng d\xe0i";break;case"SHORT":this.discountConditionDisplay.journeyClassify="Ch\u1eb7ng ng\u1eafn";break;case"SOTO":this.discountConditionDisplay.journeyClassify="SOTO";break;case"SITI":this.discountConditionDisplay.journeyClassify="SITI";break;default:this.discountConditionDisplay.journeyClassify="T\u1ea5t c\u1ea3 lo\u1ea1i ch\u1eb7ng bay"}this.getFareClass(e.data.airline),this.flightType=e.data.flightType,this.discountApplyDisplay={amountFromAirline:e.data.amountFromAirline,currencyCode:e.data.currencyCode,amountNowPositive:e.data.amountNowPositive,amountNowNegative:e.data.amountNowNegative,amountLaterPositive:e.data.amountLaterPositive,amountLaterNegative:e.data.amountLaterNegative,codeSharePercent:e.data.codeSharePercent,groupAgId:(null===(a=this.agentGroupOptions.find(d=>d.code===e.data.groupAgId))||void 0===a?void 0:a.name)||"T\u1ea5t c\u1ea3"},this.airportOptions="DOMESTIC"===this.flightType?this.airportDomesticOptions:this.airportInternationalOptions,this.patchValueForm(),null===(C=e.data.timeIssueCustom)||void 0===C||C.forEach(d=>{this.listTimeIssueCustom.push(this._fb.group({exceptStart:[new Date(1e3*d.exceptStart),r.kI.required],exceptEnd:[new Date(1e3*d.exceptEnd),r.kI.required]}))}),null===(_=e.data.timeFlyCustom)||void 0===_||_.forEach(d=>{this.listTimeFlyCustom.push(this._fb.group({exceptStart:[new Date(1e3*d.exceptStart),r.kI.required],exceptEnd:[new Date(1e3*d.exceptEnd),r.kI.required]}))})}else this.titleText="C\xf3 l\u1ed7i x\u1ea3y ra",this.bodyText="L\u1ed7i kh\xf4ng t\xecm th\u1ea5y ph\xed chi\u1ebft kh\u1ea5u!",this.onChangeStep("NOT_FOUND")}})}patchValueForm(){const e={airline:this.discountFeeDataSource.airline,fareClass:this.discountFeeDataSource.fareClass.includes("ALL")?"":this.discountFeeDataSource.fareClass.map(n=>n),flightType:this.discountFeeDataSource.flightType,journeyType:this.discountFeeDataSource.journeyType,startPointDetails:this.discountFeeDataSource.startPointDetails.map(n=>n.code),endPointDetails:this.discountFeeDataSource.endPointDetails.map(n=>n.code),journeyClassify:this.discountFeeDataSource.journeyClassify,paxType:this.discountFeeDataSource.paxType,totalPax:this.discountFeeDataSource.totalPax,adtNum:this.discountFeeDataSource.adtNum,chdNum:this.discountFeeDataSource.chdNum,infNum:this.discountFeeDataSource.infNum,startTimeIssue:this.discountFeeDataSource.startTimeIssue?new Date(1e3*this.discountFeeDataSource.startTimeIssue):null,endTimeIssue:this.discountFeeDataSource.endTimeIssue?new Date(1e3*this.discountFeeDataSource.endTimeIssue):null,timeIssueCustom:this.discountFeeDataSource.timeIssueCustom,startTimeFly:this.discountFeeDataSource.startTimeFly?new Date(1e3*this.discountFeeDataSource.startTimeFly):null,endTimeFly:this.discountFeeDataSource.endTimeFly?new Date(1e3*this.discountFeeDataSource.endTimeFly):null,timeFlyCustom:this.discountFeeDataSource.timeFlyCustom};this.flightType=e.flightType,this.discountConditionForm.patchValue(e),this.discountApplyForm.patchValue({amountFromAirline:this.discountFeeDataSource.amountFromAirline,currencyCode:this.discountFeeDataSource.currencyCode,amountNowPositive:this.discountFeeDataSource.amountNowPositive,amountNowNegative:this.discountFeeDataSource.amountNowNegative,amountLaterPositive:this.discountFeeDataSource.amountLaterPositive,amountLaterNegative:this.discountFeeDataSource.amountLaterNegative,codeSharePercent:this.discountFeeDataSource.codeSharePercent,groupAgId:this.discountFeeDataSource.groupAgId||""})}get listTimeIssueCustom(){return this.discountConditionForm.get("timeIssueCustom")}onRemoveTimeIssue(e){this.listTimeIssueCustom.removeAt(e)}onAddTimeIssue(){this.listTimeIssueCustom.length<3&&this.listTimeIssueCustom.push(this.initTimeCustomGroup())}initTimeCustomGroup(){return this._fb.group({exceptStart:[null,r.kI.required],exceptEnd:[null,r.kI.required]})}get listTimeFlyCustom(){return this.discountConditionForm.get("timeFlyCustom")}onRemoveTimeFly(e){this.listTimeFlyCustom.removeAt(e)}onAddTimeFly(){this.listTimeFlyCustom.length<3&&this.listTimeFlyCustom.push(this.initTimeCustomGroup())}onSwitcJourney(e){this.flightType=e,this.discountConditionForm.get("startPointDetails").setValue(null),this.discountConditionForm.get("endPointDetails").setValue(null),this.airportOptions="DOMESTIC"===this.flightType?this.airportDomesticOptions:this.airportInternationalOptions}onSelectedChange(e,i){i||this.discountConditionForm.get(e).setValue(null)}onChangeJourneyType(e){this.journeyType=e,this.discountConditionForm.get("startPointDetails").setValue(null),this.discountConditionForm.get("endPointDetails").setValue(null)}onChangePaxType(e){this.paxType=e}onChangeMode(e){this.viewMode=e}onEdit(){this.patchValueForm(),this.isEdit=!0}onCancel(){this._modal.open(N.V0,{title:"H\u1ee7y b\u1ecf thay \u0111\u1ed5i",body:"B\u1ea1n c\xf3 ch\u1eafc ch\u1eafn mu\u1ed1n h\u1ee7y b\u1ecf thay \u0111\u1ed5i v\xe0 d\u1eebng vi\u1ec7c ch\u1ec9nh s\u1eeda? H\xe0nh \u0111\u1ed9ng n\xe0y kh\xf4ng th\u1ec3 ho\xe0n t\xe1c.",okText:"Kh\xf4ng, ti\u1ebfp t\u1ee5c",cancelText:"C\xf3, h\u1ee7y b\u1ecf"}).afterClosed$.subscribe({next:i=>{i.data||(this.patchValueForm(),this.isEdit=!1)}})}onSubmit(){var e,i,n;if(this.discountConditionForm.markAllAsTouched(),this.discountConditionForm.invalid)return;const o=this.discountConditionForm.value,a=this.discountApplyForm.value,C={airline:o.airline,fareClass:o.fareClass?o.fareClass.join(";"):"ALL",flightType:this.flightType,journeyType:o.journeyType,startPointDetails:o.startPointDetails?o.startPointDetails.join(","):"ALL",endPointDetails:o.endPointDetails?o.endPointDetails.join(","):"ALL",journeyClassify:o.journeyClassify||"ALL",paxType:this.paxType,totalPax:"TOTAL_PAX"===this.paxType?o.totalPax:0,adtNum:"SINGLE_PAX"===this.paxType?o.adtNum:0,chdNum:"SINGLE_PAX"===this.paxType?o.chdNum:0,infNum:"SINGLE_PAX"===this.paxType?o.infNum:0,startTimeIssue:D(o.startTimeIssue).format("DD/MM/YYYY"),endTimeIssue:D(o.endTimeIssue).format("DD/MM/YYYY"),timeIssueCustom:null===(e=o.timeIssueCustom)||void 0===e?void 0:e.map(_=>({exceptStart:D(_.exceptStart).format("DD/MM/YYYY"),exceptEnd:D(_.exceptEnd).format("DD/MM/YYYY")})),startTimeFly:o.startTimeFly?(0,q.Z)(o.startTimeFly,"dd/MM/yyyy"):"ALL",endTimeFly:o.endTimeFly?(0,q.Z)(o.endTimeFly,"dd/MM/yyyy"):"ALL",timeFlyCustom:null===(i=o.timeFlyCustom)||void 0===i?void 0:i.map(_=>({exceptStart:D(_.exceptStart).format("DD/MM/YYYY"),exceptEnd:D(_.exceptEnd).format("DD/MM/YYYY")})),amountFromAirline:a.amountFromAirline,currencyCode:a.currencyCode,amountNowPositive:a.amountNowPositive,amountNowNegative:a.amountNowNegative,amountLaterPositive:a.amountLaterPositive,amountLaterNegative:a.amountLaterNegative,codeSharePercent:a.codeSharePercent,groupAgId:a.groupAgId||"ALL",timeZone:7,id:null!==(n=this.discountFeeId)&&void 0!==n?n:""};this.isLoading=!0,this._discountFeeService.updateDiscountFee(C).pipe((0,U.x)(()=>this.isLoading=!1)).subscribe({next:_=>{_.success&&_.data?(this.titleText="C\u1eadp nh\u1eadt quy \u0111\u1ecbnh chi\u1ebft kh\u1ea5u th\xe0nh c\xf4ng",this.bodyText="Quy \u0111\u1ecbnh chi\u1ebft kh\u1ea5u \u0111\xe3 \u0111\u01b0\u1ee3c c\u1eadp nh\u1eadt th\xe0nh c\xf4ng",this.onChangeStep("SUCCESS")):(this.titleText="C\u1eadp nh\u1eadt quy \u0111\u1ecbnh chi\u1ebft kh\u1ea5u th\u1ea5t b\u1ea1i",this.bodyText="Quy \u0111\u1ecbnh chi\u1ebft kh\u1ea5u \u0111\xe3 \u0111\u01b0\u1ee3c c\u1eadp nh\u1eadt th\u1ea5t b\u1ea1i",this.onChangeStep("ERROR"))},error:()=>{this.titleText="C\u1eadp nh\u1eadt quy \u0111\u1ecbnh chi\u1ebft kh\u1ea5u th\u1ea5t b\u1ea1i",this.bodyText="Quy \u0111\u1ecbnh chi\u1ebft kh\u1ea5u \u0111\xe3 \u0111\u01b0\u1ee3c c\u1eadp nh\u1eadt th\u1ea5t b\u1ea1i",this.onChangeStep("ERROR")}})}onDelete(){this._modal.open(N.V0,{title:"X\xf3a th\u1ebft l\u1eadp n\xe0y?",body:"B\u1ea1n c\xf3 ch\u1eafc ch\u1eafn mu\u1ed1n x\xf3a thi\u1ebft l\u1eadp n\xe0y? Vi\u1ec7c n\xe0y kh\xf4ng th\u1ec3 ho\xe0n t\xe1c, vui l\xf2ng ki\u1ec3m tra k\u0129 tr\u01b0\u1edbc khi thao t\xe1c."}).afterClosed$.subscribe({next:i=>{i.data&&this._discountFeeService.deleteDiscountFeeConfig(this.discountFeeId).subscribe({next:n=>{n.success?(this._toastService.add({severity:"success",summary:"X\xf3a th\xe0nh c\xf4ng",detail:"\u0110\xe3 x\xf3a thi\u1ebft l\u1eadp \u0111i\u1ec1u ki\u1ec7n chi\u1ebft kh\u1ea5u th\xe0nh c\xf4ng",sticky:!1}),this._route.navigate(["admin/discount-fee"])):this._toastService.add({severity:"error",summary:"C\xf3 l\u1ed7i x\u1ea3y ra",detail:"Kh\xf4ng th\u1ec3 x\xf3a thi\u1ebft l\u1eadp \u0111i\u1ec1u ki\u1ec7n chi\u1ebft kh\u1ea5u. Vui l\xf2ng th\u1eed l\u1ea1i!",sticky:!0})}})}})}onChangeStep(e){this.step=e}onBackToList(){this._route.navigate(["admin/discount-fee"])}swapPoint(e,i){if(""!=e.value&&""!=i.value){const n=e.value;e.setValue(null),e.setValue(i.value),i.setValue(null),i.setValue(n)}}}return u.\u0275fac=function(e){return new(e||u)(t.Y36(T.KNP),t.Y36(b.jH),t.Y36(w.gz),t.Y36(r.qu),t.Y36($.oE),t.Y36(G.O),t.Y36(R.BX),t.Y36(w.F0),t.Y36(t.sBO))},u.\u0275cmp=t.Xpm({type:u,selectors:[["edit-discount-fee-page"]],standalone:!0,features:[t.jDz],decls:9,vars:5,consts:[[1,"flex","justify-center","py-8","px-[30px]"],[1,"w-[1000px]","max-w-[1000px]"],["class","flex flex-col gap-y-4",4,"ngIf"],["class","rounded-lg bg-neutral-white mx-auto py-32 flex flex-col gap-y-6 justify-center items-center",4,"ngIf"],[4,"ngIf"],["optionTmp",""],[1,"flex","flex-col","gap-y-4"],[1,"flex","justify-between","items-center"],["cf-button","","size","medium","type","secondary",1,"bg-neutral-white",3,"click"],["cfHeadIcon","","icon","chevron_left","size","small",1,"mr-2.5"],["class","flex items-center gap-x-3",4,"ngIf"],[1,"flex","gap-x-3"],[1,"flex","items-center","gap-x-2.5","py-1.5","px-4","text-heading-xs","rounded-full","cursor-pointer","bg-white","border","border-neutral-gray-3",3,"ngClass","click"],[1,"flex","items-center","gap-x-3"],["cf-button","","size","medium",3,"click"],["cfHeadIcon","","icon","edit_alt","size","small",1,"mr-2.5"],["cfHeadIcon","","icon","delete","size","small",1,"mr-2.5"],["cfHeadIcon","","icon","save","size","small",1,"mr-2.5"],["cfHeadIcon","","icon","circle_error","size","small",1,"mr-2.5"],[1,"bg-white","rounded","shadow-cf-md","flex","flex-col","p-6"],[1,"flex","flex-col","gap-y-1","mb-4"],[1,"text-heading-sm","text-neutral-black"],[1,"text-espressive-sm","text-neutral-gray-4"],[1,"flex","flex-col","gap-y-3"],[1,"flex","flex-col","gap-y-1.5"],[1,"text-express-sm"],[1,"w-full","h-10","py-2.5","px-3","text-body-md","rounded","border","border-neutral-gray-3","bg-neutral-gray-1"],[1,""],[1,"flex","gap-x-3","mb-3"],[1,"flex","items-center","gap-x-[0.375rem]","rounded-lg","py-[0.3125rem]","px-4","text-espressive-md","text-neutral-gray-4","border","border-neutral-gray-2","bg-white",3,"ngClass"],["class","flex flex-col gap-y-3",4,"ngIf"],[1,"flex","items-center","gap-x-8",3,"ngModel","ngModelChange"],["size","medium",3,"disabled","value"],["class","flex justify-between gap-x-3",4,"ngIf"],[1,"bg-white","rounded","shadow-cf-md","flex","flex-col","gap-y-4","p-6"],[1,"flex","flex-col","gap-y-1"],[1,"grow-[400]","!w-full",3,"disabled"],["cfHeadIcon","","icon","calendar","size","small"],["cfLabel","",1,"text-espressive-sm","text-black"],["type","text","size","medium","cf-input","","placeholder","dd/MM/yyyy",1,"py-[7px]",3,"value"],["class","flex gap-x-3",4,"ngFor","ngForOf"],[1,"w-full","flex","flex-col","gap-y-1.5"],[1,"w-full","h-10","py-2.5","px-3","text-body-md","rounded","border","border-neutral-gray-3","bg-neutral-gray-1","flex","gap-x-2"],[4,"ngFor","ngForOf"],[3,"size","color"],[1,"flex","justify-between","gap-x-3"],[1,"flex","flex-col","gap-y-6"],[1,"text-espressive-md","text-neutral-gray-5"],[1,"border","border-neutral-gray-2","p-4","rounded","flex","gap-x-3"],[1,"text-heading-sm","text-neutral-black",3,"CfRequired"],["textField","name","valueField","code","placeholder","Ch\u1ecdn h\xe3ng bay",1,"w-full","!max-w-full",3,"status","data","allowSearch","formControl","selectedChange"],["cfLabel","",1,"text-express-sm","text-black",3,"CfRequired"],["cfHint","",3,"hint",4,"ngIf"],["textField","name","valueField","code",1,"w-full","!max-w-full",3,"status","data","allowSearch","placeholder","formControl","maxHeight"],["cfLabel","",1,"text-express-sm","text-black"],[1,"flex","items-center","gap-x-[0.375rem]","rounded-lg","py-[0.3125rem]","px-4","text-espressive-md","text-neutral-gray-4","border","border-neutral-gray-2","bg-white","cursor-pointer",3,"ngClass","click"],[1,"flex","items-center","gap-x-8",3,"ngModel","checkChange","ngModelChange"],["size","medium",3,"value"],["class","flex gap-x-3",4,"ngIf"],[1,"grow-[400]","!w-full",3,"status"],["cfLabel","",1,"text-espressive-sm","text-black",3,"CfRequired"],["cfDatepicker","","type","text","size","medium","cf-input","","placeholder","dd/MM/yyyy",1,"py-[7px]",3,"minDate","secondaryCalendar","displayMonths","formControl","input","dateSelect"],["dateFrom","cfDatepicker"],[1,"w-full","border","border-neutral-gray-1"],[3,"title","active"],["titleTemplate",""],[1,"w-full","rounded","bg-[#FCF5E8]","text-neutral-gray-6","py-3","px-4"],[1,"mb-3"],[1,"text-express-md"],[1,"text-body-sm"],[1,"mt-4"],["class","flex items-center gap-x-3",4,"ngFor","ngForOf"],["class","mt-3",4,"ngIf"],["cfDatepicker","","type","text","size","medium","cf-input","","placeholder","Ch\u1ecdn ng\xe0y ho\u1eb7c b\u1ecf tr\u1ed1ng \u0111\u1ec3 kh\xf4ng gi\u1edbi h\u1ea1n",1,"py-[7px]",3,"secondaryCalendar","displayMonths","formControl","input","dateSelect"],["cfHint","",3,"hint"],["textField","displayName","valueField","code",1,"w-full","!max-w-full",3,"status","data","allowSearch","placeholder","formControl","maxHeight","optionTmp","selectedChange"],["cf-button","","size","medium","type","secondary",1,"mt-7",3,"click"],["icon","switch","size","small"],["textField","name","valueField","code","placeholder","Ch\u1ecdn lo\u1ea1i ch\u1eb7ng bay",1,"w-full","!max-w-full",3,"status","data","allowSearch","formControl"],[1,"flex","items-center","gap-x-8",3,"formControl","checkChange"],["textField","name","valueField","code","placeholder","Ch\u1ecdn lo\u1ea1i ch\u1eb7ng bay ho\u1eb7c b\u1ecf tr\u1ed1ng ch\u1ecdn t\u1ea5t c\u1ea3",1,"w-full","!max-w-full",3,"status","data","allowSearch","formControl"],["textField","name","valueField","code","placeholder","Ch\u1ecdn qu\u1ed1c gia",1,"w-full","!max-w-full",3,"status","data","allowSearch","formControl","maxHeight","selectedChange"],["textField","name","valueField","code","placeholder","Ch\u1ecdn khu v\u1ef1c",1,"w-full","!max-w-full",3,"status","data","allowSearch","formControl","maxHeight","selectedChange"],["cf-input","","type","number","size","medium","placeholder","Nh\u1eadp s\u1ed1 h\xe0nh kh\xe1ch ho\u1eb7c b\u1ecf tr\u1ed1ng \u0111\u1ec3 kh\xf4ng gi\u1edbi h\u1ea1n",3,"formControl"],[3,"CfRequired"],["cf-input","","type","number","size","medium","placeholder","Nh\u1eadp m\u1ee9c ph\xed d\u1ecbch v\u1ee5",3,"formControl"],[1,"text-heading-xs"],["cfDatepicker","","type","text","size","medium","cf-input","","placeholder","dd/MM/yyyy",1,"py-[7px]",3,"secondaryCalendar","displayMonths","formControl","input","dateSelect"],[1,"mt-7",3,"click"],["cfHeadIcon","","icon","close","size","small"],[1,"mt-3"],[1,"py-1.5","px-3","text-espressive-sm","text-secondary-3-4","cursor-pointer",3,"click"],["size","medium",3,"placeholder","formControl"],["textField","name","valueField","code","placeholder","Nh\u1eadp c\xe1c h\u1ea1ng \u0111\u1eb7t ch\u1ed7 ho\u1eb7c b\u1ecf tr\u1ed1ng cho t\u1ea5t c\u1ea3 h\u1ea1ng",1,"w-full","!max-w-full",3,"status","data","allowSearch","formControl"],["cf-input","","type","number","size","medium","placeholder","Nh\u1eadp ph\u1ea7n tr\u0103m (%) gi\xe1 tr\u1ecb chi\u1ebft kh\u1ea5u \xe1p d\u1ee5ng",3,"formControl"],["textField","name","valueField","code","placeholder","Ch\u1ecdn nh\xf3m \u0111\u1ea1i l\xfd ho\u1eb7c b\u1ecf tr\u1ed1ng cho t\u1ea5t c\u1ea3",1,"w-full","!max-w-full",3,"status","data","allowSearch","formControl"],[1,"rounded-lg","bg-neutral-white","mx-auto","py-32","flex","flex-col","gap-y-6","justify-center","items-center"],["src","assets/icons/icon-success.svg","alt",""],[1,"flex","flex-col","gap-y-3","justify-center","items-center"],[1,"text-heading-sm","text-neutral-gray-6"],[1,"text-body-md","text-neutral-gray-5"],[1,"flex","gap-x-4"],["cf-button","","size","medium","type","secondary",1,"bg-white",3,"click"],["src","assets/icons/icon-error.svg","alt",""],[1,"flex","flex-col"],[1,"text-body-md-short","text-neutral-gray-6",3,"innerHtml"],[1,"text-body-sm","text-neutral-gray-4",3,"innerHtml"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0)(1,"div",1),t.YNc(2,Ae,15,10,"div",2),t.YNc(3,Ze,10,2,"div",3),t.YNc(4,Ne,8,2,"div",3),t.YNc(5,Pe,10,2,"div",3),t.qZA()(),t.YNc(6,be,1,0,"cf-spinner",4),t.YNc(7,qe,5,8,"ng-template",null,5,t.W1O)),2&e&&(t.xp6(2),t.Q6J("ngIf","DISCOUNT"===i.step),t.xp6(1),t.Q6J("ngIf","SUCCESS"===i.step),t.xp6(1),t.Q6J("ngIf","ERROR"===i.step),t.xp6(1),t.Q6J("ngIf","NOT_FOUND"===i.step),t.xp6(1),t.Q6J("ngIf",i.isLoading))},dependencies:[h.ez,h.mk,h.sg,h.O5,h.JJ,r.u5,r.Fj,r.wV,r.JJ,r.On,r.UX,r.oH,F.q,E.j$,E.ND,E.BN,E.v2,E.lt,B.C,g.o,g.T,A.N8,A.Xq,T.AxE,T.Sm8,b.Cs,f.B,f.K,P.U,N.OR,Yt.AS,Ht.b,K.T],encapsulation:2}),u})()},3447:(j,J,c)=>{c.d(J,{E:()=>h});const h=r=>r.normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/\u0111/g,"d").replace(/\u0110/g,"D")},80750:(j,J,c)=>{c.d(J,{G:()=>T});var h=c(83700),r=c(72506),A=c(36895),f=c(94650),b=c(97579);let T=(()=>{class E{constructor(g){this.ref=g,this.description=g.data.description,this.title=g.data.title}close(){this.ref.close(!1)}}return E.\u0275fac=function(g){return new(g||E)(f.Y36(b.gb))},E.\u0275cmp=f.Xpm({type:E,selectors:[["popup-expand"]],standalone:!0,features:[f.jDz],decls:11,vars:2,consts:[[1,"w-[344px]","min-h-[300px]","rounded-lg","bg-neutral-white","flex","flex-col"],[1,"flex","justify-between","items-center","px-6","py-[13px]","border-b","border-b-neutral-gray-1"],[1,"text-heading-xs","text-neutral-black"],["size","medium","icon","close",1,"text-neutral-gray-4","cursor-pointer",3,"click"],[1,"p-6","flex-1","w-full","h-full"],[1,"text-body-md","break-words"],[1,"flex","justify-end","gap-x-4","pb-6","pr-6"],["cf-button","","size","medium","type","secondary",3,"click"]],template:function(g,F){1&g&&(f.TgZ(0,"div",0)(1,"div",1)(2,"div",2),f._uU(3),f.qZA(),f.TgZ(4,"cf-icon",3),f.NdJ("click",function(){return F.close()}),f.qZA()(),f.TgZ(5,"div",4)(6,"div",5),f._uU(7),f.qZA()(),f.TgZ(8,"div",6)(9,"button",7),f.NdJ("click",function(){return F.close()}),f._uU(10," \u0110\xf3ng "),f.qZA()()()),2&g&&(f.xp6(3),f.Oqu(F.title),f.xp6(4),f.hij(" ",F.description," "))},dependencies:[A.ez,r.AxE,r.Sm8,h.N8,h.Xq],encapsulation:2}),E})()},4688:(j,J,c)=>{c.d(J,{b:()=>T});var h=c(36895),r=c(94650),A=c(72506);function f(E,P){if(1&E){const g=r.EpF();r.TgZ(0,"cf-icon",3),r.NdJ("click",function(N){r.CHM(g);const B=r.oxw();return r.KtG(B.close(N))}),r.qZA()}}const b=["*"];let T=(()=>{class E{constructor(g,F,N){this.renderer=g,this.elementRef=F,this.mode="default",this.type="solid",this.size="medium",this.color="red",this.onClose=new r.vpe,N.registerIcons([A.UNF])}ngOnChanges(g){this.loadClasses()}ngOnInit(){this.loadClasses()}loadClasses(){this.classes="rounded inline-flex justify-center items-center gap-x-1 "+this.getSizeClass()+" "+this.getModeClass()}getSizeClass(){return"small"===this.size?"py-1 px-2 text-express-sm":"xsmall"===this.size?"py-[2px] px-1 text-express-sm":"py-1.5 px-3 text-express-md"}getModeClass(){return"outline"===this.type?`bg-white bordertext-${this.color}-4 border-${this.color}-4`:"inverted"===this.type?`bg-${this.color}-1 text-${this.color}-4`:"gray-2"===this.color?"text-neutral-gray-6 bg-neutral-gray-2":`text-neutral-white bg-${this.color}-4`}close(g){this.onClose.emit(g),g.defaultPrevented||this.renderer.removeChild(this.renderer.parentNode(this.elementRef.nativeElement),this.elementRef.nativeElement)}}return E.\u0275fac=function(g){return new(g||E)(r.Y36(r.Qsj),r.Y36(r.SBq),r.Y36(A.KNP))},E.\u0275cmp=r.Xpm({type:E,selectors:[["cf-label"]],hostVars:2,hostBindings:function(g,F){2&g&&r.Tol(F.classes)},inputs:{mode:"mode",type:"type",size:"size",color:"color"},outputs:{onClose:"onClose"},standalone:!0,features:[r.TTD,r.jDz],ngContentSelectors:b,decls:4,vars:1,consts:[[1,"flex","justify-between","items-center","gap-x-2"],[1,"text-ellipsis","overflow-hidden","whitespace-normal","flex","items-center"],["icon","close","size","small","class","cursor-pointer",3,"click",4,"ngIf"],["icon","close","size","small",1,"cursor-pointer",3,"click"]],template:function(g,F){1&g&&(r.F$t(),r.TgZ(0,"div",0)(1,"div",1),r.Hsn(2),r.qZA(),r.YNc(3,f,1,0,"cf-icon",2),r.qZA()),2&g&&(r.xp6(3),r.Q6J("ngIf","closeable"===F.mode))},dependencies:[h.ez,h.O5,A.AxE,A.Sm8],encapsulation:2,changeDetection:0}),E})()}}]);