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,2 +1,2 @@
|
|
|
1
|
-
import{a as E}from"./chunk-L2EDFSBR.js";import{a as q}from"./chunk-TEFNN3TY.js";import{a as U,b as K}from"./chunk-JKYTSC2D.js";import{k as W,l as Z}from"./chunk-
|
|
1
|
+
import{a as E}from"./chunk-L2EDFSBR.js";import{a as q}from"./chunk-TEFNN3TY.js";import{a as U,b as K}from"./chunk-JKYTSC2D.js";import{k as W,l as Z}from"./chunk-677WPFLK.js";import{a as x}from"./chunk-CIBQBSM6.js";import{ca as _,ea as M,f as z,g as m,j as b,n as O,y as j}from"./chunk-567HXZXC.js";import{e as B,g as L,k as P,t as V}from"./chunk-P7HKWFZT.js";import{Ga as c,Ka as f,La as w,Mc as y,Pb as H,Qb as v,Qc as N,bb as A,cb as p,d,ja as k,k as I,ka as h,kb as S,la as C,lb as u,mb as g,na as r,pc as D,ua as T,ub as R,xb as F}from"./chunk-DZT5XHBQ.js";var J=(()=>{class s{static \u0275fac=function(t){return new(t||s)};static \u0275cmp=S({type:s,selectors:[["ng-component"]],hostAttrs:["cdk-text-field-style-loader",""],decls:0,vars:0,template:function(t,i){},styles:[`textarea.cdk-textarea-autosize{resize:none}textarea.cdk-textarea-autosize-measuring{padding:2px 0 !important;box-sizing:content-box !important;height:auto !important;overflow:hidden !important}textarea.cdk-textarea-autosize-measuring-firefox{padding:2px 0 !important;box-sizing:content-box !important;height:0 !important}@keyframes cdk-text-field-autofill-start{/*!*/}@keyframes cdk-text-field-autofill-end{/*!*/}.cdk-text-field-autofill-monitored:-webkit-autofill{animation:cdk-text-field-autofill-start 0s 1ms}.cdk-text-field-autofill-monitored:not(:-webkit-autofill){animation:cdk-text-field-autofill-end 0s 1ms}
|
|
2
2
|
`],encapsulation:2,changeDetection:0})}return s})(),Q={passive:!0},G=(()=>{class s{_platform=r(m);_ngZone=r(c);_renderer=r(A).createRenderer(null,null);_styleLoader=r(O);_monitoredElements=new Map;constructor(){}monitor(e){if(!this._platform.isBrowser)return I;this._styleLoader.load(J);let t=b(e),i=this._monitoredElements.get(t);if(i)return i.subject;let n=new d,a="cdk-text-field-autofilled",o=l=>{l.animationName==="cdk-text-field-autofill-start"&&!t.classList.contains(a)?(t.classList.add(a),this._ngZone.run(()=>n.next({target:l.target,isAutofilled:!0}))):l.animationName==="cdk-text-field-autofill-end"&&t.classList.contains(a)&&(t.classList.remove(a),this._ngZone.run(()=>n.next({target:l.target,isAutofilled:!1})))},Y=this._ngZone.runOutsideAngular(()=>(t.classList.add("cdk-text-field-autofill-monitored"),z(this._renderer,t,"animationstart",o,Q)));return this._monitoredElements.set(t,{subject:n,unlisten:Y}),n}stopMonitoring(e){let t=b(e),i=this._monitoredElements.get(t);i&&(i.unlisten(),i.subject.complete(),t.classList.remove("cdk-text-field-autofill-monitored"),t.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(t))}ngOnDestroy(){this._monitoredElements.forEach((e,t)=>this.stopMonitoring(t))}static \u0275fac=function(t){return new(t||s)};static \u0275prov=k({token:s,factory:s.\u0275fac,providedIn:"root"})}return s})();var $=(()=>{class s{static \u0275fac=function(t){return new(t||s)};static \u0275mod=u({type:s});static \u0275inj=h({})}return s})();var ee=["button","checkbox","file","hidden","image","radio","range","reset","submit"],te=new C("MAT_INPUT_CONFIG"),Ne=(()=>{class s{_elementRef=r(f);_platform=r(m);ngControl=r(L,{optional:!0,self:!0});_autofillMonitor=r(G);_ngZone=r(c);_formField=r(Z,{optional:!0});_renderer=r(p);_uid=r(j).getId("mat-input-");_previousNativeValue;_inputValueAccessor;_signalBasedValueAccessor;_previousPlaceholder;_errorStateTracker;_config=r(te,{optional:!0});_cleanupIosKeyup;_cleanupWebkitWheel;_formFieldDescribedBy;_isServer;_isNativeSelect;_isTextarea;_isInFormField;focused=!1;stateChanges=new d;controlType="mat-input";autofilled=!1;get disabled(){return this._disabled}set disabled(e){this._disabled=_(e),this.focused&&(this.focused=!1,this.stateChanges.next())}_disabled=!1;get id(){return this._id}set id(e){this._id=e||this._uid}_id;placeholder;name;get required(){return this._required??this.ngControl?.control?.hasValidator(B.required)??!1}set required(e){this._required=_(e)}_required;get type(){return this._type}set type(e){let t=this._type;this._type=e||"text",this._validateType(),!this._isTextarea&&x().has(this._type)&&(this._elementRef.nativeElement.type=this._type),this._type!==t&&this._ensureWheelDefaultBehavior()}_type="text";get errorStateMatcher(){return this._errorStateTracker.matcher}set errorStateMatcher(e){this._errorStateTracker.matcher=e}userAriaDescribedBy;get value(){return this._signalBasedValueAccessor?this._signalBasedValueAccessor.value():this._inputValueAccessor.value}set value(e){e!==this.value&&(this._signalBasedValueAccessor?this._signalBasedValueAccessor.value.set(e):this._inputValueAccessor.value=e,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(e){this._readonly=_(e)}_readonly=!1;disabledInteractive;get errorState(){return this._errorStateTracker.errorState}set errorState(e){this._errorStateTracker.errorState=e}_neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(e=>x().has(e));constructor(){let e=r(P,{optional:!0}),t=r(V,{optional:!0}),i=r(U),n=r(q,{optional:!0,self:!0}),a=this._elementRef.nativeElement,o=a.nodeName.toLowerCase();n?w(n.value)?this._signalBasedValueAccessor=n:this._inputValueAccessor=n:this._inputValueAccessor=a,this._previousNativeValue=this.value,this.id=this.id,this._platform.IOS&&this._ngZone.runOutsideAngular(()=>{this._cleanupIosKeyup=this._renderer.listen(a,"keyup",this._iOSKeyupListener)}),this._errorStateTracker=new K(i,this.ngControl,t,e,this.stateChanges),this._isServer=!this._platform.isBrowser,this._isNativeSelect=o==="select",this._isTextarea=o==="textarea",this._isInFormField=!!this._formField,this.disabledInteractive=this._config?.disabledInteractive||!1,this._isNativeSelect&&(this.controlType=a.multiple?"mat-native-select-multiple":"mat-native-select"),this._signalBasedValueAccessor&&N(()=>{this._signalBasedValueAccessor.value(),this.stateChanges.next()})}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(e=>{this.autofilled=e.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement),this._cleanupIosKeyup?.(),this._cleanupWebkitWheel?.()}ngDoCheck(){this.ngControl&&(this.updateErrorState(),this.ngControl.disabled!==null&&this.ngControl.disabled!==this.disabled&&(this.disabled=this.ngControl.disabled,this.stateChanges.next())),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(e){this._elementRef.nativeElement.focus(e)}updateErrorState(){this._errorStateTracker.updateErrorState()}_focusChanged(e){if(e!==this.focused){if(!this._isNativeSelect&&e&&this.disabled&&this.disabledInteractive){let t=this._elementRef.nativeElement;t.type==="number"?(t.type="text",t.setSelectionRange(0,0),t.type="number"):t.setSelectionRange(0,0)}this.focused=e,this.stateChanges.next()}}_onInput(){}_dirtyCheckNativeValue(){let e=this._elementRef.nativeElement.value;this._previousNativeValue!==e&&(this._previousNativeValue=e,this.stateChanges.next())}_dirtyCheckPlaceholder(){let e=this._getPlaceholder();if(e!==this._previousPlaceholder){let t=this._elementRef.nativeElement;this._previousPlaceholder=e,e?t.setAttribute("placeholder",e):t.removeAttribute("placeholder")}}_getPlaceholder(){return this.placeholder||null}_validateType(){ee.indexOf(this._type)>-1}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let e=this._elementRef.nativeElement.validity;return e&&e.badInput}get empty(){return!this._isNeverEmpty()&&!this._elementRef.nativeElement.value&&!this._isBadInput()&&!this.autofilled}get shouldLabelFloat(){if(this._isNativeSelect){let e=this._elementRef.nativeElement,t=e.options[0];return this.focused||e.multiple||!this.empty||!!(e.selectedIndex>-1&&t&&t.label)}else return this.focused&&!this.disabled||!this.empty}setDescribedByIds(e){let t=this._elementRef.nativeElement,i=t.getAttribute("aria-describedby"),n;if(i){let a=this._formFieldDescribedBy||e;n=e.concat(i.split(" ").filter(o=>o&&!a.includes(o)))}else n=e;this._formFieldDescribedBy=e,n.length?t.setAttribute("aria-describedby",n.join(" ")):t.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){let e=this._elementRef.nativeElement;return this._isNativeSelect&&(e.multiple||e.size>1)}_iOSKeyupListener=e=>{let t=e.target;!t.value&&t.selectionStart===0&&t.selectionEnd===0&&(t.setSelectionRange(1,1),t.setSelectionRange(0,0))};_webkitBlinkWheelListener=()=>{};_ensureWheelDefaultBehavior(){this._cleanupWebkitWheel?.(),this._type==="number"&&(this._platform.BLINK||this._platform.WEBKIT)&&(this._cleanupWebkitWheel=this._renderer.listen(this._elementRef.nativeElement,"wheel",this._webkitBlinkWheelListener))}_getReadonlyAttribute(){return this._isNativeSelect?null:this.readonly||this.disabled&&this.disabledInteractive?"true":null}static \u0275fac=function(t){return new(t||s)};static \u0275dir=g({type:s,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-mdc-input-element"],hostVars:21,hostBindings:function(t,i){t&1&&v("focus",function(){return i._focusChanged(!0)})("blur",function(){return i._focusChanged(!1)})("input",function(){return i._onInput()}),t&2&&(H("id",i.id)("disabled",i.disabled&&!i.disabledInteractive)("required",i.required),R("name",i.name||null)("readonly",i._getReadonlyAttribute())("aria-disabled",i.disabled&&i.disabledInteractive?"true":null)("aria-invalid",i.empty&&i.required?null:i.errorState)("aria-required",i.required)("id",i.id),F("mat-input-server",i._isServer)("mat-mdc-form-field-textarea-control",i._isInFormField&&i._isTextarea)("mat-mdc-form-field-input-control",i._isInFormField)("mat-mdc-input-disabled-interactive",i.disabledInteractive)("mdc-text-field__input",i._isInFormField)("mat-mdc-native-select-inline",i._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",name:"name",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:[0,"aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly",disabledInteractive:[2,"disabledInteractive","disabledInteractive",y]},exportAs:["matInput"],features:[D([{provide:W,useExisting:s}]),T]})}return s})(),Be=(()=>{class s{static \u0275fac=function(t){return new(t||s)};static \u0275mod=u({type:s});static \u0275inj=h({imports:[M,E,E,$,M]})}return s})();export{Ne as a,Be as b};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as P}from"./chunk-
|
|
1
|
+
import{a as P}from"./chunk-H24HNIUV.js";import{a as C}from"./chunk-6ZOGADBZ.js";import{a as w}from"./chunk-MERQX2AF.js";import{a as A}from"./chunk-DHQUQTIV.js";import{a as I}from"./chunk-D35OBUDE.js";import{a as l}from"./chunk-2FWFPV5I.js";import{a as c}from"./chunk-AHCRE4GP.js";import{fa as y,na as f,t as L,z as S}from"./chunk-DZT5XHBQ.js";import{a as F}from"./chunk-7DCB7DB2.js";var g=class{enabledDragItem;constructor(){this.enabledDragItem=!1}drop(o,t){C(t.Data,o.previousIndex,o.currentIndex)}toggleEnabledDragItem(){}onSaveDragAndDrop(o,t){this.enabledDragItem=!this.enabledDragItem,this.enabledDragItem||t.postListID(o,t.data.Data)}onPutSaveDragAndDrop(o,t){this.enabledDragItem=!this.enabledDragItem,this.enabledDragItem||t.putListID(o,t.data.Data)}};var u=class{constructor(o){this.httpService=o}exportCSV(o,t,e,i){e.pageData.Filter.Export=!0,e.pageData.Filter.FormatType=0,i=i||"export.csv",this.httpService.post(`/api/${t}`,e.pageData.Filter).subscribe(r=>{o.convertToCSV(r,i),e.pageData.Filter.Export=!1})}convertToCSV(o,t=!1,e){let i=this.ExportDataFromUI2(t);o.convertToCSV(i,e)}ExportDataFromUI2(o=!1){let t=document.getElementById("tableGrid"),e=[];return c.IsNotEmpty(t)&&t.querySelectorAll("tr").forEach(r=>{let a=new Object,s=0;r.querySelectorAll("th, td").forEach(n=>{s++;let b=parseInt(n.getAttribute("colspan"));for(let h=1;h<b;h++)a["column"+s]="",s++;let m=n.innerText,v=m.toString().split("");if(o&&v[0]==="0"&&v.length>1){let h="'"+m.trim();a["column"+s]=h}else a["column"+s]=m.trim()}),e.push(a)}),e}};var d=class{listTotal;pageSize;show;constructor(){this.listTotal=0,this.pageSize=0,this.show=!1}changePaginationData(o){this.pageSize=o.pageData.Filter.RowCount,this.listTotal=o.data?.ListTotal??o.data?.Data?.total?.value,this.show=this.pageSize<=this.listTotal}changePage(o,t,e){t.Filter.PageNumber=o.pageIndex+1,e.getListData()}};var x=class extends A{constructor(t,e,i,r,a,s,p){super(t);this.httpService=e;this.dataAPI=i;this.pageAPI=r;this.toastrService=a;this.route=s;this.initOpenDialog=p;this.exportHandler=new u(e),r?(s&&(this.loaderPayload=F({ListIDs:this.reportFilterService?.initOutletFilter()},s.snapshot.queryParams)),this.preInitLoader(),S([this.menuData$,this.httpService.post("/api/"+this.pageAPI,this.loaderPayload)]).pipe(L(([n,b])=>b)).pipe(I()).subscribe(n=>{this.pageData=n,this.pageData.Filter||(this.pageData.Filter={},this.pageData.Filter.RowCount=20),this.pageData.Filter.PageNumber=1,this.pageData.Filter.ID=this.loaderPayload.ID,this.preInitList(),p?this.openDialogFilter.openDialog():this.getListData()})):(this.pageData.Filter.RowCount=20,this.pageData.Filter.PageNumber=1,this.preInitList(),S({menuData:this.menuData$,listData:this.getListData$()}).pipe(I()).subscribe())}openDialogFilter=f(w);reportFilterService=f(P);pageData={Filter:{},Options:{},Roles:{},Config:{}};data;pagination=new d;dragDrop=new g;exportHandler;comparation=0;loaderPayload={};preInitLoader(){}preInitList(){}getListData(t){this.preGetList(),this.dataAPI&&this.httpService.post("/api/"+this.dataAPI,this.pageData.Filter).subscribe(e=>{this.data=e,this.postInit(e),this.pagination.changePaginationData(this),t&&(this.pageData.HideStoreApiCount=!1)})}getListData$(t){return this.preGetList(),this.httpService.post("/api/"+this.dataAPI,this.pageData.Filter).pipe(y(e=>{this.data=e,this.postInit(e),this.pagination.changePaginationData(this),t&&(this.pageData.HideStoreApiCount=!1)}))}searchFromPageOne(){this.preSearchFromPageOne(),this.pageData.Filter.PageNumber=1,this.getListData("filterMode")}postInit(t){t.PageTitle!=null&&(this.menuData.H=t.PageTitle)}preGetList(){this.pageData.Filter.From==null&&(this.pageData.Filter.From=c.MinDate),this.pageData.Filter.To==null&&(this.pageData.Filter.To=c.MinDate)}preSearchFromPageOne(){}onPaginationChange(t){this.pagination.changePage(t,this.pageData,this)}onSelectAllData(t){this.data.Data=this.data.Data.map(e=>(e.selected=t,e))}getSelectedData(){let t=[];return this.data&&(t=this.data.Data.filter(e=>e.selected)),t}httpPostListID(t,e,i){if(e||(e="Are you sure you want to selected record/s?"),confirm(e)==!1)return;let r=this.getSelectedData();r.length>0&&this.postListID(t,r,i)}httpPutListID(t,e,i){if(e||(e="Are you sure you want to selected record/s?"),confirm(e)==!1)return;let r=this.getSelectedData();r.length>0&&this.putListID(t,r,i)}httpDeleteListID(t,e,i){if(e||(e="Are you sure you want to delete selected record/s?"),confirm(e)==!1)return;let r=this.getSelectedData();r.length>0&&this.DeleteListID(t,r,i)}onSaveDragAndDrop(t){this.dragDrop.onSaveDragAndDrop(t,this)}onPutSaveDragAndDrop(t){this.dragDrop.onPutSaveDragAndDrop(t,this)}postListID(t,e,i){let r=e.map(a=>i?a[i]:a.ID);this.httpService.post(`/api/${t}`,r,1e6,!0).subscribe(a=>{this.toastrService.success(a.Message?a.Message:a,l.Success),this.getListData()},a=>{let s=a.status+" "+a.statusText;this.toastrService.error(a.error.Message!=""?a.error.Message:"An unknown error has occured!",s,{enableHtml:!0})})}putListID(t,e,i){let r=e.map(a=>i?a[i]:a.ID);this.httpService.put(`/api/${t}`,r).subscribe(a=>{this.toastrService.success(a.Message?a.Message:a,l.Success),this.afterPutListSuccess(),this.getListData()})}afterPutListSuccess(){}DeleteListID(t,e,i){let r=e.map(a=>i?a[i]:a.ID);this.httpService.delete(`/api/${t}`,{body:r}).subscribe(a=>{this.toastrService.success(a.Message?a.Message:a,l.Success),this.getListData()})}postData(t,e){this.httpService.post("/API/"+t,e).subscribe(i=>{this.getListData(),this.toastrService.success(i.Message?i.Message:i,l.Success)})}compare(t,e,i){return(t<e?-1:1)*(i?1:-1)}exportCSV(t,e,i){this.exportHandler.exportCSV(t,e,this,i)}s2ab(t){for(var e=new ArrayBuffer(t.length),i=new Uint8Array(e),r=0;r!=t.length;++r)i[r]=t.charCodeAt(r)&255;return e}exportXlsx(t,e){this.pageData.Filter.FormatType=1,this.pageData.Filter.Export=!0,this.httpService.post(`/api/${t}`,this.pageData.Filter).subscribe(i=>{e=decodeURI(e);let r=window.URL.createObjectURL(new Blob([this.s2ab(atob(i))],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;base64,"})),a=document.createElement("a");a.href=r,a.setAttribute("download",e),document.body.appendChild(a),a.click(),window.URL.revokeObjectURL(r),a.remove()})}convertToCSV(t,e=!1,i){let r=this.exportHandler.ExportDataFromUI2(e);t.convertToCSV(r,i)}OnCompare(t){let e=t?this.data[t]:this.data;if(e.length<1)return;let i=Object.assign({},this.pageData.Filter);i.From=new Date(new Date(this.pageData.Filter.From).getFullYear(),new Date(this.pageData.Filter.From).getMonth()-1,1),i.To=new Date(new Date(this.pageData.Filter.To).getFullYear(),new Date(this.pageData.Filter.To).getMonth(),0).toDateString(),this.httpService.post("/API/"+this.dataAPI,i).subscribe(r=>{let a=t?r[t]:r;this.comparation=0,e.forEach(s=>{s.PrevIndex="-",s.CurrentIndex="-",s.Increase="-";let p=a.filter(n=>n.EntityID==s.EntityID);if(s.CurrentIndex=s.Rank,p.length>0){let n=p[0];s.PrevIndex=n.Rank,n.SalesNet?s.Increase=(s.SalesNet-n.SalesNet)/n.SalesNet*100:n.Sales&&(s.Increase=(s.Sales-n.Sales)/n.Sales*100),s.IsPositive=s.Increase>0,s.IsNegative=s.Increase<0,this.comparation+=s.Increase}})})}};export{x as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as e}from"./chunk-
|
|
1
|
+
import{a as e}from"./chunk-W2TSDYEA.js";import{a as t}from"./chunk-7DCB7DB2.js";var i=class extends e{constructor(r,a,o,l,s,p,F){super(r,a,o,l,s,p,F)}preInitLoader(){this.loaderPayload=t({ListIDs:this.reportFilterService.initOutletFilter([])},this.loaderPayload)}preInitList(){this.pageData.Filter.ListIDs=this.loaderPayload.ListIDs,this.pageData.Filter.From=this.reportFilterService.initDateFromFilter(this.pageData?.Filter?.From),this.pageData.Filter.To=this.reportFilterService.initDateToFilter(this.pageData?.Filter?.To)}onFilterOutlets(){this.reportFilterService.setOutletFilter(this.pageData.Filter.ListIDs)}onFilterFromDate(){this.reportFilterService.setDateFromFilter(this.pageData?.Filter?.From)}onFilterToDate(){this.reportFilterService.setDateToFilter(this.pageData?.Filter?.To)}};export{i as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as ee}from"./chunk-
|
|
1
|
+
import{a as ee}from"./chunk-RYONOB6O.js";import{a as K,b as Q}from"./chunk-XP2OIGWH.js";import{a as J}from"./chunk-L2EDFSBR.js";import{a as U,b as X}from"./chunk-7ENHJR7R.js";import{h as Z,i as $}from"./chunk-MERQX2AF.js";import{b as Y}from"./chunk-DHQUQTIV.js";import{h as q,m as z,q as G}from"./chunk-677WPFLK.js";import{b as j,c as H}from"./chunk-CIBQBSM6.js";import{a as D}from"./chunk-2FWFPV5I.js";import{D as b,c as A,h as v,o as k}from"./chunk-P7HKWFZT.js";import{$a as l,Eb as w,Fa as C,Gb as P,Hb as F,Ib as o,Ja as g,Jb as a,Ob as N,Od as L,Qb as c,Rb as d,Vd as B,Yd as R,Zc as W,db as S,ec as r,fc as T,jc as E,jd as h,kb as M,kc as _,lc as V,ob as I,qb as O,va as u,vb as p,wa as f}from"./chunk-DZT5XHBQ.js";var x=class s{stringPrefixMask=g();stringSuffixMask=g();stringPrefixMaskChange=new C;stringSuffixMaskChange=new C;onStringPrefixMaskChange(m){this.stringPrefixMaskChange.emit(m)}onStringSuffixMaskChange(m){this.stringSuffixMaskChange.emit(m)}static \u0275fac=function(e){return new(e||s)};static \u0275cmp=M({type:s,selectors:[["masking-config"]],inputs:{stringPrefixMask:[1,"stringPrefixMask"],stringSuffixMask:[1,"stringSuffixMask"]},outputs:{stringPrefixMaskChange:"stringPrefixMaskChange",stringSuffixMaskChange:"stringSuffixMaskChange"},decls:18,vars:2,consts:[[1,"row","my-10","ms-2"],[1,"col-md-2"],[1,"notes","text-muted"],[1,"col-md-10"],[1,"row"],[1,"col-6"],["matTooltipPosition","above","matTooltip","Sets the number of characters at the beginning of the sensitive field that remain visible",1,"form-floating-outline"],["type","text","id","name","placeholder","Max Visible Prefix","autoNum","",1,"form-control",3,"ngModelChange","ngModel"],["matTooltipPosition","above","matTooltip","Sets the number of characters at the end of the sensitive field that remain visible",1,"form-floating-outline"],["type","text","id","name","placeholder","Max Visible Suffix","autoNum","",1,"form-control",3,"ngModelChange","ngModel"]],template:function(e,i){e&1&&(o(0,"div",0)(1,"div",1)(2,"h5"),r(3,"Visible Masking Settings"),a(),o(4,"i",2),r(5," Configure how many characters at the beginning and end of sensitive fields remain visible. "),a()(),o(6,"div",3)(7,"div",4)(8,"div",5)(9,"div",6)(10,"input",7),c("ngModelChange",function(n){return i.onStringPrefixMaskChange(n)}),a(),o(11,"label"),r(12,"Max Visible Prefix"),a()()(),o(13,"div",5)(14,"div",8)(15,"input",9),c("ngModelChange",function(n){return i.onStringSuffixMaskChange(n)}),a(),o(16,"label"),r(17,"Max Visible Suffix"),a()()()()()()),e&2&&(l(10),p("ngModel",i.stringPrefixMask()),l(5),p("ngModel",i.stringSuffixMask()))},dependencies:[h,b,A,v,k,U,X,H,j],encapsulation:2})};function ae(s,m){if(s&1&&(o(0,"mat-option",10),r(1),a()),s&2){let e=m.$implicit;p("value",e),l(),T(e)}}function re(s,m){if(s&1&&(o(0,"mat-option",10),r(1),a()),s&2){let e=m.$implicit;p("value",e),l(),T(e)}}var y=class s{options=g();contacts=g([]);products=g([]);contactsChange=new C;productsChange=new C;onContactsChange(m){this.contactsChange.emit(m)}onProductsChange(m){this.productsChange.emit(m)}static \u0275fac=function(e){return new(e||s)};static \u0275cmp=M({type:s,selectors:[["masking-options"]],inputs:{options:[1,"options"],contacts:[1,"contacts"],products:[1,"products"]},outputs:{contactsChange:"contactsChange",productsChange:"productsChange"},decls:27,vars:2,consts:[[1,"row","my-10","ms-2"],[1,"col-md-2"],[1,"notes","text-muted"],["href","https://support.dealpos.com/en/articles/8278008-sensitive-field-roles-configuration-for-contacts","target","_blank"],[1,"col-md-10"],[1,"row"],[1,"col-6"],["appearance","outline",1,"w-100"],[1,"fs-4"],["placeholder","Product","multiple","",3,"ngModelChange","ngModel"],[3,"value"],["placeholder","Contact","multiple","",3,"ngModelChange","ngModel"]],template:function(e,i){if(e&1&&(o(0,"div",0)(1,"div",1)(2,"h5"),r(3,"Sensitive Field"),a(),o(4,"i",2),r(5,"When you mark a property as sensitive, the property value cannot be viewed to users without 'sensitive field' role. Please refer this "),o(6,"a",3),r(7,"Article"),a(),r(8," for more information"),a()(),o(9,"div",4)(10,"div",5)(11,"div",6)(12,"mat-form-field",7)(13,"mat-label")(14,"span",8),r(15,"Product"),a()(),o(16,"mat-select",9),c("ngModelChange",function(n){return i.onProductsChange(n)}),P(17,ae,2,2,"mat-option",10,w),a()()(),o(19,"div",6)(20,"mat-form-field",7)(21,"mat-label")(22,"span",8),r(23,"Contact"),a()(),o(24,"mat-select",11),c("ngModelChange",function(n){return i.onContactsChange(n)}),P(25,re,2,2,"mat-option",10,w),a()()()()()()),e&2){let t,n;l(16),p("ngModel",i.products()),l(),F((t=i.options())==null?null:t.Product),l(7),p("ngModel",i.contacts()),l(),F((n=i.options())==null?null:n.Customer)}},dependencies:[h,Q,z,q,K,G,J,b,v,k],encapsulation:2})};function se(s,m){if(s&1){let e=N();o(0,"mainpanel-cmp",1)(1,"actions")(2,"button",2),c("click",function(){u(e);let t=d();return f(t.onSubmit("Setup/Configuration/SubmitSensitiveFieldConfigurationV2"))}),r(3," Save "),a()(),o(4,"content")(5,"div",3)(6,"ul",4)(7,"li",5)(8,"button",6),r(9," Objects "),a()(),o(10,"li",5)(11,"button",7),r(12," Masking "),a()()(),o(13,"div",8)(14,"div",9)(15,"masking-options",10),V("productsChange",function(t){u(e);let n=d();return _(n.data.Form.Product,t)||(n.data.Form.Product=t),f(t)})("contactsChange",function(t){u(e);let n=d();return _(n.data.Form.Customer,t)||(n.data.Form.Customer=t),f(t)}),a()(),o(16,"div",11)(17,"masking-config",12),V("stringPrefixMaskChange",function(t){u(e);let n=d();return _(n.data.Form.Masking.StringPrefixMaskVisibleCharacterLength,t)||(n.data.Form.Masking.StringPrefixMaskVisibleCharacterLength=t),f(t)})("stringSuffixMaskChange",function(t){u(e);let n=d();return _(n.data.Form.Masking.StringSuffixMaskVisibleCharacterLength,t)||(n.data.Form.Masking.StringSuffixMaskVisibleCharacterLength=t),f(t)}),a()()()()()()}if(s&2){let e=d();p("pageData",e.menuData)("hideSearchDropdown",!0)("hideSearchBox",!0),l(15),p("options",e.data.Options),E("products",e.data.Form.Product)("contacts",e.data.Form.Customer),l(2),E("stringPrefixMask",e.data.Form.Masking.StringPrefixMaskVisibleCharacterLength)("stringSuffixMask",e.data.Form.Masking.StringSuffixMaskVisibleCharacterLength)}}var ne=class s extends ee{constructor(e,i,t,n){super(e,i,"Setup/ConfigurationLoader/SensitiveFieldConfigurationV2",t);this.httpService=i;this.activatedRoute=t;this.toaster=n}onSubmitSuccess(e){e?.MessageWarning?this.toaster.warning(e.MessageWarning,D.Warning):this.toaster.success("Config has been updated succesfully!",D.Success)}static \u0275fac=function(i){return new(i||s)(S(Y),S(R),S(L),S(B))};static \u0275cmp=M({type:s,selectors:[["app-sensitive-field"]],features:[I],decls:1,vars:1,consts:[[3,"pageData","hideSearchDropdown","hideSearchBox",4,"ngIf"],[3,"pageData","hideSearchDropdown","hideSearchBox"],["type","button","role","button",1,"btn","btn-success",3,"click"],[1,"container-fluid","py-5","bg-light-white"],["id","myTab","role","tablist",1,"nav","nav-tabs"],[1,"nav-item"],["id","masking-options-tab","data-bs-toggle","tab","data-bs-target","#masking-options","role","tab","aria-controls","masking-options","aria-selected","true",1,"nav-link","active"],["id","masking-tab","data-bs-toggle","tab","data-bs-target","#masking","role","tab","aria-controls","masking","aria-selected","false",1,"nav-link"],["id","myTabContent",1,"tab-content","border-top-0","bg-white"],["id","masking-options","aria-labelledby","masking-options-tab","role","tabpanel",1,"tab-pane","fade","mt-0","p-7","show","active"],[3,"productsChange","contactsChange","options","products","contacts"],["id","masking","aria-labelledby","masking-tab","role","tabpanel",1,"tab-pane","fade","mt-0","p-7"],[3,"stringPrefixMaskChange","stringSuffixMaskChange","stringPrefixMask","stringSuffixMask"]],template:function(i,t){i&1&&O(0,se,18,8,"mainpanel-cmp",0),i&2&&p("ngIf",t.formData)},dependencies:[h,W,$,Z,x,y],encapsulation:2})};export{ne as a};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{P as b}from"./chunk-
|
|
1
|
+
import{P as b}from"./chunk-L2RZWAX3.js";import{a as m}from"./chunk-2FWFPV5I.js";import{a as u}from"./chunk-W7HVLC6V.js";import{Vd as d,Yd as h,ja as n,na as c}from"./chunk-DZT5XHBQ.js";import{j as l}from"./chunk-7DCB7DB2.js";var p=class a{constructor(){}copy(t){return new Promise((o,r)=>{try{if(navigator.clipboard)navigator.clipboard.writeText(t).then(o,r);else{let e=document.createElement("textarea");e.value=t,e.style.position="fixed",document.body.appendChild(e),e.focus(),e.select();try{document.execCommand("copy")?o():r(new Error("Failed to copy with execCommand"))}catch(i){r(i)}finally{document.body.removeChild(e)}}}catch(e){r(e)}})}static \u0275fac=function(o){return new(o||a)};static \u0275prov=n({token:a,factory:a.\u0275fac,providedIn:"root"})};var y=class a{toastr=c(d);httpService=c(h);copyToClipBoard=c(p);createCustomerFromNewNumberAndSendReceipt(t,o,r,e,i){r==0?this.httpService.post(b.CreateCustomerInvoice,{InvoiceID:e.ObjectID,Mobile:t}).subscribe(s=>l(this,null,function*(){this.toastr.success(s.Message,m.Success),yield this.sendReceiptToWhatsapp(t,e,o,i)})):this.toastr.info("WABA is not supported yet",m.Info)}createWhatsappReceipt(t,o,r){let e=I=>new Intl.NumberFormat("id-ID",{style:"currency",currency:"IDR"}).format(I).replace("Rp","").trim().split(",00")?.[0],i=JSON.parse(localStorage.getItem("AccountInfo"))?.BrandName,{ObjectID:s,Final:g,InvoiceNumber:f}=t,v=window.location.host,w=`https://receipt.dealpos.app/s?Data=${window.btoa(`${s}_${v}`)}`;return this.convertWhatsappTemplateMessage({Amount:e(g),Brand:i,Currency:o,Number:f,ReceiptLink:w},r)}convertWhatsappTemplateMessage(t,o){let r=o||u?.whatsappTemplateMessage,e=["Brand","Number","Currency","Amount","ReceiptLink"],i=r;return e.forEach(s=>i=i.replace(`{${s}}`,t[s])),i}redirectToWhatsapp(t,o){let r=t;r=r[0]==="0"?`62${r.slice(1)}`:r;let e=`whatsapp://send?phone=${r}&text=${encodeURIComponent(o)}`;window.location.href=e,this.showToastrWhatsappNoInstalled()}showToastrWhatsappNoInstalled(){let t=!1;window.onblur=function(){t=!0},setTimeout(()=>{t||this.toastr.warning(`Currently, sending an e-receipt automatically opens WhatsApp Desktop, provided the device has the app installed
|
|
2
2
|
`,"WhatsApp not installed")},2e3)}copyToClipboard(t){return new Promise((o,r)=>this.copyToClipBoard.copy(t).then(()=>{this.toastr.info("Message copied to clipboard. If WhatsApp doesn't show the message, please paste it manually.","Receipt Ready",{timeOut:8e3}),o("Copied to clipboard")}).catch(e=>{console.log(e),this.toastr.warning("Could not copy message to clipboard","Clipboard Error",{timeOut:8e3}),r(e)}))}sendReceiptToWhatsapp(t,o,r,e){return l(this,null,function*(){try{let i=this.createWhatsappReceipt(o,r,e);try{yield this.copyToClipboard(i)}finally{this.redirectToWhatsapp(t,i)}}catch(i){console.warn(i),this.toastr.error("Failed to send receipt")}})}static \u0275fac=function(o){return new(o||a)};static \u0275prov=n({token:a,factory:a.\u0275fac})};export{y as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as de}from"./chunk-
|
|
1
|
+
import{a as de}from"./chunk-RYONOB6O.js";import{h as me,i as se}from"./chunk-MERQX2AF.js";import"./chunk-4E4L6WXO.js";import{b as le}from"./chunk-DHQUQTIV.js";import"./chunk-AZT6QE56.js";import"./chunk-5UL73W4S.js";import{u as ae,v as ne,w as re}from"./chunk-677WPFLK.js";import"./chunk-CIBQBSM6.js";import"./chunk-L2RZWAX3.js";import{e as te,f as ie,g as oe}from"./chunk-D35OBUDE.js";import"./chunk-567HXZXC.js";import"./chunk-AAJJTF33.js";import{a as ee}from"./chunk-2FWFPV5I.js";import"./chunk-3PYW74LR.js";import{C as X,D as Z,c as G,h as z,o as J,y as Q}from"./chunk-P7HKWFZT.js";import"./chunk-HSQKKFE6.js";import"./chunk-7BDVBLHM.js";import{a as W}from"./chunk-AHCRE4GP.js";import"./chunk-W7HVLC6V.js";import{$a as m,Ac as B,Db as F,E as A,Ib as o,Jb as a,Kb as w,Lb as T,Ma as Y,Mb as g,Ob as y,Od as H,Qb as _,Rb as u,Vd as q,Wc as U,Yc as j,Yd as $,Zc as v,db as f,dc as O,ec as r,fc as R,gc as x,gd as K,jc as E,jd as h,kb as b,kc as M,lc as P,ob as L,qb as S,rc as D,va as d,vb as c,wa as p,zc as k}from"./chunk-DZT5XHBQ.js";import"./chunk-7DCB7DB2.js";var I=(s=>(s.TRANSACTIONS="TRANSACTIONS",s.PRODUCTS="PRODUCTS",s.CONTACTS="CONTACTS",s.LOYALTY_POINTS="LOYALTY_POINTS",s.RECYCLE_BIN="RECYCLE_BIN",s.INVENTORY="INVENTORY",s))(I||{});function _e(n,l){if(n&1&&(T(0),o(1,"div",4)(2,"div",5)(3,"div",16),w(4,"i",17),o(5,"span"),r(6),a()()()(),g()),n&2){let i=u();m(6),x(" ",i.selectedClearData.message," ")}}function Se(n,l){n&1&&(T(0),o(1,"small",18),r(2," *Subdomain is required "),a(),g())}function Te(n,l){n&1&&(T(0),o(1,"small",18),r(2," *Password is required "),a(),g())}function ge(n,l){n&1&&w(0,"i",14)}function be(n,l){n&1&&w(0,"i",15)}var N=class n{constructor(l,i,t){this.data=l;this.dialogRef=i;this.fb=t;this.modalConfig.title=this.modalTitle[this.data.type],this.subdomain="",this.subdomainPlaceholder=l.subDomain}clearData=[{type:"TRANSACTIONS",api:"Setup/Data/ClearTransaction",message:"Your Invoice, Bill, Adjustment, TransferOrder will be deleted"},{type:"PRODUCTS",api:"Setup/Data/ClearProduct",message:"Your Category, Product and Variant will be deleted"},{type:"LOYALTY_POINTS",api:"Setup/Data/ClearLoyaltyPoint"},{type:"RECYCLE_BIN",api:"Setup/Data/ClearRecycleBin"},{type:"INVENTORY",api:"Setup/Data/ClearInventory",message:"Your Product Inventory will be set to 0"},{type:"CONTACTS",api:"Setup/Data/ClearContact",message:"Your Customer, Supplier and Sales Person will be deleted"}];selectedClearData;modalConfig=new ae;modalTitle={TRANSACTIONS:"Clear Transactions",PRODUCTS:"Clear Products",LOYALTY_POINTS:"Clear Loyalty Points",RECYCLE_BIN:"Clear Recycle Bin",CONTACTS:"Clear Contacts",INVENTORY:"Clear Inventory"};subdomain;subdomainPlaceholder;password;form;passwordVisibility=Y(!1);ngOnInit(){this.initSelectedClearData(),this.form=this.fb.group({subdomain:[""],password:[""]})}initSelectedClearData(){this.selectedClearData=this.clearData.find(l=>l.type===this.data.type)}onSubmit(){let l={password:this.password,subdomain:this.subdomain,apiUrl:this.selectedClearData.api};this.dialogRef.close(l)}static \u0275fac=function(i){return new(i||n)(f(ie),f(te),f(X))};static \u0275cmp=b({type:n,selectors:[["app-confirmation-modal"]],decls:24,vars:10,consts:[["subdomainCtrl","ngModel"],["passwordCtrl","ngModel"],[3,"onOk","onClose","onCancel","config","dynamicValidated"],[4,"ngIf"],[1,"row"],[1,"col-12"],[1,"form-floating-outline","mt-5"],["type","text","id","subdomain","placeholder","Subdomain","name","subdomain","autofocus","","required","",1,"form-control",3,"ngModelChange","ngModel"],["for","subdomain"],[1,"form-floating-outline"],["id","pass","placeholder","Password","name","password","required","",1,"form-control",3,"ngModelChange","type","ngModel"],["for","pass"],[1,"password-visibility"],["type","button",1,"btn","btn-link",3,"click"],[1,"fa-solid","fa-eye"],[1,"fa-solid","fa-eye-slash"],[1,"alert","alert-warning","cursor","w-100"],[1,"fa-solid","fa-circle-exclamation","me-2"],[1,"control-label","text-danger"]],template:function(i,t){if(i&1){let e=y();o(0,"modal-material",2),_("onOk",function(){return d(e),p(t.onSubmit())})("onClose",function(){return d(e),p(t.dialogRef.close())})("onCancel",function(){return d(e),p(t.dialogRef.close())}),o(1,"content"),S(2,_e,7,1,"ng-container",3),o(3,"div",4)(4,"div",5)(5,"strong"),r(6),a(),o(7,"div",6)(8,"input",7,0),P("ngModelChange",function(s){return d(e),M(t.subdomain,s)||(t.subdomain=s),p(s)}),a(),o(10,"label",8),r(11,"Subdomain"),a(),S(12,Se,3,0,"ng-container",3),a()(),o(13,"div",5)(14,"div",9)(15,"input",10,1),P("ngModelChange",function(s){return d(e),M(t.password,s)||(t.password=s),p(s)}),a(),o(17,"label",11),r(18,"Password"),a(),S(19,Te,3,0,"ng-container",3),o(20,"div",12)(21,"button",13),_("click",function(){return d(e),p(t.passwordVisibility.set(!t.passwordVisibility()))}),S(22,ge,1,0,"i",14)(23,be,1,0,"i",15),a()()()()()()()}if(i&2){let e=O(9),C=O(16);c("config",t.modalConfig)("dynamicValidated",t.password&&t.subdomain),m(2),c("ngIf",t.selectedClearData.message),m(4),x("Enter the following subdomain to confirm: ",t.subdomainPlaceholder,""),m(2),E("ngModel",t.subdomain),m(4),c("ngIf",e.invalid&&(e.dirty||e.touched)),m(3),c("type",t.passwordVisibility()?"text":"password"),E("ngModel",t.password),m(4),c("ngIf",C.invalid&&(C.dirty||C.touched)),m(3),F(t.passwordVisibility()?22:23)}},dependencies:[h,v,re,ne,Z,G,z,Q,J],styles:[".password-visibility[_ngcontent-%COMP%]{position:absolute;right:0;top:50%;transform:translateY(-50%);cursor:pointer;font-size:1.5rem}"]})};var V=n=>({"border border-0":n});function we(n,l){if(n&1&&(T(0),o(1,"tr",23)(2,"td",23),r(3),a(),o(4,"td",24),r(5),k(6,"number"),a()(),g()),n&2){let i=l.$implicit,t=l.index,e=u(2);m(),c("ngClass",D(7,V,t==e.data.Data.length-1)),m(),c("ngClass",D(9,V,t==e.data.Data.length-1)),m(),R(i.Key),m(),c("ngClass",D(11,V,t==e.data.Data.length-1)),m(),R(B(6,5,i.Value))}}function ye(n,l){if(n&1){let i=y();o(0,"mainpanel-cmp",1)(1,"actions")(2,"div",2)(3,"div",3)(4,"button",4),r(5," Format Data "),a(),o(6,"ul",5)(7,"li")(8,"a",6),_("click",function(){d(i);let e=u();return p(e.onClearRecord(e.clearDataType.TRANSACTIONS))}),r(9," 1. Clear Transactions "),a()(),o(10,"li")(11,"a",7),_("click",function(){d(i);let e=u();return p(e.onClearRecord(e.clearDataType.INVENTORY))}),r(12," 2. Clear Inventory "),a()(),o(13,"li")(14,"a",8),_("click",function(){d(i);let e=u();return p(e.onClearRecord(e.clearDataType.PRODUCTS))}),r(15," 3. Clear Products "),a()(),o(16,"li")(17,"a",9),_("click",function(){d(i);let e=u();return p(e.onClearRecord(e.clearDataType.CONTACTS))}),r(18," 4. Clear Contacts "),a()(),o(19,"li")(20,"a",10),_("click",function(){d(i);let e=u();return p(e.onClearRecord(e.clearDataType.LOYALTY_POINTS))}),r(21," 5. Clear Loyalty Point "),a()(),o(22,"li")(23,"a",11),_("click",function(){d(i);let e=u();return p(e.onClearRecord(e.clearDataType.RECYCLE_BIN))}),r(24," 6. Clear Recycle Bin "),a()()()()()(),o(25,"content")(26,"div",12)(27,"div",13)(28,"div",14)(29,"h5"),r(30,"Database Records"),a(),o(31,"i"),r(32,"Current data count"),a()(),o(33,"div",15)(34,"div",16)(35,"div",17)(36,"table",18)(37,"thead",19)(38,"tr",20)(39,"th"),r(40,"Table"),a(),o(41,"th",21),r(42,"Rows"),a()()(),o(43,"tbody"),S(44,we,7,13,"ng-container",22),a()()()()()()()()()}if(n&2){let i=u();c("pageData",i.menuData)("hideSearchDropdown",!0)("hideSearchBox",!0),m(44),c("ngForOf",i.data.Data)}}var pe=class n extends de{constructor(i,t,e,C,s){super(i,t,"Setup/DataLoader/clearformatdata",e);this.httpService=t;this.activatedRoute=e;this.toaster=C;this.dialog=s}clearDataType=I;onClearRecord(i){this.dialog.open(N,{data:{type:i,subDomain:this.data.SubDomain}}).afterClosed().pipe(A(t=>W.IsNotEmpty(t))).subscribe(t=>{this.formData={Subdomain:t.subdomain,Password:t.password},this.onSubmit(t.apiUrl),i=="PRODUCTS"?this.data.Data.find(e=>e.Key=="Product").Value=0:i=="CONTACTS"?this.data.Data.find(e=>e.Key=="Customer").Value=0:i=="INVENTORY"?this.data.Data.find(e=>e.Key=="ItemTransfer").Value=0:i=="LOYALTY_POINTS"?this.data.Data.find(e=>e.Key=="JournalHeader").Value=0:i=="RECYCLE_BIN"?this.data.Data.find(e=>e.Key=="Recycle Bin").Value=0:i=="TRANSACTIONS"&&(this.data.Data.find(e=>e.Key=="SalesOrder").Value=0)})}onSubmitSuccess(i){this.toaster.success(i.Message,ee.Success)}static \u0275fac=function(t){return new(t||n)(f(le),f($),f(H),f(q),f(oe))};static \u0275cmp=b({type:n,selectors:[["POS-format-data"]],features:[L],decls:1,vars:1,consts:[[3,"pageData","hideSearchDropdown","hideSearchBox",4,"ngIf"],[3,"pageData","hideSearchDropdown","hideSearchBox"],[1,"d-flex"],[1,"dropdown"],["type","button","data-bs-toggle","dropdown","aria-expanded","false","confirm-message","Are you sure you want to clear the record?",1,"btn","btn-outline-secondary","dropdown-toggle"],[1,"dropdown-menu","dropdown-menu-end"],["role","button","matTooltipPosition","above","matTooltip","Clear Transaction",1,"dropdown-item",3,"click"],["role","button","matTooltipPosition","above","matTooltip","Clear Inventory",1,"dropdown-item",3,"click"],["role","button","matTooltipPosition","above","matTooltip","Clear Products",1,"dropdown-item",3,"click"],["role","button","matTooltipPosition","above","matTooltip","Clear Contacts",1,"dropdown-item",3,"click"],["role","button","matTooltipPosition","above","matTooltip","Clear Loyalty Point",1,"dropdown-item",3,"click"],["role","button","matTooltipPosition","above","matTooltip","Clear Recycle Bin",1,"dropdown-item",3,"click"],[1,"container","pt-3"],[1,"row","border-bottom","mt-10","ms-2"],[1,"col-sm-2"],[1,"col-sm-10"],[1,"row"],[1,"col-md-12"],["id","tableGrid",1,"table",2,"width","250px"],[1,"thead-light","sticky-top-thead"],[1,"header"],[1,"text-end"],[4,"ngFor","ngForOf"],[3,"ngClass"],[1,"text-end",3,"ngClass"]],template:function(t,e){t&1&&S(0,ye,45,4,"mainpanel-cmp",0),t&2&&c("ngIf",e.formData)},dependencies:[h,U,j,v,K,se,me],encapsulation:2})};export{pe as FormatDataComponent};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as Q,c as U}from"./chunk-
|
|
1
|
+
import{b as Q,c as U}from"./chunk-ZR4YNJBZ.js";import{u as Y,v as Z,w as ee}from"./chunk-677WPFLK.js";import{b as J,c as K}from"./chunk-CIBQBSM6.js";import{e as W,f as X}from"./chunk-D35OBUDE.js";import{D as q}from"./chunk-P7HKWFZT.js";import{a as G}from"./chunk-AHCRE4GP.js";import{$a as a,Ac as x,Db as N,Eb as C,Gb as h,Hb as b,Ib as l,Jb as r,Ka as F,Kb as f,Lb as R,Ma as c,Mb as B,Ob as j,Qb as y,Rb as s,Va as O,Wc as A,Zc as H,db as d,ec as m,fb as k,fc as g,gc as I,gd as L,jd as M,kb as _,mb as w,na as V,nb as S,qb as u,rc as $,sc as z,va as E,vb as p,wa as P,zb as v,zc as T}from"./chunk-DZT5XHBQ.js";function ae(t,o){if(t&1&&(l(0,"th"),m(1),r()),t&2){let e=o.$implicit;a(),g(e)}}function le(t,o){if(t&1&&(l(0,"td"),m(1),r()),t&2){let e=o.$implicit,i=s().$implicit;a(),g(i[e])}}function re(t,o){if(t&1&&(l(0,"small",5),m(1),r()),t&2){let e=s(2);a(),I("(",e.actionTitle(),")")}}function pe(t,o){if(t&1){let e=j();l(0,"tr")(1,"td")(2,"mat-radio-button",4),y("change",function(){let n=E(e).$implicit,oe=s();return P(oe.selectedId.set(n.ID))}),r()(),h(3,le,2,1,"td",null,C),l(5,"td"),u(6,re,2,1,"small",5),r()()}if(t&2){let e=o.$implicit,i=s();a(2),p("id",e.ID)("checked",i.selectedId()==e.ID)("name",e.ID)("value",e.ID),a(),b(i.columns()),a(3),N(i.selectedId()!=e.ID?6:-1)}}var te=class t{constructor(o){this.dialogData=o;this.data.set(o.data),this.columns.set(o.columns),this.selectedId.set(this.data()[0]?.ID),this.actionTitle.set(o.actionTitle?o.actionTitle:"Deleted"),this.config.title=o.title,this.config.bodyScrollable=!0}dialogRef=V(W);config=new Y;selectedId=c(null);data=c([]);actionTitle=c("Deleted");columns=c([]);onOk(){let o=this.data()?.filter(i=>i.ID!==this.selectedId())?.map(i=>i.ID),e={mergeTarget:this.selectedId(),deleted:o};this.dialogRef.close(e)}onClose(){this.dialogRef.close(!1)}static \u0275fac=function(e){return new(e||t)(d(X))};static \u0275cmp=_({type:t,selectors:[["app-merge-dialog"]],decls:12,vars:2,consts:[[3,"onOk","onCancel","onClose","config","dynamicValidated"],[1,"table"],[1,"thead-light"],[2,"width","5px"],["color","primary",3,"change","id","checked","name","value"],[1,"fst-italic","ms-2","text-danger"]],template:function(e,i){e&1&&(l(0,"modal-material",0),y("onOk",function(){return i.onOk()})("onCancel",function(){return i.onClose()})("onClose",function(){return i.onClose()}),l(1,"content")(2,"table",1)(3,"thead",2)(4,"tr"),f(5,"th",3),h(6,ae,2,1,"th",null,C),f(8,"th"),r()(),l(9,"tbody"),h(10,pe,7,5,"tr",null,C),r()()()()),e&2&&(p("config",i.config)("dynamicValidated",i.selectedId()),a(6),b(i.columns()),a(4),b(i.data()))},dependencies:[M,ee,Z,U,Q,q],styles:[".radio-group[_ngcontent-%COMP%]{display:flex;flex-direction:column;margin:15px 0;align-items:flex-start}.radio-button[_ngcontent-%COMP%]{margin:5px}"]})};var ie=(()=>{class t{transform(e){return typeof e=="number"&&(e=e.toString()),e!=null?e.replace(/\n/g,"<br />"):e}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275pipe=S({name:"newlines",type:t,pure:!0})}}return t})();var se=t=>({disabled:t}),me=(t,o)=>({labelFilledInput:t,labelEmptyInput:o});function ce(t,o){if(t&1&&(l(0,"p"),m(1),T(2,"number"),r()),t&2){let e=s();a(),g(e.inputValueType()==="number"?x(2,1,e.inputValue):e.inputValue)}}function de(t,o){if(t&1&&(f(0,"p",3),T(1,"newlines")),t&2){let e=s();p("innerHTML",x(1,1,e.inputValue),O)}}function ue(t,o){if(t&1&&(R(0),m(1),B()),t&2){let e=s();a(),I(" ",e.labelValue," ")}}var ne=(()=>{class t{constructor(){this.inputValue="",this.labelValue="",this.inputType="input",this.labelVisible=!0,this.disabled=!1,this.class="mb-6",this.tooltip="",this.isInputFilled=!1,this.isNotEmpty=G.IsNotEmpty}inputValueType(){return typeof this.inputValue}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=_({type:t,selectors:[["lib-info-page-input"]],inputs:{inputValue:"inputValue",labelValue:"labelValue",inputType:"inputType",labelVisible:"labelVisible",disabled:"disabled",class:"class",tooltip:"tooltip"},decls:5,vars:14,consts:[["matTooltipPosition","above",3,"ngClass","matTooltip"],[4,"ngIf"],[3,"innerHTML",4,"ngIf"],[3,"innerHTML"]],template:function(i,n){i&1&&(l(0,"div",0),u(1,ce,3,3,"p",1)(2,de,2,3,"p",2),l(3,"label"),u(4,ue,2,1,"ng-container",1),r()()),i&2&&(v(n.class),p("ngClass",$(9,se,n.disabled))("matTooltip",n.tooltip),a(),p("ngIf",n.isNotEmpty(n.inputValue)&&n.inputType=="input"),a(),p("ngIf",n.isNotEmpty(n.inputValue)&&n.inputType=="textarea"),a(),v(z(11,me,n.isNotEmpty(n.inputValue),!n.isNotEmpty(n.inputValue))),a(),p("ngIf",n.labelVisible))},dependencies:[M,A,H,L,ie,K,J],styles:["div[_ngcontent-%COMP%]{border:1px solid #ced4da;position:relative;margin-bottom:1rem;border-radius:.25rem!important}p[_ngcontent-%COMP%]{margin-top:18px;margin-bottom:18px;padding-left:.75rem!important;font-size:.875rem}.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}"]})}}return t})();var Re=(()=>{class t{constructor(e,i){this.vcr=e,this.elementRef=i,this.type="input",this.label="",this.value="",this.isMasked=!1}ngOnInit(){let e=this.elementRef.nativeElement;if(e.firstChild&&this.isMasked){for(;e.firstChild;)e.removeChild(e.firstChild);let i=this.vcr.createComponent(ne);i.instance.inputType=this.type,i.instance.inputValue=this.value,i.instance.labelValue=this.label,i.instance.tooltip="This Value is sensitive, Please contact your administrator if you need to view this!",i.instance.disabled=!0;let n=this.elementRef.nativeElement;n.insertBefore(i.location.nativeElement,n.firstChild)}}static{this.\u0275fac=function(i){return new(i||t)(d(k),d(F))}}static{this.\u0275dir=w({type:t,selectors:[["","pOSFormOrFloatingOnMasked",""]],inputs:{type:"type",label:"label",value:"value",isMasked:"isMasked"}})}}return t})();export{te as a,Re as b};
|