dealposbooks 1.0.9 → 1.1.0
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/3rdpartylicenses.txt +30 -30
- package/assets/scss/layouts/_customizer.scss +11 -6
- package/assets/scss/layouts/_sidebar.scss +15 -12
- package/assets/scss/style.scss +4 -0
- package/assets/scss/variables/_variables.scss +5 -12
- package/{chunk-LCATVZKP.js → chunk-223MMYH7.js} +1 -1
- package/chunk-33KLXB2L.js +180 -0
- package/{chunk-C66O26ZI.js → chunk-4Y3NYY52.js} +1 -1
- package/{chunk-MNPBLC23.js → chunk-5GQEUX4M.js} +1 -1
- package/{chunk-GCTIPWTU.js → chunk-5RRUIJ5U.js} +1 -1
- package/{chunk-25PFXJAK.js → chunk-6BFODHTZ.js} +1 -1
- package/chunk-AXJA6OO7.js +246 -0
- package/{chunk-G52TDPSD.js → chunk-AYVR3RIS.js} +1 -1
- package/{chunk-WTRMIJHX.js → chunk-B6N6C3RA.js} +1 -1
- package/{chunk-ZNN2E36Y.js → chunk-CINZRZMB.js} +1 -1
- package/{chunk-3GWDCNXX.js → chunk-DBRLQ7BX.js} +1 -1
- package/{chunk-JFAO2CIB.js → chunk-DJ5UHXOJ.js} +1 -1
- package/{chunk-EP22HTZC.js → chunk-DUOJKP2G.js} +1 -1
- package/{chunk-UC2RR4WT.js → chunk-E4ZVZRLO.js} +3 -3
- package/chunk-EBOJJWD5.js +1 -0
- package/{chunk-PG4QL7N2.js → chunk-EMVZ65TI.js} +1 -1
- package/{chunk-T7R7C3RX.js → chunk-ENPYMVZG.js} +1 -1
- package/chunk-EOLHIQHQ.js +1 -0
- package/chunk-EQDQRRRY.js +1 -0
- package/chunk-ERX7ND7E.js +1 -0
- package/chunk-FKTEL4CU.js +524 -0
- package/chunk-FOUHOMEE.js +301 -0
- package/{chunk-HG23WDL5.js → chunk-H4HFCRFZ.js} +2 -2
- package/chunk-HBVENULS.js +1 -0
- package/chunk-J53TOHZH.js +1 -0
- package/chunk-JC7YOUAM.js +1 -0
- package/{chunk-TJSPXPO6.js → chunk-JR4EQTPJ.js} +1 -1
- package/{chunk-I4HDCL3W.js → chunk-JSAAKZBO.js} +1 -1
- package/{chunk-RJYIKNTI.js → chunk-KZ2KGWUY.js} +1 -1
- package/chunk-LON3T466.js +1 -0
- package/chunk-LYEN4UBW.js +1 -0
- package/chunk-MG3SLH6O.js +1 -0
- package/chunk-NQ3CKBYP.js +1 -0
- package/{chunk-ATVC2UCR.js → chunk-NS7JH3QF.js} +1 -1
- package/{chunk-O7OAT4UO.js → chunk-O65HPMSJ.js} +1 -1
- package/{chunk-NQ24E7JY.js → chunk-OCLABZZW.js} +1 -1
- package/chunk-OH2CJBFF.js +1 -0
- package/{chunk-GMTXOQ6X.js → chunk-OSV7AMB2.js} +1 -1
- package/{chunk-PNAWRNGD.js → chunk-OWI3BWEZ.js} +1 -1
- package/chunk-OYYYX3IP.js +1 -0
- package/{chunk-I7MT7OUB.js → chunk-PNQSQQIT.js} +1 -1
- package/{chunk-JXNLXEJT.js → chunk-Q5PJ63MA.js} +1 -1
- package/{chunk-4ANSU2AT.js → chunk-R2KG54OT.js} +1 -1
- package/{chunk-NTDTN5DF.js → chunk-REHXXPZY.js} +1 -1
- package/{chunk-JT2WCR5Q.js → chunk-RIALPB2D.js} +1 -1
- package/{chunk-AWY6AD76.js → chunk-RJYO2KKV.js} +1 -1
- package/{chunk-FVXLQNAC.js → chunk-ROKYJX6Q.js} +1 -1
- package/{chunk-GRTIJ77T.js → chunk-RUGQ4OJG.js} +1 -1
- package/{chunk-SQKLMC5H.js → chunk-RUP2SWYB.js} +1 -1
- package/chunk-RUVT4SCE.js +1 -0
- package/{chunk-52HZNWBM.js → chunk-SS3CMCAX.js} +1 -1
- package/{chunk-AOB6BRGQ.js → chunk-TMY4NWZ6.js} +1 -1
- package/chunk-TOJAZ32N.js +1 -0
- package/{chunk-2RWUYFYR.js → chunk-TUL6Y2HH.js} +1 -1
- package/{chunk-AH4LZWJY.js → chunk-UGKSIDKE.js} +1 -1
- package/{chunk-Z4SGDPGH.js → chunk-UTL7D6E7.js} +1 -1
- package/{chunk-2ODJIB2A.js → chunk-V7Y6Z4AQ.js} +2 -2
- package/chunk-VY4Z33EE.js +7 -0
- package/{chunk-RSHFIZV3.js → chunk-VYKJK5YU.js} +4 -4
- package/{chunk-UVBFYB2X.js → chunk-WG7APCJU.js} +1 -1
- package/{chunk-E6QGADC5.js → chunk-X2NM4CIV.js} +1 -1
- package/chunk-XWVLTTMV.js +1 -0
- package/{chunk-FJ7O4K2Y.js → chunk-Y6MJGNH2.js} +1 -1
- package/{chunk-QJ2XA575.js → chunk-YKYI4A3V.js} +1 -1
- package/chunk-ZL4DDXH7.js +348 -0
- package/{chunk-E6EWXQXJ.js → chunk-ZU7I7MCL.js} +1 -1
- package/{chunk-KFHCGO62.js → chunk-ZZPBK2XT.js} +1 -1
- package/index.html +6 -3
- package/{main-F2OQVLJM.js → main-MCP7AVEU.js} +1 -1
- package/package.json +1 -1
- package/styles-IAH7RNKW.css +1 -0
- package/chunk-63UNI6LK.js +0 -256
- package/chunk-7LG2CFYI.js +0 -1
- package/chunk-AKBPKNCH.js +0 -1
- package/chunk-B4JAAGJX.js +0 -1
- package/chunk-BGKS3L73.js +0 -246
- package/chunk-C6Q5SG76.js +0 -1
- package/chunk-DOKYUX3G.js +0 -1
- package/chunk-EN5MVYJQ.js +0 -180
- package/chunk-ISXV3FIH.js +0 -1
- package/chunk-JQNCWTZN.js +0 -1
- package/chunk-K36WQVFR.js +0 -1
- package/chunk-LJMMN36O.js +0 -1
- package/chunk-OHVHLILJ.js +0 -1
- package/chunk-OJWZH7AB.js +0 -301
- package/chunk-RR5AUWZO.js +0 -1
- package/chunk-T3ZCO6EC.js +0 -1
- package/chunk-TNXHYK2R.js +0 -7
- package/chunk-TTG6XQNP.js +0 -1
- package/chunk-UOFRXQI7.js +0 -1
- package/chunk-WCQQSWYQ.js +0 -616
- package/styles-GUJHQHWA.css +0 -1
package/chunk-63UNI6LK.js
DELETED
|
@@ -1,256 +0,0 @@
|
|
|
1
|
-
import{a as ye}from"./chunk-KFHCGO62.js";import{b as Ce}from"./chunk-TJSPXPO6.js";import{a as be}from"./chunk-Z4SGDPGH.js";import{i as X,n as F,o as A}from"./chunk-PNAWRNGD.js";import{Ca as ge,Ga as fe,Ha as G,Pa as _e,ja as de,ka as he,ya as w}from"./chunk-FVXLQNAC.js";import{c as R,d as Y,f as V,g as me,h as D,j as pe,l as ue}from"./chunk-S35HUXPS.js";import{k as q,m as ae,n as re,o as le,p as ce,t as H}from"./chunk-GRTIJ77T.js";import{Aa as J,Ab as Q,Bb as d,Jb as l,Kb as a,Nb as W,Ob as _,Pb as I,Rc as M,Sc as x,Ub as m,Vb as p,Wb as u,Xb as ee,Yb as te,Zb as P,_b as k,ca as U,dc as S,ec as c,gb as r,hb as K,hc as E,ia as $,ic as L,jc as T,kc as v,mc as B,nc as oe,oc as se,qa as g,ra as f,sa as O,ta as C,ub as b,uc as N,wc as j,xc as ie,yb as y,za as z,zc as ne}from"./chunk-RSHFIZV3.js";var ve=(()=>{class e extends A{pathId;ngOnInit(){this.pathId="url(#"+w()+")"}static \u0275fac=(()=>{let t;return function(o){return(t||(t=C(e)))(o||e)}})();static \u0275cmp=b({type:e,selectors:[["ExclamationTriangleIcon"]],features:[y],decls:8,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M13.4018 13.1893H0.598161C0.49329 13.189 0.390283 13.1615 0.299143 13.1097C0.208003 13.0578 0.131826 12.9832 0.0780112 12.8932C0.0268539 12.8015 0 12.6982 0 12.5931C0 12.4881 0.0268539 12.3848 0.0780112 12.293L6.47985 1.08982C6.53679 1.00399 6.61408 0.933574 6.70484 0.884867C6.7956 0.836159 6.897 0.810669 7 0.810669C7.103 0.810669 7.2044 0.836159 7.29516 0.884867C7.38592 0.933574 7.46321 1.00399 7.52015 1.08982L13.922 12.293C13.9731 12.3848 14 12.4881 14 12.5931C14 12.6982 13.9731 12.8015 13.922 12.8932C13.8682 12.9832 13.792 13.0578 13.7009 13.1097C13.6097 13.1615 13.5067 13.189 13.4018 13.1893ZM1.63046 11.989H12.3695L7 2.59425L1.63046 11.989Z","fill","currentColor"],["d","M6.99996 8.78801C6.84143 8.78594 6.68997 8.72204 6.57787 8.60993C6.46576 8.49782 6.40186 8.34637 6.39979 8.18784V5.38703C6.39979 5.22786 6.46302 5.0752 6.57557 4.96265C6.68813 4.85009 6.84078 4.78686 6.99996 4.78686C7.15914 4.78686 7.31179 4.85009 7.42435 4.96265C7.5369 5.0752 7.60013 5.22786 7.60013 5.38703V8.18784C7.59806 8.34637 7.53416 8.49782 7.42205 8.60993C7.30995 8.72204 7.15849 8.78594 6.99996 8.78801Z","fill","currentColor"],["d","M6.99996 11.1887C6.84143 11.1866 6.68997 11.1227 6.57787 11.0106C6.46576 10.8985 6.40186 10.7471 6.39979 10.5885V10.1884C6.39979 10.0292 6.46302 9.87658 6.57557 9.76403C6.68813 9.65147 6.84078 9.58824 6.99996 9.58824C7.15914 9.58824 7.31179 9.65147 7.42435 9.76403C7.5369 9.87658 7.60013 10.0292 7.60013 10.1884V10.5885C7.59806 10.7471 7.53416 10.8985 7.42205 11.0106C7.30995 11.1227 7.15849 11.1866 6.99996 11.1887Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(s,o){s&1&&(O(),m(0,"svg",0)(1,"g"),u(2,"path",1)(3,"path",2)(4,"path",3),p(),m(5,"defs")(6,"clipPath",4),u(7,"rect",5),p()()()),s&2&&(_(o.getClassNames()),l("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role),r(),l("clip-path",o.pathId),r(5),a("id",o.pathId))},encapsulation:2})}return e})();var we=(()=>{class e extends A{pathId;ngOnInit(){this.pathId="url(#"+w()+")"}static \u0275fac=(()=>{let t;return function(o){return(t||(t=C(e)))(o||e)}})();static \u0275cmp=b({type:e,selectors:[["InfoCircleIcon"]],features:[y],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M3.11101 12.8203C4.26215 13.5895 5.61553 14 7 14C8.85652 14 10.637 13.2625 11.9497 11.9497C13.2625 10.637 14 8.85652 14 7C14 5.61553 13.5895 4.26215 12.8203 3.11101C12.0511 1.95987 10.9579 1.06266 9.67879 0.532846C8.3997 0.00303296 6.99224 -0.13559 5.63437 0.134506C4.2765 0.404603 3.02922 1.07129 2.05026 2.05026C1.07129 3.02922 0.404603 4.2765 0.134506 5.63437C-0.13559 6.99224 0.00303296 8.3997 0.532846 9.67879C1.06266 10.9579 1.95987 12.0511 3.11101 12.8203ZM3.75918 2.14976C4.71846 1.50879 5.84628 1.16667 7 1.16667C8.5471 1.16667 10.0308 1.78125 11.1248 2.87521C12.2188 3.96918 12.8333 5.45291 12.8333 7C12.8333 8.15373 12.4912 9.28154 11.8502 10.2408C11.2093 11.2001 10.2982 11.9478 9.23232 12.3893C8.16642 12.8308 6.99353 12.9463 5.86198 12.7212C4.73042 12.4962 3.69102 11.9406 2.87521 11.1248C2.05941 10.309 1.50384 9.26958 1.27876 8.13803C1.05367 7.00647 1.16919 5.83358 1.61071 4.76768C2.05222 3.70178 2.79989 2.79074 3.75918 2.14976ZM7.00002 4.8611C6.84594 4.85908 6.69873 4.79698 6.58977 4.68801C6.48081 4.57905 6.4187 4.43185 6.41669 4.27776V3.88888C6.41669 3.73417 6.47815 3.58579 6.58754 3.4764C6.69694 3.367 6.84531 3.30554 7.00002 3.30554C7.15473 3.30554 7.3031 3.367 7.4125 3.4764C7.52189 3.58579 7.58335 3.73417 7.58335 3.88888V4.27776C7.58134 4.43185 7.51923 4.57905 7.41027 4.68801C7.30131 4.79698 7.1541 4.85908 7.00002 4.8611ZM7.00002 10.6945C6.84594 10.6925 6.69873 10.6304 6.58977 10.5214C6.48081 10.4124 6.4187 10.2652 6.41669 10.1111V6.22225C6.41669 6.06754 6.47815 5.91917 6.58754 5.80977C6.69694 5.70037 6.84531 5.63892 7.00002 5.63892C7.15473 5.63892 7.3031 5.70037 7.4125 5.80977C7.52189 5.91917 7.58335 6.06754 7.58335 6.22225V10.1111C7.58134 10.2652 7.51923 10.4124 7.41027 10.5214C7.30131 10.6304 7.1541 10.6925 7.00002 10.6945Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(s,o){s&1&&(O(),m(0,"svg",0)(1,"g"),u(2,"path",1),p(),m(3,"defs")(4,"clipPath",2),u(5,"rect",3),p()()()),s&2&&(_(o.getClassNames()),l("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role),r(),l("clip-path",o.pathId),r(3),a("id",o.pathId))},encapsulation:2})}return e})();var Ie=["container"],xe=(e,i,t,s)=>({showTransformParams:e,hideTransformParams:i,showTransitionParams:t,hideTransitionParams:s}),$e=e=>({value:"visible",params:e}),Oe=(e,i)=>({$implicit:e,closeFn:i}),ke=e=>({$implicit:e});function Se(e,i){e&1&&P(0)}function Ee(e,i){if(e&1&&d(0,Se,1,0,"ng-container",3),e&2){let t=c();a("ngTemplateOutlet",t.headlessTemplate)("ngTemplateOutletContext",ie(2,Oe,t.message,t.onCloseIconClick))}}function Me(e,i){if(e&1&&u(0,"span",4),e&2){let t=c(3);a("ngClass",t.cx("messageIcon"))}}function Ve(e,i){e&1&&u(0,"CheckIcon"),e&2&&l("aria-hidden",!0)("data-pc-section","icon")}function De(e,i){e&1&&u(0,"InfoCircleIcon"),e&2&&l("aria-hidden",!0)("data-pc-section","icon")}function Fe(e,i){e&1&&u(0,"TimesCircleIcon"),e&2&&l("aria-hidden",!0)("data-pc-section","icon")}function Ae(e,i){e&1&&u(0,"ExclamationTriangleIcon"),e&2&&l("aria-hidden",!0)("data-pc-section","icon")}function Ze(e,i){e&1&&u(0,"InfoCircleIcon"),e&2&&l("aria-hidden",!0)("data-pc-section","icon")}function ze(e,i){if(e&1&&(m(0,"span",4),d(1,Ve,1,2,"CheckIcon")(2,De,1,2,"InfoCircleIcon")(3,Fe,1,2,"TimesCircleIcon")(4,Ae,1,2,"ExclamationTriangleIcon")(5,Ze,1,2,"InfoCircleIcon"),p()),e&2){let t,s=c(3);a("ngClass",s.cx("messageIcon")),l("aria-hidden",!0)("data-pc-section","icon"),r(),I((t=s.message.severity)==="success"?1:t==="info"?2:t==="error"?3:t==="warn"?4:5)}}function Qe(e,i){if(e&1&&(ee(0),d(1,Me,1,1,"span",6)(2,ze,6,4,"span",6),m(3,"div",4)(4,"div",4),B(5),p(),m(6,"div",4),B(7),p()(),te()),e&2){let t=c(2);r(),a("ngIf",t.message.icon),r(),a("ngIf",!t.message.icon),r(),a("ngClass",t.cx("messageText")),l("data-pc-section","text"),r(),a("ngClass",t.cx("summary")),l("data-pc-section","summary"),r(),se(" ",t.message.summary," "),r(),a("ngClass",t.cx("detail")),l("data-pc-section","detail"),r(),oe(t.message.detail)}}function Pe(e,i){e&1&&P(0)}function Le(e,i){if(e&1&&u(0,"span",4),e&2){let t=c(4);a("ngClass",t.cx("closeIcon"))}}function Be(e,i){if(e&1&&d(0,Le,1,1,"span",6),e&2){let t=c(3);a("ngIf",t.message.closeIcon)}}function Ne(e,i){if(e&1&&u(0,"TimesIcon",4),e&2){let t=c(3);a("ngClass",t.cx("closeIcon")),l("aria-hidden",!0)("data-pc-section","closeicon")}}function je(e,i){if(e&1){let t=k();m(0,"div")(1,"button",7),S("click",function(o){g(t);let n=c(2);return f(n.onCloseIconClick(o))})("keydown.enter",function(o){g(t);let n=c(2);return f(n.onCloseIconClick(o))}),d(2,Be,1,1,"span",4)(3,Ne,1,3,"TimesIcon",4),p()()}if(e&2){let t=c(2);r(),a("ariaLabel",t.closeAriaLabel),l("class",t.cx("closeButton"))("data-pc-section","closebutton"),r(),I(t.message.closeIcon?2:3)}}function qe(e,i){if(e&1&&(m(0,"div",4),d(1,Qe,8,10,"ng-container",5)(2,Pe,1,0,"ng-container",3)(3,je,4,4,"div"),p()),e&2){let t=c();_(t.message==null?null:t.message.contentStyleClass),a("ngClass",t.cx("messageContent")),l("data-pc-section","content"),r(),a("ngIf",!t.template),r(),a("ngTemplateOutlet",t.template)("ngTemplateOutletContext",j(8,ke,t.message)),r(),I((t.message==null?null:t.message.closable)!==!1?3:-1)}}var He=["message"],Re=["headless"];function Ye(e,i){if(e&1){let t=k();m(0,"p-toastItem",3),S("onClose",function(o){g(t);let n=c();return f(n.onMessageClose(o))})("@toastAnimation.start",function(o){g(t);let n=c();return f(n.onAnimationStart(o))})("@toastAnimation.done",function(o){g(t);let n=c();return f(n.onAnimationEnd(o))}),p()}if(e&2){let t=i.$implicit,s=i.index,o=c();a("message",t)("index",s)("life",o.life)("template",o.template||o._template)("headlessTemplate",o.headlessTemplate||o._headlessTemplate)("@toastAnimation",void 0)("showTransformOptions",o.showTransformOptions)("hideTransformOptions",o.hideTransformOptions)("showTransitionOptions",o.showTransitionOptions)("hideTransitionOptions",o.hideTransitionOptions)}}var Ge=({dt:e})=>`
|
|
2
|
-
.p-toast {
|
|
3
|
-
width: ${e("toast.width")};
|
|
4
|
-
white-space: pre-line;
|
|
5
|
-
word-break: break-word;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
.p-toast-message {
|
|
9
|
-
margin: 0 0 1rem 0;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
.p-toast-message-icon {
|
|
13
|
-
flex-shrink: 0;
|
|
14
|
-
font-size: ${e("toast.icon.size")};
|
|
15
|
-
width: ${e("toast.icon.size")};
|
|
16
|
-
height: ${e("toast.icon.size")};
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
.p-toast-message-content {
|
|
20
|
-
display: flex;
|
|
21
|
-
align-items: flex-start;
|
|
22
|
-
padding: ${e("toast.content.padding")};
|
|
23
|
-
gap: ${e("toast.content.gap")};
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
.p-toast-message-text {
|
|
27
|
-
flex: 1 1 auto;
|
|
28
|
-
display: flex;
|
|
29
|
-
flex-direction: column;
|
|
30
|
-
gap: ${e("toast.text.gap")};
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
.p-toast-summary {
|
|
34
|
-
font-weight: ${e("toast.summary.font.weight")};
|
|
35
|
-
font-size: ${e("toast.summary.font.size")};
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
.p-toast-detail {
|
|
39
|
-
font-weight: ${e("toast.detail.font.weight")};
|
|
40
|
-
font-size: ${e("toast.detail.font.size")};
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
.p-toast-close-button {
|
|
44
|
-
display: flex;
|
|
45
|
-
align-items: center;
|
|
46
|
-
justify-content: center;
|
|
47
|
-
overflow: hidden;
|
|
48
|
-
position: relative;
|
|
49
|
-
cursor: pointer;
|
|
50
|
-
background: transparent;
|
|
51
|
-
transition: background ${e("toast.transition.duration")}, color ${e("toast.transition.duration")}, outline-color ${e("toast.transition.duration")}, box-shadow ${e("toast.transition.duration")};
|
|
52
|
-
outline-color: transparent;
|
|
53
|
-
color: inherit;
|
|
54
|
-
width: ${e("toast.close.button.width")};
|
|
55
|
-
height: ${e("toast.close.button.height")};
|
|
56
|
-
border-radius: ${e("toast.close.button.border.radius")};
|
|
57
|
-
margin: -25% 0 0 0;
|
|
58
|
-
right: -25%;
|
|
59
|
-
padding: 0;
|
|
60
|
-
border: none;
|
|
61
|
-
user-select: none;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
.p-toast-close-button:dir(rtl) {
|
|
65
|
-
margin: -25% 0 0 auto;
|
|
66
|
-
left: -25%;
|
|
67
|
-
right: auto;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
.p-toast-message-info,
|
|
71
|
-
.p-toast-message-success,
|
|
72
|
-
.p-toast-message-warn,
|
|
73
|
-
.p-toast-message-error,
|
|
74
|
-
.p-toast-message-secondary,
|
|
75
|
-
.p-toast-message-contrast {
|
|
76
|
-
border-width: ${e("toast.border.width")};
|
|
77
|
-
border-style: solid;
|
|
78
|
-
backdrop-filter: blur(${e("toast.blur")});
|
|
79
|
-
border-radius: ${e("toast.border.radius")};
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
.p-toast-close-icon {
|
|
83
|
-
font-size: ${e("toast.close.icon.size")};
|
|
84
|
-
width: ${e("toast.close.icon.size")};
|
|
85
|
-
height: ${e("toast.close.icon.size")};
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
.p-toast-close-button:focus-visible {
|
|
89
|
-
outline-width: ${e("focus.ring.width")};
|
|
90
|
-
outline-style: ${e("focus.ring.style")};
|
|
91
|
-
outline-offset: ${e("focus.ring.offset")};
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
.p-toast-message-info {
|
|
95
|
-
background: ${e("toast.info.background")};
|
|
96
|
-
border-color: ${e("toast.info.border.color")};
|
|
97
|
-
color: ${e("toast.info.color")};
|
|
98
|
-
box-shadow: ${e("toast.info.shadow")};
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
.p-toast-message-info .p-toast-detail {
|
|
102
|
-
color: ${e("toast.info.detail.color")};
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
.p-toast-message-info .p-toast-close-button:focus-visible {
|
|
106
|
-
outline-color: ${e("toast.info.close.button.focus.ring.color")};
|
|
107
|
-
box-shadow: ${e("toast.info.close.button.focus.ring.shadow")};
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
.p-toast-message-info .p-toast-close-button:hover {
|
|
111
|
-
background: ${e("toast.info.close.button.hover.background")};
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
.p-toast-message-success {
|
|
115
|
-
background: ${e("toast.success.background")};
|
|
116
|
-
border-color: ${e("toast.success.border.color")};
|
|
117
|
-
color: ${e("toast.success.color")};
|
|
118
|
-
box-shadow: ${e("toast.success.shadow")};
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
.p-toast-message-success .p-toast-detail {
|
|
122
|
-
color: ${e("toast.success.detail.color")};
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
.p-toast-message-success .p-toast-close-button:focus-visible {
|
|
126
|
-
outline-color: ${e("toast.success.close.button.focus.ring.color")};
|
|
127
|
-
box-shadow: ${e("toast.success.close.button.focus.ring.shadow")};
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
.p-toast-message-success .p-toast-close-button:hover {
|
|
131
|
-
background: ${e("toast.success.close.button.hover.background")};
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
.p-toast-message-warn {
|
|
135
|
-
background: ${e("toast.warn.background")};
|
|
136
|
-
border-color: ${e("toast.warn.border.color")};
|
|
137
|
-
color: ${e("toast.warn.color")};
|
|
138
|
-
box-shadow: ${e("toast.warn.shadow")};
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
.p-toast-message-warn .p-toast-detail {
|
|
142
|
-
color: ${e("toast.warn.detail.color")};
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
.p-toast-message-warn .p-toast-close-button:focus-visible {
|
|
146
|
-
outline-color: ${e("toast.warn.close.button.focus.ring.color")};
|
|
147
|
-
box-shadow: ${e("toast.warn.close.button.focus.ring.shadow")};
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
.p-toast-message-warn .p-toast-close-button:hover {
|
|
151
|
-
background: ${e("toast.warn.close.button.hover.background")};
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
.p-toast-message-error {
|
|
155
|
-
background: ${e("toast.error.background")};
|
|
156
|
-
border-color: ${e("toast.error.border.color")};
|
|
157
|
-
color: ${e("toast.error.color")};
|
|
158
|
-
box-shadow: ${e("toast.error.shadow")};
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
.p-toast-message-error .p-toast-detail {
|
|
162
|
-
color: ${e("toast.error.detail.color")};
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
.p-toast-message-error .p-toast-close-button:focus-visible {
|
|
166
|
-
outline-color: ${e("toast.error.close.button.focus.ring.color")};
|
|
167
|
-
box-shadow: ${e("toast.error.close.button.focus.ring.shadow")};
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
.p-toast-message-error .p-toast-close-button:hover {
|
|
171
|
-
background: ${e("toast.error.close.button.hover.background")};
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
.p-toast-message-secondary {
|
|
175
|
-
background: ${e("toast.secondary.background")};
|
|
176
|
-
border-color: ${e("toast.secondary.border.color")};
|
|
177
|
-
color: ${e("toast.secondary.color")};
|
|
178
|
-
box-shadow: ${e("toast.secondary.shadow")};
|
|
179
|
-
}
|
|
180
|
-
|
|
181
|
-
.p-toast-message-secondary .p-toast-detail {
|
|
182
|
-
color: ${e("toast.secondary.detail.color")};
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
.p-toast-message-secondary .p-toast-close-button:focus-visible {
|
|
186
|
-
outline-color: ${e("toast.secondary.close.button.focus.ring.color")};
|
|
187
|
-
box-shadow: ${e("toast.secondary.close.button.focus.ring.shadow")};
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
.p-toast-message-secondary .p-toast-close-button:hover {
|
|
191
|
-
background: ${e("toast.secondary.close.button.hover.background")};
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
.p-toast-message-contrast {
|
|
195
|
-
background: ${e("toast.contrast.background")};
|
|
196
|
-
border-color: ${e("toast.contrast.border.color")};
|
|
197
|
-
color: ${e("toast.contrast.color")};
|
|
198
|
-
box-shadow: ${e("toast.contrast.shadow")};
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
.p-toast-message-contrast .p-toast-detail {
|
|
202
|
-
color: ${e("toast.contrast.detail.color")};
|
|
203
|
-
}
|
|
204
|
-
|
|
205
|
-
.p-toast-message-contrast .p-toast-close-button:focus-visible {
|
|
206
|
-
outline-color: ${e("toast.contrast.close.button.focus.ring.color")};
|
|
207
|
-
box-shadow: ${e("toast.contrast.close.button.focus.ring.shadow")};
|
|
208
|
-
}
|
|
209
|
-
|
|
210
|
-
.p-toast-message-contrast .p-toast-close-button:hover {
|
|
211
|
-
background: ${e("toast.contrast.close.button.hover.background")};
|
|
212
|
-
}
|
|
213
|
-
|
|
214
|
-
.p-toast-top-center {
|
|
215
|
-
transform: translateX(-50%);
|
|
216
|
-
}
|
|
217
|
-
|
|
218
|
-
.p-toast-bottom-center {
|
|
219
|
-
transform: translateX(-50%);
|
|
220
|
-
}
|
|
221
|
-
|
|
222
|
-
.p-toast-center {
|
|
223
|
-
min-width: 20vw;
|
|
224
|
-
transform: translate(-50%, -50%);
|
|
225
|
-
}
|
|
226
|
-
|
|
227
|
-
.p-toast-message-enter-from {
|
|
228
|
-
opacity: 0;
|
|
229
|
-
transform: translateY(50%);
|
|
230
|
-
}
|
|
231
|
-
|
|
232
|
-
.p-toast-message-leave-from {
|
|
233
|
-
max-height: 1000px;
|
|
234
|
-
}
|
|
235
|
-
|
|
236
|
-
.p-toast .p-toast-message.p-toast-message-leave-to {
|
|
237
|
-
max-height: 0;
|
|
238
|
-
opacity: 0;
|
|
239
|
-
margin-bottom: 0;
|
|
240
|
-
overflow: hidden;
|
|
241
|
-
}
|
|
242
|
-
|
|
243
|
-
.p-toast-message-enter-active {
|
|
244
|
-
transition: transform 0.3s, opacity 0.3s;
|
|
245
|
-
}
|
|
246
|
-
|
|
247
|
-
.p-toast-message-leave-active {
|
|
248
|
-
transition: max-height 0.45s cubic-bezier(0, 1, 0, 1), opacity 0.3s, margin-bottom 0.3s;
|
|
249
|
-
}
|
|
250
|
-
`,Xe={root:({instance:e})=>{let{_position:i}=e;return{position:"fixed",top:i==="top-right"||i==="top-left"||i==="top-center"?"20px":i==="center"?"50%":null,right:(i==="top-right"||i==="bottom-right")&&"20px",bottom:(i==="bottom-left"||i==="bottom-right"||i==="bottom-center")&&"20px",left:i==="top-left"||i==="bottom-left"?"20px":i==="center"||i==="top-center"||i==="bottom-center"?"50%":null}}},Ue={root:({instance:e})=>({"p-toast p-component":!0,[`p-toast-${e._position}`]:!!e._position}),message:({instance:e})=>({"p-toast-message":!0,"p-toast-message-info":e.message.severity==="info"||e.message.severity===void 0,"p-toast-message-warn":e.message.severity==="warn","p-toast-message-error":e.message.severity==="error","p-toast-message-success":e.message.severity==="success","p-toast-message-secondary":e.message.severity==="secondary","p-toast-message-contrast":e.message.severity==="contrast"}),messageContent:"p-toast-message-content",messageIcon:({instance:e})=>({"p-toast-message-icon":!0,[`pi ${e.message.icon}`]:!!e.message.icon}),messageText:"p-toast-message-text",summary:"p-toast-summary",detail:"p-toast-detail",closeButton:"p-toast-close-button",closeIcon:({instance:e})=>({"p-toast-close-icon":!0,[`pi ${e.message.closeIcon}`]:!!e.message.closeIcon})},Z=(()=>{class e extends _e{name="toast";theme=Ge;classes=Ue;inlineStyles=Xe;static \u0275fac=(()=>{let t;return function(o){return(t||(t=C(e)))(o||e)}})();static \u0275prov=U({token:e,factory:e.\u0275fac})}return e})();var Je=(()=>{class e extends X{zone;message;index;life;template;headlessTemplate;showTransformOptions;hideTransformOptions;showTransitionOptions;hideTransitionOptions;onClose=new z;containerViewChild;_componentStyle=$(Z);timeout;constructor(t){super(),this.zone=t}ngAfterViewInit(){super.ngAfterViewInit(),this.initTimeout()}initTimeout(){this.message?.sticky||this.zone.runOutsideAngular(()=>{this.timeout=setTimeout(()=>{this.onClose.emit({index:this.index,message:this.message})},this.message?.life||this.life||3e3)})}clearTimeout(){this.timeout&&(clearTimeout(this.timeout),this.timeout=null)}onMouseEnter(){this.clearTimeout()}onMouseLeave(){this.initTimeout()}onCloseIconClick=t=>{this.clearTimeout(),this.onClose.emit({index:this.index,message:this.message}),t.preventDefault()};get closeAriaLabel(){return this.config.translation.aria?this.config.translation.aria.close:void 0}ngOnDestroy(){this.clearTimeout(),super.ngOnDestroy()}static \u0275fac=function(s){return new(s||e)(K(J))};static \u0275cmp=b({type:e,selectors:[["p-toastItem"]],viewQuery:function(s,o){if(s&1&&L(Ie,5),s&2){let n;T(n=v())&&(o.containerViewChild=n.first)}},inputs:{message:"message",index:[2,"index","index",x],life:[2,"life","life",x],template:"template",headlessTemplate:"headlessTemplate",showTransformOptions:"showTransformOptions",hideTransformOptions:"hideTransformOptions",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions"},outputs:{onClose:"onClose"},features:[N([Z]),Q,y],decls:4,vars:15,consts:[["container",""],["role","alert","aria-live","assertive","aria-atomic","true",3,"mouseenter","mouseleave","ngClass"],[3,"ngClass","class"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"ngClass"],[4,"ngIf"],[3,"ngClass",4,"ngIf"],["type","button","autofocus","",3,"click","keydown.enter","ariaLabel"]],template:function(s,o){if(s&1){let n=k();m(0,"div",1,0),S("mouseenter",function(){return g(n),f(o.onMouseEnter())})("mouseleave",function(){return g(n),f(o.onMouseLeave())}),d(2,Ee,1,5,"ng-container")(3,qe,4,10,"div",2),p()}s&2&&(_(o.message==null?null:o.message.styleClass),a("ngClass",o.cx("message"))("@messageState",j(13,$e,ne(8,xe,o.showTransformOptions,o.hideTransformOptions,o.showTransitionOptions,o.hideTransitionOptions))),l("id",o.message==null?null:o.message.id)("data-pc-name","toast")("data-pc-section","root"),r(2),I(o.headlessTemplate?2:3))},dependencies:[H,q,re,ce,Ce,ve,we,be,ye,G],encapsulation:2,data:{animation:[R("messageState",[me("visible",V({transform:"translateY(0)",opacity:1})),D("void => *",[V({transform:"{{showTransformParams}}",opacity:0}),Y("{{showTransitionParams}}")]),D("* => void",[Y("{{hideTransitionParams}}",V({height:0,opacity:0,transform:"{{hideTransformParams}}"}))])])]},changeDetection:0})}return e})(),$t=(()=>{class e extends X{key;autoZIndex=!0;baseZIndex=0;life=3e3;style;styleClass;get position(){return this._position}set position(t){this._position=t,this.cd.markForCheck()}preventOpenDuplicates=!1;preventDuplicates=!1;showTransformOptions="translateY(100%)";hideTransformOptions="translateY(-100%)";showTransitionOptions="300ms ease-out";hideTransitionOptions="250ms ease-in";breakpoints;onClose=new z;template;headlessTemplate;containerViewChild;messageSubscription;clearSubscription;messages;messagesArchieve;_position="top-right";messageService=$(ge);_componentStyle=$(Z);styleElement;id=w("pn_id_");templates;ngOnInit(){super.ngOnInit(),this.messageSubscription=this.messageService.messageObserver.subscribe(t=>{if(t)if(Array.isArray(t)){let s=t.filter(o=>this.canAdd(o));this.add(s)}else this.canAdd(t)&&this.add([t])}),this.clearSubscription=this.messageService.clearObserver.subscribe(t=>{t?this.key===t&&(this.messages=null):this.messages=null,this.cd.markForCheck()})}_template;_headlessTemplate;ngAfterContentInit(){this.templates?.forEach(t=>{switch(t.getType()){case"message":this._template=t.template;break;case"headless":this._headlessTemplate=t.template;break;default:this._template=t.template;break}})}ngAfterViewInit(){super.ngAfterViewInit(),this.breakpoints&&this.createStyle()}add(t){this.messages=this.messages?[...this.messages,...t]:[...t],this.preventDuplicates&&(this.messagesArchieve=this.messagesArchieve?[...this.messagesArchieve,...t]:[...t]),this.cd.markForCheck()}canAdd(t){let s=this.key===t.key;return s&&this.preventOpenDuplicates&&(s=!this.containsMessage(this.messages,t)),s&&this.preventDuplicates&&(s=!this.containsMessage(this.messagesArchieve,t)),s}containsMessage(t,s){return t?t.find(o=>o.summary===s.summary&&o.detail==s.detail&&o.severity===s.severity)!=null:!1}onMessageClose(t){this.messages?.splice(t.index,1),this.onClose.emit({message:t.message}),this.cd.detectChanges()}onAnimationStart(t){t.fromState==="void"&&(this.renderer.setAttribute(this.containerViewChild?.nativeElement,this.id,""),this.autoZIndex&&this.containerViewChild?.nativeElement.style.zIndex===""&&F.set("modal",this.containerViewChild?.nativeElement,this.baseZIndex||this.config.zIndex.modal))}onAnimationEnd(t){t.toState==="void"&&this.autoZIndex&&he(this.messages)&&F.clear(this.containerViewChild?.nativeElement)}createStyle(){if(!this.styleElement){this.styleElement=this.renderer.createElement("style"),this.styleElement.type="text/css",this.renderer.appendChild(this.document.head,this.styleElement);let t="";for(let s in this.breakpoints){let o="";for(let n in this.breakpoints[s])o+=n+":"+this.breakpoints[s][n]+" !important;";t+=`
|
|
251
|
-
@media screen and (max-width: ${s}) {
|
|
252
|
-
.p-toast[${this.id}] {
|
|
253
|
-
${o}
|
|
254
|
-
}
|
|
255
|
-
}
|
|
256
|
-
`}this.renderer.setProperty(this.styleElement,"innerHTML",t),de(this.styleElement,"nonce",this.config?.csp()?.nonce)}}destroyStyle(){this.styleElement&&(this.renderer.removeChild(this.document.head,this.styleElement),this.styleElement=null)}ngOnDestroy(){this.messageSubscription&&this.messageSubscription.unsubscribe(),this.containerViewChild&&this.autoZIndex&&F.clear(this.containerViewChild.nativeElement),this.clearSubscription&&this.clearSubscription.unsubscribe(),this.destroyStyle(),super.ngOnDestroy()}static \u0275fac=(()=>{let t;return function(o){return(t||(t=C(e)))(o||e)}})();static \u0275cmp=b({type:e,selectors:[["p-toast"]],contentQueries:function(s,o,n){if(s&1&&(E(n,He,5),E(n,Re,5),E(n,fe,4)),s&2){let h;T(h=v())&&(o.template=h.first),T(h=v())&&(o.headlessTemplate=h.first),T(h=v())&&(o.templates=h)}},viewQuery:function(s,o){if(s&1&&L(Ie,5),s&2){let n;T(n=v())&&(o.containerViewChild=n.first)}},inputs:{key:"key",autoZIndex:[2,"autoZIndex","autoZIndex",M],baseZIndex:[2,"baseZIndex","baseZIndex",x],life:[2,"life","life",x],style:"style",styleClass:"styleClass",position:"position",preventOpenDuplicates:[2,"preventOpenDuplicates","preventOpenDuplicates",M],preventDuplicates:[2,"preventDuplicates","preventDuplicates",M],showTransformOptions:"showTransformOptions",hideTransformOptions:"hideTransformOptions",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions",breakpoints:"breakpoints"},outputs:{onClose:"onClose"},features:[N([Z]),Q,y],decls:3,vars:7,consts:[["container",""],[3,"ngClass","ngStyle"],[3,"message","index","life","template","headlessTemplate","showTransformOptions","hideTransformOptions","showTransitionOptions","hideTransitionOptions","onClose",4,"ngFor","ngForOf"],[3,"onClose","message","index","life","template","headlessTemplate","showTransformOptions","hideTransformOptions","showTransitionOptions","hideTransitionOptions"]],template:function(s,o){s&1&&(m(0,"div",1,0),d(2,Ye,1,10,"p-toastItem",2),p()),s&2&&(W(o.style),_(o.styleClass),a("ngClass",o.cx("root"))("ngStyle",o.sx("root")),r(2),a("ngForOf",o.messages))},dependencies:[H,q,ae,le,Je,G],encapsulation:2,data:{animation:[R("toastAnimation",[D(":enter, :leave",[ue("@*",pe())])])]},changeDetection:0})}return e})();export{$t as a};
|
package/chunk-7LG2CFYI.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as he,b as ye,c as Pe,d as be,e as Ie,f as Me}from"./chunk-LCATVZKP.js";import{a as X,b as Y}from"./chunk-C66O26ZI.js";import{a as j}from"./chunk-AKBPKNCH.js";import{f as Z,g as Ce,h as Se,i as ve,j as ee}from"./chunk-HG23WDL5.js";import{g as B,h as L}from"./chunk-EP22HTZC.js";import"./chunk-4ANSU2AT.js";import"./chunk-TJSPXPO6.js";import{a as R,b as G}from"./chunk-MNPBLC23.js";import{g as D}from"./chunk-EN5MVYJQ.js";import"./chunk-Z4SGDPGH.js";import"./chunk-FJ7O4K2Y.js";import{u as ge,v as xe}from"./chunk-PNAWRNGD.js";import{e as k,f as me,i as $,l as ce,n as se,o as de,r as ue,t as K,u as _e}from"./chunk-FVXLQNAC.js";import{d as fe}from"./chunk-T3ZCO6EC.js";import"./chunk-S35HUXPS.js";import{m as q,p as J,w as Q}from"./chunk-25PFXJAK.js";import{n as V,t as w}from"./chunk-GRTIJ77T.js";import{Bb as g,Ha as y,Ic as f,Kb as m,Nb as N,Qb as I,Sb as M,Tb as E,Tc as pe,Ub as n,Vb as i,Wb as F,X as H,Z as P,_b as O,ca as re,dc as _,ec as c,gb as l,ia as C,mc as r,nc as x,oc as le,qa as d,ra as u,s as W,ub as b,vc as A,wc as U}from"./chunk-RSHFIZV3.js";import{a as v,b as h}from"./chunk-C6Q5SG76.js";var T=(()=>{class t{constructor(){this.httpService=C(fe)}getGlobalConfiguration(){return this.httpService.get(void 0,"/api/setup/GlobalConfiguration")}saveGlobalConfiguration(e){return this.httpService.post(void 0,"/api/setup/SubmitGlobalConfiguration",e)}fetchPOSOutletConfiguration(){return this.httpService.get(void 0,"/api/Setup/OutletConfiguration")}fetchPOSOutletFormConfiguration(e){let o={params:e};return this.httpService.get(void 0,"/api/Setup/OutletConfigurationForm",o)}updatePOSOutletConfiguration(e){return this.httpService.post(void 0,"/api/Setup/SubmitOutletConfiguration",e)}fetchPOSPaymentConfiguration(){return this.httpService.get(void 0,"/api/Setup/PaymentConfiguration")}fetchPOSPaymentFormConfiguration(e){let o={params:e};return this.httpService.get(void 0,"api/Setup/PaymentConfigurationForm",o)}updatePOSPaymentConfiguration(e){return this.httpService.post(void 0,"/api/Setup/SubmitPaymentConfiguration",e)}fetchPOSTaxConfiguration(){return this.httpService.get(void 0,"/api/setup/TaxConfigurationForm")}updatePOSTaxConfiguration(e){return this.httpService.post(void 0,"/api/setup/SubmitTaxConfiguration",e)}fetchPOSWriteOffConfiguration(){return this.httpService.get(void 0,"/api/setup/WriteOffConfigurationList")}fetchPOSWriteOffFormConfiguration(e){let o={params:e};return this.httpService.get(void 0,"/api/setup/WriteOffConfigurationForm",o)}updatePOSWriteOffConfiguration(e){return this.httpService.post(void 0,"/api/setup/SubmitWriteOffConfiguration",e)}static{this.\u0275fac=function(o){return new(o||t)}}static{this.\u0275prov=re({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function Be(t,s){if(t&1){let e=O();n(0,"button",4),r(1,"Cancel"),i(),n(2,"button",5),_("click",function(){d(e);let a=c();return u(a.onSubmit())}),r(3,"Save"),i()}}function Le(t,s){if(t&1&&(n(0,"p-tab",6),r(1),i()),t&2){let e=s.$implicit,o=s.$index;m("value",o),l(),x(e)}}function We(t,s){if(t&1&&(n(0,"div",20)(1,"div"),r(2),i(),n(3,"span"),r(4,"-"),i(),n(5,"div"),r(6),i()()),t&2){let e=s.$implicit;l(2),x(e.code),l(4),x(e.name)}}function Ne(t,s){if(t&1&&(n(0,"div",20)(1,"div"),r(2),i(),n(3,"span"),r(4,"-"),i(),n(5,"div"),r(6),i()()),t&2){let e=s.$implicit;l(2),x(e.code),l(4),x(e.name)}}function $e(t,s){if(t&1&&(n(0,"div",20)(1,"div"),r(2),i(),n(3,"span"),r(4,"-"),i(),n(5,"div"),r(6),i()()),t&2){let e=s.$implicit;l(2),x(e.code),l(4),x(e.name)}}function Ke(t,s){if(t&1&&(n(0,"div",20)(1,"div"),r(2),i(),n(3,"span"),r(4,"-"),i(),n(5,"div"),r(6),i()()),t&2){let e=s.$implicit;l(2),x(e.code),l(4),x(e.name)}}function je(t,s){if(t&1&&(n(0,"div",20)(1,"div"),r(2),i(),n(3,"span"),r(4,"-"),i(),n(5,"div"),r(6),i()()),t&2){let e=s.$implicit;l(2),x(e.code),l(4),x(e.name)}}function ze(t,s){if(t&1){let e=O();n(0,"p-tabs",6)(1,"p-tablist"),M(2,Le,2,2,"p-tab",6,I),i(),n(4,"p-tabpanels")(5,"p-tabpanel",6)(6,"div",7)(7,"div",8)(8,"div",9)(9,"div",10)(10,"label",11),r(11,"Payment Method "),n(12,"span",12),r(13,"Debit"),i()(),F(14,"input",13),i()(),n(15,"div",9)(16,"div",10)(17,"label",11),r(18,"Sales "),n(19,"span",14),r(20,"Credit"),i()(),n(21,"p-select",15),_("ngModelChange",function(a){d(e);let p=c();return u(p.updateAccountID(a,"Sales"))}),g(22,We,7,2,"ng-template",null,2,f),i()()(),n(24,"div",9)(25,"div",10)(26,"label",11),r(27,"Account Receiveable "),n(28,"span",12),r(29,"Debit"),i()(),n(30,"p-select",15),_("ngModelChange",function(a){d(e);let p=c();return u(p.updateAccountID(a,"AccountReceiveable"))}),g(31,Ne,7,2,"ng-template",null,2,f),i()()()(),F(33,"hr"),n(34,"div",8)(35,"div",16)(36,"div",10)(37,"label",11),r(38,"COGS "),n(39,"span",12),r(40,"Debit"),i()(),n(41,"p-select",17),_("ngModelChange",function(a){d(e);let p=c();return u(p.updateAccountID(a,"CostOfGoodsSold"))}),g(42,$e,7,2,"ng-template",null,2,f),i()()(),n(44,"div",16)(45,"div",10)(46,"label",11),r(47,"Sold Inventory "),n(48,"span",14),r(49,"Credit"),i()(),n(50,"p-select",15),_("ngModelChange",function(a){d(e);let p=c();return u(p.updateAccountID(a,"Inventory"))}),g(51,Ke,7,2,"ng-template",null,2,f),i()()()(),F(53,"hr"),n(54,"div",8)(55,"div",9)(56,"div",10)(57,"label",11),r(58,"Discount "),n(59,"span",12),r(60,"Debit"),i()(),n(61,"p-select",15),_("ngModelChange",function(a){d(e);let p=c();return u(p.updateAccountID(a,"SalesDiscount"))}),g(62,je,7,2,"ng-template",null,2,f),i()()()()()(),n(64,"p-tabpanel",6)(65,"div",18)(66,"div",9)(67,"div",8)(68,"div",16)(69,"div",8)(70,"div",16)(71,"div",10)(72,"label",11),r(73,"Pending Paid Inventory "),n(74,"span",12),r(75,"Debit"),i()(),n(76,"p-select",19),_("ngModelChange",function(a){d(e);let p=c();return u(p.updateAccountID(a,"PendingPaidInventory"))}),i()()(),n(77,"div",16)(78,"div",10)(79,"label",11),r(80,"Bought Inventory "),n(81,"span",12),r(82,"Debit"),i()(),n(83,"p-select",19),_("ngModelChange",function(a){d(e);let p=c();return u(p.updateAccountID(a,"InventoryBought"))}),i()()()()(),n(84,"div",16)(85,"div",8)(86,"div",16)(87,"div",10)(88,"label",11),r(89,"Payment Method"),i(),F(90,"input",13),i()(),n(91,"div",16)(92,"div",10)(93,"label",11),r(94,"Account Payable"),n(95,"span",14),r(96," Credit"),i()(),n(97,"p-select",19),_("ngModelChange",function(a){d(e);let p=c();return u(p.updateAccountID(a,"AccountPayable"))}),i()()(),n(98,"div",16)(99,"div",10)(100,"label",11),r(101,"Pending Paid Inventory "),n(102,"span",14),r(103,"Credit"),i()(),n(104,"p-select",19),_("ngModelChange",function(a){d(e);let p=c();return u(p.updateAccountID(a,"PendingPaidInventory"))}),i()()(),n(105,"div",16)(106,"div",10)(107,"label",11),r(108,"Discount "),n(109,"span",14),r(110,"Credit"),i()(),n(111,"p-select",19),_("ngModelChange",function(a){d(e);let p=c();return u(p.updateAccountID(a,"PurchaseDiscount"))}),i()()()()()()()()(),n(112,"p-tabpanel",6)(113,"div",18)(114,"div",9)(115,"div",8)(116,"div",16)(117,"div",8)(118,"div",16)(119,"div",10)(120,"label",11),r(121,"Adjustment Asset "),n(122,"span",12),r(123,"Debit"),i()(),n(124,"p-select",19),_("ngModelChange",function(a){d(e);let p=c();return u(p.updateAccountID(a,"AdjustmentCogs"))}),i()()()()(),n(125,"div",16)(126,"div",8)(127,"div",16)(128,"div",10)(129,"label",11),r(130,"Adjustment Expense"),n(131,"span",14),r(132," Credit"),i()(),n(133,"p-select",19),_("ngModelChange",function(a){d(e);let p=c();return u(p.updateAccountID(a,"Adjustment"))}),i()()()()()()()()(),n(134,"p-tabpanel",6)(135,"div",18)(136,"div",9)(137,"div",8)(138,"div",16)(139,"div",8)(140,"div",16)(141,"div",10)(142,"label",11),r(143,"Payment Method"),i(),F(144,"input",13),i()(),n(145,"div",16)(146,"div",10)(147,"label",11),r(148,"Accounting For Prepaid "),n(149,"span",12),r(150,"Debit"),i()(),n(151,"p-select",19),_("ngModelChange",function(a){d(e);let p=c();return u(p.updateAccountID(a,"AccountingForTreatment"))}),i()()()()(),n(152,"div",16)(153,"div",8)(154,"div",16)(155,"div",10)(156,"label",11),r(157,"Accounting For Prepaid"),n(158,"span",14),r(159," Credit"),i()(),n(160,"p-select",19),_("ngModelChange",function(a){d(e);let p=c();return u(p.updateAccountID(a,"AccountingForTreatment"))}),i()()(),n(161,"div",16)(162,"div",10)(163,"label",11),r(164,"Sales For Prepaid"),n(165,"span",14),r(166," Credit"),i()(),n(167,"p-select",19),_("ngModelChange",function(a){d(e);let p=c();return u(p.updateAccountID(a,"SalesForTreatment"))}),i()()()()()()()()(),n(168,"p-tabpanel",6)(169,"div",18)(170,"div",9)(171,"div",8)(172,"div",16)(173,"div",8)(174,"div",16)(175,"div",10)(176,"label",11),r(177,"Sales Return "),n(178,"span",12),r(179,"Debit"),i()(),n(180,"p-select",19),_("ngModelChange",function(a){d(e);let p=c();return u(p.updateAccountID(a,"SalesReturn"))}),i()()(),n(181,"div",16)(182,"div",10)(183,"label",11),r(184,"Inventory "),n(185,"span",12),r(186,"Debit"),i()(),n(187,"p-select",19),_("ngModelChange",function(a){d(e);let p=c();return u(p.updateAccountID(a,"Inventory"))}),i()()(),n(188,"div",16)(189,"div",10)(190,"label",11),r(191,"Payment Method"),i(),F(192,"input",13),i()()()(),n(193,"div",16)(194,"div",8)(195,"div",16)(196,"div",10)(197,"label",11),r(198,"Payment Method"),i(),F(199,"input",13),i()(),n(200,"div",16)(201,"div",10)(202,"label",11),r(203,"COGS"),n(204,"span",14),r(205," Credit"),i()(),n(206,"p-select",19),_("ngModelChange",function(a){d(e);let p=c();return u(p.updateAccountID(a,"CostOfGoodsSold"))}),i()()(),n(207,"div",16)(208,"div",10)(209,"label",11),r(210,"Purchase Return"),n(211,"span",14),r(212," Credit"),i()(),n(213,"p-select",19),_("ngModelChange",function(a){d(e);let p=c();return u(p.updateAccountID(a,"PurchaseReturn"))}),i()()()()()()()()(),n(214,"p-tabpanel",6)(215,"div",18)(216,"div",9)(217,"div",8)(218,"div",16)(219,"div",8)(220,"div",9)(221,"div",10)(222,"label",11),r(223,"Consignment Payable "),n(224,"span",12),r(225,"Debit"),i()(),n(226,"p-select",19),_("ngModelChange",function(a){d(e);let p=c();return u(p.updateAccountID(a,"Consignment"))}),i()()()()()()()()(),n(227,"p-tabpanel",6)(228,"div",18)(229,"div",9)(230,"div",8)(231,"div",16)(232,"div",8)(233,"div",16)(234,"div",10)(235,"label",11),r(236,"Payment Fee "),n(237,"span",12),r(238,"Debit"),i()(),n(239,"p-select",19),_("ngModelChange",function(a){d(e);let p=c();return u(p.updateAccountID(a,"PaymentFee"))}),i()()(),n(240,"div",16)(241,"div",10)(242,"label",11),r(243,"Payment Method"),i(),F(244,"input",13),i()()()(),n(245,"div",16)(246,"div",8)(247,"div",16)(248,"div",10)(249,"label",11),r(250,"Sales"),i(),F(251,"input",13),i()(),n(252,"div",16)(253,"div",10)(254,"label",11),r(255,"Surcharge"),i(),n(256,"p-select",19),_("ngModelChange",function(a){d(e);let p=c();return u(p.updateAccountID(a,"Surcharge"))}),i()()()()()()()()(),n(257,"p-tabpanel",6)(258,"div",18)(259,"div",9)(260,"div",8)(261,"div",16)(262,"div",8)(263,"div",16)(264,"div",10)(265,"label",11),r(266,"Finished Goods "),n(267,"span",12),r(268,"Debit"),i()(),n(269,"p-select",19),_("ngModelChange",function(a){d(e);let p=c();return u(p.updateAccountID(a,"FinishedGoods"))}),i()()()()(),n(270,"div",16)(271,"div",8)(272,"div",16)(273,"div",10)(274,"label",11),r(275,"Raw Material"),i(),n(276,"p-select",19),_("ngModelChange",function(a){d(e);let p=c();return u(p.updateAccountID(a,"RawMaterial"))}),i()()(),n(277,"div",16)(278,"div",10)(279,"label",11),r(280,"Production Expense"),i(),n(281,"p-select",19),_("ngModelChange",function(a){d(e);let p=c();return u(p.updateAccountID(a,"ProductionExpenses"))}),i()()()()()()()()(),n(282,"p-tabpanel",6)(283,"div",18)(284,"div",9)(285,"div",8)(286,"div",9)(287,"div",8)(288,"div",16)(289,"div",10)(290,"label",11),r(291,"Crossing Account "),n(292,"span",12),r(293,"Debit"),i()(),n(294,"p-select",19),_("ngModelChange",function(a){d(e);let p=c();return u(p.updateAccountID(a,"CrossingAccount"))}),i()()(),n(295,"div",16)(296,"div",10)(297,"label",11),r(298,"Retained Earnings "),n(299,"span",12),r(300,"Debit"),i()(),n(301,"p-select",19),_("ngModelChange",function(a){d(e);let p=c();return u(p.updateAccountID(a,"RetainedEarnings"))}),i()()(),n(302,"div",16)(303,"div",10)(304,"label",11),r(305,"Current Earnings "),n(306,"span",12),r(307,"Debit"),i()(),n(308,"p-select",19),_("ngModelChange",function(a){d(e);let p=c();return u(p.updateAccountID(a,"CurrentEarnings"))}),i()()()()()()()()()()()}if(t&2){let e=c();m("value",0),l(2),E(e.tabs()),l(3),m("value",0),l(16),m("virtualScrollItemSize",50)("ngModel",e.form()[e.getAccountIDByKey("Sales")].accountID)("options",e.POSIntegration().options.accounts),l(9),m("virtualScrollItemSize",50)("ngModel",e.form()[e.getAccountIDByKey("AccountReceiveable")].accountID)("options",e.POSIntegration().options.accounts),l(11),m("filter",!0)("virtualScroll",!0)("virtualScrollItemSize",25)("ngModel",e.form()[e.getAccountIDByKey("CostOfGoodsSold")].accountID)("options",e.POSIntegration().options.accounts),l(9),m("virtualScrollItemSize",50)("ngModel",e.form()[e.getAccountIDByKey("Inventory")].accountID)("options",e.POSIntegration().options.accounts),l(11),m("virtualScrollItemSize",50)("ngModel",e.form()[e.getAccountIDByKey("SalesDiscount")].accountID)("options",e.POSIntegration().options.accounts),l(3),m("value",1),l(12),m("ngModel",e.form()[e.getAccountIDByKey("PendingPaidInventory")].accountID)("options",e.POSIntegration().options.accounts),l(7),m("ngModel",e.form()[e.getAccountIDByKey("InventoryBought")].accountID)("options",e.POSIntegration().options.accounts),l(14),m("ngModel",e.form()[e.getAccountIDByKey("AccountPayable")].accountID)("options",e.POSIntegration().options.accounts),l(7),m("ngModel",e.form()[e.getAccountIDByKey("PendingPaidInventory")].accountID)("options",e.POSIntegration().options.accounts),l(7),m("ngModel",e.form()[e.getAccountIDByKey("PurchaseDiscount")].accountID)("options",e.POSIntegration().options.accounts),l(),m("value",2),l(12),m("ngModel",e.form()[e.getAccountIDByKey("AdjustmentCogs")].accountID)("options",e.POSIntegration().options.accounts),l(9),m("ngModel",e.form()[e.getAccountIDByKey("Adjustment")].accountID)("options",e.POSIntegration().options.accounts),l(),m("value",3),l(17),m("ngModel",e.form()[e.getAccountIDByKey("AccountingForTreatment")].accountID)("options",e.POSIntegration().options.accounts),l(9),m("ngModel",e.form()[e.getAccountIDByKey("AccountingForTreatment")].accountID)("options",e.POSIntegration().options.accounts),l(7),m("ngModel",e.form()[e.getAccountIDByKey("SalesForTreatment")].accountID)("options",e.POSIntegration().options.accounts),l(),m("value",4),l(12),m("ngModel",e.form()[e.getAccountIDByKey("SalesReturn")].accountID)("options",e.POSIntegration().options.accounts),l(7),m("ngModel",e.form()[e.getAccountIDByKey("Inventory")].accountID)("options",e.POSIntegration().options.accounts),l(19),m("ngModel",e.form()[e.getAccountIDByKey("CostOfGoodsSold")].accountID)("options",e.POSIntegration().options.accounts),l(7),m("ngModel",e.form()[e.getAccountIDByKey("PurchaseReturn")].accountID)("options",e.POSIntegration().options.accounts),l(),m("value",5),l(12),m("ngModel",e.form()[e.getAccountIDByKey("Consignment")].accountID)("options",e.POSIntegration().options.accounts),l(),m("value",6),l(12),m("ngModel",e.form()[e.getAccountIDByKey("PaymentFee")].accountID)("options",e.POSIntegration().options.accounts),l(17),m("ngModel",e.form()[e.getAccountIDByKey("Surcharge")].accountID)("options",e.POSIntegration().options.accounts),l(),m("value",7),l(12),m("ngModel",e.form()[e.getAccountIDByKey("FinishedGoods")].accountID)("options",e.POSIntegration().options.accounts),l(7),m("ngModel",e.form()[e.getAccountIDByKey("RawMaterial")].accountID)("options",e.POSIntegration().options.accounts),l(5),m("ngModel",e.form()[e.getAccountIDByKey("ProductionExpenses")].accountID)("options",e.POSIntegration().options.accounts),l(),m("value",8),l(12),m("ngModel",e.form()[e.getAccountIDByKey("CrossingAccount")].accountID)("options",e.POSIntegration().options.accounts),l(7),m("ngModel",e.form()[e.getAccountIDByKey("RetainedEarnings")].accountID)("options",e.POSIntegration().options.accounts),l(7),m("ngModel",e.form()[e.getAccountIDByKey("CurrentEarnings")].accountID)("options",e.POSIntegration().options.accounts)}}var Ee=(()=>{class t{constructor(){this.POSSetupService=C(T),this.tabs=y(["Sell","Buy","Adjustment","Prepaid","Return","Debt","Payment Fee","Manufacturing","Advance"]),this.POSIntegration=y(null),this.form=y([])}ngOnInit(){this.POSSetupService.getGlobalConfiguration().pipe(P(e=>{this.POSIntegration.set(e),this.form.set(e.form)})).subscribe()}updateAccountID(e,o){let a=this.POSIntegration().descriptions.findIndex(p=>p.name.toLowerCase()===o.toLowerCase());if(a!==-1){let p=this.form().findIndex(S=>S.typeID===+this.POSIntegration().descriptions[a].id);if(p!==-1){let S=[...this.form()];S[p]=h(v({},S[p]),{accountID:e}),this.form.set(S)}}}getAccountIDByKey(e){return this.form().findIndex(o=>this.POSIntegration().descriptions.some(a=>a.name.toLowerCase()===e.toLowerCase()&&+a.id===o.typeID))}onSubmit(){let e={form:this.form()};this.POSSetupService.saveGlobalConfiguration(e).pipe(j("response")).subscribe()}static{this.\u0275fac=function(o){return new(o||t)}}static{this.\u0275cmp=b({type:t,selectors:[["app-pos-global"]],decls:5,vars:0,consts:[["actionButton",""],["content",""],["item",""],["pageTitle","POS Integration"],[1,"btn","btn-secondary","rounded"],[1,"btn","btn-primary","rounded",3,"click"],[3,"value"],[1,"d-flex","flex-column","gap-3"],[1,"row","row-gap-4"],[1,"col-6"],[1,"d-flex","flex-column"],["for",""],[1,"text-success","fs-2"],["type","text","pInputText","","value","xxxxxxxxxxxxxxxxxxxx","readonly",""],[1,"text-danger","fs-2"],["filter","","filterBy","code","virtualScroll","","optionLabel","name","optionValue","id","placeholder","Select a City",3,"ngModelChange","virtualScrollItemSize","ngModel","options"],[1,"col"],["filterBy","code","optionLabel","name","optionValue","id","placeholder","Select a City",3,"ngModelChange","filter","virtualScroll","virtualScrollItemSize","ngModel","options"],[1,"row"],["optionLabel","name","optionValue","id","placeholder","Select a City",3,"ngModelChange","ngModel","options"],[1,"d-flex","gap-3"]],template:function(o,a){o&1&&(n(0,"app-main-panel",3),g(1,Be,4,0,"ng-template",null,0,f)(3,ze,309,73,"ng-template",null,1,f),i())},dependencies:[D,Me,Ie,be,Pe,he,ye,xe,ge,L,B,K,k,$,w],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return t})();var He=t=>[t];function Ue(t,s){if(t&1&&(n(0,"th",7),r(1),i()),t&2){let e=s.$implicit;l(),x(e.name.slice(0,10))}}function qe(t,s){if(t&1&&(n(0,"tr")(1,"th",6),r(2,"Method"),i(),M(3,Ue,2,1,"th",7,I),i()),t&2){let e=c(3);l(3),E(e.paymentConfiguration().outlets)}}function Je(t,s){if(t&1&&(n(0,"td"),r(1),i()),t&2){let e=s.$implicit;l(),x(e.accountName)}}function Qe(t,s){if(t&1&&(n(0,"tr")(1,"td",8)(2,"a",9),r(3),i()(),M(4,Je,2,1,"td",null,I),i()),t&2){let e=s.$implicit;l(2),m("routerLink",U(2,He,e.id)),l(),x(e.name),l(),E(e.accounts)}}function Xe(t,s){if(t&1&&(n(0,"p-table",5),g(1,qe,5,0,"ng-template",null,1,f)(3,Qe,6,4,"ng-template",null,2,f),i()),t&2){let e=c(2);m("scrollable",!0)("scrollHeight","calc(100vh - 150px)")("value",e.paymentConfiguration().payment)}}function Ye(t,s){t&1&&(n(0,"app-main-panel",4),g(1,Xe,5,3,"ng-template",null,0,f),i())}var De=(()=>{class t{constructor(){this.POSSetupService=C(T),this.paymentConfiguration=y(null)}ngOnInit(){this.POSSetupService.fetchPOSPaymentConfiguration().pipe(P(e=>{this.paymentConfiguration.set(e)})).subscribe()}static{this.\u0275fac=function(o){return new(o||t)}}static{this.\u0275cmp=b({type:t,selectors:[["app-pos-payment"]],decls:1,vars:1,consts:[["content",""],["header",""],["body",""],["pageTitle","Payment Method Accounting",4,"ngIf"],["pageTitle","Payment Method Accounting"],[3,"scrollable","scrollHeight","value"],["pFrozenColumn","",2,"min-width","300px"],[2,"min-width","200px"],["pFrozenColumn",""],[1,"link-primary",3,"routerLink"]],template:function(o,a){o&1&&g(0,Ye,3,0,"app-main-panel",3),o&2&&m("ngIf",a.paymentConfiguration())},dependencies:[D,ee,Z,Ce,w,V,Q,J],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return t})();var Ze=t=>[t];function et(t,s){if(t&1&&(n(0,"th"),r(1),i()),t&2){let e=s.$implicit;l(),x(e.value)}}function tt(t,s){if(t&1&&(n(0,"tr")(1,"th"),r(2,"Name"),i(),M(3,et,2,1,"th",null,I),i()),t&2){let e=c(2);l(3),E(e.outletList().listCOAType)}}function nt(t,s){if(t&1&&(n(0,"td"),r(1),i()),t&2){let e=s.$implicit;l(),x(e)}}function it(t,s){if(t&1&&(n(0,"tr")(1,"td")(2,"a",4),r(3),i()(),M(4,nt,2,1,"td",null,I),i()),t&2){let e=s.$implicit;l(2),m("routerLink",U(2,Ze,e.EntityID)),l(),le(" ",e.OutletName,""),l(),E(e.Accounts)}}function ot(t,s){if(t&1&&(n(0,"p-card")(1,"p-table",3),g(2,tt,5,0,"ng-template",null,1,f)(4,it,6,4,"ng-template",null,2,f),i()()),t&2){let e=c();l(),m("scrollable",!0)("scrollHeight","calc(100vh - 150px)")("value",e.outletList().listOutletAccount)}}var Te=(()=>{class t{constructor(){this.POSSetupService=C(T),this.outletList=y(null)}ngOnInit(){this.POSSetupService.fetchPOSOutletConfiguration().pipe(P(e=>{this.outletList.set(e)})).subscribe()}static{this.\u0275fac=function(o){return new(o||t)}}static{this.\u0275cmp=b({type:t,selectors:[["app-pos-outlet"]],decls:3,vars:0,consts:[["content",""],["header",""],["body",""],[3,"scrollable","scrollHeight","value"],[1,"link-primary",3,"routerLink"]],template:function(o,a){o&1&&(n(0,"app-main-panel"),g(1,ot,6,3,"ng-template",null,0,f),i())},dependencies:[D,w,G,R,ee,Z,Q,J],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return t})();function at(t,s){if(t&1){let e=O();n(0,"button",4),r(1,"Cancel"),i(),n(2,"button",5),_("click",function(){d(e);let a=c(2);return u(a.updatePOsOutletConfiguration())}),r(3," Save "),i()}}function rt(t,s){if(t&1&&(n(0,"div",9)(1,"div",10)(2,"label",11),r(3),i(),F(4,"p-select",12),i()()),t&2){let e=s.$implicit,o=s.$index,a=c(4);m("formGroup",e),l(2),m("for","accountID-"+o),l(),x(a.outletForm().form[o].TypeName),l(),m("inputId","accountID-"+o)("options",a.outletForm().options.accounts)}}function lt(t,s){if(t&1&&(n(0,"div",8),M(1,rt,5,5,"div",9,I),i()),t&2){let e=c(3);l(),E(e.form.controls.item.controls)}}function pt(t,s){if(t&1&&(n(0,"p-card",6),g(1,lt,3,0,"ng-template",7),i()),t&2){let e=c(2);m("formGroup",e.form)}}function mt(t,s){if(t&1&&(n(0,"app-main-panel",3),g(1,at,4,0,"ng-template",null,0,f)(3,pt,2,1,"ng-template",null,1,f),i()),t&2){let e=c();m("pageTitle","Edit "+e.outletForm().form[0].OutletName+" COA")}}var Fe=(()=>{class t{constructor(){this.route=C(q),this.POSSetupService=C(T),this.outletForm=y(null),this.fb=C(ue)}ngOnInit(){this.generateForm(),this.route.paramMap.pipe(W(e=>e.get("id")),H(e=>this.POSSetupService.fetchPOSOutletFormConfiguration({outletID:e})),P(e=>{this.outletForm.set(e),e.form.forEach(o=>{let a=this.fb.group({AccountID:this.fb.control(o.AccountID),TypeID:this.fb.control(o.TypeID),TypeName:this.fb.control(o.TypeName),OutletID:this.fb.control(o.OutletID),OutletName:this.fb.control(o.OutletName)});this.form.controls.item.push(a)})}),j("response")).subscribe()}generateForm(){this.form=this.fb.group({item:this.fb.array([])})}get item(){return this.form.get("item")}updatePOsOutletConfiguration(){let{item:e}=this.form.getRawValue(),o={form:e};this.POSSetupService.updatePOSOutletConfiguration(o).pipe(j("response")).subscribe()}static{this.\u0275fac=function(o){return new(o||t)}}static{this.\u0275cmp=b({type:t,selectors:[["app-pos-outlet-form"]],decls:1,vars:1,consts:[["actionButton",""],["content",""],[3,"pageTitle",4,"ngIf"],[3,"pageTitle"],[1,"btn","btn-secondary","rounded"],["type","button",1,"btn","btn-primary","rounded",3,"click"],[3,"formGroup"],["formArrayName","item"],[1,"row","row-gap-3"],[1,"col-4",3,"formGroup"],[1,"d-flex","flex-column"],[3,"for"],["formControlName","AccountID","optionLabel","name","optionValue","id","placeholder","Select an account",3,"inputId","options"]],template:function(o,a){o&1&&g(0,mt,5,1,"app-main-panel",2),o&2&&m("ngIf",a.outletForm())},dependencies:[D,w,V,G,R,_e,k,me,ce,de,se,L,B],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return t})();var ct=()=>({height:"calc(100vh - 100px)"}),st=()=>({width:"100%",height:"calc(100vh - 150px)"}),dt=()=>({width:"100%"});function ut(t,s){if(t&1){let e=O();n(0,"button",4),r(1,"Cancel"),i(),n(2,"button",5),_("click",function(){d(e);let a=c(2);return u(a.updatePOSOutletConfiguration())}),r(3," Save "),i()}}function _t(t,s){if(t&1){let e=O();n(0,"div",7)(1,"div",8)(2,"div",9)(3,"label",10),r(4),i()(),n(5,"div",11)(6,"p-select",12),_("ngModelChange",function(a){let p=d(e).$index,S=c(3);return u(S.updateAccountById(a,p))}),i()()()()}if(t&2){let e=s.$implicit,o=s.$index,a=c(3);l(4),x(e.outletName.slice(0,15)),l(2),N(A(7,dt)),m("ngModel",a.paymentForm().form.accounts[o].accountID)("virtualScroll",!0)("virtualScrollItemSize",50)("options",a.paymentForm().options.chartOfAccount.result)}}function ft(t,s){if(t&1&&(n(0,"p-card")(1,"p-scrollpanel")(2,"div",6),M(3,_t,7,8,"div",7,I),i()()()),t&2){let e=c(2);N(A(4,ct)),l(),N(A(5,st)),l(2),E(e.paymentForm().form.accounts)}}function gt(t,s){t&1&&(n(0,"app-main-panel",3),g(1,ut,4,0,"ng-template",null,0,f)(3,ft,5,6,"ng-template",null,1,f),i())}var Ve=(()=>{class t{constructor(){this.route=C(q),this.POSSetupService=C(T),this.paymentForm=y(null)}ngOnInit(){this.route.paramMap.pipe(W(e=>+e.get("id")),H(e=>this.POSSetupService.fetchPOSPaymentFormConfiguration({ID:e})),P(e=>{this.paymentForm.set(e)}),j("response")).subscribe()}updateAccountById(e,o){let a=this.paymentForm().form.accounts,p=h(v({},this.paymentForm()),{form:h(v({},this.paymentForm().form),{accounts:a.map((S,te)=>te===o?h(v({},S),{accountID:e}):S)})});this.paymentForm.set(p)}updatePOSOutletConfiguration(){let e={form:[...this.paymentForm().form.accounts]};this.POSSetupService.updatePOSPaymentConfiguration(e).pipe(j("response")).subscribe()}static{this.\u0275fac=function(o){return new(o||t)}}static{this.\u0275cmp=b({type:t,selectors:[["app-pos-payment-form"]],decls:1,vars:1,consts:[["actionButton",""],["content",""],["pageTitle","Payment Form Accounting",4,"ngIf"],["pageTitle","Payment Form Accounting"],[1,"btn","btn-secondary","rounded"],[1,"btn","btn-primary","rounded",3,"click"],[1,"row","row-gap-3"],[1,"col-4","d-flex","flex-column","gap-2"],[1,"row","row-gap-4"],[1,"col-6"],["for",""],[1,"col"],["optionLabel","value","optionValue","key","placeholder","Select an account",1,"w-full",3,"ngModelChange","ngModel","virtualScroll","virtualScrollItemSize","options"]],template:function(o,a){o&1&&g(0,gt,5,0,"app-main-panel",2),o&2&&m("ngIf",a.paymentForm())},dependencies:[G,R,D,w,V,Y,X,L,B,K,k,$],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return t})();var xt=()=>({width:"100%",height:"calc(100vh - 150px)"});function Ct(t,s){if(t&1){let e=O();n(0,"button",3),r(1,"Cancel"),i(),n(2,"button",4),_("click",function(){d(e);let a=c();return u(a.updatePOSTaxConfiguration())}),r(3," Save "),i()}}function St(t,s){if(t&1){let e=O();n(0,"div",8)(1,"div",9)(2,"label",10),r(3),i(),n(4,"p-select",11),_("ngModelChange",function(a){let p=d(e).$index,S=c(2);return u(S.updateAccountID(a,p))}),i()()()}if(t&2){let e=s.$implicit,o=s.$index,a=c(2);l(3),x(e.name),l(),m("options",a.taxForm().options.chartOfAccount)("ngModel",a.taxForm().form[o].accountID)}}function vt(t,s){if(t&1&&(n(0,"p-card")(1,"p-scroll-panel")(2,"div",5)(3,"div",6)(4,"div",7),M(5,St,5,3,"div",8,I),i()()()()()),t&2){let e=c();l(),N(A(2,xt)),l(4),E(e.taxForm().form)}}var ke=(()=>{class t{constructor(){this.POSSetupService=C(T),this.taxForm=y(null)}ngOnInit(){this.POSSetupService.fetchPOSTaxConfiguration().pipe(P(e=>{this.taxForm.set(e)})).subscribe()}updateAccountID(e,o){let a=this.taxForm().form,p=h(v({},this.taxForm()),{form:a.map((S,te)=>te===o?h(v({},S),{accountID:e}):S)});this.taxForm.set(p)}updatePOSTaxConfiguration(){let e={form:[...this.taxForm().form]};this.POSSetupService.updatePOSTaxConfiguration(e).pipe(P(o=>console.log(o))).subscribe()}static{this.\u0275fac=function(o){return new(o||t)}}static{this.\u0275cmp=b({type:t,selectors:[["app-pos-tax"]],decls:5,vars:0,consts:[["actionButton",""],["content",""],["pageTitle","Tax Setup"],[1,"btn","btn-secondary","rounded"],[1,"btn","btn-primary","rounded",3,"click"],[1,"row"],[1,"col"],[1,"row","row-gap-3"],[1,"col-3"],[1,"d-flex","flex-column"],["for",""],["optionLabel","value","optionValue","key","placeholder","Select a account",3,"ngModelChange","options","ngModel"]],template:function(o,a){o&1&&(n(0,"app-main-panel",2),g(1,Ct,4,0,"ng-template",null,0,f)(3,vt,7,3,"ng-template",null,1,f),i())},dependencies:[D,G,R,w,L,B,Y,X,K,k,$],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return t})();var ht=()=>({"min-width":"50rem"}),yt=t=>[t];function Pt(t,s){t&1&&(n(0,"button",6),r(1," Delete "),i())}function bt(t,s){if(t&1&&g(0,Pt,2,0,"button",5),t&2){let e=c();m("ngIf",e.hasCheckedItems())}}function It(t,s){t&1&&(n(0,"tr")(1,"th",8),F(2,"p-tableHeaderCheckbox"),i(),n(3,"th"),r(4,"Name"),i(),n(5,"th"),r(6,"Description"),i()())}function Mt(t,s){if(t&1&&(n(0,"tr")(1,"td"),F(2,"p-tableCheckbox",9),i(),n(3,"td")(4,"a",10),r(5),i()(),n(6,"td"),r(7),i()()),t&2){let e,o=s.$implicit;l(2),m("value",o),l(2),m("routerLink",U(4,yt,o.id)),l(),x(o.name),l(2),x((e=o.description)!==null&&e!==void 0?e:"N/A")}}function Et(t,s){if(t&1){let e=O();n(0,"p-table",7),_("onRowSelect",function(a){d(e);let p=c();return u(p.onRowSelect(a))})("onRowUnselect",function(a){d(e);let p=c();return u(p.onRowSelect(a))})("onHeaderCheckboxToggle",function(a){d(e);let p=c();return u(p.onSelectAll(a))}),g(1,It,7,0,"ng-template",null,2,f)(3,Mt,8,6,"ng-template",null,3,f),i()}if(t&2){let e=c();m("value",e.writeoffList().data)("tableStyle",A(2,ht))}}var Re=(()=>{class t{constructor(){this.POSSetupService=C(T),this.writeoffList=y(null),this.hasCheckedItems=pe(()=>{let e=this.writeoffList();return!e||!e.data||!Array.isArray(e.data)?!1:e.data.some(o=>o&&o.checked===!0)})}ngOnInit(){this.POSSetupService.fetchPOSWriteOffConfiguration().pipe(W(e=>h(v({},e),{data:e.data.map(o=>h(v({},o),{checked:!1}))})),P(e=>{this.writeoffList.set(e)})).subscribe()}onRowSelect(e){console.log("Selected Row:",e.data);let o=this.writeoffList();if(!o||!o.data)return;let a=o.data.findIndex(p=>p.id===e.data.id);if(a!==-1){let p=[...o.data];p[a]=h(v({},p[a]),{checked:!p[a].checked}),this.writeoffList.set(h(v({},o),{data:p}))}}onSelectAll(e){let o=this.writeoffList();if(!o?.data)return;let a=o.data.map(p=>h(v({},p),{checked:e.checked}));this.writeoffList.set(h(v({},o),{data:a}))}static{this.\u0275fac=function(o){return new(o||t)}}static{this.\u0275cmp=b({type:t,selectors:[["app-pos-writeoff"]],decls:5,vars:0,consts:[["actionButton",""],["content",""],["header",""],["body",""],["pageTitle","Write Off"],["class","btn btn-primary rounded",4,"ngIf"],[1,"btn","btn-primary","rounded"],["dataKey","id",3,"onRowSelect","onRowUnselect","onHeaderCheckboxToggle","value","tableStyle"],[2,"width","4rem"],[3,"value"],[1,"link-primary",3,"routerLink"]],template:function(o,a){o&1&&(n(0,"app-main-panel",4),g(1,bt,1,1,"ng-template",null,0,f)(3,Et,5,3,"ng-template",null,1,f),i())},dependencies:[D,w,V,ee,Z,Se,ve,Q,J],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return t})();var Ot=()=>({witdh:"100%",height:"calc(100vh - 150px)"});function wt(t,s){if(t&1){let e=O();n(0,"button",4),r(1,"Cancel"),i(),n(2,"button",5),_("click",function(){d(e);let a=c(2);return u(a.updateWriteOffConfiguration())}),r(3," Save "),i()}}function Dt(t,s){if(t&1){let e=O();n(0,"div",9)(1,"div",10)(2,"label",11),r(3),i(),n(4,"p-select",12),_("ngModelChange",function(a){let p=d(e).$index,S=c(3);return u(S.updateAccountById(a,p))}),i()()()}if(t&2){let e=s.$implicit,o=c(3);l(3),x(e.name),l(),m("ngModel",e.accountID)("options",o.writeOffForm().options.account)("virtualScroll",!0)("virtualScrollItemSize",50)}}function Tt(t,s){if(t&1&&(n(0,"p-card")(1,"p-scroll-panel")(2,"div",6)(3,"div",7)(4,"div",8),M(5,Dt,5,5,"div",9,I),i()()()()()),t&2){let e=c(2);l(),N(A(2,Ot)),l(4),E(e.writeOffForm().form)}}function Ft(t,s){if(t&1&&(n(0,"app-main-panel",3),g(1,wt,4,0,"ng-template",null,0,f)(3,Tt,7,3,"ng-template",null,1,f),i()),t&2){let e=c();m("pageTitle","Write Off Form "+e.writeOffForm().info.name)}}var Ge=(()=>{class t{constructor(){this.POSSetupService=C(T),this.route=C(q),this.writeOffForm=y(null)}ngOnInit(){this.route.paramMap.pipe(W(e=>e.get("id")),H(e=>this.POSSetupService.fetchPOSWriteOffFormConfiguration({ID:e})),P(e=>this.writeOffForm.set(e))).subscribe()}updateAccountById(e,o){let a=this.writeOffForm().form,p=h(v({},this.writeOffForm()),{form:a.map((S,te)=>te===o?h(v({},S),{accountID:e}):S)});this.writeOffForm.set(p)}updateWriteOffConfiguration(){let e={form:this.writeOffForm().form};this.POSSetupService.updatePOSWriteOffConfiguration(e).pipe().subscribe()}static{this.\u0275fac=function(o){return new(o||t)}}static{this.\u0275cmp=b({type:t,selectors:[["app-pos-writeoff-form"]],decls:1,vars:1,consts:[["actionButton",""],["content",""],[3,"pageTitle",4,"ngIf"],[3,"pageTitle"],[1,"btn","btn-secondary","rounded"],[1,"btn","btn-primary","rounded",3,"click"],[1,"row"],[1,"col"],[1,"row","row-gap-3"],[1,"col-3"],[1,"d-flex","flex-column"],["for",""],["optionLabel","value","optionValue","key","placeholder","Select a City",3,"ngModelChange","ngModel","options","virtualScroll","virtualScrollItemSize"]],template:function(o,a){o&1&&g(0,Ft,5,1,"app-main-panel",2),o&2&&m("ngIf",a.writeOffForm())},dependencies:[D,w,V,G,R,Y,X,L,B,K,k,$],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return t})();var Ni=[{path:"",redirectTo:"global",pathMatch:"full"},{path:"",children:[{path:"global",component:Ee},{path:"outlets",component:Te},{path:"outlets/:id",component:Fe},{path:"payments",component:De},{path:"payments/:id",component:Ve},{path:"taxs",component:ke},{path:"writeoff",component:Re},{path:"writeoff/:id",component:Ge}]}];export{Ni as POS_SETUP_ROUTES};
|
package/chunk-AKBPKNCH.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Z as o}from"./chunk-RSHFIZV3.js";function i(e="emit"){return r=>r.pipe(o(t=>console.log(`${e}`,t)))}export{i as a};
|
package/chunk-B4JAAGJX.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a}from"./chunk-UOFRXQI7.js";import{g as x}from"./chunk-EN5MVYJQ.js";import"./chunk-Z4SGDPGH.js";import"./chunk-FJ7O4K2Y.js";import"./chunk-PNAWRNGD.js";import"./chunk-FVXLQNAC.js";import{a as C}from"./chunk-T3ZCO6EC.js";import"./chunk-S35HUXPS.js";import"./chunk-25PFXJAK.js";import{t as v}from"./chunk-GRTIJ77T.js";import{Bb as p,Ic as _,Ub as o,Vb as r,_b as u,dc as f,ec as g,ia as i,mc as M,qa as m,ra as c,ub as s,uc as d}from"./chunk-RSHFIZV3.js";import"./chunk-C6Q5SG76.js";function S(e,b){if(e&1){let t=u();o(0,"div",2)(1,"button",3),f("click",function(){m(t);let l=g();return c(l.onMigrate())}),M(2,"Migrate"),r()()}}var V=(()=>{class e{constructor(){this.migrateService=i(a),this.toastr=i(C)}onMigrate(){this.migrateService.migrateManualJournal().subscribe(t=>{this.toastr.success(t.message,"Migration Successful")})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=s({type:e,selectors:[["app-manual-journal"]],features:[d([a])],decls:3,vars:0,consts:[["content",""],["pageTitle","Manual Journal"],[1,"container","my-2"],[1,"btn","btn-primary",3,"click"]],template:function(n,l){n&1&&(o(0,"app-main-panel",1),p(1,S,3,0,"ng-template",null,0,_),r())},dependencies:[x,v],encapsulation:2})}}return e})();export{V as ManualJournalComponent};
|