dealpos 25.34.0 → 25.34.2
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-2L7VI2SV.js → chunk-25BC7SZ4.js} +1 -1
- package/browser/{chunk-IC27DRPR.js → chunk-2BDJSELV.js} +1 -1
- package/browser/{chunk-NGUVGLT6.js → chunk-2HHBXJEO.js} +1 -1
- package/browser/{chunk-NBFXU73D.js → chunk-3BG6ASGM.js} +1 -1
- package/browser/{chunk-2QTZUUZ2.js → chunk-4NZOKTH5.js} +1 -1
- package/browser/{chunk-6XMKXNUD.js → chunk-4PR4BJUK.js} +1 -1
- package/browser/{chunk-CG3LHBTY.js → chunk-5CQCPILV.js} +1 -1
- package/browser/{chunk-SF3UHVZK.js → chunk-5GH4ZXOF.js} +1 -1
- package/browser/{chunk-AZFHJDDY.js → chunk-62UWQT4T.js} +1 -1
- package/browser/{chunk-D7L3W4VY.js → chunk-72XYSM6H.js} +1 -1
- package/browser/{chunk-PKD7M2GD.js → chunk-7NO4UMH2.js} +1 -1
- package/browser/{chunk-4RPQ7IBJ.js → chunk-7Z2SV5BR.js} +1 -1
- package/browser/{chunk-H6HXG5VZ.js → chunk-AHS5SF2F.js} +1 -1
- package/browser/{chunk-NZCAV5XD.js → chunk-AJRF756I.js} +1 -1
- package/browser/chunk-BRQWRKJL.js +12 -0
- package/browser/{chunk-BHKIUKLO.js → chunk-C3H5RJ53.js} +1 -1
- package/browser/{chunk-V5HW53T7.js → chunk-CN5MONMQ.js} +1 -1
- package/browser/{chunk-F53VT257.js → chunk-CQK5VZ5U.js} +1 -1
- package/browser/chunk-CUZHOUTT.js +56 -0
- package/browser/{chunk-OBNGFAYN.js → chunk-D2XFIIRV.js} +1 -1
- package/browser/{chunk-GBHJUDUG.js → chunk-DMFQV366.js} +1 -1
- package/browser/{chunk-5LC3OJCF.js → chunk-E5ORAYAT.js} +1 -1
- package/browser/{chunk-IX2JNVQG.js → chunk-EAWBXXCY.js} +3 -3
- package/browser/{chunk-UBMEYIZB.js → chunk-EDHRH3CR.js} +1 -1
- package/browser/{chunk-2MBINFQW.js → chunk-EOMRO75T.js} +1 -1
- package/browser/{chunk-AJQPFXUA.js → chunk-EQ2X33Y7.js} +1 -1
- package/browser/{chunk-X6MHG75V.js → chunk-ESP5Q6M4.js} +1 -1
- package/browser/{chunk-OF3RQVSP.js → chunk-EU46AUBS.js} +1 -1
- package/browser/{chunk-BY6KBKOT.js → chunk-F22SO2DI.js} +1 -1
- package/browser/{chunk-Y3YTJBIK.js → chunk-FCFX7UK4.js} +1 -1
- package/browser/chunk-GF2O25PD.js +2 -0
- package/browser/{chunk-MUPHF5TB.js → chunk-GQHEZKF4.js} +1 -1
- package/browser/{chunk-TV5QMWOM.js → chunk-GWQ4DDRC.js} +1 -1
- package/browser/{chunk-5KIYRKDB.js → chunk-H443OY7B.js} +1 -1
- package/browser/{chunk-CIF2Z4RU.js → chunk-H7MG6BZV.js} +1 -1
- package/browser/{chunk-TO46BZOY.js → chunk-HV6RH7IP.js} +1 -1
- package/browser/{chunk-TECRKQCQ.js → chunk-I2PXSKTR.js} +1 -1
- package/browser/{chunk-D7SQOBYW.js → chunk-JN6CQ5QY.js} +1 -1
- package/browser/{chunk-BZIEM5JR.js → chunk-KT3FCUIJ.js} +1 -1
- package/browser/{chunk-UNYPUZCJ.js → chunk-L4347XVN.js} +1 -1
- package/browser/{chunk-KEGMEHLA.js → chunk-LACWVEXI.js} +1 -1
- package/browser/{chunk-DJCPWUB6.js → chunk-N3Q5L6AW.js} +1 -1
- package/browser/{chunk-3N6AUCD7.js → chunk-N6VULU5K.js} +1 -1
- package/browser/{chunk-RUQDXZED.js → chunk-NAXPCX5Z.js} +1 -1
- package/browser/{chunk-S7G6VPKJ.js → chunk-NFRDO3AW.js} +4 -4
- package/browser/{chunk-QVB3XCM6.js → chunk-NJDZFFP2.js} +1 -1
- package/browser/chunk-OU6CKG3G.js +3 -0
- package/browser/{chunk-EFEXATEO.js → chunk-OYKMBHH3.js} +1 -1
- package/browser/{chunk-OYFH6FDY.js → chunk-PDRERXXI.js} +1 -1
- package/browser/{chunk-G24ZLX2K.js → chunk-PDRVE7KS.js} +1 -1
- package/browser/{chunk-AQ2ZO5FT.js → chunk-QOCXUHST.js} +1 -1
- package/browser/{chunk-XWGUGGJP.js → chunk-RMREHOQS.js} +1 -1
- package/browser/{chunk-ITTYBBLT.js → chunk-RQ6V6FSE.js} +1 -1
- package/browser/{chunk-4X3IHKGN.js → chunk-SE46QMUZ.js} +1 -1
- package/browser/{chunk-API3ZWFL.js → chunk-SPAKEDRE.js} +1 -1
- package/browser/{chunk-OIRMOCS4.js → chunk-SWDAMUEG.js} +1 -1
- package/browser/{chunk-PQ6AZ6LD.js → chunk-SWSPY4BC.js} +1 -1
- package/browser/{chunk-ABA4JXYS.js → chunk-TTZXIO6J.js} +1 -1
- package/browser/{chunk-EAOYPLNT.js → chunk-U66O4HUW.js} +1 -1
- package/browser/{chunk-JE7TQHKP.js → chunk-U66Y6MUA.js} +1 -1
- package/browser/{chunk-MRTHY36I.js → chunk-UA2K3ZOT.js} +1 -1
- package/browser/chunk-UQ6A6MQR.js +1 -0
- package/browser/chunk-UTWTOJPR.js +5 -0
- package/browser/{chunk-4SKEBIZF.js → chunk-UWVVQXFV.js} +1 -1
- package/browser/{chunk-IHA2HI2P.js → chunk-UYK6ATMD.js} +1 -1
- package/browser/chunk-V2QCWCPT.js +1 -0
- package/browser/{chunk-22E2CQ4K.js → chunk-WCY6QKIK.js} +1 -1
- package/browser/{chunk-MQUDT6I7.js → chunk-WNZ62LV6.js} +1 -1
- package/browser/{chunk-UBYH2G4C.js → chunk-WOA7FL24.js} +2 -2
- package/browser/{chunk-Z3HKGDRN.js → chunk-XKCGHK65.js} +1 -1
- package/browser/{chunk-OWXB2H6E.js → chunk-XO4AWRUP.js} +1 -1
- package/browser/chunk-YB3KY7OI.js +1 -0
- package/browser/{chunk-K33S7FXE.js → chunk-YSSOFAAI.js} +1 -1
- package/browser/{chunk-NVNZH2V6.js → chunk-Z5SXUHI6.js} +1 -1
- package/browser/{chunk-OYIQCP6Z.js → chunk-ZZO3UETT.js} +1 -1
- package/browser/index.html +2 -2
- package/browser/{main-KFV37A5N.js → main-4APAI7VK.js} +2 -2
- package/package.json +1 -1
- package/browser/chunk-2Y7ETRYY.js +0 -1
- package/browser/chunk-6NJ7D7PF.js +0 -2
- package/browser/chunk-7LGIJYLC.js +0 -3
- package/browser/chunk-JOK2ZJBB.js +0 -1
- package/browser/chunk-KZ3QOD7N.js +0 -56
- package/browser/chunk-S6UO67AT.js +0 -1
- package/browser/chunk-TPQEOIK7.js +0 -5
- package/browser/chunk-V2MRBY42.js +0 -12
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var e={production:!0,firebaseConfig:{apiKey:"AIzaSyDnnitFXpM8TglWKNpzu4ChgF98n25Rgvw",authDomain:"auth.dealpos.com",projectId:"devops-signin",storageBucket:"devops-signin.appspot.com",messagingSenderId:"412465165194",appId:"1:412465165194:web:03d806f6b6ab6f8b460e73",measurementId:"G-MNDBRJ5XZD"},pos:{indexedDBVersion:3,submitOrderTimeout:2e4,fileSizeLimit:9e5},version:"
|
|
1
|
+
var e={production:!0,firebaseConfig:{apiKey:"AIzaSyDnnitFXpM8TglWKNpzu4ChgF98n25Rgvw",authDomain:"auth.dealpos.com",projectId:"devops-signin",storageBucket:"devops-signin.appspot.com",messagingSenderId:"412465165194",appId:"1:412465165194:web:03d806f6b6ab6f8b460e73",measurementId:"G-MNDBRJ5XZD"},pos:{indexedDBVersion:3,submitOrderTimeout:2e4,fileSizeLimit:9e5},version:"25342",outletMaximumSubscription:10,midtransClientKey:"Mid-client-rdi5ridKhHfeIvTj",ngHttpLoaderDebounceDelay:175,news:"https://changelog.dealpos.app/umbraco/delivery/api/v2/content?fetch=children:web&sort=sortOrder:asc",changelog:[],uppy:{invoicePayment:25e5,receiptTemplate:25e5},intercom:{appId:"xv1oomgl"},whatsappTemplateMessage:`Thank you for shopping at {Brand}
|
|
2
2
|
Here is the receipt for your purchase {Number} - {Currency} {Amount}
|
|
3
3
|
{ReceiptLink}
|
|
4
4
|
Please let us know about your shopping experience using the receipt link.`,FALLBACK_PRODUCT_IMAGE_URL:"https://cdn.dealpos.app/template/products_thumb.png"};export{e as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as b}from"./chunk-
|
|
1
|
+
import{a as b}from"./chunk-5GH4ZXOF.js";import{a as p,d as T,e as R}from"./chunk-7JSHH4R2.js";import{Pa as S,Qd as v,Sc as d,Yd as k,fa as h,ja as u,kd as I,ma as c}from"./chunk-4JRXN7L6.js";var U=(o=>(o[o.PAID=0]="PAID",o[o.OVERDUE=1]="OVERDUE",o[o.SELL_ONLY=2]="SELL_ONLY",o[o.SUSPENDED=3]="SUSPENDED",o))(U||{});var y=(()=>{class n{constructor(e,i){this.document=e,this.platformId=i,this.documentIsAccessible=I(this.platformId)}static getCookieRegExp(e){let i=e.replace(/([\[\]{}()|=;+?,.*^$])/gi,"\\$1");return new RegExp("(?:^"+i+"|;\\s*"+i+")=(.*?)(?:;|$)","g")}static safeDecodeURIComponent(e){try{return decodeURIComponent(e)}catch{return e}}check(e){return this.documentIsAccessible?(e=encodeURIComponent(e),n.getCookieRegExp(e).test(this.document.cookie)):!1}get(e){if(this.check(e)){e=encodeURIComponent(e);let o=n.getCookieRegExp(e).exec(this.document.cookie);return o&&o[1]?n.safeDecodeURIComponent(o[1]):""}else return""}getAll(){if(!this.documentIsAccessible)return{};let e={},i=this.document;return i.cookie&&i.cookie!==""&&i.cookie.split(";").forEach(o=>{let[a,s]=o.split("=");e[n.safeDecodeURIComponent(a.replace(/^ /,""))]=n.safeDecodeURIComponent(s)}),e}set(e,i,o,a,s,m,f,D){if(!this.documentIsAccessible)return;if(typeof o=="number"||o instanceof Date||a||s||m||f){let g={expires:o,path:a,domain:s,secure:m,sameSite:f||"Lax",partitioned:D};this.set(e,i,g);return}let l=encodeURIComponent(e)+"="+encodeURIComponent(i)+";",r=o||{};if(r.expires)if(typeof r.expires=="number"){let g=new Date(new Date().getTime()+r.expires*1e3*60*60*24);l+="expires="+g.toUTCString()+";"}else l+="expires="+r.expires.toUTCString()+";";r.path&&(l+="path="+r.path+";"),r.domain&&(l+="domain="+r.domain+";"),r.secure===!1&&r.sameSite==="None"&&(r.secure=!0,console.warn(`[ngx-cookie-service] Cookie ${e} was forced with secure flag because sameSite=None.More details : https://github.com/stevermeister/ngx-cookie-service/issues/86#issuecomment-597720130`)),r.secure&&(l+="secure;"),r.sameSite||(r.sameSite="Lax"),l+="sameSite="+r.sameSite+";",r.partitioned&&(l+="Partitioned;"),this.document.cookie=l}delete(e,i,o,a,s="Lax"){if(!this.documentIsAccessible)return;let m=new Date("Thu, 01 Jan 1970 00:00:01 GMT");this.set(e,"",{expires:m,path:i,domain:o,secure:a,sameSite:s})}deleteAll(e,i,o,a="Lax"){if(!this.documentIsAccessible)return;let s=this.getAll();for(let m in s)s.hasOwnProperty(m)&&this.delete(m,e,i,o,a)}static{this.\u0275fac=function(i){return new(i||n)(c(d),c(S))}}static{this.\u0275prov=u({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();var C=class n{constructor(t,e,i,o,a,s){this.httpService=t;this.cookieService=e;this.router=i;this.roleService=o;this.intercomService=a;this.fraction=s}role=[];_returnUrl;_loginResponse;_jwtToken;set returnUrl(t){this._returnUrl=t}get returnUrl(){return this._returnUrl}login(t){return this.httpService.post("/api/Login/Web",t).pipe(h(e=>{this._loginResponse=e,e.Type=="geo"||e.Type=="totp"||this.saveLoginConfigToStorage(e)}))}loginLoader(){return this.httpService.get("/api/login/Loader")}getRedirectUrl(){let t=this.getSubscriptionStatus(),e=this.getRedirectUrlByRole();return(t==2||t==3)&&(e="/menu/Profile/Main/My_Subscription"),e}getRedirectUrlByRole(){let t,e=this.roleService;return e.dashboard.View?t="/menu/Dashboard":e.product.View?t="/menu/Products":t="/menu/Sell",t}logout(){localStorage.removeItem("ConfigData"),localStorage.removeItem("Token"),localStorage.removeItem("Roles"),localStorage.removeItem("AccountInfo"),localStorage.removeItem("CloudinaryConfig"),localStorage.removeItem("SubscriptionStatus"),this.cookieService.delete("ReportFilter","/"),this.intercomService.shutdown(),this._jwtToken=null,this.roleService.resetRoles(),this.router.navigate(["/"])}refreshToken(){this.httpService.post("/API/Authentication/RefreshToken",{}).subscribe(t=>{localStorage.removeItem("Token"),localStorage.setItem("Token",t.Token),this._jwtToken=null,this.roleService.resetRoles(),this.roleService.parseJWTRoles()})}isTokenExpired(){let t=localStorage.getItem("Token");if(t){let e=p.parseJwt(t),i=this.convertUnixTimesTamp(e.exp),o=new Date;if(i.getTime()-o.getTime()>0)return!1}return!0}isInRole(t){t.forEach(e=>e(this.role))}convertUnixTimesTamp(t){return new Date(t*1e3)}saveLoginConfigToStorage(t){localStorage.setItem("quantityFraction",JSON.stringify(t.UIConfig.Fraction.Quantity)),localStorage.setItem("amountFraction",JSON.stringify(t.UIConfig.Fraction.Amount)),this.fraction.setAmountFraction(t.UIConfig.Fraction.Amount.Minimum,t.UIConfig.Fraction.Amount.Maximum),this.fraction.setQuantityFraction(t.UIConfig.Fraction.Quantity.Minimum,t.UIConfig.Fraction.Quantity.Maximum),localStorage.setItem("AccountInfo",JSON.stringify(t?.AccountInfo)),localStorage.setItem("Token",t?.Token),localStorage.setItem("TinyMCEPlugins",t?.UIConfig.TinyMCE),this.intercomService.updateLocalStorage(t?.Intercom),localStorage.setItem("CloudinaryConfig",t?.UIConfig.CloudinaryConfig),localStorage.setItem("DataDaysRange",t?.UIConfig.DataDaysRange),localStorage.setItem("SubscriptionStatus",JSON.stringify(t?.SubscriptionStatus));let e=this.getParseToken();p.IsNotEmpty(e?.NotificationOutletID)&&localStorage.setItem("NotificationOutletID",e?.NotificationOutletID),this.roleService.parseJWTRoles(),this._loginResponse=null}getParseToken(){let t=localStorage.getItem("Token");return t&&!this._jwtToken&&(this._jwtToken=p.parseJwt(t)),this._jwtToken}get loginResponse(){return this._loginResponse}getSubscriptionStatus(){let t=localStorage.getItem("SubscriptionStatus");return t?parseInt(t):null}static \u0275fac=function(e){return new(e||n)(c(k),c(y),c(v),c(T),c(b),c(R))};static \u0275prov=u({token:n,factory:n.\u0275fac,providedIn:"root"})};export{U as a,y as b,C as c};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as F,d as H}from"./chunk-
|
|
1
|
+
import{c as F,d as H}from"./chunk-UYK6ATMD.js";import{a as N,b as P}from"./chunk-Y4GWMIHA.js";import{ja as E}from"./chunk-4SXNNKVU.js";import{D as k,h as j,o as A}from"./chunk-K2RY2UAW.js";import{a as G}from"./chunk-7JSHH4R2.js";import{$a as p,Ac as L,Fa as v,Ib as u,Jb as i,Qb as _,Rb as w,Y as g,Yd as s,Zc as M,ca as S,cd as x,d as f,db as a,ec as h,fa as b,gc as T,ja as I,jd as $,kb as y,na as C,o as O,qb as d,vb as m,zc as D}from"./chunk-4JRXN7L6.js";var c=class l{http=C(s);onOpenTreeSelector$=new f;outletGroups$=this.onOpenTreeSelector$.pipe(S(e=>e.length?O(e):this.http.get("/API/outlet/ActiveOptions"),[]),g(1));constructor(){}loadOutletGroups(){this.onOpenTreeSelector$.next()}static \u0275fac=function(t){return new(t||l)};static \u0275prov=I({token:l,factory:l.\u0275fac,providedIn:"root"})};function q(l,e){if(l&1&&(u(0,"div"),h(1),i()),l&2){let t=w();p(),T(" ",t.selectedOutletGroupLabel," ")}}function z(l,e){l&1&&(u(0,"label",4),h(1,"Outlet Group"),i())}var R=class l{constructor(e,t){this.http=e;this.outletGroup=t}outletGroups=[];showClear=!1;showLabel=!1;selectedOutletGroup;selectedOutletGroupID;selectedOutletGroupIDChange=new v;selectedOutletGroupLabel;isLoadOutletGroups=!1;top=0;outletGroups$;ngAfterViewInit(){let e=document.querySelector("body");this.top=e.getBoundingClientRect().top*-1}ngOnInit(){this.outletGroups.length>0&&(G.IsEmpty(this.selectedOutletGroupID)&&(this.selectedOutletGroupID=this.outletGroups[0]?.key),this.selectedOutletGroup=this.findSelectedOutletGroup(this.outletGroups,this.selectedOutletGroupID),this.generateLabelSelectedOutletGroup(this.selectedOutletGroup)),this.outletGroups$=this.outletGroup.outletGroups$.pipe(b(e=>{console.log(e),this.selectedOutletGroup=this.findSelectedOutletGroup(e,this.selectedOutletGroupID),this.generateLabelSelectedOutletGroup(this.selectedOutletGroup)}))}onSelectOutletGroup(e){this.selectedOutletGroup=e,this.generateLabelSelectedOutletGroup(this.selectedOutletGroup),this.selectedOutletGroupID=e?.key,this.selectedOutletGroupIDChange.emit(this.selectedOutletGroupID)}generateLabelSelectedOutletGroup(e){if(e){let t=[];this.selectedOutletGroupLabel="";do t=[...t,e.label],e=e.parent;while(e!==void 0);this.selectedOutletGroupLabel=t.reverse().join("/")}else this.selectedOutletGroupLabel="Select OutletGroup"}findSelectedOutletGroup(e,t){if(G.IsNotEmpty(t))for(let o of e){if(o.key===t)return o;{o.children=o.children?o.children:[],o.children=o.children.map(n=>(n.parent=o,n));let r=this.findSelectedOutletGroup(o.children,t);if(r)return r}}else return null}loadOutletGroups(){let e=document.querySelector(".p-overlay.p-component"),t=this.top+e.getBoundingClientRect().top,o=e.getAttribute("style")||"";e.setAttribute("style",`${o} top: ${t+this.top}px;`),this.outletGroup.loadOutletGroups()}onClear(){this.selectedOutletGroupID=null,this.selectedOutletGroupIDChange.emit(this.selectedOutletGroupID)}static \u0275fac=function(t){return new(t||l)(a(s),a(c))};static \u0275cmp=y({type:l,selectors:[["POS-outlet-group-tree-select"]],inputs:{outletGroups:"outletGroups",showClear:"showClear",showLabel:"showLabel",selectedOutletGroupID:"selectedOutletGroupID"},outputs:{selectedOutletGroupIDChange:"selectedOutletGroupIDChange"},decls:5,vars:6,consts:[["variant","on",1,"w-full","md:w-80"],["appendTo","body","inputId","selectOutletGroup","selectionMode","single","filter","true","filterInputAutoFocus","true","scrollHeight","250px","inputId","selectOutletGroup",3,"click","ngModelChange","onClear","options","ngModel","showClear"],["pTemplate","value"],["for","selectOutletGroup",4,"ngIf"],["for","selectOutletGroup"]],template:function(t,o){t&1&&(u(0,"p-floatlabel",0)(1,"p-treeSelect",1),D(2,"async"),_("click",function(){return o.loadOutletGroups()})("ngModelChange",function(n){return o.onSelectOutletGroup(n)})("onClear",function(){return o.onClear()}),d(3,q,2,1,"ng-template",2),i(),d(4,z,2,0,"label",3),i()),t&2&&(p(),m("options",L(2,4,o.outletGroups$))("ngModel",o.selectedOutletGroup)("showClear",o.showClear),p(3),m("ngIf",o.showLabel))},dependencies:[$,M,x,H,F,E,k,j,A,P,N],styles:[".p-overlay.p-component{z-index:10000000000000000000000!important} .p-treeselect-panel .p-treeselect-items-wrapper .p-tree{padding-left:4px!important}"]})};export{R as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as O}from"./chunk-
|
|
1
|
+
import{a as O}from"./chunk-4NZOKTH5.js";import{h as Q,i as z}from"./chunk-EQ2X33Y7.js";import"./chunk-UA2K3ZOT.js";import{b as H}from"./chunk-L4347XVN.js";import"./chunk-R252C5HM.js";import"./chunk-AFTCPQ2Z.js";import"./chunk-BSUUV75R.js";import{ga as j,ha as q}from"./chunk-H34CGBCE.js";import"./chunk-23F7BAD4.js";import"./chunk-LS4HUMWF.js";import"./chunk-SDIK6O2Z.js";import{a as S}from"./chunk-2FWFPV5I.js";import"./chunk-4SXNNKVU.js";import{D as B,c as k,h as F,o as L}from"./chunk-K2RY2UAW.js";import"./chunk-2BDJSELV.js";import"./chunk-5GH4ZXOF.js";import"./chunk-7JSHH4R2.js";import"./chunk-25BC7SZ4.js";import{$a as s,$b as b,Ib as n,Jb as o,Ma as _,Ob as w,Od as P,Qb as v,Rb as l,Vd as V,Wc as R,Yd as N,Zb as y,Zc as A,_b as D,db as g,dc as M,ec as r,jc as u,jd as E,kb as T,kc as h,lc as f,ob as W,qb as C,rc as I,va as m,vb as d,wa as c}from"./chunk-4JRXN7L6.js";import"./chunk-7DCB7DB2.js";var Y=["textReceiptCtrl"],G=p=>({"is-invalid":p});function J(p,x){p&1&&(n(0,"small"),r(1,"The text you entered exceeds the maximum allowed size when encoded for WhatsApp."),o())}function K(p,x){if(p&1&&(n(0,"div",25),C(1,J,2,0,"small",26),o()),p&2){let t=l(2);s(),d("ngIf",t.textReceiptInvalidState())}}function X(p,x){if(p&1){let t=w();n(0,"mainpanel-cmp",2)(1,"actions")(2,"button",3),v("click",function(){m(t);let e=l();return c(e.onSubmit("Setup/Configuration/WhatsappConfigurationV2"))}),r(3," Save "),o()(),n(4,"content")(5,"div",4)(6,"div",5)(7,"div",6)(8,"h5"),r(9,"WhatsApp Invoice Settings"),o(),n(10,"i"),r(11," Configure the Twilio settings required to send invoices to customers via WhatsApp. "),o()(),n(12,"div",7)(13,"div",8)(14,"div",9)(15,"div",10)(16,"input",11),f("ngModelChange",function(e){m(t);let a=l();return h(a.formData.WhatsappConfig.AccountSID,e)||(a.formData.WhatsappConfig.AccountSID=e),c(e)}),o(),n(17,"label"),r(18,"Account SID"),o()()(),n(19,"div",9)(20,"div",12)(21,"input",13),f("ngModelChange",function(e){m(t);let a=l();return h(a.formData.WhatsappConfig.AuthToken,e)||(a.formData.WhatsappConfig.AuthToken=e),c(e)}),o(),n(22,"label"),r(23,"Auth Token"),o()()()(),n(24,"div",8)(25,"div",9)(26,"div",14)(27,"input",15),f("ngModelChange",function(e){m(t);let a=l();return h(a.formData.WhatsappConfig.ContentTemplateSID,e)||(a.formData.WhatsappConfig.ContentTemplateSID=e),c(e)}),o(),n(28,"label"),r(29,"Content Template SID"),o()()(),n(30,"div",9)(31,"div",16)(32,"input",17),f("ngModelChange",function(e){m(t);let a=l();return h(a.formData.WhatsappConfig.From,e)||(a.formData.WhatsappConfig.From=e),c(e)}),o(),n(33,"label"),r(34,"From"),o()()()()()(),n(35,"div",5)(36,"div",6)(37,"h5"),r(38,"Whatsapp Receipt Settings"),o(),n(39,"i"),r(40," You can use variables like Number, Currency, Amount, ReceiptLink, and Brand. Please refer this "),n(41,"a",18),r(42,"Article"),o(),r(43," for more information. "),o()(),n(44,"div",7)(45,"div",8)(46,"div",19)(47,"div",20)(48,"textarea",21,0),f("ngModelChange",function(e){m(t);let a=l();return h(a.formData.WhatsappConfig.TextReceipt,e)||(a.formData.WhatsappConfig.TextReceipt=e),c(e)}),v("ngModelChange",function(){m(t);let e=l();return c(e.onTextReceiptChange())}),o(),n(50,"label",22),r(51,"Customize E-Receipt Template"),o(),n(52,"div",23),C(53,K,2,1,"div",24),o()()()()()()()()()}if(p&2){let t=M(49),i=l();d("pageData",i.menuData)("hideSearchDropdown",!0)("hideSearchBox",!0),s(2),d("disabled",i.textReceiptInvalidState()),s(14),u("ngModel",i.formData.WhatsappConfig.AccountSID),s(5),u("ngModel",i.formData.WhatsappConfig.AuthToken),s(6),u("ngModel",i.formData.WhatsappConfig.ContentTemplateSID),s(5),u("ngModel",i.formData.WhatsappConfig.From),s(16),u("ngModel",i.formData.WhatsappConfig.TextReceipt),d("ngClass",I(11,G,(i.textReceiptInvalidState()||t.invalid)&&(t.dirty||t.touched))),s(5),d("ngIf",(i.textReceiptInvalidState()||t.invalid)&&(t.dirty||t.touched))}}var U=class p extends O{constructor(t,i,e,a){super(t,i,"Setup/ConfigurationLoader/WhatsappConfigurationV2",e);this.httpService=i;this.activatedRoute=e;this.toaster=a}textReceiptCtrl;maxTextLength=1920;textReceiptInvalidState=_(!1);encodeLength=_(0);postBindForm(t){this.validateTextReceipt(),this.initReceiptTemplateCtrl()}initReceiptTemplateCtrl(){setTimeout(()=>{this.textReceiptCtrl.control.markAllAsTouched()})}validateTextReceipt(){if(!this.formData?.WhatsappConfig?.TextReceipt){this.textReceiptInvalidState.set(!1);return}let t=this.formData.WhatsappConfig?.TextReceipt,i=encodeURIComponent(t)?.length;this.encodeLength.set(i);let e=i>this.maxTextLength;this.textReceiptInvalidState.set(e)}onTextReceiptChange(){if(this.validateTextReceipt(),this.textReceiptCtrl){let t=this.textReceiptInvalidState()||this.textReceiptCtrl.invalid;this.textReceiptInvalidState.set(t)}}onSubmitSuccess(t){t?.MessageWarning?this.toaster.warning(t.MessageWarning,S.Warning):this.toaster.success("Config has been updated succesfully!",S.Success)}static \u0275fac=function(i){return new(i||p)(g(H),g(N),g(P),g(V))};static \u0275cmp=T({type:p,selectors:[["app-whatsapp"]],viewQuery:function(i,e){if(i&1&&y(Y,5),i&2){let a;D(a=b())&&(e.textReceiptCtrl=a.first)}},features:[W],decls:1,vars:1,consts:[["textReceiptCtrl","ngModel"],[3,"pageData","hideSearchDropdown","hideSearchBox",4,"ngIf"],[3,"pageData","hideSearchDropdown","hideSearchBox"],["type","button","role","button",1,"btn","btn-success",3,"click","disabled"],[1,"container-fluid","py-5","bg-light-white"],[1,"row","border-bottom","mt-12","ms-2"],[1,"col-md-2"],[1,"col-md-10","mb-5"],[1,"row"],[1,"col-6"],["matTooltip","The unique identifier for your Twilio account, used for authenticating API requests.","matTooltipPosition","above",1,"form-floating-outline"],["type","text","id","AccountSID","name","AccountSID","placeholder","Account SID",1,"form-control",3,"ngModelChange","ngModel"],["matTooltip","The authentication token for secure access to the Twilio API.","matTooltipPosition","above",1,"form-floating-outline"],["type","text","name","AuthToken","placeholder","Auth Token",1,"form-control",3,"ngModelChange","ngModel"],["matTooltip","The unique identifier for the WhatsApp message template to format your invoice content.","matTooltipPosition","above",1,"form-floating-outline"],["type","text","id","ContentTemplateSID","name","ContentTemplateSID","placeholder","Content Template SID",1,"form-control",3,"ngModelChange","ngModel"],["matTooltip","The Twilio-approved WhatsApp number from which invoices will be sent to customers.","matTooltipPosition","above",1,"form-floating-outline"],["type","text","name","From","placeholder","From",1,"form-control",3,"ngModelChange","ngModel"],["href","https://support.dealpos.com/en/articles/10574504-send-customer-invoice-via-whatsapp-receipt-by-whatsapp","target","_blank"],[1,"col-md-12"],[1,"form-floating-outline"],["name","ProductDescription","rows","15","id","ProductDescription","placeholder","Template","matTooltipPosition","above","matTooltip","Customize the e-receipt message sent to the customer's WhatsApp (validation based on encoded byte length)",1,"form-control",3,"ngModelChange","ngModel","ngClass"],["for","ProductDescription"],[1,"d-flex","justify-content-between","mt-1"],["class","text-danger",4,"ngIf"],[1,"text-danger"],[4,"ngIf"]],template:function(i,e){i&1&&C(0,X,54,13,"mainpanel-cmp",1),i&2&&d("ngIf",e.formData)},dependencies:[E,R,A,z,Q,B,k,F,L,q,j],encapsulation:2})};export{U as WhatsappComponent};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"./chunk-
|
|
1
|
+
import{a}from"./chunk-L4347XVN.js";import{K as o}from"./chunk-4JRXN7L6.js";var s=class extends a{constructor(t,e,r,n){super(t);this.httpService=e;this.formDataAPI=r;this.route=n;let p=this.route.snapshot.queryParams;this.menuData$.pipe(o(()=>this.httpService.post(`/api/${this.formDataAPI}`,p))).subscribe(i=>{this.data=i,this.postBindForm(i)})}data={};get formData(){return this.data.Form}set formData(t){this.data.Form=t}get options(){return this.data.Options?this.data.Options:{}}get Roles(){return this.data.Roles?this.data.Roles:{}}postBindForm(t){}onSubmit(t,e=!1){this.preSubmitForm(),this.httpService.post(`/api/${t}`,this.formData).subscribe({next:r=>{this.onSubmitSuccess(r)},error:r=>{this.onSubmitError(r)}})}compare(t,e,r){return(t<e?-1:1)*(r?1:-1)}preSubmitForm(){}onSubmitSuccess(t){}onSubmitError(t){}};export{s as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as G,b as U}from"./chunk-
|
|
1
|
+
import{a as G,b as U}from"./chunk-V2QCWCPT.js";import{h as A,i as H}from"./chunk-EQ2X33Y7.js";import"./chunk-UA2K3ZOT.js";import{a as j,b as k}from"./chunk-L4347XVN.js";import"./chunk-R252C5HM.js";import"./chunk-AFTCPQ2Z.js";import"./chunk-BSUUV75R.js";import"./chunk-H34CGBCE.js";import{P as B}from"./chunk-23F7BAD4.js";import"./chunk-LS4HUMWF.js";import"./chunk-SDIK6O2Z.js";import"./chunk-2FWFPV5I.js";import"./chunk-4SXNNKVU.js";import"./chunk-K2RY2UAW.js";import"./chunk-2BDJSELV.js";import"./chunk-5GH4ZXOF.js";import{d as w}from"./chunk-7JSHH4R2.js";import"./chunk-25BC7SZ4.js";import{$a as l,Ac as L,Ib as r,Jb as a,Kb as m,Od as _,Rb as P,Rd as x,Td as $,Y as I,Yd as q,Zc as N,aa as g,cd as T,db as c,ec as s,fa as y,jd as V,kb as h,mc as F,na as u,nc as E,ob as C,oc as D,qb as b,qc as R,rc as M,t as v,u as S,vb as o,zc as O}from"./chunk-4JRXN7L6.js";import{a as d,b as f}from"./chunk-7DCB7DB2.js";var J=()=>["/menu/Logistics/Setup/Courier/Form"],K=n=>({ID:n});function Q(n,z){if(n&1&&(r(0,"a",13),m(1,"i",14),s(2,"Edit"),a()),n&2){P();let e=D(0);o("routerLink",R(2,J))("queryParams",M(3,K,e==null||e.Form==null?null:e.Form.ID))}}var Y=class n extends j{constructor(e,t){super(e);this.pageSetupService=e;this.role=t;this.initCourierInfo()}httpService=u(q);activeRoute=u(_);courierInfo$;ngOnInit(){}initCourierInfo(){this.courierInfo$=S([this.menuData$,this.activeRoute.queryParams]).pipe(g(([e,t])=>this.httpService.get(`${B.GetCourierInfo}/${t.ID}`)),v(e=>{let t=e?.Form?.EntityName?e?.Form?.EntityName?.join(", "):"";return e.Form=f(d({},e.Form),{Entity:t}),e}),y(e=>{this.menuData.H=e?.PageTitle||"Courier Info"}),I(1))}static \u0275fac=function(t){return new(t||n)(c(k),c(w))};static \u0275cmp=h({type:n,selectors:[["app-courier-info"]],features:[C],decls:24,vars:10,consts:[[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"],["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"]],template:function(t,p){if(t&1&&(F(0),O(1,"async"),r(2,"mainpanel-cmp",0)(3,"actions"),b(4,Q,3,5,"a",1),a(),r(5,"content")(6,"div",2)(7,"div",3)(8,"div",4)(9,"div",5)(10,"div",6)(11,"h3"),s(12,"General"),a()(),r(13,"div",7)(14,"div",3)(15,"div",8)(16,"div",9),m(17,"POS-info-page-input",10),a()(),r(18,"div",8)(19,"div",9),m(20,"POS-info-page-input",11),a()(),r(21,"div",8)(22,"div",9),m(23,"POS-info-page-input",12),a()()()()()()()()()()),t&2){let i=E(L(1,7,p.courierInfo$));l(2),o("pageData",p.menuData)("hideSearchBox",!0)("hideSearchDropdown",!0),l(2),o("ngIf",p.role.logistic.Edit),l(13),o("inputValue",i==null||i.Form==null?null:i.Form.Name),l(3),o("inputValue",!(i==null||i.Form==null)&&i.Form.Bin?"Yes":"No"),l(3),o("inputValue",i==null||i.Form==null?null:i.Form.Entity)}},dependencies:[V,N,T,H,A,$,x,U,G],encapsulation:2})};export{Y as CourierInfoComponent};
|