import{a as J}from"./chunk-QITN3O4Q.js";import{f as Y,g as z}from"./chunk-CV35HHXX.js";import"./chunk-WBPIWZ7Q.js";import{a as A}from"./chunk-HNHLGX7F.js";import{a as G}from"./chunk-VDODMHDR.js";import"./chunk-FVUFPTGH.js";import"./chunk-LXFJ7QGK.js";import"./chunk-DQPTWMB2.js";import"./chunk-MQVHFWCE.js";import"./chunk-G7E24J2R.js";import"./chunk-VYA2NFJ5.js";import"./chunk-SH55PTEY.js";import"./chunk-VPS35GPI.js";import"./chunk-UGBMCXS6.js";import"./chunk-5TTXT2K2.js";import"./chunk-YNQPX5G6.js";import{O as U}from"./chunk-3NJAM5KX.js";import"./chunk-XKYNH2RX.js";import"./chunk-BQPO535K.js";import"./chunk-HLLBCLO6.js";import"./chunk-4P6SOZDY.js";import"./chunk-U5Y75IZ5.js";import"./chunk-HY3IUHOC.js";import"./chunk-4AEX2WLA.js";import"./chunk-2MELUOYA.js";import"./chunk-WOPE6PPO.js";import"./chunk-MDIMQ3H3.js";import"./chunk-HJJJ4ZT2.js";import"./chunk-GH5XWMYK.js";import"./chunk-MWDJTJ3O.js";import{b as k}from"./chunk-7CQSSHSC.js";import"./chunk-3DEA4WWC.js";import"./chunk-CAGDTHS6.js";import{q}from"./chunk-TKVDP62Z.js";import{Ad as w,Bb as u,Cc as T,Db as p,Dc as V,Ib as d,Jb as r,Kb as n,Kc as v,Lb as c,Lc as N,Mc as I,Sd as B,Vd as $,Xd as j,Z as b,Za as o,Zb as f,ba as M,eb as y,ga as E,ib as D,mc as a,nb as P,oc as C,ra as F,td as O,u as g,uc as L,v as h,vc as R,vd as H,wc as s}from"./chunk-GJDGQISV.js";import"./chunk-WFMAM73Y.js";import{a as _,b as S}from"./chunk-SNAKHGZS.js";var Q=()=>["/menu/Logistics/Setup/Courier/Form"],W=i=>({ID:i});function X(i,m){if(i&1&&(r(0,"a",1),c(1,"i",16),a(2,"Edit"),n()),i&2){f();let e=s(0);d("routerLink",T(2,Q))("queryParams",V(3,W,e==null||e.Form==null?null:e.Form.ID))}}function Z(i,m){if(i&1&&a(0),i&2){f(2);let e=s(0);C(" / ",e.Form.Creator," ")}}function ee(i,m){if(i&1&&(a(0),v(1,"date"),u(2,Z,1,1)),i&2){f();let e=s(0);C(" ",I(1,2,e.Form.Created,"dd MMM yyyy HH:mm")," "),o(2),p(!(e==null||e.Form==null)&&e.Form.Creator?2:-1)}}function ie(i,m){i&1&&a(0," - ")}function te(i,m){if(i&1&&a(0),i&2){f(2);let e=s(0);C(" / ",e.Form.Modifier," ")}}function ne(i,m){if(i&1&&(r(0,"span",15)(1,"b"),a(2,"Modified:"),n(),a(3),v(4,"date"),u(5,te,1,1),n()),i&2){f();let e=s(0);o(3),C(" ",I(4,2,e==null||e.Form==null?null:e.Form.Modified,"dd MMM yyyy HH:mm")," "),o(2),p(!(e==null||e.Form==null)&&e.Form.Modified&&(!(e==null||e.Form==null)&&e.Form.Modifier)?5:-1)}}var K=class i extends A{constructor(e,l){super(e);this.pageSetupService=e;this.role=l;this.initCourierInfo()}httpService=F(q);activeRoute=F(B);courierInfo$;ngOnInit(){}initCourierInfo(){this.courierInfo$=h([this.menuData$,this.activeRoute.queryParams]).pipe(M(([e,l])=>this.httpService.get(`${U.GetCourierInfo}/${l.ID}`)),g(e=>{let l=e?.Form?.EntityName?e?.Form?.EntityName?.join(", "):"";return e.Form=S(_({},e.Form),{Entity:l}),e}),E(e=>{this.menuData.H=e?.PageTitle||"Courier Info"}),b(1))}static \u0275fac=function(l){return new(l||i)(y(G),y(k))};static \u0275cmp=D({type:i,selectors:[["app-courier-info"]],features:[P],decls:32,vars:12,consts:[[3,"pageData","hideSearchBox","hideSearchDropdown"],["role","button","matTooltipPosition","above","matTooltip","Edit",1,"btn","btn-outline-secondary","me-3",3,"routerLink","queryParams"],[1,"container-fluid","mt-5"],[1,"row"],[1,"col-sm-12"],[1,"card"],[1,"card-header"],[1,"card-body"],[1,"col-6"],[1,"form-floating-outline"],["labelValue","Name",3,"inputValue"],["labelValue","Suspend",3,"inputValue"],["labelValue","Destination Outlet Filter",3,"inputValue"],[1,"alert","alert-warning"],["aria-hidden","true",1,"fa","fa-file-text-o"],[1,"ms-3"],["aria-hidden","true",1,"fa-solid","fa-pen-to-square","me-3"]],template:function(l,x){if(l&1&&(L(0),v(1,"async"),r(2,"mainpanel-cmp",0)(3,"actions"),u(4,X,3,5,"a",1),n(),r(5,"content")(6,"div",2)(7,"div",3)(8,"div",4)(9,"div",5)(10,"div",6)(11,"h3"),a(12,"General"),n()(),r(13,"div",7)(14,"div",3)(15,"div",8)(16,"div",9),c(17,"lib-info-page-input",10),n()(),r(18,"div",8)(19,"div",9),c(20,"lib-info-page-input",11),n()(),r(21,"div",8)(22,"div",9),c(23,"lib-info-page-input",12),n()()()()()()(),r(24,"div",13),c(25,"i",14),r(26,"span")(27,"b"),a(28,"Created: "),n(),u(29,ee,3,5)(30,ie,1,0),n(),u(31,ne,6,5,"span",15),n()()()()),l&2){let t=R(N(1,9,x.courierInfo$));o(2),d("pageData",x.menuData)("hideSearchBox",!0)("hideSearchDropdown",!0),o(2),p(x.role.logistic.Edit?4:-1),o(13),d("inputValue",t==null||t.Form==null?null:t.Form.Name),o(3),d("inputValue",!(t==null||t.Form==null)&&t.Form.Bin?"Yes":"No"),o(3),d("inputValue",t==null||t.Form==null?null:t.Form.Entity),o(6),p(!(t==null||t.Form==null)&&t.Form.Created?29:30),o(2),p(!(t==null||t.Form==null)&&t.Form.Modified?31:-1)}},dependencies:[w,z,Y,j,$,J,O,H],encapsulation:2})};export{K as CourierInfoComponent};
