dealpos 25.43.2 → 25.43.3
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-HJVO2MYG.js → chunk-2T23RRH7.js} +1 -1
- package/browser/{chunk-HFYSK74N.js → chunk-2U6TFCQR.js} +1 -1
- package/browser/{chunk-4QQF4IJE.js → chunk-3BEMJU35.js} +1 -1
- package/browser/{chunk-BJ4ZY3VJ.js → chunk-3CI52E2L.js} +1 -1
- package/browser/{chunk-6VOFZE3V.js → chunk-3TC5WDAM.js} +1 -1
- package/browser/{chunk-S4IKR42Q.js → chunk-4DFXK2JY.js} +1 -1
- package/browser/{chunk-KIQXPGXN.js → chunk-4PXYKNOZ.js} +1 -1
- package/browser/{chunk-BPWQFTXE.js → chunk-5M2ONNSI.js} +1 -1
- package/browser/{chunk-AXLH4KKX.js → chunk-5QOOHCTV.js} +2 -2
- package/browser/{chunk-FXKRIVYT.js → chunk-5QSXC4W7.js} +1 -1
- package/browser/{chunk-FYACJ2YI.js → chunk-6VVDV6OB.js} +1 -1
- package/browser/{chunk-2LMF4IMC.js → chunk-6WOSPTAY.js} +1 -1
- package/browser/{chunk-MSBIWISH.js → chunk-7ISTXFAJ.js} +1 -1
- package/browser/{chunk-PGSKQYIL.js → chunk-7TQ35BHS.js} +1 -1
- package/browser/{chunk-DK44EJTX.js → chunk-BZCRY5I3.js} +1 -1
- package/browser/{chunk-KTD4OMXY.js → chunk-CFXUVQEK.js} +1 -1
- package/browser/{chunk-YEAPJ2OC.js → chunk-E72S2LHD.js} +1 -1
- package/browser/{chunk-FSTDHLYH.js → chunk-ECHIQUJ3.js} +1 -1
- package/browser/{chunk-ROR3RTY5.js → chunk-EDNG7F5W.js} +2 -2
- package/browser/{chunk-6KPCTTDA.js → chunk-EGX4E74T.js} +1 -1
- package/browser/{chunk-ON5DTHAP.js → chunk-EPLTC3XW.js} +1 -1
- package/browser/{chunk-O2QDJGKT.js → chunk-EUUECKIR.js} +1 -1
- package/browser/{chunk-OB764IZP.js → chunk-F3BESYJ7.js} +1 -1
- package/browser/{chunk-V73DMOF7.js → chunk-F53IFT2D.js} +1 -1
- package/browser/{chunk-6EOWD655.js → chunk-FT6SO2N5.js} +1 -1
- package/browser/{chunk-CURYSM3Y.js → chunk-H7S2QFVB.js} +1 -1
- package/browser/{chunk-L7IGIQVH.js → chunk-HN3SNXCS.js} +2 -2
- package/browser/{chunk-346EL5B3.js → chunk-HZ2RZ5MO.js} +1 -1
- package/browser/{chunk-ITUXL4IU.js → chunk-ICEJAH2W.js} +1 -1
- package/browser/{chunk-K5KGHSAP.js → chunk-IIQ6LDWB.js} +1 -1
- package/browser/{chunk-B6STMZWX.js → chunk-IPIYHMST.js} +1 -1
- package/browser/{chunk-IFFXFKVP.js → chunk-IRPBE2LR.js} +6 -6
- package/browser/{chunk-RP455IK5.js → chunk-IXGB2FJD.js} +1 -1
- package/browser/{chunk-DKDOVSVH.js → chunk-JFO7BKSD.js} +1 -1
- package/browser/{chunk-5YUUUZD3.js → chunk-JH7RSTLL.js} +1 -1
- package/browser/{chunk-6FSVJ3O6.js → chunk-JQ2CTBYN.js} +1 -1
- package/browser/{chunk-ZEQ2QQEK.js → chunk-KTN2QAG5.js} +1 -1
- package/browser/{chunk-N4FKAPLW.js → chunk-LHAAHTCW.js} +1 -1
- package/browser/{chunk-WEGDL4GR.js → chunk-LOCMI7X3.js} +1 -1
- package/browser/{chunk-I3YPVX5L.js → chunk-LRUNSERJ.js} +1 -1
- package/browser/{chunk-VPFQM3LL.js → chunk-LTBIATTB.js} +1 -1
- package/browser/{chunk-SEXUIUP5.js → chunk-LWDKTKIO.js} +1 -1
- package/browser/{chunk-EJDRY7MH.js → chunk-MXY6MJSV.js} +1 -1
- package/browser/chunk-NO54NIU2.js +1 -0
- package/browser/{chunk-2HUEFC2T.js → chunk-O2OM4KZ4.js} +1 -1
- package/browser/{chunk-INZKDGM2.js → chunk-OCZ26AJX.js} +2 -2
- package/browser/{chunk-3XR3MVQE.js → chunk-P2VNALSH.js} +1 -1
- package/browser/{chunk-I7HV744J.js → chunk-P4YX3O6Z.js} +1 -1
- package/browser/{chunk-FSXDAB7C.js → chunk-PDITH6YS.js} +1 -1
- package/browser/{chunk-QSWKUXSH.js → chunk-PH5UUPBH.js} +1 -1
- package/browser/{chunk-SYQCAXOC.js → chunk-PIH6FRU7.js} +1 -1
- package/browser/{chunk-KUN2P3RN.js → chunk-QNV4IQZO.js} +1 -1
- package/browser/{chunk-ZZVT4VHZ.js → chunk-QXNKJEFJ.js} +1 -1
- package/browser/{chunk-BJMIDKW4.js → chunk-R4CKFZOX.js} +1 -1
- package/browser/{chunk-ACD7MZMQ.js → chunk-RCIKNBK5.js} +2 -2
- package/browser/{chunk-5EEOIYLP.js → chunk-RPMNLKME.js} +1 -1
- package/browser/{chunk-4RRARGON.js → chunk-RTTAC3D7.js} +2 -2
- package/browser/{chunk-XTL4S3XK.js → chunk-RWTASQKI.js} +1 -1
- package/browser/{chunk-T4OMGJF4.js → chunk-RXPJH2TJ.js} +1 -1
- package/browser/{chunk-NSXCBKM4.js → chunk-SDYCFHGV.js} +1 -1
- package/browser/{chunk-LDF4ZCJN.js → chunk-TDEZNO6A.js} +1 -1
- package/browser/{chunk-QVTFZ7LA.js → chunk-TPXHRKLW.js} +1 -1
- package/browser/{chunk-ZT3ATOCA.js → chunk-U2WXP62J.js} +1 -1
- package/browser/{chunk-7527AL7Q.js → chunk-U4J2CGHT.js} +1 -1
- package/browser/{chunk-5YJ2OEBF.js → chunk-UA4GJ4QW.js} +1 -1
- package/browser/{chunk-ZMOEZBOV.js → chunk-UIBALHRL.js} +1 -1
- package/browser/{chunk-JEZGFXOM.js → chunk-UM56IRZ7.js} +1 -1
- package/browser/{chunk-AWSD3VOK.js → chunk-UO2WS3FY.js} +1 -1
- package/browser/{chunk-HKUGK6HF.js → chunk-V4GG2QDB.js} +1 -1
- package/browser/{chunk-HMU3DWZJ.js → chunk-V6GJ3FHO.js} +1 -1
- package/browser/{chunk-A7FNJM6G.js → chunk-VA763X6D.js} +1 -1
- package/browser/{chunk-CFSBMQ5D.js → chunk-VGJS2WAH.js} +2 -2
- package/browser/{chunk-CODMBGPI.js → chunk-VNS7H2EW.js} +2 -2
- package/browser/{chunk-LAFPISY6.js → chunk-VO4FGSHM.js} +1 -1
- package/browser/{chunk-PBEIFRAA.js → chunk-WBQBYKK5.js} +1 -1
- package/browser/{chunk-R4CTK5NZ.js → chunk-WMJJC6JF.js} +1 -1
- package/browser/{chunk-MBA7MORK.js → chunk-X3KF7Z7X.js} +1 -1
- package/browser/{chunk-X5OST3RI.js → chunk-X6LAB5QB.js} +1 -1
- package/browser/{chunk-NUV6F5WN.js → chunk-YADEYTZ3.js} +1 -1
- package/browser/{chunk-EKDNW5AX.js → chunk-YKYFZMSN.js} +1 -1
- package/browser/{chunk-CSLHA6EL.js → chunk-YL5C4Q63.js} +1 -1
- package/browser/{chunk-BCMMSVJJ.js → chunk-YV7CUPB7.js} +1 -1
- package/browser/{chunk-6HXB7UO4.js → chunk-ZGBJCXMB.js} +1 -1
- package/browser/{chunk-2QU24F5P.js → chunk-ZHRB7E57.js} +1 -1
- package/browser/index.html +2 -2
- package/browser/{main-QGKQ75P4.js → main-ZBDFYIFR.js} +2 -2
- package/package.json +1 -1
- package/browser/chunk-TE3WGV2Q.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as Ge}from"./chunk-TSEZZNO5.js";import{a as Ae,f as Ne}from"./chunk-FYACJ2YI.js";import{b as Le,c as Re,d as Be,e as We,f as je,g as ze}from"./chunk-6CWGCLY5.js";import"./chunk-O2QTP22K.js";import{b as $e}from"./chunk-YRGGDRUH.js";import"./chunk-Q4CKRRGM.js";import"./chunk-PIYM2FOP.js";import{d as Fe}from"./chunk-2OWHEMAL.js";import"./chunk-XZELBTQR.js";import"./chunk-B5SDXVDR.js";import"./chunk-BCMMSVJJ.js";import"./chunk-L7YSVT7G.js";import"./chunk-RX7JS4CO.js";import{b as xe}from"./chunk-XBRBYCWJ.js";import"./chunk-3RK6DDJD.js";import{a as he}from"./chunk-FP4HFB5J.js";import"./chunk-YEDKRNXU.js";import{d as Se}from"./chunk-VZEPVRCY.js";import"./chunk-7QWJJPNG.js";import{b as De,c as ke,e as Ue,f as Ve}from"./chunk-QVTFZ7LA.js";import"./chunk-FSXDAB7C.js";import"./chunk-5JJSLRVS.js";import"./chunk-CWITQVZH.js";import"./chunk-LMJVRREP.js";import"./chunk-3LBZDIW2.js";import"./chunk-KTCV3KOE.js";import"./chunk-KZDE63UL.js";import{d as Pe,e as Oe}from"./chunk-EJDRY7MH.js";import{a as be,b as Ee}from"./chunk-DK44EJTX.js";import"./chunk-3GOO5E5D.js";import"./chunk-XMYLHF4C.js";import{u as ye,v as Te,w as Me}from"./chunk-H7F34T25.js";import"./chunk-JOXTERIM.js";import{O as H}from"./chunk-TSIYPTYI.js";import{e as we,f as ve,g as Ie}from"./chunk-3YKVLHZG.js";import"./chunk-ZHY3BUQJ.js";import"./chunk-VFTGIP5A.js";import"./chunk-LE3BKIDY.js";import"./chunk-2FWFPV5I.js";import{la as Ce}from"./chunk-EEEAUYZ6.js";import{F as L,G as fe,h as ue,o as _e}from"./chunk-RVXZOIFQ.js";import"./chunk-FSTDHLYH.js";import"./chunk-WEGDL4GR.js";import"./chunk-ZZGSAFGO.js";import"./chunk-346EL5B3.js";import{$a as a,$b as A,Ac as S,Bc as ae,Db as b,E as K,Eb as te,Gb as ie,Hb as ne,I as Y,Ia as $,Ib as n,Ja as k,Jb as o,Kb as x,Lb as y,Ma as U,Mb as T,Ob as h,Qb as f,Rb as d,Sb as oe,Tb as Q,Wa as X,Wc as me,Y as j,Yd as ge,Zb as V,Zc as se,_b as F,aa as J,cd as de,db as G,dc as N,ec as l,fa as z,fc as c,gc as w,gd as ce,jc as P,jd as M,k as q,kb as I,kc as O,lc as D,na as E,ob as Z,qb as C,qc as re,rc as le,tc as pe,va as u,vb as s,wa as _,xb as ee,zc as g}from"./chunk-UXRO4UFY.js";import"./chunk-7DCB7DB2.js";var Ye=["stepperRef"],Je=[[["preview"]],[["complete"]]],Xe=["preview","complete"];function Ze(t,r){if(t&1&&l(0),t&2){let e=r.index;c(e+1)}}function et(t,r){if(t&1&&l(0),t&2){let e=r.index;c(e+1)}}function tt(t,r){if(t&1&&l(0),t&2){let e=r.index;c(e+1)}}function it(t,r){t&1&&(x(0,"i",8),n(1,"span"),l(2,"Upload"),o())}function nt(t,r){if(t&1){let e=h();n(0,"div",9)(1,"div",10)(2,"POS-uppy",11),f("fileUploaded",function(i){u(e);let m=d(2);return _(m.onDropFile(i))}),o()(),n(3,"div",12)(4,"p",13),l(5," Please refer this "),n(6,"a",14),l(7,"article"),o(),l(8," for more information "),o()()()}if(t&2){let e=d(2);a(2),s("sampleUrl",e.sampleUrl())("subtitle","Accepted file formats: .csv & max file size: 1 MB"),a(4),s("href",e.articleLink(),X)}}function ot(t,r){if(t&1&&C(0,nt,9,3,"div",9),t&2){d();let e=N(1);b(e.selectedIndex===0?0:-1)}}function rt(t,r){if(t&1&&l(0),t&2){let e=r.index;c(e+1)}}function lt(t,r){if(t&1&&l(0),t&2){let e=r.index;c(e+1)}}function pt(t,r){if(t&1&&l(0),t&2){let e=r.index;c(e+1)}}function at(t,r){t&1&&(x(0,"i",15),n(1,"span"),l(2,"Preview"),o())}function mt(t,r){t&1&&Q(0)}function st(t,r){if(t&1&&l(0),t&2){let e=r.index;c(e+1)}}function dt(t,r){if(t&1&&l(0),t&2){let e=r.index;c(e+1)}}function ct(t,r){if(t&1&&l(0),t&2){let e=r.index;c(e+1)}}function ut(t,r){t&1&&(x(0,"i",16),n(1,"span"),l(2,"Finish"),o())}function _t(t,r){t&1&&Q(0,1)}var R=class t{sampleUrl=k();articleLink=k();_onDropFile=$({alias:"onDropFile"});disabledEdit=k(!1);_onStateChange=$({alias:"onStateChange"});_stepper;get stepper(){return this._stepper}nextStep(){this._stepper&&(this.stepper.selected.completed=!0,this._stepper.next())}previousStep(){this._stepper&&this._stepper.previous()}resetStep(){this._stepper&&this._stepper.reset()}onStepChange(r){r.selectedIndex===1?this._onStateChange.emit(1):r.selectedIndex===2?this._onStateChange.emit(2):this._onStateChange.emit(0)}onDropFile(r){this._onDropFile.emit(r)}onRemoveFile(){}stateUpload(){}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=I({type:t,selectors:[["pos-import-stepper"]],viewQuery:function(e,p){if(e&1&&V(Ye,5),e&2){let i;F(i=A())&&(p._stepper=i.first)}},inputs:{sampleUrl:[1,"sampleUrl"],articleLink:[1,"articleLink"],disabledEdit:[1,"disabledEdit"]},outputs:{_onDropFile:"onDropFile",_onStateChange:"onStateChange"},ngContentSelectors:Xe,decls:20,vars:7,consts:[["stepperRef",""],[3,"selectionChange","linear"],[3,"completed","editable"],["matStepperIcon","done"],["matStepperIcon","create"],["matStepperIcon","edit"],["matStepLabel",""],["matStepContent",""],[1,"fa-solid","fa-upload","me-3"],[1,"d-flex","flex-column","align-items-center","justify-content-center","gap-2"],[2,"max-width","580px"],["file","",3,"fileUploaded","sampleUrl","subtitle"],[1,"d-flex","w-100",2,"max-width","580px"],[1,"fst-italic"],["target","_blank",3,"href"],[1,"fa-regular","fa-file","me-3"],[1,"fa-solid","fa-check","me-3"]],template:function(e,p){if(e&1){let i=h();oe(Je),n(0,"mat-stepper",1,0),f("selectionChange",function(v){return u(i),_(p.onStepChange(v))}),n(2,"mat-step",2),C(3,Ze,1,1,"ng-template",3)(4,et,1,1,"ng-template",4)(5,tt,1,1,"ng-template",5)(6,it,3,0,"ng-template",6)(7,ot,1,1,"ng-template",7),o(),n(8,"mat-step",2),C(9,rt,1,1,"ng-template",3)(10,lt,1,1,"ng-template",4)(11,pt,1,1,"ng-template",5)(12,at,3,0,"ng-template",6)(13,mt,1,0,"ng-template",7),o(),n(14,"mat-step",2),C(15,st,1,1,"ng-template",3)(16,dt,1,1,"ng-template",4)(17,ct,1,1,"ng-template",5)(18,ut,3,0,"ng-template",6)(19,_t,1,0,"ng-template",7),o()()}e&2&&(s("linear",!0),a(2),s("completed",!1)("editable",!p.disabledEdit()),a(6),s("completed",!1)("editable",!p.disabledEdit()),a(6),s("completed",!1)("editable",!1))},dependencies:[M,Se,L,fe,he,xe,$e,Fe,ze,We,Le,je,Re,Be],styles:[".mat-horizontal-stepper-header-container{width:50%!important;margin:0 auto} .mat-horizontal-stepper-wrapper{gap:1rem} .mat-horizontal-stepper-content{display:flex;justify-content:center} p-table .p-datatable-tbody>tr{border-bottom-width:1px;border-color:#dee2e6} p-table .p-datatable-tbody>tr>th{font-family:Roboto,system-ui!important;font-weight:400;font-style:normal} .p-datatable .p-datatable-wrapper .p-datatable-table .p-datatable-thead>tr>th{font-family:Roboto,Courier,monospace;font-weight:700;font-style:normal;color:#333} .p-datatable .p-datatable-wrapper .p-datatable-table .p-datatable-tbody>tr>td{font-family:Roboto,Courier,monospace;font-weight:400;font-style:normal;color:#333}"]})};var B=class t{configModal=new ye;dialogRef=E(we);data=E(ve);constructor(){this.initDialogConfig()}initDialogConfig(){this.configModal.title="Preview Summary",this.configModal.hideCancel=!0,this.configModal.okText="Import (F2)",this.configModal.customWidth="500px"}onOk(){this.dialogRef.close(!0)}onClose(){this.dialogRef.close(!1)}ngOnInit(){}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=I({type:t,selectors:[["app-dialog-import-preview"]],decls:30,vars:10,consts:[[3,"onOk","onCancel","onClose","config"],[1,"card","mb-0"],[1,"card-header","py-6","bg-gradient-success"],[1,"card-body"],[1,"row"],[1,"col"],[1,"d-flex","flex-column","gap-2"],[2,"font-size","1.9rem"],[2,"font-size","1rem"]],template:function(e,p){e&1&&(n(0,"modal-material",0),f("onOk",function(){return p.onOk()})("onCancel",function(){return p.onClose()})("onClose",function(){return p.onClose()}),x(1,"header"),n(2,"content")(3,"div",1)(4,"div",2)(5,"h3"),l(6,"Import Summary"),o()(),n(7,"div",3)(8,"div",4)(9,"div",5)(10,"div",6)(11,"span",7),l(12),g(13,"number"),o(),n(14,"span",8),l(15,"New Outlet"),o()()(),n(16,"div",5)(17,"div",6)(18,"span",7),l(19),g(20,"number"),o(),n(21,"span",8),l(22,"Update Outlet"),o()()(),n(23,"div",5)(24,"div",6)(25,"span",7),l(26),g(27,"number"),o(),n(28,"span",8),l(29,"New Outlet Group"),o()()()()()()()()),e&2&&(s("config",p.configModal),a(12),c(S(13,4,p.data==null?null:p.data.new)),a(7),c(S(20,6,p.data==null?null:p.data.update)),a(7),c(S(27,8,p.data==null?null:p.data.newOutletGroup)))},dependencies:[M,ce,Me,Te],encapsulation:2})};var gt=["importStepper"],Ct=()=>({"min-width":"50rem"}),St=(t,r,e)=>({"btn-success":t,"btn-outline-secondary":r,"not-allowed":e}),ht=t=>({"mb-1":t});function xt(t,r){if(t&1){let e=h();n(0,"button",14),f("click",function(){u(e);let i=d();return _(i.onPreviousStep())}),l(1," Back "),o()}}function bt(t,r){if(t&1){let e=h();n(0,"button",15),g(1,"async"),g(2,"async"),f("click",function(){u(e);let i=d();return _(i.onNextStep())}),l(3," Next "),o()}if(t&2){let e,p,i=d();s("ngClass",pe(6,St,i.currentState()===1,i.currentState()!==1,!((e=S(1,2,i.importPreview$))!=null&&e.CanProceed)))("disabled",!((p=S(2,4,i.importPreview$))!=null&&p.CanProceed)&&i.currentState()===1)}}function wt(t,r){if(t&1){let e=h();n(0,"button",14),f("click",function(){u(e);let i=d();return _(i.onReset())}),l(1," New "),o()}}function vt(t,r){if(t&1){let e=h();n(0,"tr")(1,"th",16),l(2,"Name"),o(),n(3,"th",17),l(4,"Code"),o(),n(5,"th",18),l(6," Status "),n(7,"i",19),f("click",function(i){u(e);let m=N(9);return _(m.toggle(i))}),o(),n(8,"p-popover",null,1)(10,"div",20)(11,"div",21)(12,"p-checkbox",22),f("ngModelChange",function(i){u(e);let m=d();return _(m.selectAll(i))}),o(),n(13,"label",23),l(14,"All"),o()(),n(15,"div",24)(16,"p-checkbox",25),D("ngModelChange",function(i){u(e);let m=d();return O(m.filterTreeCondition,i)||(m.filterTreeCondition=i),_(i)}),o(),n(17,"label",26),l(18,"Unchanged"),o()(),n(19,"div",24)(20,"p-checkbox",27),D("ngModelChange",function(i){u(e);let m=d();return O(m.filterTreeCondition,i)||(m.filterTreeCondition=i),_(i)}),o(),n(21,"label",28),l(22,"New"),o()(),n(23,"div",24)(24,"p-checkbox",29),D("ngModelChange",function(i){u(e);let m=d();return O(m.filterTreeCondition,i)||(m.filterTreeCondition=i),_(i)}),o(),n(25,"label",30),l(26,"Error"),o()(),n(27,"div",24)(28,"p-checkbox",31),D("ngModelChange",function(i){u(e);let m=d();return O(m.filterTreeCondition,i)||(m.filterTreeCondition=i),_(i)}),o(),n(29,"label",32),l(30,"Update"),o()()()()(),n(31,"th"),l(32,"Message"),o()()}if(t&2){let e=d();a(12),s("ngModel",e.pickAll),a(4),P("ngModel",e.filterTreeCondition),a(4),P("ngModel",e.filterTreeCondition),a(4),P("ngModel",e.filterTreeCondition),a(4),P("ngModel",e.filterTreeCondition)}}function It(t,r){if(t&1&&(n(0,"div",33)(1,"span",34),l(2),o(),n(3,"span"),l(4),o()()),t&2){let e=r.$implicit,p=r.$index,i=d().$implicit;s("ngClass",le(3,ht,p<i.Issues.length-1)),a(2),w(" ",e.Issue,". "),a(2),w("",e.Solution," ")}}function yt(t,r){if(t&1&&(n(0,"tr")(1,"td"),l(2),o(),n(3,"td"),l(4),o(),n(5,"td"),l(6),o(),n(7,"td"),ie(8,It,5,5,"div",33,te),o()()),t&2){let e=r.$implicit;a(2),c(e.Name),a(2),c(e.Code),a(),ee("bg-gradient-success",e.Action=="New")("bg-gradient-warning",e.Action=="Update")("bg-gradient-danger",e.Action=="Error"),a(),w(" ",e.Action," "),a(2),ne(e.Issues)}}function Tt(t,r){if(t&1&&(y(0),n(1,"div",38)(2,"span"),l(3),o(),l(4,", "),n(5,"span"),l(6),o(),n(7,"span"),l(8),o(),n(9,"span"),l(10,"succesfully imported"),o()(),T()),t&2){let e=r.ngIf;a(3),w("",e==null?null:e.Summary.NewOutlet," New Outlets"),a(3),w("",e==null?null:e.Summary.UpdateOutlet," Updated Outlets"),a(2),w("and ",e==null?null:e.Summary.NewOutletGroup," New Outlet Group")}}function Mt(t,r){if(t&1&&(n(0,"div",13),x(1,"i",35),n(2,"h1",36),l(3,"Upload Complete!"),o(),C(4,Tt,11,3,"ng-container",37),g(5,"async"),o()),t&2){let e=d();a(4),s("ngIf",S(5,1,e.importPreview$))}}var qe=class t extends be{constructor(e,p){super(e);this.httpService=p;this.menuData$.subscribe()}pickAll=["All"];filterTreeCondition=["Unchanged","New","Error","Update"];importStepper;fileToImport=U(null);importPreview$;sampleUrl="https://cdn.dealpos.xyz/web-import-template/Outlet_Import_Template.csv";articleLink="https://support.dealpos.com/en/articles/11069092-import-new-outlet";currentState=U(0);confirmImport$;importPreview=U(null);dialog=E(Ie);onDropFile(e){this.fileToImport.set(e)}onNextStep(){switch(this.currentState()){case 0:this.onPreviewImport();break;case 1:this.onImport();break;default:break}}onPreviousStep(){this.importStepper.previousStep()}onReset(){this.importPreview.set(null),this.importPreview$=null,this.confirmImport$=null,this.fileToImport.set(null),this.currentState.update(()=>0),this.importStepper.resetStep()}onStateChange(e){this.currentState.update(()=>e)}onPreviewImport(){this.pickAll=["All"],this.filterTreeCondition=["Unchanged","New","Error","Update"];let e=new FormData;e.append("file",this.fileToImport()),this.importPreview$=this.httpService.postFormData(H.previewImportOutlet,e).pipe(z(p=>{this.importPreview.set(p),this.importStepper.nextStep()}),j(1))}onImport(){this.confirmImport$=this.dialog.open(B,{data:{new:this.importPreview()?.Summary?.NewOutlet,update:this.importPreview()?.Summary?.UpdateOutlet,newOutletGroup:this.importPreview()?.Summary?.NewOutletGroup}}).afterClosed().pipe(K(e=>e==!0),J(()=>this.httpService.post(H.importOutlet,{CacheKey:this.importPreview()?.CacheKey})),z(e=>{this.importStepper.nextStep()}),Y(e=>(this.pickAll=[],this.filterTreeCondition=["Error"],q)),j(1))}selectAll(e){this.pickAll=e,this.pickAll.length==0?this.filterTreeCondition=[]:this.filterTreeCondition=["Unchanged","New","Error","Update"]}static \u0275fac=function(p){return new(p||t)(G(Ee),G(ge))};static \u0275cmp=I({type:t,selectors:[["app-outlet-import"]],viewQuery:function(p,i){if(p&1&&V(gt,5),p&2){let m;F(m=A())&&(i.importStepper=m.first)}},features:[Z],decls:17,vars:21,consts:[["importStepper",""],["op",""],[3,"pageData","hideSearchBox","hideSearchDropdown"],["ngProjectAs","actions",5,["actions"]],["type","button",1,"btn","btn-outline-secondary"],[1,"btn",3,"ngClass","disabled"],["ngProjectAs","content",5,["content"]],[3,"onDropFile","onStateChange","sampleUrl","disabledEdit","articleLink"],["ngProjectAs","preview",5,["preview"]],[1,"w-100",3,"value","scrollable","tableStyle"],["pTemplate","header"],["pTemplate","body"],["ngProjectAs","complete",5,["complete"]],[1,"d-flex","flex-column","align-items-center"],["type","button",1,"btn","btn-outline-secondary",3,"click"],[1,"btn",3,"click","ngClass","disabled"],[2,"width","300px"],[2,"width","200px"],[2,"width","100px"],[1,"fa","fa-filter","pointer",3,"click"],[2,"width","150px"],[1,"border-bottom","pb-3","d-flex","align-items-center","column-gap-3"],["label","Select All","name","filterTreeCondition","value","All","inputId","all",3,"ngModelChange","ngModel"],["for","all",1,"ms-2"],[1,"mt-4","d-flex","align-items-center","column-gap-3"],["label","Unchanged","name","filterTreeCondition","value","Unchanged","inputId","unchanged",3,"ngModelChange","ngModel"],["for","unchanged",1,"ms-2"],["label","New","name","filterTreeCondition","value","New","inputId","new",3,"ngModelChange","ngModel"],["for","new",1,"ms-2"],["label","Error","name","filterTreeCondition","value","Error","inputId","error",3,"ngModelChange","ngModel"],["for","error",1,"ms-2"],["label","Updated","name","filterTreeCondition","value","Update","inputId","update",3,"ngModelChange","ngModel"],["for","update",1,"ms-2"],[3,"ngClass"],[1,"me-1"],[1,"fa-solid","fa-circle-check","text-success",2,"font-size","110px"],[1,"mt-8"],[4,"ngIf"],[1,"d-flex","gap-2","fw-normal","fs-4","mt-2"]],template:function(p,i){if(p&1){let m=h();n(0,"mainpanel-cmp",2),y(1,3),C(2,xt,2,0,"button",4)(3,bt,4,10,"button",5)(4,wt,2,0,"button",4),T(),y(5,6),n(6,"pos-import-stepper",7,0),f("onDropFile",function(W){return u(m),_(i.onDropFile(W))})("onStateChange",function(W){return u(m),_(i.onStateChange(W))}),y(8,8),n(9,"p-table",9),g(10,"async"),g(11,"filterTree"),C(12,vt,33,5,"ng-template",10)(13,yt,10,9,"ng-template",11),o(),T(),y(14,12),C(15,Mt,6,3,"div",13),g(16,"async"),T(),o(),T(),o()}if(p&2){let m,v;s("pageData",i.menuData)("hideSearchBox",!0)("hideSearchDropdown",!0),a(2),b(i.currentState()==1?2:-1),a(),b(i.fileToImport()&&((m=i.fileToImport())==null?null:m.size)>0&&i.currentState()<2?3:-1),a(),b(i.currentState()===2?4:-1),a(2),s("sampleUrl",i.sampleUrl)("disabledEdit",i.currentState()===2)("articleLink",i.articleLink),a(3),s("value",ae(11,15,(v=S(10,13,i.importPreview$))==null?null:v.DataRow,i.filterTreeCondition))("scrollable",!0)("tableStyle",re(20,Ct)),a(6),b(S(16,18,i.confirmImport$)?15:-1)}},dependencies:[M,me,se,de,R,Ve,Ue,Ne,Ae,Ce,Oe,Pe,L,ue,_e,ke,De,Ge],encapsulation:2})};export{qe as OutletImportComponent};
|
|
1
|
+
import{a as Ge}from"./chunk-TSEZZNO5.js";import{a as Ae,f as Ne}from"./chunk-6VVDV6OB.js";import{b as Le,c as Re,d as Be,e as We,f as je,g as ze}from"./chunk-6CWGCLY5.js";import"./chunk-O2QTP22K.js";import{b as $e}from"./chunk-YRGGDRUH.js";import"./chunk-Q4CKRRGM.js";import"./chunk-PIYM2FOP.js";import{d as Fe}from"./chunk-2OWHEMAL.js";import"./chunk-XZELBTQR.js";import"./chunk-B5SDXVDR.js";import"./chunk-YV7CUPB7.js";import"./chunk-L7YSVT7G.js";import"./chunk-RX7JS4CO.js";import{b as xe}from"./chunk-XBRBYCWJ.js";import"./chunk-3RK6DDJD.js";import{a as he}from"./chunk-FP4HFB5J.js";import"./chunk-YEDKRNXU.js";import{d as Se}from"./chunk-VZEPVRCY.js";import"./chunk-7QWJJPNG.js";import{b as De,c as ke,e as Ue,f as Ve}from"./chunk-TPXHRKLW.js";import"./chunk-PDITH6YS.js";import"./chunk-5JJSLRVS.js";import"./chunk-CWITQVZH.js";import"./chunk-LMJVRREP.js";import"./chunk-3LBZDIW2.js";import"./chunk-KTCV3KOE.js";import"./chunk-KZDE63UL.js";import{d as Pe,e as Oe}from"./chunk-MXY6MJSV.js";import{a as be,b as Ee}from"./chunk-BZCRY5I3.js";import"./chunk-3GOO5E5D.js";import"./chunk-XMYLHF4C.js";import{u as ye,v as Te,w as Me}from"./chunk-H7F34T25.js";import"./chunk-JOXTERIM.js";import{O as H}from"./chunk-TSIYPTYI.js";import{e as we,f as ve,g as Ie}from"./chunk-3YKVLHZG.js";import"./chunk-ZHY3BUQJ.js";import"./chunk-VFTGIP5A.js";import"./chunk-LE3BKIDY.js";import"./chunk-2FWFPV5I.js";import{la as Ce}from"./chunk-EEEAUYZ6.js";import{F as L,G as fe,h as ue,o as _e}from"./chunk-RVXZOIFQ.js";import"./chunk-ECHIQUJ3.js";import"./chunk-LOCMI7X3.js";import"./chunk-ZZGSAFGO.js";import"./chunk-HZ2RZ5MO.js";import{$a as a,$b as A,Ac as S,Bc as ae,Db as b,E as K,Eb as te,Gb as ie,Hb as ne,I as Y,Ia as $,Ib as n,Ja as k,Jb as o,Kb as x,Lb as y,Ma as U,Mb as T,Ob as h,Qb as f,Rb as d,Sb as oe,Tb as Q,Wa as X,Wc as me,Y as j,Yd as ge,Zb as V,Zc as se,_b as F,aa as J,cd as de,db as G,dc as N,ec as l,fa as z,fc as c,gc as w,gd as ce,jc as P,jd as M,k as q,kb as I,kc as O,lc as D,na as E,ob as Z,qb as C,qc as re,rc as le,tc as pe,va as u,vb as s,wa as _,xb as ee,zc as g}from"./chunk-UXRO4UFY.js";import"./chunk-7DCB7DB2.js";var Ye=["stepperRef"],Je=[[["preview"]],[["complete"]]],Xe=["preview","complete"];function Ze(t,r){if(t&1&&l(0),t&2){let e=r.index;c(e+1)}}function et(t,r){if(t&1&&l(0),t&2){let e=r.index;c(e+1)}}function tt(t,r){if(t&1&&l(0),t&2){let e=r.index;c(e+1)}}function it(t,r){t&1&&(x(0,"i",8),n(1,"span"),l(2,"Upload"),o())}function nt(t,r){if(t&1){let e=h();n(0,"div",9)(1,"div",10)(2,"POS-uppy",11),f("fileUploaded",function(i){u(e);let m=d(2);return _(m.onDropFile(i))}),o()(),n(3,"div",12)(4,"p",13),l(5," Please refer this "),n(6,"a",14),l(7,"article"),o(),l(8," for more information "),o()()()}if(t&2){let e=d(2);a(2),s("sampleUrl",e.sampleUrl())("subtitle","Accepted file formats: .csv & max file size: 1 MB"),a(4),s("href",e.articleLink(),X)}}function ot(t,r){if(t&1&&C(0,nt,9,3,"div",9),t&2){d();let e=N(1);b(e.selectedIndex===0?0:-1)}}function rt(t,r){if(t&1&&l(0),t&2){let e=r.index;c(e+1)}}function lt(t,r){if(t&1&&l(0),t&2){let e=r.index;c(e+1)}}function pt(t,r){if(t&1&&l(0),t&2){let e=r.index;c(e+1)}}function at(t,r){t&1&&(x(0,"i",15),n(1,"span"),l(2,"Preview"),o())}function mt(t,r){t&1&&Q(0)}function st(t,r){if(t&1&&l(0),t&2){let e=r.index;c(e+1)}}function dt(t,r){if(t&1&&l(0),t&2){let e=r.index;c(e+1)}}function ct(t,r){if(t&1&&l(0),t&2){let e=r.index;c(e+1)}}function ut(t,r){t&1&&(x(0,"i",16),n(1,"span"),l(2,"Finish"),o())}function _t(t,r){t&1&&Q(0,1)}var R=class t{sampleUrl=k();articleLink=k();_onDropFile=$({alias:"onDropFile"});disabledEdit=k(!1);_onStateChange=$({alias:"onStateChange"});_stepper;get stepper(){return this._stepper}nextStep(){this._stepper&&(this.stepper.selected.completed=!0,this._stepper.next())}previousStep(){this._stepper&&this._stepper.previous()}resetStep(){this._stepper&&this._stepper.reset()}onStepChange(r){r.selectedIndex===1?this._onStateChange.emit(1):r.selectedIndex===2?this._onStateChange.emit(2):this._onStateChange.emit(0)}onDropFile(r){this._onDropFile.emit(r)}onRemoveFile(){}stateUpload(){}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=I({type:t,selectors:[["pos-import-stepper"]],viewQuery:function(e,p){if(e&1&&V(Ye,5),e&2){let i;F(i=A())&&(p._stepper=i.first)}},inputs:{sampleUrl:[1,"sampleUrl"],articleLink:[1,"articleLink"],disabledEdit:[1,"disabledEdit"]},outputs:{_onDropFile:"onDropFile",_onStateChange:"onStateChange"},ngContentSelectors:Xe,decls:20,vars:7,consts:[["stepperRef",""],[3,"selectionChange","linear"],[3,"completed","editable"],["matStepperIcon","done"],["matStepperIcon","create"],["matStepperIcon","edit"],["matStepLabel",""],["matStepContent",""],[1,"fa-solid","fa-upload","me-3"],[1,"d-flex","flex-column","align-items-center","justify-content-center","gap-2"],[2,"max-width","580px"],["file","",3,"fileUploaded","sampleUrl","subtitle"],[1,"d-flex","w-100",2,"max-width","580px"],[1,"fst-italic"],["target","_blank",3,"href"],[1,"fa-regular","fa-file","me-3"],[1,"fa-solid","fa-check","me-3"]],template:function(e,p){if(e&1){let i=h();oe(Je),n(0,"mat-stepper",1,0),f("selectionChange",function(v){return u(i),_(p.onStepChange(v))}),n(2,"mat-step",2),C(3,Ze,1,1,"ng-template",3)(4,et,1,1,"ng-template",4)(5,tt,1,1,"ng-template",5)(6,it,3,0,"ng-template",6)(7,ot,1,1,"ng-template",7),o(),n(8,"mat-step",2),C(9,rt,1,1,"ng-template",3)(10,lt,1,1,"ng-template",4)(11,pt,1,1,"ng-template",5)(12,at,3,0,"ng-template",6)(13,mt,1,0,"ng-template",7),o(),n(14,"mat-step",2),C(15,st,1,1,"ng-template",3)(16,dt,1,1,"ng-template",4)(17,ct,1,1,"ng-template",5)(18,ut,3,0,"ng-template",6)(19,_t,1,0,"ng-template",7),o()()}e&2&&(s("linear",!0),a(2),s("completed",!1)("editable",!p.disabledEdit()),a(6),s("completed",!1)("editable",!p.disabledEdit()),a(6),s("completed",!1)("editable",!1))},dependencies:[M,Se,L,fe,he,xe,$e,Fe,ze,We,Le,je,Re,Be],styles:[".mat-horizontal-stepper-header-container{width:50%!important;margin:0 auto} .mat-horizontal-stepper-wrapper{gap:1rem} .mat-horizontal-stepper-content{display:flex;justify-content:center} p-table .p-datatable-tbody>tr{border-bottom-width:1px;border-color:#dee2e6} p-table .p-datatable-tbody>tr>th{font-family:Roboto,system-ui!important;font-weight:400;font-style:normal} .p-datatable .p-datatable-wrapper .p-datatable-table .p-datatable-thead>tr>th{font-family:Roboto,Courier,monospace;font-weight:700;font-style:normal;color:#333} .p-datatable .p-datatable-wrapper .p-datatable-table .p-datatable-tbody>tr>td{font-family:Roboto,Courier,monospace;font-weight:400;font-style:normal;color:#333}"]})};var B=class t{configModal=new ye;dialogRef=E(we);data=E(ve);constructor(){this.initDialogConfig()}initDialogConfig(){this.configModal.title="Preview Summary",this.configModal.hideCancel=!0,this.configModal.okText="Import (F2)",this.configModal.customWidth="500px"}onOk(){this.dialogRef.close(!0)}onClose(){this.dialogRef.close(!1)}ngOnInit(){}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=I({type:t,selectors:[["app-dialog-import-preview"]],decls:30,vars:10,consts:[[3,"onOk","onCancel","onClose","config"],[1,"card","mb-0"],[1,"card-header","py-6","bg-gradient-success"],[1,"card-body"],[1,"row"],[1,"col"],[1,"d-flex","flex-column","gap-2"],[2,"font-size","1.9rem"],[2,"font-size","1rem"]],template:function(e,p){e&1&&(n(0,"modal-material",0),f("onOk",function(){return p.onOk()})("onCancel",function(){return p.onClose()})("onClose",function(){return p.onClose()}),x(1,"header"),n(2,"content")(3,"div",1)(4,"div",2)(5,"h3"),l(6,"Import Summary"),o()(),n(7,"div",3)(8,"div",4)(9,"div",5)(10,"div",6)(11,"span",7),l(12),g(13,"number"),o(),n(14,"span",8),l(15,"New Outlet"),o()()(),n(16,"div",5)(17,"div",6)(18,"span",7),l(19),g(20,"number"),o(),n(21,"span",8),l(22,"Update Outlet"),o()()(),n(23,"div",5)(24,"div",6)(25,"span",7),l(26),g(27,"number"),o(),n(28,"span",8),l(29,"New Outlet Group"),o()()()()()()()()),e&2&&(s("config",p.configModal),a(12),c(S(13,4,p.data==null?null:p.data.new)),a(7),c(S(20,6,p.data==null?null:p.data.update)),a(7),c(S(27,8,p.data==null?null:p.data.newOutletGroup)))},dependencies:[M,ce,Me,Te],encapsulation:2})};var gt=["importStepper"],Ct=()=>({"min-width":"50rem"}),St=(t,r,e)=>({"btn-success":t,"btn-outline-secondary":r,"not-allowed":e}),ht=t=>({"mb-1":t});function xt(t,r){if(t&1){let e=h();n(0,"button",14),f("click",function(){u(e);let i=d();return _(i.onPreviousStep())}),l(1," Back "),o()}}function bt(t,r){if(t&1){let e=h();n(0,"button",15),g(1,"async"),g(2,"async"),f("click",function(){u(e);let i=d();return _(i.onNextStep())}),l(3," Next "),o()}if(t&2){let e,p,i=d();s("ngClass",pe(6,St,i.currentState()===1,i.currentState()!==1,!((e=S(1,2,i.importPreview$))!=null&&e.CanProceed)))("disabled",!((p=S(2,4,i.importPreview$))!=null&&p.CanProceed)&&i.currentState()===1)}}function wt(t,r){if(t&1){let e=h();n(0,"button",14),f("click",function(){u(e);let i=d();return _(i.onReset())}),l(1," New "),o()}}function vt(t,r){if(t&1){let e=h();n(0,"tr")(1,"th",16),l(2,"Name"),o(),n(3,"th",17),l(4,"Code"),o(),n(5,"th",18),l(6," Status "),n(7,"i",19),f("click",function(i){u(e);let m=N(9);return _(m.toggle(i))}),o(),n(8,"p-popover",null,1)(10,"div",20)(11,"div",21)(12,"p-checkbox",22),f("ngModelChange",function(i){u(e);let m=d();return _(m.selectAll(i))}),o(),n(13,"label",23),l(14,"All"),o()(),n(15,"div",24)(16,"p-checkbox",25),D("ngModelChange",function(i){u(e);let m=d();return O(m.filterTreeCondition,i)||(m.filterTreeCondition=i),_(i)}),o(),n(17,"label",26),l(18,"Unchanged"),o()(),n(19,"div",24)(20,"p-checkbox",27),D("ngModelChange",function(i){u(e);let m=d();return O(m.filterTreeCondition,i)||(m.filterTreeCondition=i),_(i)}),o(),n(21,"label",28),l(22,"New"),o()(),n(23,"div",24)(24,"p-checkbox",29),D("ngModelChange",function(i){u(e);let m=d();return O(m.filterTreeCondition,i)||(m.filterTreeCondition=i),_(i)}),o(),n(25,"label",30),l(26,"Error"),o()(),n(27,"div",24)(28,"p-checkbox",31),D("ngModelChange",function(i){u(e);let m=d();return O(m.filterTreeCondition,i)||(m.filterTreeCondition=i),_(i)}),o(),n(29,"label",32),l(30,"Update"),o()()()()(),n(31,"th"),l(32,"Message"),o()()}if(t&2){let e=d();a(12),s("ngModel",e.pickAll),a(4),P("ngModel",e.filterTreeCondition),a(4),P("ngModel",e.filterTreeCondition),a(4),P("ngModel",e.filterTreeCondition),a(4),P("ngModel",e.filterTreeCondition)}}function It(t,r){if(t&1&&(n(0,"div",33)(1,"span",34),l(2),o(),n(3,"span"),l(4),o()()),t&2){let e=r.$implicit,p=r.$index,i=d().$implicit;s("ngClass",le(3,ht,p<i.Issues.length-1)),a(2),w(" ",e.Issue,". "),a(2),w("",e.Solution," ")}}function yt(t,r){if(t&1&&(n(0,"tr")(1,"td"),l(2),o(),n(3,"td"),l(4),o(),n(5,"td"),l(6),o(),n(7,"td"),ie(8,It,5,5,"div",33,te),o()()),t&2){let e=r.$implicit;a(2),c(e.Name),a(2),c(e.Code),a(),ee("bg-gradient-success",e.Action=="New")("bg-gradient-warning",e.Action=="Update")("bg-gradient-danger",e.Action=="Error"),a(),w(" ",e.Action," "),a(2),ne(e.Issues)}}function Tt(t,r){if(t&1&&(y(0),n(1,"div",38)(2,"span"),l(3),o(),l(4,", "),n(5,"span"),l(6),o(),n(7,"span"),l(8),o(),n(9,"span"),l(10,"succesfully imported"),o()(),T()),t&2){let e=r.ngIf;a(3),w("",e==null?null:e.Summary.NewOutlet," New Outlets"),a(3),w("",e==null?null:e.Summary.UpdateOutlet," Updated Outlets"),a(2),w("and ",e==null?null:e.Summary.NewOutletGroup," New Outlet Group")}}function Mt(t,r){if(t&1&&(n(0,"div",13),x(1,"i",35),n(2,"h1",36),l(3,"Upload Complete!"),o(),C(4,Tt,11,3,"ng-container",37),g(5,"async"),o()),t&2){let e=d();a(4),s("ngIf",S(5,1,e.importPreview$))}}var qe=class t extends be{constructor(e,p){super(e);this.httpService=p;this.menuData$.subscribe()}pickAll=["All"];filterTreeCondition=["Unchanged","New","Error","Update"];importStepper;fileToImport=U(null);importPreview$;sampleUrl="https://cdn.dealpos.xyz/web-import-template/Outlet_Import_Template.csv";articleLink="https://support.dealpos.com/en/articles/11069092-import-new-outlet";currentState=U(0);confirmImport$;importPreview=U(null);dialog=E(Ie);onDropFile(e){this.fileToImport.set(e)}onNextStep(){switch(this.currentState()){case 0:this.onPreviewImport();break;case 1:this.onImport();break;default:break}}onPreviousStep(){this.importStepper.previousStep()}onReset(){this.importPreview.set(null),this.importPreview$=null,this.confirmImport$=null,this.fileToImport.set(null),this.currentState.update(()=>0),this.importStepper.resetStep()}onStateChange(e){this.currentState.update(()=>e)}onPreviewImport(){this.pickAll=["All"],this.filterTreeCondition=["Unchanged","New","Error","Update"];let e=new FormData;e.append("file",this.fileToImport()),this.importPreview$=this.httpService.postFormData(H.previewImportOutlet,e).pipe(z(p=>{this.importPreview.set(p),this.importStepper.nextStep()}),j(1))}onImport(){this.confirmImport$=this.dialog.open(B,{data:{new:this.importPreview()?.Summary?.NewOutlet,update:this.importPreview()?.Summary?.UpdateOutlet,newOutletGroup:this.importPreview()?.Summary?.NewOutletGroup}}).afterClosed().pipe(K(e=>e==!0),J(()=>this.httpService.post(H.importOutlet,{CacheKey:this.importPreview()?.CacheKey})),z(e=>{this.importStepper.nextStep()}),Y(e=>(this.pickAll=[],this.filterTreeCondition=["Error"],q)),j(1))}selectAll(e){this.pickAll=e,this.pickAll.length==0?this.filterTreeCondition=[]:this.filterTreeCondition=["Unchanged","New","Error","Update"]}static \u0275fac=function(p){return new(p||t)(G(Ee),G(ge))};static \u0275cmp=I({type:t,selectors:[["app-outlet-import"]],viewQuery:function(p,i){if(p&1&&V(gt,5),p&2){let m;F(m=A())&&(i.importStepper=m.first)}},features:[Z],decls:17,vars:21,consts:[["importStepper",""],["op",""],[3,"pageData","hideSearchBox","hideSearchDropdown"],["ngProjectAs","actions",5,["actions"]],["type","button",1,"btn","btn-outline-secondary"],[1,"btn",3,"ngClass","disabled"],["ngProjectAs","content",5,["content"]],[3,"onDropFile","onStateChange","sampleUrl","disabledEdit","articleLink"],["ngProjectAs","preview",5,["preview"]],[1,"w-100",3,"value","scrollable","tableStyle"],["pTemplate","header"],["pTemplate","body"],["ngProjectAs","complete",5,["complete"]],[1,"d-flex","flex-column","align-items-center"],["type","button",1,"btn","btn-outline-secondary",3,"click"],[1,"btn",3,"click","ngClass","disabled"],[2,"width","300px"],[2,"width","200px"],[2,"width","100px"],[1,"fa","fa-filter","pointer",3,"click"],[2,"width","150px"],[1,"border-bottom","pb-3","d-flex","align-items-center","column-gap-3"],["label","Select All","name","filterTreeCondition","value","All","inputId","all",3,"ngModelChange","ngModel"],["for","all",1,"ms-2"],[1,"mt-4","d-flex","align-items-center","column-gap-3"],["label","Unchanged","name","filterTreeCondition","value","Unchanged","inputId","unchanged",3,"ngModelChange","ngModel"],["for","unchanged",1,"ms-2"],["label","New","name","filterTreeCondition","value","New","inputId","new",3,"ngModelChange","ngModel"],["for","new",1,"ms-2"],["label","Error","name","filterTreeCondition","value","Error","inputId","error",3,"ngModelChange","ngModel"],["for","error",1,"ms-2"],["label","Updated","name","filterTreeCondition","value","Update","inputId","update",3,"ngModelChange","ngModel"],["for","update",1,"ms-2"],[3,"ngClass"],[1,"me-1"],[1,"fa-solid","fa-circle-check","text-success",2,"font-size","110px"],[1,"mt-8"],[4,"ngIf"],[1,"d-flex","gap-2","fw-normal","fs-4","mt-2"]],template:function(p,i){if(p&1){let m=h();n(0,"mainpanel-cmp",2),y(1,3),C(2,xt,2,0,"button",4)(3,bt,4,10,"button",5)(4,wt,2,0,"button",4),T(),y(5,6),n(6,"pos-import-stepper",7,0),f("onDropFile",function(W){return u(m),_(i.onDropFile(W))})("onStateChange",function(W){return u(m),_(i.onStateChange(W))}),y(8,8),n(9,"p-table",9),g(10,"async"),g(11,"filterTree"),C(12,vt,33,5,"ng-template",10)(13,yt,10,9,"ng-template",11),o(),T(),y(14,12),C(15,Mt,6,3,"div",13),g(16,"async"),T(),o(),T(),o()}if(p&2){let m,v;s("pageData",i.menuData)("hideSearchBox",!0)("hideSearchDropdown",!0),a(2),b(i.currentState()==1?2:-1),a(),b(i.fileToImport()&&((m=i.fileToImport())==null?null:m.size)>0&&i.currentState()<2?3:-1),a(),b(i.currentState()===2?4:-1),a(2),s("sampleUrl",i.sampleUrl)("disabledEdit",i.currentState()===2)("articleLink",i.articleLink),a(3),s("value",ae(11,15,(v=S(10,13,i.importPreview$))==null?null:v.DataRow,i.filterTreeCondition))("scrollable",!0)("tableStyle",re(20,Ct)),a(6),b(S(16,18,i.confirmImport$)?15:-1)}},dependencies:[M,me,se,de,R,Ve,Ue,Ne,Ae,Ce,Oe,Pe,L,ue,_e,ke,De,Ge],encapsulation:2})};export{qe as OutletImportComponent};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as Be}from"./chunk-5ZMTBZT3.js";import{a as pt,b as cn}from"./chunk-Y75LR4GR.js";import{a as xe}from"./chunk-K7KRPIN7.js";import{a as mn}from"./chunk-DEBIFZGN.js";import{a as pn}from"./chunk-XA6BOS45.js";import{a as sn}from"./chunk-
|
|
1
|
+
import{a as Be}from"./chunk-5ZMTBZT3.js";import{a as pt,b as cn}from"./chunk-Y75LR4GR.js";import{a as xe}from"./chunk-K7KRPIN7.js";import{a as mn}from"./chunk-DEBIFZGN.js";import{a as pn}from"./chunk-XA6BOS45.js";import{a as sn}from"./chunk-LHAAHTCW.js";import{a as ln}from"./chunk-42T2PR4J.js";import{b as rn}from"./chunk-YRGGDRUH.js";import{a as ee}from"./chunk-M3HHWYKD.js";import{a as te,b as ne}from"./chunk-KWTU2B2D.js";import"./chunk-BYXBJQAS.js";import{a as Zt}from"./chunk-PIYM2FOP.js";import{b as qt,c as jt,d as Qt,e as zt}from"./chunk-RHUDY63D.js";import{e as en,f as tn}from"./chunk-TPXHRKLW.js";import{a as on,b as an}from"./chunk-5JJSLRVS.js";import{a as Jt}from"./chunk-CWITQVZH.js";import{a as nn}from"./chunk-KTCV3KOE.js";import{a as Xt}from"./chunk-KZDE63UL.js";import"./chunk-MXY6MJSV.js";import{b as Wt}from"./chunk-BZCRY5I3.js";import"./chunk-3GOO5E5D.js";import"./chunk-XMYLHF4C.js";import{C as Ae}from"./chunk-H7F34T25.js";import{b as J,c as X}from"./chunk-JOXTERIM.js";import{G as Re,N as ce,O as Yt,o as Kt}from"./chunk-TSIYPTYI.js";import{g as Gt}from"./chunk-3YKVLHZG.js";import"./chunk-ZHY3BUQJ.js";import{a as st}from"./chunk-LE3BKIDY.js";import{a as ve}from"./chunk-2FWFPV5I.js";import{C as lt,G as we,ea as $t,k as Lt,la as rt,ma as Ve,r as Nt,s as ye,t as Ht,u as Z,ua as Ut}from"./chunk-EEEAUYZ6.js";import{F as Bt}from"./chunk-RVXZOIFQ.js";import"./chunk-ECHIQUJ3.js";import"./chunk-LOCMI7X3.js";import{a as Pe,d as A}from"./chunk-ZZGSAFGO.js";import"./chunk-HZ2RZ5MO.js";import{$a as l,$b as F,Ac as x,Bc as W,Db as _,Eb as Ce,Fa as le,Fb as Tt,Fc as E,Gb as se,Hb as pe,Ib as o,Ja as h,Jb as a,Kb as p,Lb as Ie,Ma as nt,Mb as Se,Mc as fe,Nb as M,Nc as wt,Ob as N,Od as Ot,Qb as O,Qc as Vt,Qd as Rt,Rb as d,Rd as j,Sb as ot,Tb as at,Td as Q,Vd as At,Wa as vt,Wc as q,Y as _t,Yb as G,Yc as kt,Yd as Oe,Zb as de,Zc as H,_b as D,aa as tt,ad as Dt,bd as $,cd as Ft,db as re,dc as I,ec as m,ed as me,fa as bt,fc as y,gc as V,gd as Y,hc as It,ia as gt,ja as Ct,jc as St,jd as C,ka as ht,kb as g,kc as Et,kd as Me,lb as yt,lc as Pt,na as v,ob as Te,pc as Ee,qb as u,qc as k,rc as S,sc as U,t as et,tc as he,ub as z,va as P,vb as s,wa as w,wd as Mt,xb as Fe,yb as xt,za as De,zb as it,zc as b}from"./chunk-UXRO4UFY.js";import{a as ut,b as dt,j as ft}from"./chunk-7DCB7DB2.js";var un=["content"],hn=["header"],vn=["lefticon"],yn=["righticon"],xn=["closeicon"],dn=["*"];function Tn(t,r){t&1&&M(0)}function In(t,r){if(t&1&&(Ie(0),u(1,Tn,1,0,"ng-container",3),Se()),t&2){let e=d(2);l(),s("ngTemplateOutlet",e.contentTemplate||e._contentTemplate)}}function Sn(t,r){if(t&1&&(o(0,"div",1),at(1),u(2,In,2,1,"ng-container",2),a()),t&2){let e=d();s("hidden",!e.selected),z("id",e.tabView.getTabContentId(e.id))("aria-hidden",!e.selected)("aria-labelledby",e.tabView.getTabHeaderActionId(e.id))("data-pc-name","tabpanel"),l(2),s("ngIf",(e.contentTemplate||e._contentTemplate)&&(e.cache?e.loaded:e.selected))}}var En=["previousicon"],Pn=["nexticon"],wn=["navbar"],Vn=["prevBtn"],kn=["nextBtn"],Dn=["inkbar"],Fn=["elementToObserve"],Mn=t=>({"p-tablist-viewport":t}),On=(t,r)=>({"p-tab":!0,"p-tab-active":t,"p-disabled":r});function Rn(t,r){t&1&&p(0,"ChevronLeftIcon"),t&2&&z("aria-hidden",!0)}function An(t,r){}function Bn(t,r){t&1&&u(0,An,0,0,"ng-template")}function Ln(t,r){if(t&1){let e=N();o(0,"button",12,3),O("click",function(){P(e);let n=d();return w(n.navBackward())}),u(2,Rn,1,1,"ChevronLeftIcon",13)(3,Bn,1,0,null,14),a()}if(t&2){let e=d();z("tabindex",e.tabindex)("aria-label",e.prevButtonAriaLabel),l(2),s("ngIf",!e.previousIconTemplate&&!e._previousIconTemplate),l(),s("ngTemplateOutlet",e.previousIconTemplate&&e._previousIconTemplate)}}function Nn(t,r){t&1&&M(0)}function Hn(t,r){if(t&1&&u(0,Nn,1,0,"ng-container",14),t&2){let e=d(2).$implicit;s("ngTemplateOutlet",e.headerTemplate||e._headerTemplate)}}function $n(t,r){}function Un(t,r){t&1&&u(0,$n,0,0,"ng-template")}function qn(t,r){if(t&1&&u(0,Un,1,0,null,14),t&2){let e=d(3).$implicit;s("ngTemplateOutlet",e.leftIconTemplate||e._leftIconTemplate)}}function jn(t,r){if(t&1&&p(0,"span",17),t&2){let e=d(3).$implicit;s("ngClass",e.leftIcon)}}function Qn(t,r){}function zn(t,r){t&1&&u(0,Qn,0,0,"ng-template")}function Gn(t,r){if(t&1&&u(0,zn,1,0,null,14),t&2){let e=d(3).$implicit;s("ngTemplateOutlet",e.rightIconTemplate||e._rightIconTemplate)}}function Wn(t,r){if(t&1&&p(0,"span",18),t&2){let e=d(3).$implicit;s("ngClass",e.rightIcon)}}function Kn(t,r){}function Yn(t,r){t&1&&u(0,Kn,0,0,"ng-template")}function Zn(t,r){if(t&1&&u(0,Yn,1,0,null,14),t&2){let e=d(4).$implicit;s("ngTemplateOutlet",e.closeIconTemplate||e._closeIconTemplate)}}function Jn(t,r){if(t&1){let e=N();o(0,"TimesIcon",19),O("click",function(n){P(e);let c=d(4).$implicit,f=d();return w(f.close(n,c))}),a()}}function Xn(t,r){if(t&1&&u(0,Zn,1,1)(1,Jn,1,0,"TimesIcon"),t&2){let e=d(3).$implicit;_(e.closeIconTemplate||e._closeIconTemplate?0:1)}}function ei(t,r){if(t&1&&(u(0,qn,1,1)(1,jn,1,1,"span",17),m(2),u(3,Gn,1,1)(4,Wn,1,1,"span",18)(5,Xn,2,1)),t&2){let e=d(2).$implicit;_(e.leftIconTemplate||e._leftIconTemplate?0:e.leftIcon&&!e.leftIconTemplate&&!e._leftIconTemplate?1:-1),l(2),V(" ",e.header," "),l(),_(e.rightIconTemplate||e._rightIconTemplate?3:e.rightIcon&&!e.rightIconTemplate&&!e._rightIconTemplate?4:-1),l(2),_(e.closable?5:-1)}}function ti(t,r){if(t&1){let e=N();o(0,"button",15),O("click",function(n){P(e);let c=d().$implicit,f=d();return w(f.open(n,c))})("keydown",function(n){P(e);let c=d().$implicit,f=d();return w(f.onTabKeyDown(n,c))}),u(1,Hn,1,1,"ng-container")(2,ei,6,4),a(),p(3,"span",16,4)}if(t&2){let e=d(),i=e.$implicit,n=e.$index,c=d();it(i.headerStyleClass),s("ngClass",U(22,On,i.selected,i.disabled))("ngStyle",i.headerStyle)("pTooltip",i.tooltip)("tooltipPosition",i.tooltipPosition)("positionStyle",i.tooltipPositionStyle)("tooltipStyleClass",i.tooltipStyleClass)("disabled",i.disabled),z("role","tab")("id",c.getTabHeaderActionId(i.id))("aria-controls",c.getTabContentId(i.id))("aria-selected",i.selected)("tabindex",i.disabled||!i.selected?"-1":c.tabindex)("aria-disabled",i.disabled)("data-pc-index",n)("data-p-disabled",i.disabled)("data-pc-section","headeraction")("data-p-active",i.selected),l(),_(i.headerTemplate||i._headerTemplate?1:2),l(2),z("aria-hidden",!0)("data-pc-section","inkbar")}}function ni(t,r){if(t&1&&u(0,ti,5,25),t&2){let e=r.$implicit;_(e.closed?-1:0)}}function ii(t,r){}function oi(t,r){t&1&&u(0,ii,0,0,"ng-template")}function ai(t,r){if(t&1&&u(0,oi,1,0,null,14),t&2){let e=d(2);s("ngTemplateOutlet",e.nextIconTemplate||e._nextIconTemplate)}}function li(t,r){t&1&&p(0,"ChevronRightIcon"),t&2&&z("aria-hidden",!0)}function ri(t,r){if(t&1){let e=N();o(0,"button",20,5),O("click",function(){P(e);let n=d();return w(n.navForward())}),u(2,ai,1,1)(3,li,1,1,"ChevronRightIcon"),a()}if(t&2){let e=d();z("tabindex",e.tabindex)("aria-label",e.nextButtonAriaLabel),l(2),_(e.nextIconTemplate||e._nextIconTemplate?2:3)}}var si=({dt:t})=>`
|
|
2
2
|
.p-tabs {
|
|
3
3
|
display: flex;
|
|
4
4
|
flex-direction: column;
|