123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618 |
- import {
- i
- } from "./chunk-JOYXMSKE.js";
- import {
- L,
- S as S2,
- m as m2,
- u
- } from "./chunk-TV3CFJQR.js";
- import {
- S as S3,
- h
- } from "./chunk-CRGY2SDS.js";
- import {
- r as r2
- } from "./chunk-5N7JLUJJ.js";
- import {
- s as s4
- } from "./chunk-3GZSQU56.js";
- import {
- j
- } from "./chunk-LBW34VZ2.js";
- import {
- o,
- s as s2
- } from "./chunk-HZRKBTHJ.js";
- import {
- o as o2
- } from "./chunk-6T6G6LCQ.js";
- import {
- s as s3
- } from "./chunk-YEJL5NEF.js";
- import {
- r
- } from "./chunk-PQFTYGF5.js";
- import {
- e,
- l3 as l,
- m,
- n5 as n,
- y3 as y2
- } from "./chunk-2Z2TG5CU.js";
- import {
- S,
- T
- } from "./chunk-SQOPWYIT.js";
- import {
- C
- } from "./chunk-V6P2MAQQ.js";
- import {
- s2 as s
- } from "./chunk-E5O6P5I2.js";
- import {
- y
- } from "./chunk-SPWQ3AWG.js";
- // node_modules/@arcgis/core/popup/ExpressionInfo.js
- var s5;
- var p = s5 = class extends l {
- constructor(r7) {
- super(r7), this.name = null, this.title = null, this.expression = null, this.returnType = null;
- }
- clone() {
- return new s5({ name: this.name, title: this.title, expression: this.expression, returnType: this.returnType });
- }
- };
- 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);
- var i2 = p;
- // node_modules/@arcgis/core/popup/content/Content.js
- var e2 = class extends l {
- constructor(r7) {
- super(r7), this.type = null;
- }
- };
- 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);
- var p2 = e2;
- // node_modules/@arcgis/core/popup/content/AttachmentsContent.js
- var s6;
- var p3 = s6 = class extends p2 {
- constructor(t2) {
- super(t2), this.description = null, this.displayType = "auto", this.title = null, this.type = "attachments";
- }
- clone() {
- return new s6({ description: this.description, displayType: this.displayType, title: this.title });
- }
- };
- 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);
- var i3 = p3;
- // node_modules/@arcgis/core/popup/content/CustomContent.js
- var p4;
- var c = p4 = class extends p2 {
- constructor(o6) {
- super(o6), this.creator = null, this.destroyer = null, this.outFields = null, this.type = "custom";
- }
- clone() {
- return new p4({ creator: this.creator, destroyer: this.destroyer, outFields: Array.isArray(this.outFields) ? y(this.outFields) : null });
- }
- };
- 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);
- var i4 = c;
- // node_modules/@arcgis/core/popup/ElementExpressionInfo.js
- var s7;
- var p5 = s7 = class extends l {
- constructor(r7) {
- super(r7), this.title = null, this.expression = null, this.returnType = "dictionary";
- }
- clone() {
- return new s7({ title: this.title, expression: this.expression });
- }
- };
- 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);
- var i5 = p5;
- // node_modules/@arcgis/core/popup/content/ExpressionContent.js
- var p6;
- var n2 = p6 = class extends p2 {
- constructor(o6) {
- super(o6), this.expressionInfo = null, this.type = "expression";
- }
- clone() {
- var _a;
- return new p6({ expressionInfo: (_a = this.expressionInfo) == null ? void 0 : _a.clone() });
- }
- };
- 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);
- var i6 = n2;
- // node_modules/@arcgis/core/core/date.js
- 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" });
- var o3 = a.toJSON.bind(a);
- var r3 = a.fromJSON.bind(a);
- // node_modules/@arcgis/core/popup/support/FieldInfoFormat.js
- var d;
- var l2 = d = class extends l {
- constructor(t2) {
- super(t2), this.dateFormat = null, this.dateTimeFormatOptions = null, this.digitSeparator = false, this.places = null;
- }
- clone() {
- return new d({ dateFormat: this.dateFormat, digitSeparator: this.digitSeparator, places: this.places });
- }
- format(t2) {
- return this.dateFormat ? L(t2, { ...S2(this.dateFormat), ...this.dateTimeFormatOptions }) : m2(t2, u(this));
- }
- formatRasterPixelValue(t2) {
- if (t2.includes("-"))
- return t2;
- let r7, o6;
- 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));
- }
- _formatDelimitedString(t2, r7, o6, e5) {
- return t2 && r7 && o6 && e5 ? t2.trim().split(r7).map((t3) => this.format(Number(t3))).join(o6) : t2;
- }
- };
- 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);
- var u2 = l2;
- // node_modules/@arcgis/core/popup/FieldInfo.js
- var a2;
- var n3 = a2 = class extends l {
- constructor(t2) {
- 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;
- }
- clone() {
- 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 });
- }
- };
- 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);
- var c2 = n3;
- // node_modules/@arcgis/core/popup/content/FieldsContent.js
- var n4;
- var l3 = n4 = class extends p2 {
- constructor(t2) {
- super(t2), this.attributes = null, this.description = null, this.fieldInfos = null, this.title = null, this.type = "fields";
- }
- writeFieldInfos(t2, o6) {
- o6.fieldInfos = t2 && t2.map((t3) => t3.toJSON());
- }
- clone() {
- return new n4(y({ attributes: this.attributes, description: this.description, fieldInfos: this.fieldInfos, title: this.title }));
- }
- };
- 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);
- var c3 = l3;
- // node_modules/@arcgis/core/popup/content/mixins/MediaInfo.js
- var s8 = class extends l {
- constructor(t2) {
- super(t2), this.altText = null, this.caption = "", this.title = "", this.type = null;
- }
- };
- 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);
- var p7 = s8;
- // node_modules/@arcgis/core/popup/content/support/ChartMediaInfoValueSeries.js
- var s9;
- var p8 = s9 = class extends m {
- constructor(o6) {
- super(o6), this.fieldName = null, this.tooltip = null, this.value = null;
- }
- clone() {
- return new s9({ fieldName: this.fieldName, tooltip: this.tooltip, value: this.value });
- }
- };
- 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);
- var i7 = p8;
- // node_modules/@arcgis/core/popup/content/support/ChartMediaInfoValue.js
- var p9;
- var l4 = p9 = class extends l {
- constructor(o6) {
- super(o6), this.fields = [], this.normalizeField = null, this.series = [], this.tooltipField = null;
- }
- clone() {
- return new p9({ fields: y(this.fields), normalizeField: this.normalizeField, tooltipField: this.tooltipField });
- }
- };
- 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);
- var n5 = l4;
- // node_modules/@arcgis/core/popup/content/mixins/ChartMediaInfo.js
- var p10 = class extends p7 {
- constructor(r7) {
- super(r7), this.type = null, this.value = null;
- }
- };
- 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);
- var a3 = p10;
- // node_modules/@arcgis/core/popup/content/support/chartMediaInfoUtils.js
- var c4 = o()({ barchart: "bar-chart", columnchart: "column-chart", linechart: "line-chart", piechart: "pie-chart" });
- // node_modules/@arcgis/core/popup/content/BarChartMediaInfo.js
- var a4;
- var p11 = a4 = class extends a3 {
- constructor(t2) {
- super(t2), this.type = "bar-chart";
- }
- clone() {
- return new a4({ altText: this.altText, title: this.title, caption: this.caption, value: this.value ? this.value.clone() : null });
- }
- };
- 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);
- var i8 = p11;
- // node_modules/@arcgis/core/popup/content/ColumnChartMediaInfo.js
- var a5;
- var p12 = a5 = class extends a3 {
- constructor(t2) {
- super(t2), this.type = "column-chart";
- }
- clone() {
- return new a5({ altText: this.altText, title: this.title, caption: this.caption, value: this.value ? this.value.clone() : null });
- }
- };
- 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);
- var c5 = p12;
- // node_modules/@arcgis/core/popup/content/support/ImageMediaInfoValue.js
- var e3;
- var p13 = e3 = class extends l {
- constructor(r7) {
- super(r7), this.linkURL = null, this.sourceURL = null;
- }
- clone() {
- return new e3({ linkURL: this.linkURL, sourceURL: this.sourceURL });
- }
- };
- 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);
- var c6 = p13;
- // node_modules/@arcgis/core/popup/content/ImageMediaInfo.js
- var a6;
- var i9 = a6 = class extends p7 {
- constructor(e5) {
- super(e5), this.refreshInterval = null, this.type = "image", this.value = null;
- }
- clone() {
- return new a6({ altText: this.altText, title: this.title, caption: this.caption, refreshInterval: this.refreshInterval, value: this.value ? this.value.clone() : null });
- }
- };
- 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);
- var p14 = i9;
- // node_modules/@arcgis/core/popup/content/LineChartMediaInfo.js
- var i10;
- var a7 = i10 = class extends a3 {
- constructor(t2) {
- super(t2), this.type = "line-chart";
- }
- clone() {
- return new i10({ altText: this.altText, title: this.title, caption: this.caption, value: this.value ? this.value.clone() : null });
- }
- };
- 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);
- var p15 = a7;
- // node_modules/@arcgis/core/popup/content/PieChartMediaInfo.js
- var p16;
- var i11 = p16 = class extends a3 {
- constructor(t2) {
- super(t2), this.type = "pie-chart";
- }
- clone() {
- return new p16({ altText: this.altText, title: this.title, caption: this.caption, value: this.value ? this.value.clone() : null });
- }
- };
- 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);
- var a8 = i11;
- // node_modules/@arcgis/core/popup/content/support/mediaInfoTypes.js
- var m3 = { base: p7, key: "type", defaultKeyValue: "image", typeMap: { "bar-chart": i8, "column-chart": c5, "line-chart": p15, "pie-chart": a8, image: p14 } };
- // node_modules/@arcgis/core/popup/content/MediaContent.js
- var l5;
- var u3 = l5 = class extends p2 {
- constructor(t2) {
- super(t2), this.activeMediaInfoIndex = null, this.attributes = null, this.description = null, this.mediaInfos = null, this.title = null, this.type = "media";
- }
- readMediaInfos(t2) {
- 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);
- }
- writeMediaInfos(t2, o6) {
- o6.mediaInfos = t2 && t2.map((t3) => t3.toJSON());
- }
- clone() {
- return new l5(y({ activeMediaInfoIndex: this.activeMediaInfoIndex, attributes: this.attributes, description: this.description, mediaInfos: this.mediaInfos, title: this.title }));
- }
- };
- 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);
- var I = u3;
- // node_modules/@arcgis/core/popup/support/RelatedRecordsInfoFieldOrder.js
- var t;
- var p17 = t = class extends l {
- constructor(r7) {
- super(r7), this.field = null, this.order = null;
- }
- clone() {
- return new t({ field: this.field, order: this.order });
- }
- };
- 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);
- var c7 = p17;
- // node_modules/@arcgis/core/popup/content/RelationshipContent.js
- var n6 = class extends i(p2) {
- constructor(t2) {
- super(t2), this.description = null, this.displayCount = null, this.displayType = "list", this.orderByFields = null, this.relationshipId = null, this.title = null, this.type = "relationship";
- }
- };
- 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);
- var l6 = n6;
- // node_modules/@arcgis/core/popup/content/TextContent.js
- var s10;
- var p18 = s10 = class extends p2 {
- constructor(t2) {
- super(t2), this.text = null, this.type = "text";
- }
- clone() {
- return new s10({ text: this.text });
- }
- };
- 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);
- var c8 = p18;
- // node_modules/@arcgis/core/popup/content.js
- var m4 = { base: null, key: "type", typeMap: { attachment: i3, media: I, text: c8, expression: i6, field: c3, relationship: l6 } };
- // node_modules/@arcgis/core/popup/LayerOptions.js
- var e4;
- var p19 = e4 = class extends l {
- constructor(o6) {
- super(o6), this.returnTopmostRaster = null, this.showNoDataRecords = null;
- }
- clone() {
- return new e4({ showNoDataRecords: this.showNoDataRecords, returnTopmostRaster: this.returnTopmostRaster });
- }
- };
- 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);
- var a9 = p19;
- // node_modules/@arcgis/core/popup/RelatedRecordsInfo.js
- var d2;
- var c9 = d2 = class extends l {
- constructor(o6) {
- super(o6), this.showRelatedRecords = null, this.orderByFields = null;
- }
- clone() {
- return new d2({ showRelatedRecords: this.showRelatedRecords, orderByFields: this.orderByFields ? y(this.orderByFields) : null });
- }
- };
- 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);
- var l7 = c9;
- // node_modules/@arcgis/core/support/actions/ActionBase.js
- var r4;
- var p20 = r4 = class extends s4(m) {
- constructor(t2) {
- 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;
- }
- clone() {
- return new r4({ active: this.active, className: this.className, disabled: this.disabled, id: this.id, indicator: this.indicator, title: this.title, visible: this.visible });
- }
- };
- 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);
- var c10 = p20;
- // node_modules/@arcgis/core/support/actions/ActionButton.js
- var o4;
- var r5 = o4 = class extends c10 {
- constructor(s11) {
- super(s11), this.image = null, this.type = "button";
- }
- clone() {
- 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 });
- }
- };
- e([y2()], r5.prototype, "image", void 0), r5 = o4 = e([n("esri.support.Action.ActionButton")], r5);
- var a10 = r5;
- // node_modules/@arcgis/core/support/actions/ActionToggle.js
- var o5;
- var r6 = o5 = class extends c10 {
- constructor(s11) {
- super(s11), this.image = null, this.type = "toggle", this.value = false;
- }
- clone() {
- 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 });
- }
- };
- e([y2()], r6.prototype, "image", void 0), e([y2()], r6.prototype, "value", void 0), r6 = o5 = e([n("esri.support.Action.ActionToggle")], r6);
- var a11 = r6;
- // node_modules/@arcgis/core/PopupTemplate.js
- var T2 = "esri.PopupTemplate";
- var b = s.getLogger(T2);
- var J = "relationships/";
- var L2 = "expression/";
- var B = j.ofType({ key: "type", defaultKeyValue: "button", base: c10, typeMap: { button: a10, toggle: a11 } });
- var M = { base: p2, key: "type", typeMap: { media: I, custom: i4, text: c8, attachments: i3, fields: c3, expression: i6, relationship: l6 } };
- var P = ["attachments", "fields", "media", "text", "expression", "relationship"];
- var $ = class extends i(l) {
- constructor() {
- 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 = "";
- }
- castContent(t2) {
- 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);
- }
- readContent(t2, e5) {
- const { popupElements: o6 } = e5;
- return Array.isArray(o6) && o6.length > 0 ? this._readPopupInfoElements(e5.description, e5.mediaInfos, o6) : this._readPopupInfo(e5);
- }
- writeContent(t2, e5, o6, s11) {
- "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) => {
- "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);
- })) : e5.description = t2;
- }
- writeFieldInfos(t2, e5, o6, s11) {
- const { content: r7 } = this, i12 = Array.isArray(r7) ? r7 : null;
- if (t2) {
- const o7 = i12 ? i12.filter((t3) => "fields" === t3.type) : [], r8 = o7.length && o7.every((t3) => {
- var _a;
- return (_a = t3.fieldInfos) == null ? void 0 : _a.length;
- });
- e5.fieldInfos = t2.filter(Boolean).map((t3) => {
- const e6 = t3.toJSON(s11);
- return r8 && (e6.visible = false), e6;
- });
- }
- if (i12)
- for (const n7 of i12)
- "fields" === n7.type && this._writeFieldsContent(n7, e5);
- }
- writeLayerOptions(t2, e5, o6, s11) {
- e5[o6] = !t2 || null === t2.showNoDataRecords && null === t2.returnTopmostRaster ? null : t2.toJSON(s11);
- }
- writeTitle(t2, e5) {
- e5.title = t2 || "";
- }
- async collectRequiredFields(t2, e5) {
- const o6 = this.expressionInfos || [];
- 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)]);
- }
- async getRequiredFields(t2) {
- const e5 = /* @__PURE__ */ new Set();
- return await this.collectRequiredFields(e5, t2), [...e5].sort();
- }
- _writeFieldsContent(t2, e5) {
- if (!Array.isArray(t2.fieldInfos) || !t2.fieldInfos.length)
- return;
- const o6 = y(t2.fieldInfos);
- Array.isArray(e5.fieldInfos) ? o6.forEach((t3) => {
- const o7 = e5.fieldInfos.find((e6) => e6.fieldName.toLowerCase() === t3.fieldName.toLowerCase());
- o7 ? o7.visible = true : e5.fieldInfos.push(t3);
- }) : e5.fieldInfos = o6;
- }
- _writeAttachmentContent(t2) {
- t2.showAttachments || (t2.showAttachments = true);
- }
- _writeRelationshipContent(t2, e5) {
- var _a, _b;
- 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];
- e5.relatedRecordsInfo = { showRelatedRecords: true, ...(s11 == null ? void 0 : s11.length) && { orderByFields: s11 } };
- }
- _writeTextContent(t2, e5) {
- !e5.description && t2.text && (e5.description = t2.text);
- }
- _writeMediaContent(t2, e5) {
- if (!Array.isArray(t2.mediaInfos) || !t2.mediaInfos.length)
- return;
- const o6 = y(t2.mediaInfos);
- Array.isArray(e5.mediaInfos) ? e5.mediaInfos = [...e5.mediaInfos, ...o6] : e5.mediaInfos = o6;
- }
- _readPopupInfoElements(t2, e5, o6) {
- const s11 = { description: false, mediaInfos: false };
- 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);
- }
- _toRelationshipContent(t2) {
- const { field: e5, order: o6 } = t2;
- if (!(e5 == null ? void 0 : e5.startsWith(J)))
- return null;
- const s11 = e5.replace(J, "").split("/");
- if (2 !== s11.length)
- return null;
- const r7 = parseInt(s11[0], 10), i12 = s11[1];
- return "number" == typeof r7 && i12 ? l6.fromJSON({ relationshipId: r7, orderByFields: [{ field: i12, order: o6 }] }) : null;
- }
- _toFieldOrderJSON(t2, e5) {
- const { order: o6, field: s11 } = t2;
- return { field: `${J}${e5}/${s11}`, order: o6 };
- }
- _readPopupInfo({ description: t2, mediaInfos: e5, showAttachments: o6, relatedRecordsInfo: s11 = { showRelatedRecords: false } }) {
- const r7 = [];
- 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" }));
- const { showRelatedRecords: i12, orderByFields: n7 } = s11;
- return i12 && (n7 == null ? void 0 : n7.length) && n7.forEach((t3) => {
- const e6 = this._toRelationshipContent(t3);
- e6 && r7.push(e6);
- }), r7.length ? r7 : t2;
- }
- _getContentElementFields(t2) {
- var _a;
- const e5 = t2 == null ? void 0 : t2.type;
- if ("attachments" === e5)
- return [...this._extractFieldNames(t2.title), ...this._extractFieldNames(t2.description)];
- if ("custom" === e5)
- return t2.outFields || [];
- if ("fields" === e5)
- return [...this._extractFieldNames(t2.title), ...this._extractFieldNames(t2.description), ...this._getFieldInfoFields((_a = t2.fieldInfos) != null ? _a : this.fieldInfos)];
- if ("media" === e5) {
- const e6 = t2.mediaInfos || [];
- return [...this._extractFieldNames(t2.title), ...this._extractFieldNames(t2.description), ...e6.reduce((t3, e7) => [...t3, ...this._getMediaInfoFields(e7)], [])];
- }
- return "text" === e5 ? this._extractFieldNames(t2.text) : [];
- }
- _getMediaInfoFields(t2) {
- 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 : []];
- return n7 && d3.push(n7), p21 && d3.push(p21), d3;
- }
- _getContentExpressionInfos(t2, e5) {
- return Array.isArray(t2) ? t2.reduce((t3, e6) => [...t3, ..."expression" === e6.type && e6.expressionInfo ? [e6.expressionInfo] : []], e5) : [];
- }
- _getContentFields(t2) {
- return "string" == typeof t2 ? this._extractFieldNames(t2) : Array.isArray(t2) ? t2.reduce((t3, e5) => [...t3, ...this._getContentElementFields(e5)], []) : [];
- }
- async _collectExpressionInfoFields(t2, e5, o6) {
- o6 && await Promise.all(o6.map((o7) => S3(t2, e5, o7.expression)));
- }
- _getFieldInfoFields(t2) {
- return t2 ? t2.filter((t3) => void 0 === t3.visible || !!t3.visible).map((t3) => t3.fieldName).filter((t3) => !t3.startsWith(J) && !t3.startsWith(L2)) : [];
- }
- _getActionsFields(t2) {
- return t2 ? t2.toArray().reduce((t3, e5) => [...t3, ...this._getActionFields(e5)], []) : [];
- }
- _getActionFields(t2) {
- const { className: e5, title: o6, type: s11 } = t2, r7 = "button" === s11 || "toggle" === s11 ? t2.image : "";
- return [...this._extractFieldNames(o6), ...this._extractFieldNames(e5), ...this._extractFieldNames(r7)];
- }
- _getTitleFields(t2) {
- return "string" == typeof t2 ? this._extractFieldNames(t2) : [];
- }
- _extractFieldNames(t2) {
- if (!t2 || "string" != typeof t2)
- return [];
- const e5 = /{[^}]*}/g, o6 = t2.match(e5);
- if (!o6)
- return [];
- const s11 = /\{(\w+):.+\}/, r7 = o6.filter((t3) => !(0 === t3.indexOf(`{${J}`) || 0 === t3.indexOf(`{${L2}`))).map((t3) => t3.replace(s11, "{$1}"));
- return r7 ? r7.map((t3) => t3.slice(1, -1)) : [];
- }
- };
- 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")], $);
- var k = $;
- export {
- i3 as i,
- i5 as i2,
- u2 as u,
- c2 as c,
- c3 as c2,
- i7 as i3,
- I,
- c7 as c3,
- c8 as c4,
- i2 as i4,
- c10 as c5,
- a10 as a,
- a11 as a2,
- k
- };
- //# sourceMappingURL=chunk-P6VVVEX6.js.map
|