@esri/solutions-components 5.1.0-next.144 → 5.1.0-next.145

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 (136) hide show
  1. package/dist/cdn/{LEK4P4OY.js → 25NZZKXC.js} +1 -1
  2. package/dist/cdn/2BIUOM64.js +2 -0
  3. package/dist/cdn/{S5AQVTR2.js → 2PUK3PST.js} +1 -1
  4. package/dist/cdn/{KUGXNF5Y.js → 2UMMLVCR.js} +1 -1
  5. package/dist/cdn/{LYAXTCCM.js → 34CZ4EWR.js} +4 -3
  6. package/dist/cdn/{SOLCNPHW.js → 3DCFUYKP.js} +1 -1
  7. package/dist/cdn/{65L2LQGD.js → 3JQ2RXVJ.js} +1 -1
  8. package/dist/cdn/3V2UWENT.js +2 -0
  9. package/dist/cdn/{7WD3GNG4.js → 4JVDUPVW.js} +1 -1
  10. package/dist/cdn/{BNRFT546.js → 5DEYOM7D.js} +1 -1
  11. package/dist/cdn/{WLM4HMMF.js → 5LF6C3S5.js} +1 -1
  12. package/dist/cdn/{4JGB6WLL.js → 5NQNJZTE.js} +1 -1
  13. package/dist/cdn/{4MAZNAHZ.js → 5OFQVDNK.js} +1 -1
  14. package/dist/cdn/{NV2DLQDN.js → 6MOTC6CE.js} +1 -1
  15. package/dist/cdn/{PUCDO65D.js → 6T35OGRG.js} +1 -1
  16. package/dist/cdn/{FVOCVCEE.js → 72X4E4QW.js} +1 -1
  17. package/dist/cdn/{Y77RX7KL.js → 7ADKNWWI.js} +1 -1
  18. package/dist/cdn/{DKEYOEI7.js → 7CLM77HQ.js} +1 -1
  19. package/dist/cdn/{IFONVCBL.js → A27DLHRU.js} +1 -1
  20. package/dist/cdn/{3UKDJZ2D.js → AE5HNAOV.js} +1 -1
  21. package/dist/cdn/{YQWQG523.js → AOWNMC3W.js} +1 -1
  22. package/dist/cdn/{U4RHWD57.js → AZN2E5DL.js} +1 -1
  23. package/dist/cdn/BMMIXOTR.js +2 -0
  24. package/dist/cdn/{6Z3DXRF6.js → BQE6IVEF.js} +1 -1
  25. package/dist/cdn/{EDZIFJZR.js → C5ZH23YO.js} +1 -1
  26. package/dist/cdn/{7GXMCAWQ.js → CVRBLJ5O.js} +1 -1
  27. package/dist/cdn/{ENG5BCAV.js → DXQQQNOF.js} +1 -1
  28. package/dist/cdn/{BGLTC5SO.js → F26SXWZ5.js} +1 -1
  29. package/dist/cdn/{4RLG6MXK.js → G3F52QRW.js} +1 -1
  30. package/dist/cdn/{IEOFEUZI.js → G3FTF6WH.js} +1 -1
  31. package/dist/cdn/{AHB7W7RI.js → GJD7AOUI.js} +1 -1
  32. package/dist/cdn/{RRD4QUQS.js → HLKEBN2O.js} +1 -1
  33. package/dist/cdn/{J3HJC4SO.js → HPWNNMVU.js} +2 -2
  34. package/dist/cdn/{ZCSF2MJ5.js → I7XBRB6B.js} +1 -1
  35. package/dist/cdn/{SGQBWAPU.js → IDEOFV22.js} +1 -1
  36. package/dist/cdn/{FW2HWQC7.js → IEC46RE7.js} +1 -1
  37. package/dist/cdn/{ULFPP7PF.js → IEN3TA4W.js} +1 -1
  38. package/dist/cdn/{LKZFKOG4.js → KDNGZ47C.js} +1 -1
  39. package/dist/cdn/{7FJTZ7VA.js → L3UI7EZZ.js} +1 -1
  40. package/dist/cdn/{MC5ARLKZ.js → L6P26BYB.js} +1 -1
  41. package/dist/cdn/{YLC2EM5A.js → LCV5GKUD.js} +2 -2
  42. package/dist/cdn/{X6JL6SAH.js → LJY6BB64.js} +1 -1
  43. package/dist/cdn/{MT5J66WR.js → LL647FJR.js} +1 -1
  44. package/dist/cdn/{KSQHSNTW.js → M4II4TSX.js} +1 -1
  45. package/dist/cdn/{5YXQ4UXZ.js → MEZL3ZHS.js} +24 -23
  46. package/dist/cdn/MHVLVLRA.js +2 -0
  47. package/dist/cdn/{UOGZGAJD.js → MIH5YMTN.js} +1 -1
  48. package/dist/cdn/{K4TDKKPB.js → MPCJZCL5.js} +1 -1
  49. package/dist/cdn/MZ73EAAV.js +29 -0
  50. package/dist/cdn/{C4OXBZJK.js → NIYB3TEW.js} +1 -1
  51. package/dist/cdn/{TX3LBQ6V.js → NOXANMDF.js} +1 -1
  52. package/dist/cdn/{QHDEVLC3.js → P4XNRWG7.js} +1 -1
  53. package/dist/cdn/{EPOIEXNS.js → PBGG3TGN.js} +1 -1
  54. package/dist/cdn/{H2UL463J.js → PBMTIFFX.js} +1 -1
  55. package/dist/cdn/{VBJSVR6T.js → PECGJO2P.js} +1 -1
  56. package/dist/cdn/{FILMKUOU.js → PNESECPO.js} +1 -1
  57. package/dist/cdn/{Z23BVIGQ.js → QFZK4TD4.js} +1 -1
  58. package/dist/cdn/QGCF64WY.js +2 -0
  59. package/dist/cdn/{5LIR6BQY.js → QKJJHBMB.js} +1 -1
  60. package/dist/cdn/{ZCPVOS4Q.js → QQXQAU33.js} +1 -1
  61. package/dist/cdn/{56XVVIG7.js → RIHOGDUV.js} +1 -1
  62. package/dist/cdn/{AGB374BK.js → RUQ4RO4T.js} +1 -1
  63. package/dist/cdn/{MVF7I3RU.js → UKQPYE7U.js} +1 -1
  64. package/dist/cdn/{BVSSQNES.js → ULUJKWT5.js} +1 -1
  65. package/dist/cdn/{U6JZYJ4D.js → UM3P3Q52.js} +1 -1
  66. package/dist/cdn/VO53567V.js +2 -0
  67. package/dist/cdn/WKS3TKDC.js +2 -0
  68. package/dist/cdn/WUKFT5AY.js +4 -0
  69. package/dist/cdn/{QQEYWBVV.js → XGWDWPRK.js} +1 -1
  70. package/dist/cdn/{XXGM7HGO.js → XGYNSCTA.js} +1 -1
  71. package/dist/cdn/{DNPN62O5.js → Y4KGXRSD.js} +1 -1
  72. package/dist/cdn/{SSIUWTQX.js → Y6QJCLML.js} +1 -1
  73. package/dist/cdn/{WGS5W6W5.js → YVIEKHQQ.js} +1 -1
  74. package/dist/cdn/{I22C4HE4.js → ZHXREM2D.js} +1 -1
  75. package/dist/cdn/assets/solution-deployed-card-panel/t9n/messages.ar.json +1 -1
  76. package/dist/cdn/assets/solution-deployed-card-panel/t9n/messages.bg.json +1 -1
  77. package/dist/cdn/assets/solution-deployed-card-panel/t9n/messages.bs.json +1 -1
  78. package/dist/cdn/assets/solution-deployed-card-panel/t9n/messages.ca.json +1 -1
  79. package/dist/cdn/assets/solution-deployed-card-panel/t9n/messages.cs.json +1 -1
  80. package/dist/cdn/assets/solution-deployed-card-panel/t9n/messages.da.json +1 -1
  81. package/dist/cdn/assets/solution-deployed-card-panel/t9n/messages.de.json +1 -1
  82. package/dist/cdn/assets/solution-deployed-card-panel/t9n/messages.el.json +1 -1
  83. package/dist/cdn/assets/solution-deployed-card-panel/t9n/messages.es.json +1 -1
  84. package/dist/cdn/assets/solution-deployed-card-panel/t9n/messages.et.json +1 -1
  85. package/dist/cdn/assets/solution-deployed-card-panel/t9n/messages.fi.json +1 -1
  86. package/dist/cdn/assets/solution-deployed-card-panel/t9n/messages.fr.json +1 -1
  87. package/dist/cdn/assets/solution-deployed-card-panel/t9n/messages.he.json +1 -1
  88. package/dist/cdn/assets/solution-deployed-card-panel/t9n/messages.hr.json +1 -1
  89. package/dist/cdn/assets/solution-deployed-card-panel/t9n/messages.hu.json +1 -1
  90. package/dist/cdn/assets/solution-deployed-card-panel/t9n/messages.id.json +1 -1
  91. package/dist/cdn/assets/solution-deployed-card-panel/t9n/messages.it.json +1 -1
  92. package/dist/cdn/assets/solution-deployed-card-panel/t9n/messages.ja.json +1 -1
  93. package/dist/cdn/assets/solution-deployed-card-panel/t9n/messages.ko.json +1 -1
  94. package/dist/cdn/assets/solution-deployed-card-panel/t9n/messages.lt.json +1 -1
  95. package/dist/cdn/assets/solution-deployed-card-panel/t9n/messages.lv.json +1 -1
  96. package/dist/cdn/assets/solution-deployed-card-panel/t9n/messages.nl.json +1 -1
  97. package/dist/cdn/assets/solution-deployed-card-panel/t9n/messages.no.json +1 -1
  98. package/dist/cdn/assets/solution-deployed-card-panel/t9n/messages.pl.json +1 -1
  99. package/dist/cdn/assets/solution-deployed-card-panel/t9n/messages.pt-BR.json +1 -1
  100. package/dist/cdn/assets/solution-deployed-card-panel/t9n/messages.pt-PT.json +1 -1
  101. package/dist/cdn/assets/solution-deployed-card-panel/t9n/messages.ro.json +1 -1
  102. package/dist/cdn/assets/solution-deployed-card-panel/t9n/messages.ru.json +1 -1
  103. package/dist/cdn/assets/solution-deployed-card-panel/t9n/messages.sk.json +1 -1
  104. package/dist/cdn/assets/solution-deployed-card-panel/t9n/messages.sl.json +1 -1
  105. package/dist/cdn/assets/solution-deployed-card-panel/t9n/messages.sr.json +1 -1
  106. package/dist/cdn/assets/solution-deployed-card-panel/t9n/messages.sv.json +1 -1
  107. package/dist/cdn/assets/solution-deployed-card-panel/t9n/messages.th.json +1 -1
  108. package/dist/cdn/assets/solution-deployed-card-panel/t9n/messages.tr.json +1 -1
  109. package/dist/cdn/assets/solution-deployed-card-panel/t9n/messages.uk.json +1 -1
  110. package/dist/cdn/assets/solution-deployed-card-panel/t9n/messages.vi.json +1 -1
  111. package/dist/cdn/assets/solution-deployed-card-panel/t9n/messages.zh-CN.json +1 -1
  112. package/dist/cdn/assets/solution-deployed-card-panel/t9n/messages.zh-HK.json +1 -1
  113. package/dist/cdn/assets/solution-deployed-card-panel/t9n/messages.zh-TW.json +1 -1
  114. package/dist/cdn/index.js +1 -1
  115. package/dist/chunks/converter.js +633 -367
  116. package/dist/chunks/deployFlowController.js +46 -0
  117. package/dist/chunks/designSolution.js +4 -3
  118. package/dist/chunks/explainValidationFailure.js +32 -0
  119. package/dist/chunks/solution-builder-assistant.js +157 -71
  120. package/dist/chunks/updateDesign.js +1 -1
  121. package/dist/components/arcgis-solutions-assistant/customElement.js +334 -248
  122. package/dist/components/solution-builder-assistant/customElement.js +3 -2
  123. package/dist/components/solution-deploying-dialog/customElement.js +12 -12
  124. package/dist/components/solution-details-panel/customElement.js +112 -102
  125. package/dist/docs/api.json +1 -1
  126. package/dist/docs/docs.json +1 -1
  127. package/dist/docs/web-types.json +1 -1
  128. package/dist/solutions-components_commit.txt +6 -6
  129. package/package.json +1 -1
  130. package/dist/cdn/5MPYPIR2.js +0 -2
  131. package/dist/cdn/CGCNGFBL.js +0 -2
  132. package/dist/cdn/FE2GEHNL.js +0 -2
  133. package/dist/cdn/GLQZHYJP.js +0 -4
  134. package/dist/cdn/LYK2CASU.js +0 -2
  135. package/dist/cdn/S6U6SXMD.js +0 -2
  136. package/dist/cdn/SYZEWVHU.js +0 -2
