@esri/solutions-components 5.1.0-next.92 → 5.1.0-next.94

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 (163) hide show
  1. package/dist/cdn/{DJOOB7YP.js → 2B2ANB2N.js} +1 -1
  2. package/dist/cdn/{PP2SFAFD.js → 2L3RREZ4.js} +1 -1
  3. package/dist/cdn/{OV4IBBDL.js → 2O3HAXKG.js} +1 -1
  4. package/dist/cdn/2VXTMCRJ.js +2 -0
  5. package/dist/cdn/2WHAF4H7.js +2 -0
  6. package/dist/cdn/{BBNWDMCK.js → 3XGF3ZJO.js} +1 -1
  7. package/dist/cdn/{4LXH3MTT.js → 3ZZ726LQ.js} +1 -1
  8. package/dist/cdn/{PHIGRQ7V.js → 4HPFDUTJ.js} +1 -1
  9. package/dist/cdn/{VPDMT4CY.js → 4QZ7WHXA.js} +1 -1
  10. package/dist/cdn/{SGBMDDAS.js → 55NRVFJ5.js} +1 -1
  11. package/dist/cdn/{5RTR3NSC.js → 5BU6XZAD.js} +1 -1
  12. package/dist/cdn/{4ZKGHGGU.js → 5OF3YOO7.js} +1 -1
  13. package/dist/cdn/5Z45KDQY.js +2 -0
  14. package/dist/cdn/AKKTG2RD.js +2 -0
  15. package/dist/cdn/{5A7H4LVR.js → AY6K2SJI.js} +1 -1
  16. package/dist/cdn/{JDX6K42U.js → C4UB6MNN.js} +115 -115
  17. package/dist/cdn/{5NPISZEN.js → C6KN2U7N.js} +1 -1
  18. package/dist/cdn/{XN2JVOOR.js → C7ASL3A4.js} +1 -1
  19. package/dist/cdn/{I33B45EZ.js → CHZWEULM.js} +1 -1
  20. package/dist/cdn/{NV3RC3FX.js → CWXOH2PC.js} +1 -1
  21. package/dist/cdn/{32YZXXMV.js → D4GI6KPZ.js} +1 -1
  22. package/dist/cdn/{DUZ4KXB3.js → FDE2V7FU.js} +1 -1
  23. package/dist/cdn/{6DCCVJMZ.js → GJTXLQOS.js} +1 -1
  24. package/dist/cdn/{UJLDLGTN.js → IEKNRCBC.js} +1 -1
  25. package/dist/cdn/{SWWDYNJE.js → IGSOHYV3.js} +1 -1
  26. package/dist/cdn/{KEZAVYJU.js → JJ7JB2ZP.js} +1 -1
  27. package/dist/cdn/{NSJAGP7T.js → JQXKQHAG.js} +2 -2
  28. package/dist/cdn/{FN2NSVLO.js → K6WLYYPH.js} +1 -1
  29. package/dist/cdn/LUZYJVG5.js +2 -0
  30. package/dist/cdn/{WEAC3FS7.js → NBPM6OJQ.js} +1 -1
  31. package/dist/cdn/{ET32EBBO.js → NXL2QN3P.js} +1 -1
  32. package/dist/cdn/{VHOYM5MD.js → O3SWSZQE.js} +1 -1
  33. package/dist/cdn/{VWPOKKOE.js → P24CZ4HM.js} +1 -1
  34. package/dist/cdn/{LDK4C3VJ.js → R2G4DDRZ.js} +1 -1
  35. package/dist/cdn/RG2D7ZRS.js +3 -0
  36. package/dist/cdn/{WQGGCG6M.js → SJCXI4TB.js} +1 -1
  37. package/dist/cdn/{QO2RC46D.js → SO3S3WP4.js} +1 -1
  38. package/dist/cdn/{LCERYSRG.js → U77O2MIG.js} +1 -1
  39. package/dist/cdn/UBLDT5XD.js +2 -0
  40. package/dist/cdn/VOF34LDF.js +2 -0
  41. package/dist/cdn/{K6PW4IX6.js → WRSVJIPA.js} +1 -1
  42. package/dist/cdn/{N3F6RUT6.js → X23TE3BV.js} +1 -1
  43. package/dist/cdn/{73YLLTLN.js → XAW6KPKL.js} +1 -1
  44. package/dist/cdn/YVDSW2OQ.js +2 -0
  45. package/dist/cdn/{B7AQR2UD.js → ZGEMIOB5.js} +1 -1
  46. package/dist/cdn/{JWGDDEVT.js → ZP6VPBP4.js} +1 -1
  47. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.ar.json +1 -1
  48. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.bg.json +1 -1
  49. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.bs.json +1 -1
  50. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.ca.json +1 -1
  51. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.cs.json +1 -1
  52. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.da.json +1 -1
  53. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.de.json +1 -1
  54. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.el.json +1 -1
  55. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.en.json +1 -1
  56. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.es.json +1 -1
  57. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.et.json +1 -1
  58. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.fi.json +1 -1
  59. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.fr.json +1 -1
  60. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.he.json +1 -1
  61. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.hr.json +1 -1
  62. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.hu.json +1 -1
  63. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.id.json +1 -1
  64. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.it.json +1 -1
  65. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.ja.json +1 -1
  66. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.json +1 -1
  67. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.ko.json +1 -1
  68. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.lt.json +1 -1
  69. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.lv.json +1 -1
  70. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.nl.json +1 -1
  71. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.no.json +1 -1
  72. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.pl.json +1 -1
  73. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.pt-BR.json +1 -1
  74. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.pt-PT.json +1 -1
  75. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.ro.json +1 -1
  76. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.ru.json +1 -1
  77. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.sk.json +1 -1
  78. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.sl.json +1 -1
  79. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.sr.json +1 -1
  80. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.sv.json +1 -1
  81. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.th.json +1 -1
  82. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.tr.json +1 -1
  83. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.uk.json +1 -1
  84. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.vi.json +1 -1
  85. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.zh-CN.json +1 -1
  86. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.zh-HK.json +1 -1
  87. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.zh-TW.json +1 -1
  88. package/dist/cdn/assets/solution-item-accordion/t9n/messages.ar.json +1 -1
  89. package/dist/cdn/assets/solution-item-accordion/t9n/messages.bg.json +1 -1
  90. package/dist/cdn/assets/solution-item-accordion/t9n/messages.bs.json +1 -1
  91. package/dist/cdn/assets/solution-item-accordion/t9n/messages.ca.json +1 -1
  92. package/dist/cdn/assets/solution-item-accordion/t9n/messages.cs.json +1 -1
  93. package/dist/cdn/assets/solution-item-accordion/t9n/messages.da.json +1 -1
  94. package/dist/cdn/assets/solution-item-accordion/t9n/messages.de.json +1 -1
  95. package/dist/cdn/assets/solution-item-accordion/t9n/messages.el.json +1 -1
  96. package/dist/cdn/assets/solution-item-accordion/t9n/messages.en.json +1 -1
  97. package/dist/cdn/assets/solution-item-accordion/t9n/messages.es.json +1 -1
  98. package/dist/cdn/assets/solution-item-accordion/t9n/messages.et.json +1 -1
  99. package/dist/cdn/assets/solution-item-accordion/t9n/messages.fi.json +1 -1
  100. package/dist/cdn/assets/solution-item-accordion/t9n/messages.fr.json +1 -1
  101. package/dist/cdn/assets/solution-item-accordion/t9n/messages.he.json +1 -1
  102. package/dist/cdn/assets/solution-item-accordion/t9n/messages.hr.json +1 -1
  103. package/dist/cdn/assets/solution-item-accordion/t9n/messages.hu.json +1 -1
  104. package/dist/cdn/assets/solution-item-accordion/t9n/messages.id.json +1 -1
  105. package/dist/cdn/assets/solution-item-accordion/t9n/messages.it.json +1 -1
  106. package/dist/cdn/assets/solution-item-accordion/t9n/messages.ja.json +1 -1
  107. package/dist/cdn/assets/solution-item-accordion/t9n/messages.json +1 -1
  108. package/dist/cdn/assets/solution-item-accordion/t9n/messages.ko.json +1 -1
  109. package/dist/cdn/assets/solution-item-accordion/t9n/messages.lt.json +1 -1
  110. package/dist/cdn/assets/solution-item-accordion/t9n/messages.lv.json +1 -1
  111. package/dist/cdn/assets/solution-item-accordion/t9n/messages.nl.json +1 -1
  112. package/dist/cdn/assets/solution-item-accordion/t9n/messages.no.json +1 -1
  113. package/dist/cdn/assets/solution-item-accordion/t9n/messages.pl.json +1 -1
  114. package/dist/cdn/assets/solution-item-accordion/t9n/messages.pt-BR.json +1 -1
  115. package/dist/cdn/assets/solution-item-accordion/t9n/messages.pt-PT.json +1 -1
  116. package/dist/cdn/assets/solution-item-accordion/t9n/messages.ro.json +1 -1
  117. package/dist/cdn/assets/solution-item-accordion/t9n/messages.ru.json +1 -1
  118. package/dist/cdn/assets/solution-item-accordion/t9n/messages.sk.json +1 -1
  119. package/dist/cdn/assets/solution-item-accordion/t9n/messages.sl.json +1 -1
  120. package/dist/cdn/assets/solution-item-accordion/t9n/messages.sr.json +1 -1
  121. package/dist/cdn/assets/solution-item-accordion/t9n/messages.sv.json +1 -1
  122. package/dist/cdn/assets/solution-item-accordion/t9n/messages.th.json +1 -1
  123. package/dist/cdn/assets/solution-item-accordion/t9n/messages.tr.json +1 -1
  124. package/dist/cdn/assets/solution-item-accordion/t9n/messages.uk.json +1 -1
  125. package/dist/cdn/assets/solution-item-accordion/t9n/messages.vi.json +1 -1
  126. package/dist/cdn/assets/solution-item-accordion/t9n/messages.zh-CN.json +1 -1
  127. package/dist/cdn/assets/solution-item-accordion/t9n/messages.zh-HK.json +1 -1
  128. package/dist/cdn/assets/solution-item-accordion/t9n/messages.zh-TW.json +1 -1
  129. package/dist/cdn/index.js +1 -1
  130. package/dist/chunks/converter.js +624 -0
  131. package/dist/chunks/interfaces.js +22 -21
  132. package/dist/chunks/solution-deploy-dialog.js +91 -76
  133. package/dist/components/arcgis-solutions-assistant/customElement.js +7701 -8269
  134. package/dist/components/solution-builder-assistant/customElement.d.ts +2 -0
  135. package/dist/components/solution-builder-assistant/customElement.js +119 -79
  136. package/dist/components/solution-builder-assistant/index.js +2 -0
  137. package/dist/components/solution-configure-titles/customElement.js +73 -59
  138. package/dist/components/solution-delete-dialog/customElement.js +1 -1
  139. package/dist/components/solution-deploy-dialog/customElement.d.ts +3 -1
  140. package/dist/components/solution-deploy-dialog/customElement.js +3 -2
  141. package/dist/components/solution-item-accordion/customElement.d.ts +8 -2
  142. package/dist/components/solution-item-accordion/customElement.js +52 -25
  143. package/dist/docs/api.json +1 -1
  144. package/dist/docs/docs.json +1 -1
  145. package/dist/docs/vscode.html-custom-data.json +1 -1
  146. package/dist/docs/web-types.json +1 -1
  147. package/dist/index.js +25 -24
  148. package/dist/loader.js +2 -2
  149. package/dist/solutions-components_commit.txt +6 -6
  150. package/dist/types/lumina.d.ts +2 -2
  151. package/dist/types/preact.d.ts +2 -2
  152. package/dist/types/react.d.ts +2 -2
  153. package/dist/types/stencil.d.ts +2 -2
  154. package/dist/utils/interfaces.d.ts +4 -0
  155. package/package.json +1 -1
  156. package/dist/cdn/3O5CKVIA.js +0 -2
  157. package/dist/cdn/A7PEA2YP.js +0 -2
  158. package/dist/cdn/BRQJSGIX.js +0 -2
  159. package/dist/cdn/DWEIHGFT.js +0 -2
  160. package/dist/cdn/DX56I3QB.js +0 -3
  161. package/dist/cdn/EMZJJYGC.js +0 -2
  162. package/dist/cdn/SW3IJGVE.js +0 -2
  163. package/dist/cdn/ZBET72YB.js +0 -2
