dealpos 25.35.1 → 25.35.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-4XFWA7EK.js → chunk-22OO6V42.js} +1 -1
- package/browser/{chunk-ZV673CNQ.js → chunk-2XMIL3M5.js} +1 -1
- package/browser/{chunk-DTIWIZAF.js → chunk-32XPQS72.js} +1 -1
- package/browser/{chunk-RTW7YEDM.js → chunk-37ZQRASR.js} +1 -1
- package/browser/{chunk-JPZQ6WUN.js → chunk-3BF3LB6Z.js} +1 -1
- package/browser/{chunk-7YRDPDDJ.js → chunk-3T3RRVKX.js} +1 -1
- package/browser/{chunk-CLHWSB6Y.js → chunk-3USDNSPA.js} +1 -1
- package/browser/{chunk-C7JM4PAG.js → chunk-3VKLFFAF.js} +1 -1
- package/browser/{chunk-5W7J67BI.js → chunk-3Z3TRQBS.js} +1 -1
- package/browser/chunk-47MDCKEY.js +1 -0
- package/browser/{chunk-HLM7W5YP.js → chunk-4BQ6OFGZ.js} +1 -1
- package/browser/{chunk-NU2RYCZP.js → chunk-4E4L6WXO.js} +1 -1
- package/browser/{chunk-OP7PZ5VN.js → chunk-4L4E5MG3.js} +1 -1
- package/browser/{chunk-G7L27PFY.js → chunk-5IG3NZVF.js} +1 -1
- package/browser/{chunk-IPT2M2BI.js → chunk-5LVF3GQO.js} +1 -1
- package/browser/{chunk-2LURESKM.js → chunk-5VFKAJV6.js} +1 -1
- package/browser/{chunk-LPQODANI.js → chunk-677WPFLK.js} +1 -1
- package/browser/{chunk-7LVND3SO.js → chunk-6DJNKKNB.js} +1 -1
- package/browser/{chunk-CMLHFJBB.js → chunk-6V2AFFCL.js} +1 -1
- package/browser/{chunk-P2KAE5YM.js → chunk-7AAAKDTU.js} +6 -6
- package/browser/{chunk-ZHO5KMQM.js → chunk-7BDVBLHM.js} +1 -1
- package/browser/{chunk-PL3QR7IJ.js → chunk-7HI7DCIJ.js} +1 -1
- package/browser/chunk-7IVZ7O4B.js +1 -0
- package/browser/{chunk-Q72OT36E.js → chunk-7J6JNI44.js} +1 -1
- package/browser/{chunk-QNRJHTV4.js → chunk-AAVH5EBY.js} +2 -2
- package/browser/{chunk-ORQNNEMX.js → chunk-AK6EELSP.js} +1 -1
- package/browser/{chunk-AFM7PYUZ.js → chunk-AVWEAAID.js} +1 -1
- package/browser/{chunk-IJQPLU7Y.js → chunk-AW3VIYPK.js} +1 -1
- package/browser/chunk-BGQQUPTZ.js +3 -0
- package/browser/{chunk-4D6GJ33W.js → chunk-BMNZHUI6.js} +1 -1
- package/browser/{chunk-4MY4AG7R.js → chunk-BN2DUB4S.js} +1 -1
- package/browser/chunk-BUFUGEKP.js +1 -0
- package/browser/{chunk-FXF3CZHR.js → chunk-BXFKD2CO.js} +1 -1
- package/browser/{chunk-3DFVMZGU.js → chunk-BZAN6DNV.js} +1 -1
- package/browser/{chunk-GVVAZDAH.js → chunk-CESIM7I2.js} +1 -1
- package/browser/{chunk-UABTP3I3.js → chunk-CGTCYQPU.js} +1 -1
- package/browser/{chunk-UGSSRWE7.js → chunk-CUD4PHJT.js} +1 -1
- package/browser/{chunk-A2UILJ3G.js → chunk-DDSUKJHT.js} +1 -1
- package/browser/{chunk-7S2SHB7E.js → chunk-DHQUQTIV.js} +1 -1
- package/browser/{chunk-34QCNJH3.js → chunk-DKX7YVH4.js} +1 -1
- package/browser/{chunk-E53GH46E.js → chunk-DO6W6BG2.js} +1 -1
- package/browser/{chunk-6BK25JQ2.js → chunk-DU2U47CB.js} +1 -1
- package/browser/{chunk-LOSWTT66.js → chunk-DXROSW6B.js} +1 -1
- package/browser/{chunk-3ZDDH7CJ.js → chunk-E7SOAHON.js} +1 -1
- package/browser/{chunk-KXXXUEET.js → chunk-EIPWN4ZG.js} +1 -1
- package/browser/{chunk-XOH52E2X.js → chunk-F3QKO3WX.js} +1 -1
- package/browser/{chunk-AVT77M2O.js → chunk-FIS6Q5OG.js} +1 -1
- package/browser/{chunk-CURU3EKI.js → chunk-FLCMFLQ7.js} +1 -1
- package/browser/{chunk-53T5DMNY.js → chunk-FQSQUAUB.js} +1 -1
- package/browser/{chunk-U7EUKGWA.js → chunk-FWDPAH4G.js} +1 -1
- package/browser/{chunk-AVAYKWYL.js → chunk-GE53XQ2Q.js} +1 -1
- package/browser/{chunk-WLWH7QQ2.js → chunk-GEWY5VWO.js} +1 -1
- package/browser/{chunk-YXO5HYS3.js → chunk-GFDEHNOL.js} +1 -1
- package/browser/{chunk-6BQ5KQE5.js → chunk-GIMMGWIY.js} +1 -1
- package/browser/chunk-GLXNXL3M.js +1 -0
- package/browser/{chunk-DZ2WZ4PS.js → chunk-GOQ3ZCDK.js} +1 -1
- package/browser/chunk-GWY532ZF.js +3 -0
- package/browser/{chunk-ANESQVY4.js → chunk-H24HNIUV.js} +1 -1
- package/browser/{chunk-BIA32MUQ.js → chunk-H5EACBML.js} +3 -3
- package/browser/chunk-H7DCK5WJ.js +1 -0
- package/browser/{chunk-Y7HFAPAX.js → chunk-HJZUPJW2.js} +1 -1
- package/browser/{chunk-BFYXXJX5.js → chunk-HKACPPVL.js} +1 -1
- package/browser/{chunk-HC43XRYO.js → chunk-HSQKKFE6.js} +1 -1
- package/browser/{chunk-TDF4PRYA.js → chunk-IUXGZNAZ.js} +1 -1
- package/browser/{chunk-4JJZP56N.js → chunk-IWQEXFGO.js} +1 -1
- package/browser/{chunk-V4NC35JB.js → chunk-JFAIF63Q.js} +1 -1
- package/browser/{chunk-RWHZGR5I.js → chunk-JRMGNV6W.js} +1 -1
- package/browser/chunk-JUDTCQVV.js +1 -0
- package/browser/{chunk-PYE7OONS.js → chunk-K4YUTEMS.js} +1 -1
- package/browser/{chunk-JSKQCGK6.js → chunk-K6OQJCJ6.js} +1 -1
- package/browser/{chunk-M7DLH62Y.js → chunk-KHHM6IFR.js} +1 -1
- package/browser/{chunk-3GFJDGM7.js → chunk-KM4YGIPJ.js} +1 -1
- package/browser/{chunk-HMYXRXMU.js → chunk-KQLFNIFZ.js} +1 -1
- package/browser/{chunk-YNYOCDRR.js → chunk-KVPIGIZJ.js} +1 -1
- package/browser/{chunk-2454AQDI.js → chunk-L2RZWAX3.js} +1 -1
- package/browser/{chunk-ABFSF4MS.js → chunk-L755Z2UU.js} +1 -1
- package/browser/{chunk-YYJNV6JB.js → chunk-LG5UTNBU.js} +1 -1
- package/browser/chunk-LS4LCNAF.js +56 -0
- package/browser/{chunk-SY6SLHJE.js → chunk-M4GPXLRN.js} +1 -1
- package/browser/{chunk-5WVV2KSZ.js → chunk-M6C7J4PM.js} +1 -1
- package/browser/{chunk-HEQZDBHW.js → chunk-MDXFAEYC.js} +1 -1
- package/browser/{chunk-B4MIOMFY.js → chunk-MERQX2AF.js} +1 -1
- package/browser/{chunk-SUQPLO6J.js → chunk-MLMSIZGP.js} +1 -1
- package/browser/{chunk-E6WAWCVM.js → chunk-MUFGLBTW.js} +1 -1
- package/browser/{chunk-PJ3GC36H.js → chunk-MXRJZC7D.js} +2 -2
- package/browser/{chunk-TLB32ZLG.js → chunk-NHVQ6BHI.js} +4 -4
- package/browser/{chunk-SJAXFGTZ.js → chunk-NI6KAEXM.js} +1 -1
- package/browser/{chunk-QND5TRRL.js → chunk-NLWPMDWU.js} +1 -1
- package/browser/{chunk-GNWZZTUM.js → chunk-NMGT5PYX.js} +1 -1
- package/browser/{chunk-7OHS7GGR.js → chunk-NQPOGM3H.js} +1 -1
- package/browser/{chunk-GX2FRFKJ.js → chunk-NY4SVPPU.js} +1 -1
- package/browser/{chunk-PEJQ3PAR.js → chunk-O3IGBF5Z.js} +1 -1
- package/browser/{chunk-KOCUT2HX.js → chunk-OBH4MNSM.js} +1 -1
- package/browser/{chunk-43V3SW6V.js → chunk-OFNXPEBH.js} +1 -1
- package/browser/{chunk-IJB4UV6O.js → chunk-P4TUOMJ4.js} +1 -1
- package/browser/{chunk-O2PQYOQB.js → chunk-Q5AWNSSD.js} +1 -1
- package/browser/{chunk-DDTETSNL.js → chunk-QLFKPTZA.js} +1 -1
- package/browser/{chunk-FATMOWTQ.js → chunk-QMPKHU2W.js} +1 -1
- package/browser/{chunk-Y4TUJFQT.js → chunk-QZFGYG5J.js} +1 -1
- package/browser/{chunk-UFP57RZZ.js → chunk-R5W6OHJL.js} +1 -1
- package/browser/{chunk-2766CBQU.js → chunk-RJSPJ6CG.js} +1 -1
- package/browser/{chunk-M3GDT4VK.js → chunk-RYONOB6O.js} +1 -1
- package/browser/{chunk-3XSCHJBQ.js → chunk-S7QH3NMD.js} +1 -1
- package/browser/{chunk-3O4GNGWN.js → chunk-SJ7OFVH5.js} +1 -1
- package/browser/{chunk-57JQC2LG.js → chunk-SJIEANJU.js} +1 -1
- package/browser/{chunk-DZR4HR3V.js → chunk-SKFIRYCU.js} +3 -3
- package/browser/{chunk-2SKWRTTM.js → chunk-SZKR6UME.js} +1 -1
- package/browser/{chunk-OH7LXBVM.js → chunk-TYIDA4YO.js} +1 -1
- package/browser/{chunk-O7PVACKM.js → chunk-UBWK4RWH.js} +1 -1
- package/browser/chunk-UZKYLAUE.js +1 -0
- package/browser/{chunk-T3UD2BIM.js → chunk-W2TSDYEA.js} +1 -1
- package/browser/{chunk-MTTYVYZR.js → chunk-W7HVLC6V.js} +1 -1
- package/browser/{chunk-P6Q27V2V.js → chunk-WQRN2UCW.js} +1 -1
- package/browser/{chunk-AE2H6ZIP.js → chunk-WZEGUTUH.js} +1 -1
- package/browser/chunk-XEKUUP6Y.js +1 -0
- package/browser/{chunk-QN43EVQB.js → chunk-XP2OIGWH.js} +1 -1
- package/browser/{chunk-65FW3CDB.js → chunk-XVFIUKXR.js} +1 -1
- package/browser/{chunk-RGIQPHTM.js → chunk-XY7FDLSK.js} +1 -1
- package/browser/{chunk-2FSZUUQP.js → chunk-YCPSIUQ3.js} +1 -1
- package/browser/{chunk-IPEY3FYO.js → chunk-YGUNDEOT.js} +1 -1
- package/browser/{chunk-P5XJTUWS.js → chunk-YQCR57JN.js} +1 -1
- package/browser/{chunk-X3556GFF.js → chunk-YWF2JYRN.js} +1 -1
- package/browser/{chunk-X64V2BD6.js → chunk-ZFMK7BOT.js} +1 -1
- package/browser/{chunk-FU4B6BUR.js → chunk-ZR4YNJBZ.js} +1 -1
- package/browser/{chunk-E4IRTOK5.js → chunk-ZWEHXDXR.js} +1 -1
- package/browser/index.html +2 -2
- package/browser/{main-7OQ7F5EZ.js → main-XQZCWN5T.js} +2 -2
- package/package.json +1 -1
- package/browser/chunk-6HI5Q42V.js +0 -1
- package/browser/chunk-7SNT6DIY.js +0 -56
- package/browser/chunk-AM4K7VSL.js +0 -1
- package/browser/chunk-FZ6OXVRF.js +0 -1
- package/browser/chunk-G6YDN74M.js +0 -3
- package/browser/chunk-HX4MQJ5S.js +0 -1
- package/browser/chunk-JADCHWZ7.js +0 -1
- package/browser/chunk-O7SLYO56.js +0 -3
- package/browser/chunk-OTWLEF6F.js +0 -1
- package/browser/chunk-SBVMIOJI.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as l}from"./chunk-THRGCK26.js";import{P as i}from"./chunk-
|
|
1
|
+
import{b as l}from"./chunk-THRGCK26.js";import{P as i}from"./chunk-L2RZWAX3.js";import{Vd as p,Yd as u,ja as s,ma as n,t as o}from"./chunk-DZT5XHBQ.js";var c=class a{constructor(e,t){this.httpService=e;this.toastr=t}generateNumber(e,t){let r={ID:e};return this.httpService.post(t,r)}getQuickKey(e,t){return this.httpService.get(t,[{key:"ID",value:e}])}updateCourierList(e){let t={name:e};return this.httpService.post(i.UpdateCourierList,t)}getVarianByCode(e,t,r){return this.httpService.get(i.GetVariantByCode,[{key:"Code",value:e},{key:"EntityID",value:t},{key:"BarcodeSerial",value:r},{key:"Promotion",value:!0}])}getVariantBySerial(e,t){return this.httpService.get(i.GetVariantBySerial,[{key:"EntityID",value:t},{key:"Serial",value:e}])}getVariantById(e,t){return this.httpService.get(i.GetVariantByID,[{key:"ID",value:e},{key:"EntityID",value:t}])}submitTransaction(e,t){return this.httpService.post(t,e)}createNewContact(e,t){let r=[];e.Group&&r.push(e.Group);let y={contact:e,type:t,groups:r};return this.httpService.post(i.CreateContact,y)}getItemStock(e,t){return this.httpService.get(i.GetVariantStockByID,[{key:"ID",value:e},{key:"EntityID",value:t}])}clearOutlet(e){return this.httpService.get(i.getAllOutletInventory,[{key:"EntityID",value:e}]).pipe(o(t=>t.map(r=>this.plainJsonToCustomerPoItem(r))))}plainJsonToCustomerPoItem(e){let t=new l;return t.patchByVariant(e),t.TypeID=e.TypeID,t.Serial=e.Serial,t.Quantity=e.Quantity,t.TypeID==4&&(t.Quantity=this.calculateSerialQty(t.Serial)),t}calculateSerialQty(e=[]){let t=0;return e.forEach(r=>{t+=r.Quantity}),t}static \u0275fac=function(t){return new(t||a)(n(u),n(p))};static \u0275prov=s({token:a,factory:a.\u0275fac,providedIn:"root"})};export{c as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as Ge}from"./chunk-Z5N4EKJ3.js";import{a as Ae,f as Ne}from"./chunk-Q72OT36E.js";import"./chunk-BMQKMDMC.js";import"./chunk-GVVAZDAH.js";import"./chunk-TOWVTOFV.js";import"./chunk-EYCYL6AL.js";import"./chunk-3YXP5Q5V.js";import{b as Le,c as Re,d as Be,e as We,f as je,g as ze}from"./chunk-57JQC2LG.js";import"./chunk-7BU64MD2.js";import{b as $e}from"./chunk-YOKPVEGO.js";import"./chunk-34GJS34C.js";import"./chunk-NHVOGEOO.js";import{d as Fe}from"./chunk-AYBLEFQB.js";import"./chunk-LCUJHXDF.js";import{b as xe}from"./chunk-SJAXFGTZ.js";import"./chunk-3RK6DDJD.js";import{a as he}from"./chunk-L2EDFSBR.js";import"./chunk-TEFNN3TY.js";import{d as Se}from"./chunk-DZ2WZ4PS.js";import"./chunk-JKYTSC2D.js";import"./chunk-B7E3DL2Y.js";import"./chunk-H6BFHXJX.js";import"./chunk-MHBOKOSN.js";import"./chunk-S6TMUVGC.js";import"./chunk-PPWHSAY6.js";import{d as Pe,e as Oe,f as De,g as ke,h as Ue,i as Ve}from"./chunk-B4MIOMFY.js";import"./chunk-NU2RYCZP.js";import{a as be,b as Ee}from"./chunk-7S2SHB7E.js";import"./chunk-AZT6QE56.js";import"./chunk-5UL73W4S.js";import{u as ye,v as Te,w as Me}from"./chunk-LPQODANI.js";import"./chunk-CIBQBSM6.js";import{P as H}from"./chunk-2454AQDI.js";import{e as we,f as ve,g as Ie}from"./chunk-D35OBUDE.js";import"./chunk-567HXZXC.js";import"./chunk-WEJYVCCX.js";import"./chunk-AAJJTF33.js";import"./chunk-2FWFPV5I.js";import{ja as Ce}from"./chunk-3PYW74LR.js";import{D as L,E as fe,h as ue,o as _e}from"./chunk-P7HKWFZT.js";import"./chunk-HC43XRYO.js";import"./chunk-ZHO5KMQM.js";import"./chunk-AHCRE4GP.js";import"./chunk-MTTYVYZR.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-DZT5XHBQ.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-Z5N4EKJ3.js";import{a as Ae,f as Ne}from"./chunk-7J6JNI44.js";import"./chunk-BMQKMDMC.js";import"./chunk-CESIM7I2.js";import"./chunk-TOWVTOFV.js";import"./chunk-EYCYL6AL.js";import"./chunk-3YXP5Q5V.js";import{b as Le,c as Re,d as Be,e as We,f as je,g as ze}from"./chunk-SJIEANJU.js";import"./chunk-7BU64MD2.js";import{b as $e}from"./chunk-YOKPVEGO.js";import"./chunk-34GJS34C.js";import"./chunk-NHVOGEOO.js";import{d as Fe}from"./chunk-AYBLEFQB.js";import"./chunk-LCUJHXDF.js";import{b as xe}from"./chunk-NI6KAEXM.js";import"./chunk-3RK6DDJD.js";import{a as he}from"./chunk-L2EDFSBR.js";import"./chunk-TEFNN3TY.js";import{d as Se}from"./chunk-GOQ3ZCDK.js";import"./chunk-JKYTSC2D.js";import"./chunk-B7E3DL2Y.js";import"./chunk-H6BFHXJX.js";import"./chunk-MHBOKOSN.js";import"./chunk-S6TMUVGC.js";import"./chunk-PPWHSAY6.js";import{d as Pe,e as Oe,f as De,g as ke,h as Ue,i as Ve}from"./chunk-MERQX2AF.js";import"./chunk-4E4L6WXO.js";import{a as be,b as Ee}from"./chunk-DHQUQTIV.js";import"./chunk-AZT6QE56.js";import"./chunk-5UL73W4S.js";import{u as ye,v as Te,w as Me}from"./chunk-677WPFLK.js";import"./chunk-CIBQBSM6.js";import{P as H}from"./chunk-L2RZWAX3.js";import{e as we,f as ve,g as Ie}from"./chunk-D35OBUDE.js";import"./chunk-567HXZXC.js";import"./chunk-WEJYVCCX.js";import"./chunk-AAJJTF33.js";import"./chunk-2FWFPV5I.js";import{ja as Ce}from"./chunk-3PYW74LR.js";import{D as L,E as fe,h as ue,o as _e}from"./chunk-P7HKWFZT.js";import"./chunk-HSQKKFE6.js";import"./chunk-7BDVBLHM.js";import"./chunk-AHCRE4GP.js";import"./chunk-W7HVLC6V.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-DZT5XHBQ.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 +1 @@
|
|
|
1
|
-
import{a as k}from"./chunk-
|
|
1
|
+
import{a as k}from"./chunk-MLMSIZGP.js";import{A as N,D as L,E as j,c as E,h as A,i as V,k as I,o as R,p as U}from"./chunk-P7HKWFZT.js";import{c as D}from"./chunk-HSQKKFE6.js";import"./chunk-7BDVBLHM.js";import{a as p}from"./chunk-AHCRE4GP.js";import"./chunk-W7HVLC6V.js";import{$a as b,$b as x,Ib as i,Jb as n,Kb as u,Ob as C,Qb as g,Qd as M,Vd as P,Zb as S,_b as _,d as f,da as v,db as d,ec as s,jc as w,kb as y,kc as O,lc as T,va as l,wa as m}from"./chunk-DZT5XHBQ.js";import"./chunk-7DCB7DB2.js";var z=["totpCode"],F=class h{constructor(e,t,o,r){this.authenticatorService=e;this.router=t;this.authService=o;this.toastrService=r;this.redirectUrl=this.authService.returnUrl,this.destroy$=new f,this.checkOnRefreshPage()}validationCodeEl;validationCode;redirectUrl;destroy$;ngOnInit(){document.body.classList.add("login-body")}ngAfterViewInit(){this.validationCodeEl.nativeElement.focus()}ngOnDestroy(){document.body.classList.remove("login-body"),this.destroy$.next(!0),this.destroy$.complete()}checkOnRefreshPage(){p.IsEmpty(this.authService.loginResponse)&&this.router.navigate(["/"])}onSubmit(){this.validateOnVerfiyCode()&&this.authenticatorService.validateCode(this.validationCode,this.authService.loginResponse.UserID).pipe(v(this.destroy$)).subscribe({next:e=>{if(this.authService.saveLoginConfigToStorage(e),p.IsNotEmpty(this.redirectUrl))this.router.navigateByUrl(this.redirectUrl),this.authService.returnUrl=null;else{let t=this.authService.getRedirectUrl();this.router.navigate([t])}}})}validateOnVerfiyCode(){let e=!0;return p.IsEmpty(this.validationCode)?(e=!1,this.toastrService.warning("You must enter a authentication code.","Warning")):(this.validationCode.length<6||this.validationCode.length>6)&&(e=!1,this.toastrService.warning("The authentication code must be six digits long.","Warning")),e}numberOnly(e){return p.numberOnly(e)}submitOnFullOTP(e){e.length==6&&this.onSubmit()}static \u0275fac=function(t){return new(t||h)(d(k),d(M),d(D),d(P))};static \u0275cmp=y({type:h,selectors:[["POS-auth-totp"]],viewQuery:function(t,o){if(t&1&&S(z,5),t&2){let r;_(r=x())&&(o.validationCodeEl=r.first)}},decls:28,vars:1,consts:[["totpCode",""],[1,"container-fluid"],[1,"row","bg-white","mx-auto","totp-pane"],[1,"col-md-7","order-md-first","order-first","form-pane"],[1,"text-start"],[1,"mt-6","text-start"],[3,"submit"],[1,"row","mt-3"],[1,"col-12","text-start","otp-container","position-relative"],["for","totpCode",1,"form-label"],["type","text","maxlength","6","data-cy","totp-code","aria-label","Username","name","totp-code","id","totpCode",1,"border-0",3,"ngModelChange","keypress","ngModel"],[1,"stripe"],["type","submit",1,"btn","btn-lg","btn-primary","rounded-1","fw-normal","rounded-0"],[1,"col-md-5","order-md-last","order-last","border-start","border-secondary","d-flex","align-items-center","justify-content-center","img-pane"],[1,"d-flex","align-items-center","justify-content-center","mb-6"],["src","//res.cloudinary.com/pos/image/upload/v1666079494/POS/Images/Login/TOTP.png",1,"border-0",2,"width","50%"],[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"]],template:function(t,o){if(t&1){let r=C();i(0,"div",1)(1,"div",2)(2,"div",3)(3,"h3",4),s(4,"Enter time-based OTP"),n(),i(5,"p",5),s(6,"Enter the OTP generated on your authenticator app"),n(),i(7,"form",6),g("submit",function(){return l(r),m(o.onSubmit())}),i(8,"div",7)(9,"div",8)(10,"label",9),s(11,"AUTHENTICATION CODE"),n(),i(12,"input",10,0),T("ngModelChange",function(a){return l(r),O(o.validationCode,a)||(o.validationCode=a),m(a)}),g("keypress",function(a){return l(r),m(o.numberOnly(a))})("ngModelChange",function(a){return l(r),m(o.submitOnFullOTP(a))}),n(),i(14,"span",11),s(15,"______"),n(),i(16,"button",12),s(17," Verify "),n()()()()(),i(18,"div",13)(19,"div",14),u(20,"img",15),n()()(),i(21,"div",16)(22,"div",17)(23,"div")(24,"span"),s(25,"powered by :"),n(),u(26,"a",18)(27,"img",19),n()()()()}t&2&&(b(12),w("ngModel",o.validationCode))},dependencies:[j,U,E,A,V,N,L,R,I],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:3rem}@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}"]})};export{F as AuthTotpComponent};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{u as T,v as M}from"./chunk-
|
|
1
|
+
import{u as T,v as M}from"./chunk-677WPFLK.js";import{e as g,f as u}from"./chunk-D35OBUDE.js";import{a as C}from"./chunk-2FWFPV5I.js";import{$a as s,Ib as l,Jb as c,Kb as f,Qb as d,Va as m,db as i,kb as p,vb as t}from"./chunk-DZT5XHBQ.js";var _=class a{constructor(e,o){this.data=e;this.dialogRef=o;this.message=e.message,this.modalConfig=new T,this.modalConfig.title=e.title,this.modalConfig.okText=e.okText?e.okText:"Yes",this.modalConfig.cancelText=e.cancelText?e.cancelText:"No",this.modalConfig.headerType=e.headerType?e.headerType:C.Success}modalConfig;message;headerType;onOk(){this.dialogRef.close(!0)}onClose(){this.dialogRef.close(!1)}static \u0275fac=function(o){return new(o||a)(i(u),i(g))};static \u0275cmp=p({type:a,selectors:[["app-modal-confirm"]],standalone:!1,decls:3,vars:2,consts:[[3,"onOk","onCancel","onClose","config"],[1,"fs-4","mb-0",3,"innerHTML"]],template:function(o,n){o&1&&(l(0,"modal-material",0),d("onOk",function(){return n.onOk()})("onCancel",function(){return n.onClose()})("onClose",function(){return n.onClose()}),l(1,"content"),f(2,"div",1),c()()),o&2&&(t("config",n.modalConfig),s(2),t("innerHTML",n.message,m))},dependencies:[M],encapsulation:2})};export{_ as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as re}from"./chunk-SRISQ4G6.js";import{a as ae,b as oe}from"./chunk-
|
|
1
|
+
import{a as re}from"./chunk-SRISQ4G6.js";import{a as ae,b as oe}from"./chunk-JFAIF63Q.js";import"./chunk-W2UCLTBY.js";import"./chunk-34GJS34C.js";import"./chunk-NHVOGEOO.js";import"./chunk-AYBLEFQB.js";import"./chunk-LCUJHXDF.js";import{d as ie,e as ne}from"./chunk-3VKLFFAF.js";import"./chunk-NI6KAEXM.js";import"./chunk-3RK6DDJD.js";import"./chunk-L2EDFSBR.js";import"./chunk-GEWY5VWO.js";import"./chunk-TEFNN3TY.js";import"./chunk-GOQ3ZCDK.js";import"./chunk-JKYTSC2D.js";import"./chunk-TGAOY65D.js";import{e as ee}from"./chunk-ZR4YNJBZ.js";import"./chunk-VQ7WKMGF.js";import{a as K}from"./chunk-NLWPMDWU.js";import"./chunk-H24HNIUV.js";import"./chunk-MHBOKOSN.js";import"./chunk-S6TMUVGC.js";import"./chunk-PPWHSAY6.js";import"./chunk-FD5YMPRL.js";import"./chunk-MV3QRRW6.js";import"./chunk-6ZOGADBZ.js";import{a as te}from"./chunk-3AY3BZNI.js";import{a as J,h as Z,i as $}from"./chunk-MERQX2AF.js";import"./chunk-4E4L6WXO.js";import{b as X}from"./chunk-DHQUQTIV.js";import"./chunk-AZT6QE56.js";import"./chunk-5UL73W4S.js";import"./chunk-677WPFLK.js";import"./chunk-CIBQBSM6.js";import{P as Y}from"./chunk-L2RZWAX3.js";import"./chunk-ZT4RBJMM.js";import"./chunk-GIKR6Y2K.js";import{e as Q}from"./chunk-VMY3JQDA.js";import"./chunk-D35OBUDE.js";import"./chunk-567HXZXC.js";import"./chunk-WEJYVCCX.js";import"./chunk-AAJJTF33.js";import{a as z}from"./chunk-2FWFPV5I.js";import"./chunk-3PYW74LR.js";import{D as U,h as j,o as G}from"./chunk-P7HKWFZT.js";import"./chunk-HSQKKFE6.js";import"./chunk-7BDVBLHM.js";import"./chunk-AHCRE4GP.js";import"./chunk-W7HVLC6V.js";import{$a as c,Ac as x,Db as A,Eb as E,Fc as O,Gb as V,Hb as W,Ib as n,Jb as a,Kb as S,Lb as D,Mb as v,Ob as T,Qb as y,Rb as s,Vd as H,Y as k,Yd as q,Zc as L,cd as N,db as h,ec as u,fa as I,jc as g,jd as R,kb as P,kc as _,lc as f,na as B,ob as M,qb as C,va as p,vb as l,wa as m,zc as b}from"./chunk-DZT5XHBQ.js";import"./chunk-7DCB7DB2.js";function pe(o,d){if(o&1){let t=T();n(0,"button",7),y("click",function(){p(t);let e=s();return m(e.onPrint())}),S(1,"i",8),n(2,"span"),u(3,"Print"),a()()}}function me(o,d){if(o&1){let t=T();n(0,"div",9)(1,"h6"),u(2,"Outlet"),a(),n(3,"outlet-selector",10),f("ngModelChange",function(e){p(t);let i=s();return _(i.pageData.Filter.EntityID,e)||(i.pageData.Filter.EntityID=e),m(e)}),a(),n(4,"h6"),u(5,"Sales Order Tag"),a(),n(6,"ng-select",11),f("ngModelChange",function(e){p(t);let i=s();return _(i.pageData.Filter.SalesOrderTagID,e)||(i.pageData.Filter.SalesOrderTagID=e),m(e)}),a(),n(7,"h6"),u(8,"From"),a(),n(9,"div",12)(10,"div",13)(11,"datepicker",14),f("dateChange",function(e){p(t);let i=s();return _(i.pageData.Filter.From,e)||(i.pageData.Filter.From=e),m(e)}),a()(),n(12,"div",13)(13,"app-timepicker",15),f("timeChange",function(e){p(t);let i=s();return _(i.pageData.Filter.StartTime,e)||(i.pageData.Filter.StartTime=e),m(e)}),a()()(),n(14,"h6"),u(15,"To"),a(),n(16,"div",12)(17,"div",13)(18,"datepicker",16),f("dateChange",function(e){p(t);let i=s();return _(i.pageData.Filter.To,e)||(i.pageData.Filter.To=e),m(e)}),a()(),n(19,"div",13)(20,"app-timepicker",15),f("timeChange",function(e){p(t);let i=s();return _(i.pageData.Filter.EndTime,e)||(i.pageData.Filter.EndTime=e),m(e)}),a()()()()}if(o&2){let t=s();c(3),l("accessType",2),g("ngModel",t.pageData.Filter.EntityID),c(3),l("items",t.pageData==null||t.pageData.Options==null?null:t.pageData.Options.SalesOrderTags),g("ngModel",t.pageData.Filter.SalesOrderTagID),c(5),l("isFloatingLabel",!1),g("date",t.pageData.Filter.From),l("hidelClearBtn",!0),c(2),g("time",t.pageData.Filter.StartTime),l("fullWidth",!0),c(5),l("isFloatingLabel",!1)("hidelClearBtn",!0),g("date",t.pageData.Filter.To),c(2),g("time",t.pageData.Filter.EndTime),l("fullWidth",!0)}}function ce(o,d){o&1&&(D(0),n(1,"div",20),u(2,"\xA0"),a(),v())}function se(o,d){if(o&1&&(S(0,"pos-receipt-a4",17),n(1,"div",18),S(2,"div",19),a(),C(3,ce,3,0,"ng-container",6)),o&2){let t=d.$implicit,r=d.$index,e=s().ngIf,i=s();l("data",t)("printTemplate",i.printTemplates==null?null:i.printTemplates.get(t.PrintTemplateID))("config",e.AppConfig)("workOrderMode",!1)("fullMode",!0)("stylesheet",e.StylesSheet),c(3),l("ngIf",r!==(e.Data==null?null:e.Data.length)-1)}}function de(o,d){if(o&1&&(D(0),V(1,se,4,7,null,null,E),v()),o&2){let t=d.ngIf;c(),W(t.Data)}}var le=class o extends K{constructor(t,r,e){super(t,r,"Tool/GetBulkPrintLoader","Tool/GetBulkPrintLoader",e,null,!0);this.httpService=r}dialogFilter=B(J);receipts$;printTemplates;preInitList(){this.pageData.Filter.From=new Date,this.pageData.Filter.To=new Date,this.pageData.Filter.StartTime="00:00",this.pageData.Filter.EndTime="23:59"}onFilter(){this.receipts$=this.httpService.post(Y.GetBulkPrintA4,this.pageData.Filter).pipe(I(t=>{t?.Data?.length==0?this.toastrService.info("There are no transaction",z.Info):this.generatePrintTemplate(t.PrintTemplates)}),k(1))}generatePrintTemplate(t=[]){this.printTemplates=new Map(t.map(r=>[r.ID,r]))}onNewPrint(){this.dialogFilter.openDialog()}onPrint(){window.setTimeout(function(){window.print()},500)}static \u0275fac=function(r){return new(r||o)(h(X),h(q),h(H))};static \u0275cmp=P({type:o,selectors:[["bulk-invoice-A4"]],features:[M],decls:13,vars:10,consts:[["pageFilterTemplate",""],[3,"textChange","onSubmit","pageData","hideSearchBox","text","hideSearchDropdown"],[1,"btn","btn-outline-secondary","me-3"],[1,"btn","btn-success",3,"click"],["filters",""],[1,"container-fluid","mt-5"],[4,"ngIf"],[1,"btn","btn-outline-secondary","me-3",3,"click"],[1,"fa","fa-print","me-3"],[1,"dialog-filter"],["placeholder","Choose an Outlet",3,"ngModelChange","accessType","ngModel"],["bindLabel","Name","bindValue","ID","placeholder","Choose Sales Order Tag",3,"ngModelChange","items","ngModel"],[1,"d-flex","align-items-center","gap-5"],[1,"w-100"],["placeholder","From","appearance","outline","name","From",1,"me-4",3,"dateChange","isFloatingLabel","date","hidelClearBtn"],[3,"timeChange","time","fullWidth"],["placeholder","To","appearance","outline","name","To",1,"me-4",3,"dateChange","isFloatingLabel","hidelClearBtn","date"],[3,"data","printTemplate","config","workOrderMode","fullMode","stylesheet"],[1,"d-print-none","mt-8"],[2,"border-top-style","dotted","margin-bottom","5px"],[1,"page-break"]],template:function(r,e){if(r&1){let i=T();n(0,"mainpanel-cmp",1),f("textChange",function(w){return p(i),_(e.pageData.Filter.Number,w)||(e.pageData.Filter.Number=w),m(w)}),y("onSubmit",function(){return p(i),m(e.onFilter())}),n(1,"actions"),C(2,pe,4,0,"button",2),b(3,"async"),n(4,"button",3),y("click",function(){return p(i),m(e.onNewPrint())}),u(5,"New"),a()(),n(6,"div",4),C(7,me,21,14,"ng-template",null,0,O),a(),n(9,"content")(10,"div",5),C(11,de,3,0,"ng-container",6),b(12,"async"),a()()()}if(r&2){let i;l("pageData",e.menuData)("hideSearchBox",!0),g("text",e.pageData.Filter.Number),l("hideSearchDropdown",!0),c(2),A(((i=x(3,6,e.receipts$))==null||i.Data==null?null:i.Data.length)>0?2:-1),c(9),l("ngIf",x(12,8,e.printTemplates&&e.receipts$))}},dependencies:[R,L,N,oe,ae,$,Z,te,Q,ne,ie,ee,U,j,G,re],styles:["input.p-inputtext{height:46.63px;border-color:#0000001f!important} input.p-inputtext :hover{border-color:#0000001f!important}@media print{.page-break[_ngcontent-%COMP%]{page-break-after:always}}"]})};export{le as BulkInvoiceA4Component};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as yt,c as xt}from"./chunk-WEJYVCCX.js";import{a as wt}from"./chunk-AAJJTF33.js";import{a as P}from"./chunk-2FWFPV5I.js";import{ja as _t,ka as S,sa as ht}from"./chunk-3PYW74LR.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-P7HKWFZT.js";import{a as ot}from"./chunk-
|
|
1
|
+
import{a as yt,c as xt}from"./chunk-WEJYVCCX.js";import{a as wt}from"./chunk-AAJJTF33.js";import{a as P}from"./chunk-2FWFPV5I.js";import{ja as _t,ka as S,sa as ht}from"./chunk-3PYW74LR.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-P7HKWFZT.js";import{a as ot}from"./chunk-W7HVLC6V.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-DZT5XHBQ.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 +1 @@
|
|
|
1
|
-
import{b as L,c as O}from"./chunk-CIBQBSM6.js";import{O as S,o as h}from"./chunk-
|
|
1
|
+
import{b as L,c as O}from"./chunk-CIBQBSM6.js";import{O as S,o as h}from"./chunk-L2RZWAX3.js";import{a as F}from"./chunk-AHCRE4GP.js";import{$a as o,Ac as d,Db as g,Ib as l,Jb as s,Kb as x,Lb as V,Mb as T,Rb as p,Va as C,Wa as I,Wc as v,Zc as N,ec as u,gc as m,gd as E,jd as k,ka as b,kb as _,lb as y,qb as r,rc as M,sc as P,vb as a,zb as f,zc as c}from"./chunk-DZT5XHBQ.js";var D=t=>({disabled:t}),H=(t,i)=>({labelFilledInput:t,labelEmptyInput:i});function B(t,i){if(t&1&&(l(0,"a",4),u(1),c(2,"number"),s()),t&2){let e=p(2);a("href",e.inputValue,I),o(),m(" ",e.inputValueType()==="number"?d(2,2,e.inputValue):e.inputValue," ")}}function j(t,i){if(t&1&&(u(0),c(1,"number")),t&2){let e=p(2);m(" ",e.inputValueType()==="number"?d(1,1,e.inputValue):e.inputValue," ")}}function U(t,i){if(t&1&&(l(0,"p",1),r(1,B,3,4,"a",4)(2,j,2,3),s()),t&2){let e=p();o(),g(e.isLink?1:2)}}function q(t,i){if(t&1&&(x(0,"p",5),c(1,"newlines")),t&2){let e=p();a("innerHTML",d(1,1,e.inputValue),C)}}function A(t,i){if(t&1&&(V(0),u(1),T()),t&2){let e=p();o(),m(" ",e.labelValue," ")}}var z=class t{inputValue;labelValue;inputType="input";labelVisible=!0;disabled=!1;class="mb-8 ";tooltip;isLink=!1;isInputFilled;isNotEmpty=F.IsNotEmpty;inputValueType(){return typeof this.inputValue}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=_({type:t,selectors:[["POS-info-page-input"]],inputs:{inputValue:"inputValue",labelValue:"labelValue",inputType:"inputType",labelVisible:"labelVisible",disabled:"disabled",class:"class",tooltip:"tooltip",isLink:"isLink"},standalone:!1,decls:5,vars:14,consts:[["matTooltipPosition","above",3,"ngClass","matTooltip"],[1,"text-truncate"],[3,"innerHTML",4,"ngIf"],[4,"ngIf"],["target","_blank",3,"href"],[3,"innerHTML"]],template:function(e,n){e&1&&(l(0,"div",0),r(1,U,3,1,"p",1)(2,q,2,3,"p",2),l(3,"label"),r(4,A,2,1,"ng-container",3),s()()),e&2&&(f(n.class),a("ngClass",M(9,D,n.disabled))("matTooltip",n.tooltip),o(),g(n.isNotEmpty(n.inputValue)&&n.inputType=="input"?1:-1),o(),a("ngIf",n.isNotEmpty(n.inputValue)&&n.inputType=="textarea"),o(),f(P(11,H,n.isNotEmpty(n.inputValue),!n.isNotEmpty(n.inputValue))),o(),a("ngIf",n.labelVisible))},dependencies:[v,N,L,E,h],styles:["div[_ngcontent-%COMP%]{border:1px solid #ced4da;position:relative;border-radius:.25rem!important}p[_ngcontent-%COMP%]{margin-top:18px;margin-bottom:18px;padding-left:.75rem!important;font-size:.875rem}a[_ngcontent-%COMP%]{color:#007bff;text-decoration:none}.labelFilledInput[_ngcontent-%COMP%]{position:absolute;top:-10px;left:10px;background:#fff;padding-left:4px;padding-right:4px;font-size:.75rem!important;color:#9da2a6}.labelEmptyInput[_ngcontent-%COMP%]{margin-top:18px;margin-bottom:18px;padding-left:.75rem!important;font-size:.875rem;color:#ccc}.disabled[_ngcontent-%COMP%]{background-color:#e9ecef;opacity:1}"]})},w=class t{static \u0275fac=function(e){return new(e||t)};static \u0275mod=y({type:t});static \u0275inj=b({imports:[k,S,O]})};export{z as a,w as b};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as Fa,b as wt}from"./chunk-
|
|
1
|
+
import{a as Fa,b as wt}from"./chunk-NI6KAEXM.js";import{a as kt}from"./chunk-L2EDFSBR.js";import{a as yt,b as Ye,c as ir,d as Pa,e as Wa,f as Mt,g as Ia,h as Ra,p as Oe,q as Dt}from"./chunk-GEWY5VWO.js";import{b as Ta,d as gt}from"./chunk-GOQ3ZCDK.js";import{h as Ca,j as xa,m as Na}from"./chunk-677WPFLK.js";import{a as ba}from"./chunk-P7HKWFZT.js";import{a as Oa}from"./chunk-AHCRE4GP.js";import{$a as z,Ac as va,Fa as ma,Ib as re,Jb as ue,Kb as je,Kc as Sa,Lb as pa,Mb as ya,Ob as Ge,Qb as Se,Rb as ze,Ub as ga,Zc as _t,cd as Ya,d as la,da as ua,db as de,dc as sr,e as da,ec as Ma,fc as Da,ia as ca,ja as ht,jd as pt,ka as He,kb as mt,la as fa,lb as Ue,na as ar,pc as ka,qb as Ve,ua as ha,ub as _a,va as oe,vb as L,wa as le,wb as nr,zc as wa}from"./chunk-DZT5XHBQ.js";import{c as ia,e as jo,g as oa}from"./chunk-7DCB7DB2.js";var lr=jo((or,be)=>{(function(y,l){typeof or=="object"&&typeof be<"u"?be.exports=l():typeof define=="function"&&define.amd?define(l):y.moment=l()})(or,function(){"use strict";var y;function l(){return y.apply(null,arguments)}function o(e){y=e}function u(e){return e instanceof Array||Object.prototype.toString.call(e)==="[object Array]"}function w(e){return e!=null&&Object.prototype.toString.call(e)==="[object Object]"}function m(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function H(e){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(e).length===0;var t;for(t in e)if(m(e,t))return!1;return!0}function N(e){return e===void 0}function $(e){return typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]"}function Ce(e){return e instanceof Date||Object.prototype.toString.call(e)==="[object Date]"}function ur(e,t){var r=[],a,n=e.length;for(a=0;a<n;++a)r.push(t(e[a],a));return r}function ae(e,t){for(var r in t)m(t,r)&&(e[r]=t[r]);return m(t,"toString")&&(e.toString=t.toString),m(t,"valueOf")&&(e.valueOf=t.valueOf),e}function U(e,t,r,a){return Ar(e,t,r,a,!0).utc()}function Va(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function p(e){return e._pf==null&&(e._pf=Va()),e._pf}var Yt;Array.prototype.some?Yt=Array.prototype.some:Yt=function(e){var t=Object(this),r=t.length>>>0,a;for(a=0;a<r;a++)if(a in t&&e.call(this,t[a],a,t))return!0;return!1};function Ot(e){var t=null,r=!1,a=e._d&&!isNaN(e._d.getTime());if(a&&(t=p(e),r=Yt.call(t.parsedDateParts,function(n){return n!=null}),a=t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&r),e._strict&&(a=a&&t.charsLeftOver===0&&t.unusedTokens.length===0&&t.bigHour===void 0)),Object.isFrozen==null||!Object.isFrozen(e))e._isValid=a;else return a;return e._isValid}function $e(e){var t=U(NaN);return e!=null?ae(p(t),e):p(t).userInvalidated=!0,t}var cr=l.momentProperties=[],bt=!1;function Tt(e,t){var r,a,n,s=cr.length;if(N(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),N(t._i)||(e._i=t._i),N(t._f)||(e._f=t._f),N(t._l)||(e._l=t._l),N(t._strict)||(e._strict=t._strict),N(t._tzm)||(e._tzm=t._tzm),N(t._isUTC)||(e._isUTC=t._isUTC),N(t._offset)||(e._offset=t._offset),N(t._pf)||(e._pf=p(t)),N(t._locale)||(e._locale=t._locale),s>0)for(r=0;r<s;r++)a=cr[r],n=t[a],N(n)||(e[a]=n);return e}function xe(e){Tt(this,e),this._d=new Date(e._d!=null?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),bt===!1&&(bt=!0,l.updateOffset(this),bt=!1)}function F(e){return e instanceof xe||e!=null&&e._isAMomentObject!=null}function fr(e){l.suppressDeprecationWarnings===!1&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+e)}function W(e,t){var r=!0;return ae(function(){if(l.deprecationHandler!=null&&l.deprecationHandler(null,e),r){var a=[],n,s,i,c=arguments.length;for(s=0;s<c;s++){if(n="",typeof arguments[s]=="object"){n+=`
|
|
2
2
|
[`+s+"] ";for(i in arguments[0])m(arguments[0],i)&&(n+=i+": "+arguments[0][i]+", ");n=n.slice(0,-2)}else n=arguments[s];a.push(n)}fr(e+`
|
|
3
3
|
Arguments: `+Array.prototype.slice.call(a).join("")+`
|
|
4
4
|
`+new Error().stack),r=!1}return t.apply(this,arguments)},t)}var hr={};function mr(e,t){l.deprecationHandler!=null&&l.deprecationHandler(e,t),hr[e]||(fr(t),hr[e]=!0)}l.suppressDeprecationWarnings=!1,l.deprecationHandler=null;function V(e){return typeof Function<"u"&&e instanceof Function||Object.prototype.toString.call(e)==="[object Function]"}function ja(e){var t,r;for(r in e)m(e,r)&&(t=e[r],V(t)?this[r]=t:this["_"+r]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function Ct(e,t){var r=ae({},e),a;for(a in t)m(t,a)&&(w(e[a])&&w(t[a])?(r[a]={},ae(r[a],e[a]),ae(r[a],t[a])):t[a]!=null?r[a]=t[a]:delete r[a]);for(a in e)m(e,a)&&!m(t,a)&&w(e[a])&&(r[a]=ae({},r[a]));return r}function xt(e){e!=null&&this.set(e)}var Nt;Object.keys?Nt=Object.keys:Nt=function(e){var t,r=[];for(t in e)m(e,t)&&r.push(t);return r};var Ga={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function za(e,t,r){var a=this._calendar[e]||this._calendar.sameElse;return V(a)?a.call(t,r):a}function j(e,t,r){var a=""+Math.abs(e),n=t-a.length,s=e>=0;return(s?r?"+":"":"-")+Math.pow(10,Math.max(0,n)).toString().substr(1)+a}var Pt=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,Ze=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Wt={},_e={};function h(e,t,r,a){var n=a;typeof a=="string"&&(n=function(){return this[a]()}),e&&(_e[e]=n),t&&(_e[t[0]]=function(){return j(n.apply(this,arguments),t[1],t[2])}),r&&(_e[r]=function(){return this.localeData().ordinal(n.apply(this,arguments),e)})}function $a(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function Za(e){var t=e.match(Pt),r,a;for(r=0,a=t.length;r<a;r++)_e[t[r]]?t[r]=_e[t[r]]:t[r]=$a(t[r]);return function(n){var s="",i;for(i=0;i<a;i++)s+=V(t[i])?t[i].call(n,e):t[i];return s}}function Be(e,t){return e.isValid()?(t=_r(t,e.localeData()),Wt[t]=Wt[t]||Za(t),Wt[t](e)):e.localeData().invalidDate()}function _r(e,t){var r=5;function a(n){return t.longDateFormat(n)||n}for(Ze.lastIndex=0;r>=0&&Ze.test(e);)e=e.replace(Ze,a),Ze.lastIndex=0,r-=1;return e}var Ba={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function qa(e){var t=this._longDateFormat[e],r=this._longDateFormat[e.toUpperCase()];return t||!r?t:(this._longDateFormat[e]=r.match(Pt).map(function(a){return a==="MMMM"||a==="MM"||a==="DD"||a==="dddd"?a.slice(1):a}).join(""),this._longDateFormat[e])}var Ja="Invalid date";function Qa(){return this._invalidDate}var Xa="%d",Ka=/\d{1,2}/;function en(e){return this._ordinal.replace("%d",e)}var tn={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function rn(e,t,r,a){var n=this._relativeTime[r];return V(n)?n(e,t,r,a):n.replace(/%d/i,e)}function an(e,t){var r=this._relativeTime[e>0?"future":"past"];return V(r)?r(t):r.replace(/%s/i,t)}var pr={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function I(e){return typeof e=="string"?pr[e]||pr[e.toLowerCase()]:void 0}function It(e){var t={},r,a;for(a in e)m(e,a)&&(r=I(a),r&&(t[r]=e[a]));return t}var nn={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function sn(e){var t=[],r;for(r in e)m(e,r)&&t.push({unit:r,priority:nn[r]});return t.sort(function(a,n){return a.priority-n.priority}),t}var yr=/\d/,P=/\d\d/,gr=/\d{3}/,Rt=/\d{4}/,qe=/[+-]?\d{6}/,S=/\d\d?/,Mr=/\d\d\d\d?/,Dr=/\d\d\d\d\d\d?/,Je=/\d{1,3}/,Ft=/\d{1,4}/,Qe=/[+-]?\d{1,6}/,pe=/\d+/,Xe=/[+-]?\d+/,on=/Z|[+-]\d\d:?\d\d/gi,Ke=/Z|[+-]\d\d(?::?\d\d)?/gi,ln=/[+-]?\d+(\.\d{1,3})?/,Ne=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,ye=/^[1-9]\d?/,At=/^([1-9]\d|\d)/,et;et={};function f(e,t,r){et[e]=V(t)?t:function(a,n){return a&&r?r:t}}function dn(e,t){return m(et,e)?et[e](t._strict,t._locale):new RegExp(un(e))}function un(e){return Z(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,r,a,n,s){return r||a||n||s}))}function Z(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function R(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function g(e){var t=+e,r=0;return t!==0&&isFinite(t)&&(r=R(t)),r}var Et={};function v(e,t){var r,a=t,n;for(typeof e=="string"&&(e=[e]),$(t)&&(a=function(s,i){i[t]=g(s)}),n=e.length,r=0;r<n;r++)Et[e[r]]=a}function Pe(e,t){v(e,function(r,a,n,s){n._w=n._w||{},t(r,n._w,n,s)})}function cn(e,t,r){t!=null&&m(Et,e)&&Et[e](t,r._a,r,e)}function tt(e){return e%4===0&&e%100!==0||e%400===0}var C=0,B=1,G=2,T=3,A=4,q=5,ce=6,fn=7,hn=8;h("Y",0,0,function(){var e=this.year();return e<=9999?j(e,4):"+"+e}),h(0,["YY",2],0,function(){return this.year()%100}),h(0,["YYYY",4],0,"year"),h(0,["YYYYY",5],0,"year"),h(0,["YYYYYY",6,!0],0,"year"),f("Y",Xe),f("YY",S,P),f("YYYY",Ft,Rt),f("YYYYY",Qe,qe),f("YYYYYY",Qe,qe),v(["YYYYY","YYYYYY"],C),v("YYYY",function(e,t){t[C]=e.length===2?l.parseTwoDigitYear(e):g(e)}),v("YY",function(e,t){t[C]=l.parseTwoDigitYear(e)}),v("Y",function(e,t){t[C]=parseInt(e,10)});function We(e){return tt(e)?366:365}l.parseTwoDigitYear=function(e){return g(e)+(g(e)>68?1900:2e3)};var kr=ge("FullYear",!0);function mn(){return tt(this.year())}function ge(e,t){return function(r){return r!=null?(wr(this,e,r),l.updateOffset(this,t),this):Ie(this,e)}}function Ie(e,t){if(!e.isValid())return NaN;var r=e._d,a=e._isUTC;switch(t){case"Milliseconds":return a?r.getUTCMilliseconds():r.getMilliseconds();case"Seconds":return a?r.getUTCSeconds():r.getSeconds();case"Minutes":return a?r.getUTCMinutes():r.getMinutes();case"Hours":return a?r.getUTCHours():r.getHours();case"Date":return a?r.getUTCDate():r.getDate();case"Day":return a?r.getUTCDay():r.getDay();case"Month":return a?r.getUTCMonth():r.getMonth();case"FullYear":return a?r.getUTCFullYear():r.getFullYear();default:return NaN}}function wr(e,t,r){var a,n,s,i,c;if(!(!e.isValid()||isNaN(r))){switch(a=e._d,n=e._isUTC,t){case"Milliseconds":return void(n?a.setUTCMilliseconds(r):a.setMilliseconds(r));case"Seconds":return void(n?a.setUTCSeconds(r):a.setSeconds(r));case"Minutes":return void(n?a.setUTCMinutes(r):a.setMinutes(r));case"Hours":return void(n?a.setUTCHours(r):a.setHours(r));case"Date":return void(n?a.setUTCDate(r):a.setDate(r));case"FullYear":break;default:return}s=r,i=e.month(),c=e.date(),c=c===29&&i===1&&!tt(s)?28:c,n?a.setUTCFullYear(s,i,c):a.setFullYear(s,i,c)}}function _n(e){return e=I(e),V(this[e])?this[e]():this}function pn(e,t){if(typeof e=="object"){e=It(e);var r=sn(e),a,n=r.length;for(a=0;a<n;a++)this[r[a].unit](e[r[a].unit])}else if(e=I(e),V(this[e]))return this[e](t);return this}function yn(e,t){return(e%t+t)%t}var b;Array.prototype.indexOf?b=Array.prototype.indexOf:b=function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1};function Lt(e,t){if(isNaN(e)||isNaN(t))return NaN;var r=yn(t,12);return e+=(t-r)/12,r===1?tt(e)?29:28:31-r%7%2}h("M",["MM",2],"Mo",function(){return this.month()+1}),h("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),h("MMMM",0,0,function(e){return this.localeData().months(this,e)}),f("M",S,ye),f("MM",S,P),f("MMM",function(e,t){return t.monthsShortRegex(e)}),f("MMMM",function(e,t){return t.monthsRegex(e)}),v(["M","MM"],function(e,t){t[B]=g(e)-1}),v(["MMM","MMMM"],function(e,t,r,a){var n=r._locale.monthsParse(e,a,r._strict);n!=null?t[B]=n:p(r).invalidMonth=e});var gn="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),vr="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Sr=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Mn=Ne,Dn=Ne;function kn(e,t){return e?u(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||Sr).test(t)?"format":"standalone"][e.month()]:u(this._months)?this._months:this._months.standalone}function wn(e,t){return e?u(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[Sr.test(t)?"format":"standalone"][e.month()]:u(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function vn(e,t,r){var a,n,s,i=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],a=0;a<12;++a)s=U([2e3,a]),this._shortMonthsParse[a]=this.monthsShort(s,"").toLocaleLowerCase(),this._longMonthsParse[a]=this.months(s,"").toLocaleLowerCase();return r?t==="MMM"?(n=b.call(this._shortMonthsParse,i),n!==-1?n:null):(n=b.call(this._longMonthsParse,i),n!==-1?n:null):t==="MMM"?(n=b.call(this._shortMonthsParse,i),n!==-1?n:(n=b.call(this._longMonthsParse,i),n!==-1?n:null)):(n=b.call(this._longMonthsParse,i),n!==-1?n:(n=b.call(this._shortMonthsParse,i),n!==-1?n:null))}function Sn(e,t,r){var a,n,s;if(this._monthsParseExact)return vn.call(this,e,t,r);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),a=0;a<12;a++){if(n=U([2e3,a]),r&&!this._longMonthsParse[a]&&(this._longMonthsParse[a]=new RegExp("^"+this.months(n,"").replace(".","")+"$","i"),this._shortMonthsParse[a]=new RegExp("^"+this.monthsShort(n,"").replace(".","")+"$","i")),!r&&!this._monthsParse[a]&&(s="^"+this.months(n,"")+"|^"+this.monthsShort(n,""),this._monthsParse[a]=new RegExp(s.replace(".",""),"i")),r&&t==="MMMM"&&this._longMonthsParse[a].test(e))return a;if(r&&t==="MMM"&&this._shortMonthsParse[a].test(e))return a;if(!r&&this._monthsParse[a].test(e))return a}}function Yr(e,t){if(!e.isValid())return e;if(typeof t=="string"){if(/^\d+$/.test(t))t=g(t);else if(t=e.localeData().monthsParse(t),!$(t))return e}var r=t,a=e.date();return a=a<29?a:Math.min(a,Lt(e.year(),r)),e._isUTC?e._d.setUTCMonth(r,a):e._d.setMonth(r,a),e}function Or(e){return e!=null?(Yr(this,e),l.updateOffset(this,!0),this):Ie(this,"Month")}function Yn(){return Lt(this.year(),this.month())}function On(e){return this._monthsParseExact?(m(this,"_monthsRegex")||br.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(m(this,"_monthsShortRegex")||(this._monthsShortRegex=Mn),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function bn(e){return this._monthsParseExact?(m(this,"_monthsRegex")||br.call(this),e?this._monthsStrictRegex:this._monthsRegex):(m(this,"_monthsRegex")||(this._monthsRegex=Dn),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function br(){function e(_,M){return M.length-_.length}var t=[],r=[],a=[],n,s,i,c;for(n=0;n<12;n++)s=U([2e3,n]),i=Z(this.monthsShort(s,"")),c=Z(this.months(s,"")),t.push(i),r.push(c),a.push(c),a.push(i);t.sort(e),r.sort(e),a.sort(e),this._monthsRegex=new RegExp("^("+a.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+t.join("|")+")","i")}function Tn(e,t,r,a,n,s,i){var c;return e<100&&e>=0?(c=new Date(e+400,t,r,a,n,s,i),isFinite(c.getFullYear())&&c.setFullYear(e)):c=new Date(e,t,r,a,n,s,i),c}function Re(e){var t,r;return e<100&&e>=0?(r=Array.prototype.slice.call(arguments),r[0]=e+400,t=new Date(Date.UTC.apply(null,r)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function rt(e,t,r){var a=7+t-r,n=(7+Re(e,0,a).getUTCDay()-t)%7;return-n+a-1}function Tr(e,t,r,a,n){var s=(7+r-a)%7,i=rt(e,a,n),c=1+7*(t-1)+s+i,_,M;return c<=0?(_=e-1,M=We(_)+c):c>We(e)?(_=e+1,M=c-We(e)):(_=e,M=c),{year:_,dayOfYear:M}}function Fe(e,t,r){var a=rt(e.year(),t,r),n=Math.floor((e.dayOfYear()-a-1)/7)+1,s,i;return n<1?(i=e.year()-1,s=n+J(i,t,r)):n>J(e.year(),t,r)?(s=n-J(e.year(),t,r),i=e.year()+1):(i=e.year(),s=n),{week:s,year:i}}function J(e,t,r){var a=rt(e,t,r),n=rt(e+1,t,r);return(We(e)-a+n)/7}h("w",["ww",2],"wo","week"),h("W",["WW",2],"Wo","isoWeek"),f("w",S,ye),f("ww",S,P),f("W",S,ye),f("WW",S,P),Pe(["w","ww","W","WW"],function(e,t,r,a){t[a.substr(0,1)]=g(e)});function Cn(e){return Fe(e,this._week.dow,this._week.doy).week}var xn={dow:0,doy:6};function Nn(){return this._week.dow}function Pn(){return this._week.doy}function Wn(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function In(e){var t=Fe(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}h("d",0,"do","day"),h("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),h("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),h("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),h("e",0,0,"weekday"),h("E",0,0,"isoWeekday"),f("d",S),f("e",S),f("E",S),f("dd",function(e,t){return t.weekdaysMinRegex(e)}),f("ddd",function(e,t){return t.weekdaysShortRegex(e)}),f("dddd",function(e,t){return t.weekdaysRegex(e)}),Pe(["dd","ddd","dddd"],function(e,t,r,a){var n=r._locale.weekdaysParse(e,a,r._strict);n!=null?t.d=n:p(r).invalidWeekday=e}),Pe(["d","e","E"],function(e,t,r,a){t[a]=g(e)});function Rn(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function Fn(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function Ht(e,t){return e.slice(t,7).concat(e.slice(0,t))}var An="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Cr="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),En="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Ln=Ne,Hn=Ne,Un=Ne;function Vn(e,t){var r=u(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?Ht(r,this._week.dow):e?r[e.day()]:r}function jn(e){return e===!0?Ht(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function Gn(e){return e===!0?Ht(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function zn(e,t,r){var a,n,s,i=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],a=0;a<7;++a)s=U([2e3,1]).day(a),this._minWeekdaysParse[a]=this.weekdaysMin(s,"").toLocaleLowerCase(),this._shortWeekdaysParse[a]=this.weekdaysShort(s,"").toLocaleLowerCase(),this._weekdaysParse[a]=this.weekdays(s,"").toLocaleLowerCase();return r?t==="dddd"?(n=b.call(this._weekdaysParse,i),n!==-1?n:null):t==="ddd"?(n=b.call(this._shortWeekdaysParse,i),n!==-1?n:null):(n=b.call(this._minWeekdaysParse,i),n!==-1?n:null):t==="dddd"?(n=b.call(this._weekdaysParse,i),n!==-1||(n=b.call(this._shortWeekdaysParse,i),n!==-1)?n:(n=b.call(this._minWeekdaysParse,i),n!==-1?n:null)):t==="ddd"?(n=b.call(this._shortWeekdaysParse,i),n!==-1||(n=b.call(this._weekdaysParse,i),n!==-1)?n:(n=b.call(this._minWeekdaysParse,i),n!==-1?n:null)):(n=b.call(this._minWeekdaysParse,i),n!==-1||(n=b.call(this._weekdaysParse,i),n!==-1)?n:(n=b.call(this._shortWeekdaysParse,i),n!==-1?n:null))}function $n(e,t,r){var a,n,s;if(this._weekdaysParseExact)return zn.call(this,e,t,r);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),a=0;a<7;a++){if(n=U([2e3,1]).day(a),r&&!this._fullWeekdaysParse[a]&&(this._fullWeekdaysParse[a]=new RegExp("^"+this.weekdays(n,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[a]=new RegExp("^"+this.weekdaysShort(n,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[a]=new RegExp("^"+this.weekdaysMin(n,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[a]||(s="^"+this.weekdays(n,"")+"|^"+this.weekdaysShort(n,"")+"|^"+this.weekdaysMin(n,""),this._weekdaysParse[a]=new RegExp(s.replace(".",""),"i")),r&&t==="dddd"&&this._fullWeekdaysParse[a].test(e))return a;if(r&&t==="ddd"&&this._shortWeekdaysParse[a].test(e))return a;if(r&&t==="dd"&&this._minWeekdaysParse[a].test(e))return a;if(!r&&this._weekdaysParse[a].test(e))return a}}function Zn(e){if(!this.isValid())return e!=null?this:NaN;var t=Ie(this,"Day");return e!=null?(e=Rn(e,this.localeData()),this.add(e-t,"d")):t}function Bn(e){if(!this.isValid())return e!=null?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return e==null?t:this.add(e-t,"d")}function qn(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=Fn(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function Jn(e){return this._weekdaysParseExact?(m(this,"_weekdaysRegex")||Ut.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(m(this,"_weekdaysRegex")||(this._weekdaysRegex=Ln),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function Qn(e){return this._weekdaysParseExact?(m(this,"_weekdaysRegex")||Ut.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(m(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Hn),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Xn(e){return this._weekdaysParseExact?(m(this,"_weekdaysRegex")||Ut.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(m(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Un),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Ut(){function e(x,te){return te.length-x.length}var t=[],r=[],a=[],n=[],s,i,c,_,M;for(s=0;s<7;s++)i=U([2e3,1]).day(s),c=Z(this.weekdaysMin(i,"")),_=Z(this.weekdaysShort(i,"")),M=Z(this.weekdays(i,"")),t.push(c),r.push(_),a.push(M),n.push(c),n.push(_),n.push(M);t.sort(e),r.sort(e),a.sort(e),n.sort(e),this._weekdaysRegex=new RegExp("^("+n.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+t.join("|")+")","i")}function Vt(){return this.hours()%12||12}function Kn(){return this.hours()||24}h("H",["HH",2],0,"hour"),h("h",["hh",2],0,Vt),h("k",["kk",2],0,Kn),h("hmm",0,0,function(){return""+Vt.apply(this)+j(this.minutes(),2)}),h("hmmss",0,0,function(){return""+Vt.apply(this)+j(this.minutes(),2)+j(this.seconds(),2)}),h("Hmm",0,0,function(){return""+this.hours()+j(this.minutes(),2)}),h("Hmmss",0,0,function(){return""+this.hours()+j(this.minutes(),2)+j(this.seconds(),2)});function xr(e,t){h(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}xr("a",!0),xr("A",!1);function Nr(e,t){return t._meridiemParse}f("a",Nr),f("A",Nr),f("H",S,At),f("h",S,ye),f("k",S,ye),f("HH",S,P),f("hh",S,P),f("kk",S,P),f("hmm",Mr),f("hmmss",Dr),f("Hmm",Mr),f("Hmmss",Dr),v(["H","HH"],T),v(["k","kk"],function(e,t,r){var a=g(e);t[T]=a===24?0:a}),v(["a","A"],function(e,t,r){r._isPm=r._locale.isPM(e),r._meridiem=e}),v(["h","hh"],function(e,t,r){t[T]=g(e),p(r).bigHour=!0}),v("hmm",function(e,t,r){var a=e.length-2;t[T]=g(e.substr(0,a)),t[A]=g(e.substr(a)),p(r).bigHour=!0}),v("hmmss",function(e,t,r){var a=e.length-4,n=e.length-2;t[T]=g(e.substr(0,a)),t[A]=g(e.substr(a,2)),t[q]=g(e.substr(n)),p(r).bigHour=!0}),v("Hmm",function(e,t,r){var a=e.length-2;t[T]=g(e.substr(0,a)),t[A]=g(e.substr(a))}),v("Hmmss",function(e,t,r){var a=e.length-4,n=e.length-2;t[T]=g(e.substr(0,a)),t[A]=g(e.substr(a,2)),t[q]=g(e.substr(n))});function es(e){return(e+"").toLowerCase().charAt(0)==="p"}var ts=/[ap]\.?m?\.?/i,rs=ge("Hours",!0);function as(e,t,r){return e>11?r?"pm":"PM":r?"am":"AM"}var Pr={calendar:Ga,longDateFormat:Ba,invalidDate:Ja,ordinal:Xa,dayOfMonthOrdinalParse:Ka,relativeTime:tn,months:gn,monthsShort:vr,week:xn,weekdays:An,weekdaysMin:En,weekdaysShort:Cr,meridiemParse:ts},O={},Ae={},Ee;function ns(e,t){var r,a=Math.min(e.length,t.length);for(r=0;r<a;r+=1)if(e[r]!==t[r])return r;return a}function Wr(e){return e&&e.toLowerCase().replace("_","-")}function ss(e){for(var t=0,r,a,n,s;t<e.length;){for(s=Wr(e[t]).split("-"),r=s.length,a=Wr(e[t+1]),a=a?a.split("-"):null;r>0;){if(n=at(s.slice(0,r).join("-")),n)return n;if(a&&a.length>=r&&ns(s,a)>=r-1)break;r--}t++}return Ee}function is(e){return!!(e&&e.match("^[^/\\\\]*$"))}function at(e){var t=null,r;if(O[e]===void 0&&typeof be<"u"&&be&&be.exports&&is(e))try{t=Ee._abbr,r=ia,r("./locale/"+e),ne(t)}catch{O[e]=null}return O[e]}function ne(e,t){var r;return e&&(N(t)?r=Q(e):r=jt(e,t),r?Ee=r:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),Ee._abbr}function jt(e,t){if(t!==null){var r,a=Pr;if(t.abbr=e,O[e]!=null)mr("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),a=O[e]._config;else if(t.parentLocale!=null)if(O[t.parentLocale]!=null)a=O[t.parentLocale]._config;else if(r=at(t.parentLocale),r!=null)a=r._config;else return Ae[t.parentLocale]||(Ae[t.parentLocale]=[]),Ae[t.parentLocale].push({name:e,config:t}),null;return O[e]=new xt(Ct(a,t)),Ae[e]&&Ae[e].forEach(function(n){jt(n.name,n.config)}),ne(e),O[e]}else return delete O[e],null}function os(e,t){if(t!=null){var r,a,n=Pr;O[e]!=null&&O[e].parentLocale!=null?O[e].set(Ct(O[e]._config,t)):(a=at(e),a!=null&&(n=a._config),t=Ct(n,t),a==null&&(t.abbr=e),r=new xt(t),r.parentLocale=O[e],O[e]=r),ne(e)}else O[e]!=null&&(O[e].parentLocale!=null?(O[e]=O[e].parentLocale,e===ne()&&ne(e)):O[e]!=null&&delete O[e]);return O[e]}function Q(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Ee;if(!u(e)){if(t=at(e),t)return t;e=[e]}return ss(e)}function ls(){return Nt(O)}function Gt(e){var t,r=e._a;return r&&p(e).overflow===-2&&(t=r[B]<0||r[B]>11?B:r[G]<1||r[G]>Lt(r[C],r[B])?G:r[T]<0||r[T]>24||r[T]===24&&(r[A]!==0||r[q]!==0||r[ce]!==0)?T:r[A]<0||r[A]>59?A:r[q]<0||r[q]>59?q:r[ce]<0||r[ce]>999?ce:-1,p(e)._overflowDayOfYear&&(t<C||t>G)&&(t=G),p(e)._overflowWeeks&&t===-1&&(t=fn),p(e)._overflowWeekday&&t===-1&&(t=hn),p(e).overflow=t),e}var ds=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,us=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,cs=/Z|[+-]\d\d(?::?\d\d)?/,nt=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],zt=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],fs=/^\/?Date\((-?\d+)/i,hs=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,ms={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function Ir(e){var t,r,a=e._i,n=ds.exec(a)||us.exec(a),s,i,c,_,M=nt.length,x=zt.length;if(n){for(p(e).iso=!0,t=0,r=M;t<r;t++)if(nt[t][1].exec(n[1])){i=nt[t][0],s=nt[t][2]!==!1;break}if(i==null){e._isValid=!1;return}if(n[3]){for(t=0,r=x;t<r;t++)if(zt[t][1].exec(n[3])){c=(n[2]||" ")+zt[t][0];break}if(c==null){e._isValid=!1;return}}if(!s&&c!=null){e._isValid=!1;return}if(n[4])if(cs.exec(n[4]))_="Z";else{e._isValid=!1;return}e._f=i+(c||"")+(_||""),Zt(e)}else e._isValid=!1}function _s(e,t,r,a,n,s){var i=[ps(e),vr.indexOf(t),parseInt(r,10),parseInt(a,10),parseInt(n,10)];return s&&i.push(parseInt(s,10)),i}function ps(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function ys(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function gs(e,t,r){if(e){var a=Cr.indexOf(e),n=new Date(t[0],t[1],t[2]).getDay();if(a!==n)return p(r).weekdayMismatch=!0,r._isValid=!1,!1}return!0}function Ms(e,t,r){if(e)return ms[e];if(t)return 0;var a=parseInt(r,10),n=a%100,s=(a-n)/100;return s*60+n}function Rr(e){var t=hs.exec(ys(e._i)),r;if(t){if(r=_s(t[4],t[3],t[2],t[5],t[6],t[7]),!gs(t[1],r,e))return;e._a=r,e._tzm=Ms(t[8],t[9],t[10]),e._d=Re.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),p(e).rfc2822=!0}else e._isValid=!1}function Ds(e){var t=fs.exec(e._i);if(t!==null){e._d=new Date(+t[1]);return}if(Ir(e),e._isValid===!1)delete e._isValid;else return;if(Rr(e),e._isValid===!1)delete e._isValid;else return;e._strict?e._isValid=!1:l.createFromInputFallback(e)}l.createFromInputFallback=W("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))});function Me(e,t,r){return e??t??r}function ks(e){var t=new Date(l.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function $t(e){var t,r,a=[],n,s,i;if(!e._d){for(n=ks(e),e._w&&e._a[G]==null&&e._a[B]==null&&ws(e),e._dayOfYear!=null&&(i=Me(e._a[C],n[C]),(e._dayOfYear>We(i)||e._dayOfYear===0)&&(p(e)._overflowDayOfYear=!0),r=Re(i,0,e._dayOfYear),e._a[B]=r.getUTCMonth(),e._a[G]=r.getUTCDate()),t=0;t<3&&e._a[t]==null;++t)e._a[t]=a[t]=n[t];for(;t<7;t++)e._a[t]=a[t]=e._a[t]==null?t===2?1:0:e._a[t];e._a[T]===24&&e._a[A]===0&&e._a[q]===0&&e._a[ce]===0&&(e._nextDay=!0,e._a[T]=0),e._d=(e._useUTC?Re:Tn).apply(null,a),s=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[T]=24),e._w&&typeof e._w.d<"u"&&e._w.d!==s&&(p(e).weekdayMismatch=!0)}}function ws(e){var t,r,a,n,s,i,c,_,M;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(s=1,i=4,r=Me(t.GG,e._a[C],Fe(Y(),1,4).year),a=Me(t.W,1),n=Me(t.E,1),(n<1||n>7)&&(_=!0)):(s=e._locale._week.dow,i=e._locale._week.doy,M=Fe(Y(),s,i),r=Me(t.gg,e._a[C],M.year),a=Me(t.w,M.week),t.d!=null?(n=t.d,(n<0||n>6)&&(_=!0)):t.e!=null?(n=t.e+s,(t.e<0||t.e>6)&&(_=!0)):n=s),a<1||a>J(r,s,i)?p(e)._overflowWeeks=!0:_!=null?p(e)._overflowWeekday=!0:(c=Tr(r,a,n,s,i),e._a[C]=c.year,e._dayOfYear=c.dayOfYear)}l.ISO_8601=function(){},l.RFC_2822=function(){};function Zt(e){if(e._f===l.ISO_8601){Ir(e);return}if(e._f===l.RFC_2822){Rr(e);return}e._a=[],p(e).empty=!0;var t=""+e._i,r,a,n,s,i,c=t.length,_=0,M,x;for(n=_r(e._f,e._locale).match(Pt)||[],x=n.length,r=0;r<x;r++)s=n[r],a=(t.match(dn(s,e))||[])[0],a&&(i=t.substr(0,t.indexOf(a)),i.length>0&&p(e).unusedInput.push(i),t=t.slice(t.indexOf(a)+a.length),_+=a.length),_e[s]?(a?p(e).empty=!1:p(e).unusedTokens.push(s),cn(s,a,e)):e._strict&&!a&&p(e).unusedTokens.push(s);p(e).charsLeftOver=c-_,t.length>0&&p(e).unusedInput.push(t),e._a[T]<=12&&p(e).bigHour===!0&&e._a[T]>0&&(p(e).bigHour=void 0),p(e).parsedDateParts=e._a.slice(0),p(e).meridiem=e._meridiem,e._a[T]=vs(e._locale,e._a[T],e._meridiem),M=p(e).era,M!==null&&(e._a[C]=e._locale.erasConvertYear(M,e._a[C])),$t(e),Gt(e)}function vs(e,t,r){var a;return r==null?t:e.meridiemHour!=null?e.meridiemHour(t,r):(e.isPM!=null&&(a=e.isPM(r),a&&t<12&&(t+=12),!a&&t===12&&(t=0)),t)}function Ss(e){var t,r,a,n,s,i,c=!1,_=e._f.length;if(_===0){p(e).invalidFormat=!0,e._d=new Date(NaN);return}for(n=0;n<_;n++)s=0,i=!1,t=Tt({},e),e._useUTC!=null&&(t._useUTC=e._useUTC),t._f=e._f[n],Zt(t),Ot(t)&&(i=!0),s+=p(t).charsLeftOver,s+=p(t).unusedTokens.length*10,p(t).score=s,c?s<a&&(a=s,r=t):(a==null||s<a||i)&&(a=s,r=t,i&&(c=!0));ae(e,r||t)}function Ys(e){if(!e._d){var t=It(e._i),r=t.day===void 0?t.date:t.day;e._a=ur([t.year,t.month,r,t.hour,t.minute,t.second,t.millisecond],function(a){return a&&parseInt(a,10)}),$t(e)}}function Os(e){var t=new xe(Gt(Fr(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function Fr(e){var t=e._i,r=e._f;return e._locale=e._locale||Q(e._l),t===null||r===void 0&&t===""?$e({nullInput:!0}):(typeof t=="string"&&(e._i=t=e._locale.preparse(t)),F(t)?new xe(Gt(t)):(Ce(t)?e._d=t:u(r)?Ss(e):r?Zt(e):bs(e),Ot(e)||(e._d=null),e))}function bs(e){var t=e._i;N(t)?e._d=new Date(l.now()):Ce(t)?e._d=new Date(t.valueOf()):typeof t=="string"?Ds(e):u(t)?(e._a=ur(t.slice(0),function(r){return parseInt(r,10)}),$t(e)):w(t)?Ys(e):$(t)?e._d=new Date(t):l.createFromInputFallback(e)}function Ar(e,t,r,a,n){var s={};return(t===!0||t===!1)&&(a=t,t=void 0),(r===!0||r===!1)&&(a=r,r=void 0),(w(e)&&H(e)||u(e)&&e.length===0)&&(e=void 0),s._isAMomentObject=!0,s._useUTC=s._isUTC=n,s._l=r,s._i=e,s._f=t,s._strict=a,Os(s)}function Y(e,t,r,a){return Ar(e,t,r,a,!1)}var Ts=W("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Y.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:$e()}),Cs=W("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Y.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:$e()});function Er(e,t){var r,a;if(t.length===1&&u(t[0])&&(t=t[0]),!t.length)return Y();for(r=t[0],a=1;a<t.length;++a)(!t[a].isValid()||t[a][e](r))&&(r=t[a]);return r}function xs(){var e=[].slice.call(arguments,0);return Er("isBefore",e)}function Ns(){var e=[].slice.call(arguments,0);return Er("isAfter",e)}var Ps=function(){return Date.now?Date.now():+new Date},Le=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Ws(e){var t,r=!1,a,n=Le.length;for(t in e)if(m(e,t)&&!(b.call(Le,t)!==-1&&(e[t]==null||!isNaN(e[t]))))return!1;for(a=0;a<n;++a)if(e[Le[a]]){if(r)return!1;parseFloat(e[Le[a]])!==g(e[Le[a]])&&(r=!0)}return!0}function Is(){return this._isValid}function Rs(){return E(NaN)}function st(e){var t=It(e),r=t.year||0,a=t.quarter||0,n=t.month||0,s=t.week||t.isoWeek||0,i=t.day||0,c=t.hour||0,_=t.minute||0,M=t.second||0,x=t.millisecond||0;this._isValid=Ws(t),this._milliseconds=+x+M*1e3+_*6e4+c*1e3*60*60,this._days=+i+s*7,this._months=+n+a*3+r*12,this._data={},this._locale=Q(),this._bubble()}function it(e){return e instanceof st}function Bt(e){return e<0?Math.round(-1*e)*-1:Math.round(e)}function Fs(e,t,r){var a=Math.min(e.length,t.length),n=Math.abs(e.length-t.length),s=0,i;for(i=0;i<a;i++)(r&&e[i]!==t[i]||!r&&g(e[i])!==g(t[i]))&&s++;return s+n}function Lr(e,t){h(e,0,0,function(){var r=this.utcOffset(),a="+";return r<0&&(r=-r,a="-"),a+j(~~(r/60),2)+t+j(~~r%60,2)})}Lr("Z",":"),Lr("ZZ",""),f("Z",Ke),f("ZZ",Ke),v(["Z","ZZ"],function(e,t,r){r._useUTC=!0,r._tzm=qt(Ke,e)});var As=/([\+\-]|\d\d)/gi;function qt(e,t){var r=(t||"").match(e),a,n,s;return r===null?null:(a=r[r.length-1]||[],n=(a+"").match(As)||["-",0,0],s=+(n[1]*60)+g(n[2]),s===0?0:n[0]==="+"?s:-s)}function Jt(e,t){var r,a;return t._isUTC?(r=t.clone(),a=(F(e)||Ce(e)?e.valueOf():Y(e).valueOf())-r.valueOf(),r._d.setTime(r._d.valueOf()+a),l.updateOffset(r,!1),r):Y(e).local()}function Qt(e){return-Math.round(e._d.getTimezoneOffset())}l.updateOffset=function(){};function Es(e,t,r){var a=this._offset||0,n;if(!this.isValid())return e!=null?this:NaN;if(e!=null){if(typeof e=="string"){if(e=qt(Ke,e),e===null)return this}else Math.abs(e)<16&&!r&&(e=e*60);return!this._isUTC&&t&&(n=Qt(this)),this._offset=e,this._isUTC=!0,n!=null&&this.add(n,"m"),a!==e&&(!t||this._changeInProgress?jr(this,E(e-a,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,l.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?a:Qt(this)}function Ls(e,t){return e!=null?(typeof e!="string"&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function Hs(e){return this.utcOffset(0,e)}function Us(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Qt(this),"m")),this}function Vs(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var e=qt(on,this._i);e!=null?this.utcOffset(e):this.utcOffset(0,!0)}return this}function js(e){return this.isValid()?(e=e?Y(e).utcOffset():0,(this.utcOffset()-e)%60===0):!1}function Gs(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function zs(){if(!N(this._isDSTShifted))return this._isDSTShifted;var e={},t;return Tt(e,this),e=Fr(e),e._a?(t=e._isUTC?U(e._a):Y(e._a),this._isDSTShifted=this.isValid()&&Fs(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function $s(){return this.isValid()?!this._isUTC:!1}function Zs(){return this.isValid()?this._isUTC:!1}function Hr(){return this.isValid()?this._isUTC&&this._offset===0:!1}var Bs=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,qs=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function E(e,t){var r=e,a=null,n,s,i;return it(e)?r={ms:e._milliseconds,d:e._days,M:e._months}:$(e)||!isNaN(+e)?(r={},t?r[t]=+e:r.milliseconds=+e):(a=Bs.exec(e))?(n=a[1]==="-"?-1:1,r={y:0,d:g(a[G])*n,h:g(a[T])*n,m:g(a[A])*n,s:g(a[q])*n,ms:g(Bt(a[ce]*1e3))*n}):(a=qs.exec(e))?(n=a[1]==="-"?-1:1,r={y:fe(a[2],n),M:fe(a[3],n),w:fe(a[4],n),d:fe(a[5],n),h:fe(a[6],n),m:fe(a[7],n),s:fe(a[8],n)}):r==null?r={}:typeof r=="object"&&("from"in r||"to"in r)&&(i=Js(Y(r.from),Y(r.to)),r={},r.ms=i.milliseconds,r.M=i.months),s=new st(r),it(e)&&m(e,"_locale")&&(s._locale=e._locale),it(e)&&m(e,"_isValid")&&(s._isValid=e._isValid),s}E.fn=st.prototype,E.invalid=Rs;function fe(e,t){var r=e&&parseFloat(e.replace(",","."));return(isNaN(r)?0:r)*t}function Ur(e,t){var r={};return r.months=t.month()-e.month()+(t.year()-e.year())*12,e.clone().add(r.months,"M").isAfter(t)&&--r.months,r.milliseconds=+t-+e.clone().add(r.months,"M"),r}function Js(e,t){var r;return e.isValid()&&t.isValid()?(t=Jt(t,e),e.isBefore(t)?r=Ur(e,t):(r=Ur(t,e),r.milliseconds=-r.milliseconds,r.months=-r.months),r):{milliseconds:0,months:0}}function Vr(e,t){return function(r,a){var n,s;return a!==null&&!isNaN(+a)&&(mr(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),s=r,r=a,a=s),n=E(r,a),jr(this,n,e),this}}function jr(e,t,r,a){var n=t._milliseconds,s=Bt(t._days),i=Bt(t._months);e.isValid()&&(a=a??!0,i&&Yr(e,Ie(e,"Month")+i*r),s&&wr(e,"Date",Ie(e,"Date")+s*r),n&&e._d.setTime(e._d.valueOf()+n*r),a&&l.updateOffset(e,s||i))}var Qs=Vr(1,"add"),Xs=Vr(-1,"subtract");function Gr(e){return typeof e=="string"||e instanceof String}function Ks(e){return F(e)||Ce(e)||Gr(e)||$(e)||ti(e)||ei(e)||e===null||e===void 0}function ei(e){var t=w(e)&&!H(e),r=!1,a=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],n,s,i=a.length;for(n=0;n<i;n+=1)s=a[n],r=r||m(e,s);return t&&r}function ti(e){var t=u(e),r=!1;return t&&(r=e.filter(function(a){return!$(a)&&Gr(e)}).length===0),t&&r}function ri(e){var t=w(e)&&!H(e),r=!1,a=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],n,s;for(n=0;n<a.length;n+=1)s=a[n],r=r||m(e,s);return t&&r}function ai(e,t){var r=e.diff(t,"days",!0);return r<-6?"sameElse":r<-1?"lastWeek":r<0?"lastDay":r<1?"sameDay":r<2?"nextDay":r<7?"nextWeek":"sameElse"}function ni(e,t){arguments.length===1&&(arguments[0]?Ks(arguments[0])?(e=arguments[0],t=void 0):ri(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var r=e||Y(),a=Jt(r,this).startOf("day"),n=l.calendarFormat(this,a)||"sameElse",s=t&&(V(t[n])?t[n].call(this,r):t[n]);return this.format(s||this.localeData().calendar(n,this,Y(r)))}function si(){return new xe(this)}function ii(e,t){var r=F(e)?e:Y(e);return this.isValid()&&r.isValid()?(t=I(t)||"millisecond",t==="millisecond"?this.valueOf()>r.valueOf():r.valueOf()<this.clone().startOf(t).valueOf()):!1}function oi(e,t){var r=F(e)?e:Y(e);return this.isValid()&&r.isValid()?(t=I(t)||"millisecond",t==="millisecond"?this.valueOf()<r.valueOf():this.clone().endOf(t).valueOf()<r.valueOf()):!1}function li(e,t,r,a){var n=F(e)?e:Y(e),s=F(t)?t:Y(t);return this.isValid()&&n.isValid()&&s.isValid()?(a=a||"()",(a[0]==="("?this.isAfter(n,r):!this.isBefore(n,r))&&(a[1]===")"?this.isBefore(s,r):!this.isAfter(s,r))):!1}function di(e,t){var r=F(e)?e:Y(e),a;return this.isValid()&&r.isValid()?(t=I(t)||"millisecond",t==="millisecond"?this.valueOf()===r.valueOf():(a=r.valueOf(),this.clone().startOf(t).valueOf()<=a&&a<=this.clone().endOf(t).valueOf())):!1}function ui(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function ci(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function fi(e,t,r){var a,n,s;if(!this.isValid())return NaN;if(a=Jt(e,this),!a.isValid())return NaN;switch(n=(a.utcOffset()-this.utcOffset())*6e4,t=I(t),t){case"year":s=ot(this,a)/12;break;case"month":s=ot(this,a);break;case"quarter":s=ot(this,a)/3;break;case"second":s=(this-a)/1e3;break;case"minute":s=(this-a)/6e4;break;case"hour":s=(this-a)/36e5;break;case"day":s=(this-a-n)/864e5;break;case"week":s=(this-a-n)/6048e5;break;default:s=this-a}return r?s:R(s)}function ot(e,t){if(e.date()<t.date())return-ot(t,e);var r=(t.year()-e.year())*12+(t.month()-e.month()),a=e.clone().add(r,"months"),n,s;return t-a<0?(n=e.clone().add(r-1,"months"),s=(t-a)/(a-n)):(n=e.clone().add(r+1,"months"),s=(t-a)/(n-a)),-(r+s)||0}l.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",l.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function hi(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function mi(e){if(!this.isValid())return null;var t=e!==!0,r=t?this.clone().utc():this;return r.year()<0||r.year()>9999?Be(r,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):V(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",Be(r,"Z")):Be(r,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function _i(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="",r,a,n,s;return this.isLocal()||(e=this.utcOffset()===0?"moment.utc":"moment.parseZone",t="Z"),r="["+e+'("]',a=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",n="-MM-DD[T]HH:mm:ss.SSS",s=t+'[")]',this.format(r+a+n+s)}function pi(e){e||(e=this.isUtc()?l.defaultFormatUtc:l.defaultFormat);var t=Be(this,e);return this.localeData().postformat(t)}function yi(e,t){return this.isValid()&&(F(e)&&e.isValid()||Y(e).isValid())?E({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function gi(e){return this.from(Y(),e)}function Mi(e,t){return this.isValid()&&(F(e)&&e.isValid()||Y(e).isValid())?E({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function Di(e){return this.to(Y(),e)}function zr(e){var t;return e===void 0?this._locale._abbr:(t=Q(e),t!=null&&(this._locale=t),this)}var $r=W("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return e===void 0?this.localeData():this.locale(e)});function Zr(){return this._locale}var lt=1e3,De=60*lt,dt=60*De,Br=(365*400+97)*24*dt;function ke(e,t){return(e%t+t)%t}function qr(e,t,r){return e<100&&e>=0?new Date(e+400,t,r)-Br:new Date(e,t,r).valueOf()}function Jr(e,t,r){return e<100&&e>=0?Date.UTC(e+400,t,r)-Br:Date.UTC(e,t,r)}function ki(e){var t,r;if(e=I(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(r=this._isUTC?Jr:qr,e){case"year":t=r(this.year(),0,1);break;case"quarter":t=r(this.year(),this.month()-this.month()%3,1);break;case"month":t=r(this.year(),this.month(),1);break;case"week":t=r(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=r(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=r(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=ke(t+(this._isUTC?0:this.utcOffset()*De),dt);break;case"minute":t=this._d.valueOf(),t-=ke(t,De);break;case"second":t=this._d.valueOf(),t-=ke(t,lt);break}return this._d.setTime(t),l.updateOffset(this,!0),this}function wi(e){var t,r;if(e=I(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(r=this._isUTC?Jr:qr,e){case"year":t=r(this.year()+1,0,1)-1;break;case"quarter":t=r(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=r(this.year(),this.month()+1,1)-1;break;case"week":t=r(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=r(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=r(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=dt-ke(t+(this._isUTC?0:this.utcOffset()*De),dt)-1;break;case"minute":t=this._d.valueOf(),t+=De-ke(t,De)-1;break;case"second":t=this._d.valueOf(),t+=lt-ke(t,lt)-1;break}return this._d.setTime(t),l.updateOffset(this,!0),this}function vi(){return this._d.valueOf()-(this._offset||0)*6e4}function Si(){return Math.floor(this.valueOf()/1e3)}function Yi(){return new Date(this.valueOf())}function Oi(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function bi(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function Ti(){return this.isValid()?this.toISOString():null}function Ci(){return Ot(this)}function xi(){return ae({},p(this))}function Ni(){return p(this).overflow}function Pi(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}h("N",0,0,"eraAbbr"),h("NN",0,0,"eraAbbr"),h("NNN",0,0,"eraAbbr"),h("NNNN",0,0,"eraName"),h("NNNNN",0,0,"eraNarrow"),h("y",["y",1],"yo","eraYear"),h("y",["yy",2],0,"eraYear"),h("y",["yyy",3],0,"eraYear"),h("y",["yyyy",4],0,"eraYear"),f("N",Xt),f("NN",Xt),f("NNN",Xt),f("NNNN",ji),f("NNNNN",Gi),v(["N","NN","NNN","NNNN","NNNNN"],function(e,t,r,a){var n=r._locale.erasParse(e,a,r._strict);n?p(r).era=n:p(r).invalidEra=e}),f("y",pe),f("yy",pe),f("yyy",pe),f("yyyy",pe),f("yo",zi),v(["y","yy","yyy","yyyy"],C),v(["yo"],function(e,t,r,a){var n;r._locale._eraYearOrdinalRegex&&(n=e.match(r._locale._eraYearOrdinalRegex)),r._locale.eraYearOrdinalParse?t[C]=r._locale.eraYearOrdinalParse(e,n):t[C]=parseInt(e,10)});function Wi(e,t){var r,a,n,s=this._eras||Q("en")._eras;for(r=0,a=s.length;r<a;++r){switch(typeof s[r].since){case"string":n=l(s[r].since).startOf("day"),s[r].since=n.valueOf();break}switch(typeof s[r].until){case"undefined":s[r].until=1/0;break;case"string":n=l(s[r].until).startOf("day").valueOf(),s[r].until=n.valueOf();break}}return s}function Ii(e,t,r){var a,n,s=this.eras(),i,c,_;for(e=e.toUpperCase(),a=0,n=s.length;a<n;++a)if(i=s[a].name.toUpperCase(),c=s[a].abbr.toUpperCase(),_=s[a].narrow.toUpperCase(),r)switch(t){case"N":case"NN":case"NNN":if(c===e)return s[a];break;case"NNNN":if(i===e)return s[a];break;case"NNNNN":if(_===e)return s[a];break}else if([i,c,_].indexOf(e)>=0)return s[a]}function Ri(e,t){var r=e.since<=e.until?1:-1;return t===void 0?l(e.since).year():l(e.since).year()+(t-e.offset)*r}function Fi(){var e,t,r,a=this.localeData().eras();for(e=0,t=a.length;e<t;++e)if(r=this.clone().startOf("day").valueOf(),a[e].since<=r&&r<=a[e].until||a[e].until<=r&&r<=a[e].since)return a[e].name;return""}function Ai(){var e,t,r,a=this.localeData().eras();for(e=0,t=a.length;e<t;++e)if(r=this.clone().startOf("day").valueOf(),a[e].since<=r&&r<=a[e].until||a[e].until<=r&&r<=a[e].since)return a[e].narrow;return""}function Ei(){var e,t,r,a=this.localeData().eras();for(e=0,t=a.length;e<t;++e)if(r=this.clone().startOf("day").valueOf(),a[e].since<=r&&r<=a[e].until||a[e].until<=r&&r<=a[e].since)return a[e].abbr;return""}function Li(){var e,t,r,a,n=this.localeData().eras();for(e=0,t=n.length;e<t;++e)if(r=n[e].since<=n[e].until?1:-1,a=this.clone().startOf("day").valueOf(),n[e].since<=a&&a<=n[e].until||n[e].until<=a&&a<=n[e].since)return(this.year()-l(n[e].since).year())*r+n[e].offset;return this.year()}function Hi(e){return m(this,"_erasNameRegex")||Kt.call(this),e?this._erasNameRegex:this._erasRegex}function Ui(e){return m(this,"_erasAbbrRegex")||Kt.call(this),e?this._erasAbbrRegex:this._erasRegex}function Vi(e){return m(this,"_erasNarrowRegex")||Kt.call(this),e?this._erasNarrowRegex:this._erasRegex}function Xt(e,t){return t.erasAbbrRegex(e)}function ji(e,t){return t.erasNameRegex(e)}function Gi(e,t){return t.erasNarrowRegex(e)}function zi(e,t){return t._eraYearOrdinalRegex||pe}function Kt(){var e=[],t=[],r=[],a=[],n,s,i,c,_,M=this.eras();for(n=0,s=M.length;n<s;++n)i=Z(M[n].name),c=Z(M[n].abbr),_=Z(M[n].narrow),t.push(i),e.push(c),r.push(_),a.push(i),a.push(c),a.push(_);this._erasRegex=new RegExp("^("+a.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+t.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+e.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+r.join("|")+")","i")}h(0,["gg",2],0,function(){return this.weekYear()%100}),h(0,["GG",2],0,function(){return this.isoWeekYear()%100});function ut(e,t){h(0,[e,e.length],0,t)}ut("gggg","weekYear"),ut("ggggg","weekYear"),ut("GGGG","isoWeekYear"),ut("GGGGG","isoWeekYear"),f("G",Xe),f("g",Xe),f("GG",S,P),f("gg",S,P),f("GGGG",Ft,Rt),f("gggg",Ft,Rt),f("GGGGG",Qe,qe),f("ggggg",Qe,qe),Pe(["gggg","ggggg","GGGG","GGGGG"],function(e,t,r,a){t[a.substr(0,2)]=g(e)}),Pe(["gg","GG"],function(e,t,r,a){t[a]=l.parseTwoDigitYear(e)});function $i(e){return Qr.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function Zi(e){return Qr.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function Bi(){return J(this.year(),1,4)}function qi(){return J(this.isoWeekYear(),1,4)}function Ji(){var e=this.localeData()._week;return J(this.year(),e.dow,e.doy)}function Qi(){var e=this.localeData()._week;return J(this.weekYear(),e.dow,e.doy)}function Qr(e,t,r,a,n){var s;return e==null?Fe(this,a,n).year:(s=J(e,a,n),t>s&&(t=s),Xi.call(this,e,t,r,a,n))}function Xi(e,t,r,a,n){var s=Tr(e,t,r,a,n),i=Re(s.year,0,s.dayOfYear);return this.year(i.getUTCFullYear()),this.month(i.getUTCMonth()),this.date(i.getUTCDate()),this}h("Q",0,"Qo","quarter"),f("Q",yr),v("Q",function(e,t){t[B]=(g(e)-1)*3});function Ki(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}h("D",["DD",2],"Do","date"),f("D",S,ye),f("DD",S,P),f("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),v(["D","DD"],G),v("Do",function(e,t){t[G]=g(e.match(S)[0])});var Xr=ge("Date",!0);h("DDD",["DDDD",3],"DDDo","dayOfYear"),f("DDD",Je),f("DDDD",gr),v(["DDD","DDDD"],function(e,t,r){r._dayOfYear=g(e)});function eo(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}h("m",["mm",2],0,"minute"),f("m",S,At),f("mm",S,P),v(["m","mm"],A);var to=ge("Minutes",!1);h("s",["ss",2],0,"second"),f("s",S,At),f("ss",S,P),v(["s","ss"],q);var ro=ge("Seconds",!1);h("S",0,0,function(){return~~(this.millisecond()/100)}),h(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),h(0,["SSS",3],0,"millisecond"),h(0,["SSSS",4],0,function(){return this.millisecond()*10}),h(0,["SSSSS",5],0,function(){return this.millisecond()*100}),h(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),h(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),h(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),h(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),f("S",Je,yr),f("SS",Je,P),f("SSS",Je,gr);var se,Kr;for(se="SSSS";se.length<=9;se+="S")f(se,pe);function ao(e,t){t[ce]=g(("0."+e)*1e3)}for(se="S";se.length<=9;se+="S")v(se,ao);Kr=ge("Milliseconds",!1),h("z",0,0,"zoneAbbr"),h("zz",0,0,"zoneName");function no(){return this._isUTC?"UTC":""}function so(){return this._isUTC?"Coordinated Universal Time":""}var d=xe.prototype;d.add=Qs,d.calendar=ni,d.clone=si,d.diff=fi,d.endOf=wi,d.format=pi,d.from=yi,d.fromNow=gi,d.to=Mi,d.toNow=Di,d.get=_n,d.invalidAt=Ni,d.isAfter=ii,d.isBefore=oi,d.isBetween=li,d.isSame=di,d.isSameOrAfter=ui,d.isSameOrBefore=ci,d.isValid=Ci,d.lang=$r,d.locale=zr,d.localeData=Zr,d.max=Cs,d.min=Ts,d.parsingFlags=xi,d.set=pn,d.startOf=ki,d.subtract=Xs,d.toArray=Oi,d.toObject=bi,d.toDate=Yi,d.toISOString=mi,d.inspect=_i,typeof Symbol<"u"&&Symbol.for!=null&&(d[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),d.toJSON=Ti,d.toString=hi,d.unix=Si,d.valueOf=vi,d.creationData=Pi,d.eraName=Fi,d.eraNarrow=Ai,d.eraAbbr=Ei,d.eraYear=Li,d.year=kr,d.isLeapYear=mn,d.weekYear=$i,d.isoWeekYear=Zi,d.quarter=d.quarters=Ki,d.month=Or,d.daysInMonth=Yn,d.week=d.weeks=Wn,d.isoWeek=d.isoWeeks=In,d.weeksInYear=Ji,d.weeksInWeekYear=Qi,d.isoWeeksInYear=Bi,d.isoWeeksInISOWeekYear=qi,d.date=Xr,d.day=d.days=Zn,d.weekday=Bn,d.isoWeekday=qn,d.dayOfYear=eo,d.hour=d.hours=rs,d.minute=d.minutes=to,d.second=d.seconds=ro,d.millisecond=d.milliseconds=Kr,d.utcOffset=Es,d.utc=Hs,d.local=Us,d.parseZone=Vs,d.hasAlignedHourOffset=js,d.isDST=Gs,d.isLocal=$s,d.isUtcOffset=Zs,d.isUtc=Hr,d.isUTC=Hr,d.zoneAbbr=no,d.zoneName=so,d.dates=W("dates accessor is deprecated. Use date instead.",Xr),d.months=W("months accessor is deprecated. Use month instead",Or),d.years=W("years accessor is deprecated. Use year instead",kr),d.zone=W("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",Ls),d.isDSTShifted=W("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",zs);function io(e){return Y(e*1e3)}function oo(){return Y.apply(null,arguments).parseZone()}function ea(e){return e}var k=xt.prototype;k.calendar=za,k.longDateFormat=qa,k.invalidDate=Qa,k.ordinal=en,k.preparse=ea,k.postformat=ea,k.relativeTime=rn,k.pastFuture=an,k.set=ja,k.eras=Wi,k.erasParse=Ii,k.erasConvertYear=Ri,k.erasAbbrRegex=Ui,k.erasNameRegex=Hi,k.erasNarrowRegex=Vi,k.months=kn,k.monthsShort=wn,k.monthsParse=Sn,k.monthsRegex=bn,k.monthsShortRegex=On,k.week=Cn,k.firstDayOfYear=Pn,k.firstDayOfWeek=Nn,k.weekdays=Vn,k.weekdaysMin=Gn,k.weekdaysShort=jn,k.weekdaysParse=$n,k.weekdaysRegex=Jn,k.weekdaysShortRegex=Qn,k.weekdaysMinRegex=Xn,k.isPM=es,k.meridiem=as;function ct(e,t,r,a){var n=Q(),s=U().set(a,t);return n[r](s,e)}function ta(e,t,r){if($(e)&&(t=e,e=void 0),e=e||"",t!=null)return ct(e,t,r,"month");var a,n=[];for(a=0;a<12;a++)n[a]=ct(e,a,r,"month");return n}function er(e,t,r,a){typeof e=="boolean"?($(t)&&(r=t,t=void 0),t=t||""):(t=e,r=t,e=!1,$(t)&&(r=t,t=void 0),t=t||"");var n=Q(),s=e?n._week.dow:0,i,c=[];if(r!=null)return ct(t,(r+s)%7,a,"day");for(i=0;i<7;i++)c[i]=ct(t,(i+s)%7,a,"day");return c}function lo(e,t){return ta(e,t,"months")}function uo(e,t){return ta(e,t,"monthsShort")}function co(e,t,r){return er(e,t,r,"weekdays")}function fo(e,t,r){return er(e,t,r,"weekdaysShort")}function ho(e,t,r){return er(e,t,r,"weekdaysMin")}ne("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,r=g(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+r}}),l.lang=W("moment.lang is deprecated. Use moment.locale instead.",ne),l.langData=W("moment.langData is deprecated. Use moment.localeData instead.",Q);var X=Math.abs;function mo(){var e=this._data;return this._milliseconds=X(this._milliseconds),this._days=X(this._days),this._months=X(this._months),e.milliseconds=X(e.milliseconds),e.seconds=X(e.seconds),e.minutes=X(e.minutes),e.hours=X(e.hours),e.months=X(e.months),e.years=X(e.years),this}function ra(e,t,r,a){var n=E(t,r);return e._milliseconds+=a*n._milliseconds,e._days+=a*n._days,e._months+=a*n._months,e._bubble()}function _o(e,t){return ra(this,e,t,1)}function po(e,t){return ra(this,e,t,-1)}function aa(e){return e<0?Math.floor(e):Math.ceil(e)}function yo(){var e=this._milliseconds,t=this._days,r=this._months,a=this._data,n,s,i,c,_;return e>=0&&t>=0&&r>=0||e<=0&&t<=0&&r<=0||(e+=aa(tr(r)+t)*864e5,t=0,r=0),a.milliseconds=e%1e3,n=R(e/1e3),a.seconds=n%60,s=R(n/60),a.minutes=s%60,i=R(s/60),a.hours=i%24,t+=R(i/24),_=R(na(t)),r+=_,t-=aa(tr(_)),c=R(r/12),r%=12,a.days=t,a.months=r,a.years=c,this}function na(e){return e*4800/146097}function tr(e){return e*146097/4800}function go(e){if(!this.isValid())return NaN;var t,r,a=this._milliseconds;if(e=I(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+a/864e5,r=this._months+na(t),e){case"month":return r;case"quarter":return r/3;case"year":return r/12}else switch(t=this._days+Math.round(tr(this._months)),e){case"week":return t/7+a/6048e5;case"day":return t+a/864e5;case"hour":return t*24+a/36e5;case"minute":return t*1440+a/6e4;case"second":return t*86400+a/1e3;case"millisecond":return Math.floor(t*864e5)+a;default:throw new Error("Unknown unit "+e)}}function K(e){return function(){return this.as(e)}}var sa=K("ms"),Mo=K("s"),Do=K("m"),ko=K("h"),wo=K("d"),vo=K("w"),So=K("M"),Yo=K("Q"),Oo=K("y"),bo=sa;function To(){return E(this)}function Co(e){return e=I(e),this.isValid()?this[e+"s"]():NaN}function he(e){return function(){return this.isValid()?this._data[e]:NaN}}var xo=he("milliseconds"),No=he("seconds"),Po=he("minutes"),Wo=he("hours"),Io=he("days"),Ro=he("months"),Fo=he("years");function Ao(){return R(this.days()/7)}var ee=Math.round,we={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Eo(e,t,r,a,n){return n.relativeTime(t||1,!!r,e,a)}function Lo(e,t,r,a){var n=E(e).abs(),s=ee(n.as("s")),i=ee(n.as("m")),c=ee(n.as("h")),_=ee(n.as("d")),M=ee(n.as("M")),x=ee(n.as("w")),te=ee(n.as("y")),ie=s<=r.ss&&["s",s]||s<r.s&&["ss",s]||i<=1&&["m"]||i<r.m&&["mm",i]||c<=1&&["h"]||c<r.h&&["hh",c]||_<=1&&["d"]||_<r.d&&["dd",_];return r.w!=null&&(ie=ie||x<=1&&["w"]||x<r.w&&["ww",x]),ie=ie||M<=1&&["M"]||M<r.M&&["MM",M]||te<=1&&["y"]||["yy",te],ie[2]=t,ie[3]=+e>0,ie[4]=a,Eo.apply(null,ie)}function Ho(e){return e===void 0?ee:typeof e=="function"?(ee=e,!0):!1}function Uo(e,t){return we[e]===void 0?!1:t===void 0?we[e]:(we[e]=t,e==="s"&&(we.ss=t-1),!0)}function Vo(e,t){if(!this.isValid())return this.localeData().invalidDate();var r=!1,a=we,n,s;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(r=e),typeof t=="object"&&(a=Object.assign({},we,t),t.s!=null&&t.ss==null&&(a.ss=t.s-1)),n=this.localeData(),s=Lo(this,!r,a,n),r&&(s=n.pastFuture(+this,s)),n.postformat(s)}var rr=Math.abs;function ve(e){return(e>0)-(e<0)||+e}function ft(){if(!this.isValid())return this.localeData().invalidDate();var e=rr(this._milliseconds)/1e3,t=rr(this._days),r=rr(this._months),a,n,s,i,c=this.asSeconds(),_,M,x,te;return c?(a=R(e/60),n=R(a/60),e%=60,a%=60,s=R(r/12),r%=12,i=e?e.toFixed(3).replace(/\.?0+$/,""):"",_=c<0?"-":"",M=ve(this._months)!==ve(c)?"-":"",x=ve(this._days)!==ve(c)?"-":"",te=ve(this._milliseconds)!==ve(c)?"-":"",_+"P"+(s?M+s+"Y":"")+(r?M+r+"M":"")+(t?x+t+"D":"")+(n||a||e?"T":"")+(n?te+n+"H":"")+(a?te+a+"M":"")+(e?te+i+"S":"")):"P0D"}var D=st.prototype;D.isValid=Is,D.abs=mo,D.add=_o,D.subtract=po,D.as=go,D.asMilliseconds=sa,D.asSeconds=Mo,D.asMinutes=Do,D.asHours=ko,D.asDays=wo,D.asWeeks=vo,D.asMonths=So,D.asQuarters=Yo,D.asYears=Oo,D.valueOf=bo,D._bubble=yo,D.clone=To,D.get=Co,D.milliseconds=xo,D.seconds=No,D.minutes=Po,D.hours=Wo,D.days=Io,D.weeks=Ao,D.months=Ro,D.years=Fo,D.humanize=Vo,D.toISOString=ft,D.toString=ft,D.toJSON=ft,D.locale=zr,D.localeData=Zr,D.toIsoString=W("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",ft),D.lang=$r,h("X",0,0,"unix"),h("x",0,0,"valueOf"),f("x",Xe),f("X",ln),v("X",function(e,t,r){r._d=new Date(parseFloat(e)*1e3)}),v("x",function(e,t,r){r._d=new Date(g(e))});return l.version="2.30.1",o(Y),l.fn=d,l.min=xs,l.max=Ns,l.now=Ps,l.utc=U,l.unix=io,l.months=lo,l.isDate=Ce,l.locale=ne,l.invalid=$e,l.duration=E,l.isMoment=F,l.weekdays=co,l.parseZone=oo,l.localeData=Q,l.isDuration=it,l.monthsShort=uo,l.weekdaysMin=ho,l.defineLocale=jt,l.updateLocale=os,l.locales=ls,l.weekdaysShort=fo,l.normalizeUnits=I,l.relativeTimeRounding=Ho,l.relativeTimeThreshold=Uo,l.calendarFormat=ai,l.prototype=d,l.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},l})});var Go=oa(lr(),1),Aa=oa(lr(),1),me=Aa.default||Go,zo=new fa("MAT_MOMENT_DATE_ADAPTER_OPTIONS",{providedIn:"root",factory:$o});function $o(){return{useUtc:!1}}function Zo(y,l){let o=Array(y);for(let u=0;u<y;u++)o[u]=l(u);return o}var Ea=(()=>{class y extends Ye{_options=ar(zo,{optional:!0});_localeData;constructor(){super();let o=ar(yt,{optional:!0});this.setLocale(o||me.locale())}setLocale(o){super.setLocale(o);let u=me.localeData(o);this._localeData={firstDayOfWeek:u.firstDayOfWeek(),longMonths:u.months(),shortMonths:u.monthsShort(),dates:Zo(31,w=>this.createDate(2017,0,w+1).format("D")),longDaysOfWeek:u.weekdays(),shortDaysOfWeek:u.weekdaysShort(),narrowDaysOfWeek:u.weekdaysMin()}}getYear(o){return this.clone(o).year()}getMonth(o){return this.clone(o).month()}getDate(o){return this.clone(o).date()}getDayOfWeek(o){return this.clone(o).day()}getMonthNames(o){return o=="long"?this._localeData.longMonths:this._localeData.shortMonths}getDateNames(){return this._localeData.dates}getDayOfWeekNames(o){return o=="long"?this._localeData.longDaysOfWeek:o=="short"?this._localeData.shortDaysOfWeek:this._localeData.narrowDaysOfWeek}getYearName(o){return this.clone(o).format("YYYY")}getFirstDayOfWeek(){return this._localeData.firstDayOfWeek}getNumDaysInMonth(o){return this.clone(o).daysInMonth()}clone(o){return o.clone().locale(this.locale)}createDate(o,u,w){let m=this._createMoment({year:o,month:u,date:w}).locale(this.locale);return m.isValid(),m}today(){return this._createMoment().locale(this.locale)}parse(o,u){return o&&typeof o=="string"?this._createMoment(o,u,this.locale):o?this._createMoment(o).locale(this.locale):null}format(o,u){return o=this.clone(o),this.isValid(o),o.format(u)}addCalendarYears(o,u){return this.clone(o).add({years:u})}addCalendarMonths(o,u){return this.clone(o).add({months:u})}addCalendarDays(o,u){return this.clone(o).add({days:u})}toIso8601(o){return this.clone(o).format()}deserialize(o){let u;if(o instanceof Date)u=this._createMoment(o).locale(this.locale);else if(this.isDateInstance(o))return this.clone(o);if(typeof o=="string"){if(!o)return null;u=this._createMoment(o,me.ISO_8601).locale(this.locale)}return u&&this.isValid(u)?this._createMoment(u).locale(this.locale):super.deserialize(o)}isDateInstance(o){return me.isMoment(o)}isValid(o){return this.clone(o).isValid()}invalid(){return me.invalid()}setTime(o,u,w,m){return this.clone(o).set({hours:u,minutes:w,seconds:m,milliseconds:0})}getHours(o){return o.hours()}getMinutes(o){return o.minutes()}getSeconds(o){return o.seconds()}parseTime(o,u){return this.parse(o,u)}addSeconds(o,u){return this.clone(o).add({seconds:u})}_createMoment(o,u,w){let{strict:m,useUtc:H}=this._options||{};return H?me.utc(o,u,w,m):me(o,u,w,m)}static \u0275fac=function(u){return new(u||y)};static \u0275prov=ht({token:y,factory:y.\u0275fac})}return y})();var Te=class y{_calendarHeaderConfig=new da({hideBtnClear:!1,hideBtnToday:!1});calendarConfig=this._calendarHeaderConfig.value;constructor(){}setHeaderConfig(l){this._calendarHeaderConfig.next(l)}getHeaderConfig$(){return this._calendarHeaderConfig.asObservable()}static \u0275fac=function(o){return new(o||y)};static \u0275prov=ht({token:y,factory:y.\u0275fac,providedIn:"root"})};var Qo=["class","component ts"];function Xo(y,l){if(y&1){let o=Ge();re(0,"button",3),Se("click",function(){oe(o);let w=ze(2);return le(w.todayClicked())}),je(1,"i",4),ue()}}function Ko(y,l){if(y&1){let o=Ge();re(0,"button",5),Se("click",function(){oe(o);let w=ze(2);return le(w.clearClicked())}),je(1,"i",6),ue()}}function el(y,l){if(y&1&&(pa(0),Ve(1,Xo,2,0,"button",1)(2,Ko,2,0,"button",2),ya()),y&2){let o=l.ngIf;z(),L("ngIf",!o.hideBtnToday),z(),L("ngIf",!o.hideBtnClear)}}var vt=class y{constructor(l,o,u,w,m){this._datePicker=l;this._calendar=o;this._dateAdapter=u;this.calendarService=w;o.stateChanges.pipe(ua(this._destroyed)).subscribe(H=>m.markForCheck()),this.calendarConfig$=this.calendarService.getHeaderConfig$()}_destroyed=new la;calendarConfig$;todayClicked(){this._calendar.activeDate=this._dateAdapter.today(),this._datePicker.select(this._dateAdapter.today()),this._datePicker.close()}clearClicked(){this._datePicker.select(null),this._datePicker.close()}ngOnChanges(l){this._calendar.ngOnChanges(l)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}static \u0275fac=function(o){return new(o||y)(de(Mt),de(Wa),de(Ye),de(Te),de(Sa))};static \u0275cmp=mt({type:y,selectors:[["POS-DatepickerHeader",8,"component","ts"]],standalone:!1,features:[ha],attrs:Qo,decls:3,vars:3,consts:[[4,"ngIf"],["mat-icon-button","","title","Today",3,"click",4,"ngIf"],["mat-icon-button","","title","Clear",3,"click",4,"ngIf"],["mat-icon-button","","title","Today",3,"click"],[1,"far","fa-clock",2,"font-size","18px"],["mat-icon-button","","title","Clear",3,"click"],[1,"far","fa-xmark-circle",2,"font-size","18px"]],template:function(o,u){o&1&&(re(0,"mat-calendar-header"),Ve(1,el,3,2,"ng-container",0),wa(2,"async"),ue()),o&2&&(z(),L("ngIf",va(2,1,u.calendarConfig$)))},dependencies:[_t,Ta,Pa,Ya],encapsulation:2})},St=class y{static \u0275fac=function(o){return new(o||y)};static \u0275mod=Ue({type:y});static \u0275inj=He({providers:[Oe],imports:[pt,gt,Dt,Oe,kt,wt]})};function tl(y,l){if(y&1&&(re(0,"mat-label",6)(1,"span"),Ma(2),ue()()),y&2){let o=ze();L("show",o.placeholder),z(2),Da(o.placeholder)}}var rl={parse:{dateInput:"DD MMM YYYY"},display:{dateInput:"DD MMM YYYY",monthYearLabel:"MMM YYYY",dateA11yLabel:"LL",monthYearA11yLabel:"MMMM YYYY"}},Ha=class y{constructor(l){this.calendarService=l;this.displayToggle=!0}headerComponent=vt;data_cy;placeholder;displayToggle;appearance="outline";width;isFloatingLabel=!0;date;disabled=!1;readOnly=!1;minDateValidation;maxDateValidation;set hidelClearBtn(l){this.calendarService.setHeaderConfig({hideBtnClear:l,hideBtnToday:this.calendarService.calendarConfig.hideBtnToday})}dateChange=new ma;minDate=Oa.MinDate;change(l){let o=null;l&&(o=l.toDate(),o.setHours(0,0,0,0)),this.dateChange.emit(o),this.onChange(o)}onOpenDatepicker(){let l=document.getElementById("dropdown-filter");if(l){var o=new bootstrap.Dropdown(l);o&&(o._config.autoClose="inside")}}onCloseDatepicker(){let l=document.getElementById("dropdown-filter");if(l){var o=new bootstrap.Dropdown(l);o&&(o._config.autoClose="outside")}}ngOnDestroy(){this.calendarService.setHeaderConfig({hideBtnClear:!1,hideBtnToday:!1})}writeValue(l){l&&(this.date=l)}onChange=l=>{};registerOnChange(l){this.onChange=l}registerOnTouched(l){}setDisabledState(l){this.disabled=l}static \u0275fac=function(o){return new(o||y)(de(Te))};static \u0275cmp=mt({type:y,selectors:[["datepicker"]],inputs:{data_cy:"data_cy",placeholder:"placeholder",displayToggle:"displayToggle",appearance:"appearance",width:"width",isFloatingLabel:"isFloatingLabel",date:"date",disabled:"disabled",readOnly:"readOnly",minDateValidation:"minDateValidation",maxDateValidation:"maxDateValidation",hidelClearBtn:"hidelClearBtn"},outputs:{dateChange:"dateChange"},standalone:!1,features:[ka([{provide:Ye,useClass:Ea,deps:[yt]},{provide:ir,useValue:rl},{provide:ba,useExisting:ca(()=>y),multi:!0}])],decls:6,vars:17,consts:[["picker1",""],[1,"datepicker",3,"disabled","appearance"],[3,"show",4,"ngIf"],["matInput","",3,"dateChange","click","matDatepicker","min","max","placeholder","value","disabled","readonly"],["matSuffix","",3,"for"],[3,"opened","closed","calendarHeaderComponent"],[3,"show"]],template:function(o,u){if(o&1){let w=Ge();re(0,"mat-form-field",1),Ve(1,tl,3,2,"mat-label",2),re(2,"input",3),Se("dateChange",function(H){return oe(w),le(u.change(H.value))})("click",function(){oe(w);let H=sr(5);return le(H.open())}),ue(),je(3,"mat-datepicker-toggle",4),re(4,"mat-datepicker",5,0),Se("opened",function(){return oe(w),le(u.onOpenDatepicker())})("closed",function(){return oe(w),le(u.onCloseDatepicker())}),ue()()}if(o&2){let w=sr(5);nr("width",u.width||100,"%"),L("disabled",u.disabled)("appearance",u.appearance),z(),L("ngIf",u.isFloatingLabel&&u.placeholder),z(),ga("placeholder",u.placeholder||""),L("matDatepicker",w)("min",u.minDateValidation)("max",u.maxDateValidation)("value",u.date==u.minDate?null:u.date)("disabled",u.disabled)("readonly",u.readOnly),_a("data-cy",u.data_cy),z(),nr("display",u.displayToggle?"unset":"none"),L("for",w),z(),L("calendarHeaderComponent",u.headerComponent)}},dependencies:[_t,Mt,Ia,Ra,Na,Ca,xa,Fa],styles:[`.mat-mdc-form-field-disabled ::ng-deep .mat-form-field-appearance-outline{background-color:#e9ecef!important;opacity:1!important}.mat-mdc-form-field-disabled ::ng-deep .mat-form-field-appearance-outline input{color:#00000061!important}.datepicker .mat-mdc-text-field-wrapper.mdc-text-field--outlined .mat-mdc-form-field-infix{min-height:33px;padding-top:18px;padding-bottom:13px}.datepicker .mat-mdc-icon-button.mat-mdc-button-base{padding:0}.datepicker .mat-mdc-form-field-subscript-wrapper{display:none}.mat-calendar-controls .mat-mdc-icon-button.mat-mdc-button-base{padding:0!important}.mat-mdc-form-field .mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{top:28px!important;font-size:16px;color:#9da2a6}.mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-floating-label{top:23px!important;font-size:.875rem;color:#ccc}.mdc-text-field--filled:not(.mdc-text-field--disabled){background-color:#fff}div.form-floating-outline>datepicker .datepicker .mat-mdc-text-field-wrapper.mdc-text-field--outlined .mat-mdc-form-field-infix{min-height:57px!important;padding-top:20px!important;padding-bottom:13px!important;font-size:.875rem!important}div.form-floating-outline>datepicker .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-floating-label{top:26px!important;font-size:.875rem!important}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{h as z,i as S}from"./chunk-
|
|
1
|
+
import{h as z,i as S}from"./chunk-MERQX2AF.js";import"./chunk-4E4L6WXO.js";import"./chunk-AZT6QE56.js";import"./chunk-5UL73W4S.js";import"./chunk-677WPFLK.js";import"./chunk-CIBQBSM6.js";import"./chunk-L2RZWAX3.js";import"./chunk-D35OBUDE.js";import"./chunk-567HXZXC.js";import"./chunk-AAJJTF33.js";import"./chunk-2FWFPV5I.js";import"./chunk-3PYW74LR.js";import"./chunk-P7HKWFZT.js";import"./chunk-HSQKKFE6.js";import"./chunk-7BDVBLHM.js";import"./chunk-AHCRE4GP.js";import"./chunk-W7HVLC6V.js";import{$a as p,Ib as o,Jb as i,Kb as g,Qd as x,Td as l,db as d,ec as r,fc as v,jd as M,ka as a,kb as h,lb as s,vb as f}from"./chunk-DZT5XHBQ.js";import"./chunk-7DCB7DB2.js";var m=class e{constructor(n){this.router=n;console.log(this.router.getCurrentNavigation()),console.log(this.router.lastSuccessfulNavigation),this.previousPage=this.router.lastSuccessfulNavigation?.finalUrl?.root?.children?.primary?.segments?.join("/"),this.role=this.router.getCurrentNavigation()?.extras?.state.role??localStorage.getItem("role"),localStorage.setItem("role",this.role),console.log(this.previousPage)}previousPage="";role="";menuData={H:"Unauthorized"};static \u0275fac=function(t){return new(t||e)(d(x))};static \u0275cmp=h({type:e,selectors:[["POS-unauthorized"]],standalone:!1,decls:13,vars:4,consts:[[3,"pageData","hideSearchDropdown","hideSearchBox"],[1,"d-flex","align-items-center","justify-content-center","mt-8",2,"height","350px"],[1,"text-center"],["src","https://res.cloudinary.com/pos/image/upload/v1702547639/POS/Images/Dashboard/locked.svg",2,"width","200px"],[1,"mt-2","mb-6"],[1,"fw-bold"]],template:function(t,c){t&1&&(o(0,"mainpanel-cmp",0)(1,"content")(2,"div",1)(3,"div",2)(4,"div"),g(5,"img",3),i(),o(6,"h1",4),r(7,"You are not authorized"),i(),o(8,"p"),r(9," This page require "),o(10,"span",5),r(11),i(),r(12," role. Please contact your Administrator to gain access! "),i()()()()()),t&2&&(f("pageData",c.menuData)("hideSearchDropdown",!0)("hideSearchBox",!0),p(11),v(c.role))},dependencies:[z],encapsulation:2})};var D=[{path:"Main/Unauthorized",component:m},{path:"",redirectTo:"Main/Unauthorized",pathMatch:"full"}],u=class e{static \u0275fac=function(t){return new(t||e)};static \u0275mod=s({type:e});static \u0275inj=a({imports:[l.forChild(D),l]})};var y=class e{static \u0275fac=function(t){return new(t||e)};static \u0275mod=s({type:e});static \u0275inj=a({imports:[M,u,S]})};export{y as UnauthorizedModule};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{$a as i,$b as F,Db as l,Fa as x,Ib as o,Ja as d,Jb as a,Kb as _,Ob as S,Qb as E,Rb as m,Sb as p,Tb as u,Yb as I,Yc as N,_b as D,ec as h,gc as M,jd as j,ka as O,kb as g,lb as w,qb as r,sc as V,va as P,vb as k,wa as T,wb as y,zb as C}from"./chunk-DZT5XHBQ.js";var v=class n{static \u0275fac=function(t){return new(t||n)};static \u0275mod=w({type:n});static \u0275inj=O({imports:[j]})};var L=["*"];function q(n,e){n&1&&(o(0,"div",0),u(1),a())}var f=class n{tabTitle;active=!1;isValid=d(!0);icon=d(null);iconColor=d(null);badge=d(null);static \u0275fac=function(t){return new(t||n)};static \u0275cmp=g({type:n,selectors:[["tab"]],inputs:{tabTitle:"tabTitle",active:"active",isValid:[1,"isValid"],icon:[1,"icon"],iconColor:[1,"iconColor"],badge:[1,"badge"]},standalone:!1,ngContentSelectors:L,decls:1,vars:1,consts:[[1,"pane"]],template:function(t,c){t&1&&(p(),r(0,q,2,0,"div",0)),t&2&&l(c.active?0:-1)},styles:[".pane[_ngcontent-%COMP%]{padding:0 1px}"]})};var R=["*"],z=(n,e)=>({selected:n,danger:e});function B(n,e){if(n&1&&_(0,"i",9),n&2){let t=m().$implicit;C(t.icon()),y("color",t.iconColor())}}function G(n,e){if(n&1&&(o(0,"span",7),h(1),a()),n&2){let t=m().$implicit;i(),M(" ",t.badge()," ")}}function H(n,e){n&1&&_(0,"i",8)}function J(n,e){if(n&1){let t=S();o(0,"a",4),E("click",function(){let b=P(t).$implicit,s=m();return s.onSelectTab(b),T(s.onTabChange(b))}),r(1,B,1,4,"i",5),o(2,"span",6),h(3),r(4,G,2,1,"span",7)(5,H,1,0,"i",8),a()()}if(n&2){let t=e.$implicit;C(V(6,z,(t==null?null:t.active)===!0,t.isValid()===!1)),i(),l(t.icon()?1:-1),i(2),M(" ",t.tabTitle," "),i(),l(t.badge()&&t.badge()>0?4:-1),i(),l(t.isValid()===!1&&(t==null?null:t.active)===!1?5:-1)}}var A=class n{tabs;tabChange;constructor(){this.tabChange=new x}ngAfterContentInit(){this.tabs.filter(t=>t.active).length===0&&this.onSelectTab(this.tabs.first)}onSelectTab(e){this.tabChange.emit(e.tabTitle),this.tabs.toArray().forEach(t=>t.active=!1),e.active=!0}onTabChange(e){this.tabChange.emit(e.tabTitle)}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=g({type:n,selectors:[["custom-tabs"]],contentQueries:function(t,c,b){if(t&1&&I(b,f,4),t&2){let s;D(s=F())&&(c.tabs=s)}},outputs:{tabChange:"onTabChange"},standalone:!1,ngContentSelectors:R,decls:6,vars:1,consts:[[1,"row","border-bottom"],[1,"col-12"],["class","btn btn-link-tab",3,"class","click",4,"ngFor","ngForOf"],[1,"row","mt-6"],[1,"btn","btn-link-tab",3,"click"],[1,"me-2",3,"class","color"],[1,"position-relative"],[1,"position-absolute","top-0","translate-middle","badge","rounded-pill","bg-danger","ms-3"],[1,"fa-regular","fa-circle-exclamation","text-danger"],[1,"me-2"]],template:function(t,c){t&1&&(p(),o(0,"div",0)(1,"div",1),r(2,J,6,9,"a",2),a()(),o(3,"div",3)(4,"div",1),u(5),a()()),t&2&&(i(2),k("ngForOf",c.tabs))},dependencies:[N],styles:[".text-warning[_ngcontent-%COMP%]{color:var(--bs-warning)!important}.bg-light-gray[_ngcontent-%COMP%]{background-color:var(--bs-light-gray);--bs-bg-opacity: .15 !important}.bg-gradient-danger[_ngcontent-%COMP%]{background:repeating-linear-gradient(-60deg,#f8d7da,#f8d7da 15px,#f5c6cb 15px 30px)!important}.bg-gradient-success[_ngcontent-%COMP%]{background:repeating-linear-gradient(-60deg,#beeebb,#beeebb 15px,#afeba8 15px 30px)!important}.bg-gradient-warning[_ngcontent-%COMP%]{background:repeating-linear-gradient(-60deg,#fcf3cf,#fcf3cf 15px,#f9e79f 15px 30px)!important}.bg-light-orange[_ngcontent-%COMP%]{background-color:var(--bs-light-orange);--bs-bg-opacity: .15 !important}.text-danger[_ngcontent-%COMP%]{color:#fb404b!important}.text-dark[_ngcontent-%COMP%]{color:#5e5e5e!important}.text-success[_ngcontent-%COMP%]{color:#87cb16!important}.text-black[_ngcontent-%COMP%]{color:#000!important}.text-white[_ngcontent-%COMP%]{color:var(--bs-white)!important}.btn-light-blue[_ngcontent-%COMP%]{color:#212529;background-color:#dfeffc!important;border-color:#dfeffc}.btn-light-blue[_ngcontent-%COMP%]:hover{color:#212529;background-color:#bcdef9;border-color:#b0d8f8}.btn-light-blue[_ngcontent-%COMP%]:focus, .btn-light-blue.focus[_ngcontent-%COMP%]{color:#212529;background-color:#bcdef9;border-color:#b0d8f8;box-shadow:0 0 0 .2rem #c3d1dc80}.btn-light-blue.disabled[_ngcontent-%COMP%], .btn-light-blue[_ngcontent-%COMP%]:disabled{color:#212529;background-color:#dfeffc;border-color:#dfeffc}.btn-light-blue[_ngcontent-%COMP%]:not(:disabled):not(.disabled):active, .btn-light-blue[_ngcontent-%COMP%]:not(:disabled):not(.disabled).active, .show[_ngcontent-%COMP%] > .btn-light-blue.dropdown-toggle[_ngcontent-%COMP%]{color:#212529;background-color:#b0d8f8;border-color:#a5d2f7}.btn-light-blue[_ngcontent-%COMP%]:not(:disabled):not(.disabled):active:focus, .btn-light-blue[_ngcontent-%COMP%]:not(:disabled):not(.disabled).active:focus, .show[_ngcontent-%COMP%] > .btn-light-blue.dropdown-toggle[_ngcontent-%COMP%]:focus{box-shadow:0 0 0 .2rem #c3d1dc80}.btn-light-danger[_ngcontent-%COMP%]{color:#212529;background-color:#f8d7da!important;border-color:#f8d7da}.btn-light-danger[_ngcontent-%COMP%]:hover{color:#212529;background-color:#f5c2c7;border-color:#f1aeb5}.btn-light-danger[_ngcontent-%COMP%]:focus, .btn-light-danger.focus[_ngcontent-%COMP%]{color:#212529;background-color:#f5c2c7;border-color:#f1aeb5;box-shadow:0 0 0 .2rem #dc354540}.btn-light-danger.disabled[_ngcontent-%COMP%], .btn-light-danger[_ngcontent-%COMP%]:disabled{color:#212529;background-color:#f8d7da;border-color:#f8d7da}.btn-light-danger[_ngcontent-%COMP%]:not(:disabled):not(.disabled):active, .btn-light-danger[_ngcontent-%COMP%]:not(:disabled):not(.disabled).active, .show[_ngcontent-%COMP%] > .btn-light-danger.dropdown-toggle[_ngcontent-%COMP%]{color:#212529;background-color:#f1aeb5;border-color:#ea868f}.btn-light-danger[_ngcontent-%COMP%]:not(:disabled):not(.disabled):active:focus, .btn-light-danger[_ngcontent-%COMP%]:not(:disabled):not(.disabled).active:focus, .show[_ngcontent-%COMP%] > .btn-light-danger.dropdown-toggle[_ngcontent-%COMP%]:focus{box-shadow:0 0 0 .2rem #dc354540}.btn-link-tab.danger[_ngcontent-%COMP%]{color:#c9302c}"]})};export{v as a,f as b,A as c};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as E,b as T}from"./chunk-
|
|
1
|
+
import{a as E,b as T}from"./chunk-GFDEHNOL.js";import{c as N}from"./chunk-ZR4YNJBZ.js";import{c as F}from"./chunk-CIBQBSM6.js";import{D as M}from"./chunk-P7HKWFZT.js";import{$a as i,Fa as b,Ib as a,Jb as s,Ob as f,Qb as x,Rb as r,Yc as I,Zc as w,ec as d,gc as _,jd as y,ka as C,kb as k,lb as v,qb as m,va as h,vb as c,wa as g,zb as O}from"./chunk-DZT5XHBQ.js";var p=class{viewGrid;totalColumn;constructor(t,e){this.viewGrid=t||!1,this.totalColumn=e||2}};function S(o,t){if(o&1){let e=f();a(0,"li",4)(1,"mat-checkbox",5),x("change",function(){let l=h(e).$implicit,u=r(2);return g(u.change(l.ID))}),d(2),s()()}if(o&2){let e=t.$implicit,n=r(2);i(),c("checked",n.checkingCheckbox(e.ID))("value",e.ID)("name",n.name),i(),_("",e.Name," ")}}function V(o,t){if(o&1&&(a(0,"ul",2),m(1,S,3,4,"li",3),s()),o&2){let e=r();i(),c("ngForOf",e.options)}}function $(o,t){if(o&1){let e=f();a(0,"li",4)(1,"mat-checkbox",8),x("change",function(){let l=h(e).$implicit,u=r(2);return g(u.change(l.ID))}),d(2),s()()}if(o&2){let e=t.$implicit,n=r(2);O("col-"+12/(n.config!=null&&n.config.totalColumn?n.config==null?null:n.config.totalColumn:2)),i(),c("checked",n.checkingCheckbox(e.ID))("value",e.ID)("name",n.name),i(),_("",e.Name," ")}}function G(o,t){if(o&1&&(a(0,"ul",6),m(1,$,3,6,"li",7),s()),o&2){let e=r();i(),c("ngForOf",e.options)}}var D=class o{model;options;name;config;modelChange=new b;ngOnInit(){this.config==null&&(this.config=new p)}change(t){this.checkingCheckbox(t)?this.model=this.removeItemRow(this.model,t):this.model.push(t),this.modelChange.emit(this.model)}checkingCheckbox(t){return this.model.filter(n=>n==t).length>0}removeItemRow(t,e){let n=t.findIndex(l=>l==e);return t.splice(n,1),t}static \u0275fac=function(e){return new(e||o)};static \u0275cmp=k({type:o,selectors:[["checkbox-options"]],inputs:{model:"model",options:"options",name:"name",config:"config"},outputs:{modelChange:"modelChange"},standalone:!1,decls:2,vars:2,consts:[["class","checkbox-group",4,"ngIf"],["class","checkbox-group view-grid row",4,"ngIf"],[1,"checkbox-group"],["class","checkbox-group-item",4,"ngFor","ngForOf"],[1,"checkbox-group-item"],[3,"change","checked","value","name"],[1,"checkbox-group","view-grid","row"],["class","checkbox-group-item",3,"class",4,"ngFor","ngForOf"],[1,"label-custom",3,"change","checked","value","name"]],template:function(e,n){e&1&&m(0,V,2,1,"ul",0)(1,G,2,1,"ul",1),e&2&&(c("ngIf",!n.config.viewGrid),i(),c("ngIf",n.config.viewGrid))},dependencies:[E,I,w],encapsulation:2})},R=class o{static \u0275fac=function(e){return new(e||o)};static \u0275mod=v({type:o});static \u0275inj=C({imports:[N,T,y,M,F]})};export{p as a,D as b,R as c};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as N,c as D}from"./chunk-
|
|
1
|
+
import{a as N,c as D}from"./chunk-HSQKKFE6.js";import{a as p}from"./chunk-AHCRE4GP.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-DZT5XHBQ.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};
|