dealposbooks 5.47.0 → 5.48.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 +75 -26
- package/assets/images/users/user1_160.jpg +0 -0
- package/assets/images/users/user1_40.jpg +0 -0
- package/assets/images/users/user1_80.jpg +0 -0
- package/assets/scss/layouts/_sidebar.scss +0 -1
- package/{chunk-2MKKFLNJ.js → chunk-2BI7WNJP.js} +1 -1
- package/{chunk-OVEQKHUV.js → chunk-2H7KQZEC.js} +2 -2
- package/{chunk-XT4YHL2M.js → chunk-2JNXKEYZ.js} +1 -1
- package/{chunk-53HJBLFX.js → chunk-2VZ7JZIO.js} +1 -1
- package/{chunk-YFNWEI3R.js → chunk-2XW2ZOT4.js} +1 -1
- package/{chunk-E4MHRZVH.js → chunk-3DBSHDAQ.js} +1 -1
- package/{chunk-MT3DTYJO.js → chunk-3NWFEFT2.js} +1 -1
- package/{chunk-JOHRJHEX.js → chunk-3UAQHNUY.js} +1 -1
- package/{chunk-3A4BFUGD.js → chunk-3VQUNDVT.js} +1 -1
- package/{chunk-CL4EKWSU.js → chunk-4LI7GDDM.js} +1 -1
- package/chunk-52U5NSQT.js +2 -0
- package/{chunk-VK3G2VIU.js → chunk-5B5AMMR3.js} +1 -1
- package/{chunk-5K3KAKU5.js → chunk-5FV7K5RQ.js} +1 -1
- package/{chunk-6NX36ZC2.js → chunk-6DTQWLB3.js} +1 -1
- package/chunk-6GQ4PTPT.js +7 -0
- package/chunk-6QJHEOXN.js +7 -0
- package/chunk-6WWXJJID.js +1 -0
- package/chunk-72H3DW5Z.js +1 -0
- package/{chunk-L2524E6T.js → chunk-7OP477BS.js} +1 -1
- package/{chunk-EIV4TELQ.js → chunk-7WCUKMRG.js} +1 -1
- package/{chunk-XDJSQLQN.js → chunk-ACDLAA4B.js} +1 -1
- package/{chunk-BUDZ3ONE.js → chunk-AD247LWQ.js} +1 -1
- package/{chunk-HQMTUZZQ.js → chunk-AMGBUOC4.js} +1 -1
- package/{chunk-CWFLUFKM.js → chunk-AN4SAUSA.js} +1 -1
- package/{chunk-KIBBRAL5.js → chunk-ARJ7OCQO.js} +1 -1
- package/{chunk-EEJGJ7WF.js → chunk-B3VZ2ZHJ.js} +1 -1
- package/{chunk-5BXMDXZD.js → chunk-B4C3ZPN6.js} +1 -1
- package/{chunk-WFIXL354.js → chunk-BG6BR7KI.js} +1 -1
- package/chunk-BKTBVFNX.js +1 -0
- package/chunk-BNPR5SPH.js +1 -0
- package/chunk-BT7Y4ADP.js +1 -0
- package/{chunk-5YO43YBO.js → chunk-CEK7MQW2.js} +1 -1
- package/chunk-CVDRHTES.js +1 -0
- package/{chunk-IYFNOI7S.js → chunk-CZSVRFCL.js} +1 -1
- package/chunk-D6IS6PE6.js +1 -0
- package/{chunk-GDQUB54I.js → chunk-DDM2KWNX.js} +1 -1
- package/{chunk-Q7SK53ST.js → chunk-DJXQKSLT.js} +1 -1
- package/chunk-DSZOROE6.js +1 -0
- package/{chunk-2D2YD753.js → chunk-DTYVTTET.js} +1 -1
- package/{chunk-PTQPB44D.js → chunk-E6SW7I4D.js} +1 -1
- package/{chunk-NDLX3ORI.js → chunk-E7QWESN4.js} +1 -1
- package/{chunk-CNXYBR45.js → chunk-ENH6HA3V.js} +1 -1
- package/{chunk-6XE7LGUS.js → chunk-EQTP2O7O.js} +1 -1
- package/{chunk-NHHXXJY6.js → chunk-F3RSX7TC.js} +1 -1
- package/{chunk-3IEOINKV.js → chunk-F6LZM7H5.js} +1 -1
- package/{chunk-AOOG6YOT.js → chunk-F7PVAVLQ.js} +1 -1
- package/{chunk-BXEGWIR3.js → chunk-F7XGJYCZ.js} +1 -1
- package/{chunk-53I5JFOQ.js → chunk-FSB3LHPU.js} +1 -1
- package/{chunk-S3FQPUAS.js → chunk-FUCKNGW4.js} +1 -1
- package/{chunk-AHX56FH2.js → chunk-FVYL3BQ7.js} +1 -1
- package/{chunk-5SYYPB6N.js → chunk-G42V3ZZU.js} +1 -1
- package/{chunk-C3IOIS5V.js → chunk-H7GQCGCR.js} +1 -1
- package/{chunk-F5CCLXIY.js → chunk-IDHDHBFV.js} +1 -1
- package/{chunk-JZVNZ3I3.js → chunk-JD3HX7VY.js} +1 -1
- package/{chunk-DEOAL7PG.js → chunk-JE4XET33.js} +1 -1
- package/{chunk-VSHPIUZM.js → chunk-KZHI6PGZ.js} +1 -1
- package/{chunk-PXN4RATH.js → chunk-LBREDZL5.js} +1 -1
- package/{chunk-35UWKNGE.js → chunk-LCKRY7CZ.js} +1 -1
- package/{chunk-SZAGTA5I.js → chunk-LXLOWSN6.js} +1 -1
- package/{chunk-YZTBV6HG.js → chunk-M4SSELXT.js} +1 -1
- package/{chunk-IMVMIXVJ.js → chunk-ME4ALIS7.js} +1 -1
- package/{chunk-LABWETHZ.js → chunk-MHRSQRHT.js} +1 -1
- package/{chunk-CWDU4F7J.js → chunk-NNNKDAA2.js} +1 -1
- package/{chunk-DRTMMJ4Q.js → chunk-NPXVSAMB.js} +1 -1
- package/chunk-O76TW6JA.js +1 -0
- package/{chunk-U5XXKH2H.js → chunk-OJTHBHGK.js} +1 -1
- package/{chunk-RZFXAB7W.js → chunk-OT3UFDBI.js} +1 -1
- package/chunk-OVDG3ZBT.js +1 -0
- package/{chunk-Q4LKKVQU.js → chunk-PGOSR3RI.js} +1 -1
- package/{chunk-XPRP6AB4.js → chunk-PPXXWO4E.js} +1 -1
- package/{chunk-ML5KV2U2.js → chunk-PQL4GCC5.js} +1 -1
- package/{chunk-QWTGY7FA.js → chunk-QPPFPDWZ.js} +1 -1
- package/{chunk-EQU7DDK6.js → chunk-RE5GBQH6.js} +1 -1
- package/{chunk-PKOERZXQ.js → chunk-RM5HLXNW.js} +1 -1
- package/{chunk-NM5M567G.js → chunk-RXR5DXWS.js} +1 -1
- package/{chunk-ZUDQOT7C.js → chunk-S27Z7D3D.js} +1 -1
- package/{chunk-GJYEM7DL.js → chunk-S2BFXF7C.js} +1 -1
- package/{chunk-DTFLX2XQ.js → chunk-SFMFIWMX.js} +1 -1
- package/{chunk-OLLF6BKH.js → chunk-SUXEBUIX.js} +1 -1
- package/chunk-SV6BE4HG.js +130 -0
- package/{chunk-SEXB43QC.js → chunk-T367AQJ2.js} +1 -1
- package/{chunk-SS4J7T3N.js → chunk-TOGXYKTE.js} +1 -1
- package/{chunk-IGWIRCAS.js → chunk-U2VDC52W.js} +1 -1
- package/{chunk-OW25MQS7.js → chunk-UEFTMQDF.js} +1 -1
- package/{chunk-4X3G6MGP.js → chunk-UI2UMYSE.js} +1 -1
- package/{chunk-RXOOTYEO.js → chunk-UPSNJEHO.js} +1 -1
- package/{chunk-LWYAFMN3.js → chunk-URH77XNK.js} +1 -1
- package/{chunk-HZ7BZ72K.js → chunk-UVSR4LPB.js} +1 -1
- package/{chunk-AXU3K2IY.js → chunk-V22QPBAO.js} +1 -1
- package/{chunk-T3EH4DR2.js → chunk-VDXZGF3M.js} +1 -1
- package/{chunk-ZBO62XAM.js → chunk-VKT27VPR.js} +2 -2
- package/{chunk-OIBDX2CA.js → chunk-VMI3QWC6.js} +1 -1
- package/{chunk-VTCV67A4.js → chunk-VVAI7ZGN.js} +1 -1
- package/{chunk-6PNHT5U7.js → chunk-VW2FJYIZ.js} +1 -1
- package/{chunk-VL2HEHI5.js → chunk-W5E37PZP.js} +1 -1
- package/chunk-W63NE6LU.js +229 -0
- package/{chunk-OJ2VC4ER.js → chunk-WKHQICFW.js} +1 -1
- package/{chunk-DHLFL3KH.js → chunk-WMZF4DQK.js} +1 -1
- package/{chunk-ETFYQ4GV.js → chunk-WOYTUHJD.js} +1 -1
- package/{chunk-WPMC3LJJ.js → chunk-WPJGKTVO.js} +5 -5
- package/{chunk-ZMIVD3SF.js → chunk-WXIG4CXY.js} +1 -1
- package/{chunk-Q47KHO2M.js → chunk-XCTUTMD3.js} +1 -1
- package/{chunk-MBJKUKHJ.js → chunk-XOSALV7T.js} +1 -1
- package/{chunk-RF27SIL3.js → chunk-Y7SF5NXD.js} +1 -1
- package/{chunk-DU72RNAU.js → chunk-YPOBALKC.js} +1 -1
- package/{chunk-V4SH72WU.js → chunk-ZFNIPERQ.js} +1 -1
- package/chunk-ZK43JB4A.js +2 -0
- package/{chunk-5JZTWUDG.js → chunk-ZQWFATZY.js} +1 -1
- package/index.html +2 -2
- package/main-XTOQBEFQ.js +1 -0
- package/package.json +1 -1
- package/{styles-4HAX3IDP.css → styles-4L5CAR46.css} +1 -1
- package/chunk-2RNKYO2Q.js +0 -1
- package/chunk-5CZNOXPC.js +0 -1
- package/chunk-5HZBSMCT.js +0 -7
- package/chunk-6ZZZTNIH.js +0 -130
- package/chunk-EPLZY6T4.js +0 -1
- package/chunk-M3TKVRYP.js +0 -1
- package/chunk-NMCKMUY4.js +0 -7
- package/chunk-QF4D5YPK.js +0 -1
- package/chunk-SN7DLFX2.js +0 -1
- package/chunk-TUFQ5JVG.js +0 -180
- package/chunk-V4B5LQYD.js +0 -2
- package/chunk-VZ5CMS5O.js +0 -2
- package/chunk-WGJFR6CK.js +0 -1
- package/main-Q2T6QX2N.js +0 -1
package/3rdpartylicenses.txt
CHANGED
|
@@ -137,6 +137,11 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
|
137
137
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
138
138
|
THE SOFTWARE.
|
|
139
139
|
|
|
140
|
+
--------------------------------------------------------------------------------
|
|
141
|
+
Package: highcharts
|
|
142
|
+
License: "https://www.highcharts.com/license"
|
|
143
|
+
|
|
144
|
+
|
|
140
145
|
--------------------------------------------------------------------------------
|
|
141
146
|
Package: uuid
|
|
142
147
|
License: "MIT"
|
|
@@ -331,40 +336,84 @@ License: "SEE LICENSE IN LICENSE"
|
|
|
331
336
|
|
|
332
337
|
|
|
333
338
|
--------------------------------------------------------------------------------
|
|
334
|
-
Package: highcharts
|
|
335
|
-
License: "
|
|
339
|
+
Package: highcharts-angular
|
|
340
|
+
License: "MIT"
|
|
336
341
|
|
|
342
|
+
Official Integration License Terms
|
|
343
|
+
==================================
|
|
337
344
|
|
|
338
|
-
|
|
339
|
-
Package: highcharts-angular
|
|
340
|
-
License: "SEE LICENSE IN <LICENSE>"
|
|
345
|
+
These Integration License Terms ("Integration Terms") govern the use of Highsoft's Official Integrations. By downloading, installing, or using any Official Integration, you ("Licensee") agree to these Integration Terms.
|
|
341
346
|
|
|
342
|
-
|
|
347
|
+
1. Relationship to Highsoft Software License
|
|
348
|
+
--------------------------------------------
|
|
349
|
+
The Official Integrations are provided as an optional additional service and may only be used in conjunction by Licensee with a valid Highsoft software license (“Software License”).
|
|
343
350
|
|
|
344
|
-
|
|
351
|
+
These Integration Terms shall not modify or replace the terms of any Software License (“License Terms”).
|
|
345
352
|
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
353
|
+
2. Definition of Official Integration
|
|
354
|
+
-------------------------------------
|
|
355
|
+
"Official Integration" means the proprietary software component designed and made available to Licensee by Highsoft which facilitates integration between applications and the Software granted under a valid Software License.
|
|
349
356
|
|
|
350
|
-
|
|
351
|
-
a copy of this software and associated documentation files (the
|
|
352
|
-
"Software"), to deal in the Software without restriction, including
|
|
353
|
-
without limitation the rights to use, copy, modify, merge, publish,
|
|
354
|
-
distribute, sublicense, and/or sell copies of the Software, and to
|
|
355
|
-
permit persons to whom the Software is furnished to do so, subject to
|
|
356
|
-
the following conditions:
|
|
357
|
+
The Official Integration provides a streamlined interface, enabling seamless integration of the Software’s features into applications for Android, iOS, and Web environments. Official Integrations may include open source software, and separate terms and conditions may apply. In case of conflict, such separate terms shall prevail.
|
|
357
358
|
|
|
358
|
-
|
|
359
|
-
included in all copies or substantial portions of the Software.
|
|
359
|
+
Details and documentation about Official Integrations are accessible at any time via the Highsoft Website.
|
|
360
360
|
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
361
|
+
3. Grant of License
|
|
362
|
+
-------------------
|
|
363
|
+
Highsoft grants Licensee a non-exclusive, non-transferable, revocable right to use the Official Integrations solely in conjunction with licensed Highsoft software under a valid Software License.
|
|
364
|
+
|
|
365
|
+
These terms do not grant Licensee rights to modify, distribute, sublicense, transfer, or create derivative works of the Official Integrations, unless otherwise specified.
|
|
366
|
+
|
|
367
|
+
4. Ownership and Copyright
|
|
368
|
+
--------------------------
|
|
369
|
+
Highsoft retains all rights, title, and interest in and to the Official Integrations, including but not limited to copyrights and trademarks.
|
|
370
|
+
|
|
371
|
+
Licensee does not acquire any ownership or additional rights beyond those explicitly granted herein.
|
|
372
|
+
|
|
373
|
+
5. No Fees, No Support Obligations
|
|
374
|
+
----------------------------------
|
|
375
|
+
Licensee pays the License Fee for the Licensed Software. Official Integrations are provided at no additional cost via the Highsoft Website.
|
|
376
|
+
|
|
377
|
+
Highsoft may offer updates or fixes at its discretion. No obligation for support, maintenance, or future updates is implied.
|
|
378
|
+
|
|
379
|
+
6. No Warranties
|
|
380
|
+
----------------
|
|
381
|
+
The Official Integrations are provided "AS IS", without warranties of any kind, express or implied, including but not limited to:
|
|
382
|
+
|
|
383
|
+
- Merchantability or fitness for a particular purpose;
|
|
384
|
+
- Compatibility or uninterrupted functionality with Licensee’s systems;
|
|
385
|
+
- Error-free or defect-free performance;
|
|
386
|
+
- Non-infringement.
|
|
387
|
+
|
|
388
|
+
7. Limitation of Liability
|
|
389
|
+
--------------------------
|
|
390
|
+
Highsoft shall not be liable for any direct, indirect, incidental, special, or consequential damages from the use or inability to use the Official Integrations.
|
|
391
|
+
|
|
392
|
+
Licensee assumes all risk associated with such use.
|
|
393
|
+
|
|
394
|
+
8. Relationship to Third-Party Applications
|
|
395
|
+
-------------------------------------------
|
|
396
|
+
These terms do not exempt Licensee from third-party application terms.
|
|
397
|
+
|
|
398
|
+
Licensee is solely responsible for complying with those terms and shall indemnify Highsoft for any related violations.
|
|
399
|
+
|
|
400
|
+
9. Termination
|
|
401
|
+
--------------
|
|
402
|
+
These terms automatically terminate if the Licensee’s Software License expires, is terminated, or revoked.
|
|
403
|
+
|
|
404
|
+
Highsoft may revoke or discontinue access to the Official Integrations at any time at its sole discretion.
|
|
405
|
+
|
|
406
|
+
10. Miscellaneous
|
|
407
|
+
-----------------
|
|
408
|
+
These terms do not modify the Software License in any way, nor extend Highsoft’s obligations under it.
|
|
409
|
+
|
|
410
|
+
Highsoft may update these terms at any time by publishing a new version on its website. The most recent version governs Licensee’s use, regardless of the version applicable at the time of download or purchase.
|
|
411
|
+
|
|
412
|
+
11. Applicable Law and Venue
|
|
413
|
+
----------------------------
|
|
414
|
+
These terms are governed by the laws of Norway.
|
|
415
|
+
|
|
416
|
+
Any disputes shall be settled by the regular courts of Norway. The exclusive venue in the first instance shall be Sogn and Fjordane District Court (Sogn og Fjordane tingrett).
|
|
368
417
|
|
|
369
418
|
--------------------------------------------------------------------------------
|
|
370
419
|
Package: ngx-scrollbar
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{H as dt,a as Y,k as J}from"./chunk-VZ5CMS5O.js";import{c as K,d as B,f as R,g as E,h as F}from"./chunk-F2X3VGZZ.js";import{$b as q,Ba as Z,Db as D,Ha as w,Jb as S,Kb as x,Lb as r,Mb as A,Pb as h,Vb as u,Wb as p,Xb as O,Yb as G,Zb as U,bb as rt,bc as ut,ca as N,cb as z,da as nt,ec as M,fa as ot,fc as c,g as f,ha as y,hb as a,ia as C,ja as at,kb as ct,nb as g,qa as k,ra as L,rc as m,tc as _,wa as j,xb as $,yb as lt}from"./chunk-NMCKMUY4.js";import{a as l,b as T}from"./chunk-YQFG5XE2.js";var ht=["toast-component",""];function Tt(s,n){if(s&1){let t=q();u(0,"button",5),M("click",function(){k(t);let i=c();return L(i.remove())}),u(1,"span",6),m(2,"\xD7"),p()()}}function yt(s,n){if(s&1&&(G(0),m(1),U()),s&2){let t=c(2);a(),_("[",t.duplicatesCount+1,"]")}}function Ct(s,n){if(s&1&&(u(0,"div"),m(1),D(2,yt,2,1,"ng-container",4),p()),s&2){let t=c();h(t.options.titleClass),x("aria-label",t.title),a(),_(" ",t.title," "),a(),r("ngIf",t.duplicatesCount)}}function bt(s,n){if(s&1&&O(0,"div",7),s&2){let t=c();h(t.options.messageClass),r("innerHTML",t.message,z)}}function It(s,n){if(s&1&&(u(0,"div",8),m(1),p()),s&2){let t=c();h(t.options.messageClass),x("aria-label",t.message),a(),_(" ",t.message," ")}}function wt(s,n){if(s&1&&(u(0,"div"),O(1,"div",9),p()),s&2){let t=c();a(),A("width",t.width()+"%")}}function Dt(s,n){if(s&1){let t=q();u(0,"button",5),M("click",function(){k(t);let i=c();return L(i.remove())}),u(1,"span",6),m(2,"\xD7"),p()()}}function xt(s,n){if(s&1&&(G(0),m(1),U()),s&2){let t=c(2);a(),_("[",t.duplicatesCount+1,"]")}}function At(s,n){if(s&1&&(u(0,"div"),m(1),D(2,xt,2,1,"ng-container",4),p()),s&2){let t=c();h(t.options.titleClass),x("aria-label",t.title),a(),_(" ",t.title," "),a(),r("ngIf",t.duplicatesCount)}}function Ot(s,n){if(s&1&&O(0,"div",7),s&2){let t=c();h(t.options.messageClass),r("innerHTML",t.message,z)}}function Mt(s,n){if(s&1&&(u(0,"div",8),m(1),p()),s&2){let t=c();h(t.options.messageClass),x("aria-label",t.message),a(),_(" ",t.message," ")}}function Rt(s,n){if(s&1&&(u(0,"div"),O(1,"div",9),p()),s&2){let t=c();a(),A("width",t.width()+"%")}}var Q=class{_attachedHost;component;viewContainerRef;injector;constructor(n,t){this.component=n,this.injector=t}attach(n,t){return this._attachedHost=n,n.attach(this,t)}detach(){let n=this._attachedHost;if(n)return this._attachedHost=void 0,n.detach()}get isAttached(){return this._attachedHost!=null}setAttachedHost(n){this._attachedHost=n}},W=class{_attachedPortal;_disposeFn;attach(n,t){return this._attachedPortal=n,this.attachComponentPortal(n,t)}detach(){this._attachedPortal&&this._attachedPortal.setAttachedHost(),this._attachedPortal=void 0,this._disposeFn&&(this._disposeFn(),this._disposeFn=void 0)}setDisposeFn(n){this._disposeFn=n}},X=class{_overlayRef;componentInstance;duplicatesCount=0;_afterClosed=new f;_activate=new f;_manualClose=new f;_resetTimeout=new f;_countDuplicate=new f;constructor(n){this._overlayRef=n}manualClose(){this._manualClose.next(),this._manualClose.complete()}manualClosed(){return this._manualClose.asObservable()}timeoutReset(){return this._resetTimeout.asObservable()}countDuplicate(){return this._countDuplicate.asObservable()}close(){this._overlayRef.detach(),this._afterClosed.next(),this._manualClose.next(),this._afterClosed.complete(),this._manualClose.complete(),this._activate.complete(),this._resetTimeout.complete(),this._countDuplicate.complete()}afterClosed(){return this._afterClosed.asObservable()}isInactive(){return this._activate.isStopped}activate(){this._activate.next(),this._activate.complete()}afterActivate(){return this._activate.asObservable()}onDuplicate(n,t){n&&this._resetTimeout.next(),t&&this._countDuplicate.next(++this.duplicatesCount)}},b=class{toastId;config;message;title;toastType;toastRef;_onTap=new f;_onAction=new f;constructor(n,t,e,i,o,d){this.toastId=n,this.config=t,this.message=e,this.title=i,this.toastType=o,this.toastRef=d,this.toastRef.afterClosed().subscribe(()=>{this._onAction.complete(),this._onTap.complete()})}triggerTap(){this._onTap.next(),this.config.tapToDismiss&&this._onTap.complete()}onTap(){return this._onTap.asObservable()}triggerAction(n){this._onAction.next(n)}onAction(){return this._onAction.asObservable()}},pt={maxOpened:0,autoDismiss:!1,newestOnTop:!0,preventDuplicates:!1,countDuplicates:!1,resetTimeoutOnDuplicate:!1,includeTitleDuplicates:!1,iconClasses:{error:"toast-error",info:"toast-info",success:"toast-success",warning:"toast-warning"},closeButton:!1,disableTimeOut:!1,timeOut:5e3,extendedTimeOut:1e3,enableHtml:!1,progressBar:!1,toastClass:"ngx-toastr",positionClass:"toast-top-right",titleClass:"toast-title",messageClass:"toast-message",easing:"ease-in",easeTime:300,tapToDismiss:!0,onActivateTick:!1,progressAnimation:"decreasing"},mt=new ot("ToastConfig"),tt=class extends W{_hostDomElement;_componentFactoryResolver;_appRef;constructor(n,t,e){super(),this._hostDomElement=n,this._componentFactoryResolver=t,this._appRef=e}attachComponentPortal(n,t){let e=this._componentFactoryResolver.resolveComponentFactory(n.component),i;return i=e.create(n.injector),this._appRef.attachView(i.hostView),this.setDisposeFn(()=>{this._appRef.detachView(i.hostView),i.destroy()}),t?this._hostDomElement.insertBefore(this._getComponentRootNode(i),this._hostDomElement.firstChild):this._hostDomElement.appendChild(this._getComponentRootNode(i)),i}_getComponentRootNode(n){return n.hostView.rootNodes[0]}},Et=(()=>{class s{_document=C(Y);_containerElement;ngOnDestroy(){this._containerElement&&this._containerElement.parentNode&&this._containerElement.parentNode.removeChild(this._containerElement)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){let t=this._document.createElement("div");t.classList.add("overlay-container"),t.setAttribute("aria-live","polite"),this._document.body.appendChild(t),this._containerElement=t}static \u0275fac=function(e){return new(e||s)};static \u0275prov=N({token:s,factory:s.\u0275fac,providedIn:"root"})}return s})(),et=class{_portalHost;constructor(n){this._portalHost=n}attach(n,t=!0){return this._portalHost.attach(n,t)}detach(){return this._portalHost.detach()}},Ht=(()=>{class s{_overlayContainer=C(Et);_componentFactoryResolver=C(ct);_appRef=C(S);_document=C(Y);_paneElements=new Map;create(t,e){return this._createOverlayRef(this.getPaneElement(t,e))}getPaneElement(t="",e){return this._paneElements.get(e)||this._paneElements.set(e,{}),this._paneElements.get(e)[t]||(this._paneElements.get(e)[t]=this._createPaneElement(t,e)),this._paneElements.get(e)[t]}_createPaneElement(t,e){let i=this._document.createElement("div");return i.id="toast-container",i.classList.add(t),i.classList.add("toast-container"),e?e.getContainerElement().appendChild(i):this._overlayContainer.getContainerElement().appendChild(i),i}_createPortalHost(t){return new tt(t,this._componentFactoryResolver,this._appRef)}_createOverlayRef(t){return new et(this._createPortalHost(t))}static \u0275fac=function(e){return new(e||s)};static \u0275prov=N({token:s,factory:s.\u0275fac,providedIn:"root"})}return s})(),ft=(()=>{class s{overlay;_injector;sanitizer;ngZone;toastrConfig;currentlyActive=0;toasts=[];overlayContainer;previousToastMessage;index=0;constructor(t,e,i,o,d){this.overlay=e,this._injector=i,this.sanitizer=o,this.ngZone=d,this.toastrConfig=l(l({},t.default),t.config),t.config.iconClasses&&(this.toastrConfig.iconClasses=l(l({},t.default.iconClasses),t.config.iconClasses))}show(t,e,i={},o=""){return this._preBuildNotification(o,t,e,this.applyConfig(i))}success(t,e,i={}){let o=this.toastrConfig.iconClasses.success||"";return this._preBuildNotification(o,t,e,this.applyConfig(i))}error(t,e,i={}){let o=this.toastrConfig.iconClasses.error||"";return this._preBuildNotification(o,t,e,this.applyConfig(i))}info(t,e,i={}){let o=this.toastrConfig.iconClasses.info||"";return this._preBuildNotification(o,t,e,this.applyConfig(i))}warning(t,e,i={}){let o=this.toastrConfig.iconClasses.warning||"";return this._preBuildNotification(o,t,e,this.applyConfig(i))}clear(t){for(let e of this.toasts)if(t!==void 0){if(e.toastId===t){e.toastRef.manualClose();return}}else e.toastRef.manualClose()}remove(t){let e=this._findToast(t);if(!e||(e.activeToast.toastRef.close(),this.toasts.splice(e.index,1),this.currentlyActive=this.currentlyActive-1,!this.toastrConfig.maxOpened||!this.toasts.length))return!1;if(this.currentlyActive<this.toastrConfig.maxOpened&&this.toasts[this.currentlyActive]){let i=this.toasts[this.currentlyActive].toastRef;i.isInactive()||(this.currentlyActive=this.currentlyActive+1,i.activate())}return!0}findDuplicate(t="",e="",i,o){let{includeTitleDuplicates:d}=this.toastrConfig;for(let v of this.toasts){let H=d&&v.title===t;if((!d||H)&&v.message===e)return v.toastRef.onDuplicate(i,o),v}return null}applyConfig(t={}){return l(l({},this.toastrConfig),t)}_findToast(t){for(let e=0;e<this.toasts.length;e++)if(this.toasts[e].toastId===t)return{index:e,activeToast:this.toasts[e]};return null}_preBuildNotification(t,e,i,o){return o.onActivateTick?this.ngZone.run(()=>this._buildNotification(t,e,i,o)):this._buildNotification(t,e,i,o)}_buildNotification(t,e,i,o){if(!o.toastComponent)throw new Error("toastComponent required");let d=this.findDuplicate(i,e,this.toastrConfig.resetTimeoutOnDuplicate&&o.timeOut>0,this.toastrConfig.countDuplicates);if((this.toastrConfig.includeTitleDuplicates&&i||e)&&this.toastrConfig.preventDuplicates&&d!==null)return d;this.previousToastMessage=e;let v=!1;this.toastrConfig.maxOpened&&this.currentlyActive>=this.toastrConfig.maxOpened&&(v=!0,this.toastrConfig.autoDismiss&&this.clear(this.toasts[0].toastId));let H=this.overlay.create(o.positionClass,this.overlayContainer);this.index=this.index+1;let it=e;e&&o.enableHtml&&(it=this.sanitizer.sanitize(rt.HTML,e));let I=new X(H),P=new b(this.index,o,it,i,t,I),vt=[{provide:b,useValue:P}],gt=j.create({providers:vt,parent:this._injector}),_t=new Q(o.toastComponent,gt),st=H.attach(_t,o.newestOnTop);I.componentInstance=st.instance;let V={toastId:this.index,title:i||"",message:e||"",toastRef:I,onShown:I.afterActivate(),onHidden:I.afterClosed(),onTap:P.onTap(),onAction:P.onAction(),portal:st};return v||(this.currentlyActive=this.currentlyActive+1,setTimeout(()=>{V.toastRef.activate()})),this.toasts.push(V),V}static \u0275fac=function(e){return new(e||s)(y(mt),y(Ht),y(j),y(dt),y(Z))};static \u0275prov=N({token:s,factory:s.\u0275fac,providedIn:"root"})}return s})(),Nt=(()=>{class s{toastrService;toastPackage;ngZone;message;title;options;duplicatesCount;originalTimeout;width=w(-1);toastClasses="";state;get _state(){return this.state()}get displayStyle(){if(this.state().value==="inactive")return"none"}timeout;intervalId;hideTime;sub;sub1;sub2;sub3;constructor(t,e,i){this.toastrService=t,this.toastPackage=e,this.ngZone=i,this.message=e.message,this.title=e.title,this.options=e.config,this.originalTimeout=e.config.timeOut,this.toastClasses=`${e.toastType} ${e.config.toastClass}`,this.sub=e.toastRef.afterActivate().subscribe(()=>{this.activateToast()}),this.sub1=e.toastRef.manualClosed().subscribe(()=>{this.remove()}),this.sub2=e.toastRef.timeoutReset().subscribe(()=>{this.resetTimeout()}),this.sub3=e.toastRef.countDuplicate().subscribe(o=>{this.duplicatesCount=o}),this.state=w({value:"inactive",params:{easeTime:this.toastPackage.config.easeTime,easing:"ease-in"}})}ngOnDestroy(){this.sub.unsubscribe(),this.sub1.unsubscribe(),this.sub2.unsubscribe(),this.sub3.unsubscribe(),clearInterval(this.intervalId),clearTimeout(this.timeout)}activateToast(){this.state.update(t=>T(l({},t),{value:"active"})),!(this.options.disableTimeOut===!0||this.options.disableTimeOut==="timeOut")&&this.options.timeOut&&(this.outsideTimeout(()=>this.remove(),this.options.timeOut),this.hideTime=new Date().getTime()+this.options.timeOut,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10))}updateProgress(){if(this.width()===0||this.width()===100||!this.options.timeOut)return;let t=new Date().getTime(),e=this.hideTime-t;this.width.set(e/this.options.timeOut*100),this.options.progressAnimation==="increasing"&&this.width.update(i=>100-i),this.width()<=0&&this.width.set(0),this.width()>=100&&this.width.set(100)}resetTimeout(){clearTimeout(this.timeout),clearInterval(this.intervalId),this.state.update(t=>T(l({},t),{value:"active"})),this.outsideTimeout(()=>this.remove(),this.originalTimeout),this.options.timeOut=this.originalTimeout,this.hideTime=new Date().getTime()+(this.options.timeOut||0),this.width.set(-1),this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10)}remove(){this.state().value!=="removed"&&(clearTimeout(this.timeout),this.state.update(t=>T(l({},t),{value:"removed"})),this.outsideTimeout(()=>this.toastrService.remove(this.toastPackage.toastId),+this.toastPackage.config.easeTime))}tapToast(){this.state().value!=="removed"&&(this.toastPackage.triggerTap(),this.options.tapToDismiss&&this.remove())}stickAround(){this.state().value!=="removed"&&this.options.disableTimeOut!=="extendedTimeOut"&&(clearTimeout(this.timeout),this.options.timeOut=0,this.hideTime=0,clearInterval(this.intervalId),this.width.set(0))}delayedHideToast(){this.options.disableTimeOut===!0||this.options.disableTimeOut==="extendedTimeOut"||this.options.extendedTimeOut===0||this.state().value==="removed"||(this.outsideTimeout(()=>this.remove(),this.options.extendedTimeOut),this.options.timeOut=this.options.extendedTimeOut,this.hideTime=new Date().getTime()+(this.options.timeOut||0),this.width.set(-1),this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10))}outsideTimeout(t,e){this.ngZone?this.ngZone.runOutsideAngular(()=>this.timeout=setTimeout(()=>this.runInsideAngular(t),e)):this.timeout=setTimeout(()=>t(),e)}outsideInterval(t,e){this.ngZone?this.ngZone.runOutsideAngular(()=>this.intervalId=setInterval(()=>this.runInsideAngular(t),e)):this.intervalId=setInterval(()=>t(),e)}runInsideAngular(t){this.ngZone?this.ngZone.run(()=>t()):t()}static \u0275fac=function(e){return new(e||s)(g(ft),g(b),g(Z))};static \u0275cmp=$({type:s,selectors:[["","toast-component",""]],hostVars:5,hostBindings:function(e,i){e&1&&M("click",function(){return i.tapToast()})("mouseenter",function(){return i.stickAround()})("mouseleave",function(){return i.delayedHideToast()}),e&2&&(ut("@flyInOut",i._state),h(i.toastClasses),A("display",i.displayStyle))},attrs:ht,decls:5,vars:5,consts:[["type","button","class","toast-close-button","aria-label","Close",3,"click",4,"ngIf"],[3,"class",4,"ngIf"],["role","alert",3,"class","innerHTML",4,"ngIf"],["role","alert",3,"class",4,"ngIf"],[4,"ngIf"],["type","button","aria-label","Close",1,"toast-close-button",3,"click"],["aria-hidden","true"],["role","alert",3,"innerHTML"],["role","alert"],[1,"toast-progress"]],template:function(e,i){e&1&&D(0,Tt,3,0,"button",0)(1,Ct,3,5,"div",1)(2,bt,1,3,"div",2)(3,It,2,4,"div",3)(4,wt,2,2,"div",4),e&2&&(r("ngIf",i.options.closeButton),a(),r("ngIf",i.title),a(),r("ngIf",i.message&&i.options.enableHtml),a(),r("ngIf",i.message&&!i.options.enableHtml),a(),r("ngIf",i.options.progressBar))},dependencies:[J],encapsulation:2,data:{animation:[K("flyInOut",[E("inactive",R({opacity:0})),E("active",R({opacity:1})),E("removed",R({opacity:0})),F("inactive => active",B("{{ easeTime }}ms {{ easing }}")),F("active => removed",B("{{ easeTime }}ms {{ easing }}"))])]},changeDetection:0})}return s})(),jt=T(l({},pt),{toastComponent:Nt}),St=(s={})=>at([{provide:mt,useValue:{default:jt,config:s}}]),pe=(()=>{class s{static forRoot(t={}){return{ngModule:s,providers:[St(t)]}}static \u0275fac=function(e){return new(e||s)};static \u0275mod=lt({type:s});static \u0275inj=nt({})}return s})();var Bt=(()=>{class s{toastrService;toastPackage;appRef;message;title;options;duplicatesCount;originalTimeout;width=w(-1);toastClasses="";get displayStyle(){return this.state()==="inactive"?"none":null}state=w("inactive");timeout;intervalId;hideTime;sub;sub1;sub2;sub3;constructor(t,e,i){this.toastrService=t,this.toastPackage=e,this.appRef=i,this.message=e.message,this.title=e.title,this.options=e.config,this.originalTimeout=e.config.timeOut,this.toastClasses=`${e.toastType} ${e.config.toastClass}`,this.sub=e.toastRef.afterActivate().subscribe(()=>{this.activateToast()}),this.sub1=e.toastRef.manualClosed().subscribe(()=>{this.remove()}),this.sub2=e.toastRef.timeoutReset().subscribe(()=>{this.resetTimeout()}),this.sub3=e.toastRef.countDuplicate().subscribe(o=>{this.duplicatesCount=o})}ngOnDestroy(){this.sub.unsubscribe(),this.sub1.unsubscribe(),this.sub2.unsubscribe(),this.sub3.unsubscribe(),clearInterval(this.intervalId),clearTimeout(this.timeout)}activateToast(){this.state.set("active"),!(this.options.disableTimeOut===!0||this.options.disableTimeOut==="timeOut")&&this.options.timeOut&&(this.timeout=setTimeout(()=>{this.remove()},this.options.timeOut),this.hideTime=new Date().getTime()+this.options.timeOut,this.options.progressBar&&(this.intervalId=setInterval(()=>this.updateProgress(),10))),this.options.onActivateTick&&this.appRef.tick()}updateProgress(){if(this.width()===0||this.width()===100||!this.options.timeOut)return;let t=new Date().getTime(),e=this.hideTime-t;this.width.set(e/this.options.timeOut*100),this.options.progressAnimation==="increasing"&&this.width.update(i=>100-i),this.width()<=0&&this.width.set(0),this.width()>=100&&this.width.set(100)}resetTimeout(){clearTimeout(this.timeout),clearInterval(this.intervalId),this.state.set("active"),this.options.timeOut=this.originalTimeout,this.timeout=setTimeout(()=>this.remove(),this.originalTimeout),this.hideTime=new Date().getTime()+(this.originalTimeout||0),this.width.set(-1),this.options.progressBar&&(this.intervalId=setInterval(()=>this.updateProgress(),10))}remove(){this.state()!=="removed"&&(clearTimeout(this.timeout),this.state.set("removed"),this.timeout=setTimeout(()=>this.toastrService.remove(this.toastPackage.toastId)))}tapToast(){this.state()!=="removed"&&(this.toastPackage.triggerTap(),this.options.tapToDismiss&&this.remove())}stickAround(){this.state()!=="removed"&&(clearTimeout(this.timeout),this.options.timeOut=0,this.hideTime=0,clearInterval(this.intervalId),this.width.set(0))}delayedHideToast(){this.options.disableTimeOut===!0||this.options.disableTimeOut==="extendedTimeOut"||this.options.extendedTimeOut===0||this.state()==="removed"||(this.timeout=setTimeout(()=>this.remove(),this.options.extendedTimeOut),this.options.timeOut=this.options.extendedTimeOut,this.hideTime=new Date().getTime()+(this.options.timeOut||0),this.width.set(-1),this.options.progressBar&&(this.intervalId=setInterval(()=>this.updateProgress(),10)))}static \u0275fac=function(e){return new(e||s)(g(ft),g(b),g(S))};static \u0275cmp=$({type:s,selectors:[["","toast-component",""]],hostVars:4,hostBindings:function(e,i){e&1&&M("click",function(){return i.tapToast()})("mouseenter",function(){return i.stickAround()})("mouseleave",function(){return i.delayedHideToast()}),e&2&&(h(i.toastClasses),A("display",i.displayStyle))},attrs:ht,decls:5,vars:5,consts:[["type","button","class","toast-close-button","aria-label","Close",3,"click",4,"ngIf"],[3,"class",4,"ngIf"],["role","alert",3,"class","innerHTML",4,"ngIf"],["role","alert",3,"class",4,"ngIf"],[4,"ngIf"],["type","button","aria-label","Close",1,"toast-close-button",3,"click"],["aria-hidden","true"],["role","alert",3,"innerHTML"],["role","alert"],[1,"toast-progress"]],template:function(e,i){e&1&&D(0,Dt,3,0,"button",0)(1,At,3,5,"div",1)(2,Ot,1,3,"div",2)(3,Mt,2,4,"div",3)(4,Rt,2,2,"div",4),e&2&&(r("ngIf",i.options.closeButton),a(),r("ngIf",i.title),a(),r("ngIf",i.message&&i.options.enableHtml),a(),r("ngIf",i.message&&!i.options.enableHtml),a(),r("ngIf",i.options.progressBar))},dependencies:[J],encapsulation:2,changeDetection:0})}return s})(),me=T(l({},pt),{toastComponent:Bt});export{ft as a,St as b,pe as c};
|
|
1
|
+
import{I as dt,a as Y,k as J}from"./chunk-ZK43JB4A.js";import{c as K,d as B,f as R,g as E,h as F}from"./chunk-F2X3VGZZ.js";import{Ba as Z,Eb as D,Ha as w,Kb as S,Lb as x,Mb as r,Nb as A,Qb as h,Wb as u,Xb as p,Yb as O,Zb as G,_b as U,ac as q,ca as N,cb as rt,cc as ut,da as nt,db as z,fa as ot,fc as M,g as f,gc as c,ha as y,ia as C,ib as a,ja as at,lb as ct,ob as g,qa as k,ra as L,sc as m,uc as _,wa as j,yb as $,zb as lt}from"./chunk-6QJHEOXN.js";import{a as l,b as T}from"./chunk-YQFG5XE2.js";var ht=["toast-component",""];function Tt(s,n){if(s&1){let t=q();u(0,"button",5),M("click",function(){k(t);let i=c();return L(i.remove())}),u(1,"span",6),m(2,"\xD7"),p()()}}function yt(s,n){if(s&1&&(G(0),m(1),U()),s&2){let t=c(2);a(),_("[",t.duplicatesCount+1,"]")}}function Ct(s,n){if(s&1&&(u(0,"div"),m(1),D(2,yt,2,1,"ng-container",4),p()),s&2){let t=c();h(t.options.titleClass),x("aria-label",t.title),a(),_(" ",t.title," "),a(),r("ngIf",t.duplicatesCount)}}function bt(s,n){if(s&1&&O(0,"div",7),s&2){let t=c();h(t.options.messageClass),r("innerHTML",t.message,z)}}function It(s,n){if(s&1&&(u(0,"div",8),m(1),p()),s&2){let t=c();h(t.options.messageClass),x("aria-label",t.message),a(),_(" ",t.message," ")}}function wt(s,n){if(s&1&&(u(0,"div"),O(1,"div",9),p()),s&2){let t=c();a(),A("width",t.width()+"%")}}function Dt(s,n){if(s&1){let t=q();u(0,"button",5),M("click",function(){k(t);let i=c();return L(i.remove())}),u(1,"span",6),m(2,"\xD7"),p()()}}function xt(s,n){if(s&1&&(G(0),m(1),U()),s&2){let t=c(2);a(),_("[",t.duplicatesCount+1,"]")}}function At(s,n){if(s&1&&(u(0,"div"),m(1),D(2,xt,2,1,"ng-container",4),p()),s&2){let t=c();h(t.options.titleClass),x("aria-label",t.title),a(),_(" ",t.title," "),a(),r("ngIf",t.duplicatesCount)}}function Ot(s,n){if(s&1&&O(0,"div",7),s&2){let t=c();h(t.options.messageClass),r("innerHTML",t.message,z)}}function Mt(s,n){if(s&1&&(u(0,"div",8),m(1),p()),s&2){let t=c();h(t.options.messageClass),x("aria-label",t.message),a(),_(" ",t.message," ")}}function Rt(s,n){if(s&1&&(u(0,"div"),O(1,"div",9),p()),s&2){let t=c();a(),A("width",t.width()+"%")}}var Q=class{_attachedHost;component;viewContainerRef;injector;constructor(n,t){this.component=n,this.injector=t}attach(n,t){return this._attachedHost=n,n.attach(this,t)}detach(){let n=this._attachedHost;if(n)return this._attachedHost=void 0,n.detach()}get isAttached(){return this._attachedHost!=null}setAttachedHost(n){this._attachedHost=n}},W=class{_attachedPortal;_disposeFn;attach(n,t){return this._attachedPortal=n,this.attachComponentPortal(n,t)}detach(){this._attachedPortal&&this._attachedPortal.setAttachedHost(),this._attachedPortal=void 0,this._disposeFn&&(this._disposeFn(),this._disposeFn=void 0)}setDisposeFn(n){this._disposeFn=n}},X=class{_overlayRef;componentInstance;duplicatesCount=0;_afterClosed=new f;_activate=new f;_manualClose=new f;_resetTimeout=new f;_countDuplicate=new f;constructor(n){this._overlayRef=n}manualClose(){this._manualClose.next(),this._manualClose.complete()}manualClosed(){return this._manualClose.asObservable()}timeoutReset(){return this._resetTimeout.asObservable()}countDuplicate(){return this._countDuplicate.asObservable()}close(){this._overlayRef.detach(),this._afterClosed.next(),this._manualClose.next(),this._afterClosed.complete(),this._manualClose.complete(),this._activate.complete(),this._resetTimeout.complete(),this._countDuplicate.complete()}afterClosed(){return this._afterClosed.asObservable()}isInactive(){return this._activate.isStopped}activate(){this._activate.next(),this._activate.complete()}afterActivate(){return this._activate.asObservable()}onDuplicate(n,t){n&&this._resetTimeout.next(),t&&this._countDuplicate.next(++this.duplicatesCount)}},b=class{toastId;config;message;title;toastType;toastRef;_onTap=new f;_onAction=new f;constructor(n,t,e,i,o,d){this.toastId=n,this.config=t,this.message=e,this.title=i,this.toastType=o,this.toastRef=d,this.toastRef.afterClosed().subscribe(()=>{this._onAction.complete(),this._onTap.complete()})}triggerTap(){this._onTap.next(),this.config.tapToDismiss&&this._onTap.complete()}onTap(){return this._onTap.asObservable()}triggerAction(n){this._onAction.next(n)}onAction(){return this._onAction.asObservable()}},pt={maxOpened:0,autoDismiss:!1,newestOnTop:!0,preventDuplicates:!1,countDuplicates:!1,resetTimeoutOnDuplicate:!1,includeTitleDuplicates:!1,iconClasses:{error:"toast-error",info:"toast-info",success:"toast-success",warning:"toast-warning"},closeButton:!1,disableTimeOut:!1,timeOut:5e3,extendedTimeOut:1e3,enableHtml:!1,progressBar:!1,toastClass:"ngx-toastr",positionClass:"toast-top-right",titleClass:"toast-title",messageClass:"toast-message",easing:"ease-in",easeTime:300,tapToDismiss:!0,onActivateTick:!1,progressAnimation:"decreasing"},mt=new ot("ToastConfig"),tt=class extends W{_hostDomElement;_componentFactoryResolver;_appRef;constructor(n,t,e){super(),this._hostDomElement=n,this._componentFactoryResolver=t,this._appRef=e}attachComponentPortal(n,t){let e=this._componentFactoryResolver.resolveComponentFactory(n.component),i;return i=e.create(n.injector),this._appRef.attachView(i.hostView),this.setDisposeFn(()=>{this._appRef.detachView(i.hostView),i.destroy()}),t?this._hostDomElement.insertBefore(this._getComponentRootNode(i),this._hostDomElement.firstChild):this._hostDomElement.appendChild(this._getComponentRootNode(i)),i}_getComponentRootNode(n){return n.hostView.rootNodes[0]}},Et=(()=>{class s{_document=C(Y);_containerElement;ngOnDestroy(){this._containerElement&&this._containerElement.parentNode&&this._containerElement.parentNode.removeChild(this._containerElement)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){let t=this._document.createElement("div");t.classList.add("overlay-container"),t.setAttribute("aria-live","polite"),this._document.body.appendChild(t),this._containerElement=t}static \u0275fac=function(e){return new(e||s)};static \u0275prov=N({token:s,factory:s.\u0275fac,providedIn:"root"})}return s})(),et=class{_portalHost;constructor(n){this._portalHost=n}attach(n,t=!0){return this._portalHost.attach(n,t)}detach(){return this._portalHost.detach()}},Ht=(()=>{class s{_overlayContainer=C(Et);_componentFactoryResolver=C(ct);_appRef=C(S);_document=C(Y);_paneElements=new Map;create(t,e){return this._createOverlayRef(this.getPaneElement(t,e))}getPaneElement(t="",e){return this._paneElements.get(e)||this._paneElements.set(e,{}),this._paneElements.get(e)[t]||(this._paneElements.get(e)[t]=this._createPaneElement(t,e)),this._paneElements.get(e)[t]}_createPaneElement(t,e){let i=this._document.createElement("div");return i.id="toast-container",i.classList.add(t),i.classList.add("toast-container"),e?e.getContainerElement().appendChild(i):this._overlayContainer.getContainerElement().appendChild(i),i}_createPortalHost(t){return new tt(t,this._componentFactoryResolver,this._appRef)}_createOverlayRef(t){return new et(this._createPortalHost(t))}static \u0275fac=function(e){return new(e||s)};static \u0275prov=N({token:s,factory:s.\u0275fac,providedIn:"root"})}return s})(),ft=(()=>{class s{overlay;_injector;sanitizer;ngZone;toastrConfig;currentlyActive=0;toasts=[];overlayContainer;previousToastMessage;index=0;constructor(t,e,i,o,d){this.overlay=e,this._injector=i,this.sanitizer=o,this.ngZone=d,this.toastrConfig=l(l({},t.default),t.config),t.config.iconClasses&&(this.toastrConfig.iconClasses=l(l({},t.default.iconClasses),t.config.iconClasses))}show(t,e,i={},o=""){return this._preBuildNotification(o,t,e,this.applyConfig(i))}success(t,e,i={}){let o=this.toastrConfig.iconClasses.success||"";return this._preBuildNotification(o,t,e,this.applyConfig(i))}error(t,e,i={}){let o=this.toastrConfig.iconClasses.error||"";return this._preBuildNotification(o,t,e,this.applyConfig(i))}info(t,e,i={}){let o=this.toastrConfig.iconClasses.info||"";return this._preBuildNotification(o,t,e,this.applyConfig(i))}warning(t,e,i={}){let o=this.toastrConfig.iconClasses.warning||"";return this._preBuildNotification(o,t,e,this.applyConfig(i))}clear(t){for(let e of this.toasts)if(t!==void 0){if(e.toastId===t){e.toastRef.manualClose();return}}else e.toastRef.manualClose()}remove(t){let e=this._findToast(t);if(!e||(e.activeToast.toastRef.close(),this.toasts.splice(e.index,1),this.currentlyActive=this.currentlyActive-1,!this.toastrConfig.maxOpened||!this.toasts.length))return!1;if(this.currentlyActive<this.toastrConfig.maxOpened&&this.toasts[this.currentlyActive]){let i=this.toasts[this.currentlyActive].toastRef;i.isInactive()||(this.currentlyActive=this.currentlyActive+1,i.activate())}return!0}findDuplicate(t="",e="",i,o){let{includeTitleDuplicates:d}=this.toastrConfig;for(let v of this.toasts){let H=d&&v.title===t;if((!d||H)&&v.message===e)return v.toastRef.onDuplicate(i,o),v}return null}applyConfig(t={}){return l(l({},this.toastrConfig),t)}_findToast(t){for(let e=0;e<this.toasts.length;e++)if(this.toasts[e].toastId===t)return{index:e,activeToast:this.toasts[e]};return null}_preBuildNotification(t,e,i,o){return o.onActivateTick?this.ngZone.run(()=>this._buildNotification(t,e,i,o)):this._buildNotification(t,e,i,o)}_buildNotification(t,e,i,o){if(!o.toastComponent)throw new Error("toastComponent required");let d=this.findDuplicate(i,e,this.toastrConfig.resetTimeoutOnDuplicate&&o.timeOut>0,this.toastrConfig.countDuplicates);if((this.toastrConfig.includeTitleDuplicates&&i||e)&&this.toastrConfig.preventDuplicates&&d!==null)return d;this.previousToastMessage=e;let v=!1;this.toastrConfig.maxOpened&&this.currentlyActive>=this.toastrConfig.maxOpened&&(v=!0,this.toastrConfig.autoDismiss&&this.clear(this.toasts[0].toastId));let H=this.overlay.create(o.positionClass,this.overlayContainer);this.index=this.index+1;let it=e;e&&o.enableHtml&&(it=this.sanitizer.sanitize(rt.HTML,e));let I=new X(H),P=new b(this.index,o,it,i,t,I),vt=[{provide:b,useValue:P}],gt=j.create({providers:vt,parent:this._injector}),_t=new Q(o.toastComponent,gt),st=H.attach(_t,o.newestOnTop);I.componentInstance=st.instance;let V={toastId:this.index,title:i||"",message:e||"",toastRef:I,onShown:I.afterActivate(),onHidden:I.afterClosed(),onTap:P.onTap(),onAction:P.onAction(),portal:st};return v||(this.currentlyActive=this.currentlyActive+1,setTimeout(()=>{V.toastRef.activate()})),this.toasts.push(V),V}static \u0275fac=function(e){return new(e||s)(y(mt),y(Ht),y(j),y(dt),y(Z))};static \u0275prov=N({token:s,factory:s.\u0275fac,providedIn:"root"})}return s})(),Nt=(()=>{class s{toastrService;toastPackage;ngZone;message;title;options;duplicatesCount;originalTimeout;width=w(-1);toastClasses="";state;get _state(){return this.state()}get displayStyle(){if(this.state().value==="inactive")return"none"}timeout;intervalId;hideTime;sub;sub1;sub2;sub3;constructor(t,e,i){this.toastrService=t,this.toastPackage=e,this.ngZone=i,this.message=e.message,this.title=e.title,this.options=e.config,this.originalTimeout=e.config.timeOut,this.toastClasses=`${e.toastType} ${e.config.toastClass}`,this.sub=e.toastRef.afterActivate().subscribe(()=>{this.activateToast()}),this.sub1=e.toastRef.manualClosed().subscribe(()=>{this.remove()}),this.sub2=e.toastRef.timeoutReset().subscribe(()=>{this.resetTimeout()}),this.sub3=e.toastRef.countDuplicate().subscribe(o=>{this.duplicatesCount=o}),this.state=w({value:"inactive",params:{easeTime:this.toastPackage.config.easeTime,easing:"ease-in"}})}ngOnDestroy(){this.sub.unsubscribe(),this.sub1.unsubscribe(),this.sub2.unsubscribe(),this.sub3.unsubscribe(),clearInterval(this.intervalId),clearTimeout(this.timeout)}activateToast(){this.state.update(t=>T(l({},t),{value:"active"})),!(this.options.disableTimeOut===!0||this.options.disableTimeOut==="timeOut")&&this.options.timeOut&&(this.outsideTimeout(()=>this.remove(),this.options.timeOut),this.hideTime=new Date().getTime()+this.options.timeOut,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10))}updateProgress(){if(this.width()===0||this.width()===100||!this.options.timeOut)return;let t=new Date().getTime(),e=this.hideTime-t;this.width.set(e/this.options.timeOut*100),this.options.progressAnimation==="increasing"&&this.width.update(i=>100-i),this.width()<=0&&this.width.set(0),this.width()>=100&&this.width.set(100)}resetTimeout(){clearTimeout(this.timeout),clearInterval(this.intervalId),this.state.update(t=>T(l({},t),{value:"active"})),this.outsideTimeout(()=>this.remove(),this.originalTimeout),this.options.timeOut=this.originalTimeout,this.hideTime=new Date().getTime()+(this.options.timeOut||0),this.width.set(-1),this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10)}remove(){this.state().value!=="removed"&&(clearTimeout(this.timeout),this.state.update(t=>T(l({},t),{value:"removed"})),this.outsideTimeout(()=>this.toastrService.remove(this.toastPackage.toastId),+this.toastPackage.config.easeTime))}tapToast(){this.state().value!=="removed"&&(this.toastPackage.triggerTap(),this.options.tapToDismiss&&this.remove())}stickAround(){this.state().value!=="removed"&&this.options.disableTimeOut!=="extendedTimeOut"&&(clearTimeout(this.timeout),this.options.timeOut=0,this.hideTime=0,clearInterval(this.intervalId),this.width.set(0))}delayedHideToast(){this.options.disableTimeOut===!0||this.options.disableTimeOut==="extendedTimeOut"||this.options.extendedTimeOut===0||this.state().value==="removed"||(this.outsideTimeout(()=>this.remove(),this.options.extendedTimeOut),this.options.timeOut=this.options.extendedTimeOut,this.hideTime=new Date().getTime()+(this.options.timeOut||0),this.width.set(-1),this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10))}outsideTimeout(t,e){this.ngZone?this.ngZone.runOutsideAngular(()=>this.timeout=setTimeout(()=>this.runInsideAngular(t),e)):this.timeout=setTimeout(()=>t(),e)}outsideInterval(t,e){this.ngZone?this.ngZone.runOutsideAngular(()=>this.intervalId=setInterval(()=>this.runInsideAngular(t),e)):this.intervalId=setInterval(()=>t(),e)}runInsideAngular(t){this.ngZone?this.ngZone.run(()=>t()):t()}static \u0275fac=function(e){return new(e||s)(g(ft),g(b),g(Z))};static \u0275cmp=$({type:s,selectors:[["","toast-component",""]],hostVars:5,hostBindings:function(e,i){e&1&&M("click",function(){return i.tapToast()})("mouseenter",function(){return i.stickAround()})("mouseleave",function(){return i.delayedHideToast()}),e&2&&(ut("@flyInOut",i._state),h(i.toastClasses),A("display",i.displayStyle))},attrs:ht,decls:5,vars:5,consts:[["type","button","class","toast-close-button","aria-label","Close",3,"click",4,"ngIf"],[3,"class",4,"ngIf"],["role","alert",3,"class","innerHTML",4,"ngIf"],["role","alert",3,"class",4,"ngIf"],[4,"ngIf"],["type","button","aria-label","Close",1,"toast-close-button",3,"click"],["aria-hidden","true"],["role","alert",3,"innerHTML"],["role","alert"],[1,"toast-progress"]],template:function(e,i){e&1&&D(0,Tt,3,0,"button",0)(1,Ct,3,5,"div",1)(2,bt,1,3,"div",2)(3,It,2,4,"div",3)(4,wt,2,2,"div",4),e&2&&(r("ngIf",i.options.closeButton),a(),r("ngIf",i.title),a(),r("ngIf",i.message&&i.options.enableHtml),a(),r("ngIf",i.message&&!i.options.enableHtml),a(),r("ngIf",i.options.progressBar))},dependencies:[J],encapsulation:2,data:{animation:[K("flyInOut",[E("inactive",R({opacity:0})),E("active",R({opacity:1})),E("removed",R({opacity:0})),F("inactive => active",B("{{ easeTime }}ms {{ easing }}")),F("active => removed",B("{{ easeTime }}ms {{ easing }}"))])]},changeDetection:0})}return s})(),jt=T(l({},pt),{toastComponent:Nt}),St=(s={})=>at([{provide:mt,useValue:{default:jt,config:s}}]),pe=(()=>{class s{static forRoot(t={}){return{ngModule:s,providers:[St(t)]}}static \u0275fac=function(e){return new(e||s)};static \u0275mod=lt({type:s});static \u0275inj=nt({})}return s})();var Bt=(()=>{class s{toastrService;toastPackage;appRef;message;title;options;duplicatesCount;originalTimeout;width=w(-1);toastClasses="";get displayStyle(){return this.state()==="inactive"?"none":null}state=w("inactive");timeout;intervalId;hideTime;sub;sub1;sub2;sub3;constructor(t,e,i){this.toastrService=t,this.toastPackage=e,this.appRef=i,this.message=e.message,this.title=e.title,this.options=e.config,this.originalTimeout=e.config.timeOut,this.toastClasses=`${e.toastType} ${e.config.toastClass}`,this.sub=e.toastRef.afterActivate().subscribe(()=>{this.activateToast()}),this.sub1=e.toastRef.manualClosed().subscribe(()=>{this.remove()}),this.sub2=e.toastRef.timeoutReset().subscribe(()=>{this.resetTimeout()}),this.sub3=e.toastRef.countDuplicate().subscribe(o=>{this.duplicatesCount=o})}ngOnDestroy(){this.sub.unsubscribe(),this.sub1.unsubscribe(),this.sub2.unsubscribe(),this.sub3.unsubscribe(),clearInterval(this.intervalId),clearTimeout(this.timeout)}activateToast(){this.state.set("active"),!(this.options.disableTimeOut===!0||this.options.disableTimeOut==="timeOut")&&this.options.timeOut&&(this.timeout=setTimeout(()=>{this.remove()},this.options.timeOut),this.hideTime=new Date().getTime()+this.options.timeOut,this.options.progressBar&&(this.intervalId=setInterval(()=>this.updateProgress(),10))),this.options.onActivateTick&&this.appRef.tick()}updateProgress(){if(this.width()===0||this.width()===100||!this.options.timeOut)return;let t=new Date().getTime(),e=this.hideTime-t;this.width.set(e/this.options.timeOut*100),this.options.progressAnimation==="increasing"&&this.width.update(i=>100-i),this.width()<=0&&this.width.set(0),this.width()>=100&&this.width.set(100)}resetTimeout(){clearTimeout(this.timeout),clearInterval(this.intervalId),this.state.set("active"),this.options.timeOut=this.originalTimeout,this.timeout=setTimeout(()=>this.remove(),this.originalTimeout),this.hideTime=new Date().getTime()+(this.originalTimeout||0),this.width.set(-1),this.options.progressBar&&(this.intervalId=setInterval(()=>this.updateProgress(),10))}remove(){this.state()!=="removed"&&(clearTimeout(this.timeout),this.state.set("removed"),this.timeout=setTimeout(()=>this.toastrService.remove(this.toastPackage.toastId)))}tapToast(){this.state()!=="removed"&&(this.toastPackage.triggerTap(),this.options.tapToDismiss&&this.remove())}stickAround(){this.state()!=="removed"&&(clearTimeout(this.timeout),this.options.timeOut=0,this.hideTime=0,clearInterval(this.intervalId),this.width.set(0))}delayedHideToast(){this.options.disableTimeOut===!0||this.options.disableTimeOut==="extendedTimeOut"||this.options.extendedTimeOut===0||this.state()==="removed"||(this.timeout=setTimeout(()=>this.remove(),this.options.extendedTimeOut),this.options.timeOut=this.options.extendedTimeOut,this.hideTime=new Date().getTime()+(this.options.timeOut||0),this.width.set(-1),this.options.progressBar&&(this.intervalId=setInterval(()=>this.updateProgress(),10)))}static \u0275fac=function(e){return new(e||s)(g(ft),g(b),g(S))};static \u0275cmp=$({type:s,selectors:[["","toast-component",""]],hostVars:4,hostBindings:function(e,i){e&1&&M("click",function(){return i.tapToast()})("mouseenter",function(){return i.stickAround()})("mouseleave",function(){return i.delayedHideToast()}),e&2&&(h(i.toastClasses),A("display",i.displayStyle))},attrs:ht,decls:5,vars:5,consts:[["type","button","class","toast-close-button","aria-label","Close",3,"click",4,"ngIf"],[3,"class",4,"ngIf"],["role","alert",3,"class","innerHTML",4,"ngIf"],["role","alert",3,"class",4,"ngIf"],[4,"ngIf"],["type","button","aria-label","Close",1,"toast-close-button",3,"click"],["aria-hidden","true"],["role","alert",3,"innerHTML"],["role","alert"],[1,"toast-progress"]],template:function(e,i){e&1&&D(0,Dt,3,0,"button",0)(1,At,3,5,"div",1)(2,Ot,1,3,"div",2)(3,Mt,2,4,"div",3)(4,Rt,2,2,"div",4),e&2&&(r("ngIf",i.options.closeButton),a(),r("ngIf",i.title),a(),r("ngIf",i.message&&i.options.enableHtml),a(),r("ngIf",i.message&&!i.options.enableHtml),a(),r("ngIf",i.options.progressBar))},dependencies:[J],encapsulation:2,changeDetection:0})}return s})(),me=T(l({},pt),{toastComponent:Bt});export{ft as a,St as b,pe as c};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import{a as He,b as Ke,c as Qe,d as Xe,e as Ye,f as Ze}from"./chunk-PKOERZXQ.js";import{a as Le,b as $e,c as ze,d as Ue}from"./chunk-JOHRJHEX.js";import{a as qe,b as We}from"./chunk-PTQPB44D.js";import{a as je}from"./chunk-VSHPIUZM.js";import{b as we}from"./chunk-DU72RNAU.js";import{a as Re,b as Je}from"./chunk-5BXMDXZD.js";import"./chunk-LABWETHZ.js";import{a as Be,b as ke,k as Oe}from"./chunk-3IEOINKV.js";import{a as Te,b as Me}from"./chunk-53I5JFOQ.js";import"./chunk-HQMTUZZQ.js";import"./chunk-RXOOTYEO.js";import{a as Ve}from"./chunk-QF4D5YPK.js";import{a as Q,b as X}from"./chunk-Q7SK53ST.js";import"./chunk-SEXB43QC.js";import{a as Ge,b as Pe}from"./chunk-CWFLUFKM.js";import"./chunk-LWYAFMN3.js";import{a as Ne,b as De}from"./chunk-NDLX3ORI.js";import"./chunk-E4MHRZVH.js";import"./chunk-XPRP6AB4.js";import"./chunk-YZTBV6HG.js";import{b as Y}from"./chunk-ZMIVD3SF.js";import"./chunk-DHLFL3KH.js";import"./chunk-QWTGY7FA.js";import{g as A}from"./chunk-TUFQ5JVG.js";import"./chunk-ZUDQOT7C.js";import{a as R,b as J}from"./chunk-BUDZ3ONE.js";import"./chunk-SN7DLFX2.js";import"./chunk-V4SH72WU.js";import{n as K,o as F,w as O,x as V}from"./chunk-IMVMIXVJ.js";import"./chunk-2D2YD753.js";import{Ha as k,b as w,c as le,e as y,f as N,j as Ie,l as D,m as W,n as Ee,o as G,u as P,w as H,x as B}from"./chunk-OIBDX2CA.js";import{b as xe,e as Se,l as ye}from"./chunk-AOOG6YOT.js";import{a as Ae}from"./chunk-M3TKVRYP.js";import{a as Fe}from"./chunk-2MKKFLNJ.js";import{h as he,j as ve,k as Ce,q as _e,s as S}from"./chunk-VZ5CMS5O.js";import"./chunk-F2X3VGZZ.js";import{$b as C,Cc as q,Db as g,Dc as z,Ec as oe,Ha as j,L as se,Lb as p,Nc as re,Ob as L,Oc as ae,Rb as E,Rc as f,Tb as T,Ub as M,Vb as i,Wb as n,Xb as c,Z as ue,_ as I,ca as de,ec as _,fc as d,g as pe,hb as l,ia as u,nb as ie,qa as b,ra as h,rc as r,s as ce,sc as U,tc as $,wc as fe,xb as x,xc as ge,yc as be}from"./chunk-NMCKMUY4.js";import"./chunk-YQFG5XE2.js";var v=(()=>{class t{#e=u(Ae);fetchLoaderConfiguration(){return this.#e.get("","api/SetupLoader/Load")}updateAccountingIntegrationConfiguration(e){return this.#e.post(void 0,"/api/setup/SubmitConfig",e)}fetchOpeningBalanceFormConfiguration(){return this.#e.get("","/api/setup/OpeningBalance/Form")}submitOpeningBalanceFormConfiguration(e){return this.#e.post("","api/setup/OpeningBalance/Submit",e)}fetchAPICredential(){return this.#e.get(void 0,"/api/AccountConfig")}updateAPICredential(e){return this.#e.put(void 0,"/api/AccountConfig",e)}verifyAPICredential(e){return this.#e.post(void 0,"/api/AccountConfig/Validate",e)}formatJournal(e){return this.#e.post("","/api/setup/formatdata/clearjournal",{domain:e})}static{this.\u0275fac=function(o){return new(o||t)}}static{this.\u0275prov=de({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var ct=()=>({height:"calc(100vh - 100px)"});function st(t,m){if(t&1){let e=C();i(0,"div",4)(1,"a",5),r(2,"Cancel"),n(),i(3,"p-button",6),_("click",function(){b(e);let a=d();return h(a.updateAccountingIntegration())}),n()()}}function ut(t,m){if(t&1&&(i(0,"p-tab",8),r(1),n()),t&2){let e=m.$implicit,o=m.$index;p("value",o),l(),U(e)}}function dt(t,m){if(t&1&&(i(0,"div",25),c(1,"p-radiobutton",41),i(2,"label",42),r(3),n()()),t&2){let e=m.$implicit;l(),p("value",e.key)("inputId",e.value),l(),p("for",e.value),l(),U(e.value)}}function ft(t,m){if(t&1&&(i(0,"div",40)(1,"div",25),c(2,"p-radiobutton",43),i(3,"label",42),r(4),n()()()),t&2){let e=m.$implicit;l(2),p("value",e.key)("inputId",e.key.toString()),l(),p("for",e.key),l(),U(e.value)}}function gt(t,m){if(t&1&&(i(0,"p-scrollpanel",null,2)(2,"p-tabs",7)(3,"p-tablist"),T(4,ut,2,2,"p-tab",8,E),n(),i(6,"p-tabpanels")(7,"p-tabpanel",9)(8,"div",10)(9,"h3",11),r(10,"Accounting Numbering"),n(),i(11,"div",12)(12,"div",13)(13,"div",14)(14,"div",13)(15,"div",15)(16,"label",16),r(17,"Digit"),n(),c(18,"p-inputnumber",17),n()(),i(19,"div",13)(20,"div",15)(21,"label",18),r(22,"Seed"),n(),c(23,"p-inputnumber",19),n()(),i(24,"div",13)(25,"div",15)(26,"label",20),r(27,"Last Number"),n(),c(28,"p-inputnumber",21),n()(),i(29,"div",13)(30,"div",15)(31,"label",22),r(32,"Format"),n(),c(33,"p-select",23),n()(),i(34,"div",13)(35,"div",15)(36,"label",22),r(37,"Reset Every"),n(),i(38,"div",24),T(39,dt,4,4,"div",25,E),n()()()()()()()(),i(41,"p-tabpanel",8)(42,"div",26)(43,"div",27)(44,"h3",11),r(45,"Journal Generate"),n(),i(46,"p"),r(47,"Configure generate transaction"),n()(),i(48,"div",12)(49,"div",28)(50,"div",12)(51,"div",29)(52,"div",15)(53,"label",22),r(54,"Outlet Delivery Journal"),n(),c(55,"p-toggleswitch",30),n()(),i(56,"div",31)(57,"div",15)(58,"label",22),r(59,"Payment Discount Journal On Payment"),n(),c(60,"p-toggleswitch",32),n()()()()()(),c(61,"hr"),i(62,"div",26)(63,"div",28)(64,"div",12)(65,"div",33)(66,"label",22),r(67,"Note"),n()(),i(68,"div",29)(69,"div",15)(70,"label",22),r(71,"Note Required On Journal"),n(),c(72,"p-toggleswitch",34),n()(),i(73,"div",29)(74,"div",15)(75,"label",22),r(76,"Trial Balance Footer Visible"),n(),c(77,"p-toggleswitch",35),n()(),c(78,"div",29),n()()()(),i(79,"p-tabpanel",36)(80,"div",10)(81,"h3",11),r(82,"Report"),n(),i(83,"div",12)(84,"div",27)(85,"div",37)(86,"div")(87,"label",38),r(88,"Accounting For Treatment"),n(),i(89,"div",12)(90,"div",39)(91,"div",12),T(92,ft,5,4,"div",40,E),n()()()()()()()()()()()()),t&2){let e,o,a,s=d();L(z(8,ct)),l(2),p("value",0)("formGroup",s.form),l(2),M(s.tabs()),l(3),p("value",0),l(26),p("options",(e=s.accountingIntegration())==null||e.options==null?null:e.options.monthlyResetPeriodFormat),l(6),M((o=s.accountingIntegration())==null||o.options==null?null:o.options.resetPeriods),l(2),p("value",1),l(38),p("value",2),l(13),M((a=s.accountingIntegration())==null||a.options==null?null:a.options.generatePrepaidJournal)}}var tt=(()=>{class t{constructor(){this.accountingSetupService=u(v),this.fb=u(P).nonNullable,this.tabs=j(["Numbering","Journal","Report"]),this.accountingIntegration=j(null)}ngOnInit(){this.initializeForm(),this.loadAccountingConfiguration()}initializeForm(){this.form=this.fb.group({number:this.createNumberGroup(),report:this.createReportGroup(),journalGenerate:this.createJournalGenerateGroup()})}createNumberGroup(){return this.fb.group({seed:this.fb.control(""),digit:this.fb.control(""),resetEvery:this.fb.control(""),monthlyFormat:this.fb.control(""),lastNumber:this.fb.control(""),lastModified:this.fb.control("")})}createReportGroup(){return this.fb.group({accountingAuditType:this.fb.control(""),accountingEntityAccess:this.fb.control(""),generatePrepaidJournal:this.fb.control("")})}createJournalGenerateGroup(){return this.fb.group({eodExpenseJournal:this.fb.control(""),transferOrder:this.fb.control(""),paymentDiscount:this.fb.control(""),noteMandatory:this.fb.control(""),trialBalanceFooterVisible:this.fb.control("")})}loadAccountingConfiguration(){this.accountingSetupService.fetchLoaderConfiguration().pipe(I(e=>{this.accountingIntegration.set(e),this.form.patchValue(e.form)})).subscribe()}updateAccountingIntegration(){let e={form:this.form.getRawValue()};this.accountingSetupService.updateAccountingIntegrationConfiguration(e).pipe().subscribe()}static{this.\u0275fac=function(o){return new(o||t)}}static{this.\u0275cmp=x({type:t,selectors:[["app-accounting-integration"]],decls:5,vars:0,consts:[["actionButton",""],["content",""],["scrollPanelContainer",""],["pageTitle","Accounting Integration"],[1,"d-flex","gap-2"],["routerLink","..",1,"p-button","p-button-secondary","p-button-outlined"],["label","Submit",3,"click"],[1,"border-top",3,"value","formGroup"],[3,"value"],["formGroupName","number",3,"value"],[1,""],[1,"fs-5"],[1,"row"],[1,"col-6"],[1,"row","row-gap-3"],[1,"d-flex","flex-column"],["for","digit",1,"fs-4"],["inputId","digit","formControlName","digit"],["for","seed",1,"fs-4"],["inputId","seed","formControlName","seed"],["for","lastNumber",1,"fs-4"],["inputId","lastNumber","formControlName","lastNumber"],["for","",1,"fs-4"],["appendTo","body","formControlName","monthlyFormat","optionValue","key","optionLabel","value",3,"options"],[1,"d-flex","gap-4"],[1,"d-flex","align-items-center","gap-2"],["formGroupName","journalGenerate",1,"row"],[1,"col-12"],[1,"col-10"],[1,"col-md-4","mb-3"],["formControlName","transferOrder"],[1,"col-md-6","mb-4"],["formControlName","paymentDiscount"],[1,"col-12","mb-2"],["formControlName","noteMandatory"],["formControlName","trialBalanceFooterVisible"],["formGroupName","report",3,"value"],[1,"d-flex","flex-column","gap-4"],["for","generatePrepaidJournal",1,"fs-4","mb-2"],[1,"col-8"],[1,"col-4"],["name","resetEvery","formControlName","resetEvery",3,"value","inputId"],[1,"m-0",3,"for"],["name","generatePrepaidJournal","formControlName","generatePrepaidJournal",3,"value","inputId"]],template:function(o,a){o&1&&(i(0,"app-main-panel",3),g(1,st,4,0,"ng-template",null,0,f)(3,gt,94,9,"ng-template",null,1,f),n())},dependencies:[S,Ze,Ye,Xe,Qe,He,Ke,A,Y,ke,Be,B,y,N,D,G,W,F,Pe,Ge,Je,Re,ye,Se,V,O,De,Ne,X,Q],styles:["[_nghost-%COMP%]{display:block}.inactive-state[_ngcontent-%COMP%]{background-color:#e5e5e5}.active-state[_ngcontent-%COMP%]{background-color:var(--p-primary-color)}"],changeDetection:0})}}return t})();var ht=()=>({height:"cacl(100vh - 200px)"}),vt=()=>({height:"calc(100vh - 250px)"});function Ct(t,m){if(t&1){let e=C();i(0,"div")(1,"p-button",5),_("onClick",function(){b(e);let a=d();return h(a.submitForm())}),n()()}}function _t(t,m){t&1&&(i(0,"div",17)(1,"h3",18),r(2,"Date"),n(),c(3,"p-datePicker",19),n())}function xt(t,m){if(t&1&&(i(0,"tr",9)(1,"td",27),r(2),n(),i(3,"td"),c(4,"input",28),n(),i(5,"td"),c(6,"input",29),n()()),t&2){let e,o=m.$implicit,a=m.index,s=d(4);p("formGroupName",a),l(2),$(" ",(e=s.asFormGroup(o).get("accountName"))==null?null:e.value," ")}}function St(t,m){if(t&1&&(i(0,"div",9)(1,"h4",20),r(2),n(),i(3,"div",21)(4,"table",22)(5,"thead",23)(6,"tr")(7,"th",24),r(8,"Account Name"),n(),i(9,"th",25),r(10,"Debit"),n(),i(11,"th",25),r(12,"Credit"),n()()(),i(13,"tbody"),g(14,xt,7,2,"tr",26),n()()()()),t&2){let e=m.$implicit,o=m.$index,a=d(3);p("formGroupName",o),l(2),$(" ",e.get("name").value," "),l(12),p("ngForOf",a.getItemsArray(a.asFormGroup(e)).controls)}}function yt(t,m){if(t&1&&(i(0,"p-panel",7),g(1,_t,4,0,"ng-template",null,2,f),c(3,"p-divider"),i(4,"p-scroll-panel")(5,"div",8),T(6,St,15,3,"div",9,E),n()(),i(8,"div",10)(9,"table",11)(10,"tr")(11,"td",12)(12,"p",13),r(13," Total: "),n()(),i(14,"td",14)(15,"p",15),r(16),re(17,"number"),n()(),i(18,"td",16)(19,"p",15),r(20),re(21,"number"),n()()()()()()),t&2){let e=d(2);L(z(11,ht)),p("formGroup",e.formGroups),l(4),L(z(12,vt)),l(2),M(e.formsArray.controls),l(10),$(" ",ae(17,7,e.subtotalDebit)," "),l(4),$(" ",ae(21,9,e.subtotalCredit)," ")}}function Ft(t,m){if(t&1&&g(0,yt,22,13,"p-panel",6),t&2){let e=d();p("ngIf",e.formGroups)}}var it=(()=>{class t{constructor(){this.destroy$=new pe,this.subtotalDebit=0,this.subtotalCredit=0,this.fb=u(P),this.accSetupService=u(v),this.dayjsService=u(we),this.date=new Date,this.routes=u(xe)}ngOnInit(){this.initializeForm(),this.loadFormData(),this.calculateSubtotalDebit(),this.formGroups.get("forms").valueChanges.pipe(se(300),ue(this.destroy$)).subscribe(()=>{this.calculateSubtotalDebit()})}initializeForm(){this.formGroups=this.fb.group({forms:this.fb.array([]),date:this.fb.control(new Date)})}get formsArray(){return this.formGroups.get("forms")}getItemsArray(e){return e.get("items")}asFormGroup(e){return e}createFormGroup(e){return this.fb.group({id:[e.id],name:[e.name],items:this.createItemsArray(e.items)})}createItemsArray(e){let o=e.map(a=>this.createItemGroup(a));return this.fb.array(o)}createItemGroup(e){return this.fb.group({accountName:[e.accountName],accountCode:[e.accountCode],id:[e.id],journalID:[e.journalID],accountID:[e.accountID],debitAmount:[e.debitAmount],creditAmount:[e.creditAmount],index:[e.index],note:[e.note]})}loadFormData(){this.routes.data.pipe(ce(e=>e.data),Ve("response"),I(e=>{for(;this.formsArray.length>0;)this.formsArray.removeAt(0);e.form.filter(a=>a.items&&a.items.length>0).forEach(a=>{this.formsArray.push(this.createFormGroup(a))})})).subscribe({error:e=>console.error("Error loading form data:",e)})}calculateSubtotalDebit(){let e=this.formGroups.controls.forms;this.subtotalDebit=0,this.subtotalCredit=0,e.controls.forEach(o=>{let a=this.getItemsArray(o),s=a.controls.reduce((ee,te)=>{let ne=te.get("debitAmount").value||0;return ee+ne},0),mt=a.controls.reduce((ee,te)=>{let ne=te.get("creditAmount").value||0;return ee+ne},0);this.subtotalDebit+=s,this.subtotalCredit+=mt})}submitForm(){let e=Object.entries(this.formGroups.getRawValue()).reduce((o,[a,s])=>(a==="date"?o[a]=s instanceof Date?this.dayjsService.format(s):s:a==="forms"?o.form=s:o[a]=s,o),{});console.log("Submitting form data:",e),this.accSetupService.submitOpeningBalanceFormConfiguration(e).subscribe(),console.log("Submitting form data:",e)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}static{this.\u0275fac=function(o){return new(o||t)}}static{this.\u0275cmp=x({type:t,selectors:[["app-acc-opening-balance-form"]],features:[q([k])],decls:6,vars:1,consts:[["actionButton",""],["content",""],["header",""],["pageTitle","Opening Balance Form",3,"scrollable"],["preventOpenDuplicates",""],["label","Submit",3,"onClick"],[3,"formGroup","style",4,"ngIf"],[3,"formGroup"],["formArrayName","forms",1,"d-flex","flex-column","row-gap-4"],[3,"formGroupName"],[2,"position","fixed","bottom","0","left","241px",`/* offset from the left edge (assuming 250px sidebar) */
|
|
1
|
+
import{a as He,b as Ke,c as Qe,d as Xe,e as Ye,f as Ze}from"./chunk-RM5HLXNW.js";import{a as Le,b as $e,c as ze,d as Ue}from"./chunk-3UAQHNUY.js";import{a as qe,b as We}from"./chunk-E6SW7I4D.js";import{a as je}from"./chunk-KZHI6PGZ.js";import{b as Ve}from"./chunk-YPOBALKC.js";import{a as Re,b as Je}from"./chunk-B4C3ZPN6.js";import"./chunk-MHRSQRHT.js";import{a as Be,b as ke,k as Oe}from"./chunk-F6LZM7H5.js";import{a as Te,b as Me}from"./chunk-FSB3LHPU.js";import"./chunk-AMGBUOC4.js";import"./chunk-UPSNJEHO.js";import{a as we}from"./chunk-BT7Y4ADP.js";import{a as Q,b as X}from"./chunk-DJXQKSLT.js";import"./chunk-T367AQJ2.js";import{a as Ge,b as Pe}from"./chunk-AN4SAUSA.js";import"./chunk-URH77XNK.js";import{a as Ne,b as De}from"./chunk-E7QWESN4.js";import"./chunk-3DBSHDAQ.js";import"./chunk-PPXXWO4E.js";import"./chunk-M4SSELXT.js";import{b as Y}from"./chunk-WXIG4CXY.js";import"./chunk-WMZF4DQK.js";import"./chunk-QPPFPDWZ.js";import{i as A}from"./chunk-W63NE6LU.js";import"./chunk-S27Z7D3D.js";import{a as R,b as J}from"./chunk-AD247LWQ.js";import"./chunk-BKTBVFNX.js";import"./chunk-ZFNIPERQ.js";import{n as K,o as F,w as O,x as V}from"./chunk-ME4ALIS7.js";import"./chunk-DTYVTTET.js";import{Ha as k,b as w,c as le,e as y,f as N,j as Ie,l as D,m as W,n as Ee,o as G,u as P,w as H,x as B}from"./chunk-VMI3QWC6.js";import{b as xe,e as Se,l as ye}from"./chunk-F7PVAVLQ.js";import{a as Ae}from"./chunk-DSZOROE6.js";import{a as Fe}from"./chunk-2BI7WNJP.js";import{h as he,j as ve,k as Ce,q as _e,s as S}from"./chunk-ZK43JB4A.js";import"./chunk-F2X3VGZZ.js";import{Dc as q,Eb as g,Ec as z,Fc as oe,Ha as j,L as se,Mb as p,Oc as re,Pb as L,Pc as ae,Sb as E,Sc as f,Ub as T,Vb as M,Wb as i,Xb as n,Yb as c,Z as ue,_ as I,ac as C,ca as de,fc as _,g as pe,gc as d,ia as u,ib as l,ob as ie,qa as b,ra as h,s as ce,sc as r,tc as U,uc as $,xc as fe,yb as x,yc as ge,zc as be}from"./chunk-6QJHEOXN.js";import"./chunk-YQFG5XE2.js";var v=(()=>{class t{#e=u(Ae);fetchLoaderConfiguration(){return this.#e.get("","api/SetupLoader/Load")}updateAccountingIntegrationConfiguration(e){return this.#e.post(void 0,"/api/setup/SubmitConfig",e)}fetchOpeningBalanceFormConfiguration(){return this.#e.get("","/api/setup/OpeningBalance/Form")}submitOpeningBalanceFormConfiguration(e){return this.#e.post("","api/setup/OpeningBalance/Submit",e)}fetchAPICredential(){return this.#e.get(void 0,"/api/AccountConfig")}updateAPICredential(e){return this.#e.put(void 0,"/api/AccountConfig",e)}verifyAPICredential(e){return this.#e.post(void 0,"/api/AccountConfig/Validate",e)}formatJournal(e){return this.#e.post("","/api/setup/formatdata/clearjournal",{domain:e})}static{this.\u0275fac=function(o){return new(o||t)}}static{this.\u0275prov=de({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var ct=()=>({height:"calc(100vh - 100px)"});function st(t,m){if(t&1){let e=C();i(0,"div",4)(1,"a",5),r(2,"Cancel"),n(),i(3,"p-button",6),_("click",function(){b(e);let a=d();return h(a.updateAccountingIntegration())}),n()()}}function ut(t,m){if(t&1&&(i(0,"p-tab",8),r(1),n()),t&2){let e=m.$implicit,o=m.$index;p("value",o),l(),U(e)}}function dt(t,m){if(t&1&&(i(0,"div",25),c(1,"p-radiobutton",41),i(2,"label",42),r(3),n()()),t&2){let e=m.$implicit;l(),p("value",e.key)("inputId",e.value),l(),p("for",e.value),l(),U(e.value)}}function ft(t,m){if(t&1&&(i(0,"div",40)(1,"div",25),c(2,"p-radiobutton",43),i(3,"label",42),r(4),n()()()),t&2){let e=m.$implicit;l(2),p("value",e.key)("inputId",e.key.toString()),l(),p("for",e.key),l(),U(e.value)}}function gt(t,m){if(t&1&&(i(0,"p-scrollpanel",null,2)(2,"p-tabs",7)(3,"p-tablist"),T(4,ut,2,2,"p-tab",8,E),n(),i(6,"p-tabpanels")(7,"p-tabpanel",9)(8,"div",10)(9,"h3",11),r(10,"Accounting Numbering"),n(),i(11,"div",12)(12,"div",13)(13,"div",14)(14,"div",13)(15,"div",15)(16,"label",16),r(17,"Digit"),n(),c(18,"p-inputnumber",17),n()(),i(19,"div",13)(20,"div",15)(21,"label",18),r(22,"Seed"),n(),c(23,"p-inputnumber",19),n()(),i(24,"div",13)(25,"div",15)(26,"label",20),r(27,"Last Number"),n(),c(28,"p-inputnumber",21),n()(),i(29,"div",13)(30,"div",15)(31,"label",22),r(32,"Format"),n(),c(33,"p-select",23),n()(),i(34,"div",13)(35,"div",15)(36,"label",22),r(37,"Reset Every"),n(),i(38,"div",24),T(39,dt,4,4,"div",25,E),n()()()()()()()(),i(41,"p-tabpanel",8)(42,"div",26)(43,"div",27)(44,"h3",11),r(45,"Journal Generate"),n(),i(46,"p"),r(47,"Configure generate transaction"),n()(),i(48,"div",12)(49,"div",28)(50,"div",12)(51,"div",29)(52,"div",15)(53,"label",22),r(54,"Outlet Delivery Journal"),n(),c(55,"p-toggleswitch",30),n()(),i(56,"div",31)(57,"div",15)(58,"label",22),r(59,"Payment Discount Journal On Payment"),n(),c(60,"p-toggleswitch",32),n()()()()()(),c(61,"hr"),i(62,"div",26)(63,"div",28)(64,"div",12)(65,"div",33)(66,"label",22),r(67,"Note"),n()(),i(68,"div",29)(69,"div",15)(70,"label",22),r(71,"Note Required On Journal"),n(),c(72,"p-toggleswitch",34),n()(),i(73,"div",29)(74,"div",15)(75,"label",22),r(76,"Trial Balance Footer Visible"),n(),c(77,"p-toggleswitch",35),n()(),c(78,"div",29),n()()()(),i(79,"p-tabpanel",36)(80,"div",10)(81,"h3",11),r(82,"Report"),n(),i(83,"div",12)(84,"div",27)(85,"div",37)(86,"div")(87,"label",38),r(88,"Accounting For Treatment"),n(),i(89,"div",12)(90,"div",39)(91,"div",12),T(92,ft,5,4,"div",40,E),n()()()()()()()()()()()()),t&2){let e,o,a,s=d();L(z(8,ct)),l(2),p("value",0)("formGroup",s.form),l(2),M(s.tabs()),l(3),p("value",0),l(26),p("options",(e=s.accountingIntegration())==null||e.options==null?null:e.options.monthlyResetPeriodFormat),l(6),M((o=s.accountingIntegration())==null||o.options==null?null:o.options.resetPeriods),l(2),p("value",1),l(38),p("value",2),l(13),M((a=s.accountingIntegration())==null||a.options==null?null:a.options.generatePrepaidJournal)}}var tt=(()=>{class t{constructor(){this.accountingSetupService=u(v),this.fb=u(P).nonNullable,this.tabs=j(["Numbering","Journal","Report"]),this.accountingIntegration=j(null)}ngOnInit(){this.initializeForm(),this.loadAccountingConfiguration()}initializeForm(){this.form=this.fb.group({number:this.createNumberGroup(),report:this.createReportGroup(),journalGenerate:this.createJournalGenerateGroup()})}createNumberGroup(){return this.fb.group({seed:this.fb.control(""),digit:this.fb.control(""),resetEvery:this.fb.control(""),monthlyFormat:this.fb.control(""),lastNumber:this.fb.control(""),lastModified:this.fb.control("")})}createReportGroup(){return this.fb.group({accountingAuditType:this.fb.control(""),accountingEntityAccess:this.fb.control(""),generatePrepaidJournal:this.fb.control("")})}createJournalGenerateGroup(){return this.fb.group({eodExpenseJournal:this.fb.control(""),transferOrder:this.fb.control(""),paymentDiscount:this.fb.control(""),noteMandatory:this.fb.control(""),trialBalanceFooterVisible:this.fb.control("")})}loadAccountingConfiguration(){this.accountingSetupService.fetchLoaderConfiguration().pipe(I(e=>{this.accountingIntegration.set(e),this.form.patchValue(e.form)})).subscribe()}updateAccountingIntegration(){let e={form:this.form.getRawValue()};this.accountingSetupService.updateAccountingIntegrationConfiguration(e).pipe().subscribe()}static{this.\u0275fac=function(o){return new(o||t)}}static{this.\u0275cmp=x({type:t,selectors:[["app-accounting-integration"]],decls:5,vars:0,consts:[["actionButton",""],["content",""],["scrollPanelContainer",""],["pageTitle","Accounting Integration"],[1,"d-flex","gap-2"],["routerLink","..",1,"p-button","p-button-secondary","p-button-outlined"],["label","Submit",3,"click"],[1,"border-top",3,"value","formGroup"],[3,"value"],["formGroupName","number",3,"value"],[1,""],[1,"fs-5"],[1,"row"],[1,"col-6"],[1,"row","row-gap-3"],[1,"d-flex","flex-column"],["for","digit",1,"fs-4"],["inputId","digit","formControlName","digit"],["for","seed",1,"fs-4"],["inputId","seed","formControlName","seed"],["for","lastNumber",1,"fs-4"],["inputId","lastNumber","formControlName","lastNumber"],["for","",1,"fs-4"],["appendTo","body","formControlName","monthlyFormat","optionValue","key","optionLabel","value",3,"options"],[1,"d-flex","gap-4"],[1,"d-flex","align-items-center","gap-2"],["formGroupName","journalGenerate",1,"row"],[1,"col-12"],[1,"col-10"],[1,"col-md-4","mb-3"],["formControlName","transferOrder"],[1,"col-md-6","mb-4"],["formControlName","paymentDiscount"],[1,"col-12","mb-2"],["formControlName","noteMandatory"],["formControlName","trialBalanceFooterVisible"],["formGroupName","report",3,"value"],[1,"d-flex","flex-column","gap-4"],["for","generatePrepaidJournal",1,"fs-4","mb-2"],[1,"col-8"],[1,"col-4"],["name","resetEvery","formControlName","resetEvery",3,"value","inputId"],[1,"m-0",3,"for"],["name","generatePrepaidJournal","formControlName","generatePrepaidJournal",3,"value","inputId"]],template:function(o,a){o&1&&(i(0,"app-main-panel",3),g(1,st,4,0,"ng-template",null,0,f)(3,gt,94,9,"ng-template",null,1,f),n())},dependencies:[S,Ze,Ye,Xe,Qe,He,Ke,A,Y,ke,Be,B,y,N,D,G,W,F,Pe,Ge,Je,Re,ye,Se,V,O,De,Ne,X,Q],styles:["[_nghost-%COMP%]{display:block}.inactive-state[_ngcontent-%COMP%]{background-color:#e5e5e5}.active-state[_ngcontent-%COMP%]{background-color:var(--p-primary-color)}"],changeDetection:0})}}return t})();var ht=()=>({height:"cacl(100vh - 200px)"}),vt=()=>({height:"calc(100vh - 250px)"});function Ct(t,m){if(t&1){let e=C();i(0,"div")(1,"p-button",5),_("onClick",function(){b(e);let a=d();return h(a.submitForm())}),n()()}}function _t(t,m){t&1&&(i(0,"div",17)(1,"h3",18),r(2,"Date"),n(),c(3,"p-datePicker",19),n())}function xt(t,m){if(t&1&&(i(0,"tr",9)(1,"td",27),r(2),n(),i(3,"td"),c(4,"input",28),n(),i(5,"td"),c(6,"input",29),n()()),t&2){let e,o=m.$implicit,a=m.index,s=d(4);p("formGroupName",a),l(2),$(" ",(e=s.asFormGroup(o).get("accountName"))==null?null:e.value," ")}}function St(t,m){if(t&1&&(i(0,"div",9)(1,"h4",20),r(2),n(),i(3,"div",21)(4,"table",22)(5,"thead",23)(6,"tr")(7,"th",24),r(8,"Account Name"),n(),i(9,"th",25),r(10,"Debit"),n(),i(11,"th",25),r(12,"Credit"),n()()(),i(13,"tbody"),g(14,xt,7,2,"tr",26),n()()()()),t&2){let e=m.$implicit,o=m.$index,a=d(3);p("formGroupName",o),l(2),$(" ",e.get("name").value," "),l(12),p("ngForOf",a.getItemsArray(a.asFormGroup(e)).controls)}}function yt(t,m){if(t&1&&(i(0,"p-panel",7),g(1,_t,4,0,"ng-template",null,2,f),c(3,"p-divider"),i(4,"p-scroll-panel")(5,"div",8),T(6,St,15,3,"div",9,E),n()(),i(8,"div",10)(9,"table",11)(10,"tr")(11,"td",12)(12,"p",13),r(13," Total: "),n()(),i(14,"td",14)(15,"p",15),r(16),re(17,"number"),n()(),i(18,"td",16)(19,"p",15),r(20),re(21,"number"),n()()()()()()),t&2){let e=d(2);L(z(11,ht)),p("formGroup",e.formGroups),l(4),L(z(12,vt)),l(2),M(e.formsArray.controls),l(10),$(" ",ae(17,7,e.subtotalDebit)," "),l(4),$(" ",ae(21,9,e.subtotalCredit)," ")}}function Ft(t,m){if(t&1&&g(0,yt,22,13,"p-panel",6),t&2){let e=d();p("ngIf",e.formGroups)}}var it=(()=>{class t{constructor(){this.destroy$=new pe,this.subtotalDebit=0,this.subtotalCredit=0,this.fb=u(P),this.accSetupService=u(v),this.dayjsService=u(Ve),this.date=new Date,this.routes=u(xe)}ngOnInit(){this.initializeForm(),this.loadFormData(),this.calculateSubtotalDebit(),this.formGroups.get("forms").valueChanges.pipe(se(300),ue(this.destroy$)).subscribe(()=>{this.calculateSubtotalDebit()})}initializeForm(){this.formGroups=this.fb.group({forms:this.fb.array([]),date:this.fb.control(new Date)})}get formsArray(){return this.formGroups.get("forms")}getItemsArray(e){return e.get("items")}asFormGroup(e){return e}createFormGroup(e){return this.fb.group({id:[e.id],name:[e.name],items:this.createItemsArray(e.items)})}createItemsArray(e){let o=e.map(a=>this.createItemGroup(a));return this.fb.array(o)}createItemGroup(e){return this.fb.group({accountName:[e.accountName],accountCode:[e.accountCode],id:[e.id],journalID:[e.journalID],accountID:[e.accountID],debitAmount:[e.debitAmount],creditAmount:[e.creditAmount],index:[e.index],note:[e.note]})}loadFormData(){this.routes.data.pipe(ce(e=>e.data),we("response"),I(e=>{for(;this.formsArray.length>0;)this.formsArray.removeAt(0);e.form.filter(a=>a.items&&a.items.length>0).forEach(a=>{this.formsArray.push(this.createFormGroup(a))})})).subscribe({error:e=>console.error("Error loading form data:",e)})}calculateSubtotalDebit(){let e=this.formGroups.controls.forms;this.subtotalDebit=0,this.subtotalCredit=0,e.controls.forEach(o=>{let a=this.getItemsArray(o),s=a.controls.reduce((ee,te)=>{let ne=te.get("debitAmount").value||0;return ee+ne},0),mt=a.controls.reduce((ee,te)=>{let ne=te.get("creditAmount").value||0;return ee+ne},0);this.subtotalDebit+=s,this.subtotalCredit+=mt})}submitForm(){let e=Object.entries(this.formGroups.getRawValue()).reduce((o,[a,s])=>(a==="date"?o[a]=s instanceof Date?this.dayjsService.format(s):s:a==="forms"?o.form=s:o[a]=s,o),{});console.log("Submitting form data:",e),this.accSetupService.submitOpeningBalanceFormConfiguration(e).subscribe(),console.log("Submitting form data:",e)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}static{this.\u0275fac=function(o){return new(o||t)}}static{this.\u0275cmp=x({type:t,selectors:[["app-acc-opening-balance-form"]],features:[q([k])],decls:6,vars:1,consts:[["actionButton",""],["content",""],["header",""],["pageTitle","Opening Balance Form",3,"scrollable"],["preventOpenDuplicates",""],["label","Submit",3,"onClick"],[3,"formGroup","style",4,"ngIf"],[3,"formGroup"],["formArrayName","forms",1,"d-flex","flex-column","row-gap-4"],[3,"formGroupName"],[2,"position","fixed","bottom","0","left","241px",`/* offset from the left edge (assuming 250px sidebar) */
|
|
2
2
|
width`,`calc(
|
|
3
3
|
100% - 243px
|
|
4
4
|
)`,`/* adjust width to fit the remaining space */
|
|
5
5
|
z-index`,"91","background-color","white",`/* added background */
|
|
6
6
|
/* box-shadow`,"0 -2px 5px rgba(0, 0, 0, 0.1)",`*/ /* added subtle shadow */
|
|
7
7
|
padding`,"8px 0",`/* added padding for height */
|
|
8
|
-
border-top`,"1px solid #e0e0e0"],[1,"w-100","px-4"],[1,"ps-5"],[1,"fw-semibold","fs-4","m-0","text-end",2,"margin-right","10px !important"],[1,"",2,"width","200px"],[1,"fw-semibold","fs-4","m-0","text-start"],[1,"pe-5",2,"width","200px"],[1,"d-flex","flex-column","gap-2","mx-2"],[1,"fs-5","m-0"],["formControlName","date"],[1,"fs-4"],["formArrayName","items"],[1,"table"],[1,"table-secondary"],[1,"fs-3"],[1,"fs-3",2,"width","200px"],[3,"formGroupName",4,"ngFor","ngForOf"],[1,"fs-3","text-dark"],["appMaskNumber","","formControlName","debitAmount",1,"fs-3","form-control","text-dark"],["appMaskNumber","","formControlName","creditAmount",1,"fs-3","form-control","text-dark"]],template:function(o,a){o&1&&(i(0,"app-main-panel",3),g(1,Ct,2,0,"ng-template",null,0,f)(3,Ft,1,1,"ng-template",null,1,f),n(),c(5,"p-toast",4)),o&2&&p("scrollable",!0)},dependencies:[A,Y,S,ve,Ce,_e,Me,Te,Oe,X,Q,H,w,y,N,F,ze,V,O,J,R,je,B,D,G,W,Ee,We,qe],styles:["[_nghost-%COMP%]{display:block} .table thead tr th{border:none}"],changeDetection:0})}}return t})();var ot=t=>({"ng-invalid ng-dirty":t});function It(t,m){if(t&1){let e=C();i(0,"p-button",4),_("onClick",function(){b(e);let a=d();return h(a.verifyCredentials())}),r(1,"Verify"),n(),i(2,"p-button",4),_("onClick",function(){b(e);let a=d();return h(a.saveCredentials())}),r(3,"Update"),n()}}function Et(t,m){t&1&&(i(0,"div",12)(1,"h3",13),r(2,"Account"),n(),i(3,"small",14),r(4,"Configure Client ID and Client Secret"),n()())}function Tt(t,m){if(t&1&&(i(0,"div",5)(1,"p-panel"),g(2,Et,5,0,"ng-template",null,2,f),i(4,"div",6)(5,"div",7)(6,"div",8)(7,"label",9),r(8,"Client ID"),n(),c(9,"input",10),n()(),i(10,"div",7)(11,"div",8)(12,"label",9),r(13,"Client Secret"),n(),c(14,"input",11),n()()()()()),t&2){let e=d();l(4),p("formGroup",e.credentialForm),l(5),p("ngClass",oe(3,ot,e.clientIDControl.invalid&&e.clientIDControl.dirty||e.clientIDControl.touched)),l(5),p("ngClass",oe(5,ot,e.clientSecretControl.invalid&&e.clientSecretControl.dirty||e.clientSecretControl.touched))}}var rt=(()=>{class t{constructor(e,o){this.fb=e,this.messageService=o,this.setupService=u(v)}ngOnInit(){this.initForm(),this.setupService.fetchAPICredential().pipe(I(e=>{this.credentialForm.patchValue({clientID:e.clientID||"",clientSecret:e.clientSecret||""})})).subscribe()}initForm(){this.credentialForm=this.fb.group({clientID:["",[le.required]],clientSecret:["",[le.required]]})}get clientIDControl(){return this.credentialForm.get("clientID")}get clientSecretControl(){return this.credentialForm.get("clientSecret")}saveCredentials(){if(this.credentialForm.invalid){this.credentialForm.markAllAsTouched();return}let e=this.credentialForm.getRawValue();console.log("Saving credentials:",e),this.setupService.updateAPICredential(e).subscribe()}verifyCredentials(){if(this.credentialForm.invalid){this.credentialForm.markAllAsTouched();return}let e=this.credentialForm.getRawValue();console.log("Verifying credentials:",e),this.setupService.verifyAPICredential(e).subscribe({next:o=>{console.log("Verify result:",o),this.messageService.add({severity:"success",summary:"Verified",detail:"Credentials are valid!"})},error:o=>{console.error("Verify failed:",o),this.messageService.add({severity:"error",summary:"Invalid",detail:"Client ID or Secret is wrong!"})}})}static{this.\u0275fac=function(o){return new(o||t)(ie(P),ie(k))}}static{this.\u0275cmp=x({type:t,selectors:[["app-api-credential"]],features:[q([k])],decls:5,vars:0,consts:[["actionButton",""],["content",""],["header",""],["pageTitle","API Credential"],[3,"onClick"],[1,"d-flex","flex-column","row-gap-4"],[1,"row",3,"formGroup"],[1,"col-6"],[1,"d-flex","flex-column"],["for","outlet"],["type","text","pInputText","","formControlName","clientID",3,"ngClass"],["type","text","pInputText","","formControlName","clientSecret",3,"ngClass"],[1,"d-flex","flex-column","px-2"],[1,"mb-0","fw-bold"],[1,"fst-italic","text-muted"]],template:function(o,a){o&1&&(i(0,"app-main-panel",3),g(1,It,4,0,"ng-template",null,0,f)(3,Tt,15,7,"ng-template",null,1,f),n())},dependencies:[S,he,B,w,y,N,D,G,F,K,J,R,A,V,O,Ue],encapsulation:2})}}return t})();function Mt(t,m){if(t&1){let e=C();i(0,"button",4),_("click",function(){b(e);let a=d();return h(a.onFormatJournal())}),r(1," Format "),n()}}function wt(t,m){t&1&&(i(0,"div",12)(1,"div",13)(2,"h4",14),r(3,"Journal Configuration"),n(),i(4,"small",15),r(5," Enter your account information to format journal entries "),n()()())}function Nt(t,m){if(t&1){let e=C();i(0,"div",5)(1,"p-panel"),g(2,wt,6,0,"ng-template",null,2,f),i(4,"div",6)(5,"div",7)(6,"p-floatlabel",8)(7,"input",9),be("ngModelChange",function(a){b(e);let s=d();return ge(s.subdomain,a)||(s.subdomain=a),h(a)}),n(),i(8,"label",10),r(9,"Subdomain"),n()(),i(10,"small",11),r(11,"Enter your account subdomain (e.g., mycompany.dealpos.net)"),n()()()()()}if(t&2){let e=d();l(7),fe("ngModel",e.subdomain)}}var at=(()=>{class t{constructor(){this.setupService=u(v),this.subdomain=j(""),this.toastrService=u(Fe)}onFormatJournal(){if(!this.subdomain()){this.toastrService.error("Please enter a subdomain","Error");return}this.setupService.formatJournal(this.subdomain()).subscribe({next:e=>{this.toastrService.success(e.message,"Success")}})}static{this.\u0275fac=function(o){return new(o||t)}}static{this.\u0275cmp=x({type:t,selectors:[["app-format-jurnal"]],decls:5,vars:0,consts:[["actionButton",""],["content",""],["header",""],["pageTitle","Format Journal"],[1,"btn","btn-success","rounded",3,"click"],[1,"d-flex","flex-column","row-gap-4"],[1,"row","mt-6"],[1,"col-12"],["variant","on"],["pInputText","","id","subdomain","autocomplete","off",1,"w-100",3,"ngModelChange","ngModel"],["for","subdomain"],[1,"text-muted","fst-italic",2,"font-size","12px"],[1,"row","ps-2"],[1,"col-12","d-flex","flex-column"],[1,"mb-1","fw-bold"],[1,"fst-italic","text-muted"]],template:function(o,a){o&1&&(i(0,"app-main-panel",3),g(1,Mt,2,0,"ng-template",null,0,f)(3,Nt,12,1,"ng-template",null,1,f),n())},dependencies:[S,H,w,y,Ie,F,K,A,J,R,$e,Le],encapsulation:2})}}return t})();var lt=()=>u(v).fetchOpeningBalanceFormConfiguration();var di=[{path:"",redirectTo:"accounting-integration",pathMatch:"full"},{path:"",children:[{path:"journal-tag",loadComponent:()=>import("./chunk-
|
|
8
|
+
border-top`,"1px solid #e0e0e0"],[1,"w-100","px-4"],[1,"ps-5"],[1,"fw-semibold","fs-4","m-0","text-end",2,"margin-right","10px !important"],[1,"",2,"width","200px"],[1,"fw-semibold","fs-4","m-0","text-start"],[1,"pe-5",2,"width","200px"],[1,"d-flex","flex-column","gap-2","mx-2"],[1,"fs-5","m-0"],["formControlName","date"],[1,"fs-4"],["formArrayName","items"],[1,"table"],[1,"table-secondary"],[1,"fs-3"],[1,"fs-3",2,"width","200px"],[3,"formGroupName",4,"ngFor","ngForOf"],[1,"fs-3","text-dark"],["appMaskNumber","","formControlName","debitAmount",1,"fs-3","form-control","text-dark"],["appMaskNumber","","formControlName","creditAmount",1,"fs-3","form-control","text-dark"]],template:function(o,a){o&1&&(i(0,"app-main-panel",3),g(1,Ct,2,0,"ng-template",null,0,f)(3,Ft,1,1,"ng-template",null,1,f),n(),c(5,"p-toast",4)),o&2&&p("scrollable",!0)},dependencies:[A,Y,S,ve,Ce,_e,Me,Te,Oe,X,Q,H,w,y,N,F,ze,V,O,J,R,je,B,D,G,W,Ee,We,qe],styles:["[_nghost-%COMP%]{display:block} .table thead tr th{border:none}"],changeDetection:0})}}return t})();var ot=t=>({"ng-invalid ng-dirty":t});function It(t,m){if(t&1){let e=C();i(0,"p-button",4),_("onClick",function(){b(e);let a=d();return h(a.verifyCredentials())}),r(1,"Verify"),n(),i(2,"p-button",4),_("onClick",function(){b(e);let a=d();return h(a.saveCredentials())}),r(3,"Update"),n()}}function Et(t,m){t&1&&(i(0,"div",12)(1,"h3",13),r(2,"Account"),n(),i(3,"small",14),r(4,"Configure Client ID and Client Secret"),n()())}function Tt(t,m){if(t&1&&(i(0,"div",5)(1,"p-panel"),g(2,Et,5,0,"ng-template",null,2,f),i(4,"div",6)(5,"div",7)(6,"div",8)(7,"label",9),r(8,"Client ID"),n(),c(9,"input",10),n()(),i(10,"div",7)(11,"div",8)(12,"label",9),r(13,"Client Secret"),n(),c(14,"input",11),n()()()()()),t&2){let e=d();l(4),p("formGroup",e.credentialForm),l(5),p("ngClass",oe(3,ot,e.clientIDControl.invalid&&e.clientIDControl.dirty||e.clientIDControl.touched)),l(5),p("ngClass",oe(5,ot,e.clientSecretControl.invalid&&e.clientSecretControl.dirty||e.clientSecretControl.touched))}}var rt=(()=>{class t{constructor(e,o){this.fb=e,this.messageService=o,this.setupService=u(v)}ngOnInit(){this.initForm(),this.setupService.fetchAPICredential().pipe(I(e=>{this.credentialForm.patchValue({clientID:e.clientID||"",clientSecret:e.clientSecret||""})})).subscribe()}initForm(){this.credentialForm=this.fb.group({clientID:["",[le.required]],clientSecret:["",[le.required]]})}get clientIDControl(){return this.credentialForm.get("clientID")}get clientSecretControl(){return this.credentialForm.get("clientSecret")}saveCredentials(){if(this.credentialForm.invalid){this.credentialForm.markAllAsTouched();return}let e=this.credentialForm.getRawValue();console.log("Saving credentials:",e),this.setupService.updateAPICredential(e).subscribe()}verifyCredentials(){if(this.credentialForm.invalid){this.credentialForm.markAllAsTouched();return}let e=this.credentialForm.getRawValue();console.log("Verifying credentials:",e),this.setupService.verifyAPICredential(e).subscribe({next:o=>{console.log("Verify result:",o),this.messageService.add({severity:"success",summary:"Verified",detail:"Credentials are valid!"})},error:o=>{console.error("Verify failed:",o),this.messageService.add({severity:"error",summary:"Invalid",detail:"Client ID or Secret is wrong!"})}})}static{this.\u0275fac=function(o){return new(o||t)(ie(P),ie(k))}}static{this.\u0275cmp=x({type:t,selectors:[["app-api-credential"]],features:[q([k])],decls:5,vars:0,consts:[["actionButton",""],["content",""],["header",""],["pageTitle","API Credential"],[3,"onClick"],[1,"d-flex","flex-column","row-gap-4"],[1,"row",3,"formGroup"],[1,"col-6"],[1,"d-flex","flex-column"],["for","outlet"],["type","text","pInputText","","formControlName","clientID",3,"ngClass"],["type","text","pInputText","","formControlName","clientSecret",3,"ngClass"],[1,"d-flex","flex-column","px-2"],[1,"mb-0","fw-bold"],[1,"fst-italic","text-muted"]],template:function(o,a){o&1&&(i(0,"app-main-panel",3),g(1,It,4,0,"ng-template",null,0,f)(3,Tt,15,7,"ng-template",null,1,f),n())},dependencies:[S,he,B,w,y,N,D,G,F,K,J,R,A,V,O,Ue],encapsulation:2})}}return t})();function Mt(t,m){if(t&1){let e=C();i(0,"button",4),_("click",function(){b(e);let a=d();return h(a.onFormatJournal())}),r(1," Format "),n()}}function wt(t,m){t&1&&(i(0,"div",12)(1,"div",13)(2,"h4",14),r(3,"Journal Configuration"),n(),i(4,"small",15),r(5," Enter your account information to format journal entries "),n()()())}function Nt(t,m){if(t&1){let e=C();i(0,"div",5)(1,"p-panel"),g(2,wt,6,0,"ng-template",null,2,f),i(4,"div",6)(5,"div",7)(6,"p-floatlabel",8)(7,"input",9),be("ngModelChange",function(a){b(e);let s=d();return ge(s.subdomain,a)||(s.subdomain=a),h(a)}),n(),i(8,"label",10),r(9,"Subdomain"),n()(),i(10,"small",11),r(11,"Enter your account subdomain (e.g., mycompany.dealpos.net)"),n()()()()()}if(t&2){let e=d();l(7),fe("ngModel",e.subdomain)}}var at=(()=>{class t{constructor(){this.setupService=u(v),this.subdomain=j(""),this.toastrService=u(Fe)}onFormatJournal(){if(!this.subdomain()){this.toastrService.error("Please enter a subdomain","Error");return}this.setupService.formatJournal(this.subdomain()).subscribe({next:e=>{this.toastrService.success(e.message,"Success")}})}static{this.\u0275fac=function(o){return new(o||t)}}static{this.\u0275cmp=x({type:t,selectors:[["app-format-jurnal"]],decls:5,vars:0,consts:[["actionButton",""],["content",""],["header",""],["pageTitle","Format Journal"],[1,"btn","btn-success","rounded",3,"click"],[1,"d-flex","flex-column","row-gap-4"],[1,"row","mt-6"],[1,"col-12"],["variant","on"],["pInputText","","id","subdomain","autocomplete","off",1,"w-100",3,"ngModelChange","ngModel"],["for","subdomain"],[1,"text-muted","fst-italic",2,"font-size","12px"],[1,"row","ps-2"],[1,"col-12","d-flex","flex-column"],[1,"mb-1","fw-bold"],[1,"fst-italic","text-muted"]],template:function(o,a){o&1&&(i(0,"app-main-panel",3),g(1,Mt,2,0,"ng-template",null,0,f)(3,Nt,12,1,"ng-template",null,1,f),n())},dependencies:[S,H,w,y,Ie,F,K,A,J,R,$e,Le],encapsulation:2})}}return t})();var lt=()=>u(v).fetchOpeningBalanceFormConfiguration();var di=[{path:"",redirectTo:"accounting-integration",pathMatch:"full"},{path:"",children:[{path:"journal-tag",loadComponent:()=>import("./chunk-WKHQICFW.js").then(t=>t.JournalTagComponent)},{path:"journal-tag/info",loadComponent:()=>import("./chunk-XOSALV7T.js").then(t=>t.JournalTagInfoComponent)},{path:"journal-tag/form",loadComponent:()=>import("./chunk-VVAI7ZGN.js").then(t=>t.JournalTagFormComponent)},{path:"accounting-integration",component:tt},{path:"opening-balance-form",component:it,resolve:{data:lt}},{path:"api-crendetial",component:rt},{path:"format-journal",component:at},{path:"closing-entries",loadComponent:()=>import("./chunk-B3VZ2ZHJ.js").then(t=>t.ClosingPageComponent)},{path:"closing-entries/create",loadComponent:()=>import("./chunk-H7GQCGCR.js").then(t=>t.ClosingFormComponent)}]}];export{di as ACCOUNTING_SETUP_ROUTES};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as u}from"./chunk-
|
|
1
|
+
import{a as u}from"./chunk-F3RSX7TC.js";import{a as o}from"./chunk-DSZOROE6.js";import{ca as i,ia as n}from"./chunk-6QJHEOXN.js";var d=(()=>{class r{constructor(){this.httpService=n(o),this.authService=n(u)}getJournalInvoiceLoader(){return this.httpService.get(void 0,"api/GenerateJournal/invoice/Loader")}getCustomerSuggestions(e){let t={Prefix:e,Count:100};return this.httpService.get(this.authService.getTenantExternalURL(),"/API/AC/GetCustomerSuggestion",{params:t})}getJournalInvoice(e){let t={params:e};return this.httpService.get(void 0,"api/GenerateJournal/invoice/get",t)}generateJournalInvoice(e){return this.httpService.post(void 0,"api/GenerateJournal/invoice/Submit",e)}getGJSupplierBillLoader(){return this.httpService.get(void 0,"api/GenerateJournal/bill/Loader")}getJournalSupplierBill(e){let t={params:e};return this.httpService.get(void 0,"api/GenerateJournal/bill/get",t)}generateJournalSupplierBill(e){return this.httpService.post(void 0,"api/GenerateJournal/bill/Submit",e)}getGJShiftLoader(){return this.httpService.get(void 0,"api/GenerateJournal/Shift/Loader")}getJournalShift(e){let t={params:e};return this.httpService.get(void 0,"api/GenerateJournal/Shift/get",t)}generateJornalShift(e){return this.httpService.post(void 0,"api/GenerateJournal/Shift/Submit",e)}getARJournalLoader(){return this.httpService.get(void 0,"/api/GenerateJournal/JoinInvoice/Loader")}getARJournal(e){let t={params:e};return this.httpService.get(void 0,"api/GenerateJournal/JoinInvoice/get",t)}createARJournal(e){return this.httpService.post(void 0,"api/GenerateJournal/JoinInvoice/Submit",e)}getAPJournalLoader(){return this.httpService.get(void 0,"/api/GenerateJournal/JoinBill/Loader")}getAPJournal(e){let t={params:e};return this.httpService.get(void 0,"api/GenerateJournal/JoinBill/get",t)}createAPJournal(e){return this.httpService.post(void 0,"api/GenerateJournal/JoinBill/Submit",e)}getGJAdjustmentLoader(){return this.httpService.get(void 0,"api/GenerateJournal/InventoryAdjustment/Loader")}getAdjustmentJournal(e){let t={params:e};return this.httpService.get(void 0,"api/GenerateJournal/InventoryAdjustment/get",t)}createAdjustmentJournal(e){return this.httpService.post(void 0,"api/GenerateJournal/InventoryAdjustment/Submit",e)}getSupplierSuggestions(e){let t={Prefix:e,Count:100};return this.httpService.get(this.authService.getTenantExternalURL(),"/API/AC/GetSupplierSuggestion",{params:t})}static{this.\u0275fac=function(t){return new(t||r)}}static{this.\u0275prov=i({token:r,factory:r.\u0275fac,providedIn:"root"})}}return r})();export{d as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as h}from"./chunk-
|
|
1
|
+
import{a as h}from"./chunk-ME4ALIS7.js";import{Ua as m}from"./chunk-VMI3QWC6.js";import{s as g}from"./chunk-ZK43JB4A.js";import{Cb as a,Dc as y,Wb as d,Xb as f,ca as u,da as r,hc as c,ia as s,ic as l,ua as p,yb as i,zb as b}from"./chunk-6QJHEOXN.js";var D=["*"],F=({dt:t})=>`
|
|
2
2
|
.p-buttongroup .p-button {
|
|
3
3
|
margin: 0;
|
|
4
4
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as ce,c as pe,f as g}from"./chunk-
|
|
1
|
+
import{a as ce,c as pe,f as g}from"./chunk-ME4ALIS7.js";import{G as ee,Ia as re,K as te,La as se,Ma as y,Q as ie,Ra as ae,Ua as le,_ as I,ga as oe,ia as ne,z as J}from"./chunk-VMI3QWC6.js";import{h as W,k as q,l as K,m as U,s as X,t as m}from"./chunk-ZK43JB4A.js";import{c as G,d as L,f as v,g as b,h as O}from"./chunk-F2X3VGZZ.js";import{$c as Y,Aa as _,Ba as V,Cb as A,Dc as N,Eb as d,Fc as Q,Gc as x,Lb as F,Mb as h,Qb as R,Wb as w,Xb as Z,_c as f,ac as B,ca as P,da as D,fc as u,gc as r,hb as $,hc as M,ia as p,ib as H,ic as j,lc as k,nc as T,oc as S,qa as l,ra as c,ua as C,yb as z,zb as E}from"./chunk-6QJHEOXN.js";var he=["content"],ue=["*"],fe=(t,s)=>({showTransitionParams:t,hideTransitionParams:s}),me=(t,s)=>({value:t,params:s}),ve=t=>({closeCallback:t});function be(t,s){}function ye(t,s){t&1&&d(0,be,0,0,"ng-template")}function ge(t,s){if(t&1){let e=B();w(0,"div",1),u("click",function(o){l(e);let n=r();return c(n.onOverlayClick(o))})("@animation.start",function(o){l(e);let n=r();return c(n.onAnimationStart(o))})("@animation.done",function(o){l(e);let n=r();return c(n.onAnimationEnd(o))}),w(1,"div",2),u("click",function(o){l(e);let n=r();return c(n.onContentClick(o))})("mousedown",function(o){l(e);let n=r();return c(n.onContentClick(o))}),j(2),d(3,ye,1,0,null,3),Z()()}if(t&2){let e=r();R(e.styleClass),h("ngClass","p-popover p-component")("ngStyle",e.style)("@animation",x(13,me,e.overlayVisible?"open":"close",x(10,fe,e.showTransitionOptions,e.hideTransitionOptions))),F("aria-modal",e.overlayVisible)("aria-label",e.ariaLabel)("aria-labelledBy",e.ariaLabelledBy),H(3),h("ngTemplateOutlet",e.contentTemplate||e._contentTemplate)("ngTemplateOutletContext",Q(16,ve,e.onCloseClick.bind(e)))}}var Ce=({dt:t})=>`
|
|
2
2
|
.p-popover {
|
|
3
3
|
margin-top: ${t("popover.gutter")};
|
|
4
4
|
background: ${t("popover.background")};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as Ft,h as U,i as Pt}from"./chunk-
|
|
1
|
+
import{a as Ft,h as U,i as Pt}from"./chunk-ME4ALIS7.js";import{Da as Vt,La as Lt,Ma as K,Q as Et,Ua as Ot,V as R,ca as D,ea as et,ia as xt}from"./chunk-VMI3QWC6.js";import{h as St,j as It,k as vt,l as Tt,m as zt,s as bt,t as tt}from"./chunk-ZK43JB4A.js";import{$b as W,Aa as J,Ba as ht,Cb as B,Dc as yt,Eb as w,Ec as wt,Fc as A,Gc as N,Hc as Ct,Lb as T,Mb as m,Nb as mt,Pb as pt,Qb as Q,Sc as j,Wb as z,Xb as b,Yb as E,Zb as x,_b as V,ac as ut,ca as nt,da as st,fc as _t,gc as y,hc as gt,ia as ot,ib as _,ic as ft,lc as k,mc as Y,nc as L,ob as ct,oc as O,pa as lt,qa as rt,ra as at,rc as $,sa as G,ua as M,yb as H,zb as dt}from"./chunk-6QJHEOXN.js";import{a as Z,b as X}from"./chunk-YQFG5XE2.js";var ge=(()=>{class i extends U{static \u0275fac=(()=>{let t;return function(n){return(t||(t=M(i)))(n||i)}})();static \u0275cmp=H({type:i,selectors:[["BlankIcon"]],features:[B],decls:2,vars:0,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["width","1","height","1","fill","currentColor","fill-opacity","0"]],template:function(e,n){e&1&&(G(),z(0,"svg",0),E(1,"rect",1),b())},encapsulation:2})}return i})();var Ce=(()=>{class i extends U{pathId;ngOnInit(){this.pathId="url(#"+Vt()+")"}static \u0275fac=(()=>{let t;return function(n){return(t||(t=M(i)))(n||i)}})();static \u0275cmp=H({type:i,selectors:[["SearchIcon"]],features:[B],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","M2.67602 11.0265C3.6661 11.688 4.83011 12.0411 6.02086 12.0411C6.81149 12.0411 7.59438 11.8854 8.32483 11.5828C8.87005 11.357 9.37808 11.0526 9.83317 10.6803L12.9769 13.8241C13.0323 13.8801 13.0983 13.9245 13.171 13.9548C13.2438 13.985 13.3219 14.0003 13.4007 14C13.4795 14.0003 13.5575 13.985 13.6303 13.9548C13.7031 13.9245 13.7691 13.8801 13.8244 13.8241C13.9367 13.7116 13.9998 13.5592 13.9998 13.4003C13.9998 13.2414 13.9367 13.089 13.8244 12.9765L10.6807 9.8328C11.053 9.37773 11.3573 8.86972 11.5831 8.32452C11.8857 7.59408 12.0414 6.81119 12.0414 6.02056C12.0414 4.8298 11.6883 3.66579 11.0268 2.67572C10.3652 1.68564 9.42494 0.913972 8.32483 0.45829C7.22472 0.00260857 6.01418 -0.116618 4.84631 0.115686C3.67844 0.34799 2.60568 0.921393 1.76369 1.76338C0.921698 2.60537 0.348296 3.67813 0.115991 4.84601C-0.116313 6.01388 0.00291375 7.22441 0.458595 8.32452C0.914277 9.42464 1.68595 10.3649 2.67602 11.0265ZM3.35565 2.0158C4.14456 1.48867 5.07206 1.20731 6.02086 1.20731C7.29317 1.20731 8.51338 1.71274 9.41304 2.6124C10.3127 3.51206 10.8181 4.73226 10.8181 6.00457C10.8181 6.95337 10.5368 7.88088 10.0096 8.66978C9.48251 9.45868 8.73328 10.0736 7.85669 10.4367C6.98011 10.7997 6.01554 10.8947 5.08496 10.7096C4.15439 10.5245 3.2996 10.0676 2.62869 9.39674C1.95778 8.72583 1.50089 7.87104 1.31579 6.94046C1.13068 6.00989 1.22568 5.04532 1.58878 4.16874C1.95187 3.29215 2.56675 2.54292 3.35565 2.0158Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(e,n){e&1&&(G(),z(0,"svg",0)(1,"g"),E(2,"path",1),b(),z(3,"defs")(4,"clipPath",2),E(5,"rect",3),b()()()),e&2&&(Q(n.getClassNames()),T("aria-label",n.ariaLabel)("aria-hidden",n.ariaHidden)("role",n.role),_(),T("clip-path",n.pathId),_(3),m("id",n.pathId))},encapsulation:2})}return i})();var Dt=["content"],Bt=["item"],Wt=["loader"],kt=["loadericon"],At=["element"],Qt=["*"],$t=(i,h,t)=>({"p-virtualscroller":!0,"p-virtualscroller-inline":i,"p-virtualscroller-both p-both-scroll":h,"p-virtualscroller-horizontal p-horizontal-scroll":t}),it=(i,h)=>({$implicit:i,options:h}),Nt=i=>({"p-virtualscroller-content":!0,"p-virtualscroller-loading ":i}),jt=i=>({"p-virtualscroller-loader-mask":i}),qt=i=>({numCols:i}),Ht=i=>({options:i}),Zt=()=>({styleClass:"p-virtualscroller-loading-icon"}),Gt=(i,h)=>({rows:i,columns:h});function Jt(i,h){i&1&&W(0)}function Kt(i,h){if(i&1&&(x(0),w(1,Jt,1,0,"ng-container",10),V()),i&2){let t=y(2);_(),m("ngTemplateOutlet",t.contentTemplate||t._contentTemplate)("ngTemplateOutletContext",N(2,it,t.loadedItems,t.getContentOptions()))}}function Ut(i,h){i&1&&W(0)}function Xt(i,h){if(i&1&&(x(0),w(1,Ut,1,0,"ng-container",10),V()),i&2){let t=h.$implicit,e=h.index,n=y(3);_(),m("ngTemplateOutlet",n.itemTemplate||n._itemTemplate)("ngTemplateOutletContext",N(2,it,t,n.getOptions(e)))}}function Yt(i,h){if(i&1&&(z(0,"div",11,3),w(2,Xt,2,5,"ng-container",12),b()),i&2){let t=y(2);pt(t.contentStyle),Q(t.contentStyleClass),m("ngClass",A(8,Nt,t.d_loading)),T("data-pc-section","content"),_(2),m("ngForOf",t.loadedItems)("ngForTrackBy",t._trackBy)}}function te(i,h){if(i&1&&E(0,"div",13),i&2){let t=y(2);m("ngStyle",t.spacerStyle),T("data-pc-section","spacer")}}function ee(i,h){i&1&&W(0)}function ie(i,h){if(i&1&&(x(0),w(1,ee,1,0,"ng-container",10),V()),i&2){let t=h.index,e=y(4);_(),m("ngTemplateOutlet",e.loaderTemplate||e._loaderTemplate)("ngTemplateOutletContext",A(4,Ht,e.getLoaderOptions(t,e.both&&A(2,qt,e.numItemsInViewport.cols))))}}function ne(i,h){if(i&1&&(x(0),w(1,ie,2,6,"ng-container",15),V()),i&2){let t=y(3);_(),m("ngForOf",t.loaderArr)}}function se(i,h){i&1&&W(0)}function oe(i,h){if(i&1&&(x(0),w(1,se,1,0,"ng-container",10),V()),i&2){let t=y(4);_(),m("ngTemplateOutlet",t.loaderIconTemplate||t._loaderIconTemplate)("ngTemplateOutletContext",A(3,Ht,wt(2,Zt)))}}function le(i,h){i&1&&E(0,"SpinnerIcon",16),i&2&&(m("styleClass","p-virtualscroller-loading-icon pi-spin"),T("data-pc-section","loadingIcon"))}function re(i,h){if(i&1&&w(0,oe,2,5,"ng-container",6)(1,le,1,2,"ng-template",null,5,j),i&2){let t=$(2),e=y(3);m("ngIf",e.loaderIconTemplate||e._loaderIconTemplate)("ngIfElse",t)}}function ae(i,h){if(i&1&&(z(0,"div",14),w(1,ne,2,1,"ng-container",6)(2,re,3,2,"ng-template",null,4,j),b()),i&2){let t=$(3),e=y(2);m("ngClass",A(4,jt,!e.loaderTemplate)),T("data-pc-section","loader"),_(),m("ngIf",e.loaderTemplate||e._loaderTemplate)("ngIfElse",t)}}function he(i,h){if(i&1){let t=ut();x(0),z(1,"div",7,1),_t("scroll",function(n){rt(t);let s=y();return at(s.onContainerScroll(n))}),w(3,Kt,2,5,"ng-container",6)(4,Yt,3,10,"ng-template",null,2,j)(6,te,1,2,"div",8)(7,ae,4,6,"div",9),b(),V()}if(i&2){let t=$(5),e=y();_(),Q(e._styleClass),m("ngStyle",e._style)("ngClass",Ct(12,$t,e.inline,e.both,e.horizontal)),T("id",e._id)("tabindex",e.tabindex)("data-pc-name","scroller")("data-pc-section","root"),_(2),m("ngIf",e.contentTemplate||e._contentTemplate)("ngIfElse",t),_(3),m("ngIf",e._showSpacer),_(),m("ngIf",!e.loaderDisabled&&e._showLoader&&e.d_loading)}}function ce(i,h){i&1&&W(0)}function de(i,h){if(i&1&&(x(0),w(1,ce,1,0,"ng-container",10),V()),i&2){let t=y(2);_(),m("ngTemplateOutlet",t.contentTemplate||t._contentTemplate)("ngTemplateOutletContext",N(5,it,t.items,N(2,Gt,t._items,t.loadedColumns)))}}function me(i,h){if(i&1&&(ft(0),w(1,de,2,8,"ng-container",17)),i&2){let t=y();_(),m("ngIf",t.contentTemplate||t._contentTemplate)}}var pe=({dt:i})=>`
|
|
2
2
|
.p-virtualscroller {
|
|
3
3
|
position: relative;
|
|
4
4
|
overflow: auto;
|