PageSourceSearch

https://portal.hkiacargo.com/default-apps_angular-app_src_app_modu…ssage_message_module_ts.fd8311e4ea258444.js

js hkiacargo.com collected 2026-09-25 03:03:01 UTC 133,983 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkangular_app=self.webpackChunkangular_app||[]).push([["default-apps_angular-app_src_app_modules_message_message_module_ts"],{11850:(ie,F,_)=>{_.r(F),_.d(F,{MessageModule:()=>Yn});var d=_(60177),u=_(63040),g=_(76965),s=_(95871),v=_(76651),T=_(19493),A=_(83921),M=_(74526),O=_(90696),e=_(54438),k=_(21626);let P=(()=>{class a extends s.GfA{constructor(t,n,o){super(o),this.httpClient=t,this.chttpClient=n}batchUpdateReadReceipt(t){return this.httpClient.patch(`${this.notificationUrl}/notifications`,{ids:t,read_receipt:!0}).pipe((0,A.W)(i=>(0,M.$)(i)))}approvalSR(t,n,o="",i="RA"){const r={action:n,remarks:o},p=t.map(E=>"RF"===i?this.chttpClient.patch(`${this.exportUrl}/v1/rf/screening-requests/${E}/approval`,r,i):"TR"===i?this.chttpClient.patch(`${this.exportUrl}/v1/tr/delivery-requests/${E}/approval`,r,i):void 0);return(0,O.p)(p)}static{this.\u0275fac=function(n){return new(n||a)(e.KVO(k.Qq),e.KVO(s.E_F),e.KVO(s.vQM))}}static{this.\u0275prov=e.jDH({token:a,factory:a.\u0275fac})}}return a})();var c=_(89417),m=_(19852),$=_(87568),C=function(a){return a.rf_code="rf_code",a.hawb_number="hawb_number",a}(C||{});const Y={hawb_number:{key:"hawb_number",defaultValue:"",label:"LBL_EXPORT_ORDER_NUMBER",validators:[c.k0.required,m.F$],controlType:"text",incorrectFormatMsg:"LBL_ALERT_ALPHANUMERIC"},ra_reference_number:{key:"ra_reference_number",defaultValue:"",label:"LBL_REFERENCE_ID_OPTIONAL",validators:[m.Jz.referenceId,c.k0.maxLength(50)],controlType:"text",incorrectFormatMsg:"LBL_ALERT_ALPHANUMERIC"},shipment_destination:{key:"shipment_destination",defaultValue:null,label:"LBL_FINAL_DESTINATION",validators:[c.k0.required],controlType:"select",placeholder:"LBL_PLACEHOLDER_SELECT_COUNTRY_CODE",options:[],optionMode:"groups",editable:!0},shipment_destination_area:{key:"shipment_destination_area",defaultValue:null,label:"LBL_FINAL_DESTINATION_PROVINCE_OR_STATE",placeholder:"LBL_PLACEHOLDER_SELECT_PROVINCE_OR_STATE",validators:[],controlType:"select",options:[],editable:!0},package_types:{key:"package_types",defaultValue:null,label:"LBL_PACKAGE_TYPE",validators:[],controlType:"table",columns:[{header:"LBL_PACKAGE_TYPE",field:"seq_no",editable:!1,width:"130px",controlType:"readonly-index",isIndex:!0},{header:"LBL_UNIT_OPTIONAL",field:"unit",width:"16%",editable:!0,validators:[m.F$],controlType:"text",incorrectFormatMsg:"LBL_ALERT_ALPHANUMERIC"},{header:"LBL_LENGTH",field:"length",width:"16%",editable:!0,validators:[c.k0.required,
1c.k0.pattern("^[0-9]+\\.?[0-9]*$")],controlType:"text",defaultValue:0,incorrectFormatMsg:"LBL_AEERT_NUMBERIC"},{header:"LBL_WIDTH",field:"width",width:"16%",editable:!0,validators:[c.k0.required,c.k0.pattern("^[0-9]+\\.?[0-9]*$")],controlType:"text",defaultValue:0,incorrectFormatMsg:"LBL_AEERT_NUMBERIC"},{header:"LBL_HEIGHT",field:"height",width:"16%",editable:!0,validators:[c.k0.required,c.k0.pattern("^[0-9]+\\.?[0-9]*$")],controlType:"text",defaultValue:0,incorrectFormatMsg:"LBL_AEERT_NUMBERIC"},{header:"LBL_PCS",field:"pieces",editable:!0,width:"16%",validators:[c.k0.required,m.ix],controlType:"text",defaultValue:0,incorrectFormatMsg:"LBL_AEERT_NUMBERIC"}],summary:(a,l)=>{const t=l?l.instant("LBL_TOTAL_PCS"):"LBL_TOTAL_PCS",n=l?l.instant("LBL_PCS_LOWERCASE"):"LBL_PCS_LOWERCASE";return`${t}: <strong>`+a.reduce((o,i)=>i.pieces?o+parseInt(i.pieces,10):o,0)+`${n}</strong>`}},dangerous_goods:{key:"dangerous_goods",defaultValue:null,label:"LBL_MSG_DANGEROUS_GOOD",controlType:"checkbox"},lithium_battery_indicator:{key:"lithium_battery_indicator",defaultValue:!1,label:"LBL_MSG_LITHIUM_BATTERY",controlType:"checkbox"},total_weight:{key:"total_weight",defaultValue:null,label:"LBL_TOTAL_WEIGHT_KG",validators:[c.k0.required,
1c.k0.pattern("^[0-9]+\\.?[0-9]*$")],controlType:"text",incorrectFormatMsg:"LBL_AEERT_NUMBERIC"},total_volume:{key:"total_volume",defaultValue:null,label:"LBL_TOTAL_VOLUME_MC",labelRenderHtml:!0,validators:[c.k0.required,c.k0.pattern("^[0-9]+\\.?[0-9]*$"),m.WB],controlType:"text",incorrectFormatMsg:"LBL_AEERT_NUMBERIC"},description_of_content:{key:"description_of_content",defaultValue:null,label:"LBL_DESCRIPTION_OF_CONTENT",placeholder:"LBL_PLACEHOLDER_SELECT_DESCRIPTION_OF_CONTENT",validators:[c.k0.required],controlType:"select",options:[],editable:!0},origin_country_code:{key:"origin_country_code",defaultValue:null,label:"LBL_EXPORT_ORDER_ORIGIN_COUNTRY",validators:[c.k0.required],controlType:"select",placeholder:"LBL_PLACEHOLDER_SELECT_COUNTRY_CODE",options:[],optionMode:"groups",editable:!0},origin_province_code:{key:"origin_province_code",defaultValue:null,label:"LBL_EXPORT_ORDER_ORIGIN_PROVINCE_SLASH_STATE",placeholder:"LBL_PLACEHOLDER_SELECT_PROVINCE_OR_STATE",validators:[],controlType:"select",options:[],editable:!0},handling_codes:{key:"handling_codes",defaultValue:[],label:"",validators:[m.jT.match()],controlType:"table",columns:[{header:"LBL_SPL_CODE",field:"spl_code",width:"50%",editable:!0,placeholder:"LBL_SELECT_SPI_CODE",validators:[],mockTranslateKey:"spl_code",controlType:"searchable-select",options:[]},{header:"LBL_PI_CODE",field:"pi_code",width:"50%",editable:!0,disabled:!0,placeholder:"LBL_SELECT_PI_CODE",validators:[],mockTranslateKey:"pi_code",controlType:"searchable-select",optionsArr:[]}],fullWidth:!0,editable:!0,deletable:!0},carrier_code:{key:"carrier_code",defaultValue:null,label:"LBL_CARRIER_CODE",validators:[c.k0.required],placeholder:"LBL_PLACEHOLDER_CARRIER_CODE",controlType:"select",options:[],editable:!0},description_of_content_list:{key:"description_of_content_list",label:"LBL_DESCRIPTION_OF_CONTENT",defaultValue:[{item:null}],validators:$.QT,controlType:"table",tableConfig:{noHeader:!0,minNumOfItem:1,maxNumOfItem:3},columns:[{header:null,field:"item",editable:!0,controlType:"select",allowClear:!1,validators:[],options:[]}]}},le={[C?.rf_code]:{key:C?.rf_code,defaultValue:null,label:"LBL_RACSF_COMPANY",placeholder:"LBL_PLACEHOLDER_SELECT_RACSF_COMPANY",validators:[c.k0.required],controlType:"select",options:[],editable:!0},[C?.hawb_number]:{key:C?.hawb_number,defaultValue:null,label:"LBL_NEW_COLOAD_EXPORT_ORDER_NUMBER",validators:[c.k0.required],controlType:"text",editable:!0}};var se=_(49090),X=_(95006),L=_(68018),Te=_(57094);const he={emitFormValue:!1,formValue:{hawb_number:"",rf_code:"",action:"APPROVE"},formConfig:{[C?.rf_code]:{key:C?.rf_code,defaultValue:null,label:"LBL_RACSF_COMPANY",placeholder:"LBL_PLACEHOLDER_SELECT_RACSF_COMPANY",validators:[c.k0.required],controlType:"select",options:[],editable:!0},[C?.hawb_number]:{key:C?.hawb_number,defaultValue:null,label:"LBL_NEW_COLOAD_EXPORT_ORDER_NUMBER",validators:[c.k0.required],controlType:"text",editable:!0}},httpRequest:null,httpResponse:null,lifecycle:{submitFormLoad:!1,submitFormSuccess:!1},meta:{canLeavePage:!0},displayData:null};let H=(()=>{class a extends s.$Mp{constructor(t,n,o){super(he),this.translateService=t,this.messageService=n,this.coloadExportOrder=o,this.updateDisplayData=this.updater((i,{displayData:r})=>({...i,displayData:{...i.displayData,...r}})),this.updatePopupLoading=this.updater((i,{popupLoading:r})=>({...i,lifecycle:{...i.lifecycle,popupLoading:r}})),this.getColoadHawbRequest=this.effect(i=>(this.updatePopupLoading({popupLoading:!0}),i.pipe((0,se.n)(r=>this.coloadExportOrder.getColoadHawbRequest(r)?.pipe((0,X.T)(p=>{this.updateDisplayData({displayData:{coloadRequestDetails:p.body}}),this.updatePopupLoading({popupLoading:!1})})))))),this.transformFormValueToHttpRequest=i=>({messageRequest:i}),this.formSubmitApi=i=>{const r=i.messageRequest;return this.coloadExportOrder.saveColoadRequest(r)?.pipe((0,X.T)(p=>{if(p&&"success"===p?.message){const E=this.translateService.instant("LBL_TOASTMSG_EXPORT_ORDER_SAVED_SUCCESSFULLY");this.messageService.create("success",E)}return{messageResponse:p}}))}}static{this.\u0275fac=function(n){return new(n||a)(e.KVO(L.c$),e.KVO(Te.xh),e.KVO(s.OLA))}}static{this.\u0275prov=e.jDH({token:a,factory:a.\u0275fac})}}return a})(),be=(()=>{class a{constructor(t,n){this.store=t,this.messageService=n,this.intervalTimer=(0,v.O)(1e3)}ngOnInit(){this.intervalRequestReadReceipt()}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe(),this.handReadReceip()}intervalRequestReadReceipt(){this.subscription=this.intervalTimer.subscribe(()=>{this.handReadReceip()})}handReadReceip(){this.store.pipe((0,g.Lt)(s.FXD),(0,T.s)(1)).toPromise().then(t=>{t.length>0&&this.messageService.batchUpdateReadReceipt(t).subscribe(()=>{this.store.dispatch((0,s.OeE)({payload:t}))},n=>{console.error("err: ",n)})})}static{this.\u0275fac=function(n){return new(n||a)(e.rXU(g.il),e.rXU(P))}}static{this.\u0275cmp=e.VBU({type:a,selectors:[["hkaa-cargo-web-message"]],standalone:!1,features:[e.Jv_([H])],decls:1,vars:0,template:function(n,o){1&n&&e.nrm(0,"router-outlet")},dependencies:[u.n3],encapsulation:2})}}return a})();var R=_(26501),z=_(76378),G=_(24391),re=_(72976);const fe=(a,l,t)=>({name:a,number:l,revertReason:t});function Re(a,l){if(1&a&&e.nrm(0,"span",9),2&a){const t=e.XpG().$implicit;e.Y8G("innerHtml",t,e.npT)}}function Ee(a,l){if(1&a){const t=e.RV6();e.j41(0,"a",10),e.bIt("click",function(){e.eBV(t);const o=e.XpG(3);return e.Njj(o.navigateTo(null==o.data||null==o.data.content?null:o.data.content.mawb_id,null==o.data||null==o.data.content?null:o.data.content.cto_code))}),e.j41(1,"strong"),e.EFF(2),e.nI1(3,"formatMawbNo"),e.k0s()()}if(2&a){const t=e.XpG().$implicit;e.R7$(2),e.JRh(e.bMT(3,1,t))}}function Ce(a,l){if(1&a&&(e.qex(0),e.DNE(1,Re,1,1,"span",8)(2,Ee,4,3,"ng-template",null,1,e.C5r),e.bVm()),2&a){const t=l.first,n=l.last,o=e.sdS(3);e.R7$(),e.Y8G("ngIf",t||n)("ngIfElse",o)}}function Le(a,l){if(1&a&&(e.qex(0),e.j41(1,"div",6),e.DNE(2,Ce,4,2,"ng-container",7),e.k0s(),e.bVm()),2&a){const t=e.XpG();e.R7$(2),e.Y8G("ngForOf",t.singleBulkRevertContent)}}function Oe(a,l){1&a&&(e.qex(0),e.EFF(1,", "),e.bVm())}function Ie(a,l){if(1&a){const t=e.RV6();e.qex(0),e.j41(1,"a",10),e.bIt("click",function(){const o=e.eBV(t).$implicit,i=e.XpG(2);return e.Njj(i.navigateTo(null==o?null:o.mawb_id,null==i.data||null==i.data.content?null:i.data.content.cto_code))}),e.j41(2,"strong"),e.EFF(3),e.nI1(4,"formatMawbNo"),e.k0s()(),e.DNE(5,Oe,2,0,"ng-container",13),e.bVm()}if(2&a){const t=l.$implicit,n=l.last;e.R7$(3),e.JRh(e.bMT(4,2,null==t?null:t.mawb_number)),e.R7$(2),e.Y8G("ngIf",!n)}}function Pe(a,l){if(1&a&&(e.nrm(0,"div",11),e.nI1(1,"stringDisplay"),e.nI1(2,"stringDisplay"),e.nI1(3,"translate"),e.j41(4,"div",12),e.DNE(
15,Ie,6,4,"ng-container",7),e.k0s()),2&a){const t=e.XpG();e.Y8G("innerHtml",e.i5U(3,7,"PGMS_IMPORT_ORDER_BULK_REVERT_NOTIFICATION",e.sMw(10,fe,e.i5U(1,2,null==t.data||null==t.data.content?null:t.data.content.actor_name_en,null==t.data||null==t.data.content?null:t.data.content.actor_name_zh),null==t.data?null:t.data.content.number_of_orders,e.bMT(2,5,null==t.data||null==t.data.content?null:t.data.content.revert_reason))),e.npT),e.R7$(5),e.Y8G("ngForOf",null==t.data||null==t.data.content?null:t.data.content.mawb_numbers)}}let Se=(()=>{class a{constructor(t,n,o,i){this.modalRef=t,this.translateSvc=n,this.stringDisplay=o,this.COMMON_DATA_FORMAT=s.rhr,this.ROUTELINK="<routerLink>",this.singleBulkRevertContent=[],this.data=i.data}ngOnInit(){if(this.data?.content?.mawb_id){const t=this.translateSvc.instant("PGMS_IMPORT_ORDER_SINGLE_REVERT_NOTIFICATION",{name:this.stringDisplay.transform(this.data?.content?.actor_name_en,this.data?.content?.actor_name_zh,!0),mawbNo:this.data?.content?.mawb_number,revertReason:this.stringDisplay.transform(this.data?.content?.revert_reason)});this.singleBulkRevertContent=t?.split(this.ROUTELINK)}}navigateTo(t,n){this.modalRef.destroy({id:t,ctoCode:(0,m.O9)(n)})}static{this.\u0275fac=function(n){return new(n||a)(e.rXU(R.J9),e.rXU(L.c$),e.rXU(m.O1),e.rXU(R.or))}}static{this.\u0275cmp=e.VBU({type:a,selectors:[["hkaa-cargo-web-message-import-bulk-revert-popup"]],standalone:!1,decls:12,vars:12,consts:[["bulkRevertTpl",""],["navigationTpl",""],[1,"modal-title-root","ant-modal-header"],[1,"mb-0"],[2,"padding","32px 80px"],[4,"ngIf","ngIfElse"],[1,"mb-16"],[4,"ngFor","ngForOf"],["class","white-space__pre-warp",3,"innerHtml",4,"ngIf","ngIfElse"],[1,"white-space__pre-warp",3,"innerHtml"],[3,"click"],[1,"mb-16","white-space__pre-warp",3,"innerHtml"],[1,"mb-32"],[4,"ngIf"]],template:function(n,o){if(1&n&&(e.j41(0,"div",2)(1,"h1"),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"p",3),e.EFF(5),e.nI1(6,"translate"),e.nI1(7,"dfnsFormat"),e.k0s()(),e.j41(8,"div",4),e.DNE(9,Le,3,1,"ng-container",5)(10,Pe,6,14,"ng-template",null,0,e.C5r),e.k0s()),2&n){const i=e.sdS(11);e.R7$(2),e.JRh(e.bMT(3,5,"PGTTL_IMPORT_ORDER_REVERT_NOTIFICATION")),e.R7$(3),e.Lme("",e.bMT(6,7,"LBL_LAST_UPDATED"),": ",e.i5U(7,9,null==o.data?null:o.data.sender_time,null==o.COMMON_DATA_FORMAT?null:o.COMMON_DATA_FORMAT.DATE_TIME_THREE),""),e.R7$(4),e.Y8G("ngIf",null==o.data||null==o.data.content?null:o.data.content.mawb_id)("ngIfElse",i)}},dependencies:[d.Sq,d.bT,z.qZ6,L.D9,G.O,re.c],encapsulation:2})}}return a})();var N=_(15575),_e=_(49776),h=_(7605),Ae=_(20522),V=_(58728),Me=_(85212),D=_(67376),ke=_(64831);const ye=(a,l)=>({agentCompanyName:a,number:l});function Fe(a,l){1&a&&(e.qex(0),e.EFF(1,", "),e.bVm())}function ze(a,l){if(1&a){const t=e.RV6();e.qex(0),e.j41(1,"a",6),e.bIt("click",function(){const o=e.eBV(t).$implicit,i=e.XpG();return e.Njj(i.navigateTo(null==o?null:o.mawb_id,null==i.data||null==i.data.content?null:i.data.content.cto_code))}),e.j41(2,"strong"),e.EFF(3),e.nI1(4,"formatMawbNo"),e.k0s()(),e.DNE(5,Fe,2,0,"ng-container",7),e.bVm()}if(2&a){const t=l.$implicit,n=l.last;e.R7$(3),e.JRh(e.bMT(4,2,null==t?null:t.mawb_number)),e.R7$(2),e.Y8G("ngIf",!n)}}let De=(()=>{class a{constructor(t,n){this.modalRef=t,this.COMMON_DATA_FORMAT=s.rhr,this.data=n.data}navigateTo(t,n){this.modalRef.destroy({id:t,ctoCode:(0,m.O9)(n)})}static{this.\u0275fac=function(n){return new(n||a)(e.rXU(R.J9),e.rXU(R.or))}}static{this.\u0275cmp=e.VBU({type:a,selectors:[["hkaa-cargo-web-message-import-order-sharing-popup"]],standalone:!1,decls:14,vars:22,consts:[[1,"modal-title-root","ant-modal-header"],[1,"mb-0"],[2,"padding","32px 80px"],[1,"mb-16",3,"innerHtml"],[1,"mb-32"],[4,"ngFor","ngForOf"],[3,"click"],[4,"ngIf"]],template:function(n,o){1&n&&(e.j41(0,"div",0)(1,"h1"),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"p",1),e.EFF(5),e.nI1(6,"translate"),e.nI1(7,"dfnsFormat"),e.k0s()(),e.j41(8,"div",2),e.nrm(9,"div",3),e.nI1(10,"stringDisplay"),e.nI1(11,"translate"),e.j41(12,"div",4),e.DNE(13,ze,6,4,"ng-container",5),e.k0s()()),2&n&&(e.R7$(2),e.JRh(e.bMT(3,5,"PGTTL_IMPORT_BULK_SHARE_NOTIFICATION")),e.R7$(3),e.Lme("",e.bMT(6,7,"LBL_LAST_UPDATED"),": ",e.i5U(7,9,null==o.data?null:o.data.sender_time,null==o.COMMON_DATA_FORMAT?null:o.COMMON_DATA_FORMAT.DATE_TIME_THREE),""),e.R7$(4),e.Y8G("innerHtml",e.i5U(11,16,"PGMS_IMPORT_BULK_SHARE_NOTIFICATION",e.l_i(19,ye,e.brH(10,12,null==o.data?null:o.data.sender_display_name_en,null==o.data?null:o.data.sender_display_name_zh,!0),null==o.data?null:o.data.content.number_of_orders)),e.npT),e.R7$(4),e.Y8G("ngForOf",null==o.data||null==o.data.content?null:o.data.content.mawb_numbers))},dependencies:[d.Sq,d.bT,z.qZ6,L.D9,G.O,re.c],encapsulation:2})}}return a})();function ve(a,l){if(1&a&&e.nrm(0,"span",7),2&a){const t=e.XpG().$implicit;e.Y8G("innerHtml",t,e.npT)}}function Ne(a,l){if(1&a){const t=e.RV6();e.j41(0,"a",8),e.bIt("click",function(){e.eBV(t);const o=e.XpG(2);return e.Njj(o.navigateToMyPartner())}),e.j41(1,"strong"),e.EFF(2),e.k0s()()}if(2&a){const t=e.XpG().$implicit;e.R7$(2),e.JRh(t)}}function Be(a,l){if(1&a&&(e.qex(0),e.DNE(1,ve,1,1,"span",6)(2,Ne,3,1,"ng-template",null,0,e.C5r),e.bVm()),2&a){const t=l.first,n=l.last,o=e.sdS(3);e.R7$(),e.Y8G("ngIf",t||n)("ngIfElse",o)}}let xe=(()=>{class a{constructor(t,n,o,i){this.modalRef=t,this.translateSvc=n,this.stringDisplay=o,this.COMMON_DATA_FORMAT=s.rhr,this.ROUTELINK="<routerLink>",this.content=[],this.currentRole=null,this.data=i.data}ngOnInit(){let t="";"import_fail_auto_order_assignment_notification_web"===this.data.message_name&&(t=this.translateSvc.instant("PGMS_IMPORT_FAIL_AUTO_ORDER_CONFIG_ASSIGNEE_WEB",{assignee:this.stringDisplay.transform(this.data?.content?.assignee_name_en,this.data?.content?.assignee_name_zh,!0)})),"import_tr_fail_automatic_order_assignment_notification_web"===this.data.message_name&&(t=this.translateSvc.instant("PGMS_IMPORT_FAILED_TO_AUTO_ORDER_ASSIGNMENT_DELEGATE",{assignee:this.stringDisplay.transform(this.data?.content?.assignee_name_en,this.data?.content?.assignee_name_zh,!0),ctoName:this.stringDisplay.transform(this.data?.content?.cto_name),agentCompanyname:this.stringDisplay.transform(this.data?.content?.agent_company_name_en,this.data?.content?.agent_company_name_zh,!0)})),"import_ra_fail_automatic_order_assignment_notification_web"===this.data.message_name&&(t=this.translateSvc.instant("PGMS_IMPORT_FAIL_AUTO_ORDER_CONFIG_ASSIGNEE_WEB",{assignee:this.stringDisplay.transform(this.data?.content?.assignee_name_en,this.data?.content?.assignee_name_zh,!0)})),"import_fail_automatic_order_sharing_notification_web"===this.data.message_name&&(t=this.translateSvc.instant("PGMS_IMPORT_FAIL_AUTO_ORDER_SHARING",{delegate:this.stringDisplay.transform(this.data?.content?.agent_delegate_company_name_en,this.data?.content?.agent_delegate_company_name_zh,!0)})),this.content=t?.split(this.ROUTELINK)}navigateToMyPartner(){this.modalRef.destroy(!0)}static{this.\u0275fac=function(n){return new(n||a)(e.rXU(R.J9),e.rXU(L.c$),e.rXU(m.O1),e.rXU(R.or))}}static{this.\u0275cmp=e.VBU({type:a,selectors:[["hkaa-cargo-web-message-import-fail-auto-order-assignment-popup"]],standalone:!1,decls:11,vars:11,consts:[["navigationTpl",""],[1,"modal-title-root","ant-modal-header"],[1,"mb-0"],[2,"padding","32px 80px"],[1,"mb-16"],[4,"ngFor","ngForOf"],["class","white-space__pre-warp",3,"innerHtml",4,"ngIf","ngIfElse"],[1,"white-space__pre-warp",3,"innerHtml"],[3,"click"]],template:function(n,o){1&n&&(e.j41(0,"div",1)(1,"h1"),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"p",2),e.EFF(5),e.nI1(6,"translate"),e.nI1(7,"dfnsFormat"),e.k0s()(),e.j41(8,"div",3)(9,"div",4),e.DNE(10,Be,4,2,"ng-container",5),e.k0s()()),2&n&&(e.R7$(2),e.JRh(e.bMT(3,4,"PGTTL_IMPORT_FAIL_AUTOMATIC_ORDER_ASSIGNMENT_NOTIFICATION")),e.R7$(3),e.Lme("",e.bMT(6,6,"LBL_LAST_UPDATED"),": ",e.i5U(7,8,null==o.data?null:o.data.sender_time,null==o.COMMON_DATA_FORMAT?null:o.COMMON_DATA_FORMAT.DATE_TIME_THREE),""),e.R7$(5),e.Y8G("ngForOf",o.content))},dependencies:[d.Sq,d.bT,z.qZ6,L.D9],encapsulation:2})}}return a})();var j=function(a){return a.DocumentType="document_type",a.RequestBy="requested_by",a.RequestTime="requested_at",a}(j||{});const $e=[{name:"LBL_REQUESTED_BY",field:j.RequestBy,width:1/3*100+"%"},{name:"LBL_DOCUMENT_TYPE",field:j.DocumentType,width:1/3*100+"%"},{name:"LBL_REQUEST_TIME",field:j.RequestTime,width:1/3*100+"%"}];var f=_(23359);function Ge(a,l){if(1&a&&(e.j41(0,"th",5),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&a){const t=l.$implicit;e.Y8G("nzColumnKey",t.field)("nzWidth",null==t?null:t.width),e.R7$(),e.SpI(" ",e.bMT(2,3,t.name)," ")}}let Ve=(()=>{class a{constructor(t,n,o,i,r){this.translateSvc=t,this.stringDisplay=n,this.mockTranslatePipe=o,this.store=i,this.COMMON_DATA_FORMAT=(0,D.cloneDeep)(s.rhr),this.listOfHistoryColumns=(0,D.cloneDeep)($e),this.documentTypeTranslateMapping={},this.data=r.data}ngOnInit(){this.content=this.translateSvc.instant("LBL_REQUEST_EPOUCH_DETAILS_TITLE",{mawb_no:this.stringDisplay.transform(this.data?.content?.mawb_number),cto_name:this.stringDisplay.transform(this.data?.content?.cto_name)}),this.mockTranslatePipe.getDropDownOptions("epouch_document_type").map(n=>{this.documentTypeTranslateMapping[n?.value]=n?.label})}handleSingleHistoryDocTypeTranslate(t){const n=[];if(t){const o=t.split(":");(o[0]?.split(", ")).map(r=>{n.push("Others"===r?this.documentTypeTranslateMapping[r]+":"+o[1]:this.documentTypeTranslateMapping[r])})}return n.join(", ")}
1static{this.\u0275fac=function(n){return new(n||a)(e.rXU(L.c$),e.rXU(m.O1),e.rXU(m.zY),e.rXU(g.il),e.rXU(R.or))}}static{this.\u0275cmp=e.VBU({type:a,selectors:[["hkaa-cargo-web-message-request-for-epouch-popup"]],standalone:!1,decls:22,vars:16,consts:[["data-testid","request-for-epouch-document-popup",1,"container"],[1,"modal-title-root","ant-modal-header","mb-16"],[1,"mt-16","mb-8"],["nzBordered","","nzTemplateMode","","nzSize","small","nzClassName","modalWrapper greyHeader infoModalWrapper","data-testid","request-epouch-details-table",1,"modal-content-table",3,"nzFrontPagination","nzShowPagination"],[3,"nzColumnKey","nzWidth",4,"ngFor","ngForOf"],[3,"nzColumnKey","nzWidth"]],template:function(n,o){1&n&&(e.j41(0,"div",0)(1,"div",1)(2,"div",2),e.EFF(3),e.k0s(),e.j41(4,"span"),e.EFF(5),e.nI1(6,"translate"),e.k0s()(),e.j41(7,"nz-table",3)(8,"thead")(9,"tr"),e.DNE(10,Ge,3,5,"th",4),e.k0s()(),e.j41(11,"tbody")(12,"tr")(13,"td"),e.EFF(14),e.nI1(15,"stringDisplay"),e.k0s(),e.j41(16,"td"),e.EFF(17),e.nI1(18,"stringDisplay"),e.k0s(),e.j41(19,"td"),e.EFF(20),e.nI1(21,"stringDisplay"),e.k0s()()()()()),2&n&&(e.R7$(3),e.JRh(o.content),e.R7$(2),e.JRh(e.bMT(6,8,"LBL_REQUEST_EPOUCH_DETAILS_SUB_TITLE")),e.R7$(2),e.Y8G("nzFrontPagination",!1)("nzShowPagination",!1),e.R7$(3),e.Y8G("ngForOf",o.listOfHistoryColumns),e.R7$(4),e.JRh(e.bMT(15,10,null==o.data||null==o.data.content?null:o.data.content.requested_by)),e.R7$(3),e.JRh(e.bMT(18,12,o.handleSingleHistoryDocTypeTranslate(null==o.data||null==o.data.content?null:o.data.content.document_type))),e.R7$(3),e.JRh(e.bMT(21,14,null==o.data||null==o.data.content?null:o.data.content.requested_at)))},dependencies:[d.Sq,f.CP,f.Cc,f.SO,f._4,f.IL,f.aj,f.kt,L.D9,G.O],styles:[".container[_ngcontent-%COMP%]     .ant-modal{width:935px!important}.container[_ngcontent-%COMP%]   .modal-title-root[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]{font-family:Open Sans;font-size:32px;font-style:normal;font-weight:700;line-height:normal;padding-right:16px}.container[_ngcontent-%COMP%]   .modal-title-root[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-size:13px;font-weight:400;line-height:14px}.container[_ngcontent-%COMP%]   .modal-content-table[_ngcontent-%COMP%]{padding:32px 80px;border-radius:4px 4px 0 0}.container[_ngcontent-%COMP%]   .modal-content-table[_ngcontent-%COMP%]     .ant-table-thead tr th, .container[_ngcontent-%COMP%]   .modal-content-table[_ngcontent-%COMP%]     .ant-table-tbody tr td{background-color:#f7f9fc}"]})}}return a})();var W=_(50513),J=_(16389),K=_(25930),S=_(97529);const je=a=>({linkupDate:a});function we(a,l){if(1&a&&(e.j41(0,"p",13),e.EFF(1),e.nI1(2,"dfnsFormat"),e.nI1(3,"translate"),e.k0s()),2&a){const t=e.XpG();e.R7$(),e.SpI(" ",e.i5U(3,4,"PGMSG_TRADE_BRIO_PROFILE_LINKED_SUCCESSFULLY",e.eq3(7,je,e.i5U(2,1,null==t.data?null:t.data.sender_time,null==t.COMMON_DATA_FORMAT?null:t.COMMON_DATA_FORMAT.DATE_TIME_THREE)))," ")}}function Ue(a,l){1&a&&(e.j41(0,"p",13),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&a&&(e.R7$(),e.JRh(e.bMT(2,1,"PGMSG_TRADE_BRIO_PROFILE_LINKED_FAILED")))}function Ye(a,l){1&a&&(e.j41(0,"p"),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&a&&(e.R7$(),e.JRh(e.bMT(2,1,"PGMSG_TRADE_BRIO_DELINK_SUCCESSFULLY")))}function Xe(a,l){1&a&&(e.j41(0,"p"),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&a&&(e.R7$(),e.JRh(e.bMT(2,1,"PGMSG_TRADE_BRIO_DELINK_FAILED")))}function He(a,l){if(1&a){const t=e.RV6();e.j41(0,"button",18),e.bIt("click",function(){e.eBV(t);const o=e.XpG(2);return e.Njj(o.onGoToTradeDeclaration())}),e.EFF(1),e.nI1(2,"translate"),e.k0s()}2&a&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"BTN_TRADE_GO_TO_TRADE_DECLARATION")," "))}function We(a,l){if(1&a){const t=e.RV6();e.j41(0,"div",14)(1,"div",15)(2,"button",16),e.bIt("click",function(){e.eBV(t);const o=e.XpG();return e.Njj(o.onViewInCompanyProfile())}),e.EFF(3),e.nI1(4,"translate"),e.k0s(),e.DNE(5,He,3,3,"button",17),e.k0s()()}if(2&a){const t=e.XpG();e.R7$(3),e.SpI(" ",e.bMT(4,2,"BTN_TRADE_VIEW_IN_COMPANY_PROFILE")," "),e.R7$(2),e.Y8G("ngIf",t.isLinkup&&t.isSuccessful)}}let Je=(()=>{class a{constructor(t,n,o,i){this.store=t,this.router=n,this.nzModalSvc=o,this.destroyed$=new N.m(1),this.COMMON_DATA_FORMAT=s.rhr,this.currentLang="",this.lastUpdated="",this.data=i.data,this.isLinkup=i.isLinkup,this.isSuccessful=i.isSuccessful}ngOnInit(){this.store.select("language").pipe((0,h.Q)(this.destroyed$)).subscribe(t=>{this.currentLang=t.currentLang}),this.store.select(s.Ko4).pipe((0,h.Q)(this.destroyed$)).subscribe(t=>{this.currentRole=t})}onGoToTradeDeclaration(){this.nzModalSvc.closeAll(),this.router.navigate(["/trader/pages/trade/home"])}onViewInCompanyProfile(){this.nzModalSvc.closeAll(),this.router.navigate([`/${this.currentRole?.toLowerCase()}/pages/profile/manage-company-profile`])}utcToHkt(t){return(0,m.RD)(t)}ngOnDestroy(){this.destroyed$.next(!0),this.destroyed$.complete()}static{this.\u0275fac=function(n){return new(n||a)(e.rXU(g.il),e.rXU(u.Ix),e.rXU(R.N_),e.rXU(R.or))}}static{this.\u0275cmp=e.VBU({type:a,selectors:[["hkaa-cargo-web-message-trade-linkup-brio-popup"]],standalone:!1,decls:20,vars:14,consts:[[1,"container"],[1,"modal-title-root","ant-modal-header"],["nz-row","","nzAlign","middle"],["nz-col","","nzSpan","22"],["nz-row","","nzAlign","middle",1,"mt-5"],["nz-col",""],[1,"subtitle"],[1,"ant-modal-body"],["nz-row",""],["nz-col","",1,"mb-16",3,"nzSpan"],["class","popup-message",4,"ngIf"],[4,"ngIf"],["nz-row","","nzJustify","end",4,"ngIf"],[1,"popup-message"],["nz-row","","nzJustify","end"],["nz-col","",1,"mt-32","btn-area"],["nz-button","","nzSpan","12",3,"click"],["nzSpan","12","nzOffset","2","nz-button","","nzType","primary",3,"click",4,"ngIf"],["nzSpan","12","nzOffset","2","nz-button","","nzType","primary",3,"click"]],template:function(n,o){1&n&&(e.j41(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"h1"),e.EFF(5),e.k0s()()(),e.j41(6,"div",4)(7,"div",5)(8,"p",6),e.EFF(9),e.nI1(10,"translate"),e.nI1(11,"dfnsFormat"),e.k0s()()()(),e.j41(12,"div",7)(13,"div",8)(14,"div",9),e.DNE(15,we,4,9,"p",10)(16,Ue,3,3,"p",10)(17,Ye,3,3,"p",11)(18,Xe,3,3,"p",11),e.k0s()(),e.DNE(19,We,6,4,"div",12),e.k0s()()),2&n&&(e.R7$(5),e.JRh("zh-HK"===o.currentLang?null==o.data?null:o.data.message_subject_zh:null==o.data?null:o.data.message_subject_en),e.R7$(4),e.Lme("",e.bMT(10,9,"LBL_TRADE_
1LAST_UPDATED"),":\xa0",e.i5U(11,11,null==o.data?null:o.data.sender_time,null==o.COMMON_DATA_FORMAT?null:o.COMMON_DATA_FORMAT.DATE_TIME_THREE),""),e.R7$(5),e.Y8G("nzSpan",24),e.R7$(),e.Y8G("ngIf",o.isLinkup&&o.isSuccessful),e.R7$(),e.Y8G("ngIf",o.isLinkup&&!o.isSuccessful),e.R7$(),e.Y8G("ngIf",!o.isLinkup&&o.isSuccessful),e.R7$(),e.Y8G("ngIf",!o.isLinkup&&!o.isSuccessful),e.R7$(),e.Y8G("ngIf",o.isLinkup&&o.isSuccessful||o.isLinkup&&!o.isSuccessful))},dependencies:[d.bT,W.aO,J.c,K.p,S.Uq,S.e,z.qZ6,L.D9],styles:[".subtitle[_ngcontent-%COMP%]{color:#50576d;font-weight:400;font-size:12px;line-height:14px;margin-bottom:0}.mt-10[_ngcontent-%COMP%]{margin-top:10px}.text-note[_ngcontent-%COMP%]{font-weight:400}.popup-message[_ngcontent-%COMP%]{color:#222b45}.btn-area[_ngcontent-%COMP%]{display:flex;gap:15px}"]})}}return a})();var Ke=_(25703),w=_(9541),qe=_(86505),pe=_(84444),Qe=_(4810),Ze=_(46240),et=_(79238),tt=_(42021),ce=_(66646),nt=_(66726),q=_(29082),Q=_(1924),at=_(63853),ot=_(40523),de=_(72264);function it(a,l){if(1&a&&(e.j41(0,"div",4)(1,"h1"),e.EFF(2),e.nI1(3,"dataTranslate"),e.k0s(),e.j41(4,"span"),e.EFF(5),e.nI1(6,"translate"),e.nI1(7,"dateDisplay"),e.k0s()()),2&a){const t=e.XpG();e.R7$(2),e.JRh(e.i5U(3,3,null==t.reportTamperingDetail?null:t.reportTamperingDetail.message_title_en,null==t.reportTamperingDetail?null:t.reportTamperingDetail.message_title_zh)),e.R7$(3),e.Lme("",e.bMT(6,6,"LBL_LAST_UPDATED"),": ",e.i5U(7,8,null==t.reportTamperingDetail?null:t.reportTamperingDetail.document_updated_at,null==t.COMMON_DATA_FORMAT?null:t.COMMON_DATA_FORMAT.DATE_TIME_THREE),"")}}function lt(a,l){if(1&a&&(e.j41(0,"tr")(1,"td"),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"td"),e.EFF(5),e.nI1(6,"numberDisplay"),e.k0s()()),2&a){const t=l.$implicit;e.R7$(2),e.JRh((null==t?null:t.awb_number)||e.bMT(3,2,"LBL_NOT_APPLICABLE")),e.R7$(3),e.JRh(e.bMT(6,4,null==t?null:t.pieces))}}function st(a,l){if(1&a&&(e.j41(0,"span"),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&a){const t=e.XpG(2);e.R7$(),e.SpI(": ",(null==t.reportTamperingDetail||null==t.reportTamperingDetail.cargo_consolidation_unit?null:t.reportTamperingDetail.cargo_consolidation_unit.uld_number)||e.bMT(2,1,"LBL_NOT_APPLICABLE"),"")}}function rt(a,l){if(1&a&&(e.j41(0,"div",14)(1,"p"),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"span"),e.EFF(5),e.nI1(6,"mockTranslate"),e.k0s()()),2&a){const t=e.XpG(3);e.Y8G("nzSpan",8),e.R7$(2),e.SpI("",e.bMT(3,3,"LBL_SECURE_TRANSPORTATION_METHOD"),":"),e.R7$(3),e.JRh(e.i5U(6,5,null==t.reportTamperingDetail||null==t.reportTamperingDetail.cargo_consolidation_unit?null:t.reportTamperingDetail.cargo_consolidation_unit.seal_type,"secure_transportation_method_display"))}}function _t(a,l){if(1&a&&(e.j41(0,"div",13)(1,"div",14)(2,"p"),e.EFF(3),e.nI1(4,"translate"),e.k0s(),e.j41(5,"span"),e.EFF(6),e.nI1(7,"mockTranslate"),e.k0s()(),e.j41(8,"div",14)(9,"p"),e.EFF(10),e.nI1(11,"translate"),e.k0s(),e.j41(12,"span"),e.EFF(13),e.nI1(14,"translate"),e.k0s()(),e.j41(15,"div",14)(16,"p"),e.EFF(17),e.nI1(18,"translate"),e.k0s(),e.j41(19,"span"),e.EFF(20),e.nI1(21,"numberDisplay"),e.k0s()()()),2&a){const t=e.XpG(3);e.Y8G("nzGutter",16),e.R7$(),e.Y8G("nzSpan",8),e.R7$(2),e.SpI("",e.bMT(4,10,"LBL_SECURE_TRANSPORTATION_METHOD"),":"),e.R7$(3),e.JRh(e.i5U(7,12,null==t.reportTamperingDetail||null==t.reportTamperingDetail.cargo_consolidation_unit?null:t.reportTamperingDetail.cargo_consolidation_unit.seal_type,"secure_transportation_method_display")),e.R7$(2),e.Y8G("nzSpan",8),e.R7$(2),e.SpI("",e.bMT(11,15,"LBL_SECURITY_LOCK_OR_SEAL_NUMBER"),":"),e.R7$(3),e.JRh((null==t.reportTamperingDetail||null==t.reportTamperingDetail.cargo_consolidation_unit?null:t.reportTamperingDetail.cargo_consolidation_unit.seal_number)||e.bMT(14,17,"LBL_NOT_APPLICABLE")),e.R7$(2),e.Y8G("nzSpan",8),e.R7$(2),e.SpI("",e.bMT(18,19,"LBL_TOTAL_NUMBER_OF_SEAL_PER_SET"),":"),e.R7$(3),e.JRh(e.bMT(21,21,null==t.reportTamperingDetail||null==t.reportTamperingDetail.cargo_consolidation_unit?null:t.reportTamperingDetail.cargo_consolidation_unit.seal_total_number))}}function pt(a,l){if(1&a&&(e.j41(0,"div",13)(1,"div",14)(2,"p"),e.EFF(3),e.nI1(4,"translate"),e.k0s(),e.j41(5,"span"),e.EFF(6),e.nI1(7,"translate"),e.k0s()(),e.j41(8,"div",14)(9,"p"),e.EFF(10),e.nI1(11,"translate"),e.k0s(),e.j41(12,"span"),e.EFF(13),e.nI1(14,"mockTranslate"),e.nI1(15,"translate"),e.k0s()(),e.j41(16,"div",14)(17,"p"),e.EFF(18),e.nI1(19,"translate"),e.k0s(),e.j41(20,"span"),e.EFF(21),e.nI1(22,"mockTranslate"),e.nI1(23,"translate"),e.k0s()()()),2&a){const t=e.XpG(3);e.Y8G("nzGutter",16),e.R7$(),e.Y8G("nzSpan",8),e.R7$(2),e.SpI("",e.bMT(4,10,"LBL_ULD_NUMBER"),":"),e.R7$(3),e.JRh((null==t.reportTamperingDetail||null==t.reportTamperingDetail.cargo_consolidation_unit?null:t.reportTamperingDetail.cargo_consolidation_unit.uld_number)||e.bMT(7,12,"LBL_NOT_APPLICABLE")),e.R7$(2),e.Y8G("nzSpan",8),e.R7$(2),e.SpI("",e.bMT(11,14,"LBL_ULD_DESTINATION"),":"),e.R7$(3),e.JRh(e.i5U(14,16,null==t.reportTamperingDetail||null==t.reportTamperingDetail.cargo_consolidation_unit?null:t.reportTamperingDetail.cargo_consolidation_unit.uld_destination,"airport")||e.bMT(15,19,"LBL_NOT_APPLICABLE")),e.R7$(3),e.Y8G("nzSpan",8),e.R7$(2),e.SpI("",e.bMT(19,21,"LBL_CONTR_CODE_AND_ULD_TYPE"),":"),e.R7$(3),e.JRh(e.i5U(22,23,null==t.reportTamperingDetail||null==t.reportTamperingDetail.cargo_consolidation_unit?null:t.reportTamperingDetail.cargo_consolidation_unit.contour_code,"contour_code")||e.bMT(23,26,"LBL_NOT_APPLICABLE"))}}function ct(a,l){1&a&&(e.j41(0,"div",21),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&a&&(e.R7$(),e.JRh(e.bMT(2,1,"PGTTL_ASSOCIATED_MASTER_AIR_WAYBILLS")))}function dt(a,l){if(1&a&&(e.j41(0,"div",13)(1,"div",14)(2,"p"),e.EFF(3),e.nI1(4,"translate"),e.k0s(),e.j41(5,"span"),e.EFF(6),e.nI1(7,"numberDis
1play"),e.k0s()(),e.j41(8,"div",14)(9,"p"),e.EFF(10),e.nI1(11,"translate"),e.k0s(),e.j41(12,"span"),e.EFF(13),e.nI1(14,"numberDisplay"),e.k0s()()()),2&a){const t=e.XpG(3);e.Y8G("nzGutter",16),e.R7$(),e.Y8G("nzSpan",8),e.R7$(2),e.SpI("",e.bMT(4,7,"LBL_NET_WEIGHT_KG"),":"),e.R7$(3),e.JRh(e.bMT(7,9,null==t.reportTamperingDetail||null==t.reportTamperingDetail.cargo_consolidation_unit?null:t.reportTamperingDetail.cargo_consolidation_unit.weight)),e.R7$(2),e.Y8G("nzSpan",8),e.R7$(2),e.SpI("",e.bMT(11,11,"LBL_TOTAL_VOLUME_MC"),":"),e.R7$(3),e.JRh(e.bMT(14,13,null==t.reportTamperingDetail||null==t.reportTamperingDetail.cargo_consolidation_unit?null:t.reportTamperingDetail.cargo_consolidation_unit.bulk_total_volume))}}function ut(a,l){if(1&a&&(e.j41(0,"div")(1,"div",13)(2,"div",14)(3,"p"),e.EFF(4),e.nI1(5,"translate"),e.k0s(),e.j41(6,"span"),e.EFF(7),e.nI1(8,"mockTranslate"),e.nI1(9,"translate"),e.k0s()(),e.DNE(10,rt,7,8,"div",15),e.k0s(),e.DNE(11,_t,22,23,"div",16)(12,pt,24,28,"div",16)(13,ct,3,3,"div",17),e.nrm(14,"div",18)(15,"hkaa-cargo-web-cargo-info-table",19),e.nI1(16,"determineCargoInfoDataTypeFromCargoTypePipe"),e.DNE(17,dt,15,15,"div",16),e.nrm(18,"div",20),e.k0s()),2&a){const t=e.XpG(2);e.R7$(),e.Y8G("nzGutter",16),e.R7$(),e.Y8G("nzSpan",8),e.R7$(2),e.SpI("",e.bMT(5,11,"LBL_CARGO_TYPE"),":"),e.R7$(3),e.JRh(e.i5U(8,13,null==t.reportTamperingDetail||null==t.reportTamperingDetail.cargo_consolidation_unit?null:t.reportTamperingDetail.cargo_consolidation_unit.cargo_type,"cargo_type")||e.bMT(9,16,"LBL_NOT_APPLICABLE")),e.R7$(3),e.Y8G("ngIf",t.currentCargoType===t.CargoTypeEnum.PPK),e.R7$(),e.Y8G("ngIf",t.currentCargoType!==t.CargoTypeEnum.PPK),e.R7$(),e.Y8G("ngIf",t.currentCargoType===t.CargoTypeEnum.MIX),e.R7$(),e.Y8G("ngIf",t.currentCargoType===t.CargoTypeEnum.MIX),e.R7$(2),e.Y8G("cargoType",null==t.reportTamperingDetail||null==t.reportTamperingDetail.cargo_consolidation_unit?null:t.reportTamperingDetail.cargo_consolidation_unit.cargo_type)("cargoInfoData",e.i5U(16,18,null==t.reportTamperingDetail?null:t.reportTamperingDetail.cargo_consolidation_unit,t.currentCargoType)),e.R7$(2),e.Y8G("ngIf",t.currentCargoType===t.CargoTypeEnum.BUK)}}function mt(a,l){if(1&a&&(e.qex(0),e.j41(1,"nz-spin",5)(2,"div")(3,"div",6),e.EFF(4),e.nI1(5,"translate"),e.k0s(),e.nrm(6,"div",7),e.j41(7,"nz-table",8,1)(9,"thead")(10,"tr")(11,"th"),e.EFF(12),e.nI1(13,"translate"),e.k0s(),e.j41(14,"th"),e.EFF(15),e.nI1(16,"translate"),e.k0s()()(),e.j41(17,"tbody"),e.DNE(18,lt,7,6,"tr",9),e.k0s()(),e.j41(19,"div",10),e.EFF(20),e.nI1(21,"translate"),e.k0s(),e.nrm(22,"div",11),e.j41(23,"div",6)(24,"span"),e.EFF(25),e.nI1(26,"translate"),e.k0s(),e.DNE(27,st,3,3,"span",12),e.k0s(),e.DNE(28,ut,19,21,"div",12),e.k0s()(),e.bVm()),2&a){const t=e.sdS(8),n=e.XpG();e.R7$(),e.Y8G("nzSpinning",n.popupLoading),e.R7$(3),e.JRh(e.bMT(5,12,"PGTTL_TAMPERED_EXPORT_ORDERS_RAISED_BY_RACSF")),e.R7$(3),e.Y8G("nzData",null==n.reportTamperingDetail?null:n.reportTamperingDetail.hawbs)("nzShowPagination",!1)("nzFrontPagination",!1),e.R7$(5),e.JRh(e.bMT(13,14,"LBL_EXPORT_ORDER_NUMBER")),e.R7$(3),e.JRh(e.bMT(16,16,"LBL_NO_OF_PCS")),e.R7$(3),e.Y8G("ngForOf",null==t?null:t.data),e.R7$(2),e.JRh(e.bMT(21,18,"LBL_REPORTED_TAMPERING_MSG_POPUP_WARNING_MSG")),e.R7$(5),e.JRh(e.bMT(26,20,"PGTTL_LOADING_UNIT_DETAIL")),e.R7$(2),e.Y8G("ngIf",n.currentCargoType!==n.CargoTypeEnum.BUK),e.R7$(),e.Y8G("ngIf",n.currentCargoType)}}let gt=(()=>{class a{constructor(t){this.store=t,this.messageId=null,this.isReportTamperingShown=!1,this.cancelReportedTamperingPopup=new e.bkB,this.popupLoading=!1,this.reportTamperingDetail=null,this.currentCargoType=null,this.COMMON_DATA_FORMAT=s.rhr,this.CargoTypeEnum=s.atx,this.destroyed$=new N.m(1)}ngOnInit(){this.initData()}initData(){this.store.dispatch((0,s.s1G)({id:this.messageId})),this.store.select(s.eWk).pipe((0,h.Q)(this.destroyed$),(0,V.p)(t=>!!t)).subscribe(t=>{const{data:n,lifecycle:o}=t;this.popupLoading=o?.loading,o?.success&&(this.currentCargoType=n?.cargo_consolidation_unit?.cargo_type,this.reportTamperingDetail={...n})})}closeReportedTamperingMessageInbox(){this.cancelReportedTamperingPopup.emit(!0)}ngOnDestroy(){this.store.dispatch((0,s.Fg$)()),this.destroyed$.next(!0),this.destroyed$.complete()}static{this.\u0275fac=function(n){return new(n||a)(e.rXU(g.il))}}static{this.\u0275cmp=e.VBU({type:a,selectors:[["hkaa-cargo-web-message-report-tampering-popup"]],inputs:{messageId:"messageId",isReportTamperingShown:"isReportTamperingShown"},outputs:{cancelReportedTamperingPopup:"cancelReportedTamperingPopup"},standalone:!1,decls:4,vars:4,consts:[["reportTamperingTitle",""],["tamperedExportOrderTable",""],["nzWrapClassName","highlight-title-modal",3,"nz
1VisibleChange","nzOnCancel","nzVisible","nzTitle","nzFooter","nzWidth"],[4,"nzModalContent"],[1,"modal-title-root"],[3,"nzSpinning"],[1,"reported-tampering__section__header"],[1,"mt-16"],["data-testid","message-tampered-export-order-table",1,"customized-table-v2",3,"nzData","nzShowPagination","nzFrontPagination"],[4,"ngFor","ngForOf"],[1,"reported-tampering__section__warning"],[1,"mt-32"],[4,"ngIf"],["nz-row","",1,"reported-tampering__data-row","mt-16",3,"nzGutter"],["nz-col","",3,"nzSpan"],["nz-col","",3,"nzSpan",4,"ngIf"],["nz-row","","class","reported-tampering__data-row mt-16",3,"nzGutter",4,"ngIf"],["class","reported-tampering__section__subheader mt-16",4,"ngIf"],[1,"mt-8"],[3,"cargoType","cargoInfoData"],[1,"mt-18"],[1,"reported-tampering__section__subheader","mt-16"]],template:function(n,o){if(1&n){const i=e.RV6();e.DNE(0,it,8,11,"ng-template",null,0,e.C5r),e.j41(2,"nz-modal",2),e.mxI("nzVisibleChange",function(p){return e.eBV(i),e.DH7(o.isReportTamperingShown,p)||(o.isReportTamperingShown=p),e.Njj(p)}),e.bIt("nzOnCancel",function(){return e.eBV(i),e.Njj(o.closeReportedTamperingMessageInbox())}),e.DNE(3,mt,29,22,"ng-container",3),e.k0s()}if(2&n){const i=e.sdS(1);e.R7$(2),e.R50("nzVisible",o.isReportTamperingShown),e.Y8G("nzTitle",i)("nzFooter",null)("nzWidth",940)}},dependencies:[d.Sq,d.bT,S.Uq,S.e,f.CP,f.SO,f._4,f.IL,f.aj,f.kt,R.F2,R.A9,ce.a,nt.A,L.D9,q.z,Q.B,at.G,ot.W,de.R],styles:[".modal-title-root[_ngcontent-%COMP%]{line-height:14px}.modal-title-root[_ngcontent-%COMP%]   h1[_ngcontent-%COMP%]{font-weight:700;font-size:32px;line-height:43.58px;margin-bottom:8px}.modal-title-root[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-weight:400;font-size:15px;line-height:14px}.reported-tampering__section__header[_ngcontent-%COMP%]{font-weight:700;font-size:18px;line-height:24px;color:#54a095}.reported-tampering__section__subheader[_ngcontent-%COMP%]{font-weight:600;font-size:15px;line-height:24px}.reported-tampering__section__warning[_ngcontent-%COMP%]{font-weight:400;font-size:15px;line-height:20px}.reported-tampering__data-row[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{font-weight:300;font-size:15px;line-height:24px;margin-bottom:0}.reported-tampering__data-row[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-weight:600;font-size:15px;line-height:24px}"]})}}return a})();var Tt=_(41951),ht=_(57188),bt=_(75700),ft=_(1637);const Rt=()=>({noHeader:!0}),Z=a=>({packageDetail:a});function Et(a,l){if(1&a){const t=e.RV6();e.j41(0,"button",14),e.bIt("click",function(){e.eBV(t);const o=e.XpG(3);return e.Njj(o.onOpenShareColoadToRACSFWrapper())}),e.j41(1,"span"),e.EFF(2),e.nI1(3,"translate"),e.k0s()()}if(2&a){const t=e.XpG(3);e.Y8G("disabled",t.isShareColoadToRACSFWrapperVisible)("nzSize","large"),e.R7$(2),e.JRh(e.bMT(3,3,"BTN_SAVE"))}}function Ct(a,l){if(1&a&&(e.j41(0,"div",9)(1,"div",10)(2,"div",11)(3,"h1"),e.EFF(4),e.nI1(5,"translate"),e.k0s()()(),e.j41(6,"div",12)(7,"div",13),e.nI1(8,"mapperFunction"),e.EFF(9),e.nI1(10,"translate"),e.nI1(11,"mockTranslate"),e.k0s(),e.j41(12,"span"),e.EFF(13),e.nI1(14,"translate"),e.nI1(15,"translate"),e.k0s(),e.DNE(16,Et,4,5,"button",6),e.k0s()()),2&a){const t=e.XpG().ngIf,n=e.XpG();e.R7$(2),e.Y8G("nzSpan",22),e.R7$(2),e.JRh(n.messageTitle||e.bMT(5,7,"LBL_NOT_APPLICABLE")),e.R7$(3),e.Y8G("ngClass",e.i5U(8,9,null==t?null:t.web_timeline_color,n.translateWebTimelineColor)),e.R7$(2),e.SpI(" ",e.i5U(11,14,null==t?null:t.web_timeline_status,"coload_request_status")," "),e.R7$(4),e.Lme("",e.bMT(14,17,"LBL_LAST_UPDATED"),": ",n.senderTime||e.bMT(15,19,"LBL_NOT_APPLICABLE"),""),e.R7$(3),e.Y8G("ngIf",null==t||null==t.ui_control?null:t.ui_control.display_save_button)}}function Lt(a,l){if(1&a){const t=e.RV6();e.j41(0,"button",14),e.bIt("click",function(){e.eBV(t);const o=e.XpG(2);return e.Njj(o.onOpenShareColoadToRACSFWrapper())}),e.j41(1,"span"),e.EFF(2),e.nI1(3,"translate"),e.k0s()()}if(2&a){const t=e.XpG(2);e.Y8G("disabled",t.isShareColoadToRACSFWrapperVisible)("nzSize","large"),e.R7$(2),e.JRh(e.bMT(3,3,"BTN_SAVE"))}}function Ot(a,l){if(1&a&&e.nrm(0,"hkaa-cargo-web-form-field",37),2&a){const t=e.XpG(4);e.Y8G("field",t.coloadExportOrderAssignRACSFFormConfig[null==t.ExportColoadAssignRACSFConfigEnum?null:t.ExportColoadAssignRACSFConfigEnum.rf_code])}}function It(a,l){if(1&a){const t=e.RV6();e.qex(0),e.j41(1,"div",34)(2,"span"),e.EFF(3),e.nI1(4,"translate"),e.k0s(),e.j41(5,"form",35),e.DNE(6,Ot,1,1,"hkaa-cargo-web-form-field",36),e.nrm(7,"hkaa-cargo-web-form-field",37),e.k0s(),e.j41(8,"div",38)(9,"button",39),e.bIt("click",function(){e.eBV(t);const o=e.XpG(3);return e.Njj(o.onCancelShareColoadToRACSFWrapper())}),e.EFF(10),e.nI1(11,"translate"),e.k0s(),e.j41(12,"button",40),e.bIt("click",function(){e.eBV(t);const o=e.XpG(3);return e.Njj(o.onSubmitShareColoadToRACSFWrapper())}),e.EFF(13),e.nI1(14,"translate"),e.k0s()()(),e.bVm()}if(2&a){const t=e.XpG(2).ngIf,n=e.XpG();e.R7$(3),e.JRh(e.bMT(4,8,"LBL_MSG_PROVIDE_RACSF_COMPANY_HANDLER_COLOAD_ORDER")),e.R7$(2),e.Y8G("formGroup",n.coloadExportOrderAssignRACSFFormGroup),e.R7$(),e.Y8G("ngIf",!(null!=t&&t.screening_self_declaration)),e.R7$(),e.Y8G("field",n.coloadExportOrderAssignRACSFFormConfig[null==n.ExportColoadAssignRACSFConfigEnum?null:n.ExportColoadAssignRACSFConfigEnum.hawb_number]),e.R7$(2),e.Y8G("nzSize","large"),e.R7$(),e.SpI(" ",e.bMT(11,10,"BTN_CANCEL")," "),e.R7$(2),e.Y8G("nzSize","large"),e.R7$(),e.SpI(" ",e.bMT(14,12,"BTN_SAVE")," ")}}function Pt(a,l){1&a&&(e.qex(0),e.EFF(1),e.nI1(2,"translate"),e.bVm()),2&a&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"LBL_PASS")," "))}function St(a,l){1&a&&(e.EFF(0),e.nI1(1,"translate")),2&a&&e.JRh(e.bMT(1,1,"LBL_REJECT"))}function At(a,l){1&a&&(e.j41(0,"span"),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&a&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"LBL_EXPORT_SCREENING_DECLARED_BY_RA")," "))}function Mt(a,l){if(1&a&&(e.j41(0,"span"),e.EFF(1),e.nI1(2,"dataTranslate"),e.nI1(3,"translate"),e.k0s()),2&a){const t=e.XpG(2).ngIf;e.R7$(),e.Lme(" ",e.brH(2,2,null==t?null:t.rf_screener_company_name_en,null==t?null:t.rf_screener_company_name_zh,!0)||e.bMT(3,6,"LBL_NOT_APPLICABLE")," (",null==t?null:t.rf_screener_company_code,") ")}}function kt(a,l){1&a&&e.eu8(0)}function yt(a,l){if(1&a&&(e.j41(0,"div",10)(1,"div",46),e.EFF(2),e.nI1(3,"translate"),e.nI1(4,"dataTranslate"),e.nI1(5,"translate"),e.nI1(6,"translate"),e.nI1(7,"date"),e.k0s()()),2&a){const t=e.XpG(3).ngIf,n=e.XpG();e.R7$(2),e.E5c(" ",e.bMT(3,3,"LBL_REVIEWED_BY"),"\xa0 ",e.brH(4,5,null==t||null==t.package_details[(null==t||null==t.package_details?null:t.package_details.length)-1]?null:t.package_details[(null==t||null==t.package_details?null:t.package_details.length)-1].reviewer_name_en,null==t||null==t.package_details[(null==t||null==t.package_details?null:t.package_details.length)-1]?null:t.package_details[(null==t||null==t.package_details?null:t.package_details.length)-1].reviewer_name_zh,!0)||e.bMT(5,9,"LBL_NOT_APPLICABLE"),"\u201a\xa0 ",e.i5U(7,13,null==t||null==t.package_details[(null==t||null==t.package_details?null:t.package_details.length)-1]?null:t.package_details[(null==t||null==t.package_details?null:t.package_details.length)-1].updated_at,n.COMMON_DATA_FORMAT.DATE_TIME_THREE||e.bMT(6,11,"LBL_NOT_APPLICABLE"))," ")}}function Ft(a,l){1&a&&e.eu8(0)}function zt(a,l){if(1&a&&(e.qex(0),e.j41(1,"nz-tabset",41)(2,"nz-tab",42),e.nI1(3,"translate"),e.nrm(4,"hkaa-cargo-web-table",43),e.DNE(
15,kt,1,0,"ng-container",44)(6,yt,8,16,"div",45),e.k0s(),e.j41(7,"nz-tab",42),e.nI1(8,"translate"),e.nrm(9,"hkaa-cargo-web-table",43),e.DNE(10,Ft,1,0,"ng-container",44),e.k0s()(),e.bVm()),2&a){e.XpG();const t=e.sdS(40),n=e.XpG().ngIf,o=e.XpG();e.R7$(2),e.Y8G("nzTitle",e.bMT(3,17,"LBL_TAB_REVIEWED")),e.R7$(2),e.Y8G("deletable",!1)("editable",!1)("summary",o.coloadExportOrderPackageTableSummary)("tableColumns",o.packageTypesTable)("tableValue",null==n?null:n.package_details[(null==n||null==n.package_details?null:n.package_details.length)-1].package_types),e.R7$(),e.Y8G("ngTemplateOutlet",t)("ngTemplateOutletContext",e.eq3(21,Z,null==n?null:n.package_details[(null==n||null==n.package_details?null:n.package_details.length)-1])),e.R7$(),e.Y8G("ngIf",(null==n?null:n.package_details)&&(null==n||null==n.package_details?null:n.package_details.length)>1),e.R7$(),e.Y8G("nzTitle",e.bMT(8,19,"LBL_TAB_ORIGINAL")),e.R7$(2),e.Y8G("deletable",!1)("editable",!1)("summary",o.coloadExportOrderPackageTableSummary)("tableColumns",o.packageTypesTable)("tableValue",null==n?null:n.package_details[0].package_types),e.R7$(),e.Y8G("ngTemplateOutlet",t)("ngTemplateOutletContext",e.eq3(23,Z,null==n?null:n.package_details[0]))}}function Dt(a,l){if(1&a&&e.nrm(0,"hkaa-cargo-web-table",43),2&a){const t=e.XpG(3).ngIf,n=e.XpG();e.Y8G("deletable",!1)("editable",!1)("summary",n.coloadExportOrderPackageTableSummary)("tableColumns",n.packageTypesTable)("tableValue",null==t?null:t.package_details[0].package_types)}}function vt(a,l){1&a&&e.eu8(0)}function Nt(a,l){if(1&a&&e.DNE(0,Dt,1,5,"hkaa-cargo-web-table",47)(1,vt,1,0,"ng-container",44),2&a){e.XpG();const t=e.sdS(40),n=e.XpG().ngIf;e.Y8G("ngIf",(null==n?null:n.package_details)&&1===(null==n||null==n.package_details?null:n.package_details.length)),e.R7$(),e.Y8G("ngTemplateOutlet",t)("ngTemplateOutletContext",e.eq3(3,Z,null==n?null:n.package_details[(null==n||null==n.package_details?null:n.package_details.length)-1]))}}function Bt(a,l){if(1&a&&(e.j41(0,"div",48)(1,"div",49)(2,"p"),e.EFF(3),e.nI1(4,"translate"),e.k0s(),e.j41(5,"span"),e.EFF(6),e.nI1(7,"translate"),e.k0s()(),e.j41(8,"div",49)(9,"p"),e.EFF(10),e.nI1(11,"translate"),e.k0s(),e.j41(12,"span"),e.EFF(13),e.nI1(14,"translate"),e.k0s()()()),2&a){const t=l.packageDetail;e.Y8G("nzGutter",20),e.R7$(),e.Y8G("nzSpan",8),e.R7$(2),e.SpI("",e.bMT(4,7,"LBL_TOTAL_WEIGHT_KG"),":"),e.R7$(3),e.JRh(null!==(null==t?null:t.total_weight)?null==t?null:t.total_weight:e.bMT(7,9,"LBL_NOT_APPLICABLE")),e.R7$(2),e.Y8G("nzSpan",8),e.R7$(2),e.SpI("",e.bMT(11,11,"LBL_TOTAL_VOLUME_MC"),":"),e.R7$(3),e.JRh(null!==(null==t?null:t.total_volume)?null==t?null:t.total_volume:e.bMT(14,13,"LBL_NOT_APPLICABLE"))}}function xt(a,l){1&a&&(e.j41(0,"div",50)(1,"div",51),e.nrm(2,"i",52),e.EFF(3),e.nI1(4,"translate"),e.k0s()()),2&a&&(e.Y8G("nzSpan",10),e.R7$(3),e.SpI("\xa0",e.bMT(4,2,"LBL_EXPORT_EXPORT_ORDER_SPECIAL_TEMPERATURE"),""))}function $t(a,l){1&a&&(e.j41(0,"div",50)(1,"div",51),e.nrm(2,"i",52),e.EFF(3),e.nI1(4,"translate"),e.k0s()()),2&a&&(e.Y8G("nzSpan",10),e.R7$(3),e.SpI("\xa0",e.bMT(4,2,"LBL_EXPORT_EXPORT_ORDER_SPECIAL_STRATEGIC"),""))}function Gt(a,l){1&a&&(e.j41(0,"div",50)(1,"div",51),e.nrm(2,"i",52),e.EFF(3),e.nI1(4,"translate"),e.k0s()()),2&a&&(e.Y8G("nzSpan",10),e.R7$(3),e.SpI("\xa0",e.bMT(4,2,"LBL_EXPORT_EXPORT_ORDER_SPECIAL_POWDER"),""))}function Vt(a,l){1&a&&(e.j41(0,"div",50)(1,"div",51),e.nrm(2,"i",52),e.EFF(3),e.nI1(4,"translate"),e.k0s()()),2&a&&(e.Y8G("nzSpan",10),e.R7$(3),e.SpI("\xa0",e.bMT(4,2,"LBL_EXPORT_EXPORT_ORDER_SPECIAL_LIQUID"),""))}function jt(a,l){if(1&a&&(e.j41(0,"div",53),e.nrm(1,"i",54),e.EFF(2),e.nI1(3,"translate"),e.k0s()),2&a){const t=e.XpG(2).ngIf;e.Y8G("ngClass",null!=t&&null!=t.shipment_details&&t.shipment_details.lithium_battery_indicator?"mb-8":"mb-18"),e.R7$(2),e.SpI(" ",e.bMT(3,2,"LBL_MSG_DANGEROUS_GOOD")," ")}}function wt(a,l){1&a&&(e.j41(0,"div",55),e.nrm(1,"i",54),e.EFF(2),e.nI1(3,"translate"),e.k0s()),2&a&&(e.R7$(2),e.SpI(" ",e.bMT(3,1,"LBL_MSG_LITHIUM_BATTERY")," "))}function Ut(a,l){if(1&a&&(e.j41(0,"div",32),e.nrm(1,"hkaa-cargo-web-table",56),e.k0s()),2&a){const t=e.XpG(2).ngIf,n=e.XpG();e.R7$(),e.Y8G("deletable",!1)("editable",!1)("tableColumns",n.handleCodesTable)("tableValue",null==t||null==t.shipment_details?null:t.shipment_details.handling_codes)}}function Yt(a,l){1&a&&(e.j41(0,"span"),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&a&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"LBL_CARRIER_CODE_UNKNOWN")," "))}function Xt(a,l){if(1&a&&(e.j41(0,"span"),e.EFF(1),e.nI1(2,"mockTranslate"),e.nI1(3,"translate"),e.k0s()),2&a){const t=e.XpG(2).ngIf;e.R7$(),e.SpI(" ",e.i5U(2,1,null==t?null:t.carrier_code,"carrier_code")||e.bMT(3,4,"LBL_NOT_APPLICABLE")," ")}}function Ht(a,l){1&a&&e.nrm(0,"i",52)}function Wt(a,l){if(1&a&&(e.qex(0),e.j41(1,"div",10)(2,"div",11),e.DNE(3,Ht,1,0,"i",57),e.k0s(),e.j41(4,"div",11)(5,"span",58),e.EFF(6),e.nI1(7,"translate"),e.k0s()()(),e.j41(8,"div",59)(9,"div",11)(10,"div",24),e.EFF(11),e.nI1(12,"translate"),e.k0s(),e.j41(13,"div",25),e.EFF(14),e.nI1(15,"mapCompanyProfileNameDisplayPipe"),e.nI1(16,"stringDisplay"),e.k0s()()(),e.bVm()),2&a){const t=e.XpG(2).ngIf,n=e.XpG();e.R7$(2),e.Y8G("nzSpan",1),e.R7$(),e.Y8G("ngIf",!(null==t||!t.screening_self_declaration)),e.R7$(),e.Y8G("nzSpan",23),e.R7$(2),e.JRh(e.bMT(7,7,"LBL_EXPORT_SCREENING_SELF_DECLARATION_DISCLAIMER")),e.R7$(3),e.Y8G("nzSpan",8),e.R7$(2),e.SpI("",e.bMT(12,9,"LBL_EXPORT_SCREENING_SELF_DECLARATION_RF_CODE"),":"),e.R7$(3),e.JRh(e.bMT(16,15,e.brH(15,11,null==t?null:t.screening_self_declaration_rf_code,n.registeredRfCompanyList,!0)))}}function Jt(a,l){1&a&&(e.j41(0,"div",60)(1,"span"),e.EFF(2),e.nI1(3,"translate"),e.k0s()()),2&a&&(e.R7$(2),e.JRh(e.bMT(3,1,"LBL_NOT_APPLICABLE")))}function Kt(a,l){if(1&a&&(e.qex(0),e.j41(1,"nz-spin",15),e.DNE(2,It,15,14,"
1ng-container",5),e.j41(3,"div",16)(4,"div")(5,"span",17),e.EFF(6),e.nI1(7,"translate"),e.k0s(),e.j41(8,"div",18)(9,"div",11)(10,"p"),e.EFF(11),e.nI1(12,"translate"),e.k0s(),e.j41(13,"span"),e.EFF(14),e.nI1(15,"dataTranslate"),e.nI1(16,"translate"),e.k0s()()(),e.j41(17,"div",19)(18,"div",11)(19,"p"),e.EFF(20),e.nI1(21,"translate"),e.k0s(),e.j41(22,"span"),e.DNE(23,Pt,3,3,"ng-container",20)(24,St,2,3,"ng-template",null,1,e.C5r),e.k0s()(),e.j41(26,"div",11)(27,"p"),e.EFF(28),e.nI1(29,"translate"),e.k0s(),e.DNE(30,At,3,3,"span",5)(31,Mt,4,8,"span",5),e.k0s()()(),e.j41(32,"div",21)(33,"span",22),e.EFF(34),e.nI1(35,"translate"),e.k0s(),e.DNE(36,zt,11,25,"ng-container",20)(37,Nt,2,5,"ng-template",null,2,e.C5r)(39,Bt,15,15,"ng-template",null,3,e.C5r),e.k0s(),e.j41(41,"div")(42,"div",23)(43,"div",11)(44,"div",24),e.EFF(45),e.nI1(46,"translate"),e.k0s(),e.j41(47,"div",25),e.EFF(48),e.nI1(49,"translate"),e.k0s()()(),e.j41(50,"div",23)(51,"div",11)(52,"p"),e.EFF(53),e.nI1(54,"translate"),e.k0s(),e.nrm(55,"hkaa-cargo-web-table",26),e.k0s()(),e.j41(56,"p"),e.EFF(57),e.nI1(58,"translate"),e.k0s(),e.j41(59,"div",23),e.DNE(60,xt,5,4,"div",27)(61,$t,5,4,"div",27)(62,Gt,5,4,"div",27)(63,Vt,5,4,"div",27),e.k0s(),e.DNE(64,jt,4,4,"div",28)(65,wt,4,3,"div",29),e.k0s(),e.DNE(66,Ut,2,4,"div",30),e.j41(67,"div",21)(68,"span",17),e.EFF(69),e.nI1(70,"translate"),e.k0s(),e.j41(71,"div",10)(72,"div",31)(73,"p"),e.EFF(74),e.nI1(75,"translate"),e.k0s(),e.DNE(76,Yt,3,3,"span",5)(77,Xt,4,6,"span",5),e.k0s()()(),e.j41(78,"div",32)(79,"span",17),e.EFF(80),e.nI1(81,"translate"),e.k0s(),e.j41(82,"div",10)(83,"div",31)(84,"p"),e.EFF(85),e.nI1(86,"translate"),e.k0s(),e.j41(87,"span"),e.EFF(88),e.nI1(89,"mockTranslate"),e.nI1(90,"translate"),e.k0s()(),e.j41(91,"div",31)(92,"p"),e.EFF(93),e.nI1(94,"translate"),e.k0s(),e.j41(95,"span"),e.EFF(96),e.nI1(97,"mockTranslate"),e.nI1(98,"translate"),e.k0s()()(),e.j41(99,"div",10)(100,"div",33)(101,"p"),e.EFF(102),e.nI1(103,"translate"),e.k0s(),e.j41(104,"span"),e.EFF(105),e.nI1(106,"mockTranslate"),e.nI1(107,"translate"),e.k0s()(),e.j41(108,"div",33)(109,"p"),e.EFF(110),e.nI1(111,"translate"),e.k0s(),e.j41(112,"span"),e.EFF(113),e.nI1(114,"mockTranslate"),e.nI1(115,"translate"),e.k0s()()()(),e.j41(116,"div",21)(117,"span",17),e.EFF(118),e.nI1(119,"translate"),e.k0s(),e.DNE(120,Wt,17,17,"ng-container",20)(121,Jt,4,3,"ng-template",null,4,e.C5r),e.k0s()()(),e.bVm()),2&a){const t=e.sdS(25),n=e.sdS(38),o=e.sdS(122),i=e.XpG().ngIf,r=e.XpG();e.R7$(),e.Y8G("nzSpinning",r.popupLoading||r.defaultPartnerLoading),e.R7$(),e.Y8G("ngIf",r.isShareColoadToRACSFWrapperVisible),e.R7$(4),e.JRh(e.bMT(7,57,"PGTTL_EXPORT_ORDER_DETAILS")),e.R7$(2),e.Y8G("nzGutter",16),e.R7$(),e.Y8G("nzSpan",8),e.R7$(2),e.SpI("",e.bMT(12,59,"LBL_COLOAD_EXPORT_ORDER_SENDER"),":"),e.R7$(3),e.Lme(" ",e.brH(15,61,null==i?null:i.coload_sender_ra_company_name_en,null==i?null:i.coload_sender_ra_company_name_zh,!0)||e.bMT(16,65,"LBL_NOT_APPLICABLE")," (",null==i?null:i.coload_sender_ra_code,") "),e.R7$(3),e.Y8G("nzGutter",16),e.R7$(),e.Y8G("nzSpan",8),e.R7$(2),e.SpI("",e.bMT(21,67,"LBL_SCREENING_RESULT"),":"),e.R7$(3),e.Y8G("ngIf",!0===(null==i?null:i.screening_pass))("ngIfElse",t),e.R7$(3),e.Y8G("nzSpan",8),e.R7$(2),e.SpI("",e.bMT(29,69,"LBL_SCREENED_BY"),":"),e.R7$(2),e.Y8G("ngIf",!(null==i||!i.screening_self_declaration)),e.R7$(),e.Y8G("ngIf",!(null!=i&&i.screening_self_declaration)),e.R7$(3),e.JRh(e.bMT(35,71,"LBL_PACKAGE_DIMENSION")),e.R7$(2),e.Y8G("ngIf",(null==i||null==i.package_details?null:i.package_details.length)>1)("ngIfElse",n),e.R7$(6),e.Y8G("nzGutter",16),e.R7$(),e.Y8G("nzSpan",8),e.R7$(2),e.SpI("",e.bMT(46,73,"LBL_EXPORT_IS_ECOMM_ITEM"),":"),e.R7$(3),e.JRh(e.bMT(49,75,!0===(null==i||null==i.shipment_details?null:i.shipment_details.ecommerce_item)?"LBL_YES":"LBL_NO")),e.R7$(2),e.Y8G("nzGutter",16),e.R7$(),e.Y8G("nzSpan",24),e.R7$(2),e.SpI("",e.bMT(54,77,"LBL_DESCRIPTION_OF_CONTENT"),":"),e.R7$(2),e.Y8G("deletable",!1)("editable",!1)("tableColumns",r.descriptionOfContentTable)("tableValue",r.descriptionOfContentItems)("tableConfig",e.lJ4(117,Rt)),e.R7$(2),e.SpI("",e.bMT(58,79,"LBL_SPECIAL_COMMODITY_OPTION"),":"),e.R7$(2),e.Y8G("nzGutter",16),e.R7$(),e.Y8G("ngIf",null==i||null==i.shipment_details?null:i.shipment_details.sp_temperature),e.R7$(),e.Y8G("ngIf",null==i||null==i.shipment_details?null:i.shipment_details.sp_strategic),e.R7$(),e.Y8G("ngIf",null==i||null==i.shipment_details?null:i.shipment_details.sp_powder),e.R7$(),e.Y8G("ngIf",null==i||null==i.shipment_details?null:i.shipment_details.sp_liquid),e.R7$(),e.Y8G("ngIf",null==i||null==i.shipment_details?null:i.shipment_details.dangerous_goods_indicator),e.R7$(),e.Y8G("ngIf",null==i||null==i.shipment_details?null:i.shipment_details.lithium_battery_indicator),e.R7$(),e.Y8G("ngIf",null==i||null==i.shipment_details||null==i.shipment_details.handling_codes?null:i.shipment_details.handling_codes.length),e.R7$(3),e.JRh(e.bMT(70,81,"LBL_EXPORT_ORDER_FLIGHT_CARRIER_CODE")),e.R7$(5),e.SpI("",e.bMT(75,83,"LBL_CARRIER_CODE"),":"),e.R7$(2),e.Y8G("ngIf","UNKNOWN"===(null==i?null:i.carrier_code)),e.R7$(),e.Y8G("ngIf",null==(null==i?null:i.carrier_code)||"UNKNOWN"!==(null==i?null:i.carrier_code)),e.R7$(3),e.JRh(e.bMT(81,85,"LBL_EXPORT_ORDER_ORIGIN_AND_DESTINATION")),e.R7$(5),e.SpI("",e.bMT(86,87,"LBL_EXPORT_ORDER_ORIGIN_COUNTRY"),":"),e.R7$(3),e.SpI(" ",e.i5U(89,89,null==i||null==i.shipment_details?null:i.shipment_details.origin_country_code,"countryCode")||e.bMT(90,92,"LBL_NOT_APPLICABLE")," "),e.R7$(5),e.SpI("",e.bMT(94,94,"LBL_EXPORT_ORDER_ORIGIN_PROVINCE_SLASH_STATE"),":"),e.R7$(3),e.SpI(" ",e.i5U(97,96,null==i||null==i.shipment_details?null:i.shipment_details.origin_province_code,"CN"===(null==i||null==i.shipment_details?null:i.shipment_details.origin_country_code)?"cnProvinceCode":"usStateCode")||e.bMT(98,99,"LBL_NOT_APPLICABLE")," "),e.R7$(6),e.SpI("",e.bMT(103,101,"LBL_FINAL_DESTINATION"),":"),e.R7$(3),e.SpI(" ",e.i5U(106,103,null==i||null==i.shipment_details?null:i.shipment_details.shipment_destination,"countryCode")||e.bMT(107,106,"LBL_NOT_APPLICABLE")," "),e.R7$(5),e.SpI("",e.bMT(111,108,"LBL_FINAL_DESTINATION_PROVINCE_OR_STATE"),":"),e.R7$(3),e.SpI(" ",e.i5U(114,110,null==i||null==i.shipment_details?null:i.shipment_details.shipment_destination_area,"CN"===(null==i||null==i.shipment_details?null:i.shipment_details.shipment_destination)?"cnProvinceCode":"usStateCode")||e.bMT(115,113,"LBL_NOT_APPLICABLE")," "),e.R7$(5),e.JRh(e.bMT(119,115,"LBL_EXPORT_SCREENING_SELF_DECLARATION_SECTION")),e.R7$(2),e.Y8G("ngIf",null==i?null:i.screening_self_declaration)("ngIfElse",o)}}function qt(a,l){if(1&a){const t=e.RV6();e.qex(0),e.DNE(1,Ct,17,21,"ng-template",null,0,e.C5r),e.j41(3,"div")(4,"span"),e.EFF(5),e.nI1(6,"translate"),e.nI1(7,"translate"),e.k0s(),e.DNE(8,Lt,4,5,"button",6),e.k0s(),e.j41(9,"nz-modal",7),e.bIt("nzOnCancel",function(){e.eBV(t);const o=e.XpG();
1return e.Njj(o.onCancelColoadExportOrderPopup())}),e.mxI("nzVisibleChange",function(o){e.eBV(t);const i=e.XpG();return e.DH7(i.isColoadExportOrderPopupVisible,o)||(i.isColoadExportOrderPopupVisible=o),e.Njj(o)}),e.DNE(10,Kt,123,118,"ng-container",8),e.k0s(),e.bVm()}if(2&a){const t=l.ngIf,n=e.sdS(2),o=e.XpG();e.R7$(5),e.Lme("",e.bMT(6,7,"LBL_LAST_UPDATED"),": ",o.senderTime||e.bMT(7,9,"LBL_NOT_APPLICABLE"),""),e.R7$(3),e.Y8G("ngIf",null==t||null==t.ui_control?null:t.ui_control.display_save_button),e.R7$(),e.R50("nzVisible",o.isColoadExportOrderPopupVisible),e.Y8G("nzFooter",null)("nzTitle",n)("nzWidth",935)}}let Qt=(()=>{class a{constructor(t,n,o,i,r,p,E,b,B){this.store=t,this.router=n,this.formService=o,this.translateService=i,this.dataTranslatePipe=r,this.dataStore=p,this.customHawbNumberValidator=E,this.mapFromCompanyListToSelectOptionPipe=b,this.dataTranslateService=B,this.coloadId=null,this.isColoadExportOrderPopupVisible=!1,this.cancelColoadExportOrderPopup=new e.bkB,this.registeredRfCompanyList=[],this.popupLoading=!1,this.defaultPartnerLoading=!1,this.displayData=null,this.descriptionOfContentItems=[],this.rfPartner=null,this.packageTypesTable=(0,m.RQ)(Y.package_types.columns),this.handleCodesTable=(0,m.RQ)(Y.handling_codes.columns),this.descriptionOfContentTable=(0,m.RQ)(Y.description_of_content_list.columns),this.coloadExportOrderAssignRACSFFormConfig=le,this.COMMON_DATA_FORMAT=s.rhr,this.ExportColoadAssignRACSFConfigEnum=C,this.exportHawbDetailPageBaseUrl="ra/pages/export/hawb-v2",this.isShareColoadToRACSFWrapperVisible=!1,this.destroyed$=new N.m(1),this.translateWebTimelineColor=x=>s.e5w[x],this.coloadExportOrderPackageTableSummary=x=>{const ne=this.translateService.instant("LBL_TOTAL_PCS"),ae=this.translateService.instant("LBL_PCS_LOWERCASE");return`${ne}: <strong>`+x?.reduce((U,y)=>y?.pieces?U+parseInt(y?.pieces,10):U,0)+`${ae}</strong>`}}ngOnInit(){this.httpResponse$=this.dataStore.httpResponse$,this.displayData$=this.dataStore.displayData$,this.coloadExportOrderAssignRACSFFormGroup=this.formService.toFormGroupFromMap(le),this.descriptionOfContentTable.find(t=>"item"===t.field).options=this.dataTranslateService.getDropDownOptions("description_of_content"),this.displayData$.pipe((0,h.Q)(this.destroyed$)).subscribe(t=>{if(t){this.displayData=t?.coloadRequestDetails,this.descriptionOfContentItems=t?.coloadRequestDetails?.shipment_details?.description_of_content_list?.map(o=>({item:o}))||[];const n=this.coloadExportOrderAssignRACSFFormGroup?.get(C?.rf_code);this.displayData?.screening_self_declaration?(n?.clearValidators(),n?.patchValue(this.displayData?.screening_self_declaration_rf_code)):(this.rfPartner?n?.patchValue(this.rfPartner?.company_code):n?.reset(),n?.setValidators([c.k0.required]))}}),this.store.select(s.AXB).pipe((0,h.Q)(this.destroyed$)).subscribe(t=>{t&&(this.coloadExportOrderAssignRACSFFormConfig[C?.rf_code].options=this.mapFromCompanyListToSelectOptionPipe?.transform(t))}),this.store.dispatch(s.Kqd.getAvailablePartnerCompanyList__Start({companyType:s.lmr.RF})),this.store.select(s.Jgw).pipe((0,h.Q)(this.destroyed$)).subscribe(t=>{t&&(this.registeredRfCompanyList=[...t])}),this.store.dispatch(s.ch7.getCadRegisteredCompanyList__Start({companyType:s.lmr.RF})),this.httpResponse$.pipe((0,h.Q)(this.destroyed$)).subscribe(t=>{if(t?.messageResponse){const n=t.messageResponse.body;this.isShareColoadToRACSFWrapperVisible=!1,this.coloadExportOrderAssignRACSFFormGroup.reset(),this.router.navigateByUrl(`${this.exportHawbDetailPageBaseUrl}/${n?.received_hawb_id}/overview`)}this.initData()}),this.getDefaultPartner(),this.initData()}initData(){this.dataStore.getColoadHawbRequest(this.coloadId)}getDefaultPartner(){(0,_e.zV)([this.store.select(s.Dc5),this.store.select(s.Mhp)]).pipe((0,h.Q)(this.destroyed$)).subscribe(([t,n])=>{if(this.defaultPartnerLoading=t?.defaultPartnerLoading,this.rfPartner=n?.rfPartner,t&&t?.defaultPartnerLoaded&&n){const o=this.coloadExportOrderAssignRACSFFormGroup?.get(C?.rf_code);!o?.value&&!this.displayData?.screening_self_declaration&&o?.patchValue(this.rfPartner?.company_code)}}),this.store.dispatch(s.Kqd.getCurrentDefaultPartnerList__Start())}
1onCancelColoadExportOrderPopup(){this.cancelColoadExportOrderPopup.emit(!0),this.coloadExportOrderAssignRACSFFormGroup?.get(C?.rf_code)?.reset()}onOpenShareColoadToRACSFWrapper(){this.isShareColoadToRACSFWrapperVisible=!0,this.coloadExportOrderAssignRACSFFormGroup.get("hawb_number").setAsyncValidators(this.customHawbNumberValidator.existingHawbNumberValidator())}onCancelShareColoadToRACSFWrapper(){this.isShareColoadToRACSFWrapperVisible=!1,this.coloadExportOrderAssignRACSFFormGroup.reset()}onSubmitShareColoadToRACSFWrapper(){this.coloadExportOrderAssignRACSFFormGroup.markAllAsTouched(),this.coloadExportOrderAssignRACSFFormGroup.markAsDirty(),this.coloadExportOrderAssignRACSFFormGroup.updateValueAndValidity(),this.coloadExportOrderAssignRACSFFormGroup.valid&&(this.dataStore.updateFormValue({formValue:{message_id:this.coloadId,rf_code:this.coloadExportOrderAssignRACSFFormGroup.value.rf_code,hawb_number:this.coloadExportOrderAssignRACSFFormGroup.value.hawb_number}}),this.dataStore.updateFormHttpRequest(),this.dataStore.setSubmitFormLoad({submitFormLoad:!0}))}ngOnDestroy(){this.destroyed$.next(!0),this.destroyed$.complete()}static{this.\u0275fac=function(n){return new(n||a)(e.rXU(g.il),e.rXU(u.Ix),e.rXU(s.ux2),e.rXU(L.c$),e.rXU(m.Bq),e.rXU(H),e.rXU(m.hS),e.rXU(m.Ih),e.rXU(s.ABT))}}static{this.\u0275cmp=e.VBU({type:a,selectors:[["hkaa-cargo-web-message-coload-popup"]],inputs:{coloadId:"coloadId",messageTitle:"messageTitle",senderTime:"senderTime",isColoadExportOrderPopupVisible:"isColoadExportOrderPopupVisible"},outputs:{cancelColoadExportOrderPopup:"cancelColoadExportOrderPopup"},standalone:!1,features:[e.Jv_([m.hS])],decls:2,vars:3,consts:[["coloadExportOrderTitle",""],["screeningRejectResult",""],["noUpdate",""],["weightAndVolumeTemplate",""],["screeningSelfDeclarationNADisplay",""],[4,"ngIf"],["class","modal-title-root__button","nz-button","","nzType","primary",3,"disabled","nzSize","click",4,"ngIf"],["nzWrapClassName","highlight-title-modal--no-p
1adding",3,"nzOnCancel","nzVisibleChange","nzVisible","nzFooter","nzTitle","nzWidth"],[4,"nzModalContent"],[1,"modal-title-root"],["nz-row",""],["nz-col","",3,"nzSpan"],[1,"mt-8"],[1,"event-code","message__coload-export-order__event-code",3,"ngClass"],["nz-button","","nzType","primary",1,"modal-title-root__button",3,"click","disabled","nzSize"],[1,"message__coload-export-order__font",3,"nzSpinning"],[1,"message__coload-export-order__content"],[1,"message__coload-export-order__header"],["nz-row","",1,"mt-24","mb-16",3,"nzGutter"],["nz-row","",3,"nzGutter"],[4,"ngIf","ngIfElse"],[1,"mt-32"],[1,"message__coload-export-order__subheader"],["nz-row","",1,"mb-16",3,"nzGutter"],[1,"label","key__light"],[1,"detail__bold"],[3,"deletable","editable","tableColumns","tableValue","tableConfig"],["class","mt-18","nz-col","",3,"nzSpan",4,"ngIf"],["class","dangerous-good-warning","nz-col","","nzSpan","24",3,"ngClass",4,"ngIf"],["class","dangerous-good-warning mb-18","nz-col","","nzSpan","24",4,"ngIf"],["class","mt-16",4,"ngIf"],["nz-col","","nzSpan","8",1,"n
1ormal-field-block","mb-16"],[1,"mt-16"],["nz-col","","nzSpan","8",1,"normal-field-block"],[1,"assign-coload-wrapper"],[1,"mt-16",3,"formGroup"],["class","mb-0",3,"field",4,"ngIf"],[1,"mb-0",3,"field"],[1,"message__coload-export-order__footer"],["nz-button","","nzType","default",3,"click","nzSize"],["nz-button","","nzType","primary",1,"ml-20",3,"click","nzSize"],["nzSize","small",1,"switch-tab-table--border"],[3,"nzTitle"],[3,"deletable","editable","summary","tableColumns","tableValue"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["nz-row","",4,"ngIf"],["nz-col","","nzSpan","16",1,"mb-16","text__normal","text__12px"],[3,"deletable","editable","summary","tableColumns","tableValue",4,"ngIf"],["nz-row","",1,"mt-18",3,"nzGutter"],["nz-col","",1,"normal-field-block","mb-16",3,"nzSpan"],["nz-col","",1,"mt-18",3,"nzSpan"],[1,"label","detail__bold"],["nz-icon","","nzType","check","nzTheme","outline"],["nz-col","","nzSpan","24",1,"dangerous-good-warning",3,"ngClass"],["nz-icon","","nzTheme","outline","nzType","warning"],["nz-col","","nzSpan","24",1,"dangerous-good-warning","mb-18"],[3,"deletable","editable","tableColumns","tableValue"],["nz-icon","","nzType","check","nzTheme","outline",4,"ngIf"],[1,"break-word"],["nz-row","",1,"mt-16"],["nz-row","",1,"detail__bold"]],template:function(n,o){if(1&n&&(e.DNE(0,qt,11,11,"ng-container",5),e.nI1(1,"async")),2&n){let i;e.Y8G("ngIf",null==(i=e.bMT(1,1,o.displayData$))?null:i.coloadRequestDetails)}},dependencies:[d.YU,d.bT,d.T3,c.qT,c.cb,c.j4,Tt.Dn,W.aO,J.c,K.p,S.Uq,S.e,w.JZ,w.rE,R.F2,R.A9,ce.a,pe.O,ht.z,d.Jj,d.vh,L.D9,q.z,Q.B,bt.O,G.O,ft.K],styles:[".dangerous-good-warning[_ngcontent-%COMP%]{color:#dc6859}.icon-tick[_ngcontent-%COMP%]:before{content:url(tick.3a1f5778a9b84356.svg)}.modal-title-root[_ngcontent-%COMP%]{line-height:14px}.modal-title-root[_ngcontent-%COMP%]   h1[_ngcontent-%COMP%]{font-weight:700;font-size:32px;line-height:43.58px;margin-bottom:8px}.modal-title-root[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-weight:400;font-size:12px;line-height:14px}.modal-title-root__button[_ngcontent-%COMP%]{float:right;top:-40px}.modal-title-root__button[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{font-size:15px;font-weight:700}.message__coload-export-order__header[_ngcontent-%COMP%]{font-weight:700;font-size:18px;line-height:24px}.message__coload-export-order__subheader[_ngcontent-%COMP%]{font-weight:600;font-size:15px;line-height:24px}.message__coload-export-order__content[_ngcontent-%COMP%]{padding:32px 80px}.message__coload-export-order__footer[_ngcontent-%COMP%]{float:right}.message__coload-export-order__footer[_ngcontent-%COMP%] > button[_ngcontent-%COMP%]{float:left}.message__coload-export-order__font[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{font-weight:300;font-size:15px;line-height:24px;margin-bottom:0}.message__coload-export-order__font[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-weight:600;font-size:15px;line-height:24px;margin-bottom:16px}.message__coload-export-order__event-code[_ngcontent-%COMP%]{padding:10px}.assign-coload-wrapper[_ngcontent-%COMP%]{background:#e5eaf2;padding:32px 80px 64px}.switch-tab-table--border[_ngcontent-%COMP%]     .ant-tabs-nav .ant-tabs-nav-wrap, .switch-tab-table--border[_ngcontent-%COMP%]   .ant-tabs[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > .ant-tabs-nav[_ngcontent-%COMP%]   .ant-tabs-nav-wrap[_ngcontent-%COMP%]{border:1px #E5EAF2 solid}.ant-tabs-small[_ngcontent-%COMP%]  .table-mb{margin-top:0}"]})}}return a})();var Zt=_(27733),en=_(19448);function tn(a,l){if(1&a&&(e.j41(0,"div",3)(1,"div",4)(2,"div",5)(3,"h1"),e.EFF(4),e.nI1(5,"translate"),e.k0s()()(),e.j41(6,"div",6)(7,"div",5)(8,"p",7),e.EFF(9),e.nI1(10,"translate"),e.k0s()(),e.nrm(11,"nz-divider",8),e.j41(12,"div",5)(13,"p",7),e.EFF(14),e.nI1(15,"translate"),e.k0s()()()()),2&a){const t=e.XpG();e.R7$(4),e.JRh(e.bMT(5,5,"PGTTL_TRADE_DECLARATION_NOTICE")),e.R7$(5),e.Lme("",e.bMT(10,7,"LBL_TRADE_ISSUING_DATE"),":\xa0",t.utcToHKT(null==t.noticeData?null:t.noticeData.issued_date,"DD/MM/YYYY"),""),e.R7$(5),e.Lme("",e.bMT(15,9,"LBL_TRADE_NOTICE_REF_NO"),":\xa0",null==t.noticeData?null:t.noticeData.notice_reference_no,"")}}function nn(a,l){if(1&a){const t=e.RV6();e.qex(0),e.j41(1,"div")(2,"div",9)(3,"div",10)(4,"p"),e.EFF(5),e.nI1(6,"translate"),e.k0s(),e.j41(7,"span"),e.EFF(8),e.k0s()(),e.j41(9,"div",10)(10,"p"),e.EFF(11),e.nI1(12,"translate"),e.k0s(),e.j41(13,"span"),e.EFF(14),e.k0s()()(),e.j41(15,"div",9)(16,"div",10)(17,"p"),e.EFF(18),e.nI1(19,"translate"),e.k0s(),e.j41(20,"span"),e.EFF(21),e.k0s()(),e.j41(22,"div",10)(23,"p"),e.EFF(24),e.nI1(25,"translate"),e.k0s(),e.j41(26,"span"),e.EFF(27),e.k0s()()(),e.j41(28,"div",9)(29,"div",10)(30,"p"),e.EFF(31),e.nI1(32,"translate"),e.k0s(),e.j41(33,"span"),e.EFF(34),e.k0s()()(),e.j41(35,"div",9)(36,"div",11)(37,"p",12),e.EFF(38),e.nI1(39,"translate"),e.k0s()()(),e.j41(40,"div",13)(41,"div",14)(42,"button",15),e.bIt("click",function(){e.eBV(t);const o=e.XpG();return e.Njj(o.onCreateDeclarationFromNotice(null==o.noticeData?null:o.noticeData.id))}),e.EFF(43),e.nI1(44,"translate"),e.k0s(),e.j41(45,"button",16),e.bIt("click",function(){e.eBV(t);const o=e.XpG();return e.Njj(o.viewPdf(null==o.noticeData?null:o.noticeData.id,null==o.noticeData?null:o.noticeData.notice_reference_no))}),e.EFF(46),e.nI1(47,"translate"),e.k0s()()()(),e.bVm()}if(2&a){const t=e.XpG();e.R7$(3),e.Y8G("nzSpan",12),e.R7$(2),e.SpI("",e.bMT(6,18,"LBL_TRADE_MAWB_NUMBER"),":"),e.R7$(3),e.JRh(t.translatePopupMawb(null==t.noticeData?null:t.noticeData.mawb)),e.R7$(),e.Y8G("nzSpan",12),e.R7$(2),e.SpI("",e.bMT(12,20,"LBL_TRADE_SHIPMENT_DATE"),":"),e.R7$(3),e.JRh(t.utcToHKT(null==t.noticeData?null:t.noticeData.shipment_date,"DD/MM/YYYY")||""),e.R7$(2),e.Y8G("nzSpan",12),e.R7$(2),e.SpI("",e.bMT(19,22,"LBL_TRADE_UMR"),":"),e.R7$(3),e.JRh((null==t.noticeData?null:t.noticeData.umr)||""),e.R7$(),e.Y8G("nzSpan",12),e.R7$(2),e.SpI("",e.bMT(25,24,"LBL_TRADE_HAWB_NO"),":"),e.R7$(3),e.JRh((null==t.noticeData?null:t.noticeData.hawb)||""),e.R7$(2),e.Y8G("nzSpan",12),e.R7$(2),e.SpI("",e.bMT(32,26,"LBL_TRADE_TOTAL_NO_PACKAG
1ES"),":"),e.R7$(3),e.JRh((null==t.noticeData?null:t.noticeData.total_no_of_packages)||""),e.R7$(4),e.JRh(e.bMT(39,28,"PGMSG_TRADE_DECLARATION_NOTICE")),e.R7$(5),e.SpI(" ",e.bMT(44,30,"BTN_TRADE_CREATE_DECLARATION_FROM_NOTICE")," "),e.R7$(3),e.SpI(" ",e.bMT(47,32,"LBL_TRADE_VIEW_PDF")," ")}}let an=(()=>{class a{constructor(t,n){this.store=t,this.service=n,this.cancelDeclarationNoticePopup=new e.bkB,this.destroyed$=new N.m(1),this.utcToHKT=m.RD}onCancelDeclarationNoticePopup(){this.cancelDeclarationNoticePopup.emit()}onCreateDeclarationFromNotice(t){const n=(0,Zt.l0)(this.noticeData.form_type);this.service.routingToWriteForm(n.toLowerCase(),s.EvK.PRE_FILL_FROM_DECLARATION_NOTICE,t)}downloadFile(t,n){const o="Declaration Notice("+n+")";this.store.dispatch(s.CJZ.get_trade_message_gov_notice_pdf_start({id:t})),this.store.select(s.eR2).pipe((0,V.p)(i=>null!=i.base64),(0,T.s)(1),(0,h.Q)(this.destroyed$)).subscribe(i=>{(0,D.isNil)(i.base64)||(0,s.dIl)(i.base64,o,"pdf")})}viewPdf(t,n){this.store.dispatch(s.CJZ.get_trade_message_gov_notice_pdf_start({id:t})),this.store.select(s.eR2).pipe((0,V.p)(o=>null!=o.url),(0,T.s)(1),(0,h.Q)(this.destroyed$)).subscribe(o=>{if(!(0,D.isNil)(o.url)){const i=o.url,r=document.createElement("a");r.setAttribute("href",i),r.setAttribute("target","_blank"),r.setAttribute("type","application/pdf"),r.style.visibility="hidden",document.body.appendChild(r),r.click(),document.body.removeChild(r)}})}translatePopupMawb(t){if(!t||"string"!=typeof t)return"";const n=t.replace(/-/g,"");return 11!==n.length?t:`${n.slice(0,3)}-${n.slice(3,7)}-${n.slice(7)}`}ngOnDestroy(){this.destroyed$.next(!0),this.destroyed$.complete()}static{this.\u0275fac=function(n){return new(n||a)(e.rXU(g.il),e.rXU(s.Ypc))}}static{this.\u0275cmp=e.VBU({type:a,selectors:[["hkaa-cargo-web-message-trade-declaration-notice-popup"]],inputs:{isDeclarationNoticePopupVisible:"isDeclarationNoticePopupVisible",noticeData:"noticeData"},outputs:{cancelDeclarationNoticePopup:"cancelDeclarationNoticePopup"},standalone:!1,decls:4,vars:6,consts:[["declarationNoticeTitle",""],["nzWrapClassName","highlight-title-modal",3,"nzOnCancel","nzVisible","nzTitle","nzFooter","nzWidth","nzAutofocus","nzMaskClosable"],[4,"nzModalContent"],[1,"modal-title-root"],["nz-row","","nzAlign","middle"],["nz-col",""],["nz-row","","nzAlign","middle",1,"mt-10"],[1,"subtitle"],["nzType","vertical",1,"divider","ml-12","mr-12"],["nz-row",""],["nz-col","",1,"normal-field-block","mb-16",3,"nzSpan"],["nz-col","",1,"normal-field-block","mt-8","mb-16"],[1,"text-note"],["nz-row","","nzJustify","center"],["nz-col","",1,"mt-32","btn-area"],["nz-button","","nzSpan","12","nzType","primary",3,"click"],["nzSpan","12","nzOffset","2","nz-button","","nzType","primary",3,"click"]],template:function(n,o){if(1&n){const i=e.RV6();e.DNE(0,tn,16,11,"ng-template",null,0,e.C5r),e.j41(2,"nz-modal",1),e.bIt("nzOnCancel",function(){return e.eBV(i),e.Njj(o.onCancelDeclarationNoticePopup())}),e.DNE(3,nn,48,34,"ng-container",2),e.k0s()}if(2&n){const i=e.sdS(1);e.R7$(2),e.Y8G("nzVisible",o.isDeclarationNoticePopupVisible)("nzTitle",i
1)("nzFooter",null)("nzWidth",935)("nzAutofocus",null)("nzMaskClosable",!1)}},dependencies:[en.j,W.aO,J.c,K.p,S.Uq,S.e,R.F2,R.A9,L.D9],styles:[".subtitle[_ngcontent-%COMP%]{color:#50576d;font-weight:400;font-size:15px;line-height:14px;margin-bottom:0}.mt-10[_ngcontent-%COMP%]{margin-top:10px}.ant-divider-vertical[_ngcontent-%COMP%]{height:1.1em;top:0;border-left:1px solid #222b45}.text-note[_ngcontent-%COMP%]{font-weight:400}.text-right[_ngcontent-%COMP%]{text-align:right}.btn-area[_ngcontent-%COMP%]{display:flex;gap:15px}"]})}}return a})();const on=["dynamicTable"],ee=()=>({top:"30px"}),ue=(a,l,t)=>({firstRange:a,secondRange:l,tableTotalPage:t});function ln(a,l){if(1&a&&(e.EFF(0),e.nI1(1,"translate")),2&a){const t=e.XpG(3);e.Lme("",e.bMT(1,2,"LBL_TAB_EXPORT")," (",(null==t.unreadMessageCount?null:t.unreadMessageCount.EXPORT)||0,")")}}function sn(a,l){if(1&a){const t=e.RV6();e.qex(0),e.j41(1,"nz-tab",30),e.bIt("nzClick",function(){e.eBV(t);const o=e.XpG(2);return e.Njj(o.tabChange("EXPORT"))}),e.DNE(2,ln,2,4,"ng-template",null,8,e.C5r),e.k0s(),e.bVm()}if(2&a){const t=e.sdS(3);e.R7$(),e.Y8G("nzTitle",t)}}function rn(a,l){if(1&a&&(e.EFF(0),e.nI1(1,"translate")),2&a){const t=e.XpG(3);e.Lme("",e.bMT(1,2,"LBL_TAB_IMPORT")," (",(null==t.unreadMessageCount?null:t.unreadMessageCount.IMPORT)||0,")")}}function _n(a,l){if(1&a){const t=e.RV6();e.qex(0),e.j41(1,"nz-tab",31),e.bIt("nzClick",function(){e.eBV(t);const o=e.XpG(2);return e.Njj(o.tabChange("IMPORT"))}),e.DNE(2,rn,2,4,"ng-template",null,9,e.C5r),e.k0s(),e.bVm()}if(2&a){const t=e.sdS(3);e.R7$(),e.Y8G("nzTitle",t)}}function pn(a,l){if(1&a&&(e.EFF(0),e.nI1(1,"translate")),2&a){const t=e.XpG(3);e.Lme("",e.bMT(1,2,"LBL_TRADE_DECLARATION")," (",(null==t.unreadMessageCount?null:t.unreadMessageCount.TRADE)||0,")")}}function cn(a,l){if(1&a){const t=e.RV6();e.qex(0),e.j41(1,"nz-tab",32),e.bIt("nzClick",function(){e.eBV(t);const o=e.XpG(2);return e.Njj(o.tabChange("TRADE"))}),e.DNE(2,pn,2,4,"ng-template",null,10,e.C5r),e.k0s(),e.bVm()}if(2&a){const t=e.sdS(3);e.R7$(),e.Y8G("nzTitle",t)}}function dn(a,l){if(1&a&&(e.EFF(0),e.nI1(1,"translate")),2&a){const t=e.XpG(2);e.Lme("",e.bMT(1,2,"LBL_TAB_OTHERS")," (",(null==t.unreadMessageCount?null:t.unreadMessageCount.OTHERS)||0,")")}}function un(a,l){if(1&a){const t=e.RV6();e.qex(0),e.j41(1,"nz-tabset",28),e.DNE(2,sn,4,1,"ng-container",17)(3,_n,4,1,"ng-container",17)(4,cn,4,1,"ng-container",17),e.j41(5,"nz-tab",29),e.bIt("nzClick",function(){e.eBV(t);const o=e.XpG();return e.Njj(o.tabChange("OTHERS"))}),e.DNE(6,dn,2,4,"ng-template",null,7,e.C5r),e.k0s()(),e.bVm()}if(2&a){const t=e.sdS(7),n=e.XpG();e.R7$(),e.Y8G("nzSelectedIndex",n.tabSelectedIndex),e.R7$(),e.Y8G("ngIf",!n.hiddenExportTab),e.R7$(),e.Y8G("ngIf",!n.hiddenImportTab),e.R7$(),e.Y8G("ngIf",!n.hiddenTradeTab),e.R7$(),e.Y8G("nzTitle",t)}}function mn(a,l){if(1&a){const t=e.RV6();e.j41(0,"th",36),e.mxI("nzSortOrderChange",function(o){const i=e.eBV(t).$implicit;return e.DH7(i.sortOrder,o)||(i.sortOrder=o),e.Njj(o)}),e.EFF(1),e.nI1(2,"translate"),e.k0s()}if(2&a){const t=l.$implicit,n=e.XpG(2);e.R50("nzSortOrder",t.sortOrder),e.Y8G("nzColumnKey",t.key)("nzFilterFn",t.filterFn)("nzFilters",t.listOfFilter)("nzFilterMultiple",t.multiple)("nzSortFn",t.sortFn)("nzWidth",null==t?null:t.width)("hidden",(null==n.setOfCheckedId?null:n.setOfCheckedId.size)>0),e.R7$(),e.SpI(" ",e.bMT(2,9,t.name)," ")}}function gn(a,l){if(1&a){const t=e.RV6();e.qex(0),e.j41(1,"tr",37),e.bIt("click",function(){const o=e.eBV(t).$implicit,i=e.XpG(2);return e.Njj(i.onTradeRowClick(o))}),e.j41(2,"td",38),e.EFF(3),e.k0s(),e.j41(4,"td"),e.EFF(5),e.nI1(6,"translate"),e.k0s(),e.j41(7,"td",38),e.EFF(8),e.nI1(9,"translate"),e.k0s()(),e.bVm()}if(2&a){const t=l.$implicit,n=e.XpG(2);e.R7$(),e.AVh("notification-row--new",!(null!=t&&t.is_read)),e.R7$(),e.Y8G("nzEllipsis",n.dataTableStyleSetting.ellipsis),e.R7$(),e.JRh(n.utcToHKT(null==t?null:t.received_on,"DD/MM/YYYY HH:mm")),e.R7$(2),e.SpI(" ","zh-hk"===n.selectedLang?null==t?null:t.title_zh:(null==t?null:t.title)||e.bMT(6,7,"LBL_NOT_APPLICABLE")," "),e.R7$(2),e.Y8G("nzEllipsis",n.dataTableStyleSetting.ellipsis),e.R7$(),e.SpI(" ",(null==t?null:t.sent_from)||e.bMT(9,9,"LBL_NOT_APPLICABLE")," ")}}function Tn(a,l){if(1&a){const t=e.RV6();e.j41(0,"div")(1,"nz-table",33,11),e.bIt("nzQueryParams",function(o){e.eBV(t);const i=e.XpG();return e.Njj(i.onTradeQueryParamsChange(o))}
1),e.j41(3,"thead")(4,"tr"),e.DNE(5,mn,3,11,"th",34),e.k0s()(),e.j41(6,"tbody"),e.DNE(7,gn,10,11,"ng-container",35),e.k0s()()()}if(2&a){const t=e.sdS(2),n=e.XpG(),o=e.sdS(11);e.R7$(),e.Y8G("nzFooter",o)("nzData",n.tradeNotifications)("nzLoading",n.tdecLoading)("nzFrontPagination",!1)("nzTotal",n.tradeTableTotalPage)("nzPageIndex",n.tradeTablePage)("nzPageSize",n.tradeTablePageSize)("nzBordered",n.dataTableStyleSetting.bordered)("nzShowPagination",n.dataTableStyleSetting.pagination)("nzShowSizeChanger",n.dataTableStyleSetting.sizeChanger)("nzSimple",n.dataTableStyleSetting.simple)("nzSize",n.dataTableStyleSetting.size)("nzTableLayout",n.dataTableStyleSetting.tableLayout),e.R7$(4),e.Y8G("ngForOf",n.listOfTradeColumns)("ngForTrackBy",n.trackByName),e.R7$(2),e.Y8G("ngForOf",t.data)}}function hn(a,l){if(1&a){const t=e.RV6();e.j41(0,"th",36),e.mxI("nzSortOrderChange",function(o){const i=e.eBV(t).$implicit;return e.DH7(i.sortOrder,o)||(i.sortOrder=o),e.Njj(o)}),e.EFF(1),e.nI1(2,"translate"),e.k0s()}if(2&a){const t=l.$implicit,n=e.XpG(2);e.R50("nzSortOrder",t.sortOrder),e.Y8G("nzColumnKey",t.key)("nzFilterFn",t.filterFn)("nzFilters",t.listOfFilter)("nzFilterMultiple",t.multiple)("nzSortFn",t.sortFn)("nzWidth",null==t?null:t.width)("hidden",(null==n.setOfCheckedId?null:n.setOfCheckedId.size)>0),e.R7$(),e.SpI(" ",e.bMT(2,9,t.name)," ")}}function bn(a,l){if(1&a&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&a){const t=e.XpG().$implicit;e.R7$(),e.SpI("(",null==t||null==t.content?null:t.content.total,")")}}function fn(a,l){if(1&a){const t=e.RV6();e.qex(0),e.j41(1,"tr",39)(2,"td",40),e.bIt("click",function(){const o=e.eBV(t).$implicit,i=e.XpG(2);return e.Njj(i.onCellClick(o))}),e.EFF(3),e.nI1(4,"dfnsFormat"),e.k0s(),e.j41(5,"td",41),e.bIt("click",function(){const o=e.eBV(t).$implicit,i=e.XpG(2);return e.Njj(i.onCellClick(o))}),e.EFF(6),e.nI1(7,"dataTranslate"),e.nI1(8,"translate"),e.DNE(9,bn,2,1,"span",17),e.k0s(),e.j41(10,"td",40),e.bIt("click",function(){const o=e.eBV(t).$implicit,i=e.XpG(2);return e.Njj(i.onCellClick(o))}),e.EFF(11),e.nI1(12,"dataTranslate"),e.nI1(13,"translate"),e.k0s()(),e.bVm()}if(2&a){const t=l.$implicit,n=e.XpG(2);e.R7$(),e.AVh("notification-row--new",!t.read_receipt),e.R7$(),e.Y8G("nzEllipsis",n.dataTableStyleSetting.ellipsis),e.R7$(),e.SpI(" ",e.i5U(4,8,null==t?null:t.sender_time,"dd/MM/yyyy HH:mm")," "),e.R7$(3),e.SpI(" ",e.i5U(7,11,null==t?null:t.message_subject_en,null==t?null:t.message_subject_zh)||e.bMT(8,14,"LBL_NOT_APPLICABLE")," "),e.R7$(3),e.Y8G("ngIf",(null==t||null==t.content?null:t.content.total)>0),e.R7$(),e.Y8G("nzEllipsis",n.dataTableStyleSetting.ellipsis),e.R7$(),e.SpI(" ",e.brH(12,16,null==t?null:t.sender_display_name_en,null==t?null:t.sender_display_name_zh,!0)||e.bMT(13,20,"LBL_NOT_APPLICABLE")," ")}}function Rn(a,l){if(1&a){const t=e.RV6();e.j41(0,"div")(1,"nz-table",33,12),e.bIt("nzQueryParams",function(o){e.eBV(t);const i=e.XpG();return e.Njj(i.onQueryParamsChange(o))}),e.j41(3,"thead")(4,"tr"),e.DNE(5,hn,3,11,"th",34),e.k0s()(),e.j41(6,"tbody"),e.DNE(7,fn,14,22,"ng-container",35),e.k0s()()()}if(2&a){const t=e.sdS(2),n=e.XpG(),o=e.sdS(9);e.R7$(),e.Y8G("nzFooter",o)("nzData",n.notifications)("nzLoading",n.loading)("nzFrontPagination",!1)("nzTotal",n.tableTotalPage)("nzPageIndex",n.tablePage)("nzPageSize",n.tablePageSize)("nzBordered",n.dataTableStyleSetting.bordered)("nzShowPagination",n.dataTableStyleSetting.pagination)("nzShowSizeChanger",n.dataTableStyleSetting.sizeChanger)("nzSimple",n.dataTableStyleSetting.simple)("nzSize",n.dataTableStyleSetting.size)("nzTableLayout",n.dataTableStyleSetting.tableLayout),e.R7$(4),e.Y8G("ngForOf",n.listOfColumns)("ngForTrackBy",n.trackByName),e.R7$(2),e.Y8G("ngForOf",t.data)}}function En(a,l){if(1&a){const t=e.RV6();e.j41(0,"div",42)(1,"span",43),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"nz-pagination",44),e.bIt("nzPageIndexChange",function(o){e.eBV(t);const i=e.XpG();return e.Njj(i.tablePage=o)}),e.k0s()()}if(2&a){const t=e.XpG();e.R7$(2),e.SpI(" ",e.i5U(3,5,"LBL_SHOWING_PAGING",e.sMw(8,ue,t.tableTotalPage?(t.tablePage-1)*t.tablePageSize+1:0,t.tableTotalPage?t.tablePage*t.tablePageSize<t.tableTotalPage?t.tablePage*t.tablePageSize:t.tableTotalPage:0,t.tableTotalPage?t.tableTotalPage:0))," "),e.R7$(2),e.Y8G("nzPageIndex",t.tablePage)("nzTotal",t.tableTotalPage)("nzPageSize",t.tablePageSize)("nzSize",t.dataTableStyleSetting.size)}}function Cn(a,l){if(1&a){const t=e.RV6();e.j41(0,"div",42)(1,"span",43),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"nz-pagination",44),e.bIt("nzPageIndexChange",function(o){e.eBV(t);const i=e.XpG();return e.Njj(i.tradeTablePage=o)}),e.k0s()()}if(2&a){const t=e.XpG();e.R7$(2),e.SpI(" ",e.i5U(3,5,"LBL_SHOWING_PAGING",e.sMw(8,ue,t.tradeTableTotalPage?(t.tradeTablePage-1)*t.tradeTablePageSize+1:0,t.tradeTableTotalPage?t.tradeTablePage*t.tradeTablePageSize<t.tradeTableTotalPage?t.tradeTablePage*t.tradeTablePageSize:t.tradeTableTotalPage:0,t.tradeTableTotalPage?t.tradeTableTotalPage:0))," "),e.R7$(2),e.Y8G("nzPageIndex",t.tradeTablePage)("nzTotal",t.tradeTableTotalPage)("nzPageSize",t.tradeTablePageSize)("nzSize",t.dataTableStyleSetting.size)}}function Ln(a,l){1&a&&(e.j41(0,"div",45)(1,"h1"),e.EFF(2),e.nI1(3,"translate"),e.k0s()()),2&a&&(e.R7$(2),e.JRh(e.bMT(3,1,"PGTTL_OVERFLOWS_EXPORT_ORDERS")))}function On(a,l){if(1&a&&(e.qex(0),e.j41(1,"div",46)(2,"div",47)(3,"p"),e.EFF(4),e.nI1(5,"translate"),e.k0s(),e.j41(6,"span"),e.EFF(7),e.nI1(8,"async"),e.k0s()(),e.j41(9,"div",48)(10,"p"),e.EFF(11),e.nI1(12,"translate"),e.k0s(),e.j41(13,"span"),e.EFF(14),e.nI1(15,"async"),e.nI1(16,"mockTranslate"),e.k0s()()(),e.j41(17,"div",46)(18,"div",49)(19,"div",50),e.EFF(20),e.nI1(21,"translate"),e.k0s(),e.nrm(22,"hkaa-cargo-web-table",51),e.nI1(23,"async"),e.k0s()(),e.bVm()),2&a){let t,n,o;const i=e.XpG();e.R7$(4),e.SpI("",e.bMT(5,10,"LBL_MAWB_NUMBER"),":"),e.R7$(3),e.JRh(null==(t=e.bMT(8,12,
1i.raOverflowsTableDetails$))?null:t.mawb_number_display),e.R7$(4),e.SpI("",e.bMT(12,14,"LBL_CARGO_TYPE"),":"),e.R7$(3),e.SpI(" ",e.i5U(16,18,null==(n=e.bMT(15,16,i.raOverflowsTableDetails$))?null:n.cargo_type,"cargo_type"),""),e.R7$(6),e.JRh(e.bMT(21,21,"PGTTL_OVERFLOW_EXPORT_ORDERS")),e.R7$(2),e.Y8G("deletable",!1)("editable",!1)("summary",i.raOverflowsMessageInboxDialogTableSummary)("tableColumns",i.tblOverflowsMessageColumns)("tableValue",null==(o=e.bMT(23,23,i.raOverflowsTableDetails$))?null:o.hawbs)}}function In(a,l){if(1&a&&(e.j41(0,"div",45)(1,"h1"),e.EFF(2),e.nI1(3,"translate"),e.nI1(4,"translate"),e.k0s(),e.j41(5,"span"),e.EFF(6),e.nI1(7,"translate"),e.nI1(8,"dfnsFormat"),e.k0s()()),2&a){const t=e.XpG();e.R7$(2),e.Lme("",e.bMT(3,4,"PGTTL_AP_UPDATED"),": ",e.bMT(4,6,"PGTTL_ADD_AP"),""),e.R7$(4),e.Lme("",e.bMT(7,8,"LBL_LAST_UPDATED"),": ",e.i5U(8,10,null==t.removeApTableDetails?null:t.removeApTableDetails.last_update,"dd/MM/yyyy HH:mm"),"")}}function Pn(a,l){if(1&a){const t=e.RV6();e.qex(0),e.j41(1,"nz-tab",58),e.nI1(2,"mockTranslate"),e.bIt("nzClick",function(){e.eBV(t);const o=e.XpG(2);return e.Njj(o.currentSelectRemovedApTab="AAT")}),e.k0s(),e.bVm()}2&a&&(e.R7$(),e.Y8G("nzTitle",e.i5U(2,1,"AAT","designated_cto_short")))}function Sn(a,l){if(1&a){const t=e.RV6();e.qex(0),e.j41(1,"nz-tab",58),e.nI1(2,"mockTranslate"),e.bIt("nzClick",function(){e.eBV(t);const o=e.XpG(2);return e.Njj(o.currentSelectRemovedApTab="CPSL")}),e.k0s(),e.bVm()}2&a&&(e.R7$(),e.Y8G("nzTitle",e.i5U(2,1,"CPSL","designated_cto_short")))}function An(a,l){if(1&a){const t=e.RV6();e.qex(0),e.j41(1,"nz-tab",58),e.nI1(2,"mockTranslate"),e.bIt("nzClick",function(){e.eBV(t);const o=e.XpG(2);return e.Njj(o.currentSelectRemovedApTab="HACTL")}),e.k0s(),e.bVm()}2&a&&(e.R7$(),e.Y8G("nzTitle",e.i5U(2,1,"HACTL","designated_cto_short")))}function Mn(a,l){if(1&a){const t=e.RV6();e.j41(0,"tr")(1,"th"),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"th"),e.EFF(5),e.nI1(6,"translate"),e.k0s(),e.j41(7,"th")(8,"hkaa-cargo-web-masked-field",59),e.bIt("maskedBtnClicked",function(){const o=e.eBV(t),i=o.$implicit,r=o.index,p=e.XpG(2);return e.Njj(p.showHkidBtnOnclick(r,i))}),e.k0s()(),e.j41(9,"th"),e.EFF(10),e.nI1(11,"dateDisplay"),e.k0s()()}if(2&a){const t=l.$implicit,n=l.index,o=e.XpG(2);e.R7$(2),e.JRh((null==t?null:t.first_name)||e.bMT(3,5,"LBL_NOT_APPLICABLE")),e.R7$(3),e.JRh((null==t?null:t.last_name)||e.bMT(6,7,"LBL_NOT_APPLICABLE")),e.R7$(3),e.Y8G("sensitiveData",null!=o.removedApHkidList[n]&&o.removedApHkidList[n].visibleStatus?null==o.removedApHkidList[n]?null:o.removedApHkidList[n].hkid:null==o.removedApHkidList[n]?null:o.removedApHkidList[n].hkidStar)("allowVisible",null==o.removedApHkidList[n]?null:o.removedApHkidList[n].visibleStatus),e.R7$(2),e.JRh(e.bMT(11,9,null==t?null:t.effective_date))}}function kn(a,l){if(1&a&&(e.qex(0),e.j41(1,"tr",60)(2,"th",61),e.EFF(3),e.nI1(4,"translate"),e.j41(5,"strong"),e.EFF(6),e.k0s()()(),e.bVm()),2&a){e.XpG();const t=e.sdS(15);e.R7$(3),e.SpI(" ",e.bMT(4,2,"LBL_NUM_OF_AP"),": "),e.R7$(3),e.JRh(t.data.length)}}function yn(a,l){if(1&a&&(e.qex(0),e.j41(1,"div")(2,"div"),e.EFF(3),e.nI1(4,"translate"),e.k0s(),e.j41(5,"div",52),e.EFF(6),e.nI1(7,"translate"),e.k0s(),e.nrm(8,"div",53),e.j41(9,"div",54)(10,"nz-tabset",55),e.DNE(11,Pn,3,4,"ng-container",17)(12,Sn,3,4,"ng-container",17)(13,An,3,4,"ng-container",17),e.k0s(),e.j41(14,"nz-table",56,13)(16,"thead")(17,"tr")(18,"th"),e.EFF(19),e.nI1(20,"translate"),e.k0s(),e.j41(21,"th"),e.EFF(22),e.nI1(23,"translate"),e.k0s(),e.j41(24,"th"),e.EFF(25),e.nI1(26,"translate"),e.k0s(),e.j41(27,"th"),e.EFF(28),e.nI1(29,"translate"),e.k0s()()(),e.j41(30,"tbody"),e.DNE(31,Mn,12,11,"tr",35)(32,kn,7,4,"ng-container",17),e.k0s()()(),e.j41(33,"p",57),e.EFF(34),e.nI1(35,"translate"),e.k0s()(),e.bVm()),2&a){const t=e.sdS(15),n=e.XpG();e.R7$(3),e.JRh(e.bMT(4,20,"PGMSG_ADD_AP_UPDATED")),e.R7$(3),e.Lme("",e.bMT(7,22,"LBL_TOTAL_NO_OF_AP_ADD"),": ",null==n.removeApTableDetails?null:n.removeApTableDetails.total_no_of_ap_removed,""),e.R7$(3),e.Y8G("nzSpan",20),e.R7$(),e.Y8G("nzSelectedIndex",n.tabSelectedRemoveApIndex),e.R7$(),e.Y8G("ngIf",(null==n.removeApTableDetails||null==n.removeApTableDetails.AAT?null:n.removeApTableDetails.AAT.length)>0),e.R7$(),e.Y8G("ngIf",(null==n.removeApTableDetails||null==n.removeApTableDetails.CPSL?null:n.removeApTableDetails.CPSL.length)>0),e.R7$(),e.Y8G("ngIf",(null==n.removeApTableDetails||null==n.removeApTableDetails.HACTL?null:n.removeApTableDetails.HACTL.length)>0),e.R7$(),e.Y8G("nzData",n.removeApTableDetails[n.currentSelectRemovedApTab])("nzShowPagination",!1)("nzFrontPagination",!1)("nzBordered",!0)("nzSize","small"),e.R7$(5),e.JRh(e.bMT(20,24,"LBL_FIRST_NAME_EN")),e.R7$(3),e.JRh(e.bMT(23,26,"LBL_LAST_NAME_EN")),e.R7$(3),e.JRh(e.bMT(26,28,"LBL_HKID")),e.R7$(3),e.JRh(e.bMT(29,30,"LBL_SELECT_CTO")),e.R7$(3),e.Y8G("ngForOf",t.data),e.R7$(),e.Y8G("ngIf",(null==t||null==t.data?null:t.data.length)>0),e.R7$(2),e.JRh(e.bMT(35,32,"LBL_MSG_NOTIFY_AGAIN"))}}function Fn(a,l){if(1&a&&(e.j41(0,"div",45)(1,"h1"),e.EFF(2),e.nI1(3,"translate"),e.nI1(4,"translate"),e.k0s(),e.j41(5,"span"),e.EFF(6),e.nI1(7,"translate"),e.nI1(8,"dfnsFormat"),e.k0s()()),2&a){const t=e.XpG();e.R7$(2),e.Lme("",e.bMT(3,4,"PGTTL_AP_UPDATED"),": ",e.bMT(4,6,"PGTTL_REMOVE_AP"),""),e.R7$(4),e.Lme("",e.bMT(7,8,"LBL_LAST_UPDATED"),": ",e.i5U(8,10,null==t.removeApTableDetails?null:t.removeApTableDetails.last_update,"dd/MM/yyyy HH:mm"),"")}}function zn(a,l){if(1&a){const t=e.RV6();e.qex(0),e.j41(1,"nz-tab",58),e.nI1(2,"mockTranslate"),e.bIt("nzClick",function(){e.eBV(t);const o=e.XpG(2);return e.Njj(o.currentSelectRemovedApTab="AAT")}),e.k0s(),e.bVm()}2&a&&(e.R7$(),e.Y8G("nzTitle",e.i5U(2,1,"AAT","designated_cto_short")))}function Dn(a,l){if(1&a){const t=e.RV6();e.qex(0),e.j41(1,"nz-tab",58),e.nI1(2,"mockTranslate"),e.bIt("nzClick",function(){e.eBV(t);const o=e.XpG(2);return e.Njj(o.currentSelectRemovedApTab="CPSL")}),e.k0s(),e.bVm()}2&a&&(e.R7$(),e.Y8G("nzTitle",e.i5U(2,1,"CPSL","designated_cto_short")))}function vn(a,l){if(1&a){const t=e.RV6();e.qex(0),e.j41(1,"nz-tab",58),e.nI1(2,"mockTranslate"),e.bIt("nzClick",function(){e.eBV(t);const o=e.XpG(2);return e.Njj(o.currentSelectRemovedApTab="HACTL")}),e.k0s(),e.bVm()}2&a&&(e.R7$(),e.Y8G("nzTitle",e.i5U(2,1,"HACTL","designated_cto_short")))}function Nn(a,l){if(1&a){const t=e.RV6();e.j41(0,"tr")(1,"th"),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"th"),e.EFF(5),e.nI1(6,"translate"),e.k0s(),e.j41(7,"th")(8,"hkaa-cargo-web-masked-field",59),e.bIt("maskedBtnClicked",function(){const o=e.eBV(t),i=o.$implicit,r=o.index,p=e.XpG(2);return e.Njj(p.showHkidBtnOnclick(r,i))}),e.k0s()(),e.j41(9,"th"),e.EFF(10),e.nI1(11,"dateDisplay"),e.k0s()()}if(2&a){const t=l.$implicit,n=l.index,o=e.XpG(2);e.R7$(2),e.JRh((null==t?null:t.first_name)||e.bMT(3,5,"LBL_NOT_APPLICABLE")),e.R7$(3),e.JRh((null==t?null:t.last_name)||e.bMT(6,7,"LBL_NOT_APPLICABLE")),e.R7$(3),e.Y8G("sensitiveData",null!=o.removedApHkidList[n]&&o.removedApHkidList[n].visibleStatus?null==o.removedApHkidList[n]?null:o.removedApHkidList[n].hkid:null==o.removedApHkidList[n]?null:o.removedApHkidList[n].hkidStar)("allowVisible",null==o.removedApHkidList[n]?null:o.removedApHkidList[n].visibleStatus),e.R7$(2),e.JRh(e.bMT(11,9,null==t?null:t.effective_date))}}function Bn(a,l){if(1&a&&(e.qex(0),e.j41(1,"tr",60)(2,"th",61),e.EFF(3),e.nI1(4,"translate"),e.j41(5,"strong"),e.EFF(6),e.k0s()()(),e.bVm()),2&a){e.XpG();const t=e.sdS(15);e.R7$(3),e.SpI(" ",e.bMT(4,2,"LBL_NUM_OF_AP"),": "),e.R7$(3),e.JRh(t.data.length)}}function xn(a,l){if(1&a&&(e.qex(0),e.j41(1,"div")(2,"div"),e.EFF(3),e.nI1(4,"translate"),e.k0s(),e.j41(5,"div",52),e.EFF(6),e.nI1(7,"translate"),e.k0s(),e.nrm(8,"div",53),e.j41(9,"div",54)(10,"nz-tabset",55),e.DNE(11,zn,3,4,"ng-container",17)(12,Dn,3,4,"ng-container",17)(13,vn,3,4,"ng-container",17),e.k0s(),e.j41(14,"nz-table",62,13)(16,"thead")(17,"tr")(18,"th"),e.EFF(19),e.nI1(20,"translate"),e.k0s(),e.j41(21,"th"),e.EFF(22),e.nI1(23,"translate"),e.k0s(),e.j41(24,"th"),e.EFF(25),e.nI1(26,"translate"),e.k0s(),e.j41(27,"th"),e.EFF(28),e.nI1(29,"translate"),e.k0s()()(),e.j41(30,"tbody"),e.DNE(31,Nn,12,11,"tr",35)(32,Bn,7,4,"ng-container",17),e.k0s()()()(),e.bVm()),2&a){const t=e.sdS(15),n=e.XpG();e.R7$(3),e.JRh(e.bMT(4,19,"PGMSG_REMOVE_AP_UPDATED")),e.R7$(3),e.Lme("",e.bMT(7,21,"LBL_TOTAL_NO_OF_AP_REMOVED"),": ",null==n.removeApTableDetails?null:n.removeApTableDetails.total_no_of_ap_removed,""),e.R7$(3),e.Y8G("nzSpan",20),e.R7$(),e.Y8G("nzSelectedIndex",n.tabSelectedRemoveApIndex),e.R7$(),e.Y8G("ngIf",(null==n.removeApTableDetails||null==n.removeApTableDetails.AAT?null:n.removeApTableDetails.AAT.length)>0),e.R7$(),e.Y8G("ngIf",(null==n.removeApTableDetails||null==n.removeApTableDetails.CPSL?null:n.removeApTableDetails.CPSL.length)>0),e.R7$(),e.Y8G("ngIf",(null==n.removeApTableDetails||null==n.removeApTableDetails.HACTL?null:n.removeApTableDetails.HACTL.length)>0),e.R7$(),e.Y8G("nzData",n.removeApTableDetails[n.currentSelectRemovedApTab])("nzShowPagination",!1)("nzFrontPagination",!1)("nzBordered",!0)("nzSize","small"),e.R7$(5),e.JRh(e.bMT(20,23,"LBL_FIRST_NAME_EN")),e.R7$(3),e.JRh(e.bMT(23,25,"LBL_LAST_NAME_EN")),e.R7$(3),e.JRh(e.bMT(26,27,"LBL_HKID")),e.R7$(3),e.JRh(e.bMT(29,29,"LBL_SELECT_CTO")),e.R7$(3),e.Y8G("ngForOf",t.data),e.R7$(),e.Y8G("ngIf",(null==t||null==t.data?null:t.data.length)>0)}}function $n(a,l){if(1&a){const t=e.RV6();e.j41(0,"hkaa-cargo-web-message-report-tampering-popup",63),e.bIt("cancelReportedTamperingPopup",function(o){e.eBV(t);const i=e.XpG();return e.Njj(i.closeReportedTamperingMessageInbox(o))}),e.k0s()}if(2&a){const t=e.XpG();e.Y8G("messageId",t.reportTamperingContentId)("isReportTamperingShown",t.isReportTamperingShown)}}function Gn(a,l){if(1&a){const t=e.RV6();e.j41(0,"hkaa-cargo-web-message-coload-popup",64),e.nI1(1,"dataTranslate"),e.nI1(2,"dfnsFormat"),e.bIt("cancelColoadExportOrderPopup",function(o){e.eBV(t);const i=e.XpG();
1return e.Njj(i.onCancelColoadExportOrderPopup(o))}),e.k0s()}if(2&a){const t=e.XpG();e.Y8G("coloadId",t.coloadExportOrderContentId)("messageTitle",e.brH(1,4,t.coloadExportOrderTitleEn,t.coloadExportOrderTitleZh,!0))("senderTime",t.coloadExportOrderSenderTime?e.i5U(2,8,t.coloadExportOrderSenderTime,"dd/MM/yyyy HH:mm"):null)("isColoadExportOrderPopupVisible",t.isColoadExportOrderPopupVisible)}}function Vn(a,l){1&a&&(e.j41(0,"span"),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&a&&(e.R7$(),e.JRh(e.bMT(2,1,"PGMSG_PROTECTING_SENSITIVE_INFORMATION")))}function jn(a,l){if(1&a){const t=e.RV6();e.j41(0,"hkaa-cargo-web-one-time-passcode",65),e.bIt("cancelEvent",function(o){e.eBV(t);const i=e.XpG();return e.Njj(i.toggleOtp(o))}),e.k0s()}}const wn=[{path:"",component:be,children:[{path:"",component:(()=>{class a{constructor(t,n,o,i,r,p,E,b,B,x,ne,ae,U){this.store=t,this.router=n,this.route=o,this.formService=i,this.translate=r,this.cdr=p,this.messageService=E,this.nzModalSvc=B,this.roleService=x,this.translateService=ne,this.tradeService=ae,this.nzModalService=U,this.destroyed$=new N.m(1),this.utcToHKT=m.RD,this.currentSelectedTab="OTHERS",this.selectedLang="",this.canAccessTradeFeature=!1,this.isTeamed=!1,this.isLinkCompanyProfileWithBrioPopupVisible=!1,this.linkCompanyProfileWithBrioTitle="PGTTL_TRADE_LINK_PROFILE_BRIO",this.linkCompanyProfileWithBrioContent="PGMSG_TRADE_LINK_PROFILE_BRIO",this.goToCompanyProfileBtn="BTN_TRADE_GO_TO_COMPANY_PROFILE",this.linkLaterBtn="BTN_TRADE_LINK_LATER",this.isAdmin=!1,this.tableData$=this.store.pipe((0,h.Q)(this.destroyed$),(0,g.Lt)(s.LOw)),this.notifications=[],this.previousNotifications=[],this.selectedNotifications=[],this.loading=!0,this.tdecLoading=!0,this.roleLoading=!0,this.tradeNotifications=[],this.listOfColumns=[{name:"LBL_RECEIVED_ON",width:"20%"},{name:"LBL_TITLE",width:"55%"},{name:"LBL_SENT_FROM",key:"senderDisplayNameEn",sortFn:(y,oe)=>y?.sender_display_name_en?.localeCompare(oe?.sender_display_name_en),width:"25%"}],this.listOfTradeColumns=[{name:"LBL_RECEIVED_ON",width:"20%"},{name:"LBL_TITLE",width:"55%"},{name:"LBL_SENT_FROM",width:"25%"}],this.dataTableStyleSetting=Me.n,this.tablePage=1,this.tablePageSize=10,this.tradeTablePage=1,this.tradeTablePageSize=10,this.originParams={size:10,page:0},this.currParams={},this.currentSortField="",this.currentSortOrder="",this.action="",this.allChecked=!1,this.indeterminate=!1,this.listOfCurrentPageData=[],this.setOfCheckedId=new Set,this.isPredeclarationVisible=!1,this.documentId={id:null},this.isActionButtonClick=!1,this.isAcceptSrVisible=!1,this.isRejectSrVisible=!1,this.isAcceptSelectedSrVisible=!1,this.isRejectSelectedSrVisible=!1,this.rejectFormConfig={reason:{key:"reason",defaultValue:"",label:"LBL_REASON_OPTIONAL",validators:[c.k0.maxLength(2e3)],c
1ontrolType:"textarea",fullWidth:!0,hint:()=>"LBL_ALERT_MAXIMUM_CHARACTERS_2000"}},this.isRaOverflowsMessageInboxShown=!1,this.tblOverflowsMessageColumns=[{header:"LBL_EXPORT_ORDER_NUMBER",field:"hawb_number",editable:!1,controlType:"text"},{header:"LBL_PCS",field:"pieces",editable:!1,validators:[]}],this.raOverflowsTableDetails$=this.store.pipe((0,h.Q)(this.destroyed$),(0,g.Lt)(s.$xy)),this.isRemovedApMessageInboxShown=!1,this.isAddApMessageInboxShown=!1,this.removeApTableDetails={last_update:null,total_no_of_ap_removed:0,AAT:[],CPSL:[],HACTL:[]},this.isReportTamperingShown=!1,this.reportTamperingContentId=null,this.isColoadExportOrderPopupVisible=!1,this.coloadExportOrderContentId=null,this.coloadExportOrderTitleEn=null,this.coloadExportOrderTitleZh=null,this.coloadExportOrderSenderTime=null,this.showTruckerHkid=[],this.hkidVisible=!1,this.removedApHkidList=[],this.currentIdList=[],this.isOtpVisible=!1,this.showHkidBtnClicked=[],this.isDeclarationNoticePopupVisible=!1,this.isDebug$=this.route.queryParams.pipe((0,X.T)(y=>"true"===y?.debug)),this.isFirstTimeRenderTableData=!0,this.raOverflowsMessageInboxDialogTableSummary=y=>{const oe=this.translate.instant("LBL_TOTAL_PCS"),Xn=this.translate.instant("LBL_PCS_LOWERCASE");return`${oe}: <strong>`+y?.reduce((me,ge)=>ge?.pieces?me+parseInt(ge?.pieces,10):me,0)+`${Xn}</strong>`}}ngOnInit(){this.rejectFormGroup=this.formService.toFormGroupFromMap(this.rejectFormConfig),this.store.dispatch(s.HTU.getMember_v3__Started({isMe:!0})),this.store.select("language").pipe((0,h.Q)(this.destroyed$)).subscribe(t=>{this.selectedLang=t.currentLang.toLocaleLowerCase()}),this.store.select(s.Ko4).pipe((0,se.n)(()=>(0,_e.zV)([this.store.select(s.Ko4),this.store.select(s.cWK),this.roleService.canAccessImportPortal(),this.roleService.canAccessExportPortal(),this.roleService.canAccessTradeFeature(),this.roleService.isTrader()])),(0,h.Q)(this.destroyed$)).subscribe(([t,n,o,i,r,p])=>{if(this.currentRole=t,this.canAccessTradeFeature=r,this.hiddenTabHeader="RA"!==this.currentRole&&"RA_IMPORT"!==this.currentRole&&"RF"!==this.currentRole&&"TR"!==this.currentRole&&"TRADER"!==this.currentRole,this.hiddenTabHeader||(this.originParams.message_type="EXPORT"),n?.lifecycle?.loaded){const E=n?.data?.modules;if(i&&E?.includes(s.Qvx.EXPORT)?(this.hiddenExportTab=!1,this.currentSelectedTab="EXPORT"):this.hiddenExportTab=!0,o&&E?.includes(s.Qvx.IMPORT)?(this.hiddenImportTab=!1,this.currentSelectedTab="OTHERS"===this.currentSelectedTab?"IMPORT":this.currentSelectedTab):this.hiddenImportTab=!0,r||p?(this.hiddenTradeTab=!1,this.currentSelectedTab="OTHERS"===this.currentSelectedTab?"TRADE":this.currentSelectedTab,this.store.select(s.KiN).pipe((0,h.Q)(this.destroyed$)).subscribe(b=>{b&&(this.tradeNotifications=b.government_notices,this.tradeTableTotalPage=b.total_elements,this.tradeTablePageSize=b.page_size,this.tradeTablePage=b.page_number,this.tdecLoading=!1,this.cdr.detectChanges())}
1)):this.hiddenTradeTab=!0,r&&this.tradeService.getLinkToBrioStatus().pipe((0,h.Q)(this.destroyed$)).subscribe(b=>{"string"==typeof b.body.linked_up_meta?.team_name&&(this.isTeamed=!0)}),"TRADE"!==this.currentSelectedTab){const b={...this.originParams,message_type:this.currentSelectedTab};this.store.dispatch((0,s.oNO)({role:this.currentRole,params:b}))}this.roleLoading=!1}}),this.store.dispatch((0,s.aHL)({role:this.currentRole})),this.store.select(s.aDv).pipe((0,h.Q)(this.destroyed$)).subscribe(t=>{if(t.length>0){const n={};t.forEach(o=>{n[o.message_type]=o.message_count}),this.unreadMessageCount=n}}),this.tableData$.pipe((0,h.Q)(this.destroyed$),(0,Ae.F)((t,n)=>t?.content===n?.content)).subscribe(t=>{const n=(0,D.cloneDeep)(t?.content);n?.map(o=>{if("import_epouch_document_updated_agent_notification_web"===o?.message_name){const i=this.translateService.instant("LBL_NOT_APPLICABLE"),r=o.sender_display_name_zh||o.sender_display_name_en;o.sender_display_name_en=(o.sender_display_name_en||i)+" "+this.translate.instant("LBL_VIA_EPOUCH"),o.sender_display_name_zh=(r||i)+" "+this.translate.instant("LBL_VIA_EPOUCH")}return o}),this.notifications=n,this.cdr.markForCheck(),this.tableTotalPage=t?.totalElements,this.loading=!1}),this.store.select(s.edK).pipe((0,h.Q)(this.destroyed$),(0,V.p)(t=>!0===t.success)).subscribe(t=>{const n=t?.data;this.removeApTableDetails.total_no_of_ap_removed=n?.length;const o={AAT:[],CPSL:[],HACTL:[]};n?.forEach(i=>{this.currentIdList.push(i.ap_id);const r={hkid:"",hkidStar:i?.hkid,visibleStatus:!1};r&&this.removedApHkidList.push(r),"AAT"===i?.cto_code?o.AAT.push(i):"CPSL"===i?.cto_code?o.CPSL.push(i):o.HACTL.push(i)}),this.currentSelectRemovedApTab=o.AAT?.length>0?"AAT":o.CPSL?.length>0?"CPSL":"HACTL",this.removeApTableDetails={...this.removeApTableDetails,...o},this.cdr.markForCheck()}),this.store.select(s.A4u).pipe((0,h.Q)(this.destroyed$)).subscribe(t=>{const n=t.type;n===s.$h_?.GET_SESSION_ID?t?.lifecycle?.loaded&&t?.data&&t?.data?.session_id&&(this.tokenResponse=t?.data,this.showHkidBtnClicked[this.currentSelectedEye]&&this.toggleOtp(!0)):n===s.$h_?.VERIFY_CHALLENGE_OTP?t?.lifecycle?.loaded&&t?.data&&(this.tokenResponse=t?.data,this.toggleOtp(!1),this.showHkidBtnClicked[this.currentSelectedEye]&&this.store.dispatch(s.mui.getSensitiveTruckInfo__Started({role:this.currentRole,source:"haffa-ap",id:this.currentIdList[this.currentSelectedEye],sensitiveToken:this.tokenResponse?.sensitive_token}))):n===s.$h_?.COUNT_DOWN&&t?.lifecycle?.loaded&&(this.countdown=t?.countdown,this.tokenResponse=t?.data)}),this.store.select(s.GC0).pipe((0,h.Q)(this.destroyed$)).subscribe(t=>{t?.lifecycle?.loaded&&t?.data&&(this.removedApHkidList[this.currentSelectedEye]?.visibleStatus||(this.removedApHkidList[this.currentSelectedEye].hkid=t?.data?.gov_id_number,this.removedApHkidList[this.currentSelectedEye].visibleStatus=!0,this.cdr.markForCheck()))}),this.store.select(s.V3Q).pipe((0,h.Q)(this.destroyed$)).subscribe(t=>{t.lifecycle.loaded&&t.data&&"ADMIN"===t.data.role_type&&(this.isAdmin=!0)})}markNotificationRead(){const t=[];this.previousNotifications?.filter(n=>!n?.read_receipt).forEach(n=>{this.store.dispatch((0,s.mm_)({id:n?.id,payload:!0})),t.push(n?.id)}),t.length>0&&(this.messageService.batchUpdateReadReceipt(t).subscribe(),this.store.dispatch((0,s.oNO)({role:this.currentRole,params:this.currParams})),this.store.dispatch((0,s.aHL)({role:this.currentRole})))}onQueryParamsChange(t){const{pageSize:n,pageIndex:o,sort:i}=t,r=i.find(B=>null!==B.value),p=r&&r.key||null,E=r&&r.value||null,b={size:n,page:o-1,message_type:""};null!==p&&null!==E&&(b.sort=[`${p},${"ascend"===E?"asc":"desc"}`],(p!==this.currentSortField||E!==this.currentSortOrder)&&(b.page=0,this.tablePage=1,this.currentSortField=p,this.currentSortOrder=E)),null!=this.currentSelectedTab?b.message_type=this.currentSelectedTab:null==this.currentSelectedTab&&!this.hiddenTabHeader&&(b.message_type=this.hiddenExportTab&&!this.hiddenImportTab?"IMPORT":this.hiddenExportTab?"OTHERS":"EXPORT"),this.previousNotifications=this.notifications,this.currParams=b,this.loading=!0,this.store.dispatch((0,s.oNO)({role:this.currentRole,params:b})),this.isFirstTimeRenderTableData||this.markNotificationRead(),this.isFirstTimeRenderTableData=!1}onTradeQueryParamsChange(t){this.hiddenTradeTab||(this.tradeCurrentParam
1s=t,this.loading=!0,this.store.dispatch(s.CJZ.get_trade_message_gov_notices_start({pageIndex:t.pageIndex.toString()})))}tabChange(t){if(this.loading=!0,this.currentSelectedTab=t,"TRADE"===t)this.tradeTablePage=1,this.store.dispatch(s.CJZ.get_trade_message_gov_notices_start({pageIndex:"1"})),this.store.select(s.KiN).pipe((0,h.Q)(this.destroyed$)).subscribe(n=>{n&&(this.tradeNotifications=n.government_notices,this.tradeTableTotalPage=n.total_elements,this.tradeTablePageSize=n.page_size,this.tradeTablePage=n.page_number,this.loading=!1,this.cdr.detectChanges())});else{this.previousNotifications=this.notifications;const n={...this.originParams,message_type:this.currentSelectedTab};this.currParams=n,this.store.dispatch((0,s.oNO)({role:this.currentRole,params:n})),this.markNotificationRead()}this.loading=!1}openRaOverflowsMessageInbox(t){const n=t.content.overflows_message_id;this.isRaOverflowsMessageInboxShown=!0,this.store.dispatch((0,s.Eb4)({id:n}))}showPredecPopup(t){this.isPredeclarationVisible=!0,this.awbNumber=t?.awb_number,this.mawbId=t?.awb_id,this.documentId={id:t?.predeclaration_id}}onRouteToPreDeclaration(t,n){const o=t?.content?.awb_number;if(n){const i=t?.content?.predeclaration_id;o&&i&&this.router.navigateByUrl(`/${this.currentRole?.toLowerCase()}/pages/export/predeclaration/edit/${i}?awb_number=${o}#security_delivery`)}else this.router.navigateByUrl(`/${this.currentRole?.toLowerCase()}/pages/export/predeclaration/create?awb_number=${o}`)}openRemoveApMessageInbox(t){const n=t?.reference_id;this.isRemovedApMessageInboxShown=!0,this.removeApTableDetails.last_update=t?.sender_time,this.store.dispatch((0,s.nIu)({id:n}))}closeRemoveApMessageInbox(){this.isRemovedApMessageInboxShown=!1,this.removedApHkidList.map(t=>{t.visibleStatus=!1})}openAddApMessageInbox(t){const n=t?.reference_id;this.isAddApMessageInboxShown=!0,this.removeApTableDetails.last_update=t?.sender_time,this.store.dispatch((0,s.nIu)({id:n}))}closeAddApMessageInbox(){this.isAddApMessageInboxShown=!1,this.removedApHkidList.map(t=>{t.visibleStatus=!1})}openReportedTamperingMessageInbox(t){this.reportTamperingContentId=t?.content?.tampering_report_id,this.isReportTamperingShown=!0}closeReportedTamperingMessageInbox(){this.isReportTamperingShown=!1,this.reportTamperingContentId=null}onOpenColoadExportOrderPopup(t){this.coloadExportOrderContentId=t?.content?.coload_id,this.coloadExportOrderTitleEn=t?.message_subject_en,this.coloadExportOrderTitleZh=t?.message_subject_zh,this.coloadExportOrderSenderTime=t?.sender_time,this.isColoadExportOrderPopupVisible=!0}onOpenImportBulkOrderSharePopup(t){if(1!==t?.content?.number_of_orders)this.nzModalSvc.create({nzClassName:"highlight-title-modal",nzContent:De,nzData:{data:t},nzFooter:null,nzBodyStyle:{padding:"0"}}).afterClose.subscribe(n=>{n?.id&&this.router.navigate([`/${this.currentRole?.toLowerCase()}/pages/import/mawb/${n?.id}`],{relativeTo:this.route,queryParams:{cto:(0,m.O9)(n?.ctoCode)}})});else{const n=t?.content?.mawb_numbers[0]?.mawb_id,o=t?.content?.mawb_numbers[0]?.cto_code;this.router.navigate([`/${this.currentRole?.toLowerCase()}/pages/import/mawb/${n}`],{relativeTo:this.route,queryParams:{cto:(0,m.O9)(o)}})}}onOpenImportBulkRevertPopup(t){this.nzModalSvc.create({nzClassName:"highlight-title-modal",nzContent:Se,nzData:{data:t},nzFooter:null,nzBodyStyle:{padding:"0"}}).afterClose.subscribe(n=>{n?.id&&this.router.navigate([`/${this.currentRole?.toLowerCase()}/pages/import/mawb/${n?.id}`],{relativeTo:this.route,queryParams:{cto:(0,m.O9)(n?.ctoCode)}})})}onOpenImportFailAutoOrderAssignmentPopup(t){this.nzModalSvc.create({nzClassName:"highlight-title-modal",nzContent:xe,nzData:{data:t},nzFooter:null,nzBodyStyle:{padding:"0"}}).afterClose.subscribe(n=>{n&&this.router.navigate([`/${this.currentRole?.toLowerCase()}/pages/profile/default-partner`],{relativeTo:this.route})})}onOpenNewEpouchDocumentPopup(t){const n=this.translateService.instant("LBL_NOT_APPLICABLE"),o=this.translateService.instant("LBL_NEW_EPOUCH_DOCUMENTS",{mawb_no:t?.content?.mawb_number||n,cto_name:t?.content?.cto_name||n}),i=this.translateService.instant("LBL_NEW_EPOUCH_DOCUMENTS_CONTENT");this.nzModalSvc.create({nzWrapClassName:"epouch-info-modal-container",nzTitle:o,nzContent:i,nzClosable:!1,nzCancelText:null,nzOkText:this.translateService.instant("LBL_IMPORT_OK"),nzOnOk:()=>!0})}onOpenRequestForpouchDocumentPopup(t){this.nzModalSvc.create({nzClassName:"highlight-title-modal",nzContent:Ve,nzData:{data:t},nzFooter:null,nzBodyStyle:{padding:"0"},nzWidth:"850px"})}
1onCancelColoadExportOrderPopup(){this.coloadExportOrderContentId=null,this.isColoadExportOrderPopupVisible=!1}showHkidBtnOnclick(t,n){this.showHkidBtnClicked[t]=!0,this.currentSelectedEye=t,this.checkSensitiveToken(t,n)}checkSensitiveToken(t,n){this.removedApHkidList[t]?.visibleStatus?this.removedApHkidList[t].visibleStatus=!1:this.checkTokenValidTime()?this.store.dispatch(s.mui.getSensitiveTruckInfo__Started({role:this.currentRole,source:"haffa-ap",id:n?.ap_id,sensitiveToken:this.tokenResponse?.sensitive_token})):this.countdown?this.toggleOtp(!0):this.store.dispatch(s.jz7.getSensitiveToken__Started())}checkTokenValidTime(){return!(!this.tokenResponse?.expires||!this.tokenResponse?.token_timestamp||Date.now()>=this.tokenResponse.token_timestamp+1e3*this.tokenResponse.expires)}toggleOtp(t){this.isOtpVisible=t,this.cdr.markForCheck()}onCellClick(t){if(this.clickedItem=t,!this.isActionButtonClick&&(t.read_receipt||(this.store.dispatch((0,s.mm_)({id:t.id,payload:!0})),this.messageService.batchUpdateReadReceipt([t.id]).subscribe(),this.store.dispatch((0,s.oNO)({role:this.currentRole,params:0!==Object.keys(this.currParams).length?this.currParams:this.originParams})),this.store.dispatch((0,s.aHL)({role:this.currentRole}))),t)){const n=t?.message_name,o=s._eQ.find(i=>i.name.toLowerCase()===n?.toLowerCase()&&i.role.includes(this.currentRole));if(o){if(o?.action)"ra_overflows_message_inbox"===n?this.openRaOverflowsMessageInbox(t):"haffa_ap_update_remove_ap"===n?this.openRemoveApMessageInbox(t):"haffa_ap_update_add_ap"===n?this.openAddApMessageInbox(t):"tampering_report_ra_inbox"===n?this.openReportedTamperingMessageInbox(t):"coload_share_created_inbox"===n?this.onOpenColoadExportOrderPopup(t):"import_order_bulk_share_notification_web"===n?this.onOpenImportBulkOrderSharePopup(t):"import_order_revert_notification_web"===n||"import_order_bulk_revert_notification_web"===n?this.onOpenImportBulkRevertPopup(t):["import_fail_auto_order_assignment_notification_web","import_ra_fail_automatic_order_assignment_notification_web","import_fail_automatic_order_sharing_notification_web","import_tr_fail_automatic_order_assignment_notification_web"].includes(n)?this.onOpenImportFailAutoOrderAssignmentPopup(t):"import_epouch_document_updated_agent_notification_web"===n?this.onOpenNewEpouchDocumentPopup(t):"import_request_document_on_epouch_notification_web"===n?this.onOpenRequestForpouchDocumentPopup(t):"company_delinked_brio_inbox"===n?this.handleOnLinkupDelinkBrioPopup(t,!1,!0):"company_failed_delink_brio_inbox"===n?this.handleOnLinkupDelinkBrioPopup(t,!1,!1):"company_failed_link_brio_inbox"===n?this.handleOnLinkupDelinkBrioPopup(t,!0,!1):"company_linked_brio_inbox"===n?this.handleOnLinkupDelinkBrioPopup(t,!0,!0):"updated_tdec_team_assignment_inbox"===n&&this.handleUpdateTeamAssignmentClickRouting();else if(t?.content){let i;const r={};i=null!=t?.content[o?.pageKey]&&(0,D.isArray)(t?.content[o?.pageKey])?t?.content[o?.pageKey][0]:t?.content[o?.pageKey],t?.content?.cto_code&&(r.cto=(0,m.O9)(t?.content?.cto_code));let p=`/${this.currentRole.toLowerCase()}/pages/${o?.pageMaster}/${i}`;null!=o?.defaultPage&&""!==o?.defaultPage&&(p=`${p}/${o?.defaultPage}`),this.router.navigate([p],{queryParams:r})}}else{const i=s.b0q.find(r=>r.name.toLowerCase()===n?.toLowerCase());i?this.router.navigateByUrl(`${this.currentRole.toLowerCase()}/${i.path}`):s.ROB.includes(n)&&t?.content&&this.showPredecPopup(t?.content)}}this.isActionButtonClick=!1}trackByName(t,n){return n.name}datetimeToTimestamp(t){return new Date(t).getTime()}onTradeRowClick(t){this.clickedTradeItem=t,this.tdecLoading=!0,"bulk_upload_notice"===t.message_type?(this.tradeService.getBulkUploadRecordDetails(t.id).subscribe(),this.goToBulkUploadPage()):"declaration_notice"===t.message_type&&(this.tradeService.getDeclarationNoticeMessageDetail(t.id).subscribe(),this.isDeclarationNoticePopupVisible=!0)}handleCancelDeclarationNoticePopup(){this.isDeclarationNoticePopupVisible=!1}adminLinkedNotInputTeamName(){this.nzModalService.create({nzTitle:this.translateService.instant("LBL_SET_UP_A_TEAM"),nzContent:this.translateService.instant("LBL_YOU_HAVE_NOT_SET_UP_A_TEAM_YET_DESCRIPTION"),nzClosable:!1,nzMaskClosable:!1,nzOkText:this.translateService.instant("BTN_GO_TO_MEMBERS_PAGE"),nzCancelText:this.translateService.instant("BTN_SET_UP_LATER"),nzOnOk:()=>{this.router.navigateByUrl(`/${this.currentRole?.toLowerCase()}/pages/members/user-account`)}})}NotAdminNotAssignedtoTeam(){this.nzModalService.create({nzTitle:this.translateService.instant("PGLLS_IMPORT_CONFIRM_TO_ACCESS_RIGHT"),nzContent:this.translateService.instant("PGLLS_IMPORT_CONFIRM_TO_ACCESS_RIGHT_CONTENT"),nzClosable:!1,nzMaskClosable:!1,nzCancelText:null,nzOkText:this.translateService.instant("BTN_OK")})}handleUpdateTeamAssignmentClickRouting(){this.isAdmin&&this.isTeamed?this.router.navigateByUrl("/trader/pages/trade/home"):this.isAdmin||this.isTeamed?this.isAdmin&&(this.canAccessTradeFeature?this.adminLinkedNotInputTeamName():this.isLinkCompanyProfileWithBrioPopupVisible=!0):this.NotAdminNotAssignedtoTeam()}handleLinkProfileLater(){this.isLinkCompanyProfileWithBrioPopupVisible=!1}handleGoToCompanyProfile(){this.isLinkCompanyProfileWithBrioPopupVisible=!1,this.router.navigateByUrl(`/${this.currentRole?.toLowerCase()}/pages/profile/manage-company-profile`)}handleOnLinkupDelinkBrioPopup(t,n,o){this.nzModalSvc.create({nzClassName:"highlight-title-modal",nzContent:Je,nzData:{data:t,isLinkup:n,isSuccessful:o},nzFooter:null,nzBodyStyle:{padding:"0"},nzWidth:"850px"})}goToBulkUploadPage(){this.router.navigateByUrl("/trader/pages/trade/bulk-upload")}ngOnDestroy(){this.store.dispatch(s.CJZ.get_trade_message_gov_notices_start({pageIndex:"1"})),this.store.dispatch((0,s.TlL)()),this.previousNotifications=[],this.markNotificationRead(),this.destroyed$.next(!0),this.destroyed$.complete()}static{this.\u0275fac=function(n){return new(n||a)(e.rXU(g.il),e.rXU(u.Ix),e.rXU(u.nX),e.rXU(s.ux2),e.rXU(L.c$),e.rXU(e.gRc),e.rXU(P),e.rXU(s.vQM),e.rXU(R.N_),e.rXU(ke.WK),e.rXU(L.c$),e.rXU(s.Ypc),e.rXU(R.N_))}}static{this.\u0275cmp=e.VBU({type:a,selectors:[["hkaa-cargo-web-message-table-display"]],viewQuery:function(n,o){if(1&n&&e.GBs(on,5),2&n){let i;e.mGM(i=e.lsd())&&(o.dynamicTable=i.first)}},standalone:!1,decls:38,vars:53,consts:[["footer",""],["tradeFooter",""],["raOverflowsMessageInboxDialogTitle",""],["AddApMessageInboxDialogTitle",""],["removedApMessageInboxDialogTitle",""],["tplTitle",""],["tplContent",""],["nzTabOthers",""],["nzTabExport",""],["nzTabImport",""],["nzTabTrade",""],["dynamicTradeTable",""],["dynamicTable",""],["removeApTable",""],[1,"mt-40"],[1,"h1__custom","header__margin-top"],[1,"n
1otification__card"],[4,"ngIf"],["data-testid","predeclaration-preview-popup",3,"isPredeclarationVisibleChange","isPredeclarationVisible","store","role","awbNumber","mawbId","documentId"],["nzWrapClassName","highlight-title-modal","data-testid","ra-overflows-message-inbox-popup",3,"nzVisibleChange","nzOnCancel","nzVisible","nzTitle","nzFooter","nzWidth","nzStyle"],[4,"nzModalContent"],["nzWrapClassName","highlight-title-modal","data-testid","add-ap-message-inbox-popup",3,"nzVisibleChange","nzOnCancel","nzVisible","nzTitle","nzFooter","nzWidth","nzStyle"],["nzWrapClassName","highlight-title-modal","data-testid","removed-ap-message-inbox-popup",3,"nzVisibleChange","nzOnCancel","nzVisible","nzTitle","nzFooter","nzWidth","nzStyle"],["data-testid","message-report-tampering-popup",3,"messageId","isReportTamperingShown","cancelReportedTamperingPopup",4,"ngIf"],["data-testid","message-coload-popup",3,"coloadId","messageTitle","senderTime","isColoadExportOrderPopupVisible","cancelColoadExportOrderPopup",4,"ngIf"],["nzClosable","false","data-testid","otp-popup",3,"nzVisibleChange","nzVisible","nzMaskClosable","nzAutofocus","nzTitle","nzContent","nzFooter"],["data-testid","trade-declaration-notice-popup",3,"cancelDeclarationNoticePopup","isDeclarationNoticePopupVisible","noticeData"],["data-testid","trade-link-company-profile-brio-popup",3,"linkProfileLaterClick","goToCompanyProfileClick","isLinkCompanyProfileWithBrioPopupVisible","linkCompanyProfileWithBrioTitleKey","linkCompanyProfileWithBrioContentKey","goToCompanyProfileBtnKey","linkLaterBtnKey"],["data-testid","tab-section",1,"override-margin",3,"nzSelectedIndex"],["data-testid","others-tab",3,"nzClick","nzTitle"],["data-testid","export-tab",3,"nzClick","nzTitle"],["data-testid","import-tab",3,"nzClick","nzTitle"],["data-testid","trade-tab",3,"nzClick","nzTitle"],["data-testid","message-list-table",3,"nzQueryParams","nzFooter","nzData","nzLoading","nzFrontPagination","nzTotal","nzPageIndex","nzPageSize","nzBordered","nzShowPagination","nzShowSizeChanger","nzSimple","nzSize","nzTableLayout"],[3,"nzSortOrder","nzColumnKey","nzFilterFn","nzFilters","nzFilterMultiple","nzSortFn","nzWidth","hidden","nzSortOrderChange",4,"ngFor","ngForOf","ngForTrackBy"],[4,"ngFor","ngForOf"],[3,"nzSortOrderChange","nzSortOrder","nzColumnKey","nzFilterFn","nzFilters","nzFilterMultiple","nzSortFn","nzWidth","hidden"],[1,"notification-row",3,"click"],[3,"nzEllipsis"],[1,"notification-row"],[3,"click","nzEllipsis"],[3,"click"],[1,"cdp-data-table__pagination-footer"],[1,"cdp-data-table__pagination-footer__paging"],["nzShowQuickJumper","",3,"nzPageIndexChange","nzPageIndex","nzTotal","nzPageSize","nzSize"],[1,"modal-title-root"],["nz-row",""],["nz-col","","nzSpan","10",1,"normal-field-block","mb-16"],["nz-col","",1,"normal-field-block","mb-16"],["nz-col","","nzSpan","16"],[1,"detail__bold"],[3,"deletable","editable","summary","tableColumns","tableValue"],[1,"mt-24","detail__bold"],[1,"mt-8"],["nz-col","",1,"table-tab-header",3,"nzSpan"],["nzSize","small",1,"override-margin",3,"nzSelectedIndex"],["data-testid","add-ap-table",1,"customized-table",3,"nzData","nzShowPagination","nzFrontPagination","nzBordered","nzSize"],[1,"mt-24"],[3,"nzClick","nzTitle"],[3,"maskedBtnClicked","sensitiveData","allowVisible"],[1,"customized-table__summary"],["colspan","4"],["data-testid","remove-ap-table",1,"customized-table",3,"nzData","nzShowPagination","nzFrontPagination","nzBordered","nzSize"],["data-testid","message-report-tampering-popup",3,"cancelReportedTamperingPopup","messageId","isReportTamperingShown"],["data-testid","message-coload-popup",3,"cancelColoadExportOrderPopup","coloadId","messageTitle","senderTime","isColoadExportOrderPopupVisible"],[3,"cancelEvent"]],template:function(n,o){if(1&n){const i=e.RV6();e.nrm(0,"div",14),e.j41(1,"h1",15),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"nz-card",16),e.DNE(5,un,8,5,"ng-container",17)(6,Tn,8,16,"div",17)(7,Rn,8,16,"div",17),e.k0s(),e.DNE(8,En,5,12,"ng-template",null,0,e.C5r)(10,Cn,5,12,"ng-template",null,1,e.C5r),e.j41(12,"hkaa-cargo-web-predeclaration-preview-popup",18),e.mxI("isPredeclarationVisibleChange",function(p){return e.eBV(i),e.DH7(o.isPredeclarationVisible,p)||(o.isPredeclarationVisible=p),e.Njj(p)}),e.k0s(),e.DNE(13,Ln,4,3,"ng-template",null,2,e.C5r),e.j41(15,"nz-modal",19),e.mxI("nzVisibleChange",function(p){return e.eBV(i),e.DH7(o.isRaOverflowsMessageInboxShown,p)||(o.isRaOverflowsMessageInboxShown=p),e.Njj(p)}),e.bIt("nzOnCancel",function(){return e.eBV(i),e.Njj(o.isRaOverflowsMessageInboxShown=!1)}),e.DNE(16,On,24,25,"ng-container",20),e.k0s(),e.DNE(17,In,9,13,"ng-template",null,3,e.C5r),e.j41(19,"nz-modal",21),e.mxI("nzVisibleChange",function(p){return e.eBV(i),e.DH7(o.isAddApMessageInboxShown,p)||(o.isAddApMessageInboxShown=p),e.Njj(p)}),e.bIt("nzOnCancel",function(){return e.eBV(i),e.Njj(o.closeAddApMessageInbox())}),e.DNE(20,yn,36,34,"ng-container",20),e.k0s(),e.DNE(21,Fn,9,13,"ng-template",null,4,e.C5r),e.j41(23,"nz-modal",22),e.mxI("nzVisibleChange",function(p){return e.eBV(i),e.DH7(o.isRemovedApMessageInboxShown,p)||(o.isRemovedApMessageInboxShown=p),e.Njj(p)}),e.bIt("nzOnCancel",function(){return e.eBV(i),e.Njj(o.closeRemoveApMessageInbox())}),e.DNE(24,xn,33,31,"ng-container",20),e.k0s(),e.DNE(25,$n,1,2,"hkaa-cargo-web-message-report-tampering-popup",23)(26,Gn,3,11,"hkaa-cargo-web-message-coload-popup",24),e.j41(27,"nz-modal",25),e.mxI("nzVisibleChange",function(p){return e.eBV(i),e.DH7(o.isOtpVisible,p)||(o.isOtpVisible=p),e.Njj(p)}),e.DNE(28,Vn,3,3,"ng-template",null,5,e.C5r)(30,jn,1,0,"ng-template",null,6,e.C5r),e.k0s(),e.j41(32,"hkaa-cargo-web-message-trade-declaration-notice-popup",26),e.bIt("cancelDeclarationNoticePopup",function(){return e.eBV(i),e.Njj(o.handleCancelDeclarationNoticePopup())}),e.k0s(),e.j41(33,"hkaa-cargo-web-trade-link-company-profile-brio-popup",27),e.nI1(34,"translate"),e.nI1(35,"translate"),e.nI1(36,"translate"),e.nI1(37,"translate"),e.bIt("linkProfileLaterClick",function(){return e.eBV(i),e.Njj(o.handleLinkProfileLater())})("goToCompanyProfileClick",function(){return e.eBV(i),e.Njj(o.handleGoToCompanyProfile())}),e.k0s()}if(2&n){const i=e.sdS(14),r=e.sdS(18),p=e.sdS(22),E=e.sdS(29),b=e.sdS(31);e.R7$(2),e.JRh(e.bMT(3,40,"PGMSG_MESSAGES")),e.R7$(3),e.Y8G("ngIf",!o.hiddenTabHeader),e.R7$(),e.Y8G("ngIf",!o.hiddenTradeTab&&"TRADE"===o.currentSelectedTab),e.R7$(),e.Y8G("ngIf","TRADE"!==o.currentSelectedTab&&!o.roleLoading),e.R7$(5),e.R50("isPredeclarationVisible",o.isPredeclarationVisible),e.Y8G("store",o.store)("role",o.currentRole)("awbNumber",o.awbNumber)("mawbId",o.mawbId)("documentId",o.documentId),e.R7$(3),e.R50("nzVisible",o.isRaOverflowsMessageInboxShown),e.Y8G("nzTitle",i
1)("nzFooter",null)("nzWidth",935)("nzStyle",e.lJ4(50,ee)),e.R7$(4),e.R50("nzVisible",o.isAddApMessageInboxShown),e.Y8G("nzTitle",r)("nzFooter",null)("nzWidth",935)("nzStyle",e.lJ4(51,ee)),e.R7$(4),e.R50("nzVisible",o.isRemovedApMessageInboxShown),e.Y8G("nzTitle",p)("nzFooter",null)("nzWidth",935)("nzStyle",e.lJ4(52,ee)),e.R7$(2),e.Y8G("ngIf",o.reportTamperingContentId),e.R7$(),e.Y8G("ngIf",o.coloadExportOrderContentId),e.R7$(),e.R50("nzVisible",o.isOtpVisible),e.Y8G("nzMaskClosable",!1)("nzAutofocus",null)("nzTitle",E)("nzContent",b)("nzFooter",null),e.R7$(5),e.Y8G("isDeclarationNoticePopupVisible",o.isDeclarationNoticePopupVisible)("noticeData",o.clickedTradeItem),e.R7$(),e.Y8G("isLinkCompanyProfileWithBrioPopupVisible",o.isLinkCompanyProfileWithBrioPopupVisible)("linkCompanyProfileWithBrioTitleKey",e.bMT(34,42,o.linkCompanyProfileWithBrioTitle))("linkCompanyProfileWithBrioContentKey",e.bMT(35,44,o.linkCompanyProfileWithBrioContent))("goToCompanyProfileBtnKey",e.bMT(36,46,o.goToCompanyProfileBtn))("linkLaterBtnKey",e.bMT(37,48,o.linkLaterBtn))}},dependencies:[d.Sq,d.bT,S.Uq,S.e,Ke.cK,w.JZ,w.rE,f.CP,f.Cc,f.SO,f._4,f.IL,f.aj,f.kt,f.$w,R.F2,R.A9,qe.ae,pe.O,Qe.R,Ze.j,et.f,tt.U,gt,Qt,an,d.Jj,z.qZ6,L.D9,q.z,Q.B,de.R],styles:[".inbox-table-actions[_ngcontent-%COMP%]{display:flex;margin-bottom:1rem}.inbox-table-actions[_ngcontent-%COMP%]   .inbox-search-box[_ngcontent-%COMP%]{margin-right:1rem}.notification__card[_ngcontent-%COMP%]   .hidden-table[_ngcontent-%COMP%]{display:none}  ng2-smart-table-pager nav.ng2-smart-pagination-nav ul.ng2-smart-pagination.pagination li{padding:.5rem 0}tr.notification-row--new[_ngcontent-%COMP%]{font-weight:700}.notification-row[_ngcontent-%COMP%]{cursor:pointer}.unread-message[_ngcontent-%COMP%]{margin-top:.75rem;display:flex}.unread-message[_ngcontent-%COMP%]   .unread-message__icon[_ngcontent-%COMP%]{width:20px;height:20px;margin-right:.75rem}.unread-message[_ngcontent-%COMP%]   .unread-message__count[_ngcontent-%COMP%]{font-weight:600;color:#6b75f8}.notification__card[_ngcontent-%COMP%]{margin-top:36px}.notification__card[_ngcontent-%COMP%]     .ant-card-body{padding-left:0;padding-right:0;padding-top:5px}.notification__card[_ngcontent-%COMP%]     .ant-table.ant-table-small .ant-table-thead .ant-table-column-sorters{padding:0}.notification__card[_ngcontent-%COMP%]     .ant-table.ant-table-small .ant-table-tbody>tr>td{background-color:#fff;padding:8px 18px}.notification__card[_ngcontent-%COMP%]     .ant-table.ant-table-small .ant-table-thead>tr>th{background-color:#fff;padding:8px 18px}.modal-title-root[_ngcontent-%COMP%]{line-height:1rem}.modal-title-root[_ngcontent-%COMP%]   h1[_ngcontent-%COMP%]{font-size:2rem;font-weight:700;margin-bottom:8px;line-height:2.75rem}.modal-title-root[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-weight:400;font-size:.75rem;line-height:.875rem}.table-tab-header[_ngcontent-%COMP%]{border:1px solid #e5eaf2;margin-top:4px;border-radius:4px 4px 0 0}.table-tab-header[_ngcontent-%COMP%]     .table-mb{margin-top:0}nz-table.customized-table[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]{font-weight:400;background:#f7f9fc;border-top-left-radius:0;border-top-right-radius:0}nz-table.customized-table[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   th__summary[_ngcontent-%COMP%]{background:#f7f9fc}nz-table.customized-table[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]{border:1px solid #e5eaf2}.linkup-brio-modal-container[_ngcontent-%COMP%]   .subtitle[_ngcontent-%COMP%]{color:#50576d;font-weight:400;font-size:12px;line-height:14px;margin-bottom:0}.linkup-brio-modal-container[_ngcontent-%COMP%]   .mt-10[_ngcontent-%COMP%]{margin-top:10px}.linkup-brio-modal-container[_ngcontent-%COMP%]   .text-note[_ngcontent-%COMP%]{font-weight:400}.linkup-brio-modal-container[_ngcontent-%COMP%]   .popup-message[_ngcontent-%COMP%]{color:#222b45}.linkup-brio-modal-container[_ngcontent-%COMP%]   .btn-area[_ngcontent-%COMP%]{display:flex;gap:15px}"],changeDetection:0})}}return a})()}]}];let Un=(()=>{class a{static{this.\u0275fac=function(n){return new(n||a)}}static{this.\u0275mod=e.$C({type:a})}static{this.\u0275inj=e.G2t({imports:[u.iI.forChild(wn),u.iI]})}}return a})();var I=_(91425),te=_(74164);let Yn=(()=>{class a{static{this.\u0275fac=function(n){return new(n||a)}}static{this.\u0275mod=e.$C({type:a})}static{this.\u0275inj=e.G2t({providers:[P,s.ux2,s.l3U,H],imports:[d.MD,c.YN,Un,m.Jk,z.mBi.forRoot(),c.X1,g.md.forFeature
1(s.TFl.stateKey,s.TFl.reducer,{}),I.Vm.forFeature([s.TFl.effect]),g.md.forFeature(s.sQ2,s.pNL,{}),I.Vm.forFeature([s.z$g]),g.md.forFeature(te.EA,te.g5,{}),I.Vm.forFeature([te.hY]),g.md.forFeature(s.ZVQ,s.bLf,{}),I.Vm.forFeature([s.VvB]),g.md.forFeature(s.Upg,s.z$I,{}),I.Vm.forFeature([s.lfs]),g.md.forFeature(s.QK_,s.xzS,{}),I.Vm.forFeature([s.DJc]),g.md.forFeature(s.GIL,s.gUN,{}),I.Vm.forFeature([s.gjb]),g.md.forFeature(s.Dw_,s._Ax,{}),I.Vm.forFeature([s.oi_]),g.md.forFeature(s.AdG,s.NXI,{}),I.Vm.forFeature([s.bT8]),g.md.forFeature(s.zCb,s.nn9,{}),I.Vm.forFeature([s.TU7]),g.md.forFeature(s.mhY,s.ihF,{}),I.Vm.forFeature([s.TK4]),I.Vm.forFeature([s._FS]),g.md.forFeature(s.UjQ,s.Ul2,{}),I.Vm.forFeature([s.iGh]),g.md.forFeature(s.oeK,s.dOX,{}),I.Vm.forFeature([s.Xkh])]})}}return a})()},87568:(ie,F,_)=>{_.d(F,{QT:()=>A,Xy:()=>T,cJ:()=>O,tK:()=>M,wN:()=>v});var d=_(89417),u=_(19852),g=_(95871);const s=k=>k?.filter(P=>null!=P.item&&""!==P.item.trim())?.length,v=[{key:"handling_codes",columnKey:"spl_code",name:"spl_code"},{key:"description_of_content",name:"description_of_content"},{key:"description_of_content_list",columnKey:"item",name:"description_of_content"},{key:"carrier_code",name:"carrier_code"},{key:"ecommerce_item",name:"is_ecomm_item"}],T=[(0,u.Xj)("LBL_EXPORT_ORDER_DESC_OF_CONTENT_DUPLICATE_ERROR"),(0,u.f8)(1,"LBL_EXPORT_ORDER_DESC_OF_CONTENT_DUPLICATE_MIN_ERROR"),(0,u.Hl)(3,"LBL_EXPORT_ORDER_DESC_OF_CONTENT_DUPLICATE_MAX_ERROR",s)],A=[(0,u.Xj)("LBL_EXPORT_ORDER_DESC_OF_CONTENT_DUPLICATE_ERROR"),(0,u.f8)(1,"LBL_EXPORT_ORDER_DESC_OF_CONTENT_DUPLICATE_MIN_ERROR"),(0,u.Hl)(1,"LBL_EXPORT_ORDER_DESC_OF_CONTENT_DUPLICATE_MAX_ERROR",s)],M={hawb_number:{key:"hawb_number",defaultValue:"",label:"LBL_EXPORT_ORDER_NUMBER",validators:[d.k0.required,u.F$],controlType:"text",incorrectFormatMsg:"LBL_ALERT_ALPHANUMERIC"},ra_reference_number:{key:"ra_reference_number",defaultValue:"",label:"LBL_REFERENCE_ID_OPTIONAL",validators:[u.Jz.referenceId,d.k0.maxLength(50)],controlType:"text",incorrectFormatMsg:"LBL_ALERT_ALPHANUMERIC"},shipment_destination:{key:"shipment_destination",defaultValue:null,label:"LBL_FINAL_DESTINATION",validators:[d.k0.required],controlType:"select",placeholder:"LBL_PLACEHOLDER_SELECT_COUNTRY_CODE",options:[],optionMode:"groups",editable:!0},shipment_destination_area:{key:"shipment_destination_area",defaultValue:null,label:"LBL_FINAL_DESTINATION_PROVINCE_OR_STATE",placeholder:"LBL_PLACEHOLDER_SELECT_PROVINCE_OR_STATE",validators:[],controlType:"select",options:[],editable:!0},package_types:{key:"package_types",defaultValue:null,label:"LBL_PACKAGE_TYPE",validators:[(0,u.Rb)(1,"ERR_AT_LEAST_INPUT_ONE_RECORD",function e(k){return k?.filter(c=>!(0,g.gQT)(c.pieces))?.length})],controlType:"table",enableControlA:!0,columns:[{header:"LBL_PACKAGE_TYPE",field:"seq_no",editable:!1,width:"130px",controlType:"readonly-index",isIndex:!0},{header:"LBL_UNIT",field:"unit",width:"16%",editable:!0,validators:[u.F$],controlType:"text",incorrectFormatMsg:"LBL_ALERT_ALPHANUMERIC",attributes:["OPTIONAL"]},{header:"LBL_LENGTH",field:"length",width:"16%",editable:!0,validators:[(0,u.r)("LBL_ALERT_REQUIRED_POSITIVE_REAL_NUMBER")],controlType:"text",attributes:["OPTIONAL"]},{header:"LBL_WIDTH",field:"width",width:"16%",editable:!0,validators:[(0,u.r)("LBL_ALERT_REQUIRED_POSITIVE_REAL_NUMBER")],controlType:"text",attributes:["OPTIONAL"]},{header:"LBL_HEIGHT",field:"height",width:"16%",editable:!0,validators:[(0,u.r)("LBL_ALERT_REQUIRED_POSITIVE_REAL_NUMBER")],controlType:"text",attributes:["OPTIONAL"]},{header:"LBL_PCS",field:"pieces",editable:!0,width:"16%",validators:[u.UF,(0,u.nK)("LBL_ALERT_REQUIRED_POSITIVE_INTEGER_NUMBER")],controlType:"text"}],summary:(k,P)=>{const c=P?P.instant("LBL_TOTAL_PCS"):"LBL_TOTAL_PCS",m=P?P.instant("LBL_PCS_LOWERCASE"):"LBL_PCS_LOWERCASE";return`${c}: <strong>`+k.reduce(($,C)=>C.pieces?$+parseInt(C.pieces,10):$,0)+`${m}</strong>`}},ecommerce_item:{key:"ecommerce_item",label:"LBL_EXPORT_IS_ECOMM_ITEM",fullWidth:!0,defaultValue:"false",validators:[],controlType:"radio",options:[{label:"LBL_YES",value:"true"},{label:"LBL_NO",value:"false"}]},sp_temperature:{key:"sp_temperature",defaultValue:null,label:"LBL_EXPORT_EXPORT_ORDER_SPECIAL_TEMPERATURE",controlType:"checkbox"},sp_strategic:{key:"sp_strategic",defaultValue:null,label:"LBL_EXPORT_EXPORT_ORDER_SPECIAL_STRATEGIC",controlType:"checkbox"},sp_powder:{key:"sp_powder",defaultValue:null,label:"LBL_EXPORT_EXPORT_ORDER_SPECIAL_POWDER",controlType:"checkbox"},sp_liquid:{key:"sp_liquid",defaultValue:null,label:"LBL_EXPORT_EXPORT_ORDER_SPECIAL_LIQUID",controlType:"checkbox"},dangerous_goods:{key:"dangerous_goods",defaultValue:null,label:"LBL_MSG_DANGEROUS_GOOD",controlType:"checkbox"},lithium_battery_indicator:{key:"lithium_battery_indicator",defaultValue:!1,label:"LBL_MSG_LITHIUM_BATTERY",controlType:"checkbox"},total_weight:{key:"total_weight",defaultValue:null,label:"LBL_TOTAL_WEIGHT_KG",validators:[d.k0.required,(0,u.r)("LBL_ALERT_REQUIRED_POSITIVE_REAL_NUMBER")],controlType:"text"},total_volume:{key:"total_volume",defaultValue:null,label:"LBL_TOTAL_VOLUME_MC",labelRenderHtml:!0,validators:[d.k0.required,(0,u.r)("LBL_ALERT_REQUIRED_POSITIVE_REAL_NUMBER")],controlType:"text"},description_of_content:{key:"description_of_content",defaultValue:null,label:"LBL_DESCRIPTION_OF_CONTENT",placeholder:"LBL_PLACEHOLDER_SELECT_DESCRIPTION_OF_CONTENT",validators:[],controlType:"select",options:[],editable:!0},description_of_content_list:{key:"description_of_content_list",label:"LBL_DESCRIPTION_OF_CONTENT",defaultValue:[{item:null}
1],validators:A,controlType:"table",enableControlA:!0,tableConfig:{noHeader:!0,minNumOfItem:1,maxNumOfItem:3},columns:[{header:null,field:"item",editable:!0,controlType:"select",allowClear:!1,placeholder:"LBL_PLACEHOLDER_SELECT_DESCRIPTION_OF_CONTENT",validators:[],options:[],optionsArr:[]}]},origin_country_code:{key:"origin_country_code",defaultValue:null,label:"LBL_EXPORT_ORDER_ORIGIN_COUNTRY",validators:[d.k0.required],controlType:"select",placeholder:"LBL_PLACEHOLDER_SELECT_COUNTRY_CODE",options:[],optionMode:"groups",editable:!0},origin_province_code:{key:"origin_province_code",defaultValue:null,label:"LBL_EXPORT_ORDER_ORIGIN_PROVINCE_SLASH_STATE",placeholder:"LBL_PLACEHOLDER_SELECT_PROVINCE_OR_STATE",validators:[],controlType:"select",options:[],editable:!0},handling_codes:{key:"handling_codes",defaultValue:[],label:"",validators:[u.jT.match()],controlType:"table",enableControlA:!0,columns:[{header:"LBL_SPL_CODE",field:"spl_code",width:"50%",editable:!0,placeholder:"LBL_SELECT_SPI_CODE",validators:[],mockTranslateKey:"spl_code",controlType:"searchable-select",options:[]},{header:"LBL_PI_CODE",field:"pi_code",width:"50%",editable:!0,disabled:!0,placeholder:"LBL_SELECT_PI_CODE",validators:[],mockTranslateKey:"pi_code",controlType:"searchable-select",optionsArr:[]}],fullWidth:!0,editable:!0,deletable:!0},carrier_code:{key:"carrier_code",defaultValue:null,label:"LBL_CARRIER_CODE",validators:[d.k0.required],placeholder:"LBL_PLACEHOLDER_CARRIER_CODE",controlType:"select",options:[],editable:!0},screening_self_declaration:{key:"screening_self_declaration",defaultValue:null,label:"LBL_EXPORT_SCREENING_SELF_DECLARATION_DISCLAIMER",validators:[],controlType:"checkbox",editable:!0},screening_self_declaration_rf_code:{key:"screening_self_declaration_rf_code",defaultValue:null,label:"LBL_EXPORT_SCREENING_SELF_DECLARATION_RF_CODE",validators:[],controlType:"select",options:[],editable:!0},mawb_number:{key:"mawb_number",defaultValue:"",label:"LBL_MAWB_NUMBER_OPTIONAL",validators:[u.jW],controlType:"text"}},O={...M,package_types:{...M.package_types,columns:M.package_types.columns.map(k=>({...k,attributes:[]}))}}},27733:(ie,F,_)=>{_.d(F,{DL:()=>g,QE:()=>s,ZV:()=>v,l0:()=>u});var d=_(95871);const u=T=>{let O=null;return["1","1A","1B"].includes(T)?O=d.joI.import:["2","2A","2B"].includes(T)&&(O=d.joI.export),O};function g(T){return T&&"string"==typeof T&&11===T.length?`${T.slice(0,3)}-${T.slice(3,7)}-${T.slice(7)}`:"N/A"}function s(T){return T&&"string"==typeof T?T.split(",").map(O=>11===(O=O.trim()).length?`${O.slice(0,3)}-${O.slice(3,7)}-${O.slice(7)}`:"N/A").join(","):"N/A"}function v(T){return!T||"string"!=typeof T||T.length<11?"N/A":`${T.slice(0,3)}-${T.slice(3,7)}-${T.slice(7,11)}`}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.