@arcgis/core 5.0.0-next.10 → 5.0.0-next.11
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.
- package/analysis/VolumeMeasurement/volumeMeasurementConfiguration.js +1 -1
- package/applications/KnowledgeStudio/resourceSerializationUtils.js +1 -1
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/092d72caf3269e696d1c.js +1 -0
- package/assets/esri/core/workers/chunks/{066a0ea67688361e85a5.js → 4291681d067ebdf86e73.js} +1 -1
- package/assets/esri/core/workers/chunks/655beaf83e9845a02334.js +1 -0
- package/assets/esri/core/workers/chunks/6cf391b5ed7351601a2a.js +1 -0
- package/assets/esri/core/workers/chunks/8cd03b54b2859b52fb81.js +1 -0
- package/assets/esri/core/workers/chunks/b193de09e005b0976a6a.js +1 -0
- package/assets/esri/core/workers/chunks/{4fb5f1c671892001a4fd.js → b6853c6a25eaabc9a7f6.js} +1 -1
- package/assets/esri/core/workers/chunks/{8ce608013b353155ee5a.js → f57401a759f420596b2c.js} +1 -1
- package/assets/esri/libs/parquet/pkg/bundle_bg.wasm +0 -0
- package/assets/esri/rest/knowledgeGraph/wasmInterface/arcgis-knowledge-client-core-simd.wasm +0 -0
- package/assets/esri/rest/knowledgeGraph/wasmInterface/arcgis-knowledge-client-core.wasm +0 -0
- package/assets/esri/themes/base/widgets/_FeatureTable.scss +2 -0
- package/assets/esri/themes/dark/main.css +1 -1
- package/assets/esri/themes/light/main.css +1 -1
- package/assets/esri/themes/light/view.css +1 -1
- package/chunks/arcgis-knowledge-client-core-simd.js +1 -1
- package/chunks/arcgis-knowledge-client-core.js +1 -1
- package/config.js +1 -1
- package/interfaces.d.ts +24 -4
- package/kernel.js +1 -1
- package/layers/KnowledgeGraphLayer.js +1 -1
- package/layers/LinkChartLayer.js +1 -1
- package/layers/knowledgeGraph/KnowledgeGraphSublayer.js +1 -1
- package/layers/support/fieldFormatUtils.js +1 -1
- package/package.json +1 -1
- package/support/revision.js +1 -1
- package/views/2d/layers/features/processor/FeatureUpdateStrategy.js +1 -1
- package/views/2d/layers/features/sources/strategies/chunks/Overrides.js +1 -1
- package/views/3d/analysis/Slice/SliceTool.js +1 -1
- package/views/3d/analysis/VolumeMeasurement/VolumeMeasurementCutFillComputation.js +1 -1
- package/views/3d/analysis/VolumeMeasurement/VolumeMeasurementCutFillController.js +1 -1
- package/views/3d/analysis/VolumeMeasurement/VolumeMeasurementCutFillVisualization.js +1 -1
- package/views/3d/support/flow/geometryUtils.js +1 -1
- package/views/3d/webgl-engine/lib/CutFillDepth.js +1 -1
- package/views/draw/support/tooltipUtils.js +1 -1
- package/views/interactive/tooltip/components/TooltipEditableField.js +1 -1
- package/views/interactive/tooltip/fields/TooltipField.js +1 -1
- package/views/interactive/tooltip/infos/TooltipInfoWithCoordinates.js +1 -1
- package/views/support/euclideanLengthMeasurementUtils.js +1 -1
- package/widgets/TimeSlider.js +1 -1
- package/assets/esri/core/workers/chunks/57e04e2d8721bbdc029a.js +0 -1
- package/assets/esri/core/workers/chunks/8d9d3797c6d62fdfff9d.js +0 -1
- package/assets/esri/core/workers/chunks/9f21436016ff7a899e79.js +0 -1
- package/assets/esri/core/workers/chunks/a5a67216e0d0cee95a55.js +0 -1
- package/assets/esri/core/workers/chunks/d48af7bc06b4bb176534.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2869],{37838:(t,e,o)=>{o.d(e,{A:()=>Ot});var i,r=o(31635),s=o(69540),n=o(7762),l=o(25482),a=o(4718),p=o(53966),d=o(74887),u=o(10107),c=o(79901),y=o(36005),h=o(64108),m=o(43937),g=o(56507),f=o(30524),v=o(89893),w=o(84424);o(44208);let C=i=class extends w.A{constructor(t){super(t),this.creator=null,this.destroyer=null,this.outFields=null,this.type="custom"}clone(){return new i({creator:this.creator,destroyer:this.destroyer,outFields:Array.isArray(this.outFields)?(0,a.o8)(this.outFields):null})}};var M;(0,r.Cg)([(0,u.MZ)()],C.prototype,"creator",void 0),(0,r.Cg)([(0,u.MZ)()],C.prototype,"destroyer",void 0),(0,r.Cg)([(0,u.MZ)()],C.prototype,"outFields",void 0),(0,r.Cg)([(0,u.MZ)({type:["custom"],readOnly:!0})],C.prototype,"type",void 0),C=i=(0,r.Cg)([(0,h.$)("esri.popup.content.CustomContent")],C),o(87811);let x=M=class extends l.o{constructor(t){super(t),this.title=null,this.expression=null,this.returnType="dictionary"}clone(){return new M({title:this.title,expression:this.expression})}};(0,r.Cg)([(0,u.MZ)({type:String,json:{write:!0}})],x.prototype,"title",void 0),(0,r.Cg)([(0,u.MZ)({type:String,json:{write:!0}})],x.prototype,"expression",void 0),(0,r.Cg)([(0,u.MZ)({type:["dictionary"],readOnly:!0,json:{read:!1,write:!0}})],x.prototype,"returnType",void 0),x=M=(0,r.Cg)([(0,h.$)("esri.popup.ElementExpressionInfo")],x);const F=x;var Z;let I=Z=class extends w.A{constructor(t){super(t),this.expressionInfo=null,this.type="expression"}clone(){return new Z({expressionInfo:this.expressionInfo?.clone()})}};(0,r.Cg)([(0,u.MZ)({type:F,json:{write:!0}})],I.prototype,"expressionInfo",void 0),(0,r.Cg)([(0,u.MZ)({type:["expression"],readOnly:!0,json:{read:!1,write:!0}})],I.prototype,"type",void 0),I=Z=(0,r.Cg)([(0,h.$)("esri.popup.content.ExpressionContent")],I);var j=o(66159);let A=class extends l.o{constructor(t){super(t),this.altText=null,this.caption="",this.title="",this.type=null}};(0,r.Cg)([(0,u.MZ)({type:String,json:{write:!0}})],A.prototype,"altText",void 0),(0,r.Cg)([(0,u.MZ)({type:String,json:{write:!0}})],A.prototype,"caption",void 0),(0,r.Cg)([(0,u.MZ)({type:String,json:{write:!0}})],A.prototype,"title",void 0),(0,r.Cg)([(0,u.MZ)({type:["image","bar-chart","column-chart","line-chart","pie-chart"],readOnly:!0,json:{read:!1,write:!0}})],A.prototype,"type",void 0),A=(0,r.Cg)([(0,h.$)("esri.popup.content.mixins.MediaInfo")],A);var b,N=o(68197),S=o(69622);let R=b=class extends S.A{constructor(t){super(t),this.color=null,this.fieldName=null,this.tooltip=null,this.value=null}clone(){return new b({color:this.color?.clone(),fieldName:this.fieldName,tooltip:this.tooltip,value:this.value})}};(0,r.Cg)([(0,u.MZ)()],R.prototype,"color",void 0),(0,r.Cg)([(0,u.MZ)()],R.prototype,"fieldName",void 0),(0,r.Cg)([(0,u.MZ)()],R.prototype,"tooltip",void 0),(0,r.Cg)([(0,u.MZ)()],R.prototype,"value",void 0),R=b=(0,r.Cg)([(0,h.$)("esri.popup.content.support.ChartMediaInfoValueSeries")],R);const _=R;var O;let T=O=class extends l.o{constructor(t){super(t),this.colors=null,this.fields=[],this.normalizeField=null,this.series=[],this.tooltipField=null}clone(){return new O({colors:(0,a.o8)(this.colors),fields:(0,a.o8)(this.fields),normalizeField:this.normalizeField,series:(0,a.o8)(this.series),tooltipField:this.tooltipField})}};(0,r.Cg)([(0,u.MZ)({type:[N.A],json:{type:[[g.jz]],write:!0}})],T.prototype,"colors",void 0),(0,r.Cg)([(0,u.MZ)({type:[String],json:{write:{isRequired:!0}}})],T.prototype,"fields",void 0),(0,r.Cg)([(0,u.MZ)({type:String,json:{write:!0}})],T.prototype,"normalizeField",void 0),(0,r.Cg)([(0,u.MZ)({type:[_],json:{read:!1}})],T.prototype,"series",void 0),(0,r.Cg)([(0,u.MZ)({type:String,json:{write:!0}})],T.prototype,"tooltipField",void 0),T=O=(0,r.Cg)([(0,h.$)("esri.popup.content.support.ChartMediaInfoValue")],T);const $=T;let E=class extends A{constructor(t){super(t),this.type=null,this.value=void 0}};(0,r.Cg)([(0,u.MZ)({type:["bar-chart","column-chart","line-chart","pie-chart"],readOnly:!0,json:{read:!1,write:!0}})],E.prototype,"type",void 0),(0,r.Cg)([(0,u.MZ)({type:$,json:{write:{isRequired:!0}}})],E.prototype,"value",void 0),E=(0,r.Cg)([(0,h.$)("esri.popup.content.mixins.ChartMediaInfo")],E);const B=(0,o(66552).O)()({barchart:"bar-chart",columnchart:"column-chart",linechart:"line-chart",piechart:"pie-chart"});var k;let J=k=class extends E{constructor(t){super(t),this.type="bar-chart"}clone(){return new k({altText:this.altText,title:this.title,caption:this.caption,value:this.value?.clone()})}};var q;(0,r.Cg)([(0,u.MZ)({type:["bar-chart"],readOnly:!0,json:{type:["barchart"],read:!1,write:{writer:B.write,isRequired:!0}}})],J.prototype,"type",void 0),J=k=(0,r.Cg)([(0,h.$)("esri.popup.content.BarChartMediaInfo")],J);let D=q=class extends E{constructor(t){super(t),this.type="column-chart"}clone(){return new q({altText:this.altText,title:this.title,caption:this.caption,value:this.value?.clone()})}};var U;(0,r.Cg)([(0,u.MZ)({type:["column-chart"],readOnly:!0,json:{type:["columnchart"],read:!1,write:{writer:B.write,isRequired:!0}}})],D.prototype,"type",void 0),D=q=(0,r.Cg)([(0,h.$)("esri.popup.content.ColumnChartMediaInfo")],D);let L=U=class extends l.o{constructor(t){super(t),this.linkURL=null,this.sourceURL=null}clone(){return new U({linkURL:this.linkURL,sourceURL:this.sourceURL})}};(0,r.Cg)([(0,u.MZ)({type:String,json:{write:!0}})],L.prototype,"linkURL",void 0),(0,r.Cg)([(0,u.MZ)({type:String,json:{write:{isRequired:!0}}})],L.prototype,"sourceURL",void 0),L=U=(0,r.Cg)([(0,h.$)("esri.popup.content.support.ImageMediaInfoValue")],L);const W=L;var z;let P=z=class extends A{constructor(t){super(t),this.refreshInterval=0,this.type="image",this.value=void 0}clone(){return new z({altText:this.altText,title:this.title,caption:this.caption,refreshInterval:this.refreshInterval,value:this.value?.clone()})}};var K;(0,r.Cg)([(0,u.MZ)({type:Number,json:{write:!0}})],P.prototype,"refreshInterval",void 0),(0,r.Cg)([(0,u.MZ)({type:["image"],readOnly:!0,json:{read:!1,write:{isRequired:!0}}})],P.prototype,"type",void 0),(0,r.Cg)([(0,u.MZ)({type:W,json:{write:{isRequired:!0}}})],P.prototype,"value",void 0),P=z=(0,r.Cg)([(0,h.$)("esri.popup.content.ImageMediaInfo")],P);let G=K=class extends E{constructor(t){super(t),this.type="line-chart"}clone(){return new K({altText:this.altText,title:this.title,caption:this.caption,value:this.value?.clone()})}};var V;(0,r.Cg)([(0,u.MZ)({type:["line-chart"],readOnly:!0,json:{type:["linechart"],read:!1,write:{writer:B.write,isRequired:!0}}})],G.prototype,"type",void 0),G=K=(0,r.Cg)([(0,h.$)("esri.popup.content.LineChartMediaInfo")],G);let H=V=class extends E{constructor(t){super(t),this.type="pie-chart"}clone(){return new V({altText:this.altText,title:this.title,caption:this.caption,value:this.value?.clone()})}};(0,r.Cg)([(0,u.MZ)({type:["pie-chart"],readOnly:!0,json:{type:["piechart"],read:!1,write:{writer:B.write,isRequired:!0}}})],H.prototype,"type",void 0),H=V=(0,r.Cg)([(0,h.$)("esri.popup.content.PieChartMediaInfo")],H);const X={base:A,key:"type",defaultKeyValue:"image",typeMap:{"bar-chart":J,"column-chart":D,"line-chart":G,"pie-chart":H,image:P}};var Q;let Y=Q=class extends w.A{constructor(t){super(t),this.activeMediaInfoIndex=null,this.attributes=null,this.description=null,this.mediaInfos=null,this.title=null,this.type="media"}readMediaInfos(t){return t&&t.map(t=>"image"===t.type?P.fromJSON(t):"barchart"===t.type?J.fromJSON(t):"columnchart"===t.type?D.fromJSON(t):"linechart"===t.type?G.fromJSON(t):"piechart"===t.type?H.fromJSON(t):void 0).filter(Boolean)}writeMediaInfos(t,e){e.mediaInfos=t&&t.map(t=>t.toJSON())}clone(){return new Q((0,a.o8)({activeMediaInfoIndex:this.activeMediaInfoIndex,attributes:this.attributes,description:this.description,mediaInfos:this.mediaInfos,title:this.title}))}};(0,r.Cg)([(0,u.MZ)()],Y.prototype,"activeMediaInfoIndex",void 0),(0,r.Cg)([(0,u.MZ)({type:Object,json:{write:!0}})],Y.prototype,"attributes",void 0),(0,r.Cg)([(0,u.MZ)({type:String,json:{write:!0}})],Y.prototype,"description",void 0),(0,r.Cg)([(0,u.MZ)({types:[X]})],Y.prototype,"mediaInfos",void 0),(0,r.Cg)([(0,y.w)("mediaInfos")],Y.prototype,"readMediaInfos",null),(0,r.Cg)([(0,m.K)("mediaInfos")],Y.prototype,"writeMediaInfos",null),(0,r.Cg)([(0,u.MZ)({type:String,json:{write:!0}})],Y.prototype,"title",void 0),(0,r.Cg)([(0,u.MZ)({type:["media"],readOnly:!0,json:{read:!1,write:{isRequired:!0}}})],Y.prototype,"type",void 0),Y=Q=(0,r.Cg)([(0,h.$)("esri.popup.content.MediaContent")],Y);var tt=o(49852);let et=class extends((0,s.OU)(w.A)){constructor(t){super(t),this.description=null,this.displayCount=null,this.displayType="list",this.orderByFields=null,this.relationshipId=null,this.title=null,this.type="relationship"}};var ot;(0,r.Cg)([(0,u.MZ)({type:String,json:{write:!0}})],et.prototype,"description",void 0),(0,r.Cg)([(0,u.MZ)({type:Number,json:{type:g.jz,write:!0}})],et.prototype,"displayCount",void 0),(0,r.Cg)([(0,u.MZ)({type:["list"],json:{write:{isRequired:!0}}})],et.prototype,"displayType",void 0),(0,r.Cg)([(0,u.MZ)({type:[tt.A],json:{write:!0}})],et.prototype,"orderByFields",void 0),(0,r.Cg)([(0,u.MZ)({type:Number,json:{type:g.jz,write:{isRequired:!0}}})],et.prototype,"relationshipId",void 0),(0,r.Cg)([(0,u.MZ)({type:String,json:{write:!0}})],et.prototype,"title",void 0),(0,r.Cg)([(0,u.MZ)({type:["relationship"],readOnly:!0,json:{read:!1,write:{isRequired:!0}}})],et.prototype,"type",void 0),et=(0,r.Cg)([(0,h.$)("esri.popup.content.RelationshipContent")],et);let it=ot=class extends w.A{constructor(t){super(t),this.text=null,this.type="text"}clone(){return new ot({text:this.text})}};(0,r.Cg)([(0,u.MZ)({type:String,json:{write:!0}})],it.prototype,"text",void 0),(0,r.Cg)([(0,u.MZ)({type:["text"],readOnly:!0,json:{read:!1,write:{isRequired:!0}}})],it.prototype,"type",void 0),it=ot=(0,r.Cg)([(0,h.$)("esri.popup.content.TextContent")],it);var rt=o(93223),st=o(83342);let nt=class extends((0,s.OU)(w.A)){constructor(t){super(t),this.description=null,this.displayCount=null,this.title=null,this.associationTypes=[],this.type="utility-network-associations"}};(0,r.Cg)([(0,u.MZ)({type:String,json:{write:!0}})],nt.prototype,"description",void 0),(0,r.Cg)([(0,u.MZ)({type:Number,json:{type:g.jz,write:!0}})],nt.prototype,"displayCount",void 0),(0,r.Cg)([(0,u.MZ)({type:String,json:{write:!0}})],nt.prototype,"title",void 0),(0,r.Cg)([(0,u.MZ)({type:[st.A],json:{write:!0}})],nt.prototype,"associationTypes",void 0),(0,r.Cg)([(0,rt.e)({utilityNetworkAssociations:"utility-network-associations"})],nt.prototype,"type",void 0),nt=(0,r.Cg)([(0,h.$)("esri.popup.content.UtilityNetworkAssociationsContent")],nt);const lt={base:null,key:"type",typeMap:{attachment:v.A,media:Y,text:it,expression:I,field:j.A,relationship:et,utilityNetworkAssociations:nt}},at={base:null,key:"type",typeMap:{attachment:v.A,media:Y,text:it,expression:I,field:j.A,relationship:et}};var pt,dt=o(93705),ut=o(41227);let ct=pt=class extends l.o{constructor(t){super(t),this.returnTopmostRaster=null,this.showNoDataRecords=null}clone(){return new pt({showNoDataRecords:this.showNoDataRecords,returnTopmostRaster:this.returnTopmostRaster})}};(0,r.Cg)([(0,u.MZ)({type:Boolean,json:{write:!0}})],ct.prototype,"returnTopmostRaster",void 0),(0,r.Cg)([(0,u.MZ)({type:Boolean,json:{write:!0}})],ct.prototype,"showNoDataRecords",void 0),ct=pt=(0,r.Cg)([(0,h.$)("esri.popup.LayerOptions")],ct);const yt=ct;var ht;let mt=ht=class extends l.o{constructor(t){super(t),this.showRelatedRecords=null,this.orderByFields=null}clone(){return new ht({showRelatedRecords:this.showRelatedRecords,orderByFields:this.orderByFields?(0,a.o8)(this.orderByFields):null})}};(0,r.Cg)([(0,u.MZ)({type:Boolean,json:{write:!0}})],mt.prototype,"showRelatedRecords",void 0),(0,r.Cg)([(0,u.MZ)({type:[tt.A],json:{write:!0}})],mt.prototype,"orderByFields",void 0),mt=ht=(0,r.Cg)([(0,h.$)("esri.popup.RelatedRecordsInfo")],mt);const gt=mt;var ft,vt=o(4902);let wt=ft=class extends((0,vt.s)(S.A)){constructor(t){super(t),this.active=!1,this.className=null,this.disabled=!1,this.icon=null,this.id=null,this.indicator=!1,this.title=null,this.type=null,this.visible=!0}clone(){return new ft({active:this.active,className:this.className,disabled:this.disabled,icon:this.icon,id:this.id,indicator:this.indicator,title:this.title,visible:this.visible})}};(0,r.Cg)([(0,u.MZ)()],wt.prototype,"active",void 0),(0,r.Cg)([(0,u.MZ)()],wt.prototype,"className",void 0),(0,r.Cg)([(0,u.MZ)()],wt.prototype,"disabled",void 0),(0,r.Cg)([(0,u.MZ)()],wt.prototype,"icon",void 0),(0,r.Cg)([(0,u.MZ)()],wt.prototype,"id",void 0),(0,r.Cg)([(0,u.MZ)()],wt.prototype,"indicator",void 0),(0,r.Cg)([(0,u.MZ)()],wt.prototype,"title",void 0),(0,r.Cg)([(0,u.MZ)()],wt.prototype,"type",void 0),(0,r.Cg)([(0,u.MZ)()],wt.prototype,"visible",void 0),wt=ft=(0,r.Cg)([(0,h.$)("esri.support.actions.ActionBase")],wt);const Ct=wt;var Mt;let xt=Mt=class extends Ct{constructor(t){super(t),this.image=null,this.type="button"}clone(){return new Mt({active:this.active,className:this.className,disabled:this.disabled,icon:this.icon,id:this.id,indicator:this.indicator,title:this.title,visible:this.visible,image:this.image})}};(0,r.Cg)([(0,u.MZ)()],xt.prototype,"image",void 0),xt=Mt=(0,r.Cg)([(0,h.$)("esri.support.actions.ActionButton")],xt);const Ft=xt;var Zt;let It=Zt=class extends Ct{constructor(t){super(t),this.image=null,this.type="toggle",this.value=!1}clone(){return new Zt({active:this.active,className:this.className,disabled:this.disabled,icon:this.icon,id:this.id,indicator:this.indicator,title:this.title,visible:this.visible,image:this.image,value:this.value})}};(0,r.Cg)([(0,u.MZ)()],It.prototype,"image",void 0),(0,r.Cg)([(0,u.MZ)()],It.prototype,"value",void 0),It=Zt=(0,r.Cg)([(0,h.$)("esri.support.actions.ActionToggle")],It);const jt=It,At="relationships/",bt="expression/",Nt=n.A.ofType({key:"type",defaultKeyValue:"button",base:Ct,typeMap:{button:Ft,toggle:jt}}),St={base:w.A,key:"type",typeMap:{media:Y,custom:C,text:it,attachments:v.A,fields:j.A,expression:I,relationship:et,utilityNetworkAssociations:nt}},Rt=new Set(["attachments","fields","media","text","expression","relationship"]),_t=new Set([...Rt,"utility-network-associations"]);let Ot=class extends((0,s.OU)(l.o)){constructor(t){super(t),this.actions=null,this.content="",this.expressionInfos=null,this.fieldInfos=null,this.layerOptions=null,this.lastEditInfoEnabled=!0,this.outFields=null,this.overwriteActions=!1,this.returnGeometry=!1,this.title=""}castContent(t){return Array.isArray(t)?t.map(t=>(0,g.aq)(St,t)):"string"==typeof t||"function"==typeof t||t instanceof HTMLElement||(0,d.$X)(t)?t:(p.A.getLogger(this).error("content error","unsupported content value",{value:t}),null)}readContent(t,e){const{popupElements:o}=e;return Array.isArray(o)&&o.length>0?this._readPopupInfoElements(e.description,e.mediaInfos,o):this._readPopupInfo(e)}writeWebSceneContent(t,e,o,i){this._writePopupTemplateContent(t,e,i)}writeWebMapContent(t,e,o,i){this._writePopupTemplateContent(t,e,i)}writeFieldInfos(t,e,o,i){const{content:r}=this,s=Array.isArray(r)?r:null,{writeFieldFormat:n,...l}=i||{};if(t){const o=s?s.filter(t=>"fields"===t.type):[],i=o.length&&o.every(t=>t.fieldInfos?.length);e.fieldInfos=t.filter(Boolean).map(t=>{const e=t.toJSON(l);return i&&(e.visible=!1),e})}if(s)for(const t of s)"fields"===t.type&&this._writeFieldsContent(t,e,l)}writeLayerOptions(t,e,o,i){e[o]=!t||null===t.showNoDataRecords&&null===t.returnTopmostRaster?null:t.toJSON(i)}writeTitle(t,e){e.title=t||""}async collectRequiredFields(t,e,o){const i=this.expressionInfos||[];await this._collectExpressionInfoFields(t,e,o,[...i,...this._getContentExpressionInfos(this.content,i)]),(0,f._w)(t,e,[...this.outFields||[],...this._getActionsFields(this.actions),...this._getTitleFields(this.title),...this._getContentFields(this.content)])}async getRequiredFields(t,e){const o=new Set;return await this.collectRequiredFields(o,t,e),[...o].sort()}_writePopupTemplateContent(t,e,o){"string"!=typeof t?Array.isArray(t)&&(e.popupElements=t.filter(t=>"web-scene"===o?.origin?Rt.has(t.type):_t.has(t.type)).map(t=>t?.toJSON(o)),e.popupElements.forEach(t=>{"attachments"===t.type?this._writeAttachmentContent(e):"media"===t.type?this._writeMediaContent(t,e):"text"===t.type?this._writeTextContent(t,e):"relationship"===t.type&&this._writeRelationshipContent(t,e)})):e.description=t}_writeFieldsContent(t,e,o){const i=t.fieldInfos;if(!Array.isArray(i)||!i.length)return;const r=e.fieldInfos;if(Array.isArray(r))for(const t of i){const e=r.find(e=>e.fieldName?.toLowerCase()===t.fieldName?.toLowerCase());e?e.visible=!0:r.push(t.toJSON(o))}else e.fieldInfos=i.map(t=>t.toJSON(o))}_writeAttachmentContent(t){t.showAttachments||(t.showAttachments=!0)}_writeRelationshipContent(t,e){const o=t.orderByFields?.map(e=>this._toFieldOrderJSON(e,t.relationshipId))||[],i=[...e.relatedRecordsInfo?.orderByFields||[],...o];e.relatedRecordsInfo={showRelatedRecords:!0,...i?.length&&{orderByFields:i}}}_writeTextContent(t,e){!e.description&&t.text&&(e.description=t.text)}_writeMediaContent(t,e){if(!Array.isArray(t.mediaInfos)||!t.mediaInfos.length)return;const o=(0,a.o8)(t.mediaInfos);Array.isArray(e.mediaInfos)?e.mediaInfos=[...e.mediaInfos,...o]:e.mediaInfos=o}_readPopupInfoElements(t,e,o){const i={description:!1,mediaInfos:!1};return o.map(o=>"media"===o.type?(o.mediaInfos||!e||i.mediaInfos||(o.mediaInfos=e,i.mediaInfos=!0),Y.fromJSON(o)):"text"===o.type?(o.text||!t||i.description||(o.text=t,i.description=!0),it.fromJSON(o)):"attachments"===o.type?v.A.fromJSON(o):"fields"===o.type?j.A.fromJSON(o):"expression"===o.type?I.fromJSON(o):"relationship"===o.type?et.fromJSON(o):"utilityNetworkAssociations"===o.type?nt.fromJSON(o):void 0).filter(Boolean)}_toRelationshipContent(t){const{field:e,order:o}=t;if(!e?.startsWith(At))return null;const i=e.replace(At,"").split("/");if(2!==i.length)return null;const r=parseInt(i[0],10),s=i[1];return!Number.isNaN(r)&&s?et.fromJSON({relationshipId:r,orderByFields:[{field:s,order:o}]}):null}_toFieldOrderJSON(t,e){const{order:o,field:i}=t;return{field:`${At}${e}/${i}`,order:o}}_readPopupInfo({description:t,mediaInfos:e,showAttachments:o,relatedRecordsInfo:i={showRelatedRecords:!1}}){const r=[];t?r.push(new it({text:t})):r.push(new j.A),Array.isArray(e)&&e.length&&r.push(Y.fromJSON({mediaInfos:e})),o&&r.push(v.A.fromJSON({displayType:"auto"}));const{showRelatedRecords:s,orderByFields:n}=i;return s&&n?.length&&n.forEach(t=>{const e=this._toRelationshipContent(t);e&&r.push(e)}),r.length?r:t}_getContentElementFields(t){const e=t?.type;if("attachments"===e)return[...this._extractFieldNames(t.title),...this._extractFieldNames(t.description)];if("custom"===e)return t.outFields||[];if("fields"===e)return[...this._extractFieldNames(t.title),...this._extractFieldNames(t.description),...this._getFieldInfoFields(t.fieldInfos??this.fieldInfos)];if("media"===e){const e=t.mediaInfos||[];return[...this._extractFieldNames(t.title),...this._extractFieldNames(t.description),...e.reduce((t,e)=>[...t,...this._getMediaInfoFields(e)],[])]}return"text"===e?this._extractFieldNames(t.text):"relationship"===e||"utility-network-associations"===e?[...this._extractFieldNames(t.title),...this._extractFieldNames(t.description)]:[]}_getMediaInfoFields(t){const{caption:e,title:o,value:i}=t,r=i||{},{fields:s,normalizeField:n,tooltipField:l,sourceURL:a,linkURL:p}=r,d=[...this._extractFieldNames(o),...this._extractFieldNames(e),...this._extractFieldNames(a),...this._extractFieldNames(p),...s??[]];return n&&d.push(n),l&&d.push(l),d}_getContentExpressionInfos(t,e){return Array.isArray(t)?t.reduce((t,e)=>[...t,..."expression"===e.type&&e.expressionInfo?[e.expressionInfo]:[]],e):[]}_getContentFields(t){return"string"==typeof t?this._extractFieldNames(t):Array.isArray(t)?t.reduce((t,e)=>[...t,...this._getContentElementFields(e)],[]):[]}async _collectExpressionInfoFields(t,e,o,i){i&&await Promise.all(i.map(i=>(0,f.Dx)(t,e,o,i.expression)))}_getFieldInfoFields(t){return t?t.filter(({fieldName:t,visible:e})=>!(void 0!==e&&!e||!t||t.startsWith(At)||t.startsWith(bt))).map(t=>t.fieldName):[]}_getActionsFields(t){return t?t.toArray().reduce((t,e)=>[...t,...this._getActionFields(e)],[]):[]}_getActionFields(t){const{className:e,title:o,type:i}=t,r="button"===i||"toggle"===i?t.image:"";return[...this._extractFieldNames(o),...this._extractFieldNames(e),...this._extractFieldNames(r)]}_getTitleFields(t){return"string"==typeof t?this._extractFieldNames(t):[]}_extractFieldNames(t){return(0,f.nw)(t).filter(t=>!(t.startsWith(At)||t.startsWith(bt)))}};(0,r.Cg)([(0,u.MZ)({type:Nt})],Ot.prototype,"actions",void 0),(0,r.Cg)([(0,u.MZ)()],Ot.prototype,"content",void 0),(0,r.Cg)([(0,c.w)("content")],Ot.prototype,"castContent",null),(0,r.Cg)([(0,y.w)("content",["description","fieldInfos","popupElements","mediaInfos","showAttachments","relatedRecordsInfo"])],Ot.prototype,"readContent",null),(0,r.Cg)([(0,m.K)("web-scene","content",{popupElements:{type:n.A.ofType(at)},showAttachments:{type:Boolean},mediaInfos:{type:n.A.ofType(X)},description:{type:String},relatedRecordsInfo:{type:gt}})],Ot.prototype,"writeWebSceneContent",null),(0,r.Cg)([(0,m.K)("content",{popupElements:{type:n.A.ofType(lt)},showAttachments:{type:Boolean},mediaInfos:{type:n.A.ofType(X)},description:{type:String},relatedRecordsInfo:{type:gt}})],Ot.prototype,"writeWebMapContent",null),(0,r.Cg)([(0,u.MZ)({type:[dt.A],json:{write:!0}})],Ot.prototype,"expressionInfos",void 0),(0,r.Cg)([(0,u.MZ)({type:[ut.A]})],Ot.prototype,"fieldInfos",void 0),(0,r.Cg)([(0,m.K)("fieldInfos")],Ot.prototype,"writeFieldInfos",null),(0,r.Cg)([(0,u.MZ)({type:yt})],Ot.prototype,"layerOptions",void 0),(0,r.Cg)([(0,m.K)("layerOptions")],Ot.prototype,"writeLayerOptions",null),(0,r.Cg)([(0,u.MZ)({type:Boolean,json:{read:{source:"showLastEditInfo"},write:{target:"showLastEditInfo"},default:!0}})],Ot.prototype,"lastEditInfoEnabled",void 0),(0,r.Cg)([(0,u.MZ)()],Ot.prototype,"outFields",void 0),(0,r.Cg)([(0,u.MZ)()],Ot.prototype,"overwriteActions",void 0),(0,r.Cg)([(0,u.MZ)()],Ot.prototype,"returnGeometry",void 0),(0,r.Cg)([(0,u.MZ)({json:{type:String}})],Ot.prototype,"title",void 0),(0,r.Cg)([(0,m.K)("title")],Ot.prototype,"writeTitle",null),Ot=(0,r.Cg)([(0,h.$)("esri.PopupTemplate")],Ot)},39663:(t,e,o)=>{o.d(e,{$P:()=>E,HK:()=>w,PK:()=>N,fg:()=>v,qH:()=>C});var i=o(31635),r=o(10107),s=o(64108),n=o(69540),l=o(25482);let a=class extends((0,n.OU)(l.o)){constructor(t){super(t),this.type=null}};(0,i.Cg)([(0,r.MZ)({type:["date-time","number"],nonNullable:!0,readOnly:!0,json:{read:!1,write:{isRequired:!0}}})],a.prototype,"type",void 0),a=(0,i.Cg)([(0,s.$)("esri.layers.support.FieldFormat")],a);const p="auto";let d=class extends a{constructor(t){super(t),this.dateStyle=null,this.hour12=p,this.month=null,this.timeStyle=null,this.type="date-time",this.year=null}};(0,i.Cg)([(0,r.MZ)({type:["full","long","medium","short"],json:{write:!0}})],d.prototype,"dateStyle",void 0),(0,i.Cg)([(0,r.MZ)({type:["always","auto","never"],nonNullable:!0,json:{default:p,write:!0}})],d.prototype,"hour12",void 0),(0,i.Cg)([(0,r.MZ)({type:["long","short"],json:{write:!0}})],d.prototype,"month",void 0),(0,i.Cg)([(0,r.MZ)({type:["full","long","medium","short"],json:{write:!0}})],d.prototype,"timeStyle",void 0),(0,i.Cg)([(0,r.MZ)({type:["date-time"]})],d.prototype,"type",void 0),(0,i.Cg)([(0,r.MZ)({type:["numeric"],json:{write:!0}})],d.prototype,"year",void 0),d=(0,i.Cg)([(0,s.$)("esri.layers.support.DateTimeFieldFormat")],d);var u=o(30524),c=o(56507);const y={min:0,max:20},h="decimal",m="auto";let g=class extends a{constructor(t){super(t),this.maximumFractionDigits=3,this.minimumFractionDigits=0,this.style=h,this.type="number",this.useGrouping=m}};(0,i.Cg)([(0,r.MZ)({type:c.jz,nonNullable:!0,range:y,json:{default:3,write:!0}})],g.prototype,"maximumFractionDigits",void 0),(0,i.Cg)([(0,r.MZ)({type:c.jz,nonNullable:!0,range:y,json:{default:0,write:!0}})],g.prototype,"minimumFractionDigits",void 0),(0,i.Cg)([(0,r.MZ)({type:["decimal"],nonNullable:!0,json:{default:h,write:!0}})],g.prototype,"style",void 0),(0,i.Cg)([(0,r.MZ)({type:["number"]})],g.prototype,"type",void 0),(0,i.Cg)([(0,r.MZ)({type:["always","auto","never"],nonNullable:!0,json:{default:m,write:!0}})],g.prototype,"useGrouping",void 0),g=(0,i.Cg)([(0,s.$)("esri.layers.support.NumberFieldFormat")],g);var f=o(68780);const v={base:a,key:"type",errorContext:"field-configuration-field-format",typeMap:{"date-time":d,number:g}};function w(t,e){const{dateFormat:o}=t;if(!e)return o?F(t):x(t);if(!C(e))return;const i={hour12:"always"};switch(e.type){case"integer":case"small-integer":case"big-integer":case"long":return M(t);case"single":case"double":return x(t);case"date":case"timestamp-offset":return o?F(t):E(e,i);case"date-only":return o?function(t){return new d({dateStyle:Z(t),year:b(t),month:j(t)})}(t):E(e);case"time-only":return o?function(t){return new d({timeStyle:A(t),hour12:I(t)})}(t):E(e,i)}}function C(t){return(0,u.WA)(t)||(0,u.vE)(t)||(0,u.zD)(t)||(0,u.OH)(t)||(0,u.Ah)(t)}function M(t){return new g({useGrouping:t.digitSeparator?"always":"never"})}function x(t){const e=M(t);return e.maximumFractionDigits=e.minimumFractionDigits=t.places??2,e}function F(t){return new d({dateStyle:Z(t),year:b(t),month:j(t),timeStyle:A(t),hour12:I(t)})}function Z(t){const{dateFormat:e}=t;return e?e.startsWith("short-date")?"short":e.startsWith("day-short-month-year")?"medium":e.startsWith("long-month-day-year")?"long":e.startsWith("long-date")?"full":null:null}function I(t){return t.dateFormat?.endsWith("-24")?"never":"always"}function j(t){switch(t.dateFormat){case"short-month-year":return"short";case"long-month-year":return"long";default:return null}}function A(t){const{dateFormat:e}=t;return e?e.includes("short-time")?"short":e.includes("long-time")?"medium":null:null}function b(t){switch(t.dateFormat){case"short-month-year":case"long-month-year":case"year":return"numeric";default:return null}}function N(t,e){const o="number"===t.type,i="date-time"===t.type;if(!e)return o?R(t):i?_(t):null;if(C(e))switch(e.type){case"integer":case"small-integer":case"big-integer":case"long":return o?S(t):null;case"single":case"double":return o?R(t):null;case"date":case"timestamp-offset":return i?_(t):null;case"date-only":return i?function(t){let e;const o=O(t),i="numeric"===t.year?"year":null,r=$(t);return o?e=o:i&&r?e=`${r}-${i}`:i&&(e=i),e?new f.A({dateFormat:e}):null}(t):null;case"time-only":return i?function(t){let e;const o=T(t),i="never"===t.hour12?"24":null;return o&&i?e=`short-date-${o}-${i}`:o&&(e=`short-date-${o}`),e?new f.A({dateFormat:e}):null}(t):null}}function S(t){return new f.A({digitSeparator:"never"!==t.useGrouping})}function R(t){const e=S(t);return e.places=t.maximumFractionDigits,e}function _(t){let e;const o=O(t),i=T(t),r="never"===t.hour12?"24":null,s="numeric"===t.year?"year":null,n=$(t);return o&&i&&r?e=`${o}-${i}-${r}`:o&&i?e=`${o}-${i}`:o?e=o:s&&n?e=`${n}-${s}`:s&&(e=s),e?new f.A({dateFormat:e}):null}function O(t){switch(t.dateStyle){case"short":return"short-date";case"medium":return"day-short-month-year";case"long":return"long-month-day-year";case"full":return"long-date";default:return}}function T(t){return t.timeStyle&&("short"===t.timeStyle?"short-time":"long-time")}function $(t){switch(t.month){case"short":return"short-month";case"long":return"long-month";default:return}}function E(t,e){if(!C(t))return;const o=e?.useGrouping??"auto",i=e?.hour12??"auto";switch(t.type){case"integer":case"small-integer":case"big-integer":case"long":return new g({maximumFractionDigits:0,minimumFractionDigits:0,useGrouping:o});case"single":case"double":return new g({maximumFractionDigits:2,minimumFractionDigits:0,useGrouping:o});case"date":case"timestamp-offset":return new d({dateStyle:"short",timeStyle:"short",hour12:i});case"date-only":return new d({dateStyle:"short"});case"time-only":return new d({timeStyle:"short",hour12:i})}}},41227:(t,e,o)=>{o.d(e,{A:()=>y});var i=o(31635),r=o(69540),s=o(66552),n=o(25482),l=o(10107),a=(o(44208),o(53966),o(87811),o(93223)),p=o(36005),d=o(64108),u=o(39663),c=o(68780);let y=class extends((0,r.OU)(n.o)){constructor(t){super(t),this.fieldName=null,this.isEditable=!0,this.label=null,this.statisticType=null,this.stringFieldOption="text-box",this.tooltip=null,this.visible=!0}set fieldFormat(t){this._set("fieldFormat",t),this._set("format",t?(0,u.PK)(t):null)}set format(t){this._set("format",t),this._set("fieldFormat",t?(0,u.HK)(t):null)}readFormat(t,e){if(!e.fieldFormat)return t?c.A.fromJSON(t):null}clone(){const t=super.clone();return t._set("format",this.format?.clone()),t._set("fieldFormat",this.fieldFormat?.clone()),t}};(0,i.Cg)([(0,l.MZ)({value:null,clonable:!1,types:u.fg,json:{write:{overridePolicy(t,e,o){const{fieldName:i}=this;return{enabled:!(!i||i.startsWith("expression/")||i.startsWith("relationships/")||!o?.writeFieldFormat)}}}}})],y.prototype,"fieldFormat",null),(0,i.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],y.prototype,"fieldName",void 0),(0,i.Cg)([(0,l.MZ)({value:null,clonable:!1,type:c.A,json:{write:!0}})],y.prototype,"format",null),(0,i.Cg)([(0,p.w)("format")],y.prototype,"readFormat",null),(0,i.Cg)([(0,l.MZ)({type:Boolean,json:{write:{alwaysWriteDefaults:!0},default:!0}})],y.prototype,"isEditable",void 0),(0,i.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],y.prototype,"label",void 0),(0,i.Cg)([(0,l.MZ)({type:["count","sum","min","max","avg","stddev","var"],json:{write:!0}})],y.prototype,"statisticType",void 0),(0,i.Cg)([(0,a.e)(new s.J({richtext:"rich-text",textarea:"text-area",textbox:"text-box"}),{default:"text-box"})],y.prototype,"stringFieldOption",void 0),(0,i.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],y.prototype,"tooltip",void 0),(0,i.Cg)([(0,l.MZ)({type:Boolean,json:{write:!0}})],y.prototype,"visible",void 0),y=(0,i.Cg)([(0,d.$)("esri.popup.FieldInfo")],y)},49852:(t,e,o)=>{o.d(e,{A:()=>p});var i,r=o(31635),s=o(25482),n=o(10107),l=(o(44208),o(53966),o(87811),o(64108));let a=i=class extends s.o{constructor(t){super(t),this.field=null,this.order=null}clone(){return new i({field:this.field,order:this.order})}};(0,r.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],a.prototype,"field",void 0),(0,r.Cg)([(0,n.MZ)({type:["asc","desc"],json:{write:!0}})],a.prototype,"order",void 0),a=i=(0,r.Cg)([(0,l.$)("esri.popup.support.RelatedRecordsInfoFieldOrder")],a);const p=a},60950:(t,e,o)=>{o.d(e,{E_:()=>r,ym:()=>i});const i=Symbol("popupProvider");function r(t){return function(t){return!!t&&i in t}(t)?t[i]:null}},66159:(t,e,o)=>{o.d(e,{A:()=>d});var i,r=o(31635),s=o(4718),n=o(10107),l=(o(44208),o(53966),o(64108)),a=o(41227),p=o(84424);let d=i=class extends p.A{constructor(t){super(t),this.attributes=null,this.description=null,this.fieldInfos=null,this.title=null,this.type="fields"}clone(){return new i((0,s.o8)({attributes:this.attributes,description:this.description,fieldInfos:this.fieldInfos,title:this.title}))}};(0,r.Cg)([(0,n.MZ)({type:Object,json:{write:!0}})],d.prototype,"attributes",void 0),(0,r.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],d.prototype,"description",void 0),(0,r.Cg)([(0,n.MZ)({type:[a.A],json:{write:!0}})],d.prototype,"fieldInfos",void 0),(0,r.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],d.prototype,"title",void 0),(0,r.Cg)([(0,n.MZ)({type:["fields"],readOnly:!0,json:{read:!1,write:{isRequired:!0}}})],d.prototype,"type",void 0),d=i=(0,r.Cg)([(0,l.$)("esri.popup.content.FieldsContent")],d)},68780:(t,e,o)=>{o.d(e,{A:()=>u});var i=o(31635),r=o(69540),s=o(25482),n=o(10107),l=o(56507),a=(o(44208),o(87811),o(93223)),p=o(64108),d=o(97770);let u=class extends((0,r.OU)(s.o)){constructor(t){super(t),this.dateFormat=null,this.digitSeparator=!1,this.places=null}};(0,i.Cg)([(0,a.e)(d._v)],u.prototype,"dateFormat",void 0),(0,i.Cg)([(0,n.MZ)({type:Boolean,json:{write:!0}})],u.prototype,"digitSeparator",void 0),(0,i.Cg)([(0,n.MZ)({type:l.jz,json:{write:!0}})],u.prototype,"places",void 0),u=(0,i.Cg)([(0,p.$)("esri.popup.support.FieldInfoFormat")],u)},78553:(t,e,o)=>{o.d(e,{D:()=>s,p:()=>r});var i=o(56507);function r(t){const e=(0,i.Vr)(100*(1-t));return Math.max(0,Math.min(e,100))}function s(t){const e=1-t/100;return Math.max(0,Math.min(e,1))}},83342:(t,e,o)=>{o.d(e,{A:()=>d});var i=o(31635),r=o(69540),s=o(25482),n=o(10107),l=o(56507),a=(o(44208),o(87811),o(64108));let p=class extends((0,r.OU)(s.o)){constructor(t){super(t),this.title=null,this.description=null,this.type=null,this.associatedNetworkSourceId=null,this.associatedAssetGroup=null,this.associatedAssetType=null}};(0,i.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],p.prototype,"title",void 0),(0,i.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],p.prototype,"description",void 0),(0,i.Cg)([(0,n.MZ)({type:["attachment","connectivity","container","content","structure"],json:{write:!0}})],p.prototype,"type",void 0),(0,i.Cg)([(0,n.MZ)({type:Number,json:{type:l.jz,write:!0}})],p.prototype,"associatedNetworkSourceId",void 0),(0,i.Cg)([(0,n.MZ)({type:Number,json:{type:l.jz,write:!0}})],p.prototype,"associatedAssetGroup",void 0),(0,i.Cg)([(0,n.MZ)({type:Number,json:{type:l.jz,write:!0}})],p.prototype,"associatedAssetType",void 0),p=(0,i.Cg)([(0,a.$)("esri.popup.support.UtilityNetworkAssociationType")],p);const d=p},84424:(t,e,o)=>{o.d(e,{A:()=>l});var i=o(31635),r=o(25482),s=o(10107),n=(o(44208),o(53966),o(87811),o(64108));let l=class extends r.o{constructor(t){super(t),this.type=null}};(0,i.Cg)([(0,s.MZ)({type:["attachments","custom","fields","media","text","expression","relationship","utility-network-associations"],readOnly:!0,json:{read:!1,write:!0}})],l.prototype,"type",void 0),l=(0,i.Cg)([(0,n.$)("esri.popup.content.Content")],l)},89893:(t,e,o)=>{o.d(e,{A:()=>y});var i=o(31635),r=o(69540),s=o(10107),n=(o(44208),o(53966),o(87811),o(64108)),l=o(84424),a=o(66552),p=o(25482);const d=new a.J({asc:"ascending",desc:"descending"});let u=class extends((0,r.OU)(p.o)){constructor(t){super(t),this.field=null,this.order="ascending"}};(0,i.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],u.prototype,"field",void 0),(0,i.Cg)([(0,s.MZ)({type:d.apiValues,json:{type:d.jsonValues,read:d.read,write:d.write}})],u.prototype,"order",void 0),u=(0,i.Cg)([(0,n.$)("esri.popup.support.AttachmentsOrderByInfo")],u);const c=u;let y=class extends((0,r.OU)(l.A)){constructor(t){super(t),this.attachmentKeywords=null,this.attachmentTypes=null,this.description=null,this.displayType="auto",this.orderByFields=null,this.title=null,this.type="attachments"}};(0,i.Cg)([(0,s.MZ)({type:[String],json:{write:!0}})],y.prototype,"attachmentKeywords",void 0),(0,i.Cg)([(0,s.MZ)({type:[["application","audio","image","model","text","video"]],json:{write:!0}})],y.prototype,"attachmentTypes",void 0),(0,i.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],y.prototype,"description",void 0),(0,i.Cg)([(0,s.MZ)({type:["auto","preview","list"],json:{write:!0}})],y.prototype,"displayType",void 0),(0,i.Cg)([(0,s.MZ)({type:[c],json:{write:!0}})],y.prototype,"orderByFields",void 0),(0,i.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],y.prototype,"title",void 0),(0,i.Cg)([(0,s.MZ)({type:["attachments"],readOnly:!0,json:{read:!1,write:{isRequired:!0}}})],y.prototype,"type",void 0),y=(0,i.Cg)([(0,n.$)("esri.popup.content.AttachmentsContent")],y)},93705:(t,e,o)=>{o.d(e,{A:()=>a});var i,r=o(31635),s=o(25482),n=o(10107),l=(o(44208),o(53966),o(87811),o(64108));let a=i=class extends s.o{constructor(t){super(t),this.name=null,this.title=null,this.expression=null,this.returnType=null}clone(){return new i({name:this.name,title:this.title,expression:this.expression,returnType:this.returnType})}};(0,r.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],a.prototype,"name",void 0),(0,r.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],a.prototype,"title",void 0),(0,r.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],a.prototype,"expression",void 0),(0,r.Cg)([(0,n.MZ)({type:["string","number"],json:{write:!0}})],a.prototype,"returnType",void 0),a=i=(0,r.Cg)([(0,l.$)("esri.popup.ExpressionInfo")],a)}}]);
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2869],{37838:(t,e,o)=>{o.d(e,{A:()=>Ot});var i,r=o(31635),s=o(69540),n=o(7762),l=o(25482),a=o(4718),p=o(53966),d=o(74887),u=o(10107),c=o(79901),y=o(36005),h=o(64108),m=o(43937),g=o(56507),f=o(30524),v=o(89893),w=o(84424);o(44208);let C=i=class extends w.A{constructor(t){super(t),this.creator=null,this.destroyer=null,this.outFields=null,this.type="custom"}clone(){return new i({creator:this.creator,destroyer:this.destroyer,outFields:Array.isArray(this.outFields)?(0,a.o8)(this.outFields):null})}};var M;(0,r.Cg)([(0,u.MZ)()],C.prototype,"creator",void 0),(0,r.Cg)([(0,u.MZ)()],C.prototype,"destroyer",void 0),(0,r.Cg)([(0,u.MZ)()],C.prototype,"outFields",void 0),(0,r.Cg)([(0,u.MZ)({type:["custom"],readOnly:!0})],C.prototype,"type",void 0),C=i=(0,r.Cg)([(0,h.$)("esri.popup.content.CustomContent")],C),o(87811);let x=M=class extends l.o{constructor(t){super(t),this.title=null,this.expression=null,this.returnType="dictionary"}clone(){return new M({title:this.title,expression:this.expression})}};(0,r.Cg)([(0,u.MZ)({type:String,json:{write:!0}})],x.prototype,"title",void 0),(0,r.Cg)([(0,u.MZ)({type:String,json:{write:!0}})],x.prototype,"expression",void 0),(0,r.Cg)([(0,u.MZ)({type:["dictionary"],readOnly:!0,json:{read:!1,write:!0}})],x.prototype,"returnType",void 0),x=M=(0,r.Cg)([(0,h.$)("esri.popup.ElementExpressionInfo")],x);const F=x;var Z;let I=Z=class extends w.A{constructor(t){super(t),this.expressionInfo=null,this.type="expression"}clone(){return new Z({expressionInfo:this.expressionInfo?.clone()})}};(0,r.Cg)([(0,u.MZ)({type:F,json:{write:!0}})],I.prototype,"expressionInfo",void 0),(0,r.Cg)([(0,u.MZ)({type:["expression"],readOnly:!0,json:{read:!1,write:!0}})],I.prototype,"type",void 0),I=Z=(0,r.Cg)([(0,h.$)("esri.popup.content.ExpressionContent")],I);var j=o(66159);let A=class extends l.o{constructor(t){super(t),this.altText=null,this.caption="",this.title="",this.type=null}};(0,r.Cg)([(0,u.MZ)({type:String,json:{write:!0}})],A.prototype,"altText",void 0),(0,r.Cg)([(0,u.MZ)({type:String,json:{write:!0}})],A.prototype,"caption",void 0),(0,r.Cg)([(0,u.MZ)({type:String,json:{write:!0}})],A.prototype,"title",void 0),(0,r.Cg)([(0,u.MZ)({type:["image","bar-chart","column-chart","line-chart","pie-chart"],readOnly:!0,json:{read:!1,write:!0}})],A.prototype,"type",void 0),A=(0,r.Cg)([(0,h.$)("esri.popup.content.mixins.MediaInfo")],A);var b,N=o(68197),S=o(69622);let R=b=class extends S.A{constructor(t){super(t),this.color=null,this.fieldName=null,this.tooltip=null,this.value=null}clone(){return new b({color:this.color?.clone(),fieldName:this.fieldName,tooltip:this.tooltip,value:this.value})}};(0,r.Cg)([(0,u.MZ)()],R.prototype,"color",void 0),(0,r.Cg)([(0,u.MZ)()],R.prototype,"fieldName",void 0),(0,r.Cg)([(0,u.MZ)()],R.prototype,"tooltip",void 0),(0,r.Cg)([(0,u.MZ)()],R.prototype,"value",void 0),R=b=(0,r.Cg)([(0,h.$)("esri.popup.content.support.ChartMediaInfoValueSeries")],R);const _=R;var O;let T=O=class extends l.o{constructor(t){super(t),this.colors=null,this.fields=[],this.normalizeField=null,this.series=[],this.tooltipField=null}clone(){return new O({colors:(0,a.o8)(this.colors),fields:(0,a.o8)(this.fields),normalizeField:this.normalizeField,series:(0,a.o8)(this.series),tooltipField:this.tooltipField})}};(0,r.Cg)([(0,u.MZ)({type:[N.A],json:{type:[[g.jz]],write:!0}})],T.prototype,"colors",void 0),(0,r.Cg)([(0,u.MZ)({type:[String],json:{write:{isRequired:!0}}})],T.prototype,"fields",void 0),(0,r.Cg)([(0,u.MZ)({type:String,json:{write:!0}})],T.prototype,"normalizeField",void 0),(0,r.Cg)([(0,u.MZ)({type:[_],json:{read:!1}})],T.prototype,"series",void 0),(0,r.Cg)([(0,u.MZ)({type:String,json:{write:!0}})],T.prototype,"tooltipField",void 0),T=O=(0,r.Cg)([(0,h.$)("esri.popup.content.support.ChartMediaInfoValue")],T);const $=T;let E=class extends A{constructor(t){super(t),this.type=null,this.value=void 0}};(0,r.Cg)([(0,u.MZ)({type:["bar-chart","column-chart","line-chart","pie-chart"],readOnly:!0,json:{read:!1,write:!0}})],E.prototype,"type",void 0),(0,r.Cg)([(0,u.MZ)({type:$,json:{write:{isRequired:!0}}})],E.prototype,"value",void 0),E=(0,r.Cg)([(0,h.$)("esri.popup.content.mixins.ChartMediaInfo")],E);const B=(0,o(66552).O)()({barchart:"bar-chart",columnchart:"column-chart",linechart:"line-chart",piechart:"pie-chart"});var k;let J=k=class extends E{constructor(t){super(t),this.type="bar-chart"}clone(){return new k({altText:this.altText,title:this.title,caption:this.caption,value:this.value?.clone()})}};var q;(0,r.Cg)([(0,u.MZ)({type:["bar-chart"],readOnly:!0,json:{type:["barchart"],read:!1,write:{writer:B.write,isRequired:!0}}})],J.prototype,"type",void 0),J=k=(0,r.Cg)([(0,h.$)("esri.popup.content.BarChartMediaInfo")],J);let D=q=class extends E{constructor(t){super(t),this.type="column-chart"}clone(){return new q({altText:this.altText,title:this.title,caption:this.caption,value:this.value?.clone()})}};var U;(0,r.Cg)([(0,u.MZ)({type:["column-chart"],readOnly:!0,json:{type:["columnchart"],read:!1,write:{writer:B.write,isRequired:!0}}})],D.prototype,"type",void 0),D=q=(0,r.Cg)([(0,h.$)("esri.popup.content.ColumnChartMediaInfo")],D);let L=U=class extends l.o{constructor(t){super(t),this.linkURL=null,this.sourceURL=null}clone(){return new U({linkURL:this.linkURL,sourceURL:this.sourceURL})}};(0,r.Cg)([(0,u.MZ)({type:String,json:{write:!0}})],L.prototype,"linkURL",void 0),(0,r.Cg)([(0,u.MZ)({type:String,json:{write:{isRequired:!0}}})],L.prototype,"sourceURL",void 0),L=U=(0,r.Cg)([(0,h.$)("esri.popup.content.support.ImageMediaInfoValue")],L);const W=L;var z;let P=z=class extends A{constructor(t){super(t),this.refreshInterval=0,this.type="image",this.value=void 0}clone(){return new z({altText:this.altText,title:this.title,caption:this.caption,refreshInterval:this.refreshInterval,value:this.value?.clone()})}};var K;(0,r.Cg)([(0,u.MZ)({type:Number,json:{write:!0}})],P.prototype,"refreshInterval",void 0),(0,r.Cg)([(0,u.MZ)({type:["image"],readOnly:!0,json:{read:!1,write:{isRequired:!0}}})],P.prototype,"type",void 0),(0,r.Cg)([(0,u.MZ)({type:W,json:{write:{isRequired:!0}}})],P.prototype,"value",void 0),P=z=(0,r.Cg)([(0,h.$)("esri.popup.content.ImageMediaInfo")],P);let G=K=class extends E{constructor(t){super(t),this.type="line-chart"}clone(){return new K({altText:this.altText,title:this.title,caption:this.caption,value:this.value?.clone()})}};var V;(0,r.Cg)([(0,u.MZ)({type:["line-chart"],readOnly:!0,json:{type:["linechart"],read:!1,write:{writer:B.write,isRequired:!0}}})],G.prototype,"type",void 0),G=K=(0,r.Cg)([(0,h.$)("esri.popup.content.LineChartMediaInfo")],G);let H=V=class extends E{constructor(t){super(t),this.type="pie-chart"}clone(){return new V({altText:this.altText,title:this.title,caption:this.caption,value:this.value?.clone()})}};(0,r.Cg)([(0,u.MZ)({type:["pie-chart"],readOnly:!0,json:{type:["piechart"],read:!1,write:{writer:B.write,isRequired:!0}}})],H.prototype,"type",void 0),H=V=(0,r.Cg)([(0,h.$)("esri.popup.content.PieChartMediaInfo")],H);const X={base:A,key:"type",defaultKeyValue:"image",typeMap:{"bar-chart":J,"column-chart":D,"line-chart":G,"pie-chart":H,image:P}};var Q;let Y=Q=class extends w.A{constructor(t){super(t),this.activeMediaInfoIndex=null,this.attributes=null,this.description=null,this.mediaInfos=null,this.title=null,this.type="media"}readMediaInfos(t){return t&&t.map(t=>"image"===t.type?P.fromJSON(t):"barchart"===t.type?J.fromJSON(t):"columnchart"===t.type?D.fromJSON(t):"linechart"===t.type?G.fromJSON(t):"piechart"===t.type?H.fromJSON(t):void 0).filter(Boolean)}writeMediaInfos(t,e){e.mediaInfos=t&&t.map(t=>t.toJSON())}clone(){return new Q((0,a.o8)({activeMediaInfoIndex:this.activeMediaInfoIndex,attributes:this.attributes,description:this.description,mediaInfos:this.mediaInfos,title:this.title}))}};(0,r.Cg)([(0,u.MZ)()],Y.prototype,"activeMediaInfoIndex",void 0),(0,r.Cg)([(0,u.MZ)({type:Object,json:{write:!0}})],Y.prototype,"attributes",void 0),(0,r.Cg)([(0,u.MZ)({type:String,json:{write:!0}})],Y.prototype,"description",void 0),(0,r.Cg)([(0,u.MZ)({types:[X]})],Y.prototype,"mediaInfos",void 0),(0,r.Cg)([(0,y.w)("mediaInfos")],Y.prototype,"readMediaInfos",null),(0,r.Cg)([(0,m.K)("mediaInfos")],Y.prototype,"writeMediaInfos",null),(0,r.Cg)([(0,u.MZ)({type:String,json:{write:!0}})],Y.prototype,"title",void 0),(0,r.Cg)([(0,u.MZ)({type:["media"],readOnly:!0,json:{read:!1,write:{isRequired:!0}}})],Y.prototype,"type",void 0),Y=Q=(0,r.Cg)([(0,h.$)("esri.popup.content.MediaContent")],Y);var tt=o(49852);let et=class extends((0,s.OU)(w.A)){constructor(t){super(t),this.description=null,this.displayCount=null,this.displayType="list",this.orderByFields=null,this.relationshipId=null,this.title=null,this.type="relationship"}};var ot;(0,r.Cg)([(0,u.MZ)({type:String,json:{write:!0}})],et.prototype,"description",void 0),(0,r.Cg)([(0,u.MZ)({type:Number,json:{type:g.jz,write:!0}})],et.prototype,"displayCount",void 0),(0,r.Cg)([(0,u.MZ)({type:["list"],json:{write:{isRequired:!0}}})],et.prototype,"displayType",void 0),(0,r.Cg)([(0,u.MZ)({type:[tt.A],json:{write:!0}})],et.prototype,"orderByFields",void 0),(0,r.Cg)([(0,u.MZ)({type:Number,json:{type:g.jz,write:{isRequired:!0}}})],et.prototype,"relationshipId",void 0),(0,r.Cg)([(0,u.MZ)({type:String,json:{write:!0}})],et.prototype,"title",void 0),(0,r.Cg)([(0,u.MZ)({type:["relationship"],readOnly:!0,json:{read:!1,write:{isRequired:!0}}})],et.prototype,"type",void 0),et=(0,r.Cg)([(0,h.$)("esri.popup.content.RelationshipContent")],et);let it=ot=class extends w.A{constructor(t){super(t),this.text=null,this.type="text"}clone(){return new ot({text:this.text})}};(0,r.Cg)([(0,u.MZ)({type:String,json:{write:!0}})],it.prototype,"text",void 0),(0,r.Cg)([(0,u.MZ)({type:["text"],readOnly:!0,json:{read:!1,write:{isRequired:!0}}})],it.prototype,"type",void 0),it=ot=(0,r.Cg)([(0,h.$)("esri.popup.content.TextContent")],it);var rt=o(93223),st=o(83342);let nt=class extends((0,s.OU)(w.A)){constructor(t){super(t),this.description=null,this.displayCount=null,this.title=null,this.associationTypes=[],this.type="utility-network-associations"}};(0,r.Cg)([(0,u.MZ)({type:String,json:{write:!0}})],nt.prototype,"description",void 0),(0,r.Cg)([(0,u.MZ)({type:Number,json:{type:g.jz,write:!0}})],nt.prototype,"displayCount",void 0),(0,r.Cg)([(0,u.MZ)({type:String,json:{write:!0}})],nt.prototype,"title",void 0),(0,r.Cg)([(0,u.MZ)({type:[st.A],json:{write:!0}})],nt.prototype,"associationTypes",void 0),(0,r.Cg)([(0,rt.e)({utilityNetworkAssociations:"utility-network-associations"})],nt.prototype,"type",void 0),nt=(0,r.Cg)([(0,h.$)("esri.popup.content.UtilityNetworkAssociationsContent")],nt);const lt={base:null,key:"type",typeMap:{attachment:v.A,media:Y,text:it,expression:I,field:j.A,relationship:et,utilityNetworkAssociations:nt}},at={base:null,key:"type",typeMap:{attachment:v.A,media:Y,text:it,expression:I,field:j.A,relationship:et}};var pt,dt=o(93705),ut=o(41227);let ct=pt=class extends l.o{constructor(t){super(t),this.returnTopmostRaster=null,this.showNoDataRecords=null}clone(){return new pt({showNoDataRecords:this.showNoDataRecords,returnTopmostRaster:this.returnTopmostRaster})}};(0,r.Cg)([(0,u.MZ)({type:Boolean,json:{write:!0}})],ct.prototype,"returnTopmostRaster",void 0),(0,r.Cg)([(0,u.MZ)({type:Boolean,json:{write:!0}})],ct.prototype,"showNoDataRecords",void 0),ct=pt=(0,r.Cg)([(0,h.$)("esri.popup.LayerOptions")],ct);const yt=ct;var ht;let mt=ht=class extends l.o{constructor(t){super(t),this.showRelatedRecords=null,this.orderByFields=null}clone(){return new ht({showRelatedRecords:this.showRelatedRecords,orderByFields:this.orderByFields?(0,a.o8)(this.orderByFields):null})}};(0,r.Cg)([(0,u.MZ)({type:Boolean,json:{write:!0}})],mt.prototype,"showRelatedRecords",void 0),(0,r.Cg)([(0,u.MZ)({type:[tt.A],json:{write:!0}})],mt.prototype,"orderByFields",void 0),mt=ht=(0,r.Cg)([(0,h.$)("esri.popup.RelatedRecordsInfo")],mt);const gt=mt;var ft,vt=o(4902);let wt=ft=class extends((0,vt.s)(S.A)){constructor(t){super(t),this.active=!1,this.className=null,this.disabled=!1,this.icon=null,this.id=null,this.indicator=!1,this.title=null,this.type=null,this.visible=!0}clone(){return new ft({active:this.active,className:this.className,disabled:this.disabled,icon:this.icon,id:this.id,indicator:this.indicator,title:this.title,visible:this.visible})}};(0,r.Cg)([(0,u.MZ)()],wt.prototype,"active",void 0),(0,r.Cg)([(0,u.MZ)()],wt.prototype,"className",void 0),(0,r.Cg)([(0,u.MZ)()],wt.prototype,"disabled",void 0),(0,r.Cg)([(0,u.MZ)()],wt.prototype,"icon",void 0),(0,r.Cg)([(0,u.MZ)()],wt.prototype,"id",void 0),(0,r.Cg)([(0,u.MZ)()],wt.prototype,"indicator",void 0),(0,r.Cg)([(0,u.MZ)()],wt.prototype,"title",void 0),(0,r.Cg)([(0,u.MZ)()],wt.prototype,"type",void 0),(0,r.Cg)([(0,u.MZ)()],wt.prototype,"visible",void 0),wt=ft=(0,r.Cg)([(0,h.$)("esri.support.actions.ActionBase")],wt);const Ct=wt;var Mt;let xt=Mt=class extends Ct{constructor(t){super(t),this.image=null,this.type="button"}clone(){return new Mt({active:this.active,className:this.className,disabled:this.disabled,icon:this.icon,id:this.id,indicator:this.indicator,title:this.title,visible:this.visible,image:this.image})}};(0,r.Cg)([(0,u.MZ)()],xt.prototype,"image",void 0),xt=Mt=(0,r.Cg)([(0,h.$)("esri.support.actions.ActionButton")],xt);const Ft=xt;var Zt;let It=Zt=class extends Ct{constructor(t){super(t),this.image=null,this.type="toggle",this.value=!1}clone(){return new Zt({active:this.active,className:this.className,disabled:this.disabled,icon:this.icon,id:this.id,indicator:this.indicator,title:this.title,visible:this.visible,image:this.image,value:this.value})}};(0,r.Cg)([(0,u.MZ)()],It.prototype,"image",void 0),(0,r.Cg)([(0,u.MZ)()],It.prototype,"value",void 0),It=Zt=(0,r.Cg)([(0,h.$)("esri.support.actions.ActionToggle")],It);const jt=It,At="relationships/",bt="expression/",Nt=n.A.ofType({key:"type",defaultKeyValue:"button",base:Ct,typeMap:{button:Ft,toggle:jt}}),St={base:w.A,key:"type",typeMap:{media:Y,custom:C,text:it,attachments:v.A,fields:j.A,expression:I,relationship:et,utilityNetworkAssociations:nt}},Rt=new Set(["attachments","fields","media","text","expression","relationship"]),_t=new Set([...Rt,"utility-network-associations"]);let Ot=class extends((0,s.OU)(l.o)){constructor(t){super(t),this.actions=null,this.content="",this.expressionInfos=null,this.fieldInfos=null,this.layerOptions=null,this.lastEditInfoEnabled=!0,this.outFields=null,this.overwriteActions=!1,this.returnGeometry=!1,this.title=""}castContent(t){return Array.isArray(t)?t.map(t=>(0,g.aq)(St,t)):"string"==typeof t||"function"==typeof t||t instanceof HTMLElement||(0,d.$X)(t)?t:(p.A.getLogger(this).error("content error","unsupported content value",{value:t}),null)}readContent(t,e){const{popupElements:o}=e;return Array.isArray(o)&&o.length>0?this._readPopupInfoElements(e.description,e.mediaInfos,o):this._readPopupInfo(e)}writeWebSceneContent(t,e,o,i){this._writePopupTemplateContent(t,e,i)}writeWebMapContent(t,e,o,i){this._writePopupTemplateContent(t,e,i)}writeFieldInfos(t,e,o,i){const{content:r}=this,s=Array.isArray(r)?r:null,{writeFieldFormat:n,...l}=i||{};if(t){const o=s?s.filter(t=>"fields"===t.type):[],i=o.length&&o.every(t=>t.fieldInfos?.length);e.fieldInfos=t.filter(Boolean).map(t=>{const e=t.toJSON(l);return i&&(e.visible=!1),e})}if(s)for(const t of s)"fields"===t.type&&this._writeFieldsContent(t,e,l)}writeLayerOptions(t,e,o,i){e[o]=!t||null===t.showNoDataRecords&&null===t.returnTopmostRaster?null:t.toJSON(i)}writeTitle(t,e){e.title=t||""}async collectRequiredFields(t,e,o){const i=this.expressionInfos||[];await this._collectExpressionInfoFields(t,e,o,[...i,...this._getContentExpressionInfos(this.content,i)]),(0,f._w)(t,e,[...this.outFields||[],...this._getActionsFields(this.actions),...this._getTitleFields(this.title),...this._getContentFields(this.content)])}async getRequiredFields(t,e){const o=new Set;return await this.collectRequiredFields(o,t,e),[...o].sort()}_writePopupTemplateContent(t,e,o){"string"!=typeof t?Array.isArray(t)&&(e.popupElements=t.filter(t=>"web-scene"===o?.origin?Rt.has(t.type):_t.has(t.type)).map(t=>t?.toJSON(o)),e.popupElements.forEach(t=>{"attachments"===t.type?this._writeAttachmentContent(e):"media"===t.type?this._writeMediaContent(t,e):"text"===t.type?this._writeTextContent(t,e):"relationship"===t.type&&this._writeRelationshipContent(t,e)})):e.description=t}_writeFieldsContent(t,e,o){const i=t.fieldInfos;if(!Array.isArray(i)||!i.length)return;const r=e.fieldInfos;if(Array.isArray(r))for(const t of i){const e=r.find(e=>e.fieldName?.toLowerCase()===t.fieldName?.toLowerCase());e?e.visible=!0:r.push(t.toJSON(o))}else e.fieldInfos=i.map(t=>t.toJSON(o))}_writeAttachmentContent(t){t.showAttachments||(t.showAttachments=!0)}_writeRelationshipContent(t,e){const o=t.orderByFields?.map(e=>this._toFieldOrderJSON(e,t.relationshipId))||[],i=[...e.relatedRecordsInfo?.orderByFields||[],...o];e.relatedRecordsInfo={showRelatedRecords:!0,...i?.length&&{orderByFields:i}}}_writeTextContent(t,e){!e.description&&t.text&&(e.description=t.text)}_writeMediaContent(t,e){if(!Array.isArray(t.mediaInfos)||!t.mediaInfos.length)return;const o=(0,a.o8)(t.mediaInfos);Array.isArray(e.mediaInfos)?e.mediaInfos=[...e.mediaInfos,...o]:e.mediaInfos=o}_readPopupInfoElements(t,e,o){const i={description:!1,mediaInfos:!1};return o.map(o=>"media"===o.type?(o.mediaInfos||!e||i.mediaInfos||(o.mediaInfos=e,i.mediaInfos=!0),Y.fromJSON(o)):"text"===o.type?(o.text||!t||i.description||(o.text=t,i.description=!0),it.fromJSON(o)):"attachments"===o.type?v.A.fromJSON(o):"fields"===o.type?j.A.fromJSON(o):"expression"===o.type?I.fromJSON(o):"relationship"===o.type?et.fromJSON(o):"utilityNetworkAssociations"===o.type?nt.fromJSON(o):void 0).filter(Boolean)}_toRelationshipContent(t){const{field:e,order:o}=t;if(!e?.startsWith(At))return null;const i=e.replace(At,"").split("/");if(2!==i.length)return null;const r=parseInt(i[0],10),s=i[1];return!Number.isNaN(r)&&s?et.fromJSON({relationshipId:r,orderByFields:[{field:s,order:o}]}):null}_toFieldOrderJSON(t,e){const{order:o,field:i}=t;return{field:`${At}${e}/${i}`,order:o}}_readPopupInfo({description:t,mediaInfos:e,showAttachments:o,relatedRecordsInfo:i={showRelatedRecords:!1}}){const r=[];t?r.push(new it({text:t})):r.push(new j.A),Array.isArray(e)&&e.length&&r.push(Y.fromJSON({mediaInfos:e})),o&&r.push(v.A.fromJSON({displayType:"auto"}));const{showRelatedRecords:s,orderByFields:n}=i;return s&&n?.length&&n.forEach(t=>{const e=this._toRelationshipContent(t);e&&r.push(e)}),r.length?r:t}_getContentElementFields(t){const e=t?.type;if("attachments"===e)return[...this._extractFieldNames(t.title),...this._extractFieldNames(t.description)];if("custom"===e)return t.outFields||[];if("fields"===e)return[...this._extractFieldNames(t.title),...this._extractFieldNames(t.description),...this._getFieldInfoFields(t.fieldInfos??this.fieldInfos)];if("media"===e){const e=t.mediaInfos||[];return[...this._extractFieldNames(t.title),...this._extractFieldNames(t.description),...e.reduce((t,e)=>[...t,...this._getMediaInfoFields(e)],[])]}return"text"===e?this._extractFieldNames(t.text):"relationship"===e||"utility-network-associations"===e?[...this._extractFieldNames(t.title),...this._extractFieldNames(t.description)]:[]}_getMediaInfoFields(t){const{caption:e,title:o,value:i}=t,r=i||{},{fields:s,normalizeField:n,tooltipField:l,sourceURL:a,linkURL:p}=r,d=[...this._extractFieldNames(o),...this._extractFieldNames(e),...this._extractFieldNames(a),...this._extractFieldNames(p),...s??[]];return n&&d.push(n),l&&d.push(l),d}_getContentExpressionInfos(t,e){return Array.isArray(t)?t.reduce((t,e)=>[...t,..."expression"===e.type&&e.expressionInfo?[e.expressionInfo]:[]],e):[]}_getContentFields(t){return"string"==typeof t?this._extractFieldNames(t):Array.isArray(t)?t.reduce((t,e)=>[...t,...this._getContentElementFields(e)],[]):[]}async _collectExpressionInfoFields(t,e,o,i){i&&await Promise.all(i.map(i=>(0,f.Dx)(t,e,o,i.expression)))}_getFieldInfoFields(t){return t?t.filter(({fieldName:t,visible:e})=>!(void 0!==e&&!e||!t||t.startsWith(At)||t.startsWith(bt))).map(t=>t.fieldName):[]}_getActionsFields(t){return t?t.toArray().reduce((t,e)=>[...t,...this._getActionFields(e)],[]):[]}_getActionFields(t){const{className:e,title:o,type:i}=t,r="button"===i||"toggle"===i?t.image:"";return[...this._extractFieldNames(o),...this._extractFieldNames(e),...this._extractFieldNames(r)]}_getTitleFields(t){return"string"==typeof t?this._extractFieldNames(t):[]}_extractFieldNames(t){return(0,f.nw)(t).filter(t=>!(t.startsWith(At)||t.startsWith(bt)))}};(0,r.Cg)([(0,u.MZ)({type:Nt})],Ot.prototype,"actions",void 0),(0,r.Cg)([(0,u.MZ)()],Ot.prototype,"content",void 0),(0,r.Cg)([(0,c.w)("content")],Ot.prototype,"castContent",null),(0,r.Cg)([(0,y.w)("content",["description","fieldInfos","popupElements","mediaInfos","showAttachments","relatedRecordsInfo"])],Ot.prototype,"readContent",null),(0,r.Cg)([(0,m.K)("web-scene","content",{popupElements:{type:n.A.ofType(at)},showAttachments:{type:Boolean},mediaInfos:{type:n.A.ofType(X)},description:{type:String},relatedRecordsInfo:{type:gt}})],Ot.prototype,"writeWebSceneContent",null),(0,r.Cg)([(0,m.K)("content",{popupElements:{type:n.A.ofType(lt)},showAttachments:{type:Boolean},mediaInfos:{type:n.A.ofType(X)},description:{type:String},relatedRecordsInfo:{type:gt}})],Ot.prototype,"writeWebMapContent",null),(0,r.Cg)([(0,u.MZ)({type:[dt.A],json:{write:!0}})],Ot.prototype,"expressionInfos",void 0),(0,r.Cg)([(0,u.MZ)({type:[ut.A]})],Ot.prototype,"fieldInfos",void 0),(0,r.Cg)([(0,m.K)("fieldInfos")],Ot.prototype,"writeFieldInfos",null),(0,r.Cg)([(0,u.MZ)({type:yt})],Ot.prototype,"layerOptions",void 0),(0,r.Cg)([(0,m.K)("layerOptions")],Ot.prototype,"writeLayerOptions",null),(0,r.Cg)([(0,u.MZ)({type:Boolean,json:{read:{source:"showLastEditInfo"},write:{target:"showLastEditInfo"},default:!0}})],Ot.prototype,"lastEditInfoEnabled",void 0),(0,r.Cg)([(0,u.MZ)()],Ot.prototype,"outFields",void 0),(0,r.Cg)([(0,u.MZ)()],Ot.prototype,"overwriteActions",void 0),(0,r.Cg)([(0,u.MZ)()],Ot.prototype,"returnGeometry",void 0),(0,r.Cg)([(0,u.MZ)({json:{type:String}})],Ot.prototype,"title",void 0),(0,r.Cg)([(0,m.K)("title")],Ot.prototype,"writeTitle",null),Ot=(0,r.Cg)([(0,h.$)("esri.PopupTemplate")],Ot)},39663:(t,e,o)=>{o.d(e,{$P:()=>E,HK:()=>w,PK:()=>N,fg:()=>v,qH:()=>C});var i=o(31635),r=o(10107),s=o(64108),n=o(69540),l=o(25482);let a=class extends((0,n.OU)(l.o)){constructor(t){super(t),this.type=null}};(0,i.Cg)([(0,r.MZ)({type:["date-time","number"],nonNullable:!0,readOnly:!0,json:{read:!1,write:{isRequired:!0}}})],a.prototype,"type",void 0),a=(0,i.Cg)([(0,s.$)("esri.layers.support.FieldFormat")],a);const p="auto";let d=class extends a{constructor(t){super(t),this.dateStyle=null,this.hour12=p,this.month=null,this.timeStyle=null,this.type="date-time",this.year=null}};(0,i.Cg)([(0,r.MZ)({type:["full","long","medium","short"],json:{write:!0}})],d.prototype,"dateStyle",void 0),(0,i.Cg)([(0,r.MZ)({type:["always","auto","never"],nonNullable:!0,json:{default:p,write:!0}})],d.prototype,"hour12",void 0),(0,i.Cg)([(0,r.MZ)({type:["long","short"],json:{write:!0}})],d.prototype,"month",void 0),(0,i.Cg)([(0,r.MZ)({type:["full","long","medium","short"],json:{write:!0}})],d.prototype,"timeStyle",void 0),(0,i.Cg)([(0,r.MZ)({type:["date-time"]})],d.prototype,"type",void 0),(0,i.Cg)([(0,r.MZ)({type:["numeric"],json:{write:!0}})],d.prototype,"year",void 0),d=(0,i.Cg)([(0,s.$)("esri.layers.support.DateTimeFieldFormat")],d);var u=o(30524),c=o(56507);const y={min:0,max:20},h="decimal",m="auto";let g=class extends a{constructor(t){super(t),this.maximumFractionDigits=3,this.minimumFractionDigits=0,this.style=h,this.type="number",this.useGrouping=m}};(0,i.Cg)([(0,r.MZ)({type:c.jz,nonNullable:!0,range:y,json:{default:3,write:!0}})],g.prototype,"maximumFractionDigits",void 0),(0,i.Cg)([(0,r.MZ)({type:c.jz,nonNullable:!0,range:y,json:{default:0,write:!0}})],g.prototype,"minimumFractionDigits",void 0),(0,i.Cg)([(0,r.MZ)({type:["decimal"],nonNullable:!0,json:{default:h,write:!0}})],g.prototype,"style",void 0),(0,i.Cg)([(0,r.MZ)({type:["number"]})],g.prototype,"type",void 0),(0,i.Cg)([(0,r.MZ)({type:["always","auto","never"],nonNullable:!0,json:{default:m,write:!0}})],g.prototype,"useGrouping",void 0),g=(0,i.Cg)([(0,s.$)("esri.layers.support.NumberFieldFormat")],g);var f=o(68780);const v={base:a,key:"type",errorContext:"field-configuration-field-format",typeMap:{"date-time":d,number:g}};function w(t,e){const{dateFormat:o}=t;if(!e)return o?F(t):x(t);if(!C(e))return;const i={hour12:"always"};switch(e.type){case"integer":case"small-integer":case"big-integer":case"long":return M(t);case"single":case"double":return x(t);case"date":case"timestamp-offset":return o?F(t):E(e,i);case"date-only":return o?function(t){return new d({dateStyle:Z(t),year:b(t),month:j(t)})}(t):E(e);case"time-only":return o?function(t){return new d({timeStyle:A(t),hour12:I(t)})}(t):E(e,i)}}function C(t){return(0,u.WA)(t)||(0,u.vE)(t)||(0,u.zD)(t)||(0,u.OH)(t)||(0,u.Ah)(t)}function M(t){return new g({useGrouping:t.digitSeparator?"always":"never"})}function x(t){const e=M(t),{places:o}=t;return e.minimumFractionDigits=o??0,e.maximumFractionDigits=o??2,e}function F(t){return new d({dateStyle:Z(t),year:b(t),month:j(t),timeStyle:A(t),hour12:I(t)})}function Z(t){const{dateFormat:e}=t;return e?e.startsWith("short-date")?"short":e.startsWith("day-short-month-year")?"medium":e.startsWith("long-month-day-year")?"long":e.startsWith("long-date")?"full":null:null}function I(t){return t.dateFormat?.endsWith("-24")?"never":"always"}function j(t){switch(t.dateFormat){case"short-month-year":return"short";case"long-month-year":return"long";default:return null}}function A(t){const{dateFormat:e}=t;return e?e.includes("short-time")?"short":e.includes("long-time")?"medium":null:null}function b(t){switch(t.dateFormat){case"short-month-year":case"long-month-year":case"year":return"numeric";default:return null}}function N(t,e){const o="number"===t.type,i="date-time"===t.type;if(!e)return o?R(t):i?_(t):null;if(C(e))switch(e.type){case"integer":case"small-integer":case"big-integer":case"long":return o?S(t):null;case"single":case"double":return o?R(t):null;case"date":case"timestamp-offset":return i?_(t):null;case"date-only":return i?function(t){let e;const o=O(t),i="numeric"===t.year?"year":null,r=$(t);return o?e=o:i&&r?e=`${r}-${i}`:i&&(e=i),e?new f.A({dateFormat:e}):null}(t):null;case"time-only":return i?function(t){let e;const o=T(t),i="never"===t.hour12?"24":null;return o&&i?e=`short-date-${o}-${i}`:o&&(e=`short-date-${o}`),e?new f.A({dateFormat:e}):null}(t):null}}function S(t){return new f.A({digitSeparator:"never"!==t.useGrouping})}function R(t){const e=S(t);return e.places=t.maximumFractionDigits,e}function _(t){let e;const o=O(t),i=T(t),r="never"===t.hour12?"24":null,s="numeric"===t.year?"year":null,n=$(t);return o&&i&&r?e=`${o}-${i}-${r}`:o&&i?e=`${o}-${i}`:o?e=o:s&&n?e=`${n}-${s}`:s&&(e=s),e?new f.A({dateFormat:e}):null}function O(t){switch(t.dateStyle){case"short":return"short-date";case"medium":return"day-short-month-year";case"long":return"long-month-day-year";case"full":return"long-date";default:return}}function T(t){return t.timeStyle&&("short"===t.timeStyle?"short-time":"long-time")}function $(t){switch(t.month){case"short":return"short-month";case"long":return"long-month";default:return}}function E(t,e){if(!C(t))return;const o=e?.useGrouping??"auto",i=e?.hour12??"auto";switch(t.type){case"integer":case"small-integer":case"big-integer":case"long":return new g({minimumFractionDigits:0,maximumFractionDigits:0,useGrouping:o});case"single":case"double":return new g({minimumFractionDigits:0,maximumFractionDigits:2,useGrouping:o});case"date":case"timestamp-offset":return new d({dateStyle:"short",timeStyle:"short",hour12:i});case"date-only":return new d({dateStyle:"short"});case"time-only":return new d({timeStyle:"short",hour12:i})}}},41227:(t,e,o)=>{o.d(e,{A:()=>y});var i=o(31635),r=o(69540),s=o(66552),n=o(25482),l=o(10107),a=(o(44208),o(53966),o(87811),o(93223)),p=o(36005),d=o(64108),u=o(39663),c=o(68780);let y=class extends((0,r.OU)(n.o)){constructor(t){super(t),this.fieldName=null,this.isEditable=!0,this.label=null,this.statisticType=null,this.stringFieldOption="text-box",this.tooltip=null,this.visible=!0}set fieldFormat(t){this._set("fieldFormat",t),this._set("format",t?(0,u.PK)(t):null)}set format(t){this._set("format",t),this._set("fieldFormat",t?(0,u.HK)(t):null)}readFormat(t,e){if(!e.fieldFormat)return t?c.A.fromJSON(t):null}clone(){const t=super.clone();return t._set("format",this.format?.clone()),t._set("fieldFormat",this.fieldFormat?.clone()),t}};(0,i.Cg)([(0,l.MZ)({value:null,clonable:!1,types:u.fg,json:{write:{overridePolicy(t,e,o){const{fieldName:i}=this;return{enabled:!(!i||i.startsWith("expression/")||i.startsWith("relationships/")||!o?.writeFieldFormat)}}}}})],y.prototype,"fieldFormat",null),(0,i.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],y.prototype,"fieldName",void 0),(0,i.Cg)([(0,l.MZ)({value:null,clonable:!1,type:c.A,json:{write:!0}})],y.prototype,"format",null),(0,i.Cg)([(0,p.w)("format")],y.prototype,"readFormat",null),(0,i.Cg)([(0,l.MZ)({type:Boolean,json:{write:{alwaysWriteDefaults:!0},default:!0}})],y.prototype,"isEditable",void 0),(0,i.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],y.prototype,"label",void 0),(0,i.Cg)([(0,l.MZ)({type:["count","sum","min","max","avg","stddev","var"],json:{write:!0}})],y.prototype,"statisticType",void 0),(0,i.Cg)([(0,a.e)(new s.J({richtext:"rich-text",textarea:"text-area",textbox:"text-box"}),{default:"text-box"})],y.prototype,"stringFieldOption",void 0),(0,i.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],y.prototype,"tooltip",void 0),(0,i.Cg)([(0,l.MZ)({type:Boolean,json:{write:!0}})],y.prototype,"visible",void 0),y=(0,i.Cg)([(0,d.$)("esri.popup.FieldInfo")],y)},49852:(t,e,o)=>{o.d(e,{A:()=>p});var i,r=o(31635),s=o(25482),n=o(10107),l=(o(44208),o(53966),o(87811),o(64108));let a=i=class extends s.o{constructor(t){super(t),this.field=null,this.order=null}clone(){return new i({field:this.field,order:this.order})}};(0,r.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],a.prototype,"field",void 0),(0,r.Cg)([(0,n.MZ)({type:["asc","desc"],json:{write:!0}})],a.prototype,"order",void 0),a=i=(0,r.Cg)([(0,l.$)("esri.popup.support.RelatedRecordsInfoFieldOrder")],a);const p=a},60950:(t,e,o)=>{o.d(e,{E_:()=>r,ym:()=>i});const i=Symbol("popupProvider");function r(t){return function(t){return!!t&&i in t}(t)?t[i]:null}},66159:(t,e,o)=>{o.d(e,{A:()=>d});var i,r=o(31635),s=o(4718),n=o(10107),l=(o(44208),o(53966),o(64108)),a=o(41227),p=o(84424);let d=i=class extends p.A{constructor(t){super(t),this.attributes=null,this.description=null,this.fieldInfos=null,this.title=null,this.type="fields"}clone(){return new i((0,s.o8)({attributes:this.attributes,description:this.description,fieldInfos:this.fieldInfos,title:this.title}))}};(0,r.Cg)([(0,n.MZ)({type:Object,json:{write:!0}})],d.prototype,"attributes",void 0),(0,r.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],d.prototype,"description",void 0),(0,r.Cg)([(0,n.MZ)({type:[a.A],json:{write:!0}})],d.prototype,"fieldInfos",void 0),(0,r.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],d.prototype,"title",void 0),(0,r.Cg)([(0,n.MZ)({type:["fields"],readOnly:!0,json:{read:!1,write:{isRequired:!0}}})],d.prototype,"type",void 0),d=i=(0,r.Cg)([(0,l.$)("esri.popup.content.FieldsContent")],d)},68780:(t,e,o)=>{o.d(e,{A:()=>u});var i=o(31635),r=o(69540),s=o(25482),n=o(10107),l=o(56507),a=(o(44208),o(87811),o(93223)),p=o(64108),d=o(97770);let u=class extends((0,r.OU)(s.o)){constructor(t){super(t),this.dateFormat=null,this.digitSeparator=!1,this.places=null}};(0,i.Cg)([(0,a.e)(d._v)],u.prototype,"dateFormat",void 0),(0,i.Cg)([(0,n.MZ)({type:Boolean,json:{write:!0}})],u.prototype,"digitSeparator",void 0),(0,i.Cg)([(0,n.MZ)({type:l.jz,json:{write:!0}})],u.prototype,"places",void 0),u=(0,i.Cg)([(0,p.$)("esri.popup.support.FieldInfoFormat")],u)},78553:(t,e,o)=>{o.d(e,{D:()=>s,p:()=>r});var i=o(56507);function r(t){const e=(0,i.Vr)(100*(1-t));return Math.max(0,Math.min(e,100))}function s(t){const e=1-t/100;return Math.max(0,Math.min(e,1))}},83342:(t,e,o)=>{o.d(e,{A:()=>d});var i=o(31635),r=o(69540),s=o(25482),n=o(10107),l=o(56507),a=(o(44208),o(87811),o(64108));let p=class extends((0,r.OU)(s.o)){constructor(t){super(t),this.title=null,this.description=null,this.type=null,this.associatedNetworkSourceId=null,this.associatedAssetGroup=null,this.associatedAssetType=null}};(0,i.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],p.prototype,"title",void 0),(0,i.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],p.prototype,"description",void 0),(0,i.Cg)([(0,n.MZ)({type:["attachment","connectivity","container","content","structure"],json:{write:!0}})],p.prototype,"type",void 0),(0,i.Cg)([(0,n.MZ)({type:Number,json:{type:l.jz,write:!0}})],p.prototype,"associatedNetworkSourceId",void 0),(0,i.Cg)([(0,n.MZ)({type:Number,json:{type:l.jz,write:!0}})],p.prototype,"associatedAssetGroup",void 0),(0,i.Cg)([(0,n.MZ)({type:Number,json:{type:l.jz,write:!0}})],p.prototype,"associatedAssetType",void 0),p=(0,i.Cg)([(0,a.$)("esri.popup.support.UtilityNetworkAssociationType")],p);const d=p},84424:(t,e,o)=>{o.d(e,{A:()=>l});var i=o(31635),r=o(25482),s=o(10107),n=(o(44208),o(53966),o(87811),o(64108));let l=class extends r.o{constructor(t){super(t),this.type=null}};(0,i.Cg)([(0,s.MZ)({type:["attachments","custom","fields","media","text","expression","relationship","utility-network-associations"],readOnly:!0,json:{read:!1,write:!0}})],l.prototype,"type",void 0),l=(0,i.Cg)([(0,n.$)("esri.popup.content.Content")],l)},89893:(t,e,o)=>{o.d(e,{A:()=>y});var i=o(31635),r=o(69540),s=o(10107),n=(o(44208),o(53966),o(87811),o(64108)),l=o(84424),a=o(66552),p=o(25482);const d=new a.J({asc:"ascending",desc:"descending"});let u=class extends((0,r.OU)(p.o)){constructor(t){super(t),this.field=null,this.order="ascending"}};(0,i.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],u.prototype,"field",void 0),(0,i.Cg)([(0,s.MZ)({type:d.apiValues,json:{type:d.jsonValues,read:d.read,write:d.write}})],u.prototype,"order",void 0),u=(0,i.Cg)([(0,n.$)("esri.popup.support.AttachmentsOrderByInfo")],u);const c=u;let y=class extends((0,r.OU)(l.A)){constructor(t){super(t),this.attachmentKeywords=null,this.attachmentTypes=null,this.description=null,this.displayType="auto",this.orderByFields=null,this.title=null,this.type="attachments"}};(0,i.Cg)([(0,s.MZ)({type:[String],json:{write:!0}})],y.prototype,"attachmentKeywords",void 0),(0,i.Cg)([(0,s.MZ)({type:[["application","audio","image","model","text","video"]],json:{write:!0}})],y.prototype,"attachmentTypes",void 0),(0,i.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],y.prototype,"description",void 0),(0,i.Cg)([(0,s.MZ)({type:["auto","preview","list"],json:{write:!0}})],y.prototype,"displayType",void 0),(0,i.Cg)([(0,s.MZ)({type:[c],json:{write:!0}})],y.prototype,"orderByFields",void 0),(0,i.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],y.prototype,"title",void 0),(0,i.Cg)([(0,s.MZ)({type:["attachments"],readOnly:!0,json:{read:!1,write:{isRequired:!0}}})],y.prototype,"type",void 0),y=(0,i.Cg)([(0,n.$)("esri.popup.content.AttachmentsContent")],y)},93705:(t,e,o)=>{o.d(e,{A:()=>a});var i,r=o(31635),s=o(25482),n=o(10107),l=(o(44208),o(53966),o(87811),o(64108));let a=i=class extends s.o{constructor(t){super(t),this.name=null,this.title=null,this.expression=null,this.returnType=null}clone(){return new i({name:this.name,title:this.title,expression:this.expression,returnType:this.returnType})}};(0,r.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],a.prototype,"name",void 0),(0,r.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],a.prototype,"title",void 0),(0,r.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],a.prototype,"expression",void 0),(0,r.Cg)([(0,n.MZ)({type:["string","number"],json:{write:!0}})],a.prototype,"returnType",void 0),a=i=(0,r.Cg)([(0,l.$)("esri.popup.ExpressionInfo")],a)}}]);
|
|
Binary file
|
package/assets/esri/rest/knowledgeGraph/wasmInterface/arcgis-knowledge-client-core-simd.wasm
CHANGED
|
Binary file
|
|
Binary file
|
|
@@ -132,6 +132,7 @@
|
|
|
132
132
|
&__attachments-view {
|
|
133
133
|
border-block-start: var(--calcite-border-width-sm) solid var(--calcite-color-text-2);
|
|
134
134
|
min-width: 300px;
|
|
135
|
+
overflow: auto;
|
|
135
136
|
|
|
136
137
|
&__content {
|
|
137
138
|
flex-direction: column;
|
|
@@ -139,6 +140,7 @@
|
|
|
139
140
|
justify-content: center;
|
|
140
141
|
padding: var(--calcite-spacing-md);
|
|
141
142
|
width: 100%;
|
|
143
|
+
min-height: 200px;
|
|
142
144
|
}
|
|
143
145
|
|
|
144
146
|
&__drop-area {
|