manifest 4.0.2 → 4.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (39) hide show
  1. package/package.json +1 -1
  2. package/scripts/watch/watch.js +12 -3
  3. package/dist/admin/3rdpartylicenses.txt +0 -314
  4. package/dist/admin/899.17770aed1582d609.js +0 -1
  5. package/dist/admin/assets/fonts/case-icon.svg +0 -204
  6. package/dist/admin/assets/fonts/case-icon.ttf +0 -0
  7. package/dist/admin/assets/fonts/case-icon.woff +0 -0
  8. package/dist/admin/assets/images/add-resource.svg +0 -9
  9. package/dist/admin/assets/images/avatar-default.svg +0 -21
  10. package/dist/admin/assets/images/error-404.svg +0 -463
  11. package/dist/admin/assets/images/ext-link-01.svg +0 -17
  12. package/dist/admin/assets/images/ext-link-02.svg +0 -16
  13. package/dist/admin/assets/images/ext-link-03.svg +0 -11
  14. package/dist/admin/assets/images/ext-link-04.svg +0 -10
  15. package/dist/admin/assets/images/ext-link-05.svg +0 -9
  16. package/dist/admin/assets/images/ext-link-06.svg +0 -5
  17. package/dist/admin/assets/images/ext-link-07.svg +0 -4
  18. package/dist/admin/assets/images/ext-link-08.svg +0 -4
  19. package/dist/admin/assets/images/ext-link-09.svg +0 -11
  20. package/dist/admin/assets/images/ext-link-10.svg +0 -11
  21. package/dist/admin/assets/images/ext-link-dc.svg +0 -11
  22. package/dist/admin/assets/images/ext-link-gh.svg +0 -11
  23. package/dist/admin/assets/images/favicon.png +0 -0
  24. package/dist/admin/assets/images/image-default.svg +0 -20
  25. package/dist/admin/assets/images/login.svg +0 -374
  26. package/dist/admin/assets/images/logo.svg +0 -97
  27. package/dist/admin/assets/images/logotype-dark.svg +0 -85
  28. package/dist/admin/assets/images/logotype-manifest.svg +0 -82
  29. package/dist/admin/assets/images/logotype-sand.svg +0 -83
  30. package/dist/admin/assets/images/logotype.svg +0 -83
  31. package/dist/admin/assets/images/open-api/favicon.ico +0 -0
  32. package/dist/admin/assets/images/open-api/favicon.png +0 -0
  33. package/dist/admin/assets/images/welcome.svg +0 -184
  34. package/dist/admin/favicon.ico +0 -0
  35. package/dist/admin/index.html +0 -13
  36. package/dist/admin/main.c58ee55e1c057dcd.js +0 -1
  37. package/dist/admin/polyfills.aa6bfe65f9e403e2.js +0 -1
  38. package/dist/admin/runtime.d224516daf661d0b.js +0 -1
  39. package/dist/admin/styles.0e38830726ae2ab0.css +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "manifest",
3
- "version": "4.0.2",
3
+ "version": "4.0.3",
4
4
  "description": "A backend so simple that it fits in a YAML file",
5
5
  "author": "Manifest",
6
6
  "license": "MIT",
@@ -1,16 +1,25 @@
1
1
  #!/usr/bin/env node
2
2
 
3
3
  // This script is used to watch for changes from the project root directory where Manifest is installed.
4
- const { spawn } = require('child_process')
5
4
  const path = require('path')
5
+ const os = require('os')
6
+ const spawn = require('cross-spawn')
6
7
 
7
- const nodemonPath = path.join(process.cwd(), 'node_modules', '.bin', 'nodemon')
8
+ // Determine the appropriate nodemon path
9
+ const nodemonExecutable = os.platform() === 'win32' ? 'nodemon.cmd' : 'nodemon'
10
+ const nodemonPath = path.join(
11
+ process.cwd(),
12
+ 'node_modules',
13
+ '.bin',
14
+ nodemonExecutable
15
+ )
8
16
 
9
17
  const nodemon = spawn(
10
18
  nodemonPath,
11
19
  ['.', '--config', `${__dirname}/nodemon.json`],
12
20
  {
13
- stdio: 'inherit'
21
+ stdio: 'inherit',
22
+ shell: true
14
23
  }
15
24
  )
