PageSourceSearch

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

js swireshipping.com collected 2026-09-24 18:31:18 UTC 24,680 bytes, 2 lines download raw bytes

1import{a as K}from"./chunk-FYRNT5QF.js";import{Ba as Q,a as X,e as $,i as I,k as L,m as j,v as V,x as Y,y as q}from"./chunk-H5QLA7CR.js";import{$ as T,A as E,Ac as A,Bc as R,Ia as t,Ib as r,Jb as c,Kb as m,Kc as U,Lb as b,Ma as S,Mc as G,Qa as O,Va as u,Yb as f,ab as d,bb as x,cc as p,dc as o,ea as w,ec as g,g as W,gd as H,ib as C,nb as a,nd as N,ob as n,pa as y,pb as v,qb as B,qd as M,rb as D,xb as s,yb as z,zb as F}from"./chunk-B55Z224L.js";var P=W(X());var Z=[[["",8,"alert-message"]]],ee=[".alert-message"],k=()=>[];function te(i,l){if(i&1&&(a(0,"td",14),r(1),n()),i&2){let e=s().$implicit;t(),b(" ",e==null?null:e.szChargeBasisDescription," x ",e==null?null:e.iTotalQuantity,"")}}function ie(i,l){if(i&1&&(a(0,"td",14),r(1),n()),i&2){let e=s().$implicit;t(),m(" ",e==null?null:e.szChargeBasisDescription,"")}}function ae(i,l){if(i&1&&(a(0,"tr")(1,"td",12),r(2),n(),u(3,te,2,2,"td",13)(4,ie,2,1,"td",13),a(5,"td",14),r(6),p(7,"number"),n(),a(8,"td",14),r(9),p(10,"number"),n()()),i&2){let e=l.$implicit;t(2),c(e==null?null:e.szChargeDescription),t(),d("ngIf",(e==null?null:e.szChargeBasisDescription)!=="Per Shipment"),t(),d("ngIf",(e==null?null:e.szChargeBasisDescription)==="Per Shipment"),t(2),b(" ",g(7,6,e==null?null:e.fPrice,"1.2-2")," ",e==null?null:e.szChargeCurrency,""),t(3),m(" ",g(10,9,e==null?null:e.fPriceUSD,"2.2")," USD")}}function ne(i,l){if(i&1&&(a(0,"tr",15)(1,"td",16),r(2),p(3,"translate"),n(),a(4,"td"),r(5),p(6,"number"),n(),a(7,"td"),r(8),p(9,"number"),n()()),i&2){let e=s(3);t(2),m(" ",o(3,4,"Total")," "),t(3),b(" ",g(6,6,e.totalPrice(e.priceBreakData==null?null:e.priceBreakData.arOceanCharges,"fPrice"),"1.1-1")," ",e.priceBreakData==null||e.priceBreakData.arOceanCharges[0]==null?null:e.priceBreakData.arOceanCharges[0].szChargeCurrency,""),t(3),m(" ",g(9,9,e.totalPrice(e.priceBreakData==null?null:e.priceBreakData.arOceanCharges,"fPriceUSD"),"2.2")," USD")}}function re(i,l){if(i&1&&(B(0),a(1,"div",3)(2,"h3",4),r(3),p(4,"translate"),n(),a(5,"div",5)(6,"table",6)(7,"thead",7)(8,"tr")(9,"th",8),r(10),p(11,"translate"),n(),a(12,"th",8),r(13),p(14,"translate"),n(),a(15,"th",8),r(16),p(17,"translate"),n(),a(18,"th",8),r(19),p(20,"translate"),a(21,"span"),r(22,"*"),n()()()(),a(23,"tbody",9),u(24,ae,11,12,"tr",10)(25,ne,10,12,"tr",11),n()()()(),D()),i&2){let e=s(2);t(3),c(o(4,9,"OCEAN CHARGES")),t(7),c(o(11,11,"OCEAN CHARGES")),t(3),c(o(14,13,"CHARGED")),t(3),c(o(17,15,"LOCAL CHARGES")),t(3),c(o(20,17,"USD")),t(2),x("color","#1e4f98"),t(3),d("ngForOf",e.priceBreakData==null?null:e.priceBreakData.arOceanCharges),t(),d("ngIf",(e.priceBreakData==null||e.priceBreakData.arOceanCharges==null?null:e.priceBreakData.arOceanCharges.length)>0)}}function le(i,l){if(i&1&&v(0,"form",18),i&2){let e=s(3);d("formGroup",e.toggleForm)}}function pe(i,l){if(i&1&&(a(0,"td",14),r(1),n()),i&2){let e=s().$implicit;t(),b("",e==null?null:e.szChargeBasisDescription," x ",e==null?null:e.iTotalQuantity,"")}}function oe(i,l){if(i&1&&(a(0,"td",14),r(1),n()),i&2){let e=s().$implicit;t(),c(e==null?null:e.szChargeBasisDescription)}}function de(i,l){if(i&1&&(a(0,"tr")(1,"td",12),r(2),n(),u(3,pe,2,2,"td",13)(4,oe,2,1,"td",13),a(5,"td",14),r(6),p(7,"number"),n(),a(8,"td",14),r(9),p(10,"number"),n()()),i&2){let e=l.$implicit;t(2),c(e==null?null:e.szChargeDescription),t(),d("ngIf",(e==null?null:e.szChargeBasisDescription)!=="Per Shipment"),t(),d("ngIf",(e==null?null:e.szChargeBasisDescription)==="Per Shipment"),t(2),b("",g(7,6,e==null?null:e.fPrice,"1.2-2")," ",e==null?null:e.szChargeCurrency,""),t(3),m(" ",g(10,9,e==null?null:e.fPriceUSD,"2.2")," USD")}}function ce(i,l){if(i&1&&(a(0,"tr",15)(1,"td",16),r(2),p(3,"translate"),n(),a(4,"td"),r(5),p(6,"number"),n(),a(7,"td"),r(8),p(9,"number"),n()()),i&2){let e=s(4);t(2),m(" ",o(3,4,"Total")," "),t(3),b(" ",g(6,6,e.totalPrice(e.priceBreakData==null?null:e.priceBreakData.arOriginCharges,"fPrice"),"1.1-1")," ",e.priceBreakData==null||e.priceBreakData.arOriginCharges[0]==null?null:e.priceBreakData.arOriginCharges[0].szChargeCurrency,""),t(3),m(" ",g(9,9,e.totalPrice(e.priceBreakData==null?null:e.priceBreakData.arOriginCharges,"fPriceUSD"),"2.2")," USD")}
1}function se(i,l){if(i&1&&(a(0,"div",5)(1,"table",6)(2,"thead",7)(3,"tr")(4,"th",8),r(5),p(6,"translate"),n(),a(7,"th",8),r(8),p(9,"translate"),n(),a(10,"th",8),r(11),p(12,"translate"),n(),a(13,"th",8),r(14),p(15,"translate"),a(16,"span"),r(17,"*"),n()()()(),a(18,"tbody",9),u(19,de,11,12,"tr",10)(20,ce,10,12,"tr",11),n()()()),i&2){let e=s(3);t(5),c(o(6,8,"SURCHARGE")),t(3),c(o(9,10,"CHARGED PER")),t(3),c(o(12,12,"LOCAL CHARGES")),t(3),c(o(15,14,"USD")),t(2),x("color","#1e4f98"),t(3),d("ngForOf",e.priceBreakData==null?null:e.priceBreakData.arOriginCharges),t(),d("ngIf",(e.priceBreakData==null||e.priceBreakData.arOriginCharges==null?null:e.priceBreakData.arOriginCharges.length)>0)}}function me(i,l){i&1&&v(0,"hr",21)}function ge(i,l){if(i&1&&(B(0),a(1,"div",3)(2,"div",17)(3,"h3",4),r(4),p(5,"translate"),n(),u(6,le,1,1,"form",18),n(),a(7,"span",19),v(8,"span",20),r(9),p(10,"translate"),n(),u(11,se,21,16,"div",5),n(),u(12,me,1,0,"hr",21),D()),i&2){let e=s(2);t(4),b("",o(5,6,"ORIGIN CHARGES AT")," ",e.priceBreakData==null?null:e.priceBreakData.szOriginPortName,""),t(2),C(e.showHideToggle?6:-1),t(3),m(" ",o(10,8,"Surcharge calculation is based on today\u2019s rates. Final prices will include applicable origin and destination charges at the time of sailing")," "),t(2),C(e._mrgService.getDataFromStorage("bOriginCharge")?11:-1),t(),C(e._mrgService.getDataFromStorage("bOriginCharge")?-1:12)}}function be(i,l){if(i&1&&v(0,"form",18),i&2){let e=s(3);d("formGroup",e.toggleForm)}}function ue(i,l){if(i&1&&(a(0,"td",14),r(1),n()),i&2){let e=s().$implicit;t(),b("",e==null?null:e.szChargeBasisDescription," x ",e==null?null:e.iTotalQuantity,"")}}function _e(i,l){if(i&1&&(a(0,"td",14),r(1),n()),i&2){let e=s().$implicit;t(),c(e==null?null:e.szChargeBasisDescription)}}function he(i,l){if(i&1&&(a(0,"tr")(1,"td",12),r(2),n(),u(3,ue,2,2,"td",13)(4,_e,2,1,"td",13),a(5,"td",14),r(6),p(7,"number"),n(),a(8,"td",14),r(9),p(10,"number"),n()()),i&2){let e=l.$implicit;t(2),c(e==null?null:e.szChargeDescription),t(),d("ngIf",(e==null?null:e.szChargeBasisDescription)!=="Per Shipment"),t(),d("ngIf",(e==null?null:e.szChargeBasisDescription)==="Per Shipment"),t(2),b("",g(7,6,e==null?null:e.fPrice,"1.2-2")," ",e==null?null:e.szChargeCurrency,""),t(3),m(" ",g(10,9,e==null?null:e.fPriceUSD,"2.2")," USD")}}function xe(i,l){if(i&1&&(a(0,"tr",15)(1,"td",16),r(2),p(3,"translate"),n(),a(4,"td"),r(5),p(6,"number"),n(),a(7,"td"),r(8),p(9,"number"),n()()),i&2){let e=s(4);t(2),m(" ",o(3,4,"Total")," "),t(3),b(" ",g(6,6,e.totalPrice(e.priceBreakData==null?null:e.priceBreakData.arDestinationCharges,"fPrice"),"1.1-1")," ",e.priceBreakData==null||e.priceBreakData.arDestinationCharges[0]==null?null:e.priceBreakData.arDestinationCharges[0].szChargeCurrency,""),t(3),m(" ",g(9,9,e.totalPrice(e.priceBreakData==null?null:e.priceBreakData.arDestinationCharges,"fPriceUSD"),"2.2")," USD")}}function Ce(i,l){if(i&1&&(a(0,"div",5)(1,"table",6)(2,"thead",7)(3,"tr")(4,"th",8),r(5),p(6,"translate"),n(),a(7,"th",8),r(8),p(9,"translate"),n(),a(10,"th",8),r(11),p(12,"translate"),n(),a(13,"th",8),r(14),p(15,"translate"),a(16,"span"),r(17,"*"),n()()()(),a(18,"tbody",9),u(19,he,11,12,"tr",10)(20,xe,10,12,"tr",11),n()()()),i&2){let e=s(3);t(5),c(o(6,8,"SURCHARGE")),t(3),c(o(9,10,"CHARGED")),t(3),c(o(12,12,"LOCAL CHARGES")),t(3),m("",o(15,14,"USD")," "),t(2),x("color","#1e4f98"),t(3),d("ngForOf",e.priceBreakData==null?null:e.priceBreakData.arDestinationCharges),t(),d("ngIf",(e.priceBreakData==null||e.priceBreakData.arDestinationCharges==null?null:e.priceBreakData.arDestinationCharges.length)>0)}}function ve(i,l){i&1&&v(0,"hr",21)}function Be(i,l){if(i&1&&(B(0),a(1,"div",3)(2,"div",17)(3,"h3",4),r(4),p(5,"translate"),n(),u(6,be,1,1,"form",18),n(),a(7,"span",19),v(8,"span",20),r(9),p(10,"translate"),n(),u(11,Ce,21,16,"div",5),n(),u(12,ve,1,0,"hr",21),D()),i&2){let e=s(2);t(4),b("",o(5,6,"DESTINATION CHARGES AT")," ",e.priceBreakData==null?null:e.priceBreakData.szDestinationPortName,""),t(2),C(e.showHideToggle?6:-1),t(3),m(" ",o(10,8,"Surcharge calculation is based on today\u2019s rates. Final prices will include applicable origin and destination charges at the time of sailing"),". "),t(2),C(e._mrgService.getDataFromStorage("bDestinationCharge")?11:-1),t(),C(e._mrgService.getDataFromStorage("bDestinationCharge")?-1:12)}}function De(i,l){if(i&1&&(a(0,"div",1),u(1,re,26,19,"ng-container",2)(2,ge,13,10,"ng-container",2)(3,Be,13,10,"ng-container",2),n()),i&2){let e=s();t(),d("ngIf",((e.priceBreakData==null?null:e.priceBreakData.arOceanCh
1arges)||f(3,k)).length>0),t(),d("ngIf",((e.priceBreakData==null?null:e.priceBreakData.arOriginCharges)||f(4,k)).length>0),t(),d("ngIf",((e.priceBreakData==null?null:e.priceBreakData.arDestinationCharges)||f(5,k)).length>0)}}function fe(i,l){if(i&1&&(a(0,"td",14),r(1),n()),i&2){let e=s().$implicit;t(),b(" ",e==null?null:e.szChargeBasisDescription," x ",e==null?null:e.iTotalQuantity,"")}}function ke(i,l){if(i&1&&(a(0,"td",14),r(1),n()),i&2){let e=s().$implicit;t(),m(" ",e==null?null:e.szChargeBasisDescription,"")}}function Se(i,l){if(i&1&&(a(0,"tr")(1,"td",12),r(2),n(),u(3,fe,2,2,"td",13)(4,ke,2,1,"td",13),a(5,"td",14),r(6),p(7,"number"),n(),a(8,"td",14),r(9),p(10,"number"),n()()),i&2){let e=l.$implicit;t(2),c(e==null?null:e.szChargeDescription),t(),d("ngIf",(e==null?null:e.szChargeBasisDescription)!=="Per Shipment"),t(),d("ngIf",(e==null?null:e.szChargeBasisDescription)==="Per Shipment"),t(2),b("",g(7,6,e==null?null:e.fPrice,"1.2-2")," ",e==null?null:e.szChargeCurrency,""),t(3),m(" ",g(10,9,e==null?null:e.fPriceUSD,"2.2")," USD")}}function Ee(i,l){if(i&1&&(a(0,"tr",15)(1,"td",16),r(2),p(3,"translate"),n(),a(4,"td"),r(5),p(6,"number"),n(),a(7,"td"),r(8),p(9,"number"),n()()),i&2){let e=s(3);t(2),m(" ",o(3,4,"Total")," "),t(3),b(" ",g(6,6,e.totalPrice(e.priceBreakData==null?null:e.priceBreakData.arOceanCharge,"fPrice"),"1.1-1")," ",e.priceBreakData==null||e.priceBreakData.arOceanCharge[0]==null?null:e.priceBreakData.arOceanCharge[0].szChargeCurrency,""),t(3),m(" ",g(9,9,e.totalPrice(e.priceBreakData==null?null:e.priceBreakData.arOceanCharge,"fPriceUSD"),"2.2")," USD")}}function Ie(i,l){if(i&1&&(B(0),a(1,"div",3)(2,"h3",4),r(3),p(4,"translate"),n(),a(5,"div",5)(6,"table",6)(7,"thead",7)(8,"tr")(9,"th",8),r(10),p(11,"translate"),n(),a(12,"th",8),r(13),p(14,"translate"),n(),a(15,"th",8),r(16),p(17,"translate"),n(),a(18,"th",8),r(19),p(20,"translate"),a(21,"span"),r(22,"*"),n()()()(),a(23,"tbody",9),u(24,Se,11,12,"tr",10)(25,Ee,10,12,"tr",11),n()()()(),D()),i&2){let e=s(2);t(3),c(o(4,9,"OCEAN CHARGES")),t(7),c(o(11,11,"OCEAN CHARGES")),t(3),c(o(14,13,"CHARGED")),t(3),c(o(17,15,"LOCAL CHARGES")),t(3),c(o(20,17,"USD")),t(2),x("color","#1e4f98"),t(3),d("ngForOf",e.priceBreakData==null?null:e.priceBreakData.arOceanCharge),t(),d("ngIf",(e.priceBreakData==null||e.priceBreakData.arOceanCharge==null?null:e.priceBreakData.arOceanCharge.length)>0)}}function Pe(i,l){if(i&1&&(a(0,"td",14),r(1),n()),i&2){let e=s().$implicit;t(),b(" ",e==null?null:e.szChargeBasisDescription," x ",e==null?null:e.iTotalQuantity,"")}}function Te(i,l){if(i&1&&(a(0,"td",14),r(1),n()),i&2){let e=s().$implicit;t(),m(" ",e==null?null:e.szChargeBasisDescription,"")}}function we(i,l){if(i&1&&(a(0,"tr")(1,"td",12),r(2),n(),u(3,Pe,2,2,"td",13)(4,Te,2,1,"td",13),a(5,"td",14),r(6),p(7,"number"),n(),a(8,"td",14),r(9),p(10,"number"),n()()),i&2){let e=l.$implicit;t(2),c(e==null?null:e.szChargeDescription),t(),d("ngIf",(e==null?null:e.szChargeBasisDescription)!=="Per Shipment"),t(),d("ngIf",(e==null?null:e.szChargeBasisDescription)==="Per Shipment"),t(2),b("",g(7,6,e==null?null:e.fPrice,"1.2-2")," ",e==null?null:e.szChargeCurrency,""),t(3),m(" ",g(10,9,e==null?null:e.fPriceUSD,"2.2")," USD")}}function ye(i,l){if(i&1&&(a(0,"tr",15)(1,"td",16),r(2),p(3,"translate"),n(),a(4,"td"),r(5),p(6,"number"),n(),a(7,"td"),r(8),p(9,"number"),n()()),i&2){let e=s(3);t(2),m(" ",o(3,4,"Total")," "),t(3),b(" ",g(6,6,e.totalPrice(e.priceBreakData==null?null:e.priceBreakData.arOriginCharge,"fPrice"),"1.1-1")," ",e.priceBreakData==null||e.priceBreakData.arOriginCharge[0]==null?null:e.priceBreakData.arOriginCharge[0].szChargeCurrency,""),t(3),m(" ",g(9,9,e.totalPrice(e.priceBreakData==null?null:e.priceBreakData.arOriginCharge,"fPriceUSD"),"2.2")," USD")}}function Oe(i,l){if(i&1&&(B(0),a(1,"div",3)(2,"h3",4),r(3),p(4,"translate"),n(),a(5,"div",5)(6,"table",6)(7,"thead",7)(8,"tr")(9,"th",8),r(10),p(11,"translate"),n(),a(12,"th",8),r(13),p(14,"translate"),n(),a(15,"th",8),r(16),p(17,"translate"),n(),a(18,"th",8),r(19),p(20,"translate"),a(21,"span"),r(22,"*"),n()()()(),a(23,"tbody",9),u(24,we,11,12,"tr",10)(25,ye,10,12,"tr",11),n()()()(),D()),i&2){let e=s(2);t(3),b("",o(4,10,"ORIGIN CHARGES AT")," ",e.priceBreakData==null?null:e.priceBreakData.szOriginPortName,""),t(7),c(o(11,12,"SURCHARGE")),t(3),c(o(14,14,"CHARGED")),t(3),c(o(17,16,"LOCAL CHARGES")),t(3),c(o(20,18,"USD")),t(2),x("color","#1e4f98"),t(3),d("ngForOf",e.priceBreakData==null?null:e.priceBreakData.arOriginCharge),t(),d("ngIf",(e.priceBreakData==null||e.priceBreakData.arOriginCharge==null?null:e.priceBreakData.arOriginCharge.length)>0)}}function ze(i,l){if(i&1&&(a(0,"td",14),r(1),n()),i&2){let e=s().$implicit;t(),b(" ",e==null?null:e.szChargeBasisDescription," x ",e==null?null:e.iTotalQuantity,"")}}function Fe(i,l){if(i&1&&(a(0,"td",14),r(1),n()),i&2){let e=s().$implicit;t(),m(" ",e==null?null:e.szChargeBasisDescription,"")}}function Ae(i,l){if(i&1&&(a(0,"tr")(1,"td",12),r(2),n(),u(3,ze,2,2,"td",13)(4,Fe,2,1,"td",13),a(5,"td",14),r(6),p(7,"number"),n(),a(8,"td",14),r(9),p(10,"number"),n()()),i&2){let e=l.$implicit;t(2),c(e==null?null:e.szChargeDescription),t(),d("ngIf",(e==null?null:e.szChargeBasisDescription)!=="Per Shipment"),t(),d("ngIf",(e==null?null:e.szChargeBasisDescription)==="Per Shipment"),t(2),b("",g(7,6,e==null?null:e.fPrice,"1.2-2")," ",e==null?null:e.szChargeCurrency,""),t(3),m(" ",g(10,9,e==null?null:e.fPriceUSD,"2.2")," USD")}
1}function Re(i,l){if(i&1&&(a(0,"tr",15)(1,"td",16),r(2),p(3,"translate"),n(),a(4,"td"),r(5),p(6,"number"),n(),a(7,"td"),r(8),p(9,"number"),n()()),i&2){let e=s(3);t(2),m(" ",o(3,4,"Total")," "),t(3),b(" ",g(6,6,e.totalPrice(e.priceBreakData==null?null:e.priceBreakData.arDestinationCharge,"fPrice"),"1.1-1")," ",e.priceBreakData==null||e.priceBreakData.arDestinationCharge[0]==null?null:e.priceBreakData.arDestinationCharge[0].szChargeCurrency,""),t(3),m(" ",g(9,9,e.totalPrice(e.priceBreakData==null?null:e.priceBreakData.arDestinationCharge,"fPriceUSD"),"2.2")," USD")}}function Ue(i,l){if(i&1&&(B(0),a(1,"div",3)(2,"h3",4),r(3),p(4,"translate"),n(),a(5,"div",5)(6,"table",6)(7,"thead",7)(8,"tr")(9,"th",8),r(10),p(11,"translate"),n(),a(12,"th",8),r(13),p(14,"translate"),n(),a(15,"th",8),r(16),p(17,"translate"),n(),a(18,"th",8),r(19),p(20,"translate"),a(21,"span"),r(22,"*"),n()()()(),a(23,"tbody",9),u(24,Ae,11,12,"tr",10)(25,Re,10,12,"tr",11),n()()()(),D()),i&2){let e=s(2);t(3),b("",o(4,10,"DESTINATION CHARGES AT")," ",e.priceBreakData==null?null:e.priceBreakData.szDestinationPortName,""),t(7),c(o(11,12,"SURCHARGE")),t(3),c(o(14,14,"CHARGED")),t(3),c(o(17,16,"LOCAL CHARGES")),t(3),m("",o(20,18,"USD")," "),t(2),x("color","#1e4f98"),t(3),d("ngForOf",e.priceBreakData==null?null:e.priceBreakData.arDestinationCharge),t(),d("ngIf",(e.priceBreakData==null||e.priceBreakData.arDestinationCharge==null?null:e.priceBreakData.arDestinationCharge.length)>0)}}function Ge(i,l){if(i&1&&(a(0,"div",1),u(1,Ie,26,19,"ng-container",2)(2,Oe,26,20,"ng-container",2)(3,Ue,26,20,"ng-container",2),n()),i&2){let e=s();t(),d("ngIf",((e.priceBreakData==null?null:e.priceBreakData.arOceanCharge)||f(3,k)).length>0),t(),d("ngIf",((e.priceBreakData==null?null:e.priceBreakData.arOriginCharge)||f(4,k)).length>0),t(),d("ngIf",((e.priceBreakData==null?null:e.priceBreakData.arDestinationCharge)||f(5,k)).length>0)}}var J=class i{constructor(l,e,_){this._mrgService=l;this._formBuilder=e;this._router=_}_mrgService;_formBuilder;_router;_platformService=T(N);priceBreakData;szPage;szCargoType;originDestinationAddon=new y;showHideToggle=!1;objMrgReq;toggleForm;reactiveValidateToggleForm;ngOnInit(){if(this.objMrgReq=this._mrgService.getMrgData(),this.priceBreakData&&!this.priceBreakData.szOriginPortName&&(this.priceBreakData.szOriginPortName=this.priceBreakData?.szOrigin?.split("(")[0],this.priceBreakData.szDestinationPortName=this.priceBreakData?.szDestination?.split("(")[0]),this.reactiveValidationFun(),this.showHideToggle){let l={target:{checked:!0}};this.calculateTotalPrice(l,"origin",this.priceBreakData?.arOriginCharges),this.calculateTotalPrice(l,"destination",this.priceBreakData?.arDestinationCharges)}}ngOnChanges(){if(this.priceBreakData?.arOriginCharges?.length>0){let l=this.priceBreakData?.arOriginCharges?.reduce((e,_)=>(e?.some(h=>h?.szChargeBasis===_?.szChargeBasis&&h?.szChargeCode===_?.szChargeCode)||e.push(_),e),[]);this.priceBreakData.arOriginCharges=l}this.priceBreakData&&!this.priceBreakData.szOriginPortName&&(this.priceBreakData.szOriginPortName=this.priceBreakData?.szOrigin?.split("(")[0],this.priceBreakData.szDestinationPortName=this.priceBreakData?.szDestination?.split("(")[0])}totalPrice(l,e){let _=0;return l?.forEach(h=>{_=_+ +h?.[e]}),_}reactiveValidationFun(){this.reactiveValidateToggleForm=this.toggleControl(),this.toggleForm=this._formBuilder.group(this.reactiveValidateToggleForm)}toggleControl(){return{origin:new I(0),destination:new I(0)}}calculateTotalPrice(l,e,_){if(e=="origin"){this._platformService.runIfBrowser(()=>{E(10).subscribe(()=>{l?.target&&this.toggleForm.patchValue({origin:l?.target?.checked})})});let h=this.totalPrice(_,"fPriceUSD");this.originDestinationAddon?.emit(l?.target?.checked?h:-h),l?.target?.checked?this._mrgService.putDataInStorage("bOriginCharge",!0):this._mrgService.putDataInStorage("bOriginCharge",!1)}else{this._platformService.runIfBrowser(()=>{E(10).subscribe(()=>{l?.target&&this.toggleForm.patchValue({destination:l?.target?.checked})})});let h=this.totalPrice(_,"fPriceUSD");this.originDestinationAddon?.emit(l?.target?.checked?h:-h),l?.target?.checked?this._mrgService.putDataInStorage("bDestinationCharge",!0):this._mrgService.putDataInStorage("bDestinationCharge",!1)}}get f(){return this.toggleForm.controls}openSurchargeCalc(l){let e={dtStartDate:(0,P.default)(this.objMrgReq?.dtStartDate).format("YYYY-MM-DD"),dtEndDate:(0,P.default)(this.objMrgReq?.dtStartDate)?.add(8,"weeks").format("YYYY-MM-DD")},_=this._router.createUrlTree([l],{queryParams:{searchBy:"surchargecalculator",origin:this.priceBreakData?.searchOrigin,destination:this.priceBreakData?.searchDestination,dtStartDate:e?.dtStartDate,dtEndDate:e?.dtEndDate}}).toString();window.open(_,"_blank")}static \u0275fac=function(e){return new(e||i)(S(K),S(V),S(H))};static \u0275cmp=O({type:i,selectors:[["app-price-breakdown-tables"]],inputs:{priceBreakData:"priceBreakData",szPage:"szPage",szCargoType:"szC
1argoType",showHideToggle:"showHideToggle"},outputs:{originDestinationAddon:"originDestinationAddon"},features:[w],ngContentSelectors:ee,decls:3,vars:2,consts:[["class","table-responsive swire-small-scrollbar table-data-border-v",4,"ngIf"],[1,"table-responsive","swire-small-scrollbar","table-data-border-v"],[4,"ngIf"],[1,"combine-table"],[1,"paragraph-semibold-15","Primary-80","table-heading"],[1,"tb-border"],[1,"table","bg-text-10"],[1,"Text-80"],[1,"paragraph-bold-12","Text-80","bg-grey-20"],[1,"Text-90"],[4,"ngFor","ngForOf"],["class","Text-90 total bg-grey-20 paragraph-regular-15",4,"ngIf"],[1,"paragraph-regular-15","Text-90","bg-text-10"],["class","paragraph-regular-15 Text-90",4,"ngIf"],[1,"paragraph-regular-15","Text-90"],[1,"Text-90","total","bg-grey-20","paragraph-regular-15"],["colspan","2"],[1,"d-flex"],[3,"formGroup"],[1,"smaller-text","paragraph-regular-14","Text-80"],[1,"icon-information","swi-icon"],[2,"border-color","#bfbfbf"]],template:function(e,_){e&1&&(z(Z),F(0),u(1,De,4,6,"div",0)(2,Ge,4,6,"div",0)),e&2&&(t(),d("ngIf",_.szPage!=="BOOKDETAILPAGE"),t(),d("ngIf",_.szPage==="BOOKDETAILPAGE"))},dependencies:[Q,L,$,j,A,R,U,M,Y,q,G],styles:[`app-price-breakdown-tables{border-top:1px solid #C2C9D1;padding:20px 30px 30px;display:block}@media(max-width:1024px){app-price-breakdown-tables{padding:20px 10px}}@media(max-width:767px){app-price-breakdown-tables{padding-right:10px;border-top:0px}}app-price-breakdown-tables .table-responsive{display:flex;flex-direction:column;row-gap:20px}app-price-breakdown-tables .table-responsive::-webkit-scrollbar{width:5px;height:5px}app-price-breakdown-tables .table-responsive::-webkit-scrollbar-track{border-radius:10px;background-color:#f0f2f3;height:5px}app-price-breakdown-tables .table-responsive::-webkit-scrollbar-thumb{border-radius:10px;background-color:#c2c9d1;height:5px}app-price-breakdown-tables .table-responsive h3{margin-bottom:5px;margin-right:10px}app-price-breakdown-tables .table-responsive .smaller-text{margin:0 0 5px;display:block}app-price-breakdown-tables .table-responsive .tb-border{border-radius:10px;border:1px solid #BFBFBF}@media(max-width:767px){app-price-breakdown-tables .table-responsive .tb-border{min-width:680px;margin-right:10px}}app-price-breakdown-tables .table-responsive .tb-border table{margin-bottom:0;border-radius:10px}app-price-breakdown-tables .table-responsive .tb-border table thead tr th,app-price-breakdown-tables .table-responsive .tb-border table thead tr td,app-price-breakdown-tables .table-responsive .tb-border table tbody tr th,app-price-breakdown-tables .table-responsive .tb-border table tbody tr td{padding:5px 15px;border-bottom:1px solid #BFBFBF}app-price-breakdown-tables .table-responsive .tb-border table thead tr th:first-child,app-price-breakdown-tables .table-responsive .tb-border table thead tr td:first-child,app-price-breakdown-tables .table-responsive .tb-border table tbody tr th:first-child,app-price-breakdown-tables .table-responsive .tb-border table tbody tr td:first-child{padding-left:20px;width:35%}app-price-breakdown-tables .table-responsive .tb-border table thead tr th:nth-child(2),app-price-breakdown-tables .table-responsive .tb-border table thead tr td:nth-child(2),app-price-breakdown-tables .table-responsive .tb-border table tbody tr th:nth-child(2),app-price-breakdown-tables .table-responsive .tb-border table tbody tr td:nth-child(2){width:25%}app-price-breakdown-tables .table-responsive .tb-border table thead tr th:nth-child(3),app-price-breakdown-tables .table-responsive .tb-border table thead tr td:nth-child(3),app-price-breakdown-tables .table-responsive .tb-border table tbody tr th:nth-child(3),app-price-breakdown-tables .table-responsive .tb-border table tbody tr td:nth-child(3){width:20%}app-price-breakdown-tables .table-responsive .tb-border table thead tr th:last-child,app-price-breakdown-tables .table-responsive .tb-border table thead tr td:last-child,app-price-breakdown-tables .table-responsive .tb-border table tbody tr th:last-child,app-price-breakdown-tables .table-responsive .tb-border table tbody tr td:last-child{padding-right:20px;width:20%}app-price-breakdown-tables .table-responsive .tb-border table thead tr td,app-price-breakdown-tables .table-responsive .tb-border table tbody tr td{min-height:52px;vertical-align:middle;padding-top:10px;padding-bottom:10px}app-price-breakdown-tables .table-responsive .tb-border table thead tr th{background-color:#f0f2f3}app-price-breakdown-tables .table-responsive .tb-border table thead tr th:first-child{border-top-left-radius:10px}app-price-breakdown-tables .table-responsive .tb-border table thead tr th:last-child{border-top-right-radius:10px}app-price-breakdown-tables .table-responsive .tb-border table tbody tr:nth-child(2n) td{background-color:#f9fafa}app-price-breakdown-tables .table-responsive .tb-border table tbody tr:last-child td{border-bottom:0}app-price-breakdown-tables .table-responsive .tb-border table tbody tr:last-child td:first-child{border-bottom-left-radius:10px}app-price-breakdown-tables .table-responsive .tb-border table tbody tr:last-child td:last-child{border-bottom-right-radius:10px}app-price-breakdown-tables .table-responsive .tb-border table tbody tr.total td{background-color:#f0f2f3}app-price-breakdown-tables .table-responsive .table>:not(caption)>*>*{color:currentColor}app-price-breakdown-tables .star-note{display:inline-flex;gap:5px;margin-top:10px;padding-right:10px}app-price-breakdown-tables .star-note svg{min-width:10px}app-price-breakdown-tables .star-note .surcharge-link{color:#df6560;text-decoration:underline}
2`],encapsulation:2})};export{J as a};

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.