@@ -1,5 +1,21 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- function h() {
2
+ const p = [
3
+ { name: "blue", fill: [0, 121, 193], outline: [0, 94, 149] },
4
+ { name: "red", fill: [222, 41, 0], outline: [171, 60, 22] },
5
+ { name: "orange", fill: [209, 126, 33], outline: [173, 101, 17] },
6
+ { name: "purple", fill: [144, 129, 188], outline: [116, 97, 168] },
7
+ { name: "green", fill: [90, 147, 89], outline: [51, 128, 51] },
8
+ { name: "black", fill: [89, 89, 89], outline: [50, 50, 50] }
9
+ ];
10
+ function f(n = 0) {
11
+ const e = (n % p.length + p.length) % p.length, t = p[e];
12
+ return {
13
+ fill: [...t.fill],
14
+ outline: [...t.outline]
15
+ };
16
+ }
17
+ function g(n = 0) {
18
+ const { fill: e, outline: t } = f(n), i = [...e, 153], l = [...t, 255];
3
19
  return {
4
20
  renderer: {
5
21
  type: "simple",
@@ -11,100 +27,219 @@ function h() {
11
27
  {
12
28
  type: "CIMVectorMarker",
13
29
  enable: !0,
14
- colorLocked: !0,
15
- anchorPoint: { x: 0, y: -12.600000000000001 },
16
- anchorPointUnits: "Absolute",
30
+ name: "Fill",
31
+ anchorPointUnits: "Relative",
17
32
  dominantSizeAxis3D: "Y",
18
- size: 7.2,
33
+ size: 12,
19
34
  billboardMode3D: "FaceNearPlane",
20
- frame: { xmin: 0, ymin: 0, xmax: 84.3, ymax: 84.3 },
35
+ frame: {
36
+ xmin: -5,
37
+ ymin: -5,
38
+ xmax: 5,
39
+ ymax: 5
40
+ },
21
41
  markerGraphics: [
22
42
  {
23
43
  type: "CIMMarkerGraphic",
24
44
  geometry: {
25
45
  rings: [
26
46
  [
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]
47
+ [
48
+ 0,
49
+ 5
50
+ ],
51
+ [
52
+ 0.87,
53
+ 4.92
54
+ ],
55
+ [
56
+ 1.71,
57
+ 4.7
58
+ ],
59
+ [
60
+ 2.5,
61
+ 4.33
62
+ ],
63
+ [
64
+ 3.21,
65
+ 3.83
66
+ ],
67
+ [
68
+ 3.83,
69
+ 3.21
70
+ ],
71
+ [
72
+ 4.33,
73
+ 2.5
74
+ ],
75
+ [
76
+ 4.7,
77
+ 1.71
78
+ ],
79
+ [
80
+ 4.92,
81
+ 0.87
82
+ ],
83
+ [
84
+ 5,
85
+ 0
86
+ ],
87
+ [
88
+ 4.92,
89
+ -0.87
90
+ ],
91
+ [
92
+ 4.7,
93
+ -1.71
94
+ ],
95
+ [
96
+ 4.33,
97
+ -2.5
98
+ ],
99
+ [
100
+ 3.83,
101
+ -3.21
102
+ ],
103
+ [
104
+ 3.21,
105
+ -3.83
106
+ ],
107
+ [
108
+ 2.5,
109
+ -4.33
110
+ ],
111
+ [
112
+ 1.71,
113
+ -4.7
114
+ ],
115
+ [
116
+ 0.87,
117
+ -4.92
118
+ ],
119
+ [
120
+ 0,
121
+ -5
122
+ ],
123
+ [
124
+ -0.87,
125
+ -4.92
126
+ ],
127
+ [
128
+ -1.71,
129
+ -4.7
130
+ ],
131
+ [
132
+ -2.5,
133
+ -4.33
134
+ ],
135
+ [
136
+ -3.21,
137
+ -3.83
138
+ ],
139
+ [
140
+ -3.83,
141
+ -3.21
142
+ ],
143
+ [
144
+ -4.33,
145
+ -2.5
146
+ ],
147
+ [
148
+ -4.7,
149
+ -1.71
150
+ ],
151
+ [
152
+ -4.92,
153
+ -0.87
154
+ ],
155
+ [
156
+ -5,
157
+ 0
158
+ ],
159
+ [
160
+ -4.92,
161
+ 0.87
162
+ ],
163
+ [
164
+ -4.7,
165
+ 1.71
166
+ ],
167
+ [
168
+ -4.33,
169
+ 2.5
170
+ ],
171
+ [
172
+ -3.83,
173
+ 3.21
174
+ ],
175
+ [
176
+ -3.21,
177
+ 3.83
178
+ ],
179
+ [
180
+ -2.5,
181
+ 4.33
182
+ ],
183
+ [
184
+ -1.71,
185
+ 4.7
186
+ ],
187
+ [
188
+ -0.87,
189
+ 4.92
190
+ ],
191
+ [
192
+ 0,
193
+ 5
194
+ ]
61
195
  ]
62
196
  ]
63
197
  },
64
198
  symbol: {
65
199
  type: "CIMPolygonSymbol",
66
200
  symbolLayers: [
201
+ {
202
+ type: "CIMSolidStroke",
203
+ enable: !0,
204
+ name: "Outline",
205
+ capStyle: "Round",
206
+ joinStyle: "Round",
207
+ lineStyle3D: "Strip",
208
+ miterLimit: 4,
209
+ width: 1.5,
210
+ height3D: 1,
211
+ anchor3D: "Center",
212
+ color: l
213
+ },
67
214
  {
68
215
  type: "CIMSolidFill",
69
216
  enable: !0,
70
- color: [242, 242, 242, 255]
217
+ name: "Fill",
218
+ color: i
71
219
  }
72
- ]
220
+ ],
221
+ angleAlignment: "Map"
73
222
  }
74
223
  }
75
224
  ],
76
225
  scaleSymbolsProportionally: !0,
77
226
  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
227
  rotation: 360
94
228
  },
95
229
  {
96
230
  type: "CIMVectorMarker",
97
231
  enable: !0,
98
- anchorPoint: { x: 0, y: -9 },
99
- anchorPointUnits: "Absolute",
232
+ name: "WhiteOutline",
233
+ colorLocked: !0,
234
+ anchorPointUnits: "Relative",
100
235
  dominantSizeAxis3D: "Y",
101
- size: 18,
236
+ size: 15.75,
102
237
  billboardMode3D: "FaceNearPlane",
103
238
  frame: {
104
- xmin: 0,
105
- ymin: 0,
106
- xmax: 197.7,
107
- ymax: 294.7
239
+ xmin: -5,
240
+ ymin: -5,
241
+ xmax: 5,
242
+ ymax: 5
108
243
  },
109
244
  markerGraphics: [
110
245
  {
@@ -112,98 +247,154 @@ function h() {
112
247
  geometry: {
113
248
  rings: [
114
249
  [
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]
250
+ [
251
+ 0,
252
+ 5
253
+ ],
254
+ [
255
+ 0.87,
256
+ 4.92
257
+ ],
258
+ [
259
+ 1.71,
260
+ 4.7
261
+ ],
262
+ [
263
+ 2.5,
264
+ 4.33
265
+ ],
266
+ [
267
+ 3.21,
268
+ 3.83
269
+ ],
270
+ [
271
+ 3.83,
272
+ 3.21
273
+ ],
274
+ [
275
+ 4.33,
276
+ 2.5
277
+ ],
278
+ [
279
+ 4.7,
280
+ 1.71
281
+ ],
282
+ [
283
+ 4.92,
284
+ 0.87
285
+ ],
286
+ [
287
+ 5,
288
+ 0
289
+ ],
290
+ [
291
+ 4.92,
292
+ -0.87
293
+ ],
294
+ [
295
+ 4.7,
296
+ -1.71
297
+ ],
298
+ [
299
+ 4.33,
300
+ -2.5
301
+ ],
302
+ [
303
+ 3.83,
304
+ -3.21
305
+ ],
306
+ [
307
+ 3.21,
308
+ -3.83
309
+ ],
310
+ [
311
+ 2.5,
312
+ -4.33
313
+ ],
314
+ [
315
+ 1.71,
316
+ -4.7
317
+ ],
318
+ [
319
+ 0.87,
320
+ -4.92
321
+ ],
322
+ [
323
+ 0,
324
+ -5
325
+ ],
326
+ [
327
+ -0.87,
328
+ -4.92
329
+ ],
330
+ [
331
+ -1.71,
332
+ -4.7
333
+ ],
334
+ [
335
+ -2.5,
336
+ -4.33
337
+ ],
338
+ [
339
+ -3.21,
340
+ -3.83
341
+ ],
342
+ [
343
+ -3.83,
344
+ -3.21
345
+ ],
346
+ [
347
+ -4.33,
348
+ -2.5
349
+ ],
350
+ [
351
+ -4.7,
352
+ -1.71
353
+ ],
354
+ [
355
+ -4.92,
356
+ -0.87
357
+ ],
358
+ [
359
+ -5,
360
+ 0
361
+ ],
362
+ [
363
+ -4.92,
364
+ 0.87
365
+ ],
366
+ [
367
+ -4.7,
368
+ 1.71
369
+ ],
370
+ [
371
+ -4.33,
372
+ 2.5
373
+ ],
374
+ [
375
+ -3.83,
376
+ 3.21
377
+ ],
378
+ [
379
+ -3.21,
380
+ 3.83
381
+ ],
382
+ [
383
+ -2.5,
384
+ 4.33
385
+ ],
386
+ [
387
+ -1.71,
388
+ 4.7
389
+ ],
390
+ [
391
+ -0.87,
392
+ 4.92
393
+ ],
394
+ [
395
+ 0,
396
+ 5
397
+ ]
207
398
  ]
208
399
  ]
209
400
  },
@@ -213,33 +404,25 @@ function h() {
213
404
  {
214
405
  type: "CIMSolidFill",
215
406
  enable: !0,
216
- color: [39, 17, 17, 255]
407
+ name: "WhiteOutline",
408
+ color: [
409
+ 255,
410
+ 255,
411
+ 255,
412
+ 153
413
+ ]
217
414
  }
218
- ]
415
+ ],
416
+ angleAlignment: "Map"
219
417
  }
220
418
  }
221
419
  ],
222
420
  scaleSymbolsProportionally: !0,
223
421
  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
422
  rotation: 360
240
423
  }
241
424
  ],
