dealpos 25.36.2 → 25.36.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-UBFPWZKK.js → chunk-2BJ64H7R.js} +1 -1
- package/browser/{chunk-MIUDUL5O.js → chunk-2LKOMKF7.js} +1 -1
- package/browser/{chunk-6WVUJYF7.js → chunk-2P7A5QSW.js} +1 -1
- package/browser/{chunk-WN5WLSWK.js → chunk-2WELHORE.js} +12 -12
- package/browser/{chunk-HTXNZ5OH.js → chunk-36TT3WJZ.js} +2 -2
- package/browser/{chunk-RTD4PUTS.js → chunk-3AEZZSNR.js} +1 -1
- package/browser/{chunk-VCINTCFP.js → chunk-3K4NHIJV.js} +1 -1
- package/browser/{chunk-NFTUD5LZ.js → chunk-4KJQEYIR.js} +1 -1
- package/browser/{chunk-3BWRE4P6.js → chunk-4OMZQ5HK.js} +1 -1
- package/browser/{chunk-4WIPVW4V.js → chunk-64PRCTR2.js} +1 -1
- package/browser/{chunk-446SIVDN.js → chunk-6Z7ZGTB4.js} +1 -1
- package/browser/{chunk-SEJO3YK3.js → chunk-7F6H3VFX.js} +1 -1
- package/browser/{chunk-55VMNRO2.js → chunk-7FRXJGU7.js} +1 -1
- package/browser/{chunk-FTG6OSPJ.js → chunk-7HX2ZEHC.js} +1 -1
- package/browser/{chunk-WYTXXYFH.js → chunk-A3OULNF5.js} +1 -1
- package/browser/{chunk-KKQ3PBCF.js → chunk-A4K4RDXW.js} +1 -1
- package/browser/{chunk-FWSWIKNJ.js → chunk-AOAAVKWR.js} +1 -1
- package/browser/{chunk-7DIY4CBI.js → chunk-C7EZEQZQ.js} +1 -1
- package/browser/{chunk-NQEHGV4G.js → chunk-CURXE4WR.js} +1 -1
- package/browser/{chunk-JHNH2AF7.js → chunk-DJHIHS3W.js} +1 -1
- package/browser/{chunk-M5255JXQ.js → chunk-DQXE767S.js} +1 -1
- package/browser/{chunk-ZDEUKETL.js → chunk-EIHAMJHD.js} +1 -1
- package/browser/{chunk-KI3VDGWO.js → chunk-GHYJCSNA.js} +1 -1
- package/browser/{chunk-72CYGG3F.js → chunk-GM7AHKLZ.js} +1 -1
- package/browser/{chunk-RPHXTGV4.js → chunk-HID7MO2S.js} +1 -1
- package/browser/{chunk-445MKY7P.js → chunk-I3JXGYPZ.js} +1 -1
- package/browser/{chunk-236T5WSU.js → chunk-IB3KMJOZ.js} +1 -1
- package/browser/{chunk-K3CBCNVT.js → chunk-IBTIOJOZ.js} +1 -1
- package/browser/{chunk-LEGX56U6.js → chunk-IPI25TWA.js} +1 -1
- package/browser/{chunk-5YNQL2WY.js → chunk-ITSEL53X.js} +1 -1
- package/browser/{chunk-JST7PLQM.js → chunk-JM6WDW37.js} +1 -1
- package/browser/{chunk-NKWIQ32C.js → chunk-JYTOIAQL.js} +1 -1
- package/browser/{chunk-STXBDXCJ.js → chunk-KRC5LE5H.js} +1 -1
- package/browser/{chunk-P6XHDVFD.js → chunk-L2GLJO5X.js} +1 -1
- package/browser/{chunk-LET3RO6U.js → chunk-LP2Z5VKX.js} +2 -2
- package/browser/{chunk-HNUM6CZZ.js → chunk-LQTBKFXH.js} +1 -1
- package/browser/{chunk-24BK4GZ2.js → chunk-LRSTQA5B.js} +1 -1
- package/browser/{chunk-UGTEWCC7.js → chunk-LVK7ESIU.js} +2 -2
- package/browser/{chunk-TMQHZ27I.js → chunk-M5PTO2R2.js} +1 -1
- package/browser/{chunk-75OXW5FF.js → chunk-N4OAT3FW.js} +1 -1
- package/browser/{chunk-5XPT5NMN.js → chunk-N7T6HUYA.js} +1 -1
- package/browser/{chunk-GPNQBF7Z.js → chunk-NFBE3ZMT.js} +1 -1
- package/browser/{chunk-CAHMIN3M.js → chunk-NH3OND33.js} +1 -1
- package/browser/{chunk-YCDAVU5S.js → chunk-NQ25BYIN.js} +1 -1
- package/browser/{chunk-XH75PP4O.js → chunk-NR54XPL4.js} +1 -1
- package/browser/{chunk-GWRTBYUS.js → chunk-NRWF3XBS.js} +1 -1
- package/browser/chunk-OG4QEJCU.js +1 -0
- package/browser/{chunk-RU6ZFZ7D.js → chunk-OLSVR34W.js} +1 -1
- package/browser/{chunk-AQUIB7DB.js → chunk-PTXDA5BK.js} +1 -1
- package/browser/{chunk-VWY6NDHT.js → chunk-PY6BNBHP.js} +1 -1
- package/browser/{chunk-OZAJEAR6.js → chunk-Q23EKNIO.js} +1 -1
- package/browser/{chunk-ADO2SKYQ.js → chunk-Q7GVJZBF.js} +1 -1
- package/browser/{chunk-GOS6KCY4.js → chunk-QYXTSGSR.js} +1 -1
- package/browser/{chunk-X33IUA3S.js → chunk-R3JXU6L4.js} +1 -1
- package/browser/{chunk-WWHY6YW5.js → chunk-RKIIOMW3.js} +1 -1
- package/browser/{chunk-XLVCNQHR.js → chunk-RQLTUOIG.js} +1 -1
- package/browser/{chunk-ZWSIMORT.js → chunk-RWHRX53O.js} +1 -1
- package/browser/{chunk-RDKRZMFS.js → chunk-TFRMAVDX.js} +1 -1
- package/browser/{chunk-JUFO6GHQ.js → chunk-UG37H4GU.js} +1 -1
- package/browser/{chunk-ND4SQ7JK.js → chunk-UJUI5ETY.js} +1 -1
- package/browser/{chunk-IRINITYM.js → chunk-UV6PSJXI.js} +1 -1
- package/browser/{chunk-OONLQN47.js → chunk-VP36G4HT.js} +1 -1
- package/browser/{chunk-K2ZWKEBA.js → chunk-WD3MA4MA.js} +1 -1
- package/browser/{chunk-AZU6HW5D.js → chunk-WSJHXTI4.js} +1 -1
- package/browser/{chunk-4E2SGUYD.js → chunk-WW5AU5JJ.js} +1 -1
- package/browser/{chunk-5DXZCDDX.js → chunk-X6IMSSTG.js} +2 -2
- package/browser/{chunk-GX4LLL35.js → chunk-XGHFDJFY.js} +1 -1
- package/browser/{chunk-EDH67DEI.js → chunk-XSZLLHRW.js} +1 -1
- package/browser/{chunk-4NZA4IG2.js → chunk-Y545FJCR.js} +1 -1
- package/browser/{chunk-5PMSCBJJ.js → chunk-YJSNPROE.js} +1 -1
- package/browser/{chunk-GWPSMBLW.js → chunk-YKXNLBIB.js} +2 -2
- package/browser/{chunk-MW7RJQ7L.js → chunk-YPF7BMPI.js} +1 -1
- package/browser/{chunk-ATIZNVIC.js → chunk-YUGYXJ5G.js} +1 -1
- package/browser/{chunk-AC66NWU7.js → chunk-YVBFA7MT.js} +1 -1
- package/browser/{chunk-INVGSUVG.js → chunk-ZY2QH5WA.js} +1 -1
- package/browser/{chunk-QWHALQ42.js → chunk-ZYVROOL4.js} +1 -1
- package/browser/index.html +2 -2
- package/browser/{main-SYCMIOD6.js → main-LFZKZ6WQ.js} +2 -2
- package/package.json +1 -1
- package/browser/chunk-A7VZLQPZ.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as O}from"./chunk-
|
|
1
|
+
import{a as O}from"./chunk-7F6H3VFX.js";import{u as A,v}from"./chunk-X6LIVARI.js";import{e as N,f as h}from"./chunk-D35OBUDE.js";import{a as y}from"./chunk-2FWFPV5I.js";import{h as _,o as C}from"./chunk-P7HKWFZT.js";import{a as u}from"./chunk-AHCRE4GP.js";import{$a as r,Ib as l,Jb as c,Qb as p,db as a,jc as f,kb as m,kc as g,lc as M,vb as s}from"./chunk-DZT5XHBQ.js";var T=class d{constructor(n,e){this.dialogRef=n;this.data=e;this.note=e,this.configModal=new A,this.configModal.headerType=y.Success,this.configModal.title="Note Invoice",this.configModal.customWidth="600px"}note;configModal;isNotEmpty(n){return u.IsNotEmpty(n)}onOk(){this.dialogRef.close(this.note)}static \u0275fac=function(e){return new(e||d)(a(N),a(h))};static \u0275cmp=m({type:d,selectors:[["POS-modal-add-note"]],standalone:!1,decls:6,vars:2,consts:[[3,"onOk","onCancel","onClose","config"],[1,"container-fluid","px-0"],[1,"row"],[1,"col-sm-12"],[3,"ngModelChange","ngModel"]],template:function(e,o){e&1&&(l(0,"modal-material",0),p("onOk",function(){return o.onOk()})("onCancel",function(){return o.dialogRef.close()})("onClose",function(){return o.dialogRef.close()}),l(1,"content")(2,"div",1)(3,"div",2)(4,"div",3)(5,"POS-tinymce-editor",4),M("ngModelChange",function(i){return g(o.note,i)||(o.note=i),i}),c()()()()()()),e&2&&(s("config",o.configModal),r(5),f("ngModel",o.note))},dependencies:[_,C,v,O],encapsulation:2})};export{T as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as X,b as Z}from"./chunk-JXKXAC3X.js";import{h as Q,i as W}from"./chunk-
|
|
1
|
+
import{a as X,b as Z}from"./chunk-JXKXAC3X.js";import{h as Q,i as W}from"./chunk-WSJHXTI4.js";import"./chunk-OLSVR34W.js";import{a as z,b as J}from"./chunk-YUGYXJ5G.js";import"./chunk-52EOLV7I.js";import"./chunk-5UL73W4S.js";import"./chunk-X6LIVARI.js";import"./chunk-CIBQBSM6.js";import{P as K}from"./chunk-5UCQBOD6.js";import"./chunk-D35OBUDE.js";import"./chunk-567HXZXC.js";import"./chunk-CGESXTHC.js";import"./chunk-2FWFPV5I.js";import"./chunk-TLOTIYIE.js";import"./chunk-P7HKWFZT.js";import"./chunk-N4OAT3FW.js";import"./chunk-IBTIOJOZ.js";import{d as Y}from"./chunk-AHCRE4GP.js";import"./chunk-KRC5LE5H.js";import{$a as i,Ac as H,Bc as _,Fc as w,Ib as a,Jb as o,Kb as c,Lb as C,Mb as v,Od as k,Rb as d,Rd as A,Td as G,Y as b,Yd as U,Zc as B,aa as M,cd as $,db as x,dc as R,ec as l,ed as q,fa as P,gc as s,jd as j,kb as D,mc as T,na as y,nc as O,ob as L,oc as f,qb as u,qc as N,rc as V,t as E,u as h,vb as r,zc as g}from"./chunk-DZT5XHBQ.js";import{a as S,b as F}from"./chunk-7DCB7DB2.js";var ne=()=>["/menu/Logistics/Setup/Courier/Form"],ie=t=>({ID:t});function oe(t,p){if(t&1&&(a(0,"a",18),c(1,"i",19),l(2,"Edit"),o()),t&2){d();let e=f(0);r("routerLink",N(2,ne))("queryParams",V(3,ie,e==null||e.Form==null?null:e.Form.ID))}}function re(t,p){if(t&1&&(C(0),l(1),v()),t&2){d(2);let e=f(0);i(),s(" / ",e.Form.Creator," ")}}function ae(t,p){if(t&1&&(C(0),l(1),g(2,"date"),u(3,re,2,1,"ng-container",20),v()),t&2){d();let e=f(0);i(),s(" ",_(2,2,e.Form.Created,"dd MMM yyyy HH:mm")," "),i(2),r("ngIf",e==null||e.Form==null?null:e.Form.Creator)}}function le(t,p){t&1&&l(0,"-")}function me(t,p){if(t&1&&(C(0),l(1),v()),t&2){d(2);let e=f(0);i(),s(" / ",e.Form.Modifier," ")}}function pe(t,p){if(t&1&&(a(0,"span",21)(1,"b"),l(2,"Modified:"),o(),l(3),g(4,"date"),u(5,me,2,1,"ng-container",20),o()),t&2){d();let e=f(0);i(3),s(" ",_(4,2,e==null||e.Form==null?null:e.Form.Modified,"dd MMM yyyy HH:mm")," "),i(2),r("ngIf",(e==null||e.Form==null?null:e.Form.Modified)&&(e==null||e.Form==null?null:e.Form.Modifier))}}var ee=class t extends z{constructor(e,m){super(e);this.pageSetupService=e;this.role=m;this.initCourierInfo()}httpService=y(U);activeRoute=y(k);courierInfo$;ngOnInit(){}initCourierInfo(){this.courierInfo$=h([this.menuData$,this.activeRoute.queryParams]).pipe(M(([e,m])=>this.httpService.get(`${K.GetCourierInfo}/${m.ID}`)),E(e=>{let m=e?.Form?.EntityName?e?.Form?.EntityName?.join(", "):"";return e.Form=F(S({},e.Form),{Entity:m}),e}),P(e=>{this.menuData.H=e?.PageTitle||"Courier Info"}),b(1))}static \u0275fac=function(m){return new(m||t)(x(J),x(Y))};static \u0275cmp=D({type:t,selectors:[["app-courier-info"]],features:[L],decls:33,vars:13,consts:[["createdDash",""],[3,"pageData","hideSearchBox","hideSearchDropdown"],["class","btn btn-outline-secondary me-3","role","button","matTooltipPosition","above","matTooltip","Edit",3,"routerLink","queryParams",4,"ngIf"],[1,"container-fluid","mt-5"],[1,"row"],[1,"col-sm-12"],[1,"card"],[1,"card-header"],[1,"card-body"],[1,"col-6"],[1,"form-floating-outline"],["labelValue","Name",3,"inputValue"],["labelValue","Suspend",3,"inputValue"],["labelValue","Outlets",3,"inputValue"],[1,"alert","alert-warning"],["aria-hidden","true",1,"fa","fa-file-text-o"],[4,"ngIf","ngIfElse"],["class","ms-3",4,"ngIf"],["role","button","matTooltipPosition","above","matTooltip","Edit",1,"btn","btn-outline-secondary","me-3",3,"routerLink","queryParams"],["aria-hidden","true",1,"fa-solid","fa-pen-to-square","me-3"],[4,"ngIf"],[1,"ms-3"]],template:function(m,I){if(m&1&&(T(0),g(1,"async"),a(2,"mainpanel-cmp",1)(3,"actions"),u(4,oe,3,5,"a",2),o(),a(5,"content")(6,"div",3)(7,"div",4)(8,"div",5)(9,"div",6)(10,"div",7)(11,"h3"),l(12,"General"),o()(),a(13,"div",8)(14,"div",4)(15,"div",9)(16,"div",10),c(17,"POS-info-page-input",11),o()(),a(18,"div",9)(19,"div",10),c(20,"POS-info-page-input",12),o()(),a(21,"div",9)(22,"div",10),c(23,"POS-info-page-input",13),o()()()()()()(),a(24,"div",14),c(25,"i",15),a(26,"span")(27,"b"),l(28,"Created: "),o(),u(29,ae,4,5,"ng-container",16)(30,le,1,0,"ng-template",null,0,w),o(),u(32,pe,6,5,"span",17),o()()()()),m&2){let te=R(31),n=O(H(1,10,I.courierInfo$));i(2),r("pageData",I.menuData)("hideSearchBox",!0)("hideSearchDropdown",!0),i(2),r("ngIf",I.role.logistic.Edit),i(13),r("inputValue",n==null||n.Form==null?null:n.Form.Name),i(3),r("inputValue",!(n==null||n.Form==null)&&n.Form.Bin?"Yes":"No"),i(3),r("inputValue",n==null||n.Form==null?null:n.Form.Entity),i(6),r("ngIf",n==null||n.Form==null?null:n.Form.Created)("ngIfElse",te),i(3),r("ngIf",n==null||n.Form==null?null:n.Form.Modified)}},dependencies:[j,B,$,q,W,Q,G,A,Z,X],encapsulation:2})};export{ee as CourierInfoComponent};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{D as g,a as p,h as $,o as Z}from"./chunk-P7HKWFZT.js";import{A as y,E as P,Fa as e,Ga as U,Ib as x,Ja as F,Jb as V,Ka as B,Kc as L,Pa as N,Qb as K,S as R,Y as I,aa as O,d as M,da as E,db as a,e as D,ia as d,jd as h,ka as l,kb as c,kd as G,la as A,lb as u,mb as T,ob as j,pc as m,t as _,tc as z,vb as k}from"./chunk-DZT5XHBQ.js";import{a as b,b as S}from"./chunk-7DCB7DB2.js";var f=()=>{let n=typeof window<"u"?window:void 0;return n&&n.tinymce?n.tinymce:null},te=(()=>{class n{onBeforePaste=new e;onBlur=new e;onClick=new e;onCompositionEnd=new e;onCompositionStart=new e;onCompositionUpdate=new e;onContextMenu=new e;onCopy=new e;onCut=new e;onDblclick=new e;onDrag=new e;onDragDrop=new e;onDragEnd=new e;onDragGesture=new e;onDragOver=new e;onDrop=new e;onFocus=new e;onFocusIn=new e;onFocusOut=new e;onKeyDown=new e;onKeyPress=new e;onKeyUp=new e;onMouseDown=new e;onMouseEnter=new e;onMouseLeave=new e;onMouseMove=new e;onMouseOut=new e;onMouseOver=new e;onMouseUp=new e;onPaste=new e;onSelectionChange=new e;onActivate=new e;onAddUndo=new e;onBeforeAddUndo=new e;onBeforeExecCommand=new e;onBeforeGetContent=new e;onBeforeRenderUI=new e;onBeforeSetContent=new e;onChange=new e;onClearUndos=new e;onDeactivate=new e;onDirty=new e;onExecCommand=new e;onGetContent=new e;onHide=new e;onInit=new e;onInput=new e;onInitNgModel=new e;onLoadContent=new e;onNodeChange=new e;onPostProcess=new e;onPostRender=new e;onPreInit=new e;onPreProcess=new e;onProgressState=new e;onRedo=new e;onRemove=new e;onReset=new e;onResizeEditor=new e;onSaveContent=new e;onSetAttrib=new e;onObjectResizeStart=new e;onObjectResized=new e;onObjectSelected=new e;onSetContent=new e;onShow=new e;onSubmit=new e;onUndo=new e;onVisualAid=new e;static \u0275fac=function(t){return new(t||n)};static \u0275dir=T({type:n,outputs:{onBeforePaste:"onBeforePaste",onBlur:"onBlur",onClick:"onClick",onCompositionEnd:"onCompositionEnd",onCompositionStart:"onCompositionStart",onCompositionUpdate:"onCompositionUpdate",onContextMenu:"onContextMenu",onCopy:"onCopy",onCut:"onCut",onDblclick:"onDblclick",onDrag:"onDrag",onDragDrop:"onDragDrop",onDragEnd:"onDragEnd",onDragGesture:"onDragGesture",onDragOver:"onDragOver",onDrop:"onDrop",onFocus:"onFocus",onFocusIn:"onFocusIn",onFocusOut:"onFocusOut",onKeyDown:"onKeyDown",onKeyPress:"onKeyPress",onKeyUp:"onKeyUp",onMouseDown:"onMouseDown",onMouseEnter:"onMouseEnter",onMouseLeave:"onMouseLeave",onMouseMove:"onMouseMove",onMouseOut:"onMouseOut",onMouseOver:"onMouseOver",onMouseUp:"onMouseUp",onPaste:"onPaste",onSelectionChange:"onSelectionChange",onActivate:"onActivate",onAddUndo:"onAddUndo",onBeforeAddUndo:"onBeforeAddUndo",onBeforeExecCommand:"onBeforeExecCommand",onBeforeGetContent:"onBeforeGetContent",onBeforeRenderUI:"onBeforeRenderUI",onBeforeSetContent:"onBeforeSetContent",onChange:"onChange",onClearUndos:"onClearUndos",onDeactivate:"onDeactivate",onDirty:"onDirty",onExecCommand:"onExecCommand",onGetContent:"onGetContent",onHide:"onHide",onInit:"onInit",onInput:"onInput",onInitNgModel:"onInitNgModel",onLoadContent:"onLoadContent",onNodeChange:"onNodeChange",onPostProcess:"onPostProcess",onPostRender:"onPostRender",onPreInit:"onPreInit",onPreProcess:"onPreProcess",onProgressState:"onProgressState",onRedo:"onRedo",onRemove:"onRemove",onReset:"onReset",onResizeEditor:"onResizeEditor",onSaveContent:"onSaveContent",onSetAttrib:"onSetAttrib",onObjectResizeStart:"onObjectResizeStart",onObjectResized:"onObjectResized",onObjectSelected:"onObjectSelected",onSetContent:"onSetContent",onShow:"onShow",onSubmit:"onSubmit",onUndo:"onUndo",onVisualAid:"onVisualAid"},standalone:!1})}return n})(),H=["onActivate","onAddUndo","onBeforeAddUndo","onBeforeExecCommand","onBeforeGetContent","onBeforeRenderUI","onBeforeSetContent","onBeforePaste","onBlur","onChange","onClearUndos","onClick","onCompositionEnd","onCompositionStart","onCompositionUpdate","onContextMenu","onCopy","onCut","onDblclick","onDeactivate","onDirty","onDrag","onDragDrop","onDragEnd","onDragGesture","onDragOver","onDrop","onExecCommand","onFocus","onFocusIn","onFocusOut","onGetContent","onHide","onInit","onInput","onKeyDown","onKeyPress","onKeyUp","onLoadContent","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onNodeChange","onObjectResizeStart","onObjectResized","onObjectSelected","onPaste","onPostProcess","onPostRender","onPreProcess","onProgressState","onRedo","onRemove","onReset","onResizeEditor","onSaveContent","onSelectionChange","onSetAttrib","onSetContent","onShow","onSubmit","onUndo","onVisualAid"],C=(n,i,o)=>y(n,i).pipe(E(o)),ie=(n,i,o)=>{se(n).forEach(s=>{let r=n[s];C(i,s.substring(2),o).subscribe(v=>{le(r)&&n.ngZone.run(()=>r.emit({event:v,editor:i}))})})},se=n=>{let i=Y(n.ignoreEvents,[]);return Y(n.allowedEvents,H).filter(t=>H.includes(t)&&!i.includes(t))},Y=(n,i)=>typeof n=="string"?n.split(",").map(o=>o.trim()):Array.isArray(n)?n:i,q=0,re=n=>{let o=new Date().getTime(),t=Math.floor(Math.random()*1e9);return q++,n+"_"+t+q+String(o)},J=n=>typeof n<"u"&&n.tagName.toLowerCase()==="textarea",Q=n=>typeof n>"u"||n===""?[]:Array.isArray(n)?n:n.split(" "),ae=(n,i)=>Q(n).concat(Q(i)),de=()=>{},W=n=>n==null,le=n=>n.observed||n.observers?.length>0,ce=()=>n=>n.pipe(R(),_(()=>{})),ue=()=>{let n=new D(null),i=n.pipe(P(Boolean),O(([o,t])=>{let s=o.createElement("script");return s.referrerPolicy="origin",s.type="application/javascript",s.src=t,o.head.appendChild(s),y(s,"load").pipe(ce())}),I({bufferSize:1,refCount:!0}));return{load:(...o)=>(n.getValue()||n.next(o),i),reinitialize:()=>{n.next(null)}}},me=ue(),he=new A("TINYMCE_SCRIPT_SRC"),pe={provide:p,useExisting:d(()=>w),multi:!0},w=(()=>{class n extends te{cdRef;platformId;tinymceScriptSrc;cloudChannel="7";apiKey="no-api-key";licenseKey;init;id="";initialValue;outputFormat;inline;tagName;plugins;toolbar;modelEvents="change input undo redo";allowedEvents;ignoreEvents;set disabled(o){this._disabled=o,this._editor&&this._editor.initialized&&(typeof this._editor.mode?.set=="function"?this._editor.mode.set(o?"readonly":"design"):this._editor.setMode(o?"readonly":"design"))}get disabled(){return this._disabled}get editor(){return this._editor}ngZone;_elementRef;_element;_disabled;_editor;onTouchedCallback=de;onChangeCallback;destroy$=new M;constructor(o,t,s,r,v){super(),this.cdRef=s,this.platformId=r,this.tinymceScriptSrc=v,this._elementRef=o,this.ngZone=t}writeValue(o){this._editor&&this._editor.initialized?this._editor.setContent(W(o)?"":o):this.initialValue=o===null?void 0:o}registerOnChange(o){this.onChangeCallback=o}registerOnTouched(o){this.onTouchedCallback=o}setDisabledState(o){this.disabled=o}ngAfterViewInit(){G(this.platformId)&&(this.id=this.id||re("tiny-angular"),this.inline=this.inline!==void 0?this.inline!==!1:!!this.init?.inline,this.createElement(),f()!==null?this.initialise():this._element&&this._element.ownerDocument&&me.load(this._element.ownerDocument,this.getScriptSrc()).pipe(E(this.destroy$)).subscribe(this.initialise))}ngOnDestroy(){this.destroy$.next(),f()!==null&&f().remove(this._editor)}createElement(){let o=typeof this.tagName=="string"?this.tagName:"div";if(this._element=document.createElement(this.inline?o:"textarea"),this._element){let t=document.getElementById(this.id);t&&t!==this._elementRef.nativeElement&&console.warn(`TinyMCE-Angular: an element with id [${this.id}] already exists. Editors with duplicate Id will not be able to mount`),this._element.id=this.id,J(this._element)&&(this._element.style.visibility="hidden"),this._elementRef.nativeElement.appendChild(this._element)}}initialise=()=>{let o=S(b({},this.init),{selector:void 0,target:this._element,inline:this.inline,readonly:this.disabled,license_key:this.licenseKey,plugins:ae(this.init&&this.init.plugins,this.plugins),toolbar:this.toolbar||this.init&&this.init.toolbar,setup:t=>{this._editor=t,C(t,"init",this.destroy$).subscribe(()=>{this.initEditor(t)}),ie(this,t,this.destroy$),this.init&&typeof this.init.setup=="function"&&this.init.setup(t)}});J(this._element)&&(this._element.style.visibility=""),this.ngZone.runOutsideAngular(()=>{f().init(o)})};getScriptSrc(){return W(this.tinymceScriptSrc)?`https://cdn.tiny.cloud/1/${this.apiKey}/tinymce/${this.cloudChannel}/tinymce.min.js`:this.tinymceScriptSrc}initEditor(o){C(o,"blur",this.destroy$).subscribe(()=>{this.cdRef.markForCheck(),this.ngZone.run(()=>this.onTouchedCallback())}),C(o,this.modelEvents,this.destroy$).subscribe(()=>{this.cdRef.markForCheck(),this.ngZone.run(()=>this.emitOnChange(o))}),typeof this.initialValue=="string"&&this.ngZone.run(()=>{o.setContent(this.initialValue),o.getContent()!==this.initialValue&&this.emitOnChange(o),this.onInitNgModel!==void 0&&this.onInitNgModel.emit(o)})}emitOnChange(o){this.onChangeCallback&&this.onChangeCallback(o.getContent({format:this.outputFormat}))}static \u0275fac=function(t){return new(t||n)(a(B),a(U),a(L),a(N),a(he,8))};static \u0275cmp=c({type:n,selectors:[["editor"]],inputs:{cloudChannel:"cloudChannel",apiKey:"apiKey",licenseKey:"licenseKey",init:"init",id:"id",initialValue:"initialValue",outputFormat:"outputFormat",inline:"inline",tagName:"tagName",plugins:"plugins",toolbar:"toolbar",modelEvents:"modelEvents",allowedEvents:"allowedEvents",ignoreEvents:"ignoreEvents",disabled:"disabled"},features:[m([pe]),j],decls:0,vars:0,template:function(t,s){},dependencies:[h,g],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}return n})(),X=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275mod=u({type:n});static \u0275inj=l({imports:[w]})}return n})();var fe=(n,i,o)=>({forced_root_block:"div",newline_behavior:"invert",height:n,menubar:!1,branding:!1,placeholder:i,paste_as_text:!0,toolbar:"bold italic | bullist numlist | outdent indent | alignleft aligncenter alignright alignjustify | table ",auto_focus:o}),ee=class n{placeholder;height="250px";disabled=!1;valueChange=new e;autoFocus=F(!1);plugins=localStorage.getItem("TinyMCEPlugins")??"";value="";onChange=()=>{};onTouched=()=>{};writeValue(i){this.value=i||""}registerOnChange(i){this.onChange=i}registerOnTouched(i){this.onTouched=i}setDisabledState(i){this.disabled=i}onEditorInput(i){this.value=i,this.valueChange.emit(i),this.onChange(i),this.onTouched()}static \u0275fac=function(o){return new(o||n)};static \u0275cmp=c({type:n,selectors:[["POS-tinymce-editor"]],inputs:{placeholder:"placeholder",height:"height",disabled:"disabled",autoFocus:[1,"autoFocus"]},outputs:{valueChange:"valueChange"},standalone:!1,features:[m([{provide:p,useExisting:d(()=>n),multi:!0}])],decls:1,vars:7,consts:[["id","tinyMceEditor",1,"form-control","p-0","border-0",3,"ngModelChange","init","plugins","ngModel"]],template:function(o,t){o&1&&(x(0,"editor",0),K("ngModelChange",function(r){return t.onEditorInput(r)}),V()),o&2&&k("init",z(3,fe,t.height,t.placeholder,t.autoFocus()?"tinyMceEditor":null))("plugins",t.plugins)("ngModel",t.value)},dependencies:[w,$,Z],encapsulation:2})},ne=class n{static \u0275fac=function(o){return new(o||n)};static \u0275mod=u({type:n});static \u0275inj=l({imports:[h,X,g]})};export{ee as a,ne as b};
|
|
1
|
+
import{D as g,a as p,h as $,o as Z}from"./chunk-P7HKWFZT.js";import{A as y,E as P,Fa as e,Ga as U,Ib as V,Ja as F,Jb as x,Ka as B,Kc as L,Pa as N,Qb as K,S as R,Y as I,aa as O,d as M,da as E,db as a,e as D,ia as d,jd as h,ka as l,kb as c,kd as G,la as A,lb as u,mb as T,ob as j,pc as m,t as _,tc as z,vb as k}from"./chunk-DZT5XHBQ.js";import{a as b,b as S}from"./chunk-7DCB7DB2.js";var f=()=>{let n=typeof window<"u"?window:void 0;return n&&n.tinymce?n.tinymce:null},te=(()=>{class n{onBeforePaste=new e;onBlur=new e;onClick=new e;onCompositionEnd=new e;onCompositionStart=new e;onCompositionUpdate=new e;onContextMenu=new e;onCopy=new e;onCut=new e;onDblclick=new e;onDrag=new e;onDragDrop=new e;onDragEnd=new e;onDragGesture=new e;onDragOver=new e;onDrop=new e;onFocus=new e;onFocusIn=new e;onFocusOut=new e;onKeyDown=new e;onKeyPress=new e;onKeyUp=new e;onMouseDown=new e;onMouseEnter=new e;onMouseLeave=new e;onMouseMove=new e;onMouseOut=new e;onMouseOver=new e;onMouseUp=new e;onPaste=new e;onSelectionChange=new e;onActivate=new e;onAddUndo=new e;onBeforeAddUndo=new e;onBeforeExecCommand=new e;onBeforeGetContent=new e;onBeforeRenderUI=new e;onBeforeSetContent=new e;onChange=new e;onClearUndos=new e;onDeactivate=new e;onDirty=new e;onExecCommand=new e;onGetContent=new e;onHide=new e;onInit=new e;onInput=new e;onInitNgModel=new e;onLoadContent=new e;onNodeChange=new e;onPostProcess=new e;onPostRender=new e;onPreInit=new e;onPreProcess=new e;onProgressState=new e;onRedo=new e;onRemove=new e;onReset=new e;onResizeEditor=new e;onSaveContent=new e;onSetAttrib=new e;onObjectResizeStart=new e;onObjectResized=new e;onObjectSelected=new e;onSetContent=new e;onShow=new e;onSubmit=new e;onUndo=new e;onVisualAid=new e;static \u0275fac=function(t){return new(t||n)};static \u0275dir=T({type:n,outputs:{onBeforePaste:"onBeforePaste",onBlur:"onBlur",onClick:"onClick",onCompositionEnd:"onCompositionEnd",onCompositionStart:"onCompositionStart",onCompositionUpdate:"onCompositionUpdate",onContextMenu:"onContextMenu",onCopy:"onCopy",onCut:"onCut",onDblclick:"onDblclick",onDrag:"onDrag",onDragDrop:"onDragDrop",onDragEnd:"onDragEnd",onDragGesture:"onDragGesture",onDragOver:"onDragOver",onDrop:"onDrop",onFocus:"onFocus",onFocusIn:"onFocusIn",onFocusOut:"onFocusOut",onKeyDown:"onKeyDown",onKeyPress:"onKeyPress",onKeyUp:"onKeyUp",onMouseDown:"onMouseDown",onMouseEnter:"onMouseEnter",onMouseLeave:"onMouseLeave",onMouseMove:"onMouseMove",onMouseOut:"onMouseOut",onMouseOver:"onMouseOver",onMouseUp:"onMouseUp",onPaste:"onPaste",onSelectionChange:"onSelectionChange",onActivate:"onActivate",onAddUndo:"onAddUndo",onBeforeAddUndo:"onBeforeAddUndo",onBeforeExecCommand:"onBeforeExecCommand",onBeforeGetContent:"onBeforeGetContent",onBeforeRenderUI:"onBeforeRenderUI",onBeforeSetContent:"onBeforeSetContent",onChange:"onChange",onClearUndos:"onClearUndos",onDeactivate:"onDeactivate",onDirty:"onDirty",onExecCommand:"onExecCommand",onGetContent:"onGetContent",onHide:"onHide",onInit:"onInit",onInput:"onInput",onInitNgModel:"onInitNgModel",onLoadContent:"onLoadContent",onNodeChange:"onNodeChange",onPostProcess:"onPostProcess",onPostRender:"onPostRender",onPreInit:"onPreInit",onPreProcess:"onPreProcess",onProgressState:"onProgressState",onRedo:"onRedo",onRemove:"onRemove",onReset:"onReset",onResizeEditor:"onResizeEditor",onSaveContent:"onSaveContent",onSetAttrib:"onSetAttrib",onObjectResizeStart:"onObjectResizeStart",onObjectResized:"onObjectResized",onObjectSelected:"onObjectSelected",onSetContent:"onSetContent",onShow:"onShow",onSubmit:"onSubmit",onUndo:"onUndo",onVisualAid:"onVisualAid"},standalone:!1})}return n})(),H=["onActivate","onAddUndo","onBeforeAddUndo","onBeforeExecCommand","onBeforeGetContent","onBeforeRenderUI","onBeforeSetContent","onBeforePaste","onBlur","onChange","onClearUndos","onClick","onCompositionEnd","onCompositionStart","onCompositionUpdate","onContextMenu","onCopy","onCut","onDblclick","onDeactivate","onDirty","onDrag","onDragDrop","onDragEnd","onDragGesture","onDragOver","onDrop","onExecCommand","onFocus","onFocusIn","onFocusOut","onGetContent","onHide","onInit","onInput","onKeyDown","onKeyPress","onKeyUp","onLoadContent","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onNodeChange","onObjectResizeStart","onObjectResized","onObjectSelected","onPaste","onPostProcess","onPostRender","onPreProcess","onProgressState","onRedo","onRemove","onReset","onResizeEditor","onSaveContent","onSelectionChange","onSetAttrib","onSetContent","onShow","onSubmit","onUndo","onVisualAid"],C=(n,i,o)=>y(n,i).pipe(E(o)),ie=(n,i,o)=>{se(n).forEach(s=>{let r=n[s];C(i,s.substring(2),o).subscribe(v=>{le(r)&&n.ngZone.run(()=>r.emit({event:v,editor:i}))})})},se=n=>{let i=Y(n.ignoreEvents,[]);return Y(n.allowedEvents,H).filter(t=>H.includes(t)&&!i.includes(t))},Y=(n,i)=>typeof n=="string"?n.split(",").map(o=>o.trim()):Array.isArray(n)?n:i,q=0,re=n=>{let o=new Date().getTime(),t=Math.floor(Math.random()*1e9);return q++,n+"_"+t+q+String(o)},J=n=>typeof n<"u"&&n.tagName.toLowerCase()==="textarea",Q=n=>typeof n>"u"||n===""?[]:Array.isArray(n)?n:n.split(" "),ae=(n,i)=>Q(n).concat(Q(i)),de=()=>{},W=n=>n==null,le=n=>n.observed||n.observers?.length>0,ce=()=>n=>n.pipe(R(),_(()=>{})),ue=()=>{let n=new D(null),i=n.pipe(P(Boolean),O(([o,t])=>{let s=o.createElement("script");return s.referrerPolicy="origin",s.type="application/javascript",s.src=t,o.head.appendChild(s),y(s,"load").pipe(ce())}),I({bufferSize:1,refCount:!0}));return{load:(...o)=>(n.getValue()||n.next(o),i),reinitialize:()=>{n.next(null)}}},me=ue(),he=new A("TINYMCE_SCRIPT_SRC"),pe={provide:p,useExisting:d(()=>w),multi:!0},w=(()=>{class n extends te{cdRef;platformId;tinymceScriptSrc;cloudChannel="7";apiKey="no-api-key";licenseKey;init;id="";initialValue;outputFormat;inline;tagName;plugins;toolbar;modelEvents="change input undo redo";allowedEvents;ignoreEvents;set disabled(o){this._disabled=o,this._editor&&this._editor.initialized&&(typeof this._editor.mode?.set=="function"?this._editor.mode.set(o?"readonly":"design"):this._editor.setMode(o?"readonly":"design"))}get disabled(){return this._disabled}get editor(){return this._editor}ngZone;_elementRef;_element;_disabled;_editor;onTouchedCallback=de;onChangeCallback;destroy$=new M;constructor(o,t,s,r,v){super(),this.cdRef=s,this.platformId=r,this.tinymceScriptSrc=v,this._elementRef=o,this.ngZone=t}writeValue(o){this._editor&&this._editor.initialized?this._editor.setContent(W(o)?"":o):this.initialValue=o===null?void 0:o}registerOnChange(o){this.onChangeCallback=o}registerOnTouched(o){this.onTouchedCallback=o}setDisabledState(o){this.disabled=o}ngAfterViewInit(){G(this.platformId)&&(this.id=this.id||re("tiny-angular"),this.inline=this.inline!==void 0?this.inline!==!1:!!this.init?.inline,this.createElement(),f()!==null?this.initialise():this._element&&this._element.ownerDocument&&me.load(this._element.ownerDocument,this.getScriptSrc()).pipe(E(this.destroy$)).subscribe(this.initialise))}ngOnDestroy(){this.destroy$.next(),f()!==null&&f().remove(this._editor)}createElement(){let o=typeof this.tagName=="string"?this.tagName:"div";if(this._element=document.createElement(this.inline?o:"textarea"),this._element){let t=document.getElementById(this.id);t&&t!==this._elementRef.nativeElement&&console.warn(`TinyMCE-Angular: an element with id [${this.id}] already exists. Editors with duplicate Id will not be able to mount`),this._element.id=this.id,J(this._element)&&(this._element.style.visibility="hidden"),this._elementRef.nativeElement.appendChild(this._element)}}initialise=()=>{let o=S(b({},this.init),{selector:void 0,target:this._element,inline:this.inline,readonly:this.disabled,license_key:this.licenseKey,plugins:ae(this.init&&this.init.plugins,this.plugins),toolbar:this.toolbar||this.init&&this.init.toolbar,setup:t=>{this._editor=t,C(t,"init",this.destroy$).subscribe(()=>{this.initEditor(t)}),ie(this,t,this.destroy$),this.init&&typeof this.init.setup=="function"&&this.init.setup(t)}});J(this._element)&&(this._element.style.visibility=""),this.ngZone.runOutsideAngular(()=>{f().init(o)})};getScriptSrc(){return W(this.tinymceScriptSrc)?`https://cdn.tiny.cloud/1/${this.apiKey}/tinymce/${this.cloudChannel}/tinymce.min.js`:this.tinymceScriptSrc}initEditor(o){C(o,"blur",this.destroy$).subscribe(()=>{this.cdRef.markForCheck(),this.ngZone.run(()=>this.onTouchedCallback())}),C(o,this.modelEvents,this.destroy$).subscribe(()=>{this.cdRef.markForCheck(),this.ngZone.run(()=>this.emitOnChange(o))}),typeof this.initialValue=="string"&&this.ngZone.run(()=>{o.setContent(this.initialValue),o.getContent()!==this.initialValue&&this.emitOnChange(o),this.onInitNgModel!==void 0&&this.onInitNgModel.emit(o)})}emitOnChange(o){this.onChangeCallback&&this.onChangeCallback(o.getContent({format:this.outputFormat}))}static \u0275fac=function(t){return new(t||n)(a(B),a(U),a(L),a(N),a(he,8))};static \u0275cmp=c({type:n,selectors:[["editor"]],inputs:{cloudChannel:"cloudChannel",apiKey:"apiKey",licenseKey:"licenseKey",init:"init",id:"id",initialValue:"initialValue",outputFormat:"outputFormat",inline:"inline",tagName:"tagName",plugins:"plugins",toolbar:"toolbar",modelEvents:"modelEvents",allowedEvents:"allowedEvents",ignoreEvents:"ignoreEvents",disabled:"disabled"},features:[m([pe]),j],decls:0,vars:0,template:function(t,s){},dependencies:[h,g],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}return n})(),X=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275mod=u({type:n});static \u0275inj=l({imports:[w]})}return n})();var fe=(n,i,o)=>({forced_root_block:"div",newline_behavior:"invert",height:n,menubar:!1,branding:!1,placeholder:i,paste_as_text:!0,toolbar:"bold italic | bullist numlist | outdent indent | alignleft aligncenter alignright alignjustify | table ",auto_focus:o}),ee=class n{placeholder;height="250px";disabled=!1;valueChange=new e;autoFocus=F(!1);plugins=localStorage.getItem("TinyMCEPlugins")??"";value="";onChange=()=>{};onTouched=()=>{};writeValue(i){this.value=i||""}registerOnChange(i){this.onChange=i}registerOnTouched(i){this.onTouched=i}setDisabledState(i){this.disabled=i}onEditorInput(i){this.value=i,this.valueChange.emit(i),this.onChange(i),this.onTouched()}static \u0275fac=function(o){return new(o||n)};static \u0275cmp=c({type:n,selectors:[["POS-tinymce-editor"]],inputs:{placeholder:"placeholder",height:"height",disabled:"disabled",autoFocus:[1,"autoFocus"]},outputs:{valueChange:"valueChange"},standalone:!1,features:[m([{provide:p,useExisting:d(()=>n),multi:!0}])],decls:1,vars:8,consts:[[1,"form-control","p-0","border-0",3,"ngModelChange","init","plugins","ngModel","id"]],template:function(o,t){o&1&&(V(0,"editor",0),K("ngModelChange",function(r){return t.onEditorInput(r)}),x()),o&2&&k("init",z(4,fe,t.height,t.placeholder,t.autoFocus()?"tinyMceEditor":null))("plugins",t.plugins)("ngModel",t.value)("id",t.autoFocus()?"tinyMceEditor":null)},dependencies:[w,$,Z],encapsulation:2})},ne=class n{static \u0275fac=function(o){return new(o||n)};static \u0275mod=u({type:n});static \u0275inj=l({imports:[h,X,g]})};export{ee as a,ne as b};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{P as b}from"./chunk-5UCQBOD6.js";import{a as m}from"./chunk-2FWFPV5I.js";import{a as u}from"./chunk-
|
|
1
|
+
import{P as b}from"./chunk-5UCQBOD6.js";import{a as m}from"./chunk-2FWFPV5I.js";import{a as u}from"./chunk-KRC5LE5H.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};
|