dealpos 25.34.2 → 25.34.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/browser/{chunk-N6VULU5K.js → chunk-2CLZ55PR.js} +1 -1
- package/browser/{chunk-DMFQV366.js → chunk-2OYGNGHC.js} +1 -1
- package/browser/{chunk-WNZ62LV6.js → chunk-2SX5WN7D.js} +1 -1
- package/browser/{chunk-KT3FCUIJ.js → chunk-4BIPBWXK.js} +1 -1
- package/browser/{chunk-25BC7SZ4.js → chunk-4IU2ZEUU.js} +1 -1
- package/browser/{chunk-EU46AUBS.js → chunk-4VQ5GLNN.js} +1 -1
- package/browser/{chunk-N3Q5L6AW.js → chunk-4YJV6ZKG.js} +1 -1
- package/browser/{chunk-NAXPCX5Z.js → chunk-5QYPWYAV.js} +1 -1
- package/browser/{chunk-62UWQT4T.js → chunk-65RMCTJI.js} +1 -1
- package/browser/{chunk-4NZOKTH5.js → chunk-6GI4DW2S.js} +1 -1
- package/browser/{chunk-EQ2X33Y7.js → chunk-75GHVR5F.js} +1 -1
- package/browser/{chunk-EDHRH3CR.js → chunk-AHA5FKZI.js} +1 -1
- package/browser/{chunk-CN5MONMQ.js → chunk-AN6UR4L4.js} +1 -1
- package/browser/{chunk-U66O4HUW.js → chunk-BPQCWDU6.js} +1 -1
- package/browser/{chunk-GF2O25PD.js → chunk-BXF5QMVN.js} +2 -2
- package/browser/{chunk-PDRVE7KS.js → chunk-CDHJAJ53.js} +1 -1
- package/browser/{chunk-AJRF756I.js → chunk-CK3MQEJ5.js} +1 -1
- package/browser/{chunk-GQHEZKF4.js → chunk-CQNMQTJR.js} +1 -1
- package/browser/{chunk-YSSOFAAI.js → chunk-D6YDPUTQ.js} +1 -1
- package/browser/{chunk-2HHBXJEO.js → chunk-DLZ76QDF.js} +1 -1
- package/browser/{chunk-WCY6QKIK.js → chunk-ECA3EVX2.js} +1 -1
- package/browser/{chunk-4PR4BJUK.js → chunk-EGQ65RXY.js} +1 -1
- package/browser/{chunk-H7MG6BZV.js → chunk-EH44QIFA.js} +1 -1
- package/browser/{chunk-JN6CQ5QY.js → chunk-ELDBGILD.js} +1 -1
- package/browser/{chunk-RMREHOQS.js → chunk-GXMW7P6N.js} +1 -1
- package/browser/{chunk-UYK6ATMD.js → chunk-HDDXTR2Z.js} +1 -1
- package/browser/{chunk-AHS5SF2F.js → chunk-ITY36HS4.js} +1 -1
- package/browser/{chunk-FCFX7UK4.js → chunk-JEYZ4MG7.js} +1 -1
- package/browser/{chunk-7NO4UMH2.js → chunk-JI57WYRP.js} +1 -1
- package/browser/{chunk-2BDJSELV.js → chunk-KF4IOF5W.js} +1 -1
- package/browser/{chunk-SPAKEDRE.js → chunk-KXCTT4OG.js} +1 -1
- package/browser/{chunk-SE46QMUZ.js → chunk-KYHS2CJZ.js} +1 -1
- package/browser/{chunk-L4347XVN.js → chunk-L4CVBDO7.js} +1 -1
- package/browser/{chunk-CUZHOUTT.js → chunk-LJLU6XYG.js} +2 -2
- package/browser/{chunk-ESP5Q6M4.js → chunk-LKWUTMZ6.js} +1 -1
- package/browser/{chunk-I2PXSKTR.js → chunk-LLS6UIQ5.js} +1 -1
- package/browser/{chunk-E5ORAYAT.js → chunk-LQRGIRSP.js} +1 -1
- package/browser/{chunk-D2XFIIRV.js → chunk-LWRXAK2V.js} +1 -1
- package/browser/{chunk-U66Y6MUA.js → chunk-M4EMBMOR.js} +1 -1
- package/browser/{chunk-XO4AWRUP.js → chunk-MASRFCTE.js} +1 -1
- package/browser/{chunk-OYKMBHH3.js → chunk-MDCN55M5.js} +1 -1
- package/browser/{chunk-QOCXUHST.js → chunk-MDZEZEYW.js} +1 -1
- package/browser/{chunk-RQ6V6FSE.js → chunk-MEXCDOMA.js} +1 -1
- package/browser/{chunk-3BG6ASGM.js → chunk-MJWW5H2I.js} +1 -1
- package/browser/{chunk-ZZO3UETT.js → chunk-MNCZ2RPZ.js} +1 -1
- package/browser/{chunk-C3H5RJ53.js → chunk-NOZ4GZOK.js} +1 -1
- package/browser/{chunk-UA2K3ZOT.js → chunk-O7SDDIM3.js} +1 -1
- package/browser/chunk-OGTR6Z3J.js +16 -0
- package/browser/{chunk-BRQWRKJL.js → chunk-P3DCBSHZ.js} +2 -2
- package/browser/{chunk-5CQCPILV.js → chunk-P4MENAJZ.js} +1 -1
- package/browser/{chunk-EAWBXXCY.js → chunk-PFE3HLUT.js} +2 -2
- package/browser/{chunk-7Z2SV5BR.js → chunk-PWHRQQRI.js} +1 -1
- package/browser/{chunk-SWSPY4BC.js → chunk-Q3ZDIQDI.js} +1 -1
- package/browser/{chunk-HV6RH7IP.js → chunk-QE6KT65K.js} +1 -1
- package/browser/{chunk-SWDAMUEG.js → chunk-QXI253AP.js} +1 -1
- package/browser/{chunk-YB3KY7OI.js → chunk-RJ3CJLTB.js} +1 -1
- package/browser/{chunk-TTZXIO6J.js → chunk-SVCXZ2PY.js} +1 -1
- package/browser/{chunk-LACWVEXI.js → chunk-UII2B2EJ.js} +1 -1
- package/browser/{chunk-NJDZFFP2.js → chunk-UJDXTTYT.js} +1 -1
- package/browser/{chunk-XKCGHK65.js → chunk-V3HRCU62.js} +1 -1
- package/browser/{chunk-WOA7FL24.js → chunk-V4WUT4XA.js} +2 -2
- package/browser/{chunk-F22SO2DI.js → chunk-VJ7UBEZH.js} +1 -1
- package/browser/{chunk-PDRERXXI.js → chunk-WVQHR44O.js} +1 -1
- package/browser/{chunk-GWQ4DDRC.js → chunk-X6A62VXJ.js} +1 -1
- package/browser/{chunk-UWVVQXFV.js → chunk-X6GORUFS.js} +1 -1
- package/browser/{chunk-CQK5VZ5U.js → chunk-XBRPIGRU.js} +1 -1
- package/browser/{chunk-Z5SXUHI6.js → chunk-Y6BWZWFM.js} +1 -1
- package/browser/{chunk-72XYSM6H.js → chunk-YBVSUFBE.js} +1 -1
- package/browser/{chunk-OU6CKG3G.js → chunk-YD7P7WKB.js} +2 -2
- package/browser/{chunk-5GH4ZXOF.js → chunk-YPKWMQQP.js} +1 -1
- package/browser/{chunk-EOMRO75T.js → chunk-YQIWKZTQ.js} +1 -1
- package/browser/index.html +2 -2
- package/browser/{main-4APAI7VK.js → main-H7Z7N2XV.js} +2 -2
- package/package.json +1 -1
- package/browser/chunk-NFRDO3AW.js +0 -16
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as ue}from"./chunk-DGYJPXD2.js";import{d as pe,e as me}from"./chunk-OEP3LYTH.js";import"./chunk-YK5T2UAX.js";import"./chunk-3RK6DDJD.js";import"./chunk-ZW6IATXM.js";import"./chunk-DWJWACWY.js";import"./chunk-SCGWHTH7.js";import"./chunk-YZNN2TWC.js";import"./chunk-LIZXMNGH.js";import{a as $}from"./chunk-U66Y6MUA.js";import"./chunk-ZRO2AZMB.js";import{b as ne}from"./chunk-EHRDV2Z6.js";import"./chunk-ZZO3UETT.js";import"./chunk-CN5MONMQ.js";import"./chunk-EDH3WSAT.js";import"./chunk-VJPD6EYA.js";import"./chunk-PILVBZE6.js";import"./chunk-EXXHAXIE.js";import"./chunk-IRFJ42AU.js";import{a as re}from"./chunk-H443OY7B.js";import{h as oe,i as le}from"./chunk-EQ2X33Y7.js";import"./chunk-UA2K3ZOT.js";import{b as ie}from"./chunk-L4347XVN.js";import"./chunk-R252C5HM.js";import"./chunk-AFTCPQ2Z.js";import{w as ee}from"./chunk-BSUUV75R.js";import"./chunk-H34CGBCE.js";import{O as ae}from"./chunk-23F7BAD4.js";import"./chunk-IXGNTK76.js";import"./chunk-GIKR6Y2K.js";import{e as te}from"./chunk-6Y6JUUIW.js";import"./chunk-LS4HUMWF.js";import"./chunk-SDIK6O2Z.js";import"./chunk-2FWFPV5I.js";import"./chunk-4SXNNKVU.js";import{D as X,h as K,o as z}from"./chunk-K2RY2UAW.js";import"./chunk-2BDJSELV.js";import"./chunk-5GH4ZXOF.js";import{d as Z}from"./chunk-7JSHH4R2.js";import"./chunk-25BC7SZ4.js";import{$a as o,Ac as M,Bc as W,Db as g,Eb as F,Fc as L,Gb as O,Hb as P,Ib as a,Jb as n,Kb as B,Nb as S,Ob as y,Qb as T,Rb as m,Rd as G,Td as J,Yd as Y,Zc as H,bd as q,db as I,dc as h,ec as p,ed as Q,fc as N,gc as c,gd as j,jc as C,jd as U,kb as V,kc as D,lc as b,na as v,ob as R,qb as d,qc as k,rc as A,uc as w,va as _,vb as s,wa as f,zc as x}from"./chunk-4JRXN7L6.js";import"./chunk-7DCB7DB2.js";var ce=(t,l,e,i)=>({title:"Materials",items:t,summary:l,manufacture:e,quantity:i}),se=(t,l,e,i)=>({title:"Expenses",items:t,summary:l,manufacture:e,quantity:i}),_e=(t,l,e,i)=>({title:"Outputs",items:t,summary:l,manufacture:e,quantity:i}),fe=()=>["/menu/Manufacture/Job_Order/Archive/Info"],ge=t=>({ID:t});function xe(t,l){if(t&1){let e=y();a(0,"button",17),T("click",function(){_(e);let r=m(2);return f(r.openExportModal())}),B(1,"i",18),p(2," Export "),n()}}function Ce(t,l){if(t&1&&(a(0,"div",15),d(1,xe,3,0,"button",16),n()),t&2){let e=m();o(),s("ngIf",e.role.global==null?null:e.role.global.Export)}}function De(t,l){if(t&1){let e=y();a(0,"div",19)(1,"h6"),p(2,"Outlet"),n(),a(3,"outlet-selector",20),b("ngModelChange",function(r){_(e);let u=m();return D(u.pageData.Filter.OutletId,r)||(u.pageData.Filter.OutletId=r),f(r)}),n(),a(4,"h6"),p(5,"From - To"),n(),a(6,"datepicker",21),b("dateChange",function(r){_(e);let u=m();return D(u.pageData.Filter.From,r)||(u.pageData.Filter.From=r),f(r)}),n(),a(7,"div",22)(8,"datepicker",23),b("dateChange",function(r){_(e);let u=m();return D(u.pageData.Filter.To,r)||(u.pageData.Filter.To=r),f(r)}),n()(),a(9,"h6"),p(10,"State"),n(),a(11,"ng-select",24),b("ngModelChange",function(r){_(e);let u=m();return D(u.pageData.Filter.State,r)||(u.pageData.Filter.State=r),f(r)}),n()()}if(t&2){let e=m();o(3),s("accessType",2),C("ngModel",e.pageData.Filter.OutletId),s("outlets",e.pageData.Options==null?null:e.pageData.Options.Entities),o(3),C("date",e.pageData.Filter.From),o(2),C("date",e.pageData.Filter.To),o(3),s("items",e.pageData.Options.States),C("ngModel",e.pageData.Filter.State)}}function be(t,l){t&1&&(a(0,"th",25),p(1,"@ Cost"),n(),a(2,"th",26),p(3,"Total"),n())}function Me(t,l){t&1&&S(0)}function Se(t,l){if(t&1&&(a(0,"div"),d(1,Me,1,0,"ng-container",27),n()),t&2){let e=m().$implicit;m();let i=h(28);o(),s("ngTemplateOutlet",i)("ngTemplateOutletContext",w(2,ce,e.MaterialItems,e.MaterialsSummary,e,e==null?null:e.MaterialsTotalQuantity))}}function ye(t,l){t&1&&S(0)}function Te(t,l){if(t&1&&(a(0,"div"),d(1,ye,1,0,"ng-container",27),n()),t&2){let e=m().$implicit;m();let i=h(28);o(),s("ngTemplateOutlet",i)("ngTemplateOutletContext",w(2,se,e.ExpenseItems,e.ExpensesSummary,e,e==null?null:e.ExpensesTotalQuantity))}}function he(t,l){t&1&&S(0)}function we(t,l){if(t&1&&(a(0,"div"),d(1,he,1,0,"ng-container",27),n()),t&2){let e=m().$implicit;m();let i=h(28);o(),s("ngTemplateOutlet",i)("ngTemplateOutletContext",w(2,_e,e.OutputItems,e.OutputsSummary,e,e==null?null:e.OutputsTotalQuantity))}}function Ee(t,l){if(t&1&&d(0,Se,2,7,"div")(1,Te,2,7,"div")(2,we,2,7,"div"),t&2){let e=l.$implicit;g((e==null||e.MaterialItems==null?null:e.MaterialItems.length)>0?0:-1),o(),g((e==null||e.ExpenseItems==null?null:e.ExpenseItems.length)>0?1:-1),o(),g((e==null||e.OutputItems==null?null:e.OutputItems.length)>0?2:-1)}}function ve(t,l){if(t&1&&(a(0,"div")(1,"a",39)(2,"span",40),p(3),n()(),a(4,"span"),p(5),x(6,"date"),n()()),t&2){let e=m().manufacture;o(),s("routerLink",k(7,fe))("queryParams",A(8,ge,e.ID)),o(2),c(" ",e.OutletName+" # "+e.Number,""),o(2),c(" "," - "+W(6,4,e.Date,"dd MMM yyyy")," ")}}function Ie(t,l){if(t&1&&(a(0,"div",31),p(1),n()),t&2){let e=m().manufacture;o(),c(" ",e.State," ")}}function Fe(t,l){if(t&1&&(a(0,"td",45),p(1),x(2,"number"),n(),a(3,"td",46),p(4),x(5,"number"),n()),t&2){let e=m().$implicit;o(),c(" ",M(2,2,e.UnitCost)," "),o(3),c(" ",M(5,4,e.UnitCost*e.Quantity)," ")}}function Oe(t,l){if(t&1&&(a(0,"tr",34)(1,"td",41),p(2),n(),a(3,"td",42),p(4),n(),a(5,"td",43),p(6),x(7,"number"),n(),a(8,"td",44),p(9),n(),d(10,Fe,6,6),n()),t&2){let e=l.$implicit,i=m(2);o(2),N(e.Name),o(2),c(" ",e.Code," "),o(2),c(" ",M(7,5,e.Quantity)," "),o(3),c(" ",e.UOM," "),o(),g(i.role.product.Cost?10:-1)}}function Pe(t,l){if(t&1&&(a(0,"td",38)(1,"span",47),p(2),n(),a(3,"span"),p(4),x(5,"number"),n()()),t&2){let e=m().summary;o(2),c(" ",e==null?null:e.CurrencySymbol," "),o(2),c(" ",M(5,2,e==null?null:e.Amount)," ")}}function Le(t,l){if(t&1&&(a(0,"div",28)(1,"div",29),d(2,ve,7,10,"div"),a(3,"div")(4,"strong",30),p(5),n()()(),d(6,Ie,2,1,"div",31),n(),a(7,"table",32)(8,"tbody",33),O(9,Oe,11,7,"tr",34,F),n(),a(11,"tfoot")(12,"tr",35)(13,"td",36),p(14,"Total :"),n(),a(15,"td",37),p(16),x(17,"number"),n(),d(18,Pe,6,4,"td",38),n()()()),t&2){let e=l.title,i=l.items,r=l.quantity,u=m();o(2),g(e=="Materials"?2:-1),o(3),c(" ",e," "),o(),g(e=="Materials"?6:-1),o(3),P(i),o(7),c(" ",M(17,5,r)," "),o(2),g(u.role.product.Cost?18:-1)}}var de=class t extends ${role=v(Z);dialog=v(ee);constructor(l,e){super(l,e,"Manufacture/ReportDetail","ManufactureLoader/ReportDetail",null,null,!0)}openExportModal(){this.dialog.open(ne,{data:{title:"Manufacture Detail",exportTypes:[{ID:"ManufactureExport/ReportDetail",Value:"Default",FileName:"Manufacture Detail"}],filterExport:this.pageData.Filter,getAllDataLengthAPI:"Manufacture/ReportDetailCount",pagination:!0}})}static \u0275fac=function(e){return new(e||t)(I(ie),I(Y))};static \u0275cmp=V({type:t,selectors:[["app-manufacture-detail"]],features:[R],decls:29,vars:12,consts:[["pageFilterTemplate",""],["CHILD_TABLE",""],[3,"onSubmit","filterChange","pageData","hideSearchBox","isFilterOnDropdown","filter"],["class","btn-group",4,"ngIf"],["filters",""],[1,"container-fluid","mt-5"],[1,"table-responsive"],["id","tableGrid",1,"table"],[1,"thead-light","sticky-top-thead"],[2,"width","645px"],[2,"width","75px"],[2,"width","30px"],[1,"fst-italic","small",2,"width","40px"],["colspan","6",1,"px-0",2,"border-bottom-width","0px !important"],[3,"nextPage","fetchTotalData","concatAllData","totalData","totalCurrentRow","pageNumber","nextPageDisabled","isFetchTotalData","goToLast"],[1,"btn-group"],["class","btn btn-outline-secondary",3,"click",4,"ngIf"],[1,"btn","btn-outline-secondary",3,"click"],["aria-hidden","true",1,"fa-solid","fa-upload"],[1,"dialog-filter"],["appendTo","body","bindLabel","Name","bindValue","ID","placeholder","Choose Outlet",1,"ng-select-multiple",3,"ngModelChange","accessType","ngModel","outlets"],["name","From",3,"dateChange","date"],[1,"mt-4"],["name","To",3,"dateChange","date"],["appendTo","body","bindLabel","Value","bindValue","Key","placeholder","Choose State",3,"ngModelChange","items","ngModel"],[1,"text-end",2,"width","80px"],[1,"text-end",2,"width","90px"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"d-flex","justify-content-end","mt-sm-0"],[1,"me-auto","d-sm-block","d-flex","flex-columnmb-5","ps-1"],[1,"text-danger"],[1,"mt-5","mb-5","fw-bold","fst-italic","me-2"],[1,"w-100"],[1,"table","table-sm","table-bordered","table-striped"],[1,"border-start","border-end"],[1,"table-footer"],["colspan","2",1,"text-end","fw-bold"],[1,"text-end","fw-bold","pe-3"],["colspan","3",1,"text-end","fw-bold","pe-2"],[1,"h5","text-primary","fw-bold",3,"routerLink","queryParams"],["id","PONumber"],[2,"width","620px"],[1,"fw-normal","border-start","border-end",2,"width","75px"],[1,"border-start","border-end","text-end",2,"width","30px"],[1,"border-start","border-end",2,"width","40px"],[1,"text-end","border-start","border-end",2,"width","80px"],[1,"text-end","border-start","border-end",2,"width","90px"],[1,"me-4"]],template:function(e,i){if(e&1){let r=y();a(0,"mainpanel-cmp",2),T("onSubmit",function(){return _(r),f(i.searchFromPageOne())}),b("filterChange",function(E){return _(r),D(i.pageData.Filter,E)||(i.pageData.Filter=E),f(E)}),a(1,"actions"),d(2,Ce,2,1,"div",3),n(),a(3,"div",4),d(4,De,12,7,"ng-template",null,0,L),n(),a(6,"content")(7,"div",5)(8,"div",6)(9,"table",7)(10,"thead",8)(11,"tr")(12,"th",9),p(13,"Name"),n(),a(14,"th",10),p(15,"Code"),n(),a(16,"th",11),p(17,"Qty"),n(),a(18,"th",12),p(19,"UOM"),n(),d(20,be,4,0),n()(),a(21,"tbody")(22,"tr")(23,"td",13),O(24,Ee,3,3,null,null,F),n()()()(),a(26,"infinite-pagination",14),T("nextPage",function(){return _(r),f(i.NextPage(!0))})("fetchTotalData",function(){return _(r),f(i.StoreRowsCountAPIResult("Manufacture/ReportDetailCount"))})("concatAllData",function(){return _(r),f(i.StoreRowsCountAPIResult("Manufacture/ReportDetailCount",!0))}),n()()(),d(27,Le,19,7,"ng-template",null,1,L),n()()}e&2&&(s("pageData",i.menuData)("hideSearchBox",!0)("isFilterOnDropdown",!1),C("filter",i.pageData.Filter),o(2),s("ngIf",i.role.global==null?null:i.role.global.Export),o(18),g(i.role.product.Cost?20:-1),o(4),P(i.infiniteList),o(2),s("totalData",i.listTotal)("totalCurrentRow",i.infiniteList==null?null:i.infiniteList.length)("pageNumber",i.pageData.Filter.PageNumber)("nextPageDisabled",i.nextPageDisabled)("isFetchTotalData",i.pageData.HideStoreApiCount)("goToLast",i.goToLast))},dependencies:[U,H,q,j,Q,le,oe,re,X,K,z,me,pe,te,J,G,ue,ae],encapsulation:2})};export{de as ManufactureDetailComponent};
|
|
1
|
+
import{a as ue}from"./chunk-DGYJPXD2.js";import{d as pe,e as me}from"./chunk-OEP3LYTH.js";import"./chunk-YK5T2UAX.js";import"./chunk-3RK6DDJD.js";import"./chunk-ZW6IATXM.js";import"./chunk-DWJWACWY.js";import"./chunk-SCGWHTH7.js";import"./chunk-YZNN2TWC.js";import"./chunk-LIZXMNGH.js";import{a as $}from"./chunk-M4EMBMOR.js";import"./chunk-ZRO2AZMB.js";import{b as ne}from"./chunk-EHRDV2Z6.js";import"./chunk-MNCZ2RPZ.js";import"./chunk-AN6UR4L4.js";import"./chunk-EDH3WSAT.js";import"./chunk-VJPD6EYA.js";import"./chunk-PILVBZE6.js";import"./chunk-EXXHAXIE.js";import"./chunk-IRFJ42AU.js";import{a as re}from"./chunk-H443OY7B.js";import{h as oe,i as le}from"./chunk-75GHVR5F.js";import"./chunk-O7SDDIM3.js";import{b as ie}from"./chunk-L4CVBDO7.js";import"./chunk-R252C5HM.js";import"./chunk-AFTCPQ2Z.js";import{w as ee}from"./chunk-BSUUV75R.js";import"./chunk-H34CGBCE.js";import{O as ae}from"./chunk-23F7BAD4.js";import"./chunk-IXGNTK76.js";import"./chunk-GIKR6Y2K.js";import{e as te}from"./chunk-6Y6JUUIW.js";import"./chunk-LS4HUMWF.js";import"./chunk-SDIK6O2Z.js";import"./chunk-2FWFPV5I.js";import"./chunk-4SXNNKVU.js";import{D as X,h as K,o as z}from"./chunk-K2RY2UAW.js";import"./chunk-KF4IOF5W.js";import"./chunk-YPKWMQQP.js";import{d as Z}from"./chunk-7JSHH4R2.js";import"./chunk-4IU2ZEUU.js";import{$a as o,Ac as M,Bc as W,Db as g,Eb as F,Fc as L,Gb as O,Hb as P,Ib as a,Jb as n,Kb as B,Nb as S,Ob as y,Qb as T,Rb as m,Rd as G,Td as J,Yd as Y,Zc as H,bd as q,db as I,dc as h,ec as p,ed as Q,fc as N,gc as c,gd as j,jc as C,jd as U,kb as V,kc as D,lc as b,na as v,ob as R,qb as d,qc as k,rc as A,uc as w,va as _,vb as s,wa as f,zc as x}from"./chunk-4JRXN7L6.js";import"./chunk-7DCB7DB2.js";var ce=(t,l,e,i)=>({title:"Materials",items:t,summary:l,manufacture:e,quantity:i}),se=(t,l,e,i)=>({title:"Expenses",items:t,summary:l,manufacture:e,quantity:i}),_e=(t,l,e,i)=>({title:"Outputs",items:t,summary:l,manufacture:e,quantity:i}),fe=()=>["/menu/Manufacture/Job_Order/Archive/Info"],ge=t=>({ID:t});function xe(t,l){if(t&1){let e=y();a(0,"button",17),T("click",function(){_(e);let r=m(2);return f(r.openExportModal())}),B(1,"i",18),p(2," Export "),n()}}function Ce(t,l){if(t&1&&(a(0,"div",15),d(1,xe,3,0,"button",16),n()),t&2){let e=m();o(),s("ngIf",e.role.global==null?null:e.role.global.Export)}}function De(t,l){if(t&1){let e=y();a(0,"div",19)(1,"h6"),p(2,"Outlet"),n(),a(3,"outlet-selector",20),b("ngModelChange",function(r){_(e);let u=m();return D(u.pageData.Filter.OutletId,r)||(u.pageData.Filter.OutletId=r),f(r)}),n(),a(4,"h6"),p(5,"From - To"),n(),a(6,"datepicker",21),b("dateChange",function(r){_(e);let u=m();return D(u.pageData.Filter.From,r)||(u.pageData.Filter.From=r),f(r)}),n(),a(7,"div",22)(8,"datepicker",23),b("dateChange",function(r){_(e);let u=m();return D(u.pageData.Filter.To,r)||(u.pageData.Filter.To=r),f(r)}),n()(),a(9,"h6"),p(10,"State"),n(),a(11,"ng-select",24),b("ngModelChange",function(r){_(e);let u=m();return D(u.pageData.Filter.State,r)||(u.pageData.Filter.State=r),f(r)}),n()()}if(t&2){let e=m();o(3),s("accessType",2),C("ngModel",e.pageData.Filter.OutletId),s("outlets",e.pageData.Options==null?null:e.pageData.Options.Entities),o(3),C("date",e.pageData.Filter.From),o(2),C("date",e.pageData.Filter.To),o(3),s("items",e.pageData.Options.States),C("ngModel",e.pageData.Filter.State)}}function be(t,l){t&1&&(a(0,"th",25),p(1,"@ Cost"),n(),a(2,"th",26),p(3,"Total"),n())}function Me(t,l){t&1&&S(0)}function Se(t,l){if(t&1&&(a(0,"div"),d(1,Me,1,0,"ng-container",27),n()),t&2){let e=m().$implicit;m();let i=h(28);o(),s("ngTemplateOutlet",i)("ngTemplateOutletContext",w(2,ce,e.MaterialItems,e.MaterialsSummary,e,e==null?null:e.MaterialsTotalQuantity))}}function ye(t,l){t&1&&S(0)}function Te(t,l){if(t&1&&(a(0,"div"),d(1,ye,1,0,"ng-container",27),n()),t&2){let e=m().$implicit;m();let i=h(28);o(),s("ngTemplateOutlet",i)("ngTemplateOutletContext",w(2,se,e.ExpenseItems,e.ExpensesSummary,e,e==null?null:e.ExpensesTotalQuantity))}}function he(t,l){t&1&&S(0)}function we(t,l){if(t&1&&(a(0,"div"),d(1,he,1,0,"ng-container",27),n()),t&2){let e=m().$implicit;m();let i=h(28);o(),s("ngTemplateOutlet",i)("ngTemplateOutletContext",w(2,_e,e.OutputItems,e.OutputsSummary,e,e==null?null:e.OutputsTotalQuantity))}}function Ee(t,l){if(t&1&&d(0,Se,2,7,"div")(1,Te,2,7,"div")(2,we,2,7,"div"),t&2){let e=l.$implicit;g((e==null||e.MaterialItems==null?null:e.MaterialItems.length)>0?0:-1),o(),g((e==null||e.ExpenseItems==null?null:e.ExpenseItems.length)>0?1:-1),o(),g((e==null||e.OutputItems==null?null:e.OutputItems.length)>0?2:-1)}}function ve(t,l){if(t&1&&(a(0,"div")(1,"a",39)(2,"span",40),p(3),n()(),a(4,"span"),p(5),x(6,"date"),n()()),t&2){let e=m().manufacture;o(),s("routerLink",k(7,fe))("queryParams",A(8,ge,e.ID)),o(2),c(" ",e.OutletName+" # "+e.Number,""),o(2),c(" "," - "+W(6,4,e.Date,"dd MMM yyyy")," ")}}function Ie(t,l){if(t&1&&(a(0,"div",31),p(1),n()),t&2){let e=m().manufacture;o(),c(" ",e.State," ")}}function Fe(t,l){if(t&1&&(a(0,"td",45),p(1),x(2,"number"),n(),a(3,"td",46),p(4),x(5,"number"),n()),t&2){let e=m().$implicit;o(),c(" ",M(2,2,e.UnitCost)," "),o(3),c(" ",M(5,4,e.UnitCost*e.Quantity)," ")}}function Oe(t,l){if(t&1&&(a(0,"tr",34)(1,"td",41),p(2),n(),a(3,"td",42),p(4),n(),a(5,"td",43),p(6),x(7,"number"),n(),a(8,"td",44),p(9),n(),d(10,Fe,6,6),n()),t&2){let e=l.$implicit,i=m(2);o(2),N(e.Name),o(2),c(" ",e.Code," "),o(2),c(" ",M(7,5,e.Quantity)," "),o(3),c(" ",e.UOM," "),o(),g(i.role.product.Cost?10:-1)}}function Pe(t,l){if(t&1&&(a(0,"td",38)(1,"span",47),p(2),n(),a(3,"span"),p(4),x(5,"number"),n()()),t&2){let e=m().summary;o(2),c(" ",e==null?null:e.CurrencySymbol," "),o(2),c(" ",M(5,2,e==null?null:e.Amount)," ")}}function Le(t,l){if(t&1&&(a(0,"div",28)(1,"div",29),d(2,ve,7,10,"div"),a(3,"div")(4,"strong",30),p(5),n()()(),d(6,Ie,2,1,"div",31),n(),a(7,"table",32)(8,"tbody",33),O(9,Oe,11,7,"tr",34,F),n(),a(11,"tfoot")(12,"tr",35)(13,"td",36),p(14,"Total :"),n(),a(15,"td",37),p(16),x(17,"number"),n(),d(18,Pe,6,4,"td",38),n()()()),t&2){let e=l.title,i=l.items,r=l.quantity,u=m();o(2),g(e=="Materials"?2:-1),o(3),c(" ",e," "),o(),g(e=="Materials"?6:-1),o(3),P(i),o(7),c(" ",M(17,5,r)," "),o(2),g(u.role.product.Cost?18:-1)}}var de=class t extends ${role=v(Z);dialog=v(ee);constructor(l,e){super(l,e,"Manufacture/ReportDetail","ManufactureLoader/ReportDetail",null,null,!0)}openExportModal(){this.dialog.open(ne,{data:{title:"Manufacture Detail",exportTypes:[{ID:"ManufactureExport/ReportDetail",Value:"Default",FileName:"Manufacture Detail"}],filterExport:this.pageData.Filter,getAllDataLengthAPI:"Manufacture/ReportDetailCount",pagination:!0}})}static \u0275fac=function(e){return new(e||t)(I(ie),I(Y))};static \u0275cmp=V({type:t,selectors:[["app-manufacture-detail"]],features:[R],decls:29,vars:12,consts:[["pageFilterTemplate",""],["CHILD_TABLE",""],[3,"onSubmit","filterChange","pageData","hideSearchBox","isFilterOnDropdown","filter"],["class","btn-group",4,"ngIf"],["filters",""],[1,"container-fluid","mt-5"],[1,"table-responsive"],["id","tableGrid",1,"table"],[1,"thead-light","sticky-top-thead"],[2,"width","645px"],[2,"width","75px"],[2,"width","30px"],[1,"fst-italic","small",2,"width","40px"],["colspan","6",1,"px-0",2,"border-bottom-width","0px !important"],[3,"nextPage","fetchTotalData","concatAllData","totalData","totalCurrentRow","pageNumber","nextPageDisabled","isFetchTotalData","goToLast"],[1,"btn-group"],["class","btn btn-outline-secondary",3,"click",4,"ngIf"],[1,"btn","btn-outline-secondary",3,"click"],["aria-hidden","true",1,"fa-solid","fa-upload"],[1,"dialog-filter"],["appendTo","body","bindLabel","Name","bindValue","ID","placeholder","Choose Outlet",1,"ng-select-multiple",3,"ngModelChange","accessType","ngModel","outlets"],["name","From",3,"dateChange","date"],[1,"mt-4"],["name","To",3,"dateChange","date"],["appendTo","body","bindLabel","Value","bindValue","Key","placeholder","Choose State",3,"ngModelChange","items","ngModel"],[1,"text-end",2,"width","80px"],[1,"text-end",2,"width","90px"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"d-flex","justify-content-end","mt-sm-0"],[1,"me-auto","d-sm-block","d-flex","flex-columnmb-5","ps-1"],[1,"text-danger"],[1,"mt-5","mb-5","fw-bold","fst-italic","me-2"],[1,"w-100"],[1,"table","table-sm","table-bordered","table-striped"],[1,"border-start","border-end"],[1,"table-footer"],["colspan","2",1,"text-end","fw-bold"],[1,"text-end","fw-bold","pe-3"],["colspan","3",1,"text-end","fw-bold","pe-2"],[1,"h5","text-primary","fw-bold",3,"routerLink","queryParams"],["id","PONumber"],[2,"width","620px"],[1,"fw-normal","border-start","border-end",2,"width","75px"],[1,"border-start","border-end","text-end",2,"width","30px"],[1,"border-start","border-end",2,"width","40px"],[1,"text-end","border-start","border-end",2,"width","80px"],[1,"text-end","border-start","border-end",2,"width","90px"],[1,"me-4"]],template:function(e,i){if(e&1){let r=y();a(0,"mainpanel-cmp",2),T("onSubmit",function(){return _(r),f(i.searchFromPageOne())}),b("filterChange",function(E){return _(r),D(i.pageData.Filter,E)||(i.pageData.Filter=E),f(E)}),a(1,"actions"),d(2,Ce,2,1,"div",3),n(),a(3,"div",4),d(4,De,12,7,"ng-template",null,0,L),n(),a(6,"content")(7,"div",5)(8,"div",6)(9,"table",7)(10,"thead",8)(11,"tr")(12,"th",9),p(13,"Name"),n(),a(14,"th",10),p(15,"Code"),n(),a(16,"th",11),p(17,"Qty"),n(),a(18,"th",12),p(19,"UOM"),n(),d(20,be,4,0),n()(),a(21,"tbody")(22,"tr")(23,"td",13),O(24,Ee,3,3,null,null,F),n()()()(),a(26,"infinite-pagination",14),T("nextPage",function(){return _(r),f(i.NextPage(!0))})("fetchTotalData",function(){return _(r),f(i.StoreRowsCountAPIResult("Manufacture/ReportDetailCount"))})("concatAllData",function(){return _(r),f(i.StoreRowsCountAPIResult("Manufacture/ReportDetailCount",!0))}),n()()(),d(27,Le,19,7,"ng-template",null,1,L),n()()}e&2&&(s("pageData",i.menuData)("hideSearchBox",!0)("isFilterOnDropdown",!1),C("filter",i.pageData.Filter),o(2),s("ngIf",i.role.global==null?null:i.role.global.Export),o(18),g(i.role.product.Cost?20:-1),o(4),P(i.infiniteList),o(2),s("totalData",i.listTotal)("totalCurrentRow",i.infiniteList==null?null:i.infiniteList.length)("pageNumber",i.pageData.Filter.PageNumber)("nextPageDisabled",i.nextPageDisabled)("isFetchTotalData",i.pageData.HideStoreApiCount)("goToLast",i.goToLast))},dependencies:[U,H,q,j,Q,le,oe,re,X,K,z,me,pe,te,J,G,ue,ae],encapsulation:2})};export{de as ManufactureDetailComponent};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as N}from"./chunk-
|
|
1
|
+
import{c as N}from"./chunk-KF4IOF5W.js";import"./chunk-YPKWMQQP.js";import{a as D}from"./chunk-7JSHH4R2.js";import"./chunk-4IU2ZEUU.js";import{$ as _,$a as l,Ac as k,Ga as P,Ib as o,Jb as e,Kb as u,N as b,Ob as S,Qb as I,Qd as G,Rb as f,Y as m,Yd as j,Zc as A,aa as s,c as p,cd as E,db as d,ec as a,fa as y,fc as x,jd as R,kb as w,n as v,qb as g,va as C,vb as c,wa as O,yb as M,zc as L}from"./chunk-4JRXN7L6.js";import"./chunk-7DCB7DB2.js";function T(r,n){r&1&&(o(0,"div",21)(1,"span",22),a(2,"Latitude and Longitude is empty, please allow your browser location permission!"),e(),o(3,"a",23),a(4,"Click here to learn how to manually activate the location permission"),e()())}function z(r,n){if(r&1){let t=S();o(0,"div",1)(1,"div",2)(2,"div",3)(3,"h3",4),a(4,"Geo Fencing"),e(),o(5,"p",5),a(6,"You are about to sign-in from this location"),e(),o(7,"div",6)(8,"div",7)(9,"div",8)(10,"span",9),a(11,"LAT"),e(),o(12,"span",10),a(13),e()(),o(14,"div",8)(15,"span",11),a(16,"LONG"),e(),o(17,"span",12),a(18),e()()(),o(19,"button",13),I("click",function(){C(t);let h=f();return O(h.proceed())}),a(20,"Proceed"),e()(),g(21,T,5,0,"div",14),e(),o(22,"div",15),u(23,"img",16),e()(),o(24,"div",17)(25,"div",18)(26,"div")(27,"span"),a(28,"powered by :"),e(),u(29,"a",19)(30,"img",20),e()()()()}if(r&2){let t=n.ngIf,i=f();l(2),M(t.latitude&&t.longitude?i.centerGeoPanelStyle:""),l(11),x(t.latitude),l(5),x(t.longitude),l(),c("disabled",!(t.latitude&&t.longitude)),l(2),c("ngIf",!(t.latitude&&t.longitude))}}var Z=class r{constructor(n,t,i,h){this.ngZone=n;this.auth=t;this.http=i;this.router=h}centerGeoPanelStyle="display: flex; flex-direction: column; justify-content: center;";latLong$;ngOnInit(){this.checkOnRefreshPage(),document.body.classList.add("login-body");let n=v(navigator.permissions.query({name:"geolocation"})).pipe(s(t=>new p(i=>{i.next(t.state),t.onchange=()=>this.ngZone.run(()=>i.next(t.state))})),m(1));this.latLong$=n.pipe(s(()=>new p(t=>{navigator.geolocation.getCurrentPosition(i=>this.ngZone.run(()=>{t.next({latitude:i.coords.latitude.toString(),longitude:i.coords.longitude.toString()}),t.complete()}),()=>this.ngZone.run(()=>{t.next({latitude:"",longitude:""}),t.complete()}),{enableHighAccuracy:!0,maximumAge:0,timeout:8e3})})),_({latitude:"",longitude:""}),m(1))}ngOnDestroy(){document.body.classList.remove("login-body")}checkOnRefreshPage(){D.IsEmpty(this.auth.loginResponse)&&this.router.navigate(["/"])}proceed(){this.latLong$.pipe(s(n=>this.http.post("/api/Authentication/LoginGeoRestriction",{UserID:this.auth.loginResponse.UserID,Latitude:n.latitude,Longitude:n.longitude})),y(n=>this.auth.saveLoginConfigToStorage(n)),s(()=>this.router.navigate([this.auth.getRedirectUrl()])),b(1)).subscribe()}static \u0275fac=function(t){return new(t||r)(d(P),d(N),d(j),d(G))};static \u0275cmp=w({type:r,selectors:[["POS-auth-geolocation"]],decls:2,vars:3,consts:[["class","container-fluid",4,"ngIf"],[1,"container-fluid"],[1,"row","bg-white","mx-auto","totp-pane"],[1,"col-md-7","order-md-first","order-last","form-pane"],[1,"text-start"],[1,"text-start","mb-7"],[1,"d-flex","flex-column","flex-md-row",2,"column-gap","10px"],[1,"latlong-container","d-flex","flex-grow-1"],[1,"flex-grow-1","text-start","d-flex"],[1,"lat-label","fw-bold"],[1,"ps-5","lat-value","flex-grow-1","d-flex","align-items-center"],[1,"long-label","fw-bold"],[1,"ps-5","long-value","flex-grow-1","d-flex","align-items-center"],[1,"btn","btn-success","mt-5","mx-auto","mx-md-0","mt-md-0","w-25","w-md-100",3,"click","disabled"],["class","text-start mt-7",4,"ngIf"],[1,"col-md-5","order-md-last","order-first","border-start","border-secondary","d-flex","align-items-center","justify-content-center","img-pane","py-6"],["src","https://res.cloudinary.com/pos/image/upload/v1685343992/POS/Images/geolocation-map.png",1,"border-0","w-100"],[1,"fixed-bottom"],[1,"d-flex","justify-content-start","mb-11","mx-11","footer-mobile"],["target","_blank","href","http://www.dealpos.com"],["src","//res.cloudinary.com/pos/image/upload/POS/Images/Login/dealpos.png",1,"ms-3","border-0"],[1,"text-start","mt-7"],[1,"text-danger"],["href","https://support.dealpos.com/en/articles/7963864-enable-location-services-for-several-browser","target","_blank",1,"d-block"]],template:function(t,i){t&1&&(g(0,z,31,6,"div",0),L(1,"async")),t&2&&c("ngIf",k(1,1,i.latLong$))},dependencies:[R,A,E],styles:["input[type=submit][_ngcontent-%COMP%]{font-size:1.125rem;width:11.25rem;font-family:Roboto Slab,serif}.totp-pane[_ngcontent-%COMP%]{max-width:57rem;height:max-content;margin-top:140px}@media (max-width: 768px){.totp-pane[_ngcontent-%COMP%]{margin-top:0}}.form-pane[_ngcontent-%COMP%]{padding:2rem}@media (max-width: 768px){.form-pane[_ngcontent-%COMP%]{padding:50px 24px 30px}}@media (max-width: 768px){.img-pane[_ngcontent-%COMP%]{border:0px!important}}.otp-container[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{font-size:32px;letter-spacing:32px;width:325px;font-family:monospace;background:transparent;z-index:1;position:relative}.otp-container[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:focus{outline:none!important}.otp-container[_ngcontent-%COMP%] .stripe[_ngcontent-%COMP%]{font-size:32px;letter-spacing:32px;font-family:monospace;position:absolute;padding-top:6px;z-index:0;bottom:0;left:14px}.latlong-container[_ngcontent-%COMP%]{background:#fff;border:1px solid #000000;border-radius:5px}.latlong-container[_ngcontent-%COMP%] .lat-label[_ngcontent-%COMP%], .latlong-container[_ngcontent-%COMP%] .long-label[_ngcontent-%COMP%]{display:inline-block;padding:12px;border-right:1px solid #000000}.latlong-container[_ngcontent-%COMP%] .long-label[_ngcontent-%COMP%]{border-left:1px solid #000000}.latlong-container[_ngcontent-%COMP%] .lat-value[_ngcontent-%COMP%], .latlong-container[_ngcontent-%COMP%] .long-value[_ngcontent-%COMP%]{background:#d9d9d94d}"]})};export{Z as AuthGeolocationComponent};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as O}from"./chunk-
|
|
1
|
+
import{a as O}from"./chunk-6GI4DW2S.js";import{h as Q,i as z}from"./chunk-75GHVR5F.js";import"./chunk-O7SDDIM3.js";import{b as H}from"./chunk-L4CVBDO7.js";import"./chunk-R252C5HM.js";import"./chunk-AFTCPQ2Z.js";import"./chunk-BSUUV75R.js";import{ga as j,ha as q}from"./chunk-H34CGBCE.js";import"./chunk-23F7BAD4.js";import"./chunk-LS4HUMWF.js";import"./chunk-SDIK6O2Z.js";import{a as S}from"./chunk-2FWFPV5I.js";import"./chunk-4SXNNKVU.js";import{D as B,c as k,h as F,o as L}from"./chunk-K2RY2UAW.js";import"./chunk-KF4IOF5W.js";import"./chunk-YPKWMQQP.js";import"./chunk-7JSHH4R2.js";import"./chunk-4IU2ZEUU.js";import{$a as s,$b as b,Ib as n,Jb as o,Ma as _,Ob as w,Od as P,Qb as v,Rb as l,Vd as V,Wc as R,Yd as N,Zb as y,Zc as A,_b as D,db as g,dc as M,ec as r,jc as u,jd as E,kb as T,kc as h,lc as f,ob as W,qb as C,rc as I,va as m,vb as d,wa as c}from"./chunk-4JRXN7L6.js";import"./chunk-7DCB7DB2.js";var Y=["textReceiptCtrl"],G=p=>({"is-invalid":p});function J(p,x){p&1&&(n(0,"small"),r(1,"The text you entered exceeds the maximum allowed size when encoded for WhatsApp."),o())}function K(p,x){if(p&1&&(n(0,"div",25),C(1,J,2,0,"small",26),o()),p&2){let t=l(2);s(),d("ngIf",t.textReceiptInvalidState())}}function X(p,x){if(p&1){let t=w();n(0,"mainpanel-cmp",2)(1,"actions")(2,"button",3),v("click",function(){m(t);let e=l();return c(e.onSubmit("Setup/Configuration/WhatsappConfigurationV2"))}),r(3," Save "),o()(),n(4,"content")(5,"div",4)(6,"div",5)(7,"div",6)(8,"h5"),r(9,"WhatsApp Invoice Settings"),o(),n(10,"i"),r(11," Configure the Twilio settings required to send invoices to customers via WhatsApp. "),o()(),n(12,"div",7)(13,"div",8)(14,"div",9)(15,"div",10)(16,"input",11),f("ngModelChange",function(e){m(t);let a=l();return h(a.formData.WhatsappConfig.AccountSID,e)||(a.formData.WhatsappConfig.AccountSID=e),c(e)}),o(),n(17,"label"),r(18,"Account SID"),o()()(),n(19,"div",9)(20,"div",12)(21,"input",13),f("ngModelChange",function(e){m(t);let a=l();return h(a.formData.WhatsappConfig.AuthToken,e)||(a.formData.WhatsappConfig.AuthToken=e),c(e)}),o(),n(22,"label"),r(23,"Auth Token"),o()()()(),n(24,"div",8)(25,"div",9)(26,"div",14)(27,"input",15),f("ngModelChange",function(e){m(t);let a=l();return h(a.formData.WhatsappConfig.ContentTemplateSID,e)||(a.formData.WhatsappConfig.ContentTemplateSID=e),c(e)}),o(),n(28,"label"),r(29,"Content Template SID"),o()()(),n(30,"div",9)(31,"div",16)(32,"input",17),f("ngModelChange",function(e){m(t);let a=l();return h(a.formData.WhatsappConfig.From,e)||(a.formData.WhatsappConfig.From=e),c(e)}),o(),n(33,"label"),r(34,"From"),o()()()()()(),n(35,"div",5)(36,"div",6)(37,"h5"),r(38,"Whatsapp Receipt Settings"),o(),n(39,"i"),r(40," You can use variables like Number, Currency, Amount, ReceiptLink, and Brand. Please refer this "),n(41,"a",18),r(42,"Article"),o(),r(43," for more information. "),o()(),n(44,"div",7)(45,"div",8)(46,"div",19)(47,"div",20)(48,"textarea",21,0),f("ngModelChange",function(e){m(t);let a=l();return h(a.formData.WhatsappConfig.TextReceipt,e)||(a.formData.WhatsappConfig.TextReceipt=e),c(e)}),v("ngModelChange",function(){m(t);let e=l();return c(e.onTextReceiptChange())}),o(),n(50,"label",22),r(51,"Customize E-Receipt Template"),o(),n(52,"div",23),C(53,K,2,1,"div",24),o()()()()()()()()()}if(p&2){let t=M(49),i=l();d("pageData",i.menuData)("hideSearchDropdown",!0)("hideSearchBox",!0),s(2),d("disabled",i.textReceiptInvalidState()),s(14),u("ngModel",i.formData.WhatsappConfig.AccountSID),s(5),u("ngModel",i.formData.WhatsappConfig.AuthToken),s(6),u("ngModel",i.formData.WhatsappConfig.ContentTemplateSID),s(5),u("ngModel",i.formData.WhatsappConfig.From),s(16),u("ngModel",i.formData.WhatsappConfig.TextReceipt),d("ngClass",I(11,G,(i.textReceiptInvalidState()||t.invalid)&&(t.dirty||t.touched))),s(5),d("ngIf",(i.textReceiptInvalidState()||t.invalid)&&(t.dirty||t.touched))}}var U=class p extends O{constructor(t,i,e,a){super(t,i,"Setup/ConfigurationLoader/WhatsappConfigurationV2",e);this.httpService=i;this.activatedRoute=e;this.toaster=a}textReceiptCtrl;maxTextLength=1920;textReceiptInvalidState=_(!1);encodeLength=_(0);postBindForm(t){this.validateTextReceipt(),this.initReceiptTemplateCtrl()}initReceiptTemplateCtrl(){setTimeout(()=>{this.textReceiptCtrl.control.markAllAsTouched()})}validateTextReceipt(){if(!this.formData?.WhatsappConfig?.TextReceipt){this.textReceiptInvalidState.set(!1);return}let t=this.formData.WhatsappConfig?.TextReceipt,i=encodeURIComponent(t)?.length;this.encodeLength.set(i);let e=i>this.maxTextLength;this.textReceiptInvalidState.set(e)}onTextReceiptChange(){if(this.validateTextReceipt(),this.textReceiptCtrl){let t=this.textReceiptInvalidState()||this.textReceiptCtrl.invalid;this.textReceiptInvalidState.set(t)}}onSubmitSuccess(t){t?.MessageWarning?this.toaster.warning(t.MessageWarning,S.Warning):this.toaster.success("Config has been updated succesfully!",S.Success)}static \u0275fac=function(i){return new(i||p)(g(H),g(N),g(P),g(V))};static \u0275cmp=T({type:p,selectors:[["app-whatsapp"]],viewQuery:function(i,e){if(i&1&&y(Y,5),i&2){let a;D(a=b())&&(e.textReceiptCtrl=a.first)}},features:[W],decls:1,vars:1,consts:[["textReceiptCtrl","ngModel"],[3,"pageData","hideSearchDropdown","hideSearchBox",4,"ngIf"],[3,"pageData","hideSearchDropdown","hideSearchBox"],["type","button","role","button",1,"btn","btn-success",3,"click","disabled"],[1,"container-fluid","py-5","bg-light-white"],[1,"row","border-bottom","mt-12","ms-2"],[1,"col-md-2"],[1,"col-md-10","mb-5"],[1,"row"],[1,"col-6"],["matTooltip","The unique identifier for your Twilio account, used for authenticating API requests.","matTooltipPosition","above",1,"form-floating-outline"],["type","text","id","AccountSID","name","AccountSID","placeholder","Account SID",1,"form-control",3,"ngModelChange","ngModel"],["matTooltip","The authentication token for secure access to the Twilio API.","matTooltipPosition","above",1,"form-floating-outline"],["type","text","name","AuthToken","placeholder","Auth Token",1,"form-control",3,"ngModelChange","ngModel"],["matTooltip","The unique identifier for the WhatsApp message template to format your invoice content.","matTooltipPosition","above",1,"form-floating-outline"],["type","text","id","ContentTemplateSID","name","ContentTemplateSID","placeholder","Content Template SID",1,"form-control",3,"ngModelChange","ngModel"],["matTooltip","The Twilio-approved WhatsApp number from which invoices will be sent to customers.","matTooltipPosition","above",1,"form-floating-outline"],["type","text","name","From","placeholder","From",1,"form-control",3,"ngModelChange","ngModel"],["href","https://support.dealpos.com/en/articles/10574504-send-customer-invoice-via-whatsapp-receipt-by-whatsapp","target","_blank"],[1,"col-md-12"],[1,"form-floating-outline"],["name","ProductDescription","rows","15","id","ProductDescription","placeholder","Template","matTooltipPosition","above","matTooltip","Customize the e-receipt message sent to the customer's WhatsApp (validation based on encoded byte length)",1,"form-control",3,"ngModelChange","ngModel","ngClass"],["for","ProductDescription"],[1,"d-flex","justify-content-between","mt-1"],["class","text-danger",4,"ngIf"],[1,"text-danger"],[4,"ngIf"]],template:function(i,e){i&1&&C(0,X,54,13,"mainpanel-cmp",1),i&2&&d("ngIf",e.formData)},dependencies:[E,R,A,z,Q,B,k,F,L,q,j],encapsulation:2})};export{U as WhatsappComponent};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as P}from"./chunk-
|
|
1
|
+
import{a as P}from"./chunk-AN6UR4L4.js";import{a as C}from"./chunk-EXXHAXIE.js";import{a as w}from"./chunk-75GHVR5F.js";import{a as A}from"./chunk-L4CVBDO7.js";import{a as I}from"./chunk-LS4HUMWF.js";import{a as l}from"./chunk-2FWFPV5I.js";import{a as c}from"./chunk-7JSHH4R2.js";import{fa as y,na as f,t as L,z as S}from"./chunk-4JRXN7L6.js";import{a as F}from"./chunk-7DCB7DB2.js";var g=class{enabledDragItem;constructor(){this.enabledDragItem=!1}drop(o,t){C(t.Data,o.previousIndex,o.currentIndex)}toggleEnabledDragItem(){}onSaveDragAndDrop(o,t){this.enabledDragItem=!this.enabledDragItem,this.enabledDragItem||t.postListID(o,t.data.Data)}onPutSaveDragAndDrop(o,t){this.enabledDragItem=!this.enabledDragItem,this.enabledDragItem||t.putListID(o,t.data.Data)}};var u=class{constructor(o){this.httpService=o}exportCSV(o,t,e,i){e.pageData.Filter.Export=!0,e.pageData.Filter.FormatType=0,i=i||"export.csv",this.httpService.post(`/api/${t}`,e.pageData.Filter).subscribe(r=>{o.convertToCSV(r,i),e.pageData.Filter.Export=!1})}convertToCSV(o,t=!1,e){let i=this.ExportDataFromUI2(t);o.convertToCSV(i,e)}ExportDataFromUI2(o=!1){let t=document.getElementById("tableGrid"),e=[];return c.IsNotEmpty(t)&&t.querySelectorAll("tr").forEach(r=>{let a=new Object,s=0;r.querySelectorAll("th, td").forEach(n=>{s++;let b=parseInt(n.getAttribute("colspan"));for(let h=1;h<b;h++)a["column"+s]="",s++;let m=n.innerText,v=m.toString().split("");if(o&&v[0]==="0"&&v.length>1){let h="'"+m.trim();a["column"+s]=h}else a["column"+s]=m.trim()}),e.push(a)}),e}};var d=class{listTotal;pageSize;show;constructor(){this.listTotal=0,this.pageSize=0,this.show=!1}changePaginationData(o){this.pageSize=o.pageData.Filter.RowCount,this.listTotal=o.data?.ListTotal??o.data?.Data?.total?.value,this.show=this.pageSize<=this.listTotal}changePage(o,t,e){t.Filter.PageNumber=o.pageIndex+1,e.getListData()}};var x=class extends A{constructor(t,e,i,r,a,s,p){super(t);this.httpService=e;this.dataAPI=i;this.pageAPI=r;this.toastrService=a;this.route=s;this.initOpenDialog=p;this.exportHandler=new u(e),r?(s&&(this.loaderPayload=F({ListIDs:this.reportFilterService?.initOutletFilter()},s.snapshot.queryParams)),this.preInitLoader(),S([this.menuData$,this.httpService.post("/api/"+this.pageAPI,this.loaderPayload)]).pipe(L(([n,b])=>b)).pipe(I()).subscribe(n=>{this.pageData=n,this.pageData.Filter||(this.pageData.Filter={},this.pageData.Filter.RowCount=20),this.pageData.Filter.PageNumber=1,this.pageData.Filter.ID=this.loaderPayload.ID,this.preInitList(),p?this.openDialogFilter.openDialog():this.getListData()})):(this.pageData.Filter.RowCount=20,this.pageData.Filter.PageNumber=1,this.preInitList(),S({menuData:this.menuData$,listData:this.getListData$()}).pipe(I()).subscribe())}openDialogFilter=f(w);reportFilterService=f(P);pageData={Filter:{},Options:{},Roles:{},Config:{}};data;pagination=new d;dragDrop=new g;exportHandler;comparation=0;loaderPayload={};preInitLoader(){}preInitList(){}getListData(t){this.preGetList(),this.dataAPI&&this.httpService.post("/api/"+this.dataAPI,this.pageData.Filter).subscribe(e=>{this.data=e,this.postInit(e),this.pagination.changePaginationData(this),t&&(this.pageData.HideStoreApiCount=!1)})}getListData$(t){return this.preGetList(),this.httpService.post("/api/"+this.dataAPI,this.pageData.Filter).pipe(y(e=>{this.data=e,this.postInit(e),this.pagination.changePaginationData(this),t&&(this.pageData.HideStoreApiCount=!1)}))}searchFromPageOne(){this.preSearchFromPageOne(),this.pageData.Filter.PageNumber=1,this.getListData("filterMode")}postInit(t){t.PageTitle!=null&&(this.menuData.H=t.PageTitle)}preGetList(){this.pageData.Filter.From==null&&(this.pageData.Filter.From=c.MinDate),this.pageData.Filter.To==null&&(this.pageData.Filter.To=c.MinDate)}preSearchFromPageOne(){}onPaginationChange(t){this.pagination.changePage(t,this.pageData,this)}onSelectAllData(t){this.data.Data=this.data.Data.map(e=>(e.selected=t,e))}getSelectedData(){let t=[];return this.data&&(t=this.data.Data.filter(e=>e.selected)),t}httpPostListID(t,e,i){if(e||(e="Are you sure you want to selected record/s?"),confirm(e)==!1)return;let r=this.getSelectedData();r.length>0&&this.postListID(t,r,i)}httpPutListID(t,e,i){if(e||(e="Are you sure you want to selected record/s?"),confirm(e)==!1)return;let r=this.getSelectedData();r.length>0&&this.putListID(t,r,i)}httpDeleteListID(t,e,i){if(e||(e="Are you sure you want to delete selected record/s?"),confirm(e)==!1)return;let r=this.getSelectedData();r.length>0&&this.DeleteListID(t,r,i)}onSaveDragAndDrop(t){this.dragDrop.onSaveDragAndDrop(t,this)}onPutSaveDragAndDrop(t){this.dragDrop.onPutSaveDragAndDrop(t,this)}postListID(t,e,i){let r=e.map(a=>i?a[i]:a.ID);this.httpService.post(`/api/${t}`,r,1e6,!0).subscribe(a=>{this.toastrService.success(a.Message?a.Message:a,l.Success),this.getListData()},a=>{let s=a.status+" "+a.statusText;this.toastrService.error(a.error.Message!=""?a.error.Message:"An unknown error has occured!",s,{enableHtml:!0})})}putListID(t,e,i){let r=e.map(a=>i?a[i]:a.ID);this.httpService.put(`/api/${t}`,r).subscribe(a=>{this.toastrService.success(a.Message?a.Message:a,l.Success),this.afterPutListSuccess(),this.getListData()})}afterPutListSuccess(){}DeleteListID(t,e,i){let r=e.map(a=>i?a[i]:a.ID);this.httpService.delete(`/api/${t}`,{body:r}).subscribe(a=>{this.toastrService.success(a.Message?a.Message:a,l.Success),this.getListData()})}postData(t,e){this.httpService.post("/API/"+t,e).subscribe(i=>{this.getListData(),this.toastrService.success(i.Message?i.Message:i,l.Success)})}compare(t,e,i){return(t<e?-1:1)*(i?1:-1)}exportCSV(t,e,i){this.exportHandler.exportCSV(t,e,this,i)}s2ab(t){for(var e=new ArrayBuffer(t.length),i=new Uint8Array(e),r=0;r!=t.length;++r)i[r]=t.charCodeAt(r)&255;return e}exportXlsx(t,e){this.pageData.Filter.FormatType=1,this.pageData.Filter.Export=!0,this.httpService.post(`/api/${t}`,this.pageData.Filter).subscribe(i=>{e=decodeURI(e);let r=window.URL.createObjectURL(new Blob([this.s2ab(atob(i))],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;base64,"})),a=document.createElement("a");a.href=r,a.setAttribute("download",e),document.body.appendChild(a),a.click(),window.URL.revokeObjectURL(r),a.remove()})}convertToCSV(t,e=!1,i){let r=this.exportHandler.ExportDataFromUI2(e);t.convertToCSV(r,i)}OnCompare(t){let e=t?this.data[t]:this.data;if(e.length<1)return;let i=Object.assign({},this.pageData.Filter);i.From=new Date(new Date(this.pageData.Filter.From).getFullYear(),new Date(this.pageData.Filter.From).getMonth()-1,1),i.To=new Date(new Date(this.pageData.Filter.To).getFullYear(),new Date(this.pageData.Filter.To).getMonth(),0).toDateString(),this.httpService.post("/API/"+this.dataAPI,i).subscribe(r=>{let a=t?r[t]:r;this.comparation=0,e.forEach(s=>{s.PrevIndex="-",s.CurrentIndex="-",s.Increase="-";let p=a.filter(n=>n.EntityID==s.EntityID);if(s.CurrentIndex=s.Rank,p.length>0){let n=p[0];s.PrevIndex=n.Rank,n.SalesNet?s.Increase=(s.SalesNet-n.SalesNet)/n.SalesNet*100:n.Sales&&(s.Increase=(s.Sales-n.Sales)/n.Sales*100),s.IsPositive=s.Increase>0,s.IsNegative=s.Increase<0,this.comparation+=s.Increase}})})}};export{x as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as yt,c as xt}from"./chunk-LAKOPFJU.js";import{a as wt}from"./chunk-SDIK6O2Z.js";import{a as P}from"./chunk-2FWFPV5I.js";import{ja as _t,ka as S,sa as ht}from"./chunk-4SXNNKVU.js";import{D as mt,E as gt,a as st,c as at,h as pt,i as lt,k as ut,o as ct,p as dt}from"./chunk-K2RY2UAW.js";import{a as ot}from"./chunk-
|
|
1
|
+
import{a as yt,c as xt}from"./chunk-LAKOPFJU.js";import{a as wt}from"./chunk-SDIK6O2Z.js";import{a as P}from"./chunk-2FWFPV5I.js";import{ja as _t,ka as S,sa as ht}from"./chunk-4SXNNKVU.js";import{D as mt,E as gt,a as st,c as at,h as pt,i as lt,k as ut,o as ct,p as dt}from"./chunk-K2RY2UAW.js";import{a as ot}from"./chunk-4IU2ZEUU.js";import{$a as l,$b as D,Ab as V,Fa as T,Ib as o,Jb as a,Kb as E,Lb as _,Mb as h,Mc as X,Nb as U,Ob as w,Qb as f,Qc as $,Qd as it,Rb as r,Vd as rt,Wc as I,Yb as A,Yc as tt,Yd as ft,Zc as M,_b as N,bc as q,bd as et,cc as K,db as j,ec as m,fc as Y,gb as W,gc as G,ia as R,ja as H,jc as C,jd as nt,ka as L,kb as O,kc as b,lb as z,lc as v,na as x,ob as Q,pc as Z,qb as g,sc as B,tc as J,va as c,vb as u,wa as d,za as F}from"./chunk-4JRXN7L6.js";import"./chunk-7DCB7DB2.js";var Ot=["input"],Et=(i,s,t)=>({$implicit:i,events:s,index:t});function It(i,s){if(i&1){let t=w();_(0),o(1,"input",2),f("input",function(n){c(t);let p=r().$implicit,y=r();return d(y.onInput(n,p-1))})("focus",function(n){c(t);let p=r(2);return d(p.onInputFocus(n))})("blur",function(n){c(t);let p=r(2);return d(p.onInputBlur(n))})("paste",function(n){c(t);let p=r(2);return d(p.onPaste(n))})("keydown",function(n){c(t);let p=r(2);return d(p.onKeyDown(n))}),a(),h()}if(i&2){let t=r().$implicit,e=r();l(),u("value",e.getModelValue(t))("maxLength",t===1?e.length:1)("type",e.inputType)("pSize",e.size)("variant",e.variant)("readonly",e.readonly)("disabled",e.disabled)("tabindex",e.tabindex)("pAutoFocus",e.getAutofocus(t))("ngClass",e.styleClass)}}function Mt(i,s){i&1&&U(0)}function St(i,s){if(i&1&&(_(0),g(1,Mt,1,0,"ng-container",3),h()),i&2){let t=r().$implicit,e=r();l(),u("ngTemplateOutlet",e.inputTemplate||e._inputTemplate)("ngTemplateOutletContext",J(2,Et,e.getToken(t-1),e.getTemplateEvents(t-1),t))}}function kt(i,s){if(i&1&&(_(0),g(1,It,2,10,"ng-container",1)(2,St,2,6,"ng-container",1),h()),i&2){let t=r();l(),u("ngIf",!t.inputTemplate&&!t._inputTemplate),l(),u("ngIf",t.inputTemplate||t._inputTemplate)}}var Ft=({dt:i})=>`
|
|
2
2
|
.p-inputotp {
|
|
3
3
|
display: flex;
|
|
4
4
|
align-items: center;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as N,c as D}from"./chunk-
|
|
1
|
+
import{a as N,c as D}from"./chunk-KF4IOF5W.js";import{a as p}from"./chunk-7JSHH4R2.js";import{$a as n,Ib as c,Jb as l,Qd as M,Rb as d,Rd as C,Sc as g,Td as I,Wc as v,Zc as f,db as o,ec as u,gc as h,jd as E,kb as m,qb as S,qc as y,rc as a,vb as r,zb as b}from"./chunk-4JRXN7L6.js";var _=e=>({"pe-none":e}),O=()=>["/menu/Profile/Main/My_Subscription"],k=e=>({"text-decoration-none":e}),A=e=>({"text-capitalize":e});function L(e,i){if(e&1&&(c(0,"div",1)(1,"h5",2),u(2),c(3,"a",3)(4,"u",4)(5,"span",4),u(6,"please"),l(),u(7," process your payment! "),l()()()()),e&2){let t=d();b("alert rounded-0 mb-0 text-center border-bottom "+(t.subscriptionState==null?null:t.subscriptionState.class)),n(2),h(" ",t.subscriptionState==null?null:t.subscriptionState.message," "),n(),r("ngClass",a(7,_,t.isMySubscriptionMenu))("routerLink",y(9,O)),n(),r("ngClass",a(10,k,t.isMySubscriptionMenu)),n(),r("ngClass",a(12,A,t.isNotEmpty(t.currentSubStatus)&&t.currentSubStatus!=t.subsStatusEnum.OVERDUE))}}var x=class e{constructor(i,t,s){this.document=i;this.router=t;this.authService=s}subscriptionStatus;subscriptionState;currentSubStatus;subsStatusEnum=N;isMySubscriptionMenu;htmlStyleElement;htmlBodyElement;ngOnInit(){this.checkMySubscriptionMenu(),this.initSubscriptionStatus(),this.getCurrentSubscriptionStatus()}getCurrentSubscriptionStatus(){this.overrideCssStickyHeader()}checkMySubscriptionMenu(){this.isMySubscriptionMenu=!1,this.router.url.includes("/Profile/Main/My_Subscription")&&(this.isMySubscriptionMenu=!0)}isNotEmpty(i){return p.IsNotEmpty(i)}overrideCssStickyHeader(){if(p.IsNotEmpty(this.currentSubStatus)&&this.currentSubStatus!==0){let i=`.sticky-top-thead th {
|
|
2
2
|
top: 100px !important;
|
|
3
3
|
z-index: 1020;
|
|
4
4
|
}`;this.htmlBodyElement=this.document.getElementsByTagName("body")[0],this.htmlStyleElement=this.document.createElement("style"),this.htmlStyleElement.appendChild(this.document.createTextNode(i)),this.htmlBodyElement.appendChild(this.htmlStyleElement)}}initSubscriptionStatus(){this.currentSubStatus=this.authService.getSubscriptionStatus(),this.subscriptionStatus=[{status:1,class:"alert-warning",message:"Your subscription is overdue. To avoid suspension, "},{status:2,class:"alert-danger",message:"Your subscription is partially suspended."},{status:3,class:"alert-danger",message:"Your subscription is suspended."}],this.subscriptionState=this.subscriptionStatus.filter(i=>i.status==this.currentSubStatus)[0]}ngOnDestroy(){this.htmlBodyElement&&this.htmlBodyElement.removeChild(this.htmlStyleElement)}static \u0275fac=function(t){return new(t||e)(o(g),o(M),o(D))};static \u0275cmp=m({type:e,selectors:[["subscription-alert"]],decls:1,vars:1,consts:[["role","alert",3,"class",4,"ngIf"],["role","alert"],[1,"fw-normal"],[1,"alert-link",3,"ngClass","routerLink"],[3,"ngClass"]],template:function(t,s){t&1&&S(0,L,8,14,"div",0),t&2&&r("ngIf",(s.subscriptionState==null?null:s.subscriptionState.status)==s.currentSubStatus&&s.isNotEmpty(s.currentSubStatus))},dependencies:[E,v,f,I,C],encapsulation:2})};export{x as a};
|