242
- haloSize: 1,
425
+ haloSize: 0.75,
243
426
  scaleX: 1,
244
427
  angleAlignment: "Display",
245
428
  angle: 360
@@ -248,26 +431,97 @@ function h() {
248
431
  }
249
432
  };
250
433
  }
251
- function b() {
434
+ function L(n = 0) {
435
+ const { fill: e } = f(n);
252
436
  return {
253
437
  renderer: {
254
438
  type: "simple",
255
439
  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 }
440
+ type: "CIMSymbolReference",
441
+ symbol: {
442
+ type: "CIMLineSymbol",
443
+ symbolLayers: [
444
+ {
445
+ type: "CIMSolidStroke",
446
+ enable: !0,
447
+ name: "Fill",
448
+ capStyle: "Round",
449
+ joinStyle: "Miter",
450
+ lineStyle3D: "Strip",
451
+ miterLimit: 4,
452
+ width: 4.5,
453
+ height3D: 1,
454
+ anchor3D: "Center",
455
+ color: [...e, 255]
456
+ },
457
+ {
458
+ type: "CIMSolidStroke",
459
+ enable: !0,
460
+ name: "Outline",
461
+ colorLocked: !0,
462
+ capStyle: "Round",
463
+ joinStyle: "Miter",
464
+ lineStyle3D: "Strip",
465
+ miterLimit: 4,
466
+ width: 6,
467
+ height3D: 1,
468
+ anchor3D: "Center",
469
+ color: [
470
+ 255,
471
+ 255,
472
+ 255,
473
+ 153
474
+ ]
475
+ }
476
+ ]
477
+ }
264
478
  }
265
479
  }
266
480
  };
