PageSourceSearch

https://www.swireshipping.com/chunk-H4XTQAR3.js

js swireshipping.com collected 2026-10-02 04:21:36 UTC 70,899 bytes, 1 lines download raw bytes

1import{a as J}from"./chunk-A6RGM255.js";import{a as j,c as X}from"./chunk-R75PPR5T.js";import{a as Q}from"./chunk-2OPTMNUK.js";import{b as K}from"./chunk-L4KWJUTJ.js";import{a as N}from"./chunk-WX4CQOYH.js";import{b as Z}from"./chunk-VJFTX4QI.js";import{d as W,f as F,g as A}from"./chunk-SZ2LKQI4.js";import{a as se}from"./chunk-HEZNEFM5.js";import{r,t as a}from"./chunk-XYU3HKCH.js";import{$ as B,A as w,Tc as q,X as m,_ as n,a as d,b as h,g as te,gd as y,h as U,m as c,nd as G,pd as H,qc as _,sd as p,td as z,ua as C}from"./chunk-B55Z224L.js";var k=class u{static setLoading(e,t="",s=""){throw new Error("Method not implemented.")}static manageHeaderBackGround(e,t=!0){t==!0}static getRandomString(e=20,t="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"){let i="SC"+new Date().getTime();for(let l=e;l>0;--l)i+=t[Math.floor(Math.random()*t.length)];return i.toLocaleUpperCase()}static getBookingKey(e=20,t="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"){let i="SB"+new Date().getTime();for(let l=e;l>0;--l)i+=t[Math.floor(Math.random()*t.length)];return i.toLocaleUpperCase()}static countStringWords(e){return e.split(/\s+/).length}static deleteObjfromArr(e,t){return e==null?null:e.filter(function(i){return i.idProduct!==t})}static countCharacter(e){return e?e.length:0}static getString(e,t){return e.substring(0,t)}static wordCounterController(e){let s=0,i=0,o=0,l=0,g="0s";s=e.length;let S=e.match(/\b[-?(\w+)?]+\b/gi),P=e.replace(/\n$/gm,"").split(/\n/),M=e.split(/[.|!|?]+/g);if(S){i=S.length,o=P.length,l=M.length-1;let f=Math.floor(S.length*60/275);if(f>59){let E=Math.floor(f/60);f=f-E*60,g=E+"m "+f+"s"}else g=f+"s"}return i}static scrollTop(){window.scrollTo({top:0,behavior:"smooth"})}static getFileTypeFromExtn(e){let t="file";switch(e){case".jpg":t="file-image-o";break;case".jpeg":t="file-image-o";break;case".JFIF":t="file-image-o";break;case".Exif":t="file-image-o";break;case".TIFF":t="file-image-o";break;case".GIF":t="file-image-o";break;case".BMP":t="file-image-o";break;case".pdf":t="file-pdf-o";break;case".xls":t="file-excel-o";break;default:t="file";break}return t}static camelize(e){if(e){let t=e.split(" "),s=[],i=t.length,o=1;for(let l in t){let g=this.camelizeString(t[l]);if(s.push(g),i==o)return s.join(" ");o++}}}static spitStringByCharacter(e){if(e){let t=[],s=e.split("<br/>"),i=s.length,o=1;for(let l in s){let g=this.camelize(s[l]);if(t.push(g),i==o)return t.join(" ");o++}}}static camelizeString(e){let t=!1,s=0,i=["(",")","@","$","%"];return e.replace(/(?:^\w|[A-Z]|\b\w)/g,function(o,l){return t?o.toLowerCase():(t=!0,o.toUpperCase())}).replace(/\s+/g,"")}static \u0275fac=function(t){return new(t||u)};static \u0275prov=m({token:u,factory:u.\u0275fac,providedIn:"root"})};var T=class u{constructor(e){this._httpService=e}_httpService;saveCargoAsTemplate(e){return this._httpService.sendPostRequest(a.saveCargoTemplate,e)}checkTemplateName(e){return this._httpService.sendPostRequest(a.checkTemplateName,e)}getCCDeadline(e){return this._httpService.sendPostRequest(a.getCCDeadline,e)}getInlandValid(e){return this._httpService.sendPostRequest(a.getInlandValid,e)}saveAddressInAddressBook(e){return this._httpService.sendPostRequest(a.addAddressBook,e)}getQuoteInlandCity(e){return this._httpService.sendPostRequest(a.getQuoteStandAloneInlandCity,e)}getAddressBook(e){return this._httpService.sendPostRequest(a.getAddressBook,e)}getCargoTemplateDetails(e={}){return this._httpService.sendPostRequest(a.getCargoTemplateDetails,e)}updateAddressLastUsed(e){return this._httpService.sendPostRequest(a.updateAddressLastUsed,e)}calculateSailingPrice(e){return this._httpService.sendPostRequest(a.calculateSailingPrice,e)}calculateSailingPriceForMrg(e){return this._httpService.sendPostRequest(a.calculateSailingPriceForMrg,e)}addOrUpdateCargoDetails(e){return this._httpService.sendPostRequest(a.addOrUpdateCargoDetails,e)}updateShipperParty(e){return this._httpService.sendPostRequest(a.updateShipperParty,e)}downLoadBookingPdf(e){return this._httpService.sendPostRequest(a.downLoadBookingPdf,e,{responseType:"arraybuffer"})}downLoadFile(e){return this._httpService.sendPostRequest(a.downloadAttachmentFile,e,{responseType:"arraybuffer"})}sendBookingConfirmation(e){return this._httpService.sendPostRequest(a.sendBookingConfirmation,e)}getBookingDetails(e){return this._httpService.sendPostRequest(a.getBookingDetails,e)}getBookingDataByBookingKey(e){return this._httpService.sendPostRequest(a.getBookingDataByBookingKey,e)}updateAdditionalServices(e){return this._httpService.sendPostRequest(a.updateAdditionalServices,e)}getExtendedBookingList(e){return this._httpService.sendPostRequest(a.getExtendedBookingList,e)}addSharedEmail(e){return this._httpService.sendPostRequest(a.addSharedEmail,e)}getAmendmentBookingData(e){return this._httpService.sendPostRequest(a.getAmendmentBookingData,e)}addOrUpdateAmendmentCargoDetails(e){return this._httpService.sendPostRequest(a.updateBookingRequest,e)}resetAmendmentChanges(e){return this._httpService.sendPostRequest(a.resetAmendmentChanges,e)}submitAmendmentChangesForReview(e){return this._httpService.sendPostRequest(a.submitAmendmentChangesForReview,e)}getBookingDetailsForEsi(e){return this._httpService.sendPostRequest(a.getBookingDetailsForEsi,e)}getEsiDetails(e){return this._httpService.sendPostRequest(a.getEsiDetails,e)}esiMarkAsDone(e){return this._httpService.sendPostRequest(a.markEsiSubmitAsDone,e)}submitEsiPartyDetails(e){return this._httpService.sendPostRequest(a.submitEsiPartyDetails,e)}submitEsiShipmentDetails(e){return this._httpService.sendPostRequest(a.submitEsiShipmentDetails,e)}submitEsiDetails(e){return this._httpService.sendPostRequest(a.submitEsiDetails,e)}submitEsiContainerDetails(e){return this._httpService.sendPostRequest(a.submitEsiContainerDetails,e)}vgmMarkAsDone(e){return this._httpService.sendPostRequest(a.markVgmAsDone,e)}validateQuoteReference(e){return this._httpService.sendPostRequest(a.validateQuoteReference,e)}checkPriceAvailabilityMrg(e){return this._httpService.sendPostRequest(a.checkPriceAvailability,e)}static \u0275fac=function(t){return new(t||u)(n(z))};static \u0275prov=m({token:u,factory:u.\u0275fac,providedIn:"root"})};var Y=te(se()),v=class{constructor(e){this._storageService=e}_storageService;getData(e){try{let t=this._storageService.getDataFromStorage(e);return t?JSON.parse(t):[]}catch{}}setData(e,t){try{this._storageService.putDataInStorage(e,JSON.stringify(t))}catch{}}removeData(e){try{this._storageService.removeDataFromStorage(e)}catch{}}getShippingDetailsFields(){return{szQuoteKey:"",idProduct:"",szShippingDetailsKey:"",szShipmentType:"CONTAINER",idCommodity:null,szCommodityOther:null,szCargoType:null,fAverageWeight:null,szAverageWeightMeasure:"kg",szShippingFrequency:null,szNotes:"",iTotalNumberOfUnit:null,bDangerousGoods:"no",fNetExplosive:"",szExplosiveWeight:"kg",arAttachments:[],bUNNumber:"no",szDCDescription:"",idUNDGList:null,bReeferCargo:"no",fMinTemprature:"",szMinTempratureUnit:"C",fMaxTemprature:"",szMaxTempratureUnit:"C",bCargoDimention:"no",fLength:"",szLengthMeasure:"M",fWidth:"",szWidthMeasure:"M",fHeight:"",szHeightMeasure:"M",bUnderDeckStorage:"no",bStackablePackageIncluded:"no",iStackablePackagesCount:""}}getBreakbulkFields(){return{title:"",szShippingDetailsKey:"",szShipmentType:"BREAK-BULK",idCommodity:null,szCommodityOther:null,szCargoType:null,fAverageWeight:"",szAverageWeightMeasure:"kg",iTotalNumberOfUnit:"",bUnderDeckStorage:"no",fLength:"",szLengthMeasure:"M",fWidth:"",szWidthMeasure:"M",fHeight:"",szHeightMeasure:"M",szNotes:"",arAttachments:[],bStackablePackageIncluded:"no",iStackablePackagesCount:"",isAdditionalCommodity:0,currentBBCount:0,cargoNotesPendingWordCount:0}}getCorporateDetailsFields(){return{szCustomerKey:"",szCustomerName:"",szDialCode:"",szPhoneNumber:"",szEmail:"",szCompanyName:"",szCountry:"",szCity:"",szAddress:"",szPincode:""}}getDropZoneConfiguration(e){let t="Authorization: "+this._storageService.getDataFromStorage("access_token");return{maxFiles:2,addRemoveLinks:!0,paramName:e,headers:t,acceptedFiles:"image/*,application/pdf,application/vnd.ms-excel",sending:function(s,i,o){}
1,success:function(s,i){if(i&&i.data){let o=i.data}},removedfile:function(s){let o=JSON.parse(s.xhr.response).uploadResponse.fileName;new FormData().append("fileName",o)}}}getBookingRequestFields(){return{szCustomerKey:"",szBookingKey:"",szOrigin:"",szDestination:"",szOriginCode:"",szDestinationCode:"",szOriginPortName:"",szOriginPortCode:"",szOriginCity:"",szOriginCountryName:"",szOriginCountryCode:"",szDestinationPortName:"",szDestinationPortCode:"",szDestinationCity:"",szDestinationCountryName:"",szDestinationCountryCode:"",enShippedBy:"shipmentDate",dtCargoReady:null,dtIntendedShipment:null,szIntendedVessel:"",enVesselPayment:"Prepaid",szReferenceNumber:"",szShipperDetails:"",szConsigneeDetails:"",szNotifyPartyDetails:"",szCompanyName:"",szContactPerson:"",szDialCode:"",szPhoneNumber:"",szEmail:"",szContactFirstName:"",szCity:"",szAddress1:"",szAddress2:"",szState:"",szPostCode:"",szContactMiddleName:"",szContactLastName:"",szCountry:"",szCDCompanyName:"",szCDContactPerson:"",szCDDialCode:"",szCDPhoneNumber:"",szCDEmail:"",szCDContactFirstName:"",szCDCity:"",szCDAddress1:"",szCDAddress2:"",szCDState:"",szCDPostCode:"",szCDContactMiddleName:"",szCDContactLastName:"",szCDCountry:"",szShipperCompanyName:"",szShipperContactPerson:"",szShipperDialCode:"",szShipperPhoneNumber:"",szShipperEmail:"",szShipperContactFirstName:"",szShipperCity:"",szShipperAddress1:"",szShipperAddress2:"",szShipperState:"",szShipperPostCode:"",szShipperContactMiddleName:"",szShipperContactLastName:"",szShipperCountry:"",szConsigneeCompanyName:"",szConsigneeContactPerson:"",szConsigneeDialCode:"",szConsigneePhoneNumber:"",szConsigneeEmail:"",szConsigneeContactFirstName:"",szConsigneeCity:"",szConsigneeAddress1:"",szConsigneeAddress2:"",szConsigneeState:"",szConsigneePostCode:"",szConsigneeContactMiddleName:"",szConsigneeContactLastName:"",szConsigneeCountry:"",szNotifyCompanyName:"",szNotifyContactPerson:"",szNotifyDialCode:"",szNotifyPhoneNumber:"",szNotifyEmail:"",szNotifyContactFirstName:"",szNotifyCity:"",szNotifyAddress1:"",szNotifyAddress2:"",szNotifyState:"",szNotifyPostCode:"",szNotifyContactMiddleName:"",szNotifyContactLastName:"",szNotifyCountry:"",bookingPartyForm:!1,primaryContactForm:!1,shipperForm:!1,consigneeForm:!1,notifyPartyForm:!1,bookingPartyFormViewed:!1,primaryContactFormViewed:!1,shipperFormViewed:!1,consigneeFormViewed:!1,notifyPartyFormViewed:!1,notifyPartyFormRequired:!1,consigneeFormRequired:!1,shipperFormRequired:!1,cargoForm:!1,scrollId:null,arCargoDetails:[]}}getBookingCargoDetailsFields(){return{isFormValid:!1,szView:"DETAILS",szCargoDetailsKey:"",szShipmentType:"FCL",idCommodity:null,szCargoType:null,enSuppliedBy:"Carrier",fAverageWeight:null,szAverageWeightMeasure:"KG",fAverageCube:null,szAverageCubeMeasure:"CBM",enFreight:"Prepaid",iTotalNumberOfUnit:null,bReeferCargo:"no",bVentCargo:"no",bDangerousGoods:"no",bOutOfGuage:"no",bExistingQuotation:"no",szQuatationReferenceNumber:"",szNotes:"",arAttachments:[],fMinTemprature:null,szMinTempratureUnit:"C",fMaxTemprature:null,szMaxTempratureUnit:"C",fSpecificAirFlowRate:null,szSpecificAirFlowRateUnit:"",fLength:null,szLengthMeasure:"M",fWidth:null,szWidthMeasure:"M",fHeight:null,szHeightMeasure:"M",fOverLengthFront:null,szOverLengthFrontMeasure:"M",fOverLengthRear:null,szOverLengthRearMeasure:"M",fOverWidthLeft:null,szOverWidthLeftMeasure:"M",fOverWidthRight:null,szOverWidthRightMeasure:"M",fOverHeight:null,szOverHeightMeasure:"M",fNetExplosive:null,szExplosiveWeight:"KG",bSelected:!1,isCargoFormSubmitted:"no",isCargoDetailsFormValid:!1,eRefrigerationType:"",fSpecificTemprature:null,szSpecificTempratureUnit:"",eVentType:"",szExpandType:"ADD",arDangerousDetails:[]}}getBookingCargoDangerousGoodsFields(){return{fDGAverageWeight:null,szDGAverageWeightMeasure:"KG",idUNDGList:null,idBooking:null,idCargoDetails:null,szDGNotes:"",szView:"DETAILS",bValid:!1,bSelected:!1,szExpandType:"EDIT",isAmend:!1,arDgAttachments:[]}}static getBookingCastObj(){return{szCustomerKey:"",szBookingKey:"",szOrigin:"",szDestination:"",szOriginCode:"",szDestinationCode:"",szOriginPortName:"",szOriginPortCode:"",szOriginCity:"",szOriginCountryName:"",szOriginCountryCode:"",szDestinationPortName:"",szDestinationPortCode:"",szDestinationCity:"",szDestinationCountryName:"",szDestinationCountryCode:"",enShippedBy:"shipmentDate",dtCargoReady:null,dtIntendedShipment:null,szIntendedVessel:"",enVesselPayment:"Prepaid",szReferenceNumber:"",szShipperDetails:"",szConsigneeDetails:"",szNotifyPartyDetails:"",szCompanyName:"",szContactPerson:"",szDialCode:"",szPhoneNumber:"",szEmail:"",szContactFirstName:"",szCity:"",szAddress1:"",szAddress2:"",szState:"",szPostCode:"",szContactMiddleName:"",szContactLastName:"",szCountry:"",szCDCompanyName:"",szCDContactPerson:"",szCDDialCode:"",szCDPhoneNumber:"",szCDEmail:"",szCDContactFirstName:"",szCDCity:"",szCDAddress1:"",szCDAddress2:"",szCDState:"",szCDPost
1Code:"",szCDContactMiddleName:"",szCDContactLastName:"",szCDCountry:"",szShipperCompanyName:"",szShipperContactPerson:"",szShipperDialCode:"",szShipperPhoneNumber:"",szShipperEmail:"",szShipperContactFirstName:"",szShipperCity:"",szShipperAddress1:"",szShipperAddress2:"",szShipperState:"",szShipperPostCode:"",szShipperContactMiddleName:"",szShipperContactLastName:"",szShipperCountry:"",szConsigneeCompanyName:"",szConsigneeContactPerson:"",szConsigneeDialCode:"",szConsigneePhoneNumber:"",szConsigneeEmail:"",szConsigneeContactFirstName:"",szConsigneeCity:"",szConsigneeAddress1:"",szConsigneeAddress2:"",szConsigneeState:"",szConsigneePostCode:"",szConsigneeContactMiddleName:"",szConsigneeContactLastName:"",szConsigneeCountry:"",szNotifyCompanyName:"",szNotifyContactPerson:"",szNotifyDialCode:"",szNotifyPhoneNumber:"",szNotifyEmail:"",szNotifyContactFirstName:"",szNotifyCity:"",szNotifyAddress1:"",szNotifyAddress2:"",szNotifyState:"",szNotifyPostCode:"",szNotifyContactMiddleName:"",szNotifyContactLastName:"",szNotifyCountry:"",bookingPartyForm:!1,primaryContactForm:!1,shipperForm:null,consigneeForm:null,notifyPartyForm:!1,bookingPartyFormViewed:!1,primaryContactFormViewed:!1,shipperFormViewed:!1,consigneeFormViewed:!1,notifyPartyFormViewed:!1,notifyPartyFormRequired:!1,consigneeFormRequired:!1,shipperFormRequired:!1,cargoForm:!1,scrollId:null,arCCMExportAttachments:[],arCCMImportAttachments:[],arCCMImportCommercialAttachments:[],arCCMImportPackingAttachments:[],arCCMExportCommercialAttachments:[],arCCMExportPackingAttachments:[],szInLastMileNotes:null,arInlandLastMileAttachment:[],arCargoDetails:{isFormValid:!1,szView:"DETAILS",szCargoDetailsKey:"",szShipmentType:"Container",idCommodity:null,szCargoType:null,enSuppliedBy:"Carrier",fAverageWeight:null,szAverageWeightMeasure:"KG",fAverageCube:null,szAverageCubeMeasure:"CBM",enFreight:"Prepaid",iTotalNumberOfUnit:null,bReeferCargo:"no",bVentCargo:"no",bDangerousGoods:"no",bOutOfGuage:"no",bExistingQuotation:"no",szQuatationReferenceNumber:"",szNotes:"",arAttachments:[],fMinTemprature:null,szMinTempratureUnit:"C",fMaxTemprature:null,szMaxTempratureUnit:"C",fMinAirFlowRate:null,szMinAirFlowRateUnit:"CBM/H",fMaxAirFlowRate:null,szMaxAirFlowRateUnit:"CBM/H",fLength:null,szLengthMeasure:"M",fWidth:null,szWidthMeasure:"M",fHeight:null,szHeightMeasure:"M",fOverLengthFront:null,szOverLengthFrontMeasure:"M",fOverLengthRear:null,szOverLengthRearMeasure:"M",fOverWidthLeft:null,szOverWidthLeftMeasure:"M",fOverWidthRight:null,szOverWidthRightMeasure:"M",fOverHeight:null,szOverHeightMeasure:"M",fNetExplosive:null,szExplosiveWeight:"KG",bSelected:!1,isCargoFormSubmitted:"no",isCargoDetailsFormValid:!1,iSuppliedByCarrier:0,arDangerousDetails:[{isFormValid:!1,szView:"DETAILS",szCargoDetailsKey:"",szShipmentType:"Container",idCommodity:null,szCargoType:null,enSuppliedBy:"Carrier",fAverageWeight:null,szAverageWeightMeasure:"KG",iTotalNumberOfUnit:null,bReeferCargo:"no",bVentCargo:"no",bDangerousGoods:"no",bOutOfGuage:"no",bExistingQuotation:"no",szQuatationReferenceNumber:"",szNotes:"",arAttachments:[],fMinTemprature:null,szMinTempratureUnit:"C",fMaxTemprature:null,szMaxTempratureUnit:"C",fMinAirFlowRate:null,szMinAirFlowRateUnit:"CBM/H",fMaxAirFlowRate:null,szMaxAirFlowRateUnit:"CBM/H",fLength:null,szLengthMeasure:"M",fWidth:null,szWidthMeasure:"M",fHeight:null,szHeightMeasure:"M",fOverLengthFront:null,szOverLengthFrontMeasure:"M",fOverLengthRear:null,szOverLengthRearMeasure:"M",fOverWidthLeft:null,szOverWidthLeftMeasure:"M",fOverWidthRight:null,szOverWidthRightMeasure:"M",fOverHeight:null,szOverHeightMeasure:"M",fNetExplosive:null,szExplosiveWeight:"KG",bSelected:!1,isCargoFormSubmitted:"no",isCargoDetailsFormValid:!1,arDangerousDetails:[{fDGAverageWeight:null,szDGAverageWeightMeasure:"KG",idUNDGList:null,idBooking:null,idCargoDetails:null,szDGNotes:null,szView:"DETAILS",bValid:!1,bSelected:!1,arDgAttachments:[]}]}]}}}getV2CustomCleanceFields(){return{szCCNotes:"",arCCMExportAttachments:[],szCCDeadlineExport:null,szCCDeadlineImport:null,arCCMImportAttachments:[],arCCMImportCommercialAttachments:[],arCCMImportPackingAttachments:[],arCCMExportCommercialAttachments:[],arCCMExportPackingAttachments:[]}}getQuoteCargoDetailsFields(){return{isFormValid:!1,szView:"DETAILS",szCargoDetailsKey:"",szShipmentType:"FCL",idCommodity:null,szCargoType:null,enSuppliedBy:"Carrier",fAverageWeight:null,szAverageWeightMeasure:"KG",fAverageCube:null,szAverageCubeMeasure:"CBM",iTotalNumberOfUnit:null,bReeferCargo:"no",bVentCargo:"no",bDangerousGoods:"no",bOutOfGuage:"",bExistingQuotation:"no",szQuatationReferenceNumber:"",szNotes:"",arAttachments:[],fMinTemprature:null,szMinTempratureUnit:"C",fMaxTemprature:null,szMaxTempratureUnit:"C",fSpecificAirFlowRate:null,szSpecificAirFlowRateUnit:"",fLength:null,szLengthMeasure:"M",fWidth:null,szWidthMeasure:"M",fHeight:null,szHeightMeasure:"M",fOverLengthFront:null,szOverLengthFrontMeasure:"M",fOverLengthRear:null,szOverLengthRearMeasure:"M",fOverWidthLeft:null,szOverWidthLeftMeasure:"M",fOverWidthRight:null,szOverWidthRightMeasure:"M",fOverHeight:null,szOverHeightMeasure:"M",fNetExplosive:null,szExplosiveWeight:"KG",bSelected:!1,isCargoFormSubmitted:"no",isCargoDetailsFormValid:!1,eRefrigerationType:"",fSpecificTemprature:null,szSpecificTempratureUnit:"",eVentType:"",szExpandType:"ADD",arDangerousDetails:[]}}getQuoteCargoDangerousGoodsFields(){return{fDGAverageWeight:null,szDGAverageWeightMeasure:"KG",idUNDGList:null,idBooking:null,idCargoDetails:null,
1szDGNotes:"",szView:"DETAILS",bValid:!1,bSelected:!1,szExpandType:"EDIT",isAmend:!1}}getQuoteRequestFields(){return{szCustomerKey:"",szBookingKey:"",szOrigin:"",szDestination:"",szOriginCode:"",szDestinationCode:"",szOriginPortName:"",szOriginPortCode:"",szOriginCity:"",szOriginCountryName:"",szOriginCountryCode:"",szDestinationPortName:"",szDestinationPortCode:"",szDestinationCity:"",szDestinationCountryName:"",szDestinationCountryCode:"",iNoOfTransshipMent:"",iTransitTimeIndays:"",dtIntendedShipment:null,szIntendedVessel:"",szCargoType:"Container",szContainerType:"General",szShipmentFrequency:null,enVesselPayment:"Prepaid",szCompanyName:"",szContactPerson:"",szDialCode:null,szPhoneNumber:"",szEmail:"",szReferenceNumber:"",szCDCompanyName:"",szCDContactPerson:"",szCDDialCode:"",szCDPhoneNumber:"",szCDEmail:"",szCDContactFirstName:"",szCDCity:"",szCDAddress1:"",szCDAddress2:"",szCDState:"",szCDPostCode:"",szCDContactMiddleName:"",szCDContactLastName:"",szCDCountry:"",bookingPartyForm:!1,primaryContactForm:!1,primaryContactFormViewed:!1,cargoForm:!1,scrollId:null,arCargoDetails:[],szCountryExport:null,szCityExport:null,szPostCodeExport:null,szAddressLine1Export:null,szAddressLine2Export:null,szCityImport:null,szAddressLine1Import:null,szAddressLine2Import:null,szPostCodeImport:null,szCountryImport:null}}static getQuoteCastObj(){return{szCustomerKey:"",szBookingKey:"",szOrigin:"",szDestination:"",szOriginCode:"",szDestinationCode:"",szOriginPortName:"",szOriginPortCode:"",szOriginCity:"",szOriginCountryName:"",szOriginCountryCode:"",szDestinationPortName:"",szDestinationPortCode:"",szDestinationCity:"",szDestinationCountryName:"",szDestinationCountryCode:"",iNoOfTransshipMent:"",iTransitTimeIndays:"",dtIntendedShipment:null,szIntendedVessel:"",enVesselPayment:"Prepaid",szCompanyName:"",szContactPerson:"",szDialCode:null,szPhoneNumber:"",szEmail:"",szReferenceNumber:"",szShipperDetails:"",szConsigneeDetails:"",szNotifyPartyDetails:"",szCDCompanyName:"",szCDContactPerson:"",szCDDialCode:"",szCDPhoneNumber:"",szCDEmail:"",szCDContactFirstName:"",szCDCity:"",szCDAddress1:"",szCDAddress2:"",szCDState:"",szCDPostCode:"",szCDContactMiddleName:"",szCDContactLastName:"",szCDCountry:"",scrollId:null,arCargoDetails:{isFormValid:!1,szView:"DETAILS",szCargoDetailsKey:"",szShipmentType:null,idCommodity:null,szCargoType:null,enSuppliedBy:"Carrier",fAverageWeight:null,szAverageWeightMeasure:"KG",fAverageCube:null,szAverageCubeMeasure:"CBM",iTotalNumberOfUnit:null,bReeferCargo:"no",bVentCargo:"no",bDangerousGoods:"no",bOutOfGuage:"",bExistingQuotation:"no",szQuatationReferenceNumber:"",szNotes:"",arAttachments:[],fMinTemprature:null,szMinTempratureUnit:"C",fMaxTemprature:null,szMaxTempratureUnit:"C",fMinAirFlowRate:null,szMinAirFlowRateUnit:"CBM/H",fMaxAirFlowRate:null,szMaxAirFlowRateUnit:"CBM/H",fLength:null,szLengthMeasure:"M",fWidth:null,szWidthMeasure:"M",fHeight:null,szHeightMeasure:"M",fOverLengthFront:null,szOverLengthFrontMeasure:"M",fOverLengthRear:null,szOverLengthRearMeasure:"M",fOverWidthLeft:null,szOverWidthLeftMeasure:"M",fOverWidthRight:null,szOverWidthRightMeasure:"M",fOverHeight:null,szOverHeightMeasure:"M",fNetExplosive:null,szExplosiveWeight:"KG",bSelected:!1,isCargoFormSubmitted:"no",isCargoDetailsFormValid:!1,iSuppliedByCarrier:0,arDangerousDetails:[{isFormValid:!1,szView:"DETAILS",szCargoDetailsKey:"",szShipmentType:"Container",idCommodity:null,szCargoType:null,enSuppliedBy:"Carrier",fAverageWeight:null,szAverageWeightMeasure:"KG",iTotalNumberOfUnit:null,bReeferCargo:"no",bVentCargo:"no",bDangerousGoods:"no",bOutOfGuage:"",bExistingQuotation:"no",szQuatationReferenceNumber:"",szNotes:"",arAttachments:[],fMinTemprature:null,szMinTempratureUnit:"C",fMaxTemprature:null,szMaxTempratureUnit:"C",fMinAirFlowRate:null,szMinAirFlowRateUnit:"CBM/H",fMaxAirFlowRate:null,szMaxAirFlowRateUnit:"CBM/H",fLength:null,szLengthMeasure:"M",fWidth:null,szWidthMeasure:"M",fHeight:null,szHeightMeasure:"M",fOverLengthFront:null,szOverLengthFrontMeasure:"M",fOverLengthRear:null,szOverLengthRearMeasure:"M",fOverWidthLeft:null,szOverWidthLeftMeasure:"M",fOverWidthRight:null,szOverWidthRightMeasure:"M",fOverHeight:null,szOverHeightMeasure:"M",fNetExplosive:null,szExplosiveWeight:"KG",bSelected:!1,isCargoFormSubmitted:"no",isCargoDetailsFormValid:!1,arDangerousDetails:[{fDGAverageWeight:null,szDGAverageWeightMeasure:"KG",idUNDGList:null,idBooking:null,idCargoDetails:null,
1szDGNotes:null,szView:"DETAILS",bValid:!1,bSelected:!1}]}]}}}getSatndAloneFormFields(){return{szFormType:0,szBlNumber:"",szBkNumber:"",szPlaceOfReceipt:"",szFirstLoadPort:"",szFirstVessel:"",szFirstVoyage:"",szFinalDischargePort:"",arContainer:[],isUserConfirm:!1,szNotes:"",szDeadLine:"",szCompanyName:"",szCompanyAddressLine1:"",szCompanyAddressLine2:"",szCompanyCity:"",szCompanyState:"",szCompanyPostCode:"",szCompanyContactName:"",szCompanyWorkEmail:"",szCompanyDialCode:null,szCompanyPhoneNumber:"",szFinalDischargeVesselVoyage:"",szFinalDestination:"",szOutofGuage:"",szDangerousGoods:"",szPickupDeliveryAddress1:"",szPickupDeliveryAddress2:"",szPickupDeliveryCity:"",szPickupDeliveryPostalCode:"",szPickupDeliveryDate:"",szPickupDeliveryFromTime:"",szFromTimeMeasure:"",szPickupDeliveryToTime:"",szToTimeMeasure:"",szOthers:"",szName:"",szDialCode:"",szPhoneNumber:"",isChassis:!1,isSideLoader:!1,isTipperLoader:!1,isGenset:!1,isPreAdvice:!1,isVGM:!1,szColdTreatment:"",szInPresetTemprature:null,szFinalDestinationPortCode:"",szFirstLoadPortCode:"",szFinalDischargePortCode:"",szPortCode:"",arAttachments:[]}}static getSatndAloneFormFieldsObs(){return{szFormType:0,szBlNumber:"",szBkNumber:"",szPlaceOfReceipt:"",szFirstLoadPort:"",szFirstVessel:"",szFirstVoyage:"",szFinalDischargePort:"",arContainer:[],isUserConfirm:"",szNotes:"",szDeadLine:"",szCompanyName:"",szCompanyAddressLine1:"",szCompanyAddressLine2:"",szCompanyCity:"",szCompanyState:"",szCompanyPostCode:"",szCompanyContactName:"",szCompanyWorkEmail:"",szCompanyDialCode:"",szCompanyPhoneNumber:"",szFinalDischargeVesselVoyage:"",szFinalDestination:"",szOutofGuage:"",szDangerousGoods:"",szPickupDeliveryAddress1:"",szPickupDeliveryAddress2:"",szPickupDeliveryCity:"",szPickupDeliveryPostalCode:"",szPickupDeliveryDate:"",szPickupDeliveryFromTime:"",szFromTimeMeasure:"",szPickupDeliveryToTime:"",szToTimeMeasure:"",szOthers:"",szName:"",szDialCode:"",szPhoneNumber:"",isChassis:!1,isSideLoader:!1,isTipperLoader:!1,isGenset:!1,isPreAdvice:!1,isVGM:!1,szColdTreatment:"",szInPresetTemprature:null,szFinalDestinationPortCode:"",szFirstLoadPortCode:"",szFinalDischargePortCode:"",szPortCode:"",arAttachments:[]}}getBookingV2RequestFields(){return{szCustomerKey:"",szBookingKey:"",szOrigin:"",szDestination:"",szOriginCode:"",szDestinationCode:"",szOriginPortName:"",szOriginPortCode:"",szOriginCity:"",szOriginCountryName:"",szOriginCountryCode:"",szDestinationPortName:"",szDestinationPortCode:"",szDestinationCity:"",szDestinationCountryName:"",szDestinationCountryCode:"",enShippedBy:"shipmentDate",dtCargoReady:null,dtIntendedShipment:null,szIntendedVessel:"",enVesselPayment:"Prepaid",szReferenceNumber:"",szShipperDetails:"",szConsigneeDetails:"",szNotifyPartyDetails:"",szCompanyName:"",szContactPerson:"",szDialCode:null,szPhoneNumber:"",szEmail:"",szContactFirstName:"",szCity:"",szAddress1:"",szAddress2:"",szState:"",szPostCode:"",szContactMiddleName:"",szContactLastName:"",szCountry:null,szCDCompanyName:"",szCDContactPerson:"",szCDDialCode:"",szCDPhoneNumber:"",szCDEmail:"",szCDContactFirstName:"",szCDCity:"",szCDAddress1:"",szCDAddress2:"",szCDState:"",szCDPostCode:"",szCDContactMiddleName:"",szCDContactLastName:"",szCDCountry:"",szShipperCompanyName:"",szShipperContactPerson:"",szShipperDialCode:null,szShipperPhoneNumber:"",szShipperEmail:"",szShipperContactFirstName:"",szShipperCity:"",szShipperAddress1:"",szShipperAddress2:"",szShipperState:"",szShipperPostCode:"",szShipperContactMiddleName:"",szShipperContactLastName:"",szShipperCountry:null,szConsigneeCompanyName:"",szConsigneeContactPerson:"",szConsigneeDialCode:null,szConsigneePhoneNumber:"",szConsigneeEmail:"",szConsigneeContactFirstName:"",szConsigneeCity:"",szConsigneeAddress1:"",szConsigneeAddress2:"",szConsigneeState:"",szConsigneePostCode:"",szConsigneeContactMiddleName:"",szConsigneeContactLastName:"",szConsigneeCountry:null,szAgreementCompanyName:"",szAgreementContactFirstName:"",szAgreementContactLastName:"",szAgreementCompanyAddress:"",szAgreementEmail:"",szAgreementPostCode:"",szAgreementDialCode:"",szAgreementPhoneNumber:"",szAgreementCity:"",szAgreementCountry:null,
1szNotifyCompanyName:"",szNotifyContactPerson:"",szNotifyDialCode:null,szNotifyPhoneNumber:"",szNotifyEmail:"",szNotifyContactFirstName:"",szNotifyCity:"",szNotifyAddress1:"",szNotifyAddress2:"",szNotifyState:"",szNotifyPostCode:"",szNotifyContactMiddleName:"",szNotifyContactLastName:"",szNotifyCountry:null,bookingPartyForm:!1,primaryContactForm:!1,shipperForm:!1,consigneeForm:!1,notifyPartyForm:!1,bookingPartyFormViewed:!1,primaryContactFormViewed:!1,shipperFormViewed:!1,consigneeFormViewed:!1,notifyPartyFormViewed:!1,notifyPartyFormRequired:!1,consigneeFormRequired:!1,shipperFormRequired:!1,isBookingPartyFormValid:!1,isShipperFormValid:!1,isConsigneeValid:!1,isAgreementFormValid:!1,cargoForm:!1,scrollId:null,arCargoDetails:[],arAttachments:[],szBookingPartyView:"DETAILS",szShipperView:"DETAILS",szConsigneeView:"DETAILS",szNotifyView:"DETAILS",szNotify2View:"DETAILS",szNotify3View:"DETAILS",isShipmentDetailsFormValid:!0,isBookingPartySelectedAddressBook:!1,isShipperSelectedAddressBook:!1,isConsigneeSelectedAddressBook:!1,isNotifySelectedAddressBook:!1,szShipmentImportExport:"I am EXPORTING",szShipmentCIF:"CIF",szQuotationCode:null}}getBookingV2CargoDetailsFields(){return{szContainerType:"",iContainerQuantity:null,szCommodity:null,enSuppliedBy:"Carrier",fAverageWeight:null,szAverageWeightMeasure:!1,bDangerousGoods:null,bReeferCargo:"no",eRefrigerationType:"",fMinTemprature:null,fMaxTemprature:null,szTempratureUnit:!1,bVentCargo:"no",eVentType:"",fSpecificAirFlowRate:null,szSpecificAirFlowRateUnit:!1,bOutOfGuage:"no",fLength:null,fWidth:null,fHeight:null,fOverLengthFront:null,fOverLengthRear:null,fOverWidthLeft:null,fOverWidthRight:null,fOverHeight:null,OutOfGuageMeasureUnit:!1,szOutOfGuageDescription:"",arOutOfGuageAttachments:"",szView:"DETAILS",isCargoFormSubmitted:"no",arDangerousDetails:[]}}getBookingV2CargoDangerousGoodsFields(){return{fDGAverageWeight:null,szDGAverageWeightMeasure:"KG",idUNDGList:null,idBooking:null,idCargoDetails:null,szDGNotes:"",szView:"DETAILS",bValid:!1,bSelected:!1,szExpandType:"EDIT",isAmend:!1,arDgAttachments:[]}}getAdditionalServiceStore(){return{isFirstMile:!1,isCCMExport:!1,isCCMImport:!1,isCargoInsurance:!1,isTradeFinance:!1,isLastMile:!1,isFirstMileInterest:!1,isCCMExportInterest:!1,isCCMImportInterest:!1,isCargoInsuranceInterest:!1,isTradeFinanceInterest:!1,isLastMileInterest:!1}}getInlandFirstMileStore(){return{szInCountry:null,szInCompanyName:null,szInCity:null,szInPickUpAddress1:null,szInPostalCode:null,szInStartTime:"09:00 AM",szInEndTime:"11:00 AM",szInPickupDate:"",bVGM:!1,bTipperLoader:!1,bSideLoader:!1,bOthers:!1,szInOthersAdditionalEquipments:null,szInNotes:null,szInName:null,szInEmail:null,szInDialCode:null,szInPhoneNumber:null,arInlandFirstMileAttachment:[],isInlandFirstMileFormValid:!1,isCu
1stomClearanceImportFormValid:!0,isCustomClearanceExportFormValid:!0,customImportIncoValid:!1,customExportIncoValid:!1}}getInlandLastMileStore(){return{szInLastMileCountry:null,szInLastMileCompany:null,szInCompanyDeliveryAddress:null,szInLastMileCity:null,szInLastMilePostalCode:"",szInLastMileName:"",szInLastMileEmail:"",szInLastMileDialCode:null,szInLastMilePhoneNumber:"",isinlandLastMileFormValid:!1,szInLastMileNotes:null,arInlandLastMileAttachment:[]}}getReportBuildertFields(){return{szReportName:null,arFields:[],dtBookingCreatedFrom:null,bSendReportEmail:"yes",szFrequency:null,arEmailControls:[{szEmail:null}],start:null,end:null}}getQuoteV2RequestFields(){return{szCustomerKey:"",szQuoteKey:"",szReferenceNumber:"",szCompanyName:"",szContactPerson:"",szDialCode:null,szPhoneNumber:"",szEmail:"",szContactFirstName:"",szCity:"",szAddress1:"",szAddress2:"",szState:"",szPostCode:"",szContactMiddleName:"",szContactLastName:"",szCountry:null,bookingPartyForm:!1,bookingPartyFormViewed:!1,notifyPartyFormViewed:!1,szBookingPartyView:"DETAILS",szNotifyView:"DETAILS",isBookingPartySelectedAddressBook:!1,arQuoteRequestDetails:[]}}getV2QuoteRequestDetailsFields(){return{szOrigin:null,szDestination:null,szOriginCode:"",szDestinationCode:"",szOriginPortName:"",szOriginPortCode:"",szOriginCity:"",szOriginCountryName:"",szOriginCountryCode:"",szDestinationPortName:"",szDestinationPortCode:"",szDestinationCity:"",szDestinationCountryName:"",szDestinationCountryCode:"",dtValidity:"",szContainerType:[],isWantsValidityRate:!1,iContainerQuantity:null,szCommodity:[],fAverageWeight:null,szAverageWeightMeasure:!1,bDangerousGoods:null,bReeferCargo:"no",eRefrigerationType:"",fMinTemprature:null,fMaxTemprature:null,szTempratureUnit:!1,bVentCargo:"no",eVentType:"",fSpecificAirFlowRate:null,szSpecificAirFlowRateUnit:!1,bOutOfGuage:"",fLength:null,fWidth:null,fHeight:null,fOverLengthFront:null,fOverLengthRear:null,fOverWidthLeft:null,fOverWidthRight:null,fOverHeight:null,OutOfGuageMeasureUnit:!1,szOutOfGuageDescription:"",arOutOfGuageAttachments:"",szView:"DETAILS",isCargoFormSubmitted:"no",arDangerousDetails:[],arAttachments:[],isFirstMile:!1,szInCountry:null,isCCMExport:!1,isCCMImport:!1,isLastMile:!1,szInLastMileCountry:null,isCCMExportInterest:!1,isCCMImportInterest:!1,isFirstMileInterest:!1,isExportWareHousingInterest:!1,isImportWareHousingInterest:!1,isLastMileInterest:!1,szDestinationPODTerminalName:"",szOriginPOLTerminalName:"",szFirstMileCompanyName:"",szFirstMilePickUpAddress1:"",szFirstMilePostalCode:"",szFirstMileCountryName:"",szFirstMileCity:null,szLastMileCompanyName:"",szLastMileDeliveryAddress1:"",szLastMileCity:null,szLastMileCountryName:"",szLastMilePostalCode:"",szFirstMileAddress1:"",szFirstMileAddress2:"",szLastMileAddress1:"",szLastMileAddress2:"",bITExport:0,bITImport:0,bCCImport:0,bCCExport:0}}getCCMItmsBookingRequestFields(e){return e?{szCustomerKey:"",szBookingKey:"",szDirection:"Import",szCcmItmsCountry:null,szReferenceNumber:"",szShipperDetails:"",szConsigneeDetails:"",szNotifyPartyDetails:"",szCompanyName:"",szContactPerson:"",szDialCode:null,szPhoneNumber:"",szEmail:"",szContactFirstName:"",szCity:"",szAddress1:"",szAddress2:"",szState:"",szPostCode:"",szContactMiddleName:"",szContactLastName:"",szCountry:null,szCDCompanyName:"",szCDContactPerson:"",szCDDialCode:null,szCDPhoneNumber:"",szCDEmail:"",szCDContactFirstName:"",szCDCity:"",szCDAddress1:"",szCDAddress2:"",szCDState:"",szCDPostCode:"",szCDContactMiddleName:"",szCDContactLastName:"",szCDCountry:null,szShipperCompanyName:"",szShipperContactPerson:"",szShipperDialCode:null,szShipperPhoneNumber:null,szShipperEmail:"",szShipperContactFirstName:"",szShipperCity:"",szShipperAddress1:"",szShipperAddress2:"",szShipperState:"",szShipperPostCode:"",szShipperContactMiddleName:"",szShipperContactLastName:"",szShipperCountry:null,szConsigneeCompanyName:"",szConsigneeContactPerson:"",szConsigneeDialCode:null,szConsigneePhoneNumber:"",szConsigneeEmail:"",szConsigneeContactFirstName:"",szConsigneeCity:"",szConsigneeAddress1:"",szConsigneeAddress2:"",szConsigneeState:"",szConsigneePostCode:"",szConsigneeContactMiddleName:"",szConsigneeContactLastName:"",szConsigneeCountry:null,bookingPartyForm:!1,primaryContactForm:!1,shipperForm:!1,consigneeForm:!1,notifyPartyForm:!1,bookingPartyFormViewed:!1,primaryContactFormViewed:!1,shipperFormViewed:!1,consigneeFormViewed:!1,notifyPartyFormViewed:!1,notifyPartyFormRequired:!1,consigneeFormRequired:!1,shipperFormRequired:!1,cargoForm:!1,scrollId:null,arCargoDetails:[],szExportFromLocation:null,szExportToLocation:null,szBLNumber:null,blbkNumber:null,szExportDepartureVessel:null,szExportEstimatedDepartureDate:null,szImportFromLocation:null,szImportToLocation:null,szImportArrivalVessel:"",szImportEstimatedArrivalDate:"",szImportFirstLoadPort:"",szImportFinalDischargePort:"",szExportFirstLoadPort:"",szCCNotes:"",szExportFinalDischargePort:"",szImportAddress1:"",szImportCity:"",szImportAddress2:"",szImportPostCode:"",szImportDeliveryDate:"",szImportDeliveryFromTime:"09:00 AM",szImportDeliveryFromTimeMeasure:"",szImportDeliveryToTime:"11:00 AM",szImportDeliveryToTimeMeasure:"",szImportNotes:"",szImportPCName:"",szImportPCPhoneNumber:"",szImportPCDialCode:null,bImportTipperTrailer:!1,bImportSideLoader:!1,bExportTipperTrailer:!1,bExportSideLoader:!1,isSkipInlandServices:!1,bCCExport:!0,bCCImport:!1,bITImport:!1,bITExport:!1,bCCBoth:!1,szShippingLine:"Swire Shipping",szShippingLineImport:"Swire Shipping",szCCDeadline:"",szImportOthersAdditionalEquipments:"",szExportAddress1:"",szExportCity:"",szExportAddress2:"",szExportPostCode:"",szExportPickupDate:"",szExportPickupFromTime:"09:00 AM",szExportPickupToTime:"11:00 AM",szExportNotes:"",szExportOthersAdditionalEquipments:"",szExportPCName:"",szExportPCPhoneNumber:"",szExportPCDialCode:null,bExportVGM:!1,commercialInvoceAttachmentFiles:[],BLCopyAttachmentFiles:[],packingAttachmentFiles:[],cargoAttachmentOtherFiles:[],arImportAttachments:[],arExportAttachments:[]}:{szCustomerKey:"",szBookingKey:"",szDirection:"Last Mile",szCcmItmsCountry:null,
1szReferenceNumber:"",szShipperDetails:"",szConsigneeDetails:"",szNotifyPartyDetails:"",szCompanyName:"",szContactPerson:"",szDialCode:null,szPhoneNumber:"",szEmail:"",szContactFirstName:"",szCity:"",szAddress1:"",szAddress2:"",szState:"",szPostCode:"",szContactMiddleName:"",szContactLastName:"",szCountry:null,szCDCompanyName:"",szCDContactPerson:"",szCDDialCode:null,szCDPhoneNumber:"",szCDEmail:"",szCDContactFirstName:"",szCDCity:"",szCDAddress1:"",szCDAddress2:"",szCDState:"",szCDPostCode:"",szCDContactMiddleName:"",szCDContactLastName:"",szCDCountry:null,szShipperCompanyName:"",szShipperContactPerson:"",szShipperDialCode:null,szShipperPhoneNumber:null,szShipperEmail:"",szShipperContactFirstName:"",szShipperCity:"",szShipperAddress1:"",szShipperAddress2:"",szShipperState:"",szShipperPostCode:"",szShipperContactMiddleName:"",szShipperContactLastName:"",szShipperCountry:null,szConsigneeCompanyName:"",szConsigneeContactPerson:"",szConsigneeDialCode:null,szConsigneePhoneNumber:"",szConsigneeEmail:"",szConsigneeContactFirstName:"",szConsigneeCity:"",szConsigneeAddress1:"",szConsigneeAddress2:"",szConsigneeState:"",szConsigneePostCode:"",szConsigneeContactMiddleName:"",szConsigneeContactLastName:"",szConsigneeCountry:null,bookingPartyForm:!1,primaryContactForm:!1,shipperForm:!1,consigneeForm:!1,notifyPartyForm:!1,bookingPartyFormViewed:!1,primaryContactFormViewed:!1,shipperFormViewed:!1,consigneeFormViewed:!1,notifyPartyFormViewed:!1,notifyPartyFormRequired:!1,consigneeFormRequired:!1,shipperFormRequired:!1,cargoForm:!1,scrollId:null,arCargoDetails:[],szExportFromLocation:null,szExportToLocation:null,szBLNumber:null,blbkNumber:null,szExportDepartureVessel:null,szExportEstimatedDepartureDate:"",szImportFromLocation:null,szImportToLocation:null,szImportArrivalVessel:"",szImportEstimatedArrivalDate:"",szImportFirstLoadPort:"",szImportFinalDischargePort:"",szExportFirstLoadPort:"",szExportFinalDischargePort:"",szCCNotes:"",szImportAddress1:"",szImportCity:"",szImportAddress2:"",szImportPostCode:"",szImportDeliveryDate:"",szImportDeliveryFromTime:"09:00 AM",szImportDeliveryFromTimeMeasure:"",szImportDeliveryToTime:"11:00 AM",szImportDeliveryToTimeMeasure:"",szImportNotes:"",szImportPCName:"",szImportPCPhoneNumber:"",szImportPCDialCode:null,bImportTipperTrailer:!1,bImportSideLoader:!1,bExportTipperTrailer:!1,bExportSideLoader:!1,isSkipInlandServices:!1,bCCExport:!1,bCCImport:!1,bITImport:!1,bITExport:!0,bCCBoth:!1,szShippingLine:"Swire Shipping",szShippingLineImport:"Swire Shipping",szCCDeadline:"",szExportAddress1:"",szExportCity:"",szExportAddress2:"",szExportPostCode:"",szExportPickupDate:"",szExportPickupFromTime:"09:00 AM",szExportPickupToTime:"11:00 AM",szExportNotes:"",szExportOthersAdditionalEquipments:"",szExportPCName:"",szExportPCPhoneNumber:null,szExportPCDialCode:null,bExportVGM:!1,szImportOthersAdditionalEquipments:"",commercialInvoceAttachmentFiles:[],BLCopyAttachmentFiles:[],packingAttachmentFiles:[],cargoAttachmentOtherFiles:[],arImportAttachments:[],arExportAttachments:[]}}getCCMiItmsBookingCargoDetailsFields(){return{isFormValid:!1,szView:"DETAILS",szCargoDetailsKey:"",idCommodity:null,szCargoType:null,enSuppliedBy:"Carrier",fAverageWeight:null,szAverageWeightMeasure:"KG",enFreight:"Prepaid",iTotalNumberOfUnit:null,iNumberOfContainer:null,szContainerNumber:null,bReeferCargo:"no",bVentCargo:"no",bDangerousGoods:"no",bOutOfGuage:"no",bExistingQuotation:"no",szQuatationReferenceNumber:"",fMinTemprature:null,szMinTempratureUnit:"C",fMaxTemprature:null,szMaxTempratureUnit:"C",fSpecificAirFlowRate:null,szSpecificAirFlowRateUnit:"",fLength:null,szLengthMeasure:"M",fWidth:null,szWidthMeasure:"M",fHeight:null,szHeightMeasure:"M",fOverLengthFront:null,szOverLengthFrontMeasure:"M",fOverLengthRear:null,szOverLengthRearMeasure:"M",fOverWidthLeft:null,szOverWidthLeftMeasure:"M",fOverWidthRight:null,szOverWidthRightMeasure:"M",fOverHeight:null,szOverHeightMeasure:"M",fNetExplosive:null,szExplosiveWeight:"KG",bSelected:!1,isCargoFormSubmitted:"no",isCargoDetailsFormValid:!1,eRefrigerationType:"",fSpecificTemprature:null,szSpecificTempratureUnit:"",eVentType:"",szExpandType:"ADD",arDangerousDetails:[]}}
1static getCCMItmsBookingCastObj(){return{szCustomerKey:"",szBookingKey:"",szDirection:"",szCcmItmsCountry:null,szReferenceNumber:"",szShipperDetails:"",szConsigneeDetails:"",szNotifyPartyDetails:"",szCompanyName:"",szContactPerson:"",szDialCode:null,szPhoneNumber:"",szEmail:"",szContactFirstName:"",szCity:"",szAddress1:"",szAddress2:"",szState:"",szPostCode:"",szContactMiddleName:"",szContactLastName:"",szCountry:null,szCDCompanyName:"",szCDContactPerson:"",szCDDialCode:null,szCDPhoneNumber:"",szCDEmail:"",szCDContactFirstName:"",szCDCity:"",szCDAddress1:"",szCDAddress2:"",szCDState:"",szCDPostCode:"",szCDContactMiddleName:"",szCDContactLastName:"",szCDCountry:null,szShipperCompanyName:"",szShipperContactPerson:"",szShipperDialCode:null,szShipperPhoneNumber:null,szShipperEmail:"",szShipperContactFirstName:"",szShipperCity:"",szShipperAddress1:"",szShipperAddress2:"",szShipperState:"",szShipperPostCode:"",szShipperContactMiddleName:"",szShipperContactLastName:"",szShipperCountry:null,szConsigneeCompanyName:"",szConsigneeContactPerson:"",szConsigneeDialCode:null,szConsigneePhoneNumber:"",szConsigneeEmail:"",szConsigneeContactFirstName:"",szConsigneeCity:"",szConsigneeAddress1:"",szConsigneeAddress2:"",szConsigneeState:"",szConsigneePostCode:"",szConsigneeContactMiddleName:"",szConsigneeContactLastName:"",szConsigneeCountry:null,bookingPartyForm:!1,primaryContactForm:!1,shipperForm:null,consigneeForm:null,notifyPartyForm:!1,bookingPartyFormViewed:!1,primaryContactFormViewed:!1,shipperFormViewed:!1,consigneeFormViewed:!1,notifyPartyFormViewed:!1,notifyPartyFormRequired:!1,consigneeFormRequired:!1,shipperFormRequired:!1,cargoForm:!1,scrollId:null,szExportFromLocation:null,szExportToLocation:null,szBLNumber:null,blbkNumber:null,szExportDepartureVessel:null,szExportEstimatedDepartureDate:"",szImportFromLocation:null,szImportToLocation:null,szImportArrivalVessel:"",szImportEstimatedArrivalDate:"",szImportFirstLoadPort:"",szImportFinalDischargePort:"",szExportFirstLoadPort:"",szExportFinalDischargePort:"",szCCNotes:"",szImportAddress1:"",szImportCity:"",szImportAddress2:"",szImportPostCode:"",szImportDeliveryDate:"",szImportDeliveryFromTime:"09:00 AM",szImportDeliveryFromTimeMeasure:"",szImportDeliveryToTime:"11:00 AM",szImportDeliveryToTimeMeasure:"",szImportNotes:"",szImportPCName:"",szImportPCPhoneNumber:"",szImportPCDialCode:null,bImportTipperTrailer:!1,bImportSideLoader:!1,bExportTipperTrailer:!1,bExportSideLoader:!1,bCCExport:!1,bCCImport:!1,bITImport:!1,bITExport:!1,bCCBoth:!1,szShippingLine:"Swire Shipping",szShippingLineImport:"Swire Shipping",szCCDeadline:"",szImportOthersAdditionalEquipments:"",isSkipInlandServices:!1,szExportAddress1:"",szExportCity:"",szExportAddress2:"",szExportPostCode:"",szExportPickupDate:"",szExportPickupFromTime:"09:00 AM",szExportPickupToTime:"11:00 AM",szExportNotes:"",szExportOthersAdditionalEquipments:"",szExportPCName:"",szExportPCPhoneNumber:"",szExportPCDialCode:null,bExportVGM:!1,commercialInvoceAttachmentFiles:[],BLCopyAttachmentFiles:[],packingAttachmentFiles:[],cargoAttachmentOtherFiles:[],arImportAttachments:[],arExportAttachments:[],arCargoDetails:{isFormValid:!1,szView:"DETAILS",szCargoDetailsKey:"",idCommodity:null,szCargoType:null,enSuppliedBy:"Carrier",fAverageWeight:null,szAverageWeightMeasure:"KG",enFreight:"Prepaid",iTotalNumberOfUnit:null,iNumberOfContainer:null,szContainerNumber:null,bReeferCargo:"no",bVentCargo:"no",bDangerousGoods:"no",bOutOfGuage:"no",bExistingQuotation:"no",szQuatationReferenceNumber:"",szNotes:"",fMinTemprature:null,szMinTempratureUnit:"C",fMaxTemprature:null,szMaxTempratureUnit:"C",fMinAirFlowRate:null,szMinAirFlowRateUnit:"CBM/H",fMaxAirFlowRate:null,szMaxAirFlowRateUnit:"CBM/H",fLength:null,szLengthMeasure:"M",fWidth:null,szWidthMeasure:"M",fHeight:null,szHeightMeasure:"M",fOverLengthFront:null,szOverLengthFrontMeasure:"M",fOverLengthRear:null,szOverLengthRearMeasure:"M",fOverWidthLeft:null,szOverWidthLeftMeasure:"M",fOverWidthRight:null,szOverWidthRightMeasure:"M",fOverHeight:null,szOverHeightMeasure:"M",fNetExplosive:null,szExplosiveWeight:"KG",bSelected:!1,isCargoFormSubmitted:"no",isCargoDetailsFormValid:!1,iSuppliedByCarrier:0,arDangerousDetails:[{isFormValid:!1,szView:"DETAILS",szCargoDetailsKey:"",szShipmentType:"Container",idCommodity:null,szCargoType:null,enSuppliedBy:"Carrier",fAverageWeight:null,szAverageWeightMeasure:"KG",iTotalNumberOfUnit:null,bReeferCargo:"no",bVentCargo:"no",bDangerousGoods:"no",bOutOfGuage:"no",bExistingQuotation:"no",szQuatationReferenceNumber:"",szNotes:"",arAttachments:[],fMinTemprature:null,szMinTempratureUnit:"C",fMaxTemprature:null,szMaxTempratureUnit:"C",fMinAirFlowRate:null,szMinAirFlowRateUnit:"CBM/H",fMaxAirFlowRate:null,szMaxAirFlowRateUnit:"CBM/H",fLength:null,szLengthMeasure:"M",fWidth:null,szWidthMeasure:"M",fHeight:null,szHeightMeasure:"M",fOverLengthFront:null,szOverLengthFrontMeasure:"M",fOverLengthRear:null,szOverLengthRearMeasure:"M",fOverWidthLeft:null,szOverWidthLeftMeasure:"M",fOverWidthRight:null,szOverWidthRightMeasure:"M",fOverHeight:null,szOverHeightMeasure:"M",fNetExplosive:null,szExplosiveWeight:"KG",bSelected:!1,isCargoFormSubmitted:"no",isCargoDetailsFormValid:!1,arDangerousDetails:[{fDGAverageWeight:null,szDGAverageWeightMeasure:"KG",idUNDGList:null,idBooking:null,idCargoDetails:null,
1szDGNotes:null,szView:"DETAILS",bValid:!1,bSelected:!1}]}]}}}getVgmRequestFields(){return{szCustomerKey:"",iSumittedModeDs:"",iSumittedMode:"",szSubmissionMode:"",szBookingNumber:"",szReferenceNumber:"",arVGMDetails:[],szPhoneNumber:"",szCompanyName:"",szFirstName:"",szLastName:"",szEmail:"",szDialCode:""}}getMrgRequestFields(){return{szCustomerKey:"",szOrigin:"",szDestination:"",dtStartDate:(0,Y.default)().format("YYYY-MM-DD"),szContainerType:"20DY",szCommodity:"FREIGHT ALL KINDS",isSuppliedByCarrier:"true",isDangerous:""}}getpolicyCompliancesCargoFields(){return{szCargoName:"",szShipmentCountry:"",szDeliveryCountry:"",szCargoManufacturedCountry:"",szCargoManufacturer:"",szCargoShipper:"",szCargoCustody:"",szCountriesList:"",szCargoReceiver:"",szCargoDestinationCountry:"",szCargoEndUser:"",szOtherCompaniesInvolved:""}}};var L=class u extends T{constructor(t,s,i,o,l){super(o);this._storageService=t;this._commonService=s;this._router=i;this._httpService=o;this._navigatService=l;this.objSailingPrice=this.getCalculateSaillingPriceData(),this.storeQuotation()}_storageService;_commonService;_router;_httpService;_navigatService;_platformService=B(G);quotationCodeValue=C("");quotationCodeType=C("");isShipmentEditClick=C("");bookingData=new c({});bookingDataCast=this.bookingData.asObservable();bookingFormData=new c({});bookingFormDataChange=this.bookingFormData.asObservable();msgPriceUpdate=new c({});msgPriceUpdateChanges=this.msgPriceUpdate.asObservable();iStepSub=new c(1);iStepSubCast=this.iStepSub.asObservable();isOpenDropDown=!1;getIndex;objBooking={};objSchedule={};objSailingPrice={};objTempSchedule={};iStep=1;iStepMax=1;currentForm="Cargo Details";focusFormElement="";skipSeviceBack;isSaillingEditView=!1;breakdownType="LIST";cargoViewType="LIST";scheduleViewType="LIST";initNewBooking(){this.objSailingPrice={},this._storageService.removeDataFromStorage("sailingPriceV2SearchSelectedTrade");let t=this._commonService.getCustomerKey(),s=[],i=new v(this._storageService),o=i.getBookingV2RequestFields(),l=i.getBookingV2CargoDetailsFields(),g=i.getAdditionalServiceStore(),S=i.getInlandFirstMileStore(),P=i.getInlandLastMileStore(),M=i.getV2CustomCleanceFields();Object.assign(o,M),s.push(l),o.szCustomerKey=t,o.szBookingKey="",o.arCargoDetails=s,Object.assign(o,g),Object.assign(o,S),Object.assign(o,P),this.updateBookingDetails(o)}updateSkipBack(t){this.skipSeviceBack=t}updateCurrentForm(t){this.currentForm=t}updateFocusFormElement(t){this.focusFormElement=t}updateStep(t){this.iStepSub.next(t),this.iStep=t,t>=this.iStepMax&&(this.iStepMax=t)}updateCargoviewType(t){this.cargoViewType=t}updateBreakdownType(t){this.breakdownType=t}updateScheduleViewType(t){this.scheduleViewType=t}isBookingInitiated(){let t=this.getBookingData();t&&Object.keys(t).length!=0&&this.updateBookingDetails(t)}resetInitiatedBooking(t){this.objBooking={},this.objSchedule={},this.objSailingPrice={},this.iStep=1,this.iStepMax=1,this.currentForm="Cargo Details";let s=this._storageService.getDataFromStorage("bookingV2SearchSelectedTrade");this._storageService.removeDataFromStorage("quotationCode"),this._storageService.removeDataFromStorage("szQuoteReferenceNumber"),this._storageService.removeDataFromStorage("szQuotationCode"),this._storageService.removeDataFromStorage("scheduleV2SearchSelectedTrade"),this._storageService.removeDataFromStorage("bookingV2SearchSelectedTrade"),this._storageService.removeDataFromStorage("sailingPriceV2SearchSelectedTrade"),s&&s?.isFromMrg&&!t?this._navigatService.navigateWithLang(this,N.GET_A_QUOTE):t||this._navigatService.navigateWithLang(this,N.SEARCH_SAILING)}updateSaillingView(t){this.isSaillingEditView=t}updateSelectedScheduleDetails(t){let s=d(d({},this.objSchedule),t);Object.assign(this.objSchedule,t),this._storageService.putDataInStorage("scheduleV2SearchSelectedTrade",JSON.stringify(s))}getSelectedScheduleData(){return this._storageService.getDataFromStorage("scheduleV2SearchSelectedTrade")?JSON.parse(this._storageService.getDataFromStorage("scheduleV2SearchSelectedTrade")||"{}"):{}}updateCalculateSaillingPriceDetails(t){this._storageService.removeDataFromStorage("sailingPriceV2SearchSelectedTrade"),Object.assign(this.objSailingPrice,t),this._storageService.putDataInStorage("sailingPriceV2SearchSelectedTrade",JSON.stringify(this.objSailingPrice))}getCalculateSaillingPriceData(){return this._storageService.getDataFromStorage("sailingPriceV2SearchSelectedTrade")?JSON.parse(this._storageService.getDataFromStorage("sailingPriceV2SearchSelectedTrade")||"{}"):{}}onServiceCallMethod(){this.objBooking=this.getBookingData()}addMoreCargoDetails(){let s=new v(this._storageService).getBookingV2CargoDetailsFields();this.objBooking?.arCargoDetails?.push(s),this.bookingData.next(this.objBooking)}duplicateCargoDetails(t){this.objBooking?.arCargoDetails?.push(t),this.bookingData.next(this.objBooking)}removeCargoDetails(t){if(this.objBooking?.arCargoDetails?.splice(t,1),!this.objBooking?.arCargoDetails?.length){let i=new v(this._storageService).getBookingV2CargoDetailsFields();this.objBooking?.arCargoDetails?.push(i)}this._storageService.putDataInStorage("bookingV2SearchSelectedTrade",JSON.stringify(this.objBooking)),this.bookingData.next(this.objBooking)}updateCargoDetails(t,s){Object.assign(this.objBooking?.arCargoDetails[t],s),this._storageService.putDataInStorage("bookingV2SearchSelectedTrade",JSON.stringify(this.objBooking)),this.bookingData.next(this.objBooking)}updateBookingDetails(t){Object.assign(this.objBooking,t),this._storageService.putDataInStorage("bookingV2SearchSelectedTrade",JSON.stringify(this.objBooking)),this.bookingData.next(this.objBooking)}getBookingData(){return this._storageService.getDataFromStorage("bookingV2SearchSelectedTrade")?JSON.parse(this._storageService.getDataFromStorage("bookingV2SearchSelectedTrade")||"{}"):{}}getAddressBookData(){return this._storageService.getDataFromStorage("myAddressBook")?JSON.parse(this._storageService.getDataFromStorage("myAddressBook")||"{}"):[]}getDataFromStorage(t){return this._storageService.getDataFromStorage(t)?JSON.parse(this._storageService.getDataFromStorage(t)||"{}"):[]}updateAddressBookData(t){this._storageService.putDataInStorage("myAddressBook",JSON.stringify(t))}updateCargidetailFormData(t){this.bookingFormData.next(t)}mrgPriceUpdateBooking(t){this.msgPriceUpdate.next(t)}getTrashAddressBookData(){return this._storageService.getDataFromStorage("myTrashAddressBook")?JSON.parse(this._storageService.getDataFromStorage("myTrashAddressBook")||"{}"):[]}updateTrashAddressBookData(t){this._storageService.putDataInStorage("myTrashAddressBook",JSON.stringify(t))}isDropDownOpenClose(t,s){this.getIndex=t,this.isOpenDropDown=s}storeQuotation(){this._platformService.runIfBrowser(()=>{let t=this._storageService.getDataFromStorage("quotationCode"),s=t?JSON.parse(t):null;s&&(this.quotationCodeType.set(s.szQuotationCodeType),this.quotationCodeValue.set(s.szQuotationCode))})}setQuotation(){}getReserveBookingDetails(t){return this._httpService.sendPostRequest("user/getReserveBookingDetails",t)}updateTmpSelectedScheduleDetails(t){Object.assign(this.objTempSchedule,t)}static \u0275fac=function(s){return new(s||u)(n(p),n(A),n(y),n(z),n(F))};static \u0275prov=m({token:u,factory:u.\u0275fac,providedIn:"root"})};var O=class u{constructor(e,t){this._httpService=e;this._storageService=t}_httpService;_storageService;
1getUserList(){return this._httpService.sendGetRequest(r.getUserListDataUrl)}getCustomerList(e){return this._httpService.sendPostRequest(r.getCustomerListDataUrl,e)}getCustomerGroupList(e){return this._httpService.sendPostRequest(r.getCustomerGroupListDataUrl,e)}getAdminUserList(){return this._httpService.sendGetRequest(r.getAdminUserListDataUrl)}sendActivationLink(e){return this._httpService.sendPostRequest(r.activationLinkUrl,e)}sendInvitationLink(e){return this._httpService.sendPostRequest(r.invitationLinkUrl,e)}saveUserAccounts(e){return this._httpService.sendPostRequest(r.saveUserAccountsUrl,e)}saveUserGroup(e){return this._httpService.sendPostRequest(r.saveUserGroupUrl,e)}searchCustomerAccounts(e){return this._httpService.sendPostRequest(r.searchCustomerAccountsUrl,e)}getCustomerCount(e){return this._httpService.sendPostRequest(r.customerCountUrl,e)}deactivateUser(e){return this._httpService.sendPostRequest(r.deactivateUserUrl,e)}updateUserRole(e){return this._httpService.sendPostRequest(r.updateUserRoleUrl,e)}checkContact(e){return this._httpService.sendPostRequest(r.checkContactUrl,e)}sendVerificationCodeforChangePhoneNumber(e){return this._httpService.sendPostRequest(r.sendVerificationCodeforChangePhoneNumberUrl,e)}updateContact(e){return this._httpService.sendPostRequest(r.updateContactUrl,e)}verifyEmail(e){return this._httpService.sendPostRequest(r.verifyEmailUrl,e)}verifyPhone(e){return this._httpService.sendPostRequest(r.verifyPhoneUrl,e)}resetValues(e){return this._httpService.sendPostRequest(r.resetOTPDataUrl,e)}sendPhoneVerificationCodeForEmail(e){return this._httpService.sendPostRequest(r.sendPhoneVerificationCodeForEmailUrl,e)}verifyPhoneForChnageEmail(e){return this._httpService.sendPostRequest(r.verifyPhoneForChnageEmailUrl,e)}verifyEmailForChnageEmail(e){return this._httpService.sendPostRequest(r.verifyEmailForChnageEmailUrl,e)}updateEmail(e){return this._httpService.sendPostRequest(r.updateEmailUrl,e)}resetValuesForEmail(e){return this._httpService.sendPostRequest(r.resetValuesForEmailUrl,e)}checkContactForManage(e){return this._httpService.sendPostRequest(r.checkContactForManageUrl,e)}sendOtpCodeforManagePhoneNumber(e){return this._httpService.sendPostRequest(r.sendOtpCodeforManagePhoneNumberUrl,e)}verifyEmailForManageContact(e){return this._httpService.sendPostRequest(r.verifyEmailForManageContactUrl,e)}updatePhoneNumber(e){return this._httpService.sendPostRequest(r.updatePhoneNumberUrl,e)}checkUserLoginCookiee(e){return this._httpService.sendPostRequest(r.checkUserLoginCookieeUrl,e)}deleteUserLoginCookiee(e){return this._httpService.sendPostRequest(r.deleteUserLoginCookieeUrl,e)}updateUserProfileData(e){return this._httpService.sendPostRequest(r.updateUserProfileUrl,e)}getInterestOfService(){return this._httpService.sendGetRequest(r.getInterestOfServiceUrl)}deleteUserProfileImage(e){return this._httpService.sendPostRequest(r.deleteUserProfileImageUrl,e)}getUserTokenExpieryTime(){return this._httpService.sendGetRequest(r.userTokenExpieryTimeUrl)}addUserAccessToken(e){return this._httpService.sendPostRequest(r.addUserAccessTokenUrl,e)}deleteUserAccessToken(e){return this._httpService.sendPostRequest(r.deleteUserAccessTokenUrl,e)}validateAccessTokenforSession(){let e={responseType:"json"};return this._httpService.sendPostRequest(r.validateAccessTokenforSessionUrl,e)}deleteUserAccessTokenById(){let e={responseType:"json"};return this._httpService.sendPostRequest(r.deleteUserAccessTokenByIdUrl,e)}staySignIn(){return this._httpService.sendGetRequest(r.staySignInUrl)}updateCustomerStatus(e){return this._httpService.sendPostRequest(r.updateCustomerAuthStatus,e)}getMappedCodeForLoggedUser(){return this._httpService.sendGetRequest(r.getMappedCodeForUser)}setCustomerPending(e){return this._httpService.sendPostRequest(r.setCustomerPendingUrl,e)}sendActivationToUser(e){return this._httpService.sendPostRequest(r.sendActivationToUserUrl,e)}getUserRegionPermissionList(e){return this._httpService.sendPostRequest(r.getUserRegionPermissionListUrl,e)}updateUserRegionPermission(e){return this._httpService.sendPostRequest(r.updateRegionPermission,e)}getUserOfficePermissionList(){return this._httpService.sendGetRequest
1(r.getUserOfficePermissionListUrl)}updateUserOfficePermission(e){return this._httpService.sendPostRequest(r.updateOfficePermission,e)}updatePassword(e){return this._httpService.sendPostRequest(r.updatePasswordUrl,e)}checkEmail(e){return this._httpService.sendPostRequest(r.checkEmailUrl,e)}updateUserEmail(e){return this._httpService.sendPostRequest(r.updateUserEmailUrl,e)}isVisitedStatusUpdate(){return this._httpService.sendPostRequest(r.visitedStatusUpdateUrl,{})}getNotificationData(){let e={responseType:"json"};return this._httpService.sendPostRequest(r.getNotification,e)}updateNotification(e){return this._httpService.sendPostRequest(r.postNotification,e)}getCustomerNotification(e){return this._httpService.sendPostRequest(r.getCustomerNotificationData,e)}getNewsCategory(){return this._httpService.sendGetRequest(r.getNewsCategary)}getEventsWithNotification(e){return e?this._httpService.sendPostRequest(r.getEventsNotifications,e):this._httpService.sendPostRequest(r.getEventsNotifications,e)}markNotificationAsSeen(e){return this._httpService.sendPostRequest(r.markUnseenBellNotification,e)}getOverviewCardData(){return this._httpService.sendGetRequest(r.overviewCardData)}accountDeactivationRequest(e){return this._httpService.sendPostRequest(r.accountDeactivationRequestUrl,e)}getMuleApiStatus(){return this._httpService.sendGetRequest(r.getMuleApiStatusUrl)}static \u0275fac=function(t){return new(t||u)(n(z),n(p))};static \u0275prov=m({token:u,factory:u.\u0275fac,providedIn:"root"})};var R=class u extends O{constructor(t,s,i,o){super(o,i);this.http=t;this._router=s;this._storageService=i;this._httpService=o}http;_router;_storageService;_httpService;userData=new c(null);userDataCast=this.userData.asObservable();callMethod=new c(!1);callMethodCast=this.callMethod.asObservable();urlData=new c(null);urlDataCast=this.urlData.asObservable();updateUserDataWithEvent(t){this.callMethod.next(t)}updateCallMethodDataWithEvent(t){this._storageService.putDataInStorage("previousRedirectUrl",t),this.urlData.next(t)}getRedirectUrl(){let t=this._storageService.getDataFromStorage("previousRedirectUrl");return t?decodeURIComponent(t):""}static \u0275fac=function(s){return new(s||u)(n(q),n(y),n(p),n(z))};static \u0275prov=m({token:u,factory:u.\u0275fac,providedIn:"root"})};var x=class u{constructor(e,t){this._windowRef=e;this._storageService=t}_windowRef;_storageService;swire_news_link="";environment="";setXdomainCookie(e=0,t=!1){if(t==!0){let o=this._storageService.getDataFromStorage("quoteServices"),l=o?JSON.parse(o):null;l?e=l.length:e=0}let s=this._windowRef.nativeWindow.__environment,i="";s=="development"?i="http://18.141.43.218":s=="staging"?i="http://13.251.167.232":(s=="production",i="https://news.swireshipping.com")}setXdomainUserCookie(e){let t="x-domain-user",s=JSON.stringify(e),i=new Date;i.setMonth(i.getMonth()+12),window.location.hostname!="localhost"?document.cookie=t+"="+s+";domain="+this.getCurrentSZdomain()+";path=/;expires="+i+";secure":document.cookie=t+"="+s+";domain="+this.getCurrentSZdomain()+";path=/;expires="+i}setXdomainAccessTokenCookie(e){let t="x-domain-accessToken",s=new Date;s.setMonth(s.getMonth()+12),window.location.hostname!="localhost"?document.cookie=t+"="+e+";domain="+this.getCurrentSZdomain()+";path=/;expires="+s+";secure":document.cookie=t+"="+e+";domain="+this.getCurrentSZdomain()+";path=/;expires="+s}setXdomainLangCookie(e){let t="x-domain-language",s=new Date;s.setMonth(s.getMonth()+12),window.location.hostname!="localhost"?document.cookie=t+"="+e+";domain="+this.getCurrentSZdomain()+";path=/;expires="+s+";secure":document.cookie=t+"="+e+";domain="+this.getCurrentSZdomain()+";path=/;expires="+s}deleteXdomainLangCookie(){let e="x-domain-language";window.location.hostname!="localhost"?document.cookie=e+"=;domain="+this.getCurrentSZdomain()+";path=/;expires=expires=Thu, 01 Jan 1970 00:00:00 GMT;max-age=0;secure":document.cookie=e+"=;domain="+this.getCurrentSZdomain()+";path=/;expires=expires=Thu, 01 Jan 1970 00:00:00 GMT;max-age=0"}deleteXdomainAccessTokenCookie(){let e="x-domain-accessToken";window.location.hostname!="localhost"?document.cookie=e+"=;domain="+this.getCurrentSZdomain()+";path=/;expires=expires=Thu, 01 Jan 1970 00:00:00 GMT;max-age=0;secure":document.cookie=e+"=;domain="+this.getCurrentSZdomain()+";path=/;expires=expires=Thu, 01 Jan 1970 00:00:00 GMT;max-age=0"}setUserFirstLoginCookie(e){let t="x-user-device",s=JSON.stringify(e),i=new Date;i.setHours(i.getHours()+24),window.location.hostname!="localhost"?document.cookie=t+"="+s+";domain="+this.getCurrentSZdomain()+";path=/;expires="+i+";secure":document.cookie=t+"="+s+";domain="+this.getCurrentSZdomain()+";path=/;expires="+i}setUserTerms(e){let t="x-user-acceptterms",s=e,i=new Date;i.setHours(i.getHours()+24),window.location.hostname!="localhost"?document.cookie=t+"="+s+";domain="+this.getCurrentSZdomain()+";path=/;expires="+i+";secure":document.cookie=t+"="+s+";domain="+this.getCurrentSZdomain()+";path=/;expires="+i}setXdomainUserRememberCookie(e){let t="x-domain-user-remember-me",s=JSON.stringify(e),i=new Date;i.setHours(i.getHours()+24),window.location.hostname!="localhost"?document.cookie=t+"="+s+";domain="+this.getCurrentSZdomain()+";path=/;expires="+i+";secure":document.cookie=t+"="+s+";domain="+this.getCurrentSZdomain()+";path=/;expires="+i}getCurrentSZdomain(){let e=this.environment,t="";return e==="local"?t="localhost":e==="development"?t=".swiredigital-s3-staging.com":e==="staging"?t=".swireshippingdigital.com":e==="production"&&(t=".swireshipping.com"),t}getHttpOnly(){let e=this.environment,t="";return(e==="local"||e==="development"||e==="staging"||e==="production")&&(t=""),t}deleteXUserLogin(){let e="x-user-login";window.location.hostname!="localhost"?document.cookie=e+"=;domain="+this.getCurrentSZdomain()+";path=/;expires=expires=Thu, 01 Jan 1970 00:00:00 GMT;max-age=0;secure":document.cookie=e+"=;domain="+this.getCurrentSZdomain()+";path=/;expires=expires=Thu, 01 Jan 1970 00:00:00 GMT;max-age=0"}deleteXdomainUserCookie(){let e="x-domain-user",s=new Date;s.setHours(s.getHours()+24);let i=window.location.hostname;i!="localhost"?document.cookie=e+"=;domain="+this.getCurrentSZdomain()+";path=/;expires=expires=Thu, 01 Jan 1970 00:00:00 GMT;max-age=0;secure":document.cookie=e+"=;domain="+this.getCurrentSZdomain()+";path=/;expires=expires=Thu, 01 Jan 1970 00:00:00 GMT;max-age=0",this.deleteXUserLogin(),this.deleteXdomainAccessTokenCookie(),this.deleteXdomainLangCookie();let o="x-user-signup",l="";return i!="localhost"?document.cookie=o+"="+l+";domain="+this.getCurrentSZdomain()+";path=/;expires=expires=Thu, 01 Jan 1970 00:00:00 GMT;max-age=0;secure":document.cookie=o+"="+l+";domain="+this.getCurrentSZdomain()+";path=/;expires=expires=Thu, 01 Jan 1970 00:00:00 GMT;max-age=0",!0}deleteCookieData(e){let t=e,s="";window.location.hostname!="localhost"?document.cookie=t+"="+s+";domain="+this.getCurrentSZdomain()+";path=/;expires=expires=Thu, 01 Jan 1970 00:00:00 GMT;max-age=0;secure":document.cookie=t+"="+s+";domain="+this.getCurrentSZdomain()+";path=/;expires=expires=Thu, 01 Jan 1970 00:00:00 GMT;max-age=0"}setXdomainUserAccessLocationCookie(e){let t="x-domain-user-accessLocation",s=JSON.stringify(e),i=new Date;i.setHours(i.getHours()+24),window.location.hostname!="localhost"?document.cookie=t+"="+s+";domain="+this.getCurrentSZdomain()+";path=/;expires="+i+";secure":document.cookie=t+"="+s+";domain="+this.getCurrentSZdomain()+";path=/;expires="+i}setXdomainUserNotificationsCookie(e){let t="x-domain-user-notifications",s=JSON.stringify(e),i=new Date;i.setHours(i.getHours()+24),window.location.hostname!="localhost"?document.cookie=t+"="+s+";domain="+this.getCurrentSZdomain()+";path=/;expires="+i+";secure":document.cookie=t+"="+s+";domain="+this.getCurrentSZdomain()+";path=/;expires="+i}deleteXdomainUserNotificationsCookie(){let e="x-domain-user-notifications",s=new Date;s.setHours(s.getHours()+24),window.location.hostname!="localhost"?document.cookie=e+"=;domain="+this.getCurrentSZdomain()+";path=/;expires=expires=Thu, 01 Jan 1970 00:00:00 GMT;max-age=0;secure":document.cookie=e+"=;domain="+this.getCurrentSZdomain()+";path=/;expires=expires=Thu, 01 Jan 1970 00:00:00 GMT;max-age=0"}getXdomainUserCookie(e){let t=document.cookie.split(";"),s=t.length,i=`${e}=`,o;for(let l=0;l<s;l+=1)if(o=t[l].replace(/^\s+/g,""),o.indexOf(i)==0)return o.substring(i.length,o.length);return""}static \u0275fac=function(t){return new(t||u)(n(K),n(p))};static \u0275prov=m({token:u,factory:u.\u0275fac,providedIn:"root"})};var b=class b{constructor(e,t,s,i,o,l,g,S,P,M,f,E,le){this._helperService=e;this._commonService=t;this._storageService=s;this._cookieService=i;this.translate=o;this._bookingV2Service=l;this._authService=g;this._modelService=S;this._activityLogService=P;this._userService=M;this._xDomainService=f;this._route=E;this._navigatService=le;_(()=>
1{this._storageService.authDetails()&&this.getAuthUserData()})}_helperService;_commonService;_storageService;_cookieService;translate;_bookingV2Service;_authService;_modelService;_activityLogService;_userService;_xDomainService;_route;_navigatService;authData={};userAuthData=new c({});authDataCast=this.userAuthData.asObservable();errorMessage=C("");signUpObjSet=C({signupStep:1,isLoading:!0,isBtnDisabled:!1,isDisable:!0,continueLogin:!1,szDocumentReferer:"",isAccountDeactivated:!1,isDeactivatedByAdmin:!1,reactivationMailDate:"",reactivationMailSent:!1,maximumLimitOfResendOtp:0,isShowTimer:!0,isOtpConfirm:!1,modalData:{}});forgotPasswordObjSet=C({resendLinkInProcess:!1,isLoading:!1,isBtnDisabled:!1,forgotPasswordStep:1});authForgotPasswordFrom=C(null);updateTranslate(){return[{type:"min",message:this.translate.instant("Minimum lenght of 8 characters"),regex:"",length:8},{type:"uppercase",message:this.translate.instant("Must contain an uppercase (A-Z) letter"),regex:/[A-Z]/,length:0},{type:"lowercase",message:this.translate.instant("Must contain a lowercase letter (a-z)"),regex:/[a-z]/,length:0},{type:"specialcharacter",message:this.translate.instant("Must contain a special character"),regex:/[-!$%^&*()_+|~=`{}\[\]:\/;<>?,.'"@#]/},{type:"number",message:this.translate.instant("Must contain atleast one number"),regex:/^(?=.*\d).{1,20}$/}]}getAuthUserData(){let e=this._storageService.authDetails();return e?(this.authData=e,this.authData):null}get isUserLoggedIn(){return!!this._cookieService.getCookie("x-access-token")}updateAuthUserData(e){let s=e.szCustomerName?.split(" ");s.length>1?e.szCustomerImageName=s[0]+" "+s[1]:e.szCustomerImageName=e.szCustomerName,this.authData=e,this._storageService.putDataInStorage("authData",e),this._storageService.putDataInStorage("secretToken",e.secretToken),this.userAuthData.next(this.authData)}removeAuthUserData(){this.authData=null,this._storageService.removeDataFromStorage("authData"),this._storageService.removeDataFromStorage("authTokenExpiry"),this._storageService.removeDataFromStorage("xrccssinitExp"),this._storageService.removeDataFromStorage("secretToken"),this._storageService.putDataInStorage("customerKey",k.getRandomString()),this._storageService.authDetails.set(null),this.userAuthData.next(this.authData)}addTracknTraceActivityLog(e){let s=window.location.href.split("/")[4]?.toUpperCase(),i={isTrackActivity:!0,TimeStamp:new Date,szType:s=="BL"?"Bill of Lading":s=="BK"?"Booking":s=="CN"?"Container":null};e?i.szLabel="track_n_trace_login":i.szLabel="track_n_trace_signup",this.activityLog("userloginsignuptrackandtrace",i)}activityLog(e,t){return{exitLog:t,jsonLogKey:e}}getAddressBook(e){this._bookingV2Service.getAddressBook(e).subscribe(t=>{let s=t.data.arResults;this._bookingV2Service.updateAddressBookData(s)})}getErrorMsgByCode(e){return this.translate.instant(e)}forgotPassword(e){if(e&&this.forgotPasswordObjSet.set(h(d({},this.forgotPasswordObjSet()),{resendLinkInProcess:!0})),this.authForgotPasswordFrom().status=="VALID"){let t={email:this.authForgotPasswordFrom().get("email").value};this.forgotPasswordObjSet.set(h(d({},this.forgotPasswordObjSet()),{resendLinkInProcess:!0,isLoading:!1,isBtnDisabled:!0})),this._authService.resetPasswordEmailLink(t).subscribe(s=>{this.forgotPasswordObjSet.set(h(d({},this.forgotPasswordObjSet()),{isLoading:!0,isBtnDisabled:!1,forgotPasswordStep:2})),this._modelService.openModal({type:this._modelService.modals.ForgetResedLink,open:!0}),w(500).subscribe(()=>{this.forgotPasswordObjSet.set(h(d({},this.forgotPasswordObjSet()),{resendLinkInProcess:!1}))})},s=>{this.handleErrorForgotPassResponse(s,this.authForgotPasswordFrom()),s.status==500||s.status==422&&(this.forgotPasswordObjSet.set(h(d({},this.forgotPasswordObjSet()),{isLoading:!0})),this._modelService.openModal({type:this._modelService.modals.ForgetResedLink,open:!0}),w(500).subscribe(()=>{this.forgotPasswordObjSet.set(h(d({},this.forgotPasswordObjSet()),{resendLinkInProcess:!1}))})),this.forgotPasswordObjSet.set(h(d({},this.forgotPasswordObjSet()),{isBtnDisabled:!1}))})}}handleErrorForgotPassResponse(e,t){let s=e.error;if(s.hasOwnProperty("data")&&e?.status!==422){let i=s.data[0],o=t.controls.email;i.hasOwnProperty("code")&&o.setErrors({serverError:i.code})}}logoutUser(){this.isUserLoggedIn?this._userService.deleteUserAccessTokenById().subscribe(e=>{this._commonService.isConfirm.set(!0),this.deleteFrontendAuthData()},e=>{}):this.deleteFrontendAuthData()}deleteFrontendAuthData(){this._xDomainService.deleteXdomainUserCookie(),this._xDomainService.deleteXdomainUserNotificationsCookie(),this._xDomainService.deleteCookieData("customerDetail"),this._xDomainService.deleteCookieData("x-access-token"),this.removeAuthUserData(),window.location.href=N.HOME}static \u0275fac=function(t){return new(t||b)(n(Q),n(A),n(p),n(W),n(H),n(L),n(J),n(Z),n(X),n(R),n(x),n(y),n(F))};static \u0275prov=m({token:b,factory:b.\u0275fac,providedIn:"root"})};U([j()],b.prototype,"activityLog",1);var ee=b;export{k as a,T as b,v as c,L as d,R as e,x as f,ee as g};

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.