receiptfeedback 1.0.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.
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkfeedback=self.webpackChunkfeedback||[]).push([[180],{1180:(S,m,c)=>{c.r(m),c.d(m,{FeedbackComponent:()=>F});var d=c(6814),s=c(95),p=c(3771),e=c(8926),u=c(9862),g=c(3989),h=c(9229),f=c(6006),v=c(9397);let C=(()=>{var a;class o{constructor(t,n){this.httpClient=t,this.encodeService=n}getInitPage(){return this.httpClient.post(`https://${this.encodeService.host}/API/Feedback/InitializePage`,{ID:this.encodeService.invoiceId}).pipe((0,v.b)(r=>{this.initialData=r}))}addComment(t){return t.InvoiceID=this.encodeService.invoiceId,this.httpClient.post(`https://${this.encodeService.host}/API/Feedback/AddComment`,t)}getCloudinaryConfig(){let t;return"string"==typeof this.initialData.Cloudinary?(t=JSON.parse(atob(this.initialData.Cloudinary)),t.CloudinaryFolder=this.initialData.CloudinaryFolder):t={CloudName:this.initialData.Cloudinary.Cloudinary.CloudName,CloudinaryFolder:this.initialData.CloudinaryFolder,UploadPreset:this.initialData.Cloudinary.Cloudinary.UnsignedUploadKey},t}}return(a=o).\u0275fac=function(t){return new(t||a)(e.LFG(u.eN),e.LFG(f.L))},a.\u0275prov=e.Yz7({token:a,factory:a.\u0275fac,providedIn:"root"}),o})(),x=(()=>{var a;class o{constructor(t){this.httpClient=t}getFormData(t,n){let r=new FormData;return r.append("upload_preset",n.UploadPreset),r.append("file",t),r.append("folder",n.CloudinaryFolder),r}upload(t,n){const r=`https://api.cloudinary.com/v1_1/${n.CloudName}/image/upload`,l=this.getFormData(t,n);return this.httpClient.post(r,l)}generateImageUrl(t){let n=null;return null!=t&&(n=this.getOriginalName(t.secure_url)),n}getOriginalName(t){let n=t.split("/");return n[n.length-1]}}return(a=o).\u0275fac=function(t){return new(t||a)(e.LFG(u.eN))},a.\u0275prov=e.Yz7({token:a,factory:a.\u0275fac,providedIn:"root"}),o})();function y(a,o){1&a&&(e.TgZ(0,"div",2)(1,"div",3),e._UZ(2,"i",4),e.qZA(),e.TgZ(3,"div",3)(4,"h1"),e._uU(5,"Thanks for your feedback"),e.qZA()()())}function b(a,o){1&a&&(e.TgZ(0,"div",38),e._uU(1," Comment is required. "),e.qZA())}function _(a,o){1&a&&e._UZ(0,"span",39)}function k(a,o){if(1&a){const i=e.EpF();e.ynx(0),e.TgZ(1,"div",5)(2,"div",6)(3,"div",7)(4,"div",8)(5,"div",9)(6,"button",10),e.NdJ("click",function(){e.CHM(i);const n=e.oxw();return e.KtG(n.redirectToReceipt())}),e.TgZ(7,"div",11),e._UZ(8,"i",12),e.TgZ(9,"span"),e._uU(10,"Back"),e.qZA()()()(),e.TgZ(11,"div",13)(12,"h1",14),e._uU(13),e.qZA()(),e.TgZ(14,"div",15)(15,"div",8)(16,"div",16)(17,"div",17)(18,"p",18),e._uU(19),e.qZA()()()(),e.TgZ(20,"div",8)(21,"div",19)(22,"div",17)(23,"p",18),e._uU(24),e.qZA()()()()()()()()(),e.TgZ(25,"div",20)(26,"div",21)(27,"div",8)(28,"div",19)(29,"div")(30,"p",22),e._uU(31,"How would you rate your experience?"),e.qZA()()(),e.TgZ(32,"div",23)(33,"star-rating",24),e.NdJ("ratingChange",function(n){e.CHM(i);const r=e.oxw();return e.KtG(r.onRatingChange(n))}),e.qZA()()()()(),e.TgZ(34,"div",25)(35,"div",21)(36,"div",8)(37,"div",19)(38,"div")(39,"p",26),e._uU(40,"Any comments for your visit ?"),e.qZA()()(),e.TgZ(41,"div",27)(42,"div",7)(43,"div",8)(44,"div",19)(45,"div",28)(46,"div",29),e._UZ(47,"textarea",30),e.YNc(48,b,2,0,"div",31),e.qZA()(),e.TgZ(49,"div",28)(50,"div",32)(51,"div",33),e.YNc(52,_,1,0,"span",34),e.TgZ(53,"input",35),e.NdJ("change",function(n){e.CHM(i);const r=e.oxw();return e.KtG(r.onChangeFile(n))}),e.qZA()()()(),e.TgZ(54,"div",28)(55,"div",23)(56,"button",36),e.NdJ("click",function(){e.CHM(i);const n=e.oxw();return e.KtG(n.redirectToReceipt())}),e.TgZ(57,"span"),e._uU(58,"Cancel"),e.qZA()(),e.TgZ(59,"button",37),e.NdJ("click",function(){e.CHM(i);const n=e.oxw();return e.KtG(n.onSubmit())}),e._uU(60,"Submit"),e.qZA()()()()()()()()()(),e.BQk()}if(2&a){const i=e.oxw();e.xp6(13),e.Oqu(null==i.data?null:i.data.Storename),e.xp6(6),e.Oqu(null==i.data?null:i.data.InvoiceDate),e.xp6(5),e.hij("#",null==i.data?null:i.data.Number,""),e.xp6(9),e.Q6J("starType","svg")("rating",i.starRate),e.xp6(14),e.Q6J("ngClass",i.commentCtrl.hasError("required")&&i.commentCtrl.touched&&(i.commentCtrl.dirty||!i.commentCtrl.pristine)?"is-invalid":"")("formControl",i.commentCtrl),e.xp6(1),e.Q6J("ngIf",i.commentCtrl.hasError("required")&&i.commentCtrl.touched&&(i.commentCtrl.dirty||!i.commentCtrl.pristine)),e.xp6(4),e.Q6J("ngIf",i.spinner),e.xp6(1),e.Q6J("hidden",i.spinner),e.xp6(6),e.Q6J("disabled",i.commentCtrl.invalid)}}let F=(()=>{var a;class o{constructor(t,n,r,l,Z,T,I){this.httpService=t,this.activatedRoute=n,this.toastr=r,this.encodeService=l,this.router=Z,this.feedbackService=T,this.cloudinaryService=I,this.isExist=!1,this.commentCtrl=new s.NI(null,[s.kI.required]),this.spinner=!1}ngOnInit(){this.getQueryParams()}getQueryParams(){const t=this.activatedRoute.snapshot.queryParams,r=t.feel;t.Data&&r?(this.initStarRate(r),this.encodeService.encodeQueryParam(t.Data),this.initPage()):this.router.navigate(["not-found"])}initStarRate(t){this.starRate="happy"==t?5:2}initPage(){this.feedbackService.getInitPage().subscribe(t=>{this.data=t,this.isExist=t.IsExists})}onRatingChange(t){this.starRate=t.rating}onChangeFile(t){if(t.target.files.length>0){const n=t.target.files[0],r=new FileReader;r.readAsDataURL(n),r.onload=()=>{this.onUpload(r.result)}}}onUpload(t){let n=this.feedbackService.getCloudinaryConfig();this.spinner=!0,this.cloudinaryService.upload(t,n).subscribe({next:r=>{this.imageUrl=this.cloudinaryService.generateImageUrl(r),this.spinner=!1},error:r=>{this.spinner=!1,this.toastr.error(r?.error?.error?.message,"Failed")}})}onSubmit(){this.feedbackService.addComment({Content:this.commentCtrl.value,Rate:this.starRate,ImageUrl:this.imageUrl}).subscribe({next:n=>{this.isExist=!0},error:n=>{this.toastr.error(n?.error?.Message,"Error")}})}redirectToReceipt(){this.router.navigate([""],{queryParams:{Data:this.encodeService.base64Params}})}}return(a=o).\u0275fac=function(t){return new(t||a)(e.Y36(u.eN),e.Y36(g.gz),e.Y36(h._W),e.Y36(f.L),e.Y36(g.F0),e.Y36(C),e.Y36(x))},a.\u0275cmp=e.Xpm({type:a,selectors:[["app-feedback"]],standalone:!0,features:[e.jDz],decls:3,vars:2,consts:[["style","min-height:100vh","class","d-flex flex-column align-items-center justify-content-center",4,"ngIf"],[4,"ngIf"],[1,"d-flex","flex-column","align-items-center","justify-content-center",2,"min-height","100vh"],[1,"p-5"],[1,"far","fa-smile","fa-10x"],[1,"d-flex","flex-column"],[1,"d-flex","flex-row","mb-10","mt-10"],[1,"container-fluid"],[1,"row"],[1,"col-4","d-none","d-sm-inline","d-flex","align-items-center","flex-row"],["type","button",1,"btn","btn-outline-dark",3,"click"],[1,"d-flex","align-items-center"],[1,"fa","fa-arrow-left","me-2"],[1,"col-4","d-flex","align-items-center","justify-content-center"],[1,"store-name"],[1,"col","d-flex","flex-column","justify-content-center"],[1,"col-12","invoice-date-section"],[1,"d-flex","flex-row","justify-content-end"],[1,"m-0","h4","invoice-title"],[1,"col-12"],[1,"d-flex","flex-column","py-8","border-top","border-bottom"],[1,"container"],[1,"text-center","m-0","h1","mb-4"],[1,"col-12","d-flex","flex-row","justify-content-center"],["size","large",3,"starType","rating","ratingChange"],[1,"d-flex","flex-column","py-8"],[1,"text-center","m-0","h2"],[1,"col-12","py-8"],[1,"form-row"],[1,"col-12","col-md-6","m-auto"],["placeholder","Insert your comment here...","rows","10",1,"form-control",2,"font-size","1rem",3,"ngClass","formControl"],["class","invalid-comment",4,"ngIf"],[1,"col-12","col-md-6","m-auto","d-flex","flex-column","justify-content-center","align-items-center"],[1,"justify-content-center","align-items-center","mt-10"],["class","lds-dual-ring",4,"ngIf"],["type","file",2,"opacity","1","height","44px","width","98%",3,"hidden","change"],["type","button",1,"btn","btn-outline-dark","me-4","d-block","d-sm-none",3,"click"],[1,"btn","btn-primary","col-md-6",3,"disabled","click"],[1,"invalid-comment"],[1,"lds-dual-ring"]],template:function(t,n){1&t&&(e.ynx(0),e.YNc(1,y,6,0,"div",0),e.YNc(2,k,61,11,"ng-container",1),e.BQk()),2&t&&(e.xp6(1),e.Q6J("ngIf",n.isExist),e.xp6(1),e.Q6J("ngIf",!n.isExist))},dependencies:[d.ez,d.mk,d.O5,s.UX,s.Fj,s.JJ,s.oH,s.u5,p.fs,p.Te],styles:["@media only screen and (min-width: 600px){.store-name[_ngcontent-%COMP%]{padding-left:14px!important}.invoice-title[_ngcontent-%COMP%]{padding-right:14px}}"]}),o})()}}]);
@@ -0,0 +1,315 @@
1
+ @angular/animations
2
+ MIT
3
+
4
+ @angular/common
5
+ MIT
6
+
7
+ @angular/core
8
+ MIT
9
+
10
+ @angular/forms
11
+ MIT
12
+
13
+ @angular/platform-browser
14
+ MIT
15
+
16
+ @angular/router
17
+ MIT
18
+
19
+ @angular/service-worker
20
+ MIT
21
+
22
+ angular-star-rating
23
+ MIT
24
+ MIT License
25
+
26
+ Copyright (c) 2017-present Michael Hladky
27
+
28
+ Permission is hereby granted, free of charge, to any person obtaining a copy
29
+ of this software and associated documentation files (the "Software"), to deal
30
+ in the Software without restriction, including without limitation the rights
31
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
32
+ copies of the Software, and to permit persons to whom the Software is
33
+ furnished to do so, subject to the following conditions:
34
+
35
+ The above copyright notice and this permission notice shall be included in all
36
+ copies or substantial portions of the Software.
37
+
38
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
39
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
40
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
41
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
42
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
43
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
44
+ SOFTWARE.
45
+
46
+
47
+ ngx-toastr
48
+ MIT
49
+ The MIT License (MIT)
50
+
51
+ Copyright (c) Scott Cooper <scttcper@gmail.com>
52
+
53
+ Permission is hereby granted, free of charge, to any person obtaining a copy
54
+ of this software and associated documentation files (the "Software"), to deal
55
+ in the Software without restriction, including without limitation the rights
56
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
57
+ copies of the Software, and to permit persons to whom the Software is
58
+ furnished to do so, subject to the following conditions:
59
+
60
+ The above copyright notice and this permission notice shall be included in all
61
+ copies or substantial portions of the Software.
62
+
63
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
64
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
65
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
66
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
67
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
68
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
69
+ SOFTWARE.
70
+
71
+
72
+ rxjs
73
+ Apache-2.0
74
+ Apache License
75
+ Version 2.0, January 2004
76
+ http://www.apache.org/licenses/
77
+
78
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
79
+
80
+ 1. Definitions.
81
+
82
+ "License" shall mean the terms and conditions for use, reproduction,
83
+ and distribution as defined by Sections 1 through 9 of this document.
84
+
85
+ "Licensor" shall mean the copyright owner or entity authorized by
86
+ the copyright owner that is granting the License.
87
+
88
+ "Legal Entity" shall mean the union of the acting entity and all
89
+ other entities that control, are controlled by, or are under common
90
+ control with that entity. For the purposes of this definition,
91
+ "control" means (i) the power, direct or indirect, to cause the
92
+ direction or management of such entity, whether by contract or
93
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
94
+ outstanding shares, or (iii) beneficial ownership of such entity.
95
+
96
+ "You" (or "Your") shall mean an individual or Legal Entity
97
+ exercising permissions granted by this License.
98
+
99
+ "Source" form shall mean the preferred form for making modifications,
100
+ including but not limited to software source code, documentation
101
+ source, and configuration files.
102
+
103
+ "Object" form shall mean any form resulting from mechanical
104
+ transformation or translation of a Source form, including but
105
+ not limited to compiled object code, generated documentation,
106
+ and conversions to other media types.
107
+
108
+ "Work" shall mean the work of authorship, whether in Source or
109
+ Object form, made available under the License, as indicated by a
110
+ copyright notice that is included in or attached to the work
111
+ (an example is provided in the Appendix below).
112
+
113
+ "Derivative Works" shall mean any work, whether in Source or Object
114
+ form, that is based on (or derived from) the Work and for which the
115
+ editorial revisions, annotations, elaborations, or other modifications
116
+ represent, as a whole, an original work of authorship. For the purposes
117
+ of this License, Derivative Works shall not include works that remain
118
+ separable from, or merely link (or bind by name) to the interfaces of,
119
+ the Work and Derivative Works thereof.
120
+
121
+ "Contribution" shall mean any work of authorship, including
122
+ the original version of the Work and any modifications or additions
123
+ to that Work or Derivative Works thereof, that is intentionally
124
+ submitted to Licensor for inclusion in the Work by the copyright owner
125
+ or by an individual or Legal Entity authorized to submit on behalf of
126
+ the copyright owner. For the purposes of this definition, "submitted"
127
+ means any form of electronic, verbal, or written communication sent
128
+ to the Licensor or its representatives, including but not limited to
129
+ communication on electronic mailing lists, source code control systems,
130
+ and issue tracking systems that are managed by, or on behalf of, the
131
+ Licensor for the purpose of discussing and improving the Work, but
132
+ excluding communication that is conspicuously marked or otherwise
133
+ designated in writing by the copyright owner as "Not a Contribution."
134
+
135
+ "Contributor" shall mean Licensor and any individual or Legal Entity
136
+ on behalf of whom a Contribution has been received by Licensor and
137
+ subsequently incorporated within the Work.
138
+
139
+ 2. Grant of Copyright License. Subject to the terms and conditions of
140
+ this License, each Contributor hereby grants to You a perpetual,
141
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
142
+ copyright license to reproduce, prepare Derivative Works of,
143
+ publicly display, publicly perform, sublicense, and distribute the
144
+ Work and such Derivative Works in Source or Object form.
145
+
146
+ 3. Grant of Patent License. Subject to the terms and conditions of
147
+ this License, each Contributor hereby grants to You a perpetual,
148
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
149
+ (except as stated in this section) patent license to make, have made,
150
+ use, offer to sell, sell, import, and otherwise transfer the Work,
151
+ where such license applies only to those patent claims licensable
152
+ by such Contributor that are necessarily infringed by their
153
+ Contribution(s) alone or by combination of their Contribution(s)
154
+ with the Work to which such Contribution(s) was submitted. If You
155
+ institute patent litigation against any entity (including a
156
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
157
+ or a Contribution incorporated within the Work constitutes direct
158
+ or contributory patent infringement, then any patent licenses
159
+ granted to You under this License for that Work shall terminate
160
+ as of the date such litigation is filed.
161
+
162
+ 4. Redistribution. You may reproduce and distribute copies of the
163
+ Work or Derivative Works thereof in any medium, with or without
164
+ modifications, and in Source or Object form, provided that You
165
+ meet the following conditions:
166
+
167
+ (a) You must give any other recipients of the Work or
168
+ Derivative Works a copy of this License; and
169
+
170
+ (b) You must cause any modified files to carry prominent notices
171
+ stating that You changed the files; and
172
+
173
+ (c) You must retain, in the Source form of any Derivative Works
174
+ that You distribute, all copyright, patent, trademark, and
175
+ attribution notices from the Source form of the Work,
176
+ excluding those notices that do not pertain to any part of
177
+ the Derivative Works; and
178
+
179
+ (d) If the Work includes a "NOTICE" text file as part of its
180
+ distribution, then any Derivative Works that You distribute must
181
+ include a readable copy of the attribution notices contained
182
+ within such NOTICE file, excluding those notices that do not
183
+ pertain to any part of the Derivative Works, in at least one
184
+ of the following places: within a NOTICE text file distributed
185
+ as part of the Derivative Works; within the Source form or
186
+ documentation, if provided along with the Derivative Works; or,
187
+ within a display generated by the Derivative Works, if and
188
+ wherever such third-party notices normally appear. The contents
189
+ of the NOTICE file are for informational purposes only and
190
+ do not modify the License. You may add Your own attribution
191
+ notices within Derivative Works that You distribute, alongside
192
+ or as an addendum to the NOTICE text from the Work, provided
193
+ that such additional attribution notices cannot be construed
194
+ as modifying the License.
195
+
196
+ You may add Your own copyright statement to Your modifications and
197
+ may provide additional or different license terms and conditions
198
+ for use, reproduction, or distribution of Your modifications, or
199
+ for any such Derivative Works as a whole, provided Your use,
200
+ reproduction, and distribution of the Work otherwise complies with
201
+ the conditions stated in this License.
202
+
203
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
204
+ any Contribution intentionally submitted for inclusion in the Work
205
+ by You to the Licensor shall be under the terms and conditions of
206
+ this License, without any additional terms or conditions.
207
+ Notwithstanding the above, nothing herein shall supersede or modify
208
+ the terms of any separate license agreement you may have executed
209
+ with Licensor regarding such Contributions.
210
+
211
+ 6. Trademarks. This License does not grant permission to use the trade
212
+ names, trademarks, service marks, or product names of the Licensor,
213
+ except as required for reasonable and customary use in describing the
214
+ origin of the Work and reproducing the content of the NOTICE file.
215
+
216
+ 7. Disclaimer of Warranty. Unless required by applicable law or
217
+ agreed to in writing, Licensor provides the Work (and each
218
+ Contributor provides its Contributions) on an "AS IS" BASIS,
219
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
220
+ implied, including, without limitation, any warranties or conditions
221
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
222
+ PARTICULAR PURPOSE. You are solely responsible for determining the
223
+ appropriateness of using or redistributing the Work and assume any
224
+ risks associated with Your exercise of permissions under this License.
225
+
226
+ 8. Limitation of Liability. In no event and under no legal theory,
227
+ whether in tort (including negligence), contract, or otherwise,
228
+ unless required by applicable law (such as deliberate and grossly
229
+ negligent acts) or agreed to in writing, shall any Contributor be
230
+ liable to You for damages, including any direct, indirect, special,
231
+ incidental, or consequential damages of any character arising as a
232
+ result of this License or out of the use or inability to use the
233
+ Work (including but not limited to damages for loss of goodwill,
234
+ work stoppage, computer failure or malfunction, or any and all
235
+ other commercial damages or losses), even if such Contributor
236
+ has been advised of the possibility of such damages.
237
+
238
+ 9. Accepting Warranty or Additional Liability. While redistributing
239
+ the Work or Derivative Works thereof, You may choose to offer,
240
+ and charge a fee for, acceptance of support, warranty, indemnity,
241
+ or other liability obligations and/or rights consistent with this
242
+ License. However, in accepting such obligations, You may act only
243
+ on Your own behalf and on Your sole responsibility, not on behalf
244
+ of any other Contributor, and only if You agree to indemnify,
245
+ defend, and hold each Contributor harmless for any liability
246
+ incurred by, or claims asserted against, such Contributor by reason
247
+ of your accepting any such warranty or additional liability.
248
+
249
+ END OF TERMS AND CONDITIONS
250
+
251
+ APPENDIX: How to apply the Apache License to your work.
252
+
253
+ To apply the Apache License to your work, attach the following
254
+ boilerplate notice, with the fields enclosed by brackets "[]"
255
+ replaced with your own identifying information. (Don't include
256
+ the brackets!) The text should be enclosed in the appropriate
257
+ comment syntax for the file format. We also recommend that a
258
+ file or class name and description of purpose be included on the
259
+ same "printed page" as the copyright notice for easier
260
+ identification within third-party archives.
261
+
262
+ Copyright (c) 2015-2018 Google, Inc., Netflix, Inc., Microsoft Corp. and contributors
263
+
264
+ Licensed under the Apache License, Version 2.0 (the "License");
265
+ you may not use this file except in compliance with the License.
266
+ You may obtain a copy of the License at
267
+
268
+ http://www.apache.org/licenses/LICENSE-2.0
269
+
270
+ Unless required by applicable law or agreed to in writing, software
271
+ distributed under the License is distributed on an "AS IS" BASIS,
272
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
273
+ See the License for the specific language governing permissions and
274
+ limitations under the License.
275
+
276
+
277
+
278
+ tslib
279
+ 0BSD
280
+ Copyright (c) Microsoft Corporation.
281
+
282
+ Permission to use, copy, modify, and/or distribute this software for any
283
+ purpose with or without fee is hereby granted.
284
+
285
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
286
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
287
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
288
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
289
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
290
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
291
+ PERFORMANCE OF THIS SOFTWARE.
292
+
293
+ zone.js
294
+ MIT
295
+ The MIT License
296
+
297
+ Copyright (c) 2010-2023 Google LLC. https://angular.io/license
298
+
299
+ Permission is hereby granted, free of charge, to any person obtaining a copy
300
+ of this software and associated documentation files (the "Software"), to deal
301
+ in the Software without restriction, including without limitation the rights
302
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
303
+ copies of the Software, and to permit persons to whom the Software is
304
+ furnished to do so, subject to the following conditions:
305
+
306
+ The above copyright notice and this permission notice shall be included in
307
+ all copies or substantial portions of the Software.
308
+
309
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
310
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
311
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
312
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
313
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
314
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
315
+ THE SOFTWARE.
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkfeedback=self.webpackChunkfeedback||[]).push([[530],{5530:(u,a,n)=>{n.r(a),n.d(a,{NotFoundComponent:()=>p});var c=n(6814),t=n(8926);let p=(()=>{var e;class s{constructor(){this.title="Sorry, Data Was Not Supplied",this.message="For more information, you can contact us at +62 857 7830 9000 (chat only)"}}return(e=s).\u0275fac=function(o){return new(o||e)},e.\u0275cmp=t.Xpm({type:e,selectors:[["app-not-found"]],standalone:!0,features:[t.jDz],decls:18,vars:4,consts:[["id","web",1,"container",2,"height","90vh"],[1,"row","h-100","justify-content-end","align-items-center","g-0"],[1,"col-6"],[1,"pt-1","fw-medium"],[1,"col-4"],["src","https://res.cloudinary.com/pos/image/upload/v1615743467/Others/subdomain-not-found.jpg",1,"w-90"],["id","mobile",1,"container","h-100"],[1,"col-sm-5","text-center"],[1,"bg-img"],[1,"fw-medium","pt-10","position-relative"],[1,"pt-1","fw-medium","position-relative"]],template:function(o,i){1&o&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"h1"),t._uU(4),t.qZA(),t.TgZ(5,"p",3),t._uU(6),t.qZA()(),t.TgZ(7,"div",4),t._UZ(8,"img",5),t.qZA()()(),t.TgZ(9,"div",6)(10,"div",1)(11,"div",7)(12,"div",8)(13,"div")(14,"h1",9),t._uU(15),t.qZA(),t.TgZ(16,"p",10),t._uU(17),t.qZA()()()()()()),2&o&&(t.xp6(4),t.Oqu(i.title),t.xp6(2),t.Oqu(i.message),t.xp6(9),t.Oqu(i.title),t.xp6(2),t.Oqu(i.message))},dependencies:[c.ez],styles:['h1[_ngcontent-%COMP%]{font-size:2.2rem}p[_ngcontent-%COMP%]{font-size:1rem}.bg-img[_ngcontent-%COMP%]:after{background-size:180px 180px;height:28vh;background-position:center;background-repeat:no-repeat;content:"";position:absolute;top:0;left:0;width:100%;height:100%;z-index:-1;opacity:.5}.bg-image[_ngcontent-%COMP%]{position:relative}#web[_ngcontent-%COMP%]{display:block}#mobile[_ngcontent-%COMP%]{display:none}@media all and (max-width: 499px){#web[_ngcontent-%COMP%]{display:none}#mobile[_ngcontent-%COMP%]{display:block}}']}),s})()}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkfeedback=self.webpackChunkfeedback||[]).push([[609],{2609:(mn,m,p)=>{p.r(m),p.d(m,{ReceiptComponent:()=>sn});var _=p(6814),u=p(9397),x=p(8645),f=p(4552);class C extends x.x{constructor(o=1/0,t=1/0,i=f.l){super(),this._bufferSize=o,this._windowTime=t,this._timestampProvider=i,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=t===1/0,this._bufferSize=Math.max(1,o),this._windowTime=Math.max(1,t)}next(o){const{isStopped:t,_buffer:i,_infiniteTimeWindow:c,_timestampProvider:r,_windowTime:a}=this;t||(i.push(o),!c&&i.push(r.now()+a)),this._trimBuffer(),super.next(o)}_subscribe(o){this._throwIfClosed(),this._trimBuffer();const t=this._innerSubscribe(o),{_infiniteTimeWindow:i,_buffer:c}=this,r=c.slice();for(let a=0;a<r.length&&!o.closed;a+=i?1:2)o.next(r[a]);return this._checkFinalizedStatuses(o),t}_trimBuffer(){const{_bufferSize:o,_timestampProvider:t,_buffer:i,_infiniteTimeWindow:c}=this,r=(c?1:2)*o;if(o<1/0&&r<i.length&&i.splice(0,i.length-r),!c){const a=t.now();let l=0;for(let s=1;s<i.length&&i[s]<=a;s+=2)l=s;l&&i.splice(0,l+1)}}}var h=p(3020),n=p(8926);let T=(()=>{var e;class o{transform(i,c,r="Name"){return void 0===c?i:i.filter("number"==typeof c?a=>a[r]==c:a=>-1!==a[r].toString().toLowerCase().indexOf(c.toLowerCase()))}}return(e=o).\u0275fac=function(i){return new(i||e)},e.\u0275pipe=n.Yjl({name:"filter",type:e,pure:!0,standalone:!0}),o})();var P=p(6593);let Z=(()=>{var e;class o{constructor(i){this.sanitizer=i}transform(i){return this.sanitizer.bypassSecurityTrustHtml(i)}}return(e=o).\u0275fac=function(i){return new(i||e)(n.Y36(P.H7,16))},e.\u0275pipe=n.Yjl({name:"safeHtml",type:e,pure:!0,standalone:!0}),o})();var y=p(7398),M=p(9862),g=p(6006),b=p(9229);let O=(()=>{var e;class o{constructor(i,c,r){this.httpClient=i,this.encodeService=c,this.toastr=r}getReceipt(){return this.httpClient.post(`https:${this.encodeService.host}/api/app/invoice/print`,{ID:this.encodeService.invoiceId}).pipe((0,y.U)(r=>(r.totalChange=this.calculateChange(),r)))}calculateChange(){return 0}}return(e=o).\u0275fac=function(i){return new(i||e)(n.LFG(M.eN),n.LFG(g.L),n.LFG(b._W))},e.\u0275prov=n.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),o})();var d=p(3989);function A(e,o){if(1&e&&(n.ynx(0),n._uU(1),n.BQk()),2&e){const t=n.oxw(3);n.xp6(1),n.hij(" , ",null==t.receipt||null==t.receipt.Customer?null:t.receipt.Customer.Title," ")}}function Q(e,o){if(1&e&&(n.ynx(0),n._uU(1),n.BQk()),2&e){const t=n.oxw(3);n.xp6(1),n.hij(" - ",null==t.receipt||null==t.receipt.Customer?null:t.receipt.Customer.Code," ")}}function w(e,o){if(1&e&&(n.TgZ(0,"h6",29)(1,"span"),n._uU(2),n.qZA(),n.TgZ(3,"span"),n.YNc(4,A,2,1,"ng-container",0),n.YNc(5,Q,2,1,"ng-container",0),n.qZA()()),2&e){const t=n.oxw(2);n.xp6(2),n.Oqu(t.receipt.Customer.Name),n.xp6(2),n.Q6J("ngIf",null==t.receipt||null==t.receipt.Customer?null:t.receipt.Customer.Title),n.xp6(1),n.Q6J("ngIf",null==t.receipt||null==t.receipt.Customer?null:t.receipt.Customer.Code)}}function J(e,o){if(1&e&&n._UZ(0,"h6",30),2&e){const t=n.oxw(2);n.Q6J("innerHTML",t.receipt.Customer.NationalIDNumber,n.oJD)}}function I(e,o){if(1&e&&(n.ynx(0),n._UZ(1,"p",5),n.BQk()),2&e){const t=n.oxw(2);n.xp6(1),n.Q6J("innerHTML",t.receipt.Customer.Address,n.oJD)}}function N(e,o){if(1&e&&(n.TgZ(0,"h2",31),n._uU(1),n.qZA()),2&e){const t=n.oxw(2);n.Tol(2==t.receipt.PaymentState?"text-warning":"text-danger"),n.xp6(1),n.hij(" ",2==t.receipt.PaymentState?"Partial":"Pre-Settlement Bill"," ")}}function L(e,o){if(1&e&&(n.ynx(0),n._UZ(1,"div",15),n.BQk()),2&e){const t=n.oxw(2);n.xp6(1),n.Q6J("innerHTML",t.receipt.HeaderTitle,n.oJD)}}function U(e,o){if(1&e&&(n.TgZ(0,"div",44)(1,"i",45),n._uU(2),n.qZA()()),2&e){const t=n.oxw().$implicit;n.xp6(2),n.hij(" sold by ",t.SalesName," ")}}function q(e,o){if(1&e&&(n.ynx(0),n._UZ(1,"small",46),n.BQk()),2&e){const t=n.oxw().$implicit;n.xp6(1),n.Q6J("innerHTML",t.Note,n.oJD)}}function R(e,o){if(1&e&&(n.ynx(0),n.TgZ(1,"i",47),n._uU(2),n.ALo(3,"number"),n.qZA(),n.BQk()),2&e){const t=n.oxw().$implicit;n.xp6(2),n.hij(" ","-"+n.lcZ(3,1,t.Discount)+"%"," ")}}function S(e,o){if(1&e&&(n.ynx(0),n.TgZ(1,"i",48),n._uU(2),n.ALo(3,"number"),n.qZA(),n.BQk()),2&e){const t=n.oxw().$implicit;n.xp6(2),n.hij(" ","-"+n.lcZ(3,1,t.DiscountAmount)," ")}}function Y(e,o){if(1&e&&(n.TgZ(0,"div",32)(1,"div",11)(2,"div",33)(3,"div"),n._uU(4),n.qZA(),n.YNc(5,U,3,1,"div",34),n.YNc(6,q,2,1,"ng-container",0),n.qZA(),n.TgZ(7,"div",35)(8,"span",36),n._uU(9),n.qZA()()(),n.TgZ(10,"div",37)(11,"div",38)(12,"div",39)(13,"span",40),n._uU(14),n.ALo(15,"number"),n.qZA(),n.TgZ(16,"span",41),n._uU(17,"x"),n.qZA(),n.TgZ(18,"span",42),n._uU(19),n.ALo(20,"number"),n.qZA(),n.YNc(21,R,4,3,"ng-container",0),n.YNc(22,S,4,3,"ng-container",0),n.qZA()(),n.TgZ(23,"div",43)(24,"span"),n._uU(25),n.ALo(26,"number"),n.qZA()()()()),2&e){const t=o.$implicit,i=o.index;n.xp6(4),n.lnq(" ",i+1,". ",t.Name," ",t.Code," "),n.xp6(1),n.Q6J("ngIf",t.SalesName),n.xp6(1),n.Q6J("ngIf",t.Note),n.xp6(3),n.hij(" ",t.Taxable?"V":"N"," "),n.xp6(5),n.lnq(" ",n.xi3(15,13,t.Quantity,"1.0-4")," ",t.UOMName," ",1!=t.UnitQuantity?" x "+t.UnitQuantity:""," "),n.xp6(5),n.hij(" ",n.lcZ(20,16,t.Price)," "),n.xp6(2),n.Q6J("ngIf",0!=t.Discount),n.xp6(1),n.Q6J("ngIf",0!=t.DiscountAmount),n.xp6(3),n.hij(" ",n.lcZ(26,18,(1-t.Discount/100)*t.Price*t.Quantity*t.UnitQuantity-t.DiscountAmount*t.Quantity)," ")}}function H(e,o){if(1&e&&(n.TgZ(0,"span")(1,"span"),n._uU(2),n.qZA()()),2&e){const t=n.oxw().$implicit;n.xp6(2),n.hij("",t.Label," :")}}function j(e,o){if(1&e&&(n.TgZ(0,"div",49),n.ALo(1,"filter"),n.TgZ(2,"div",50),n._uU(3),n.YNc(4,H,3,1,"span",0),n.qZA(),n.TgZ(5,"div",51)(6,"div",52)(7,"div",53)(8,"span"),n._uU(9),n.qZA()(),n.TgZ(10,"div",54)(11,"span"),n._uU(12),n.ALo(13,"number"),n.qZA()()()()()),2&e){const t=o.$implicit,i=o.index,c=n.oxw(2);n.Q6J("ngClass",i==n.Dn7(1,7,c.amountSummary,1,"Type").length-1?"pb-2":""),n.xp6(2),n.Q6J("ngClass",1==i?"border-top":""),n.xp6(1),n.hij(" ",0==i?c.totalItemsLabel+" :":""," "),n.xp6(1),n.Q6J("ngIf",0!=i),n.xp6(1),n.Q6J("ngClass",1==i?"border-top":""),n.xp6(4),n.hij("",t.CurrencySymbol," "),n.xp6(3),n.Oqu(n.lcZ(13,11,t.Amount))}}function D(e,o){if(1&e&&(n.TgZ(0,"span"),n._uU(1),n.qZA()),2&e){const t=n.oxw().$implicit;n.xp6(1),n.hij(" ",t.Code," ")}}function k(e,o){if(1&e&&(n.TgZ(0,"div",56)(1,"div",57),n._uU(2),n.YNc(3,D,2,1,"span",0),n.TgZ(4,"span"),n._uU(5),n.qZA()(),n.TgZ(6,"div",58)(7,"span",53),n._uU(8),n.qZA(),n.TgZ(9,"span",54),n._uU(10),n.ALo(11,"number"),n.qZA()()()),2&e){const t=o.$implicit,i=n.oxw(3);n.Q6J("hidden",0==t.Amount),n.xp6(2),n.hij(" ",t.MethodName," "),n.xp6(1),n.Q6J("ngIf",t.Code),n.xp6(2),n.hij(" ",t.Note," : "),n.xp6(3),n.Oqu(null==i.amountSummary[0]?null:i.amountSummary[0].CurrencySymbol),n.xp6(2),n.hij(" ",n.lcZ(11,6,t.PaidAmount),"")}}function F(e,o){if(1&e&&(n.TgZ(0,"div",49)(1,"div",59),n._uU(2),n.qZA(),n.TgZ(3,"div",60),n._uU(4," : "),n.qZA(),n.TgZ(5,"div",61)(6,"span"),n._uU(7),n.qZA()(),n.TgZ(8,"div",62),n._uU(9),n.ALo(10,"number"),n.qZA()()),2&e){const t=o.$implicit;n.Q6J("ngClass",0==o.index?"border-top pt-8":""),n.xp6(2),n.hij(" ",t.Label," "),n.xp6(5),n.Oqu(t.CurrencySymbol),n.xp6(2),n.hij(" ",n.lcZ(10,4,t.Amount)," ")}}function B(e,o){if(1&e&&(n.TgZ(0,"div"),n.YNc(1,k,12,8,"div",55),n.YNc(2,F,11,6,"div",19),n.ALo(3,"filter"),n.qZA()),2&e){const t=n.oxw(2);n.xp6(1),n.Q6J("ngForOf",t.receipt.Payments),n.xp6(1),n.Q6J("ngForOf",n.Dn7(3,2,t.amountSummary,2,"Type"))}}function $(e,o){if(1&e&&(n.ynx(0),n.TgZ(1,"div",63)(2,"div",57),n._uU(3),n.qZA(),n.TgZ(4,"div",58)(5,"span",53),n._uU(6),n.qZA(),n.TgZ(7,"span",54),n._uU(8),n.ALo(9,"number"),n.qZA()()(),n.BQk()),2&e){const t=n.oxw(2);n.xp6(3),n.hij(" ",t.paymentChange.Label," : "),n.xp6(3),n.Oqu(null==t.paymentChange?null:t.paymentChange.CurrencySymbol),n.xp6(2),n.hij(" ",n.lcZ(9,3,t.paymentChange.Amount),"")}}function z(e,o){if(1&e&&(n.ynx(0),n.TgZ(1,"div",63)(2,"div",57),n._uU(3," Remaining : "),n.qZA(),n.TgZ(4,"div",58)(5,"span",53),n._uU(6),n.qZA(),n.TgZ(7,"span",54),n._uU(8),n.ALo(9,"number"),n.qZA()()(),n.BQk()),2&e){const t=n.oxw(2);n.xp6(6),n.Oqu(null==t.amountSummary[0]?null:t.amountSummary[0].CurrencySymbol),n.xp6(2),n.hij(" ",n.lcZ(9,2,t.remainingPayment),"")}}function E(e,o){if(1&e&&(n.ynx(0),n.TgZ(1,"strong",64),n._uU(2," Loyalty Point "),n.qZA(),n._UZ(3,"span",65),n.BQk()),2&e){const t=n.oxw(2);n.xp6(3),n.Q6J("innerHTML",t.receipt.LoyaltyPoint,n.oJD)}}function W(e,o){1&e&&(n.TgZ(0,"h6",66),n._uU(1,"Coupon"),n.qZA())}function G(e,o){if(1&e&&(n.TgZ(0,"span",67),n._uU(1),n.qZA()),2&e){const t=n.oxw(2);n.xp6(1),n.hij(" ",t.receipt.Coupon," ")}}function V(e,o){1&e&&(n.TgZ(0,"h6",66),n._uU(1,"ToP"),n.qZA())}function K(e,o){if(1&e&&n._UZ(0,"span",65),2&e){const t=n.oxw(3);n.Q6J("innerHTML",t.receipt.Due,n.oJD)}}function X(e,o){if(1&e&&(n.TgZ(0,"span",67),n._uU(1),n.qZA()),2&e){const t=n.oxw(3);n.xp6(1),n.hij(" - ",t.receipt.ToP," Days")}}function nn(e,o){if(1&e&&(n.TgZ(0,"div",21),n.YNc(1,V,2,0,"h6",22),n.YNc(2,K,1,1,"span",68),n.YNc(3,X,2,1,"span",23),n.qZA()),2&e){const t=n.oxw(2);n.xp6(1),n.Q6J("ngIf",t.receipt.ToP),n.xp6(1),n.Q6J("ngIf",t.receipt.ToP),n.xp6(1),n.Q6J("ngIf",t.receipt.ToP)}}function tn(e,o){if(1&e&&(n.ynx(0),n.TgZ(1,"h6",66),n._uU(2,"Sales"),n.qZA(),n.TgZ(3,"p"),n._uU(4),n.qZA(),n.BQk()),2&e){const t=n.oxw(2);n.xp6(4),n.hij(" ",null==t.receipt?null:t.receipt.SalesName," ")}}function en(e,o){1&e&&(n.TgZ(0,"h6",66),n._uU(1," Note "),n.qZA())}function on(e,o){if(1&e&&n._UZ(0,"p",15),2&e){const t=n.oxw(2);n.Q6J("innerHTML",null==t.receipt?null:t.receipt.ExtraNote,n.oJD)}}function cn(e,o){1&e&&(n.TgZ(0,"h6",69),n._uU(1,"Note "),n.qZA())}function rn(e,o){if(1&e&&n._UZ(0,"p",70),2&e){const t=n.oxw(2);n.Q6J("innerHTML",null==t.receipt?null:t.receipt.InvoiceNote,n.oJD)}}function an(e,o){if(1&e&&(n.ynx(0),n.TgZ(1,"div",2)(2,"p",71),n._uU(3),n.qZA()(),n.BQk()),2&e){const t=n.oxw(2);n.xp6(3),n.hij(" Printed : ",null==t.receipt?null:t.receipt.PrintDate," ")}}function pn(e,o){if(1&e&&(n.ynx(0),n.TgZ(1,"div",72)(2,"p",71),n._uU(3),n.ALo(4,"date"),n.qZA()(),n.BQk()),2&e){const t=n.oxw(2);n.xp6(3),n.hij(" Created : ",n.xi3(4,1,null==t.receipt?null:t.receipt.Created,"dd MMM yyyy HH:MM")," ")}}function _n(e,o){if(1&e){const t=n.EpF();n.ynx(0),n.TgZ(1,"div",73),n._uU(2," How would you rate your experience? "),n.qZA(),n.TgZ(3,"div",52)(4,"div",74)(5,"i",75),n.NdJ("click",function(){n.CHM(t);const c=n.oxw(2);return n.KtG(c.redirectToFeedback("happy"))}),n.qZA()(),n.TgZ(6,"div",74)(7,"i",76),n.NdJ("click",function(){n.CHM(t);const c=n.oxw(2);return n.KtG(c.redirectToFeedback("sad"))}),n.qZA()()(),n.BQk()}}function ln(e,o){if(1&e&&(n.TgZ(0,"div")(1,"div",1)(2,"div",2),n._UZ(3,"img",3),n.qZA(),n.TgZ(4,"div",2),n._UZ(5,"h2",4)(6,"i",5),n.TgZ(7,"p",6),n._UZ(8,"span",5)(9,"br")(10,"span",5)(11,"span",5),n.qZA(),n.YNc(12,w,6,3,"h6",7),n.YNc(13,J,1,1,"h6",8),n.YNc(14,I,2,1,"ng-container",0),n.TgZ(15,"span"),n._uU(16),n.qZA(),n.TgZ(17,"span"),n._uU(18),n.qZA(),n.TgZ(19,"p",9),n._uU(20),n.qZA()(),n.YNc(21,N,2,3,"h2",10),n.TgZ(22,"div",11)(23,"div",12),n._uU(24),n.qZA()(),n.TgZ(25,"div",13)(26,"div",14),n.YNc(27,L,2,1,"ng-container",0),n._UZ(28,"div",15),n.qZA(),n.TgZ(29,"div",16),n._uU(30),n.qZA()(),n.YNc(31,Y,27,20,"div",17),n.TgZ(32,"div",18),n.YNc(33,j,14,13,"div",19),n.ALo(34,"filter"),n.qZA(),n.YNc(35,B,4,6,"div",0),n.YNc(36,$,10,5,"ng-container",0),n.YNc(37,z,10,4,"ng-container",0),n.TgZ(38,"div",20)(39,"div",21),n.YNc(40,E,4,1,"ng-container",0),n.YNc(41,W,2,0,"h6",22),n.YNc(42,G,2,1,"span",23),n.qZA(),n.YNc(43,nn,4,3,"div",24),n.qZA(),n.TgZ(44,"div",25),n.YNc(45,tn,5,1,"ng-container",0),n.YNc(46,en,2,0,"h6",22),n.YNc(47,on,1,1,"p",26),n.YNc(48,cn,2,0,"h6",27),n.YNc(49,rn,1,1,"p",28),n.qZA(),n._UZ(50,"p",15),n.ALo(51,"safeHtml"),n.YNc(52,an,4,1,"ng-container",0),n.YNc(53,pn,5,4,"ng-container",0),n.YNc(54,_n,8,0,"ng-container",0),n.qZA()()),2&e){const t=n.oxw();n.xp6(3),n.Q6J("src",t.template.Logo,n.LSH),n.xp6(2),n.Q6J("innerHTML",t.template.Name,n.oJD),n.xp6(1),n.Q6J("innerHTML",t.template.Field,n.oJD),n.xp6(2),n.Q6J("innerHTML",null==t.template?null:t.template.Address,n.oJD),n.xp6(2),n.Q6J("innerHTML",null==t.receipt?null:t.receipt.RegisterCode,n.oJD),n.xp6(1),n.Q6J("innerHTML",null==t.template?null:t.template.ContactInfo,n.oJD),n.xp6(1),n.Q6J("ngIf",t.receipt.Customer.Name),n.xp6(1),n.Q6J("ngIf",t.receipt.Customer.NationalIDNumber),n.xp6(1),n.Q6J("ngIf",t.receipt.Customer.Address),n.xp6(2),n.hij(" ",t.receipt.Customer.Phone," "),n.xp6(2),n.hij(" ",t.receipt.Customer.Mobile," "),n.xp6(2),n.hij(" ",t.receipt.Customer.Email," "),n.xp6(1),n.Q6J("ngIf",t.receipt.PaymentState<3),n.xp6(3),n.hij(" Cashier : ",t.receipt.Creator," "),n.xp6(3),n.Q6J("ngIf",t.receipt.HeaderTitle),n.xp6(1),n.Q6J("innerHTML",t.receipt.Number,n.oJD),n.xp6(2),n.Oqu(t.receipt.Date),n.xp6(1),n.Q6J("ngForOf",t.receipt.Variants),n.xp6(2),n.Q6J("ngForOf",n.Dn7(34,35,t.amountSummary,1,"Type")),n.xp6(2),n.Q6J("ngIf",t.receipt.Payments.length>0),n.xp6(1),n.Q6J("ngIf",t.paymentChange),n.xp6(1),n.Q6J("ngIf",t.remainingPayment>0),n.xp6(3),n.Q6J("ngIf",t.receipt.LoyaltyPoint),n.xp6(1),n.Q6J("ngIf",t.receipt.Coupon),n.xp6(1),n.Q6J("ngIf",t.receipt.Coupon),n.xp6(1),n.Q6J("ngIf",0==t.receipt.Payments.length),n.xp6(2),n.Q6J("ngIf",t.receipt.SalesName),n.xp6(1),n.Q6J("ngIf",null==t.receipt?null:t.receipt.ExtraNote),n.xp6(1),n.Q6J("ngIf",t.receipt.ExtraNote),n.xp6(1),n.Q6J("ngIf",null==t.receipt?null:t.receipt.InvoiceNote),n.xp6(1),n.Q6J("ngIf",t.receipt.InvoiceNote),n.xp6(1),n.Q6J("innerHTML",n.lcZ(51,39,t.template.FooterLeft?t.template.FooterLeft:""),n.oJD),n.xp6(2),n.Q6J("ngIf",t.receipt.PrintDate),n.xp6(1),n.Q6J("ngIf",null==t.receipt?null:t.receipt.Created),n.xp6(1),n.Q6J("ngIf",t.hasCustomerData)}}let sn=(()=>{var e;class o{constructor(i,c,r,a,l){this.receiptService=i,this.activatedRoute=c,this.route=r,this.encodeService=a,this.decimalPipe=l,this.hasCustomerData=!1}ngOnInit(){this.getQueryParams()}getQueryParams(){const i=this.activatedRoute.snapshot.queryParams;i.Data?(this.encodeService.encodeQueryParam(i.Data),this.initPrint()):this.route.navigate(["not-found"])}initPrint(){this.print$=this.receiptService.getReceipt().pipe((0,u.b)(i=>{this.receipt=i.Invoice,this.template=i.Template,this.amountSummary=i.AmountSummary.filter(c=>"Change"!=c.Label&&null!=c.Label),this.hasCustomerData=Object.keys(this.receipt.Customer).length>0,this.paymentChange=this.filterAmountSummaryByName(i.AmountSummary,"Change")[0],this.generateTotalItemsLabel(),this.calculateRemainingPayment()}),function v(e,o,t){let i,c=!1;return e&&"object"==typeof e?({bufferSize:i=1/0,windowTime:o=1/0,refCount:c=!1,scheduler:t}=e):i=e??1/0,(0,h.B)({connector:()=>new C(i,o,t),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:c})}())}filterAmountSummaryByName(i,c){return i.filter(r=>r.Label===c)}redirectToFeedback(i){this.route.navigate(["feedback"],{queryParams:{Data:this.encodeService.base64Params,feel:i}})}generateTotalItemsLabel(){let i=0;const c=this.receipt.Variants.length;for(let l of this.receipt.Variants)i+=l.Quantity;const r=i>1?"s":"",a=this.decimalPipe.transform(i,"1.0-4").toString();this.totalItemsLabel=`Total (Item${r}: ${c}, Qty: ${a})`}calculateRemainingPayment(){let i=0;this.receipt.Payments.forEach(r=>{i+=r.Amount}),this.remainingPayment=this.receipt.FinalAmount-i}}return(e=o).\u0275fac=function(i){return new(i||e)(n.Y36(O),n.Y36(d.gz),n.Y36(d.F0),n.Y36(g.L),n.Y36(_.JJ))},e.\u0275cmp=n.Xpm({type:e,selectors:[["app-receipt"]],standalone:!0,features:[n._Bn([_.JJ]),n.jDz],decls:2,vars:3,consts:[[4,"ngIf"],[1,"print_container","invoice_mini","box","my-5"],[1,"text-center"],[1,"img-fluid","border-0",3,"src"],[1,"m-0","fw-bold",3,"innerHTML"],[1,"d-block",3,"innerHTML"],[1,"mt-1","mb-3"],["class","m-0 pt-2 fw-bold",4,"ngIf"],["class","m-0 pt-2 fw-normal",3,"innerHTML",4,"ngIf"],[1,"fst-italic","mb-2"],["class","text-center m-0 p-1",3,"class",4,"ngIf"],[1,"row","g-1"],[1,"col-12"],[1,"row","g-1","justify-content-between","py-2"],[1,"col","fw-bold"],[3,"innerHTML"],[1,"col","text-end"],["class","border-y pt-1",4,"ngFor","ngForOf"],[1,"cartAmount","pt-2"],["class","row g-1 text-end",3,"ngClass",4,"ngFor","ngForOf"],[1,"row","g-1","mt-2"],[1,"col-md-12","text-center"],["class","m-0 fw-bold",4,"ngIf"],["class","pb-3",4,"ngIf"],["class","col-md-12 text-center",4,"ngIf"],[1,"text-center","my-2"],[3,"innerHTML",4,"ngIf"],["class","fw-bold",4,"ngIf"],["style","word-break: break-all",3,"innerHTML",4,"ngIf"],[1,"m-0","pt-2","fw-bold"],[1,"m-0","pt-2","fw-normal",3,"innerHTML"],[1,"text-center","m-0","p-1"],[1,"border-y","pt-1"],[1,"col-11"],["class","fst-italic pt-0 mt-0",4,"ngIf"],[1,"col-1","ps-2","text-end"],[1,"small","fst-italic","text-danger"],[1,"d-flex","g-1","pb-1"],[1,"flex-grow-1","text-end"],[1,"d-flex","align-items-end","justify-content-end","me-5"],[1,"small"],[1,"small","mx-1"],[1,"small","d-inline-flex","flex-column"],[1,"col-auto","text-end"],[1,"fst-italic","pt-0","mt-0"],[1,"inlineMarginLeft"],[1,"fst-italic","text-success","d-block",2,"overflow-wrap","break-word",3,"innerHTML"],[1,"fw-bold","text-danger","me-2","ms-4","small"],[1,"fw-bold","text-danger","me-2","small"],[1,"row","g-1","text-end",3,"ngClass"],[1,"col-7","fw-bold",3,"ngClass"],[1,"col-5","g-1",3,"ngClass"],[1,"row"],[1,"col-auto"],[1,"col"],["class","row g-1 text-end",3,"hidden",4,"ngFor","ngForOf"],[1,"row","g-1","text-end",3,"hidden"],[1,"col-7","fw-bold"],[1,"col-5","row","g-1"],[1,"col-5","text-start"],[1,"col-1","text-center"],[1,"col-1"],[1,"col-3"],[1,"row","g-1","text-end"],[1,"mt-3","mb-1","d-block"],[1,"pb-3",3,"innerHTML"],[1,"m-0","fw-bold"],[1,"pb-3"],["class","pb-3",3,"innerHTML",4,"ngIf"],[1,"fw-bold"],[2,"word-break","break-all",3,"innerHTML"],[1,"m-0"],[1,"text-center","mt-3"],[1,"text-center","fs-5","mb-4"],[1,"col-6","text-center"],[1,"far","fa-smile","feedback-icon",3,"click"],[1,"far","fa-frown","feedback-icon",3,"click"]],template:function(i,c){1&i&&(n.YNc(0,ln,55,41,"div",0),n.ALo(1,"async")),2&i&&n.Q6J("ngIf",n.lcZ(1,1,c.print$))},dependencies:[_.ez,_.mk,_.sg,_.O5,_.Ov,_.JJ,_.uU,Z,T],styles:[".invoice_mini[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%]{width:264px;margin:auto;padding:0 4px;color:#000;font-family:Arial!important}.invoice_mini[_ngcontent-%COMP%] h1[_ngcontent-%COMP%], .invoice_mini[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], .invoice_mini[_ngcontent-%COMP%] h3[_ngcontent-%COMP%], .invoice_mini[_ngcontent-%COMP%] h4[_ngcontent-%COMP%], .invoice_mini[_ngcontent-%COMP%] h5[_ngcontent-%COMP%], .invoice_mini[_ngcontent-%COMP%] h6[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] h1[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] h3[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] h4[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] h5[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] h6[_ngcontent-%COMP%]{font-family:Arial!important}.invoice_mini[_ngcontent-%COMP%] .text-danger[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] .text-danger[_ngcontent-%COMP%]{color:red!important}.invoice_mini[_ngcontent-%COMP%] .border-y[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] .border-y[_ngcontent-%COMP%]{padding:5px 0;border-top:1px solid #888}.invoice_mini[_ngcontent-%COMP%] .cartAmount[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] .cartAmount[_ngcontent-%COMP%]{border-top:1px solid #888;border-bottom:1px solid #888}.invoice_mini[_ngcontent-%COMP%] .rightAuto[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] .rightAuto[_ngcontent-%COMP%]{margin:0 0 0 auto}.invoice_mini[_ngcontent-%COMP%] span.point[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] span.point[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0 auto!important;padding:0!important}.invoice_mini[_ngcontent-%COMP%] .note[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] .note[_ngcontent-%COMP%]{font-size:11px!important}.invoice_mini[_ngcontent-%COMP%] .note[_ngcontent-%COMP%] h6[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] .note[_ngcontent-%COMP%] h6[_ngcontent-%COMP%]{font-size:.4375rem;padding:.4375rem}.invoice_mini[_ngcontent-%COMP%] .note[_ngcontent-%COMP%] > p[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] .note[_ngcontent-%COMP%] > p[_ngcontent-%COMP%]{margin:0 auto!important;padding:0!important}.invoice_mini.lx300[_ngcontent-%COMP%] img[_ngcontent-%COMP%], .sales_order_mini.lx300[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-width:220px}.box[_ngcontent-%COMP%]{position:relative}.ribbon[_ngcontent-%COMP%]{width:170px;height:140px;overflow:hidden;position:absolute}.ribbon[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{position:absolute;display:block;width:204px;padding:42px 31px;background-color:#3498db;box-shadow:0 5px 10px #0000001a;color:#fff;text-shadow:0 1px 1px rgba(0,0,0,.2);text-transform:uppercase;text-align:center;font-size:9px;line-height:17px}.ribbon-content[_ngcontent-%COMP%]{top:-10px;left:-45px}div.ribbon-content[_ngcontent-%COMP%]{right:47px;top:47px;transform:rotate(-45deg)}.invoice_mini.lx300[_ngcontent-%COMP%], .sales_order_mini.lx300[_ngcontent-%COMP%], .packingslip_container.lx300[_ngcontent-%COMP%]{margin:0 0 0 20px!important;width:520px!important;letter-spacing:3px!important}.invoice_mini.lx300[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], .sales_order_mini.lx300[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], .packingslip_container.lx300[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{letter-spacing:8px!important}@media print{print-mode[_ngcontent-%COMP%]{display:none;visibility:hidden;height:0px}.ribbon[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{background-color:none!important;color:#000;opacity:.7;border-style:dotted none}.ribbon[_ngcontent-%COMP%] .ribbon-content[_ngcontent-%COMP%]:after, .ribbon[_ngcontent-%COMP%] .ribbon-content[_ngcontent-%COMP%]:before{display:none}.sales_order_mini[_ngcontent-%COMP%] > .invoiceHeader[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] h6[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{font-family:Arial,Helvetica,sans-serif!important}.toast[_ngcontent-%COMP%]{display:none!important}}.feedback-icon[_ngcontent-%COMP%]{cursor:pointer;font-size:80px}"]}),o})()}}]);
@@ -0,0 +1,7 @@
1
+ @import "./pos_variable";
2
+ @import "../../../node_modules/bootstrap/scss/bootstrap";
3
+
4
+ .h1, .h2, .h3, .h4, .h5, .h6 {
5
+ font-family: $font-family-base;
6
+ font-weight: $font-weight-normal;
7
+ }
@@ -0,0 +1,51 @@
1
+ @import "./bootstrap_light.scss";
2
+
3
+ $bg-invoice: #0F3F6D;
4
+ $font-color-invoice: white;
5
+ $bg-payment: white;
6
+ $font-color-payment: black;
7
+
8
+ //spinner
9
+ .lds-dual-ring {
10
+ display: inline-block;
11
+ width: 64px;
12
+ height: 64px;
13
+ }
14
+
15
+ .lds-dual-ring:after {
16
+ content: " ";
17
+ display: block;
18
+ width: 46px;
19
+ height: 46px;
20
+ margin: 1px;
21
+ border-radius: 50%;
22
+ border: 5px solid #fff;
23
+ border-color: #000 transparent #000 transparent;
24
+ animation: lds-dual-ring 1.2s linear infinite;
25
+ }
26
+
27
+ button {
28
+ .lds-dual-ring, .lds-dual-ring:after {
29
+ width: 35px !important;
30
+ height: 35px !important;
31
+ }
32
+ }
33
+
34
+ button.col-4 {
35
+ .lds-dual-ring, .lds-dual-ring:after {
36
+ width: 26px !important;
37
+ height: 26px !important;
38
+ }
39
+ }
40
+
41
+
42
+ @keyframes lds-dual-ring {
43
+ 0% {
44
+ transform: rotate(0deg);
45
+ }
46
+
47
+ 100% {
48
+ transform: rotate(360deg);
49
+ }
50
+ }
51
+
@@ -0,0 +1,83 @@
1
+ /*General*/
2
+ $header-color: #3B3B3B; //pos variable //black color for all header , h1-h6, th panel header
3
+ $body-color: #333333; //black color for all content
4
+ $white: #ffffff; // rewrite for easy import to other file
5
+ $light:#dddddd; //border color
6
+ $green: #89b03e;//color for success
7
+ $dark: #4d4d4d; //color for specific dark (card header)
8
+ $blue: #337ab7 ;//primary blue for all link
9
+ $light-blue: #dfeffc ;//modal button
10
+ $gray-secondary: #cccccc;
11
+ $red: #c9302c;
12
+ $orange: #f6a828 ;
13
+
14
+
15
+
16
+ $lightgrey: rgba(203, 203, 210, 0.15);//pos variable
17
+
18
+ $font-family-base: 'Roboto', sans-serif;
19
+ $headings-font-family: 'Roboto Slab', serif;
20
+
21
+ $text-muted: #9a9a9a ;
22
+ $link-color :#0976b4;
23
+
24
+ $h1-font-size: 1.375rem; //22px
25
+ $h2-font-size: 1.25rem; //20px
26
+ $h3-font-size: 1.125rem; //18px
27
+ $h4-font-size: 1rem; //16px
28
+ $h5-font-size: 0.875rem; //14px
29
+ $h6-font-size: 0.8125rem; //13px
30
+ $font-size-base: 0.75rem; //12px
31
+ $font-size-sm: 0.625rem ;
32
+
33
+
34
+
35
+ $headings-font-weight: 700;
36
+ $font-weight-normal: 400;
37
+ //primary: all link
38
+ //success : main button
39
+ //secondary : secondary button
40
+ //nav-blue
41
+ $theme-colors: ( "primary":$blue, "success": $green, secondary:#cccccc, "dark": $dark,"light":$light,"light-gray":$lightgrey,"light-blue":$light-blue,"danger":$red,"warning":$orange);
42
+
43
+ $spacer: 0.125rem; //2px spacing for each level
44
+ $spacers: ( 1: $spacer, 2: $spacer*2, 3: $spacer*3, 4:$spacer*4,5:$spacer*5,6:$spacer*6,7:$spacer*7,8:$spacer*8,9:$spacer*9,10:$spacer*10,11:$spacer*11,12:$spacer*12 );
45
+
46
+ //table
47
+ $table-head-color: $header-color;
48
+ $table-head-bg: #f6f6f6;
49
+ $table-border-color: $light;
50
+ $table-cell-padding: 12px 8px;
51
+
52
+ //btn
53
+ $btn-padding-y: 0.625rem;
54
+ $btn-padding-x: 0.9375rem;
55
+
56
+
57
+ //drop down
58
+ $dropdown-item-padding-y: .5rem;
59
+ $dropdown-item-padding-x: 1rem;
60
+ $dropdown-link-color: $body-color;
61
+ $dropdown-link-active-bg: transparent;
62
+ $dropdown-link-active-color: inherit;
63
+ //form
64
+ $input-focus-box-shadow: none;
65
+ $input-border-radius:0px;
66
+ $input-border-radius-lg: 1px;
67
+ $font-size-lg:1rem;
68
+ $input-group-addon-bg: white;
69
+
70
+ $modal-input-border: 1px solid #C8D3DF;
71
+ $modal-input-padding:5px 7px;
72
+ //card
73
+ $card-cap-bg: $white !default;
74
+ $card-spacer-x: 0.9375rem;
75
+
76
+ //border
77
+ $border:1px solid $light;
78
+
79
+ //Receipt Printing
80
+ $enable-print-styles: false;
81
+
82
+
83
+
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -0,0 +1,24 @@
1
+ <svg style="position: absolute; width: 0; height: 0; overflow: hidden;" version="1.1" xmlns="http://www.w3.org/2000/svg"
2
+ xmlns:xlink="http://www.w3.org/1999/xlink">
3
+ <defs>
4
+
5
+ <symbol id="star-empty" viewBox="0 0 34 32">
6
+ <title>star-empty</title>
7
+ <path class="path-star-empty"
8
+ d="M33.412 12.395l-11.842-1.021-4.628-10.904-4.628 10.92-11.842 1.005 8.993 7.791-2.701 11.579 10.179-6.144 10.179 6.144-2.685-11.579 8.976-7.791zM16.941 22.541l-6.193 3.739 1.647-7.049-5.468-4.744 7.214-0.626 2.8-6.638 2.816 6.654 7.214 0.626-5.468 4.744 1.647 7.049-6.209-3.755z"/>
9
+ </symbol>
10
+
11
+ <symbol id="star-half" viewBox="0 0 34 32">
12
+ <title>star-half</title>
13
+ <path class="path-star-half"
14
+ d="M 33.412,12.395 21.57,11.374 16.942,0.47 12.314,11.39 0.472,12.395 9.465,20.186 6.764,31.765 16.943,25.621 27.122,31.765 24.437,20.186 33.413,12.395 Z M 16.941,22.541 c 0,0 -0.297971,-14.6455833 0,-15.318 l 2.816,6.654 7.214,0.626 -5.468,4.744 1.647,7.049 z"/>
15
+ </symbol>
16
+
17
+ <symbol id="star-filled" viewBox="0 0 34 32">
18
+ <title>star-filled</title>
19
+ <path class="path-star-filled"
20
+ d="M16.941 25.621l10.179 6.144-2.701-11.579 8.993-7.791-11.842-1.005-4.628-10.92-4.628 10.92-11.842 1.005 8.993 7.791-2.701 11.579z"/>
21
+ </symbol>
22
+
23
+ </defs>
24
+ </svg>
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkfeedback=self.webpackChunkfeedback||[]).push([[592],{6006:(d,n,c)=>{c.d(n,{L:()=>i});var r=c(8926);let i=(()=>{var e;class o{get host(){return this._host}get invoiceId(){return this._invoiceId}constructor(){}encodeQueryParam(t){if(this.base64Params=t,!this._host&&!this._invoiceId){let s=atob(t).split("_");this._invoiceId=s[0],this._host=s[1]}}}return(e=o).\u0275fac=function(t){return new(t||e)},e.\u0275prov=r.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),o})()}}]);
package/favicon.ico ADDED
Binary file