267
481
  }
268
- class u {
482
+ function F(n = 0) {
483
+ const { fill: e, outline: t } = f(n), i = [...e, 153];
484
+ return {
485
+ renderer: {
486
+ type: "simple",
487
+ symbol: {
488
+ type: "CIMSymbolReference",
489
+ symbol: {
490
+ type: "CIMPolygonSymbol",
491
+ symbolLayers: [
492
+ {
493
+ type: "CIMSolidStroke",
494
+ enable: !0,
495
+ name: "Outline",
496
+ capStyle: "Round",
497
+ joinStyle: "Round",
498
+ lineStyle3D: "Strip",
499
+ miterLimit: 4,
500
+ width: 1.5,
501
+ height3D: 1,
502
+ anchor3D: "Center",
503
+ color: [...t, 255]
504
+ },
505
+ {
506
+ type: "CIMSolidFill",
507
+ enable: !0,
508
+ name: "Fill",
509
+ color: i
510
+ }
511
+ ],
512
+ angleAlignment: "Map"
513
+ }
514
+ }
515
+ }
516
+ };
517
+ }
518
+ class y {
269
519
  constructor(e) {
270
- this.llmFsLookup = {}, this.structure = e, this.buildSolution = this.structure?.buildSolution;
520
+ this.llmFsLookup = {}, this.rendererColorCounters = {
521
+ esriGeometryPoint: 0,
522
+ esriGeometryPolyline: 0,
523
+ esriGeometryPolygon: 0
524
+ }, this.structure = e, this.buildSolution = this.structure?.buildSolution;
271
525
  }
272
526
  static {
273
527
  this.typeLookup = {
@@ -304,65 +558,65 @@ class u {
304
558
  }
305
559
  static {
306
560
  this.fieldTypeToSimple = Object.fromEntries(
307
- Object.entries(u.fieldTypeToEsri).map(([e, i]) => [i, e])
561
+ Object.entries(y.fieldTypeToEsri).map(([e, t]) => [t, e])
308
562
  );
309
563
  }
310
564
  dumpToLlmTemplate() {
311
- const e = this.structure?.buildSolution?.solution, i = Object.entries(e?.strings || {}).map(([s, o]) => ({
312
- key: s,
313
- value: o.value,
314
- description: o.description
315
- })), t = {
565
+ const e = this.structure?.buildSolution?.solution, t = Object.entries(e?.strings || {}).map(([o, r]) => ({
566
+ key: o,
567
+ value: r.value,
568
+ description: r.description
569
+ })), i = {
316
570
  title: e?.title,
317
571
  description: e?.description,
318
572
  tags: e?.tags,
319
- strings: i
320
- }, r = this.structure?.buildSolution?.items, l = Object.entries(r || {}).map(([s, o]) => ({
321
- id: s,
322
- title: o.title,
323
- description: o.description,
324
- type: o.type
573
+ strings: t
574
+ }, l = this.structure?.buildSolution?.items, s = Object.entries(l || {}).map(([o, r]) => ({
575
+ id: o,
576
+ title: r.title,
577
+ description: r.description,
578
+ type: r.type
325
579
  }));
326
- let n = null;
327
- for (const [s, o] of Object.entries(r || {})) {
328
- if (o.type !== "Feature Layer (hosted)")
580
+ let a = null;
581
+ for (const [o, r] of Object.entries(l || {})) {
582
+ if (r.type !== "Feature Layer (hosted)")
329
583
  continue;
330
- const p = [];
331
- for (const d of o.service?.layers || []) {
332
- const y = this.getFields(d), c = {
584
+ const u = [];
585
+ for (const d of r.service?.layers || []) {
586
+ const c = this.getFields(d), m = {
333
587
  id: d.id,
334
588
  type: "",
335
589
  typeMutable: !0,
336
590
  name: d.name,
337
591
  customFields: [],
338
- requiredFields: y,
592
+ requiredFields: c,
339
593
  systemFields: []
340
594
  };
341
- d.geometryType && (c.type = u.simpleTypeLookup[d.geometryType] || "", c.typeMutable = !1), p.push(c);
595
+ d.geometryType && (m.type = y.simpleTypeLookup[d.geometryType] || "", m.typeMutable = !1), u.push(m);
342
596
  }
343
- for (const d of o.service?.tables || []) {
344
- const y = this.getFields(d);
345
- p.push({
597
+ for (const d of r.service?.tables || []) {
598
+ const c = this.getFields(d);
599
+ u.push({
346
600
  id: d.id,
347
601
  type: "Table",
348
602
  typeMutable: !1,
349
603
  name: d.name,
350
604
  customFields: [],
351
- requiredFields: y,
605
+ requiredFields: c,
352
606
  systemFields: []
353
607
  });
354
608
  }
355
- n = {
356
- itemId: s,
357
- addLayers: o.addLayers,
358
- layers: p
609
+ a = {
610
+ itemId: o,
611
+ addLayers: r.addLayers,
612
+ layers: u
359
613
  };
360
614
  break;
361
615
  }
362
616
  return {
363
- solution: t,
364
- items: l,
365
- featureLayer: n ?? {
617
+ solution: i,
618
+ items: s,
619
+ featureLayer: a ?? {
366
620
  itemId: "",
367
621
  addLayers: !1,
368
622
  layers: []
@@ -370,17 +624,17 @@ class u {
370
624
  };
371
625
  }
372
626
  getFields(e) {
373
- const i = [];
374
- for (const t of e.fields || [])
375
- i.push({
376
- name: t.name,
377
- type: u.fieldTypeToSimple[t.type] || t.type,
378
- alias: t.alias,
379
- description: u.getFieldDescription(t.description),
380
- choiceList: u.getFieldDomain(t.domain),
381
- length: t.length
627
+ const t = [];
628
+ for (const i of e.fields || [])
629
+ t.push({
630
+ name: i.name,
631
+ type: y.fieldTypeToSimple[i.type] || i.type,
632
+ alias: i.alias,
633
+ description: y.getFieldDescription(i.description),
634
+ choiceList: y.getFieldDomain(i.domain),
635
+ length: i.length
382
636
  });
383
- return i;
637
+ return t;
384
638
  }
385
639
  static getFieldDescription(e) {
386
640
  if (e)
@@ -392,157 +646,172 @@ class u {
392
646
  }
393
647
  static getFieldDomain(e) {
394
648
  if (e)
395
- return e.codedValues?.map((i) => i.code);
649
+ return e.codedValues?.map((t) => t.code);
396
650
  }
397
651
  applyLlmTemplate(e) {
398
- const i = this.buildSolution.solution;
399
- if (this.llmFsLookup = {}, e.featureLayer?.itemId) {
652
+ const t = this.buildSolution.solution;
653
+ if (this.resetRendererColorCounters(), this.llmFsLookup = {}, e.featureLayer?.itemId) {
400
654
  this.llmFsLookup[e.featureLayer.itemId] = {};
401
- for (const s of e.featureLayer.layers)
402
- this.llmFsLookup[e.featureLayer.itemId][s.id] = s;
655
+ for (const o of e.featureLayer.layers)
656
+ this.llmFsLookup[e.featureLayer.itemId][o.id] = o;
403
657
  }
404
- for (const [s, o] of Object.entries(this.buildSolution.items))
405
- o.type === "Feature Layer (hosted, view)" && (this.llmFsLookup[s] = { ...this.llmFsLookup[o.source] });
406
- i.title = e.solution.title, i.description = e.solution.description, i.tags = e.solution.tags;
407
- const t = i.strings;
408
- for (const s of e.solution.strings)
409
- t[s.key] && (t[s.key].value = s.value);
410
- const r = {}, l = /* @__PURE__ */ new Set(), n = this.buildSolution.items;
411
- for (const s of e.items) {
412
- const o = n[s.id];
413
- if (o)
414
- if (o.title = s.title, o.description = s.description, o.type === "Web Map")
415
- this.applyWebMap(o);
416
- else if (o.type === "Feature Layer (hosted)") {
417
- this.applyFeatureService(o, s.id, !1);
418
- const p = g(o);
419
- o.data = p, r[s.id] = p;
420
- } else o.type === "Feature Layer (hosted, view)" && (this.applyFeatureService(o, s.id, !0), l.add(s.id));
658
+ for (const [o, r] of Object.entries(this.buildSolution.items))
659
+ r.type === "Feature Layer (hosted, view)" && (this.llmFsLookup[o] = { ...this.llmFsLookup[r.source] });
660
+ t.title = e.solution.title, t.description = e.solution.description, t.tags = e.solution.tags;
661
+ const i = t.strings;
662
+ for (const o of e.solution.strings)
663
+ i[o.key] && (i[o.key].value = o.value);
664
+ const l = {}, s = /* @__PURE__ */ new Set(), a = this.buildSolution.items;
665
+ for (const o of e.items) {
666
+ const r = a[o.id];
667
+ if (r)
668
+ if (r.title = o.title, r.description = o.description, r.type === "Web Map")
669
+ this.applyWebMap(r);
670
+ else if (r.type === "Feature Layer (hosted)") {
671
+ this.applyFeatureService(r, o.id, !1);
672
+ const u = I(r);
673
+ r.data = u, l[o.id] = u;
674
+ } else r.type === "Feature Layer (hosted, view)" && (this.applyFeatureService(r, o.id, !0), s.add(o.id));
421
675
  }
422
- for (const s of l) {
423
- const o = n[s];
424
- o.data = r[o.source];
676
+ for (const o of s) {
677
+ const r = a[o];
678
+ r.data = l[r.source];
425
679
  }
426
680
  return this.structure;
427
681
  }
428
682
  applyWebMap(e) {
429
683
  if (!e.layerSources)
430
684
  return;
431
- for (const r of [...e.layers || [], ...e.tables || []]) {
432
- const [l, n] = this.extractIdAndLayerId(r.url), s = this.llmFsLookup[l]?.[n];
433
- s && (r.title = s.name);
685
+ for (const l of [...e.layers || [], ...e.tables || []]) {
686
+ const [s, a] = this.extractIdAndLayerId(l.url), o = this.llmFsLookup[s]?.[a];
687
+ o && (l.title = o.name);
434
688
  }
435
689
  if (!(e.layers?.length === 0 && e.tables?.length === 0))
436
690
  return;
437
- const t = crypto.randomUUID().replace(/-/gu, "").substring(0, 10);
438
- for (const r of e.layerSources) {
439
- const l = this.llmFsLookup[r];
440
- if (l)
441
- for (const [n, s] of Object.entries(l)) {
442
- const o = Number(n), p = s.type.toLowerCase() === "table", d = {
443
- id: `${t}-layer-${o}`,
444
- title: s.name,
445
- url: `{{${r}.layer${o}.url}}`,
446
- itemId: `{{${r}.layer${o}.itemId}}`
691
+ const i = crypto.randomUUID().replace(/-/gu, "").substring(0, 10);
692
+ for (const l of e.layerSources) {
693
+ const s = this.llmFsLookup[l];
694
+ if (s)
695
+ for (const [a, o] of Object.entries(s)) {
696
+ const r = Number(a), u = o.type.toLowerCase() === "table", d = {
697
+ id: `${i}-layer-${r}`,
698
+ title: o.name,
699
+ url: `{{${l}.layer${r}.url}}`,
700
+ itemId: `{{${l}.layer${r}.itemId}}`
447
701
  };
448
- p ? e.tables.push(d) : (d.layerType = "ArcGISFeatureLayer", e.layers.push(d));
702
+ u ? e.tables.unshift(d) : (d.layerType = "ArcGISFeatureLayer", e.layers.unshift(d));
449
703
  }
450
704
  }
451
705
  }
452
706
  extractIdAndLayerId(e) {
453
- const i = e.replace(/[{}]/gu, "").split("."), t = i[0], r = Number.parseInt(i[1].replace("layer", ""));
454
- return [t, r];
707
+ const t = e.replace(/[{}]/gu, "").split("."), i = t[0], l = Number.parseInt(t[1].replace("layer", ""));
708
+ return [i, l];
455
709
  }
456
- applyFeatureService(e, i, t = !1) {
457
- const r = e.source || i, l = this.llmFsLookup[r];
458
- for (const s of [...e.service.layers, ...e.service.tables])
459
- this.applyLayer(s, l, t);
460
- e.addLayers && !t && this.addNewLayers(e, l);
461
- const n = e.service.layers?.length === 0 && e.service.tables?.length === 0;
462
- t && n && this.addNewViewLayers(e, i, l);
710
+ applyFeatureService(e, t, i = !1) {
711
+ const l = e.source || t, s = this.llmFsLookup[l];
712
+ for (const o of [...e.service.layers, ...e.service.tables])
713
+ this.applyLayer(o, s, i);
714
+ e.addLayers && !i && this.addNewLayers(e, s);
715
+ const a = e.service.layers?.length === 0 && e.service.tables?.length === 0;
716
+ i && a && this.addNewViewLayers(e, t, s);
463
717
  }
464
- addNewLayers(e, i) {
465
- for (const [t, r] of Object.entries(i)) {
466
- const n = { id: Number(t) };
467
- this.applyLayer(n, i), r.type.toLowerCase() === "table" ? e.service.tables.push(n) : e.service.layers.push(n);
718
+ addNewLayers(e, t) {
719
+ for (const [i, l] of Object.entries(t)) {
720
+ const a = { id: Number(i) };
721
+ this.applyLayer(a, t), l.type.toLowerCase() === "table" ? e.service.tables.push(a) : e.service.layers.push(a);
468
722
  }
469
723
  }
470
- addNewViewLayers(e, i, t) {
471
- const r = e.source;
472
- for (const [l, n] of Object.entries(t)) {
473
- const s = Number(l), o = n.type.toLowerCase() === "table", p = {
724
+ addNewViewLayers(e, t, i) {
725
+ const l = e.source;
726
+ for (const [s, a] of Object.entries(i)) {
727
+ const o = Number(s), r = a.type.toLowerCase() === "table", u = {
474
728
  adminLayerInfo: {
475
- geometryField: o ? null : { name: "Shape" },
729
+ geometryField: r ? null : { name: "Shape" },
476
730
  viewLayerDefinition: {
477
- sourceServiceName: `{{${r}.name}}`,
478
- sourceLayerId: s,
731
+ sourceServiceName: `{{${l}.name}}`,
732
+ sourceLayerId: o,
479
733
  sourceLayerFields: "*"
480
734
  }
481
735
  },
482
- id: s,
483
- name: n.name,
484
- extent: `{{${i}.solutionExtent}}`,
736
+ id: o,
737
+ name: a.name,
738
+ extent: `{{${t}.solutionExtent}}`,
485
739
  maxRecordCount: 2e3
486
740
  };
487
- o ? e.service.tables.push(p) : e.service.layers.push(p);
741
+ r ? e.service.tables.push(u) : e.service.layers.push(u);
488
742
  }
489
743
  }
490
- applyLayer(e, i, t = !1) {
491
- const r = i[e.id];
492
- if (!r || (e.name = r.name, t))
744
+ applyLayer(e, t, i = !1) {
745
+ const l = t[e.id];
746
+ if (!l || (e.name = l.name, i))
493
747
  return;
494
- const l = u.typeLookup[r.type.toLowerCase()] || r.type;
495
- l.toLowerCase() === "table" ? e.type = l : e.geometryType = l, e.editFieldsInfo = this.editFieldsInfo(), e.globalIdField = "globalid", e.objectIdField = "objectid", e.uniqueIdField = { name: "objectid", isSystemMaintained: !0 }, e.hasAttachments = !0, this.updateRelationships(e, i), this.updateFields(e, r), this.updateTemplates(e), this.updateDrawingInfo(e);
748
+ const s = y.typeLookup[l.type.toLowerCase()] || l.type;
749
+ s.toLowerCase() === "table" ? e.type = s : e.geometryType = s, e.editFieldsInfo = this.editFieldsInfo(), e.globalIdField = "globalid", e.objectIdField = "objectid", e.uniqueIdField = { name: "objectid", isSystemMaintained: !0 }, e.hasAttachments = !0, this.updateRelationships(e, t), this.updateFields(e, l), this.updateTemplates(e), this.updateDrawingInfo(e);
496
750
  }
497
- updateRelationships(e, i) {
498
- const t = e.relationships || [];
499
- for (const r of t) {
500
- const l = i[r.relatedTableId];
501
- l && (r.name = l.name);
751
+ updateRelationships(e, t) {
752
+ const i = e.relationships || [];
753
+ for (const l of i) {
754
+ const s = t[l.relatedTableId];
755
+ s && (l.name = s.name);
502
756
  }
503
757
  }
504
- updateFields(e, i) {
505
- const t = [], r = [
506
- [!1, i.customFields],
507
- [!0, i.requiredFields],
508
- [!0, i.systemFields]
758
+ updateFields(e, t) {
759
+ const i = [], l = [
760
+ [!1, t.customFields],
761
+ [!0, t.requiredFields],
762
+ [!0, t.systemFields]
509
763
  ];
510
- for (const [l, n] of r)
511
- if (Array.isArray(n))
512
- for (const s of n) {
513
- const o = {
514
- name: s.name,
515
- alias: s.alias,
516
- type: u.fieldTypeToEsri[s.type] || s.type,
517
- description: JSON.stringify({ value: s.description, fieldValueType: "" }, null, 0),
518
- domain: this.createDomain(s.choiceList, s.name),
519
- required: l
764
+ for (const [s, a] of l)
765
+ if (Array.isArray(a))
766
+ for (const o of a) {
767
+ const r = {
768
+ name: o.name,
769
+ alias: o.alias,
770
+ type: y.fieldTypeToEsri[o.type] || o.type,
771
+ description: JSON.stringify({ value: o.description, fieldValueType: "" }, null, 0),
772
+ domain: this.createDomain(o.choiceList, o.name),
773
+ required: s
520
774
  };
521
- s.type?.toLowerCase() === "string" && (o.length = s.length ?? 256), (s.type === "oid" || s.type === "globalid") && (o.editable = !1, o.nullable = !1), t.push(o);
775
+ o.type?.toLowerCase() === "string" && (r.length = o.length ?? 256), (o.type === "oid" || o.type === "globalid") && (r.editable = !1, r.nullable = !1), i.push(r);
522
776
  }
523
- e.fields = t;
777
+ e.fields = i;
524
778
  }
525
779
  updateTemplates(e) {
526
- const i = u.drawingToolLookup[e.geometryType || e.type];
780
+ const t = y.drawingToolLookup[e.geometryType || e.type];
527
781
  e.templates ??= [{
528
782
  name: e.name,
529
783
  description: "",
530
784
  prototype: { attributes: {} }
531
785
  }];
532
- for (const t of e.templates)
533
- t.drawingTool = i;
786
+ for (const i of e.templates)
787
+ i.drawingTool = t;
534
788
  }
535
789
  updateDrawingInfo(e) {
536
- if (e.drawingTool === "esriGeometryPoint")
537
- e.drawingInfo = b();
790
+ if (e.geometryType === "esriGeometryPoint")
791
+ e.drawingInfo = g(this.nextRendererColorIndex(e.geometryType));
792
+ else if (e.geometryType === "esriGeometryPolyline")
793
+ e.drawingInfo = L(this.nextRendererColorIndex(e.geometryType));
794
+ else if (e.geometryType === "esriGeometryPolygon")
795
+ e.drawingInfo = F(this.nextRendererColorIndex(e.geometryType));
538
796
  else
539
797
  return;
540
798
  }
541
- createDomain(e, i) {
799
+ nextRendererColorIndex(e) {
800
+ const t = this.rendererColorCounters[e];
801
+ return t === void 0 ? 0 : (this.rendererColorCounters[e] = t + 1, t);
802
+ }
803
+ resetRendererColorCounters() {
804
+ this.rendererColorCounters = {
805
+ esriGeometryPoint: 0,
806
+ esriGeometryPolyline: 2,
807
+ esriGeometryPolygon: 4
808
+ };
809
+ }
810
+ createDomain(e, t) {
542
811
  return e ? {
543
812
  type: "codedValue",
544
- name: `${i}_${crypto.randomUUID().replace(/-/gu, "")}`,
545
- codedValues: e.map((t) => ({ name: t, code: t }))
813
+ name: `${t}_${crypto.randomUUID().replace(/-/gu, "")}`,
814
+ codedValues: e.map((i) => ({ name: i, code: i }))
546
815
  } : null;
547
816
  }
548
817
  editFieldsInfo() {
@@ -554,47 +823,47 @@ class u {
554
823
  };
555
824
  }
556
825
  }
557
- function g(a) {
558
- const e = a.service, i = {
826
+ function I(n) {
827
+ const e = n.service, t = {
559
828
  layers: [],
560
829
  tables: []
561
830
  };
562
- for (const t of e.layers || [])
563
- i.layers.push({
564
- id: t.id,
565
- formInfo: m(t),
566
- popupInfo: f(t),
567
- layerDefinition: F(t)
831
+ for (const i of e.layers || [])
832
+ t.layers.push({
833
+ id: i.id,
834
+ formInfo: h(i),
835
+ popupInfo: b(i),
836
+ layerDefinition: i.drawingInfo
568
837
  });
569
- for (const t of e.tables || [])
570
- i.tables.push({
571
- id: t.id,
572
- formInfo: m(t),
573
- popupInfo: f(t)
838
+ for (const i of e.tables || [])
839
+ t.tables.push({
840
+ id: i.id,
841
+ formInfo: h(i),
842
+ popupInfo: b(i)
574
843
  });
575
- return i;
844
+ return t;
576
845
  }
577
- function m(a) {
846
+ function h(n) {
578
847
  const e = [];
579
- for (const t of a.fields)
580
- t.required || e.push({
581
- label: t.alias,
848
+ for (const i of n.fields)
849
+ i.required || e.push({
850
+ label: i.alias,
582
851
  type: "field",
583
852
  editableExpression: "expr/system/true",
584
- fieldName: t.name,
585
- inputType: L(t.type, t.domain, t.length)
853
+ fieldName: i.name,
854
+ inputType: S(i.type, i.domain, i.length)
586
855
  });
587
- const i = a.relationships || [];
588
- for (const t of i)
856
+ const t = n.relationships || [];
857
+ for (const i of t)
589
858
  e.push({
590
859
  description: "",
591
- label: t.name,
860
+ label: i.name,
592
861
  type: "relationship",
593
862
  displayCount: 3,
594
863
  displayType: "list",
595
864
  editableExpression: "expr/system/true",
596
865
  orderByFields: [{ field: "created_date", order: "asc" }],
597
- relationshipId: t.id
866
+ relationshipId: i.id
598
867
  });
599
868
  return {
600
869
  formElements: e,
@@ -602,33 +871,33 @@ function m(a) {
602
871
  { expression: "false", name: "expr/system/false", returnType: "boolean", title: "False" },
603
872
  { expression: "true", name: "expr/system/true", returnType: "boolean", title: "True" }
604
873
  ],
605
- title: a.name
874
+ title: n.name
606
875
  };
607
876
  }
608
- function f(a) {
609
- const e = [], i = [];
610
- for (const r of a.fields)
611
- r.required || i.push({
612
- fieldName: r.name,
877
+ function b(n) {
878
+ const e = [], t = [];
879
+ for (const l of n.fields)
880
+ l.required || t.push({
881
+ fieldName: l.name,
613
882
  isEditable: !0,
614
- label: r.alias,
883
+ label: l.alias,
615
884
  visible: !0
616
885
  });
617
886
  e.push({
618
887
  type: "fields",
619
888
  description: "",
620
- fieldInfos: i
889
+ fieldInfos: t
621
890
  });
622
- const t = a.relationships || [];
623
- if (t.length && a.type !== "Table")
624
- for (const r of t)
891
+ const i = n.relationships || [];
892
+ if (i.length && n.type !== "Table")
893
+ for (const l of i)
625
894
  e.push({
626
895
  type: "relationship",
627
896
  description: "",
628
897
  displayCount: 3,
629
898
  displayType: "list",
630
899
  orderByFields: [{ field: "created_date", order: "asc" }],
631
- relationshipId: r.id
900
+ relationshipId: l.id
632
901
  });
633
902
  return e.push({
634
903
  type: "attachments",
@@ -638,15 +907,12 @@ function f(a) {
638
907
  }), {
639
908
  popupElements: e,
640
909
  showLastEditInfo: !1,
641
- title: a.name
910
+ title: n.name
642
911
  };
643
912
  }
644
- function F(a) {
645
- return a.geometryType === "esriGeometryPoint" ? { drawingInfo: h() } : { drawingInfo: {} };
646
- }
647
- function L(a, e, i) {
648
- return a === "esriFieldTypeString" && !e ? { type: "text-box", maxLength: i || 255, minLength: 0 } : a === "esriFieldTypeString" && e ? { type: "combo-box", noValueOptionLabel: "No value", showNoValueOption: !0 } : ["esriFieldTypeInteger", "esriFieldTypeDouble"].includes(a) ? { type: "text-box", minLength: 0 } : a === "esriFieldTypeDate" ? { type: "datetime-picker", includeTime: !1 } : { type: "text-box", maxLength: i || 255, minLength: 0 };
913
+ function S(n, e, t) {
914
+ return n === "esriFieldTypeString" && !e && t && t > 256 ? { type: "text-area", maxLength: t } : n === "esriFieldTypeString" && !e ? { type: "text-box", maxLength: t || 256, minLength: 0 } : n === "esriFieldTypeString" && e ? { type: "combo-box", noValueOptionLabel: "No value", showNoValueOption: !0 } : ["esriFieldTypeInteger", "esriFieldTypeDouble"].includes(n) ? { type: "text-box", minLength: 0 } : n === "esriFieldTypeDate" ? { type: "datetime-picker", includeTime: !1 } : { type: "text-box", maxLength: t || 256, minLength: 0 };
649
915
  }
650
916
  export {
651
- u as C
917
+ y as C
652
918
  };