1import{b as j,c as F}from"./chunk-DSFXQCA5.js";import{a as W}from"./chunk-6UVMY5AS.js";import"./chunk-7FKA3PLZ.js";import"./chunk-EZ27NTUK.js";import"./chunk-VEDNZMYC.js";import{a as M}from"./chunk-XG5MFXBZ.js";import{c as B,e as A,ea as H,f as K}from"./chunk-JM2IG54A.js";import{L as Q}from"./chunk-GUYMFDQ2.js";import{a as V}from"./chunk-VRVBNDC6.js";import{l as O,n as q,o as L,q as k}from"./chunk-ALVP7XNF.js";import{l as U,m as T,v as R,x as N,z as D}from"./chunk-I67QHT2A.js";import{Ib as n,Jb as e,Ob as C,Tb as f,Vb as g,bb as a,cb as S,fa as u,fc as r,gc as l,hc as E,ic as w,oa as P,pa as d,tc as b,vc as v,wb as h,xa as I,ya as _,yb as p}from"./chunk-KY5CTIQ5.js";var x=class{constructor(){this.shipmentId=0,this.shipmentNumber="",this.shipmentOrigin="",this.shipmentDestination="",this.shipDate="",this.weight=0,this.weightUnit=""}};var y=class{constructor(){this.detail=new x,this.charges=[],this.totalCharges=0}};function J(i,t){if(i&1&&(n(0,"tr")(1,"th"),r(2),e(),n(3,"td"),r(4),b(5,"currency"),e()()),i&2){let c=t.$implicit;a(2),l(c.revenueDescr),a(2),E(" ",c.revenueAmount===0?"(included)":v(5,2,c.revenueAmount,"USD")," ")}}function X(i,t){if(i&1&&(n(0,"div")(1,"h5",8),r(2,"Summary of Charges"),e(),n(3,"table",10)(4,"tbody"),h(5,J,6,5,"tr",17),n(6,"tr")(7,"th"),r(8,"Total Charges"),e(),n(9,"td")(10,"strong"),r(11),b(12,"currency"),e()()()()()()),i&2){let c=g();a(5),p("ngForOf",c.shipmentSuccess.charges),a(6),l(v(12,2,c.shipmentSuccess.totalCharges,"USD"))}}function Y(i,t){if(i&1){let c=C();n(0,"button",13),f("click",function(){I(c);let o=g();return _(o.openLabel())}),r(1," Print Label "),e()}}function Z(i,t){if(i&1){let c=C();n(0,"button",18),f("click",function(){I(c);let o=g();return _(o.convertToPickup(o.shipmentSuccess.detail.shipmentNumber,o.shipmentSuccess.detail.shipmentId))}),r(1," Convert To PICKUP "),e()}}var z=(()=>{let t=class t{constructor(m,o,s){this.route=m,this.serviceRequestService=o,this.router=s,this.portalRoutes=M,this.shipmentId="",this.shipmentNumber="",this.receiptUrl="",this.labelUrl="",this.stage="",this.shipmentSuccess=new y}ngOnInit(){this.shipmentId=this.route.snapshot.queryParamMap.get("id"),this.shipmentNumber=this.route.snapshot.queryParamMap.get("shipnumber");let m=this.route.snapshot.queryParamMap.get("pass");this.stage=this.route.snapshot.queryParamMap.get("stage"),this.receiptUrl=j(this.shipmentId,m),this.labelUrl=F(this.shipmentId,m),this.fetchShipmentData()}fetchShipmentData(){this.serviceRequestService.getShipmentSuccessSummary(this.shipmentId).subscribe({next:m=>{this.shipmentSuccess=m,this.shipmentSuccess.detail.shipmentNumber=this.shipmentNumber}})}convertToPickup(m,o){let s=this.shipmentId;this.router.navigate([M.quoteRequest,s],{queryParams:{convertId:s}})}openReceipt(){window.open(this.receiptUrl,"_blank")}openLabel(){window.open(this.labelUrl,"_blank")}};t.\u0275fac=function(o){return new(o||t)(S(O),S(W),S(q))},t.\u0275cmp=P({type:t,selectors:[["app-shipment-success"]],decls:47,vars:15,consts:[[1,"bg-primary"],[1,"container","py-2","d-flex","align-items-center"],[1,"text-white","m-0"],[1,"container","py-5"],[1,"row","justify-content-center"],[1,"col-md-8","col-12"],[1,"text-center"],["color","primary",1,"success-icon"],[1,"mt-3"],[1,"mt-4","text-start"],[1,"table","table-bordered","table-sm"],[4,"ngIf"],[1,"d-flex","justify-content-center","gap-2","mt-3"],["mat-flat-button","","color","primary",3,"click"],["mat-flat-button","","color","primary",3,"click",4,"ngIf"],["mat-stroked-button","","color","primary",3,"routerLink"],["mat-flat-button","","color","accent",3,"click",4,"ngIf"],[4,"ngFor","ngForOf"],["mat-flat-button","","color","accent",3,"click"]],template:function(o,s){o&1&&(n(0,"div",0)(1,"div",1)(2,"h5",2),r(3,"SHIPMENT SUCCESS"),e()()(),n(4,"div",3)(5,"div",4)(6,"div",5)(7,"mat-card",6)(8,"mat-card-content")(9,"mat-icon",7),r(10," check_circle "),e(),n(11,"h2",8),r(12),e(),n(13,"div",9)(14,"h5"),r(15,"Shipment Summary"),e(),n(16,"table",10)(17,"tbody")(18,"tr")(19,"th"),r(20,"Shipment Origin"),e(),n(21,"td"),r(22),e()(),n(23,"tr")(24,"th"),r(25,"Shipment Destination"),e(),n(26,"td"),r(27),e()(),n(28,"tr")(29,"th"),r(30,"Ship Date"),e(),n(31,"td"),r(32),b(33,"date"),e()(),n(34,"tr")(35,"th"),r(36,"Shipment Weight"),e(),n(37,"td"),r(38),e(
1)()()(),h(39,X,13,5,"div",11),e()(),n(40,"mat-card-actions",12)(41,"button",13),f("click",function(){return s.openReceipt()}),r(42),e(),h(43,Y,2,0,"button",14),n(44,"button",15),r(45," Back to Review "),e(),h(46,Z,2,0,"button",16),e()()()()()),o&2&&(a(12),w(" ",s.stage," #",s.shipmentNumber," has been successfully submitted "),a(10),l(s.shipmentSuccess.detail.shipmentOrigin),a(5),l(s.shipmentSuccess.detail.shipmentDestination),a(5),l(v(33,12,s.shipmentSuccess.detail.shipDate,"yyyy/MM/dd")),a(6),w("",s.shipmentSuccess.detail.weight," ",s.shipmentSuccess.detail.weightUnit,""),a(),p("ngIf",s.shipmentSuccess.charges.length>0),a(3),E(" ",s.stage==="QUOTE"?"View Receipt":"Print BOL"," "),a(),p("ngIf",s.stage==="PICK UP"),a(),p("routerLink",s.portalRoutes.reviewShipmentOverview),a(2),p("ngIf",s.stage==="QUOTE"))},dependencies:[U,T,L,V,B,K,A,Q,N,R]});let i=t;return i})();var tt=[{path:"",component:z}],G=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=d({type:t}),t.\u0275inj=u({imports:[k.forChild(tt),k]});let i=t;return i})();var _t=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=d({type:t}),t.\u0275inj=u({imports:[D,G,H]});let i=t;return i})();export{_t as ShipmentSuccessModule};
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.