16
25
  nodemon.on('close', (code) => {
@@ -1,314 +0,0 @@
1
- @angular/common
2
- MIT
3
-
4
- @angular/core
5
- MIT
6
-
7
- @angular/forms
8
- MIT
9
-
10
- @angular/platform-browser
11
- MIT
12
-
13
- @angular/router
14
- MIT
15
-
16
- @auth0/angular-jwt
17
- MIT
18
- The MIT License (MIT)
19
-
20
- Copyright (c) 2017 Auth0 Inc.
21
-
22
- Permission is hereby granted, free of charge, to any person obtaining a copy
23
- of this software and associated documentation files (the "Software"), to deal
24
- in the Software without restriction, including without limitation the rights
25
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
26
- copies of the Software, and to permit persons to whom the Software is
27
- furnished to do so, subject to the following conditions:
28
-
29
- The above copyright notice and this permission notice shall be included in all
30
- copies or substantial portions of the Software.
31
-
32
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
33
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
34
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
35
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
36
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
37
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
38
- SOFTWARE.
39
-
40
-
41
- @babel/runtime
42
- MIT
43
- MIT License
44
-
45
- Copyright (c) 2014-present Sebastian McKenzie and other contributors
46
-
47
- Permission is hereby granted, free of charge, to any person obtaining
48
- a copy of this software and associated documentation files (the
49
- "Software"), to deal in the Software without restriction, including
50
- without limitation the rights to use, copy, modify, merge, publish,
51
- distribute, sublicense, and/or sell copies of the Software, and to
52
- permit persons to whom the Software is furnished to do so, subject to
53
- the following conditions:
54
-
55
- The above copyright notice and this permission notice shall be
56
- included in all copies or substantial portions of the Software.
57
-
58
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
59
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
60
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
61
- NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
62
- LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
63
- OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
64
- WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
65
-
66
-
67
- @repo/helpers
68
-
69
- @repo/types
70
-
71
- rxjs
72
- Apache-2.0
73
- Apache License
74
- Version 2.0, January 2004
75
- http://www.apache.org/licenses/
76
-
77
- TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
78
-
79
- 1. Definitions.
80
-
81
- "License" shall mean the terms and conditions for use, reproduction,
82
- and distribution as defined by Sections 1 through 9 of this document.
83
-
84
- "Licensor" shall mean the copyright owner or entity authorized by
85
- the copyright owner that is granting the License.
86
-
87
- "Legal Entity" shall mean the union of the acting entity and all
88
- other entities that control, are controlled by, or are under common
89
- control with that entity. For the purposes of this definition,
90
- "control" means (i) the power, direct or indirect, to cause the
91
- direction or management of such entity, whether by contract or
92
- otherwise, or (ii) ownership of fifty percent (50%) or more of the
93
- outstanding shares, or (iii) beneficial ownership of such entity.
94
-
95
- "You" (or "Your") shall mean an individual or Legal Entity
96
- exercising permissions granted by this License.
97
-
98
- "Source" form shall mean the preferred form for making modifications,
99
- including but not limited to software source code, documentation
100
- source, and configuration files.
101
-
102
- "Object" form shall mean any form resulting from mechanical
103
- transformation or translation of a Source form, including but
104
- not limited to compiled object code, generated documentation,
105
- and conversions to other media types.
106
-
107
- "Work" shall mean the work of authorship, whether in Source or
108
- Object form, made available under the License, as indicated by a
109
- copyright notice that is included in or attached to the work
110
- (an example is provided in the Appendix below).
111
-
112
- "Derivative Works" shall mean any work, whether in Source or Object
113
- form, that is based on (or derived from) the Work and for which the
114
- editorial revisions, annotations, elaborations, or other modifications
115
- represent, as a whole, an original work of authorship. For the purposes
116
- of this License, Derivative Works shall not include works that remain
117
- separable from, or merely link (or bind by name) to the interfaces of,
118
- the Work and Derivative Works thereof.
119
-
120
- "Contribution" shall mean any work of authorship, including
121
- the original version of the Work and any modifications or additions
122
- to that Work or Derivative Works thereof, that is intentionally
123
- submitted to Licensor for inclusion in the Work by the copyright owner
124
- or by an individual or Legal Entity authorized to submit on behalf of
125
- the copyright owner. For the purposes of this definition, "submitted"
126
- means any form of electronic, verbal, or written communication sent
127
- to the Licensor or its representatives, including but not limited to
128
- communication on electronic mailing lists, source code control systems,
129
- and issue tracking systems that are managed by, or on behalf of, the
130
- Licensor for the purpose of discussing and improving the Work, but
131
- excluding communication that is conspicuously marked or otherwise
132
- designated in writing by the copyright owner as "Not a Contribution."
133
-
134
- "Contributor" shall mean Licensor and any individual or Legal Entity
135
- on behalf of whom a Contribution has been received by Licensor and
136
- subsequently incorporated within the Work.
137
-
138
- 2. Grant of Copyright License. Subject to the terms and conditions of
139
- this License, each Contributor hereby grants to You a perpetual,
140
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
141
- copyright license to reproduce, prepare Derivative Works of,
142
- publicly display, publicly perform, sublicense, and distribute the
143
- Work and such Derivative Works in Source or Object form.
144
-
145
- 3. Grant of Patent License. Subject to the terms and conditions of
146
- this License, each Contributor hereby grants to You a perpetual,
147
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
148
- (except as stated in this section) patent license to make, have made,
149
- use, offer to sell, sell, import, and otherwise transfer the Work,
150
- where such license applies only to those patent claims licensable
151
- by such Contributor that are necessarily infringed by their
152
- Contribution(s) alone or by combination of their Contribution(s)
153
- with the Work to which such Contribution(s) was submitted. If You
154
- institute patent litigation against any entity (including a
155
- cross-claim or counterclaim in a lawsuit) alleging that the Work
156
- or a Contribution incorporated within the Work constitutes direct
157
- or contributory patent infringement, then any patent licenses
158
- granted to You under this License for that Work shall terminate
159
- as of the date such litigation is filed.
160
-
161
- 4. Redistribution. You may reproduce and distribute copies of the
162
- Work or Derivative Works thereof in any medium, with or without
163
- modifications, and in Source or Object form, provided that You
164
- meet the following conditions:
165
-
166
- (a) You must give any other recipients of the Work or
167
- Derivative Works a copy of this License; and
168
-
169
- (b) You must cause any modified files to carry prominent notices
170
- stating that You changed the files; and
171
-
172
- (c) You must retain, in the Source form of any Derivative Works
173
- that You distribute, all copyright, patent, trademark, and
174
- attribution notices from the Source form of the Work,
175
- excluding those notices that do not pertain to any part of
176
- the Derivative Works; and
177
-
178
- (d) If the Work includes a "NOTICE" text file as part of its
179
- distribution, then any Derivative Works that You distribute must
180
- include a readable copy of the attribution notices contained
181
- within such NOTICE file, excluding those notices that do not
182
- pertain to any part of the Derivative Works, in at least one
183
- of the following places: within a NOTICE text file distributed
184
- as part of the Derivative Works; within the Source form or
185
- documentation, if provided along with the Derivative Works; or,
186
- within a display generated by the Derivative Works, if and
187
- wherever such third-party notices normally appear. The contents
188
- of the NOTICE file are for informational purposes only and
189
- do not modify the License. You may add Your own attribution
190
- notices within Derivative Works that You distribute, alongside
191
- or as an addendum to the NOTICE text from the Work, provided
192
- that such additional attribution notices cannot be construed
193
- as modifying the License.
194
-
195
- You may add Your own copyright statement to Your modifications and
196
- may provide additional or different license terms and conditions
197
- for use, reproduction, or distribution of Your modifications, or
198
- for any such Derivative Works as a whole, provided Your use,
199
- reproduction, and distribution of the Work otherwise complies with
200
- the conditions stated in this License.
201
-
202
- 5. Submission of Contributions. Unless You explicitly state otherwise,
203
- any Contribution intentionally submitted for inclusion in the Work
204
- by You to the Licensor shall be under the terms and conditions of
205
- this License, without any additional terms or conditions.
206
- Notwithstanding the above, nothing herein shall supersede or modify
207
- the terms of any separate license agreement you may have executed
208
- with Licensor regarding such Contributions.
209
-
210
- 6. Trademarks. This License does not grant permission to use the trade
211
- names, trademarks, service marks, or product names of the Licensor,
212
- except as required for reasonable and customary use in describing the
213
- origin of the Work and reproducing the content of the NOTICE file.
214
-
215
- 7. Disclaimer of Warranty. Unless required by applicable law or
216
- agreed to in writing, Licensor provides the Work (and each
217
- Contributor provides its Contributions) on an "AS IS" BASIS,
218
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
219
- implied, including, without limitation, any warranties or conditions
220
- of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
221
- PARTICULAR PURPOSE. You are solely responsible for determining the
222
- appropriateness of using or redistributing the Work and assume any
223
- risks associated with Your exercise of permissions under this License.
224
-
225
- 8. Limitation of Liability. In no event and under no legal theory,
226
- whether in tort (including negligence), contract, or otherwise,
227
- unless required by applicable law (such as deliberate and grossly
228
- negligent acts) or agreed to in writing, shall any Contributor be
229
- liable to You for damages, including any direct, indirect, special,
230
- incidental, or consequential damages of any character arising as a
231
- result of this License or out of the use or inability to use the
232
- Work (including but not limited to damages for loss of goodwill,
233
- work stoppage, computer failure or malfunction, or any and all
234
- other commercial damages or losses), even if such Contributor
235
- has been advised of the possibility of such damages.
236
-
237
- 9. Accepting Warranty or Additional Liability. While redistributing
238
- the Work or Derivative Works thereof, You may choose to offer,
239
- and charge a fee for, acceptance of support, warranty, indemnity,
240
- or other liability obligations and/or rights consistent with this
241
- License. However, in accepting such obligations, You may act only
242
- on Your own behalf and on Your sole responsibility, not on behalf
243
- of any other Contributor, and only if You agree to indemnify,
244
- defend, and hold each Contributor harmless for any liability
245
- incurred by, or claims asserted against, such Contributor by reason
246
- of your accepting any such warranty or additional liability.
247
-
248
- END OF TERMS AND CONDITIONS
249
-
250
- APPENDIX: How to apply the Apache License to your work.
251
-
252
- To apply the Apache License to your work, attach the following
253
- boilerplate notice, with the fields enclosed by brackets "[]"
254
- replaced with your own identifying information. (Don't include
255
- the brackets!) The text should be enclosed in the appropriate
256
- comment syntax for the file format. We also recommend that a
257
- file or class name and description of purpose be included on the
258
- same "printed page" as the copyright notice for easier
259
- identification within third-party archives.
260
-
261
- Copyright (c) 2015-2018 Google, Inc., Netflix, Inc., Microsoft Corp. and contributors
262
-
263
- Licensed under the Apache License, Version 2.0 (the "License");
264
- you may not use this file except in compliance with the License.
265
- You may obtain a copy of the License at
266
-
267
- http://www.apache.org/licenses/LICENSE-2.0
268
-
269
- Unless required by applicable law or agreed to in writing, software
270
- distributed under the License is distributed on an "AS IS" BASIS,
271
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
272
- See the License for the specific language governing permissions and
273
- limitations under the License.
274
-
275
-
276
-
277
- tslib
278
- 0BSD
279
- Copyright (c) Microsoft Corporation.
280
-
281
- Permission to use, copy, modify, and/or distribute this software for any
282
- purpose with or without fee is hereby granted.
283
-
284
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
285
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
286
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
287
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
288
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
289
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
290
- PERFORMANCE OF THIS SOFTWARE.
291
-
292
- zone.js
293
- MIT
294
- The MIT License
295
-
296
- Copyright (c) 2010-2024 Google LLC. https://angular.io/license
297
-
298
- Permission is hereby granted, free of charge, to any person obtaining a copy
299
- of this software and associated documentation files (the "Software"), to deal
300
- in the Software without restriction, including without limitation the rights
301
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
302
- copies of the Software, and to permit persons to whom the Software is
303
- furnished to do so, subject to the following conditions:
304
-
305
- The above copyright notice and this permission notice shall be included in
306
- all copies or substantial portions of the Software.
307
-
308
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
309
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
310
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
311
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
312
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
313
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
314
- THE SOFTWARE.
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[899],{6899:(Ie,G,c)=>{c.r(G),c.d(G,{CrudModule:()=>$e});var r=c(2943),u=c(9911),k=c(7591),m=c(6561),t=c(8284),f=c(2283);const E=(n,o)=>["/","dynamic",n,o];function j(n,o){if(1&n&&(t.j41(0,"a",2)(1,"span"),t.EFF(2),t.k0s()()),2&n){const e=t.XpG();t.Y8G("routerLink",t.l_i(2,E,e.entityManifest.slug,e.item.id)),t.R7$(2),t.JRh(e.item[e.entityManifest.mainProp])}}function P(n,o){1&n&&(t.j41(0,"span"),t.EFF(1,"-"),t.k0s())}let y=(()=>{class n{constructor(e){this.manifestService=e}ngOnInit(){this.manifestService.getEntityManifest({className:this.relationship.entity}).then(e=>{this.entityManifest=e})}static#t=this.\u0275fac=function(i){return new(i||n)(t.rXU(f.x))};static#e=this.\u0275cmp=t.VBU({type:n,selectors:[["app-relation-yield"]],inputs:{item:"item",relationship:"relationship"},standalone:!0,features:[t.aNF],decls:2,vars:2,consts:[[3,"routerLink",4,"ngIf"],[4,"ngIf"],[3,"routerLink"]],template:function(i,a){1&i&&t.DNE(0,j,3,5,"a",0)(1,P,2,0,"span",1),2&i&&(t.Y8G("ngIf",a.item&&a.entityManifest),t.R7$(),t.Y8G("ngIf",!a.item||!a.entityManifest))},dependencies:[m.iI,m.Wk,r.MD,r.bT]})}return n})();var d=c(5442),F=function(n){return n[n.Text=0]="Text",n[n.Number=1]="Number",n[n.Link=2]="Link",n[n.Currency=3]="Currency",n[n.Date=4]="Date",n[n.Boolean=5]="Boolean",n[n.Email=6]="Email",n[n.ProgressBar=7]="ProgressBar",n[n.Label=8]="Label",n[n.Location=9]="Location",n}(F||{});function X(n,o){1&n&&(t.j41(0,"span"),t.nrm(1,"i",1),t.k0s())}function D(n,o){1&n&&(t.j41(0,"span"),t.EFF(1," - "),t.k0s())}let S=(()=>{class n{static#t=this.\u0275fac=function(i){return new(i||n)};static#e=this.\u0275cmp=t.VBU({type:n,selectors:[["app-boolean-yield"]],inputs:{value:"value"},standalone:!0,features:[t.aNF],decls:3,vars:2,consts:[[4,"ngIf"],[1,"icon","icon-check-circle","has-text-success"]],template:function(i,a){1&i&&(t.j41(0,"div"),t.DNE(1,X,2,0,"span",0)(2,D,2,0,"span",0),t.k0s()),2&i&&(t.R7$(),t.Y8G("ngIf",a.value),t.R7$(),t.Y8G("ngIf",!a.value))},dependencies:[r.MD,r.bT]})}return n})();function L(n,o){if(1&n&&(t.j41(0,"span",1),t.EFF(1),t.nI1(2,"currency"),t.k0s()),2&n){const e=t.XpG();t.R7$(),t.SpI(" ",t.i5U(2,1,e.value,e.currency),"")}}function N(n,o){1&n&&(t.j41(0,"span",1),t.EFF(1," - "),t.k0s())}let w=(()=>{class n{static#t=this.\u0275fac=function(i){return new(i||n)};static#e=this.\u0275cmp=t.VBU({type:n,selectors:[["app-currency-yield"]],inputs:{value:"value",currency:"currency"},standalone:!0,features:[t.aNF],decls:2,vars:2,consts:[["class","is-nowrap",4,"ngIf"],[1,"is-nowrap"]],template:function(i,a){1&i&&t.DNE(0,L,3,4,"span",0)(1,N,2,0,"span",0),2&i&&(t.Y8G("ngIf",a.value),t.R7$(),t.Y8G("ngIf",!a.value))},dependencies:[r.bT,r.oe]})}return n})();function B(n,o){1&n&&(t.j41(0,"span",0),t.EFF(1," - "),t.k0s())}let V=(()=>{class n{static#t=this.\u0275fac=function(i){return new(i||n)};static#e=this.\u0275cmp=t.VBU({type:n,selectors:[["app-date-yield"]],inputs:{value:"value"},standalone:!0,features:[t.aNF],decls:4,vars:5,consts:[[1,"is-nowrap"],["class","is-nowrap",4,"ngIf"]],template:function(i,a){1&i&&(t.j41(0,"span",0),t.EFF(1),t.nI1(2,"date"),t.k0s(),t.DNE(3,B,2,0,"span",1)),2&i&&(t.R7$(),t.JRh(t.i5U(2,2,a.value,"MM/dd/yy")),t.R7$(2),t.Y8G("ngIf",!a.value))},dependencies:[r.vh,r.bT]})}return n})(),U=(()=>{class n{static#t=this.\u0275fac=function(i){return new(i||n)};static#e=this.\u0275cmp=t.VBU({type:n,selectors:[["app-email-yield"]],inputs:{value:"value"},standalone:!0,features:[t.aNF],decls:3,vars:1,consts:[[1,"yield"],[1,"yield__value"]],template:function(i,a){1&i&&(t.j41(0,"div",0)(1,"div",1),t.EFF(2),t.k0s()()),2&i&&(t.R7$(2),t.JRh(a.value))}})}return n})();function O(n,o){if(1&n&&(t.j41(0,"span"),t.EFF(1),t.k0s()),2&n){const e=t.XpG();t.ZvI("tag is-rounded is-color-",e.index,""),t.R7$(),t.JRh(e.value)}}function q(n,o){1&n&&(t.j41(0,"span"),t.EFF(1,"-"),t.k0s())}let A=(()=>{class n{ngOnInit(){this.index=this.values.indexOf(this.value)}static#t=this.\u0275fac=function(i){return new(i||n)};static#e=this.\u0275cmp=t.VBU({type:n,selectors:[["app-label-yield"]],inputs:{value:"value",values:"values"},standalone:!0,features:[t.aNF],decls:2,vars:2,consts:[[3,"class",4,"ngIf"],[4,"ngIf"]],template:function(i,a){1&i&&t.DNE(0,O,2,4,"span",0)(1,q,2,0,"span",1),2&i&&(t.Y8G("ngIf",a.value),t.R7$(),t.Y8G("ngIf",!a.value))},dependencies:[r.MD,r.bT],styles:[".is-color-1[_ngcontent-%COMP%]{color:#fff;background-color:#f44336}.is-color-2[_ngcontent-%COMP%]{color:#fff;background-color:#9c27b0}.is-color-3[_ngcontent-%COMP%]{color:#fff;background-color:#3f51b5}.is-color-4[_ngcontent-%COMP%]{color:#fff;background-color:#2196f3}.is-color-5[_ngcontent-%COMP%]{color:#fff;background-color:#009688}.is-color-6[_ngcontent-%COMP%]{color:#fff;background-color:#4caf50}.is-color-7[_ngcontent-%COMP%]{color:#fff;background-color:#ff9800}.is-color-8[_ngcontent-%COMP%]{color:#fff;background-color:#607d8b}.is-color-9[_ngcontent-%COMP%]{color:#fff;background-color:#795548}.is-color-10[_ngcontent-%COMP%]{color:#fff;background-color:#9e9e9e}.is-color-11[_ngcontent-%COMP%]{color:#fff;background-color:#e91e63}.is-color-12[_ngcontent-%COMP%]{color:#fff;background-color:#673ab7}"]})}return n})(),T=(()=>{class n{transform(e,i){return e?.length>i?e.substring(0,i)+"...":e}static#t=this.\u0275fac=function(i){return new(i||n)};static#e=this.\u0275pipe=t.EJ8({name:"truncate",type:n,pure:!0,standalone:!0})}return n})();var Y=c(9606);const J=(n,o)=>({"icon-external-link":n,"icon-download":o});function z(n,o){if(1&n&&(t.j41(0,"span"),t.EFF(1),t.nI1(2,"truncate"),t.k0s()),2&n){const e=t.XpG(2);t.R7$(),t.JRh(t.i5U(2,1,e.value,44))}}function K(n,o){if(1&n&&(t.j41(0,"span"),t.EFF(1),t.k0s()),2&n){const e=t.XpG(2);t.R7$(),t.JRh(e.value)}}function W(n,o){if(1&n&&(t.j41(0,"a",2),t.nrm(1,"i",3),t.DNE(2,z,3,4,"span",4)(3,K,2,1,"span",4),t.k0s()),2&n){const e=t.XpG();t.Y8G("href",e.external?e.value:e.storageBaseUrl+"/"+e.value,t.B4B)("download",!e.external),t.R7$(),t.Y8G("ngClass",t.l_i(5,J,e.external,!e.external)),t.R7$(),t.Y8G("ngIf",e.compact),t.R7$(),t.Y8G("ngIf",!e.compact)}}function H(n,o){1&n&&(t.j41(0,"span",5),t.EFF(1," - "),t.k0s())}let Q=(()=>{class n{constructor(){this.compact=!0,this.external=!0,this.storageBaseUrl=Y.c.storageBaseUrl}static#t=this.\u0275fac=function(i){return new(i||n)};static#e=this.\u0275cmp=t.VBU({type:n,selectors:[["app-link-yield"]],inputs:{value:"value",compact:"compact",external:"external"},standalone:!0,features:[t.aNF],decls:2,vars:2,consts:[["target","_blank","class","is-inline-flex is-align-items-center",3,"href","download",4,"ngIf"],["class","is-nowrap",4,"ngIf"],["target","_blank",1,"is-inline-flex","is-align-items-center",3,"href","download"],[1,"icon","icon-external-link","mr-1",3,"ngClass"],[4,"ngIf"],[1,"is-nowrap"]],template:function(i,a){1&i&&t.DNE(0,W,4,8,"a",0)(1,H,2,0,"span",1),2&i&&(t.Y8G("ngIf",a.value),t.R7$(),t.Y8G("ngIf",!a.value))},dependencies:[r.bT,r.YU,T]})}return n})();function Z(n,o){if(1&n&&(t.j41(0,"a",2),t.nrm(1,"i",3),t.j41(2,"span"),t.EFF(3,"View on map"),t.k0s()()),2&n){const e=t.XpG();t.FCK("href","https://www.openstreetmap.org/?mlat=",e.value.lat,"&mlon=",e.value.lng,"",t.B4B)}}function tt(n,o){1&n&&(t.j41(0,"span"),t.EFF(1,"-"),t.k0s())}let et=(()=>{class n{static#t=this.\u0275fac=function(i){return new(i||n)};static#e=this.\u0275cmp=t.VBU({type:n,selectors:[["app-location-yield"]],inputs:{value:"value"},standalone:!0,features:[t.aNF],decls:2,vars:2,consts:[["target","_blank",3,"href",4,"ngIf"],[4,"ngIf"],["target","_blank",3,"href"],[1,"icon","icon-map-pin","mr-1"]],template:function(i,a){1&i&&t.DNE(0,Z,4,3,"a",0)(1,tt,2,0,"span",1),2&i&&(t.Y8G("ngIf",(null==a.value?null:a.value.lat)&&(null==a.value?null:a.value.lng)),t.R7$(),t.Y8G("ngIf",!(null!=a.value&&a.value.lat&&null!=a.value&&a.value.lng)))},dependencies:[r.bT]})}return n})();function nt(n,o){if(1&n&&(t.j41(0,"span",1),t.EFF(1),t.k0s()),2&n){const e=t.XpG();t.R7$(),t.SpI(" ",e.value," ")}}function it(n,o){1&n&&(t.j41(0,"span",1),t.EFF(1," - "),t.k0s())}let at=(()=>{class n{static#t=this.\u0275fac=function(i){return new(i||n)};static#e=this.\u0275cmp=t.VBU({type:n,selectors:[["app-number-yield"]],inputs:{value:"value"},standalone:!0,features:[t.aNF],decls:2,vars:2,consts:[["class","is-nowrap",4,"ngIf"],[1,"is-nowrap"]],template:function(i,a){1&i&&t.DNE(0,nt,2,1,"span",0)(1,it,2,0,"span",0),2&i&&(t.Y8G("ngIf",null!==a.value),t.R7$(),t.Y8G("ngIf",null===a.value))},dependencies:[r.bT]})}return n})();function ot(n,o){1&n&&t.nrm(0,"span",4)}function st(n,o){1&n&&t.nrm(0,"span",5)}function rt(n,o){if(1&n&&(t.qex(0),t.DNE(1,ot,1,0,"span",2)(2,st,1,0,"span",3),t.bVm()),2&n){const e=o.index,i=t.XpG();t.R7$(),t.Y8G("ngIf",i.index>=e),t.R7$(),t.Y8G("ngIf",i.index<e)}}let lt=(()=>{class n{constructor(){this.enumAsArray=[]}ngOnInit(){this.index=this.values.indexOf(this.value)}static#t=this.\u0275fac=function(i){return new(i||n)};static#e=this.\u0275cmp=t.VBU({type:n,selectors:[["app-progress-bar-yield"]],inputs:{value:"value",values:"values"},standalone:!0,features:[t.aNF],decls:2,vars:5,consts:[[1,"is-flex","is-align-items-center","is-white-space-nowrap","tooltip","has-tooltip-left"],[4,"ngFor","ngForOf"],["class","bullet",4,"ngIf"],["class","bullet is-grey",4,"ngIf"],[1,"bullet"],[1,"bullet","is-grey"]],template:function(i,a){1&i&&(t.j41(0,"div",0),t.DNE(1,rt,3,2,"ng-container",1),t.k0s()),2&i&&(t.ZvI("is-color-",a.index,""),t.BMQ("data-tooltip",a.value||"Unknown"),t.R7$(),t.Y8G("ngForOf",a.values))},dependencies:[r.MD,r.Sq,r.bT]})}return n})();function ct(n,o){if(1&n&&(t.j41(0,"span"),t.EFF(1),t.nI1(2,"truncate"),t.k0s()),2&n){const e=t.XpG();t.R7$(),t.JRh(t.i5U(2,1,e.value,44))}}function pt(n,o){if(1&n&&(t.j41(0,"span"),t.EFF(1),t.k0s()),2&n){const e=t.XpG();t.R7$(),t.JRh(e.value)}}function mt(n,o){1&n&&(t.j41(0,"span"),t.EFF(1," - "),t.k0s())}let ut=(()=>{class n{constructor(){this.compact=!0}static#t=this.\u0275fac=function(i){return new(i||n)};static#e=this.\u0275cmp=t.VBU({type:n,selectors:[["app-text-yield"]],inputs:{value:"value",compact:"compact"},standalone:!0,features:[t.aNF],decls:3,vars:3,consts:[[4,"ngIf"]],template:function(i,a){1&i&&t.DNE(0,ct,3,4,"span",0)(1,pt,2,1,"span",0)(2,mt,2,0,"span",0),2&i&&(t.Y8G("ngIf",a.compact),t.R7$(),t.Y8G("ngIf",!a.compact),t.R7$(),t.Y8G("ngIf",!a.value))},dependencies:[r.MD,r.bT,T]})}return n})(),_t=(()=>{class n{static#t=this.\u0275fac=function(i){return new(i||n)};static#e=this.\u0275cmp=t.VBU({type:n,selectors:[["app-timestamp-yield"]],inputs:{value:"value"},standalone:!0,features:[t.aNF],decls:3,vars:4,consts:[[1,"is-nowrap"]],template:function(i,a){1&i&&(t.j41(0,"span",0),t.EFF(1),t.nI1(2,"date"),t.k0s()),2&i&&(t.R7$(),t.JRh(t.i5U(2,1,a.value,"yyyy-MM-dd HH:mm:ss")))},dependencies:[r.vh],encapsulation:2})}return n})();var h=c(7154);function ft(n,o){if(1&n&&t.nrm(0,"img",2),2&n){const e=t.XpG();t.Y8G("src",e.image,t.B4B)}}function dt(n,o){1&n&&(t.j41(0,"span"),t.EFF(1,"-"),t.k0s())}let gt=(()=>{class n{ngOnInit(){if(this.value){const e=(0,h.Gj)(this.sizes);this.image=`${Y.c.storageBaseUrl}/${this.value[e]}`}}static#t=this.\u0275fac=function(i){return new(i||n)};static#e=this.\u0275cmp=t.VBU({type:n,selectors:[["app-image-yield"]],inputs:{value:"value",sizes:"sizes",label:"label"},standalone:!0,features:[t.aNF],decls:2,vars:2,consts:[["alt","image","width","36","height","36",3,"src",4,"ngIf"],[4,"ngIf"],["alt","image","width","36","height","36",3,"src"]],template:function(i,a){1&i&&t.DNE(0,ft,1,1,"img",0)(1,dt,2,0,"span",1),2&i&&(t.Y8G("ngIf",a.image),t.R7$(),t.Y8G("ngIf",!a.image))},dependencies:[r.bT],encapsulation:2})}return n})();function yt(n,o){if(1&n&&t.nrm(0,"app-text-yield",6),2&n){const e=t.XpG();t.Y8G("value",e.value)("compact",e.compact)}}function ht(n,o){if(1&n&&t.nrm(0,"app-number-yield",7),2&n){const e=t.XpG();t.Y8G("value",e.value)}}function vt(n,o){if(1&n&&t.nrm(0,"app-link-yield",8),2&n){const e=t.XpG();t.Y8G("value",e.value)("external",e.prop.type===e.PropType.Link)("compact",e.compact)}}function Ct(n,o){if(1&n&&t.nrm(0,"app-boolean-yield",7),2&n){const e=t.XpG();t.Y8G("value",e.value)}}function bt(n,o){if(1&n&&t.nrm(0,"app-currency-yield",9),2&n){const e=t.XpG();t.Y8G("currency",null==e.prop.options?null:e.prop.options.currency)("value",e.value)}}function Gt(n,o){if(1&n&&t.nrm(0,"app-date-yield",7),2&n){const e=t.XpG();t.Y8G("value",e.value)}}function kt(n,o){if(1&n&&t.nrm(0,"app-timestamp-yield",7),2&n){const e=t.XpG();t.Y8G("value",e.value)}}function Ft(n,o){if(1&n&&t.nrm(0,"app-email-yield",7),2&n){const e=t.XpG();t.Y8G("value",e.value)}}function Tt(n,o){if(1&n&&t.nrm(0,"app-label-yield",10),2&n){const e=t.XpG();t.Y8G("values",null==e.prop.options?null:e.prop.options.values)("value",e.value)}}function Yt(n,o){if(1&n&&t.nrm(0,"app-progress-bar-yield",10),2&n){const e=t.XpG();t.Y8G("values",null==e.prop.options?null:e.prop.options.values)("value",e.value)}}function $t(n,o){if(1&n&&t.nrm(0,"app-location-yield",7),2&n){const e=t.XpG();t.Y8G("value",e.value)}}function It(n,o){if(1&n&&t.nrm(0,"app-image-yield",11),2&n){const e=t.XpG();t.Y8G("value",e.value)("sizes",null==e.prop.options?null:e.prop.options.sizes)}}let v=(()=>{class n{constructor(){this.compact=!1,this.PropType=d.Kk,this.YieldType=F}static#t=this.\u0275fac=function(i){return new(i||n)};static#e=this.\u0275cmp=t.VBU({type:n,selectors:[["app-yield"]],inputs:{prop:"prop",value:"value",compact:"compact"},standalone:!0,features:[t.aNF],decls:12,vars:12,consts:[[3,"value","compact",4,"ngIf"],[3,"value",4,"ngIf"],[3,"value","external","compact",4,"ngIf"],[3,"currency","value",4,"ngIf"],[3,"values","value",4,"ngIf"],[3,"value","sizes",4,"ngIf"],[3,"value","compact"],[3,"value"],[3,"value","external","compact"],[3,"currency","value"],[3,"values","value"],[3,"value","sizes"]],template:function(i,a){1&i&&t.DNE(0,yt,1,2,"app-text-yield",0)(1,ht,1,1,"app-number-yield",1)(2,vt,1,3,"app-link-yield",2)(3,Ct,1,1,"app-boolean-yield",1)(4,bt,1,2,"app-currency-yield",3)(5,Gt,1,1,"app-date-yield",1)(6,kt,1,1,"app-timestamp-yield",1)(7,Ft,1,1,"app-email-yield",1)(8,Tt,1,2,"app-label-yield",4)(9,Yt,1,2,"app-progress-bar-yield",4)(10,$t,1,1,"app-location-yield",1)(11,It,1,2,"app-image-yield",5),2&i&&(t.Y8G("ngIf",a.prop.type===a.PropType.String||a.prop.type===a.PropType.Text),t.R7$(),t.Y8G("ngIf",a.prop.type===a.PropType.Number),t.R7$(),t.Y8G("ngIf",a.prop.type===a.PropType.Link||a.prop.type===a.PropType.File),t.R7$(),t.Y8G("ngIf",a.prop.type===a.PropType.Boolean),t.R7$(),t.Y8G("ngIf",a.prop.type===a.PropType.Money),t.R7$(),t.Y8G("ngIf",a.prop.type===a.PropType.Date),t.R7$(),t.Y8G("ngIf",a.prop.type===a.PropType.Timestamp),t.R7$(),t.Y8G("ngIf",a.prop.type===a.PropType.Email),t.R7$(),t.Y8G("ngIf",a.prop.type===a.PropType.Choice&&!0!==(null==a.prop.options?null:a.prop.options.sequential)),t.R7$(),t.Y8G("ngIf",a.prop.type===a.PropType.Choice&&!0===(null==a.prop.options?null:a.prop.options.sequential)),t.R7$(),t.Y8G("ngIf",a.prop.type===a.PropType.Location),t.R7$(),t.Y8G("ngIf",a.prop.type===a.PropType.Image))},dependencies:[r.MD,r.bT,S,w,V,_t,U,at,Q,ut,A,lt,et,gt],encapsulation:2})}return n})();var g=c(7431),$=c(4782),C=c(6119),b=c(7271),I=c(818);const x=n=>({"is-loading":n});function xt(n,o){if(1&n){const e=t.RV6();t.j41(0,"div",15)(1,"div",16)(2,"app-input",17),t.bIt("valueChanged",function(a){const l=t.eBV(e).$implicit,s=t.XpG(3);return t.Njj(s.onChange({propName:l.name,newValue:a}))}),t.k0s()()()}if(2&n){const e=o.$implicit,i=t.XpG(3);t.R7$(2),t.Y8G("prop",e)("entityManifest",i.entityManifest)("value",i.edit?i.item[e.name]:null)("errors",i.errors[e.name])}}function Rt(n,o){if(1&n){const e=t.RV6();t.j41(0,"div",16)(1,"app-input",19),t.bIt("valueChanged",function(a){t.eBV(e);const l=t.XpG().$implicit,s=t.XpG(3);return t.Njj(s.onRelationChange({relationship:l,newValue:a}))}),t.k0s()()}if(2&n){const e=t.XpG().$implicit,i=t.XpG(3);t.R7$(),t.Y8G("relationship",e)("value",i.edit?i.item[e.name]:null)("errors",i.errors[e.name])}}function Mt(n,o){if(1&n&&(t.j41(0,"div",15),t.DNE(1,Rt,2,3,"div",18),t.k0s()),2&n){const e=o.$implicit;t.R7$(),t.Y8G("ngIf","many-to-one"===e.type||"many-to-many"===e.type&&e.owningSide)}}function Et(n,o){if(1&n&&(t.j41(0,"form",9)(1,"div",10)(2,"div",11)(3,"div",12)(4,"div",13),t.DNE(5,xt,3,4,"div",14)(6,Mt,2,1,"div",14),t.k0s()()()()()),2&n){const e=t.XpG(2);t.Y8G("formGroup",e.form),t.R7$(5),t.Y8G("ngForOf",e.entityManifest.properties),t.R7$(),t.Y8G("ngForOf",e.entityManifest.relationships)}}function jt(n,o){if(1&n){const e=t.RV6();t.qex(0),t.j41(1,"section")(2,"div",1)(3,"div",2)(4,"h1",3),t.EFF(5),t.k0s()(),t.j41(6,"div",4)(7,"button",5),t.bIt("click",function(){t.eBV(e);const a=t.XpG();return t.Njj(a.submit())}),t.EFF(8," Submit "),t.k0s(),t.j41(9,"button",6),t.bIt("click",function(){t.eBV(e);const a=t.XpG();return t.Njj(a.submit())}),t.nrm(10,"i",7),t.k0s()()(),t.DNE(11,Et,7,3,"form",8),t.k0s(),t.bVm()}if(2&n){const e=t.XpG();t.R7$(5),t.Lme(" ",e.edit?"Edit an existing":"Create a new"," ",e.entityManifest.nameSingular," "),t.R7$(2),t.Y8G("ngClass",t.eq3(5,x,e.loading)),t.R7$(2),t.Y8G("ngClass",t.eq3(7,x,e.loading)),t.R7$(2),t.Y8G("ngIf",e.item||!e.edit)}}let R=(()=>{class n{constructor(e,i,a,l,s,p,_){this.crudService=e,this.manifestService=i,this.activatedRoute=a,this.router=l,this.formBuilder=s,this.breadcrumbService=p,this.flashMessageService=_,this.errors={},this.form=this.formBuilder.group({}),this.PropType=d.Kk}ngOnInit(){var e=this;return(0,g.A)(function*(){(0,$.z)([e.activatedRoute.params,e.activatedRoute.data]).subscribe(function(){var i=(0,g.A)(function*([a,l]){e.edit=l.edit,e.entityManifest=yield e.manifestService.getEntityManifest({slug:a.entitySlug}),e.entityManifest||e.router.navigate(["/404"]),e.edit?(e.item=yield e.crudService.show(e.entityManifest.slug,a.id,{relations:e.entityManifest.relationships.filter(s=>"one-to-many"!==s.type).filter(s=>"many-to-many"!==s.type||s.owningSide).map(s=>s.name)}),e.breadcrumbService.breadcrumbLinks.next([{label:e.entityManifest.namePlural,path:`/dynamic/${e.entityManifest.slug}`},{label:e.item[e.entityManifest.mainProp],path:`/dynamic/${e.entityManifest.slug}/${e.item.id}`},{label:"Edit"}])):e.breadcrumbService.breadcrumbLinks.next([{label:e.entityManifest.namePlural,path:`/dynamic/${e.entityManifest.slug}`},{label:`Create a new ${e.entityManifest.nameSingular}`}]),e.entityManifest.properties.forEach(s=>{let p=null;e.item?p=e.item[s.name]:s.type===d.Kk.Boolean&&(p=!1),e.form.addControl(s.name,new u.MJ(p))}),e.entityManifest.relationships.filter(s=>"one-to-many"!==s.type).filter(s=>"many-to-many"!==s.type||s.owningSide).forEach(s=>{let p=null;"many-to-one"===s.type?p=e.item?e.item[s.name]?.id:null:"many-to-many"===s.type&&(p=e.item?e.item[s.name].map(_=>_.id):[]),e.form.addControl((0,h.yk)(s),new u.MJ(p))})});return function(a){return i.apply(this,arguments)}}())})()}onChange(e){this.form.controls[e.propName].setValue(e.newValue)}onRelationChange(e){return this.onChange({newValue:e.newValue,propName:(0,h.yk)(e.relationship)})}submit(){this.loading=!0,this.edit?this.crudService.update(this.entityManifest.slug,this.item.id,this.form.value).then(()=>{this.loading=!1,this.flashMessageService.success(`The ${this.entityManifest.nameSingular} has been updated`),this.router.navigate(["/dynamic",this.entityManifest.slug])}).catch(e=>{400===e.status&&(this.errors=this.getErrorMessages(e.error)),this.loading=!1,this.flashMessageService.error(`The ${this.entityManifest.nameSingular} could not be updated`)}):this.crudService.create(this.entityManifest.slug,this.form.value).then(e=>{this.loading=!1,this.flashMessageService.success(`The ${this.entityManifest.nameSingular} has been created successfully`),this.router.navigate(["/dynamic",this.entityManifest.slug,e.id])}).catch(e=>{400===e.status&&(this.errors=this.getErrorMessages(e.error)),this.loading=!1,this.flashMessageService.error(`Error: the ${this.entityManifest.nameSingular} could not be created:\n ${Object.values(this.errors).join(", ")}\n `)})}getErrorMessages(e){const i={};return e.forEach(a=>{i[a.property]=Object.values(a.constraints)}),i}static#t=this.\u0275fac=function(i){return new(i||n)(t.rXU(C.m),t.rXU(f.x),t.rXU(m.nX),t.rXU(m.Ix),t.rXU(u.ok),t.rXU(b.b),t.rXU(I.L))};static#e=this.\u0275cmp=t.VBU({type:n,selectors:[["app-create-edit"]],decls:1,vars:1,consts:[[4,"ngIf"],[1,"is-flex","is-justify-content-space-between","is-align-items-center","mb-5"],[1,"left-part"],[1,"title","is-2","has-text-weight-light"],[1,"right-part"],["type","submit",1,"button","is-link","is-hidden-touch",3,"click","ngClass"],["type","submit",1,"button","is-link","is-hidden-desktop","is-circle",3,"click","ngClass"],[1,"icon","icon-save"],[3,"formGroup",4,"ngIf"],[3,"formGroup"],[1,"card","is-shadowless","p-4"],[1,"columns"],[1,"column","is-6-desktop","is-offset-3-desktop","is-4-fullhd","is-offset-4-fullhd"],[1,"form-group"],["class","field mt-2 mb-4",4,"ngFor","ngForOf"],[1,"field","mt-2","mb-4"],[1,"control"],[3,"valueChanged","prop","entityManifest","value","errors"],["class","control",4,"ngIf"],[3,"valueChanged","relationship","value","errors"]],template:function(i,a){1&i&&t.DNE(0,jt,12,9,"ng-container",0),2&i&&t.Y8G("ngIf",a.entityManifest)},dependencies:[r.YU,r.Sq,r.bT,u.qT,u.cb,u.j4,k.S]})}return n})();function Pt(n,o){if(1&n&&(t.j41(0,"div",16)(1,"p",17),t.EFF(2),t.k0s(),t.j41(3,"p",18),t.nrm(4,"app-yield",19),t.k0s()()),2&n){const e=o.$implicit,i=t.XpG(2);t.R7$(2),t.SpI(" ",e.name," "),t.R7$(2),t.Y8G("value",i.item[e.name])("prop",e)}}function Xt(n,o){if(1&n&&t.nrm(0,"app-relation-yield",22),2&n){const e=t.XpG(2).$implicit,i=t.XpG(2);t.Y8G("item",i.item[e.name])("relationship",e)}}function Dt(n,o){1&n&&(t.qex(0),t.EFF(1,", "),t.bVm())}function St(n,o){if(1&n&&(t.qex(0),t.nrm(1,"app-relation-yield",22),t.DNE(2,Dt,2,0,"ng-container",0),t.bVm()),2&n){const e=o.$implicit,i=o.last,a=t.XpG(3).$implicit;t.R7$(),t.Y8G("item",e)("relationship",a),t.R7$(),t.Y8G("ngIf",!i)}}function Lt(n,o){if(1&n&&(t.qex(0),t.DNE(1,St,3,3,"ng-container",23),t.bVm()),2&n){const e=t.XpG(2).$implicit,i=t.XpG(2);t.R7$(),t.Y8G("ngForOf",i.item[e.name])}}function Nt(n,o){if(1&n&&(t.qex(0),t.j41(1,"p",17),t.EFF(2),t.k0s(),t.j41(3,"p",18),t.DNE(4,Xt,1,2,"app-relation-yield",21)(5,Lt,2,1,"ng-container",0),t.k0s(),t.bVm()),2&n){const e=t.XpG().$implicit;t.R7$(2),t.SpI(" ",e.name," "),t.R7$(2),t.Y8G("ngIf","many-to-one"===e.type),t.R7$(),t.Y8G("ngIf","many-to-many"===e.type)}}function wt(n,o){if(1&n&&(t.j41(0,"div",20),t.DNE(1,Nt,6,3,"ng-container",0),t.k0s()),2&n){const e=o.$implicit;t.R7$(),t.Y8G("ngIf","many-to-one"===e.type||"many-to-many"===e.type&&e.owningSide)}}function Bt(n,o){if(1&n&&(t.j41(0,"section")(1,"div",1)(2,"div",2)(3,"h1",3),t.EFF(4),t.k0s()(),t.j41(5,"div",4)(6,"a",5),t.nrm(7,"i",6),t.k0s(),t.j41(8,"a",7),t.EFF(9,"Edit "),t.k0s(),t.j41(10,"a",8),t.nrm(11,"i",9),t.k0s()()(),t.j41(12,"div",10)(13,"div",11),t.DNE(14,Pt,5,3,"div",12)(15,wt,2,1,"div",13),t.k0s(),t.j41(16,"div",14)(17,"table",15),t.nrm(18,"tbody"),t.k0s()()()()),2&n){const e=t.XpG();t.R7$(4),t.SpI(" ",e.item[e.entityManifest.mainProp]," "),t.R7$(10),t.Y8G("ngForOf",e.entityManifest.properties),t.R7$(),t.Y8G("ngForOf",e.entityManifest.relationships)}}let Vt=(()=>{class n{constructor(e,i,a,l,s){this.crudService=e,this.manifestService=i,this.activatedRoute=a,this.breadcrumbService=l,this.router=s}ngOnInit(){var e=this;this.activatedRoute.params.subscribe(function(){var i=(0,g.A)(function*(a){e.entityManifest=yield e.manifestService.getEntityManifest({slug:a.entitySlug}),e.entityManifest||e.router.navigate(["/404"]),e.item=yield e.crudService.show(e.entityManifest.slug,a.id,{relations:e.entityManifest.relationships?.filter(l=>"one-to-many"!==l.type).filter(l=>"many-to-many"!==l.type||l.owningSide).map(l=>l.name)}),e.breadcrumbService.breadcrumbLinks.next([{label:e.entityManifest.namePlural,path:`/dynamic/${e.entityManifest.slug}`},{label:e.item[e.entityManifest.mainProp]}])});return function(a){return i.apply(this,arguments)}}())}static#t=this.\u0275fac=function(i){return new(i||n)(t.rXU(C.m),t.rXU(f.x),t.rXU(m.nX),t.rXU(b.b),t.rXU(m.Ix))};static#e=this.\u0275cmp=t.VBU({type:n,selectors:[["app-detail"]],decls:1,vars:1,consts:[[4,"ngIf"],[1,"is-flex","is-justify-content-space-between","is-align-items-center","mb-5"],[1,"left-part"],[1,"title","is-2","has-text-weight-light"],[1,"right-part","is-flex","is-flex-direction-row"],[1,"button","is-link","is-light","is-hidden-desktop","is-circle"],[1,"icon","icon-trash-2"],["routerLink","edit",1,"button","is-link","ml-2","is-hidden-touch"],["routerLink","edit",1,"button","is-link","ml-2","is-hidden-desktop","is-circle"],[1,"icon","icon-edit"],[1,"card","p-0","mb-6","is-shadowless"],[1,"card-content"],["class","properties",4,"ngFor","ngForOf"],["class","relations",4,"ngFor","ngForOf"],[1,"table-container"],[1,"table","is-fullwidth","is-hoverable"],[1,"properties"],[1,"is-property-label","mb-1","is-size-5","has-text-dark","has-text-weight-medium"],[1,"is-property-value"],[3,"value","prop"],[1,"relations"],[3,"item","relationship",4,"ngIf"],[3,"item","relationship"],[4,"ngFor","ngForOf"]],template:function(i,a){1&i&&t.DNE(0,Bt,19,3,"section",0),2&i&&t.Y8G("ngIf",a.item&&a.entityManifest)},dependencies:[r.Sq,r.bT,m.Wk,v,y],styles:['@import"https://fonts.googleapis.com/css?family=Rubik:300,400,400i,500";.properties[_ngcontent-%COMP%] + div[_ngcontent-%COMP%], .relations[_ngcontent-%COMP%] + div[_ngcontent-%COMP%]{margin-top:16px}']})}return n})();function Ut(n,o){if(1&n&&(t.j41(0,"span"),t.EFF(1),t.k0s()),2&n){const e=t.XpG();t.R7$(),t.Lme(" Page ",e.paginator.currentPage," of ",e.paginator.lastPage," \u2022 ")}}function Ot(n,o){1&n&&t.EFF(0,"No result")}function qt(n,o){1&n&&t.EFF(0,"1 result")}function At(n,o){if(1&n&&t.EFF(0),2&n){const e=t.XpG();t.SpI(" ",e.paginator.total," results ")}}function Jt(n,o){1&n&&(t.j41(0,"span"),t.EFF(1,"in total"),t.k0s())}let zt=(()=>{class n{static#t=this.\u0275fac=function(i){return new(i||n)};static#e=this.\u0275cmp=t.VBU({type:n,selectors:[["app-list-meta"]],inputs:{paginator:"paginator"},decls:8,vars:3,consts:[[1,"mb-2"],[4,"ngIf"],[3,"ngPlural"],["ngPluralCase","0"],["ngPluralCase","1"],["ngPluralCase","other"]],template:function(i,a){1&i&&(t.j41(0,"p",0),t.DNE(1,Ut,2,2,"span",1),t.j41(2,"span"),t.qex(3,2),t.DNE(4,Ot,1,0,"ng-template",3)(5,qt,1,0,"ng-template",4)(6,At,1,1,"ng-template",5),t.bVm(),t.DNE(7,Jt,2,0,"span",1),t.k0s()()),2&i&&(t.R7$(),t.Y8G("ngIf",a.paginator.lastPage>1),t.R7$(2),t.Y8G("ngPlural",a.paginator.total),t.R7$(4),t.Y8G("ngIf",a.paginator.lastPage>1))},dependencies:[r.bT,r.IJ,r.WO]})}return n})();const Kt=n=>({"is-current":n});function Wt(n,o){1&n&&(t.j41(0,"li")(1,"span",5),t.EFF(2,"\u2026"),t.k0s()())}function Ht(n,o){if(1&n){const e=t.RV6();t.j41(0,"li")(1,"a",6),t.bIt("click",function(){const a=t.eBV(e).$implicit,l=t.XpG(2);return t.Njj(l.goToPage(a))}),t.EFF(2),t.k0s()()}if(2&n){const e=o.$implicit,i=t.XpG(2);t.R7$(),t.Y8G("ngClass",t.eq3(2,Kt,i.paginator.currentPage==e)),t.R7$(),t.JRh(e)}}function Qt(n,o){1&n&&(t.j41(0,"li")(1,"span",5),t.EFF(2,"\u2026"),t.k0s()())}function Zt(n,o){if(1&n&&(t.j41(0,"nav",1)(1,"ul",2),t.DNE(2,Wt,3,0,"li",3)(3,Ht,3,4,"li",4)(4,Qt,3,0,"li",3),t.k0s()()),2&n){const e=t.XpG();t.R7$(2),t.Y8G("ngIf",e.pageArray[0]>1),t.R7$(),t.Y8G("ngForOf",e.pageArray),t.R7$(),t.Y8G("ngIf",e.pageArray[e.pageArray.length-1]<e.paginator.lastPage)}}let te=(()=>{class n{constructor(){this.pageChanged=new t.bkB}ngOnChanges(){this.pageArray=this.createPageArray(this.paginator.currentPage,this.paginator.lastPage)}goToPage(e){this.pageChanged.emit(e),this.pageArray=this.createPageArray(e,this.paginator.lastPage)}createPageArray(e,i){let a,l;i<=5?(a=1,l=i):e<=3?(a=1,l=5):e+2>=i?(a=i-4,l=i):(a=e-2,l=e+2);const s=[];for(let p=a;p<=l;p+=1)s.push(p);return s}scrollTop(){window.scrollTo({top:0,behavior:"smooth"})}static#t=this.\u0275fac=function(i){return new(i||n)};static#e=this.\u0275cmp=t.VBU({type:n,selectors:[["app-pagination"]],inputs:{paginator:"paginator"},outputs:{pageChanged:"pageChanged"},features:[t.OA$],decls:1,vars:1,consts:[["class","pagination is-centered my-5 is-rounded","role","navigation","aria-label","pagination",4,"ngIf"],["role","navigation","aria-label","pagination",1,"pagination","is-centered","my-5","is-rounded"],[1,"pagination-list"],[4,"ngIf"],[4,"ngFor","ngForOf"],[1,"pagination-ellipsis"],["duration","400",1,"pagination-link",3,"click","ngClass"]],template:function(i,a){1&i&&t.DNE(0,Zt,5,3,"nav",0),2&i&&t.Y8G("ngIf",a.paginator.lastPage>1)},dependencies:[r.YU,r.Sq,r.bT]})}return n})();const M=n=>["/dynamic",n,"create"],ee=n=>({"mb-0":n}),ne=n=>({"has-text-right":n}),ie=(n,o)=>["/","dynamic",n,o],ae=(n,o)=>["/dynamic",n,o,"edit"],oe=(n,o)=>({"has-text-right":n,"has-detail-link":o});function se(n,o){if(1&n&&t.nrm(0,"app-list-meta",17),2&n){const e=t.XpG(2);t.Y8G("paginator",e.paginator)}}function re(n,o){1&n&&(t.j41(0,"div",18),t.nrm(1,"span",19),t.k0s())}function le(n,o){if(1&n&&(t.j41(0,"th",20),t.EFF(1),t.k0s()),2&n){const e=o.$implicit,i=t.XpG(2);t.Y8G("ngClass",t.eq3(2,ne,e.type===i.PropType.Money||e.type===i.PropType.Number||e.type===i.PropType.Date)),t.R7$(),t.SpI(" ",e.name," ")}}function ce(n,o){if(1&n&&(t.j41(0,"th"),t.EFF(1),t.k0s()),2&n){const e=t.XpG().$implicit;t.R7$(),t.SpI(" ",e.name," ")}}function pe(n,o){if(1&n&&(t.qex(0),t.DNE(1,ce,2,1,"th",0),t.bVm()),2&n){const e=o.$implicit;t.R7$(),t.Y8G("ngIf","many-to-one"===e.type||"many-to-many"===e.type&&e.owningSide)}}function me(n,o){if(1&n){const e=t.RV6();t.j41(0,"td",30),t.bIt("click",function(){const a=t.eBV(e).$implicit,l=t.XpG().$implicit,s=t.XpG(3);return t.Njj(a.name===s.entityManifest.mainProp?s.goToDetailPage(l.id):null)}),t.nrm(1,"app-yield",31),t.k0s()}if(2&n){const e=o.$implicit,i=t.XpG().$implicit,a=t.XpG(3);t.Y8G("ngClass",t.l_i(4,oe,e.type===a.PropType.Money||e.type===a.PropType.Number||e.type===a.PropType.Date,e.name===a.entityManifest.mainProp)),t.R7$(),t.Y8G("prop",e)("value",i[e.name])("compact",!0)}}function ue(n,o){if(1&n&&t.nrm(0,"app-relation-yield",33),2&n){const e=t.XpG(2).$implicit,i=t.XpG().$implicit;t.Y8G("item",i[e.name])("relationship",e)}}function _e(n,o){1&n&&(t.qex(0),t.EFF(1,", "),t.bVm())}function fe(n,o){if(1&n&&(t.qex(0),t.nrm(1,"app-relation-yield",33),t.DNE(2,_e,2,0,"ng-container",0),t.bVm()),2&n){const e=o.$implicit,i=o.last,a=t.XpG(3).$implicit;t.R7$(),t.Y8G("item",e)("relationship",a),t.R7$(),t.Y8G("ngIf",!i)}}function de(n,o){if(1&n&&(t.qex(0),t.DNE(1,fe,3,3,"ng-container",15),t.bVm()),2&n){const e=t.XpG(2).$implicit,i=t.XpG().$implicit;t.R7$(),t.Y8G("ngForOf",i[e.name])}}function ge(n,o){if(1&n&&(t.qex(0),t.DNE(1,ue,1,2,"app-relation-yield",32)(2,de,2,1,"ng-container",0),t.bVm()),2&n){const e=t.XpG().$implicit;t.R7$(),t.Y8G("ngIf","many-to-one"===e.type),t.R7$(),t.Y8G("ngIf","many-to-many"===e.type)}}function ye(n,o){if(1&n&&(t.j41(0,"td"),t.DNE(1,ge,3,2,"ng-container",0),t.k0s()),2&n){const e=o.$implicit;t.R7$(),t.Y8G("ngIf","many-to-one"===e.type||"many-to-many"===e.type&&e.owningSide)}}function he(n,o){if(1&n){const e=t.RV6();t.j41(0,"tr"),t.DNE(1,me,2,7,"td",21)(2,ye,2,1,"td",15),t.j41(3,"td",22)(4,"div",23)(5,"a",24),t.nrm(6,"i",25),t.k0s(),t.j41(7,"a",26),t.nrm(8,"i",27),t.k0s(),t.j41(9,"a",28),t.bIt("click",function(){const a=t.eBV(e).$implicit,l=t.XpG(3);return t.Njj(l.toggleDeleteModal(a))}),t.nrm(10,"i",29),t.k0s()()()()}if(2&n){const e=o.$implicit,i=t.XpG(3);t.R7$(),t.Y8G("ngForOf",i.entityManifest.properties),t.R7$(),t.Y8G("ngForOf",i.entityManifest.relationships),t.R7$(3),t.Y8G("routerLink",t.l_i(4,ie,i.entityManifest.slug,e.id)),t.R7$(2),t.Y8G("routerLink",t.l_i(7,ae,i.entityManifest.slug,e.id))}}function ve(n,o){if(1&n&&(t.j41(0,"tbody"),t.DNE(1,he,11,10,"tr",15),t.k0s()),2&n){const e=t.XpG(2);t.R7$(),t.Y8G("ngForOf",e.paginator.data)}}function Ce(n,o){if(1&n&&(t.j41(0,"tbody")(1,"tr")(2,"td"),t.EFF(3),t.k0s()()()),2&n){const e=t.XpG(2);t.R7$(2),t.BMQ("colspan",e.entityManifest.properties.length),t.R7$(),t.SpI(" There is no ",e.entityManifest.nameSingular,". ")}}function be(n,o){1&n&&(t.j41(0,"div",18),t.nrm(1,"div")(2,"div")(3,"div")(4,"div")(5,"div")(6,"div")(7,"div")(8,"div",34)(9,"div",34)(10,"div",34)(11,"div",34)(12,"div",34)(13,"div",34)(14,"div",34),t.k0s())}function Ge(n,o){if(1&n){const e=t.RV6();t.j41(0,"app-pagination",35),t.bIt("pageChanged",function(a){t.eBV(e);const l=t.XpG(2);return t.Njj(l.filter("page",a))}),t.k0s()}if(2&n){const e=t.XpG(2);t.Y8G("paginator",e.paginator)}}function ke(n,o){if(1&n&&(t.qex(0),t.j41(1,"div",2)(2,"div",3)(3,"h1",4),t.EFF(4),t.k0s()(),t.j41(5,"div",5)(6,"a",6),t.EFF(7),t.k0s(),t.j41(8,"a",7),t.nrm(9,"i",8),t.k0s()()(),t.DNE(10,se,1,1,"app-list-meta",9)(11,re,2,0,"div",10),t.j41(12,"div",11)(13,"div",12)(14,"table",13)(15,"thead")(16,"tr"),t.DNE(17,le,2,4,"th",14)(18,pe,2,1,"ng-container",15),t.nrm(19,"th"),t.k0s()(),t.DNE(20,ve,2,1,"tbody",0)(21,Ce,4,2,"tbody",0),t.k0s()(),t.DNE(22,be,15,0,"div",10),t.k0s(),t.DNE(23,Ge,1,1,"app-pagination",16),t.bVm()),2&n){const e=t.XpG();t.R7$(4),t.SpI(" List of ",e.entityManifest.namePlural," "),t.R7$(2),t.Y8G("routerLink",t.eq3(13,M,e.entityManifest.slug)),t.R7$(),t.SpI("Create a new ",e.entityManifest.nameSingular,""),t.R7$(),t.Y8G("routerLink",t.eq3(15,M,e.entityManifest.slug)),t.R7$(2),t.Y8G("ngIf",e.paginator),t.R7$(),t.Y8G("ngIf",e.loadingPaginator),t.R7$(2),t.Y8G("ngClass",t.eq3(17,ee,e.loadingPaginator)),t.R7$(4),t.Y8G("ngForOf",e.entityManifest.properties),t.R7$(),t.Y8G("ngForOf",e.entityManifest.relationships),t.R7$(2),t.Y8G("ngIf",null==e.paginator||null==e.paginator.data?null:e.paginator.data.length),t.R7$(),t.Y8G("ngIf",0===(null==e.paginator||null==e.paginator.data?null:e.paginator.data.length)),t.R7$(),t.Y8G("ngIf",e.loadingPaginator),t.R7$(),t.Y8G("ngIf",e.paginator)}}function Fe(n,o){if(1&n){const e=t.RV6();t.j41(0,"div",36)(1,"div",37),t.bIt("click",function(){t.eBV(e);const a=t.XpG();return t.Njj(a.toggleDeleteModal())}),t.k0s(),t.j41(2,"div",38)(3,"div",39)(4,"p"),t.EFF(5," Do you really want to delete "),t.j41(6,"strong"),t.EFF(7),t.k0s(),t.EFF(8),t.k0s(),t.j41(9,"p"),t.EFF(10),t.k0s(),t.j41(11,"div",40)(12,"button",41),t.bIt("click",function(){t.eBV(e);const a=t.XpG();return t.Njj(a.toggleDeleteModal())}),t.EFF(13," Cancel "),t.k0s(),t.j41(14,"button",42),t.bIt("click",function(){t.eBV(e);const a=t.XpG();return t.Njj(a.delete(a.itemToDelete.id))}),t.EFF(15," Delete "),t.k0s()(),t.j41(16,"button",43),t.bIt("click",function(){t.eBV(e);const a=t.XpG();return t.Njj(a.toggleDeleteModal())}),t.k0s()()()()}if(2&n){const e=t.XpG();t.R7$(7),t.JRh(e.itemToDelete[e.entityManifest.mainProp]),t.R7$(),t.SpI(" ",e.entityManifest.nameSingular," ? This action cannot be undone. "),t.R7$(2),t.SpI(" If ",e.itemToDelete[e.entityManifest.mainProp]," has related items, you should delete them first. ")}}const Te=[{path:":entitySlug",component:(()=>{class n{constructor(e,i,a,l,s,p,_){this.crudService=e,this.manifestService=i,this.router=a,this.activatedRoute=l,this.breadcrumbService=s,this.flashMessageService=p,this.renderer=_,this.PropType=d.Kk}ngOnInit(){var e=this;(0,$.z)([this.activatedRoute.queryParams,this.activatedRoute.params]).subscribe(function(){var i=(0,g.A)(function*([a,l]){delete e.paginator,e.queryParams=a,e.entityManifest=yield e.manifestService.getEntityManifest({slug:l.entitySlug}),e.entityManifest?(e.breadcrumbService.breadcrumbLinks.next([{label:e.entityManifest.namePlural,path:`/dynamic/${e.entityManifest.slug}`}]),e.loadingPaginator=!0,e.paginator=yield e.crudService.list(e.entityManifest.slug,{filters:e.queryParams,relations:e.entityManifest.relationships?.filter(s=>"one-to-many"!==s.type).filter(s=>"many-to-many"!==s.type||s.owningSide).map(s=>s.name)}),e.loadingPaginator=!1):e.router.navigate(["/404"])});return function(a){return i.apply(this,arguments)}}())}filter(e,i){const a={[e]:i};"page"!==e&&(a.page=1),this.router.navigate(["."],{relativeTo:this.activatedRoute,queryParams:a,queryParamsHandling:"merge"})}delete(e){this.crudService.delete(this.entityManifest.slug,e).then(()=>{this.itemToDelete=null,this.renderer.removeClass(document.querySelector("html"),"is-clipped"),this.flashMessageService.success(`The ${this.entityManifest.nameSingular} has been deleted.`),this.paginator.data=this.paginator.data.filter(i=>i.id!==e)}).catch(i=>{this.flashMessageService.error(i.error.message)})}goToDetailPage(e){this.router.navigate(["/dynamic",this.entityManifest.slug,e])}toggleDeleteModal(e){this.itemToDelete?(this.itemToDelete=null,this.renderer.removeClass(document.querySelector("html"),"is-clipped")):(this.itemToDelete=e,this.renderer.addClass(document.querySelector("html"),"is-clipped"))}static#t=this.\u0275fac=function(i){return new(i||n)(t.rXU(C.m),t.rXU(f.x),t.rXU(m.Ix),t.rXU(m.nX),t.rXU(b.b),t.rXU(I.L),t.rXU(t.sFG))};static#e=this.\u0275cmp=t.VBU({type:n,selectors:[["app-list"]],decls:2,vars:2,consts:[[4,"ngIf"],["class","modal is-active",4,"ngIf"],[1,"is-flex","flex-mobile","is-justify-content-space-between","is-align-items-center","mb-2"],[1,"left-part"],[1,"title","is-2","has-text-weight-light"],[1,"right-part","is-flex"],[1,"button","is-dark","ml-5","is-hidden-touch",3,"routerLink"],[1,"button","is-circle","is-link","ml-5","is-hidden-desktop",3,"routerLink"],[1,"icon","icon-plus"],[3,"paginator",4,"ngIf"],["class","is-loading",4,"ngIf"],[1,"card","p-0","mb-6","is-shadowless"],[1,"table-container",3,"ngClass"],[1,"table","is-fullwidth","is-hoverable"],[3,"ngClass",4,"ngFor","ngForOf"],[4,"ngFor","ngForOf"],[3,"paginator","pageChanged",4,"ngIf"],[3,"paginator"],[1,"is-loading"],[1,"list-meta"],[3,"ngClass"],[3,"ngClass","click",4,"ngFor","ngForOf"],[1,"has-text-right","is-nowrap"],[1,"is-flex","is-justify-content-flex-end"],[1,"button","is-light","is-small","is-circle",3,"routerLink"],[1,"icon","icon-eye"],[1,"button","is-light","is-small","is-circle","mx-2",3,"routerLink"],[1,"icon","icon-edit"],[1,"button","is-light","is-small","is-circle",3,"click"],[1,"icon","icon-trash-2"],[3,"click","ngClass"],[3,"prop","value","compact"],[3,"item","relationship",4,"ngIf"],[3,"item","relationship"],[1,"is-hidden-touch"],[3,"pageChanged","paginator"],[1,"modal","is-active"],[1,"modal-background",3,"click"],[1,"modal-card"],[1,"modal-card-body","content"],[1,"is-flex","is-align-items-center","is-justify-content-space-between","mt-6"],[1,"button","is-white",3,"click"],[1,"button","is-danger",3,"click"],["aria-label","close",1,"modal-close","is-large",3,"click"]],template:function(i,a){1&i&&t.DNE(0,ke,24,19,"ng-container",0)(1,Fe,17,3,"div",1),2&i&&(t.Y8G("ngIf",a.entityManifest),t.R7$(),t.Y8G("ngIf",a.itemToDelete&&a.entityManifest))},dependencies:[r.YU,r.Sq,r.bT,m.Wk,v,y,zt,te]})}return n})()},{path:":entitySlug/create",component:R,data:{edit:!1}},{path:":entitySlug/:id",component:Vt},{path:":entitySlug/:id/edit",component:R,data:{edit:!0}}];let Ye=(()=>{class n{static#t=this.\u0275fac=function(i){return new(i||n)};static#e=this.\u0275mod=t.$C({type:n});static#n=this.\u0275inj=t.G2t({imports:[m.iI.forChild(Te),m.iI]})}return n})(),$e=(()=>{class n{static#t=this.\u0275fac=function(i){return new(i||n)};static#e=this.\u0275mod=t.$C({type:n});static#n=this.\u0275inj=t.G2t({imports:[r.MD,u.X1,Ye,v,k.S,y]})}return n})()}}]);