@arcgis/portal-components 5.2.0-next.140 → 5.2.0-next.142
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/dist/cdn/{Z6R3C4AK.js → 23X56P4K.js} +2 -2
- package/dist/cdn/{VDXESPJK.js → 25XJ66JO.js} +2 -2
- package/dist/cdn/2A4BYZOS.js +2 -0
- package/dist/cdn/{EMJQI4MA.js → 2GBRZSEC.js} +1 -1
- package/dist/cdn/{LISDTBEX.js → 2I5SLQC5.js} +2 -2
- package/dist/cdn/{ZKZDKJ6D.js → 3R4PPD5N.js} +2 -2
- package/dist/cdn/3SO52LKS.js +2 -0
- package/dist/cdn/{SGDDFWCJ.js → 456JKNCU.js} +2 -2
- package/dist/cdn/{32BWFMTC.js → 47PU5HDG.js} +2 -2
- package/dist/cdn/{3CQKCUM5.js → 4SHXR62X.js} +2 -2
- package/dist/cdn/{ABORO35R.js → 4TQWZ2KF.js} +2 -2
- package/dist/cdn/{L64UURQB.js → 4ZTWQN6Q.js} +2 -2
- package/dist/cdn/{4TSXFX3M.js → 55FL7WQV.js} +2 -2
- package/dist/cdn/{ZDDN7UKS.js → 5EFYJYWM.js} +1 -1
- package/dist/cdn/{3EYB5GQX.js → 5FDUO7J4.js} +2 -2
- package/dist/cdn/{FIQZPIIK.js → 5FOWUL6I.js} +2 -2
- package/dist/cdn/{DAAON2UO.js → 5YDITHQA.js} +1 -1
- package/dist/cdn/{K2XSYDAP.js → 6BMWSGLA.js} +2 -2
- package/dist/cdn/6EE4B3MI.js +2 -0
- package/dist/cdn/{JIJO4CAS.js → 6EY5GHKE.js} +2 -2
- package/dist/cdn/6KVA4AKM.js +2 -0
- package/dist/cdn/6LST5YZY.js +2 -0
- package/dist/cdn/{JN23JH3T.js → 6MWSS5YF.js} +2 -2
- package/dist/cdn/{V6A6MKLU.js → 6TO2BYXU.js} +1 -1
- package/dist/cdn/{GSOBDGLK.js → 7NK6UF47.js} +2 -2
- package/dist/cdn/{I273CANO.js → 7NQY5QJK.js} +2 -2
- package/dist/cdn/7TGCBYRK.js +2 -0
- package/dist/cdn/ADSPENPN.js +2 -0
- package/dist/cdn/{I6IRHXWR.js → ADZAKBOJ.js} +2 -2
- package/dist/cdn/{TLM457Z5.js → AE574B3G.js} +2 -2
- package/dist/cdn/{CXXV6WJT.js → AXNTYD46.js} +2 -2
- package/dist/cdn/{OD5WXP7J.js → B3NVWHCS.js} +2 -2
- package/dist/cdn/B4YHTYJB.js +2 -0
- package/dist/cdn/{PNIFJ5DQ.js → BIXJGL7B.js} +1 -1
- package/dist/cdn/{OXPXXIWL.js → BRJE3G3H.js} +2 -2
- package/dist/cdn/{A2SQ4EMZ.js → C5U7YKVI.js} +2 -2
- package/dist/cdn/C5VUNN4M.js +2 -0
- package/dist/cdn/{PKA745KL.js → CFBSBZSS.js} +1 -1
- package/dist/cdn/{7LMZHJZG.js → CVOWIH4J.js} +2 -2
- package/dist/cdn/{AICPYLWE.js → CWSEBETE.js} +3 -3
- package/dist/cdn/{DLI4XKJ3.js → D6QHNXEH.js} +2 -2
- package/dist/cdn/{YZTBAUIO.js → D7LRCAK4.js} +2 -2
- package/dist/cdn/DF5GVVDW.js +2 -0
- package/dist/cdn/{BKD7JSV2.js → DIKRXF22.js} +2 -2
- package/dist/cdn/{DDBXEXOV.js → DKIYHE4A.js} +2 -2
- package/dist/cdn/{GX7U3727.js → E3FQ4QWE.js} +2 -2
- package/dist/cdn/EJN2JQOX.js +2 -0
- package/dist/cdn/{ROX3GKKA.js → F3ODJVJC.js} +1 -1
- package/dist/cdn/{4QFTKB6T.js → FFLIAQOL.js} +2 -2
- package/dist/cdn/FQOOFBPI.js +2 -0
- package/dist/cdn/FQYC25GN.js +2 -0
- package/dist/cdn/{3LEQ37YT.js → FSACXOM3.js} +2 -2
- package/dist/cdn/{APSYZEPP.js → FTKD53UG.js} +2 -2
- package/dist/cdn/G6WPLOLV.js +2 -0
- package/dist/cdn/{TNUCSWBN.js → GEZH4D32.js} +2 -2
- package/dist/cdn/{5C5GHX4D.js → GTZ4LKEQ.js} +2 -2
- package/dist/cdn/{4KTRAA2J.js → ILDTKRON.js} +1 -1
- package/dist/cdn/{YTODQCOG.js → IXSEMBHA.js} +2 -2
- package/dist/cdn/{3NSHGKZA.js → JUDF3TYJ.js} +2 -2
- package/dist/cdn/KC4FTTKP.js +2 -0
- package/dist/cdn/{OR6T5SB3.js → KIKEE2KY.js} +2 -2
- package/dist/cdn/KOLH76KG.js +2 -0
- package/dist/cdn/{AXOBMX3S.js → KYNL256E.js} +2 -2
- package/dist/cdn/{5HZNBMW6.js → LNWWUPFK.js} +2 -2
- package/dist/cdn/{SVROAT3Z.js → LP4IB3PV.js} +2 -2
- package/dist/cdn/LRHPL6B5.js +2 -0
- package/dist/cdn/M6BRGNH3.js +2 -0
- package/dist/cdn/{LWFACY3F.js → MCX22B23.js} +2 -2
- package/dist/cdn/MHNYLHFR.js +2 -0
- package/dist/cdn/{GAF4YT5N.js → MQISQ7P3.js} +2 -2
- package/dist/cdn/MY7AYBBR.js +2 -0
- package/dist/cdn/{JPUUMGX5.js → NDRCB2K3.js} +2 -2
- package/dist/cdn/{NWVLGU2C.js → NICTB76A.js} +2 -2
- package/dist/cdn/{MKSFNVXL.js → NXFE6R2N.js} +2 -2
- package/dist/cdn/{CD5UWSCP.js → O5LFDRK2.js} +2 -2
- package/dist/cdn/{TOICLGFK.js → OJNU7H3F.js} +2 -2
- package/dist/cdn/{IN4JPZTY.js → OQGUCK3G.js} +2 -2
- package/dist/cdn/{PMRFXB4F.js → OUFIJDIW.js} +2 -2
- package/dist/cdn/{TWCJJCPC.js → OV5O7YP4.js} +2 -2
- package/dist/cdn/{TGCJUIEL.js → Q75EBGI2.js} +1 -1
- package/dist/cdn/QBV7VDQK.js +2 -0
- package/dist/cdn/QCOJMMT3.js +2 -0
- package/dist/cdn/{JOUR2FB2.js → QDWOQBO3.js} +2 -2
- package/dist/cdn/{4PRXQFCV.js → QKBGX2OY.js} +2 -2
- package/dist/cdn/{LYLQCBVX.js → QKK6N2AN.js} +2 -2
- package/dist/cdn/{N5QLV56W.js → QNCMFQSA.js} +2 -2
- package/dist/cdn/{KV4ZZSNW.js → QS3GXAIH.js} +1 -1
- package/dist/cdn/{JWBUJT43.js → QSAZVVVL.js} +2 -2
- package/dist/cdn/{DHMNNIXZ.js → QUOPWSRC.js} +2 -2
- package/dist/cdn/QYMSY57N.js +2 -0
- package/dist/cdn/{TXC7YBGL.js → R3QN5WF2.js} +2 -2
- package/dist/cdn/R57DISOR.js +2 -0
- package/dist/cdn/{OUMTV5H5.js → R74ZHFA6.js} +1 -1
- package/dist/cdn/{RQYNPDN3.js → RBGARTND.js} +2 -2
- package/dist/cdn/{TOTWYGB3.js → RUB2GDBE.js} +2 -2
- package/dist/cdn/{PZDI5ZDC.js → SG7Z5VLB.js} +2 -2
- package/dist/cdn/{TUUUK3VX.js → T2HQNZ36.js} +2 -2
- package/dist/cdn/{TBZXKKGP.js → T3RJKB2A.js} +2 -2
- package/dist/cdn/{XYMBRPC7.js → TJYPEMON.js} +2 -2
- package/dist/cdn/{2YZWRFCI.js → UGRFT75G.js} +2 -2
- package/dist/cdn/UKHCSMA4.js +2 -0
- package/dist/cdn/{74T6IXSN.js → UQKT5JQZ.js} +2 -2
- package/dist/cdn/{U3KMGSVH.js → USGROSML.js} +2 -2
- package/dist/cdn/{FRE56NBG.js → UTA2UBBS.js} +2 -2
- package/dist/cdn/{4MUB6TL6.js → UZCHLKLO.js} +1 -1
- package/dist/cdn/{5PV2GUZW.js → UZLQALHY.js} +1 -1
- package/dist/cdn/{M5PPX4ZX.js → V5YXPHYD.js} +2 -2
- package/dist/cdn/{K75JTQPW.js → VMQIDO4Z.js} +2 -2
- package/dist/cdn/{EQDYQOOT.js → WDMNL6PJ.js} +2 -2
- package/dist/cdn/{GUL7EIJ4.js → XEK22IDA.js} +1 -1
- package/dist/cdn/{RHCRPJWS.js → XKC6SPS4.js} +2 -2
- package/dist/cdn/XNEYNX5G.js +2 -0
- package/dist/cdn/{MLYQGIJU.js → XOFCMJBQ.js} +2 -2
- package/dist/cdn/XUPYBBRI.js +2 -0
- package/dist/cdn/{GUO7HKSP.js → Y3YIMI2Z.js} +4 -4
- package/dist/cdn/{3UFTKKFG.js → YUQFNMEZ.js} +1 -1
- package/dist/cdn/{YG6ZGQ46.js → YVKSTDL6.js} +1 -1
- package/dist/cdn/ZAIRH5DL.js +2 -0
- package/dist/cdn/{24QSQLRY.js → ZSILF72K.js} +2 -2
- package/dist/cdn/index.js +2 -2
- package/dist/chunks/common.js +1 -1
- package/dist/chunks/dom.js +1 -1
- package/dist/chunks/fieldAddDelete.js +1 -1
- package/dist/chunks/functional.js +1 -1
- package/dist/chunks/functionalities.js +1 -1
- package/dist/chunks/groups.js +1 -1
- package/dist/chunks/groups2.js +1 -1
- package/dist/chunks/icons.js +1 -1
- package/dist/chunks/info.js +1 -1
- package/dist/chunks/item.js +1 -1
- package/dist/chunks/item2.js +1 -1
- package/dist/chunks/itemThumbnail.js +1 -1
- package/dist/chunks/items.js +1 -1
- package/dist/chunks/loadClassificationData.js +1 -1
- package/dist/chunks/portal-account-switcher.js +1 -1
- package/dist/chunks/portal-browser-filter-date.js +1 -1
- package/dist/chunks/portal-browser.js +1 -1
- package/dist/chunks/portal-delete-items-review.js +1 -1
- package/dist/chunks/portal-item-badge.js +1 -1
- package/dist/chunks/portal-related-items-list-item.js +1 -1
- package/dist/chunks/portal.js +1 -1
- package/dist/chunks/portal2.js +1 -1
- package/dist/chunks/query.js +1 -1
- package/dist/chunks/request.js +1 -1
- package/dist/chunks/requests.js +1 -1
- package/dist/chunks/runtime.js +2 -2
- package/dist/chunks/services.js +1 -1
- package/dist/chunks/store.js +1 -1
- package/dist/chunks/string.js +1 -1
- package/dist/chunks/ui.js +1 -1
- package/dist/chunks/url.js +1 -1
- package/dist/chunks/useT9n.js +1 -1
- package/dist/chunks/user.js +1 -1
- package/dist/chunks/user2.js +1 -1
- package/dist/chunks/users.js +1 -1
- package/dist/chunks/utils.js +1 -1
- package/dist/chunks/utils2.js +1 -1
- package/dist/chunks/utils3.js +1 -1
- package/dist/chunks/verified.js +1 -1
- package/dist/components/arcgis-portal-account-switcher/customElement.d.ts +4 -1
- package/dist/components/arcgis-portal-account-switcher/customElement.js +87 -85
- package/dist/components/arcgis-portal-account-switcher-accounts/customElement.d.ts +4 -4
- package/dist/components/arcgis-portal-account-switcher-accounts/customElement.js +9 -9
- package/dist/components/arcgis-portal-account-switcher-list/customElement.d.ts +4 -4
- package/dist/components/arcgis-portal-account-switcher-list/customElement.js +7 -7
- package/dist/components/arcgis-portal-account-switcher-signout/customElement.d.ts +5 -5
- package/dist/components/arcgis-portal-account-switcher-signout/customElement.js +4 -4
- package/dist/components/arcgis-portal-add-gps-metadata/customElement.js +1 -1
- package/dist/components/arcgis-portal-ai-assistant/customElement.js +1 -1
- package/dist/components/arcgis-portal-ai-assistant-interrupt/customElement.js +1 -1
- package/dist/components/arcgis-portal-browser/customElement.js +1 -1
- package/dist/components/arcgis-portal-browser-actions/customElement.js +1 -1
- package/dist/components/arcgis-portal-browser-filter-status/customElement.js +1 -1
- package/dist/components/arcgis-portal-browser-pagination/customElement.js +1 -1
- package/dist/components/arcgis-portal-browser-search/customElement.js +1 -1
- package/dist/components/arcgis-portal-browser-sort/customElement.js +1 -1
- package/dist/components/arcgis-portal-browser-top-bar/customElement.js +1 -1
- package/dist/components/arcgis-portal-browser-view/customElement.js +1 -1
- package/dist/components/arcgis-portal-classification-banner/customElement.js +1 -1
- package/dist/components/arcgis-portal-classification-config/customElement.js +1 -1
- package/dist/components/arcgis-portal-classification-favorite/customElement.js +1 -1
- package/dist/components/arcgis-portal-classification-form-element/customElement.js +1 -1
- package/dist/components/arcgis-portal-delete-items/customElement.js +1 -1
- package/dist/components/arcgis-portal-delete-items-review/customElement.js +1 -1
- package/dist/components/arcgis-portal-entity-picker/customElement.js +1 -1
- package/dist/components/arcgis-portal-extent-picker/customElement.js +1 -1
- package/dist/components/arcgis-portal-extent-picker-coord-field/customElement.js +1 -1
- package/dist/components/arcgis-portal-field-delete/customElement.js +1 -1
- package/dist/components/arcgis-portal-group-badges/customElement.js +1 -1
- package/dist/components/arcgis-portal-group-browser/customElement.js +1 -1
- package/dist/components/arcgis-portal-group-browser-card/customElement.js +1 -1
- package/dist/components/arcgis-portal-group-browser-preview/customElement.js +1 -1
- package/dist/components/arcgis-portal-group-browser-preview-card/customElement.js +1 -1
- package/dist/components/arcgis-portal-group-card/customElement.js +17 -17
- package/dist/components/arcgis-portal-group-picker/customElement.js +1 -1
- package/dist/components/arcgis-portal-group-thumbnail/customElement.js +1 -1
- package/dist/components/arcgis-portal-info-banner/customElement.js +1 -1
- package/dist/components/arcgis-portal-item-actions/customElement.js +1 -1
- package/dist/components/arcgis-portal-item-badge/customElement.js +1 -1
- package/dist/components/arcgis-portal-item-badges/customElement.js +1 -1
- package/dist/components/arcgis-portal-item-card/customElement.js +59 -59
- package/dist/components/arcgis-portal-item-favorite/customElement.js +1 -1
- package/dist/components/arcgis-portal-item-picker/customElement.js +1 -1
- package/dist/components/arcgis-portal-item-thumbnail/customElement.js +1 -1
- package/dist/components/arcgis-portal-item-type/customElement.js +1 -1
- package/dist/components/arcgis-portal-mentionable-text-area/customElement.js +1 -1
- package/dist/components/arcgis-portal-navigation/customElement.js +1 -1
- package/dist/components/arcgis-portal-navigation/index.js +4 -4
- package/dist/components/arcgis-portal-replacement-item-redirect/customElement.js +1 -1
- package/dist/components/arcgis-portal-review-related-items/customElement.js +1 -1
- package/dist/components/arcgis-portal-sublayer-type/customElement.js +1 -1
- package/dist/components/arcgis-portal-user-avatar/customElement.js +1 -1
- package/dist/components/arcgis-portal-user-picker/customElement.js +1 -1
- package/dist/components/arcgis-portal-user-popup/customElement.js +1 -1
- package/dist/components/arcgis-portal-voice-input/customElement.js +1 -1
- package/dist/components/portal-browser/components/portal-browser-filter/customElement.js +1 -1
- package/dist/components/portal-browser/components/portal-browser-filter-date/customElement.js +1 -1
- package/dist/components/portal-browser/components/portal-browser-filters/customElement.js +1 -1
- package/dist/components/portal-group-browser-filters/customElement.js +1 -1
- package/dist/components/portal-group-browser-pagination/customElement.js +1 -1
- package/dist/components/portal-group-browser-sort/customElement.js +1 -1
- package/dist/components/portal-related-items-list-item/customElement.js +1 -1
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/vscode.html-custom-data.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/index.js +1 -1
- package/dist/loader.js +1 -1
- package/dist/types/lumina.d.ts +6 -6
- package/dist/types/preact.d.ts +6 -6
- package/dist/types/react.d.ts +6 -6
- package/dist/types/stencil.d.ts +6 -6
- package/package.json +7 -7
- package/dist/cdn/23FS4XTG.js +0 -2
- package/dist/cdn/2MPQ5IWJ.js +0 -2
- package/dist/cdn/46BUEBWS.js +0 -2
- package/dist/cdn/4AI52H7C.js +0 -2
- package/dist/cdn/5PPZNVWG.js +0 -2
- package/dist/cdn/66XWNGQ2.js +0 -2
- package/dist/cdn/6F4SJDRR.js +0 -2
- package/dist/cdn/7ZWYUHGK.js +0 -2
- package/dist/cdn/AJQT7UXB.js +0 -2
- package/dist/cdn/AZOJHVAO.js +0 -2
- package/dist/cdn/BSTA5KI5.js +0 -2
- package/dist/cdn/DYO5P3F2.js +0 -2
- package/dist/cdn/E3INH2O6.js +0 -2
- package/dist/cdn/E66BDC6N.js +0 -2
- package/dist/cdn/EEAVX4PP.js +0 -2
- package/dist/cdn/EITRZQSC.js +0 -2
- package/dist/cdn/FIBQAMJ3.js +0 -2
- package/dist/cdn/FNLBJ4ZQ.js +0 -2
- package/dist/cdn/GXM3XY3J.js +0 -2
- package/dist/cdn/I6NVKNZJ.js +0 -2
- package/dist/cdn/J5FKIZAM.js +0 -2
- package/dist/cdn/JL52W3Z4.js +0 -2
- package/dist/cdn/N4VOTJ25.js +0 -2
- package/dist/cdn/NRMQDCM3.js +0 -2
- package/dist/cdn/RVYSVTPQ.js +0 -2
- package/dist/cdn/SLQQ44IA.js +0 -2
- package/dist/cdn/WC3FPLYQ.js +0 -2
- package/dist/cdn/YYTEJVBL.js +0 -2
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/
|
|
2
|
-
import{a as m}from"./
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
+
import{a as m}from"./XUPYBBRI.js";import"./C5U7YKVI.js";import"./6BMWSGLA.js";import{L as l,M as y,R as c,h as o,j as t}from"./CWSEBETE.js";import"./R74ZHFA6.js";import"./UZLQALHY.js";var u=o`:host{display:inline-flex;align-items:center;line-height:1.35;--sublayer-type-font-size: var(--calcite-font-size--1)}.sublayer-type{display:inline-flex;align-items:center;max-width:100%;min-width:0}.text{flex:1 1 0%;margin-inline-start:.5rem;color:inherit}.name{font-weight:500;font-size:var(--sublayer-type-font-size);overflow-wrap:anywhere;white-space:normal}.name--underline{text-decoration:underline}.type{font-weight:400;color:var(--calcite-color-text-2);font-size:var(--sublayer-type-font-size)}`;function d({geometry:s,type:e}){if(e!==void 0)switch(e){case"Annotation Layer":return{icon:"layer-annotation",type:"annotation",isGeometry:!1};case"Dimension Layer":return{icon:"layer-dimension",type:"dimension",isGeometry:!1};case"Utility Network Layer":return{icon:"utility-network-layer",type:"utility network",isGeometry:!1};case"Catalog Layer":return{icon:"catalog-dataset",type:"catalog",isGeometry:!1};case"Parcel Layer":return{icon:"parcel-layer",type:"parcel",isGeometry:!1};case"Oriented Imagery Layer":return{icon:"oriented-imagery-layer",type:"oriented imagery",isGeometry:!1};case"Table":return{icon:"table",type:"table",isGeometry:!0}}switch(s){case"point":case"esriGeometryPoint":return{type:"point",icon:"point",isGeometry:!0};case"esriGeometryMultipoint":case"multipoint":return{type:"multipoint",icon:"layer-points",isGeometry:!0};case"line":case"polyline":case"esriGeometryPolyline":return{type:"line",icon:"line",isGeometry:!0};case"polygon":case"esriGeometryPolygon":return{type:"polygon",icon:"polygon",isGeometry:!0};case"multipatch":case"esriGeometryMultiPatch":return{type:"multipatch",icon:"cube",isGeometry:!0};default:return{type:"table",icon:"table",isGeometry:!0}}}var n=class extends l{constructor(){super(...arguments),this.messages=m({blocking:!0}),this.hideName=!1,this.hideIcon=!1,this.hideType=!1,this.underline=!1}static{this.properties={geometry:1,type:1,scale:3,name:1,hideName:5,hideIcon:5,hideType:5,underline:5,renderer:0}}static{this.styles=u}render(){if(!this.messages._lang)return null;let e=d({type:this.type,geometry:this.geometry});if(this.renderer)return this.renderer({...e,name:this.name??""});let{hideIcon:a,hideName:i,hideType:r,underline:p}=this;return i&&a&&r?null:t`<div class="sublayer-type">${!a&&t`<calcite-icon .icon=${e.icon} .scale=${this.scale}></calcite-icon>`||""}${(!i||!r)&&t`<div class="text">${!i&&t`<div class=${y({name:!0,"name--underline":p})}>${this.name??""}</div>`||""}${!r&&t`<div class="type">${this.messages[e.type]}</div>`||""}</div>`||""}</div>`}};c("arcgis-portal-sublayer-type",n);export{n as ArcgisPortalSublayerType};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/
|
|
2
|
-
import{a as L}from"./
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
+
import{a as L}from"./6BMWSGLA.js";import{a as C,b as y,c as A,p as f,v as x,x as w}from"./CWSEBETE.js";var H=(s,n)=>{let e=s;for(;e;){if(e===n)return!0;if(!e.parentNode)return!1;e.parentNode instanceof ShadowRoot?e=e.parentNode.host:e=e.parentNode}return!1},d=(s,n,e)=>{let t=M(n).subscribe;return t(o=>{o.some(r=>H(s,r.target))&&e()})},m={},M=s=>{let n=s.join(","),e=m[n];if(e!==void 0)return e;let t=new Set,o=new MutationObserver(r=>t.forEach(i=>i(r)));globalThis.document&&o.observe(document.documentElement,{attributes:!0,attributeFilter:s,subtree:!0});let a={subscribe:r=>(t.add(r),()=>{t.delete(r),t.size===0&&(o.disconnect(),m[n]=void 0)})};return m[n]=a,a},N=(s,n)=>{let e=s;for(;e;){let t=e.closest?.(n);if(t)return t;let o=e.getRootNode?.();if(o===globalThis.document)return;e=o?.host}};var u=(s,n,e)=>N(s,`[${n}]`)?.getAttribute(n)??e;var E=s=>{let n=u(s,"lang",globalThis.navigator?.language||g);return{lang:n,t9nLocale:P(n)}},O=(s,n,e,t)=>{let o,a=()=>D(s,n(),t).then(r=>{(o?.lang!==r.lang||o.t9nLocale!==r.t9nLocale||o.t9nStrings!==r.t9nStrings)&&e(r),o=r}).catch(r=>{f("error","intl","Error updating component locale state",{detail:{error:r}})});return queueMicrotask(a),d(s,["lang"],a)},D=async(s,n,e=s.localName.split("-").slice(1).join("-"))=>{let{lang:t,t9nLocale:o}=E(s),a=`${n}/${e}/t9n`,i=e===null?{}:await z(o,a,"messages.");return{lang:t,t9nLocale:o,t9nStrings:i}};var _="ar,bg,bs,ca,cs,da,de,el,en,es,et,fi,fr,he,hr,hu,id,it,ja,ko,lt,lv,nl,nb,no,pl,pt-BR,pt-PT,ro,ru,sk,sl,sr,sv,th,tr,uk,vi,zh-CN,zh-HK,zh-TW".split(","),F=new Set(_),g="en",R={pt:"pt-BR",nb:"no",nn:"no",zh:"zh-CN"},z=async(s,n,e="")=>{let t=`${n}/${e}`,o=`${t}${s}.json`;return $[o]??=k(s,t),await $[o]},$={},k=async(s,n)=>{let e=`${n}${s}.json`;try{let t=await fetch(e);if(t.ok)return await t.json()}catch(t){return f("error","intl",`An unknown error occurred while fetching localization strings at ${e}`,{detail:{error:t}}),{}}return s===g?{}:await k(g,n)},P=s=>{let[n,e]=s.split("-"),t=n.toLowerCase(),o=t;return e&&(o=`${t}-${e.toUpperCase()}`),o=R[o]??o,F.has(o)?o:e?P(t):g};var S=s=>G(void 0,s),Ae=s=>n=>G(n,s),v=class extends w{constructor(n,e){super(n);let t=this.exports;try{y(this.component);let o=e(this.component,this),a=this.exports!==t;if(C(o)){a||this.setProvisionalExports(o);let r=o.then(i=>{this.exports=i,super.catchUpLifecycle()}).catch(i=>{this.P.reject(i)});this.onLoad(async()=>await r)}else(!a||o!==void 0)&&(this.exports=o),queueMicrotask(()=>super.catchUpLifecycle())}catch(o){this.P.reject(o)}}catchUpLifecycle(){}},G=L(v);var T="ltr",xe=()=>S((s,n)=>{n.exports=T,n.onLifecycle(()=>{let e=()=>{let t=u(s.el,"dir",T);n.exports=t==="rtl"?"rtl":"ltr"};return e(),d(s.el,["dir"],e)})}),we=s=>(n={})=>S((e,t)=>{let o=E(e.el),a={_lang:o.lang,_t9nLocale:o.t9nLocale,_loading:!0},r=e;t.onLifecycle(()=>O(e.el,()=>s("./assets"),({t9nLocale:c,t9nStrings:l,lang:h})=>{let p={...l,_lang:h,_t9nLocale:c,_loading:!1};t.exports=p;let b=l.componentLabel;typeof b=="string"&&"label"in e&&e.label==null&&(e.label??=b),i(r.messageOverrides)},n.name));let i=c=>{let l=t.exports,h=l._original??l,p=j(h,c);c&&(p._original=h),t.exports=p};return"messageOverrides"in r&&t.onUpdate(c=>{c.has("messageOverrides")&&i(r.messageOverrides)}),n.blocking?(t.setProvisionalExports(a,!1),t.ready):a}),j=(s,n)=>{if(!n)return s;let e={...s};return Object.entries(n).forEach(([t,o])=>{s[t]!==void 0&&(typeof o=="object"?e[t]=j(s[t],o):e[t]=o??s[t])}),e},Le=s=>q,V="arcgisPropertyChange",q=(...s)=>{let n=A(),e=x(V,void 0,n),t=!0;return n.manager.onUpdated(o=>{if(t||!n.el.isConnected){t=!1;return}for(let a of s)o.has(a)&&e.emit({name:a})}),e};export{N as a,Ae as b,xe as c,we as d,Le as e};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
+
import c from"./WDMNL6PJ.js";import"./FFLIAQOL.js";import"./25XJ66JO.js";import"./5YDITHQA.js";import b from"./XKC6SPS4.js";import a from"./LNWWUPFK.js";import"./OV5O7YP4.js";import"./2GBRZSEC.js";import"./XUPYBBRI.js";import"./C5U7YKVI.js";import"./6BMWSGLA.js";import"./CWSEBETE.js";import"./R74ZHFA6.js";import"./UZLQALHY.js";export default $arcgis.t(([,,,,{c:r}])=>{return r},"core/reactiveUtils","intl",a,b,c)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
2
|
function n(e,u){let{fullName:s,firstName:r,lastName:t,username:i}=e;return s||(r&&t?u==="ja"?`${t} ${r}`:`${r} ${t}`:i)}function a(e){return e&&!e.id}function o(e){return e?.sourceJSON?.privileges?.includes("portal:user:createItem")}function c(e){return e?.sourceJSON?.privileges?.includes("premium:publisher:createNotebooks")}export{n as a,a as b,o as c,c as d};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/
|
|
2
|
-
import b from"./
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
+
import b from"./F3ODJVJC.js";import a from"./OUFIJDIW.js";import{a as e}from"./VMQIDO4Z.js";export default $arcgis.t(([i,{a:n,b:o},{e:t}])=>{async function y(s){let r=`${s.restUrl}/portals/${s.id}/approvedApps`;return await t(r,{query:{returnAllApps:!1}})}async function m(s){let r=`${s.restUrl}/portals/self/subscriptionInfo`,{result:a}=await t(r);return a?.orgCapabilities||[]}async function d(s){let r=`${s.restUrl}/portals/self/settings`,{result:a}=await t(r);return a}async function w(s){let r=`${s.restUrl}/portals/self/servers`;return(await t(r))?.result?.servers||[]}async function u(s){let r=`${s.restUrl}/portals/self/signinSettings`;return(await t(r)).result||{}}async function g(s){return s?.user?(await u(s))?.blockedApps||[]:[]}async function $(s){return(await n({requester:async()=>await i(`${e(s)}portals/self/userDefaultSettings`,{query:{f:"json"}}),key:"memberDefaults",id:s.id})).data}async function b(s){try{return{result:await n({requester:async()=>await o({url:`${e(s)}portals/self/resources/home.page.json`,portal:s}),key:"homePageConfig",id:s.id})}}catch{return{result:void 0}}}return{a:y,b:m,c:d,d:w,e:u,f:g,g:$,h:b}},"request",a,b)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/
|
|
2
|
-
import{a as Y}from"./
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
+
import{a as Y}from"./R74ZHFA6.js";var X=globalThis,Z=X.ShadowRoot&&(X.ShadyCSS===void 0||X.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Et=Symbol(),kt=new WeakMap,I=class{constructor(t,e,o){if(this._$cssResult$=!0,o!==Et)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o,e=this.t;if(Z&&t===void 0){let o=e!==void 0&&e.length===1;o&&(t=kt.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),o&&kt.set(e,t))}return t}toString(){return this.cssText}},jt=s=>new I(typeof s=="string"?s:s+"",void 0,Et),Ce=(s,...t)=>{let e=s.length===1?s[0]:t.reduce((o,r,n)=>o+(i=>{if(i._$cssResult$===!0)return i.cssText;if(typeof i=="number")return i;throw Error("Value passed to 'css' function must be a 'css' function result: "+i+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(r)+s[n+1],s[0]);return new I(e,s,Et)},Ht=(s,t)=>{if(Z)s.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(let e of t){let o=document.createElement("style"),r=X.litNonce;r!==void 0&&o.setAttribute("nonce",r),o.textContent=e.cssText,s.appendChild(o)}},$t=Z?s=>s:s=>s instanceof CSSStyleSheet?(t=>{let e="";for(let o of t.cssRules)e+=o.cssText;return jt(e)})(s):s;var{is:we,defineProperty:Oe,getOwnPropertyDescriptor:Te,getOwnPropertyNames:Se,getOwnPropertySymbols:Pe,getPrototypeOf:Ne}=Object,et=globalThis,Vt=et.trustedTypes,De=Vt?Vt.emptyScript:"",xe=et.reactiveElementPolyfillSupport,k=(s,t)=>s,tt={toAttribute(s,t){switch(t){case Boolean:s=s?De:null;break;case Object:case Array:s=s==null?s:JSON.stringify(s)}return s},fromAttribute(s,t){let e=s;switch(t){case Boolean:e=s!==null;break;case Number:e=s===null?null:Number(s);break;case Object:case Array:try{e=JSON.parse(s)}catch{e=null}}return e}},j=(s,t)=>!we(s,t),zt={attribute:!0,type:String,converter:tt,reflect:!1,useDefault:!1,hasChanged:j};Symbol.metadata??=Symbol("metadata"),et.litPropertyMetadata??=new WeakMap;var _=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=zt){if(e.state&&(e.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((e=Object.create(e)).wrapped=!0),this.elementProperties.set(t,e),!e.noAccessor){let o=Symbol(),r=this.getPropertyDescriptor(t,o,e);r!==void 0&&Oe(this.prototype,t,r)}}static getPropertyDescriptor(t,e,o){let{get:r,set:n}=Te(this.prototype,t)??{get(){return this[e]},set(i){this[e]=i}};return{get:r,set(i){let a=r?.call(this);n?.call(this,i),this.requestUpdate(t,a,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??zt}static _$Ei(){if(this.hasOwnProperty(k("elementProperties")))return;let t=Ne(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(k("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(k("properties"))){let e=this.properties,o=[...Se(e),...Pe(e)];for(let r of o)this.createProperty(r,e[r])}let t=this[Symbol.metadata];if(t!==null){let e=litPropertyMetadata.get(t);if(e!==void 0)for(let[o,r]of e)this.elementProperties.set(o,r)}this._$Eh=new Map;for(let[e,o]of this.elementProperties){let r=this._$Eu(e,o);r!==void 0&&this._$Eh.set(r,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){let e=[];if(Array.isArray(t)){let o=new Set(t.flat(1/0).reverse());for(let r of o)e.unshift($t(r))}else t!==void 0&&e.push($t(t));return e}static _$Eu(t,e){let o=e.attribute;return o===!1?void 0:typeof o=="string"?o:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(t=>t(this))}addController(t){(this._$EO??=new Set).add(t),this.renderRoot!==void 0&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){let t=new Map,e=this.constructor.elementProperties;for(let o of e.keys())this.hasOwnProperty(o)&&(t.set(o,this[o]),delete this[o]);t.size>0&&(this._$Ep=t)}createRenderRoot(){let t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return Ht(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(t=>t.hostConnected?.())}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach(t=>t.hostDisconnected?.())}attributeChangedCallback(t,e,o){this._$AK(t,o)}_$ET(t,e){let o=this.constructor.elementProperties.get(t),r=this.constructor._$Eu(t,o);if(r!==void 0&&o.reflect===!0){let n=(o.converter?.toAttribute!==void 0?o.converter:tt).toAttribute(e,o.type);this._$Em=t,n==null?this.removeAttribute(r):this.setAttribute(r,n),this._$Em=null}}_$AK(t,e){let o=this.constructor,r=o._$Eh.get(t);if(r!==void 0&&this._$Em!==r){let n=o.getPropertyOptions(r),i=typeof n.converter=="function"?{fromAttribute:n.converter}:n.converter?.fromAttribute!==void 0?n.converter:tt;this._$Em=r;let a=i.fromAttribute(e,n.type);this[r]=a??this._$Ej?.get(r)??a,this._$Em=null}}requestUpdate(t,e,o,r=!1,n){if(t!==void 0){let i=this.constructor;if(r===!1&&(n=this[t]),o??=i.getPropertyOptions(t),!((o.hasChanged??j)(n,e)||o.useDefault&&o.reflect&&n===this._$Ej?.get(t)&&!this.hasAttribute(i._$Eu(t,o))))return;this.C(t,e,o)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(t,e,{useDefault:o,reflect:r,wrapped:n},i){o&&!(this._$Ej??=new Map).has(t)&&(this._$Ej.set(t,i??e??this[t]),n!==!0||i!==void 0)||(this._$AL.has(t)||(this.hasUpdated||o||(e=void 0),this._$AL.set(t,e)),r===!0&&this._$Em!==t&&(this._$Eq??=new Set).add(t))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}let t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[r,n]of this._$Ep)this[r]=n;this._$Ep=void 0}let o=this.constructor.elementProperties;if(o.size>0)for(let[r,n]of o){let{wrapped:i}=n,a=this[r];i!==!0||this._$AL.has(r)||a===void 0||this.C(r,void 0,n,a)}}let t=!1,e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$EO?.forEach(o=>o.hostUpdate?.()),this.update(e)):this._$EM()}catch(o){throw t=!1,this._$EM(),o}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$EO?.forEach(e=>e.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&=this._$Eq.forEach(e=>this._$ET(e,this[e])),this._$EM()}updated(t){}firstUpdated(t){}};_.elementStyles=[],_.shadowRootOptions={mode:"open"},_[k("elementProperties")]=new Map,_[k("finalized")]=new Map,xe?.({ReactiveElement:_}),(et.reactiveElementVersions??=[]).push("2.1.2");var _t=globalThis,Bt=s=>s,st=_t.trustedTypes,Wt=st?st.createPolicy("lit-html",{createHTML:s=>s}):void 0,At="$lit$",A=`lit$${Math.random().toFixed(9).slice(2)}$`,Ct="?"+A,Le=`<${Ct}>`,T=document,V=()=>T.createComment(""),z=s=>s===null||typeof s!="object"&&typeof s!="function",wt=Array.isArray,Qt=s=>wt(s)||typeof s?.[Symbol.iterator]=="function",bt=`[
|
|
3
3
|
\f\r]`,H=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Ft=/-->/g,qt=/>/g,w=RegExp(`>|${bt}(?:([^\\s"'>=/]+)(${bt}*=${bt}*(?:[^
|
|
4
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),Gt=/'/g,Kt=/"/g,Yt=/^(?:script|style|textarea|title)$/i,Ot=s=>(t,...e)=>({_$litType$:s,strings:t,values:e}),fs=Ot(1),ms=Ot(2),ys=Ot(3),f=Symbol.for("lit-noChange"),d=Symbol.for("lit-nothing"),Jt=new WeakMap,O=T.createTreeWalker(T,129);function Xt(s,t){if(!wt(s)||!s.hasOwnProperty("raw"))throw Error("invalid template strings array");return Wt!==void 0?Wt.createHTML(t):t}var Zt=(s,t)=>{let e=s.length-1,o=[],r,n=t===2?"<svg>":t===3?"<math>":"",i=H;for(let a=0;a<e;a++){let l=s[a],c,u,h=-1,m=0;for(;m<l.length&&(i.lastIndex=m,u=i.exec(l),u!==null);)m=i.lastIndex,i===H?u[1]==="!--"?i=Ft:u[1]!==void 0?i=qt:u[2]!==void 0?(Yt.test(u[2])&&(r=RegExp("</"+u[2],"g")),i=w):u[3]!==void 0&&(i=w):i===w?u[0]===">"?(i=r??H,h=-1):u[1]===void 0?h=-2:(h=i.lastIndex-u[2].length,c=u[1],i=u[3]===void 0?w:u[3]==='"'?Kt:Gt):i===Kt||i===Gt?i=w:i===Ft||i===qt?i=H:(i=w,r=void 0);let v=i===w&&s[a+1].startsWith("/>")?" ":"";n+=i===H?l+Le:h>=0?(o.push(c),l.slice(0,h)+At+l.slice(h)+A+v):l+A+(h===-2?a:v)}return[Xt(s,n+(s[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),o]},B=class s{constructor({strings:t,_$litType$:e},o){let r;this.parts=[];let n=0,i=0,a=t.length-1,l=this.parts,[c,u]=Zt(t,e);if(this.el=s.createElement(c,o),O.currentNode=this.el.content,e===2||e===3){let h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(r=O.nextNode())!==null&&l.length<a;){if(r.nodeType===1){if(r.hasAttributes())for(let h of r.getAttributeNames())if(h.endsWith(At)){let m=u[i++],v=r.getAttribute(h).split(A),C=/([.?@])?(.*)/.exec(m);l.push({type:1,index:n,name:C[2],strings:v,ctor:C[1]==="."?rt:C[1]==="?"?nt:C[1]==="@"?it:P}),r.removeAttribute(h)}else h.startsWith(A)&&(l.push({type:6,index:n}),r.removeAttribute(h));if(Yt.test(r.tagName)){let h=r.textContent.split(A),m=h.length-1;if(m>0){r.textContent=st?st.emptyScript:"";for(let v=0;v<m;v++)r.append(h[v],V()),O.nextNode(),l.push({type:2,index:++n});r.append(h[m],V())}}}else if(r.nodeType===8)if(r.data===Ct)l.push({type:2,index:n});else{let h=-1;for(;(h=r.data.indexOf(A,h+1))!==-1;)l.push({type:7,index:n}),h+=A.length-1}n++}}static createElement(t,e){let o=T.createElement("template");return o.innerHTML=t,o}};function S(s,t,e=s,o){if(t===f)return t;let r=o!==void 0?e._$Co?.[o]:e._$Cl,n=z(t)?void 0:t._$litDirective$;return r?.constructor!==n&&(r?._$AO?.(!1),n===void 0?r=void 0:(r=new n(s),r._$AT(s,e,o)),o!==void 0?(e._$Co??=[])[o]=r:e._$Cl=r),r!==void 0&&(t=S(s,r._$AS(s,t.values),r,o)),t}var ot=class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){let{el:{content:e},parts:o}=this._$AD,r=(t?.creationScope??T).importNode(e,!0);O.currentNode=r;let n=O.nextNode(),i=0,a=0,l=o[0];for(;l!==void 0;){if(i===l.index){let c;l.type===2?c=new L(n,n.nextSibling,this,t):l.type===1?c=new l.ctor(n,l.name,l.strings,this,t):l.type===6&&(c=new at(n,this,t)),this._$AV.push(c),l=o[++a]}i!==l?.index&&(n=O.nextNode(),i++)}return O.currentNode=T,r}p(t){let e=0;for(let o of this._$AV)o!==void 0&&(o.strings!==void 0?(o._$AI(t,o,e),e+=o.strings.length-2):o._$AI(t[e])),e++}},L=class s{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,o,r){this.type=2,this._$AH=d,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=o,this.options=r,this._$Cv=r?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode,e=this._$AM;return e!==void 0&&t?.nodeType===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=S(this,t,e),z(t)?t===d||t==null||t===""?(this._$AH!==d&&this._$AR(),this._$AH=d):t!==this._$AH&&t!==f&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):Qt(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==d&&z(this._$AH)?this._$AA.nextSibling.data=t:this.T(T.createTextNode(t)),this._$AH=t}$(t){let{values:e,_$litType$:o}=t,r=typeof o=="number"?this._$AC(t):(o.el===void 0&&(o.el=B.createElement(Xt(o.h,o.h[0]),this.options)),o);if(this._$AH?._$AD===r)this._$AH.p(e);else{let n=new ot(r,this),i=n.u(this.options);n.p(e),this.T(i),this._$AH=n}}_$AC(t){let e=Jt.get(t.strings);return e===void 0&&Jt.set(t.strings,e=new B(t)),e}k(t){wt(this._$AH)||(this._$AH=[],this._$AR());let e=this._$AH,o,r=0;for(let n of t)r===e.length?e.push(o=new s(this.O(V()),this.O(V()),this,this.options)):o=e[r],o._$AI(n),r++;r<e.length&&(this._$AR(o&&o._$AB.nextSibling,r),e.length=r)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t!==this._$AB;){let o=Bt(t).nextSibling;Bt(t).remove(),t=o}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},P=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,o,r,n){this.type=1,this._$AH=d,this._$AN=void 0,this.element=t,this.name=e,this._$AM=r,this.options=n,o.length>2||o[0]!==""||o[1]!==""?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=d}_$AI(t,e=this,o,r){let n=this.strings,i=!1;if(n===void 0)t=S(this,t,e,0),i=!z(t)||t!==this._$AH&&t!==f,i&&(this._$AH=t);else{let a=t,l,c;for(t=n[0],l=0;l<n.length-1;l++)c=S(this,a[o+l],e,l),c===f&&(c=this._$AH[l]),i||=!z(c)||c!==this._$AH[l],c===d?t=d:t!==d&&(t+=(c??"")+n[l+1]),this._$AH[l]=c}i&&!r&&this.j(t)}j(t){t===d?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},rt=class extends P{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===d?void 0:t}},nt=class extends P{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==d)}},it=class extends P{constructor(t,e,o,r,n){super(t,e,o,r,n),this.type=5}_$AI(t,e=this){if((t=S(this,t,e,0)??d)===f)return;let o=this._$AH,r=t===d&&o!==d||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,n=t!==d&&(o===d||r);r&&this.element.removeEventListener(this.name,this,o),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},at=class{constructor(t,e,o){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(t){S(this,t)}},te={M:At,P:A,A:Ct,C:1,L:Zt,R:ot,D:Qt,V:S,I:L,H:P,N:nt,U:it,B:rt,F:at},Re=_t.litHtmlPolyfillSupport;Re?.(B,L),(_t.litHtmlVersions??=[]).push("3.3.2");var lt=(s,t,e)=>{let o=e?.renderBefore??t,r=o._$litPart$;if(r===void 0){let n=e?.renderBefore??null;o._$litPart$=r=new L(t.insertBefore(V(),n),n,void 0,e??{})}return r._$AI(s),r};var Tt=globalThis,E=class extends _{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){let e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=lt(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return f}};E._$litElement$=!0,E.finalized=!0,Tt.litElementHydrateSupport?.({LitElement:E});var Ue=Tt.litElementPolyfillSupport;Ue?.({LitElement:E});(Tt.litElementVersions??=[]).push("4.2.2");var ee=new Set,se;var oe=s=>typeof s=="string"?s:"el"in s?s.el.localName:"localName"in s?s.localName:s.declaredClass,Ps=(s,t,e,o)=>{let r=oe(t);if(o?.once){let i=`${s}${r}${e}`;if(ee.has(i))return;ee.add(i)}let n;if(o?.detail){n={};for(let[i,a]of Object.entries(o.detail))if((typeof a=="object"||typeof a=="function")&&a!==null){let l=new WeakRef(a);Object.defineProperty(n,i,{enumerable:!0,get(){return l.deref()}})}else n[i]=a;se?.log.interceptors?.forEach(i=>i(s,r,e,n)),console[s](`[${r}]: ${e}`,n)}else se?.log.interceptors?.forEach(i=>i(s,r,e)),console[s](`[${r}]: ${e}`)},re=s=>{let t=`[${oe(s)}] `;return e=>{let o=e instanceof Error&&e.message?e:new Error(String(e));o.message=`${t}${o.message}`,setTimeout(()=>{throw e})}},Ns=s=>`The property \`${s.toString()}\` is required but missing.`,Ds=s=>`The property \`${s.toString()}\` is empty but must have at least one element.`;var p=(s,t,...e)=>{try{return s?.call(t,...e)}catch(o){console.error(o,s)}},W=async(s,t,...e)=>{try{return await s?.call(t,...e)}catch(o){console.error(o,s)}};var q=Symbol.for("controller"),Me=s=>typeof s=="object"&&s!==null&&(q in s||"hostConnected"in s||"hostDisconnected"in s||"hostUpdate"in s||"hostUpdated"in s),Rs=s=>typeof s?.then=="function";var F,D=s=>{F!==s&&(F=s,queueMicrotask(()=>F===s?F=void 0:0))},G=s=>F,N=[],ht=s=>{if(s===void 0){N=[];return}let t=N.indexOf(s);N=t===-1?[...N,s]:N.slice(0,t+1),queueMicrotask(()=>N=[])},ne=()=>N,R,Us=s=>{R!==s&&(R=s,queueMicrotask(()=>R===s?R=void 0:0))},Ie=()=>{let s=R;return R=void 0,s},ie=async(s,t)=>{let e=dt(s);if(e===void 0)return s;if(await e.ready,typeof t=="function"){let o=e.watchExports(r=>t(r,o))}return e.exports},ae=async s=>{let t=dt(s);return await t.ready,t},dt=s=>{let e=G().manager.X(s);if(e!==void 0)return e;if(Me(s))return s;let o=Ie();if(o!==void 0)return o},ct=!1,Ms=s=>{ct=!0;try{return s()}finally{ct=!1}};var b=class{constructor(){this.promise=new Promise((t,e)=>{this.resolve=t,this.reject=e})}};var le=(s,t)=>{let e=t>ke?je:t/He,o=0,r=setInterval(()=>{o+=e,o>=t&&(clearInterval(r),s())},e);return r},ke=4e3,je=2e3,He=4;var Ve=(s,t,e)=>{let o=Object.keys(s),r=o.length;U===void 0&&queueMicrotask(M),U??=new Map;let n=U.get(s);return n===void 0&&(n={callbacks:[],keyCount:r},U.set(s,n)),n.keyCount!==r&&(n.callbacks.forEach(i=>i(o)),n.callbacks=[],n.keyCount=r),n.callbacks.push(i=>{let a=c=>p(t,null,c),l=i[r];l===void 0?a(void 0):s[l]===e?a(l):a(void 0)}),e},U,M=()=>{U?.forEach(({callbacks:s},t)=>{let e=Object.keys(t);s.forEach(o=>o(e))}),U=void 0},ze=(s,t,e)=>{let o=s.manager;return o.V!==d&&o.V!==e&&o.S(void 0,void 0),o.T.length===0&&queueMicrotask(()=>o.S(void 0,void 0)),o.V=e,o.T.push((r,n)=>p(t,void 0,e===n?r:void 0)),e},Be=(s=[G(),...ne()],t,e)=>{let o=Array.isArray(s)?s:[s],r=o.length+1,n=i=>{r-=1,i!==void 0&&(r=Math.min(r,0)),r===0&&t(i)};o.forEach(i=>Ve(i,a=>n(a===void 0?void 0:{key:a,host:i,isReactive:!1}),e));for(let i of o)if("manager"in i&&i.manager.component===i){ze(i,a=>n(a===void 0?void 0:{key:a,host:i,isReactive:!0}),e);break}return e},We=(s="",t={},e=G())=>{let o={emit:r=>{s===""&&M();let n=new CustomEvent(s,{detail:r,cancelable:!0,bubbles:!0,composed:!0,...t});return e.el.dispatchEvent(n),n}};return s===""&&Be(void 0,r=>s=r.key,o),o},Fe=We.bind(null,""),de;de=q;var St=class{constructor(t){this.#t=[],this.#e=[],this.#s=[],this.#r=[],this.#n=[],this.#l=[],this.#c=[],this.#d=[],this.#i=[],this.#p=!1,this.P=new b,this.connectedCalled=!1,this.loadedCalled=!1,this[de]=!0,this.#h=[];let e=this,o=t??G(new.target.name);e.#o=o,e.ready=e.P.promise,e.#a=he(e),e.component=o,e.#o.addController(e),e.#o.manager===void 0||(ht(e),queueMicrotask(()=>e.catchUpLifecycle()))}#t;#e;#s;#r;#n;#l;#c;#d;#i;#p;#o;catchUpLifecycle(){let{manager:t}=this.#o;t.connectedCalled&&!this.connectedCalled&&this.triggerConnected(),t.#p&&this.triggerLoad().then(()=>t.loadedCalled&&this.triggerLoaded()).catch(re(this.#o))}#a;get exports(){return this.#a}set exports(t){let e=this.#a;e!==t&&(this.#a=t,this.#h.forEach(p),this.connectedCalled&&this.O!==!1&&this.#o.requestUpdate(this.O,e)),this.P.resolve(t)}setProvisionalExports(t,e=!0){this.#a=e?he(t):t,this.#h.forEach(p)}#h;watchExports(t){let e=()=>t(this.#a);return this.#h.push(e),()=>{this.#h.splice(this.#h.indexOf(e),1)}}get use(){return D(this.#o),ie}get useRef(){return D(this.#o),ae}get useRefSync(){return D(this.#o),dt}controllerRemoved(){this.#o.el.isConnected&&this.triggerDisconnected(),this.triggerDestroy()}onConnected(t){this.#t.push(t)}onDisconnected(t){this.#e.push(t)}onLoad(t){this.#s.push(t)}onLoaded(t){this.#r.push(t)}onUpdate(t){this.#n.push(t)}onUpdated(t){this.#l.push(t)}onDestroy(t){this.#c.push(t)}onLifecycle(t){this.#d.push(t),this.connectedCalled&&this.#o.el.isConnected&&this.#u(t)}triggerConnected(){let t=this;t.hostConnected&&p(t.hostConnected,t),t.#t.forEach(p),t.triggerLifecycle(),t.connectedCalled=!0}triggerDisconnected(){let t=this;t.hostDisconnected&&p(t.hostDisconnected,t),t.#e.forEach(p),t.#i.forEach(p),t.#i=[]}async triggerLoad(){if(this.#p)return;this.#p=!0;let t=this;t.hostLoad&&await W(t.hostLoad,t),this.#s.length>0&&await Promise.allSettled(this.#s.map(W)),this.P.resolve(this.#a)}triggerLoaded(){this.loadedCalled||(this.hostLoaded&&p(this.hostLoaded,this),this.#r.forEach(p),this.loadedCalled=!0)}triggerUpdate(t){this.hostUpdate&&p(this.hostUpdate,this,t),this.#n.forEach(ce,t)}triggerUpdated(t){this.hostUpdated&&p(this.hostUpdated,this,t),this.#l.forEach(ce,t)}triggerDestroy(){this.hostDestroy&&p(this.hostDestroy,this),this.#c.forEach(p)}triggerLifecycle(){this.hostLifecycle&&this.#u(()=>this.hostLifecycle()),this.#d.forEach(this.#u,this)}#u(t){D(this.#o);let e=p(t);(Array.isArray(e)?e:[e]).forEach(r=>{typeof r=="function"?this.#i.push(r):typeof r=="object"&&typeof r.remove=="function"&&this.#i.push(r.remove)})}};function ce(s){p(s,void 0,this)}var he=s=>{if(typeof s!="object"&&typeof s!="function"||s===null)return s;let t={get(o,r,n){if(!((r==="exports"||r==="_exports")&&r in o&&o[r]===e)&&(r in o||r in Promise.prototype||typeof r=="symbol"))return typeof o=="function"?o[r]:Reflect.get(o,r,n)}},e=new Proxy(s,t);return e};var pe=St;var y={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},$=s=>(...t)=>({_$litDirective$:s,values:t}),g=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,o){this._$Ct=t,this._$AM=e,this._$Ci=o}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}};var{I:qe}=te,ue=s=>s;var pt=s=>s.strings===void 0,fe=()=>document.createComment(""),Ks=(s,t,e)=>{let o=s._$AA.parentNode,r=t===void 0?s._$AB:t._$AA;if(e===void 0){let n=o.insertBefore(fe(),r),i=o.insertBefore(fe(),r);e=new qe(n,i,s,s.options)}else{let n=e._$AB.nextSibling,i=e._$AM,a=i!==s;if(a){let l;e._$AQ?.(s),e._$AM=s,e._$AP!==void 0&&(l=s._$AU)!==i._$AU&&e._$AP(l)}if(n!==r||a){let l=e._$AA;for(;l!==n;){let c=ue(l).nextSibling;ue(o).insertBefore(l,r),l=c}}}return e},Js=(s,t,e=s)=>(s._$AI(t,e),s),Ge={},me=(s,t=Ge)=>s._$AH=t,Qs=s=>s._$AH,Ys=s=>{s._$AR(),s._$AA.remove()};var Ke=$(class extends g{constructor(s){if(super(s),s.type!==y.PROPERTY&&s.type!==y.ATTRIBUTE&&s.type!==y.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!pt(s))throw Error("`live` bindings can only contain a single expression")}render(s){return s}update(s,[t]){if(t===f||t===d)return t;let e=s.element,o=s.name;if(s.type===y.PROPERTY){if(t===e[o])return f}else if(s.type===y.BOOLEAN_ATTRIBUTE){if(!!t===e.hasAttribute(o))return f}else if(s.type===y.ATTRIBUTE&&e.getAttribute(o)===t+"")return f;return me(s),t}});var K=(s,t)=>{let e=s._$AN;if(e===void 0)return!1;for(let o of e)o._$AO?.(t,!1),K(o,t);return!0},ut=s=>{let t,e;do{if((t=s._$AM)===void 0)break;e=t._$AN,e.delete(s),s=t}while(e?.size===0)},ye=s=>{for(let t;t=s._$AM;s=t){let e=t._$AN;if(e===void 0)t._$AN=e=new Set;else if(e.has(s))break;e.add(s),Ye(t)}};function Je(s){this._$AN!==void 0?(ut(this),this._$AM=s,ye(this)):this._$AM=s}function Qe(s,t=!1,e=0){let o=this._$AH,r=this._$AN;if(r!==void 0&&r.size!==0)if(t)if(Array.isArray(o))for(let n=e;n<o.length;n++)K(o[n],!1),ut(o[n]);else o!=null&&(K(o,!1),ut(o));else K(this,s)}var Ye=s=>{s.type==y.CHILD&&(s._$AP??=Qe,s._$AQ??=Je)},ft=class extends g{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,e,o){super._$AT(t,e,o),ye(this),this.isConnected=t._$AU}_$AO(t,e=!0){t!==this.isConnected&&(this.isConnected=t,t?this.reconnected?.():this.disconnected?.()),e&&(K(this,t),ut(this))}setValue(t){if(pt(this._$Ct))this._$Ct._$AI(t,this);else{let e=[...this._$Ct._$AH];e[this._$Ci]=t,this._$Ct._$AI(e,this,0)}}disconnected(){}reconnected(){}};var fo=()=>new Nt,Nt=class{},Pt=new WeakMap,Dt=$(class extends ft{render(s){return d}update(s,[t]){let e=t!==this.G;return e&&this.G!==void 0&&this.rt(void 0),(e||this.lt!==this.ct)&&(this.G=t,this.ht=s.options?.host,this.rt(this.ct=s.element)),d}rt(s){if(this.isConnected||(s=void 0),typeof this.G=="function"){let t=this.ht??globalThis,e=Pt.get(t);e===void 0&&(e=new WeakMap,Pt.set(t,e)),e.get(this.G)!==void 0&&this.G.call(this.ht,void 0),e.set(this.G,s),s!==void 0&&this.G.call(this.ht,s)}else this.G.value=s}get lt(){return typeof this.G=="function"?Pt.get(this.ht??globalThis)?.get(this.G):this.G?.value}disconnected(){this.lt===this.ct&&this.rt(void 0)}reconnected(){this.rt(this.ct)}});var Lt=s=>{let t=s;for(;t=t.parentNode??t.host;)if(t?.constructor?.lumina){let e=t;return e.manager?.loadedCalled||(e.J??e._offspring).push(s),(e.I??e._postLoad).promise}return!1},Rt={};function Ut(){}function Mt(s){for(let t of["Associated","Disabled","Reset","StateRestore"]){let e=`orm${t}Callback`;s.prototype["f"+e]=async function(...o){await this.componentOnReady(),(this.el??this).dispatchEvent(new CustomEvent(`luminaF${e}`,{detail:o}))}}}var Ze=(s,t)=>function(o,r){if(!globalThis.customElements)return;let i=(r??o??{}).resourcesUrl;i&&s.setAssetPath(i);for(let[a,[l,c="",u=0]]of Object.entries(t)){if(customElements.get(a))continue;let[h,m,v]=c.split(";"),C=h?h?.split(",").map(ts):void 0,vt=C?.map(([x])=>x),Q=class extends xt{static{this.formAssociated=u===1}static{this.observedAttributes=C?.map(([,x])=>x).filter(x=>x!=="")}static{this.C=vt}static{this.E=m?m?.split(","):void 0}static{this.D=v?.split(",")}static{this.L=a}static{this.K=s}constructor(){!Q.B&&(Q.B=l(),Q.F()),super()}};customElements.define(a,Q)}},mt=Object.defineProperty,ts=s=>{let t=s.split(":");return t.length===1?[t[0],Y(t[0])]:t},es=globalThis.HTMLElement??Ut,xt=class extends es{constructor(){super(),this.#e={},this.#s=[],this.I=new b,this.H=new b,this.J=[];let t=this,e=t.constructor;t._offspring=t.J,t._postLoad=t.I,e.C?.forEach(o=>{Object.hasOwn(t,o)&&(t.#e[o]=t[o],delete t[o])}),e.A?t.#r({a:e.A}):e.B.then(async o=>{await e.K.p,t.#r(await(o.default?.then(r=>typeof r=="function"?{a:r}:r)??o))}).catch(o=>{t.H.reject(o),setTimeout(()=>{throw o})})}static{this.lumina=!0}static F(){for(let t of this.C??[])mt(this.prototype,t,{configurable:!0,enumerable:!0,get(){return this.#e[t]},set(e){this.#e[t]=e}});for(let t of this.E??[])mt(this.prototype,t,{async value(...e){return this.#t||await this.H.promise,await this.#t[t](...e)},configurable:!0});for(let t of this.D??[])mt(this.prototype,t,{value(...e){return this.#t[t](...e)},configurable:!0})}static{Mt(this)}#t;#e;#s;get manager(){return this.#t?.manager}attributeChangedCallback(t,e,o){this.#t?.attributeChangedCallback(t,e,o),this.#t||this.#s.push(t)}connectedCallback(){this.#t?this.#t.connectedCallback?.():queueMicrotask(()=>this.G=Lt(this))}disconnectedCallback(){this.#t?.disconnectedCallback?.()}async componentOnReady(){return await this.H.promise,this}#r(t){let e=this.constructor,o=e.L,r=this.#e,n=Object.values(t).find(h=>h.L===o),i=`${o}--lazy`,a=n;for(;a&&!Object.hasOwn(a,"lumina");)a=Object.getPrototypeOf(a);os(a),!e.A&&(e.A=n,customElements.define(i,n)),n.N=this;let c=document.createElement(i);n.N=void 0,this.#t=c,this.#e=c,this.#s.forEach(h=>c.attributeChangedCallback(h,null,this.getAttribute(h))),Object.entries(r).forEach(ss,c);let u=this.isConnected;(u||this.G)&&(c.connectedCallback?.(),u||c.disconnectedCallback())}addController(){}requestUpdate(){this.#t?.requestUpdate()}};function ss([s,t]){this[s]=t}var os=s=>{let t=s.prototype,e=Element.prototype;Object.hasOwn(t,"isConnected")||(t.setAttribute=function(r,n){e.setAttribute.call(this.el,r,n)},t.removeAttribute=function(r){e.removeAttribute.call(this.el,r)},t.hasAttribute=function(r){return e.hasAttribute.call(this.el,r)},mt(t,"isConnected",{get(){return Reflect.get(e,"isConnected",this.el)}}))};var yt=class extends pe{constructor(t){super(t),this.destroyed=!1,this.R=!1,this.V=d,this.T=[],this.#s=new WeakMap,this.#e=t,this.exports=void 0,this.hasDestroy=gt in t&&typeof t.destroy=="function",E.prototype.addController.call(t,{hostConnected:()=>{if(this.destroyed){let e=t.el.localName;throw t.el.remove(),new Error(`The ${e} component has already been destroyed. It cannot be used again. If you meant to disconnect and reconnect a component without automatic destroy, set the ${gt} prop.`)}this.#t!==void 0&&clearTimeout(this.#t),M();for(let e of t.M)"triggerConnected"in e?e.triggerConnected():p(e.hostConnected,e)},hostDisconnected:()=>{for(let e of t.M)"triggerDisconnected"in e?e.triggerDisconnected():p(e.hostDisconnected,e);this.hasDestroy&&!this.destroyed&&this.U()},hostUpdate:()=>{for(let e of t.M)"triggerUpdate"in e?e.triggerUpdate(this.Q):p(e.hostUpdate,e,this.Q)},hostUpdated:()=>{for(let e of t.M)"triggerUpdated"in e?e.triggerUpdated(this.Q):p(e.hostUpdated,e,this.Q);this.Q=void 0}}),queueMicrotask(()=>this.R=!0),ht(void 0),D(t)}#t;#e;async destroy(){if(!this.destroyed){this.#e.el.isConnected&&(this.hasDestroy=!1,this.#e.el.remove()),this.#t=void 0,this.destroyed=!0;for(let t of this.#e.M)"triggerDestroy"in t?t.triggerDestroy():p(t.hostDestroy,t);this.#e.M.splice(0)}}U(){if(this.#t!==void 0&&clearTimeout(this.#t),!this.#e.el.isConnected&&!this.#e.autoDestroyDisabled){let t=()=>{this.#e.destroy()};this.#t=le(t,rs)}}S(t,e){let o=this.T;this.V=d,this.T=[],o.forEach(r=>r(t,e))}#s;W(t,e){(typeof e=="object"&&e!==null||typeof e=="function")&&this.#s.set(e,t)}X(t){if(typeof t=="object"&&t!==null||typeof t=="function")return this.#s.get(t)}},rs=1e3,gt="autoDestroyDisabled";var ve=$(class extends g{constructor(s){if(super(s),s.type!==y.ATTRIBUTE||s.name!=="class"||s.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(s){return" "+Object.keys(s).filter(t=>s[t]).join(" ")+" "}update(s,[t]){if(this.st===void 0){this.st=new Set,s.strings!==void 0&&(this.nt=new Set(s.strings.join(" ").split(/\s/).filter(o=>o!=="")));for(let o in t)t[o]&&!this.nt?.has(o)&&this.st.add(o);return this.render(t)}let e=s.element.classList;for(let o of this.st)o in t||(e.remove(o),this.st.delete(o));for(let o in t){let r=!!t[o];r===this.st.has(o)||this.nt?.has(o)||(r?(e.add(o),this.st.add(o)):(e.remove(o),this.st.delete(o)))}return f}});var Ee="important",ns=" !"+Ee,$e=$(class extends g{constructor(s){if(super(s),s.type!==y.ATTRIBUTE||s.name!=="style"||s.strings?.length>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(s){return Object.keys(s).reduce((t,e)=>{let o=s[e];return o==null?t:t+`${e=e.includes("-")?e:e.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${o};`},"")}update(s,[t]){let{style:e}=s.element;if(this.ft===void 0)return this.ft=new Set(Object.keys(t)),this.render(t);for(let o of this.ft)t[o]==null&&(this.ft.delete(o),o.includes("-")?e.removeProperty(o):e[o]=null);for(let o in t){let r=t[o];if(r!=null){this.ft.add(o);let n=typeof r=="string"&&r.endsWith(ns);o.includes("-")||n?e.setProperty(o,n?r.slice(0,-11):r,n?Ee:""):e[o]=r}}return f}});var be=class s extends E{constructor(){super(),this.M=[],this.manager=new yt(this);let t=this,e=t.constructor,o=e.N,r=e.K.o,n=s.prototype.shouldUpdate;t.#r=o?.H??new b,t.I=o?.I??new b,t.J=o?.J??[],t._offspring=t.J,t._postLoad=t.I,t.el=o??t,t.#s=t.enableUpdating,t.enableUpdating=Ut,t.shouldUpdate!==n&&(t.#e=t.shouldUpdate,t.shouldUpdate=n),r&&(t.#t=new Map,e.elementProperties.forEach((i,a)=>t.#t.set(a,r()))),!1}static finalizeStyles(t){let e=super.finalizeStyles(t),o=this.shadowRootOptions===Rt;return this.K?.commonStyles===void 0||o?e:[this.K.commonStyles,...e]}static createProperty(t,e){let o=typeof e=="number"?e:Array.isArray(e)?e[0]:0,r=Array.isArray(e)?e[1]:void 0,n=r?.hasChanged??j,i={attribute:o&1&&typeof t=="string"?Y(t):!1,reflect:!!(o&2),type:o&4?Boolean:o&8?Number:void 0,state:!!(o&16),readOnly:!!(o&32),noAccessor:!!(o&64),useDefault:!!(o&128),c:!1,...r,hasChanged(a,l){let c=n(a,l);return i.c=c,c}};super.createProperty(t,i)}static getPropertyDescriptor(t,e,o){let r=this.K,n=super.getPropertyDescriptor(t,e,o);return o.d=n,{...n,get(){return r.t?.(this.#t.get(t)),n.get?.call(this)},set(i){let a=this.manager;if(o.readOnly&&!ct&&(a.R||a.connectedCalled))throw Error(`Cannot assign to read-only property "${t}" of ${this.el.localName}. Trying to assign "${i}"`);n.set.call(this,i??void 0),o.c&&this.#t?.get(t)?.notify(),a.T.length>0&&(M(),a?.S(t,i))}}}static{this.lumina=!0}static{Mt(this)}#t;#e;#s;#r;#n;#l;get elementInternals(){return this.#l??=this.el.attachInternals(),this.#l}connectedCallback(){this.hasAttribute("defer-hydration")||this.#c(!0)}#c(t){let e=this.constructor.K.c?.(()=>this.requestUpdate());this.#n=e;let o=!this.manager.connectedCalled;t&&super.connectedCallback(),o?queueMicrotask(()=>this.#i().catch(r=>{this.#r.reject(r),setTimeout(()=>{throw r})})):e&&this.requestUpdate()}#d(t){try{this.#n.clear(),this.constructor.K.r(this.#n,()=>super.update(t))}catch(e){throw this.#n.clear(),e}}disconnectedCallback(){super.disconnectedCallback(),this.#n?.destroy(),this.#n=void 0}createRenderRoot(){let t=this.el.shadowRoot,e=this.constructor,o=e.shadowRootOptions,n=t??(o===Rt?this.el:this.el.attachShadow(o));if(t)return this.manager.connectedCalled||this.#c(!1),E.prototype.createRenderRoot.call(this),t;if(this.isConnected){let i=n.getRootNode();i.adoptedStyleSheets=[...i.adoptedStyleSheets,...e.elementStyles.map(a=>"styleSheet"in a?a.styleSheet:a)]}return n}async#i(){let t=this.el.G??Lt(this.el);t&&await t;let e=[];for(let r of this.M)"triggerLoad"in r?e.push(r.triggerLoad()):e.push(W(r.hostLoad,r));await Promise.all(e),await this.load?.(),this.manager.hasDestroy&&this.manager.onUpdate(r=>r.has(gt)&&this.manager.U()),this.#s(!0),this.performUpdate(),this.I.resolve(),await 0;let o=this.J.filter(r=>!r.manager?.loadedCalled);o.length&&await Promise.allSettled(o.map(async r=>await r.componentOnReady())),this.J.length=0,this.el.setAttribute(this.constructor.K.hydratedAttribute,"");for(let r of this.M)"triggerLoaded"in r?r.triggerLoaded():p(r.hostLoaded,r);this.loaded?.(),this.#r.resolve()}shouldUpdate(t){return this.manager.Q=t,this.#e?.(t)??!0}update(t){this.#n?this.#d(t):super.update(t)}listen(t,e,o){let r=e?.bind(this)??e;this.manager.onLifecycle(()=>(this.el.addEventListener(t,r,o),()=>this.el.removeEventListener(t,r,o)))}listenOn(t,e,o,r){let n=o?.bind(this)??o;this.manager.onLifecycle(()=>(t.addEventListener(e,n,r),()=>t.removeEventListener(e,n,r)))}async componentOnReady(){return await this.#r.promise,this}addController(t){this.M.push(t),!(q in t)&&this.renderRoot&&this.el.isConnected&&t.hostConnected?.()}removeController(t){this.M.splice(this.M.indexOf(t),1),t.controllerRemoved?.()}};var Ae=s=>{let t,e=r=>{t=new URL(r,globalThis.location?.href||void 0).href},o={...s,getAssetPath(r){let n=new URL(r,t);return n.origin!==globalThis.location?.origin?n.href:n.pathname},setAssetPath:e,customElement(r,n){n.K=o,n.L=r,customElements.get(r)||customElements.define(r,n)}};return e(s.defaultAssetPath),o};var Sr=s=>typeof s=="object"&&s!=null?ve(s):s,Pr=s=>typeof s=="object"&&s!=null?$e(s):s;var It=class extends g{#t;#e;constructor(t){super(t);let e=this;this.#e=function(r){return e.#t.call(this,r)}}render(t){return typeof t=="function"?(this.#t=t,Dt(this.#e)):Dt(t)}},Nr=$(It);var Dr=d;var xr=s=>{let t=document.createElement("div");return lt(s,t),t.firstElementChild};var J=Ae({defaultAssetPath:"https://jsdev.arcgis.com/6.0.0-next/portal-components/",hydratedAttribute:"hydrated"}),{customElement:Ir,getAssetPath:kr,setAssetPath:jr}=J;J.t=void 0;J.o=void 0;J.c=void 0;J.r=void 0;export{Rs as a,D as b,G as c,ht as d,ne as e,Us as f,Ms as g,Ce as h,j as i,fs as j,ms as k,f as l,d as m,lt as n,b as o,Ps as p,re as q,Ns as r,Ds as s,ze as t,Be as u,We as v,Fe as w,St as x,pe as y,Ze as z,y as A,$ as B,g as C,Ks as D,Js as E,me as F,Qs as G,Ys as H,Ke as I,fo as J,Dt as K,be as L,Sr as M,Pr as N,Dr as O,xr as P,J as Q,Ir as R,kr as S};
|
|
4
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),Gt=/'/g,Kt=/"/g,Yt=/^(?:script|style|textarea|title)$/i,Ot=s=>(t,...e)=>({_$litType$:s,strings:t,values:e}),fs=Ot(1),ms=Ot(2),ys=Ot(3),f=Symbol.for("lit-noChange"),d=Symbol.for("lit-nothing"),Jt=new WeakMap,O=T.createTreeWalker(T,129);function Xt(s,t){if(!wt(s)||!s.hasOwnProperty("raw"))throw Error("invalid template strings array");return Wt!==void 0?Wt.createHTML(t):t}var Zt=(s,t)=>{let e=s.length-1,o=[],r,n=t===2?"<svg>":t===3?"<math>":"",i=H;for(let a=0;a<e;a++){let l=s[a],c,u,h=-1,m=0;for(;m<l.length&&(i.lastIndex=m,u=i.exec(l),u!==null);)m=i.lastIndex,i===H?u[1]==="!--"?i=Ft:u[1]!==void 0?i=qt:u[2]!==void 0?(Yt.test(u[2])&&(r=RegExp("</"+u[2],"g")),i=w):u[3]!==void 0&&(i=w):i===w?u[0]===">"?(i=r??H,h=-1):u[1]===void 0?h=-2:(h=i.lastIndex-u[2].length,c=u[1],i=u[3]===void 0?w:u[3]==='"'?Kt:Gt):i===Kt||i===Gt?i=w:i===Ft||i===qt?i=H:(i=w,r=void 0);let v=i===w&&s[a+1].startsWith("/>")?" ":"";n+=i===H?l+Le:h>=0?(o.push(c),l.slice(0,h)+At+l.slice(h)+A+v):l+A+(h===-2?a:v)}return[Xt(s,n+(s[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),o]},B=class s{constructor({strings:t,_$litType$:e},o){let r;this.parts=[];let n=0,i=0,a=t.length-1,l=this.parts,[c,u]=Zt(t,e);if(this.el=s.createElement(c,o),O.currentNode=this.el.content,e===2||e===3){let h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(r=O.nextNode())!==null&&l.length<a;){if(r.nodeType===1){if(r.hasAttributes())for(let h of r.getAttributeNames())if(h.endsWith(At)){let m=u[i++],v=r.getAttribute(h).split(A),C=/([.?@])?(.*)/.exec(m);l.push({type:1,index:n,name:C[2],strings:v,ctor:C[1]==="."?rt:C[1]==="?"?nt:C[1]==="@"?it:P}),r.removeAttribute(h)}else h.startsWith(A)&&(l.push({type:6,index:n}),r.removeAttribute(h));if(Yt.test(r.tagName)){let h=r.textContent.split(A),m=h.length-1;if(m>0){r.textContent=st?st.emptyScript:"";for(let v=0;v<m;v++)r.append(h[v],V()),O.nextNode(),l.push({type:2,index:++n});r.append(h[m],V())}}}else if(r.nodeType===8)if(r.data===Ct)l.push({type:2,index:n});else{let h=-1;for(;(h=r.data.indexOf(A,h+1))!==-1;)l.push({type:7,index:n}),h+=A.length-1}n++}}static createElement(t,e){let o=T.createElement("template");return o.innerHTML=t,o}};function S(s,t,e=s,o){if(t===f)return t;let r=o!==void 0?e._$Co?.[o]:e._$Cl,n=z(t)?void 0:t._$litDirective$;return r?.constructor!==n&&(r?._$AO?.(!1),n===void 0?r=void 0:(r=new n(s),r._$AT(s,e,o)),o!==void 0?(e._$Co??=[])[o]=r:e._$Cl=r),r!==void 0&&(t=S(s,r._$AS(s,t.values),r,o)),t}var ot=class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){let{el:{content:e},parts:o}=this._$AD,r=(t?.creationScope??T).importNode(e,!0);O.currentNode=r;let n=O.nextNode(),i=0,a=0,l=o[0];for(;l!==void 0;){if(i===l.index){let c;l.type===2?c=new L(n,n.nextSibling,this,t):l.type===1?c=new l.ctor(n,l.name,l.strings,this,t):l.type===6&&(c=new at(n,this,t)),this._$AV.push(c),l=o[++a]}i!==l?.index&&(n=O.nextNode(),i++)}return O.currentNode=T,r}p(t){let e=0;for(let o of this._$AV)o!==void 0&&(o.strings!==void 0?(o._$AI(t,o,e),e+=o.strings.length-2):o._$AI(t[e])),e++}},L=class s{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,o,r){this.type=2,this._$AH=d,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=o,this.options=r,this._$Cv=r?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode,e=this._$AM;return e!==void 0&&t?.nodeType===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=S(this,t,e),z(t)?t===d||t==null||t===""?(this._$AH!==d&&this._$AR(),this._$AH=d):t!==this._$AH&&t!==f&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):Qt(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==d&&z(this._$AH)?this._$AA.nextSibling.data=t:this.T(T.createTextNode(t)),this._$AH=t}$(t){let{values:e,_$litType$:o}=t,r=typeof o=="number"?this._$AC(t):(o.el===void 0&&(o.el=B.createElement(Xt(o.h,o.h[0]),this.options)),o);if(this._$AH?._$AD===r)this._$AH.p(e);else{let n=new ot(r,this),i=n.u(this.options);n.p(e),this.T(i),this._$AH=n}}_$AC(t){let e=Jt.get(t.strings);return e===void 0&&Jt.set(t.strings,e=new B(t)),e}k(t){wt(this._$AH)||(this._$AH=[],this._$AR());let e=this._$AH,o,r=0;for(let n of t)r===e.length?e.push(o=new s(this.O(V()),this.O(V()),this,this.options)):o=e[r],o._$AI(n),r++;r<e.length&&(this._$AR(o&&o._$AB.nextSibling,r),e.length=r)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t!==this._$AB;){let o=Bt(t).nextSibling;Bt(t).remove(),t=o}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},P=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,o,r,n){this.type=1,this._$AH=d,this._$AN=void 0,this.element=t,this.name=e,this._$AM=r,this.options=n,o.length>2||o[0]!==""||o[1]!==""?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=d}_$AI(t,e=this,o,r){let n=this.strings,i=!1;if(n===void 0)t=S(this,t,e,0),i=!z(t)||t!==this._$AH&&t!==f,i&&(this._$AH=t);else{let a=t,l,c;for(t=n[0],l=0;l<n.length-1;l++)c=S(this,a[o+l],e,l),c===f&&(c=this._$AH[l]),i||=!z(c)||c!==this._$AH[l],c===d?t=d:t!==d&&(t+=(c??"")+n[l+1]),this._$AH[l]=c}i&&!r&&this.j(t)}j(t){t===d?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},rt=class extends P{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===d?void 0:t}},nt=class extends P{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==d)}},it=class extends P{constructor(t,e,o,r,n){super(t,e,o,r,n),this.type=5}_$AI(t,e=this){if((t=S(this,t,e,0)??d)===f)return;let o=this._$AH,r=t===d&&o!==d||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,n=t!==d&&(o===d||r);r&&this.element.removeEventListener(this.name,this,o),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},at=class{constructor(t,e,o){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(t){S(this,t)}},te={M:At,P:A,A:Ct,C:1,L:Zt,R:ot,D:Qt,V:S,I:L,H:P,N:nt,U:it,B:rt,F:at},Re=_t.litHtmlPolyfillSupport;Re?.(B,L),(_t.litHtmlVersions??=[]).push("3.3.2");var lt=(s,t,e)=>{let o=e?.renderBefore??t,r=o._$litPart$;if(r===void 0){let n=e?.renderBefore??null;o._$litPart$=r=new L(t.insertBefore(V(),n),n,void 0,e??{})}return r._$AI(s),r};var Tt=globalThis,E=class extends _{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){let e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=lt(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return f}};E._$litElement$=!0,E.finalized=!0,Tt.litElementHydrateSupport?.({LitElement:E});var Ue=Tt.litElementPolyfillSupport;Ue?.({LitElement:E});(Tt.litElementVersions??=[]).push("4.2.2");var ee=new Set,se;var oe=s=>typeof s=="string"?s:"el"in s?s.el.localName:"localName"in s?s.localName:s.declaredClass,Ps=(s,t,e,o)=>{let r=oe(t);if(o?.once){let i=`${s}${r}${e}`;if(ee.has(i))return;ee.add(i)}let n;if(o?.detail){n={};for(let[i,a]of Object.entries(o.detail))if((typeof a=="object"||typeof a=="function")&&a!==null){let l=new WeakRef(a);Object.defineProperty(n,i,{enumerable:!0,get(){return l.deref()}})}else n[i]=a;se?.log.interceptors?.forEach(i=>i(s,r,e,n)),console[s](`[${r}]: ${e}`,n)}else se?.log.interceptors?.forEach(i=>i(s,r,e)),console[s](`[${r}]: ${e}`)},re=s=>{let t=`[${oe(s)}] `;return e=>{let o=e instanceof Error&&e.message?e:new Error(String(e));o.message=`${t}${o.message}`,setTimeout(()=>{throw e})}},Ns=s=>`The property \`${s.toString()}\` is required but missing.`,Ds=s=>`The property \`${s.toString()}\` is empty but must have at least one element.`;var p=(s,t,...e)=>{try{return s?.call(t,...e)}catch(o){console.error(o,s)}},W=async(s,t,...e)=>{try{return await s?.call(t,...e)}catch(o){console.error(o,s)}};var q=Symbol.for("controller"),Me=s=>typeof s=="object"&&s!==null&&(q in s||"hostConnected"in s||"hostDisconnected"in s||"hostUpdate"in s||"hostUpdated"in s),Rs=s=>typeof s?.then=="function";var F,D=s=>{F!==s&&(F=s,queueMicrotask(()=>F===s?F=void 0:0))},G=s=>F,N=[],ht=s=>{if(s===void 0){N=[];return}let t=N.indexOf(s);N=t===-1?[...N,s]:N.slice(0,t+1),queueMicrotask(()=>N=[])},ne=()=>N,R,Us=s=>{R!==s&&(R=s,queueMicrotask(()=>R===s?R=void 0:0))},Ie=()=>{let s=R;return R=void 0,s},ie=async(s,t)=>{let e=dt(s);if(e===void 0)return s;if(await e.ready,typeof t=="function"){let o=e.watchExports(r=>t(r,o))}return e.exports},ae=async s=>{let t=dt(s);return await t.ready,t},dt=s=>{let e=G().manager.X(s);if(e!==void 0)return e;if(Me(s))return s;let o=Ie();if(o!==void 0)return o},ct=!1,Ms=s=>{ct=!0;try{return s()}finally{ct=!1}};var b=class{constructor(){this.promise=new Promise((t,e)=>{this.resolve=t,this.reject=e})}};var le=(s,t)=>{let e=t>ke?je:t/He,o=0,r=setInterval(()=>{o+=e,o>=t&&(clearInterval(r),s())},e);return r},ke=4e3,je=2e3,He=4;var Ve=(s,t,e)=>{let o=Object.keys(s),r=o.length;U===void 0&&queueMicrotask(M),U??=new Map;let n=U.get(s);return n===void 0&&(n={callbacks:[],keyCount:r},U.set(s,n)),n.keyCount!==r&&(n.callbacks.forEach(i=>i(o)),n.callbacks=[],n.keyCount=r),n.callbacks.push(i=>{let a=c=>p(t,null,c),l=i[r];l===void 0?a(void 0):s[l]===e?a(l):a(void 0)}),e},U,M=()=>{U?.forEach(({callbacks:s},t)=>{let e=Object.keys(t);s.forEach(o=>o(e))}),U=void 0},ze=(s,t,e)=>{let o=s.manager;return o.V!==d&&o.V!==e&&o.S(void 0,void 0),o.T.length===0&&queueMicrotask(()=>o.S(void 0,void 0)),o.V=e,o.T.push((r,n)=>p(t,void 0,e===n?r:void 0)),e},Be=(s=[G(),...ne()],t,e)=>{let o=Array.isArray(s)?s:[s],r=o.length+1,n=i=>{r-=1,i!==void 0&&(r=Math.min(r,0)),r===0&&t(i)};o.forEach(i=>Ve(i,a=>n(a===void 0?void 0:{key:a,host:i,isReactive:!1}),e));for(let i of o)if("manager"in i&&i.manager.component===i){ze(i,a=>n(a===void 0?void 0:{key:a,host:i,isReactive:!0}),e);break}return e},We=(s="",t={},e=G())=>{let o={emit:r=>{s===""&&M();let n=new CustomEvent(s,{detail:r,cancelable:!0,bubbles:!0,composed:!0,...t});return e.el.dispatchEvent(n),n}};return s===""&&Be(void 0,r=>s=r.key,o),o},Fe=We.bind(null,""),de;de=q;var St=class{constructor(t){this.#t=[],this.#e=[],this.#s=[],this.#r=[],this.#n=[],this.#l=[],this.#c=[],this.#d=[],this.#i=[],this.#p=!1,this.P=new b,this.connectedCalled=!1,this.loadedCalled=!1,this[de]=!0,this.#h=[];let e=this,o=t??G(new.target.name);e.#o=o,e.ready=e.P.promise,e.#a=he(e),e.component=o,e.#o.addController(e),e.#o.manager===void 0||(ht(e),queueMicrotask(()=>e.catchUpLifecycle()))}#t;#e;#s;#r;#n;#l;#c;#d;#i;#p;#o;catchUpLifecycle(){let{manager:t}=this.#o;t.connectedCalled&&!this.connectedCalled&&this.triggerConnected(),t.#p&&this.triggerLoad().then(()=>t.loadedCalled&&this.triggerLoaded()).catch(re(this.#o))}#a;get exports(){return this.#a}set exports(t){let e=this.#a;e!==t&&(this.#a=t,this.#h.forEach(p),this.connectedCalled&&this.O!==!1&&this.#o.requestUpdate(this.O,e)),this.P.resolve(t)}setProvisionalExports(t,e=!0){this.#a=e?he(t):t,this.#h.forEach(p)}#h;watchExports(t){let e=()=>t(this.#a);return this.#h.push(e),()=>{this.#h.splice(this.#h.indexOf(e),1)}}get use(){return D(this.#o),ie}get useRef(){return D(this.#o),ae}get useRefSync(){return D(this.#o),dt}controllerRemoved(){this.#o.el.isConnected&&this.triggerDisconnected(),this.triggerDestroy()}onConnected(t){this.#t.push(t)}onDisconnected(t){this.#e.push(t)}onLoad(t){this.#s.push(t)}onLoaded(t){this.#r.push(t)}onUpdate(t){this.#n.push(t)}onUpdated(t){this.#l.push(t)}onDestroy(t){this.#c.push(t)}onLifecycle(t){this.#d.push(t),this.connectedCalled&&this.#o.el.isConnected&&this.#u(t)}triggerConnected(){let t=this;t.hostConnected&&p(t.hostConnected,t),t.#t.forEach(p),t.triggerLifecycle(),t.connectedCalled=!0}triggerDisconnected(){let t=this;t.hostDisconnected&&p(t.hostDisconnected,t),t.#e.forEach(p),t.#i.forEach(p),t.#i=[]}async triggerLoad(){if(this.#p)return;this.#p=!0;let t=this;t.hostLoad&&await W(t.hostLoad,t),this.#s.length>0&&await Promise.allSettled(this.#s.map(W)),this.P.resolve(this.#a)}triggerLoaded(){this.loadedCalled||(this.hostLoaded&&p(this.hostLoaded,this),this.#r.forEach(p),this.loadedCalled=!0)}triggerUpdate(t){this.hostUpdate&&p(this.hostUpdate,this,t),this.#n.forEach(ce,t)}triggerUpdated(t){this.hostUpdated&&p(this.hostUpdated,this,t),this.#l.forEach(ce,t)}triggerDestroy(){this.hostDestroy&&p(this.hostDestroy,this),this.#c.forEach(p)}triggerLifecycle(){this.hostLifecycle&&this.#u(()=>this.hostLifecycle()),this.#d.forEach(this.#u,this)}#u(t){D(this.#o);let e=p(t);(Array.isArray(e)?e:[e]).forEach(r=>{typeof r=="function"?this.#i.push(r):typeof r=="object"&&typeof r.remove=="function"&&this.#i.push(r.remove)})}};function ce(s){p(s,void 0,this)}var he=s=>{if(typeof s!="object"&&typeof s!="function"||s===null)return s;let t={get(o,r,n){if(!((r==="exports"||r==="_exports")&&r in o&&o[r]===e)&&(r in o||r in Promise.prototype||typeof r=="symbol"))return typeof o=="function"?o[r]:Reflect.get(o,r,n)}},e=new Proxy(s,t);return e};var pe=St;var y={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},$=s=>(...t)=>({_$litDirective$:s,values:t}),g=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,o){this._$Ct=t,this._$AM=e,this._$Ci=o}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}};var{I:qe}=te,ue=s=>s;var pt=s=>s.strings===void 0,fe=()=>document.createComment(""),Ks=(s,t,e)=>{let o=s._$AA.parentNode,r=t===void 0?s._$AB:t._$AA;if(e===void 0){let n=o.insertBefore(fe(),r),i=o.insertBefore(fe(),r);e=new qe(n,i,s,s.options)}else{let n=e._$AB.nextSibling,i=e._$AM,a=i!==s;if(a){let l;e._$AQ?.(s),e._$AM=s,e._$AP!==void 0&&(l=s._$AU)!==i._$AU&&e._$AP(l)}if(n!==r||a){let l=e._$AA;for(;l!==n;){let c=ue(l).nextSibling;ue(o).insertBefore(l,r),l=c}}}return e},Js=(s,t,e=s)=>(s._$AI(t,e),s),Ge={},me=(s,t=Ge)=>s._$AH=t,Qs=s=>s._$AH,Ys=s=>{s._$AR(),s._$AA.remove()};var Ke=$(class extends g{constructor(s){if(super(s),s.type!==y.PROPERTY&&s.type!==y.ATTRIBUTE&&s.type!==y.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!pt(s))throw Error("`live` bindings can only contain a single expression")}render(s){return s}update(s,[t]){if(t===f||t===d)return t;let e=s.element,o=s.name;if(s.type===y.PROPERTY){if(t===e[o])return f}else if(s.type===y.BOOLEAN_ATTRIBUTE){if(!!t===e.hasAttribute(o))return f}else if(s.type===y.ATTRIBUTE&&e.getAttribute(o)===t+"")return f;return me(s),t}});var K=(s,t)=>{let e=s._$AN;if(e===void 0)return!1;for(let o of e)o._$AO?.(t,!1),K(o,t);return!0},ut=s=>{let t,e;do{if((t=s._$AM)===void 0)break;e=t._$AN,e.delete(s),s=t}while(e?.size===0)},ye=s=>{for(let t;t=s._$AM;s=t){let e=t._$AN;if(e===void 0)t._$AN=e=new Set;else if(e.has(s))break;e.add(s),Ye(t)}};function Je(s){this._$AN!==void 0?(ut(this),this._$AM=s,ye(this)):this._$AM=s}function Qe(s,t=!1,e=0){let o=this._$AH,r=this._$AN;if(r!==void 0&&r.size!==0)if(t)if(Array.isArray(o))for(let n=e;n<o.length;n++)K(o[n],!1),ut(o[n]);else o!=null&&(K(o,!1),ut(o));else K(this,s)}var Ye=s=>{s.type==y.CHILD&&(s._$AP??=Qe,s._$AQ??=Je)},ft=class extends g{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,e,o){super._$AT(t,e,o),ye(this),this.isConnected=t._$AU}_$AO(t,e=!0){t!==this.isConnected&&(this.isConnected=t,t?this.reconnected?.():this.disconnected?.()),e&&(K(this,t),ut(this))}setValue(t){if(pt(this._$Ct))this._$Ct._$AI(t,this);else{let e=[...this._$Ct._$AH];e[this._$Ci]=t,this._$Ct._$AI(e,this,0)}}disconnected(){}reconnected(){}};var fo=()=>new Nt,Nt=class{},Pt=new WeakMap,Dt=$(class extends ft{render(s){return d}update(s,[t]){let e=t!==this.G;return e&&this.G!==void 0&&this.rt(void 0),(e||this.lt!==this.ct)&&(this.G=t,this.ht=s.options?.host,this.rt(this.ct=s.element)),d}rt(s){if(this.isConnected||(s=void 0),typeof this.G=="function"){let t=this.ht??globalThis,e=Pt.get(t);e===void 0&&(e=new WeakMap,Pt.set(t,e)),e.get(this.G)!==void 0&&this.G.call(this.ht,void 0),e.set(this.G,s),s!==void 0&&this.G.call(this.ht,s)}else this.G.value=s}get lt(){return typeof this.G=="function"?Pt.get(this.ht??globalThis)?.get(this.G):this.G?.value}disconnected(){this.lt===this.ct&&this.rt(void 0)}reconnected(){this.rt(this.ct)}});var Lt=s=>{let t=s;for(;t=t.parentNode??t.host;)if(t?.constructor?.lumina){let e=t;return e.manager?.loadedCalled||(e.J??e._offspring).push(s),(e.I??e._postLoad).promise}return!1},Rt={};function Ut(){}function Mt(s){for(let t of["Associated","Disabled","Reset","StateRestore"]){let e=`orm${t}Callback`;s.prototype["f"+e]=async function(...o){await this.componentOnReady(),(this.el??this).dispatchEvent(new CustomEvent(`luminaF${e}`,{detail:o}))}}}var Ze=(s,t)=>function(o,r){if(!globalThis.customElements)return;let i=(r??o??{}).resourcesUrl;i&&s.setAssetPath(i);for(let[a,[l,c="",u=0]]of Object.entries(t)){if(customElements.get(a))continue;let[h,m,v]=c.split(";"),C=h?h?.split(",").map(ts):void 0,vt=C?.map(([x])=>x),Q=class extends xt{static{this.formAssociated=u===1}static{this.observedAttributes=C?.map(([,x])=>x).filter(x=>x!=="")}static{this.C=vt}static{this.E=m?m?.split(","):void 0}static{this.D=v?.split(",")}static{this.L=a}static{this.K=s}constructor(){!Q.B&&(Q.B=l(),Q.F()),super()}};customElements.define(a,Q)}},mt=Object.defineProperty,ts=s=>{let t=s.split(":");return t.length===1?[t[0],Y(t[0])]:t},es=globalThis.HTMLElement??Ut,xt=class extends es{constructor(){super(),this.#e={},this.#s=[],this.I=new b,this.H=new b,this.J=[];let t=this,e=t.constructor;t._offspring=t.J,t._postLoad=t.I,e.C?.forEach(o=>{Object.hasOwn(t,o)&&(t.#e[o]=t[o],delete t[o])}),e.A?t.#r({a:e.A}):e.B.then(async o=>{await e.K.p,t.#r(await(o.default?.then(r=>typeof r=="function"?{a:r}:r)??o))}).catch(o=>{t.H.reject(o),setTimeout(()=>{throw o})})}static{this.lumina=!0}static F(){for(let t of this.C??[])mt(this.prototype,t,{configurable:!0,enumerable:!0,get(){return this.#e[t]},set(e){this.#e[t]=e}});for(let t of this.E??[])mt(this.prototype,t,{async value(...e){return this.#t||await this.H.promise,await this.#t[t](...e)},configurable:!0});for(let t of this.D??[])mt(this.prototype,t,{value(...e){return this.#t[t](...e)},configurable:!0})}static{Mt(this)}#t;#e;#s;get manager(){return this.#t?.manager}attributeChangedCallback(t,e,o){this.#t?.attributeChangedCallback(t,e,o),this.#t||this.#s.push(t)}connectedCallback(){this.#t?this.#t.connectedCallback?.():queueMicrotask(()=>this.G=Lt(this))}disconnectedCallback(){this.#t?.disconnectedCallback?.()}async componentOnReady(){return await this.H.promise,this}#r(t){let e=this.constructor,o=e.L,r=this.#e,n=Object.values(t).find(h=>h.L===o),i=`${o}--lazy`,a=n;for(;a&&!Object.hasOwn(a,"lumina");)a=Object.getPrototypeOf(a);os(a),!e.A&&(e.A=n,customElements.define(i,n)),n.N=this;let c=document.createElement(i);n.N=void 0,this.#t=c,this.#e=c,this.#s.forEach(h=>c.attributeChangedCallback(h,null,this.getAttribute(h))),Object.entries(r).forEach(ss,c);let u=this.isConnected;(u||this.G)&&(c.connectedCallback?.(),u||c.disconnectedCallback())}addController(){}requestUpdate(){this.#t?.requestUpdate()}};function ss([s,t]){this[s]=t}var os=s=>{let t=s.prototype,e=Element.prototype;Object.hasOwn(t,"isConnected")||(t.setAttribute=function(r,n){e.setAttribute.call(this.el,r,n)},t.removeAttribute=function(r){e.removeAttribute.call(this.el,r)},t.hasAttribute=function(r){return e.hasAttribute.call(this.el,r)},mt(t,"isConnected",{get(){return Reflect.get(e,"isConnected",this.el)}}))};var yt=class extends pe{constructor(t){super(t),this.destroyed=!1,this.R=!1,this.V=d,this.T=[],this.#s=new WeakMap,this.#e=t,this.exports=void 0,this.hasDestroy=gt in t&&typeof t.destroy=="function",E.prototype.addController.call(t,{hostConnected:()=>{if(this.destroyed){let e=t.el.localName;throw t.el.remove(),new Error(`The ${e} component has already been destroyed. It cannot be used again. If you meant to disconnect and reconnect a component without automatic destroy, set the ${gt} prop.`)}this.#t!==void 0&&clearTimeout(this.#t),M();for(let e of t.M)"triggerConnected"in e?e.triggerConnected():p(e.hostConnected,e)},hostDisconnected:()=>{for(let e of t.M)"triggerDisconnected"in e?e.triggerDisconnected():p(e.hostDisconnected,e);this.hasDestroy&&!this.destroyed&&this.U()},hostUpdate:()=>{for(let e of t.M)"triggerUpdate"in e?e.triggerUpdate(this.Q):p(e.hostUpdate,e,this.Q)},hostUpdated:()=>{for(let e of t.M)"triggerUpdated"in e?e.triggerUpdated(this.Q):p(e.hostUpdated,e,this.Q);this.Q=void 0}}),queueMicrotask(()=>this.R=!0),ht(void 0),D(t)}#t;#e;async destroy(){if(!this.destroyed){this.#e.el.isConnected&&(this.hasDestroy=!1,this.#e.el.remove()),this.#t=void 0,this.destroyed=!0;for(let t of this.#e.M)"triggerDestroy"in t?t.triggerDestroy():p(t.hostDestroy,t);this.#e.M.splice(0)}}U(){if(this.#t!==void 0&&clearTimeout(this.#t),!this.#e.el.isConnected&&!this.#e.autoDestroyDisabled){let t=()=>{this.#e.destroy()};this.#t=le(t,rs)}}S(t,e){let o=this.T;this.V=d,this.T=[],o.forEach(r=>r(t,e))}#s;W(t,e){(typeof e=="object"&&e!==null||typeof e=="function")&&this.#s.set(e,t)}X(t){if(typeof t=="object"&&t!==null||typeof t=="function")return this.#s.get(t)}},rs=1e3,gt="autoDestroyDisabled";var ve=$(class extends g{constructor(s){if(super(s),s.type!==y.ATTRIBUTE||s.name!=="class"||s.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(s){return" "+Object.keys(s).filter(t=>s[t]).join(" ")+" "}update(s,[t]){if(this.st===void 0){this.st=new Set,s.strings!==void 0&&(this.nt=new Set(s.strings.join(" ").split(/\s/).filter(o=>o!=="")));for(let o in t)t[o]&&!this.nt?.has(o)&&this.st.add(o);return this.render(t)}let e=s.element.classList;for(let o of this.st)o in t||(e.remove(o),this.st.delete(o));for(let o in t){let r=!!t[o];r===this.st.has(o)||this.nt?.has(o)||(r?(e.add(o),this.st.add(o)):(e.remove(o),this.st.delete(o)))}return f}});var Ee="important",ns=" !"+Ee,$e=$(class extends g{constructor(s){if(super(s),s.type!==y.ATTRIBUTE||s.name!=="style"||s.strings?.length>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(s){return Object.keys(s).reduce((t,e)=>{let o=s[e];return o==null?t:t+`${e=e.includes("-")?e:e.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${o};`},"")}update(s,[t]){let{style:e}=s.element;if(this.ft===void 0)return this.ft=new Set(Object.keys(t)),this.render(t);for(let o of this.ft)t[o]==null&&(this.ft.delete(o),o.includes("-")?e.removeProperty(o):e[o]=null);for(let o in t){let r=t[o];if(r!=null){this.ft.add(o);let n=typeof r=="string"&&r.endsWith(ns);o.includes("-")||n?e.setProperty(o,n?r.slice(0,-11):r,n?Ee:""):e[o]=r}}return f}});var be=class s extends E{constructor(){super(),this.M=[],this.manager=new yt(this);let t=this,e=t.constructor,o=e.N,r=e.K.o,n=s.prototype.shouldUpdate;t.#r=o?.H??new b,t.I=o?.I??new b,t.J=o?.J??[],t._offspring=t.J,t._postLoad=t.I,t.el=o??t,t.#s=t.enableUpdating,t.enableUpdating=Ut,t.shouldUpdate!==n&&(t.#e=t.shouldUpdate,t.shouldUpdate=n),r&&(t.#t=new Map,e.elementProperties.forEach((i,a)=>t.#t.set(a,r()))),!1}static finalizeStyles(t){let e=super.finalizeStyles(t),o=this.shadowRootOptions===Rt;return this.K?.commonStyles===void 0||o?e:[this.K.commonStyles,...e]}static createProperty(t,e){let o=typeof e=="number"?e:Array.isArray(e)?e[0]:0,r=Array.isArray(e)?e[1]:void 0,n=r?.hasChanged??j,i={attribute:o&1&&typeof t=="string"?Y(t):!1,reflect:!!(o&2),type:o&4?Boolean:o&8?Number:void 0,state:!!(o&16),readOnly:!!(o&32),noAccessor:!!(o&64),useDefault:!!(o&128),c:!1,...r,hasChanged(a,l){let c=n(a,l);return i.c=c,c}};super.createProperty(t,i)}static getPropertyDescriptor(t,e,o){let r=this.K,n=super.getPropertyDescriptor(t,e,o);return o.d=n,{...n,get(){return r.t?.(this.#t.get(t)),n.get?.call(this)},set(i){let a=this.manager;if(o.readOnly&&!ct&&(a.R||a.connectedCalled))throw Error(`Cannot assign to read-only property "${t}" of ${this.el.localName}. Trying to assign "${i}"`);n.set.call(this,i??void 0),o.c&&this.#t?.get(t)?.notify(),a.T.length>0&&(M(),a?.S(t,i))}}}static{this.lumina=!0}static{Mt(this)}#t;#e;#s;#r;#n;#l;get elementInternals(){return this.#l??=this.el.attachInternals(),this.#l}connectedCallback(){this.hasAttribute("defer-hydration")||this.#c(!0)}#c(t){let e=this.constructor.K.c?.(()=>this.requestUpdate());this.#n=e;let o=!this.manager.connectedCalled;t&&super.connectedCallback(),o?queueMicrotask(()=>this.#i().catch(r=>{this.#r.reject(r),setTimeout(()=>{throw r})})):e&&this.requestUpdate()}#d(t){try{this.#n.clear(),this.constructor.K.r(this.#n,()=>super.update(t))}catch(e){throw this.#n.clear(),e}}disconnectedCallback(){super.disconnectedCallback(),this.#n?.destroy(),this.#n=void 0}createRenderRoot(){let t=this.el.shadowRoot,e=this.constructor,o=e.shadowRootOptions,n=t??(o===Rt?this.el:this.el.attachShadow(o));if(t)return this.manager.connectedCalled||this.#c(!1),E.prototype.createRenderRoot.call(this),t;if(this.isConnected){let i=n.getRootNode();i.adoptedStyleSheets=[...i.adoptedStyleSheets,...e.elementStyles.map(a=>"styleSheet"in a?a.styleSheet:a)]}return n}async#i(){let t=this.el.G??Lt(this.el);t&&await t;let e=[];for(let r of this.M)"triggerLoad"in r?e.push(r.triggerLoad()):e.push(W(r.hostLoad,r));await Promise.all(e),await this.load?.(),this.manager.hasDestroy&&this.manager.onUpdate(r=>r.has(gt)&&this.manager.U()),this.#s(!0),this.performUpdate(),this.I.resolve(),await 0;let o=this.J.filter(r=>!r.manager?.loadedCalled);o.length&&await Promise.allSettled(o.map(async r=>await r.componentOnReady())),this.J.length=0,this.el.setAttribute(this.constructor.K.hydratedAttribute,"");for(let r of this.M)"triggerLoaded"in r?r.triggerLoaded():p(r.hostLoaded,r);this.loaded?.(),this.#r.resolve()}shouldUpdate(t){return this.manager.Q=t,this.#e?.(t)??!0}update(t){this.#n?this.#d(t):super.update(t)}listen(t,e,o){let r=e?.bind(this)??e;this.manager.onLifecycle(()=>(this.el.addEventListener(t,r,o),()=>this.el.removeEventListener(t,r,o)))}listenOn(t,e,o,r){let n=o?.bind(this)??o;this.manager.onLifecycle(()=>(t.addEventListener(e,n,r),()=>t.removeEventListener(e,n,r)))}async componentOnReady(){return await this.#r.promise,this}addController(t){this.M.push(t),!(q in t)&&this.renderRoot&&this.el.isConnected&&t.hostConnected?.()}removeController(t){this.M.splice(this.M.indexOf(t),1),t.controllerRemoved?.()}};var Ae=s=>{let t,e=r=>{t=new URL(r,globalThis.location?.href||void 0).href},o={...s,getAssetPath(r){let n=new URL(r,t);return n.origin!==globalThis.location?.origin?n.href:n.pathname},setAssetPath:e,customElement(r,n){n.K=o,n.L=r,customElements.get(r)||customElements.define(r,n)}};return e(s.defaultAssetPath),o};var Sr=s=>typeof s=="object"&&s!=null?ve(s):s,Pr=s=>typeof s=="object"&&s!=null?$e(s):s;var It=class extends g{#t;#e;constructor(t){super(t);let e=this;this.#e=function(r){return e.#t.call(this,r)}}render(t){return typeof t=="function"?(this.#t=t,Dt(this.#e)):Dt(t)}},Nr=$(It);var Dr=d;var xr=s=>{let t=document.createElement("div");return lt(s,t),t.firstElementChild};var J=Ae({defaultAssetPath:"https://jsdev.arcgis.com/5.2.0-next/portal-components/",hydratedAttribute:"hydrated"}),{customElement:Ir,getAssetPath:kr,setAssetPath:jr}=J;J.t=void 0;J.o=void 0;J.c=void 0;J.r=void 0;export{Rs as a,D as b,G as c,ht as d,ne as e,Us as f,Ms as g,Ce as h,j as i,fs as j,ms as k,f as l,d as m,lt as n,b as o,Ps as p,re as q,Ns as r,Ds as s,ze as t,Be as u,We as v,Fe as w,St as x,pe as y,Ze as z,y as A,$ as B,g as C,Ks as D,Js as E,me as F,Qs as G,Ys as H,Ke as I,fo as J,Dt as K,be as L,Sr as M,Pr as N,Dr as O,xr as P,J as Q,Ir as R,kr as S};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/
|
|
2
|
-
import e from"./
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
+
import e from"./MQISQ7P3.js";import{a as C}from"./CFBSBZSS.js";import{d as N,e as B}from"./QDWOQBO3.js";import{a as L}from"./OQGUCK3G.js";import{a as y}from"./25XJ66JO.js";import"./5YDITHQA.js";import d from"./RBGARTND.js";import c from"./F3ODJVJC.js";import a from"./OUFIJDIW.js";import{a as w}from"./VMQIDO4Z.js";import"./QS3GXAIH.js";import"./2GBRZSEC.js";import{a as A}from"./XUPYBBRI.js";import"./C5U7YKVI.js";import"./6BMWSGLA.js";import{J as g,K as b,L as O,M as $,N as P,R,h as x,j as n,w as v}from"./CWSEBETE.js";import"./R74ZHFA6.js";import"./UZLQALHY.js";export default $arcgis.t(([{a:_,b:k},,{a:d},z])=>{var S=x`:host{display:flex}.button{display:flex;align-items:center;max-width:100%;cursor:pointer;white-space:normal;border-style:none;padding:0;font-size:.75rem;color:var(--calcite-color-text-2);outline:2px solid transparent;outline-offset:2px;transition-property:all;outline-color:transparent;background:transparent;font-family:inherit;line-height:1.5;&:focus{outline:2px solid var(--calcite-color-brand);outline-offset:2px}}.button--outline{box-sizing:border-box;width:100%;padding:.5rem .75rem;transition-property:all;border:1px solid var(--calcite-color-border-3);&:hover{box-shadow:inset 0 0 0 1px var(--calcite-color-foreground-3)}}.name{overflow:hidden;white-space:nowrap;margin-inline-start:.5rem;text-overflow:ellipsis}.popover__wrapper{background-color:var(--calcite-color-foreground-1);width:min(32rem,80vw)}.popover__header{padding:1.25rem 1rem}.popover__avatar{max-width:100%}.popover__content{padding:.5rem 1rem 1.25rem}.popover__description{margin:0;overflow:auto;padding:0;padding-bottom:1rem;font-size:.875rem;color:var(--calcite-color-text-2);max-height:21.25rem}.popover__fade{position:relative;z-index:10;margin-bottom:.25rem;display:block;height:1rem;width:100%;background:linear-gradient(to bottom,transparent,var(--calcite-color-foreground-1) 100%);margin-top:-1rem}.popover__buttons{display:grid;grid-auto-flow:column;grid-gap:.5rem}.popover__buttons--no-description{padding-top:1rem}.popover__button{min-width:0px}.popover__loader{--calcite-loader-padding: 0}`,q=a=>a?.sourceJSON?.contentStatus==="public_authoritative";async function G(a,t,o,r){if(q(a)){let e=a.owner||"",i=await z(a,o,t,r);if(!i)return await d(e,t,r);let{description:s,name:l,thumbnail:u,url:p}=i;return{description:s?y(s):"",fullName:l,username:e,thumbnail:u,id:a.portal.id,url:p}}return await d(a.owner||"",t,r)}async function H(a,t,o){let r=o?"https://www.arcgis.com/sharing/rest/":w(t),e=o?{disableIdentityLookup:!0,addTokenManually:!1}:{};return await _({requester:async()=>await k({url:`${r}community/groups`,portal:t,params:{q:`(owner:"${a}")`,num:100},options:e}),key:"userGroups",id:a})}async function J(a,t,o){let r=o?"https://www.arcgis.com/sharing/rest/":w(t),e=o?{disableIdentityLookup:!0,addTokenManually:!1}:{};return await _({requester:async()=>(await k({url:`${r}search`,portal:t,params:{q:`(owner:"${a}") -typekeywords:"recyclebin"`,num:1},options:e})).total,key:"userItemsTotal",id:a})}function M({baseUrl:a,user:t,type:o}){let r=B(a),e=encodeURIComponent(t.username||"");return e?`${r}/${o}.html?user=${e}`:`${r}/${o}.html`}var U=class extends O{constructor(){super(...arguments),this.messages=A({blocking:!0}),this.buttonRef=g(),this.popoverRef=g(),this.isPopoverOpen=!1,this.scale="m",this.showAvatar=!0,this.showName=!0,this.showUsername=!1,this.appearance="transparent",this.arcgisUserPopupInternalUIAction=v(),this.arcgisUserPopupClose=v()}static{this.properties={itemUserInfo:16,groups:16,total:16,isPopoverOpen:16,user:0,username:1,fullName:1,item:0,scale:3,portal:0,baseUrl:1,underline:5,showAvatar:5,showName:5,showUsername:5,wrap:5,appearance:1,zIndex:9,avatarAriaHidden:5,checkOnline:5}}static{this.styles=S}async setFocus(){this.buttonRef.value?.focus()}async openPopup(){this.buttonRef.value?.click()}connectedCallback(){super.connectedCallback(),this.init()}updated(t){t.has("isPopoverOpen")&&this.isPopoverOpen&&this.setPopoverOpen(!0)}get resolvedBaseUrl(){return this.baseUrl||`${this.portal.url}/home`}async init(){let{item:t,username:o,portal:r,fullName:e,messages:i}=this;if(!(!i._lang||!r)){if(t){this.itemUserInfo=await G(t,r,i._lang,this.checkOnline);return}if(o){let s=await d(o,r,this.checkOnline);!s.fullName&&e&&(s.fullName=e),this.itemUserInfo=s}}}async fetchItemsAndGroups(){let{user:t,itemUserInfo:o,item:r,portal:e,username:i,checkOnline:s}=this,l=i||t?.username||r?.owner||o?.username;if(!(!l||!e)){if(!this.groups){let u=await H(l,e,s);this.groups=u}this.total=await J(l,e,s)}}setPopoverOpen(t){requestAnimationFrame(()=>{this.popoverRef.value&&(this.popoverRef.value.open=t)})}openLink(t,o){t.preventDefault(),window.open(o,"_blank")}renderOrgButtons(t){let{messages:o}=this,r=(t.url||this.resolvedBaseUrl).replace(/\/$/u,"");return n`<calcite-button appearance=outline-fill kind=neutral .href=${r} target=_blank @click=${e=>this.openLink(e,r)}>${o.homepage}</calcite-button><calcite-button appearance=outline-fill kind=neutral .href=${`${r}/gallery.html`} target=_blank @click=${e=>this.openLink(e,`${r}/gallery.html`)}>${o.gallery}</calcite-button>`}renderUserButtons(t){let{total:o,groups:r,messages:e}=this,i=t.username||"";if(typeof o!="number"||!r)return n`<calcite-loader .label=${e.loadingUserInformation} scale=s class="popover__loader"></calcite-loader>`;let s=M({baseUrl:this.resolvedBaseUrl,user:{username:i},type:"groups"}),l=M({baseUrl:this.resolvedBaseUrl,user:{username:i},type:"content"}),u=`${this.resolvedBaseUrl.replace(/\/$/u,"")}/user.html?user=${encodeURIComponent(i)}`;return n`${!!r.total&&n`<calcite-button class="popover__button" appearance=outline-fill kind=neutral .href=${s} target=_blank @click=${p=>{this.openLink(p,s),this.arcgisUserPopupInternalUIAction.emit({category:"profile popup",action:"view all groups"})}}>${e.groups.replace("${number}",new Intl.NumberFormat(e._lang).format(r.total))}</calcite-button>`||""}${!!o&&n`<calcite-button class="popover__button" appearance=outline-fill kind=neutral .href=${l} target=_blank @click=${p=>{this.openLink(p,l),this.arcgisUserPopupInternalUIAction.emit({category:"profile popup",action:"view all content"})}}>${e.items.replace("${number}",new Intl.NumberFormat(e._lang).format(o))}</calcite-button>`||""}<calcite-button class="popover__button" appearance=outline-fill kind=neutral .href=${u} target=_blank @click=${p=>{this.openLink(p,u),this.arcgisUserPopupInternalUIAction.emit({category:"profile popup",action:"view profile"})}}>${e.profile}</calcite-button>`}render(){let{user:t,itemUserInfo:o,portal:r,item:e,appearance:i,scale:s,isPopoverOpen:l,showName:u,showUsername:p,messages:f}=this,c=t||o;if(!f._lang||!c)return n`<arcgis-portal-user-avatar scale=s show-name .checkOnline=${this.checkOnline}></arcgis-portal-user-avatar>`;let I=q(e),m=c.username||"",h=N(c.description||"")||"",T=C(c,f._lang),E=I?f.itemManagedBy.replace("${username}",m):m;return n`<button class=${$({button:!0,"button--outline":i==="outline"})} @click=${()=>{this.isPopoverOpen||(this.isPopoverOpen=!0),this.fetchItemsAndGroups()}} ${b(this.buttonRef)}><slot><arcgis-portal-user-avatar .user=${c} .scale=${s} .portal=${r} .showName=${u} .description=${p?m:""} .hideAvatar=${!this.showAvatar} .underline=${this.underline} .checkOnline=${this.checkOnline} .wrap=${this.wrap}></arcgis-portal-user-avatar></slot></button>${l&&this.buttonRef.value&&c&&n`<calcite-popover class="popover" .label=${T} pointer-disabled .referenceElement=${this.buttonRef.value} placement=auto .id=${`${m}-popover`} auto-close style=${P({"--calcite-popover-z-index":this.zIndex?.toString()||"12"})} @calcitePopoverOpen=${()=>{this.arcgisUserPopupInternalUIAction.emit({category:"profile popup",action:"open profile popup"})}} @calcitePopoverClose=${()=>{this.isPopoverOpen=!1,this.arcgisUserPopupClose.emit()}} @keydown=${F=>{F.key==="Escape"&&setTimeout(()=>{this.buttonRef.value?.focus()},200)}} ${b(this.popoverRef)}><div class="popover__wrapper"><div class="popover__header"><arcgis-portal-user-avatar class="popover__avatar" .user=${c} scale=l .portal=${r} show-name .description=${E} .checkOnline=${this.checkOnline}></arcgis-portal-user-avatar></div><div class="popover__content">${!!h&&n`<p class="popover__description">${L(y(h))}</p>`||""}${!!h&&n`<div class="popover__fade"></div>`||""}<div class=${$({popover__buttons:!0,"popover__buttons--no-description":!h})}>${I?this.renderOrgButtons(c):this.renderUserButtons(c)}</div></div></div></calcite-popover>`||""}`}};R("arcgis-portal-user-popup",U);return U},a,c,d,e)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/
|
|
2
|
-
import{A as k,B as w,C as V,D as m,E as h,F as A,G as D,H as y,l as P}from"./
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
+
import{A as k,B as w,C as V,D as m,E as h,F as A,G as D,H as y,l as P}from"./CWSEBETE.js";var b=(s,f,c)=>{let p=new Map;for(let e=f;e<=c;e++)p.set(s[e],e);return p},I=w(class extends V{constructor(s){if(super(s),s.type!==k.CHILD)throw Error("repeat() can only be used in text expressions")}dt(s,f,c){let p;c===void 0?c=f:f!==void 0&&(p=f);let e=[],n=[],o=0;for(let a of s)e[o]=p?p(a,o):o,n[o]=c(a,o),o++;return{values:n,keys:e}}render(s,f,c){return this.dt(s,f,c).values}update(s,[f,c,p]){let e=D(s),{values:n,keys:o}=this.dt(f,c,p);if(!Array.isArray(e))return this.ut=o,n;let a=this.ut??=[],u=[],v,g,t=0,l=e.length-1,r=0,i=n.length-1;for(;t<=l&&r<=i;)if(e[t]===null)t++;else if(e[l]===null)l--;else if(a[t]===o[r])u[r]=h(e[t],n[r]),t++,r++;else if(a[l]===o[i])u[i]=h(e[l],n[i]),l--,i--;else if(a[t]===o[i])u[i]=h(e[t],n[i]),m(s,u[i+1],e[t]),t++,i--;else if(a[l]===o[r])u[r]=h(e[l],n[r]),m(s,e[t],e[l]),l--,r++;else if(v===void 0&&(v=b(o,r,i),g=b(a,t,l)),v.has(a[t]))if(v.has(a[l])){let d=g.get(o[r]),x=d!==void 0?e[d]:null;if(x===null){let C=m(s,e[t]);h(C,n[r]),u[r]=C}else u[r]=h(x,n[r]),m(s,e[t],x),e[d]=null;r++}else y(e[l]),l--;else y(e[t]),t++;for(;r<=i;){let d=m(s,u[i+1]);h(d,n[r]),u[r++]=d}for(;t<=l;){let d=e[t++];d!==null&&y(d)}return this.ut=o,A(s,u),P}});export{I as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
+
import f from"./7NK6UF47.js";import e from"./CVOWIH4J.js";import d from"./456JKNCU.js";import"./USGROSML.js";import"./ILDTKRON.js";import"./CFBSBZSS.js";import"./UZCHLKLO.js";import"./25XJ66JO.js";import"./5YDITHQA.js";import c from"./RBGARTND.js";import b from"./F3ODJVJC.js";import"./OV5O7YP4.js";import"./D7LRCAK4.js";import a from"./OUFIJDIW.js";import"./VMQIDO4Z.js";import"./QS3GXAIH.js";import"./2GBRZSEC.js";import"./XUPYBBRI.js";import"./C5U7YKVI.js";import"./6BMWSGLA.js";import"./CWSEBETE.js";import"./R74ZHFA6.js";import"./UZLQALHY.js";export default $arcgis.t(([,,,,,{g:a}])=>{return a},a,b,c,d,e,f)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/
|
|
2
|
-
import{L as n,R as c,j as d,w as a}from"./
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
+
import{L as n,R as c,j as d,w as a}from"./CWSEBETE.js";var i=class extends n{constructor(){super(...arguments),this.cardProps={},this.arcgisGroupCardSelect=a(),this.arcgisGroupBrowserCardPreview=a()}static{this.properties={group:0,browser:0,cardProps:0}}async restoreFocus(){await this.renderRoot.querySelector("arcgis-portal-group-card")?.restoreFocus?.()}getBrowser(){let r=this.el.closest("arcgis-portal-group-browser");return this.browser??r}isSelected(r,t){if(!r)return!1;let e=t.selectedGroupsState;return Array.isArray(e)&&e.some(({id:o})=>o===r)}render(){let r=this.getBrowser(),t=this.group;if(!r||!t)return;let e=this.cardProps,o=r.store.view??"list";return d`<arcgis-portal-group-card .portal=${r.portal} .group=${t} .user=${e.user} .indeterminate=${e.indeterminate} .view=${o} .selection=${r.selection} .selected=${e.selected??this.isSelected(t.id,r)} .preview=${e.preview??r.preview} .previewed=${e.previewed??r.previewedGroupId===t.id} .name=${e.name} .showSummary=${e.showSummary??!0} .hideBadges=${e.hideBadges??!1} .hideDateUpdated=${e.hideDateUpdated??!1} .showDateCreated=${e.showDateCreated??!1} .hideViewableBy=${e.hideViewableBy??!1} .hideOwner=${e.hideOwner??!1} .link=${e.link} .linkHandler=${e.linkHandler} .newTab=${e.newTab??!1} .disabled=${e.disabled??!1} @arcgisGroupCardSelect=${s=>{s.stopPropagation(),this.arcgisGroupCardSelect.emit(s.detail)}} @arcgisGroupBrowserCardPreview=${s=>{s.stopPropagation(),this.arcgisGroupBrowserCardPreview.emit(s.detail)}}><slot name=content-top slot=content-top></slot><div slot=content-end><slot name=content-end></slot></div><slot name=actions-start slot=actions-start></slot><slot name=actions-end slot=actions-end></slot></arcgis-portal-group-card>`}};c("arcgis-portal-group-browser-card",i);export{i as a};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/
|
|
2
|
-
import a from"./PMRFXB4F.js";import"./K75JTQPW.js";import"./KV4ZZSNW.js";import"./EMJQI4MA.js";import{a as q}from"./7ZWYUHGK.js";import"./A2SQ4EMZ.js";import"./K2XSYDAP.js";import{L as f,R as _,h as b,j as u,w as c}from"./AICPYLWE.js";import"./OUMTV5H5.js";import"./5PV2GUZW.js";export default $arcgis.t(([D,S,g,{b:h}])=>{var I=b`:host{background-color:var(--calcite-color-foreground-1)}.scrim-container{position:relative}.base-fields-control{margin-inline-end:.75rem}.added{display:inline-flex;gap:.5rem;flex-shrink:0;white-space:nowrap}.added calcite-icon{color:var(--calcite-color-status-success)}`;async function v({item:t,layers:e}){let{url:a}=t,l=new Map;if(!a)return{result:l};try{let s=(await g(a,{query:{f:"json"},responseType:"json"})).data;if(s.fields){let n=e?.[0];return e?.length===1&&n?.layerId!=null&&l.set(n.layerId,s.fields),{result:l}}if(!s.layers?.length)return{result:l};let i=a.replace(/\/$/u,"");return await Promise.all(s.layers.map(async({id:n})=>{let d=(await g(`${i}/${n}`,{query:{f:"json"},responseType:"json"})).data;l.set(n,d.fields??[])})),{result:l}}catch(s){return console.error("Error getting layer fields:",s),{error:{code:"unhandledError"}}}}var P=t=>{let{url:e}=t;return e?e.replace("/rest/services","/rest/admin/services").replace(/\/$/u,""):null};async function C({fields:t,item:e,portal:a,layerId:l}){let s=P(e);if(!s)return{error:{code:"unhandledError",message:"A feature service URL is required."}};try{let i=await h({url:`${s}/${l!=null?`${l}/`:""}addToDefinition`,portal:a,method:"post",params:{addToDefinition:JSON.stringify({fields:t})}});return i.success===!1||i.error?{error:{code:"unhandledError",message:i.error?.message}}:{result:i}}catch(i){return console.error("Error adding fields to the feature service definition:",i),{error:{code:"unhandledError"}}}}async function L({fields:t,item:e,portal:a,layerId:l}){let s=P(e);if(!s)return{error:{code:"unhandledError",message:"A feature service URL is required."}};try{let i=await h({url:`${s}/${l!=null?`${l}/`:""}updateDefinition`,portal:a,method:"post",params:{updateDefinition:JSON.stringify({fields:t})}});return i.success===!1||i.error?{error:{code:"unhandledError",message:i.error?.message??"Failed to update the feature service definition."}}:{result:i}}catch(i){return console.error("Error updating the feature service definition:",i),{error:{code:"unhandledError"}}}}async function z(t){let{url:e}=t;if(!e)return{error:{code:"unhandledError"}};try{return{result:(await g(e,{query:{f:"json"}})).data}}catch(a){return console.error("Error getting service info:",a),{error:{code:"unhandledError"}}}}var A=(t,e)=>{let a=t.domain??null,l=e.domain??null;return a===null||l===null?a===l:a.type!==l.type?!1:a.type==="codedValue"&&l.type==="codedValue"?a.name===l.name&&a.codedValues.length===l.codedValues.length&&a.codedValues.every(({code:s,name:i},n)=>s===l.codedValues[n]?.code&&i===l.codedValues[n]?.name):a.type==="range"&&l.type==="range"?a.name===l.name&&a.range[0]===l.range[0]&&a.range[1]===l.range[1]:!0},w=(t,e)=>{let a=new Map(e.map(i=>[i.name,i])),l=[],s=[];for(let i of t){let n=a.get(i.name);n?A(i,n)||s.push({name:i.name,domain:i.domain}):l.push(i)}return{missingFields:l,modifiedFields:s}},F=t=>{switch(t){case"esriGeometryPolyline":case"esriGeometryPolygon":return[...E];case"esriGeometryPoint":return[...R];default:return[]}},x=t=>t==="esriGeometryPoint"?[...M]:[],G=t=>t==="esriGeometryPoint"?[...N]:[],E=[{name:"esrignss_avg_h_rms",type:"esriFieldTypeDouble",alias:"Average horizontal accuracy (m)",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_avg_v_rms",type:"esriFieldTypeDouble",alias:"Average vertical accuracy (m)",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_worst_h_rms",type:"esriFieldTypeDouble",alias:"Worst horizontal accuracy (m)",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_worst_v_rms",type:"esriFieldTypeDouble",alias:"Worst vertical accuracy (m)",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_worst_fixtype",type:"esriFieldTypeSmallInteger",alias:"Worst fix type",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:{type:"codedValue",name:"ESRI_FIX_TYPE_DOMAIN",codedValues:[{name:"NoFix",code:0},{name:"GPS",code:1},{name:"DifferentialGPS",code:2},{name:"PrecisePositioningService",code:3},{name:"RTKFixed",code:4},{name:"RTKFloat",code:5}]},defaultValue:null},{name:"esrignss_manual_locations",type:"esriFieldTypeInteger",alias:"Number of manual locations",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null}],R=[{name:"esrignss_speed",type:"esriFieldTypeDouble",alias:"Speed (km/h)",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_direction",type:"esriFieldTypeDouble",alias:"Direction of travel (\xB0)",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrisnsr_azimuth",type:"esriFieldTypeDouble",alias:"Compass reading (\xB0)",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_positionsourcetype",type:"esriFieldTypeInteger",alias:"Position source type",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:{type:"codedValue",name:"ESRI_POSITIONSOURCETYPE_DOMAIN",codedValues:[{name:"Unknown",code:0},{name:"User defined",code:1},{name:"Integrated (System) Location Provider",code:2},{name:"External GNSS Receiver",code:3},{name:"Network Location Provider",code:4},{name:"Snapped",code:5}]},defaultValue:null},{name:"esrignss_receiver",type:"esriFieldTypeString",alias:"Receiver name",sqlType:"sqlTypeOther",length:50,nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_h_rms",type:"esriFieldTypeDouble",alias:"Horizontal accuracy (m)",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_v_rms",type:"esriFieldTypeDouble",alias:"Vertical accuracy (m)",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_latitude",type:"esriFieldTypeDouble",alias:"Latitude",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_longitude",type:"esriFieldTypeDouble",alias:"Longitude",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_altitude",type:"esriFieldTypeDouble",alias:"Ellipsoidal height (m)",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_pdop",type:"esriFieldTypeDouble",alias:"PDOP",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_hdop",type:"esriFieldTypeDouble",alias:"HDOP",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_vdop",type:"esriFieldTypeDouble",alias:"VDOP",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_fixtype",type:"esriFieldTypeSmallInteger",alias:"Fix type",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:{type:"codedValue",name:"ESRI_FIX_TYPE_DOMAIN",codedValues:[{name:"NoFix",code:0},{name:"GPS",code:1},{name:"DifferentialGPS",code:2},{name:"PrecisePositioningService",code:3},{name:"RTKFixed",code:4},{name:"RTKFloat",code:5}]},defaultValue:null},{name:"esrignss_correctionage",type:"esriFieldTypeDouble",alias:"Correction age",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_stationid",type:"esriFieldTypeSmallInteger",alias:"Station ID",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_numsats",type:"esriFieldTypeSmallInteger",alias:"Number of satellites",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:{type:"range",name:"ESRI_NUM_SATS_DOMAIN",range:[0,99]},defaultValue:null},{name:"esrignss_fixdatetime",type:"esriFieldTypeDate",alias:"Fix time",sqlType:"sqlTypeOther",length:8,nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_avg_h_rms",type:"esriFieldTypeDouble",alias:"Average horizontal accuracy (m)",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_avg_v_rms",type:"esriFieldTypeDouble",alias:"Average vertical accuracy (m)",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_avg_positions",type:"esriFieldTypeInteger",alias:"Averaged positions",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_h_stddev",type:"esriFieldTypeDouble",alias:"Standard deviation (m)",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_correction_source_name",type:"esriFieldTypeString",alias:"Correction source name",sqlType:"sqlTypeOther",length:100,nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_correction_source_type",type:"esriFieldTypeString",alias:"Correction source type",sqlType:"sqlTypeOther",length:25,nullable:!0,editable:!0,domain:{type:"codedValue",name:"esrignss_correction_source_domain",codedValues:[{name:"Unknown",code:"Unknown"},{name:"Direct IP",code:"Direct IP"},{name:"NTRIP",code:"NTRIP"},{name:"PPP",code:"PPP"},{name:"Radio",code:"Radio"},{name:"SBAS",code:"SBAS"}]},defaultValue:null},{name:"esrignss_custom_attributes",type:"esriFieldTypeString",alias:"GNSS custom attributes",sqlType:"sqlTypeOther",length:2e3,nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_h_95_status",type:"esriFieldTypeSmallInteger",alias:"95% accuracy applied",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:{type:"codedValue",name:"esrignss_yesno_domain",codedValues:[{name:"No",code:0},{name:"Yes",code:1}]},defaultValue:null},{name:"esrignss_ntrip_mount_point",type:"esriFieldTypeString",alias:"NTRIP mount point",sqlType:"sqlTypeOther",length:100,nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_antenna_height",type:"esriFieldTypeDouble",alias:"GNSS antenna height (m)",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_orthometric_height",type:"esriFieldTypeDouble",alias:"Orthometric height (m)",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_profile_has_hor_xform",type:"esriFieldTypeSmallInteger",alias:"Location profile horizontal datum transformation applied",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:{type:"codedValue",name:"esrignss_yesno_domain",codedValues:[{name:"No",code:0},{name:"Yes",code:1}]},defaultValue:null},{name:"esrignss_profile_hor_xform",type:"esriFieldTypeString",alias:"Location profile horizontal datum transformation",sqlType:"sqlTypeOther",length:255,nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_receiver_gcs",type:"esriFieldTypeString",alias:"Geographic coordinate system",sqlType:"sqlTypeOther",length:60,nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_receiver_gcs_wkid",type:"esriFieldTypeInteger",alias:"Geographic coordinate system WKID",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_receiver_geoid",type:"esriFieldTypeString",alias:"Receiver geoid model",sqlType:"sqlTypeOther",length:60,nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_receiver_ref_epoch",type:"esriFieldTypeDouble",alias:"Reference epoch",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null}],M=[{name:"esrisnsr_tilt_azimuth_accuracy",type:"esriFieldTypeDouble",alias:"Tilt azimuth accuracy (\xB0)",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrisnsr_tilt_azimuth",type:"esriFieldTypeDouble",alias:"Tilt azimuth (\xB0)",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrisnsr_tilt_angle_accuracy",type:"esriFieldTypeDouble",alias:"Tilt angle accuracy (\xB0)",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrisnsr_tilt_angle",type:"esriFieldTypeDouble",alias:"Tilt angle (\xB0)",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_tilt_compensated",type:"esriFieldTypeSmallInteger",alias:"Tilt compensated",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:{type:"codedValue",name:"esrignss_yesno_domain",codedValues:[{name:"No",code:0},{name:"Yes",code:1}]},defaultValue:null}],N=[{name:"esrignss_cp1_latitude",type:"esriFieldTypeDouble",alias:"CP1 latitude",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_cp1_longitude",type:"esriFieldTypeDouble",alias:"CP1 longitude",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_cp1_altitude",type:"esriFieldTypeDouble",alias:"CP1 ellipsoidal height (m)",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_cp1_h_rms",type:"esriFieldTypeDouble",alias:"CP1 horizontal accuracy (m)",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_cp1_v_rms",type:"esriFieldTypeDouble",alias:"CP1 vertical accuracy (m)",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_cp1_fixdatetime",type:"esriFieldTypeDate",alias:"CP1 fix time",sqlType:"sqlTypeOther",length:8,nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_cp1_fixtype",type:"esriFieldTypeSmallInteger",alias:"CP1 fix type",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:{type:"codedValue",name:"ESRI_FIX_TYPE_DOMAIN",codedValues:[{name:"Fix not valid",code:0},{name:"GPS",code:1},{name:"Differential GPS",code:2},{name:"RTK Fixed",code:4},{name:"RTK Float",code:5}]},defaultValue:null},{name:"esrignss_cp1_corr_age",type:"esriFieldTypeDouble",alias:"CP1 correction age",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_cp1_stationid",type:"esriFieldTypeSmallInteger",alias:"CP1 station ID",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_cp1_numsats",type:"esriFieldTypeSmallInteger",alias:"CP1 number of satellites",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_cp1_pdop",type:"esriFieldTypeDouble",alias:"CP1 PDOP",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_cp1_hdop",type:"esriFieldTypeDouble",alias:"CP1 HDOP",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_cp1_vdop",type:"esriFieldTypeDouble",alias:"CP1 VDOP",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_cp1_avg_h_rms",type:"esriFieldTypeDouble",alias:"CP1 average horizontal accuracy (m)",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_cp1_avg_v_rms",type:"esriFieldTypeDouble",alias:"CP1 average vertical accuracy (m)",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_cp1_avg_positions",type:"esriFieldTypeInteger",alias:"CP1 averaged positions",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_cp1_h_stddev",type:"esriFieldTypeDouble",alias:"CP1 standard deviation (m)",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrisnsr_cp1_slope_dist",type:"esriFieldTypeDouble",alias:"CP1 laser slope distance (m)",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrisnsr_cp1_inclination",type:"esriFieldTypeDouble",alias:"CP1 laser inclination (\xB0)",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrisnsr_cp1_azimuth",type:"esriFieldTypeDouble",alias:"CP1 laser azimuth (\xB0)",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_cp2_latitude",type:"esriFieldTypeDouble",alias:"CP2 latitude",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_cp2_longitude",type:"esriFieldTypeDouble",alias:"CP2 longitude",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_cp2_altitude",type:"esriFieldTypeDouble",alias:"CP2 ellipsoidal height (m)",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_cp2_h_rms",type:"esriFieldTypeDouble",alias:"CP2 horizontal accuracy (m)",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_cp2_v_rms",type:"esriFieldTypeDouble",alias:"CP2 vertical accuracy (m)",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_cp2_fixdatetime",type:"esriFieldTypeDate",alias:"CP2 fix time",sqlType:"sqlTypeOther",length:8,nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_cp2_fixtype",type:"esriFieldTypeSmallInteger",alias:"CP2 fix type",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:{type:"codedValue",name:"ESRI_FIX_TYPE_DOMAIN",codedValues:[{name:"Fix not valid",code:0},{name:"GPS",code:1},{name:"Differential GPS",code:2},{name:"RTK Fixed",code:4},{name:"RTK Float",code:5}]},defaultValue:null},{name:"esrignss_cp2_corr_age",type:"esriFieldTypeDouble",alias:"CP2 correction age",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_cp2_stationid",type:"esriFieldTypeSmallInteger",alias:"CP2 station ID",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_cp2_numsats",type:"esriFieldTypeSmallInteger",alias:"CP2 number of satellites",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_cp2_pdop",type:"esriFieldTypeDouble",alias:"CP2 PDOP",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_cp2_hdop",type:"esriFieldTypeDouble",alias:"CP2 HDOP",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_cp2_vdop",type:"esriFieldTypeDouble",alias:"CP2 VDOP",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_cp2_avg_h_rms",type:"esriFieldTypeDouble",alias:"CP2 average horizontal accuracy (m)",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_cp2_avg_v_rms",type:"esriFieldTypeDouble",alias:"CP2 average vertical accuracy (m)",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_cp2_avg_positions",type:"esriFieldTypeInteger",alias:"CP2 averaged positions",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_cp2_h_stddev",type:"esriFieldTypeDouble",alias:"CP2 standard deviation (m)",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrisnsr_cp2_slope_dist",type:"esriFieldTypeDouble",alias:"CP2 laser slope distance (m)",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrisnsr_cp2_inclination",type:"esriFieldTypeDouble",alias:"CP2 laser inclination (\xB0)",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrisnsr_cp2_azimuth",type:"esriFieldTypeDouble",alias:"CP2 laser azimuth (\xB0)",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrisnsr_offset_method",type:"esriFieldTypeString",alias:"Offset method",sqlType:"sqlTypeOther",length:5e3,nullable:!0,editable:!0,domain:{type:"codedValue",name:"ESRI_OFFSET_METHOD_DOMAIN",codedValues:[{name:"Azimuth-Azimuth",code:"azimuth-azimuth"},{name:"Distance-Angle",code:"distance-angle"},{name:"Distance-Azimuth",code:"distance-azimuth"},{name:"Distance-Distance",code:"distance-distance"},{name:"Azimuth-Azimuth-Backsight",code:"azimuth-azimuth-backsight"},{name:"Distance-Azimuth-Backsight",code:"distance-azimuth-backsight"},{name:"Distance-Distance-Backsight",code:"distance-distance-backsight"},{name:"User-defined",code:"user-defined"}]},defaultValue:null},{name:"esrisnsr_offset_device",type:"esriFieldTypeString",alias:"Rangefinder name",sqlType:"sqlTypeOther",length:5e3,nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrisnsr_offset_laser_height",type:"esriFieldTypeDouble",alias:"Rangefinder height (m)",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrisnsr_offset_laser_target_ht",type:"esriFieldTypeDouble",alias:"Laser target height (m)",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrisnsr_offset_mag_var",type:"esriFieldTypeDouble",alias:"Rangefinder magnetic variation (\xB0)",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null}];function $(t){let e=t.capabilities;return e?.data?.supportsAttachment&&e?.operations?.supportsQueryAttachments}function k(t){return t.every($)}var B=["point","polyline","polygon"],O=t=>t?.type==="Feature Service",T=class extends f{constructor(){super(...arguments),this.messages=q({blocking:!0}),this.initCount=0,this.supportsAttachments=!1,this.layersLoaded=!1,this.pointLayers=[],this.lineOrPolygonLayers=[],this.loadedItem=null,this.gpsFieldFixesBySet=null,this.addFieldsDisabled=!0,this.initializing=!0,this.hasLineOrPolygonLayer=!1,this.hasPointFeatureLayer=!1,this.addingGPSFieldMetadata=[],this.item=null,this.itemId=null,this.arcgisGPSMetadataFieldsAdded=c(),this.arcgisReadOnlyMode=c()}static{this.properties={loadedItem:16,gpsFieldFixesBySet:16,addFieldsDisabled:16,initializing:16,hasLineOrPolygonLayer:16,hasPointFeatureLayer:16,addingGPSFieldMetadata:16,item:0,itemId:1,portal:0}}static{this.styles=I}willUpdate(e){(e.has("item")||e.has("itemId"))&&this.initItem()}async initItem({showLoading:e=!0}={}){let a=++this.initCount;if(!this.item&&!this.itemId){this.resetItemState(),this.initializing=!1;return}e&&(this.resetItemState(),this.initializing=!0);let{item:l,itemId:s,portal:i}=this,n=l?await l.load():await new S({id:s,portal:i}).load();if(!this.isCurrentInitialization(a))return;if(!O(n)){this.resetItemState(),this.initializing=!1;return}this.loadedItem=n;let d=!e&&this.layersLoaded?[...this.pointLayers,...this.lineOrPolygonLayers]:await this.getFeatureLayers(n),{result:p}=await z(n);if(!this.isCurrentInitialization(a))return;this.layersLoaded=!0,this.pointLayers=d.filter(o=>o.geometryType==="point"),this.lineOrPolygonLayers=d.filter(o=>o.geometryType==="polyline"||o.geometryType==="polygon"),this.hasLineOrPolygonLayer=d.some(o=>o.geometryType==="polyline"||o.geometryType==="polygon"),this.hasPointFeatureLayer=d.some(o=>o.geometryType==="point");let{result:r,error:y}=d.length>0?await v({item:n,layers:d}):{};if(!this.isCurrentInitialization(a))return;if(y){this.resetItemState(),this.initializing=!1;return}let m=r??new Map;this.gpsFieldFixesBySet={base:this.analyzeFieldSet([...this.pointLayers,...this.lineOrPolygonLayers],m,"base"),gnss:this.analyzeFieldSet(this.pointLayers,m,"gnss"),rangefinder:this.analyzeFieldSet(this.pointLayers,m,"rangefinder")},this.supportsAttachments=k(d);let V=p?.sourceSchemaChangesAllowed!==!1;this.addFieldsDisabled=!this.supportsAttachments||!V,this.initializing=!1}isCurrentInitialization(e){return e===this.initCount}resetItemState(){this.loadedItem=null,this.layersLoaded=!1,this.pointLayers=[],this.lineOrPolygonLayers=[],this.gpsFieldFixesBySet=null,this.addFieldsDisabled=!0,this.hasLineOrPolygonLayer=!1,this.hasPointFeatureLayer=!1}async getFeatureLayers(e){let a=await D.fromPortalItem({portalItem:e});return await a.load(),"layers"in a?(await Promise.all(a.layers.map(async l=>(await l.load(),this.isSupportedFeatureLayer(l)?l:null)))).filter(l=>!!l):this.isSupportedFeatureLayer(a)?[a]:[]}isSupportedFeatureLayer(e){return e.type==="feature"&&B.some(a=>a===e.geometryType)}getCompatibleEsriGeometryType(e){switch(e.geometryType){case"point":return"esriGeometryPoint";case"polyline":return"esriGeometryPolyline";case"polygon":return"esriGeometryPolygon";default:return null}}analyzeFieldSet(e,a,l){let s=[];for(let i of e){if(i.layerId==null)continue;let n=a.get(i.layerId)??[],d=this.getCompatibleEsriGeometryType(i),p=d?l==="base"?F(d):l==="gnss"?x(d):G(d):[],r=w(p,n);(r.missingFields.length>0||r.modifiedFields.length>0)&&s.push({layerId:i.layerId,fieldsToAdd:r.missingFields,domainsToUpdate:r.modifiedFields})}return s}hasFieldChanges(e){return(this.gpsFieldFixesBySet?.[e].length??0)>0}isLoading(e){return this.addingGPSFieldMetadata.includes(e)}async addFields(e){let a=this.portal??this.loadedItem?.portal,l=this.loadedItem,s=this.gpsFieldFixesBySet;if(!(!a||!l||!s)){if(a.isReadOnly){this.arcgisReadOnlyMode.emit();return}this.addingGPSFieldMetadata=[...this.addingGPSFieldMetadata,e];try{let i=s[e],n=(await Promise.all(i.filter(({fieldsToAdd:r})=>r.length>0).map(async({fieldsToAdd:r,layerId:y})=>await C({fields:r,item:l,layerId:y,portal:a})))).every(({error:r})=>!r),d=n?await Promise.all(i.filter(({domainsToUpdate:r})=>r.length>0).map(async({domainsToUpdate:r,layerId:y})=>await L({fields:r,item:l,layerId:y,portal:a}))):[],p=n&&d.every(({error:r})=>!r);await this.initItem({showLoading:!1}),n&&p&&this.gpsFieldFixesBySet&&!this.hasFieldChanges(e)&&this.arcgisGPSMetadataFieldsAdded.emit(e)}finally{this.addingGPSFieldMetadata=this.addingGPSFieldMetadata.filter(i=>i!==e)}}}canShowAddGPSMetadata(){let e=this.loadedItem??this.item;return!!e&&O(e)}showAdvancedFields(){let e=this.gpsFieldFixesBySet;return!this.hasPointFeatureLayer||!e?!1:this.pointLayers.some(a=>{if(a.layerId==null)return!1;let l=this.getCompatibleEsriGeometryType(a),s=l?F(l):[];return(e.base.find(({layerId:i})=>i===a.layerId)?.fieldsToAdd??[]).length<s.length})}renderAddFieldsControl(e,a=!1){let l=this.gpsFieldFixesBySet;if(!a&&l&&!this.hasFieldChanges(e))return u`<span slot=actions-end class="added"><calcite-icon icon=check-circle scale=s aria-hidden></calcite-icon>${this.messages.added}</span>`;let s=this.isLoading(e);return u`<calcite-button slot=actions-end appearance=outline-fill .disabled=${a||!l||s||this.addFieldsDisabled} .loading=${s} @click=${async()=>await this.addFields(e)}>${s?this.messages.addingFields:this.messages.addFields}</calcite-button>`}render(){return this.canShowAddGPSMetadata()?u`<div class="scrim-container"><calcite-block scale=m expanded>${this.initializing&&u`<calcite-scrim loading></calcite-scrim>`||""}<calcite-list .label=${this.messages.gpsOptions} selection-mode=none><calcite-list-item .label=${this.messages.accordionHeading}>${this.renderAddFieldsControl("base")}</calcite-list-item>${this.showAdvancedFields()&&u`<calcite-list-item .label=${this.messages.gnssReceiverFields}>${this.renderAddFieldsControl("gnss")}</calcite-list-item><calcite-list-item .label=${this.messages.laserRangefinderFields}>${this.renderAddFieldsControl("rangefinder")}</calcite-list-item>`||""}</calcite-list></calcite-block></div>`:null}};_("arcgis-portal-add-gps-metadata",T);return T},"layers/Layer","portal/PortalItem","request",a)
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
+
import a from"./OUFIJDIW.js";import"./VMQIDO4Z.js";import"./QS3GXAIH.js";import"./2GBRZSEC.js";import{a as q}from"./XUPYBBRI.js";import"./C5U7YKVI.js";import"./6BMWSGLA.js";import{L as f,R as _,h as b,j as u,w as c}from"./CWSEBETE.js";import"./R74ZHFA6.js";import"./UZLQALHY.js";export default $arcgis.t(([D,S,g,{b:h}])=>{var I=b`:host{background-color:var(--calcite-color-foreground-1)}.scrim-container{position:relative}.base-fields-control{margin-inline-end:.75rem}.added{display:inline-flex;gap:.5rem;flex-shrink:0;white-space:nowrap}.added calcite-icon{color:var(--calcite-color-status-success)}`;async function v({item:t,layers:e}){let{url:a}=t,l=new Map;if(!a)return{result:l};try{let s=(await g(a,{query:{f:"json"},responseType:"json"})).data;if(s.fields){let n=e?.[0];return e?.length===1&&n?.layerId!=null&&l.set(n.layerId,s.fields),{result:l}}if(!s.layers?.length)return{result:l};let i=a.replace(/\/$/u,"");return await Promise.all(s.layers.map(async({id:n})=>{let d=(await g(`${i}/${n}`,{query:{f:"json"},responseType:"json"})).data;l.set(n,d.fields??[])})),{result:l}}catch(s){return console.error("Error getting layer fields:",s),{error:{code:"unhandledError"}}}}var P=t=>{let{url:e}=t;return e?e.replace("/rest/services","/rest/admin/services").replace(/\/$/u,""):null};async function C({fields:t,item:e,portal:a,layerId:l}){let s=P(e);if(!s)return{error:{code:"unhandledError",message:"A feature service URL is required."}};try{let i=await h({url:`${s}/${l!=null?`${l}/`:""}addToDefinition`,portal:a,method:"post",params:{addToDefinition:JSON.stringify({fields:t})}});return i.success===!1||i.error?{error:{code:"unhandledError",message:i.error?.message}}:{result:i}}catch(i){return console.error("Error adding fields to the feature service definition:",i),{error:{code:"unhandledError"}}}}async function L({fields:t,item:e,portal:a,layerId:l}){let s=P(e);if(!s)return{error:{code:"unhandledError",message:"A feature service URL is required."}};try{let i=await h({url:`${s}/${l!=null?`${l}/`:""}updateDefinition`,portal:a,method:"post",params:{updateDefinition:JSON.stringify({fields:t})}});return i.success===!1||i.error?{error:{code:"unhandledError",message:i.error?.message??"Failed to update the feature service definition."}}:{result:i}}catch(i){return console.error("Error updating the feature service definition:",i),{error:{code:"unhandledError"}}}}async function z(t){let{url:e}=t;if(!e)return{error:{code:"unhandledError"}};try{return{result:(await g(e,{query:{f:"json"}})).data}}catch(a){return console.error("Error getting service info:",a),{error:{code:"unhandledError"}}}}var A=(t,e)=>{let a=t.domain??null,l=e.domain??null;return a===null||l===null?a===l:a.type!==l.type?!1:a.type==="codedValue"&&l.type==="codedValue"?a.name===l.name&&a.codedValues.length===l.codedValues.length&&a.codedValues.every(({code:s,name:i},n)=>s===l.codedValues[n]?.code&&i===l.codedValues[n]?.name):a.type==="range"&&l.type==="range"?a.name===l.name&&a.range[0]===l.range[0]&&a.range[1]===l.range[1]:!0},w=(t,e)=>{let a=new Map(e.map(i=>[i.name,i])),l=[],s=[];for(let i of t){let n=a.get(i.name);n?A(i,n)||s.push({name:i.name,domain:i.domain}):l.push(i)}return{missingFields:l,modifiedFields:s}},F=t=>{switch(t){case"esriGeometryPolyline":case"esriGeometryPolygon":return[...E];case"esriGeometryPoint":return[...R];default:return[]}},x=t=>t==="esriGeometryPoint"?[...M]:[],G=t=>t==="esriGeometryPoint"?[...N]:[],E=[{name:"esrignss_avg_h_rms",type:"esriFieldTypeDouble",alias:"Average horizontal accuracy (m)",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_avg_v_rms",type:"esriFieldTypeDouble",alias:"Average vertical accuracy (m)",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_worst_h_rms",type:"esriFieldTypeDouble",alias:"Worst horizontal accuracy (m)",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_worst_v_rms",type:"esriFieldTypeDouble",alias:"Worst vertical accuracy (m)",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_worst_fixtype",type:"esriFieldTypeSmallInteger",alias:"Worst fix type",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:{type:"codedValue",name:"ESRI_FIX_TYPE_DOMAIN",codedValues:[{name:"NoFix",code:0},{name:"GPS",code:1},{name:"DifferentialGPS",code:2},{name:"PrecisePositioningService",code:3},{name:"RTKFixed",code:4},{name:"RTKFloat",code:5}]},defaultValue:null},{name:"esrignss_manual_locations",type:"esriFieldTypeInteger",alias:"Number of manual locations",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null}],R=[{name:"esrignss_speed",type:"esriFieldTypeDouble",alias:"Speed (km/h)",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_direction",type:"esriFieldTypeDouble",alias:"Direction of travel (\xB0)",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrisnsr_azimuth",type:"esriFieldTypeDouble",alias:"Compass reading (\xB0)",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_positionsourcetype",type:"esriFieldTypeInteger",alias:"Position source type",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:{type:"codedValue",name:"ESRI_POSITIONSOURCETYPE_DOMAIN",codedValues:[{name:"Unknown",code:0},{name:"User defined",code:1},{name:"Integrated (System) Location Provider",code:2},{name:"External GNSS Receiver",code:3},{name:"Network Location Provider",code:4},{name:"Snapped",code:5}]},defaultValue:null},{name:"esrignss_receiver",type:"esriFieldTypeString",alias:"Receiver name",sqlType:"sqlTypeOther",length:50,nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_h_rms",type:"esriFieldTypeDouble",alias:"Horizontal accuracy (m)",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_v_rms",type:"esriFieldTypeDouble",alias:"Vertical accuracy (m)",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_latitude",type:"esriFieldTypeDouble",alias:"Latitude",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_longitude",type:"esriFieldTypeDouble",alias:"Longitude",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_altitude",type:"esriFieldTypeDouble",alias:"Ellipsoidal height (m)",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_pdop",type:"esriFieldTypeDouble",alias:"PDOP",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_hdop",type:"esriFieldTypeDouble",alias:"HDOP",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_vdop",type:"esriFieldTypeDouble",alias:"VDOP",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_fixtype",type:"esriFieldTypeSmallInteger",alias:"Fix type",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:{type:"codedValue",name:"ESRI_FIX_TYPE_DOMAIN",codedValues:[{name:"NoFix",code:0},{name:"GPS",code:1},{name:"DifferentialGPS",code:2},{name:"PrecisePositioningService",code:3},{name:"RTKFixed",code:4},{name:"RTKFloat",code:5}]},defaultValue:null},{name:"esrignss_correctionage",type:"esriFieldTypeDouble",alias:"Correction age",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_stationid",type:"esriFieldTypeSmallInteger",alias:"Station ID",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_numsats",type:"esriFieldTypeSmallInteger",alias:"Number of satellites",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:{type:"range",name:"ESRI_NUM_SATS_DOMAIN",range:[0,99]},defaultValue:null},{name:"esrignss_fixdatetime",type:"esriFieldTypeDate",alias:"Fix time",sqlType:"sqlTypeOther",length:8,nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_avg_h_rms",type:"esriFieldTypeDouble",alias:"Average horizontal accuracy (m)",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_avg_v_rms",type:"esriFieldTypeDouble",alias:"Average vertical accuracy (m)",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_avg_positions",type:"esriFieldTypeInteger",alias:"Averaged positions",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_h_stddev",type:"esriFieldTypeDouble",alias:"Standard deviation (m)",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_correction_source_name",type:"esriFieldTypeString",alias:"Correction source name",sqlType:"sqlTypeOther",length:100,nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_correction_source_type",type:"esriFieldTypeString",alias:"Correction source type",sqlType:"sqlTypeOther",length:25,nullable:!0,editable:!0,domain:{type:"codedValue",name:"esrignss_correction_source_domain",codedValues:[{name:"Unknown",code:"Unknown"},{name:"Direct IP",code:"Direct IP"},{name:"NTRIP",code:"NTRIP"},{name:"PPP",code:"PPP"},{name:"Radio",code:"Radio"},{name:"SBAS",code:"SBAS"}]},defaultValue:null},{name:"esrignss_custom_attributes",type:"esriFieldTypeString",alias:"GNSS custom attributes",sqlType:"sqlTypeOther",length:2e3,nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_h_95_status",type:"esriFieldTypeSmallInteger",alias:"95% accuracy applied",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:{type:"codedValue",name:"esrignss_yesno_domain",codedValues:[{name:"No",code:0},{name:"Yes",code:1}]},defaultValue:null},{name:"esrignss_ntrip_mount_point",type:"esriFieldTypeString",alias:"NTRIP mount point",sqlType:"sqlTypeOther",length:100,nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_antenna_height",type:"esriFieldTypeDouble",alias:"GNSS antenna height (m)",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_orthometric_height",type:"esriFieldTypeDouble",alias:"Orthometric height (m)",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_profile_has_hor_xform",type:"esriFieldTypeSmallInteger",alias:"Location profile horizontal datum transformation applied",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:{type:"codedValue",name:"esrignss_yesno_domain",codedValues:[{name:"No",code:0},{name:"Yes",code:1}]},defaultValue:null},{name:"esrignss_profile_hor_xform",type:"esriFieldTypeString",alias:"Location profile horizontal datum transformation",sqlType:"sqlTypeOther",length:255,nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_receiver_gcs",type:"esriFieldTypeString",alias:"Geographic coordinate system",sqlType:"sqlTypeOther",length:60,nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_receiver_gcs_wkid",type:"esriFieldTypeInteger",alias:"Geographic coordinate system WKID",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_receiver_geoid",type:"esriFieldTypeString",alias:"Receiver geoid model",sqlType:"sqlTypeOther",length:60,nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_receiver_ref_epoch",type:"esriFieldTypeDouble",alias:"Reference epoch",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null}],M=[{name:"esrisnsr_tilt_azimuth_accuracy",type:"esriFieldTypeDouble",alias:"Tilt azimuth accuracy (\xB0)",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrisnsr_tilt_azimuth",type:"esriFieldTypeDouble",alias:"Tilt azimuth (\xB0)",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrisnsr_tilt_angle_accuracy",type:"esriFieldTypeDouble",alias:"Tilt angle accuracy (\xB0)",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrisnsr_tilt_angle",type:"esriFieldTypeDouble",alias:"Tilt angle (\xB0)",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_tilt_compensated",type:"esriFieldTypeSmallInteger",alias:"Tilt compensated",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:{type:"codedValue",name:"esrignss_yesno_domain",codedValues:[{name:"No",code:0},{name:"Yes",code:1}]},defaultValue:null}],N=[{name:"esrignss_cp1_latitude",type:"esriFieldTypeDouble",alias:"CP1 latitude",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_cp1_longitude",type:"esriFieldTypeDouble",alias:"CP1 longitude",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_cp1_altitude",type:"esriFieldTypeDouble",alias:"CP1 ellipsoidal height (m)",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_cp1_h_rms",type:"esriFieldTypeDouble",alias:"CP1 horizontal accuracy (m)",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_cp1_v_rms",type:"esriFieldTypeDouble",alias:"CP1 vertical accuracy (m)",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_cp1_fixdatetime",type:"esriFieldTypeDate",alias:"CP1 fix time",sqlType:"sqlTypeOther",length:8,nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_cp1_fixtype",type:"esriFieldTypeSmallInteger",alias:"CP1 fix type",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:{type:"codedValue",name:"ESRI_FIX_TYPE_DOMAIN",codedValues:[{name:"Fix not valid",code:0},{name:"GPS",code:1},{name:"Differential GPS",code:2},{name:"RTK Fixed",code:4},{name:"RTK Float",code:5}]},defaultValue:null},{name:"esrignss_cp1_corr_age",type:"esriFieldTypeDouble",alias:"CP1 correction age",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_cp1_stationid",type:"esriFieldTypeSmallInteger",alias:"CP1 station ID",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_cp1_numsats",type:"esriFieldTypeSmallInteger",alias:"CP1 number of satellites",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_cp1_pdop",type:"esriFieldTypeDouble",alias:"CP1 PDOP",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_cp1_hdop",type:"esriFieldTypeDouble",alias:"CP1 HDOP",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_cp1_vdop",type:"esriFieldTypeDouble",alias:"CP1 VDOP",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_cp1_avg_h_rms",type:"esriFieldTypeDouble",alias:"CP1 average horizontal accuracy (m)",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_cp1_avg_v_rms",type:"esriFieldTypeDouble",alias:"CP1 average vertical accuracy (m)",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_cp1_avg_positions",type:"esriFieldTypeInteger",alias:"CP1 averaged positions",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_cp1_h_stddev",type:"esriFieldTypeDouble",alias:"CP1 standard deviation (m)",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrisnsr_cp1_slope_dist",type:"esriFieldTypeDouble",alias:"CP1 laser slope distance (m)",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrisnsr_cp1_inclination",type:"esriFieldTypeDouble",alias:"CP1 laser inclination (\xB0)",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrisnsr_cp1_azimuth",type:"esriFieldTypeDouble",alias:"CP1 laser azimuth (\xB0)",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_cp2_latitude",type:"esriFieldTypeDouble",alias:"CP2 latitude",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_cp2_longitude",type:"esriFieldTypeDouble",alias:"CP2 longitude",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_cp2_altitude",type:"esriFieldTypeDouble",alias:"CP2 ellipsoidal height (m)",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_cp2_h_rms",type:"esriFieldTypeDouble",alias:"CP2 horizontal accuracy (m)",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_cp2_v_rms",type:"esriFieldTypeDouble",alias:"CP2 vertical accuracy (m)",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_cp2_fixdatetime",type:"esriFieldTypeDate",alias:"CP2 fix time",sqlType:"sqlTypeOther",length:8,nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_cp2_fixtype",type:"esriFieldTypeSmallInteger",alias:"CP2 fix type",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:{type:"codedValue",name:"ESRI_FIX_TYPE_DOMAIN",codedValues:[{name:"Fix not valid",code:0},{name:"GPS",code:1},{name:"Differential GPS",code:2},{name:"RTK Fixed",code:4},{name:"RTK Float",code:5}]},defaultValue:null},{name:"esrignss_cp2_corr_age",type:"esriFieldTypeDouble",alias:"CP2 correction age",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_cp2_stationid",type:"esriFieldTypeSmallInteger",alias:"CP2 station ID",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_cp2_numsats",type:"esriFieldTypeSmallInteger",alias:"CP2 number of satellites",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_cp2_pdop",type:"esriFieldTypeDouble",alias:"CP2 PDOP",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_cp2_hdop",type:"esriFieldTypeDouble",alias:"CP2 HDOP",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_cp2_vdop",type:"esriFieldTypeDouble",alias:"CP2 VDOP",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_cp2_avg_h_rms",type:"esriFieldTypeDouble",alias:"CP2 average horizontal accuracy (m)",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_cp2_avg_v_rms",type:"esriFieldTypeDouble",alias:"CP2 average vertical accuracy (m)",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_cp2_avg_positions",type:"esriFieldTypeInteger",alias:"CP2 averaged positions",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_cp2_h_stddev",type:"esriFieldTypeDouble",alias:"CP2 standard deviation (m)",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrisnsr_cp2_slope_dist",type:"esriFieldTypeDouble",alias:"CP2 laser slope distance (m)",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrisnsr_cp2_inclination",type:"esriFieldTypeDouble",alias:"CP2 laser inclination (\xB0)",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrisnsr_cp2_azimuth",type:"esriFieldTypeDouble",alias:"CP2 laser azimuth (\xB0)",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrisnsr_offset_method",type:"esriFieldTypeString",alias:"Offset method",sqlType:"sqlTypeOther",length:5e3,nullable:!0,editable:!0,domain:{type:"codedValue",name:"ESRI_OFFSET_METHOD_DOMAIN",codedValues:[{name:"Azimuth-Azimuth",code:"azimuth-azimuth"},{name:"Distance-Angle",code:"distance-angle"},{name:"Distance-Azimuth",code:"distance-azimuth"},{name:"Distance-Distance",code:"distance-distance"},{name:"Azimuth-Azimuth-Backsight",code:"azimuth-azimuth-backsight"},{name:"Distance-Azimuth-Backsight",code:"distance-azimuth-backsight"},{name:"Distance-Distance-Backsight",code:"distance-distance-backsight"},{name:"User-defined",code:"user-defined"}]},defaultValue:null},{name:"esrisnsr_offset_device",type:"esriFieldTypeString",alias:"Rangefinder name",sqlType:"sqlTypeOther",length:5e3,nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrisnsr_offset_laser_height",type:"esriFieldTypeDouble",alias:"Rangefinder height (m)",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrisnsr_offset_laser_target_ht",type:"esriFieldTypeDouble",alias:"Laser target height (m)",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrisnsr_offset_mag_var",type:"esriFieldTypeDouble",alias:"Rangefinder magnetic variation (\xB0)",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null}];function $(t){let e=t.capabilities;return e?.data?.supportsAttachment&&e?.operations?.supportsQueryAttachments}function k(t){return t.every($)}var B=["point","polyline","polygon"],O=t=>t?.type==="Feature Service",T=class extends f{constructor(){super(...arguments),this.messages=q({blocking:!0}),this.initCount=0,this.supportsAttachments=!1,this.layersLoaded=!1,this.pointLayers=[],this.lineOrPolygonLayers=[],this.loadedItem=null,this.gpsFieldFixesBySet=null,this.addFieldsDisabled=!0,this.initializing=!0,this.hasLineOrPolygonLayer=!1,this.hasPointFeatureLayer=!1,this.addingGPSFieldMetadata=[],this.item=null,this.itemId=null,this.arcgisGPSMetadataFieldsAdded=c(),this.arcgisReadOnlyMode=c()}static{this.properties={loadedItem:16,gpsFieldFixesBySet:16,addFieldsDisabled:16,initializing:16,hasLineOrPolygonLayer:16,hasPointFeatureLayer:16,addingGPSFieldMetadata:16,item:0,itemId:1,portal:0}}static{this.styles=I}willUpdate(e){(e.has("item")||e.has("itemId"))&&this.initItem()}async initItem({showLoading:e=!0}={}){let a=++this.initCount;if(!this.item&&!this.itemId){this.resetItemState(),this.initializing=!1;return}e&&(this.resetItemState(),this.initializing=!0);let{item:l,itemId:s,portal:i}=this,n=l?await l.load():await new S({id:s,portal:i}).load();if(!this.isCurrentInitialization(a))return;if(!O(n)){this.resetItemState(),this.initializing=!1;return}this.loadedItem=n;let d=!e&&this.layersLoaded?[...this.pointLayers,...this.lineOrPolygonLayers]:await this.getFeatureLayers(n),{result:p}=await z(n);if(!this.isCurrentInitialization(a))return;this.layersLoaded=!0,this.pointLayers=d.filter(o=>o.geometryType==="point"),this.lineOrPolygonLayers=d.filter(o=>o.geometryType==="polyline"||o.geometryType==="polygon"),this.hasLineOrPolygonLayer=d.some(o=>o.geometryType==="polyline"||o.geometryType==="polygon"),this.hasPointFeatureLayer=d.some(o=>o.geometryType==="point");let{result:r,error:y}=d.length>0?await v({item:n,layers:d}):{};if(!this.isCurrentInitialization(a))return;if(y){this.resetItemState(),this.initializing=!1;return}let m=r??new Map;this.gpsFieldFixesBySet={base:this.analyzeFieldSet([...this.pointLayers,...this.lineOrPolygonLayers],m,"base"),gnss:this.analyzeFieldSet(this.pointLayers,m,"gnss"),rangefinder:this.analyzeFieldSet(this.pointLayers,m,"rangefinder")},this.supportsAttachments=k(d);let V=p?.sourceSchemaChangesAllowed!==!1;this.addFieldsDisabled=!this.supportsAttachments||!V,this.initializing=!1}isCurrentInitialization(e){return e===this.initCount}resetItemState(){this.loadedItem=null,this.layersLoaded=!1,this.pointLayers=[],this.lineOrPolygonLayers=[],this.gpsFieldFixesBySet=null,this.addFieldsDisabled=!0,this.hasLineOrPolygonLayer=!1,this.hasPointFeatureLayer=!1}async getFeatureLayers(e){let a=await D.fromPortalItem({portalItem:e});return await a.load(),"layers"in a?(await Promise.all(a.layers.map(async l=>(await l.load(),this.isSupportedFeatureLayer(l)?l:null)))).filter(l=>!!l):this.isSupportedFeatureLayer(a)?[a]:[]}isSupportedFeatureLayer(e){return e.type==="feature"&&B.some(a=>a===e.geometryType)}getCompatibleEsriGeometryType(e){switch(e.geometryType){case"point":return"esriGeometryPoint";case"polyline":return"esriGeometryPolyline";case"polygon":return"esriGeometryPolygon";default:return null}}analyzeFieldSet(e,a,l){let s=[];for(let i of e){if(i.layerId==null)continue;let n=a.get(i.layerId)??[],d=this.getCompatibleEsriGeometryType(i),p=d?l==="base"?F(d):l==="gnss"?x(d):G(d):[],r=w(p,n);(r.missingFields.length>0||r.modifiedFields.length>0)&&s.push({layerId:i.layerId,fieldsToAdd:r.missingFields,domainsToUpdate:r.modifiedFields})}return s}hasFieldChanges(e){return(this.gpsFieldFixesBySet?.[e].length??0)>0}isLoading(e){return this.addingGPSFieldMetadata.includes(e)}async addFields(e){let a=this.portal??this.loadedItem?.portal,l=this.loadedItem,s=this.gpsFieldFixesBySet;if(!(!a||!l||!s)){if(a.isReadOnly){this.arcgisReadOnlyMode.emit();return}this.addingGPSFieldMetadata=[...this.addingGPSFieldMetadata,e];try{let i=s[e],n=(await Promise.all(i.filter(({fieldsToAdd:r})=>r.length>0).map(async({fieldsToAdd:r,layerId:y})=>await C({fields:r,item:l,layerId:y,portal:a})))).every(({error:r})=>!r),d=n?await Promise.all(i.filter(({domainsToUpdate:r})=>r.length>0).map(async({domainsToUpdate:r,layerId:y})=>await L({fields:r,item:l,layerId:y,portal:a}))):[],p=n&&d.every(({error:r})=>!r);await this.initItem({showLoading:!1}),n&&p&&this.gpsFieldFixesBySet&&!this.hasFieldChanges(e)&&this.arcgisGPSMetadataFieldsAdded.emit(e)}finally{this.addingGPSFieldMetadata=this.addingGPSFieldMetadata.filter(i=>i!==e)}}}canShowAddGPSMetadata(){let e=this.loadedItem??this.item;return!!e&&O(e)}showAdvancedFields(){let e=this.gpsFieldFixesBySet;return!this.hasPointFeatureLayer||!e?!1:this.pointLayers.some(a=>{if(a.layerId==null)return!1;let l=this.getCompatibleEsriGeometryType(a),s=l?F(l):[];return(e.base.find(({layerId:i})=>i===a.layerId)?.fieldsToAdd??[]).length<s.length})}renderAddFieldsControl(e,a=!1){let l=this.gpsFieldFixesBySet;if(!a&&l&&!this.hasFieldChanges(e))return u`<span slot=actions-end class="added"><calcite-icon icon=check-circle scale=s aria-hidden></calcite-icon>${this.messages.added}</span>`;let s=this.isLoading(e);return u`<calcite-button slot=actions-end appearance=outline-fill .disabled=${a||!l||s||this.addFieldsDisabled} .loading=${s} @click=${async()=>await this.addFields(e)}>${s?this.messages.addingFields:this.messages.addFields}</calcite-button>`}render(){return this.canShowAddGPSMetadata()?u`<div class="scrim-container"><calcite-block scale=m expanded>${this.initializing&&u`<calcite-scrim loading></calcite-scrim>`||""}<calcite-list .label=${this.messages.gpsOptions} selection-mode=none><calcite-list-item .label=${this.messages.accordionHeading}>${this.renderAddFieldsControl("base")}</calcite-list-item>${this.showAdvancedFields()&&u`<calcite-list-item .label=${this.messages.gnssReceiverFields}>${this.renderAddFieldsControl("gnss")}</calcite-list-item><calcite-list-item .label=${this.messages.laserRangefinderFields}>${this.renderAddFieldsControl("rangefinder")}</calcite-list-item>`||""}</calcite-list></calcite-block></div>`:null}};_("arcgis-portal-add-gps-metadata",T);return T},"layers/Layer","portal/PortalItem","request",a)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/
|
|
2
|
-
import{c as R}from"./JOUR2FB2.js";import{a as k}from"./VDXESPJK.js";import{a as c}from"./TWCJJCPC.js";import a from"./PMRFXB4F.js";import{a as $}from"./K75JTQPW.js";import{a as b}from"./7ZWYUHGK.js";import{J as p,K as u,L as v,N as f,R as g,h as m,j as n,w as y}from"./AICPYLWE.js";export default $arcgis.t(([{b:T}])=>{var I=["esri_livingatlas","esri_boundaries","esri_demographics","esri_nav","esri_webstyles"];function S(o){return k(o.trim()).replace(/[!*+\-&|()[\]{}^~?:"\\]/gu,"\\$&")}async function _({portal:o,searchTerm:e,num:t=100,query:s}){let i=S(e),l=`${$(o)}portals/self/users/search`,r=[i?`(${i})`:void 0,s?.trim()?`(${s.trim()})`:void 0];o.isPortal&&r.push(...I.map(h=>`-username:${h}`));let a=l.includes("www.arcgis.com")&&o.isPortal?{disableIdentityLookup:!0,addTokenManually:!1}:{};return await T({url:l,portal:o,params:{num:Math.min(Math.max(t,1),100),q:r.filter(Boolean).join(" AND "),sortField:"relevance"},options:a})}function A(...o){return o.map(e=>e?.trim()).filter(e=>!!e).map(e=>`(${e})`).join(" AND ")}async function O(o,e,t,s={}){let i=Math.min(Math.max(s.num??10,1),100);if(e==="user")try{return{result:{entityType:e,result:await _({portal:o,searchTerm:t,num:i,query:s.query})}}}catch(a){return console.error(a),{error:{code:"unhandledError"}}}let l=R(t);if(!l)return{};let r={num:i,query:A(l,s.query)};try{return e==="group"?{result:{entityType:e,result:await o.queryGroups(r)}}:{result:{entityType:e,result:await o.queryItems(r)}}}catch(a){return console.error(a),{error:{code:"unhandledError"}}}}var C=m`:host{display:block;inline-size:100%}.entity-picker{display:flex;flex-direction:column;gap:.5rem;min-inline-size:16rem}.entity-picker__results{max-block-size:22rem;overflow-y:auto}.entity-picker__cards{display:flex;flex-direction:column;gap:.5rem}.entity-picker__status{color:var(--calcite-color-text-3);font-size:.875rem;margin:0;padding:.75rem}.entity-picker__selection{align-items:center;display:flex;gap:.5rem}.entity-picker__selection-label{flex:1;min-inline-size:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.entity-picker__input{inline-size:100%}`,d=class extends v{constructor(){super(...arguments),this._messages=b({blocking:!0,name:"portal-entity-picker"}),this.inputRef=p(),this.inputContainerRef=p(),this.resizeObserver=null,this.searchId=0,this.searchTerm="",this.isSearching=!1,this.searchFailed=!1,this.popoverOpen=!1,this.popoverWidth=0,this.entityType="group",this.mode="inline",this.selected=null,this.num=10,this.arcgisSelectionChange=y()}static{this.properties={searchTerm:16,isSearching:16,searchFailed:16,searchResult:16,popoverOpen:16,popoverWidth:16,portal:0,entityType:1,mode:1,selected:0,query:1,num:9,icon:1,messageOverrides:0}}static{this.styles=C}get searchLabel(){let{entityType:e,_messages:t}=this;return e==="group"?t.searchGroups:e==="item"?t.searchItems:t.searchUsers}get selectedLabel(){let{entityType:e,selected:t}=this;if(t?.entityType===e)return t.entityType==="user"?t.entity.fullName||t.entity.username:t.entity.title||t.entity.id||void 0}async togglePicker(e){this.mode==="popover"&&(this.popoverOpen=e,await this.updateComplete,await this.setFocus())}async setFocus(){await this.inputRef.value?.setFocus()}firstUpdated(){this.updatePopoverWidth(),!(typeof ResizeObserver>"u"||!this.inputContainerRef.value)&&(this.resizeObserver=new ResizeObserver(()=>this.updatePopoverWidth()),this.resizeObserver.observe(this.inputContainerRef.value))}willUpdate(e){(e.has("portal")||e.has("entityType")||e.has("query")||e.has("num"))&&this.resetSearch(),e.has("mode")&&this.mode==="inline"&&(this.popoverOpen=!1)}disconnectedCallback(){this.cancelPendingSearch(),this.resizeObserver?.disconnect(),this.resizeObserver=null,super.disconnectedCallback()}updatePopoverWidth(){requestAnimationFrame(()=>{this.popoverWidth=this.inputContainerRef.value?.offsetWidth??0})}cancelPendingSearch(){return this.debounceId!==void 0&&(window.clearTimeout(this.debounceId),this.debounceId=void 0),this.searchId+=1,this.searchId}resetSearch(){this.cancelPendingSearch(),this.searchTerm="",this.isSearching=!1,this.searchFailed=!1,this.searchResult=void 0,this.popoverOpen=!1}scheduleSearch(e){let t=e.trim(),s=this.cancelPendingSearch();if(this.searchFailed=!1,this.searchResult=void 0,!t){this.isSearching=!1,this.popoverOpen=!1;return}this.isSearching=!0,this.mode==="popover"&&(this.popoverOpen=!0),this.debounceId=window.setTimeout(()=>{this.debounceId=void 0,this.search(t,s)},400)}async search(e,t){let{entityType:s,num:i,portal:l,query:r}=this;try{let{error:a,result:h}=await O(l,s,e,{num:i,query:r});if(t!==this.searchId)return;this.searchFailed=!!a,this.searchResult=h}catch{if(t!==this.searchId)return;this.searchFailed=!0,this.searchResult=void 0}finally{t===this.searchId&&(this.isSearching=!1)}}emitSelection(e){this.arcgisSelectionChange.emit(e),this.mode==="popover"&&this.togglePicker(!1)}getFocusableResults(){let e=Array.from(this.renderRoot.querySelector('slot[name="list-start"]')?.assignedElements({flatten:!0})??[]).filter(s=>s instanceof HTMLElement&&(s.tagName==="CALCITE-LIST-ITEM"||s.tabIndex>=0)),t=Array.from(this.renderRoot.querySelectorAll("calcite-list-item, arcgis-portal-group-card, arcgis-portal-item-card"));return[...e,...t]}async focusResult(e){if(e.tagName==="CALCITE-LIST-ITEM"){await e.setFocus();return}if(e.tagName==="ARCGIS-PORTAL-GROUP-CARD"){await e.restoreFocus();return}if(e.tagName==="ARCGIS-PORTAL-ITEM-CARD"){await e.restoreFocus();return}e.focus()}async focusResultAt(e){let t=this.getFocusableResults();if(!t.length)return;let s=(e+t.length)%t.length;await this.focusResult(t[s])}handleResultsKeyDown(e){let t=this.getFocusableResults(),s=e.composedPath(),i=t.findIndex(r=>s.includes(r));if(i===-1)return;if(this.mode==="inline"&&(e.key==="ArrowDown"||e.key==="ArrowUp")){e.preventDefault(),this.focusResultAt(i+(e.key==="ArrowDown"?1:-1));return}let l=t[i];if(l.tagName==="ARCGIS-PORTAL-GROUP-CARD"&&(e.key==="Enter"||e.key===" ")){e.preventDefault();let{group:r}=l;this.emitSelection({entityType:"group",entity:r});return}if(l.tagName==="ARCGIS-PORTAL-ITEM-CARD"&&(e.key==="Enter"||e.key===" ")){e.preventDefault();let{item:r}=l;this.emitSelection({entityType:"item",entity:r})}}renderGroup(e){return c(e.id,n`<calcite-list-item .label=${e.title||e.id||""} .description=${[e.owner,e.access].filter(Boolean).join(" \xB7 ")} .selected=${this.selected?.entityType==="group"&&this.selected.entity.id===e.id} @calciteListItemSelect=${()=>this.emitSelection({entityType:"group",entity:e})}><calcite-avatar slot=content-start .fullName=${e.title??void 0} .thumbnail=${e.thumbnailUrl??void 0} scale=m></calcite-avatar></calcite-list-item>`)}renderInlineGroup(e){return c(e.id,n`<arcgis-portal-group-card .group=${e} .portal=${this.portal} .selected=${this.selected?.entityType==="group"&&this.selected.entity.id===e.id} selection=none show-summary .user=${this.portal.user??void 0} view=compact></arcgis-portal-group-card>`)}renderItem(e){return c(e.id,n`<calcite-list-item .label=${e.title||e.id||""} .description=${[e.type,e.owner].filter(Boolean).join(" \xB7 ")} .selected=${this.selected?.entityType==="item"&&this.selected.entity.id===e.id} @calciteListItemSelect=${()=>this.emitSelection({entityType:"item",entity:e})}><calcite-avatar slot=content-start .fullName=${e.title??void 0} .thumbnail=${e.thumbnailUrl??void 0} scale=m></calcite-avatar></calcite-list-item>`)}renderInlineItem(e){return c(e.id,n`<arcgis-portal-item-card .item=${e} .portal=${this.portal} .selected=${this.selected?.entityType==="item"&&this.selected.entity.id===e.id} selection=none show-summary .user=${this.portal.user??void 0} view=list></arcgis-portal-item-card>`)}renderUser(e){return c(e.username,n`<calcite-list-item .label=${e.fullName||e.username} .description=${e.username} .selected=${this.selected?.entityType==="user"&&this.selected.entity.username===e.username} @calciteListItemSelect=${()=>this.emitSelection({entityType:"user",entity:e})}><arcgis-portal-user-avatar slot=content-start .portal=${this.portal} .user=${e} scale=m></arcgis-portal-user-avatar></calcite-list-item>`)}renderSearchResults(){let{entityType:e,isSearching:t,searchFailed:s,searchResult:i,searchTerm:l,_messages:r}=this;if(!l.trim())return null;if(t)return n`<div role=status><calcite-loader .label=${r.searching} scale=s></calcite-loader></div>`;if(s)return n`<p class="entity-picker__status" role=alert>${r.searchFailed}</p>`;if(!(i?.result.results??[]).length){let a=e==="group"?r.noGroupsFound:e==="item"?r.noItemsFound:r.noUsersFound;return n`<p class="entity-picker__status" role=status>${a}</p>`}return this.mode==="inline"&&i?.entityType==="group"?n`<div class="entity-picker__cards"><slot name=list-start></slot>${i.result.results.map(a=>this.renderInlineGroup(a))}</div>`:this.mode==="inline"&&i?.entityType==="item"?n`<div class="entity-picker__cards"><slot name=list-start></slot>${i.result.results.map(a=>this.renderInlineItem(a))}</div>`:n`<calcite-list interaction-mode=interactive .label=${this.searchLabel} selection-mode=none><slot name=list-start></slot>${i?.entityType==="group"?i.result.results.map(a=>this.renderGroup(a)):i?.entityType==="item"?i.result.results.map(a=>this.renderItem(a)):i?.result.results.map(a=>this.renderUser(a))}</calcite-list>`}renderPicker(e=!0){return n`<div class="entity-picker">${this.selectedLabel&&n`<div class="entity-picker__selection"><span class="entity-picker__selection-label">${this.selectedLabel}</span><calcite-button appearance=transparent icon-start=x kind=neutral .label=${this._messages.clearSelection} @click=${()=>this.arcgisSelectionChange.emit(null)} scale=s></calcite-button></div>`||""}<div class="entity-picker__input" ${u(this.inputContainerRef)}><calcite-input .icon=${this.icon} .label=${this.searchLabel} .placeholder=${this.searchLabel} .value=${this.searchTerm} @click=${()=>{this.mode==="popover"&&this.searchTerm.trim()&&(this.popoverOpen=!0)}} @keydown=${t=>{(t.key==="ArrowDown"||t.key==="ArrowUp")&&this.searchResult?.result.results.length&&(t.preventDefault(),this.focusResultAt(t.key==="ArrowDown"?0:-1))}} @focus=${()=>{this.mode==="popover"&&this.searchTerm.trim()&&(this.popoverOpen=!0)}} @calciteInputInput=${t=>{this.searchTerm=t.target.value,this.scheduleSearch(this.searchTerm)}} ${u(this.inputRef)}></calcite-input></div>${e&&n`<div class="entity-picker__results" @keydown=${this.handleResultsKeyDown}>${this.renderSearchResults()}</div>`||""}</div>`}render(){return this.mode==="inline"?this.renderPicker():n`${this.renderPicker(!1)}<calcite-popover .label=${this.searchLabel} .open=${this.popoverOpen} placement=bottom-start .referenceElement=${this.inputContainerRef.value} trigger-disabled @calcitePopoverClose=${e=>{!e.target.open&&this.popoverOpen&&(this.popoverOpen=!1,requestAnimationFrame(()=>{this.setFocus()}))}}><div class="entity-picker__results" style=${f({inlineSize:this.popoverWidth?`${this.popoverWidth}px`:void 0})}>${this.renderSearchResults()}</div></calcite-popover>`}};g("arcgis-portal-entity-picker",d);return d},a)
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
+
import{c as R}from"./QDWOQBO3.js";import{a as k}from"./25XJ66JO.js";import{a as c}from"./OV5O7YP4.js";import a from"./OUFIJDIW.js";import{a as $}from"./VMQIDO4Z.js";import{a as b}from"./XUPYBBRI.js";import{J as p,K as u,L as v,N as f,R as g,h as m,j as n,w as y}from"./CWSEBETE.js";export default $arcgis.t(([{b:T}])=>{var I=["esri_livingatlas","esri_boundaries","esri_demographics","esri_nav","esri_webstyles"];function S(o){return k(o.trim()).replace(/[!*+\-&|()[\]{}^~?:"\\]/gu,"\\$&")}async function _({portal:o,searchTerm:e,num:t=100,query:s}){let i=S(e),l=`${$(o)}portals/self/users/search`,r=[i?`(${i})`:void 0,s?.trim()?`(${s.trim()})`:void 0];o.isPortal&&r.push(...I.map(h=>`-username:${h}`));let a=l.includes("www.arcgis.com")&&o.isPortal?{disableIdentityLookup:!0,addTokenManually:!1}:{};return await T({url:l,portal:o,params:{num:Math.min(Math.max(t,1),100),q:r.filter(Boolean).join(" AND "),sortField:"relevance"},options:a})}function A(...o){return o.map(e=>e?.trim()).filter(e=>!!e).map(e=>`(${e})`).join(" AND ")}async function O(o,e,t,s={}){let i=Math.min(Math.max(s.num??10,1),100);if(e==="user")try{return{result:{entityType:e,result:await _({portal:o,searchTerm:t,num:i,query:s.query})}}}catch(a){return console.error(a),{error:{code:"unhandledError"}}}let l=R(t);if(!l)return{};let r={num:i,query:A(l,s.query)};try{return e==="group"?{result:{entityType:e,result:await o.queryGroups(r)}}:{result:{entityType:e,result:await o.queryItems(r)}}}catch(a){return console.error(a),{error:{code:"unhandledError"}}}}var C=m`:host{display:block;inline-size:100%}.entity-picker{display:flex;flex-direction:column;gap:.5rem;min-inline-size:16rem}.entity-picker__results{max-block-size:22rem;overflow-y:auto}.entity-picker__cards{display:flex;flex-direction:column;gap:.5rem}.entity-picker__status{color:var(--calcite-color-text-3);font-size:.875rem;margin:0;padding:.75rem}.entity-picker__selection{align-items:center;display:flex;gap:.5rem}.entity-picker__selection-label{flex:1;min-inline-size:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.entity-picker__input{inline-size:100%}`,d=class extends v{constructor(){super(...arguments),this._messages=b({blocking:!0,name:"portal-entity-picker"}),this.inputRef=p(),this.inputContainerRef=p(),this.resizeObserver=null,this.searchId=0,this.searchTerm="",this.isSearching=!1,this.searchFailed=!1,this.popoverOpen=!1,this.popoverWidth=0,this.entityType="group",this.mode="inline",this.selected=null,this.num=10,this.arcgisSelectionChange=y()}static{this.properties={searchTerm:16,isSearching:16,searchFailed:16,searchResult:16,popoverOpen:16,popoverWidth:16,portal:0,entityType:1,mode:1,selected:0,query:1,num:9,icon:1,messageOverrides:0}}static{this.styles=C}get searchLabel(){let{entityType:e,_messages:t}=this;return e==="group"?t.searchGroups:e==="item"?t.searchItems:t.searchUsers}get selectedLabel(){let{entityType:e,selected:t}=this;if(t?.entityType===e)return t.entityType==="user"?t.entity.fullName||t.entity.username:t.entity.title||t.entity.id||void 0}async togglePicker(e){this.mode==="popover"&&(this.popoverOpen=e,await this.updateComplete,await this.setFocus())}async setFocus(){await this.inputRef.value?.setFocus()}firstUpdated(){this.updatePopoverWidth(),!(typeof ResizeObserver>"u"||!this.inputContainerRef.value)&&(this.resizeObserver=new ResizeObserver(()=>this.updatePopoverWidth()),this.resizeObserver.observe(this.inputContainerRef.value))}willUpdate(e){(e.has("portal")||e.has("entityType")||e.has("query")||e.has("num"))&&this.resetSearch(),e.has("mode")&&this.mode==="inline"&&(this.popoverOpen=!1)}disconnectedCallback(){this.cancelPendingSearch(),this.resizeObserver?.disconnect(),this.resizeObserver=null,super.disconnectedCallback()}updatePopoverWidth(){requestAnimationFrame(()=>{this.popoverWidth=this.inputContainerRef.value?.offsetWidth??0})}cancelPendingSearch(){return this.debounceId!==void 0&&(window.clearTimeout(this.debounceId),this.debounceId=void 0),this.searchId+=1,this.searchId}resetSearch(){this.cancelPendingSearch(),this.searchTerm="",this.isSearching=!1,this.searchFailed=!1,this.searchResult=void 0,this.popoverOpen=!1}scheduleSearch(e){let t=e.trim(),s=this.cancelPendingSearch();if(this.searchFailed=!1,this.searchResult=void 0,!t){this.isSearching=!1,this.popoverOpen=!1;return}this.isSearching=!0,this.mode==="popover"&&(this.popoverOpen=!0),this.debounceId=window.setTimeout(()=>{this.debounceId=void 0,this.search(t,s)},400)}async search(e,t){let{entityType:s,num:i,portal:l,query:r}=this;try{let{error:a,result:h}=await O(l,s,e,{num:i,query:r});if(t!==this.searchId)return;this.searchFailed=!!a,this.searchResult=h}catch{if(t!==this.searchId)return;this.searchFailed=!0,this.searchResult=void 0}finally{t===this.searchId&&(this.isSearching=!1)}}emitSelection(e){this.arcgisSelectionChange.emit(e),this.mode==="popover"&&this.togglePicker(!1)}getFocusableResults(){let e=Array.from(this.renderRoot.querySelector('slot[name="list-start"]')?.assignedElements({flatten:!0})??[]).filter(s=>s instanceof HTMLElement&&(s.tagName==="CALCITE-LIST-ITEM"||s.tabIndex>=0)),t=Array.from(this.renderRoot.querySelectorAll("calcite-list-item, arcgis-portal-group-card, arcgis-portal-item-card"));return[...e,...t]}async focusResult(e){if(e.tagName==="CALCITE-LIST-ITEM"){await e.setFocus();return}if(e.tagName==="ARCGIS-PORTAL-GROUP-CARD"){await e.restoreFocus();return}if(e.tagName==="ARCGIS-PORTAL-ITEM-CARD"){await e.restoreFocus();return}e.focus()}async focusResultAt(e){let t=this.getFocusableResults();if(!t.length)return;let s=(e+t.length)%t.length;await this.focusResult(t[s])}handleResultsKeyDown(e){let t=this.getFocusableResults(),s=e.composedPath(),i=t.findIndex(r=>s.includes(r));if(i===-1)return;if(this.mode==="inline"&&(e.key==="ArrowDown"||e.key==="ArrowUp")){e.preventDefault(),this.focusResultAt(i+(e.key==="ArrowDown"?1:-1));return}let l=t[i];if(l.tagName==="ARCGIS-PORTAL-GROUP-CARD"&&(e.key==="Enter"||e.key===" ")){e.preventDefault();let{group:r}=l;this.emitSelection({entityType:"group",entity:r});return}if(l.tagName==="ARCGIS-PORTAL-ITEM-CARD"&&(e.key==="Enter"||e.key===" ")){e.preventDefault();let{item:r}=l;this.emitSelection({entityType:"item",entity:r})}}renderGroup(e){return c(e.id,n`<calcite-list-item .label=${e.title||e.id||""} .description=${[e.owner,e.access].filter(Boolean).join(" \xB7 ")} .selected=${this.selected?.entityType==="group"&&this.selected.entity.id===e.id} @calciteListItemSelect=${()=>this.emitSelection({entityType:"group",entity:e})}><calcite-avatar slot=content-start .fullName=${e.title??void 0} .thumbnail=${e.thumbnailUrl??void 0} scale=m></calcite-avatar></calcite-list-item>`)}renderInlineGroup(e){return c(e.id,n`<arcgis-portal-group-card .group=${e} .portal=${this.portal} .selected=${this.selected?.entityType==="group"&&this.selected.entity.id===e.id} selection=none show-summary .user=${this.portal.user??void 0} view=compact></arcgis-portal-group-card>`)}renderItem(e){return c(e.id,n`<calcite-list-item .label=${e.title||e.id||""} .description=${[e.type,e.owner].filter(Boolean).join(" \xB7 ")} .selected=${this.selected?.entityType==="item"&&this.selected.entity.id===e.id} @calciteListItemSelect=${()=>this.emitSelection({entityType:"item",entity:e})}><calcite-avatar slot=content-start .fullName=${e.title??void 0} .thumbnail=${e.thumbnailUrl??void 0} scale=m></calcite-avatar></calcite-list-item>`)}renderInlineItem(e){return c(e.id,n`<arcgis-portal-item-card .item=${e} .portal=${this.portal} .selected=${this.selected?.entityType==="item"&&this.selected.entity.id===e.id} selection=none show-summary .user=${this.portal.user??void 0} view=list></arcgis-portal-item-card>`)}renderUser(e){return c(e.username,n`<calcite-list-item .label=${e.fullName||e.username} .description=${e.username} .selected=${this.selected?.entityType==="user"&&this.selected.entity.username===e.username} @calciteListItemSelect=${()=>this.emitSelection({entityType:"user",entity:e})}><arcgis-portal-user-avatar slot=content-start .portal=${this.portal} .user=${e} scale=m></arcgis-portal-user-avatar></calcite-list-item>`)}renderSearchResults(){let{entityType:e,isSearching:t,searchFailed:s,searchResult:i,searchTerm:l,_messages:r}=this;if(!l.trim())return null;if(t)return n`<div role=status><calcite-loader .label=${r.searching} scale=s></calcite-loader></div>`;if(s)return n`<p class="entity-picker__status" role=alert>${r.searchFailed}</p>`;if(!(i?.result.results??[]).length){let a=e==="group"?r.noGroupsFound:e==="item"?r.noItemsFound:r.noUsersFound;return n`<p class="entity-picker__status" role=status>${a}</p>`}return this.mode==="inline"&&i?.entityType==="group"?n`<div class="entity-picker__cards"><slot name=list-start></slot>${i.result.results.map(a=>this.renderInlineGroup(a))}</div>`:this.mode==="inline"&&i?.entityType==="item"?n`<div class="entity-picker__cards"><slot name=list-start></slot>${i.result.results.map(a=>this.renderInlineItem(a))}</div>`:n`<calcite-list interaction-mode=interactive .label=${this.searchLabel} selection-mode=none><slot name=list-start></slot>${i?.entityType==="group"?i.result.results.map(a=>this.renderGroup(a)):i?.entityType==="item"?i.result.results.map(a=>this.renderItem(a)):i?.result.results.map(a=>this.renderUser(a))}</calcite-list>`}renderPicker(e=!0){return n`<div class="entity-picker">${this.selectedLabel&&n`<div class="entity-picker__selection"><span class="entity-picker__selection-label">${this.selectedLabel}</span><calcite-button appearance=transparent icon-start=x kind=neutral .label=${this._messages.clearSelection} @click=${()=>this.arcgisSelectionChange.emit(null)} scale=s></calcite-button></div>`||""}<div class="entity-picker__input" ${u(this.inputContainerRef)}><calcite-input .icon=${this.icon} .label=${this.searchLabel} .placeholder=${this.searchLabel} .value=${this.searchTerm} @click=${()=>{this.mode==="popover"&&this.searchTerm.trim()&&(this.popoverOpen=!0)}} @keydown=${t=>{(t.key==="ArrowDown"||t.key==="ArrowUp")&&this.searchResult?.result.results.length&&(t.preventDefault(),this.focusResultAt(t.key==="ArrowDown"?0:-1))}} @focus=${()=>{this.mode==="popover"&&this.searchTerm.trim()&&(this.popoverOpen=!0)}} @calciteInputInput=${t=>{this.searchTerm=t.target.value,this.scheduleSearch(this.searchTerm)}} ${u(this.inputRef)}></calcite-input></div>${e&&n`<div class="entity-picker__results" @keydown=${this.handleResultsKeyDown}>${this.renderSearchResults()}</div>`||""}</div>`}render(){return this.mode==="inline"?this.renderPicker():n`${this.renderPicker(!1)}<calcite-popover .label=${this.searchLabel} .open=${this.popoverOpen} placement=bottom-start .referenceElement=${this.inputContainerRef.value} trigger-disabled @calcitePopoverClose=${e=>{!e.target.open&&this.popoverOpen&&(this.popoverOpen=!1,requestAnimationFrame(()=>{this.setFocus()}))}}><div class="entity-picker__results" style=${f({inlineSize:this.popoverWidth?`${this.popoverWidth}px`:void 0})}>${this.renderSearchResults()}</div></calcite-popover>`}};g("arcgis-portal-entity-picker",d);return d},a)
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
+
import a from"./IXSEMBHA.js";import"./ILDTKRON.js";import"./QS3GXAIH.js";import"./2GBRZSEC.js";import"./XUPYBBRI.js";import"./C5U7YKVI.js";import"./6BMWSGLA.js";import"./CWSEBETE.js";import"./R74ZHFA6.js";import"./UZLQALHY.js";export default $arcgis.t(([a])=>{return a},a)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
2
|
export default $arcgis.t(([c,{once:m}])=>{async function j(a,r){let e=`${a}/portals/self/classification/classificationSchema`,n={};try{let t=(await c(e,{query:{f:"json"},signal:r})).data;if(typeof t=="object"&&t!==null&&"classificationSchema"in t)n.result=t.classificationSchema;else throw new Error("Invalid response format received from the classification schema endpoint")}catch(t){n.error=t}return n}async function S(a,r,e){let n=`${a}/portals/self/classification/validateClassification`,t={classificationValue:JSON.stringify(r),f:"json"},o={};try{let s=await c(n,{query:t,method:"post",signal:e.signal});o.result=s.data}catch(s){console.error(s),o.error=s}return o}async function g(a){if(!a)return;a.loaded||await a.load();let r=a.portal.user??await m(()=>a?.portal.user);if(!r)return;let e=`${a.portal.restUrl}/community/users/${r.username}/resources/classification_favorites`,n={};try{let t=await c(e,{query:{f:"json"}});n.result=t.data}catch(t){console.error(t),n.error=t}return n}async function $(a,r){if(!a)return;a.loaded||await a.load();let e=a.portal.user??await m(()=>a?.portal.user);if(!e)return;let n=`${a.portal.restUrl}/community/users/${e.username}/addResource`,t={},o={f:"json",key:"classification_favorites",text:JSON.stringify({favorites:r}),access:"UserPrivateAllApps"};try{let s=await c(n,{query:o,method:"post"});t.result=s.data.success}catch(s){console.error(s),t.error=s}return t}function q(a){return{error:{code:a||"unhandledError"}}}async function y(a,r){r=r||{},r.query=r.query||{},r.query instanceof URLSearchParams||(r.query={f:"json",...r.query||{}});try{return{result:(await c(a,r)).data}}catch{return q()}}async function U(a,r={}){r.query=r.query||{},r.query instanceof URLSearchParams||(r.query={f:"json",...r.query||{}});try{return{success:!0,...await c(a,r)}}catch(e){return{success:!1,error:e}}}async function x(a,r,e="results",n=!1){let t=[],o;r.start=1,r.num||(r.num=100);let{result:s}=await y(a,{query:r}),f=s?.[e];if(!f)return[];t=[...t,...f];let d=s.nextStart,h=s.total-t.length,p=Math.ceil(h/r.num),u=[];for(o=0;o<p;o++)r.start=d+o*r.num,u.push(y(a,{query:{...r}}));if(n){for(let l of u){let i=await l;i.result?.[e]&&(t=[...t,...i.result[e]])}return t}return(await Promise.all(u)).forEach(l=>{let i=l.result?.[e]||[];t=[...t,...i]}),t}return{a:j,b:S,c:g,d:$,e:y,f:U,g:x}},"request","core/reactiveUtils")
|