1"use strict";(self.webpackChunkangular_app=self.webpackChunkangular_app||[]).push([["apps_angular-app_src_app_modules_ra-pages_create-screening-request-form_create-screening-requ-559f4e"],{9185:($e,w,r)=>{r.r(w),r.d(w,{CreateScreeningRequestFormModule:()=>Be});var f=r(60177),F=r(19852),p=r(89417),P=r(91425),l=r(95871),R=r(76965),y=r(25559),T=r(31958),z=r(3062),g=r(63040),_=r(7605),k=r(95006),G=r(20522),B=r(15575),$=r(79928),M=r(49776),L=r(67376),x=r(14143),U=r(20536),H=r(30226);const X=[{key:"delivery_method",name:"delivery_method"}],u={rf_code:{key:"rf_code",defaultValue:"",label:"LBL_DESIGNATED_RACSF",placeholder:"LBL_PLACEHOLDER_SELECT_RACSF",validators:[p.k0.required],controlType:"select",editable:!0,options:[]},delegate_rf_submission:{key:"delegate_rf_submission",defaultValue:null,label:"LBL_SUBMIT_PRE_DECLARATION",controlType:"checkbox"},delegate_rf_consolidation:{key:"delegate_rf_consolidation",defaultValue:!0,label:"LBL_CONSOLIDATE_CARGO",controlType:"checkbox",editable:!1},rf_remarks:{key:"rf_remarks",defaultValue:"",label:"LBL_REMARKS_OPTIONAL",validators:[p.k0.maxLength(2e3)],c
1ontrolType:"textarea",fullWidth:!0,hint:()=>"LBL_ALERT_MAXIMUM_CHARACTERS_2000"},delivery_method:{key:"delivery_method",label:"LBL_DELIVERY_METHOD",defaultValue:"",validators:[p.k0.required],controlType:"radio",options:[]},tr_code:{key:"tr_code",defaultValue:"",label:"LBL_DESIGNATED_TRUCKING_COMPANY",placeholder:"LBL_PLACEHOLDER_SELECT_TRUCKING_COMPANY",validators:[p.k0.required],controlType:"select",editable:!0,options:[]},ra_warehouse_code:{key:"ra_warehouse_code",defaultValue:null,label:"LBL_PICK_UP_LOCATION",placeholder:"LBL_PLACEHOLDER_SELECT_PICK_UP_LOCATION",validators:[p.k0.required],controlType:"select",editable:!0,options:[]},pickup_date:{key:"pickup_date",defaultValue:null,label:"LBL_PICK_UP_DATE",validators:[],controlType:"datepicker",placeholder:"LBL_PLACEHOLDER_SELECT_PICK_UP_DATE",inputReadOnly:!0,disabledDateType:"AVAILABLE_BETWEEN_TODAY_AND_PLUS_DAY",NumberOfAvailableDayFromToday:7,editable:!0},pickup_time_period:{key:"pickup_time_period",label:"LBL_PICK_UP_TIME",defaultValue:"AM",validators:[p.k0.required],controlType:"radio",editable:!0,options:[{label:"AM",value:"AM"},{label:"PM",value:"PM"}]},tr_remarks:{key:"tr_remarks",defaultValue:"",label:"LBL_REMARKS_OPTIONAL",validators:[p.k0.maxLength(2e3)],c
1ontrolType:"textarea",fullWidth:!0,editable:!0,hint:()=>"LBL_ALERT_MAXIMUM_CHARACTERS_2000"},delivery_method_remarks:{key:"delivery_method_remarks",defaultValue:"",label:"LBL_REMARKS_OPTIONAL",validators:[p.k0.maxLength(2e3)],controlType:"textarea",fullWidth:!0,editable:!0,hint:()=>"LBL_ALERT_MAXIMUM_CHARACTERS_2000"}},j=["tr_code","ra_warehouse_code","pickup_date","pickup_time_period","tr_remarks"],N=["delivery_method_remarks"],K={key:"rf_detail",label:"RF detail",controlType:"table",editable:!1,deletable:!1,defaultValue:[],columns:[{header:"LBL_RF_CODE",field:"rf_code",controlType:"text",editable:!1},{header:"LBL_COMPANY_NAME",field:"company_name",controlType:"text",editable:!1},{header:"LBL_SITE_LOCATION",field:"site_location",controlType:"text",editable:!1}]};var c=r(30825),b=r(18036),W=r(85212),e=r(54438),S=r(68018),Q=r(41951),O=r(50513),I=r(16389),Y=r(25930),E=r(97529),q=r(25703),D=r(21011),m=r(23359),Z=r(48852),ee=r(86505),J=r(66646),te=r(35154),ne=r(84444),ae=r(57188),ie=r(99598);const oe=()=>["../../active-screening-request"],re=()=>({marginBottom:"1rem",marginTop:"-0.5rem"}),se=()=>({marginBottom:"1.5rem"}),le=()=>({marginBottom:"1rem"}),ce=i=>({"empty-td":i});function de(i,d){1&i&&(e.EFF(0),e.nI1(1,"translate")),2&i&&e.SpI(" ",e.bMT(1,1,"LBL_MSG_SELECT_SAME_RF_COMPANY_ASSOCIATED_MAWB_RASCF_CODE")," ")}function pe(i,d){1&i&&e.nrm(0,"i",45)}function me(i,d){if(1&i){const t=e.RV6();e.j41(0,"tr")(1,"td",46),e.bIt("nzCheckedChange",function(a){const o=e.eBV(t).$implicit,s=e.XpG();return e.Njj(s.onItemChecked(null==o?null:o.id,a))}),e.k0s(),e.j41(2,"td"),e.EFF(3),e.k0s(),e.j41(4,"td"),e.EFF(5),e.nI1(6,"translate"),e.k0s(),e.j41(7,"td"),e.EFF(8),e.nI1(9,"translate"),e.k0s(),e.j41(10,"td"),e.EFF(11),e.nI1(12,"translate"),e.k0s()()}if(2&i){const t=d.$implicit,n=e.XpG();e.R7$(),e.Y8G("nzChecked",-1!==n.checkedHawbs.indexOf(null==t?null:t.id)||-1!==n.selectedHawbs.indexOf(null==t?null:t.id))("nzDisabled",-1!==n.selectedHawbs.indexOf(null==t?null:t.id)),e.R7$(2),e.JRh(null==t?null:t.awb_number),e.R7$(2),e.JRh((null==t?null:t.weight)||e.bMT(6,6,"LBL_NOT_APPLICABLE")),e.R7$(3),e.JRh((null==t?null:t.pieces)||e.bMT(9,8,"LBL_NOT_APPLICABLE")),e.R7$(3),e.JRh((null==t?null:t.associated_mawb_rf_code)||e.bMT(12,10,"LBL_NOT_APPLICABLE"))}}function he(i,d){if(1&i){const t=e.RV6();e.j41(0,"a",49),e.bIt("click",function(){e.eBV(t);const a=e.XpG().$implicit,o=e.XpG(2);return e.Njj(o.removeRecordFromTable(a))}),e.nrm(1,"hkaa-cargo-web-icon-delete"),e.k0s()}}function _e(i,d){if(1&i&&(e.qex(0)(1),e.j41(2,"tr"),e.qex(3),e.j41(4,"td"),e.EFF(5),e.k0s(),e.j41(6,"td"),e.EFF(7),e.nI1(8,"translate"),e.k0s(),e.j41(9,"td"),e.EFF(10),e.nI1(11,"translate"),e.k0s(),e.j41(12,"td"),e.EFF(13),e.nI1(14,"translate"),e.k0s(),e.j41(15,"td",47),e.DNE(16,he,2,0,"a",48),e.k0s(),e.bVm(),e.k0s(),e.bVm()()),2&i){const t=d.$implicit;e.R7$(5),e.JRh(null==t?null:t.awb_number),e.R7$(2),e.JRh((null==t?null:t.weight)||e.bMT(8,6,"LBL_NOT_APPLICABLE")),e.R7$(3),e.JRh((null==t?null:t.pieces)||e.bMT(11,8,"LBL_NOT_APPLICABLE")),e.R7$(3),e.JRh((null==t?null:t.associated_mawb_rf_code)||e.bMT(14,10,"LBL_NOT_APPLICABLE")),e.R7$(2),e.Y8G("ngClass",e.eq3(12,ce,!(null!=t&&t.awb_number))),e.R7$(),e.Y8G("ngIf",null==t?null:t.awb_number)}}function ge(i,d){if(1&i&&(e.j41(0,"tbody"),e.DNE(1,_e,17,14,"ng-container",31),e.k0s()),2&i){e.XpG();const t=e.sdS(81);e.R7$(),e.Y8G("ngForOf",t.data)}}function ue(i,d){1&i&&(e.qex(0),e.j41(1,"span",50),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.bVm()),2&i&&(e.R7$(2),e.SpI(" ",e.bMT(3,1,"LBL_ALERT_SELECT_EXPORT_ORDER_MAWB_NOT_MATCH_RASCF")," "))}function fe(i,d){if(1&i&&(e.qex(0),e.j41(1,"div",14)(2,"div",15),e.nrm(3,"hkaa-cargo-web-form-field",16),e.k0s()(),e.j41(4,"div",14)(5,"div",15),e.nrm(6,"hkaa-cargo-web-form-field",16),e.k0s()(),e.j41(7,"div",14)(8,"div",52),e.nrm(9,"hkaa-cargo-web-form-field",16),e.k0s()(),e.j41(10,"div",14)(11,"div",52),e.nrm(12,"hkaa-cargo-web-form-field",16),e.k0s()(),e.j41(13,"div",14)(14,"div",15),e.nrm(15,"hkaa-cargo-web-form-field",16),e.k0s()(),e.bVm()),2&i){const t=e.XpG(2);e.R7$(3),e.Y8G("field",null==t.createScreeningRequestFormConfig?null:t.createScreeningRequestFormConfig.tr_code),e.R7$(3),e.Y8G("field",null==t.createScreeningRequestFormConfig?null:t.createScreeningRequestFormConfig.ra_warehouse_code),e.R7$(2),e.Y8G("nzSpan",8),e.R7$(),e.Y8G("field",null==t.createScreeningRequestFormConfig?null:t.createScreeningRequestFormConfig.pickup_date),e.R7$(2),e.Y8G("nzSpan",8),e.R7$(),e.Y8G("field",null==t.createScreeningRequestFormConfig?null:t.createScreeningRequestFormConfig.pickup_time_period),e.R7$(3),e.Y8G("field",null==t.createScreeningRequestFormConfig?null:t.createScreeningRequestFormConfig.tr_remarks)}}function Re(i,d){if(1&i&&(e.j41(0,"div",14)(1,"div",15),e.nrm(2,"hkaa-cargo-web-form-field",16),e.k0s()()),2&i){const t=e.XpG(2);e.R7$(2),e.Y8G("field",null==t.createScreeningRequestFormConfig?null:t.createScreeningRequestFormConfig.delivery_method_remarks)}}function be(i,d){if(1&i&&(e.qex(0),e.DNE(1,fe,16,7,"ng-container",51)(2,Re,3,1,"ng-template",null,5,e.C5r),e.bVm()),2&i){const t=e.sdS(3),n=e.XpG();e.R7$(),e.Y8G("ngIf","TRUCKER"===n.formGroup.get("delivery_method").value)("ngIfElse",t)}}function Ce(i,d){if(1&i){const t=e.RV6();e.j41(0,"div",53)(1,"nz-pagination",54),e.bIt("nzPageIndexChange",function(a){e.eBV(t);const o=e.XpG();return e.Njj(o.handlePageIndexChange(a))}),e.k0s()()}if(2&i){const t=e.XpG();e.R7$(),e.Y8G("nzPageIndex",t.tablePage)("nzTotal",t.tableTotal)("nzPageSize",t.tablePageSize)("nzSize",t.dataTableStyleSetting.size)}}let Te=(()=>{class i{constructor(t,n,a,o,s,h){this.store=t,this.router=n,this.formService=a,this.dataTranslateService=o,this.translateService=s,this.dataTranslatePipe=h,this.companyListLoading=!1,this.defaultPartnerL
1oading=!1,this.rfCompanyDetail=[],this.packageDetail=[],this.awbId=[],this.checkedHawbs=[],this.selectedHawbs=[],this.safeLeave=!1,this.hawbsSeletedStatus=!0,this.selectedExportOrderNotMatchRACSF=!1,this.createScreeningRequestFormConfig=u,this.rfCompanyDetailTableConfig=K,this.rfCompanyAndSiteList=[],this.trCompanyAndSiteList=[],this.editModel={editId:null,total_weight:!1,length:!1,width:!1,height:!1},this.showDimensionFieldsError={total_weight:!1,length:!1,width:!1,height:!1},this.firstEnterPageFlag=!0,this.defaultRfPartner=null,this.defaultGtPartner=null,this.destroyed$=new B.m(1),this.isRfCompanyListReadySubject=new $.t(null),this.isTrCompanyListReadySubject=new $.t(null),this.curSelectedExportOrdersList=[],this.tablePage=1,this.tableTotal=null,this.tablePageSize=5,this.tableLoading=!1,this.allChecked=!1,this.indeterminate=!1,this.dataTableStyleSetting=W.n}ngOnInit(){this.store.dispatch(l.HPJ.putStore({shipments:[]})),this.hawbFormControl=new p.hs(""),this.store.dispatch(l.HPJ.loadStart()),this.store.dispatch(l.ch7.loadCompanyList__Started({companyType:"RF"})),this.store.dispatch(l.ch7.loadCompanyList__Started({companyType:"TR"})),this.store.dispatch(l.Kqd.checkAndGetCurrentDefaultPartnerList()),this.store.select(l.MsL).pipe((0,_.Q)(this.destroyed$)).subscribe(t=>{this.companyListLoading=t?.lifecycle?.loading,t?.lifecycle?.loaded&&(u.rf_code.options=t.rfComapnyDropdownList,u.tr_code.options=t.trCompanyDropdownList,u.pickup_time_period.options=u.pickup_time_period.options?.map(n=>({...n,label:this.translateService.instant(`LBL_${n?.value?.toUpperCase()}`)})),this.rfCompanyAndSiteList=t.rfCompany.map(n=>({id:n?.id,company_name:this.dataTranslatePipe.transform(n?.company_name_en,n?.company_name_zh),site_location:this.dataTranslateService.getCompanyLocationLabel(n?.site_location),rf_code:n?.company_code})),this.trCompanyAndSiteList=t?.trCompany?.map(n=>({id:n?.id,company_name:this.dataTranslatePipe.transform(n?.company_name_en,n?.company_name_zh),site_location:this.dataTranslateService.getCompanyLocationLabel(n?.site_location),tr_code:n?.company_code})),this.isRfCompanyListReadySubject.next(!!this.rfCompanyAndSiteList),this.isTrCompanyListReadySubject.next(!!this.trCompanyAndSiteList),this.store.select(c.EF).pipe((0,_.Q)(this.destroyed$),(0,k.T)(n=>n.form.rf_code),(0,G.F)((n,a)=>n===a)).subscribe(n=>{this.rfCompanyDetail=this.rfCompanyAndSiteList.filter(a=>a.rf_code===n).map(a=>({rf_id:a?.id,rf_code:a?.rf_code,company_name:a?.company_name,site_location:a?.site_location}))}))}),this.store.dispatch(b.dV.getCompanyProfile__Started()),this.store.select(b.G_).pipe((0,_.Q)(this.destroyed$)).subscribe(t=>{const n=t.form;if(n){const a=n.warehouse_locations||[],o=[];for(const s of a)o.push({label:this.dataTranslateService.getCompanyLocationLabel(s),value:s.location_code});u.ra_warehouse_code.options=o}}),this.dataTranslateService.setDropDownOptionsForFormConfig(u,X),this.formGroup=this.formService.toFormGroupFromMap(u,{}),this.formGroup.get("delivery_method").valueChanges.subscribe(t=>{this.setDeliveryMethodLogic(t)}),this.formGroup.get("pickup_date").setValidators([F.Ak.backDate,p.k0.required]),this.formGroup.valueChanges.pipe((0,_.Q)(this.destroyed$),(0,G.F)((t,n)=>JSON.stringify(t)===JSON.stringify(n)),(0,k.T)(t=>(["pickup_date"].forEach(a=>{t[a]&&(t={...t,[a]:"string"!=typeof t[a]?(0,x.GP)(t[a],"yyyy-MM-dd"):t[a]})}),t))).subscribe(t=>{this.store.dispatch(c.Yu.patchCreateForm({form:t}))}),this.store.select(c.EF).pipe((0,_.Q)(this.destroyed$)).subscribe(t=>{this.formService.patchFormV2(this.formGroup,u,t.form),this.firstEnterPageFlag&&(this.setDeliveryMethodLogic(t.form.delivery_method),this.firstEnterPageFlag=!1)}),this.store.dispatch(c.Yu.getAvailableHawbsForScreeningDetails__Started()),this.store.select(c.DC).pipe((0,_.Q)(this.destroyed$)).subscribe(t=>{this.tableLoading=!0,this.availableHawbs=t?.content,this.tableTotal=t?.totalElements,this.tableLoading=!1}),this.store.select(c.EF).pipe((0,_.Q)(this.destroyed$),(0,k.T)(t=>t.form.awbs)).subscribe(t=>{this.packageDetail.length<1&&t.length>0&&(this.tableLoading=!0,this.packageDetail=t,this.tableLoading=!1),this.updateSelectedHawbIds()}),this.hawbFormControl.valueChanges.pipe((0,_.Q)(this.destroyed$)).subscribe(t=>{this.store.dispatch(c.Yu.patchAvailableHawbsForScreeningDetailsQueryDTO__Completed({query:{page:0,awb_number:t?.trim()}}))})}
1setDeliveryMethodLogic(t){if("TRUCKER"===t){j.forEach(s=>{this.formGroup.get(s).enable()}),N.forEach(s=>{this.formGroup.get(s).disable()});const n=this.formGroup.get("pickup_date").value,a=(0,U.qg)(n,l.rhr.BACKEND_STRING_DATE,new Date),o=(0,H.o)(Date.now());a<o&&this.formGroup.get("pickup_date").setValue((0,x.GP)(o,l.rhr.BACKEND_STRING_DATE)),!this.formGroup?.value?.tr_code&&this.defaultGtPartner&&this.trCompanyAndSiteList&&this.defaultGtPartner&&this.formGroup.get("tr_code").setValue(this.defaultGtPartner)}else j.forEach(n=>{this.formGroup.get(n).disable()}),N.forEach(n=>{this.formGroup.get(n).enable()});(0,M.zV)([this.store.select(l.Dc5),this.store.select(l.Mhp),this.isRfCompanyListReadySubject,this.isTrCompanyListReadySubject]).pipe((0,_.Q)(this.destroyed$)).subscribe(([n,a,o,s])=>{if(this.defaultPartnerLoading=n?.defaultPartnerLoading,n&&n?.defaultPartnerLoaded&&a&&(o||s)){const h=this.formGroup.get("rf_code"),v=this.formGroup.get("tr_code");if(o&&!h?.value){const C=a?.rfPartners?.[0]?.company_code;this.rfCompanyAndSiteList.find(A=>A.rf_code===C)&&(h?.patchValue(C),this.defaultRfPartner=a?.rfPartner?.[0]?.company_code)}if(s&&!v?.value){const C=a?.gtPartner?.company_code;this.trCompanyAndSiteList.find(A=>A.tr_code===C)&&(v?.patchValue(C),this.defaultGtPartner=C)}}})}checkAssociatedMawbRACSFCodeValidation(){const t=this.rfCompanyDetail?.[0]?.rf_code;let n=!1;return this.packageDetail?.map(a=>{a?.associated_mawb_rf_code&&a?.associated_mawb_rf_code!==t&&(n=!0)}),n}onConfirm(){this.formGroup.markAllAsTouched(),this.formGroup.markAsDirty(),this.formGroup.updateValueAndValidity();const t=Object.values(this.showDimensionFieldsError).filter(n=>n);this.selectedExportOrderNotMatchRACSF=this.checkAssociatedMawbRACSFCodeValidation(),this.formGroup.valid&&this.packageDetail.length>0&&t.length<1&&!this.selectedExportOrderNotMatchRACSF?(this.safeLeave=!0,this.hawbsSeletedStatus=!0,this.selectedExportOrderNotMatchRACSF=!1,this.router.navigate(["/ra/pages/export/screening-request/create/preview"]),this.store.dispatch(c.Yu.patchAvailableHawbsForScreeningDetailsQueryDTO__Completed({query:{page:0}}))):this.hawbsSeletedStatus=0!==this.packageDetail.length}onSelectExportOrders(){if(this.packageDetail.length>0){const t=L.compact(this.curSelectedExportOrdersList).filter(n=>!this.packageDetail.find(a=>n.id===a.id));this.packageDetail=[...this.packageDetail,...t]}else this.packageDetail=L.compact(this.curSelectedExportOrdersList);this.store.dispatch(c.Yu.patchCreateForm({form:{awbs:this.packageDetail}})),this.hawbsSeletedStatus=this.packageDetail.length>0}onItemChecked(t,n){if(n){const a=[this.availableHawbs?.find(o=>o.id===t)];if(this.curSelectedExportOrdersList.length>0){const o=L.compact(a).filter(s=>!this.curSelectedExportOrdersList.find(h=>s.id===h.id));this.curSelectedExportOrdersList=[...this.curSelectedExportOrdersList,...o]}else this.curSelectedExportOrdersList=a}else this.curSelectedExportOrdersList=this.curSelectedExportOrdersList.filter(a=>a?.id!==t);this.updateCheckedHawbsIds()}updateCheckedHawbsIds(){this.checkedHawbs=this.curSelectedExportOrdersList.map(t=>t.id)}updateSelectedHawbIds(){this.selectedHawbs=this.packageDetail.map(t=>t?.id)}handlePageIndexChange(t){this.store.dispatch(c.Yu.patchAvailableHawbsForScreeningDetailsQueryDTO__Completed({query:{page:t-1}}))}ngOnDestroy(){this.destroyed$.next(!0),this.destroyed$.complete(),this.safeLeave||(this.store.dispatch(c.Yu.initCreateScreeningRequests()),this.store.dispatch(l.HPJ.putStore({shipments:[]})))}canDeactivate(){return this.safeLeave}unloadHandler(t){return t.preventDefault(),t.returnValue=!1,!1}removeRecordFromTable(t){this.packageDetail=this.packageDetail.filter(n=>n?.id!==t?.id),this.store.dispatch(c.Yu.patchCreateForm({form:{awbs:this.packageDetail}})),this.curSelectedExportOrdersList=this.curSelectedExportOrdersList.filter(n=>n?.id!==t?.id),this.updateCheckedHawbsIds(),this.onSelectExportOrders(),this.selectedExportOrderNotMatchRACSF=!1}static{this.\u0275fac=function(n){return new(n||i)(e.rXU(R.il),e.rXU(g.Ix),e.rXU(l.ux2),e.rXU(l.ABT),e.rXU(S.c$),e.rXU(F.Bq))}}static{this.\u0275cmp=e.VBU({type:i,selectors:[["hkaa-cargo-web-create-screening-request-form-page"]],hostBindings:function(n,a){1&n&&e.bIt("beforeunload",function(s){return a.unloadHandler(s)},!1,e.tSv)},standalone:!1,decls:114,vars:108,consts:[["titleTemplate",""],["suffixIconSearch",""],["rowSelectionTable",""],["shipmentDimension",""],["footer",""],["otherDeliveryMethod",""],[3,"nzSpinning"],["nz-page-header-breadcrumb","","nzSeparator",">"],["routerLink","../../home"],[1,"mt-32"],[1,"h1__custom","page-title"],[1,"btn-active-delivery-request",3,"routerLink"],[3,"keydown.enter","formGroup"],[3,"nzTitle"],["nz-row","",1,"customize-width-874"],["nz-col","",1,"customize-width-874"],[3,"field"],[3,"deletable","editable","tableColumns","tableValue"],[2,"margin-top","16px",3,"nzTitle"],["nz-col","",1,"customize-width-874","mb-8"],["href","javascript:;","nz-button","","nz-tooltip","","nzTooltipPlacement","bottomLeft","nzTooltipTrigger","click",1,"icon-tooltip",3,"nzTooltipTitle"],["nz-icon","","nzType","info","nzTheme","outline"],[2,"width","100%",3,"nzPrefix"],["nz-input","","type","text",3,"placeholder","formControl"],["nz-row","",1,"customize-width-874","mb-16"],[1,"form-spin-loading",3,"nzSpinning"],["data-testid","export-order-details-table",3,"nzData","nzShowPagination","nzFrontPagination","nzPageSize","nzFooter","nzBordered","nzShowSizeChanger","nzSimple","nzSize","nzTableLayout"],["nzWidth","5%"],["nzWidth","25%"],["nzWidth","15%"],["nzWidth","40%"],[4,"ngFor","ngForOf"],[1,"screening-request__ra-button-list"],["nzType","primary","nz-button","",3,"click","disabled"],[1,"label__bold"],["data-testid","selected-export-order-details-table",1,"customized-table",3,"nzShowPagination","nzFrontPagination","nzData","nzBordered"],["nzWidth","38%"],["nzWidth","7%"],[4,"ngIf"],["nz-typography","","nzType","danger",1,"alert",3,"hidden"],[1,"mt-16",3,"nzTitle"],["nz-row",""],["nz-col",""],[1,"form-footer"],["nz-button","","nzType","primary",3,"click","nzSize"],["nz-icon","","nzType","search"],[3,"nzCheckedChange","nzChecked","nzDisabled"],["nzAlign","center",3,"ngClass"],[3,"click",4,"ngIf"],[3,"click"],["nz-typography","","nzType","danger"],[4,"ngIf","ngIfElse"],["nz-col","",3,"nzSpan"],[1,"cdp-data-grey-table__pagination-footer"],["nzShowQuickJumper","",3,"nzPageIndexChange","nzPageIndex","
1nzTotal","nzPageSize","nzSize"]],template:function(n,a){if(1&n){const o=e.RV6();e.j41(0,"nz-spin",6)(1,"nz-breadcrumb",7)(2,"nz-breadcrumb-item")(3,"a",8),e.EFF(4),e.nI1(5,"translate"),e.k0s()(),e.j41(6,"nz-breadcrumb-item")(7,"strong"),e.EFF(8),e.nI1(9,"translate"),e.k0s()()(),e.nrm(10,"div",9),e.j41(11,"h1",10),e.EFF(12),e.nI1(13,"translate"),e.k0s(),e.j41(14,"a",11),e.EFF(15),e.nI1(16,"translate"),e.k0s(),e.j41(17,"form",12),e.bIt("keydown.enter",function(h){return e.eBV(o),e.Njj(h.preventDefault())}),e.j41(18,"nz-card",13),e.nI1(19,"translate"),e.j41(20,"div",14)(21,"div",15),e.nrm(22,"hkaa-cargo-web-form-field",16),e.k0s()(),e.j41(23,"div",14)(24,"div",15),e.nrm(25,"hkaa-cargo-web-table",17),e.k0s()(),e.j41(26,"div",14)(27,"div",15),e.nrm(28,"hkaa-cargo-web-form-field",16),e.k0s()()(),e.j41(29,"nz-card",18),e.nI1(30,"translate"),e.j41(31,"div",14)(32,"div",19)(33,"label"),e.EFF(34),e.nI1(35,"translate"),e.k0s(),e.j41(36,"a",20),e.nrm(37,"i",21),e.k0s(),e.DNE(38,de,2,3,"ng-template",null,0,e.C5r),e.k0s()(),e.j41(40,"div",14)(41,"div",15)(42,"nz-input-group",22),e.nrm(43,"input",23),e.nI1(44,"translate"),e.k0s(),e.DNE(45,pe,1,0,"ng-template",null,1,e.C5r),e.k0s()(),e.j41(47,"div",24)(48,"div",15)(49,"nz-spin",25)(50,"nz-table",26,2)(52,"thead")(53,"tr"),e.nrm(54,"th",27),e.j41(55,"th",28),e.EFF(56),e.nI1(57,"translate"),e.k0s(),e.j41(58,"th",29),e.EFF(59),e.nI1(60,"translate"),e.k0s(),e.j41(61,"th",29),e.EFF(62),e.nI1(63,"translate"),e.k0s(),e.j41(64,"th",30),e.EFF(65),e.nI1(66,"translate"),e.k0s()()(),e.j41(67,"tbody"),e.DNE(68,me,13,12,"tr",31),e.k0s()()()()(),e.j41(69,"div",14)(70,"div",15)(71,"div",32)(72,"button",33),e.bIt("click",function(){return e.eBV(o),e.Njj(a.onSelectExportOrders())}),e.EFF(73),e.nI1(74,"translate"),e.k0s()()()(),e.j41(75,"div",14)(76,"div",15)(77,"label",34),e.EFF(78),e.nI1(79,"translate"),e.k0s(),e.j41(80,"nz-table",35,3)(82,"thead")(83,"tr")(84,"th",28),e.EFF(85),e.nI1(86,"translate"),e.k0s(),e.j41(87,"th",29),e.EFF(88),e.nI1(89,"translate"),e.k0s(),e.j41(90,"th",29),e.EFF(91),e.nI1(92,"translate"),e.k0s(),e.j41(93,"th",36),e.EFF(94),e.nI1(95,"translate"),e.k0s(),e.nrm(96,"th",37),e.k0s()(),e.DNE(97,ge,2,1,"tbody",38),e.k0s()()(),e.j41(98,"span",39),e.EFF(99),e.nI1(100,"translate"),e.k0s(),e.DNE(101,ue,4,3,"ng-container",38),e.k0s(),e.j41(102,"nz-card",40),e.nI1(103,"translate"),e.j41(104,"div",41)(105,"div",42),e.nrm(106,"hkaa-cargo-web-form-field",16),e.k0s()(),e.DNE(107,be,4,2,"ng-container",38),e.k0s()(),e.j41(108,"div",43)(109,"button",44),e.bIt("click",function(){return e.eBV(o),e.Njj(a.onConfirm())}),e.EFF(110),e.nI1(111,"translate"),e.k0s()()(),e.DNE(112,Ce,2,4,"ng-template",null,4,e.C5r)}if(2&n){const o=e.sdS(39),s=e.sdS(46),h=e.sdS(51),v=e.sdS(113);e.Y8G("nzSpinning",a.companyListLoading||a.defaultPartnerLoading),e.R7$(4),e.JRh(e.bMT(5,62,"LBL_BREADCRUMB_EXPORT_ORDERS")),e.R7$(4),e.JRh(e.bMT(9,64,"LBL_BREADCRUMB_CREATE_SCREENING_REQUEST")),e.R7$(4),e.JRh(e.bMT(13,66,"PGTTL_CREAT_SCREENING_REQUEST")),e.R7$(2),e.Y8G("routerLink",e.lJ4(104,oe)),e.R7$(),e.JRh(e.bMT(16,68,"BTN_VIEW_ACTIVE_SCREENING_REQUEST")),e.R7$(2),e.Y8G("formGroup",a.formGroup),e.R7$(),e.FS9("nzTitle",e.bMT(19,70,"PGTTL_ASSIGN_RACSF")),e.R7$(4),e.Y8G("field",null==a.createScreeningRequestFormConfig?null:a.createScreeningRequestFormConfig.rf_code),e.R7$(),e.Aen(e.lJ4(105,re)),e.R7$(2),e.Y8G("deletable",!1)("editable",!1)("tableColumns",null==a.rfCompanyDetailTableConfig?null:a.rfCompanyDetailTableConfig.columns)("tableValue",a.rfCompanyDetail),e.R7$(3),e.Y8G("field",null==a.createScreeningRequestFormConfig?null:a.createScreeningRequestFormConfig.rf_remarks),e.R7$(),e.FS9("nzTitle",e.bMT(30,72,"PGTTL_SELECT_EXPORT_ORDERS")),e.R7$(5),e.JRh(e.bMT(35,74,"LBL_SELECT_EXPORT_ORDER_NUMBER")),e.R7$(2),e.Y8G("nzTooltipTitle",o),e.R7$(4),e.Aen(e.lJ4(106,se)),e.R7$(2),e.Y8G("nzPrefix",s),e.R7$(),e.FS9("placeholder",e.bMT(44,76,"LBL_PLACEHOLDER_SELECT_HAWB_NUMBER")),e.Y8G("formControl",a.hawbFormControl),e.R7$(6),e.Y8G("nzSpinning",a.tableLoading),e.R7$(),e.Y8G("nzData",a.availableHawbs)("nzShowPagination",!1)("nzFrontPagination",!1)("nzPageSize",a.tablePageSize)("nzFooter",v)("nzBordered",!0)("nzShowSizeChanger",a.dataTableStyleSetting.sizeChanger)("nzSimple",a.dataTableStyleSetting.simple)("nzSize",a.dataTableStyleSetting.size)("nzTableLayout",a.dataTableStyleSetting.tableLayout),e.R7$(6),e.JRh(e.bMT(57,78,"LBL_EXPORT_ORDER_NUMBER")),e.R7$(3),e.JRh(e.bMT(60,80,"LBL_TOTAL_WT_KG")),e.R7$(3),e.JRh(e.bMT(63,82,"LBL_NO_OF_PCS")),e.R7$(3),e.JRh(e.bMT(66,84,"LBL_ASSOCIATED_MAWB_RACSF_CODE")),e.R7$(3),e.Y8G("ngForOf",h.data),e.R7$(),e.Aen(e.lJ4(107,le)),e.R7$(3),e.Y8G("disabled",0===(null==a.checkedHawbs?null:a.checkedHawbs.length)),e.R7$(),e.SpI("",e.bMT(74,86,"BTN_SELECT")," "),e.R7$(5),e.JRh(e.bMT(79,88,"LBL_SELECTED_EXPORT_ORDERS")),e.R7$(2),e.Y8G("nzShowPagination",!1)("nzFrontPagination",!1)("nzData",a.packageDetail)("nzBordered",!0),e.R7$(5),e.JRh(e.bMT(86,90,"LBL_EXPORT_ORDER_NUMBER")),e.R7$(3),e.JRh(e.bMT(89,92,"LBL_TOTAL_WT_KG")),e.R7$(3),e.JRh(e.bMT(92,94,"LBL_NO_OF_PCS")),e.R7$(3),e.JRh(e.bMT(95,96,"LBL_ASSOCIATED_MAWB_RACSF_CODE")),e.R7$(3),e.Y8G("ngIf",(null==a.packageDetail?null:a.packageDetail.length)>0),e.R7$(),e.Y8G("hidden",a.hawbsSeletedStatus),e.R7$(),e.JRh(e.bMT(100,98,"LBL_ALERT_SELETE_EXPORT_ORDER")),e.R7$(2),e.Y8G("ngIf",a.selectedExportOrderNotMatchRACSF),e.R7$(),e.FS9("nzTitle",e.bMT(103,100,"LBL_DELIVERY_METHOD")),e.R7$(4),e.Y8G("field",null==a.createScreeningRequestFormConfig?null:a.createScreeningRequestFormConfig.delivery_method),e.R7$(),e.Y8G("ngIf",a.formGroup.get("delivery_method").value),e.R7$(2),e.Y8G("nzSize","large"),e.R7$(),e.JRh(e.bMT(111,102,"BTN_CONTINUE"))}},dependencies:[f.YU,f.Sq,f.bT,g.Wk,p.qT,p.me,p.BC,p.cb,p.l_,p.j4,Q.Dn,O.aO,I.c,Y.p,E.Uq,E.e,q.cK,D.Sy,D.tg,D.vN,T.hL,T.K7,z.pp,m.CP,m.SO,m._4,m.GM,m.IL,m.aj,m.kt,m.jc,Z.Di,ee.ae,J.a,te.LH,ne.O,ae.z,ie.o,S.D9],styles:[".icon-tooltip{width:20px;height:20px;border-radius:50%;background-color:#6b75f8;display:inline-block;position:relative;vertical-align:top;margin-left:15px}
1 .icon-tooltip:hover, .icon-tooltip:focus{background-color:#6b75f8b8;border-color:transparent} .icon-tooltip .anticon-info{color:#fff;position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);font-size:14px} .ant-tooltip-placement-bottomRight .ant-tooltip-arrow-content, .ant-tooltip-placement-bottomLeft .ant-tooltip-arrow-content, .ant-tooltip-placement-bottom .ant-tooltip-arrow-content{transform:translateY(14px) rotate(45deg)} .ant-tooltip-placement-topRight .ant-tooltip-arrow-content, .ant-tooltip-placement-topLeft .ant-tooltip-arrow-content, .ant-tooltip-placement-top .ant-tooltip-arrow-content{transform:translateY(-14px) rotate(225deg)} .ant-tooltip-placement-rightTop .ant-tooltip-arrow-content, .ant-tooltip-placement-rightBottom .ant-tooltip-arrow-content, .ant-tooltip-placement-right .ant-tooltip-arrow-content{transform:translate(14px) rotate(-45deg)} .ant-tooltip-placement-leftTop .ant-tooltip-arrow-content, .ant-tooltip-placement-leftBottom .ant-tooltip-arrow-content, .ant-tooltip-placement-left .ant-tooltip-arrow-content{transform:translate(-14px) rotate(-225deg)} .ant-tooltip-arrow-content:before{background:#6b75f8} .ant-tooltip-placement-bottomLeft .ant-tooltip-arrow{left:0} .ant-tooltip-placement-bottomRight .ant-tooltip-arrow{right:7px} .ant-tooltip{margin-right:-9px;max-width:380px} .ant-tooltip-inner ol{padding-left:0;margin:0} .ant-tooltip-inner .no-indent{padding-left:0} .ant-tooltip-inner li{padding-left:20px;list-style-type:none;position:relative;line-height:21px;font-size:15px} .ant-tooltip-inner li span{color:#6b75f8;font-size:9px;font-weight:700;background-color:#fff;border-radius:50%;display:inline-block;text-align:center;width:15px;height:15px;line-height:15px;position:absolute;left:0;top:3px} .ant-tooltip-inner li pre{margin-bottom:0;display:inline} .hawb-tooltip .ant-tooltip-content .ant-tooltip-inner{line-clamp:3;-webkit-line-clamp:3;overflow-y:clip;display:-webkit-inline-box;-webkit-box-orient:vertical;text-overflow:ellipsis}.screening-request__ra-button-list[_ngcontent-%COMP%]{display:flex;justify-content:flex-end}nz-table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] > th[_ngcontent-%COMP%], nz-table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] > td[_ngcontent-%COMP%]{font-weight:400;background:#f7f9fc}.customize-width-874[_ngcontent-%COMP%]{width:874px}.customize-width-874[_ngcontent-%COMP%] .ant-table-footer{background:#f7f9fc}.customize-width-874[_ngcontent-%COMP%] .ant-pagination-item-active{background:#f7f9fc!important}.customize-width-874[_ngcontent-%COMP%] .ant-pagination-options-quick-jumper input{background:#f7f9fc}.editable-cell[_ngcontent-%COMP%]{position:relative;padding:5px 12px 5px 0;cursor:pointer}.tr-height[_ngcontent-%COMP%]{height:2rem}.mandatory-error[_ngcontent-%COMP%]{font-size:.8125rem}.empty-td[_ngcontent-%COMP%]{padding:1rem 0}.page-title[_ngcontent-%COMP%]{display:inline-flex}.btn-active-delivery-request[_ngcontent-%COMP%]{float:right;padding-top:12px}"]})}}return i})();var V=r(58728),Le=r(29082);function Ee(i,d){1&i&&(e.j41(0,"div",20),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&i&&(e.R7$(),e.JRh(e.bMT(2,1,"LBL_NOT_APPLICABLE")))}function Se(i,d){if(1&i&&(e.qex(0)(1),e.j41(2,"tr"),e.qex(3),e.j41(4,"td"),e.EFF(5),e.k0s(),e.j41(6,"td"),e.EFF(7),e.nI1(8,"translate"),e.k0s(),e.j41(9,"td"),e.EFF(10),e.nI1(11,"translate"),e.k0s(),e.j41(12,"td"),e.EFF(13),e.nI1(14,"translate"),e.k0s(),e.bVm(),e.k0s(),e.bVm()()),2&i){const t=d.$implicit;e.R7$(5),e.JRh(null==t?null:t.awb_number),e.R7$(2),e.JRh((null==t?null:t.weight)||e.bMT(8,4,"LBL_NOT_APPLICABLE")),e.R7$(3),e.JRh((null==t?null:t.pieces)||e.bMT(11,6,"LBL_NOT_APPLICABLE")),e.R7$(3),e.JRh((null==t?null:t.associated_mawb_rf_code)||e.bMT(14,8,"LBL_NOT_APPLICABLE"))}}function ve(i,d){if(1&i&&(e.qex(0),e.j41(1,"div",27)(2,"div",10)(3,"nz-table",28,2)(5,"thead")(6,"tr")(7,"th"),e.EFF(8),e.nI1(9,"translate"),e.k0s(),e.j41(10,"th"),e.EFF(11),e.nI1(12,"translate"),e.k0s(),e.j41(13,"th"),e.EFF(14),e.nI1(15,"translate"),e.k0s(),e.j41(16,"th"),e.EFF(17),e.nI1(18,"translate"),e.k0s()()(),e.j41(19,"tbody"),e.DNE(20,Se,15,10,"ng-container",29),e.k0s()()()(),e.bVm()),2&i){const t=e.sdS(4),n=e.XpG();e.R7$(2),e.Y8G("nzSpan",16),e.R7$(),e.Y8G("nzShowPagination",!1)("nzFrontPagination",!1)("nzData",null==n.formData?null:n.formData.awbs)("nzBordered",!0),e.R7$(5),e.JRh(e.bMT(9,10,"LBL_EXPORT_ORDER_NUMBER")),e.R7$(3),e.JRh(e.bMT(12,12,"LBL_TOTAL_WT_KG")),e.R7$(3),e.JRh(e.bMT(15,14,"LBL_NO_OF_PCS")),e.R7$(3),e.JRh(e.bMT(18,16,"LBL_ASSOCIATED_MAWB_RACSF_CODE")),e.R7$(3),e.Y8G("ngForOf",null==t?null:t.data)}}function Fe(i,d){if(1&i&&(e.j41(0,"div",20),e.EFF(1),e.nI1(2,"translate"),e.nI1(3,"date"),e.k0s()),2&i){const t=e.XpG(2);e.R7$(),e.SpI(" ",e.i5U(3,3,t.formData.pickup_date,t.COMMON_DATA_FORMAT.DATE||e.bMT(2,1,"LBL_NOT_APPLICABLE"))," ")}}function Pe(i,d){if(1&i&&(e.qex(0),e.j41(1,"div",21)(2,"div",22)(3,"div",19),e.EFF(4),e.nI1(5,"translate"),e.k0s(),e.j41(6,"div",20),e.EFF(7),e.nI1(8,"translate"),e.k0s()()(),e.j41(9,"div",21)(10,"div",22)(11,"div",19),e.EFF(12),e.nI1(13,"translate"),e.k0s(),e.j41(14,"div",20),e.EFF(15),e.nI1(16,"translate"),e.k0s()()(),e.j41(17,"div",21)(18,"div",10)(19,"div",19),e.EFF(20),e.nI1(21,"translate"),e.k0s(),e.DNE(22,Fe,4,6,"div",30),e.nI1(23,"date"),e.k0s(),e.j41(24,"div",10)(25,"div",19),e.EFF(26),e.nI1(27,"translate"),e.k0s(),e.j41(28,"div",20),e.EFF(29),e.nI1(30,"translate"),e.nI1(31,"translate"),e.k0s()()(),e.j41(32,"div",21)(33,"div",22)(34,"div",19),e.EFF(35),e.nI1(36,"translate"),e.k0s(),e.j41(37,"div",20),e.EFF(38),e.nI1(39,"translate"),e.k0s()()(),e.bVm()),2&i){const t=e.XpG(),n=e.sdS(91);
1e.R7$(),e.Y8G("nzGutter",16),e.R7$(3),e.SpI("",e.bMT(5,17,"LBL_TRUCKING_COMPANY"),":"),e.R7$(3),e.JRh((null==t.formData?null:t.formData.tr_company_name)||e.bMT(8,19,"LBL_NOT_APPLICABLE")),e.R7$(2),e.Y8G("nzGutter",16),e.R7$(3),e.SpI("",e.bMT(13,21,"LBL_PICK_UP_LOCATION"),":"),e.R7$(3),e.JRh(t.raWareHouseSiteAddress[null==t.formData?null:t.formData.ra_warehouse_code]||e.bMT(16,23,"LBL_NOT_APPLICABLE")),e.R7$(2),e.Y8G("nzGutter",16),e.R7$(),e.Y8G("nzSpan",6),e.R7$(2),e.SpI("",e.bMT(21,25,"LBL_PICK_UP_DATE"),":"),e.R7$(2),e.Y8G("ngIf",e.i5U(23,27,t.formData.pickup_date,t.COMMON_DATA_FORMAT.DATE))("ngIfElse",n),e.R7$(2),e.Y8G("nzSpan",6),e.R7$(2),e.SpI("",e.bMT(27,30,"LBL_PICK_UP_DATE"),":"),e.R7$(3),e.JRh(e.bMT(30,32,"LBL_"+(null==t.formData?null:t.formData.pickup_time_period))||e.bMT(31,34,"LBL_NOT_APPLICABLE")),e.R7$(3),e.Y8G("nzGutter",16),e.R7$(3),e.SpI("",e.bMT(36,36,"LBL_REMARKS"),":"),e.R7$(3),e.JRh((null==t.formData?null:t.formData.tr_remarks)||e.bMT(39,38,"LBL_NOT_APPLICABLE"))}}function ye(i,d){if(1&i&&(e.j41(0,"div",21)(1,"div",22)(2,"div",19),e.EFF(3),e.nI1(4,"translate"),e.k0s(),e.j41(5,"div",20),e.EFF(6),e.nI1(7,"translate"),e.k0s()()()),2&i){const t=e.XpG();e.Y8G("nzGutter",16),e.R7$(3),e.SpI("",e.bMT(4,3,"LBL_REMARKS"),":"),e.R7$(3),e.JRh((null==t.formData?null:t.formData.delivery_method_remarks)||e.bMT(7,5,"LBL_NOT_APPLICABLE"))}}function ze(i,d){1&i&&(e.j41(0,"div",20),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&i&&(e.R7$(),e.JRh(e.bMT(2,1,"LBL_NOT_APPLICABLE")))}let ke=(()=>{class i{constructor(t,n,a,o){this.store=t,this.router=n,this.activatedRoute=a,this.dataTranslateService=o,this.COMMON_DATA_FORMAT=l.rhr,this.savingScreeningRequest=!1,this.raWareHouseSiteAddress={},this.pageLoading=!1,this.destroyed$=new B.m(1),this.safeLeave=!1,this.routerSub=n.events.pipe((0,V.p)(s=>s instanceof g.wF)).subscribe(s=>{this.safeLeave=1===s.id&&s.url===s.urlAfterRedirects,this.safeLeave&&n.navigate([".."],{relativeTo:a})})}ngOnInit(){this.store.select(c.ND).pipe((0,_.Q)(this.destroyed$)).subscribe(t=>{this.formData=t,this.selectedHawbs=this.formData.awbs.map(n=>n.awb_number).filter(n=>null!=n)}),this.store.select(c.xJ).pipe((0,_.Q)(this.destroyed$)).subscribe(t=>{t&&(this.pageLoading=t?.confirming),this.savingScreeningRequest=t.saving}),(0,M.zV)([this.store.select(l.MsL),this.store.select("language")]).pipe((0,_.Q)(this.destroyed$),(0,V.p)(([t])=>t&&t.lifecycle&&t.lifecycle.loaded)).subscribe(([t,n])=>{const a=n.currentLang;t.trCompany.map(o=>{o.company_code===this.formData.tr_code&&(this.formData=L.assignIn({},this.formData,{tr_company_name:"zh-HK"===a?o?.company_name_zh:o?.company_name_en}))}),t.rfCompany.map(o=>{o.company_code===this.formData.rf_code&&(this.formData=L.assignIn({},this.formData,{rf_company_name:"zh-HK"===a?o?.company_name_zh:o?.company_name_en,rf_address:"zh-HK"===a?o?.site_location?.full_address_zh:o?.site_location?.full_address_en}))})}),(0,M.zV)([this.store.select(b.G_),this.store.select("language")]).pipe((0,_.Q)(this.destroyed$)).subscribe(([t,n])=>{const a=n.currentLang,o=t.form;o&&(o.warehouse_locations||[]).map(h=>{this.raWareHouseSiteAddress[h.location_code]="zh-HK"===a?h?.full_address_zh:h?.full_address_en})})}canDeactivate(){return this.safeLeave}ngOnDestroy(){this.destroyed$.next(!0),this.destroyed$.complete(),this.safeLeave||this.store.dispatch(c.Yu.initCreateScreeningRequests()),this.routerSub&&this.routerSub.unsubscribe()}routeToLastPage(){this.safeLeave=!0,this.router.navigate([".."],{relativeTo:this.activatedRoute})}submitForm(){this.safeLeave=!0,this.store.dispatch(c.Yu.saveCreateFormConfirm__Started())}unloadHandler(t){return t.preventDefault(),t.returnValue=!1,!1}static{this.\u0275fac=function(n){return new(n||i)(e.rXU(R.il),e.rXU(g.Ix),e.rXU(g.nX),e.rXU(l.ABT))}}static{this.\u0275cmp=e.VBU({type:i,selectors:[["hkaa-cargo-web-screening-request-form-preview-page"]],hostBindings:function(n,a){1&n&&e.bIt("beforeunload",function(s){return a.unloadHandler(s)},!1,e.tSv)},standalone:!1,decls:92,vars:83,consts:[["otherDeliveryMethod",""],["emptyDate",""],["shipmentDimension",""],[1,"form-spin-loading",3,"nzSpinning"],["nz-page-header-breadcrumb","","nzSeparator",">"],["routerLink","../../../home"],[3,"click"],[1,"mt-32"],[1,"h1__custom","header__margin-top"],["nz-row","",3,"nzGutter"],["nz-col","",3,"nzSpan"],[1,"preview__header"],["nz-row","",1,"preview__header__first",3,"nzGutter"],[1,"label","text__bold"],["class","detail__bold",4,"ngIf"],[4,"ngIf"],["nz-row","",1,"preview--section__header",3,"nzGutter"],[1,"preview-section__header","header__margin-bottom"],["nz-row","",1,"preview-section-detail__first",3,"nzGutter"],[1,"label","key__light"],[1,"detail__bold"],["nz-row","",1,"preview-section__row",3,"nzGutter"],["nz-col",""],[4,"ngIf","ngIfElse"],[1,"form-footer"],["nz-button","","nzGhost","","nzType","default",3,"click","nzSize"],["nz-button","","nzType","primary",3,"click","nzSize","disabled"],["nz-row","",1,"mt-8"],["data-testid","export-order-details-preview-table",1,"customized-table",3,"nzShowPagination","nzFrontPagination","nzData","nzBordered"],[4,"ngFor","ngForOf"],["class","detail__bold",4,"ngIf","ngIfElse"]],template:function(n,a){if(1&n){const o=e.RV6();e.j41(0,"nz-spin",3)(1,"nz-breadcrumb",4)(2,"nz-breadcrumb-item")(3,"a",5),e.EFF(4),e.nI1(5,"translate"),e.k0s()(),e.j41(6,"nz-breadcrumb-item")(7,"a",6),e.bIt("click",function(){return e.eBV(o),e.Njj(a.routeToLastPage())}),e.EFF(8),e.nI1(9,"translate"),e.k0s()(),e.j41(10,"nz-breadcrumb-item")(11,"strong"),e.EFF(12),e.nI1(13,"translate"),e.k0s()()(),e.nrm(14,"div",7),e.j41(15,"h1",8),e.EFF(16),e.nI1(17,"translate"),e.k0s(),e.j41(18,"nz-card")(19,"div",9)(20,"div",10)(21,"h6",11),e.EFF(22),e.nI1(23,"translate"),e.k0s()()(),e.j41(24,"div",12)(25,"div",10)(26,"div",13),e.EFF(27),e.nI1(28,"translate"),e.k0s(),e.DNE(29,Ee,3,3,"div",14),e.k0s()(),e.DNE(30,ve,21,18,"ng-container",15),e.j41(31,"div",16)(32,"div",10)(33,"h6",17),e.EFF(34),e.nI1(35,"translate"),e.k0s()()(),e.j41(36,"div",18)(37,"div",10)(38,"div",19),e.EFF(39),e.nI1(40,"translate"),e.k0s(),e.j41(41,"div",20),e.EFF(42),e.nI1(43,"translate"),e.k0s()(),e.j41(44,"div",10)(45,"div",19),e.EFF(46),e.nI1(47,"translate"),e.k0s(),e.j41(48,"div",20),e.EFF(49),e.nI1(50,"translate"),e.k0s()()(),e.j41(51,"div",21)(52,"div",22)(53,"div",19),e.EFF(54),e.nI1(55,"translate"),e.k0s(),e.j41(56,"div",20),e.EFF(57),e.nI1(58,"translate"),e.k0s()()(),e.j41(59,"div",21)(60,"div",22)(61,"div",19),e.EFF(62),e.nI1(63,"translate"),e.k0s(),e.j41(64,"div",20),e.EFF(65),e.nI1(66,"translate"),e.k0s()()(),e.j41(67,"div",16)(68,"div",10)(69,"h6",17),e.EFF(70),e.nI1(71,"translate"),e.k0s()()(),e.j41(72,"div",18)(73,"div",22)(74,"div",19),e.EFF(75),e.nI1(76,"translate"),e.k0s(),e.j41(77,"div",20),e.EFF(78),e.nI1(79,"mockTranslate"),e.k0s()()(),e.DNE(80,Pe,40,40,"ng-container",23)(81,ye,8,7,"ng-template",null,0,e.C5r),e.k0s(),e.j41(83,"div",24)(84,"button",25),e.bIt("click",function(){return e.eBV(o),e.Njj(a.routeToLastPage())}),e.EFF(85),e.nI1(86,"translate"),e.k0s(),e.j41(87,"button",26),e.bIt("click",function(){return e.eBV(o),e.Njj(a.submitForm(
1))}),e.EFF(88),e.nI1(89,"translate"),e.k0s()(),e.DNE(90,ze,3,3,"ng-template",null,1,e.C5r),e.k0s()}if(2&n){const o=e.sdS(82);e.Y8G("nzSpinning",a.pageLoading),e.R7$(4),e.JRh(e.bMT(5,42,"LBL_BREADCRUMB_EXPORT_ORDERS")),e.R7$(4),e.JRh(e.bMT(9,44,"LBL_BREADCRUMB_CREATE_SCREENING_REQUEST")),e.R7$(4),e.JRh(e.bMT(13,46,"LBL_BREADCRUMB_PREVIEW_AND_CONFIRM")),e.R7$(4),e.JRh(e.bMT(17,48,"PGTTL_PREVIEW")),e.R7$(3),e.Y8G("nzGutter",16),e.R7$(),e.Y8G("nzSpan",24),e.R7$(2),e.JRh(e.bMT(23,50,"PGTTL_CREAT_SCREENING_REQUEST")),e.R7$(2),e.Y8G("nzGutter",16),e.R7$(),e.Y8G("nzSpan",6),e.R7$(2),e.JRh(e.bMT(28,52,"LBL_SELECTED_EXPORT_ORDERS")),e.R7$(2),e.Y8G("ngIf",null==a.selectedHawbs||0===(null==a.selectedHawbs?null:a.selectedHawbs.length)),e.R7$(),e.Y8G("ngIf",(null==a.selectedHawbs?null:a.selectedHawbs.length)>0),e.R7$(),e.Y8G("nzGutter",16),e.R7$(),e.Y8G("nzSpan",24),e.R7$(2),e.JRh(e.bMT(35,54,"PGTTL_ASSIGN_RACSF")),e.R7$(2),e.Y8G("nzGutter",16),e.R7$(),e.Y8G("nzSpan",6),e.R7$(2),e.SpI("",e.bMT(40,56,"LBL_RACSF_COMPANY"),":"),e.R7$(3),e.JRh((null==a.formData?null:a.formData.rf_company_name)||e.bMT(43,58,"LBL_NOT_APPLICABLE")),e.R7$(2),e.Y8G("nzSpan",6),e.R7$(2),e.SpI("",e.bMT(47,60,"LBL_RACSF_CODE"),":"),e.R7$(3),e.JRh((null==a.formData?null:a.formData.rf_code)||e.bMT(50,62,"LBL_NOT_APPLICABLE")),e.R7$(2),e.Y8G("nzGutter",16),e.R7$(3),e.SpI("",e.bMT(55,64,"LBL_SITE_ADDRESS"),":"),e.R7$(3),e.JRh((null==a.formData?null:a.formData.rf_address)||e.bMT(58,66,"LBL_NOT_APPLICABLE")),e.R7$(2),e.Y8G("nzGutter",16),e.R7$(3),e.SpI("",e.bMT(63,68,"LBL_REMARKS"),":"),e.R7$(3),e.JRh(a.formData.rf_remarks||e.bMT(66,70,"LBL_NOT_APPLICABLE")),e.R7$(2),e.Y8G("nzGutter",16),e.R7$(),e.Y8G("nzSpan",24),e.R7$(2),e.JRh(e.bMT(71,72,"LBL_DELIVERY_METHOD")),e.R7$(2),e.Y8G("nzGutter",16),e.R7$(3),e.SpI("",e.bMT(76,74,"LBL_DELIVERY_METHOD"),":"),e.R7$(3),e.JRh(e.i5U(79,76,null==a.formData?null:a.formData.delivery_method,"delivery_method")),e.R7$(2),e.Y8G("ngIf","TRUCKER"===(null==a.formData?null:a.formData.delivery_method))("ngIfElse",o),e.R7$(4),e.Y8G("nzSize","large"),e.R7$(),e.JRh(e.bMT(86,79,"BTN_BACK_TO_EDIT")),e.R7$(2),e.Y8G("nzSize","large")("disabled",a.pageLoading),e.R7$(),e.JRh(e.bMT(89,81,"BTN_CONFIRM"))}},dependencies:[f.Sq,f.bT,g.Wk,O.aO,I.c,Y.p,E.Uq,E.e,q.cK,T.hL,T.K7,z.pp,m.CP,m.SO,m._4,m.IL,m.aj,m.kt,J.a,f.vh,S.D9,Le.z],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}"]})}}return i})();var Me=r(84046),Oe=r(23632);const Ie=i=>({awbNumberDisplay:i}),Ae=[{path:"create",component:Te,canDeactivate:[y.j]},{path:"create/preview",component:ke,canDeactivate:[y.j]},{path:"create/success",component:(()=>{class i{constructor(t,n,a){this.store=t,this.router=n,this.activatedRoute=a,this.awbNumberDisplay=[],this.awbs=[]}getAawbNumberDisplay(){const t=this.awbs,n=t.length;return 0===n?null:1===n||2===n?t:n>2?[t.slice(0,n-1).join(", "),t[n-1]]:void 0}ngOnInit(){this.storeSubscription=this.store.select(c.EF).pipe((0,Me.$)()).subscribe(t=>{this.awbs=t.form.awbs.map(n=>n.awb_number),this.awbNumberDisplay=this.getAawbNumberDisplay(),this.store.dispatch(c.Yu.initCreateScreeningRequests())})}ngOnDestroy(){this.storeSubscription.unsubscribe()}static{this.\u0275fac=function(n){return new(n||i)(e.rXU(R.il),e.rXU(g.Ix),e.rXU(g.nX))}}static{this.\u0275cmp=e.VBU({type:i,selectors:[["hkaa-cargo-web-create-screening-request-form-success-page"]],standalone:!1,decls:19,vars:20,consts:[["header",""],["content","",1,"confirmation-content"],[3,"innerHTML"],["footer",""],[1,"action-items",2,"padding","0 2rem"],["nz-row","",3,"nzGutter"],["nz-button","","nzType","primary","routerLink","..","nzBlock",""],["nz-button","","nzGhost","","routerLink","../../../home","nzBlock",""]],template:function(n,a){1&n&&(e.j41(0,"hkaa-cargo-web-confirmation-page")(1,"div",0),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"div",1),e.nrm(5,"span",2),e.nI1(6,"translate"),e.EFF(7),e.nI1(8,"translate"),e.k0s(),e.j41(9,"div",3)(10,"div",4)(11,"div",5)(12,"a",6),e.EFF(13),e.nI1(14,"translate"),e.k0s()(),e.j41(15,"div",5)(16,"a",7),e.EFF(17),e.nI1(18,"translate"),e.k0s()()()()()),2&n&&(e.R7$(2),e.SpI(" ",e.bMT(3,7,"PGTTL_CREATED_SCREENING_REQUEST")," "),e.R7$(3),e.Y8G("innerHTML",e.i5U(6,9,"PGMSG_CREATED_SCREENING_REQUEST_TOP",e.eq3(18,Ie,a.awbNumberDisplay)),e.npT),e.R7$(2),e.SpI(" ",e.bMT(8,12,"PGMSG_CREATED_SCREENING_REQUEST_BOTTOM")," "),e.R7$(4),e.Y8G("nzGutter",16),e.R7$(2),e.SpI(" ",e.bMT(14,14,"BTN_CREATE_NEW_SCREENING_REQUEST")," "),e.R7$(2),e.Y8G("nzGutter",16),e.R7$(2),e.JRh(e.bMT(18,16,"BTN_BACK_TO_EXPORT_ORDERS")))},dependencies:[g.Wk,O.aO,I.c,E.e,Oe.E,S.D9],encapsulation:2})}}return i})()},{path:"",redirectTo:"create",pathMatch:"full"},{path:"**",redirectTo:"/pages"}];let we=(()=>{class i{static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275mod=e.$C({type:i})}static{this.\u0275inj=e.G2t({imports:[g.iI.forChild(Ae),g.iI]})}}return i})();var Ge=r(76378);let Be=(()=>
1{class i{static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275mod=e.$C({type:i})}static{this.\u0275inj=e.G2t({providers:[y.j,l.ux2,l.l3U],imports:[R.md.forFeature(c.$L,c.w4,{}),P.Vm.forFeature([c.TY]),f.MD,we,F.Jk,p.X1,T.EJ,z.ZJ,Ge.mBi,R.md.forFeature(l.mhY,l.ihF,{}),P.Vm.forFeature([l.TK4]),R.md.forFeature(b.QY,b.kU,{}),P.Vm.forFeature([b.pl])]})}}return i})()}}]);
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.