dealpos 25.36.4 → 25.36.5
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-MYY7XGIP.js → chunk-23Y4YCAW.js} +1 -1
- package/browser/{chunk-SHX4HZR5.js → chunk-2RSKW5G2.js} +1 -1
- package/browser/{chunk-CANVSK3K.js → chunk-33NXJZ72.js} +1 -1
- package/browser/{chunk-SVWFMPX6.js → chunk-3IOQWLB5.js} +1 -1
- package/browser/{chunk-NMSWEKQO.js → chunk-3IPP3AZL.js} +1 -1
- package/browser/{chunk-IC6JYWIM.js → chunk-3O2TNQSP.js} +1 -1
- package/browser/{chunk-VVY5LOFN.js → chunk-3TA4OWHL.js} +2 -2
- package/browser/{chunk-VPWEJCYI.js → chunk-44PHIXFD.js} +2 -2
- package/browser/{chunk-EHMDBGDW.js → chunk-44YH56DF.js} +1 -1
- package/browser/{chunk-NEIJ2VB2.js → chunk-4GUECTPN.js} +1 -1
- package/browser/{chunk-V4CJN6HP.js → chunk-56WYLSRZ.js} +1 -1
- package/browser/{chunk-Z4WQ7UZ7.js → chunk-5DD6XM7Q.js} +1 -1
- package/browser/{chunk-5D5E5L7B.js → chunk-5DKNOWTW.js} +1 -1
- package/browser/{chunk-P7XJ76G4.js → chunk-5EWWMBXV.js} +1 -1
- package/browser/{chunk-2JW3Q5UE.js → chunk-6HZ67QEX.js} +1 -1
- package/browser/{chunk-G42GWWEK.js → chunk-ADD7IJCW.js} +1 -1
- package/browser/{chunk-TPPXSXQL.js → chunk-ALOHPKEB.js} +1 -1
- package/browser/{chunk-5FQYVKRJ.js → chunk-ARJLWLHF.js} +1 -1
- package/browser/{chunk-WGHNPI32.js → chunk-BF3HM72L.js} +1 -1
- package/browser/{chunk-Q5R2UJWA.js → chunk-BKS3I5O7.js} +1 -1
- package/browser/{chunk-4XGEASWE.js → chunk-BYT3ZVBA.js} +1 -1
- package/browser/{chunk-HHWP2JX2.js → chunk-COG3GHJD.js} +1 -1
- package/browser/{chunk-6KKSOYUD.js → chunk-CQVVIZJ7.js} +1 -1
- package/browser/{chunk-PNUK526Z.js → chunk-CRTHBX5Z.js} +1 -1
- package/browser/{chunk-BMO6VRUL.js → chunk-D5CTQSRR.js} +1 -1
- package/browser/{chunk-A4ZBR5EG.js → chunk-D5E7MR22.js} +1 -1
- package/browser/{chunk-JTW2HUGK.js → chunk-DADXJJV4.js} +1 -1
- package/browser/{chunk-FIVKLVNO.js → chunk-DGRQO7J7.js} +1 -1
- package/browser/{chunk-ZJ7P3FXP.js → chunk-DQUPGPLI.js} +1 -1
- package/browser/{chunk-QJKL3QCW.js → chunk-E5KSEPMR.js} +1 -1
- package/browser/{chunk-4GGKDU75.js → chunk-ECSUCVRE.js} +1 -1
- package/browser/{chunk-XGQYIBFW.js → chunk-EVX52NA7.js} +1 -1
- package/browser/{chunk-SU773RBY.js → chunk-FPBO7JOG.js} +1 -1
- package/browser/{chunk-ZPXMVSOE.js → chunk-FSFWFU4W.js} +1 -1
- package/browser/{chunk-L6ZV6K7H.js → chunk-G7GHTJTG.js} +1 -1
- package/browser/{chunk-XRNWNUVG.js → chunk-GR3EU2XL.js} +1 -1
- package/browser/{chunk-26PBHX4V.js → chunk-GYLHVSYU.js} +1 -1
- package/browser/{chunk-X7EUHZHE.js → chunk-H43K36DA.js} +1 -1
- package/browser/{chunk-R4KZZ4Z4.js → chunk-HXWCQE45.js} +1 -1
- package/browser/{chunk-M5NEB347.js → chunk-IB5RZ52J.js} +2 -2
- package/browser/{chunk-TVBVDVFT.js → chunk-IWKZ2PDL.js} +1 -1
- package/browser/{chunk-CMLB4IUQ.js → chunk-M4WOVW67.js} +1 -1
- package/browser/{chunk-25NQQNU2.js → chunk-MTCDHEYA.js} +1 -1
- package/browser/{chunk-5JJVCYOU.js → chunk-NNSCOQQS.js} +1 -1
- package/browser/{chunk-3NUTLR5R.js → chunk-NW2SL2BH.js} +2 -2
- package/browser/{chunk-4ECPS3D4.js → chunk-O65PGOTS.js} +1 -1
- package/browser/{chunk-WRF3RPQH.js → chunk-P2IBO7GU.js} +1 -1
- package/browser/{chunk-7RGCBUUG.js → chunk-PBNWYWYT.js} +1 -1
- package/browser/{chunk-UDCPYYEK.js → chunk-PDCSUOQI.js} +1 -1
- package/browser/{chunk-YFJME3JU.js → chunk-PX7NWQZQ.js} +1 -1
- package/browser/{chunk-KOUQSPVF.js → chunk-R6UDCFVL.js} +1 -1
- package/browser/{chunk-NZVEUXSI.js → chunk-RZ4V7O3L.js} +1 -1
- package/browser/{chunk-PM5UEADY.js → chunk-S2EI3VNS.js} +1 -1
- package/browser/{chunk-LLHQZRPT.js → chunk-T43U2XFQ.js} +1 -1
- package/browser/{chunk-IXKPLT63.js → chunk-T4OLDAMN.js} +1 -1
- package/browser/{chunk-I4DDICSE.js → chunk-TR7C2V7C.js} +1 -1
- package/browser/{chunk-XJWOCBHY.js → chunk-U3J3KT5P.js} +1 -1
- package/browser/{chunk-G5KKF5D7.js → chunk-URUVKPAB.js} +1 -1
- package/browser/{chunk-Y6ZXG57B.js → chunk-VAZRO2E6.js} +1 -1
- package/browser/chunk-VGJ6EDWD.js +1 -0
- package/browser/{chunk-2ZXGZWAV.js → chunk-VR6M3JBL.js} +1 -1
- package/browser/{chunk-LN2FL2NZ.js → chunk-VVIANPDG.js} +1 -1
- package/browser/{chunk-B52C6HPB.js → chunk-WKGWRMO2.js} +1 -1
- package/browser/{chunk-SCYP72MI.js → chunk-WLD23T7Q.js} +1 -1
- package/browser/{chunk-QWH7FCU6.js → chunk-WVU5HUMZ.js} +1 -1
- package/browser/{chunk-74LNWUT7.js → chunk-X3I26PYS.js} +1 -1
- package/browser/{chunk-OZNDPGO2.js → chunk-X3NWRG4U.js} +2 -2
- package/browser/{chunk-A5ANN35P.js → chunk-X4MTY5HS.js} +1 -1
- package/browser/{chunk-7Z4J6IB3.js → chunk-XNA3D2E7.js} +1 -1
- package/browser/{chunk-6S7EAWBA.js → chunk-Y2B6ZAXI.js} +2 -2
- package/browser/{chunk-QU62JM5V.js → chunk-YLH7XCUD.js} +1 -1
- package/browser/{chunk-A3XDE76F.js → chunk-YRZFNDFW.js} +1 -1
- package/browser/{chunk-O6NH4M23.js → chunk-Z7LZBNHM.js} +1 -1
- package/browser/index.html +2 -2
- package/browser/{main-ID5J3GGJ.js → main-2V5AVI54.js} +2 -2
- package/package.json +1 -1
- package/browser/chunk-DKAR5SKR.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as U,d as W}from"./chunk-
|
|
1
|
+
import{c as U,d as W}from"./chunk-2RSKW5G2.js";import{a as X,b as Y}from"./chunk-C73IEBHE.js";import{b as K,c as Q}from"./chunk-CIBQBSM6.js";import{a as A}from"./chunk-ZT4RBJMM.js";import{la as J}from"./chunk-TLOTIYIE.js";import{D as G,h as B,o as q}from"./chunk-P7HKWFZT.js";import{a as C}from"./chunk-AHCRE4GP.js";import{$a as _,Ac as k,Db as H,Fa as M,Fc as F,Ib as c,Jb as m,Nb as L,Ob as V,Qb as j,Rb as n,Y as S,Yd as d,bd as N,ca as h,cd as P,d as x,db as b,dc as I,ec as v,fa as T,ga as u,gc as E,ja as w,jd as z,kb as $,ma as O,na as D,o as f,qb as a,va as p,vb as l,wa as g,zc as R}from"./chunk-DZT5XHBQ.js";var y=class o{signalRClient=D(A);continuedCategories$;allCategories$;_onOpenTreeSelector=new x;onOpenTreeSelector$=this._onOpenTreeSelector.asObservable();constructor(t){this.continuedCategories$=this.onOpenTreeSelector$.pipe(u(this.signalRClient.recacheCategory$),h((e,[i,r])=>r||!e.length?(this.signalRClient.resetCategoryCache(),t.post("/api/catalog/product/GetProductStorageOptions")):f(e),[]),S(1)),this.allCategories$=this.onOpenTreeSelector$.pipe(u(this.signalRClient.recacheCategory$),h((e,[i,r])=>r||!e.length?t.get("/API/catalog/category/SelectOptions"):f(e),[]),S(1))}onOpenTreeSelector(){this._onOpenTreeSelector.next(!0)}forceLoadCategories(){this._onOpenTreeSelector.next(!0)}static \u0275fac=function(e){return new(e||o)(O(d))};static \u0275prov=w({token:o,factory:o.\u0275fac,providedIn:"root"})};function ie(o,t){o&1&&L(0)}function re(o,t){if(o&1&&(c(0,"p-floatLabel",1),a(1,ie,1,0,"ng-container",2),c(2,"label",3),v(3,"Category"),m()()),o&2){n();let e=I(3);_(),l("ngTemplateOutlet",e)}}function ne(o,t){o&1&&L(0)}function ae(o,t){if(o&1&&a(0,ne,1,0,"ng-container",2),o&2){n();let e=I(3);l("ngTemplateOutlet",e)}}function le(o,t){if(o&1&&(c(0,"div",6),v(1),m()),o&2){let e=n(2);l("matTooltip",e.selectedCategoryLabel),_(),E(" ",e.selectedCategoryLabel," ")}}function ce(o,t){if(o&1){let e=V();c(0,"p-treeSelect",4),R(1,"async"),j("click",function(){p(e);let r=n();return g(r.loadCategories())})("ngModelChange",function(r){p(e);let s=n();return g(s.onSelectCategory(r))})("onClear",function(){p(e);let r=n();return g(r.onClear())}),a(2,le,2,2,"ng-template",5),m()}if(o&2){let e=n();l("options",k(1,3,e.categories$))("ngModel",e.selectedCategory)("showClear",e.showClear)}}var Z=class o{constructor(t,e){this.http=t;this.treeSelector=e}continuedCategoriesOnly=!0;categories=[];showClear=!1;showLabel=!1;isInitializedCategoryLabel=!1;selectedCategory;selectedCategoryID;selectedCategoryIDChange=new M;selectedCategoryLabel;top=0;isLoadCategories=!1;categories$;ngAfterViewInit(){let t=document.querySelector("body");this.top=t.getBoundingClientRect().top*-1}ngOnInit(){this.isInitializedCategoryLabel&&(C.IsEmpty(this.selectedCategoryID)&&C.IsNotEmpty(this.categories)&&(this.selectedCategoryID=this.categories[0]?.key),this.selectedCategory=this.findSelectedCategory(this.categories,this.selectedCategoryID),this.generateLabelSelectedCategory(this.selectedCategory)),this.categories$=this.continuedCategoriesOnly?this.treeSelector.continuedCategories$:this.treeSelector.allCategories$,this.categories$=this.categories$.pipe(T(t=>{this.selectedCategory=this.findSelectedCategory(t,this.selectedCategoryID),this.generateLabelSelectedCategory(this.selectedCategory)}))}onSelectCategory(t){this.selectedCategory=t,this.generateLabelSelectedCategory(this.selectedCategory),this.selectedCategoryID=t?.key,this.selectedCategoryIDChange.emit(this.selectedCategoryID)}generateLabelSelectedCategory(t){if(t){let e=[];this.selectedCategoryLabel="";do e=[...e,t.label],t=t.parent;while(t!==void 0);this.selectedCategoryLabel=e.reverse().join("/")}else this.selectedCategoryLabel="Select Storage Location"}findSelectedCategory(t,e){if(C.IsNotEmpty(e))for(let i of t){if(i.key===e)return i;{i.children=i.children?i.children:[],i.children=i.children.map(s=>(s.parent=i,s));let r=this.findSelectedCategory(i.children,e);if(r)return r}}else return null}loadCategories(){this.treeSelector.onOpenTreeSelector()}onClear(){this.selectedCategoryID=null,this.selectedCategoryIDChange.emit(this.selectedCategoryID)}static \u0275fac=function(e){return new(e||o)(b(d),b(y))};static \u0275cmp=$({type:o,selectors:[["POS-storage-location-select"]],inputs:{continuedCategoriesOnly:"continuedCategoriesOnly",categories:"categories",showClear:"showClear",showLabel:"showLabel",isInitializedCategoryLabel:"isInitializedCategoryLabel",selectedCategoryID:"selectedCategoryID"},outputs:{selectedCategoryIDChange:"selectedCategoryIDChange"},decls:4,vars:1,consts:[["categorySelectTemplate",""],["variant","on",1,"w-100"],[4,"ngTemplateOutlet"],["for","selectCategory",1,"tree-category-label"],["appendTo","body","selectionMode","single","filter","true","filterInputAutoFocus","true","scrollHeight","250px","inputId","selectCategory","placeholder","Select Storage Location",3,"click","ngModelChange","onClear","options","ngModel","showClear"],["pTemplate","value"],["matTooltipPosition","above",3,"matTooltip"]],template:function(e,i){e&1&&a(0,re,4,1,"p-floatLabel",1)(1,ae,1,1,"ng-container")(2,ce,3,5,"ng-template",null,0,F),e&2&&H(i.showLabel?0:1)},dependencies:[z,N,P,Q,K,W,U,J,G,B,q,Y,X],styles:[".p-popover.p-component{z-index:10000000000000000000000!important} .p-treeselect-panel .p-treeselect-items-wrapper .p-tree{padding-left:4px!important} .p-float-label .p-inputwrapper-filled~label.tree-category-label{left:.5rem!important}"]})};export{Z as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as pt,b as cn}from"./chunk-XRPLOMD3.js";import{a as Be}from"./chunk-JLWKTGB2.js";import{a as xe}from"./chunk-SGEVH47J.js";import{a as pn}from"./chunk-FJWXLGMR.js";import{a as mn}from"./chunk-ITEHBWAC.js";import{a as sn}from"./chunk-
|
|
1
|
+
import{a as pt,b as cn}from"./chunk-XRPLOMD3.js";import{a as Be}from"./chunk-JLWKTGB2.js";import{a as xe}from"./chunk-SGEVH47J.js";import{a as pn}from"./chunk-FJWXLGMR.js";import{a as mn}from"./chunk-ITEHBWAC.js";import{a as sn}from"./chunk-BKS3I5O7.js";import{a as ln}from"./chunk-6TJEBGXX.js";import{a as on,b as an}from"./chunk-TYLM2YM3.js";import{a as te,b as ne}from"./chunk-JXKXAC3X.js";import{b as rn}from"./chunk-YOKPVEGO.js";import{a as Zt}from"./chunk-OLALZT3L.js";import{b as qt,c as jt,d as Qt,e as zt}from"./chunk-Y2LBBMGV.js";import{a as ee}from"./chunk-IVP3GL2V.js";import"./chunk-BYXBJQAS.js";import{a as Jt,b as nn}from"./chunk-X7G45LGM.js";import{a as Xt}from"./chunk-C6ARCDXZ.js";import{h as en,i as tn}from"./chunk-X4MTY5HS.js";import"./chunk-T4OLDAMN.js";import{b as Wt}from"./chunk-CQVVIZJ7.js";import"./chunk-52EOLV7I.js";import"./chunk-5UL73W4S.js";import{C as Ae}from"./chunk-7ARFB5UX.js";import{b as J,c as X}from"./chunk-CIBQBSM6.js";import{H as Re,O as ce,P as Yt,o as Kt}from"./chunk-5UCQBOD6.js";import{g as Gt}from"./chunk-D35OBUDE.js";import"./chunk-567HXZXC.js";import{a as st}from"./chunk-CGESXTHC.js";import{a as ve}from"./chunk-2FWFPV5I.js";import{C as lt,G as we,ea as $t,k as Lt,la as rt,ma as Ve,r as Nt,s as ye,t as Ht,u as Z,ua as Ut}from"./chunk-TLOTIYIE.js";import{D as Bt}from"./chunk-P7HKWFZT.js";import"./chunk-RZ4V7O3L.js";import"./chunk-GR3EU2XL.js";import{a as Pe,d as A}from"./chunk-AHCRE4GP.js";import"./chunk-CRTHBX5Z.js";import{$a as l,$b as F,Ac as x,Bc as W,Db as _,Eb as Ce,Fa as le,Fb as Tt,Fc as E,Gb as se,Hb as pe,Ib as o,Ja as h,Jb as a,Kb as p,Lb as Ie,Ma as nt,Mb as Se,Mc as fe,Nb as M,Nc as wt,Ob as N,Od as Ot,Qb as O,Qc as Vt,Qd as Rt,Rb as d,Rd as j,Sb as ot,Tb as at,Td as Q,Vd as At,Wa as vt,Wc as q,Y as _t,Yb as G,Yc as kt,Yd as Oe,Zb as de,Zc as H,_b as D,aa as tt,ad as Dt,bd as $,cd as Ft,db as re,dc as I,ec as m,ed as me,fa as bt,fc as y,gc as V,gd as Y,hc as It,ia as gt,ja as Ct,jc as St,jd as C,ka as ht,kb as g,kc as Et,kd as Me,lb as yt,lc as Pt,na as v,ob as Te,pc as Ee,qb as u,qc as k,rc as S,sc as U,t as et,tc as he,ub as z,va as P,vb as s,wa as w,wd as Mt,xb as Fe,yb as xt,za as De,zb as it,zc as b}from"./chunk-DZT5XHBQ.js";import{a as ut,b as dt,j as ft}from"./chunk-7DCB7DB2.js";var un=["content"],hn=["header"],vn=["lefticon"],yn=["righticon"],xn=["closeicon"],dn=["*"];function Tn(t,r){t&1&&M(0)}function In(t,r){if(t&1&&(Ie(0),u(1,Tn,1,0,"ng-container",3),Se()),t&2){let e=d(2);l(),s("ngTemplateOutlet",e.contentTemplate||e._contentTemplate)}}function Sn(t,r){if(t&1&&(o(0,"div",1),at(1),u(2,In,2,1,"ng-container",2),a()),t&2){let e=d();s("hidden",!e.selected),z("id",e.tabView.getTabContentId(e.id))("aria-hidden",!e.selected)("aria-labelledby",e.tabView.getTabHeaderActionId(e.id))("data-pc-name","tabpanel"),l(2),s("ngIf",(e.contentTemplate||e._contentTemplate)&&(e.cache?e.loaded:e.selected))}}var En=["previousicon"],Pn=["nexticon"],wn=["navbar"],Vn=["prevBtn"],kn=["nextBtn"],Dn=["inkbar"],Fn=["elementToObserve"],Mn=t=>({"p-tablist-viewport":t}),On=(t,r)=>({"p-tab":!0,"p-tab-active":t,"p-disabled":r});function Rn(t,r){t&1&&p(0,"ChevronLeftIcon"),t&2&&z("aria-hidden",!0)}function An(t,r){}function Bn(t,r){t&1&&u(0,An,0,0,"ng-template")}function Ln(t,r){if(t&1){let e=N();o(0,"button",12,3),O("click",function(){P(e);let n=d();return w(n.navBackward())}),u(2,Rn,1,1,"ChevronLeftIcon",13)(3,Bn,1,0,null,14),a()}if(t&2){let e=d();z("tabindex",e.tabindex)("aria-label",e.prevButtonAriaLabel),l(2),s("ngIf",!e.previousIconTemplate&&!e._previousIconTemplate),l(),s("ngTemplateOutlet",e.previousIconTemplate&&e._previousIconTemplate)}}function Nn(t,r){t&1&&M(0)}function Hn(t,r){if(t&1&&u(0,Nn,1,0,"ng-container",14),t&2){let e=d(2).$implicit;s("ngTemplateOutlet",e.headerTemplate||e._headerTemplate)}}function $n(t,r){}function Un(t,r){t&1&&u(0,$n,0,0,"ng-template")}function qn(t,r){if(t&1&&u(0,Un,1,0,null,14),t&2){let e=d(3).$implicit;s("ngTemplateOutlet",e.leftIconTemplate||e._leftIconTemplate)}}function jn(t,r){if(t&1&&p(0,"span",17),t&2){let e=d(3).$implicit;s("ngClass",e.leftIcon)}}function Qn(t,r){}function zn(t,r){t&1&&u(0,Qn,0,0,"ng-template")}function Gn(t,r){if(t&1&&u(0,zn,1,0,null,14),t&2){let e=d(3).$implicit;s("ngTemplateOutlet",e.rightIconTemplate||e._rightIconTemplate)}}function Wn(t,r){if(t&1&&p(0,"span",18),t&2){let e=d(3).$implicit;s("ngClass",e.rightIcon)}}function Kn(t,r){}function Yn(t,r){t&1&&u(0,Kn,0,0,"ng-template")}function Zn(t,r){if(t&1&&u(0,Yn,1,0,null,14),t&2){let e=d(4).$implicit;s("ngTemplateOutlet",e.closeIconTemplate||e._closeIconTemplate)}}function Jn(t,r){if(t&1){let e=N();o(0,"TimesIcon",19),O("click",function(n){P(e);let c=d(4).$implicit,f=d();return w(f.close(n,c))}),a()}}function Xn(t,r){if(t&1&&u(0,Zn,1,1)(1,Jn,1,0,"TimesIcon"),t&2){let e=d(3).$implicit;_(e.closeIconTemplate||e._closeIconTemplate?0:1)}}function ei(t,r){if(t&1&&(u(0,qn,1,1)(1,jn,1,1,"span",17),m(2),u(3,Gn,1,1)(4,Wn,1,1,"span",18)(5,Xn,2,1)),t&2){let e=d(2).$implicit;_(e.leftIconTemplate||e._leftIconTemplate?0:e.leftIcon&&!e.leftIconTemplate&&!e._leftIconTemplate?1:-1),l(2),V(" ",e.header," "),l(),_(e.rightIconTemplate||e._rightIconTemplate?3:e.rightIcon&&!e.rightIconTemplate&&!e._rightIconTemplate?4:-1),l(2),_(e.closable?5:-1)}}function ti(t,r){if(t&1){let e=N();o(0,"button",15),O("click",function(n){P(e);let c=d().$implicit,f=d();return w(f.open(n,c))})("keydown",function(n){P(e);let c=d().$implicit,f=d();return w(f.onTabKeyDown(n,c))}),u(1,Hn,1,1,"ng-container")(2,ei,6,4),a(),p(3,"span",16,4)}if(t&2){let e=d(),i=e.$implicit,n=e.$index,c=d();it(i.headerStyleClass),s("ngClass",U(22,On,i.selected,i.disabled))("ngStyle",i.headerStyle)("pTooltip",i.tooltip)("tooltipPosition",i.tooltipPosition)("positionStyle",i.tooltipPositionStyle)("tooltipStyleClass",i.tooltipStyleClass)("disabled",i.disabled),z("role","tab")("id",c.getTabHeaderActionId(i.id))("aria-controls",c.getTabContentId(i.id))("aria-selected",i.selected)("tabindex",i.disabled||!i.selected?"-1":c.tabindex)("aria-disabled",i.disabled)("data-pc-index",n)("data-p-disabled",i.disabled)("data-pc-section","headeraction")("data-p-active",i.selected),l(),_(i.headerTemplate||i._headerTemplate?1:2),l(2),z("aria-hidden",!0)("data-pc-section","inkbar")}}function ni(t,r){if(t&1&&u(0,ti,5,25),t&2){let e=r.$implicit;_(e.closed?-1:0)}}function ii(t,r){}function oi(t,r){t&1&&u(0,ii,0,0,"ng-template")}function ai(t,r){if(t&1&&u(0,oi,1,0,null,14),t&2){let e=d(2);s("ngTemplateOutlet",e.nextIconTemplate||e._nextIconTemplate)}}function li(t,r){t&1&&p(0,"ChevronRightIcon"),t&2&&z("aria-hidden",!0)}function ri(t,r){if(t&1){let e=N();o(0,"button",20,5),O("click",function(){P(e);let n=d();return w(n.navForward())}),u(2,ai,1,1)(3,li,1,1,"ChevronRightIcon"),a()}if(t&2){let e=d();z("tabindex",e.tabindex)("aria-label",e.nextButtonAriaLabel),l(2),_(e.nextIconTemplate||e._nextIconTemplate?2:3)}}var si=({dt:t})=>`
|
|
2
2
|
.p-tabs {
|
|
3
3
|
display: flex;
|
|
4
4
|
flex-direction: column;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as k}from"./chunk-
|
|
1
|
+
import{a as k}from"./chunk-PDCSUOQI.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-RZ4V7O3L.js";import"./chunk-GR3EU2XL.js";import{a as p}from"./chunk-AHCRE4GP.js";import"./chunk-CRTHBX5Z.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};
|
package/browser/index.html
CHANGED
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
</script>
|
|
47
47
|
<link href="https://cdn.jsdelivr.net/npm/dealpos-font@1.9.18/font-awesome/css/all.min.css" rel="stylesheet"/>
|
|
48
48
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/swiper@11/swiper-bundle.min.css"/>
|
|
49
|
-
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/dealpos@25.36.
|
|
49
|
+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/dealpos@25.36.5/browser/styles-H2UJWE23.css"></head>
|
|
50
50
|
|
|
51
51
|
<body>
|
|
52
52
|
<app-root>
|
|
@@ -54,5 +54,5 @@
|
|
|
54
54
|
</app-root>
|
|
55
55
|
<script async="" src="https://cdn.jsdelivr.net/npm/dealpos-tm@7.1.0/tinymce.min.js"></script>
|
|
56
56
|
<script src="https://cdn.jsdelivr.net/npm/swiper@11/swiper-element-bundle.min.js"></script>
|
|
57
|
-
<link rel="modulepreload" href="https://cdn.jsdelivr.net/npm/dealpos@25.36.
|
|
57
|
+
<link rel="modulepreload" href="https://cdn.jsdelivr.net/npm/dealpos@25.36.5/browser/chunk-BWWLIKSO.js"><link rel="modulepreload" href="https://cdn.jsdelivr.net/npm/dealpos@25.36.5/browser/chunk-M4TPGDOJ.js"><link rel="modulepreload" href="https://cdn.jsdelivr.net/npm/dealpos@25.36.5/browser/chunk-ZT4RBJMM.js"><link rel="modulepreload" href="https://cdn.jsdelivr.net/npm/dealpos@25.36.5/browser/chunk-GIKR6Y2K.js"><link rel="modulepreload" href="https://cdn.jsdelivr.net/npm/dealpos@25.36.5/browser/chunk-VMY3JQDA.js"><link rel="modulepreload" href="https://cdn.jsdelivr.net/npm/dealpos@25.36.5/browser/chunk-D35OBUDE.js"><link rel="modulepreload" href="https://cdn.jsdelivr.net/npm/dealpos@25.36.5/browser/chunk-567HXZXC.js"><link rel="modulepreload" href="https://cdn.jsdelivr.net/npm/dealpos@25.36.5/browser/chunk-TLOTIYIE.js"><link rel="modulepreload" href="https://cdn.jsdelivr.net/npm/dealpos@25.36.5/browser/chunk-P7HKWFZT.js"><link rel="modulepreload" href="https://cdn.jsdelivr.net/npm/dealpos@25.36.5/browser/chunk-RZ4V7O3L.js"><script src="https://cdn.jsdelivr.net/npm/dealpos@25.36.5/browser/polyfills-22A7LMHG.js" type="module"></script><script src="https://cdn.jsdelivr.net/npm/dealpos@25.36.5/browser/scripts-3E2G6IZ4.js" defer></script><script src="https://cdn.jsdelivr.net/npm/dealpos@25.36.5/browser/main-2V5AVI54.js" type="module"></script></body>
|
|
58
58
|
</html>
|