@@ -0,0 +1,624 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
+ function c() {
3
+ return {
4
+ renderer: {
5
+ type: "simple",
6
+ symbol: {
7
+ type: "CIMSymbolReference",
8
+ symbol: {
9
+ type: "CIMPointSymbol",
10
+ symbolLayers: [
11
+ {
12
+ type: "CIMVectorMarker",
13
+ enable: !0,
14
+ colorLocked: !0,
15
+ anchorPoint: { x: 0, y: -12.600000000000001 },
16
+ anchorPointUnits: "Absolute",
17
+ dominantSizeAxis3D: "Y",
18
+ size: 7.2,
19
+ billboardMode3D: "FaceNearPlane",
20
+ frame: { xmin: 0, ymin: 0, xmax: 84.3, ymax: 84.3 },
21
+ markerGraphics: [
22
+ {
23
+ type: "CIMMarkerGraphic",
24
+ geometry: {
25
+ rings: [
26
+ [
27
+ [83.2, 32.5],
28
+ [84.3, 40.7],
29
+ [83.8, 48.9],
30
+ [81.7, 56.9],
31
+ [78.1, 64.3],
32
+ [73, 70.9],
33
+ [66.9, 76.4],
34
+ [59.7, 80.5],
35
+ [51.9, 83.2],
36
+ [43.7, 84.3],
37
+ [35.4, 83.8],
38
+ [27.4, 81.7],
39
+ [20, 78],
40
+ [13.4, 73],
41
+ [7.9, 66.8],
42
+ [3.8, 59.7],
43
+ [1.1, 51.9],
44
+ [0, 43.7],
45
+ [0.5, 35.4],
46
+ [2.6, 27.4],
47
+ [6.3, 20],
48
+ [11.3, 13.4],
49
+ [17.5, 7.9],
50
+ [24.7, 3.8],
51
+ [32.5, 1.1],
52
+ [39.8, 0.1],
53
+ [47.1, 0.3],
54
+ [54.3, 1.8],
55
+ [61.1, 4.5],
56
+ [67.4, 8.4],
57
+ [72.9, 13.3],
58
+ [77.4, 19.1],
59
+ [80.9, 25.5],
60
+ [83.2, 32.5]
61
+ ]
62
+ ]
63
+ },
64
+ symbol: {
65
+ type: "CIMPolygonSymbol",
66
+ symbolLayers: [
67
+ {
68
+ type: "CIMSolidFill",
69
+ enable: !0,
70
+ color: [242, 242, 242, 255]
71
+ }
72
+ ]
73
+ }
74
+ }
75
+ ],
76
+ scaleSymbolsProportionally: !0,
77
+ respectFrame: !0,
78
+ clippingPath: {
79
+ type: "CIMClippingPath",
80
+ clippingType: "Intersect",
81
+ path: {
82
+ rings: [
83
+ [
84
+ [0, 0],
85
+ [84.3, 0],
86
+ [84.3, 84.3],
87
+ [0, 84.3],
88
+ [0, 0]
89
+ ]
90
+ ]
91
+ }
92
+ },
93
+ rotation: 360
94
+ },
95
+ {
96
+ type: "CIMVectorMarker",
97
+ enable: !0,
98
+ anchorPoint: { x: 0, y: -9 },
99
+ anchorPointUnits: "Absolute",
100
+ dominantSizeAxis3D: "Y",
101
+ size: 18,
102
+ billboardMode3D: "FaceNearPlane",
103
+ frame: {
104
+ xmin: 0,
105
+ ymin: 0,
106
+ xmax: 197.7,
107
+ ymax: 294.7
108
+ },
109
+ markerGraphics: [
110
+ {
111
+ type: "CIMMarkerGraphic",
112
+ geometry: {
113
+ rings: [
114
+ [
115
+ [98.9, 0],
116
+ [119.4, 23.2],
117
+ [139.4, 49.3],
118
+ [156.8, 75.2],
119
+ [171.2, 100.8],
120
+ [182.4, 125.3],
121
+ [190.6, 148.8],
122
+ [195.7, 171.4],
123
+ [197.7, 192.9],
124
+ [197.7, 195.8],
125
+ [197.7, 200.3],
126
+ [197.6, 202.5],
127
+ [197.5, 204.8],
128
+ [197.3, 207.1],
129
+ [197, 209.4],
130
+ [196.7, 211.7],
131
+ [196.4, 214.1],
132
+ [196, 216.4],
133
+ [195.5, 218.7],
134
+ [195, 221.1],
135
+ [194.4, 223.4],
136
+ [193.7, 225.8],
137
+ [193, 228.1],
138
+ [192.2, 230.5],
139
+ [191.4, 232.8],
140
+ [190.5, 235.1],
141
+ [189.5, 237.5],
142
+ [188.5, 239.7],
143
+ [187.4, 242],
144
+ [186.2, 244.3],
145
+ [185, 246.5],
146
+ [183.7, 248.7],
147
+ [182.4, 250.9],
148
+ [181, 253.1],
149
+ [179.5, 255.2],
150
+ [178, 257.3],
151
+ [176.4, 259.4],
152
+ [174.7, 261.4],
153
+ [173.1, 263.3],
154
+ [171.3, 265.3],
155
+ [169.5, 267.2],
156
+ [167.7, 269],
157
+ [165.8, 270.8],
158
+ [163.9, 272.5],
159
+ [161.9, 274.2],
160
+ [159.9, 275.8],
161
+ [157.8, 277.4],
162
+ [155.7, 278.9],
163
+ [153.6, 280.4],
164
+ [151.4, 281.7],
165
+ [149.2, 283.1],
166
+ [147, 284.4],
167
+ [144.8, 285.6],
168
+ [142.5, 286.7],
169
+ [140.3, 287.8],
170
+ [138, 288.8],
171
+ [135.7, 289.8],
172
+ [133.4, 290.7],
173
+ [131, 291.5],
174
+ [128.7, 292.3],
175
+ [126.4, 293],
176
+ [124, 293.6],
177
+ [121.7, 294.2],
178
+ [119.4, 294.7],
179
+ [117, 295.2],
180
+ [114.7, 295.6],
181
+ [112.4, 296],
182
+ [110.1, 296.3],
183
+ [107.8, 296.5],
184
+ [105.5, 296.7],
185
+ [103.3, 296.8],
186
+ [101.1, 296.9],
187
+ [98.8, 296.9],
188
+ [83.1, 295.7],
189
+ [67.8, 292],
190
+ [53.3, 285.9],
191
+ [39.9, 277.5],
192
+ [28.1, 267.2],
193
+ [18, 255.1],
194
+ [10, 241.5],
195
+ [4.2, 226.9],
196
+ [0.9, 211.5],
197
+ [0, 195.8],
198
+ [0.1, 192.9],
199
+ [2.1, 171.4],
200
+ [7.2, 148.8],
201
+ [15.4, 125.3],
202
+ [26.6, 100.8],
203
+ [41, 75.2],
204
+ [58.4, 49.3],
205
+ [78.4, 23.2],
206
+ [98.9, 0]
207
+ ]
208
+ ]
209
+ },
210
+ symbol: {
211
+ type: "CIMPolygonSymbol",
212
+ symbolLayers: [
213
+ {
214
+ type: "CIMSolidFill",
215
+ enable: !0,
216
+ color: [39, 17, 17, 255]
217
+ }
218
+ ]
219
+ }
220
+ }
221
+ ],
222
+ scaleSymbolsProportionally: !0,
223
+ respectFrame: !0,
224
+ clippingPath: {
225
+ type: "CIMClippingPath",
226
+ clippingType: "Intersect",
227
+ path: {
228
+ rings: [
229
+ [
230
+ [0, 0],
231
+ [197.7, 0],
232
+ [197.7, 294.7],
233
+ [0, 294.7],
234
+ [0, 0]
235
+ ]
236
+ ]
237
+ }
238
+ },
239
+ rotation: 360
240
+ }
241
+ ],
242
+ haloSize: 1,
243
+ scaleX: 1,
244
+ angleAlignment: "Display",
245
+ angle: 360
246
+ }
247
+ }
248
+ }
249
+ };
250
+ }
251
+ function _() {
252
+ return {
253
+ renderer: {
254
+ type: "simple",
255
+ symbol: {
256
+ type: "esriSMS",
257
+ style: "esriSMSCircle",
258
+ color: [0, 0, 0, 255],
259
+ size: 10,
260
+ angle: 0,
261
+ xoffset: 0,
262
+ yoffset: 0,
263
+ outline: { color: [0, 0, 0, 255], width: 0 }
264
+ }
265
+ }
266
+ };
267
+ }
268
+ class p {
269
+ constructor(e) {
270
+ this.llm_fs_lookup = {}, this.structure = e, this._s = this.structure?.buildSolution;
271
+ }
272
+ static {
273
+ this.TYPE_LOOKUP = {
274
+ point: "esriGeometryPoint",
275
+ polyline: "esriGeometryPolyline",
276
+ polygon: "esriGeometryPolygon"
277
+ };
278
+ }
279
+ static {
280
+ this.DRAWING_TOOL_LOOKUP = {
281
+ esriGeometryPoint: "esriFeatureEditToolPoint",
282
+ esriGeometryPolyline: "esriFeatureEditToolLine",
283
+ esriGeometryPolygon: "esriFeatureEditToolPolygon",
284
+ Table: "esriFeatureEditToolNone"
285
+ };
286
+ }
287
+ static {
288
+ this.FIELD_TYPE_TO_ESRI = {
289
+ string: "esriFieldTypeString",
290
+ integer: "esriFieldTypeInteger",
291
+ double: "esriFieldTypeDouble",
292
+ date: "esriFieldTypeDate",
293
+ guid: "esriFieldTypeGUID",
294
+ globalid: "esriFieldTypeGlobalID",
295
+ oid: "esriFieldTypeOID"
296
+ };
297
+ }
298
+ static {
299
+ this.FIELD_TYPE_TO_SIMPLE = Object.fromEntries(
300
+ Object.entries(p.FIELD_TYPE_TO_ESRI).map(([e, t]) => [t, e])
301
+ );
302
+ }
303
+ dump_to_llm_template() {
304
+ const e = this.structure?.buildSolution?.solution, t = Object.entries(e?.strings || {}).map(([o, r]) => ({
305
+ key: o,
306
+ value: r.value,
307
+ description: r.description
308
+ })), i = {
309
+ title: e?.title,
310
+ description: e?.description,
311
+ tags: e?.tags,
312
+ strings: t
313
+ }, n = this.structure?.buildSolution?.items, s = Object.entries(n || {}).map(([o, r]) => ({
314
+ id: o,
315
+ title: r.title,
316
+ description: r.description,
317
+ type: r.type
318
+ }));
319
+ let l = null;
320
+ for (const [o, r] of Object.entries(n || {})) {
321
+ if (r.type !== "Feature Layer (hosted)")
322
+ continue;
323
+ const a = [];
324
+ for (const d of r.service?.layers || []) {
325
+ const u = this._get_fields(d);
326
+ a.push({
327
+ id: d.id,
328
+ type: "",
329
+ name: d.name,
330
+ customFields: [],
331
+ requiredFields: u,
332
+ systemFields: []
333
+ });
334
+ }
335
+ for (const d of r.service?.tables || []) {
336
+ const u = this._get_fields(d);
337
+ a.push({
338
+ id: d.id,
339
+ type: "Table",
340
+ name: d.name,
341
+ customFields: [],
342
+ requiredFields: u,
343
+ systemFields: []
344
+ });
345
+ }
346
+ l = {
347
+ itemId: o,
348
+ addLayers: r.addLayers,
349
+ layers: a
350
+ };
351
+ break;
352
+ }
353
+ return {
354
+ solution: i,
355
+ items: s,
356
+ featureLayer: l ?? {
357
+ itemId: "",
358
+ addLayers: !1,
359
+ layers: []
360
+ }
361
+ };
362
+ }
363
+ _get_fields(e) {
364
+ const t = [];
365
+ for (const i of e.fields || [])
366
+ t.push({
367
+ name: i.name,
368
+ type: p.FIELD_TYPE_TO_SIMPLE[i.type] || i.type,
369
+ alias: i.alias,
370
+ description: p._get_field_description(i.description),
371
+ choiceList: p._get_field_domain(i.domain)
372
+ });
373
+ return t;
374
+ }
375
+ static _get_field_description(e) {
376
+ if (e)
377
+ try {
378
+ return JSON.parse(e).value || e;
379
+ } catch {
380
+ return e;
381
+ }
382
+ }
383
+ static _get_field_domain(e) {
384
+ if (e)
385
+ return e.codedValues?.map((t) => t.code);
386
+ }
387
+ apply_llm_template(e) {
388
+ const t = this._s.solution;
389
+ if (this.llm_fs_lookup = {}, e.featureLayer?.itemId) {
390
+ this.llm_fs_lookup[e.featureLayer.itemId] = {};
391
+ for (const o of e.featureLayer.layers)
392
+ this.llm_fs_lookup[e.featureLayer.itemId][o.id] = o;
393
+ }
394
+ for (const [o, r] of Object.entries(this._s.items))
395
+ r.type === "Feature Layer (hosted, view)" && (this.llm_fs_lookup[o] = { ...this.llm_fs_lookup[r.source] });
396
+ t.title = e.solution.title, t.description = e.solution.description, t.tags = e.solution.tags;
397
+ const i = t.strings;
398
+ for (const o of e.solution.strings)
399
+ i[o.key] && (i[o.key].value = o.value);
400
+ const n = {}, s = /* @__PURE__ */ new Set(), l = this._s.items;
401
+ for (const o of e.items) {
402
+ const r = l[o.id];
403
+ if (r)
404
+ if (r.title = o.title, r.description = o.description, r.type === "Web Map")
405
+ this._apply_web_map(r);
406
+ else if (r.type === "Feature Layer (hosted)") {
407
+ this._apply_feature_service(r, o.id, !1);
408
+ const a = new y(r).generate_data();
409
+ r.data = a, n[o.id] = a;
410
+ } else r.type === "Feature Layer (hosted, view)" && (this._apply_feature_service(r, o.id, !0), s.add(o.id));
411
+ }
412
+ for (const o of s) {
413
+ const r = l[o];
414
+ r.data = n[r.source];
415
+ }
416
+ return this.structure;
417
+ }
418
+ _apply_web_map(e) {
419
+ if (e.layerSources)
420
+ for (const t of [...e.layers || [], ...e.tables || []]) {
421
+ const [i, n] = this._extract_id_and_layid(t.url), s = this.llm_fs_lookup[i]?.[n];
422
+ s && (t.title = s.name);
423
+ }
424
+ }
425
+ _extract_id_and_layid(e) {
426
+ const t = e.replace(/[{}]/g, "").split("."), i = t[0], n = parseInt(t[1].replace("layer", ""));
427
+ return [i, n];
428
+ }
429
+ _apply_feature_service(e, t, i = !1) {
430
+ const n = e.source || t, s = this.llm_fs_lookup[n];
431
+ for (const l of [...e.service.layers, ...e.service.tables])
432
+ this._apply_layer(l, s, i);
433
+ }
434
+ _apply_layer(e, t, i = !1) {
435
+ const n = t[e.id];
436
+ if (!n || (e.name = n.name, i)) return;
437
+ const s = p.TYPE_LOOKUP[n.type.toLowerCase()] || n.type;
438
+ s.toLowerCase() === "table" ? e.type = s : e.geometryType = s, e.editFieldsInfo = this._edit_fields_info(), e.globalIdField = "globalid", e.objectIdField = "objectid", e.uniqueIdField = { name: "objectid", isSystemMaintained: !0 }, e.hasAttachments = !0, this._update_relationships(e, t), this._update_fields(e, n), this._update_templates(e), this._update_drawing_info(e);
439
+ }
440
+ _update_relationships(e, t) {
441
+ const i = e.relationships || [];
442
+ for (const n of i) {
443
+ const s = t[n.relatedTableId];
444
+ s && (n.name = s.name);
445
+ }
446
+ }
447
+ _update_fields(e, t) {
448
+ const i = [], n = [
449
+ [!1, t.customFields],
450
+ [!0, t.requiredFields],
451
+ [!0, t.systemFields]
452
+ ];
453
+ for (const [s, l] of n)
454
+ if (Array.isArray(l))
455
+ for (const o of l) {
456
+ const r = {
457
+ name: o.name,
458
+ alias: o.alias,
459
+ type: p.FIELD_TYPE_TO_ESRI[o.type] || o.type,
460
+ description: JSON.stringify({ value: o.description, fieldValueType: "" }, null, 0),
461
+ domain: this._create_domain(o.choiceList, o.name),
462
+ required: s
463
+ };
464
+ if (o.type?.toLowerCase() === "string") {
465
+ let a = 256;
466
+ o.choiceList && (a = Math.max(...o.choiceList.map((d) => d.length)) + 10), r.length = a;
467
+ }
468
+ i.push(r);
469
+ }
470
+ e.fields = i;
471
+ }
472
+ _update_templates(e) {
473
+ const t = p.DRAWING_TOOL_LOOKUP[e.geometryType || e.type];
474
+ e.templates = [{
475
+ name: e.name,
476
+ description: "",
477
+ drawingTool: t,
478
+ prototype: { attributes: {} }
479
+ }];
480
+ }
481
+ _update_drawing_info(e) {
482
+ if (e.drawingTool === "esriGeometryPoint")
483
+ e.drawingInfo = _();
484
+ else
485
+ return;
486
+ }
487
+ _create_domain(e, t) {
488
+ return e ? {
489
+ type: "codedValue",
490
+ name: `${t}_${crypto.randomUUID().replace(/-/g, "")}`,
491
+ codedValues: e.map((i) => ({ name: i, code: i }))
492
+ } : null;
493
+ }
494
+ _edit_fields_info() {
495
+ return {
496
+ creationDateField: "created_date",
497
+ creatorField: "created_user",
498
+ editDateField: "last_edited_date",
499
+ editorField: "last_edited_user"
500
+ };
501
+ }
502
+ }
503
+ class y {
504
+ constructor(e) {
505
+ this.item_def = e, this.source_service_props = this.item_def.service;
506
+ }
507
+ generate_data() {
508
+ const e = {
509
+ layers: [],
510
+ tables: []
511
+ };
512
+ for (const t of this.source_service_props.layers || []) {
513
+ const i = { id: t.id };
514
+ i.formInfo = this._generate_form_info(t), i.popupInfo = this._generate_popup_info(t), i.layerDefinition = this._generate_drawing_info(t), e.layers.push(i);
515
+ }
516
+ for (const t of this.source_service_props.tables || []) {
517
+ const i = { id: t.id };
518
+ i.formInfo = this._generate_form_info(t), i.popupInfo = this._generate_popup_info(t), e.tables.push(i);
519
+ }
520
+ return e;
521
+ }
522
+ _generate_form_info(e) {
523
+ const t = [];
524
+ for (const s of e.fields) {
525
+ if (s.required) continue;
526
+ const l = {
527
+ label: s.alias,
528
+ type: "field",
529
+ editableExpression: "expr/system/true",
530
+ fieldName: s.name,
531
+ inputType: this._get_input_type(s.type, s.domain, s.length)
532
+ };
533
+ t.push(l);
534
+ }
535
+ const i = e.relationships || [];
536
+ for (const s of i)
537
+ t.push({
538
+ description: "",
539
+ label: s.name,
540
+ type: "relationship",
541
+ displayCount: 3,
542
+ displayType: "list",
543
+ editableExpression: "expr/system/true",
544
+ orderByFields: [{ field: "created_date", order: "asc" }],
545
+ relationshipId: s.id,
546
+ title: s.name
547
+ });
548
+ return {
549
+ formElements: t,
550
+ expressionInfos: [
551
+ {
552
+ expression: "false",
553
+ name: "expr/system/false",
554
+ returnType: "boolean",
555
+ title: "False"
556
+ },
557
+ {
558
+ expression: "true",
559
+ name: "expr/system/true",
560
+ returnType: "boolean",
561
+ title: "True"
562
+ }
563
+ ],
564
+ title: e.name
565
+ };
566
+ }
567
+ _generate_popup_info(e) {
568
+ const t = [], i = [];
569
+ for (const s of e.fields)
570
+ s.required || i.push({
571
+ fieldName: s.name,
572
+ isEditable: !0,
573
+ label: s.alias,
574
+ visible: !0
575
+ });
576
+ t.push({
577
+ type: "fields",
578
+ description: "",
579
+ fieldInfos: i
580
+ });
581
+ const n = e.relationships || [];
582
+ if (n.length && e.type !== "Table")
583
+ for (const s of n)
584
+ t.push({
585
+ type: "relationship",
586
+ description: "",
587
+ displayCount: 3,
588
+ displayType: "list",
589
+ orderByFields: [{ field: "created_date", order: "asc" }],
590
+ relationshipId: s.id
591
+ });
592
+ return t.push({
593
+ type: "attachments",
594
+ description: "",
595
+ displayType: "auto",
596
+ title: ""
597
+ }), {
598
+ popupElements: t,
599
+ showLastEditInfo: !1,
600
+ title: ""
601
+ };
602
+ }
603
+ _generate_drawing_info(e) {
604
+ return e.geometryType === "esriGeometryPoint" ? { drawingInfo: c() } : { drawingInfo: {} };
605
+ }
606
+ _get_input_type(e, t, i) {
607
+ return e === "esriFieldTypeString" && !t ? {
608
+ type: "text-box",
609
+ maxLength: i || 255,
610
+ minLength: 0
611
+ } : e === "esriFieldTypeString" && t ? {
612
+ type: "combo-box",
613
+ noValueOptionLabel: "No value",
614
+ showNoValueOption: !0
615
+ } : ["esriFieldTypeInteger", "esriFieldTypeDouble"].includes(e) ? { type: "text-box", minLength: 0 } : e === "esriFieldTypeDate" ? { type: "datetime-picker", includeTime: !1 } : {
616
+ type: "text-box",
617
+ maxLength: i || 255,
618
+ minLength: 0
619
+ };
620
+ }
621
+ }
622
+ export {
623
+ p as C
624
+ };