PageSourceSearch

https://www.swireshipping.com/chunk-5VKLPVOQ.js

js swireshipping.com collected 2026-10-02 04:20:37 UTC 37,533 bytes, 45 lines download raw bytes

1import{d as Ee,e as $e,f as je,g as Re}from"./chunk-BXIMWK63.js";import"./chunk-UDAF2I6F.js";import"./chunk-SEJQTT43.js";import{a as Le}from"./chunk-LJ5HKEGM.js";import{b as Ve}from"./chunk-NWEJDYIA.js";import{a as Ge}from"./chunk-CU244ZDA.js";import"./chunk-HZWVHNSD.js";import{a as Ae}from"./chunk-GYGM2NLP.js";import{a as U}from"./chunk-HBWNTNSU.js";import"./chunk-UKX3GX44.js";import"./chunk-THF7PKGZ.js";import"./chunk-JARBZPVL.js";import"./chunk-PHSUILHB.js";import"./chunk-7VQLOR6B.js";import{a as E}from"./chunk-LOQ2AHV4.js";import{a as Fe}from"./chunk-57L3FNEJ.js";import{d as H,g as _e}from"./chunk-H4XTQAR3.js";import"./chunk-A6RGM255.js";import{a as G,c as q}from"./chunk-R75PPR5T.js";import{a as be}from"./chunk-2OPTMNUK.js";import{d as ve}from"./chunk-L4KWJUTJ.js";import{a as D}from"./chunk-WX4CQOYH.js";import{b as K}from"./chunk-VJFTX4QI.js";import{b as he,f as we,g as R}from"./chunk-SZ2LKQI4.js";import{Ba as Y,D as Pe,G as ze,Q as Te,a as Ye,d as ye,e as Se,i as _,k as Oe,ka as b,la as F,m as xe,p as ke,qa as Ne,ra as Ie,sa as De,v as Be,z as Me}from"./chunk-HEZNEFM5.js";import"./chunk-XYU3HKCH.js";import{$ as ce,A as ne,H as se,Ia as a,Ib as O,J as le,Jb as I,Kb as ge,Ma as p,Qa as $,Va as B,Zb as v,_a as de,a as c,ab as r,b as P,cc as m,dc as u,fa as f,g as qe,ga as C,gd as ue,h as k,i as oe,ib as y,nb as s,nd as fe,ob as l,pb as w,pc as me,pd as Ce,qb as T,qd as j,rb as N,s as ae,tb as S,u as z,ua as pe,v as re,wb as g,xb as d,yc as L}from"./chunk-B55Z224L.js";var W=qe(Ye());var ot=e=>({disabled:e});function at(e,i){if(e&1){let t=S();T(0),s(1,"a",12),g("click",function(){f(t);let o=d();return C(o.openPopup(o.item,"requestCancellation"))}),w(2,"span",13),s(3,"span",8),O(4,"Request Cancellation "),l()(),N()}}var A=class A{constructor(i,t,n,o,h){this._pageTrackingService=i;this._bookingV2Service=t;this._modelService=n;this._commonService=o;this._activityLogService=h}_pageTrackingService;_bookingV2Service;_modelService;_commonService;_activityLogService;item;isBtnDisabled=!1;MODALCONTENT=U;download(i){let t={szCustomerKey:this._commonService.getCustomerKey(),szBookingKey:i.szBookingKey,isFromMrg:i?.isFromMrg||!1},n={};return n.szOrigin=i.szOrigin,n.szDestination=i.szDestination,this.activityLog("bookingactiondownloadpdf",n),{dowFun:z(this._bookingV2Service.downLoadBookingPdf(t)),originalname:i.szBookingNumber+"_"+i.szOrigin+" to "+i.szDestination,ext:"csv"}}openPopup(i,t){let n={};n.szOrigin=i?.szOrigin,n.szDestination=i?.szDestination,t=="share"?(this._modelService.openModal({type:this._modelService.modals.ShareEmail,open:!0,item:{data:i}}),this.activityLog("bookingactionshare",n)):t=="requestCancellation"&&(i.iStatus==3?this._modelService.openModal({type:this._modelService.modals.CancellationRequestReceived,open:!0,item:{data:i}}):this._modelService.openModal({type:this._modelService.modals.CancelBooking,open:!0,item:{data:i}}),this.activityLog("bookingcancel",n))}activityLog(i,t){return{exitLog:t,jsonLogKey:i}}static \u0275fac=function(t){return new(t||A)(p(ve),p(H),p(K),p(R),p(q))};static \u0275cmp=$({type:A,selectors:[["app-booking-toggle-action"]],inputs:{item:"item"},decls:18,vars:10,consts:[[1,"user-app-toggle",3,"index"],["toggle",""],["href","javascript:void(0)"],[1,"swi-icon","icon-actions-1","icon-size-24","Text-80","action-toggle-icon"],["menu",""],[1,"editor-dropdown","bg-Text-10","Shadow-Field-Box"],["href","javascript:void(0)",1,"bg-Grey-10","action-link",3,"click","ngClass"],["_ngcontent-ng-c1155505569","",1,"swi-icon","icon-download","Text-90","icon-size-20"],[1,"paragraph-regular-16","Text-100"],["href","javascript:void(0);",1,"bg-Grey-10","action-link",3,"click"],[1,"swi-icon","icon-share","Text-90","icon-size-20"],[1,"paragraph-regular-16","Text-100","drop-text"],["href","javascript:void(0)",1,"bg-Grey-10","action-link",3,"click"],[1,"swi-icon","icon-disable","Text-90","icon-size-20"]],template:function(t,n){t&1&&(s(0,"swire-action-toggle",0)(1,"div",1)(2,"a",2),w(3,"span",3),l()(),s(4,"div",4)(5,"div",5),T(6),s(7,"a",6),g("click",function(){return n.download(n.item)}),w(8,"span",7),s(9,"span",8),O(10," Download"),l()(),N(),B(11,at,5,0,"ng-container"),T(12),s(13,"a",9),g("click",function(){return n.openPopup(n.item,"share")}),w(14,"span",10),s(15,"span",11),O(16),m(17,"translate"),l()(),N(),l()()()),t&2&&(de("locator","actionDropdown",n.item==null?null:n.item.szBookingKey,""),r("index",0),a(7),r("ngClass",v(8,ot,n.isBtnDisabled)),a(4),y((n.item==null?null:n.item.szSwireBookingStatus)!=="Cancelled"?11:-1),a(5),I(u(17,6,"Share")))},dependencies:[Y,De,L,j],encapsulation:2})};k([E({type:"application/pdf"})],A.prototype,"download",1),k([G()],A.prototype,"activityLog",1);var Q=A;var He={bodyHead:{heading:"My Bookings",subHeading:"View details and manage your bookings on your dashboard",btnIcon:"Text-10 icon-plus icon-size-20 swi-icon",btnLabel:"New Booking Request"},tableData:{columns:[{field:"",header:"ORIGIN",width:"width-15",type:b.function,callBackFun:e=>{let i=(0,W.default)(e?.dtEstimatedDeparture).format("DD MMM YYYY");return`${e?.szOrigin} <br/>${i}`}},{field:"",header:"DESTINATION",width:"width-15",type:b.function,callBackFun:e=>{let i=(0,W.default)(e?.dtEstimatedArrival).format("DD MMM YYYY");return`${e?.szDestination} <br/>${i}`}},{field:"",header:"VESSEL VOYAGE",width:"width-10",type:b.function,callBackFun:e=>`${e?.szIntendedVessel}${e?.szVoyageNumber}`},{field:"",header:"BOOKED ON",width:"width-10",type:b.function,callBackFun:e=>`${(0,W.default)(e?.createdAt).format("DD MMM YYYY")}`},{field:"szCargoType",header:"CONTAINER TYPES",width:"width-15",type:b.function,callBackFun:e=>{let i="",t=e.arCargoDetails.slice(0,2).map(n=>`<a href="javascript:void(0);" class="bg-grey-40 Text-90 cargo-type paragraph-semibold-12">${n.szCargoType} x ${n?.iTotalNumberOfUnit}</a>`);return e.arCargoDetails.length>2?i=t.join(" ")+" ...":i=t.join(" "),i}},{field:"szBookingNumber",header:"--",width:"width-15",headerType:b.component,locator:"szBookingNumber",type:b.function,callBackFun:e=>`
2                    <span class="paragraph-regular-15">${e.szBookingNumber??""}</span>
3                    <span class="paragraph-regular-15" >${e.szSwireBookingNumber??""}</span>`,callBackHeadFun:e=>Ee},{notVisible:!0,field:"szTransitTime",header:"TRANSIT TIME",width:"width-15"},{notVisible:!0,field:"szTransitAt",header:"TRANSIT AT",width:"width-15"},{notVisible:!0,field:"szIncoTerm",header:"TRANSIT AT",width:"width-15"},{notVisible:!0,field:"szTradeDirection",header:"TRANSIT AT",width:"width-15"},{notVisible:!0,field:"additionalService",header:"SERVICE ROUTE",width:"width-15"},{notVisible:!0,field:"szShipmentCIF",header:"INCOTERMS",width:"width-15"},{notVisible:!0,field:"szShipmentImportExport",header:"TRADE DIRECTION",width:"width-15"},{notVisible:!0,field:"szBookingNumber",header:"ADDITIONAL SERVICE",width:"width-15"},{notVisible:!0,field:"szBookingParty",header:"BOOKING PARTY",width:"width-15",type:b.function,callBackFun:e=>!e?.szCompanyAddress||!e?.szEmail?"-":`${e?.szCompanyName} ${e?.szCompanyName?",":""}
4                    ${e?.szCompanyAddress} ${e?.szCompanyAddress?",":""}
5                    ${e?.szPostCode} ${e?.szPostCode?",":""}
6                    ${e?.szCity} ${e?.szCity?",":""}
7                    ${e?.szCountry} ${e?.szCountry?",":""}
8                    ${e?.szContactFirstName} ${e?.szContactFirstName?",":""}
9                    ${e?.szContactLastName} ${e?.szContactLastName?",":""}
10                    ${e?.szEmail} ${e?.szEmail?",":""}
11                    ${e?.szDialCode} ${e?.szDialCode?",":""}
12                    ${e?.szPhoneNumber} ${e?.szPhoneNumber?",":""}`},{notVisible:!0,field:"szShipper",header:"SHIPPER",width:"width-15",type:b.function,callBackFun:e=>!e?.szShipperCompanyName||!e?.szShipperEmail?"-":`${e?.szShipperCompanyName} ${e?.szShipperCompanyName?",":""}
13                            ${e?.szShipperCompanyAddress}  ${e?.szShipperCompanyAddress?",":""}
14                            ${e?.szShipperPostCode}  ${e?.szShipperPostCode?",":""}
15                            ${e?.szShipperCity}  ${e?.szShipperCity?",":""}
16                            ${e?.szShipperCountry}  ${e?.szShipperCountry?",":""}
17                            ${e?.szShipperContactFirstName}  ${e?.szShipperContactFirstName?",":""}
18                            ${e?.szShipperContactLastName}  ${e?.szShipperContactLastName?",":""}
19                            ${e?.szShipperEmail}  ${e?.szShipperEmail?",":""}
20                            ${e?.szShipperDialCode}  ${e?.szShipperDialCode?",":""}
21                            ${e?.szShipperPhoneNumber}  ${e?.szShipperPhoneNumber?",":""}`},{notVisible:!0,field:"szConsignee",header:"CONSIGNEE",width:"width-15",type:b.function,callBackFun:e=>!e?.szConsigneeCompanyName||!e?.szConsigneeEmail?"-":`${e?.szConsigneeCompanyName} ${e?.szConsigneeCompanyName?",":""}
22                            ${e?.szConsigneeCompanyAddress} ${e?.szConsigneeCompanyAddress?",":""}
23                            ${e?.szConsigneePostCode} ${e?.szConsigneePostCode?",":""}
24                            ${e?.szConsigneeCity} ${e?.szConsigneeCity?",":""}
25                            ${e?.szConsigneeCountry} ${e?.szConsigneeCountry?",":""}
26                            ${e?.szConsigneeContactFirstName} ${e?.szConsigneeContactFirstName?",":""}
27                            ${e?.szConsigneeContactLastName} ${e?.szConsigneeContactLastName?",":""}
28                            ${e?.szConsigneeEmail} ${e?.szConsigneeEmail?",":""}
29                            ${e?.szConsigneeDialCode} ${e?.szConsigneeDialCode?",":""}
30                            ${e?.szConsigneePhoneNumber} ${e?.szConsigneePhoneNumber?",":""}`},{notVisible:!0,field:"szNotify",header:"NOTIFY PARTY",width:"width-15",type:b.function,callBackFun:e=>!e?.szNotifyCompanyName||!e?.szNotifyEmail?"-":`${e?.szNotifyCompanyName} ${e?.szNotifyCompanyName?",":""}
31                                ${e?.szNotifyCompanyAddress} ${e?.szNotifyCompanyAddress?",":""}
32                                ${e?.szNotifyPostCode} ${e?.szNotifyPostCode?",":""}
33                                ${e?.szNotifyCity} ${e?.szNotifyCity?",":""}
34                                ${e?.szNotifyCountry} ${e?.szNotifyCountry?",":""}
35                                ${e?.szNotifyContactFirstName} ${e?.szNotifyContactFirstName?",":""}
36                                ${e?.szNotifyContactLastName} ${e?.szNotifyContactLastName?",":""}
37                                ${e?.szNotifyEmail} ${e?.szNotifyEmail?",":""}
38                                ${e?.szNotifyDialCode} ${e?.szNotifyDialCode?",":""}
39                                ${e?.szNotifyPhoneNumber} ${e?.szNotifyPhoneNumber?",":""}`},{field:"",header:"STATUS",width:"width-10",type:b.component,callBackFun:e=>$e},{field:"",header:"ACTIONS",width:"width-10",stopPropagation:!0,type:b.component,callBackFun:e=>Q}],pagination:{enabled:!1,page:1,limit:10,totalItems:0,enType:"BOOKING",szType:"MY_BOOKINGS"},skeletonCount:10,tableNotFound:{heading:"You have not made any bookings",subHeading:"Try creating a new booking first",iconClass:"Primary-80 icon-notification-empty icon-size-40 swi-icon",btnLabel:"Make a new Booking"},searchNotFoundMsg:{heading:"There are no search results found",subHeading:"Please try modifying your search",iconClass:"Primary-80 icon-search icon-size-40 swi-icon"},styles:{enableScrolling:!0},row:{clickable:!0},toolTip:{tooltipText1:`Booking Enquiry ID is the ID that you receive when you 
40            <br> submit your Booking Enquiry 
41            <br> It remains relevant even after your booking is
42            confirmed`,tooltipText2:`Booking Reference number is the ID that you receive 
43            <br> when your booking is confirmed 
44            <br> It is activated only when our customer success teams 
45            <br> confirms your booking with us`},isSearchNotFound:!1}};var x=e=>({active:e}),rt=e=>({"mobile-hide":e}),st=e=>({"active-ng-select":e});function lt(e,i){if(e&1){let t=S();s(0,"p",11)(1,"a",19),g("click",function(){f(t);let o=d();return C(o.removeFilter())}),O(2),m(3,"translate"),l()()}if(e&2){let t=d();a(),r("ngClass",v(4,x,t.isRemoveFilterActive())),a(),I(u(3,2,"remove filter"))}}function ct(e,i){if(e&1){let t=S();s(0,"p",24)(1,"a",26),g("click",function(){f(t);let o=d(2);return C(o.removeFilter())}),O(2),m(3,"translate"),l()()}if(e&2){let t=d(2);a(),r("ngClass",v(4,x,t.isRemoveFilterActive())),a(),I(u(3,2,"remove filter"))}}function pt(e,i){if(e&1&&(s(0,"div",25),w(1,"swire-checkbox-filter",27),m(2,"translate"),w(3,"swire-checkbox-filter",28),m(4,"translate"),w(5,"swire-checkbox-filter",29),m(6,"translate"),l()),e&2){let t=d(2);a(),r("ngClass",v(27,x,t.f.arConatinerType.value==null?null:t.f.arConatinerType.value.length))("swButtonClass","swi-button-special-expand-bluewhite")("swIsButtonActive","swi-button-special-expand-whiteblue")("atleastOneSelected",(t.f.arConatinerType.value==null?null:t.f.arConatinerType.value.length)>0)("swButtonName",u(2,21,"Container Type"))("swData",t.arContainerType)("swIconClass",(t.f.arConatinerType.value==null?null:t.f.arConatinerType.value.length)>0?"icon-arrow-down-1 Grey-10 icon-size-16":"icon-arrow-down-1 Primary-80 icon-size-16"),a(2),r("ngClass",v(29,x,t.f.arArchive.value==null?null:t.f.arArchive.value.length))("swButtonClass","swi-button-special-expand-bluewhite")("swIsButtonActive","swi-button-special-expand-whiteblue")("atleastOneSelected",(t.f.arArchive.value==null?null:t.f.arArchive.value.length)>0)("swButtonName",u(4,23,"Archive"))("swData",t.arArchive)("swIconClass",(t.f.arArchive.value==null?null:t.f.arArchive.value.length)>0?"icon-arrow-down-1 Grey-10 icon-size-16":"icon-arrow-down-1 Primary-80 icon-size-16"),a(2),r("ngClass",v(31,x,t.f.szVessels.value==null?null:t.f.szVessels.value.length))("swButtonClass","swi-button-special-expand-bluewhite")("swIsButtonActive","swi-button-special-expand-whiteblue")("atleastOneSelected",(t.f.szVessels.value==null?null:t.f.szVessels.value.length)>0)("swButtonName",u(6,25,"Vessel/Voyage"))("swData",t.arVessels)("swIconClass",(t.f.szVessels.value==null?null:t.f.szVessels.value.length)>0?"icon-arrow-down-1 Grey-10 icon-size-16":"icon-arrow-down-1 Primary-80 icon-size-16")}}function dt(e,i){if(e&1){let t=S();s(0,"div",12),w(1,"swire-checkbox-filter",20),m(2,"translate"),w(3,"swire-checkbox-filter",21),m(4,"translate"),w(5,"swire-checkbox-filter",22),m(6,"translate"),s(7,"button",23),g("click",function(){f(t);let o=d();return C(o.bShowHideMoreFilter=!o.bShowHideMoreFilter)}),O(8),m(9,"translate"),l(),B(10,ct,4,6,"p",24)(11,pt,7,33,"div",25),l()}if(e&2){let t=d();r("ngClass",v(34,st,t.tabShowHideFilter)),a(),r("ngClass",v(36,x,t.f.arOrigin.value==null?null:t.f.arOrigin.value.length))("swButtonClass","swi-button-special-expand-bluewhite")("swIsButtonActive","swi-button-special-expand-whiteblue")("atleastOneSelected",(t.f.arOrigin.value==null?null:t.f.arOrigin.value.length)>0)("swButtonName",u(2,26,"Origin"))("swData",t.arOrigin)("swIconClass",(t.f.arOrigin.value==null?null:t.f.arOrigin.value.length)>0?"icon-arrow-down-1 Grey-10 icon-size-16":"icon-arrow-down-1 Primary-80 icon-size-16"),a(2),r("ngClass",v(38,x,t.f.arDestination.value==null?null:t.f.arDestination.value.length))("swButtonClass","swi-button-special-expand-bluewhite")("swIsButtonActive","swi-button-special-expand-whiteblue")("atleastOneSelected",(t.f.arDestination.value==null?null:t.f.arDestination.value.length)>0)("swButtonName",u(4,28,"Destination"))("swData",t.arDestination)("swIconClass",(t.f.arDestination.value==null?null:t.f.arDestination.value.length)>0?"icon-arrow-down-1 Grey-10 icon-size-16":"icon-arrow-down-1 Primary-80 icon-size-16"),a(2),r("ngClass",v(40,x,t.f.arStatus.value==null?null:t.f.arStatus.value.length))("swButtonClass","swi-button-special-expand-bluewhite")("swIsButtonActive","swi-button-special-expand-whiteblue")("atleastOneSelected",(t.f.arStatus.value==null?null:t.f.arStatus.value.length)>0)("swButtonName",u(6,30,"Status"))("swData",t.arStatus)("swIconClass",(t.f.arStatus.value==null?null:t.f.arStatus.value.length)>0?"icon-arrow-down-1 Grey-10 icon-size-16":"icon-arrow-down-1 Primary-80 icon-size-16"),a(2),r("ngClass",t.bShowHideMoreFilter?"swi-button-special-blue-default-small-regular":"swi-button-special-whiteblue-default-small-regular"),a(),ge("",u(9,32,"More Filters")," "),a(2),y(t.isRemoveFilterActive()?10:-1),a(),y(t.bShowHideMoreFilter?11:-1)}}
45function gt(e,i){if(e&1){let t=S();s(0,"swire-modal",30),g("close",function(){f(t);let o=d();return C(o._modelService.closeModal1({type:0,open:!1}))}),s(1,"app-share-email",31),g("popupCallBack",function(o){f(t);let h=d();return C(h.popupCallBack(o))}),l()()}if(e&2){let t=d();r("body",t._modelService.translateObject(t.MODALCONTENT.shareEmail)),a(),r("isSharedSuccess",t.isSharedSuccess)}}function mt(e,i){if(e&1){let t=S();s(0,"swire-modal",30),g("close",function(){f(t);let o=d();return C(o._modelService.closeModal1({type:0,open:!1}))}),s(1,"app-cancelbooking",32),g("popupCallBack",function(){f(t);let o=d();return C(o.cancelRequestCallBack())}),l()()}if(e&2){let t=d();r("body",t._modelService.translateObject(t.MODALCONTENT.cancelBooking)),a(),r("arCancelRequest",t.arCancelRequest)}}function ut(e,i){if(e&1){let t=S();s(0,"swire-modal",33),g("submit",function(){f(t);let o=d();return C(o._modelService.closeModal1({type:0,open:!1}))})("close",function(){f(t);let o=d();return C(o._modelService.closeModal1({type:0,open:!1}))}),l()}if(e&2){let t=d();r("body",t._modelService.translateObject(t.MODALCONTENT.cancellationRequestReceived))}}var M=class M{constructor(i,t,n,o,h,V,J,X,Z,ee,te,ie,ft,Ct){this._dashboardService=i;this._helperService=t;this._formBuilder=n;this._bookingV2Service=o;this._quoteV2Service=h;this._bookingModelService=V;this._translate=J;this._router=X;this._lang=Z;this._modelService=ee;this._userAuthService=te;this._commonService=ie;this._activityLogService=ft;this._navigatService=Ct}_dashboardService;_helperService;_formBuilder;_bookingV2Service;_quoteV2Service;_bookingModelService;_translate;_router;_lang;_modelService;_userAuthService;_commonService;_activityLogService;_navigatService;ActionType=F;ROUTING=D;reactiveValidate={};customValidate={};arOrigin=[];arDestination=[];arVilidity=[];arStatus=[];arVessels=[];arContainerType=[];arArchive=[];arFields=[];isExportBtnDisabled=!1;bShowHideMoreFilter=!1;overviewSearchForm;subscription=[];isSharedSuccess=!1;arBooking=[];bookingTableConfig=He;tabShowHideFilter=!1;MODALCONTENT=U;arCancelRequest;_platformService=ce(fe);ngOnDestroy(){this.subscription?.map(i=>i?.unsubscribe())}filters=pe(P(c({},this.bookingTableConfig.tableData.pagination),{arOrigin:[],arDestination:[],szValidity:"",arConatinerType:[],szSearchInput:"",arStatus:[],szVessels:[],arArchive:[]}));queryParams=me(()=>{let{enType:i,szType:t,arConatinerType:n,arDestination:o,arOrigin:h,szSearchInput:V,arStatus:J,szVessels:X,arArchive:Z,szValidity:ee,page:te,limit:ie}=this.filters();return c(c(c(c(c(c(c(c(c(c(c(c({},i&&{enType:i}),t&&{szType:t}),n&&{arConatinerType:n}),o&&{arDestination:o}),h&&{arOrigin:h}),V&&{szSearchInput:V}),ee&&{szValidity:ee}),J&&{arStatus:J}),X&&{szVessels:X}),Z&&{arArchive:Z}),te&&{page:te}),ie&&{limit:ie})});bookingList=Me({request:this.queryParams,loader:({request:i})=>this._dashboardService.getQuoteBookingDataForDashboard(i).pipe(re(t=>(this.bookingTableConfig.tableData.isSearchNotFound=Object.keys(this.filters()).filter(n=>!Object.keys(this.bookingTableConfig.tableData.pagination).includes(n)).some(n=>{let o=this.filters()[n];return Array.isArray(o)?o.length>0:!!o}),t?.data?.iTotalCount>=10?(this.bookingTableConfig.tableData.pagination.enabled=!0,this.bookingTableConfig.tableData.pagination.totalItems=t?.data?.iTotalCount):this.bookingTableConfig.tableData.pagination.enabled=!1,t?.data?.arBookingRequest??[])),se(t=>(console.error(t),ae(void 0))))});getFilterData(i){return oe(this,null,function*(){let t=yield z(this._dashboardService.getFilterDataForDashboard(i));this.arCancelRequest=t?.data?.arBookingCancelReason,this.arOrigin=t?.data?.arOrigin,this.arOrigin=[...new Set(this.arOrigin)],this.arDestination=t?.data?.arDstination,this.arDestination=[...new Set(this.arDestination)],this.arVilidity=t?.data?.arValidity,this.arVilidity=[...new Set(this.arVilidity)],this.arStatus=t?.data?.arStatus,this.arStatus=[...new Set(this.arStatus)],this.arContainerType=t?.data?.arCargoTypes,this.arContainerType=[...new Set(this.arContainerType)],this.arVessels=t?.data?.arVessels,this.arVessels=[...new Set(this.arVessels)];let n=[];(t?.data?.arFieldsExtend||[]).length>0&&t?.data?.arFieldsExtend.filter((o,h)=>{o?.szKey||(o.szKey=h),n.push(o)}),this.arFields=n,this.arFields=[...new Set(n)]})}tableHandelFunc(i){if(i.actionType===F.onRowClick){let n=`${i.data.szBookingKey}`;this._navigatService.navigateWithLang(this,D.BOOKING_DETAILS+`/${n}`)}i.actionType===F.dataNotfound&&this._navigatService.navigateWithLang(this,D.SCHEDULE,{searchBy:"port"}),i.actionType===F.getPage&&(this.filters.update(t=>P(c({},t),{limit:i.data,page:1})),this.bookingTableConfig.tableData.pagination.page=1,this.bookingTableConfig.tableData.pagination.limit=i.data),i.actionType===F.getPaginationData&&this.filters.update(t=>P(c({},t),{page:i.data}))}ngOnInit(){this.reactiveValidationFun(),this.formSubscribe(),this.getFilterData({szType:"BOOKING"}),this.onLanguageSwitch()}reactiveValidationFun(){this.reactiveValidate=this.filterControl(),this.overviewSearchForm=this._formBuilder.group(this.reactiveValidate)}get f(){return this.overviewSearchForm.controls}filterControl(){return{arOrigin:new _([],[]),arDestination:new _([],[]),szVessels:new _(null,[]),arStatus:new _(null,[]),arConatinerType:new _(null,[]),arArchive:ne
45w _(null,[]),etaUpdated:new _(null,[]),szSearchInput:new _("",[]),isFilter:new _(!1,[]),arFields:new _([],[])}}isRemoveFilterActive(){return this.f.arOrigin?.value?.length||this.f.arDestination?.value?.length||this.f.szVessels?.value?.length||this.f.arStatus?.value?.length||this.f.arArchive?.value?.length||this.f.etaUpdated?.value||this.f.arConatinerType?.value?.length}removeFilter(){this.isRemoveFilterActive()&&this.overviewSearchForm.reset()}downloadBookingPdf(i){let t=this._bookingModelService.getBookingDetails(P(c({},i),{szCustomerKey:this._userAuthService?.getAuthUserData()?.szCustomerKey}));return{dowFun:z(this._bookingV2Service.downLoadBookingPdf(t)),originalname:i.szBookingNumber+"_"+i.szOrigin+" to "+i.szDestination,ext:"csv"}}exportBooking(){let i=this.overviewSearchForm.value;return i.szPage="Booking",{dowFun:z(this._dashboardService.exportBookingOnDashboard(i)),filename:"SwireShipping_BookingReport",ext:"csv"}}formSubscribe(){let i=this.overviewSearchForm.valueChanges.pipe(le(300)).subscribe(n=>{this.filters.set(c(c({},this.bookingTableConfig.tableData.pagination),n))}),t=this.overviewSearchForm.get("arFields")?.valueChanges.subscribe(n=>{this.bookingTableConfig.tableData.columns.forEach(o=>{this.arFields.find(h=>o.field===h.szKey)&&(n.includes(o.field)?o.notVisible=!1:o.notVisible=!0)})});this.subscription.push(i),t&&this.subscription.push(t)}addActivityLogs(){this.activityLog("dashboardbookingrequestcreate"),this._navigatService.navigateWithLang(this,D.SCHEDULE,{searchBy:"port"})}activityLog(i,t){return{exitLog:t,jsonLogKey:i}}getNewBooking(){this._navigatService.navigateWithLang(this,D.SEARCH_SAILING)}popupCallBack(i){i&&this.bookingShared(i)}bookingShared(i){let t={};t.szCustomerKey=this._commonService.getCustomerKey(),t.szBookingNumber=this._modelService.objModal?.item?.data?.szBookingNumber,t.arSharedEmail=i,this._bookingV2Service.addSharedEmail(t).toPromise().then(n=>{this.isSharedSuccess=!0,this._platformService.runIfBrowser(()=>{ne(1e3).subscribe(()=>{this._modelService.closeModal(),this.isSharedSuccess=!1})})})}cancelRequestCallBack(){this.filters.update(i=>c({},i))}onLanguageSwitch(){this._lang.appLangCast.subscribe(()=>{ne(500).subscribe(()=>{this.bookingTableConfig.tableData.columns=this.bookingTableConfig.tableData.columns.map(i=>P(c({},i),{headerKey:i?.headerKey||i?.header,header:i?.headerKey?this._translate.instant(i?.headerKey):this._translate.instant(i?.header)}
45)),this.bookingTableConfig.tableData=this._modelService.notFoundtranslate(this.bookingTableConfig.tableData)})})}static \u0275fac=function(t){return new(t||M)(p(Ge),p(be),p(Be),p(H),p(Fe),p(Ae),p(Ce),p(ue),p(he),p(K),p(_e),p(R),p(q),p(we))};static \u0275cmp=$({type:M,selectors:[["app-booking"]],decls:27,vars:49,consts:[["table",""],[3,"formGroup"],[1,"full-width-body","bg-grey-20"],[1,"overview-container"],[3,"submit","body"],[3,"tblCallBack","body","data"],["filters",""],[1,"left-filter"],[1,"smaller-text","paragraph-semibold-14","Text-80"],[1,"multiple-ng-select-tablet-only"],[3,"click","ngClass","swClass","swIconClass","swIsShowIcon","swButtonIconPosition","swButtonName"],[1,"mb-0"],[1,"multiple-ng-select",3,"ngClass"],[1,"right-filter"],[1,"search-book"],["locator","szSearchInput","formControlName","szSearchInput",3,"swIsShowIcon","swClass","swPlaceholder","swIconClass"],["locator","addFields","formControlName","arFields",1,"tab-mob-hide",3,"swButtonClass","swIsButtonActive","atleastOneSelected","swBindLabel","swBindValue","swButtonName","swData","swIconClass"],["locator","exports",1,"tab-mob-hide",3,"click","swClass","swIconClass","swIsShowIcon","swButtonIconPosition","swButtonName","ngClass","swIsDisable"],[3,"body"],["href","javascript:void(0);",1,"removeFilterText","paragraph-semibold-15","Hyperlink-Dark",3,"click","ngClass"],["locator","arOrigin","formControlName","arOrigin",3,"ngClass","swButtonClass","swIsButtonActive","atleastOneSelected","swButtonName","swData","swIconClass"],["locator","arDestination","formControlName","arDestination",3,"ngClass","swButtonClass","swIsButtonActive","atleastOneSelected","swButtonName","swData","swIconClass"],["locator","arStatus","formControlName","arStatus",3,"ngClass","swButtonClass","swIsButtonActive","atleastOneSelected","swButtonName","swData","swIconClass"],["type","button",1,"more-filter",3,"click","ngClass"],[1,"paragraph-regular-15","removeFilterp"],[1,"next-row-filter"],["href","javascript:void(0);",1,"removeFilterText","paragraph-semibold-14","under-line-text","Hyperlink-Dark",3,"click","ngClass"],["locator","arConatinerType","formControlName","arConatinerType",3,"ngClass","swButtonClass","swIsButtonActive","atleastOneSelected","swButtonName","swData","swIconClass"],["locator","arArchive","formControlName","arArchive",3,"ngClass","swButtonClass","swIsButtonActive","atleastOneSelected","swButtonName","swData","swIconClass"],["locator","szVessels","formControlName","szVessels",3,"ngClass","swButtonClass","swIsButtonActive","atleastOneSelected","swButtonName","swData","swIconClass"],[3,"close","body"],[3,"popupCallBack","isSharedSuccess"],[3,"popupCallBack","arCancelRequest"],[3,"submit","close","body"]],template:function(t,n){if(t&1){let o=S();s(0,"form",1)(1,"div",2)(2,"div",3)(3,"app-body-head",4),g("submit",function(){return f(o),C(n.addActivityLogs())}),l(),s(4,"sw-table",5,0),g("tblCallBack",function(V){return f(o),C(n.tableHandelFunc(V))}),T(6,6),s(7,"div",7)(8,"span",8),O(9),m(10,"translate"),l(),s(11,"div",9)(12,"swire-button",10),m(13,"translate"),g("click",function(){return f(o),C(n.tabShowHideFilter=!n.tabShowHideFilter)}),l(),B(14,lt,4,6,"p",11),l(),B(15,dt,12,42,"div",12),l(),s(16,"div",13)(17,"div",14),w(18,"swire-input",15),m(19,"translate"),l(),w(20,"swire-checkbox-filter",16),m(21,"translate"),s(22,"swire-button",17),m(23,"translate"),g("click",function(){return f(o),C(n.exportBooking())}),l()(),N(),l()()()(),B(24,gt,2,2,"swire-modal",18)(25,mt,2,2,"swire-modal",18)(26,ut,1,1,"swire-modal",18)}t&2&&(r("formGroup",n.overviewSearchForm),a(3),r("body",n.bookingTableConfig.bodyHead),a(),r("body",n.bookingTableConfig.tableData)("data",n.bookingList),a(5),I(u(10,35,"Filter")),a(3),r("ngClass",v(45,x,n.tabShowHideFilter))("swClass","filter-btn")("swIconClass","Text-90 icon-filter swi-icon")("swIsShowIcon",!0)("swButtonIconPosition","left")("swButtonName",u(13,37,"Filter")),a(2),y(n.isRemoveFilterActive()?14:-1),a(),y(n.overviewSearchForm?15:-1),a(3),r("swIsShowIcon",!0)("swClass","paragraph-semibold-114 small-input-search")("swPlaceholder",u(19,39,"Search"))("swIconClass","icon-search swi-icon Text-80 icon-size-14"),a(2),r("swButtonClass","swi-button-special-expand-bluewhite")("swIsButtonActive","swi-button-special-expand-whiteblue")("atleastOneSelected",(n.f.arFields.value==null?null:n.f.arFields.value.length)>
450)("swBindLabel","szLabel")("swBindValue","szKey")("swButtonName",u(21,41,"Add Fields"))("swData",n.arFields)("swIconClass",(n.f.arFields.value==null?null:n.f.arFields.value.length)>0?"icon-arrow-down-1 Grey-10 icon-size-16":"icon-arrow-down-1 Primary-80 icon-size-16"),a(2),r("swClass","more-filter swi-button-special-whiteblue-default-small-regular")("swIconClass","swi-icon icon-download Primary-80 paragraph-regular-16 btn-icons-height")("swIsShowIcon",!0)("swButtonIconPosition","left")("swButtonName",u(23,43,"Export"))("ngClass",v(47,rt,n.f.isFilter.value))("swIsDisable",n.isExportBtnDisabled),a(2),y(n._modelService.objModal.open&&n._modelService.objModal.type===n._modelService.modals.ShareEmail?24:-1),a(),y(n._modelService.objModal.open&&n._modelService.objModal.type===n._modelService.modals.CancelBooking?25:-1),a(),y(n._modelService.objModal.open&&n._modelService.objModal.type===n._modelService.modals.CancellationRequestReceived?26:-1))},dependencies:[Y,Pe,ze,Te,Ne,Ie,Oe,ye,Se,xe,ke,L,j,Ve,Le,je,Re],styles:["body[_ngcontent-%COMP%]   .small-input-search[_ngcontent-%COMP%]   input.input-control[_ngcontent-%COMP%]{height:28px;min-height:28px;max-width:183px;box-shadow:0 2px 4px #00000026;border-radius:10px;border:0;background:#fff;font-weight:600;font-size:14px;color:#000}@media(max-width:1024px){body[_ngcontent-%COMP%]   .small-input-search[_ngcontent-%COMP%]   input.input-control[_ngcontent-%COMP%]{max-width:150px}}.filter-main[_ngcontent-%COMP%]{display:flex;margin:20px 0;width:100%}@media(max-width:767px){.filter-main[_ngcontent-%COMP%]{flex-wrap:wrap;margin-bottom:0;padding-bottom:20px}}@media(max-width:767px){.filter-main.custom-filters[_ngcontent-%COMP%]{gap:15px;justify-content:space-between}}@media(max-width:1024px){.filter-main.custom-filters[_ngcontent-%COMP%]   .left-filter[_ngcontent-%COMP%]{flex-direction:row}}@media(max-width:1024px){.filter-main.custom-filters[_ngcontent-%COMP%]   .left-filter[_ngcontent-%COMP%]   .smaller-text[_ngcontent-%COMP%]{display:block}}@media(max-width:767px){.filter-main.custom-filters[_ngcontent-%COMP%]   .right-filter[_ngcontent-%COMP%]{position:inherit;max-width:max-content}}.filter-main[_ngcontent-%COMP%]   .left-filter[_ngcontent-%COMP%]{display:flex;gap:10px;flex:1;align-items:flex-start}@media(max-width:1024px){.filter-main[_ngcontent-%COMP%]   .left-filter[_ngcontent-%COMP%]{flex-direction:column}}.filter-main[_ngcontent-%COMP%]   .left-filter[_ngcontent-%COMP%]   .smaller-text[_ngcontent-%COMP%]{margin-top:5px}@media(max-width:1024px){.filter-main[_ngcontent-%COMP%]   .left-filter[_ngcontent-%COMP%]   .smaller-text[_ngcontent-%COMP%]{display:none}}@media(max-width:767px){.filter-main[_ngcontent-%COMP%]   .left-filter[_ngcontent-%COMP%]{flex-direction:column}}.filter-main[_ngcontent-%COMP%]   .left-filter[_ngcontent-%COMP%]   .low-high-items[_ngcontent-%COMP%]{margin:0}.filter-main[_ngcontent-%COMP%]   .left-filter[_ngcontent-%COMP%]   .low-high-items[_ngcontent-%COMP%]   .low-high-item[_ngcontent-%COMP%]{background:#fff;padding:4px 10px;color:#404040;font-weight:600;font-size:14px;line-height:18px;display:inline-block;box-shadow:0 2px 4px #00000026;border-radius:15px;margin-right:10px;cursor:pointer}.filter-main[_ngcontent-%COMP%]   .left-filter[_ngcontent-%COMP%]   .low-high-items[_ngcontent-%COMP%]   .low-high-item.active[_ngcontent-%COMP%]{background:#1e4f98;color:#fff}.filter-main[_ngcontent-%COMP%]   .left-filter[_ngcontent-%COMP%]   .low-high-items[_ngcontent-%COMP%]   .low-high-item[_ngcontent-%COMP%]   .circle-text[_ngcontent-%COMP%]{display:inline-block;margin-left:5px}.filter-main[_ngcontent-%COMP%]   .left-filter[_ngcontent-%COMP%]   .low-high-items[_ngcontent-%COMP%]   .low-high-item[_ngcontent-%COMP%]   .circle.circle-green[_ngcontent-%COMP%]{background:#3cc13b}.filter-main[_ngcontent-%COMP%]   .left-filter[_ngcontent-%COMP%]   .low-high-items[_ngcontent-%COMP%]   .low-high-item[_ngcontent-%COMP%]   .circle.circle-red[_ngcontent-%COMP%]{background:#f03738}.filter-main[_ngcontent-%COMP%]   .left-filter[_ngcontent-%COMP%]   .low-high-items[_ngcontent-%COMP%]   .low-high-item[_ngcontent-%COMP%]   .circle.circle-yellow[_ngcontent-%COMP%]{background:#f3aa1c}.filter-main[_ngcontent-%COMP%]   .left-filter[_ngcontent-%COMP%]   .multiple-ng-select-tablet-only[_ngcontent-%COMP%]{display:none}@media(max-width:1024px){.filter-main[_ngcontent-%COMP%]   .left-filter[_ngcontent-%COMP%]   .multiple-ng-select-tablet-only[_ngcontent-%COMP%]{display:flex;gap:10px;align-items:center}}.filter-main[_ngcontent-%COMP%]   .left-filter[_ngcontent-%COMP%]   .multiple-ng-select-tablet-only[_ngcontent-%COMP%]     swire-button.active .filter-btn{background:var(--swi-button-blue-large-background);font-weight:600;font-size:14px;color:#fff}.filter-main[_ngcontent-%COMP%]   .left-filter[_ngcontent-%COMP%]   .multiple-ng-select-tablet-only[_ngcontent-%COMP%]     swire-button.active .filter-btn .swi-icon{color:#fff}.filter-main[_ngcontent-%COMP%]   .left-filter[_ngcontent-%COMP%]   .multiple-ng-select-tablet-only[_ngcontent-%COMP%]     swire-button .filter-btn{border:0;background:#f9fafa;font-weight:600;font-size:14px;color:var(--swi-button-whiteblue-large-font-color);min-width:75px;padding:3.5px 5px;box-shadow:0 2px 4px #00000026;border-radius:15px;min-height:28px}@media screen and (max-width:767px){.filter-main[_ngcontent-%COMP%]   .left-filter[_ngcontent-%COMP%]   .multiple-ng-select-tablet-only[_ngcontent-%COMP%]   .sort-div[_ngcontent-%COMP%]   .sort-icon[_ngcontent-%COMP%]{top:7px;margin-left:11px}}@media screen and (max-width:767px)and (max-width:767px){.filter-main[_ngcontent-%COMP%]   .left-filter[_ngcontent-%COMP%]   .multiple-ng-select-tablet-only[_ngcontent-%COMP%]   .sort-div.active[_ngcontent-%COMP%]   .sort-icon[_ngcontent-%COMP%]{left:auto;top:7px;margin-left:11px}}.filter-main[_ngcontent-%COMP%]   .left-filter[_ngcontent-%COMP%]   .multiple-ng-select-tablet-only[_ngcontent-%COMP%]   .ng-arrow-wrapper[_ngcontent-%COMP%]{padding-left:5px;display:block}@media screen and (max-width:1024px){.filter-main[_ngcontent-%COMP%]   .left-filter[_ngcontent-%COMP%]   .multiple-ng-select-tablet-only[_ngcontent-%COMP%]   .ng-arrow-wrapper[_ngcontent-%COMP%]{opacity:0}
45}.filter-main[_ngcontent-%COMP%]   .left-filter[_ngcontent-%COMP%]   .multiple-ng-select-tablet-only[_ngcontent-%COMP%]   .removeFilterText[_ngcontent-%COMP%]{display:none;text-decoration-line:underline}@media(max-width:1024px){.filter-main[_ngcontent-%COMP%]   .left-filter[_ngcontent-%COMP%]   .multiple-ng-select-tablet-only[_ngcontent-%COMP%]   .removeFilterText[_ngcontent-%COMP%]{display:block}}.filter-main[_ngcontent-%COMP%]   .left-filter[_ngcontent-%COMP%]   .multiple-ng-select[_ngcontent-%COMP%]{display:flex;z-index:8;gap:10px;flex-wrap:wrap;align-items:flex-start}@media(max-width:1024px){.filter-main[_ngcontent-%COMP%]   .left-filter[_ngcontent-%COMP%]   .multiple-ng-select[_ngcontent-%COMP%]{flex-wrap:wrap;display:none}}@media(max-width:767px){.filter-main[_ngcontent-%COMP%]   .left-filter[_ngcontent-%COMP%]   .multiple-ng-select[_ngcontent-%COMP%]{width:100%}}.filter-main[_ngcontent-%COMP%]   .left-filter[_ngcontent-%COMP%]   .multiple-ng-select[_ngcontent-%COMP%]   .removeFilterText[_ngcontent-%COMP%]{text-decoration-line:underline}@media(max-width:1024px){.filter-main[_ngcontent-%COMP%]   .left-filter[_ngcontent-%COMP%]   .multiple-ng-select[_ngcontent-%COMP%]   .removeFilterText[_ngcontent-%COMP%]{display:none}}.filter-main[_ngcontent-%COMP%]   .left-filter[_ngcontent-%COMP%]   .multiple-ng-select[_ngcontent-%COMP%]   .next-row-filter[_ngcontent-%COMP%]{display:flex;gap:10px;flex-wrap:wrap;width:100%}.filter-main[_ngcontent-%COMP%]   .left-filter[_ngcontent-%COMP%]   .multiple-ng-select.active-ng-select[_ngcontent-%COMP%]{display:flex}.filter-main[_ngcontent-%COMP%]   .right-filter[_ngcontent-%COMP%]{display:flex;gap:10px;align-items:flex-start}@media(max-width:767px){.filter-main[_ngcontent-%COMP%]   .right-filter[_ngcontent-%COMP%]{max-width:100%;flex:0 0 100%;position:absolute;right:10px}}.filter-main[_ngcontent-%COMP%]   .right-filter[_ngcontent-%COMP%]   .smaller-text[_ngcontent-%COMP%]{font-weight:600;font-size:14px}.filter-main[_ngcontent-%COMP%]   .right-filter[_ngcontent-%COMP%]   .ng-select[_ngcontent-%COMP%]{min-width:17px}.filter-main[_ngcontent-%COMP%]   .right-filter[_ngcontent-%COMP%]   .ng-select[_ngcontent-%COMP%]   .ng-select-container[_ngcontent-%COMP%]{border-radius:10px!important;flex-direction:row;padding-left:20px;padding-right:12px}@media(max-width:1024px){.filter-main[_ngcontent-%COMP%]   .right-filter[_ngcontent-%COMP%]   .tab-mob-hide[_ngcontent-%COMP%]{display:none}}.filter-main[_ngcontent-%COMP%]   .right-filter[_ngcontent-%COMP%]     swire-button button:hover .swi-icon{color:var(--swi-button-blue-large-font-color-hover)}"]})};k([E({type:"application/pdf"})],M.prototype,"downloadBookingPdf",1),k([E({loaderKey:"isExportBtnDisabled",type:"application/csv"})],M.prototype,"exportBooking",1),k([G()],M.prototype,"activityLog",1);var Ke=M;export{Ke as BookingComponent};

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.