chunk-P6VVVEX6.js 33 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618
  1. import {
  2. i
  3. } from "./chunk-JOYXMSKE.js";
  4. import {
  5. L,
  6. S as S2,
  7. m as m2,
  8. u
  9. } from "./chunk-TV3CFJQR.js";
  10. import {
  11. S as S3,
  12. h
  13. } from "./chunk-CRGY2SDS.js";
  14. import {
  15. r as r2
  16. } from "./chunk-5N7JLUJJ.js";
  17. import {
  18. s as s4
  19. } from "./chunk-3GZSQU56.js";
  20. import {
  21. j
  22. } from "./chunk-LBW34VZ2.js";
  23. import {
  24. o,
  25. s as s2
  26. } from "./chunk-HZRKBTHJ.js";
  27. import {
  28. o as o2
  29. } from "./chunk-6T6G6LCQ.js";
  30. import {
  31. s as s3
  32. } from "./chunk-YEJL5NEF.js";
  33. import {
  34. r
  35. } from "./chunk-PQFTYGF5.js";
  36. import {
  37. e,
  38. l3 as l,
  39. m,
  40. n5 as n,
  41. y3 as y2
  42. } from "./chunk-2Z2TG5CU.js";
  43. import {
  44. S,
  45. T
  46. } from "./chunk-SQOPWYIT.js";
  47. import {
  48. C
  49. } from "./chunk-V6P2MAQQ.js";
  50. import {
  51. s2 as s
  52. } from "./chunk-E5O6P5I2.js";
  53. import {
  54. y
  55. } from "./chunk-SPWQ3AWG.js";
  56. // node_modules/@arcgis/core/popup/ExpressionInfo.js
  57. var s5;
  58. var p = s5 = class extends l {
  59. constructor(r7) {
  60. super(r7), this.name = null, this.title = null, this.expression = null, this.returnType = null;
  61. }
  62. clone() {
  63. return new s5({ name: this.name, title: this.title, expression: this.expression, returnType: this.returnType });
  64. }
  65. };
  66. e([y2({ type: String, json: { write: true } })], p.prototype, "name", void 0), e([y2({ type: String, json: { write: true } })], p.prototype, "title", void 0), e([y2({ type: String, json: { write: true } })], p.prototype, "expression", void 0), e([y2({ type: ["string", "number"], json: { write: true } })], p.prototype, "returnType", void 0), p = s5 = e([n("esri.popup.ExpressionInfo")], p);
  67. var i2 = p;
  68. // node_modules/@arcgis/core/popup/content/Content.js
  69. var e2 = class extends l {
  70. constructor(r7) {
  71. super(r7), this.type = null;
  72. }
  73. };
  74. e([y2({ type: ["attachments", "custom", "fields", "media", "text", "expression", "relationship"], readOnly: true, json: { read: false, write: true } })], e2.prototype, "type", void 0), e2 = e([n("esri.popup.content.Content")], e2);
  75. var p2 = e2;
  76. // node_modules/@arcgis/core/popup/content/AttachmentsContent.js
  77. var s6;
  78. var p3 = s6 = class extends p2 {
  79. constructor(t2) {
  80. super(t2), this.description = null, this.displayType = "auto", this.title = null, this.type = "attachments";
  81. }
  82. clone() {
  83. return new s6({ description: this.description, displayType: this.displayType, title: this.title });
  84. }
  85. };
  86. e([y2({ type: String, json: { write: true } })], p3.prototype, "description", void 0), e([y2({ type: ["auto", "preview", "list"], json: { write: true } })], p3.prototype, "displayType", void 0), e([y2({ type: String, json: { write: true } })], p3.prototype, "title", void 0), e([y2({ type: ["attachments"], readOnly: true, json: { read: false, write: true } })], p3.prototype, "type", void 0), p3 = s6 = e([n("esri.popup.content.AttachmentsContent")], p3);
  87. var i3 = p3;
  88. // node_modules/@arcgis/core/popup/content/CustomContent.js
  89. var p4;
  90. var c = p4 = class extends p2 {
  91. constructor(o6) {
  92. super(o6), this.creator = null, this.destroyer = null, this.outFields = null, this.type = "custom";
  93. }
  94. clone() {
  95. return new p4({ creator: this.creator, destroyer: this.destroyer, outFields: Array.isArray(this.outFields) ? y(this.outFields) : null });
  96. }
  97. };
  98. e([y2()], c.prototype, "creator", void 0), e([y2()], c.prototype, "destroyer", void 0), e([y2()], c.prototype, "outFields", void 0), e([y2({ type: ["custom"], readOnly: true })], c.prototype, "type", void 0), c = p4 = e([n("esri.popup.content.CustomContent")], c);
  99. var i4 = c;
  100. // node_modules/@arcgis/core/popup/ElementExpressionInfo.js
  101. var s7;
  102. var p5 = s7 = class extends l {
  103. constructor(r7) {
  104. super(r7), this.title = null, this.expression = null, this.returnType = "dictionary";
  105. }
  106. clone() {
  107. return new s7({ title: this.title, expression: this.expression });
  108. }
  109. };
  110. e([y2({ type: String, json: { write: true } })], p5.prototype, "title", void 0), e([y2({ type: String, json: { write: true } })], p5.prototype, "expression", void 0), e([y2({ type: ["dictionary"], readOnly: true, json: { read: false, write: true } })], p5.prototype, "returnType", void 0), p5 = s7 = e([n("esri.popup.ElementExpressionInfo")], p5);
  111. var i5 = p5;
  112. // node_modules/@arcgis/core/popup/content/ExpressionContent.js
  113. var p6;
  114. var n2 = p6 = class extends p2 {
  115. constructor(o6) {
  116. super(o6), this.expressionInfo = null, this.type = "expression";
  117. }
  118. clone() {
  119. var _a;
  120. return new p6({ expressionInfo: (_a = this.expressionInfo) == null ? void 0 : _a.clone() });
  121. }
  122. };
  123. e([y2({ type: i5, json: { write: true } })], n2.prototype, "expressionInfo", void 0), e([y2({ type: ["expression"], readOnly: true, json: { read: false, write: true } })], n2.prototype, "type", void 0), n2 = p6 = e([n("esri.popup.content.ExpressionContent")], n2);
  124. var i6 = n2;
  125. // node_modules/@arcgis/core/core/date.js
  126. var a = o()({ shortDate: "short-date", shortDateShortTime: "short-date-short-time", shortDateShortTime24: "short-date-short-time-24", shortDateLongTime: "short-date-long-time", shortDateLongTime24: "short-date-long-time-24", shortDateLE: "short-date-le", shortDateLEShortTime: "short-date-le-short-time", shortDateLEShortTime24: "short-date-le-short-time-24", shortDateLELongTime: "short-date-le-long-time", shortDateLELongTime24: "short-date-le-long-time-24", longMonthDayYear: "long-month-day-year", longMonthDayYearShortTime: "long-month-day-year-short-time", longMonthDayYearShortTime24: "long-month-day-year-short-time-24", longMonthDayYearLongTime: "long-month-day-year-long-time", longMonthDayYearLongTime24: "long-month-day-year-long-time-24", dayShortMonthYear: "day-short-month-year", dayShortMonthYearShortTime: "day-short-month-year-short-time", dayShortMonthYearShortTime24: "day-short-month-year-short-time-24", dayShortMonthYearLongTime: "day-short-month-year-long-time", dayShortMonthYearLongTime24: "day-short-month-year-long-time-24", longDate: "long-date", longDateShortTime: "long-date-short-time", longDateShortTime24: "long-date-short-time-24", longDateLongTime: "long-date-long-time", longDateLongTime24: "long-date-long-time-24", longMonthYear: "long-month-year", shortMonthYear: "short-month-year", year: "year" });
  127. var o3 = a.toJSON.bind(a);
  128. var r3 = a.fromJSON.bind(a);
  129. // node_modules/@arcgis/core/popup/support/FieldInfoFormat.js
  130. var d;
  131. var l2 = d = class extends l {
  132. constructor(t2) {
  133. super(t2), this.dateFormat = null, this.dateTimeFormatOptions = null, this.digitSeparator = false, this.places = null;
  134. }
  135. clone() {
  136. return new d({ dateFormat: this.dateFormat, digitSeparator: this.digitSeparator, places: this.places });
  137. }
  138. format(t2) {
  139. return this.dateFormat ? L(t2, { ...S2(this.dateFormat), ...this.dateTimeFormatOptions }) : m2(t2, u(this));
  140. }
  141. formatRasterPixelValue(t2) {
  142. if (t2.includes("-"))
  143. return t2;
  144. let r7, o6;
  145. return t2.trim().includes(",") ? (r7 = ",", o6 = r7 + " ", this._formatDelimitedString(t2, r7, o6, this)) : t2.trim().includes(";") ? (r7 = ";", o6 = r7 + " ", this._formatDelimitedString(t2, r7, o6, this)) : t2.trim().includes(" ") ? (r7 = o6 = " ", this._formatDelimitedString(t2, r7, o6, this)) : this.format(Number(t2));
  146. }
  147. _formatDelimitedString(t2, r7, o6, e5) {
  148. return t2 && r7 && o6 && e5 ? t2.trim().split(r7).map((t3) => this.format(Number(t3))).join(o6) : t2;
  149. }
  150. };
  151. e([r2(a)], l2.prototype, "dateFormat", void 0), e([y2({ type: Object, json: { read: false } })], l2.prototype, "dateTimeFormatOptions", void 0), e([y2({ type: Boolean, json: { write: true } })], l2.prototype, "digitSeparator", void 0), e([y2({ type: T, json: { write: true } })], l2.prototype, "places", void 0), l2 = d = e([n("esri.popup.support.FieldInfoFormat")], l2);
  152. var u2 = l2;
  153. // node_modules/@arcgis/core/popup/FieldInfo.js
  154. var a2;
  155. var n3 = a2 = class extends l {
  156. constructor(t2) {
  157. super(t2), this.fieldName = null, this.format = null, this.isEditable = false, this.label = null, this.stringFieldOption = "text-box", this.statisticType = null, this.tooltip = null, this.visible = true;
  158. }
  159. clone() {
  160. return new a2({ fieldName: this.fieldName, format: this.format ? y(this.format) : null, isEditable: this.isEditable, label: this.label, stringFieldOption: this.stringFieldOption, statisticType: this.statisticType, tooltip: this.tooltip, visible: this.visible });
  161. }
  162. };
  163. e([y2({ type: String, json: { write: true } })], n3.prototype, "fieldName", void 0), e([y2({ type: u2, json: { write: true } })], n3.prototype, "format", void 0), e([y2({ type: Boolean, json: { write: true, default: false } })], n3.prototype, "isEditable", void 0), e([y2({ type: String, json: { write: true } })], n3.prototype, "label", void 0), e([r2(new s2({ richtext: "rich-text", textarea: "text-area", textbox: "text-box" }), { default: "text-box" })], n3.prototype, "stringFieldOption", void 0), e([y2({ type: ["count", "sum", "min", "max", "avg", "stddev", "var"], json: { write: true } })], n3.prototype, "statisticType", void 0), e([y2({ type: String, json: { write: true } })], n3.prototype, "tooltip", void 0), e([y2({ type: Boolean, json: { write: true } })], n3.prototype, "visible", void 0), n3 = a2 = e([n("esri.popup.FieldInfo")], n3);
  164. var c2 = n3;
  165. // node_modules/@arcgis/core/popup/content/FieldsContent.js
  166. var n4;
  167. var l3 = n4 = class extends p2 {
  168. constructor(t2) {
  169. super(t2), this.attributes = null, this.description = null, this.fieldInfos = null, this.title = null, this.type = "fields";
  170. }
  171. writeFieldInfos(t2, o6) {
  172. o6.fieldInfos = t2 && t2.map((t3) => t3.toJSON());
  173. }
  174. clone() {
  175. return new n4(y({ attributes: this.attributes, description: this.description, fieldInfos: this.fieldInfos, title: this.title }));
  176. }
  177. };
  178. e([y2({ type: Object, json: { write: true } })], l3.prototype, "attributes", void 0), e([y2({ type: String, json: { write: true } })], l3.prototype, "description", void 0), e([y2({ type: [c2] })], l3.prototype, "fieldInfos", void 0), e([r("fieldInfos")], l3.prototype, "writeFieldInfos", null), e([y2({ type: String, json: { write: true } })], l3.prototype, "title", void 0), e([y2({ type: ["fields"], readOnly: true, json: { read: false, write: true } })], l3.prototype, "type", void 0), l3 = n4 = e([n("esri.popup.content.FieldsContent")], l3);
  179. var c3 = l3;
  180. // node_modules/@arcgis/core/popup/content/mixins/MediaInfo.js
  181. var s8 = class extends l {
  182. constructor(t2) {
  183. super(t2), this.altText = null, this.caption = "", this.title = "", this.type = null;
  184. }
  185. };
  186. e([y2({ type: String, json: { write: true } })], s8.prototype, "altText", void 0), e([y2({ type: String, json: { write: true } })], s8.prototype, "caption", void 0), e([y2({ type: String, json: { write: true } })], s8.prototype, "title", void 0), e([y2({ type: ["image", "bar-chart", "column-chart", "line-chart", "pie-chart"], readOnly: true, json: { read: false, write: true } })], s8.prototype, "type", void 0), s8 = e([n("esri.popup.content.mixins.MediaInfo")], s8);
  187. var p7 = s8;
  188. // node_modules/@arcgis/core/popup/content/support/ChartMediaInfoValueSeries.js
  189. var s9;
  190. var p8 = s9 = class extends m {
  191. constructor(o6) {
  192. super(o6), this.fieldName = null, this.tooltip = null, this.value = null;
  193. }
  194. clone() {
  195. return new s9({ fieldName: this.fieldName, tooltip: this.tooltip, value: this.value });
  196. }
  197. };
  198. e([y2()], p8.prototype, "fieldName", void 0), e([y2()], p8.prototype, "tooltip", void 0), e([y2()], p8.prototype, "value", void 0), p8 = s9 = e([n("esri.popup.content.support.ChartMediaInfoValueSeries")], p8);
  199. var i7 = p8;
  200. // node_modules/@arcgis/core/popup/content/support/ChartMediaInfoValue.js
  201. var p9;
  202. var l4 = p9 = class extends l {
  203. constructor(o6) {
  204. super(o6), this.fields = [], this.normalizeField = null, this.series = [], this.tooltipField = null;
  205. }
  206. clone() {
  207. return new p9({ fields: y(this.fields), normalizeField: this.normalizeField, tooltipField: this.tooltipField });
  208. }
  209. };
  210. e([y2({ type: [String], json: { write: true } })], l4.prototype, "fields", void 0), e([y2({ type: String, json: { write: true } })], l4.prototype, "normalizeField", void 0), e([y2({ type: [i7], json: { read: false } })], l4.prototype, "series", void 0), e([y2({ type: String, json: { write: true } })], l4.prototype, "tooltipField", void 0), l4 = p9 = e([n("esri.popup.content.support.ChartMediaInfoValue")], l4);
  211. var n5 = l4;
  212. // node_modules/@arcgis/core/popup/content/mixins/ChartMediaInfo.js
  213. var p10 = class extends p7 {
  214. constructor(r7) {
  215. super(r7), this.type = null, this.value = null;
  216. }
  217. };
  218. e([y2({ type: ["bar-chart", "column-chart", "line-chart", "pie-chart"], readOnly: true, json: { read: false, write: true } })], p10.prototype, "type", void 0), e([y2({ type: n5, json: { write: true } })], p10.prototype, "value", void 0), p10 = e([n("esri.popup.content.mixins.ChartMediaInfo")], p10);
  219. var a3 = p10;
  220. // node_modules/@arcgis/core/popup/content/support/chartMediaInfoUtils.js
  221. var c4 = o()({ barchart: "bar-chart", columnchart: "column-chart", linechart: "line-chart", piechart: "pie-chart" });
  222. // node_modules/@arcgis/core/popup/content/BarChartMediaInfo.js
  223. var a4;
  224. var p11 = a4 = class extends a3 {
  225. constructor(t2) {
  226. super(t2), this.type = "bar-chart";
  227. }
  228. clone() {
  229. return new a4({ altText: this.altText, title: this.title, caption: this.caption, value: this.value ? this.value.clone() : null });
  230. }
  231. };
  232. e([y2({ type: ["bar-chart"], readOnly: true, json: { type: ["barchart"], read: false, write: c4.write } })], p11.prototype, "type", void 0), p11 = a4 = e([n("esri.popup.content.BarChartMediaInfo")], p11);
  233. var i8 = p11;
  234. // node_modules/@arcgis/core/popup/content/ColumnChartMediaInfo.js
  235. var a5;
  236. var p12 = a5 = class extends a3 {
  237. constructor(t2) {
  238. super(t2), this.type = "column-chart";
  239. }
  240. clone() {
  241. return new a5({ altText: this.altText, title: this.title, caption: this.caption, value: this.value ? this.value.clone() : null });
  242. }
  243. };
  244. e([y2({ type: ["column-chart"], readOnly: true, json: { type: ["columnchart"], read: false, write: c4.write } })], p12.prototype, "type", void 0), p12 = a5 = e([n("esri.popup.content.ColumnChartMediaInfo")], p12);
  245. var c5 = p12;
  246. // node_modules/@arcgis/core/popup/content/support/ImageMediaInfoValue.js
  247. var e3;
  248. var p13 = e3 = class extends l {
  249. constructor(r7) {
  250. super(r7), this.linkURL = null, this.sourceURL = null;
  251. }
  252. clone() {
  253. return new e3({ linkURL: this.linkURL, sourceURL: this.sourceURL });
  254. }
  255. };
  256. e([y2({ type: String, json: { write: true } })], p13.prototype, "linkURL", void 0), e([y2({ type: String, json: { write: true } })], p13.prototype, "sourceURL", void 0), p13 = e3 = e([n("esri.popup.content.support.ImageMediaInfoValue")], p13);
  257. var c6 = p13;
  258. // node_modules/@arcgis/core/popup/content/ImageMediaInfo.js
  259. var a6;
  260. var i9 = a6 = class extends p7 {
  261. constructor(e5) {
  262. super(e5), this.refreshInterval = null, this.type = "image", this.value = null;
  263. }
  264. clone() {
  265. return new a6({ altText: this.altText, title: this.title, caption: this.caption, refreshInterval: this.refreshInterval, value: this.value ? this.value.clone() : null });
  266. }
  267. };
  268. e([y2({ type: Number, json: { write: true } })], i9.prototype, "refreshInterval", void 0), e([y2({ type: ["image"], readOnly: true, json: { read: false, write: true } })], i9.prototype, "type", void 0), e([y2({ type: c6, json: { write: true } })], i9.prototype, "value", void 0), i9 = a6 = e([n("esri.popup.content.ImageMediaInfo")], i9);
  269. var p14 = i9;
  270. // node_modules/@arcgis/core/popup/content/LineChartMediaInfo.js
  271. var i10;
  272. var a7 = i10 = class extends a3 {
  273. constructor(t2) {
  274. super(t2), this.type = "line-chart";
  275. }
  276. clone() {
  277. return new i10({ altText: this.altText, title: this.title, caption: this.caption, value: this.value ? this.value.clone() : null });
  278. }
  279. };
  280. e([y2({ type: ["line-chart"], readOnly: true, json: { type: ["linechart"], read: false, write: c4.write } })], a7.prototype, "type", void 0), a7 = i10 = e([n("esri.popup.content.LineChartMediaInfo")], a7);
  281. var p15 = a7;
  282. // node_modules/@arcgis/core/popup/content/PieChartMediaInfo.js
  283. var p16;
  284. var i11 = p16 = class extends a3 {
  285. constructor(t2) {
  286. super(t2), this.type = "pie-chart";
  287. }
  288. clone() {
  289. return new p16({ altText: this.altText, title: this.title, caption: this.caption, value: this.value ? this.value.clone() : null });
  290. }
  291. };
  292. e([y2({ type: ["pie-chart"], readOnly: true, json: { type: ["piechart"], read: false, write: c4.write } })], i11.prototype, "type", void 0), i11 = p16 = e([n("esri.popup.content.PieChartMediaInfo")], i11);
  293. var a8 = i11;
  294. // node_modules/@arcgis/core/popup/content/support/mediaInfoTypes.js
  295. var m3 = { base: p7, key: "type", defaultKeyValue: "image", typeMap: { "bar-chart": i8, "column-chart": c5, "line-chart": p15, "pie-chart": a8, image: p14 } };
  296. // node_modules/@arcgis/core/popup/content/MediaContent.js
  297. var l5;
  298. var u3 = l5 = class extends p2 {
  299. constructor(t2) {
  300. super(t2), this.activeMediaInfoIndex = null, this.attributes = null, this.description = null, this.mediaInfos = null, this.title = null, this.type = "media";
  301. }
  302. readMediaInfos(t2) {
  303. return t2 && t2.map((t3) => "image" === t3.type ? p14.fromJSON(t3) : "barchart" === t3.type ? i8.fromJSON(t3) : "columnchart" === t3.type ? c5.fromJSON(t3) : "linechart" === t3.type ? p15.fromJSON(t3) : "piechart" === t3.type ? a8.fromJSON(t3) : void 0).filter(Boolean);
  304. }
  305. writeMediaInfos(t2, o6) {
  306. o6.mediaInfos = t2 && t2.map((t3) => t3.toJSON());
  307. }
  308. clone() {
  309. return new l5(y({ activeMediaInfoIndex: this.activeMediaInfoIndex, attributes: this.attributes, description: this.description, mediaInfos: this.mediaInfos, title: this.title }));
  310. }
  311. };
  312. e([y2()], u3.prototype, "activeMediaInfoIndex", void 0), e([y2({ type: Object, json: { write: true } })], u3.prototype, "attributes", void 0), e([y2({ type: String, json: { write: true } })], u3.prototype, "description", void 0), e([y2({ types: [m3] })], u3.prototype, "mediaInfos", void 0), e([o2("mediaInfos")], u3.prototype, "readMediaInfos", null), e([r("mediaInfos")], u3.prototype, "writeMediaInfos", null), e([y2({ type: String, json: { write: true } })], u3.prototype, "title", void 0), e([y2({ type: ["media"], readOnly: true, json: { read: false, write: true } })], u3.prototype, "type", void 0), u3 = l5 = e([n("esri.popup.content.MediaContent")], u3);
  313. var I = u3;
  314. // node_modules/@arcgis/core/popup/support/RelatedRecordsInfoFieldOrder.js
  315. var t;
  316. var p17 = t = class extends l {
  317. constructor(r7) {
  318. super(r7), this.field = null, this.order = null;
  319. }
  320. clone() {
  321. return new t({ field: this.field, order: this.order });
  322. }
  323. };
  324. e([y2({ type: String, json: { write: true } })], p17.prototype, "field", void 0), e([y2({ type: ["asc", "desc"], json: { write: true } })], p17.prototype, "order", void 0), p17 = t = e([n("esri.popup.support.RelatedRecordsInfoFieldOrder")], p17);
  325. var c7 = p17;
  326. // node_modules/@arcgis/core/popup/content/RelationshipContent.js
  327. var n6 = class extends i(p2) {
  328. constructor(t2) {
  329. super(t2), this.description = null, this.displayCount = null, this.displayType = "list", this.orderByFields = null, this.relationshipId = null, this.title = null, this.type = "relationship";
  330. }
  331. };
  332. e([y2({ type: String, json: { write: true } })], n6.prototype, "description", void 0), e([y2({ type: Number, json: { type: T, write: true } })], n6.prototype, "displayCount", void 0), e([y2({ type: ["list"], json: { write: true } })], n6.prototype, "displayType", void 0), e([y2({ type: [c7], json: { write: true } })], n6.prototype, "orderByFields", void 0), e([y2({ type: Number, json: { type: T, write: true } })], n6.prototype, "relationshipId", void 0), e([y2({ type: String, json: { write: true } })], n6.prototype, "title", void 0), e([y2({ type: ["relationship"], readOnly: true, json: { read: false, write: true } })], n6.prototype, "type", void 0), n6 = e([n("esri.popup.content.RelationshipContent")], n6);
  333. var l6 = n6;
  334. // node_modules/@arcgis/core/popup/content/TextContent.js
  335. var s10;
  336. var p18 = s10 = class extends p2 {
  337. constructor(t2) {
  338. super(t2), this.text = null, this.type = "text";
  339. }
  340. clone() {
  341. return new s10({ text: this.text });
  342. }
  343. };
  344. e([y2({ type: String, json: { write: true } })], p18.prototype, "text", void 0), e([y2({ type: ["text"], readOnly: true, json: { read: false, write: true } })], p18.prototype, "type", void 0), p18 = s10 = e([n("esri.popup.content.TextContent")], p18);
  345. var c8 = p18;
  346. // node_modules/@arcgis/core/popup/content.js
  347. var m4 = { base: null, key: "type", typeMap: { attachment: i3, media: I, text: c8, expression: i6, field: c3, relationship: l6 } };
  348. // node_modules/@arcgis/core/popup/LayerOptions.js
  349. var e4;
  350. var p19 = e4 = class extends l {
  351. constructor(o6) {
  352. super(o6), this.returnTopmostRaster = null, this.showNoDataRecords = null;
  353. }
  354. clone() {
  355. return new e4({ showNoDataRecords: this.showNoDataRecords, returnTopmostRaster: this.returnTopmostRaster });
  356. }
  357. };
  358. e([y2({ type: Boolean, json: { write: true } })], p19.prototype, "returnTopmostRaster", void 0), e([y2({ type: Boolean, json: { write: true } })], p19.prototype, "showNoDataRecords", void 0), p19 = e4 = e([n("esri.popup.LayerOptions")], p19);
  359. var a9 = p19;
  360. // node_modules/@arcgis/core/popup/RelatedRecordsInfo.js
  361. var d2;
  362. var c9 = d2 = class extends l {
  363. constructor(o6) {
  364. super(o6), this.showRelatedRecords = null, this.orderByFields = null;
  365. }
  366. clone() {
  367. return new d2({ showRelatedRecords: this.showRelatedRecords, orderByFields: this.orderByFields ? y(this.orderByFields) : null });
  368. }
  369. };
  370. e([y2({ type: Boolean, json: { write: true } })], c9.prototype, "showRelatedRecords", void 0), e([y2({ type: [c7], json: { write: true } })], c9.prototype, "orderByFields", void 0), c9 = d2 = e([n("esri.popup.RelatedRecordsInfo")], c9);
  371. var l7 = c9;
  372. // node_modules/@arcgis/core/support/actions/ActionBase.js
  373. var r4;
  374. var p20 = r4 = class extends s4(m) {
  375. constructor(t2) {
  376. super(t2), this.active = false, this.className = null, this.disabled = false, this.id = null, this.indicator = false, this.title = null, this.type = null, this.visible = true;
  377. }
  378. clone() {
  379. return new r4({ active: this.active, className: this.className, disabled: this.disabled, id: this.id, indicator: this.indicator, title: this.title, visible: this.visible });
  380. }
  381. };
  382. e([y2()], p20.prototype, "active", void 0), e([y2()], p20.prototype, "className", void 0), e([y2()], p20.prototype, "disabled", void 0), e([y2()], p20.prototype, "id", void 0), e([y2()], p20.prototype, "indicator", void 0), e([y2()], p20.prototype, "title", void 0), e([y2()], p20.prototype, "type", void 0), e([y2()], p20.prototype, "visible", void 0), p20 = r4 = e([n("esri.support.actions.ActionBase")], p20);
  383. var c10 = p20;
  384. // node_modules/@arcgis/core/support/actions/ActionButton.js
  385. var o4;
  386. var r5 = o4 = class extends c10 {
  387. constructor(s11) {
  388. super(s11), this.image = null, this.type = "button";
  389. }
  390. clone() {
  391. return new o4({ active: this.active, className: this.className, disabled: this.disabled, id: this.id, indicator: this.indicator, title: this.title, visible: this.visible, image: this.image });
  392. }
  393. };
  394. e([y2()], r5.prototype, "image", void 0), r5 = o4 = e([n("esri.support.Action.ActionButton")], r5);
  395. var a10 = r5;
  396. // node_modules/@arcgis/core/support/actions/ActionToggle.js
  397. var o5;
  398. var r6 = o5 = class extends c10 {
  399. constructor(s11) {
  400. super(s11), this.image = null, this.type = "toggle", this.value = false;
  401. }
  402. clone() {
  403. return new o5({ active: this.active, className: this.className, disabled: this.disabled, id: this.id, indicator: this.indicator, title: this.title, visible: this.visible, image: this.image, value: this.value });
  404. }
  405. };
  406. e([y2()], r6.prototype, "image", void 0), e([y2()], r6.prototype, "value", void 0), r6 = o5 = e([n("esri.support.Action.ActionToggle")], r6);
  407. var a11 = r6;
  408. // node_modules/@arcgis/core/PopupTemplate.js
  409. var T2 = "esri.PopupTemplate";
  410. var b = s.getLogger(T2);
  411. var J = "relationships/";
  412. var L2 = "expression/";
  413. var B = j.ofType({ key: "type", defaultKeyValue: "button", base: c10, typeMap: { button: a10, toggle: a11 } });
  414. var M = { base: p2, key: "type", typeMap: { media: I, custom: i4, text: c8, attachments: i3, fields: c3, expression: i6, relationship: l6 } };
  415. var P = ["attachments", "fields", "media", "text", "expression", "relationship"];
  416. var $ = class extends i(l) {
  417. constructor() {
  418. super(...arguments), this.actions = null, this.content = "", this.expressionInfos = null, this.fieldInfos = null, this.layerOptions = null, this.lastEditInfoEnabled = true, this.outFields = null, this.overwriteActions = false, this.returnGeometry = false, this.title = "";
  419. }
  420. castContent(t2) {
  421. return Array.isArray(t2) ? t2.map((t3) => S(M, t3)) : "string" == typeof t2 || "function" == typeof t2 || t2 instanceof HTMLElement || C(t2) ? t2 : (b.error("content error", "unsupported content value", { value: t2 }), null);
  422. }
  423. readContent(t2, e5) {
  424. const { popupElements: o6 } = e5;
  425. return Array.isArray(o6) && o6.length > 0 ? this._readPopupInfoElements(e5.description, e5.mediaInfos, o6) : this._readPopupInfo(e5);
  426. }
  427. writeContent(t2, e5, o6, s11) {
  428. "string" != typeof t2 ? Array.isArray(t2) && (e5.popupElements = t2.filter((t3) => P.includes(t3.type)).map((t3) => t3 && t3.toJSON(s11)), e5.popupElements.forEach((t3) => {
  429. "attachments" === t3.type ? this._writeAttachmentContent(e5) : "media" === t3.type ? this._writeMediaContent(t3, e5) : "text" === t3.type ? this._writeTextContent(t3, e5) : "relationship" === t3.type && this._writeRelationshipContent(t3, e5);
  430. })) : e5.description = t2;
  431. }
  432. writeFieldInfos(t2, e5, o6, s11) {
  433. const { content: r7 } = this, i12 = Array.isArray(r7) ? r7 : null;
  434. if (t2) {
  435. const o7 = i12 ? i12.filter((t3) => "fields" === t3.type) : [], r8 = o7.length && o7.every((t3) => {
  436. var _a;
  437. return (_a = t3.fieldInfos) == null ? void 0 : _a.length;
  438. });
  439. e5.fieldInfos = t2.filter(Boolean).map((t3) => {
  440. const e6 = t3.toJSON(s11);
  441. return r8 && (e6.visible = false), e6;
  442. });
  443. }
  444. if (i12)
  445. for (const n7 of i12)
  446. "fields" === n7.type && this._writeFieldsContent(n7, e5);
  447. }
  448. writeLayerOptions(t2, e5, o6, s11) {
  449. e5[o6] = !t2 || null === t2.showNoDataRecords && null === t2.returnTopmostRaster ? null : t2.toJSON(s11);
  450. }
  451. writeTitle(t2, e5) {
  452. e5.title = t2 || "";
  453. }
  454. async collectRequiredFields(t2, e5) {
  455. const o6 = this.expressionInfos || [];
  456. await this._collectExpressionInfoFields(t2, e5, [...o6, ...this._getContentExpressionInfos(this.content, o6)]), h(t2, e5, [...this.outFields || [], ...this._getActionsFields(this.actions), ...this._getTitleFields(this.title), ...this._getContentFields(this.content)]);
  457. }
  458. async getRequiredFields(t2) {
  459. const e5 = /* @__PURE__ */ new Set();
  460. return await this.collectRequiredFields(e5, t2), [...e5].sort();
  461. }
  462. _writeFieldsContent(t2, e5) {
  463. if (!Array.isArray(t2.fieldInfos) || !t2.fieldInfos.length)
  464. return;
  465. const o6 = y(t2.fieldInfos);
  466. Array.isArray(e5.fieldInfos) ? o6.forEach((t3) => {
  467. const o7 = e5.fieldInfos.find((e6) => e6.fieldName.toLowerCase() === t3.fieldName.toLowerCase());
  468. o7 ? o7.visible = true : e5.fieldInfos.push(t3);
  469. }) : e5.fieldInfos = o6;
  470. }
  471. _writeAttachmentContent(t2) {
  472. t2.showAttachments || (t2.showAttachments = true);
  473. }
  474. _writeRelationshipContent(t2, e5) {
  475. var _a, _b;
  476. const o6 = ((_a = t2.orderByFields) == null ? void 0 : _a.map((e6) => this._toFieldOrderJSON(e6, t2.relationshipId))) || [], s11 = [...((_b = e5.relatedRecordsInfo) == null ? void 0 : _b.orderByFields) || [], ...o6];
  477. e5.relatedRecordsInfo = { showRelatedRecords: true, ...(s11 == null ? void 0 : s11.length) && { orderByFields: s11 } };
  478. }
  479. _writeTextContent(t2, e5) {
  480. !e5.description && t2.text && (e5.description = t2.text);
  481. }
  482. _writeMediaContent(t2, e5) {
  483. if (!Array.isArray(t2.mediaInfos) || !t2.mediaInfos.length)
  484. return;
  485. const o6 = y(t2.mediaInfos);
  486. Array.isArray(e5.mediaInfos) ? e5.mediaInfos = [...e5.mediaInfos, ...o6] : e5.mediaInfos = o6;
  487. }
  488. _readPopupInfoElements(t2, e5, o6) {
  489. const s11 = { description: false, mediaInfos: false };
  490. return o6.map((o7) => "media" === o7.type ? (o7.mediaInfos || !e5 || s11.mediaInfos || (o7.mediaInfos = e5, s11.mediaInfos = true), I.fromJSON(o7)) : "text" === o7.type ? (o7.text || !t2 || s11.description || (o7.text = t2, s11.description = true), c8.fromJSON(o7)) : "attachments" === o7.type ? i3.fromJSON(o7) : "fields" === o7.type ? c3.fromJSON(o7) : "expression" === o7.type ? i6.fromJSON(o7) : "relationship" === o7.type ? l6.fromJSON(o7) : void 0).filter(Boolean);
  491. }
  492. _toRelationshipContent(t2) {
  493. const { field: e5, order: o6 } = t2;
  494. if (!(e5 == null ? void 0 : e5.startsWith(J)))
  495. return null;
  496. const s11 = e5.replace(J, "").split("/");
  497. if (2 !== s11.length)
  498. return null;
  499. const r7 = parseInt(s11[0], 10), i12 = s11[1];
  500. return "number" == typeof r7 && i12 ? l6.fromJSON({ relationshipId: r7, orderByFields: [{ field: i12, order: o6 }] }) : null;
  501. }
  502. _toFieldOrderJSON(t2, e5) {
  503. const { order: o6, field: s11 } = t2;
  504. return { field: `${J}${e5}/${s11}`, order: o6 };
  505. }
  506. _readPopupInfo({ description: t2, mediaInfos: e5, showAttachments: o6, relatedRecordsInfo: s11 = { showRelatedRecords: false } }) {
  507. const r7 = [];
  508. t2 ? r7.push(new c8({ text: t2 })) : r7.push(new c3()), Array.isArray(e5) && e5.length && r7.push(I.fromJSON({ mediaInfos: e5 })), o6 && r7.push(i3.fromJSON({ displayType: "auto" }));
  509. const { showRelatedRecords: i12, orderByFields: n7 } = s11;
  510. return i12 && (n7 == null ? void 0 : n7.length) && n7.forEach((t3) => {
  511. const e6 = this._toRelationshipContent(t3);
  512. e6 && r7.push(e6);
  513. }), r7.length ? r7 : t2;
  514. }
  515. _getContentElementFields(t2) {
  516. var _a;
  517. const e5 = t2 == null ? void 0 : t2.type;
  518. if ("attachments" === e5)
  519. return [...this._extractFieldNames(t2.title), ...this._extractFieldNames(t2.description)];
  520. if ("custom" === e5)
  521. return t2.outFields || [];
  522. if ("fields" === e5)
  523. return [...this._extractFieldNames(t2.title), ...this._extractFieldNames(t2.description), ...this._getFieldInfoFields((_a = t2.fieldInfos) != null ? _a : this.fieldInfos)];
  524. if ("media" === e5) {
  525. const e6 = t2.mediaInfos || [];
  526. return [...this._extractFieldNames(t2.title), ...this._extractFieldNames(t2.description), ...e6.reduce((t3, e7) => [...t3, ...this._getMediaInfoFields(e7)], [])];
  527. }
  528. return "text" === e5 ? this._extractFieldNames(t2.text) : [];
  529. }
  530. _getMediaInfoFields(t2) {
  531. const { caption: e5, title: o6, value: s11 } = t2, r7 = s11 || {}, { fields: i12, normalizeField: n7, tooltipField: p21, sourceURL: l8, linkURL: a12 } = r7, d3 = [...this._extractFieldNames(o6), ...this._extractFieldNames(e5), ...this._extractFieldNames(l8), ...this._extractFieldNames(a12), ...i12 != null ? i12 : []];
  532. return n7 && d3.push(n7), p21 && d3.push(p21), d3;
  533. }
  534. _getContentExpressionInfos(t2, e5) {
  535. return Array.isArray(t2) ? t2.reduce((t3, e6) => [...t3, ..."expression" === e6.type && e6.expressionInfo ? [e6.expressionInfo] : []], e5) : [];
  536. }
  537. _getContentFields(t2) {
  538. return "string" == typeof t2 ? this._extractFieldNames(t2) : Array.isArray(t2) ? t2.reduce((t3, e5) => [...t3, ...this._getContentElementFields(e5)], []) : [];
  539. }
  540. async _collectExpressionInfoFields(t2, e5, o6) {
  541. o6 && await Promise.all(o6.map((o7) => S3(t2, e5, o7.expression)));
  542. }
  543. _getFieldInfoFields(t2) {
  544. return t2 ? t2.filter((t3) => void 0 === t3.visible || !!t3.visible).map((t3) => t3.fieldName).filter((t3) => !t3.startsWith(J) && !t3.startsWith(L2)) : [];
  545. }
  546. _getActionsFields(t2) {
  547. return t2 ? t2.toArray().reduce((t3, e5) => [...t3, ...this._getActionFields(e5)], []) : [];
  548. }
  549. _getActionFields(t2) {
  550. const { className: e5, title: o6, type: s11 } = t2, r7 = "button" === s11 || "toggle" === s11 ? t2.image : "";
  551. return [...this._extractFieldNames(o6), ...this._extractFieldNames(e5), ...this._extractFieldNames(r7)];
  552. }
  553. _getTitleFields(t2) {
  554. return "string" == typeof t2 ? this._extractFieldNames(t2) : [];
  555. }
  556. _extractFieldNames(t2) {
  557. if (!t2 || "string" != typeof t2)
  558. return [];
  559. const e5 = /{[^}]*}/g, o6 = t2.match(e5);
  560. if (!o6)
  561. return [];
  562. const s11 = /\{(\w+):.+\}/, r7 = o6.filter((t3) => !(0 === t3.indexOf(`{${J}`) || 0 === t3.indexOf(`{${L2}`))).map((t3) => t3.replace(s11, "{$1}"));
  563. return r7 ? r7.map((t3) => t3.slice(1, -1)) : [];
  564. }
  565. };
  566. e([y2({ type: B })], $.prototype, "actions", void 0), e([y2()], $.prototype, "content", void 0), e([s3("content")], $.prototype, "castContent", null), e([o2("content", ["description", "fieldInfos", "popupElements", "mediaInfos", "showAttachments", "relatedRecordsInfo"])], $.prototype, "readContent", null), e([r("content", { popupElements: { type: j.ofType(m4) }, showAttachments: { type: Boolean }, mediaInfos: { type: j.ofType(m3) }, description: { type: String }, relatedRecordsInfo: { type: l7 } })], $.prototype, "writeContent", null), e([y2({ type: [i2], json: { write: true } })], $.prototype, "expressionInfos", void 0), e([y2({ type: [c2] })], $.prototype, "fieldInfos", void 0), e([r("fieldInfos")], $.prototype, "writeFieldInfos", null), e([y2({ type: a9 })], $.prototype, "layerOptions", void 0), e([r("layerOptions")], $.prototype, "writeLayerOptions", null), e([y2({ type: Boolean, json: { read: { source: "showLastEditInfo" }, write: { target: "showLastEditInfo" }, default: true } })], $.prototype, "lastEditInfoEnabled", void 0), e([y2()], $.prototype, "outFields", void 0), e([y2()], $.prototype, "overwriteActions", void 0), e([y2()], $.prototype, "returnGeometry", void 0), e([y2({ json: { type: String } })], $.prototype, "title", void 0), e([r("title")], $.prototype, "writeTitle", null), $ = e([n("esri.PopupTemplate")], $);
  567. var k = $;
  568. export {
  569. i3 as i,
  570. i5 as i2,
  571. u2 as u,
  572. c2 as c,
  573. c3 as c2,
  574. i7 as i3,
  575. I,
  576. c7 as c3,
  577. c8 as c4,
  578. i2 as i4,
  579. c10 as c5,
  580. a10 as a,
  581. a11 as a2,
  582. k
  583. };
  584. //# sourceMappingURL=chunk-P6VVVEX6.js.map