1import{a as dt,b as st,c as ct}from"./chunk-HKI2JAJX.js";import{a as mt}from"./chunk-JU6DSFNO.js";import{a as lt,c as pt}from"./chunk-P4QJGDVE.js";import"./chunk-N77KOLK4.js";import{a as ot}from"./chunk-7Q2BEICT.js";import{a as rt,b as nt}from"./chunk-6ZIDHLLQ.js";import{b as R,c as Le}from"./chunk-BR7XZI5P.js";import{a as it,b as at}from"./chunk-G54A2K2E.js";import{a as Ye,b as $e,c as et}from"./chunk-EZVS56KS.js";import{b as Se}from"./chunk-O55WXBYV.js";import{b as tt}from"./chunk-YKS4OA3G.js";import{a as Je,b as Qe,c as Xe}from"./chunk-NWFKUXJB.js";import{a as Oe,b as He,c as je,g as qe,i as Ze,k as Ge,q as Ue}from"./chunk-5KEZDESY.js";import{c as We}from"./chunk-DOQDBSZ7.js";import{K as ke,P as Ne,S as ze}from"./chunk-5FQYNGSZ.js";import{b as Ke}from"./chunk-HY4NZHNC.js";import"./chunk-QL3EPI6E.js";import{a as Fe}from"./chunk-VKLKMV4K.js";import{a as Re}from"./chunk-5DRCV76M.js";import"./chunk-YSCXA5CP.js";import"./chunk-D5YI5PE3.js";import{a as xe}from"./chunk-35QDLGYT.js";import"./chunk-L4LMAGEJ.js";import{Bd as D,Ca as Pe,Cd as Ae,Dd as Ve,Fa as be,Fc as Te,Oa as we,Pa as F,Qa as ve,Sb as De,Tc as Be,da as _e,jd as Ie,ka as Ce,la as he,td as Ee,wa as Me,za as ge}from"./chunk-VS3TSIZI.js";import{Ab as fe,Bb as ue,Kb as ye,Za as ie,f as Z,g as G,h as U,j as J,k as Q,q as X,qb as ae,rb as re,sb as ne,tb as oe,u as Y,ub as le,vb as pe,wb as me,xb as de,yb as se,zb as ce}from"./chunk-3VRW5VNG.js";import{d as ee,e as te}from"./chunk-PNLMOTJC.js";import{$a as k,Bb as B,Cb as V,Dc as O,Ec as H,Fb as f,Kc as j,Pb as K,Qa as a,Qb as d,Rb as I,Sb as C,Sc as q,Va as E,Xb as g,Yb as P,Zb as b,_a as W,ca as L,cb as N,eb as _,hc as p,ib as z,ic as m,jb as c,jc as T,ma as u,na as y,nd as $,ra as x,tb as o,ub as l,vb as v,wb as S,xb as M,zb as A}from"./chunk-DPQN2WG2.js";import"./chunk-WWX6BADO.js";function yt(e,r){if(e&1&&(v(0,"app-select-option",44),p(1,"shipmentPartyRole"),p(2,"async")),e&2){let i=r.$implicit;f("label",m(2,5,T(1,2,i,"label"))),c("value",i)}}function _t(e,r){if(e&1&&(v(0,"app-select-option",44),p(1,"shipmentStatus"),p(2,"async")),e&2){let i=r.$implicit;f("label",m(2,5,T(1,2,i,"label"))),c("value",i)}}function Ct(e,r){if(e&1&&(v(0,"app-radio-button",45),p(1,"shipmentType"),p(2,"async"),p(3,"shipmentType"),p(4,"async")),e&2){let i=r.$implicit;f("title",m(2,6,T(1,3,i,"hint"))),f("label",m(4,11,T(3,8,i,"label"))),c("value",i)}}function ht(e,r){if(e&1){let i=A();o(0,"app-download-button",19),B("action",function(){u(i);let t=V();return y(t.onDownload())}),l()}}function St(e,r){e&1&&(o(0,"th",46),d(1),p(2,"translate"),l()),e&2&&(a(),C(" ",m(2,1,"field.number.label"),""))}function Mt(e,r){if(e&1&&(o(0,"td",47),d(1),l()),e&2){let i=r.$implicit;a(),C("",i.number," ")}}function gt(e,r){e&1&&(o(0,"th",46),d(1),p(2,"translate"),l()),e&2&&(a(),C(" ",m(2,1,"field.shipmentPartyRole.label"),""))}function Pt(e,r){if(e&1&&(o(0,"td",47),d(1),p(2,"shipmentPartyRole"),p(3,"async"),l()),e&2){let i=r.$implicit;a(),I(m(3,4,T(2,1,i.role,"label")))}}function bt(e,r){e&1&&(o(0,"th",46),d(1),p(2,"translate"),l()),e&2&&(a(),C(" ",m(2,1,"field.party.label")," "))}function wt(e,r){if(e&1&&(o(0,"td",47),d(1),l()),e&2){let i=r.$implicit;a(),C(" ",i.shipmentPartyName," ")}}function vt(e,r){e&1&&(o(0,"th",46),d(1),p(2,"translate"),l()),e&2&&(a(),C(" ",m(2,1,"field.shipmentReference.label")," "))}function Dt(e,r){if(e&1&&(o(0,"td",47),d(1),l()),e&2){let i=r.$implicit;a(),I(i.reference)}}function Tt(e,r){e&1&&(o(0,"th",46),d(1),p(2,"translate"),l()),e&2&&(a(),C(" ",m(2,1,"field.type.label")," "))}function Bt(e,r){if(e&1&&(o(0,"td",47),d(1),p(2,"shipmentType"),p(3,"async"),l()),e&2){let i=r.$implicit;a(),I(m(3,4,T(2,1,i.type,"label")))}}function It(e,r){e&1&&(o(0,"th",46),d(1),p(2,"translate"),l()),e&2&&(a(),C(" ",m(2,1,"field.status.label")," "))}function Et(e,r){if(e&1&&(o(0,"td",47),d(1),p(2,"shipmentStatus"),p(3,"async"),l()),e&2){let i=r.$implicit;a(),I(m(3,4,T(2,1,i.status,"label")))}}function At(e,r){e&1&&(o(0,"th",46),d(1),p(2,"translate"),l()),e&2&&(a(),C(" ",m(2,1,"field.createdAt.label")," "))}function Vt(e,r){if(e&1&&(o(0,"td",47),d(1),p(2,"localizedDate"),l()),e&2){let i=r.$implicit;a(),I(m(2,1,i.createdAt))}}function Ft(e,r){e&1&&(o(0,"th",46),d(1),p(2,"translate"),l()),e&2&&(a(),C(" ",m(2,1,"field.cargoReadyDate.label")," "))}function Rt(e,r){if(e&1&&(o(0,"td",47),d(1),p(2,"localizedDateTime"),l()),e&2){let i=r.$implicit;a(),I(m(2,1,i.pickupFrom))}}function Lt(e,r){e&1&&(o(0,"th",46),d(1),p(2,"translate"),l()),e&2&&(a(),C(" ",m(2,1,"field.departureLocation.abbr")," "))}function xt(e,r){if(e&1&&(o(0,"td",48),d(1),l()),e&2){let i=r.$implicit;f("title",i.departureLocationName),a(),C(" ",i.departureLocationCode,"")}}function Wt(e,r){e&1&&(o(0,"th",46),d(1),p(2,"translate"),l()),e&2&&(a(),C(" ",m(2,1,"field.estimatedDepartureAt.abbr")," "))}function kt(e,r){if(e&1&&(o(0,"td",47),v(1,"app-locality-date",49),l(
1)),e&2){let i=r.$implicit;a(),c("value",i.estimatedDepartureAt)}}function Nt(e,r){e&1&&(o(0,"th",46),d(1),p(2,"translate"),l()),e&2&&(a(),C(" ",m(2,1,"field.mainCarriageActualDepartureAt.abbr")," "))}function zt(e,r){if(e&1&&(o(0,"td",47),v(1,"app-locality-date",49),l()),e&2){let i=r.$implicit;a(),c("value",i.actualDepartureAt)}}function Kt(e,r){e&1&&(o(0,"th",46),d(1),p(2,"translate"),l()),e&2&&(a(),C(" ",m(2,1,"field.arrivalLocation.abbr")," "))}function Ot(e,r){if(e&1&&(o(0,"td",48),d(1),l()),e&2){let i=r.$implicit;f("title",i.arrivalLocationName),a(),C(" ",i.arrivalLocationCode,"")}}function Ht(e,r){e&1&&(o(0,"th",46),d(1),p(2,"translate"),l()),e&2&&(a(),C(" ",m(2,1,"field.estimatedArrivalAt.abbr")," "))}function jt(e,r){if(e&1&&(o(0,"td",48),v(1,"app-locality-date",49),l()),e&2){let i=r.$implicit;f("title",i.arrivalLocationName),a(),c("value",i.estimatedArrivalAt)}}function qt(e,r){e&1&&(o(0,"th",46),d(1),p(2,"translate"),l()),e&2&&(a(),C(" ",m(2,1,"field.mainCarriageActualArrivalAt.abbr")," "))}function Zt(e,r){if(e&1&&(o(0,"td",48),v(1,"app-locality-date",49),l()),e&2){let i=r.$implicit;f("title",i.arrivalLocationName),a(),c("value",i.actualArrivalAt)}}function Gt(e,r){e&1&&v(0,"tr",50)}function Ut(e,r){if(e&1){let i=A();o(0,"tr",51),B("click",function(){let t=u(i).$implicit,s=V();return y(s.onClickItem(t))}),l()}}function Jt(e,r){if(e&1&&(o(0,"tr",52)(1,"td",53),d(2),p(3,"translate"),l()()),e&2){let i=V();a(),z("colspan",i.displayedColumns==null?null:i.displayedColumns.length),a(),C(" ",m(3,2,i.loaded?"core.master.noResult":"core.master.noSearch"),"")}}var ft=(()=>{class e extends at{constructor(i,w,t){super(it.Party,"party/shipmentParties","",i,t),this.service=i,this.navigationService=w,this.columns=[{name:"number",labelKey:"field.number.label",display:!0},{name:"role",labelKey:"field.shipmentPartyRole.label",display:!0},{name:"shipmentPartyId",labelKey:"field.party.label",display:!0},{name:"reference",labelKey:"field.shipmentReference.label",display:!0},{name:"type",labelKey:"field.type.label",display:!0},{name:"status",labelKey:"field.status.label",display:!0},{name:"createdAt",labelKey:"field.createdAt.label",display:!0},{name:"pickupFrom",labelKey:"field.cargoReadyDate.label",display:!0},{name:"departureLocationCode",labelKey:"field.departureLocation.abbr",display:!0},{name:"estimatedDepartureAt",labelKey:"field.estimatedDepartureAt.abbr",display:!0},{name:"actualDepartureAt",labelKey:"field.mainCarriageActualDepartureAt.abbr",display:!0},{name:"arrivalLocationCode",labelKey:"field.arrivalLocation.abbr",display:!0},{name:"estimatedArrivalAt",labelKey:"field.estimatedArrivalAt.abbr",display:!0},{name:"actualArrivalAt",labelKey:"field.mainCarriageActualArrivalAt.abbr",display:!0}],this.shipmentTypes=F.keys,this.ShipmentStatuses=R.keys,this.ShipmentRoles=[D.Shipper,D.Consignee,D.Seller,D.Buyer,D.Sender,D.Receiver,D.Booker,D.Supplier],this.filter=new ct}onClickItem(i){this.navigationService.navigateShipment(i.number)}clearFilter(){super.clearFilter(),this.filter.type=we.None}static{this.\u0275fac=function(w){return new(w||e)(E(dt),E(Re),E(x))}}static{this.\u0275cmp=W({type:e,selectors:[["ng-component"]],standalone:!1,features:[N],decls:86,vars:66,consts:[["searchForm","ngForm"],["parentTitleTranslateKey","nav.shipping","titleTranslateKey","nav.shipmentParties","helpUri","help/party/shipmentParties/master",3,"loading"],[3,"search","clear","filter","form"],[1,"form-group","row"],["name","number",1,"col-md-3",3,"ngModelChange","label","ngModel"],["name","reference","iconClass","fa-filter",1,"col-md-3",3,"ngModelChange","label","ngModel"],["name","shipmentPartyPartyId",1,"col-sm-2",3,"ngModelChange","label","ngModel"],["name","role",1,"col-md-2",3,"ngModelChange","ngModel","allowZeroValue","label"],[3,"value","label",4,"ngFor","ngForOf"],["name","status",1,"col-md-2",3,"ngModelChange","ngModel","allowZeroValue","label"],["name","estimatedDepartureFrom",1,"col-md-2",3,"ngModelChange","label","ngModel"],["name","estimatedDepartureBefore",1,"col-md-2",3,"ngModelChange","label","ngModel"],["name","estimatedArrivalFrom",1,"col-md-2",3,"ngModelChange","label","ngModel"],["name","estimatedArrivalBefore",1,"col-md-2",3,"ngModelChange","label","ngModel"],["name","createdDateFrom",1,"col-md-2",3,"ngModelChange","label","ngModel"],["name","createdDateBefore",1,"col-md-2",3,"ngModelChange","label","ngModel"],["name","shipmentType",1,"col-sm-4",3,"ngModelChange","label","required","ngModel"],[3,"value","title","label",4,"ngFor","ngForOf"],[1,"adn-buttons-horizontal","text-right"],[3,"action"],[3,"action",4,"ngIf"],[1,"table-responsive"],["mat-table","","matSort","","matSortDisableClear","true","recycleRows","","cdkDropList","","cdkDropListOrientation","horizontal",3,"cdkDropListDropped","dataSource","matSortActive","matSortDirection"],["matColumnDef","number"],["mat-header-cell","","mat-sort-header","","cdkDrag","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","role"],["matColumnDef","shipmentPartyId"],["matColumnDef","reference"],["matColumnDef","type"],["matColumnDef","status"],["matColumnDef","createdAt"],["matColumnDef","pickupFrom"],["matColumnDef","departureLocationCode"],["mat-cell","",3,"title",4,"matCellDef"],["matColumnDef","estimatedDepartureAt"],["matColumnDef","actualDepartureAt"],["matColumnDef","arrivalLocationCode"],["matColumnDef","estimatedArrivalAt"],["matColumnDef","actualArrivalAt"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","clickable",3,"click",4,"matRowDef","matRowDefColumns"],["class","mat-row",4,"matNoDataRow"],[3,"page","pageSize","pageSizeOptions","pageIndex"],[3,"value","label"],[3,"value","title","label"],["mat-header-cell","","mat-sort-header","","cdkDrag",""],["mat-cell",""],["mat-cell","",3,"title"],[3,"value"],["mat-header-row",""],["mat-row","",1,"clickable",3,"click"],[1,"mat-row"],[1,"mat-cell"]],template:function(w,t){if(w&1){let s=A();o(0,"app-panel",1)(1,"form",null,0)(3,"app-core-master-filter",2),B("search",function(){return u(s),y(t.onRefresh())})("clear",function(){return u(s),y(t.clearFilter())}),o(4,"app-core-master-filter-form")(5,"div",3)(6,"app-text-input",4),p(7,"translate"),b("ngModelChange",function(n){return u(s),P(t.filter.number,n)||(t.filter.number=n),y(n)}),l(),o(8,"app-text-input",5),p(9,"translate"),b("ngModelChange",function(n){return u(s),P(t.filter.reference,n)||(t.filter.reference=n),y(n)}),l(),o(10,"app-party-party-lookup",6),p(11,"translate"),b("ngModelChange",function(n){return u(s),P(t.filter.shipmentPartyPartyId,n)||(t.filter.shipmentPartyPartyId=n),y(n)}),l(),o(12,"app-select-input",7),p(13,"translate"),b("ngModelChange",function(n){return u(s),P(t.filter.role,n)||(t.filter.role=n),y(n)}),_(14,yt,3,7,"app-select-option",8),l(),o(15,"app-select-input",9),p(16,"translate"),b("ngModelChange",function(n){return u(s),P(t.filter.status,n)||(t.filter.status=n),y(n)}),_(17,_t,3,7,"app-select-option",8),l()(),o(18,"div",3)(19,"app-date-input",10),p(20,"translate"),b("ngModelChange",function(n){return u(s),P(t.filter.estimatedDepartureFrom,n)||(t.filter.estimatedDepartureFrom=n),y(n)}),l(),o(21,"app-date-input",11),p(22,"translate"),b("ngModelChange",function(n){return u(s),P(t.filter.estimatedDepartureBefore,n)||(t.filter.estimatedDepartureBefore=n),y(n)}),l(),o(23,"app-date-input",12),p(24,"translate"),b("ngModelChange",function(n){return u(s),P(t.filter.estimatedArrivalFrom,n)||(t.filter.estimatedArrivalFrom=n),y(n)}),l(),o(25,"app-date-input",13),p(26,"translate"),b("ngModelChange",function(n){return u(s),P(t.filter.estimatedArrivalBefore,n)||(t.filter.estimatedArrivalBefore=n),y(n)}),l(),o(27,"app-date-input",14),p(28,"translate"),b("ngModelChange",function(n){return u(s),P(t.filter.createdDateFrom,n)||(t.filter.createdDateFrom=n),y(n)}),l(),o(29,"app-date-input",15),p(30,"translate"),b("ngModelChange",function(n){return u(s),P(t.filter.createdDateBefore,n)||(t.filter.createdDateBefore=n),y(n)}
1),l()(),o(31,"div",3)(32,"app-radio-button-group",16),p(33,"translate"),b("ngModelChange",function(n){return u(s),P(t.filter.type,n)||(t.filter.type=n),y(n)}),_(34,Ct,5,13,"app-radio-button",17),l()()(),o(35,"app-core-master-filter-controls",18)(36,"app-core-button-customize",19),B("action",function(){return u(s),y(t.onCustomize())}),l(),_(37,ht,1,0,"app-download-button",20),l()()(),o(38,"div",21)(39,"table",22),B("cdkDropListDropped",function(n){return u(s),y(t.onDrop(n))}),S(40,23),_(41,St,3,3,"th",24)(42,Mt,2,1,"td",25),M(),S(43,26),_(44,gt,3,3,"th",24)(45,Pt,4,6,"td",25),M(),S(46,27),_(47,bt,3,3,"th",24)(48,wt,2,1,"td",25),M(),S(49,28),_(50,vt,3,3,"th",24)(51,Dt,2,1,"td",25),M(),S(52,29),_(53,Tt,3,3,"th",24)(54,Bt,4,6,"td",25),M(),S(55,30),_(56,It,3,3,"th",24)(57,Et,4,6,"td",25),M(),S(58,31),_(59,At,3,3,"th",24)(60,Vt,3,3,"td",25),M(),S(61,32),_(62,Ft,3,3,"th",24)(63,Rt,3,3,"td",25),M(),S(64,33),_(65,Lt,3,3,"th",24)(66,xt,2,2,"td",34),M(),S(67,35),_(68,Wt,3,3,"th",24)(69,kt,2,1,"td",25),M(),S(70,36),_(71,Nt,3,3,"th",24)(72,zt,2,1,"td",25),M(),S(73,37),_(74,Kt,3,3,"th",24)(75,Ot,2,2,"td",34),M(),S(76,38),_(77,Ht,3,3,"th",24)(78,jt,2,2,"td",34),M(),S(79,39),_(80,qt,3,3,"th",24)(81,Zt,2,2,"td",34),M(),_(82,Gt,1,0,"tr",40)(83,Ut,1,0,"tr",41)(84,Jt,4,4,"tr",42),l()(),o(85,"mat-paginator",43),B("page",function(n){return u(s),y(t.setPage(n))}),l()()}if(w&2){let s=K(2);c("loading",t.loading),a(3),c("filter",t.filter)("form",s),a(3),f("label",m(7,42,"field.shipmentNumber.label")),g("ngModel",t.filter.number),a(2),f("label",m(9,44,"field.shipmentReference.label")),g("ngModel",t.filter.reference),a(2),f("label",m(11,46,"field.party.label")),g("ngModel",t.filter.shipmentPartyPartyId),a(2),f("label",m(13,48,"field.role.label")),g("ngModel",t.filter.role),c("allowZeroValue",!0),a(2),c("ngForOf",t.ShipmentRoles),a(),f("label",m(16,50,"field.state.label")),g("ngModel",t.filter.status),c("allowZeroValue",!0),a(2),c("ngForOf",t.ShipmentStatuses),a(2),f("label",m(20,52,"field.estimatedDepartureFrom.label")),g("ngModel",t.filter.estimatedDepartureFrom),a(2),f("label",m(22,54,"field.estimatedDepartureBefore.label")),g("ngModel",t.filter.estimatedDepartureBefore),a(2),f("label",m(24,56,"field.estimatedArrivalFrom.label")),g("ngModel",t.filter.estimatedArrivalFrom),a(2),f("label",m(26,58,"field.estimatedArrivalBefore.label")),g("ngModel",t.filter.estimatedArrivalBefore),a(2),f("label",m(28,60,"field.createdFrom.label")),g("ngModel",t.filter.createdDateFrom),a(2),f("label",m(30,62,"field.createdBefore.label")),g("ngModel",t.filter.createdDateBefore),a(3),f("label",m(33,64,"field.shipmentType.label")),c("required",!0),g("ngModel",t.filter.type),a(2),c("ngForOf",t.shipmentTypes),a(3),c("ngIf",t.canDownload),a(2),c("dataSource",t.dataSource)("matSortActive",t.sortColumn)("matSortDirection",t.sortOrder),a(43),c("matHeaderRowDef",t.displayedColumns),a(),c("matRowDefColumns",t.displayedColumns),a(2),c("pageSize",t.pageSize)("pageSizeOptions",t.pageSizeOptions)("pageIndex",t.page)}},dependencies:[O,H,re,ae,oe,de,le,ne,se,pe,me,ce,fe,ue,Q,Z,G,X,J,U,ie,Ce,_e,Te,ke,nt,rt,Qe,Je,Ie,Ze,qe,Ye,$e,Oe,He,je,lt,Be,j,Ne,Ee,Ae,R,F,ee],encapsulation:2})}}return e})();var Qt=[{path:"",component:ft}],la=(()=>{class e{static{this.\u0275fac=function(w){return new(w||e)}}static{this.\u0275mod=k({type:e})}static{this.\u0275inj=L({providers:[tt],imports:[Se,Me,ye,q,ge,Pe,be,he,ze,Ke,mt,ot,Xe,Fe,Ge,Y,et,Ue,We,pt,xe,$.forChild(Qt),De,st,Ve,Le,ve,te]})}}return e})();export{la as PartyShipmentPartyModule};
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.