1(self.webpackChunkangular_app=self.webpackChunkangular_app||[]).push([["apps_angular-app_src_app_configuration_data-table_setting_ts","apps_angular-app_src_app_modules_rf-screener-pages_rf-screener-pages_module_ts-node_modules_d-e3e417","node_modules_date-fns_addMonths_js"],{85212:(se,A,r)=>{"use strict";r.d(A,{n:()=>B});const B={bordered:!1,loading:!1,pagination:!1,sizeChanger:!1,title:!1,header:!0,footer:!0,expandable:!1,checkbox:!1,fixHeader:!1,noResult:!1,ellipsis:!0,simple:!1,size:"small",tableScroll:"unset",tableLayout:"fixed",position:"bottom"}},99792:(se,A,r)=>{"use strict";r.r(A),r.d(A,{RfScreenerPagesModule:()=>mn});var B=r(19852),X=r(63040),b=r(95871),ne=r(64831),e=r(54438),j=r(76965),Y=r(16351),N=r(64720),Q=r(62700),y=r(60177);let te=(()=>{class o{constructor(n,i){this.store=n,this.roleService=i,this.selectedLang="",this.langList=[],this.homeUrl$=i.getHomePageUrl()}ngOnInit(){this.store.dispatch((0,b.g8f)({role:"RF"})),this.store.dispatch((0,b.Alo)({role:"RF"})),this.store.select("language").subscribe(n=>{this.langList=n.supportLanList,this.selectedLang=n.currentLang}),this.menu=[{title:"LBL_NAVBAR_EXPORT",code:"export",routerLink:"home"},{title:"LBL_NAVBAR_PROFILE",code:"profile",routerLink:"profile"}]}ngOnDestroy(){this.store.dispatch((0,b.Et8)())}static{this.\u0275fac=function(i){return new(i||o)(e.rXU(j.il),e.rXU(ne.WK))}}static{this.\u0275cmp=e.VBU({type:o,selectors:[["hkaa-cargo-web-rf-pages"]],standalone:!1,decls:8,vars:4,consts:[[1,"home-nz-layout-wrap"],[3,"menu","logoLink"],[1,"home-router-outlet-main"]],template:function(i,t){1&i&&(e.j41(0,"nz-layout",0)(1,"nz-header"),e.nrm(2,"hkaa-cargo-web-header",1),e.nI1(3,"async"),e.k0s(),e.j41(4,"div",2),e.nrm(5,"router-outlet"),e.k0s()(),e.j41(6,"nz-footer"),e.nrm(7,"hkaa-cargo-web-footer"),e.k0s()),2&i&&(e.R7$(2),e.Y8G("menu",t.menu)("logoLink",e.bMT(3,2,t.homeUrl$)))},dependencies:[X.n3,Y.SH,Y.Fx,Y.BU,N.l,Q.n,y.Jj],styles:["[nz-input][_ngcontent-%COMP%], [nz-select-top-control][_ngcontent-%COMP%], [nz-select][_ngcontent-%COMP%]{background-color:#f7f9fc}nb-icon[_ngcontent-%COMP%]{width:20px;height:20px;font-size:20px}nz-header[_ngcontent-%COMP%]{background:#fff;padding:0;height:100px;box-shadow:0 2px 10px #8989891a;position:relative;z-index:1}nz-content[_ngcontent-%COMP%]{padding:0 50px;min-height:calc(100vh - 64px)!important}nz-footer[_ngcontent-%COMP%]{text-align:center}.shipment-page__message[_ngcontent-%COMP%]{position:relative}.shipment-page[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{vertical-align:initial;display:inline-flex;align-self:center}.shipment-page[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-style:normal;font-weight:400;font-size:15px;line-height:24px}.shipment-page__quick-access__container[_ngcontent-%COMP%]{display:table;width:100%}.shipment-page__quick-access__item[_ngcontent-%COMP%]{display:table-cell;vertical-align:top;width:20%;padding-right:8px}.shipment-page__quick-access__item.last-item[_ngcontent-%COMP%]{padding-right:0}.shipment-page__quick-access__item__layout[_ngcontent-%COMP%]{display:table;width:100%;min-height:80px;padding:8px 0 8px 12px;background-color:#fff;box-shadow:0 2px 10px #8989891a;border-radius:4px}.shipment-page__quick-access__item__layout[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{display:table-cell;vertical-align:middle}.shipment-page__quick-access__item__layout[_ngcontent-%COMP%] .overview-icon-wrapper[_ngcontent-%COMP%]{padding:4px;background-color:#54a09512;width:32px;height:32px;border-radius:4px;font-size:20px;text-align:center}.shipment-page__quick-access__item__layout[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{display:block}.shipment-page__quick-access__item__layout[_ngcontent-%COMP%] .arrow-ios-right[_ngcontent-%COMP%]{background-image:url(arrow-ios-right.02b9ad930754016e.svg);width:25px;height:24px}.shipment-page__quick-access__item__word[_ngcontent-%COMP%]{width:100%;padding-left:10px}.shipment-page__overview[_ngcontent-%COMP%]{position:relative;background-color:#fff;box-shadow:0 2px 10px #8989891a;border-radius:4px;padding:70px 60px 0 0}@media screen and (max-width: 1024px){.shipment-page__overview[_ngcontent-%COMP%]{padding-top:100px}}.shipment-page__overview[_ngcontent-%COMP%] .ant-steps-item-finish[_ngcontent-%COMP%] > .ant-steps-item-container[_ngcontent-%COMP%] > .ant-steps-item-content[_ngcontent-%COMP%] > .ant-steps-item-title[_ngcontent-%COMP%]{position:absolute;display:inline-flex;top:-40px;font-style:normal;font-weight:700;font-size:24px;line-height:24px;color:#222b45;width:140px}@media screen and (max-width: 1024px){.shipment-page__overview[_ngcontent-%COMP%] .ant-steps-item-finish[_ngcontent-%COMP%] > .ant-steps-item-container[_ngcontent-%COMP%] > .ant-steps-item-content[_ngcontent-%COMP%] > .ant-steps-item-title[_ngcontent-%COMP%]{position:relative;display:block;top:-70px;left:10px}}.shipment-page__overview[_ngcontent-%COMP%] .ant-steps-label-vertical[_ngcontent-%COMP%] .ant-steps-item-subtitle[_ngcontent-%COMP%]{position:relative;padding:7px;top:2px;font-style:13px;font-weight:400;font-size:13px;line-height:14px;color:#222b45}
1.shipment-page__overview[_ngcontent-%COMP%] .ant-steps-item-finish[_ngcontent-%COMP%] > .ant-steps-item-container[_ngcontent-%COMP%] > .ant-steps-item-content[_ngcontent-%COMP%] > .ant-steps-item-description[_ngcontent-%COMP%]{position:absolute;text-align:left;min-width:97px;max-width:160px;padding-left:60px;top:1.2rem;color:#50576d}@media screen and (max-width: 1024px){.shipment-page__overview[_ngcontent-%COMP%] .ant-steps-item-finish[_ngcontent-%COMP%] > .ant-steps-item-container[_ngcontent-%COMP%] > .ant-steps-item-content[_ngcontent-%COMP%] > .ant-steps-item-description[_ngcontent-%COMP%]{min-width:110px;padding-left:40px}}.shipment-page__overview[_ngcontent-%COMP%] .overview-session[_ngcontent-%COMP%] .ant-steps-item-finish[_ngcontent-%COMP%] > .ant-steps-item-container[_ngcontent-%COMP%] > .ant-steps-item-content[_ngcontent-%COMP%] > .ant-steps-item-description[_ngcontent-%COMP%]{max-width:175px}.shipment-page__overview[_ngcontent-%COMP%] .ant-steps-item-finish[_ngcontent-%COMP%] > .ant-steps-item-container[_ngcontent-%COMP%] > .ant-steps-item-tail[_ngcontent-%COMP%]:after{height:4px;width:100%;border-radius:0}.shipment-page__overview[_ngcontent-%COMP%] .ant-steps-item-finish[_ngcontent-%COMP%] .ant-steps-item-icon[_ngcontent-%COMP%]{width:20px;height:20px;top:-6px;left:-5px;padding:0;position:absolute;background-color:initial!important;border-color:initial!important}.form-spin-loading[_ngcontent-%COMP%] .ant-spin{position:fixed}.home-nz-layout-wrap[_ngcontent-%COMP%]{min-height:100%}.home-router-outlet-main[_ngcontent-%COMP%]{overflow:auto;padding-bottom:55px;margin-bottom:20px}"]})}}return o})();var U=r(15575),Z=r(7605),Oe=r(63020),Pe=r(42614),ie=r.n(Pe),H=r(26190),le=r(85212),J=r(96208),ce=r(40262),pe=r(14421),Se=r(19493),oe=r(49090);let ae=(()=>{class o extends ce.n5{constructor(n){super({pageContent:null,query:{page:0,size:10},meta:{page:0,size:10},lifecycle:{success:!1,loading:!1},checkedContent:[],confirmedContent:[]}),this.awbService=n,this.dataServiceQuery=i=>this.awbService?.getRfScreeningOrdersList(i)?.pipe((0,Se.s)(1),(0,oe.n)(t=>{const a=t?.body,g=this.transformRfScreeningOrdersPagingResponse(a);return(0,pe.of)({body:g})}))}transformRfScreeningOrdersPagingResponse(n){const t=n?.content?.map(a=>this.mapFromRfScreeningRequestToRfScreeningDisplayItem(a));return{...n,content:t}}mapFromRfScreeningRequestToRfScreeningDisplayItem(n){return n?{id:n?.id,awb_id:n?.awb_id,awb_number:n?.awb_number,ra_reference_number:n?.awb?.ra_reference_number,ra_code:n?.awb?.ra_code,weight:n?.screening_details?.weight,pieces:n?.screening_details?.pieces,lithium_battery:n?.screening_details?.lithium_battery,first_screen_method:n?.screening_details?.first_screen_method,secondary_screening:n?.screening_details?.secondary_screening,second_screen_method:n?.screening_details?.second_screen_method,screening_pass:n?.screening_details?.screening_pass,reject_reason:n?.screening_details?.reject_reason,screening_fail_remarks:n?.screening_details?.screening_fail_remarks,screening_images:n?.screening_details?.screening_images}:null}static{this.\u0275fac=function(i){return new(i||o)(e.KVO(b.aSf))}}static{this.\u0275prov=e.jDH({token:o,factory:o.\u0275fac})}}return o})();var ge=r(51235),xe=r(1390),re=r(57094),L=r(68018);let q=(()=>{class o extends xe.jh{constructor(n,i,t){super({editingScreeningOrderItems:null,updatingDetail:null,screeningResultPopupState:null}),this.messageService=n,this.translateService=i,this.screeningOrderService=t,this.getState$=this.select(a=>a),this.getEditingScreeningOrderItems$=this.select(a=>a?.editingScreeningOrderItems),this.getUpdatingDetail$=this.select(a=>a?.updatingDetail),this.getScreeningResultPopupState$=this.select(a=>a?.screeningResultPopupState),this.getScreeningResultDetailForPopup$=this.select(this.getEditingScreeningOrderItems$,this.getScreeningResultPopupState$,(a,g)=>a&&0!==a?.length&&g?a?.find(M=>M?.id===g?.id):null),this.updateEditingScreeningOrderItems=this.updater((a,g)=>{const M=g?.map(x=>({...x,isEdit:!1}));return{...a,editingScreeningOrderItems:M}}),this.updateEditingScreeningOrderItemDetail=this.updater((a,g)=>{const M=[...a?.editingScreeningOrderItems||[]],x=M?.find($=>$?.id===g?.id);return x.isEdit=g?.isEdit,x.lithium_battery=g?.lithium_battery,x.first_screen_method=g?.first_screen_method,x.secondary_screening=g?.secondary_screening,x.second_screen_method=g?.second_screen_method,x.screening_pass=g?.screening_pass,x.reject_reason=g?.reject_reason,x.screening_fail_remarks=g?.screening_fail_remarks,x.confirmPressed=g?.confirmPressed,{...a,editingScreeningOrderItems:M}}),this.updateUpdatingDetail=this.updater((a,g)=>({...a,updatingDetail:{updateTime:g}})),this.updateScreeningResultPopupState=this.updater((a,{id:g,isScreeningResultPopupVisible:M})=>({...a,screeningResultPopupState:{id:g,isScreeningResultPopupVisible:M}})),this.submitScreeningResult=this.effect(a=>a?.pipe((0,oe.n)(()=>{const g=this.get()?.screeningResultPopupState?.id,M=this.get()?.editingScreeningOrderItems?.find($=>$?.id===g),x={screening_pass:M?.screening_pass,screening_fail_remarks:M?.screening_fail_remarks?.trim(),secondary_screening:M?.secondary_screening,lithium_battery:M?.lithium_battery,screening_reasons:[],first_screen_method:M?.first_screen_method,second_screen_method:M?.second_screen_method,reject_reason:M?.reject_reason?.trim()};return this.screeningOrderService?.update(x,g).pipe((0,oe.n)($=>{if("success"===$?.message){const W=this.translateService?.instant("LBL_TOASTMSG_EXPORT_UPDATE_SCREENING_RESULT_SUCCESSFULLY");return this.messageService?.create("success",W),this.updateScreeningResultPopupState({id:null,isScreeningResultPopupVisible:!1}),this.updateEditingScreeningOrderItemDetail({...M,isEdit:!1}),(0,pe.of)(ge.w)}}))})))}static{this.\u0275fac=function(i){return new(i||o)(e.KVO(re.xh),e.KVO(L.c$),e.KVO(b.SU_))}}static{this.\u0275prov=e.jDH({token:o,factory:o.\u0275fac})}}return o}
1)();var V=r(89417),ve=r(19448),p=r(41951),s=r(50513),l=r(16389),c=r(25930),u=r(97529),d=r(25703),O=r(9541),_=r(23359),h=r(26501),f=r(48852),P=r(66646),S=r(82358),E=r(11672),I=r(57188),C=r(93602),w=r(1997),R=r(21011),v=r(86505),_e=r(26132),G=r(29082),F=r(14954),k=r(40523),D=r(24391),z=r(43707),T=r(31737),de=r(78558);const me=()=>({true:"pass",false:"reject"}),ue=o=>["../","hawb-v2",o,"screening"],ye=(o,m,n)=>({firstRange:o,secondRange:m,tableTotalPage:n});function Re(o,m){if(1&o&&(e.j41(0,"th",13),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&o){const n=m.$implicit;e.Y8G("nzWidth",n.width)("nzColumnKey",n.columnKey)("nzShowSort",n.showSort)("nzSortFn",!!n.columnKey)("nzShowFilter",n.showFilter)("nzFilterFn",n.showFilter)("nzFilters",n.listOfFilter),e.R7$(),e.SpI(" ",e.bMT(2,8,n.name)," ")}}function ze(o,m){if(1&o&&(e.qex(0),e.EFF(1),e.nI1(2,"stringDisplay"),e.bVm()),2&o){const n=e.XpG(3).$implicit;e.R7$(),e.SpI("(",e.bMT(2,1,null==n?null:n.ra_reference_number),")")}}function Te(o,m){if(1&o&&(e.qex(0),e.j41(1,"a",20),e.EFF(2),e.nI1(3,"stringDisplay"),e.DNE(4,ze,3,3,"ng-container",21),e.k0s(),e.bVm()),2&o){const n=e.XpG(2).$implicit;e.R7$(),e.Y8G("routerLink",e.eq3(5,ue,null==n?null:n.awb_id)),e.R7$(),e.SpI(" ",e.bMT(3,3,null==n?null:n.awb_number)," "),e.R7$(2),e.Y8G("ngIf",null==n?null:n.ra_reference_number)}}function he(o,m){1&o&&(e.EFF(0),e.nI1(1,"translate")),2&o&&e.JRh(e.bMT(1,1,"LBL_NOT_APPLICABLE"))}function fe(o,m){if(1&o){const n=e.RV6();e.j41(0,"i",22),e.bIt("click",function(){e.eBV(n);const t=e.XpG(2).$implicit,a=e.XpG();return e.Njj(a.onEdit(t))}),e.k0s()}}function be(o,m){if(1&o){const n=e.RV6();e.qex(0),e.j41(1,"td"),e.DNE(2,Te,5,7,"ng-container",14)(3,he,2,3,"ng-template",null,3,e.C5r),e.k0s(),e.j41(5,"td"),e.EFF(6),e.nI1(7,"stringDisplay"),e.k0s(),e.j41(8,"td"),e.EFF(9),e.nI1(10,"numberDisplay"),e.k0s(),e.j41(11,"td"),e.EFF(12),e.nI1(13,"numberDisplay"),e.k0s(),e.j41(14,"td"),e.EFF(15),e.nI1(16,"yesNoDisplay"),e.k0s(),e.j41(17,"td"),e.EFF(18),e.nI1(19,"mockTranslate"),e.k0s(),e.j41(20,"td"),e.EFF(21),e.nI1(22,"yesNoDisplay"),e.k0s(),e.j41(23,"td"),e.EFF(24),e.nI1(25,"mockTranslate"),e.k0s(),e.j41(26,"td"),e.nI1(27,"mapDisplayPipe"),e.EFF(28),e.nI1(29,"passRejectDisplay"),e.k0s(),e.j41(30,"td",15),e.nrm(31,"hkaa-cargo-web-column-tooltip",16),e.k0s(),e.j41(32,"td",15),e.nrm(33,"hkaa-cargo-web-column-tooltip",16),e.k0s(),e.j41(34,"td"),e.DNE(35,fe,1,0,"i",17),e.k0s(),e.j41(36,"td",18)(37,"i",19),e.bIt("click",function(){e.eBV(n);const t=e.XpG().$implicit,a=e.XpG();return e.Njj(a.showImagePopup(t))}),e.k0s()(),e.bVm()}if(2&o){const n=e.sdS(4),i=e.XpG().$implicit;e.R7$(2),e.Y8G("ngIf",null==i?null:i.awb_number)("ngIfElse",n),e.R7$(4),e.JRh(e.bMT(7,21,null==i?null:i.ra_code)),e.R7$(3),e.JRh(e.bMT(10,23,null==i?null:i.weight)),e.R7$(3),e.JRh(e.bMT(13,25,null==i?null:i.pieces)),e.R7$(3),e.JRh(e.i5U(16,27,null==i?null:i.lithium_battery,!0)),e.R7$(3),e.JRh(e.i5U(19,30,(null==i?null:i.first_screen_method)||"-","screening_method")),e.R7$(3),e.JRh(e.i5U(22,33,null==i?null:i.secondary_screening,!0)),e.R7$(3),e.JRh(e.i5U(25,36,(null==i?null:i.second_screen_method)||"-","screening_method")),e.R7$(2),e.HbH(e.i5U(27,39,null==i?null:i.screening_pass,e.lJ4(45,me))),e.R7$(2),e.SpI(" ",e.i5U(29,42,null==i?null:i.screening_pass,!0)," "),e.R7$(2),e.Y8G("nzEllipsis",!0),e.R7$(),e.Y8G("tooltipPlacement","topLeft")("tooltipTrigger","hover")("value",(null==i?null:i.reject_reason)||"-"),e.R7$(),e.Y8G("nzEllipsis",!0),e.R7$(),e.Y8G("tooltipPlacement","topLeft")("tooltipTrigger","hover")("value",(null==i?null:i.screening_fail_remarks)||"-"),e.R7$(2),e.Y8G("ngIf",null==(null==i?null:i.screening_pass))}}function Ie(o,m){if(1&o&&(e.j41(0,"span"),e.EFF(1),e.nI1(2,"stringDisplay"),e.k0s()),2&o){const n=e.XpG(2).$implicit;e.R7$(),e.SpI("(",e.bMT(2,1,null==n?null:n.ra_reference_number),")")}}function we(o,m){if(1&o&&(e.qex(0),e.nrm(1,"nz-option",26),e.nI1(2,"dropdownLabelDisplay"),e.nrm(3,"nz-option",26),e.nI1(4,"dropdownLabelDisplay"),e.nrm(5,"nz-option",26),e.nI1(6,"dropdownLabelDisplay"),e.nrm(7,"nz-option",24),e.nI1(8,"dropdownLabelDisplay"),e.bVm()),2&o){const n=e.XpG(2).$implicit,i=e.XpG();e.R7$(),e.Y8G("nzValue",i.ScreeningMethodEnum.XRayMachine)("nzLabel",e.i5U(2,11,i.ScreeningMethodEnum.XRayMachine,"screening_method"))("nzDisabled",(null==n?null:n.first_screen_method)===i.ScreeningMethodEnum.XRayMachine),e.R7$(2),e.Y8G("nzValue",i.ScreeningMethodEnum.ETD)("nzLabel",e.i5U(4,14,i.ScreeningMethodEnum.ETD,"screening_method"))("nzDisabled",(null==n?null:n.first_screen_method)===i.ScreeningMethodEnum.ETD),e.R7$(2),e.Y8G("nzValue",i.ScreeningMethodEnum.HandSearch)("nzLabel",e.i5U(6,17,i.ScreeningMethodEnum.HandSearch,"screening_method"))("nzDisabled",(null==n?null:n.first_screen_method)===i.ScreeningMethodEnum.HandSearch),e.R7$(2),e.Y8G("nzValue",i.ScreeningMethodEnum.ETDAndHandSearch)("nzLabel",e.i5U(8,20,i.ScreeningMethodEnum.ETDAndHandSearch,"screening_method"))}}function ke(o,m){if(1&o){const n=e.RV6();e.j41(0,"td"),e.EFF(1),e.nI1(2,"stringDisplay"),e.DNE(3,Ie,3,3,"span",21),e.k0s(),e.j41(4,"td"),e.EFF(5),e.nI1(6,"stringDisplay"),e.k0s(),e.j41(7,"td"),e.EFF(8),e.nI1(9,"numberDis
1play"),e.k0s(),e.j41(10,"td"),e.EFF(11),e.nI1(12,"numberDisplay"),e.k0s(),e.j41(13,"td")(14,"nz-select",23,4),e.nI1(16,"translate"),e.mxI("ngModelChange",function(t){e.eBV(n);const a=e.XpG().$implicit;return e.DH7(a.lithium_battery,t)||(a.lithium_battery=t),e.Njj(t)}),e.bIt("focusout",function(){e.eBV(n);const t=e.XpG(2);return e.Njj(t.performMarkForCheck())})("keydown.tab",function(){e.eBV(n);const t=e.sdS(15),a=e.XpG().$implicit;return e.Njj(a.lithium_battery=null==t?null:t.activatedValue)}),e.nrm(17,"nz-option",24),e.nI1(18,"translate"),e.nrm(19,"nz-option",24),e.nI1(20,"translate"),e.k0s()(),e.j41(21,"td")(22,"nz-select",25,5),e.nI1(24,"translate"),e.mxI("ngModelChange",function(t){e.eBV(n);const a=e.XpG().$implicit;return e.DH7(a.first_screen_method,t)||(a.first_screen_method=t),e.Njj(t)}),e.bIt("focusout",function(){e.eBV(n);const t=e.XpG(2);return e.Njj(t.performMarkForCheck())})("keydown.tab",function(){e.eBV(n);const t=e.sdS(23),a=e.XpG().$implicit;return e.Njj(a.first_screen_method=null==t?null:t.activatedValue)}),e.nrm(25,"nz-option",26),e.nI1(26,"dropdownLabelDisplay"),e.nrm(27,"nz-option",26),e.nI1(28,"dropdownLabelDisplay"),e.nrm(29,"nz-option",26),e.nI1(30,"dropdownLabelDisplay"),e.k0s()(),e.j41(31,"td")(32,"nz-select",23,6),e.nI1(34,"translate"),e.mxI("ngModelChange",function(t){e.eBV(n);const a=e.XpG().$implicit;return e.DH7(a.secondary_screening,t)||(a.secondary_screening=t),e.Njj(t)}),e.bIt("focusout",function(){e.eBV(n);const t=e.XpG(2);return e.Njj(t.performMarkForCheck())})("ngModelChange",function(t){e.eBV(n);const a=e.XpG().$implicit,g=e.XpG();return e.Njj(g.onChangeScreenScreening(t,a))})("keydown.tab",function(){e.eBV(n);const t=e.sdS(33),a=e.XpG().$implicit,g=e.XpG();return e.Njj(g.onScreenScreeningKeydown(a,null==t?null:t.activatedValue))}),e.nrm(35,"nz-option",24),e.nI1(36,"translate"),e.nrm(37,"nz-option",24),e.nI1(38,"translate"),e.k0s()(),e.j41(39,"td")(40,"nz-select",27,7),e.nI1(42,"translate"),e.nI1(43,"translate"),e.mxI("ngModelChange",function(t){e.eBV(n);const a=e.XpG().$implicit;return e.DH7(a.second_screen_method,t)||(a.second_screen_method=t),e.Njj(t)}),e.bIt("focusout",function(){e.eBV(n);const t=e.XpG(2);return e.Njj(t.performMarkForCheck())})("keydown.tab",function(){e.eBV(n);const t=e.sdS(41),a=e.XpG().$implicit;return e.Njj(a.second_screen_method=null==t?null:t.activatedValue)}),e.DNE(44,we,9,23,"ng-container",21),e.k0s()(),e.j41(45,"td")(46,"nz-select",28,8),e.nI1(48,"translate"),e.mxI("ngModelChange",function(t){e.eBV(n);const a=e.XpG().$implicit;return e.DH7(a.screening_pass,t)||(a.screening_pass=t),e.Njj(t)}),e.bIt("ngModelChange",function(t){e.eBV(n);const a=e.XpG().$implicit,g=e.XpG();return e.Njj(g.onChangeScreeningPass(t,a))})("focusout",function(){e.eBV(n);const t=e.XpG(2);return e.Njj(t.performMarkForCheck())})("keydown.tab",function(){e.eBV(n);const t=e.sdS(47),a=e.XpG().$implicit,g=e.XpG();return e.Njj(g.onScreeningPassKeydown(a,null==t?null:t.activatedValue))}),e.nrm(49,"nz-option",24),e.nI1(50,"translate"),e.nrm(51,"nz-option",24),e.nI1(52,"translate"),e.k0s()(),e.j41(53,"td")(54,"input",29),e.mxI("ngModelChange",function(t){e.eBV(n);const a=e.XpG().$implicit;return e.DH7(a.reject_reason,t)||(a.reject_reason=t),e.Njj(t)}),e.bIt("focusin",function(){e.eBV(n);const t=e.XpG(2);return e.Njj(t.performMarkForCheck())})("focusout",function(){e.eBV(n);const t=e.XpG(2);return e.Njj(t.performMarkForCheck())}),e.k0s()(),e.j41(55,"td")(56,"input",30),e.mxI("ngModelChange",function(t){e.eBV(n);const a=e.XpG().$implicit;return e.DH7(a.screening_fail_remarks,t)||(a.screening_fail_remarks=t),e.Njj(t)}),e.bIt("focusout",function(){e.eBV(n);const t=e.XpG(2);return e.Njj(t.performMarkForCheck())}),e.k0s()(),e.j41(57,"td")(58,"i",31),e.bIt("click",function(){e.eBV(n);const t=e.XpG().$implicit,a=e.XpG();return e.Njj(a.onConfirm(t))}),e.k0s(),e.j41(59,"i",32),e.bIt("click",function(){e.eBV(n);const t=e.XpG().$implicit,a=e.XpG();return e.Njj(a.onCancel(t))}),e.k0s()(),e.j41(60,"td",18)(61,"i",19),e.bIt("click",function(){e.eBV(n);const t=e.XpG().$implicit,a=e.XpG();return e.Njj(a.showImagePopup(t))}),e.k0s()()}if(2&o){const n=e.XpG(),i=n.$implicit,t=n.$implicit,a=e.XpG();e.R7$(),e.SpI(" ",e.bMT(2,54,null==i?null:i.awb_number)," "),e.R7$(2),e.Y8G("ngIf",null==i?null:i.ra_reference_number),e.R7$(2),e.JRh(e.bMT(6,56,null==i?null:i.ra_code)),e.R7$(3),e.JRh(e.bMT(9,58,null==i?null:i.weight)),e.R7$(3),e.JRh(e.bMT(12,60,null==i?null:i.pieces)),e.R7$(3),e.HbH(null!=t&&t.confirmPressed&&null==(null==t?null:t.lithium_battery)?"input-error":"input-default"),e.Y8G("nzPlaceHolder",e.bMT(16,62,"LBL_SELECT")),e.R50("ngModel",t.lithium_battery),e.R7$(3),e.Y8G("nzValue",!0)("nzLabel",e.bMT(18,64,"LBL_YES")),e.R7$(2),e.Y8G("nzValue",!1)("nzLabel",e.bMT(20,66,"LBL_NO")),e.R7$(3),e.Y8G("nzDropdownMatchSelectWidth",!1)("nzPlaceHolder",e.bMT(24,68,"LBL_SELECT")),e.R50("ngModel",t.first_screen_method),e.R7$(3),e.Y8G("nzValue",a.ScreeningMethodEnum.XRayMachine)("nzLabel",e.i5U(26,70,a.ScreeningMethodEnum.XRayMachine,"screening_method"))("nzDisabled",(null==t?null:t.second_screen_method)===a.ScreeningMethodEnum.XRayMachine),e.R7$(2),e.Y8G("nzValue",a.ScreeningMethodEnum.ETD)("nzLabel",e.i5U(28,73,a.ScreeningMethodEnum.ETD,"screening_method"))("nzDisabled",(null==t?null:t.second_screen_method)===a.ScreeningMethodEnum.ETD),e.R7$(2),e.Y8G("nzValue",a.ScreeningMethodEnum.HandSearch)("nzLabel",e.i5U(30,76,a.ScreeningMethodEnum.HandSearch,"screening_method"))("nzDisabled",(null==t?null:t.second_screen_method)===a.ScreeningMethodEnum.HandSearch),e.R7$(3),e.HbH(null!=t&&t.confirmPressed&&null==(null==t?null:t.secondary_screening)?"input-error":"input-default"),e.Y8G("nzPlaceHolder",e.bMT(34,79,"LBL_SELECT")),e.R50("ngModel",t.secondary_screening),e.R7$(3),e.Y8G("nzValue",!0)("nzLabel",e.bMT(36,81,"LBL_YES")),e.R7$(2),e.Y8G("nzValue",!1)("nzLabel",e.bMT(38,83,"LBL_NO")),e.R7$(3),e.HbH(null!=t&&t.confirmPressed&&null!==(null==t?null:t.first_screen_method)&&null!==!(null!=t&&t.second_screen_method)&&(null==t?null:t.first_screen_method)===(null==t?null:t.second_screen_method)?"input-error":"input-default"),e.Y8G("nzDropdownMatchSelectWidth",!1)("nzPlaceHolder",e.bMT(42,85,"LBL_SELECT")),e.R50("ngModel",t.second_screen_method),e.Y8G("nzDisabled",!(null!=t&&t.secondary_screening))("nzNotFoundContent",e.bMT(43,87,"LBL_NO_DATA")),e.R7$(4),e.Y8G("ngIf",null==t?null:t.secondary_screening),e.R7$(2),e.HbH(null!=t&&t.confirmPressed&&null==(null==t?null:t.screening_pass)?"input-error":"input-default"),e.Y8G("nzPlaceHolder",e.bMT(48,89,"LBL_SELECT")),e.R50("ngModel",t.screening_pass),e.Y8G("nzShowArrow",!0)("nzDropdownMatchSelectWidth",!1),e.R7$(3),e.Y8G("nzValue",!0)("nzLabel",e.bMT(50,91,"LBL_PASS")),e.R7$(2),e.Y8G("nzValue",!1)("nzLabel",e.bMT(52,93,"LBL_REJECT")),e.R7$(3),e.R50("ngModel",t.reject_reason),e.Y8G("disabled",null==t?null:t.screening_pass),e.R7$(2),e.R50("ngModel",t.screening_fail_remarks)}}function De(o,m){if(1&o&&(e.qex(0),e.j41(1,"tr"),e.DNE(2,be,38,46,"ng-container",14)(3,ke,62,95,"ng-template",null,2,e.C5r),e.k0s(),e.bVm()),2&o){const n=m.$implicit,i=e.sdS(4);e.R7$(2),e.Y8G("ngIf",!(null!=n&&n.isEdit))("ngIfElse",i)}}function Le(o,m){if(1&o){const n=e.RV6();e.j41(0,"div",33)(1,"span"),e.EFF(2),e.nI1(3,"async"),e.nI1(4,"async"),e.nI1(5,"async"),e.nI1(6,"translate"),e.k0s(),e.j41(7,"nz-pagination",34),e.nI1(8,"async"),e.nI1(9,"async"),e.nI1(10,"async"),e.bIt("nzPageIndexChange",function(t){e.eBV(n);const a=e.XpG();return e.Njj(a.handlePageIndexChange(t))}),e.k0s()()}if(2&o){const n=e.XpG();e.R7$(2),e.SpI(" ",e.i5U(6,11,"LBL_SHOWING_PAGING",e.sMw(20,ye,e.bMT(3,5,n.tablePageItemUpper$)||0,e.bMT(4,7,n.tablePageItemLower$)||0,e.bMT(5,9,n.tableTotal$)||0))," "),e.R7$(5),e.Y8G("nzPageIndex",e.bMT(8,14,n.tablePage$))("nzPageSize",e.bMT(9,16,n.tablePageSize$))("nzSize",n.dataTableStyleSetting.size)("nzTotal",e.bMT(10,18,n.tableTotal$))}}let Ge=(()=>{class o extends ce.vC{constructor(n,i,t,a,g,M){super(),this.store=n,this.translateService=i,this.dataTranslateService=t,this.dataStore=a,this.screeningPageStore=g,this.cdr=M,this.showImagePopupEvent=new e.bkB,this.ScreeningMethodEnum=b.X_U,this.columns=[{name:"LBL_
1EXPORT_ORDER_NUMBER_AND_REF_ID",columnKey:"awb_number",showSort:!1,showFilter:!1,width:"9%"},{name:"LBL_RA_CODE",columnKey:"ra_code",showSort:!0,showFilter:!1,width:"7%"},{name:"LBL_GROSS_WT",columnKey:"weight",showSort:!1,showFilter:!1,width:"6%"},{name:"LBL_NO_OF_PCS",columnKey:"pieces",showSort:!1,showFilter:!1,width:"5%"},{name:"LBL_EXPORT_SCREENING_LITHIUM_BATTERY_SHORT",columnKey:"lithium_battery",showSort:!1,showFilter:!1,width:"7%"},{name:"LBL_EXPORT_SCREENING_FIRST_SCREEN_METHOD",columnKey:"first_screen_method",showSort:!1,showFilter:!1,width:"10%"},{name:"LBL_SECOND_SCREENING_SHORT",columnKey:"secondary_screening",showSort:!1,showFilter:!1,width:"9%"},{name:"LBL_EXPORT_SCREENING_SECOND_SCREEN_METHOD",columnKey:"second_screen_method",showSort:!1,showFilter:!1,width:"10%"},{name:"LBL_RESULT",columnKey:"screening_pass",showSort:!1,showFilter:!1,width:"7%"},{name:"LBL_EXPORT_SCREENING_REJECT_REASON",columnKey:"reject_reason",showSort:!1,showFilter:!1,width:"7%"},{name:"LBL_REMARKS",columnKey:"screening_fail_remarks",showSort:!1,showFilter:!1,width:"7%"},{name:"",columnKey:"",showSort:!1,showFilter:!1,width:"7%"},{name:"LBL_IMAGES",columnKey:"images",showSort:!1,showFilter:!1,width:"7%"}]}onEdit(n){const i={...n,lithium_battery:!1,first_screen_method:b.X_U.XRayMachine,secondary_screening:!1};this.screeningPageStore?.updateEditingScreeningOrderItemDetail({...i,isEdit:!0})}showImagePopup(n){this.showImagePopupEvent.emit(n)}onChangeScreenScreening(n,i){n||this.screeningPageStore?.updateEditingScreeningOrderItemDetail({...i,second_screen_method:null})}onChangeScreeningPass(n,i){this.cdr.markForCheck(),n&&this.screeningPageStore?.updateEditingScreeningOrderItemDetail({...i,reject_reason:null})}performMarkForCheck(){this.cdr.markForCheck()}onConfirm(n){this.screeningPageStore?.updateEditingScreeningOrderItemDetail({...n,confirmPressed:!0}),this.validateScreeningResultDetail(n)&&this.screeningPageStore?.updateScreeningResultPopupState({id:n?.id,isScreeningResultPopupVisible:!0})}onCancel(n){this.screeningPageStore?.updateEditingScreeningOrderItemDetail({...n,lithium_battery:null,first_screen_method:null,secondary_screening:null,second_screen_method:null,screening_pass:null,reject_reason:null,screening_fail_remarks:null,isEdit:!1,confirmPressed:!1})}validateScreeningResultDetail(n){return!(!n||this.isBooleanInputNullOrUndefined(n?.lithium_battery)||this.isBooleanInputNullOrUndefined(n?.secondary_screening)||this.isSameScreenMethodOption(n?.first_screen_method,n?.second_screen_method)||this.isBooleanInputNullOrUndefined(n?.screening_pass))}
1isBooleanInputNullOrUndefined(n){return null==n}isStringInputNullOrUndefined(n){return null==n}isSameScreenMethodOption(n,i){return!this.isStringInputNullOrUndefined(n)&&!this.isStringInputNullOrUndefined(i)&&n===i}rowClick(){}trackByName(n,i){return i.awb_number}observeFilterGroupFn(){this.dataStore.updateQueryLoadingData({query:{},resetPageNumber:!0})}handlePageIndexChangeHook(){}ngOnDestroyHook(){}ngOnInitHook(){}onQueryParamsChangeHook(){}ngOnInit(){this.dataStore?.pageContent$?.pipe((0,Z.Q)(this.destroyed$))?.subscribe(n=>{n&&this.screeningPageStore?.updateEditingScreeningOrderItems(n)}),super.ngOnInit()}ngOnDestroy(){super.ngOnDestroy()}onScreenScreeningKeydown(n,i){n.secondary_screening=i,this.onChangeScreenScreening(n.secondary_screening,n)}onScreeningPassKeydown(n,i){n.screening_pass=i,this.onChangeScreeningPass(n.screening_pass,n)}static{this.\u0275fac=function(i){return new(i||o)(e.rXU(j.il),e.rXU(L.c$),e.rXU(b.ABT),e.rXU(ae),e.rXU(q),e.rXU(e.gRc))}}static{this.\u0275cmp=e.VBU({type:o,selectors:[["hkaa-cargo-web-rf-screening-order-table"]],outputs:{showImagePopupEvent:"showImagePopupEvent"},standalone:!1,features:[e.Vt3],decls:13,vars:20,consts:[["dynamicTable",""],["footer",""],["editTemplate",""],["noAwbNo",""],["lithiumBatterySelectInput",""],["firstScreenMethodSelectInput",""],["secondaryScreeningSelectInput",""],["secondScreenMethodSelectInput",""],["screeningPassSelectInput",""],[3,"nzSpinning"],["data-testid","rf-screening-order-table",1,"table-style",3,"nzQueryParams","nzBordered","nzData","nzFooter","nzFrontPagination","nzShowPagination","nzShowSizeChanger","nzSimple","nzSize","nzTableLayout"],[3,"nzWidth","nzColumnKey","nzShowSort","nzSortFn","nzShowFilter","nzFilterFn","nzFilters",4,"ngFor","ngForOf"],[4,"ngFor","ngForOf","ngForTrackBy"],[3,"nzWidth","nzColumnKey","nzShowSort","nzSortFn","nzShowFilter","nzFilterFn","nzFilters"],[4,"ngIf","ngIfElse"],[3,"nzEllipsis"],[3,"tooltipPlacement","tooltipTrigger","value"],["class","icon icon-pencil",3,"click",4,"ngIf"],["align","center"],[1,"icon","icon-image-fill",3,"click"],[3,"routerLink"],[4,"ngIf"],[1,"icon","icon-pencil",3,"click"],[2,"width","100%",3,"ngModelChange","focusout","keydown.tab","nzPlaceHolder","ngModel"],[3,"nzValue","nzLabel"],["nzAllowClear","",2,"width","100%",3,"ngModelChange","focusout","keydown.tab","nzDropdownMatchSelectWidth","nzPlaceHolder","ngModel"],[3,"nzValue","nzLabel","nzDisabled"],["nzAllowClear","",2,"width","100%",3,"ngModelChange","focusout","keydown.tab","nzDropdownMatchSelectWidth","nzPlaceHolder","ngModel","nzDisabled","nzNotFoundContent"],[2,"width","100%",3,"ngModelChange","focusout","keydown.tab","nzPlaceHolder","ngModel","nzShowArrow","nzDropdownMatchSelectWidth"],["type","text","nz-input","","maxlength","100",3,"ngModelChange","focusin","focusout","ngModel","disabled"],["type","text","nz-input","","maxlength","100",3,"ngModelChange","focusout","ngModel"],[1,"icon","icon-check",3,"click"],[1,"icon","icon-close","ml-16",3,"click"],[1,"cdp-data-table__pagination-footer"],["nzShowQuickJumper","",3,"nzPageIndexChange","nzPageIndex","nzPageSize","nzSize","nzTotal"]],template:function(i,t){if(1&i){const a=e.RV6();e.j41(0,"nz-spin",9),e.nI1(1,"async"),e.j41(2,"nz-table",10,0),e.nI1(4,"async"),e.bIt("nzQueryParams",function(M){return e.eBV(a),e.Njj(t.onQueryParamsChange(M))}),e.j41(5,"thead")(6,"tr"),e.DNE(7,Re,3,10,"th",11),e.k0s()(),e.j41(8,"tbody"),e.DNE(9,De,5,2,"ng-container",12),e.nI1(10,"async"),e.k0s()()(),e.DNE(11,Le,11,24,"ng-template",null,1,e.C5r)}if(2&i){const a=e.sdS(3),g=e.sdS(12);e.Y8G("nzSpinning",e.bMT(1,14,t.tableLoading$)),e.R7$(2),e.Y8G("nzBordered",t.dataTableStyleSetting.bordered)("nzData",e.bMT(4,16,t.pageData$))("nzFooter",g)("nzFrontPagination",!1)("nzShowPagination",t.dataTableStyleSetting.pagination)("nzShowSizeChanger",t.dataTableStyleSetting.sizeChanger)("nzSimple",t.dataTableStyleSetting.simple)("nzSize",t.dataTableStyleSetting.size)("nzTableLayout",t.dataTableStyleSetting.tableLayout),e.R7$(5),e.Y8G("ngForOf",t.columns),e.R7$(2),e.Y8G("ngForOf",a.data)("ngForOf",e.bMT(10,18,null==t.screeningPageStore?null:t.screeningPageStore.getEditingScreeningOrderItems$))("ngForTrackBy",t.trackByName)}},dependencies:[X.Wk,y.Sq,y.bT,V.me,V.BC,V.tU,V.vS,w.ld,w.WI,R.Sy,_.CP,_.Cc,_.SO,_._4,_.IL,_.aj,_.kt,_.$w,v.ae,P.a,_e.F,y.Jj,L.D9,G.z,F.p,k.W,D.O,z.N,T.t,de.k],styles:[".shipment-page__message[_ngcontent-%COMP%]{position:relative}.shipment-page[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{vertical-align:initial;display:inline-flex;align-self:center}.shipment-page[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-style:normal;font-weight:400;font-size:15px;line-height:24px}.shipment-page__quick-access__container[_ngcontent-%COMP%]{display:table;width:100%}.shipment-page__quick-access__item[_ngcontent-%COMP%]{display:table-cell;vertical-align:top;width:20%;padding-right:8px}.shipment-page__quick-access__item.last-item[_ngcontent-%COMP%]{padding-right:0}.shipment-page__quick-access__item__layout[_ngcontent-%COMP%]{display:table;width:100%;min-height:80px;padding:8px 0 8px 12px;background-color:#fff;box-shadow:0 2px 10px #8989891a;border-radius:4px}.shipment-page__quick-access__item__layout[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{display:table-cell;vertical-align:middle}.shipment-page__quick-access__item__layout[_ngcontent-%COMP%] .overview-icon-wrapper[_ngcontent-%COMP%]{padding:4px;background-color:#54a09512;width:32px;height:32px;border-radius:4px;font-size:20px;text-align:center}.shipment-page__quick-access__item__layout[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{display:block}.shipment-page__quick-access__item__layout[_ngcontent-%COMP%] .arrow-ios-right[_ngcontent-%COMP%]{background-image:url(arrow-ios-right.02b9ad930754016e.svg);width:25px;height:24px}.shipment-page__quick-access__item__word[_ngcontent-%COMP%]{width:100%;padding-left:10px}.shipment-page__overview[_ngcontent-%COMP%]{position:relative;background-color:#fff;box-shadow:0 2px 10px #8989891a;border-radius:4px;padding:70px 60px 0 0}@media screen and (max-width: 1024px){.shipment-page__overview[_ngcontent-%COMP%]{padding-top:100px}}.shipment-page__overview[_ngcontent-%COMP%] .ant-steps-item-finish[_ngcontent-%COMP%] > .ant-steps-item-container[_ngcontent-%COMP%] > .ant-steps-item-content[_ngcontent-%COMP%] > .ant-steps-item-title[_ngcontent-%COMP%]{position:absolute;display:inline-flex;top:-40px;font-style:normal;font-weight:700;font-size:24px;line-height:24px;color:#222b45;width:140px}@media screen and (max-width: 1024px){.shipment-page__overview[_ngcontent-%COMP%] .ant-steps-item-finish[_ngcontent-%COMP%] > .ant-steps-item-container[_ngcontent-%COMP%] > .ant-steps-item-content[_ngcontent-%COMP%] > .ant-steps-item-title[_ngcontent-%COMP%]{position:relative;display:block;top:-70px;left:10px}}.shipment-page__overview[_ngcontent-%COMP%] .ant-steps-label-vertical[_ngcontent-%COMP%] .ant-steps-item-subtitle[_ngcontent-%COMP%]{position:relative;padding:7px;top:2px;font-style:13px;font-weight:400;font-size:13px;line-height:14px;color:#222b45}
1.shipment-page__overview[_ngcontent-%COMP%] .ant-steps-item-finish[_ngcontent-%COMP%] > .ant-steps-item-container[_ngcontent-%COMP%] > .ant-steps-item-content[_ngcontent-%COMP%] > .ant-steps-item-description[_ngcontent-%COMP%]{position:absolute;text-align:left;min-width:97px;max-width:160px;padding-left:60px;top:1.2rem;color:#50576d}@media screen and (max-width: 1024px){.shipment-page__overview[_ngcontent-%COMP%] .ant-steps-item-finish[_ngcontent-%COMP%] > .ant-steps-item-container[_ngcontent-%COMP%] > .ant-steps-item-content[_ngcontent-%COMP%] > .ant-steps-item-description[_ngcontent-%COMP%]{min-width:110px;padding-left:40px}}.shipment-page__overview[_ngcontent-%COMP%] .overview-session[_ngcontent-%COMP%] .ant-steps-item-finish[_ngcontent-%COMP%] > .ant-steps-item-container[_ngcontent-%COMP%] > .ant-steps-item-content[_ngcontent-%COMP%] > .ant-steps-item-description[_ngcontent-%COMP%]{max-width:175px}.shipment-page__overview[_ngcontent-%COMP%] .ant-steps-item-finish[_ngcontent-%COMP%] > .ant-steps-item-container[_ngcontent-%COMP%] > .ant-steps-item-tail[_ngcontent-%COMP%]:after{height:4px;width:100%;border-radius:0}.shipment-page__overview[_ngcontent-%COMP%] .ant-steps-item-finish[_ngcontent-%COMP%] .ant-steps-item-icon[_ngcontent-%COMP%]{width:20px;height:20px;top:-6px;left:-5px;padding:0;position:absolute;background-color:initial!important;border-color:initial!important}.form-spin-loading[_ngcontent-%COMP%] .ant-spin{position:fixed}.home-nz-layout-wrap[_ngcontent-%COMP%]{min-height:100%}.home-router-outlet-main[_ngcontent-%COMP%]{overflow:auto;padding-bottom:55px;margin-bottom:20px}.screening-admin[_ngcontent-%COMP%]{overflow:hidden;padding:32px 0;position:relative}.screening-admin__global-search[_ngcontent-%COMP%]{margin-bottom:44px;margin-top:36px;padding-left:20px}.screening-admin[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{font-weight:700;font-size:20px;line-height:20px}.table-style[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] > td[_ngcontent-%COMP%]:first-child, .table-style[_ngcontent-%COMP%] th[_ngcontent-%COMP%]:first-child{padding-left:24px}.table-style[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] > td[_ngcontent-%COMP%]:last-child, .table-style[_ngcontent-%COMP%] th[_ngcontent-%COMP%]:last-child{padding-right:24px}.table-style[_ngcontent-%COMP%] nz-table-title-footer.ant-table-footer[_ngcontent-%COMP%]{padding:8px 16px}.full-width-card-table[_ngcontent-%COMP%] .ant-card-body[_ngcontent-%COMP%]{padding:0 0 24px}.download-log-button[_ngcontent-%COMP%]{position:absolute;top:40px;right:0}i[_ngcontent-%COMP%]{cursor:pointer}.icon[_ngcontent-%COMP%]{position:relative}.icon-pencil[_ngcontent-%COMP%]:before{content:url(pencil.e1610222a9ed0f77.svg)}.icon-check[_ngcontent-%COMP%]{top:5px}.icon-check[_ngcontent-%COMP%]:before{content:url(check.112e8843153c4aaa.svg)}.icon-close[_ngcontent-%COMP%]:before{content:url(close.9bdd9ae362297911.svg)}.icon-image-fill[_ngcontent-%COMP%]:before{content:url(image-fill.aab9b684bc26bf03.svg)}.icon-attach[_ngcontent-%COMP%]:before{content:url(attach.15f0a3b556f6e146.svg)}.icon-trash-2-gray-18[_ngcontent-%COMP%]:before{content:url(trash-2-gray-18.c98960aee8f5ea15.svg)}.rf-screener-overview-export-screening-log[_ngcontent-%COMP%]:before{content:url(download.bf956ddde59e6ab7.svg)}.confirm-modal[_ngcontent-%COMP%]{padding:0 16px;overflow:hidden}.confirm-modal[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font-weight:700;font-size:32px;line-height:44px;color:#222B45,100%}.confirm-modal__remarks[_ngcontent-%COMP%]{margin-top:16px}.confirm-modal__remarks[_ngcontent-%COMP%] label[_ngcontent-%COMP%], .confirm-modal__remarks[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:15px;line-height:24px}
1.confirm-modal__remarks[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{font-weight:300}.confirm-modal__remarks[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-weight:600}.confirm-modal__button-list[_ngcontent-%COMP%]{margin-top:32px}.confirm-modal__button-list[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{float:right}.confirm-modal__button-list[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child{margin-right:16px}th.white-header[_ngcontent-%COMP%]{background-color:#fff!important}.table[_ngcontent-%COMP%], .th[_ngcontent-%COMP%], .td[_ngcontent-%COMP%]{background-color:#f7f9fc!important}.table-header-cell[_ngcontent-%COMP%]{background-color:#f7f9fc!important;font-size:15px;padding-left:.5rem;padding-right:1rem}.table-header-fixed-width[_ngcontent-%COMP%]{min-width:70px}.body-content[_ngcontent-%COMP%], .table-body[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{background-color:#f7f9fc!important;font-size:15px;line-height:24px;padding-left:.5rem}.input-error[_ngcontent-%COMP%]{border-color:#dc6859}nz-select.input-error.ant-select[_ngcontent-%COMP%] nz-select-top-control{border-color:#dc6859}.pass[_ngcontent-%COMP%]{font-weight:700;color:#41a727}.reject[_ngcontent-%COMP%]{font-weight:700;color:#dc6859}.primary-color[_ngcontent-%COMP%]{color:#54a095}.h6[_ngcontent-%COMP%]{font-size:18px;line-height:24px;margin-bottom:16px}.popup-divider[_ngcontent-%COMP%]{width:935px;height:2px;margin-left:-80px;margin-top:32px;background:#e5eaf2;transform:scaleY(-1)}.blur-border-button[_ngcontent-%COMP%]{border-color:#54a095}.blur-border-button[_ngcontent-%COMP%]:disabled{background-color:#fff;border-color:#8f9bb3;color:#8f9bb3}nz-upload[_ngcontent-%COMP%] .upload-tip[_ngcontent-%COMP%]{display:block;font-size:12px;line-height:14px;margin-top:8px}nz-upload[_ngcontent-%COMP%] .file-list-wrap[_ngcontent-%COMP%]{color:#54a095;font-size:13px;line-height:20px;margin-top:8px;padding:0 54px 0 22px;position:relative}nz-upload[_ngcontent-%COMP%] .file-list-wrap[_ngcontent-%COMP%] .icon-attach[_ngcontent-%COMP%]{position:absolute;top:1px;left:0}nz-upload[_ngcontent-%COMP%] .file-list-wrap[_ngcontent-%COMP%] .icon-trash-2-gray-18[_ngcontent-%COMP%]{position:absolute;top:1px;right:27px}.check-box[_ngcontent-%COMP%] .form-field-checkbox{font-size:13px;line-height:20px}.need-ellipsis[_ngcontent-%COMP%]{width:200px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.need-ellipsis.remarks-field[_ngcontent-%COMP%]{width:100px}.download-pdf-button[_ngcontent-%COMP%]{height:32px;padding:5px 32px;margin-top:29px}.dropdown-select-125px[_ngcontent-%COMP%] .ant-select-dropdown{min-width:125px}"]})}}return o})();const je=()=>({width:"780px"}),$e=o=>[o],Be=()=>({true:"pass",false:"reject"});function Ne(o,m){if(1&o&&(e.qex(0),e.EFF(1),e.nI1(2,"translate"),e.nI1(3,"stringDisplay"),e.bVm()),2&o){const n=e.XpG().ngIf;e.R7$(),e.Lme(" (",e.bMT(2,2,"LBL_REF_ID"),": ",e.bMT(3,4,null==n?null:n.ra_reference_number),")")}}function Ue(o,m){if(1&o&&(e.j41(0,"th",20),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&o){const n=m.$implicit;e.R7$(),e.SpI(" ",e.bMT(2,1,null==n?null:n.name)," ")}}function Ve(o,m){if(1&o&&(e.j41(0,"tr")(1,"td"),e.EFF(2),e.nI1(3,"stringDisplay"),e.k0s(),e.j41(4,"td"),e.EFF(5),e.nI1(6,"numberDisplay"),e.k0s(),e.j41(7,"td"),e.EFF(8),e.nI1(9,"numberDisplay"),e.k0s(),e.j41(10,"td"),e.EFF(11),e.nI1(12,"yesNoDisplay"),e.k0s()()),2&o){const n=m.$implicit;e.R7$(2),e.JRh(e.bMT(3,4,null==n?null:n.ra_code)),e.R7$(3),e.JRh(e.bMT(6,6,null==n?null:n.weight)),e.R7$(3),e.JRh(e.bMT(9,8,null==n?null:n.pieces)),e.R7$(3),e.JRh(e.i5U(12,10,null==n?null:n.lithium_battery,!0))}}function Ae(o,m){if(1&o&&(e.qex(0),e.j41(1,"span"),e.EFF(2),e.nI1(3,"mockTranslate"),e.k0s(),e.bVm()),2&o){const n=e.XpG().ngIf;e.R7$(2),e.JRh(e.i5U(3,1,null==n?null:n.first_screen_method,"screening_method"))}}function Xe(o,m){if(1&o&&(e.qex(0),e.j41(1,"span"),e.EFF(2),e.nI1(3,"mockTranslate"),e.k0s(),e.bVm()),2&o){const n=e.XpG().ngIf;e.R7$(2),e.JRh(e.i5U(3,1,null==n?null:n.second_screen_method,"screening_method"))}}function Ye(o,m){if(1&o&&(e.qex(0),e.j41(1,"span"),e.EFF(2),e.nI1(3,"stringDisplay"),e.k0s(),e.bVm()),2&o){const n=e.XpG().ngIf;e.R7$(2),e.JRh(e.bMT(3,1,null==n?null:n.reject_reason))}}function He(o,m){if(1&o&&(e.qex(0),e.j41(1,"span"),e.EFF(2),e.nI1(3,"stringDisplay"),e.k0s(),e.bVm()),2&o){const n=e.XpG().ngIf;e.R7$(2),e.JRh(e.bMT(3,1,null==n?null:n.screening_fail_remarks))}}function Je(o,m){if(1&o){const n=e.RV6();e.j41(0,"div",5)(1,"h3"),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"p"),e.EFF(5),e.nI1(6,"translate"),e.j41(7,"strong")(8,"span",6),e.EFF(9),e.nI1(10,"stringDisplay"),e.DNE(11,Ne,4,6,"ng-container",7),e.k0s()(),e.EFF(12," ? "),e.k0s(),e.j41(13,"nz-table",8,1)(15,"thead")(16,"tr"),e.DNE(17,Ue,3,3,"th",9),e.k0s()(),e.j41(18,"tbody",10),e.DNE(19,Ve,13,13,"tr",11),e.k0s()(),e.j41(20,"div",12)(21,"div",13)(22,"p"),e.EFF(23),e.nI1(24,"translate"),e.k0s(),e.DNE(25,Ae,4,4,"ng-container",14),e.k0s(),e.j41(26,"div",15)(27,"p"),e.EFF(28),e.nI1(29,"translate"),e.k0s(),e.j41(30,"span"),e.EFF(31),e.nI1(32,"yesNoDisplay"),e.k0s()()(),e.j41(33,"div",12)(34,"div",13)(35,"p"),e.EFF(36),e.nI1(37,"translate"),e.k0s(),e.DNE(38,Xe,4,4,"ng-container",14),e.k0s(),e.j41(39,"div",15)(40,"p"),e.EFF(41),e.nI1(42,"translate"),e.k0s(),e.j41(43,"span"),e.nI1(44,"mapDisplayPipe"),e.EFF(45),e.nI1(46,"passRejectDisplay"),e.k0s()()(),e.j41(47,"div",12)(48,"div",13)(49,"p"),e.EFF(50),e.nI1(51,"translate"),e.k0s(),e.DNE(52,Ye,4,3,"ng-container",14),e.k0s(),e.j41(53,"div",13)(54,"p"),e.EFF(55),e.nI1(56,"translate"),e.k0s(),e.DNE(57,He,4,3,"ng-container",14),e.k0s()(),e.j41(58,"div")(59,"span",16),e.EFF(60),e.nI1(61,"translate"),e.k0s()(),e.j41(62,"div",17)(63,"button",18),e.bIt("click",function(){e.eBV(n);const t=e.XpG(2);return e.Njj(t.submitUpdate())}),e.EFF(64),e.nI1(65,"translate"),e.k0s(),e.j41(66,"button",19),e.bIt("click",function(){e.eBV(n);const t=e.XpG(2);return e.Njj(t.closePopup())}),e.EFF(67),e.nI1(68,"translate"),e.k0s()()()}if(2&o){const n=m.ngIf,i=e.sdS(14),t=e.XpG(2),a=e.sdS(4);e.R7$(2),e.SpI("",e.bMT(3,33,"LBL_CONFIRM_SCREENING_RESULT"),"?"),e.R7$(3),e.SpI(" ",e.bMT(6,35,"PGMSG_CONFIRM_SCREENING_RESULT_FIRST")," "),e.R7$(4),e.SpI(" ",e.bMT(10,37,null==n?null:n.awb_number)," "),e.R7$(2),e.Y8G("ngIf",null==n?null:n.ra_reference_number),e.R7$(2),e.Y8G("nzData",e.eq3(66,$e,n))("nzShowPagination",!1)("nzSize","small"),e.R7$(4),e.Y8G("ngForOf",t.confirmColumn),e.R7$(2),e.Y8G("ngForOf",i.data),e.R7$(),e.Y8G("nzGutter",8),e.R7$(3),e.SpI("",e.bMT(24,39,"LBL_EXPORT_SCREENING_FIRST_SCREEN_METHOD"),":"),e.R7$(2),e.Y8G("ngIf",null==n?null:n.first_screen_method)("ngIfElse",a),e.R7$(3),e.SpI("",e.bMT(29,41,"LBL_SECONDARY_SEARCH"),":"),e.R7$(3),e.JRh(e.i5U(32,43,null==n?null:n.secondary_screening,!0)),e.R7$(2),e.Y8G("nzGutter",8),e.R7$(3),e.SpI("",e.bMT(37,46,"LBL_EXPORT_SCREENING_SECOND_SCREEN_METHOD"),":"),e.R7$(2),e.Y8G("ngIf",null==n?null:n.second_screen_method)("ngIfElse",a),e.R7$(3),e.SpI("",e.bMT(42,48,"LBL_RESULT"),":"),e.R7$(2),e.HbH(e.i5U(44,50,null==n?null:n.screening_pass,e.lJ4(68,Be))),e.R7$(2),e.SpI(" ",e.i5U(46,53,null==n?null:n.screening_pass,!0)," "),e.R7$(2),e.Y8G("nzGutter",8),e.R7$(3),e.SpI("",e.bMT(51,56,"LBL_EXPORT_SCREENING_REJECT_REASON"),":"),e.R7$(2),e.Y8G("ngIf",null==n?null:n.reject_reason)("ngIfElse",a),e.R7$(3),e.SpI("",e.bMT(56,58,"LBL_REMARKS"),":"),e.R7$(2),e.Y8G("ngIf",null==n?null:n.screening_fail_remarks)("ngIfElse",a),e.R7$(3),e.JRh(e.bMT(61,60,"LBL_MSG_CONFIRM_SCREENING_RESULT_DISCLAIMER")),e.R7$(4),e.JRh(e.bMT(65,62,"BTN_CONFIRM")),e.R7$(3),e.JRh(e.bMT(68,64,"BTN_CANCEL"))}}function We(o,m){if(1&o&&(e.qex(0),e.DNE(1,Je,69,69,"div",4),e.nI1(2,"async"),e.bVm()),2&o){const n=e.XpG();e.R7$(),e.Y8G("ngIf",e.bMT(2,1,n.screeningResultDisplay$))}}
1function Ke(o,m){1&o&&e.EFF(0),2&o&&e.JRh("-")}let Qe=(()=>{class o{constructor(n){this.editStore=n,this.id=null,this.screeningResultDisplay$=null,this.screeningResultPopupState$=null,this.confirmColumn=[{name:"LBL_RA_CODE"},{name:"LBL_GROSS_WT"},{name:"LBL_NO_OF_PCS"},{name:"LBL_LITHIUM_BATTERY"}]}ngOnInit(){this.screeningResultPopupState$=this.editStore?.getScreeningResultPopupState$,this.screeningResultDisplay$=this.editStore?.getScreeningResultDetailForPopup$,this.editStore?.getScreeningResultPopupState$?.subscribe(n=>{this.id=n?.id})}submitUpdate(){this.editStore?.submitScreeningResult({updateTime:new Date})}closePopup(){this.editStore?.updateScreeningResultPopupState({id:null,isScreeningResultPopupVisible:!1})}static{this.\u0275fac=function(i){return new(i||o)(e.rXU(q))}}static{this.\u0275cmp=e.VBU({type:o,selectors:[["hkaa-cargo-web-rf-screening-result-popup"]],standalone:!1,decls:5,vars:7,consts:[["screeningResultNullDisplayRef",""],["confirmTable",""],["nzClosable","false",3,"nzVisible","nzTitle","nzFooter","nzStyle"],[4,"nzModalContent"],["class","confirm-modal",4,"ngIf"],[1,"confirm-modal"],[1,"primary-color"],[4,"ngIf"],["nzBordered","","data-testid","rf-screening-result-table",1,"table","mt-10","confirm-modal__table",3,"nzData","nzShowPagination","nzSize"],["class","table-header-cell table-header-fixed-width text__no_bold",4,"ngFor","ngForOf"],[1,"table-body"],[4,"ngFor","ngForOf"],["nz-row","",1,"mt-16",3,"nzGutter"],["nz-col","","nzSpan","12",1,"normal-field-block","mb-16"],[4,"ngIf","ngIfElse"],["nz-col","",1,"normal-field-block","mb-16"],["nz-typography","","nzType","danger"],[1,"confirm-modal__button-list"],["nz-button","","nzType","primary",3,"click"],["nz-button","",1,"confirm-modal__button-list__cancel-button",3,"click"],[1,"table-header-cell","table-header-fixed-width","text__no_bold"]],template:function(i,t){if(1&i&&(e.j41(0,"nz-modal",2),e.nI1(1,"async"),e.DNE(2,We,3,3,"ng-container",3),e.k0s(),e.DNE(3,Ke,1,1,"ng-template",null,0,e.C5r)),2&i){let a;e.Y8G("nzVisible",null==(a=e.bMT(1,4,t.screeningResultPopupState$))?null:a.isScreeningResultPopupVisible)("nzTitle",null)("nzFooter",null)("nzStyle",e.lJ4(6,je))}},dependencies:[y.Sq,y.bT,s.aO,l.c,c.p,u.Uq,u.e,_.CP,_.SO,_._4,_.IL,_.aj,_.kt,h.F2,h.A9,f.Di,y.Jj,L.D9,G.z,F.p,k.W,D.O,z.N,T.t],styles:[".shipment-page__message[_ngcontent-%COMP%]{position:relative}.shipment-page[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{vertical-align:initial;display:inline-flex;align-self:center}.shipment-page[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-style:normal;font-weight:400;font-size:15px;line-height:24px}.shipment-page__quick-access__container[_ngcontent-%COMP%]{display:table;width:100%}.shipment-page__quick-access__item[_ngcontent-%COMP%]{display:table-cell;vertical-align:top;width:20%;padding-right:8px}.shipment-page__quick-access__item.last-item[_ngcontent-%COMP%]{padding-right:0}.shipment-page__quick-access__item__layout[_ngcontent-%COMP%]{display:table;width:100%;min-height:80px;padding:8px 0 8px 12px;background-color:#fff;box-shadow:0 2px 10px #8989891a;border-radius:4px}.shipment-page__quick-access__item__layout[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{display:table-cell;vertical-align:middle}.shipment-page__quick-access__item__layout[_ngcontent-%COMP%] .overview-icon-wrapper[_ngcontent-%COMP%]{padding:4px;background-color:#54a09512;width:32px;height:32px;border-radius:4px;font-size:20px;text-align:center}.shipment-page__quick-access__item__layout[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{display:block}.shipment-page__quick-access__item__layout[_ngcontent-%COMP%] .arrow-ios-right[_ngcontent-%COMP%]{background-image:url(arrow-ios-right.02b9ad930754016e.svg);width:25px;height:24px}.shipment-page__quick-access__item__word[_ngcontent-%COMP%]{width:100%;padding-left:10px}.shipment-page__overview[_ngcontent-%COMP%]{position:relative;background-color:#fff;box-shadow:0 2px 10px #8989891a;border-radius:4px;padding:70px 60px 0 0}@media screen and (max-width: 1024px){.shipment-page__overview[_ngcontent-%COMP%]{padding-top:100px}}.shipment-page__overview[_ngcontent-%COMP%] .ant-steps-item-finish[_ngcontent-%COMP%] > .ant-steps-item-container[_ngcontent-%COMP%] > .ant-steps-item-content[_ngcontent-%COMP%] > .ant-steps-item-title[_ngcontent-%COMP%]{position:absolute;display:inline-flex;top:-40px;font-style:normal;font-weight:700;font-size:24px;line-height:24px;color:#222b45;width:140px}@media screen and (max-width: 1024px){.shipment-page__overview[_ngcontent-%COMP%] .ant-steps-item-finish[_ngcontent-%COMP%] > .ant-steps-item-container[_ngcontent-%COMP%] > .ant-steps-item-content[_ngcontent-%COMP%] > .ant-steps-item-title[_ngcontent-%COMP%]{position:relative;display:block;top:-70px;left:10px}}.shipment-page__overview[_ngcontent-%COMP%] .ant-steps-label-vertical[_ngcontent-%COMP%] .ant-steps-item-subtitle[_ngcontent-%COMP%]{position:relative;padding:7px;top:2px;font-style:13px;font-weight:400;font-size:13px;line-height:14px;color:#222b45}
1.shipment-page__overview[_ngcontent-%COMP%] .ant-steps-item-finish[_ngcontent-%COMP%] > .ant-steps-item-container[_ngcontent-%COMP%] > .ant-steps-item-content[_ngcontent-%COMP%] > .ant-steps-item-description[_ngcontent-%COMP%]{position:absolute;text-align:left;min-width:97px;max-width:160px;padding-left:60px;top:1.2rem;color:#50576d}@media screen and (max-width: 1024px){.shipment-page__overview[_ngcontent-%COMP%] .ant-steps-item-finish[_ngcontent-%COMP%] > .ant-steps-item-container[_ngcontent-%COMP%] > .ant-steps-item-content[_ngcontent-%COMP%] > .ant-steps-item-description[_ngcontent-%COMP%]{min-width:110px;padding-left:40px}}.shipment-page__overview[_ngcontent-%COMP%] .overview-session[_ngcontent-%COMP%] .ant-steps-item-finish[_ngcontent-%COMP%] > .ant-steps-item-container[_ngcontent-%COMP%] > .ant-steps-item-content[_ngcontent-%COMP%] > .ant-steps-item-description[_ngcontent-%COMP%]{max-width:175px}.shipment-page__overview[_ngcontent-%COMP%] .ant-steps-item-finish[_ngcontent-%COMP%] > .ant-steps-item-container[_ngcontent-%COMP%] > .ant-steps-item-tail[_ngcontent-%COMP%]:after{height:4px;width:100%;border-radius:0}.shipment-page__overview[_ngcontent-%COMP%] .ant-steps-item-finish[_ngcontent-%COMP%] .ant-steps-item-icon[_ngcontent-%COMP%]{width:20px;height:20px;top:-6px;left:-5px;padding:0;position:absolute;background-color:initial!important;border-color:initial!important}.form-spin-loading[_ngcontent-%COMP%] .ant-spin{position:fixed}.home-nz-layout-wrap[_ngcontent-%COMP%]{min-height:100%}.home-router-outlet-main[_ngcontent-%COMP%]{overflow:auto;padding-bottom:55px;margin-bottom:20px}.confirm-modal[_ngcontent-%COMP%]{padding:0 16px;overflow:hidden}.confirm-modal[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font-weight:700;font-size:32px;line-height:44px;color:#222b45}.confirm-modal__table[_ngcontent-%COMP%]{background:#f7f9fc}.confirm-modal__button-list[_ngcontent-%COMP%]{margin-top:32px}.confirm-modal__button-list[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{float:right}.confirm-modal__button-list[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child{margin-right:16px}.confirm-modal__button-list__cancel-button[_ngcontent-%COMP%]{border-color:#54a095}.body-content[_ngcontent-%COMP%], .table-body[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{background-color:#f7f9fc!important;font-size:15px;line-height:24px;padding-left:.5rem}.table-header-cell[_ngcontent-%COMP%]{background-color:#f7f9fc!important;font-size:15px;padding-left:.5rem;padding-right:1rem}.table-header-fixed-width[_ngcontent-%COMP%]{min-width:70px}.primary-color[_ngcontent-%COMP%]{color:#54a095}.pass[_ngcontent-%COMP%]{font-weight:700;color:#41a727}.reject[_ngcontent-%COMP%]{font-weight:700;color:#dc6859}"]})}}return o})();var Ze=r(72264);const Ee=()=>({top:"30px"}),qe=()=>({true:"Y",false:"N"}),en=(o,m)=>["../","image-hash",o,m];function nn(o,m){1&o&&e.nrm(0,"nz-empty",44)}function tn(o,m){if(1&o&&(e.j41(0,"th",49),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&o){const n=m.$implicit;e.Y8G("width",n.width),e.R7$(),e.JRh(e.bMT(2,2,n.name))}}function on(o,m){if(1&o&&(e.j41(0,"tr")(1,"td")(2,"div",50),e.EFF(3),e.nI1(4,"stringDisplay"),e.k0s()(),e.j41(5,"td"),e.EFF(6),e.nI1(7,"numberDisplay"),e.k0s(),e.j41(8,"td"),e.EFF(9),e.nI1(10,"dateDisplay"),e.k0s(),e.j41(11,"td"),e.EFF(12),e.nI1(13,"mapDisplayPipe"),e.k0s(),e.j41(14,"td")(15,"div",51),e.EFF(16),e.nI1(17,"stringDisplay"),e.k0s()(),e.j41(18,"td",52)(19,"a",53),e.nrm(20,"i",54),e.k0s()()()),2&o){const n=m.$implicit,i=e.XpG(3);e.R7$(3),e.JRh(e.bMT(4,6,n.images_hash)),e.R7$(3),e.JRh(e.bMT(7,8,n.count)),e.R7$(3),e.JRh(e.i5U(10,10,n.date+"T"+n.time,i.COMMON_DATA_FORMAT.DATE_TIME_THREE)),e.R7$(3),e.JRh(e.i5U(13,13,n.irregularity,e.lJ4(18,qe))),e.R7$(4),e.JRh(e.bMT(17,16,n.remarks)),e.R7$(3),e.Y8G("routerLink",e.l_i(19,en,null==i.popupData?null:i.popupData.id,n.images_hash))}}function an(o,m){if(1&o&&(e.j41(0,"nz-table",45)(1,"thead")(2,"tr"),e.DNE(3,tn,3,4,"th",46),e.k0s()(),e.j41(4,"tbody",47),e.DNE(5,on,21,22,"tr",48),e.k0s()()),2&o){const n=e.XpG(2);e.Y8G("nzShowPagination",!1)("nzData",null==n.popupData?null:n.popupData.screening_images)("nzSize","small"),e.R7$(3),e.Y8G("ngForOf",n.imageUploadRecordTable),e.R7$(2),e.Y8G("ngForOf",null==n.popupData?null:n.popupData.screening_images)}}function rn(o,m){if(1&o&&(e.j41(0,"div",55),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&o){const n=e.XpG(2);e.R7$(),e.JRh(e.bMT(2,1,n.uploadImageError))}}function sn(o,m){if(1&o){const n=e.RV6();e.j41(0,"div",57),e.nrm(1,"i",58),e.j41(2,"span"),e.EFF(3),e.nI1(4,"stringDisplay"),e.k0s(),e.j41(5,"i",59),e.bIt("click",function(){const t=e.eBV(n).index,a=e.XpG(3);return e.Njj(a.removeFile(t))}),e.k0s()()}if(2&o){const n=m.$implicit;
1e.R7$(3),e.JRh(e.bMT(4,1,n))}}function ln(o,m){if(1&o&&e.DNE(0,sn,6,3,"div",56),2&o){const n=e.XpG(2);e.Y8G("ngForOf",n.fileNames)}}function cn(o,m){if(1&o){const n=e.RV6();e.qex(0),e.j41(1,"nz-spin",28)(2,"h2",29),e.EFF(3),e.nI1(4,"translate"),e.k0s(),e.DNE(5,nn,1,0,"nz-empty",30)(6,an,6,5,"ng-template",null,0,e.C5r),e.nrm(8,"nz-divider",31),e.j41(9,"h2",29),e.EFF(10),e.nI1(11,"translate"),e.k0s(),e.j41(12,"div",32)(13,"div",10)(14,"nz-upload",33,1),e.bIt("click",function(){e.eBV(n);const t=e.XpG();return e.Njj(t.uploadEvent())}),e.mxI("nzFileListChange",function(t){e.eBV(n);const a=e.XpG();return e.DH7(a.fileList,t)||(a.fileList=t),e.Njj(t)}),e.j41(16,"button",34),e.nrm(17,"i",35),e.EFF(18),e.nI1(19,"translate"),e.k0s(),e.j41(20,"span",36),e.EFF(21),e.nI1(22,"translate"),e.k0s()(),e.DNE(23,rn,3,3,"div",37),e.k0s()(),e.DNE(24,ln,1,1,"ng-template",null,2,e.C5r),e.j41(26,"div",38)(27,"div",39)(28,"div",10),e.nrm(29,"hkaa-cargo-web-form-field",23),e.k0s()(),e.j41(30,"div",39)(31,"div",10),e.nrm(32,"hkaa-cargo-web-form-field",23),e.k0s()(),e.j41(33,"div",40)(34,"div",10),e.nrm(35,"hkaa-cargo-web-form-field",23),e.k0s()()(),e.j41(36,"div",39)(37,"div",41)(38,"button",42),e.bIt("click",function(){e.eBV(n);const t=e.XpG();return e.Njj(t.submitForm())}),e.EFF(39),e.nI1(40,"translate"),e.k0s()(),e.j41(41,"div",41)(42,"button",43),e.bIt("click",function(){e.eBV(n);const t=e.XpG();return e.Njj(t.hideImagePopup())}),e.EFF(43),e.nI1(44,"translate"),e.k0s()()()(),e.bVm()}if(2&o){const n=e.sdS(7),i=e.sdS(25),t=e.XpG();e.R7$(),e.Y8G("nzSpinning",t.loading||t.isCompressLoading),e.R7$(2),e.JRh(e.bMT(4,31,"PGTTL_IMAGE_UPLOAD_RECORD")),e.R7$(2),e.Y8G("ngIf",!(null!=t.popupData&&null!=t.popupData.screening_images&&t.popupData.screening_images.length))("ngIfElse",n),e.R7$(5),e.JRh(e.bMT(11,33,"PGTTL_UPLOAD_IMAGES")),e.R7$(2),e.Y8G("nzGutter",16),e.R7$(),e.Y8G("nzSpan",11),e.R7$(),e.R50("nzFileList",t.fileList),e.Y8G("nzBeforeUpload",t.beforeUpload)("nzFileListRender",i)("nzMultiple",t.fileControl.nzMultiple)("nzAccept",t.fileControl.nzFileType)("nzDisabled",t.formDisabled),e.R7$(2),e.Y8G("disabled",t.formDisabled),e.R7$(2),e.SpI(" ",e.bMT(19,35,"BTN_UPLOAD")," "),e.R7$(3),e.JRh(e.bMT(22,37,"LBL_MSG_SYSTEM_SUPPORTS_IMAGE_OF_THE_FORMAT")),e.R7$(2),e.Y8G("ngIf",t.uploadImageError),e.R7$(3),e.Y8G("formGroup",t.uploadScreeningImageFormGroup),e.R7$(),e.Y8G("nzGutter",16),e.R7$(),e.Y8G("nzSpan",20),e.R7$(),e.Y8G("field",t.uploadScreeningImageFormConfig.remarks),e.R7$(),e.Y8G("nzGutter",16),e.R7$(),e.Y8G("nzSpan",20),e.R7$(),e.Y8G("field",t.uploadScreeningImageFormConfig.irregularity),e.R7$(),e.Y8G("nzGutter",16),e.R7$(),e.Y8G("nzSpan",20),e.R7$(),e.Y8G("field",t.uploadScreeningImageFormConfig.cannot_removed_msg_flag),e.R7$(),e.Y8G("nzGutter",16),e.R7$(2),e.Y8G("disabled",t.uploadScreeningImageFormGroup.invalid||!t.fileList.length||!!t.uploadImageError),e.R7$(),e.SpI(" ",e.bMT(40,39,"BTN_CONFIRM")," "),e.R7$(4),e.JRh(e.bMT(44,41,"BTN_CANCEL"))}}function pn(o,m){if(1&o){const n=e.RV6();e.qex(0),e.j41(1,"nz-spin",28)(2,"div",38)(3,"div",39)(4,"div",10),e.nrm(5,"hkaa-cargo-web-form-field",23),e.k0s(),e.j41(6,"div",41)(7,"button",60),e.bIt("click",function(){e.eBV(n);const t=e.XpG();return e.Njj(t.downloadPdf())}),e.EFF(8),e.nI1(9,"translate"),e.k0s()()()()(),e.bVm()}if(2&o){const n=e.XpG();e.R7$(),e.Y8G("nzSpinning",n.loading),e.R7$(),e.Y8G("formGroup",n.exportScreeningLogFormGroup),e.R7$(),e.Y8G("nzGutter",28),e.R7$(),e.Y8G("nzSpan",8),e.R7$(),e.Y8G("field",n.exportScreeningLogFormConfig.screening_log_date),e.R7$(3),e.SpI(" ",e.bMT(9,6,"BTN_DOWNLOAD_PDF")," ")}}let gn=(()=>{class o{get imagesLengthError(){return this.existImageCount+this.fileList.length>this.fileControl.nzCount}get isCompressLoading(){return this.compressLoading?.some(n=>!!n)}constructor(n,i,t,a,g,M,x,$){this.store=i,this.ref=t,this.formService=a,this.screeningImageApiService=g,this.message=M,this.dataStore=x,this.screeningPageStore=$,this.destroyed$=new U.m(1),this.COMMON_DATA_FORMAT=b.rhr,this.screeningOrderTableSearchConfig=J.VU,this.tabStatus=0,this.loading=!1,this.compressLoading=[],this.isScreeningImageVisible=!1,this.isExportLogVisible=!1,this.uploadScreeningImageFormConfig=J.pm,this.imageUploadRecordTable=J.qf,this.exportScreeningLogFormConfig=J.Dt,this.fileList=[],this.fileBase64List=[],this.fileControl={nzMultiple:!0,nzFileType:"image/png,image/jpeg,image/gif,image/bmp,image/svg+xml",nzSize:4096e3,nzCount:20},this.popupData=null,this.onceUploadFlag=!1,this.existImageCount=0,this.formDisabled=!1,this.fileNames=[],this.dataTableStyleSetting=le.n,this.beforeUpload=(W,Me)=>(Me?.length>0&&(this.compressLoading=[],Me?.every(ee=>!!ee?.uid)&&Me?.map((ee,Fe)=>{this.compressLoading?.push(!0),this.judgeImageUploadError(ee)&&(console.log(Fe),this.compressImage(ee,Fe))})),!1),this.fileControl.nzSize=n.configuration.upload_image_file_size,this.fileControl.nzCount=n.configuration.upload_image_file_count}ngOnInit(){this.getData(),this.screeningOrderTableSearchFormGroup=this.formService?.toFormGroupFromMap(this.screeningOrderTableSearchConfig),this.screeningOrderTableSearchFormGroup?.valueChanges.pipe((0,Z.Q)(this.destroyed$),(0,Oe.B)(500)).subscribe(n=>{this.dataStore?.updateQueryLoadingData({query:{awb_number:n?.screening_order_search?.trim()},resetPageNumber:!0})})}getData(){this.uploadScreeningImageFormGroup=this.formService.toFormGroupFromMap(J.pm),this.exportScreeningLogFormGroup=this.formService.toFormGroupFromMap(J.Dt),this.store.select(H.q8).pipe((0,Z.Q)(this.destroyed$)).subscribe(n=>{this.loading=n?.lifecycle?.loading,n?.lifecycle?.loaded&&n.data?.length&&this.popupData&&this.setTableData(n.data),this.ref.markForCheck()}),this.store.select(b.hKX).pipe((0,Z.Q)(this.destroyed$)).subscribe(n=>{n&&this.setTableData(n?.screening_details.screening_images),this.ref.markForCheck()})}ngOnDestroy(){this.destroyed$.next(!0),this.destroyed$.complete(),this.store.dispatch(H.R2.resetScreeningImagesState())}onSelectTabChange(n){let i=null;switch(this.tabStatus=n?.index,n?.index){case 0:i=null;break;case 1:i=!0;break;case 2:i=!1}this.dataStore?.updateQueryLoadingData({query:{active:i},resetPageNumber:!0})}uploadEvent(){this.onceUploadFlag=!0}judgeImageUploadError(n){if(this.onceUploadFlag&&(this.uploadImageError=""),n){if(!/^image\/.+$/.test(n.type))return this.uploadImageError="LBL_ONLY_SUPPORT_IMAGE_FORMATS",this.onceUploadFlag=!1,!1;this.fileList=this.fileList.concat(n)}
1return this.imagesLengthError&&(this.uploadImageError="LBL_EXCEEDED_MAXIMUM_20_IMAGES",this.onceUploadFlag=!1),this.fileList.length||(this.uploadImageError="LBL_MISSING_MANDATORY_IMAGES"),!0}compressImage(n,i){this.compressLoading[i]=!0;const t=this;let a;n.size<=this.fileControl.nzSize?a=.8:(a=this.fileControl.nzSize/n.size,a=a>.6?.6:a),function M(x,$,W){t.compressLoading[W]=!0,t.ref.detectChanges(),new(ie())(x,{quality:$,convertSize:1/0,success(ee){!function g(x,$){if(x?.size<t.fileControl?.nzSize){const W=new FileReader;W.readAsDataURL(x),W.onload=function(){console.log("Compressed file: ",n?.name),t.fileBase64List.push(this.result),t.fileNames.push(n?.name),t.compressLoading[$]=!1,t.ref.detectChanges()}}else a*=.8,M(n,a,$)}(ee,W)}})}(n,a,i)}showImagePopup(n){this.store.dispatch(b.nvM.LoadOneData__Started({id:n?.id,role:"RF"})),this.isScreeningImageVisible=!0,this.popupData=n,this.setImageCount(),this.ref.markForCheck()}setTableData(n){this.popupData.screening_images=n,this.setImageCount(),this.clearPopupData()}setImageCount(){const n=this.popupData.screening_images||[];this.existImageCount=0;for(const i of n)this.existImageCount+=i.count;this.formDisabled=this.existImageCount>=this.fileControl.nzCount;for(const i in this.uploadScreeningImageFormConfig)Object.prototype.hasOwnProperty.call(this.uploadScreeningImageFormConfig,i)&&(this.formDisabled?this.uploadScreeningImageFormGroup.get(i).disable():this.uploadScreeningImageFormGroup.get(i).enable())}hideImagePopup(){this.isCompressLoading||(this.isScreeningImageVisible=!1,this.uploadImageError=null,this.clearPopupData())}clearPopupData(){this.uploadScreeningImageFormGroup.reset(),this.fileBase64List=[],this.fileNames=[],this.fileList=[],this.compressLoading=[]}removeFile(n){this.fileList.splice(n,1),this.fileNames.splice(n,1),this.fileBase64List.splice(n,1),this.uploadEvent(),this.judgeImageUploadError()}submitForm(){const{remarks:n,irregularity:i}=this.uploadScreeningImageFormGroup.value,t=this.getScreeningImageDetails();this.store.dispatch(H.R2.patchScreeningImageDetails({screening_image_details:t}));const a={request_id:this.popupData?.id,remarks:n?.trim(),irregularity:i,number_of_images:t?.length};this.store.dispatch(H.R2.initiateScreeningImagesUpload__Started({request:a}))}getScreeningImageDetails(){const n=[];for(let i=0;i<this.fileNames?.length&&i<this.fileBase64List?.length;++i)n?.push({seq:i+1,filename:this.fileNames[i],base64_string:this.fileBase64List[i]});return n}openDownloadPopup(){this.isExportLogVisible=!0}closeDownloadPopup(){this.isExportLogVisible=!1,this.exportScreeningLogFormGroup.reset()}downloadPdf(){this.exportScreeningLogFormGroup.markAllAsTouched(),this.exportScreeningLogFormGroup.markAsDirty(),this.exportScreeningLogFormGroup.updateValueAndValidity(),this.exportScreeningLogFormGroup.valid&&(this.loading=!0,this.screeningImageApiService.downloadScreeningLogReportV2(this.exportScreeningLogFormGroup.value.screening_log_date).subscribe(()=>{this.loading=!1,this.ref.markForCheck()},()=>{this.message.create("error","Failed to Export Screener Log Report"),this.loading=!1,this.ref.markForCheck()}))}static{this.\u0275fac=function(i){return new(i||o)(e.rXU(b.vQM),e.rXU(j.il),e.rXU(e.gRc),e.rXU(b.ux2),e.rXU(b.vmy),e.rXU(re.xh),e.rXU(ae),e.rXU(q))}}static{this.\u0275cmp=e.VBU({type:o,selectors:[["hkaa-cargo-web-screening-admin"]],standalone:!1,features:[e.Jv_([ae,q])],decls:49,vars:42,consts:[["popupTableTemplate",""],["nzUpload",""],["fileListTemplate",""],[1,"screening-admin"],[1,"mt-32"],[3,"dataTableStyleSetting"],[1,"mt-24"],[1,"mt-16"],[1,"shipment-page__quick-access__container"],["nz-row",""],["nz-col","",3,"nzSpan"],[1,"shipment-page__quick-access__item"],[1,"shipment-page__quick-access__item__layout","clickable",3,"click"],[1,"shipment-page__quick-access__item__icon"],[1,"overview-icon-wrapper"],[1,"rf-screener-overview-export-screening-log","overview-icon"],[1,"shipment-page__quick-access__item__word"],[1,"shipment-page__quick-access__item__arrow"],[1,"arrow-ios-right","overview-icon"],[1,"full-width-card-table"],[3,"nzSelectChange"],[3,"nzTitle"],["nz-row","",1,"ml-24",3,"formGroup"],[3,"field"],[3,"showImagePopupEvent"],["nzWrapClassName","highlight-title-modal",3,"nz
1VisibleChange","nzOnCancel","nzVisible","nzTitle","nzFooter","nzWidth","nzStyle"],[4,"nzModalContent"],[3,"nzVisibleChange","nzOnCancel","nzVisible","nzTitle","nzFooter","nzWidth","nzStyle"],[3,"nzSpinning"],[1,"h6"],["class","empty-container","nzNotFoundImage","simple",4,"ngIf","ngIfElse"],[1,"popup-divider"],["nz-row","",1,"mb-16",3,"nzGutter"],[3,"click","nzFileListChange","nzFileList","nzBeforeUpload","nzFileListRender","nzMultiple","nzAccept","nzDisabled"],["nz-button","",1,"blur-border-button",3,"disabled"],["nz-icon","","nzType","upload"],[1,"upload-tip"],["nz-typography","","nzType","danger",4,"ngIf"],[3,"formGroup"],["nz-row","",3,"nzGutter"],["nz-row","",1,"mb-16","check-box",3,"nzGutter"],["nz-col",""],["nz-button","","nzType","primary",3,"click","disabled"],["nz-button","",1,"blur-border-button",3,"click"],["nzNotFoundImage","simple",1,"empty-container"],["nzBordered","","data-testid","rf-screening-image-table",1,"table",3,"nzShowPagination","nzData","nzSize"],["class","table-header-cell text__no_bold",3,"width",4,"ngFor","ngForOf"],[1,"table-body"],[4,"ngFor","ngForOf"],[1,"table-header-cell","text__no_bold",3,"width"],[1,"need-ellipsis"],[1,"need-ellipsis","remarks-field"],["align","center"],["href","javascript:;",3,"routerLink"],[1,"icon","icon-view-file"],["nz-typography","","nzType","danger"],["class","file-list-wrap",4,"ngFor","ngForOf"],[1,"file-list-wrap"],[1,"icon","icon-attach"],[1,"icon","icon-trash-2-gray-18",3,"click"],["nz-button","","nzType","primary",1,"download-pdf-button",3,"click"]],template:function(i,t){1&i&&(e.j41(0,"div",3)(1,"h1"),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.nrm(4,"div",4)(5,"hkaa-cargo-web-announcement-table",5)(6,"div",6),e.j41(7,"h2"),e.EFF(8),e.nI1(9,"translate"),e.k0s(),e.nrm(10,"div",7),e.j41(11,"div",8)(12,"div",9)(13,"div",10)(14,"div",11)(15,"div",12),e.bIt("click",function(){return t.openDownloadPopup()}),e.j41(16,"div",13)(17,"div",14),e.nrm(18,"i",15),e.k0s()(),e.j41(19,"div",16),e.EFF(20),e.nI1(21,"translate"),e.k0s(),e.j41(22,"div",17),e.nrm(23,"i",18),e.k0s()()()()()(),e.nrm(24,"div",6),e.j41(25,"h2"),e.EFF(26),e.nI1(27,"translate"),e.k0s(),e.nrm(28,"div",6),e.j41(29,"nz-card",19)(30,"nz-tabset",20),e.bIt("nzSelectChange",function(g){return t.onSelectTabChange(g)}),e.nrm(31,"nz-tab",21),e.nI1(32,"translate"),e.nrm(33,"nz-tab",21),e.nI1(34,"translate"),e.nrm(35,"nz-tab",21),e.nI1(36,"translate"),e.k0s(),e.j41(37,"div",22)(38,"div",10),e.nrm(39,"hkaa-cargo-web-form-field",23),e.k0s()(),e.nrm(40,"div",7),e.j41(41,"hkaa-cargo-web-rf-screening-order-table",24),e.bIt("showImagePopupEvent",function(g){return t.showImagePopup(g)}),e.k0s()()(),e.nrm(42,"hkaa-cargo-web-rf-screening-result-popup"),e.j41(43,"nz-modal",25),e.nI1(44,"translate"),e.mxI("nzVisibleChange",function(g){return e.DH7(t.isScreeningImageVisible,g)||(t.isScreeningImageVisible=g),g}),e.bIt("nzOnCancel",function(){return t.hideImagePopup()}),e.DNE(45,cn,45,43,"ng-container",26),e.k0s(),e.j41(46,"nz-modal",27),e.nI1(47,"translate"),e.mxI("nzVisibleChange",function(g){return e.DH7(t.isExportLogVisible,g)||(t.isExportLogVisible=g),g}),e.bIt("nzOnCancel",function(){return t.closeDownloadPopup()}),e.DNE(48,pn,10,8,"ng-container",26),e.k0s()),2&i&&(e.R7$(2),e.SpI("",e.bMT(3,22,"PGTTL_WELCOME_BACK"),"!"),e.R7$(3),e.Y8G("dataTableStyleSetting",t.dataTableStyleSetting),e.R7$(3),e.JRh(e.bMT(9,24,"LBL_SHORTCUTS")),e.R7$(5),e.Y8G("nzSpan",6),e.R7$(7),e.SpI(" ",e.bMT(21,26,"LBL_QUICK_ACCESS_EXPORT_SCREENING_LOG")," "),e.R7$(6),e.JRh(e.bMT(27,28,"PGTTL_ORDER_LIST")),e.R7$(5),e.Y8G("nzTitle",e.bMT(32,30,"LBL_TAB_ALL_ORDERS")),e.R7$(2),e.Y8G("nzTitle",e.bMT(34,32,"LBL_TAB_ACTIVE_ORDERS")),e.R7$(2),e.Y8G("nzTitle",e.bMT(36,34,"LBL_TAB_PAST_ORDERS")),e.R7$(2),e.Y8G("formGroup",t.screeningOrderTableSearchFormGroup),e.R7$(),e.Y8G("nzSpan",16),e.R7$(),e.Y8G("field",t.screeningOrderTableSearchConfig.screening_order_search),e.R7$(4),e.R50("nzVisible",t.isScreeningImageVisible),e.Y8G("nzTitle",e.bMT(44,36,"PGTTL_SCREENING_IMAGES"))("nzFooter",null)("nzWidth",935)("nzStyle",e.lJ4(40,Ee)),e.R7$(3),e.R50("nzVisible",t.isExportLogVisible),e.Y8G("nzTitle",e.bMT(47,38,"PGTTL_EXPORT_SCREENING_EXPORT_SECURITY_SCREENING_LOG"))("nzFooter",null)("nzWidth",935)("nzStyle",e.lJ4(41,Ee)))},dependencies:[X.Wk,y.Sq,y.bT,V.cb,V.j4,ve.j,p.Dn,s.aO,l.c,c.p,u.Uq,u.e,d.cK,O.JZ,O.rE,_.CP,_.SO,_._4,_.IL,_.aj,_.kt,h.F2,h.A9,f.Di,P.a,S.$W,E.RW,I.z,C.b,Ge,Qe,L.D9,F.p,k.W,D.O,Ze.R],styles:[".shipment-page__message[_ngcontent-%COMP%]{position:relative}.shipment-page[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{vertical-align:initial;display:inline-flex;align-self:center}.shipment-page[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-style:normal;font-weight:400;font-size:15px;line-height:24px}.shipment-page__quick-access__container[_ngcontent-%COMP%]{display:table;width:100%}.shipment-page__quick-access__item[_ngcontent-%COMP%]{display:table-cell;vertical-align:top;width:20%;padding-right:8px}.shipment-page__quick-access__item.last-item[_ngcontent-%COMP%]{padding-right:0}.shipment-page__quick-access__item__layout[_ngcontent-%COMP%]{display:table;width:100%;min-height:80px;padding:8px 0 8px 12px;background-color:#fff;box-shadow:0 2px 10px #8989891a;border-radius:4px}.shipment-page__quick-access__item__layout[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{display:table-cell;vertical-align:middle}.shipment-page__quick-access__item__layout[_ngcontent-%COMP%] .overview-icon-wrapper[_ngcontent-%COMP%]{padding:4px;background-color:#54a09512;width:32px;height:32px;border-radius:4px;font-size:20px;text-align:center}.shipment-page__quick-access__item__layout[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{display:block}.shipment-page__quick-access__item__layout[_ngcontent-%COMP%] .arrow-ios-right[_ngcontent-%COMP%]{background-image:url(arrow-ios-right.02b9ad930754016e.svg);width:25px;height:24px}.shipment-page__quick-access__item__word[_ngcontent-%COMP%]{width:100%;padding-left:10px}.shipment-page__overview[_ngcontent-%COMP%]{position:relative;background-color:#fff;box-shadow:0 2px 10px #8989891a;border-radius:4px;padding:70px 60px 0 0}@media screen and (max-width: 1024px){.shipment-page__overview[_ngcontent-%COMP%]{padding-top:100px}}.shipment-page__overview[_ngcontent-%COMP%] .ant-steps-item-finish[_ngcontent-%COMP%] > .ant-steps-item-container[_ngcontent-%COMP%] > .ant-steps-item-content[_ngcontent-%COMP%] > .ant-steps-item-title[_ngcontent-%COMP%]{position:absolute;display:inline-flex;top:-40px;font-style:normal;font-weight:700;font-size:24px;line-height:24px;color:#222b45;width:140px}@media screen and (max-width: 1024px){.shipment-page__overview[_ngcontent-%COMP%] .ant-steps-item-finish[_ngcontent-%COMP%] > .ant-steps-item-container[_ngcontent-%COMP%] > .ant-steps-item-content[_ngcontent-%COMP%] > .ant-steps-item-title[_ngcontent-%COMP%]{position:relative;display:block;top:-70px;left:10px}}.shipment-page__overview[_ngcontent-%COMP%] .ant-steps-label-vertical[_ngcontent-%COMP%] .ant-steps-item-subtitle[_ngcontent-%COMP%]{position:relative;padding:7px;top:2px;font-style:13px;font-weight:400;font-size:13px;line-height:14px;color:#222b45}
1.shipment-page__overview[_ngcontent-%COMP%] .ant-steps-item-finish[_ngcontent-%COMP%] > .ant-steps-item-container[_ngcontent-%COMP%] > .ant-steps-item-content[_ngcontent-%COMP%] > .ant-steps-item-description[_ngcontent-%COMP%]{position:absolute;text-align:left;min-width:97px;max-width:160px;padding-left:60px;top:1.2rem;color:#50576d}@media screen and (max-width: 1024px){.shipment-page__overview[_ngcontent-%COMP%] .ant-steps-item-finish[_ngcontent-%COMP%] > .ant-steps-item-container[_ngcontent-%COMP%] > .ant-steps-item-content[_ngcontent-%COMP%] > .ant-steps-item-description[_ngcontent-%COMP%]{min-width:110px;padding-left:40px}}.shipment-page__overview[_ngcontent-%COMP%] .overview-session[_ngcontent-%COMP%] .ant-steps-item-finish[_ngcontent-%COMP%] > .ant-steps-item-container[_ngcontent-%COMP%] > .ant-steps-item-content[_ngcontent-%COMP%] > .ant-steps-item-description[_ngcontent-%COMP%]{max-width:175px}.shipment-page__overview[_ngcontent-%COMP%] .ant-steps-item-finish[_ngcontent-%COMP%] > .ant-steps-item-container[_ngcontent-%COMP%] > .ant-steps-item-tail[_ngcontent-%COMP%]:after{height:4px;width:100%;border-radius:0}.shipment-page__overview[_ngcontent-%COMP%] .ant-steps-item-finish[_ngcontent-%COMP%] .ant-steps-item-icon[_ngcontent-%COMP%]{width:20px;height:20px;top:-6px;left:-5px;padding:0;position:absolute;background-color:initial!important;border-color:initial!important}.form-spin-loading[_ngcontent-%COMP%] .ant-spin{position:fixed}.home-nz-layout-wrap[_ngcontent-%COMP%]{min-height:100%}.home-router-outlet-main[_ngcontent-%COMP%]{overflow:auto;padding-bottom:55px;margin-bottom:20px}.screening-admin[_ngcontent-%COMP%]{overflow:hidden;padding:32px 0;position:relative}.screening-admin__global-search[_ngcontent-%COMP%]{margin-bottom:44px;margin-top:36px;padding-left:20px}.screening-admin[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{font-weight:700;font-size:20px;line-height:20px}.table-style[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] > td[_ngcontent-%COMP%]:first-child, .table-style[_ngcontent-%COMP%] th[_ngcontent-%COMP%]:first-child{padding-left:24px}.table-style[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] > td[_ngcontent-%COMP%]:last-child, .table-style[_ngcontent-%COMP%] th[_ngcontent-%COMP%]:last-child{padding-right:24px}.table-style[_ngcontent-%COMP%] nz-table-title-footer.ant-table-footer[_ngcontent-%COMP%]{padding:8px 16px}.full-width-card-table[_ngcontent-%COMP%] .ant-card-body[_ngcontent-%COMP%]{padding:0 0 24px}.download-log-button[_ngcontent-%COMP%]{position:absolute;top:40px;right:0}i[_ngcontent-%COMP%]{cursor:pointer}.icon[_ngcontent-%COMP%]{position:relative}.icon-pencil[_ngcontent-%COMP%]:before{content:url(pencil.e1610222a9ed0f77.svg)}.icon-check[_ngcontent-%COMP%]:before{content:url(check.112e8843153c4aaa.svg)}.icon-close[_ngcontent-%COMP%]:before{content:url(close.9bdd9ae362297911.svg)}.icon-image-fill[_ngcontent-%COMP%]:before{content:url(image-fill.aab9b684bc26bf03.svg)}.icon-attach[_ngcontent-%COMP%]:before{content:url(attach.15f0a3b556f6e146.svg)}.icon-trash-2-gray-18[_ngcontent-%COMP%]:before{content:url(trash-2-gray-18.c98960aee8f5ea15.svg)}.rf-screener-overview-export-screening-log[_ngcontent-%COMP%]:before{content:url(download.bf956ddde59e6ab7.svg)}.confirm-modal[_ngcontent-%COMP%]{padding:0 16px;overflow:hidden}.confirm-modal[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font-weight:700;font-size:32px;line-height:44px;color:#222B45,100%}.confirm-modal__remarks[_ngcontent-%COMP%]{margin-top:16px}.confirm-modal__remarks[_ngcontent-%COMP%] label[_ngcontent-%COMP%], .confirm-modal__remarks[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:15px;line-height:24px}
1.confirm-modal__remarks[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{font-weight:300}.confirm-modal__remarks[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-weight:600}.confirm-modal__button-list[_ngcontent-%COMP%]{margin-top:32px}.confirm-modal__button-list[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{float:right}.confirm-modal__button-list[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child{margin-right:16px}th.white-header[_ngcontent-%COMP%]{background-color:#fff!important}.table[_ngcontent-%COMP%], .th[_ngcontent-%COMP%], .td[_ngcontent-%COMP%]{background-color:#f7f9fc!important}.table-header-cell[_ngcontent-%COMP%]{background-color:#f7f9fc!important;font-size:15px;padding-left:.5rem;padding-right:1rem}.table-header-fixed-width[_ngcontent-%COMP%]{min-width:70px}.body-content[_ngcontent-%COMP%], .table-body[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{background-color:#f7f9fc!important;font-size:15px;line-height:24px;padding-left:.5rem}.input-error[_ngcontent-%COMP%]{border-color:#dc6859}nz-select.input-error.ant-select[_ngcontent-%COMP%] nz-select-top-control{border-color:#dc6859}.pass[_ngcontent-%COMP%]{font-weight:700;color:#41a727}.reject[_ngcontent-%COMP%]{font-weight:700;color:#dc6859}.primary-color[_ngcontent-%COMP%]{color:#54a095}.h6[_ngcontent-%COMP%]{font-size:18px;line-height:24px;margin-bottom:16px}.popup-divider[_ngcontent-%COMP%]{width:935px;height:2px;margin-left:-80px;margin-top:32px;background:#e5eaf2;transform:scaleY(-1)}.blur-border-button[_ngcontent-%COMP%]{border-color:#54a095}.blur-border-button[_ngcontent-%COMP%]:disabled{background-color:#fff;border-color:#8f9bb3;color:#8f9bb3}nz-upload[_ngcontent-%COMP%] .upload-tip[_ngcontent-%COMP%]{display:block;font-size:12px;line-height:14px;margin-top:8px}nz-upload[_ngcontent-%COMP%] .file-list-wrap[_ngcontent-%COMP%]{color:#54a095;font-size:13px;line-height:20px;margin-top:8px;padding:0 54px 0 22px;position:relative}nz-upload[_ngcontent-%COMP%] .file-list-wrap[_ngcontent-%COMP%] .icon-attach[_ngcontent-%COMP%]{position:absolute;top:1px;left:0}nz-upload[_ngcontent-%COMP%] .file-list-wrap[_ngcontent-%COMP%] .icon-trash-2-gray-18[_ngcontent-%COMP%]{position:absolute;top:1px;right:27px}.check-box[_ngcontent-%COMP%] .form-field-checkbox{font-size:13px;line-height:20px}.need-ellipsis[_ngcontent-%COMP%]{width:200px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.need-ellipsis.remarks-field[_ngcontent-%COMP%]{width:100px}.download-pdf-button[_ngcontent-%COMP%]{height:32px;padding:5px 32px;margin-top:29px}"],changeDetection:0})}}return o})();var K=r(57927);const _n=[{path:"pages",component:te,children:[{path:"",component:B.kK,children:[{path:"home",component:gn,canActivate:[K.P]},{path:"announcements",loadChildren:()=>r.e("default-apps_angular-app_src_app_modules_announcements_announcements_module_ts").then(r.bind(r,70940)).then(o=>o.AnnouncementsModule),data:{module:b.AQX.EXPORT},canActivate:[K.P]},{path:"",loadChildren:()=>r.e("default-apps_angular-app_src_app_modules_useful-links-page_useful-links-page_module_ts").then(r.bind(r,95570)).then(o=>o.UsefulLinksPageModule)},{path:"",redirectTo:"home",pathMatch:"full"}]},{path:"",component:B.ox,children:[{path:"hawb-v2/:id",loadChildren:()=>r.e("default-apps_angular-app_src_app_modules_export-order-details-v2-pages_export-order-details-v-e2167f").then(r.bind(r,73114)).then(o=>o.ExportOrderDetailsV2PageModule),data:{idType:"awbId"},canActivate:[K.P]},{path:"image-hash/:id/:hash",loadChildren:()=>r.e("common").then(r.bind(r,24692)).then(o=>o.ImageHashPageModule),canActivate:[K.P]},{path:"image-hash/:id/:hash/:awbNumber",loadChildren:()=>r.e("common").then(r.bind(r,24692)).then(o=>o.ImageHashPageModule),canActivate:[K.P]},{path:"mawb/:id",loadChildren:()=>Promise.all([r.e("default-apps_angular-app_src_app_guards_form-leave-guard_form-leave_guard_ts-node_modules_dat-1e7693"),r.e("default-apps_angular-app_src_app_modules_mawb-detail-page_mawb-detail-page_module_ts"),r.e("common")]).then(r.bind(r,98381)).then(o=>o.MawbDetailPageModule),data:{idType:"srId"},canActivate:[K.P]},{path:"real-mawb/:id",loadChildren:()=>Promise.all([r.e("default-apps_angular-app_src_app_guards_form-leave-guard_form-leave_guard_ts-node_modules_dat-1e7693"),r.e("default-apps_angular-app_src_app_modules_mawb-detail-page_mawb-detail-page_module_ts"),r.e("common")]).then(r.bind(r,98381)).then(o=>o.MawbDetailPageModule),data:{idType:"awbId"},canActivate:[K.P]},{path:"profile",loadChildren:()=>Promise.all([r.e("default-node_modules_angularx-qrcode_fesm2022_angularx-qrcode_mjs"),r.e("default-apps_angular-app_src_app_modules_manage_manage_module_ts"),r.e("apps_angular-app_src_app_guards_form-leave-guard_form-leave_guard_ts")]).then(r.bind(r,11750)).then(o=>o.ManageModule)},{path:"maintenance",loadChildren:()=>r.e("common").then(r.bind(r,72014)).then(o=>o.PostLoginMaintenancePageModule)},{path:"",redirectTo:"profile",pathMatch:"full"}]}]},{path:"",redirectTo:"pages",pathMatch:"full"},{path:"**",redirectTo:"pages"}];let dn=(()=>{class o{static{this.\u0275fac=function(i){return new(i||o)}}static{this.\u0275mod=e.$C({type:o})}static{this.\u0275inj=e.G2t({imports:[X.iI.forChild(_n),X.iI]})}}return o}
1)();var Ce=r(91425);let mn=(()=>{class o{static{this.\u0275fac=function(i){return new(i||o)}}static{this.\u0275mod=e.$C({type:o})}static{this.\u0275inj=e.G2t({providers:[b.l3U,b.ux2],imports:[j.md.forFeature(b.b_u,b.aE_,{}),Ce.Vm.forFeature([b.p6_]),j.md.forFeature(H.PK,H.ek,{}),Ce.Vm.forFeature([H.g8]),j.md.forFeature(b.bkG,b.yhw,{}),Ce.Vm.forFeature([b.D07]),Ce.Vm.forFeature([b._FS]),dn,B.Jk,V.YN,h.U6,V.X1]})}}return o})()},42614:function(se){se.exports=function(){"use strict";function r(p,s){for(var l=0;l<s.length;l++){var c=s[l];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(p,c.key,c)}}function X(p,s,l){return s in p?Object.defineProperty(p,s,{value:l,enumerable:!0,configurable:!0,writable:!0}):p[s]=l,p}function b(){return b=Object.assign||function(p){for(var s=1;s<arguments.length;s++){var l=arguments[s];for(var c in l)Object.prototype.hasOwnProperty.call(l,c)&&(p[c]=l[c])}return p},b.apply(this,arguments)}function ne(p,s){var l=Object.keys(p);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(p);s&&(c=c.filter(function(u){return Object.getOwnPropertyDescriptor(p,u).enumerable})),l.push.apply(l,c)}return l}function e(p){for(var s=1;s<arguments.length;s++){var l=null!=arguments[s]?arguments[s]:{};s%2?ne(Object(l),!0).forEach(function(c){X(p,c,l[c])}):Object.getOwnPropertyDescriptors?Object.defineProperties(p,Object.getOwnPropertyDescriptors(l)):ne(Object(l)).forEac
1h(function(c){Object.defineProperty(p,c,Object.getOwnPropertyDescriptor(l,c))})}return p}var N=function j(p,s,l){return p(l={path:s,exports:{},require:function(c,u){return function Y(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}()}},l.exports),l.exports}(function(p){var s,l,c,u,d,O,_;typeof window>"u"||(s=window,l=s.HTMLCanvasElement&&s.HTMLCanvasElement.prototype,c=s.Blob&&function(){try{return!!new Blob}catch{return!1}}(),u=c&&s.Uint8Array&&function(){try{return 100===new Blob([new Uint8Array(100)]).size}catch{return!1}}(),d=s.BlobBuilder||s.WebKitBlobBuilder||s.MozBlobBuilder||s.MSBlobBuilder,O=/^data:((.*?)(;charset=.*?)?)(;base64)?,/,_=(c||d)&&s.atob&&s.ArrayBuffer&&s.Uint8Array&&function(h){var f,P,S,E,I,C,w,R,v;if(!(f=h.match(O)))throw new Error("invalid data URI");for(P=f[2]?f[1]:"text/plain"+(f[3]||";charset=US-ASCII"),S=!!f[4],E=h.slice(f[0].length),I=S?atob(E):decodeURIComponent(E),C=new ArrayBuffer(I.length),w=new Uint8Array(C),R=0;R<I.length;R+=1)w[R]=I.charCodeAt(R);return c?new Blob([u?w:C],{type:P}):((v=new d).append(C),v.getBlob(P))},s.HTMLCanvasElement&&!l.toBlob&&(l.mozGetAsFile?l.toBlob=function(h,f,P){var S=this;setTimeout(function(){h(P&&l.toDataURL&&_?_(S.toDataURL(f,P)):S.mozGetAsFile("blob",f))})}:l.toDataURL&&_&&(l.toBlob=l.msToBlob?function(h,f,P){var S=this;setTimeout(function(){h((f&&"image/png"!==f||P)&&l.toDataURL&&_?_(S.toDataURL(f,P)):S.msToBlob(f))})}:function(h,f,P){var S=this;setTimeout(function(){h(_(S.toDataURL(f,P)))})})),p.exports?p.exports=_:s.dataURLtoBlob=_)}),y={strict:!0,checkOrientation:!0,maxWidth:1/0,maxHeight:1/0,minWidth:0,minHeight:0,width:void 0,height:void 0,quality:.8,mimeType:"auto",convertSize:5e6,beforeDraw:null,drew:null,success:null,error:null},U=typeof window<"u"&&typeof window.document<"u"?window:{},Z=Array.prototype.slice;function Oe(p){return Array.from?Array.from(p):Z.call(p)}var Pe=/^image\/.+$/;function ie(p){return Pe.test(p)}var le=String.fromCharCode;var ce=U.btoa;function Se(p){var l,s=new DataView(p);try{var c,u,d;if(255===s.getUint8(0)&&216===s.getUint8(1))for(var O=s.byteLength,_=2;_+1<O;){if(255===s.getUint8(_)&&225===s.getUint8(_+1)){u=_;break}_+=1}if(u){var f=u+10;if("Exif"===function J(p,s,l){var u,c="";for(l+=s,u=s;u<l;u+=1)c+=le(p.getUint8(u));return c}(s,u+4,4)){var P=s.getUint16(f);if(((c=18761===P)||19789===P)&&42===s.getUint16(f+2,c)){var S=s.getUint32(f+4,c);S>=8&&(d=f+S)}}}if(d){var I,C,E=s.getUint16(d,c);for(C=0;C<E;C+=1)if(274===s.getUint16(I=d+12*C+2,c)){l=s.getUint16(I+=8,c),s.setUint16(I,1,c);break}}}catch{l=1}return l}var ae=/\.\d*(?:0|9){12}\d*$/;function ge(p){var s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e11;return ae.test(p)?Math.round(p*s)/s:p}var xe=U.ArrayBuffer,re=U.FileReader,L=U.URL||U.webkitURL,q=/\.\w+$/,V=U.Compressor;return function(){function p(s,l){(function A(p,s){if(!(p instanceof s))throw new TypeError("Cannot call a class as a function")})(this,p),this.file=s,this.image=new Image,this.options=e(e({},y),l),this.aborted=!1,this.result=null,this.init()}return function B(p,s,l){return s&&r(p.prototype,s),l&&r(p,l),p}(p,[{key:"init",value:function(){var s,l=this,c=this.file,u=this.options;if(s=c,typeof Blob>"u"||!(s instanceof Blob||"[object Blob]"===Object.prototype.toString.call(s)))this.fail(new Error("The first argument must be a File or Blob object."));else{var d=c.type;if(ie(d))if(L&&re)if(xe||(u.checkOrientation=!1),L&&!u.checkOrientation)this.load({url:L.createObjectURL(c)});else{var O=new re,_=u.checkOrientation&&"image/jpeg"===d;this.reader=O,O.onload=function(h){var P=h.target.result,S={};if(_){var E=Se(P);E>1||!L?(S.url=function pe(p,s){for(var l=[],u=new Uint8Array(p);u.length>0;)l.push(le.apply(null,Oe(u.subarray(0,8192)))),u=u.subarray(8192);return"data:".concat(s,";base64,").concat(ce(l.join("")))}(P,d),E>1&&b(S,function oe(p){var s=0,l=1,c=1;switch(p){case 2:l=-1;break;case 3:s=-180;break;case 4:c=-1;break;case 5:s=90,c=-1;break;case 6:s=90;break;case 7:s=90,l=-1;break;case 8:s=-90}return{rotate:s,scaleX:l,scaleY:c}}(E))):S.url=L.createObjectURL(c)}else S.url=P;l.load(S)},O.onabort=function(){l.fail(new Error("Aborted to read the image with FileReader."))},O.onerror=function(){l.fail(new Error("Failed to read the image with FileReader."))},O.onloadend=function(){l.reader=null}
1,_?O.readAsArrayBuffer(c):O.readAsDataURL(c)}else this.fail(new Error("The current browser does not support image compression."));else this.fail(new Error("The first argument must be an image File or Blob object."))}}},{key:"load",value:function(l){var c=this,u=this.file,d=this.image;d.onload=function(){c.draw(e(e({},l),{},{naturalWidth:d.naturalWidth,naturalHeight:d.naturalHeight}))},d.onabort=function(){c.fail(new Error("Aborted to load the image."))},d.onerror=function(){c.fail(new Error("Failed to load the image."))},U.navigator&&/(?:iPad|iPhone|iPod).*?AppleWebKit/i.test(U.navigator.userAgent)&&(d.crossOrigin="anonymous"),d.alt=u.name,d.src=l.url}},{key:"draw",value:function(l){var c=this,u=l.naturalWidth,d=l.naturalHeight,O=l.rotate,_=void 0===O?0:O,h=l.scaleX,f=void 0===h?1:h,P=l.scaleY,S=void 0===P?1:P,E=this.file,I=this.image,C=this.options,w=document.createElement("canvas"),R=w.getContext("2d"),v=u/d,_e=Math.abs(_)%180==90,G=Math.max(C.maxWidth,0)||1/0,F=Math.max(C.maxHeight,0)||1/0,k=Math.max(C.minWidth,0)||0,D=Math.max(C.minHeight,0)||0,z=Math.max(C.width,0)||u,T=Math.max(C.height,0)||d;if(_e){var de=[F,G];G=de[0],F=de[1];var me=[D,k];k=me[0],D=me[1];var ue=[T,z];z=ue[0],T=ue[1]}G<1/0&&F<1/0?F*v>G?F=G/v:G=F*v:G<1/0?F=G/v:F<1/0&&(G=F*v),k>0&&D>0?D*v>k?D=k/v:k=D*v:k>0?D=k/v:D>0&&(k=D*v),T*v>z?T=z/v:z=T*v;var ye=-(z=Math.floor(ge(Math.min(Math.max(z,k),G))))/2,Re=-(T=Math.floor(ge(Math.min(Math.max(T,D),F))))/2,ze=z,Te=T;if(_e){var he=[T,z];z=he[0],T=he[1]}w.width=z,w.height=T,ie(C.mimeType)||(C.mimeType=E.type);var fe="transparent";if(E.size>C.convertSize&&"image/png"===C.mimeType&&(fe="#fff",C.mimeType="image/jpeg"),R.fillStyle=fe,R.fillRect(0,0,z,T),C.beforeDraw&&C.beforeDraw.call(this,R,w),!this.aborted&&(R.save(),R.translate(z/2,T/2),R.rotate(_*Math.PI/180),R.scale(f,S),R.drawImage(I,ye,Re,ze,Te),R.restore(),C.drew&&C.drew.call(this,R,w),!this.aborted)){var be=function(we){c.aborted||c.done({naturalWidth:u,naturalHeight:d,result:we})};w.toBlob?w.toBlob(be,C.mimeType,C.quality):be(N(w.toDataURL(C.mimeType,C.quality)))}}},{key:"done",value:function(l){var c=l.naturalWidth,u=l.naturalHeight,d=l.result,O=this.file,h=this.options;if(L&&!h.checkOrientation&&L.revokeObjectURL(this.image.src),d)if(h.strict&&d.size>O.size&&h.mimeType===O.type&&!(h.width>c||h.height>u||h.minWidth>c||h.minHeight>u))d=O;else{var f=new Date;d.lastModified=f.getTime(),d.lastModifiedDate=f,d.name=O.name,d.name&&d.type!==O.type&&(d.name=d.name.replace(q,function H(p){var s=ie(p)?p.substr(6):"";return"jpeg"===s&&(s="jpg"),".".concat(s)}(d.type)))}else d=O;this.result=d,h.success&&h.success.call(this,d)}},{key:"fail",value:function(l){var c=this.options;if(!c.error)throw l;c.error.call(this,l)}},{key:"abort",value:function(){this.aborted||(this.aborted=!0,this.reader?this.reader.abort():this.image.complete?this.fail(new Error("The compression process has been aborted.")):(this.image.onload=null,this.image.onabort()))}}],[{key:"noConflict",value:function(){return window.Compressor=V,p}},{key:"setDefaults",value:function(l){b(y,l)}}]),p}()}()},53759:(se,A,r)=>{"use strict";r.d(A,{P:()=>b});var B=r(91298),X=r(91490);function b(e,j,Y){const N=(0,X.a)(e,Y?.in);if(isNaN(j))return(0,B.w)(Y?.in||e,NaN);if(!j)return N;const Q=N.getDate(),y=(0,B.w)(Y?.in||e,N.getTime());return y.setMonth(N.getMonth()+j+1,0),Q>=y.getDate()?y:(N.setFullYear(y.getFullYear(),y.getMonth(),Q),N)}}}]);
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.