@arcgis/map-components 5.0.14 → 5.0.15
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/{ZU2XZGEE.js → 225F6JAL.js} +1 -1
- package/dist/cdn/{TQV3645A.js → 232V6BEJ.js} +1 -1
- package/dist/cdn/{YRMFPC22.js → 2ILC6VH7.js} +1 -1
- package/dist/cdn/{HLL5R4Y2.js → 2LS5SGQN.js} +1 -1
- package/dist/cdn/{BHVERWQD.js → 2NS5UPHI.js} +1 -1
- package/dist/cdn/{P4GIU5W6.js → 2OARPLIS.js} +1 -1
- package/dist/cdn/2UUHLPRZ.js +2 -0
- package/dist/cdn/{ACNLLXSQ.js → 34OUYBWP.js} +1 -1
- package/dist/cdn/{D6SSMU2A.js → 3MR4UK3V.js} +1 -1
- package/dist/cdn/{2PHM7RZA.js → 3N554U3C.js} +1 -1
- package/dist/cdn/{BOL2S7MQ.js → 3NZKVZSK.js} +1 -1
- package/dist/cdn/{7UEJ7ZLO.js → 44RGH3BS.js} +1 -1
- package/dist/cdn/{QEKXDTLQ.js → 45U326QM.js} +1 -1
- package/dist/cdn/{L2TCEQKB.js → 4FDCF2ES.js} +1 -1
- package/dist/cdn/{2P5LVQ53.js → 4GZFHUVB.js} +1 -1
- package/dist/cdn/{5QP5QVLC.js → 4I6BWD2N.js} +1 -1
- package/dist/cdn/{FI2LLIJQ.js → 4IHB34AR.js} +1 -1
- package/dist/cdn/{SWLY4ROJ.js → 4WSFTOQT.js} +1 -1
- package/dist/cdn/{T2NKS25J.js → 53UI3ZFO.js} +1 -1
- package/dist/cdn/{6QM3PKYM.js → 5764BV43.js} +1 -1
- package/dist/cdn/{GYH2TE6Q.js → 57G3GLPG.js} +1 -1
- package/dist/cdn/{VIQBILZE.js → 5AP7FP44.js} +1 -1
- package/dist/cdn/{3AXCD7Y4.js → 5ER6CJH5.js} +1 -1
- package/dist/cdn/{J3G5QXYE.js → 5G7FELHL.js} +1 -1
- package/dist/cdn/{YHFJEMCL.js → 5QYG2RFY.js} +1 -1
- package/dist/cdn/{GAASKFOX.js → 62JJ5RSF.js} +1 -1
- package/dist/cdn/{4DVX4XF2.js → 6AIPDP52.js} +1 -1
- package/dist/cdn/{RLCRNLLB.js → 6CAF5AXQ.js} +1 -1
- package/dist/cdn/{K7TZFPR6.js → 6F4KXCPI.js} +1 -1
- package/dist/cdn/{YY76JCH5.js → 6FIKTRAB.js} +1 -1
- package/dist/cdn/{OUP6N6KW.js → 6NOTBY7Z.js} +1 -1
- package/dist/cdn/{ZIZ75JEH.js → 6YARFNNX.js} +1 -1
- package/dist/cdn/{PBFQDKH3.js → 7CC2X4I7.js} +1 -1
- package/dist/cdn/{ML22SS5H.js → 7FWVGF36.js} +1 -1
- package/dist/cdn/{QE6NJBXP.js → 7FXALWBY.js} +1 -1
- package/dist/cdn/{BIFMRXUI.js → 7NXRMSYC.js} +1 -1
- package/dist/cdn/{LZBR23RW.js → ABPPJ6K5.js} +1 -1
- package/dist/cdn/{WXLIQIAN.js → AG3BCTJC.js} +1 -1
- package/dist/cdn/{PZQQVZIL.js → AIJALRUX.js} +1 -1
- package/dist/cdn/{PRHHD2OW.js → AKHHNTS3.js} +1 -1
- package/dist/cdn/{QNVR7NGK.js → ALDQGQMC.js} +1 -1
- package/dist/cdn/{FKXV625N.js → APWOPCUZ.js} +1 -1
- package/dist/cdn/{AKT5XYJK.js → AQ6EBDS2.js} +1 -1
- package/dist/cdn/{VRJ7HZWZ.js → ASDEUMPX.js} +1 -1
- package/dist/cdn/{TXZIWEVN.js → BA54IXOV.js} +1 -1
- package/dist/cdn/{UX3GPLEK.js → BH6EUTTS.js} +1 -1
- package/dist/cdn/{JHLMM7C3.js → BHQGRQTQ.js} +1 -1
- package/dist/cdn/{TBI3AK5D.js → BJE6LB5D.js} +1 -1
- package/dist/cdn/{JZBSIION.js → BQM3KYQF.js} +1 -1
- package/dist/cdn/{KNQQ4QTH.js → BRY4BVD4.js} +1 -1
- package/dist/cdn/{ODO32P3A.js → CCZOXWDY.js} +1 -1
- package/dist/cdn/{TQI5ULWL.js → CEUKEUCF.js} +1 -1
- package/dist/cdn/{4TMMWB4Y.js → CHUYXAY4.js} +1 -1
- package/dist/cdn/{5EVCBL5C.js → CI2VFA2T.js} +1 -1
- package/dist/cdn/{SSBDVOFG.js → CJ3CG4RB.js} +1 -1
- package/dist/cdn/{KSQ67B42.js → CRPKFJ7M.js} +1 -1
- package/dist/cdn/{VZELZZBY.js → D6ATTJLB.js} +1 -1
- package/dist/cdn/{VI2ORQ6W.js → DDVMJUG2.js} +1 -1
- package/dist/cdn/{OPABAHAB.js → DJYCD3NF.js} +1 -1
- package/dist/cdn/{W7MBVIVE.js → DLU4FWWG.js} +1 -1
- package/dist/cdn/{COAQOWRV.js → DOOZ2YU5.js} +1 -1
- package/dist/cdn/{N7EHKCOS.js → E2Z56YAB.js} +1 -1
- package/dist/cdn/{DCVABXLG.js → E5OMYRZV.js} +1 -1
- package/dist/cdn/{IXEJHVCR.js → E6JVUMTV.js} +1 -1
- package/dist/cdn/{ILDPPCDE.js → ECPWCSVQ.js} +1 -1
- package/dist/cdn/{4RNLUTTH.js → EIE3XM4I.js} +1 -1
- package/dist/cdn/{7XYRSIQK.js → ELTTMTEJ.js} +1 -1
- package/dist/cdn/{FPD5NOOQ.js → EMX4W4IW.js} +1 -1
- package/dist/cdn/{UWLB5ZFB.js → ENQSF4XK.js} +1 -1
- package/dist/cdn/{4ET2U4KM.js → EPXR7FIP.js} +1 -1
- package/dist/cdn/{EWL2MSRG.js → EZRP2V66.js} +1 -1
- package/dist/cdn/{P6HGXTMR.js → F6CUVZJN.js} +1 -1
- package/dist/cdn/{MGGEZMI7.js → FENN4UAB.js} +1 -1
- package/dist/cdn/{U4XWUUZX.js → FGBHVZMA.js} +1 -1
- package/dist/cdn/{4SIQJMGZ.js → FHHOGP2B.js} +1 -1
- package/dist/cdn/{BT5BR2RH.js → FKLZUVLD.js} +1 -1
- package/dist/cdn/{YYKHOFE3.js → FVKZ2D36.js} +1 -1
- package/dist/cdn/{XJLFSMOB.js → FXS5A3VS.js} +1 -1
- package/dist/cdn/{PG3AQZP4.js → FZA2VOW5.js} +1 -1
- package/dist/cdn/{CBG6ESP7.js → G4EAG6WB.js} +1 -1
- package/dist/cdn/{RQDWNRGR.js → G4WOZE4P.js} +1 -1
- package/dist/cdn/{L3BSAWMN.js → GENCTLG4.js} +1 -1
- package/dist/cdn/{6KASE5B4.js → GNU7YPFL.js} +1 -1
- package/dist/cdn/{TXQ2F7EY.js → GPJSJ5ON.js} +1 -1
- package/dist/cdn/{DBYF3GAT.js → H6V5KZ6G.js} +1 -1
- package/dist/cdn/{4FQ2M24X.js → HBCXA6KQ.js} +1 -1
- package/dist/cdn/{YGT23DMI.js → HGKOCVXH.js} +1 -1
- package/dist/cdn/{HE7CXJMS.js → HGX7CLOX.js} +1 -1
- package/dist/cdn/{QAF6TIJ4.js → HJYEHFYM.js} +1 -1
- package/dist/cdn/{MMRNFPSE.js → HYHBGZCA.js} +1 -1
- package/dist/cdn/{TJ3H3DRY.js → IFZE7JI5.js} +1 -1
- package/dist/cdn/{WK5QHNXJ.js → J463UP7K.js} +1 -1
- package/dist/cdn/{YJPLLUGN.js → J5WIH4AU.js} +1 -1
- package/dist/cdn/{FZ2PIC75.js → JA2MUS3J.js} +1 -1
- package/dist/cdn/{BSAFJWLR.js → JBQEMRPS.js} +1 -1
- package/dist/cdn/{3ROB43F5.js → JFC52LFX.js} +1 -1
- package/dist/cdn/{2YVAT3Z2.js → JMN6SCXB.js} +1 -1
- package/dist/cdn/{G2HNRHDY.js → JOCPUVWH.js} +1 -1
- package/dist/cdn/{6UE2IEPK.js → JQDELYHJ.js} +1 -1
- package/dist/cdn/{YM7HHYAR.js → KH7Y3LW2.js} +1 -1
- package/dist/cdn/{7W5YQRUJ.js → KJ4XDRP3.js} +1 -1
- package/dist/cdn/{4CHOD2IP.js → KJJLRKLB.js} +1 -1
- package/dist/cdn/{IUJ7SYVJ.js → KUDIPURH.js} +1 -1
- package/dist/cdn/{S4IUCTAV.js → KUTABQ6K.js} +1 -1
- package/dist/cdn/{7EOLEANN.js → LFDJCCBI.js} +1 -1
- package/dist/cdn/{E4WEQXNB.js → LTAFOFHI.js} +1 -1
- package/dist/cdn/{QCYZQCFA.js → MEFZ4HZQ.js} +1 -1
- package/dist/cdn/{TGP3P2F7.js → MHO4TLGI.js} +1 -1
- package/dist/cdn/{7C5VOMEP.js → MTZ6JAIK.js} +1 -1
- package/dist/cdn/{ALKE3XAU.js → N74BTKLS.js} +1 -1
- package/dist/cdn/{TIH6VPFW.js → NAPRVRCT.js} +1 -1
- package/dist/cdn/{Y34C35CC.js → NBB2F77I.js} +1 -1
- package/dist/cdn/{352OCUQT.js → NIL2PXDG.js} +1 -1
- package/dist/cdn/{4NW3D3LJ.js → NNPBYBO5.js} +1 -1
- package/dist/cdn/{ZWWJF4IY.js → NVFGNSMI.js} +1 -1
- package/dist/cdn/{R2FMV2L7.js → NVGTNFUF.js} +1 -1
- package/dist/cdn/{NT7XX23O.js → NWT6JA4C.js} +1 -1
- package/dist/cdn/{5P4MDYFO.js → NX5QB7SK.js} +1 -1
- package/dist/cdn/{2U3VQ7YO.js → O43UDILV.js} +1 -1
- package/dist/cdn/{Q7BFUV5O.js → O447DSUX.js} +1 -1
- package/dist/cdn/{ZY76QUU5.js → O5T5GIWG.js} +1 -1
- package/dist/cdn/{2O46U3GW.js → O6PVZHT4.js} +1 -1
- package/dist/cdn/{WKKGT6GI.js → OAQ6FP35.js} +1 -1
- package/dist/cdn/{VSGSZ4P2.js → OHYV7QUR.js} +1 -1
- package/dist/cdn/{L2EDH7JZ.js → OMPJ7H4E.js} +1 -1
- package/dist/cdn/{TIJPBOXF.js → OTZQPRW4.js} +1 -1
- package/dist/cdn/{LYW3DE5M.js → OVL5UKAK.js} +1 -1
- package/dist/cdn/{MSCGIY2D.js → P3AWBA6X.js} +1 -1
- package/dist/cdn/{OKX44RRC.js → PDJ2BC2F.js} +1 -1
- package/dist/cdn/{3SYMUSFC.js → PG2DDZRO.js} +1 -1
- package/dist/cdn/{YHNW2TGD.js → PPFWNKSI.js} +1 -1
- package/dist/cdn/{NW4T67OP.js → PZDCJLFF.js} +1 -1
- package/dist/cdn/{XZNKQZON.js → QESCXFUJ.js} +1 -1
- package/dist/cdn/{7FRKU3DG.js → QQN3E4SI.js} +1 -1
- package/dist/cdn/{TWXRM6Z7.js → QRWBSDOD.js} +1 -1
- package/dist/cdn/{UPM5PFSG.js → QVB7UHZG.js} +1 -1
- package/dist/cdn/{FQJEEXWE.js → QXSEYXES.js} +1 -1
- package/dist/cdn/{FXILUVBV.js → QZHBNPGY.js} +1 -1
- package/dist/cdn/{DHWXI42E.js → R6AFOUM2.js} +1 -1
- package/dist/cdn/{JLTOP6ZB.js → R6E7ZKNJ.js} +1 -1
- package/dist/cdn/{COFPVCM4.js → RAZ7K4K6.js} +1 -1
- package/dist/cdn/{4JQ2KYCI.js → RBDOAH2D.js} +1 -1
- package/dist/cdn/{UTMKICHH.js → RELRPLV5.js} +1 -1
- package/dist/cdn/{LVBTGDVL.js → RW5CGVDO.js} +1 -1
- package/dist/cdn/{5DLGXWQ3.js → SHICSSZO.js} +1 -1
- package/dist/cdn/{YDZX6UE4.js → SRGUFSV7.js} +1 -1
- package/dist/cdn/{ZKPPCC25.js → SSKNKJKX.js} +1 -1
- package/dist/cdn/{5ZJZ4CWK.js → SVVH7QU6.js} +1 -1
- package/dist/cdn/{GLR3YQUH.js → T54SVYPV.js} +1 -1
- package/dist/cdn/{2OFMNM3M.js → T7WEUOLU.js} +1 -1
- package/dist/cdn/{X23333AZ.js → TIPBKJRK.js} +1 -1
- package/dist/cdn/{PVQGBEVD.js → TLKT44P2.js} +1 -1
- package/dist/cdn/{4RK5SQNA.js → TO5JDH7U.js} +1 -1
- package/dist/cdn/{E5E3EPXR.js → TOHOFTUZ.js} +1 -1
- package/dist/cdn/{YJME5BEV.js → TZ4MG4O5.js} +1 -1
- package/dist/cdn/{FFQW3CR3.js → U5YEYJ36.js} +1 -1
- package/dist/cdn/{BI536N72.js → UCBPJAKW.js} +1 -1
- package/dist/cdn/{UDXEKXX5.js → UCDR4XIN.js} +1 -1
- package/dist/cdn/{FKJ6HS6O.js → UMQZMTGR.js} +1 -1
- package/dist/cdn/{VYX5R5OR.js → UMTYOGIP.js} +1 -1
- package/dist/cdn/{HT5QEEAO.js → UVPWCXJU.js} +1 -1
- package/dist/cdn/{DWOR7TCJ.js → VE2NRNLV.js} +1 -1
- package/dist/cdn/{A2BBU6IT.js → VZYM3DIO.js} +1 -1
- package/dist/cdn/{G5PPP23H.js → W4ZSXI24.js} +1 -1
- package/dist/cdn/{2U7537OE.js → WKEQNULD.js} +1 -1
- package/dist/cdn/{F4DC37G5.js → WSHRDWQH.js} +1 -1
- package/dist/cdn/XDKW3MLN.js +2 -0
- package/dist/cdn/{MSUDZEAW.js → XS7YZN5C.js} +1 -1
- package/dist/cdn/{GY5J7BGQ.js → Y7YD36NW.js} +1 -1
- package/dist/cdn/{I5G4E3R5.js → YACFZRQD.js} +1 -1
- package/dist/cdn/{6XATUFOW.js → YLBTFY4U.js} +1 -1
- package/dist/cdn/YN5T235C.js +2 -0
- package/dist/cdn/{YCA6TXCD.js → YVZXLLFI.js} +1 -1
- package/dist/cdn/{RZIMRWML.js → YXED5374.js} +1 -1
- package/dist/cdn/{ISYGTLOG.js → YZEKUDRA.js} +1 -1
- package/dist/cdn/{FLVRBNT5.js → Z2GSXEPD.js} +1 -1
- package/dist/cdn/{T2QDCS6X.js → ZC3RH5BF.js} +1 -1
- package/dist/cdn/{KZB6LTII.js → ZEDIUYQV.js} +1 -1
- package/dist/cdn/{DLJMD6RL.js → ZJMQONR5.js} +1 -1
- package/dist/cdn/{V6UI7YYJ.js → ZL2D3HSC.js} +1 -1
- package/dist/cdn/{2ENRIZUY.js → ZLIKFVXX.js} +1 -1
- package/dist/cdn/{X5VTWYKX.js → ZMN625QL.js} +1 -1
- package/dist/cdn/{Z3SWNLRR.js → ZNTXSRTZ.js} +1 -1
- package/dist/cdn/{TRJJ73QK.js → ZRM4AD7L.js} +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/chunks/runtime.js +1 -1
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/package.json +4 -4
- package/dist/cdn/IZX3X4NJ.js +0 -2
- package/dist/cdn/WHXUZJYF.js +0 -2
- package/dist/cdn/YE62D2H3.js +0 -2
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
|
|
2
|
-
import{a as b}from"./72K7GT6K.js";import a from"./TGP3P2F7.js";import"./7TXQADKX.js";import{a as R}from"./BHVERWQD.js";import{b as P}from"./ZNBKMZP7.js";import{M as O,N as S,O as j,P as q,S as L,U as Q,a as D,b as o}from"./TWXRM6Z7.js";import"./ALDX5YZO.js";export default $arcgis.t(([{templateHasKey:V,stripHTML:k},{isRelatableFeatureSupportedLayer:G,findRelatedLayer:J},{substitute:U,formatNumber:H},{watch:_,on:X},K,T,{ignoreAbortErrors:E},Y,{g:B}])=>{var ee=D`:host{position:relative;flex:1 1 auto}.list{min-height:var(--calcite-spacing-xxxl)}.list-item-hidden{display:none}.feature-observer{position:relative;bottom:var(--calcite-spacing-xxl);z-index:2;text-align:center}.sticky-loading-container{display:flex;position:sticky;bottom:var(--calcite-spacing-sm);align-items:center;justify-content:center;z-index:2;margin:0;padding:0;height:var(--calcite-spacing-xxxl);pointer-events:none}`,te=y=>{let e=[];if(y.formTemplate){let{description:t,title:r}=y.formTemplate;y.fields?.forEach(i=>{let s=r&&V(r,i.name),a=t&&V(t,i.name);(s||a)&&e.push(i.name)})}return e},M=100,N=class extends j{constructor(){super(...arguments),this._increaseFeaturePage=()=>{let{state:e,showAllEnabled:t,relatedFeatures:r,featuresPerPage:i,featurePage:s}=this;e==="ready"&&t&&r.length>=i*s&&this.featurePage++},this._relatedFeatureIntersectionObserver=new IntersectionObserver(([e])=>{e?.isIntersecting&&this._increaseFeaturePage()},{root:window.document}),this._featurePage=1,this._cancelQuery=()=>{let{_queryAbortController:e}=this;e&&e.abort(),this._queryAbortController=null},this._cancelQueryFeatureCount=()=>{let{_queryFeatureCountAbortController:e}=this;e&&e.abort(),this._queryFeatureCountAbortController=null},this._cancelQueryPage=()=>{let{_queryPageAbortController:e}=this;e&&e.abort(),this._queryPageAbortController=null},this._queryController=async()=>{this._cancelQuery();let e=new AbortController;this._queryAbortController=e,await E(this._query()),this._queryAbortController===e&&(this._queryAbortController=null)},this._queryFeatureCountController=async()=>{this._loaded=!1,this._cancelQueryFeatureCount();let e=new AbortController;this._queryFeatureCountAbortController=e,await E(this._queryFeatureCount()),this._queryFeatureCountAbortController===e&&(this._queryFeatureCountAbortController=null),this._loaded=!0},this._queryPageController=async()=>{let e=new AbortController;this._queryPageAbortController=e,await E(this._queryPage()),this._queryPageAbortController===e&&(this._queryPageAbortController=null)},this._queryDebounced=b(this._queryController,M),this._queryFeatureCountDebounced=b(this._queryFeatureCountController,M),this._queryPageDebounced=b(this._queryPageController,M),this._query=async()=>{let{_queryAbortController:e,relatedFeatures:t}=this;!this.featureCount||this.relatedLayer?.type==="subtype-group"&&!this.activeCategory||(this.relatedFeatureViewModels.destroyAll(),this.featurePage=1,t.destroyAll(),t.addMany(this._sliceFeatures(await this._queryRelatedFeatures({signal:e?.signal}))))},this._addFlowItem=e=>{e&&this.flowItems?.push(e)},this._relatedFeatureIntersectionObserverNode=O(),this.relatedFeatures=new K,this._queryAbortController=null,this._queryPageAbortController=null,this._queryFeatureCountAbortController=null,this.featureCount=0,this._loaded=!1,this.relatedFeatureViewModels=new K,this.autoDestroyDisabled=!1,this.featuresPerPage=10,this.flowType="feature-relationship",this.headingLevel=2,this.hideHeading=!1,this.hideDescription=!1,this.showAllEnabled=!1}static{this.properties={allCategories:16,_queryAbortController:16,_queryPageAbortController:16,_queryFeatureCountAbortController:16,featureCount:16,_loaded:16,canLoad:16,canQuery:16,displayShowAllButton:16,displayListItems:16,categories:16,itemDescriptionFieldName:16,relatedFeatureViewModels:16,state:16,autoDestroyDisabled:5,allItemsDescription:32,featurePage:9,featuresPerPage:9,flowItems:0,flowType:1,headingLevel:9,messages:0,heading:1,description:1,values:0,activeCategory:0,hideHeading:5,hideDescription:5,displayCount:9,graphic:0,layer:0,map:0,view:0,spatialReference:0,timeZone:1,orderByFields:0,relationshipId:9,showAllEnabled:5,label:3}}static{this.styles=ee}get orderByFieldsFixedCasing(){let{orderByFields:e,relatedLayer:t}=this;return e&&t?.loaded?e.map(r=>{let i=r.clone();return i.field=B(r.field,t),i}):e??[]}get supportsCacheHint(){return!!this.layer?.capabilities?.queryRelated?.supportsCacheHint}get allCategoriesCount(){return this.allCategories?.length??0}get objectId(){return(this.objectIdField&&this.graphic?.attributes?.[this.objectIdField])??null}get objectIdField(){return this.layer?.objectIdField||null}get relatedLayer(){let{layer:e,map:t,relationship:r}=this;if(!e?.loaded||!t||!r)return null;let i=e.type==="subtype-sublayer"&&e.parent&&G(e.parent)?e.parent:e;return J(t,i,r)??null}get relatedLayerKeyField(){let{relatedLayer:e,relationshipId:t}=this;return e?.loaded&&t!=null?e.relationships?.find(r=>r.id===t)?.keyField:null}get relatedLayerKeyFields(){let{relatedLayer:e}=this;return e?.loaded?e.relationships?.map(t=>t.keyField).filter(t=>t!=null)??[]:[]}get relationship(){let{relationshipId:e,layer:t}=this;return e!=null&&t?.loaded?t.relationships?.find(({id:r})=>r===e)??null:null}get relationshipKey(){let{relationshipKeyField:e}=this;return(e&&this.graphic?.attributes?.[e])??null}get relationshipKeyField(){return this.relationship?.keyField||null}get canLoad(){return!!this.map&&this.relationshipId!=null&&typeof this.objectId=="number"}get canQuery(){let e=this.layer?.capabilities?.queryRelated;return!!this.relatedLayer&&!!this.relationship&&this.relationshipId!=null&&this.objectId!=null&&!!e?.supportsCount&&e?.supportsPagination}get displayShowAllButton(){let{showAllEnabled:e,featureCount:t,displayCount:r,state:i,allCategoriesCount:s}=this,a=!!s&&(s>r||r===0),n=!!t&&(t>r||r===0);return!e&&i==="ready"&&(a||n)}get displayListItems(){let{relatedFeatures:e,allCategoriesCount:t}=this;return this.displayShowAllButton||!!e.length||!!t}get categories(){let{allCategories:e}=this;return this.showAllEnabled?e:e?.slice(0,this.displayCount)??null}get itemDescriptionFieldName(){return this.orderByFieldsFixedCasing[0]?.field||null}get state(){let{_queryAbortController:e,_queryFeatureCountAbortController:t,_queryPageAbortController:r,canQuery:i,_loaded:s,canLoad:a}=this;return t||a&&!s?"loading":e||r?"querying":i?"ready":"disabled"}get allItemsDescription(){let{messages:e,featureCount:t,allCategories:r,allCategoriesCount:i}=this;return U(e?.numberRecords??"",{number:H(r?i:t)})}get featurePage(){return this._featurePage}set featurePage(e){let{featuresPerPage:t,featureCount:r}=this,i=1,s=Math.ceil(r/t)||1;this._featurePage=Math.min(Math.max(e,i),s)}get heading(){let{activeCategory:e}=this;return this._heading??e?.name}set heading(e){this._heading=e}get displayCount(){return this._displayCount??3}set displayCount(e){this._displayCount=Math.min(Math.max(e??3,0),10)}async destroy(){await this.manager.destroy()}loaded(){this.manager.onLifecycle(()=>[_(()=>[this.displayCount,this.graphic,this.layer,this.layer?.loaded,this.map,this.orderByFields,this.relationshipId,this.featuresPerPage,this.showAllEnabled,this.canQuery,this.featureCount,this.activeCategory],()=>this._queryDebounced(),{initial:!0}),_(()=>[this.featurePage,this.showAllEnabled],()=>this._queryPageDebounced()),_(()=>[this.layer,this.relationshipId,this.objectId,this.canQuery,this.activeCategory],()=>this._queryFeatureCountDebounced(),{initial:!0}),_(()=>[this.state,this.showAllEnabled,this._relatedFeatureIntersectionObserverNode],()=>this._handleRelatedFeatureObserverChange()),X(()=>this.relatedFeatures,"change",()=>this._setRelatedFeaturesViewModels())]),this.manager.onDestroy(()=>{this.relatedFeatureViewModels.destroyAll(),this.relatedFeatures.destroyAll(),this._cancelQuery(),this._cancelQueryFeatureCount(),this._cancelQueryPage(),this._unobserveRelatedFeatureObserver()})}async _queryFeatureCount(){let{layer:e,relatedLayer:t}=this;await e?.load(),await t?.load();let{_queryFeatureCountAbortController:r,activeCategory:i,canQuery:s,objectId:a,relatedLayerKeyField:n,relationshipId:l,relationshipKey:g,supportsCacheHint:C}=this;if(!s||!e||!t||a==null){this.featureCount=0,this.allCategories=void 0;return}if(t?.type==="subtype-group"&&!i){if(this.featureCount=0,this.relatedFeatureViewModels.destroyAll(),this.featurePage=1,this.relatedFeatures.destroyAll(),n&&g!=null){let{default:w}=await $arcgis.t(m=>m[0],"smartMapping/statistics/uniqueValues"),{uniqueValueInfos:v}=await w({layer:t,sqlWhere:`${n} = '${g}'`,field:t.subtypeField??void 0,signal:r?.signal}),I=v.map(({count:u,value:c})=>{let m=t.subtypes?.find(A=>A.code===c)?.name;return c!=null&&m?{count:u,value:c,name:m}:void 0}).filter(u=>u!=null);this.allCategories=I}return}let{historicMoment:p,gdbVersion:f}=e,F=new T({cacheHint:C,gdbVersion:f,historicMoment:p,relationshipId:l,returnGeometry:!1,objectIds:[a],where:this._getRelationshipWhereClause(t)}),h=await e.queryRelatedFeaturesCount(F,{signal:r?.signal});this.allCategories=void 0,this.featureCount=h[a]||0}_getRelationshipWhereClause(e){let{activeCategory:t}=this,r=e.createQuery(),i="subtypeField"in e?e.subtypeField:void 0,s=t&&i?`${i} = ${t.value}`:void 0,a=r.where;return a&&s?`(${a}) AND (${s})`:a??s}_sliceFeatures(e){let{showAllEnabled:t,displayCount:r}=this;return t?e:r?e.slice(0,r):[]}async _queryPage(){let{relatedFeatures:e,featurePage:t,showAllEnabled:r,_queryPageAbortController:i,featureCount:s}=this;!r||t<2||!s||this.relatedLayer?.type==="subtype-group"&&!this.activeCategory||e.addMany(await this._queryRelatedFeatures({signal:i?.signal}))}async _queryRelatedFeatures(e){let{displayCount:t,featureCount:r,featurePage:i,featuresPerPage:s,layer:a,orderByFieldsFixedCasing:n,relatedLayer:l,relatedLayerKeyFields:g,relationshipId:C,showAllEnabled:p,supportsCacheHint:f}=this,{canQuery:F,objectId:h}=this;if(!F||!a||!l||h==null)return[];let w=p?((i-1)*s+r)%r:0,v=p?s:t,I=l.objectIdField,u="subtypeField"in l?l.subtypeField:void 0,c=[...n.map(d=>d.field),...te(l),...g,I,u].filter(d=>d!=null),m=n.map(d=>`${d.field} ${d.order}`),{historicMoment:A,gdbVersion:Z}=a,W=new T({orderByFields:m,start:w,num:v,outFields:c,cacheHint:f,historicMoment:A,gdbVersion:Z,relationshipId:C,returnGeometry:!1,objectIds:[h],where:this._getRelationshipWhereClause(l)}),$=(await a.queryRelatedFeatures(W,{signal:e?.signal}))[h]?.features||[];return l.type==="subtype-group"&&u?$.forEach(d=>{let z=d.attributes[u],x=l.findSublayerForSubtypeCode?.(z);d.sourceLayer=x,d.layer=x}):$.forEach(d=>{d.sourceLayer=l,d.layer=l}),$}_selectCategory(e){let{flowItems:t}=this;t&&this._addRelationshipFlowItem({showAllEnabled:!0,activeCategory:e})}_selectRecord(e){let{flowItems:t}=this;t&&this._addFlowItem(L(R(e,o`<arcgis-feature .flowItems=${t} .flowType=${this.flowType} .graphic=${e.graphic} .map=${this.map} show-relationship-content .spatialReference=${this.spatialReference} .timeZone=${this.timeZone} .view=${this.view}></arcgis-feature>`)))}_addRelationshipFlowItem({showAllEnabled:e=!1,activeCategory:t}){this._addFlowItem(L(R(t,o`<arcgis-feature-relationship .messages=${this.messages} .activeCategory=${t} .displayCount=${this.displayCount} .flowItems=${this.flowItems} .flowType=${this.flowType} .graphic=${this.graphic} .heading=${this.heading} hide-description .showAllEnabled=${e} hide-heading .layer=${this.layer} .map=${this.map} .orderByFields=${this.orderByFields} .relationshipId=${this.relationshipId} .spatialReference=${this.spatialReference} .values=${this.values} .view=${this.view}></arcgis-feature-relationship>`)))}_showAllRecords(){let{flowItems:e}=this;e&&this._addRelationshipFlowItem({showAllEnabled:!0})}_handleRelatedFeatureObserverChange(){this._unobserveRelatedFeatureObserver();let{state:e,showAllEnabled:t}=this;this._relatedFeatureIntersectionObserverNode.value&&e==="ready"&&t&&this._relatedFeatureIntersectionObserver.observe(this._relatedFeatureIntersectionObserverNode.value)}_unobserveRelatedFeatureObserver(){this._relatedFeatureIntersectionObserverNode.value&&this._relatedFeatureIntersectionObserver.unobserve(this._relatedFeatureIntersectionObserverNode.value)}_matchesFeature(e,t){let r=e?.graphic?.getObjectId(),i=t?.getObjectId();return r!=null&&i!=null&&r===i}_setRelatedFeaturesViewModels(){let{relatedFeatures:e,relatedFeatureViewModels:t,map:r,view:i,spatialReference:s,timeZone:a}=this;e?.filter(Boolean).forEach(n=>{t.some(l=>this._matchesFeature(l,n))||t.add(new Y({abilities:{relationshipContent:!1},map:r,view:i,spatialReference:s,timeZone:a,graphic:n}))}),t.forEach(n=>{e?.find(l=>this._matchesFeature(n,l))||t.remove(n)})}render(){let{state:e}=this;return o`<div class="root"><arcgis-feature-element-info .heading=${this.heading} .headingLevel=${this.headingLevel} .description=${this.description}></arcgis-feature-element-info>${e==="loading"?this._renderLoading():e==="disabled"?this._renderRelationshipNotFound():this._renderRelatedFeatures()}</div>`}_renderStickyLoading(){return this.state==="querying"?o`<div class="sticky-loading-container">${this._renderLoadingIcon()}</div>`:null}_renderLoadingIcon(){return o`<calcite-loader inline label></calcite-loader>`}_renderLoading(){return o`<div class="loading-container">${this._renderLoadingIcon()}</div>`}_renderShowAllIconNode(){return o`<calcite-icon icon=list scale=s slot=content-end></calcite-icon>`}_renderChevronIconNode(){return o`<calcite-icon flip-rtl icon=chevron-right scale=s slot=content-end></calcite-icon>`}_renderCategory(e){let{count:t,name:r}=e,i=H(t);return o`<calcite-list-item class="list-item" .disabled=${!t} .label=${r} @calciteListItemSelect=${()=>this._selectCategory(e)}><calcite-chip .label=${i} scale=s slot=content-end>${i}</calcite-chip>${this._renderChevronIconNode()}</calcite-list-item>`}_renderRelatedFeature(e){let{itemDescriptionFieldName:t,values:r}=this,{formattedAttributes:i,state:s,title:a}=e,n={...r,...i?.global},l=(t&&n?.[t])??"";return o`<calcite-list-item class=${q(P("list-item",{"list-item-hidden":s==="loading"}))} .description=${k(l.toString())} .label=${k(a)} @calciteListItemSelect=${()=>this._selectRecord(e)}>${this._renderChevronIconNode()}</calcite-list-item>`}_renderShowAllListItem(){return this.displayShowAllButton?o`<calcite-list-item .description=${this.allItemsDescription} .label=${this.messages?.showAll} @calciteListItemSelect=${()=>this._showAllRecords()}>${this._renderShowAllIconNode()}</calcite-list-item>`:null}_renderNoRelatedFeaturesMessage(){return o`<calcite-notice icon=information kind=brand open scale=s width=full><div slot=message>${this.messages?.noRelatedFeatures}</div></calcite-notice>`}_renderFeatureObserver(){return o`<div class="feature-observer" ${S(this._relatedFeatureIntersectionObserverNode)}></div>`}_renderList(){let{relatedFeatureViewModels:e,categories:t}=this;return o`<calcite-list display-mode=flat .label=${this.messages?.relatedFeaturesList??""}>${t?.map(r=>this._renderCategory(r))??e.toArray().map(r=>this._renderRelatedFeature(r))}${this._renderShowAllListItem()}</calcite-list>`}_renderRelatedFeatures(){let{displayListItems:e}=this,{state:t}=this;return o`<div class=${q(P("list",{"list-querying":t==="querying"}))}>${e?this._renderList():t==="ready"?this._renderNoRelatedFeaturesMessage():null}${this._renderStickyLoading()}${this._renderFeatureObserver()}</div>`}_renderRelationshipNotFound(){return o`<calcite-notice icon=exclamation-mark-triangle kind=danger open scale=s width=full><div slot=message>${this.messages?.relationshipNotFound}</div></calcite-notice>`}};Q("arcgis-feature-relationship",N);return N},"applications/Components/stringUtils","applications/Components/featureUtils","intl","core/reactiveUtils","core/Collection","rest/support/RelationshipQuery","core/promiseUtils","widgets/Feature/FeatureViewModel",a)
|
|
2
|
+
import{a as b}from"./72K7GT6K.js";import a from"./MHO4TLGI.js";import"./7TXQADKX.js";import{a as R}from"./2NS5UPHI.js";import{b as P}from"./ZNBKMZP7.js";import{M as O,N as S,O as j,P as q,S as L,U as Q,a as D,b as o}from"./QRWBSDOD.js";import"./ALDX5YZO.js";export default $arcgis.t(([{templateHasKey:V,stripHTML:k},{isRelatableFeatureSupportedLayer:G,findRelatedLayer:J},{substitute:U,formatNumber:H},{watch:_,on:X},K,T,{ignoreAbortErrors:E},Y,{g:B}])=>{var ee=D`:host{position:relative;flex:1 1 auto}.list{min-height:var(--calcite-spacing-xxxl)}.list-item-hidden{display:none}.feature-observer{position:relative;bottom:var(--calcite-spacing-xxl);z-index:2;text-align:center}.sticky-loading-container{display:flex;position:sticky;bottom:var(--calcite-spacing-sm);align-items:center;justify-content:center;z-index:2;margin:0;padding:0;height:var(--calcite-spacing-xxxl);pointer-events:none}`,te=y=>{let e=[];if(y.formTemplate){let{description:t,title:r}=y.formTemplate;y.fields?.forEach(i=>{let s=r&&V(r,i.name),a=t&&V(t,i.name);(s||a)&&e.push(i.name)})}return e},M=100,N=class extends j{constructor(){super(...arguments),this._increaseFeaturePage=()=>{let{state:e,showAllEnabled:t,relatedFeatures:r,featuresPerPage:i,featurePage:s}=this;e==="ready"&&t&&r.length>=i*s&&this.featurePage++},this._relatedFeatureIntersectionObserver=new IntersectionObserver(([e])=>{e?.isIntersecting&&this._increaseFeaturePage()},{root:window.document}),this._featurePage=1,this._cancelQuery=()=>{let{_queryAbortController:e}=this;e&&e.abort(),this._queryAbortController=null},this._cancelQueryFeatureCount=()=>{let{_queryFeatureCountAbortController:e}=this;e&&e.abort(),this._queryFeatureCountAbortController=null},this._cancelQueryPage=()=>{let{_queryPageAbortController:e}=this;e&&e.abort(),this._queryPageAbortController=null},this._queryController=async()=>{this._cancelQuery();let e=new AbortController;this._queryAbortController=e,await E(this._query()),this._queryAbortController===e&&(this._queryAbortController=null)},this._queryFeatureCountController=async()=>{this._loaded=!1,this._cancelQueryFeatureCount();let e=new AbortController;this._queryFeatureCountAbortController=e,await E(this._queryFeatureCount()),this._queryFeatureCountAbortController===e&&(this._queryFeatureCountAbortController=null),this._loaded=!0},this._queryPageController=async()=>{let e=new AbortController;this._queryPageAbortController=e,await E(this._queryPage()),this._queryPageAbortController===e&&(this._queryPageAbortController=null)},this._queryDebounced=b(this._queryController,M),this._queryFeatureCountDebounced=b(this._queryFeatureCountController,M),this._queryPageDebounced=b(this._queryPageController,M),this._query=async()=>{let{_queryAbortController:e,relatedFeatures:t}=this;!this.featureCount||this.relatedLayer?.type==="subtype-group"&&!this.activeCategory||(this.relatedFeatureViewModels.destroyAll(),this.featurePage=1,t.destroyAll(),t.addMany(this._sliceFeatures(await this._queryRelatedFeatures({signal:e?.signal}))))},this._addFlowItem=e=>{e&&this.flowItems?.push(e)},this._relatedFeatureIntersectionObserverNode=O(),this.relatedFeatures=new K,this._queryAbortController=null,this._queryPageAbortController=null,this._queryFeatureCountAbortController=null,this.featureCount=0,this._loaded=!1,this.relatedFeatureViewModels=new K,this.autoDestroyDisabled=!1,this.featuresPerPage=10,this.flowType="feature-relationship",this.headingLevel=2,this.hideHeading=!1,this.hideDescription=!1,this.showAllEnabled=!1}static{this.properties={allCategories:16,_queryAbortController:16,_queryPageAbortController:16,_queryFeatureCountAbortController:16,featureCount:16,_loaded:16,canLoad:16,canQuery:16,displayShowAllButton:16,displayListItems:16,categories:16,itemDescriptionFieldName:16,relatedFeatureViewModels:16,state:16,autoDestroyDisabled:5,allItemsDescription:32,featurePage:9,featuresPerPage:9,flowItems:0,flowType:1,headingLevel:9,messages:0,heading:1,description:1,values:0,activeCategory:0,hideHeading:5,hideDescription:5,displayCount:9,graphic:0,layer:0,map:0,view:0,spatialReference:0,timeZone:1,orderByFields:0,relationshipId:9,showAllEnabled:5,label:3}}static{this.styles=ee}get orderByFieldsFixedCasing(){let{orderByFields:e,relatedLayer:t}=this;return e&&t?.loaded?e.map(r=>{let i=r.clone();return i.field=B(r.field,t),i}):e??[]}get supportsCacheHint(){return!!this.layer?.capabilities?.queryRelated?.supportsCacheHint}get allCategoriesCount(){return this.allCategories?.length??0}get objectId(){return(this.objectIdField&&this.graphic?.attributes?.[this.objectIdField])??null}get objectIdField(){return this.layer?.objectIdField||null}get relatedLayer(){let{layer:e,map:t,relationship:r}=this;if(!e?.loaded||!t||!r)return null;let i=e.type==="subtype-sublayer"&&e.parent&&G(e.parent)?e.parent:e;return J(t,i,r)??null}get relatedLayerKeyField(){let{relatedLayer:e,relationshipId:t}=this;return e?.loaded&&t!=null?e.relationships?.find(r=>r.id===t)?.keyField:null}get relatedLayerKeyFields(){let{relatedLayer:e}=this;return e?.loaded?e.relationships?.map(t=>t.keyField).filter(t=>t!=null)??[]:[]}get relationship(){let{relationshipId:e,layer:t}=this;return e!=null&&t?.loaded?t.relationships?.find(({id:r})=>r===e)??null:null}get relationshipKey(){let{relationshipKeyField:e}=this;return(e&&this.graphic?.attributes?.[e])??null}get relationshipKeyField(){return this.relationship?.keyField||null}get canLoad(){return!!this.map&&this.relationshipId!=null&&typeof this.objectId=="number"}get canQuery(){let e=this.layer?.capabilities?.queryRelated;return!!this.relatedLayer&&!!this.relationship&&this.relationshipId!=null&&this.objectId!=null&&!!e?.supportsCount&&e?.supportsPagination}get displayShowAllButton(){let{showAllEnabled:e,featureCount:t,displayCount:r,state:i,allCategoriesCount:s}=this,a=!!s&&(s>r||r===0),n=!!t&&(t>r||r===0);return!e&&i==="ready"&&(a||n)}get displayListItems(){let{relatedFeatures:e,allCategoriesCount:t}=this;return this.displayShowAllButton||!!e.length||!!t}get categories(){let{allCategories:e}=this;return this.showAllEnabled?e:e?.slice(0,this.displayCount)??null}get itemDescriptionFieldName(){return this.orderByFieldsFixedCasing[0]?.field||null}get state(){let{_queryAbortController:e,_queryFeatureCountAbortController:t,_queryPageAbortController:r,canQuery:i,_loaded:s,canLoad:a}=this;return t||a&&!s?"loading":e||r?"querying":i?"ready":"disabled"}get allItemsDescription(){let{messages:e,featureCount:t,allCategories:r,allCategoriesCount:i}=this;return U(e?.numberRecords??"",{number:H(r?i:t)})}get featurePage(){return this._featurePage}set featurePage(e){let{featuresPerPage:t,featureCount:r}=this,i=1,s=Math.ceil(r/t)||1;this._featurePage=Math.min(Math.max(e,i),s)}get heading(){let{activeCategory:e}=this;return this._heading??e?.name}set heading(e){this._heading=e}get displayCount(){return this._displayCount??3}set displayCount(e){this._displayCount=Math.min(Math.max(e??3,0),10)}async destroy(){await this.manager.destroy()}loaded(){this.manager.onLifecycle(()=>[_(()=>[this.displayCount,this.graphic,this.layer,this.layer?.loaded,this.map,this.orderByFields,this.relationshipId,this.featuresPerPage,this.showAllEnabled,this.canQuery,this.featureCount,this.activeCategory],()=>this._queryDebounced(),{initial:!0}),_(()=>[this.featurePage,this.showAllEnabled],()=>this._queryPageDebounced()),_(()=>[this.layer,this.relationshipId,this.objectId,this.canQuery,this.activeCategory],()=>this._queryFeatureCountDebounced(),{initial:!0}),_(()=>[this.state,this.showAllEnabled,this._relatedFeatureIntersectionObserverNode],()=>this._handleRelatedFeatureObserverChange()),X(()=>this.relatedFeatures,"change",()=>this._setRelatedFeaturesViewModels())]),this.manager.onDestroy(()=>{this.relatedFeatureViewModels.destroyAll(),this.relatedFeatures.destroyAll(),this._cancelQuery(),this._cancelQueryFeatureCount(),this._cancelQueryPage(),this._unobserveRelatedFeatureObserver()})}async _queryFeatureCount(){let{layer:e,relatedLayer:t}=this;await e?.load(),await t?.load();let{_queryFeatureCountAbortController:r,activeCategory:i,canQuery:s,objectId:a,relatedLayerKeyField:n,relationshipId:l,relationshipKey:g,supportsCacheHint:C}=this;if(!s||!e||!t||a==null){this.featureCount=0,this.allCategories=void 0;return}if(t?.type==="subtype-group"&&!i){if(this.featureCount=0,this.relatedFeatureViewModels.destroyAll(),this.featurePage=1,this.relatedFeatures.destroyAll(),n&&g!=null){let{default:w}=await $arcgis.t(m=>m[0],"smartMapping/statistics/uniqueValues"),{uniqueValueInfos:v}=await w({layer:t,sqlWhere:`${n} = '${g}'`,field:t.subtypeField??void 0,signal:r?.signal}),I=v.map(({count:u,value:c})=>{let m=t.subtypes?.find(A=>A.code===c)?.name;return c!=null&&m?{count:u,value:c,name:m}:void 0}).filter(u=>u!=null);this.allCategories=I}return}let{historicMoment:p,gdbVersion:f}=e,F=new T({cacheHint:C,gdbVersion:f,historicMoment:p,relationshipId:l,returnGeometry:!1,objectIds:[a],where:this._getRelationshipWhereClause(t)}),h=await e.queryRelatedFeaturesCount(F,{signal:r?.signal});this.allCategories=void 0,this.featureCount=h[a]||0}_getRelationshipWhereClause(e){let{activeCategory:t}=this,r=e.createQuery(),i="subtypeField"in e?e.subtypeField:void 0,s=t&&i?`${i} = ${t.value}`:void 0,a=r.where;return a&&s?`(${a}) AND (${s})`:a??s}_sliceFeatures(e){let{showAllEnabled:t,displayCount:r}=this;return t?e:r?e.slice(0,r):[]}async _queryPage(){let{relatedFeatures:e,featurePage:t,showAllEnabled:r,_queryPageAbortController:i,featureCount:s}=this;!r||t<2||!s||this.relatedLayer?.type==="subtype-group"&&!this.activeCategory||e.addMany(await this._queryRelatedFeatures({signal:i?.signal}))}async _queryRelatedFeatures(e){let{displayCount:t,featureCount:r,featurePage:i,featuresPerPage:s,layer:a,orderByFieldsFixedCasing:n,relatedLayer:l,relatedLayerKeyFields:g,relationshipId:C,showAllEnabled:p,supportsCacheHint:f}=this,{canQuery:F,objectId:h}=this;if(!F||!a||!l||h==null)return[];let w=p?((i-1)*s+r)%r:0,v=p?s:t,I=l.objectIdField,u="subtypeField"in l?l.subtypeField:void 0,c=[...n.map(d=>d.field),...te(l),...g,I,u].filter(d=>d!=null),m=n.map(d=>`${d.field} ${d.order}`),{historicMoment:A,gdbVersion:Z}=a,W=new T({orderByFields:m,start:w,num:v,outFields:c,cacheHint:f,historicMoment:A,gdbVersion:Z,relationshipId:C,returnGeometry:!1,objectIds:[h],where:this._getRelationshipWhereClause(l)}),$=(await a.queryRelatedFeatures(W,{signal:e?.signal}))[h]?.features||[];return l.type==="subtype-group"&&u?$.forEach(d=>{let z=d.attributes[u],x=l.findSublayerForSubtypeCode?.(z);d.sourceLayer=x,d.layer=x}):$.forEach(d=>{d.sourceLayer=l,d.layer=l}),$}_selectCategory(e){let{flowItems:t}=this;t&&this._addRelationshipFlowItem({showAllEnabled:!0,activeCategory:e})}_selectRecord(e){let{flowItems:t}=this;t&&this._addFlowItem(L(R(e,o`<arcgis-feature .flowItems=${t} .flowType=${this.flowType} .graphic=${e.graphic} .map=${this.map} show-relationship-content .spatialReference=${this.spatialReference} .timeZone=${this.timeZone} .view=${this.view}></arcgis-feature>`)))}_addRelationshipFlowItem({showAllEnabled:e=!1,activeCategory:t}){this._addFlowItem(L(R(t,o`<arcgis-feature-relationship .messages=${this.messages} .activeCategory=${t} .displayCount=${this.displayCount} .flowItems=${this.flowItems} .flowType=${this.flowType} .graphic=${this.graphic} .heading=${this.heading} hide-description .showAllEnabled=${e} hide-heading .layer=${this.layer} .map=${this.map} .orderByFields=${this.orderByFields} .relationshipId=${this.relationshipId} .spatialReference=${this.spatialReference} .values=${this.values} .view=${this.view}></arcgis-feature-relationship>`)))}_showAllRecords(){let{flowItems:e}=this;e&&this._addRelationshipFlowItem({showAllEnabled:!0})}_handleRelatedFeatureObserverChange(){this._unobserveRelatedFeatureObserver();let{state:e,showAllEnabled:t}=this;this._relatedFeatureIntersectionObserverNode.value&&e==="ready"&&t&&this._relatedFeatureIntersectionObserver.observe(this._relatedFeatureIntersectionObserverNode.value)}_unobserveRelatedFeatureObserver(){this._relatedFeatureIntersectionObserverNode.value&&this._relatedFeatureIntersectionObserver.unobserve(this._relatedFeatureIntersectionObserverNode.value)}_matchesFeature(e,t){let r=e?.graphic?.getObjectId(),i=t?.getObjectId();return r!=null&&i!=null&&r===i}_setRelatedFeaturesViewModels(){let{relatedFeatures:e,relatedFeatureViewModels:t,map:r,view:i,spatialReference:s,timeZone:a}=this;e?.filter(Boolean).forEach(n=>{t.some(l=>this._matchesFeature(l,n))||t.add(new Y({abilities:{relationshipContent:!1},map:r,view:i,spatialReference:s,timeZone:a,graphic:n}))}),t.forEach(n=>{e?.find(l=>this._matchesFeature(n,l))||t.remove(n)})}render(){let{state:e}=this;return o`<div class="root"><arcgis-feature-element-info .heading=${this.heading} .headingLevel=${this.headingLevel} .description=${this.description}></arcgis-feature-element-info>${e==="loading"?this._renderLoading():e==="disabled"?this._renderRelationshipNotFound():this._renderRelatedFeatures()}</div>`}_renderStickyLoading(){return this.state==="querying"?o`<div class="sticky-loading-container">${this._renderLoadingIcon()}</div>`:null}_renderLoadingIcon(){return o`<calcite-loader inline label></calcite-loader>`}_renderLoading(){return o`<div class="loading-container">${this._renderLoadingIcon()}</div>`}_renderShowAllIconNode(){return o`<calcite-icon icon=list scale=s slot=content-end></calcite-icon>`}_renderChevronIconNode(){return o`<calcite-icon flip-rtl icon=chevron-right scale=s slot=content-end></calcite-icon>`}_renderCategory(e){let{count:t,name:r}=e,i=H(t);return o`<calcite-list-item class="list-item" .disabled=${!t} .label=${r} @calciteListItemSelect=${()=>this._selectCategory(e)}><calcite-chip .label=${i} scale=s slot=content-end>${i}</calcite-chip>${this._renderChevronIconNode()}</calcite-list-item>`}_renderRelatedFeature(e){let{itemDescriptionFieldName:t,values:r}=this,{formattedAttributes:i,state:s,title:a}=e,n={...r,...i?.global},l=(t&&n?.[t])??"";return o`<calcite-list-item class=${q(P("list-item",{"list-item-hidden":s==="loading"}))} .description=${k(l.toString())} .label=${k(a)} @calciteListItemSelect=${()=>this._selectRecord(e)}>${this._renderChevronIconNode()}</calcite-list-item>`}_renderShowAllListItem(){return this.displayShowAllButton?o`<calcite-list-item .description=${this.allItemsDescription} .label=${this.messages?.showAll} @calciteListItemSelect=${()=>this._showAllRecords()}>${this._renderShowAllIconNode()}</calcite-list-item>`:null}_renderNoRelatedFeaturesMessage(){return o`<calcite-notice icon=information kind=brand open scale=s width=full><div slot=message>${this.messages?.noRelatedFeatures}</div></calcite-notice>`}_renderFeatureObserver(){return o`<div class="feature-observer" ${S(this._relatedFeatureIntersectionObserverNode)}></div>`}_renderList(){let{relatedFeatureViewModels:e,categories:t}=this;return o`<calcite-list display-mode=flat .label=${this.messages?.relatedFeaturesList??""}>${t?.map(r=>this._renderCategory(r))??e.toArray().map(r=>this._renderRelatedFeature(r))}${this._renderShowAllListItem()}</calcite-list>`}_renderRelatedFeatures(){let{displayListItems:e}=this,{state:t}=this;return o`<div class=${q(P("list",{"list-querying":t==="querying"}))}>${e?this._renderList():t==="ready"?this._renderNoRelatedFeaturesMessage():null}${this._renderStickyLoading()}${this._renderFeatureObserver()}</div>`}_renderRelationshipNotFound(){return o`<calcite-notice icon=exclamation-mark-triangle kind=danger open scale=s width=full><div slot=message>${this.messages?.relationshipNotFound}</div></calcite-notice>`}};Q("arcgis-feature-relationship",N);return N},"applications/Components/stringUtils","applications/Components/featureUtils","intl","core/reactiveUtils","core/Collection","rest/support/RelationshipQuery","core/promiseUtils","widgets/Feature/FeatureViewModel",a)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
|
|
2
2
|
var Y=globalThis,Z=Y.ShadowRoot&&(Y.ShadyCSS===void 0||Y.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,gt=Symbol(),Mt=new WeakMap,k=class{constructor(t,e,o){if(this._$cssResult$=!0,o!==gt)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=Mt.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),o&&Mt.set(e,t))}return t}toString(){return this.cssText}},It=s=>new k(typeof s=="string"?s:s+"",void 0,gt),vt=(s,...t)=>{let e=s.length===1?s[0]:t.reduce((o,r,i)=>o+(n=>{if(n._$cssResult$===!0)return n.cssText;if(typeof n=="number")return n;throw Error("Value passed to 'css' function must be a 'css' function result: "+n+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(r)+s[i+1],s[0]);return new k(e,s,gt)},kt=(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=Y.litNonce;r!==void 0&&o.setAttribute("nonce",r),o.textContent=e.cssText,s.appendChild(o)}},Et=Z?s=>s:s=>s instanceof CSSStyleSheet?(t=>{let e="";for(let o of t.cssRules)e+=o.cssText;return It(e)})(s):s;var{is:_e,defineProperty:Ae,getOwnPropertyDescriptor:Ce,getOwnPropertyNames:we,getOwnPropertySymbols:Oe,getPrototypeOf:Te}=Object,tt=globalThis,jt=tt.trustedTypes,Se=jt?jt.emptyScript:"",Pe=tt.reactiveElementPolyfillSupport,j=(s,t)=>s,X={toAttribute(s,t){switch(t){case Boolean:s=s?Se: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}},H=(s,t)=>!_e(s,t),Ht={attribute:!0,type:String,converter:X,reflect:!1,useDefault:!1,hasChanged:H};Symbol.metadata??=Symbol("metadata"),tt.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=Ht){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&&Ae(this.prototype,t,r)}}static getPropertyDescriptor(t,e,o){let{get:r,set:i}=Ce(this.prototype,t)??{get(){return this[e]},set(n){this[e]=n}};return{get:r,set(n){let a=r?.call(this);i?.call(this,n),this.requestUpdate(t,a,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??Ht}static _$Ei(){if(this.hasOwnProperty(j("elementProperties")))return;let t=Te(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(j("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(j("properties"))){let e=this.properties,o=[...we(e),...Oe(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(Et(r))}else t!==void 0&&e.push(Et(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 kt(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 i=(o.converter?.toAttribute!==void 0?o.converter:X).toAttribute(e,o.type);this._$Em=t,i==null?this.removeAttribute(r):this.setAttribute(r,i),this._$Em=null}}_$AK(t,e){let o=this.constructor,r=o._$Eh.get(t);if(r!==void 0&&this._$Em!==r){let i=o.getPropertyOptions(r),n=typeof i.converter=="function"?{fromAttribute:i.converter}:i.converter?.fromAttribute!==void 0?i.converter:X;this._$Em=r;let a=n.fromAttribute(e,i.type);this[r]=a??this._$Ej?.get(r)??a,this._$Em=null}}requestUpdate(t,e,o,r=!1,i){if(t!==void 0){let n=this.constructor;if(r===!1&&(i=this[t]),o??=n.getPropertyOptions(t),!((o.hasChanged??H)(i,e)||o.useDefault&&o.reflect&&i===this._$Ej?.get(t)&&!this.hasAttribute(n._$Eu(t,o))))return;this.C(t,e,o)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(t,e,{useDefault:o,reflect:r,wrapped:i},n){o&&!(this._$Ej??=new Map).has(t)&&(this._$Ej.set(t,n??e??this[t]),i!==!0||n!==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,i]of this._$Ep)this[r]=i;this._$Ep=void 0}let o=this.constructor.elementProperties;if(o.size>0)for(let[r,i]of o){let{wrapped:n}=i,a=this[r];n!==!0||this._$AL.has(r)||a===void 0||this.C(r,void 0,i,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"},_[j("elementProperties")]=new Map,_[j("finalized")]=new Map,Pe?.({ReactiveElement:_}),(tt.reactiveElementVersions??=[]).push("2.1.2");var bt=globalThis,zt=s=>s,et=bt.trustedTypes,Vt=et?et.createPolicy("lit-html",{createHTML:s=>s}):void 0,_t="$lit$",A=`lit$${Math.random().toFixed(9).slice(2)}$`,At="?"+A,Ne=`<${At}>`,T=document,V=()=>T.createComment(""),B=s=>s===null||typeof s!="object"&&typeof s!="function",Ct=Array.isArray,Kt=s=>Ct(s)||typeof s?.[Symbol.iterator]=="function",$t=`[
|
|
3
3
|
\f\r]`,z=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Bt=/-->/g,Wt=/>/g,w=RegExp(`>|${$t}(?:([^\\s"'>=/]+)(${$t}*=${$t}*(?:[^
|
|
4
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),Ft=/'/g,qt=/"/g,Qt=/^(?:script|style|textarea|title)$/i,wt=s=>(t,...e)=>({_$litType$:s,strings:t,values:e}),ys=wt(1),gs=wt(2),vs=wt(3),f=Symbol.for("lit-noChange"),d=Symbol.for("lit-nothing"),Gt=new WeakMap,O=T.createTreeWalker(T,129);function Jt(s,t){if(!Ct(s)||!s.hasOwnProperty("raw"))throw Error("invalid template strings array");return Vt!==void 0?Vt.createHTML(t):t}var Yt=(s,t)=>{let e=s.length-1,o=[],r,i=t===2?"<svg>":t===3?"<math>":"",n=z;for(let a=0;a<e;a++){let c=s[a],l,u,h=-1,y=0;for(;y<c.length&&(n.lastIndex=y,u=n.exec(c),u!==null);)y=n.lastIndex,n===z?u[1]==="!--"?n=Bt:u[1]!==void 0?n=Wt:u[2]!==void 0?(Qt.test(u[2])&&(r=RegExp("</"+u[2],"g")),n=w):u[3]!==void 0&&(n=w):n===w?u[0]===">"?(n=r??z,h=-1):u[1]===void 0?h=-2:(h=n.lastIndex-u[2].length,l=u[1],n=u[3]===void 0?w:u[3]==='"'?qt:Ft):n===qt||n===Ft?n=w:n===Bt||n===Wt?n=z:(n=w,r=void 0);let g=n===w&&s[a+1].startsWith("/>")?" ":"";i+=n===z?c+Ne:h>=0?(o.push(l),c.slice(0,h)+_t+c.slice(h)+A+g):c+A+(h===-2?a:g)}return[Jt(s,i+(s[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),o]},W=class s{constructor({strings:t,_$litType$:e},o){let r;this.parts=[];let i=0,n=0,a=t.length-1,c=this.parts,[l,u]=Yt(t,e);if(this.el=s.createElement(l,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&&c.length<a;){if(r.nodeType===1){if(r.hasAttributes())for(let h of r.getAttributeNames())if(h.endsWith(_t)){let y=u[n++],g=r.getAttribute(h).split(A),C=/([.?@])?(.*)/.exec(y);c.push({type:1,index:i,name:C[2],strings:g,ctor:C[1]==="."?ot:C[1]==="?"?rt:C[1]==="@"?it:P}),r.removeAttribute(h)}else h.startsWith(A)&&(c.push({type:6,index:i}),r.removeAttribute(h));if(Qt.test(r.tagName)){let h=r.textContent.split(A),y=h.length-1;if(y>0){r.textContent=et?et.emptyScript:"";for(let g=0;g<y;g++)r.append(h[g],V()),O.nextNode(),c.push({type:2,index:++i});r.append(h[y],V())}}}else if(r.nodeType===8)if(r.data===At)c.push({type:2,index:i});else{let h=-1;for(;(h=r.data.indexOf(A,h+1))!==-1;)c.push({type:7,index:i}),h+=A.length-1}i++}}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,i=B(t)?void 0:t._$litDirective$;return r?.constructor!==i&&(r?._$AO?.(!1),i===void 0?r=void 0:(r=new i(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 st=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 i=O.nextNode(),n=0,a=0,c=o[0];for(;c!==void 0;){if(n===c.index){let l;c.type===2?l=new U(i,i.nextSibling,this,t):c.type===1?l=new c.ctor(i,c.name,c.strings,this,t):c.type===6&&(l=new nt(i,this,t)),this._$AV.push(l),c=o[++a]}n!==c?.index&&(i=O.nextNode(),n++)}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++}},U=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),B(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):Kt(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&&B(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=W.createElement(Jt(o.h,o.h[0]),this.options)),o);if(this._$AH?._$AD===r)this._$AH.p(e);else{let i=new st(r,this),n=i.u(this.options);i.p(e),this.T(n),this._$AH=i}}_$AC(t){let e=Gt.get(t.strings);return e===void 0&&Gt.set(t.strings,e=new W(t)),e}k(t){Ct(this._$AH)||(this._$AH=[],this._$AR());let e=this._$AH,o,r=0;for(let i of t)r===e.length?e.push(o=new s(this.O(V()),this.O(V()),this,this.options)):o=e[r],o._$AI(i),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=zt(t).nextSibling;zt(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,i){this.type=1,this._$AH=d,this._$AN=void 0,this.element=t,this.name=e,this._$AM=r,this.options=i,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 i=this.strings,n=!1;if(i===void 0)t=S(this,t,e,0),n=!B(t)||t!==this._$AH&&t!==f,n&&(this._$AH=t);else{let a=t,c,l;for(t=i[0],c=0;c<i.length-1;c++)l=S(this,a[o+c],e,c),l===f&&(l=this._$AH[c]),n||=!B(l)||l!==this._$AH[c],l===d?t=d:t!==d&&(t+=(l??"")+i[c+1]),this._$AH[c]=l}n&&!r&&this.j(t)}j(t){t===d?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},ot=class extends P{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===d?void 0:t}},rt=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,i){super(t,e,o,r,i),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,i=t!==d&&(o===d||r);r&&this.element.removeEventListener(this.name,this,o),i&&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)}},nt=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)}},Zt={M:_t,P:A,A:At,C:1,L:Yt,R:st,D:Kt,V:S,I:U,H:P,N:rt,U:it,B:ot,F:nt},xe=bt.litHtmlPolyfillSupport;xe?.(W,U),(bt.litHtmlVersions??=[]).push("3.3.2");var at=(s,t,e)=>{let o=e?.renderBefore??t,r=o._$litPart$;if(r===void 0){let i=e?.renderBefore??null;o._$litPart$=r=new U(t.insertBefore(V(),i),i,void 0,e??{})}return r._$AI(s),r};var Ot=globalThis,$=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=at(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return f}};$._$litElement$=!0,$.finalized=!0,Ot.litElementHydrateSupport?.({LitElement:$});var De=Ot.litElementPolyfillSupport;De?.({LitElement:$});(Ot.litElementVersions??=[]).push("4.2.2");var Xt=new Set,te;var ee=s=>typeof s=="string"?s:"el"in s?s.el.localName:"localName"in s?s.localName:s.declaredClass,Le=(s,t,e,o)=>{let r=ee(t);if(o?.once){let n=`${s}${r}${e}`;if(Xt.has(n))return;Xt.add(n)}let i;if(o?.detail){i={};for(let[n,a]of Object.entries(o.detail))if((typeof a=="object"||typeof a=="function")&&a!==null){let c=new WeakRef(a);Object.defineProperty(i,n,{get(){return c.deref()}})}else i[n]=a;te?.log.interceptors?.forEach(n=>n(s,r,e,i)),console[s](`[${r}]: ${e}`,i)}else te?.log.interceptors?.forEach(n=>n(s,r,e)),console[s](`[${r}]: ${e}`)},se=s=>{let t=`[${ee(s)}] `;return e=>{let o=e instanceof Error&&e.message?e:new Error(String(e));o.message=`${t}${o.message}`,setTimeout(()=>{throw e})}},xs=s=>`The property \`${s.toString()}\` is required but missing.`,Ds=s=>`The property \`${s.toString()}\` is empty but must have at least one element.`,Ls=(s,t,e,o)=>Le("warn",s,`\`${t.toString()}\` is deprecated. Use \`${e.toString()}\` instead.`,o);var p=(s,t,...e)=>{try{return s?.call(t,...e)}catch(o){console.error(o,s)}},F=async(s,t,...e)=>{try{return await s?.call(t,...e)}catch(o){console.error(o,s)}};var G=Symbol.for("controller"),Ue=s=>typeof s=="object"&&s!==null&&(G in s||"hostConnected"in s||"hostDisconnected"in s||"hostUpdate"in s||"hostUpdated"in s),Ms=s=>typeof s?.then=="function",Is=s=>s.M.length,q,x=s=>{q!==s&&(q=s,queueMicrotask(()=>q===s?q=void 0:0))},K=s=>q,N=[],oe=s=>{if(s===void 0){N=[];return}let t=N.indexOf(s);N=t===-1?[...N,s]:N.slice(0,t+1),queueMicrotask(()=>N=[])},re=()=>N,R,ks=s=>{R!==s&&(R=s,queueMicrotask(()=>R===s?R=void 0:0))},Re=()=>{let s=R;return R=void 0,s},ie=async(s,t)=>{let e=lt(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},ne=async s=>{let t=lt(s);return await t.ready,t},lt=s=>{let e=K().manager.X(s);if(e!==void 0)return e;if(Ue(s))return s;let o=Re();if(o!==void 0)return o},ct=!1,js=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})}},ae=(s,t)=>{let e=t>Me?Ie:t/ke,o=0,r=setInterval(()=>{o+=e,o>=t&&(clearInterval(r),s())},e);return r},Me=4e3,Ie=2e3,ke=4;var je=(s,t,e)=>{let o=Object.keys(s),r=o.length;M===void 0&&queueMicrotask(I),M??=new Map;let i=M.get(s);return i===void 0&&(i={callbacks:[],keyCount:r},M.set(s,i)),i.keyCount!==r&&(i.callbacks.forEach(n=>n(o)),i.callbacks=[],i.keyCount=r),i.callbacks.push(n=>{let a=l=>p(t,null,l),c=n[r];c===void 0?a(void 0):s[c]===e?a(c):a(void 0)}),e},M,I=()=>{M?.forEach(({callbacks:s},t)=>{let e=Object.keys(t);s.forEach(o=>o(e))}),M=void 0},He=(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,i)=>p(t,void 0,e===i?r:void 0)),e},ze=(s=[K(),...re()],t,e)=>{let o=Array.isArray(s)?s:[s],r=o.length+1,i=n=>{r-=1,n!==void 0&&(r=Math.min(r,0)),r===0&&t(n)};o.forEach(n=>je(n,a=>i(a===void 0?void 0:{key:a,host:n,isReactive:!1}),e));for(let n of o)if("manager"in n&&n.manager.component===n){He(n,a=>i(a===void 0?void 0:{key:a,host:n,isReactive:!0}),e);break}return e},Ve=(s="",t={},e=K())=>{let o={emit:r=>{s===""&&I();let i=new CustomEvent(s,{detail:r,cancelable:!0,bubbles:!0,composed:!0,...t});return e.el.dispatchEvent(i),i}};return s===""&&ze(void 0,r=>s=r.key,o),o},Be=Ve.bind(null,""),he;he=G;var Tt=class{constructor(t){this.#t=[],this.#e=[],this.#s=[],this.#r=[],this.#i=[],this.#c=[],this.#l=[],this.#p=[],this.#h=[],this.#d=!1,this.P=new b,this.connectedCalled=!1,this.loadedCalled=!1,this[he]=!0,this.#a=[];let e=this,o=t??K(new.target.name);e.#o=o,e.ready=e.P.promise,e.#n=le(e),e.component=o,e.#o.addController(e),e.#o.manager===void 0||(oe(e),queueMicrotask(()=>e.catchUpLifecycle()))}#t;#e;#s;#r;#i;#c;#l;#p;#h;#d;#o;catchUpLifecycle(){let{manager:t}=this.#o;t.connectedCalled&&!this.connectedCalled&&this.triggerConnected(),t.#d&&this.triggerLoad().then(()=>t.loadedCalled&&this.triggerLoaded()).catch(se(this.#o))}#n;get exports(){return this.#n}set exports(t){let e=this.#n;e!==t&&(this.#n=t,this.#a.forEach(p),this.connectedCalled&&this.O!==!1&&this.#o.requestUpdate(this.O,e)),this.P.resolve(t)}setProvisionalExports(t,e=!0){this.#n=e?le(t):t,this.#a.forEach(p)}#a;watchExports(t){let e=()=>t(this.#n);return this.#a.push(e),()=>void this.#a.splice(this.#a.indexOf(e),1)}get use(){return x(this.#o),ie}get useRef(){return x(this.#o),ne}get useRefSync(){return x(this.#o),lt}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.#i.push(t)}onUpdated(t){this.#c.push(t)}onDestroy(t){this.#l.push(t)}onLifecycle(t){this.#p.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.#h.forEach(p),t.#h=[]}async triggerLoad(){if(this.#d)return;this.#d=!0;let t=this;t.hostLoad&&await F(t.hostLoad,t),this.#s.length>0&&await Promise.allSettled(this.#s.map(F)),this.P.resolve(this.#n)}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.#i.forEach(ce,t)}triggerUpdated(t){this.hostUpdated&&p(this.hostUpdated,this,t),this.#c.forEach(ce,t)}triggerDestroy(){this.hostDestroy&&p(this.hostDestroy,this),this.#l.forEach(p)}triggerLifecycle(){this.hostLifecycle&&this.#u(()=>this.hostLifecycle()),this.#p.forEach(this.#u,this)}#u(t){x(this.#o);let e=p(t);(Array.isArray(e)?e:[e]).forEach(r=>{typeof r=="function"?this.#h.push(r):typeof r=="object"&&typeof r.remove=="function"&&this.#h.push(r.remove)})}};function ce(s){p(s,void 0,this)}var de=Tt,le=s=>{if(typeof s!="object"&&typeof s!="function"||s===null)return s;let t={get(o,r,i){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,i)}},e=new Proxy(s,t);return e};var ht=s=>s.replace(We,(t,e)=>`${e===0?"":"-"}${t.toLowerCase()}`),We=/[A-Z]+(?![a-z])|[A-Z]/gu;var Qs=s=>`\u200E${s??""}\u200E`,Fe="randomUUID"in crypto,Js=()=>{if(Fe)return crypto.randomUUID();let s=crypto.getRandomValues(new Uint16Array(8));s[3]=s[3]&4095|16384,s[4]=s[4]&16383|32768;let t=e=>s[e].toString(16).padStart(4,"0");return`${t(0)+t(1)}-${t(2)}-${t(3)}-${t(4)}-${t(5)}${t(6)}${t(7)}`};var m={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},E=s=>(...t)=>({_$litDirective$:s,values:t}),v=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}=Zt,pe=s=>s;var dt=s=>s.strings===void 0,ue=()=>document.createComment(""),to=(s,t,e)=>{let o=s._$AA.parentNode,r=t===void 0?s._$AB:t._$AA;if(e===void 0){let i=o.insertBefore(ue(),r),n=o.insertBefore(ue(),r);e=new qe(i,n,s,s.options)}else{let i=e._$AB.nextSibling,n=e._$AM,a=n!==s;if(a){let c;e._$AQ?.(s),e._$AM=s,e._$AP!==void 0&&(c=s._$AU)!==n._$AU&&e._$AP(c)}if(i!==r||a){let c=e._$AA;for(;c!==i;){let l=pe(c).nextSibling;pe(o).insertBefore(c,r),c=l}}}return e},eo=(s,t,e=s)=>(s._$AI(t,e),s),Ge={},fe=(s,t=Ge)=>s._$AH=t,so=s=>s._$AH,oo=s=>{s._$AR(),s._$AA.remove()};var Ke=E(class extends v{constructor(s){if(super(s),s.type!==m.PROPERTY&&s.type!==m.ATTRIBUTE&&s.type!==m.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!dt(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===m.PROPERTY){if(t===e[o])return f}else if(s.type===m.BOOLEAN_ATTRIBUTE){if(!!t===e.hasAttribute(o))return f}else if(s.type===m.ATTRIBUTE&&e.getAttribute(o)===t+"")return f;return fe(s),t}});var Q=(s,t)=>{let e=s._$AN;if(e===void 0)return!1;for(let o of e)o._$AO?.(t,!1),Q(o,t);return!0},pt=s=>{let t,e;do{if((t=s._$AM)===void 0)break;e=t._$AN,e.delete(s),s=t}while(e?.size===0)},me=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 Qe(s){this._$AN!==void 0?(pt(this),this._$AM=s,me(this)):this._$AM=s}function Je(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 i=e;i<o.length;i++)Q(o[i],!1),pt(o[i]);else o!=null&&(Q(o,!1),pt(o));else Q(this,s)}var Ye=s=>{s.type==m.CHILD&&(s._$AP??=Je,s._$AQ??=Qe)},ut=class extends v{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,e,o){super._$AT(t,e,o),me(this),this.isConnected=t._$AU}_$AO(t,e=!0){t!==this.isConnected&&(this.isConnected=t,t?this.reconnected?.():this.disconnected?.()),e&&(Q(this,t),pt(this))}setValue(t){if(dt(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 $o=()=>new Pt,Pt=class{},St=new WeakMap,Nt=E(class extends ut{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=St.get(t);e===void 0&&(e=new WeakMap,St.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"?St.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 Dt=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},Lt={};function Ut(){}var Xe=(s,t)=>function(o,r){if(!globalThis.customElements)return;let n=(r??o??{}).resourcesUrl;n&&s.setAssetPath(n);for(let[a,[c,l=""]]of Object.entries(t)){if(customElements.get(a))continue;let[u,h,y]=l.split(";"),g=u?u?.split(",").map(ts):void 0,C=g?.map(([L])=>L),D=class extends xt{static{this.observedAttributes=g?.map(([,L])=>L).filter(L=>L!=="")}static{this.C=C}static{this.E=h?h?.split(","):void 0}static{this.D=y?.split(",")}static{this.L=a}static{this.K=s}constructor(){!D.B&&(D.B=c(),D.F()),super()}};customElements.define(a,D)}},ft=Object.defineProperty,ts=s=>{let t=s.split(":");return t.length===1?[t[0],ht(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??[])ft(this.prototype,t,{configurable:!0,enumerable:!0,get(){return this.#e[t]},set(e){this.#e[t]=e}});for(let t of this.E??[])ft(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??[])ft(this.prototype,t,{value(...e){return this.#t[t](...e)},configurable:!0})}#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=Dt(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,i=Object.values(t).find(h=>h.L===o),n=`${o}--lazy`,a=i;for(;a&&!Object.hasOwn(a,"lumina");)a=Object.getPrototypeOf(a);os(a),!e.A&&(e.A=i,customElements.define(n,i)),i.N=this;let l=document.createElement(n);i.N=void 0,this.#t=l,this.#e=l,this.#s.forEach(h=>l.attributeChangedCallback(h,null,this.getAttribute(h))),Object.entries(r).forEach(ss,l);let u=this.isConnected;(u||this.G)&&(l.connectedCallback?.(),u||l.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,i){e.setAttribute.call(this.el,r,i)},t.removeAttribute=function(r){e.removeAttribute.call(this.el,r)},ft(t,"isConnected",{get(){return Reflect.get(e,"isConnected",this.el)}}))};var mt=class extends de{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=yt in t&&typeof t.destroy=="function",$.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 ${yt} prop.`)}this.#t!==void 0&&clearTimeout(this.#t),I();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),x(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=()=>void this.#e.destroy();this.#t=ae(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,yt="autoDestroyDisabled";var ge=E(class extends v{constructor(s){if(super(s),s.type!==m.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 ve="important",is=" !"+ve,Ee=E(class extends v{constructor(s){if(super(s),s.type!==m.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 i=typeof r=="string"&&r.endsWith(is);o.includes("-")||i?e.setProperty(o,i?r.slice(0,-11):r,i?ve:""):e[o]=r}}return f}});var $e=class s extends ${constructor(){super(),this.M=[],this.manager=new mt(this);let t=this,e=t.constructor,o=e.N,r=e.K.o,i=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!==i&&(t.#e=t.shouldUpdate,t.shouldUpdate=i),r&&(t.#t=new Map,e.elementProperties.forEach((n,a)=>t.#t.set(a,r()))),!1}static finalizeStyles(t){let e=super.finalizeStyles(t),o=this.shadowRootOptions===Lt;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,i=r?.hasChanged??H,n={attribute:o&1&&typeof t=="string"?ht(t):!1,reflect:!!(o&2),type:o&4?Boolean:o&8?Number:void 0,state:!!(o&16),readOnly:!!(o&32),noAccessor:!!(o&64),c:!1,...r,hasChanged(a,c){let l=i(a,c);return n.c=l,l}};super.createProperty(t,n)}static getPropertyDescriptor(t,e,o){let r=this.K,i=super.getPropertyDescriptor(t,e,o);return o.d=i,{...i,get(){return r.t?.(this.#t.get(t)),i.get?.call(this)},set(n){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 "${n}"`);i.set.call(this,n??void 0),o.c&&this.#t?.get(t)?.notify(),a.T.length>0&&(I(),a?.S(t,n))}}}static{this.lumina=!0}#t;#e;#s;#r;#i;connectedCallback(){if(this.el.hasAttribute("defer-hydration"))return;let t=this.constructor.K.c?.(()=>this.requestUpdate());this.#i=t;let e=!this.manager.connectedCalled;super.connectedCallback(),e?queueMicrotask(()=>this.#l().catch(o=>{this.#r.reject(o),setTimeout(()=>{throw o})})):t&&this.requestUpdate()}#c(t){try{this.#i.clear(),this.constructor.K.r(this.#i,()=>super.update(t))}catch(e){throw this.#i.clear(),e}}disconnectedCallback(){super.disconnectedCallback(),this.#i?.destroy(),this.#i=void 0}createRenderRoot(){let t=this.el.shadowRoot,e=this.constructor,o=e.shadowRootOptions,i=t??(o===Lt?this.el:this.el.attachShadow(o));if(this.isConnected){let n=i.getRootNode();n.adoptedStyleSheets=[...n.adoptedStyleSheets,...e.elementStyles.map(a=>"styleSheet"in a?a.styleSheet:a)]}return i}async#l(){let t=this.el.G??Dt(this.el);t&&await t;let e=[];for(let r of this.M)"triggerLoad"in r?e.push(r.triggerLoad()):e.push(F(r.hostLoad,r));await Promise.all(e),await this.load?.(),this.manager.hasDestroy&&this.manager.onUpdate(r=>r.has(yt)&&this.manager.U()),this.#s(!0),this.performUpdate(),this.I.resolve(),await Promise.resolve();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.#i?this.#c(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 i=o?.bind(this)??o;this.manager.onLifecycle(()=>(t.addEventListener(e,i,r),()=>t.removeEventListener(e,i,r)))}async componentOnReady(){return await this.#r.promise,this}addController(t){this.M.push(t),!(G in t)&&this.renderRoot&&this.el.isConnected&&t.hostConnected?.()}removeController(t){this.M.splice(this.M.indexOf(t),1),t.controllerRemoved?.()}};var be=s=>{let t,e=r=>{t=new URL(r,globalThis.location?.href||void 0).href},o={...s,getAssetPath(r){let i=new URL(r,t);return i.origin!==globalThis.location?.origin?i.href:i.pathname},setAssetPath:e,customElement(r,i){i.K=o,i.L=r,customElements.get(r)||customElements.define(r,i)}};return e(s.defaultAssetPath),o};var Lr=s=>typeof s=="object"&&s!=null?ge(s):s,Ur=s=>typeof s=="object"&&s!=null?Ee(s):s;var Rt=class extends v{#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,Nt(this.#e)):Nt(t)}},Rr=E(Rt);var Mr=d;var Ir=s=>{let t=document.createElement("div");return at(s,t),t.firstElementChild};var ds=vt`:host{display:block;box-sizing:border-box;*,*:before,*:after{box-sizing:inherit}}:host([hidden]){display:none}:host(:not(arcgis-basemap-gallery-item,arcgis-layer-list-item,arcgis-print-custom-text-elements,arcgis-print-dpi-input,arcgis-print-export-button,arcgis-print-exported-link,arcgis-print-exports-panel,arcgis-print-format-select,arcgis-print-layout-advanced-options,arcgis-print-layout-panel,arcgis-print-main-panel,arcgis-print-map-only-advanced-options,arcgis-print-map-only-panel,arcgis-print-out-spatial-reference-input,arcgis-print-preview-input,arcgis-print-scale-section,arcgis-print-template-select,arcgis-print-template-selector,arcgis-labeled-switch,arcgis-measurement-content,arcgis-version-management-service-item,arcgis-version-management-version-item,arcgis-version-management-version-list,arcgis-version-management-version-properties,arcgis-video-player-action-bar,arcgis-video-player-actions-group,arcgis-video-player-controls-group,arcgis-video-player-metadata,arcgis-video-player-settings,arcgis-video-player-slider)){font-family:var(--calcite-font-family)}`,J=be({defaultAssetPath:"https://js.arcgis.com/5.0.14/map-components/",hydratedAttribute:"hydrated",commonStyles:ds}),{customElement:Br,getAssetPath:Wr,setAssetPath:Fr}=J;J.t=void 0;J.o=void 0;J.c=void 0;J.r=void 0;export{vt as a,ys as b,gs as c,vs as d,f as e,d as f,at as g,Ms as h,Is as i,x as j,K as k,oe as l,re as m,ks as n,js as o,Le as p,se as q,xs as r,Ds as s,Ls as t,He as u,ze as v,Ve as w,Be as x,Tt as y,de as z,Qs as A,Js as B,Xe as C,m as D,E,v as F,to as G,eo as H,fe as I,so as J,oo as K,Ke as L,$o as M,Nt as N,$e as O,Lr as P,Ur as Q,Mr as R,Ir as S,J as T,Br as U,Wr as V};
|
|
4
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),Ft=/'/g,qt=/"/g,Qt=/^(?:script|style|textarea|title)$/i,wt=s=>(t,...e)=>({_$litType$:s,strings:t,values:e}),ys=wt(1),gs=wt(2),vs=wt(3),f=Symbol.for("lit-noChange"),d=Symbol.for("lit-nothing"),Gt=new WeakMap,O=T.createTreeWalker(T,129);function Jt(s,t){if(!Ct(s)||!s.hasOwnProperty("raw"))throw Error("invalid template strings array");return Vt!==void 0?Vt.createHTML(t):t}var Yt=(s,t)=>{let e=s.length-1,o=[],r,i=t===2?"<svg>":t===3?"<math>":"",n=z;for(let a=0;a<e;a++){let c=s[a],l,u,h=-1,y=0;for(;y<c.length&&(n.lastIndex=y,u=n.exec(c),u!==null);)y=n.lastIndex,n===z?u[1]==="!--"?n=Bt:u[1]!==void 0?n=Wt:u[2]!==void 0?(Qt.test(u[2])&&(r=RegExp("</"+u[2],"g")),n=w):u[3]!==void 0&&(n=w):n===w?u[0]===">"?(n=r??z,h=-1):u[1]===void 0?h=-2:(h=n.lastIndex-u[2].length,l=u[1],n=u[3]===void 0?w:u[3]==='"'?qt:Ft):n===qt||n===Ft?n=w:n===Bt||n===Wt?n=z:(n=w,r=void 0);let g=n===w&&s[a+1].startsWith("/>")?" ":"";i+=n===z?c+Ne:h>=0?(o.push(l),c.slice(0,h)+_t+c.slice(h)+A+g):c+A+(h===-2?a:g)}return[Jt(s,i+(s[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),o]},W=class s{constructor({strings:t,_$litType$:e},o){let r;this.parts=[];let i=0,n=0,a=t.length-1,c=this.parts,[l,u]=Yt(t,e);if(this.el=s.createElement(l,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&&c.length<a;){if(r.nodeType===1){if(r.hasAttributes())for(let h of r.getAttributeNames())if(h.endsWith(_t)){let y=u[n++],g=r.getAttribute(h).split(A),C=/([.?@])?(.*)/.exec(y);c.push({type:1,index:i,name:C[2],strings:g,ctor:C[1]==="."?ot:C[1]==="?"?rt:C[1]==="@"?it:P}),r.removeAttribute(h)}else h.startsWith(A)&&(c.push({type:6,index:i}),r.removeAttribute(h));if(Qt.test(r.tagName)){let h=r.textContent.split(A),y=h.length-1;if(y>0){r.textContent=et?et.emptyScript:"";for(let g=0;g<y;g++)r.append(h[g],V()),O.nextNode(),c.push({type:2,index:++i});r.append(h[y],V())}}}else if(r.nodeType===8)if(r.data===At)c.push({type:2,index:i});else{let h=-1;for(;(h=r.data.indexOf(A,h+1))!==-1;)c.push({type:7,index:i}),h+=A.length-1}i++}}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,i=B(t)?void 0:t._$litDirective$;return r?.constructor!==i&&(r?._$AO?.(!1),i===void 0?r=void 0:(r=new i(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 st=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 i=O.nextNode(),n=0,a=0,c=o[0];for(;c!==void 0;){if(n===c.index){let l;c.type===2?l=new U(i,i.nextSibling,this,t):c.type===1?l=new c.ctor(i,c.name,c.strings,this,t):c.type===6&&(l=new nt(i,this,t)),this._$AV.push(l),c=o[++a]}n!==c?.index&&(i=O.nextNode(),n++)}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++}},U=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),B(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):Kt(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&&B(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=W.createElement(Jt(o.h,o.h[0]),this.options)),o);if(this._$AH?._$AD===r)this._$AH.p(e);else{let i=new st(r,this),n=i.u(this.options);i.p(e),this.T(n),this._$AH=i}}_$AC(t){let e=Gt.get(t.strings);return e===void 0&&Gt.set(t.strings,e=new W(t)),e}k(t){Ct(this._$AH)||(this._$AH=[],this._$AR());let e=this._$AH,o,r=0;for(let i of t)r===e.length?e.push(o=new s(this.O(V()),this.O(V()),this,this.options)):o=e[r],o._$AI(i),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=zt(t).nextSibling;zt(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,i){this.type=1,this._$AH=d,this._$AN=void 0,this.element=t,this.name=e,this._$AM=r,this.options=i,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 i=this.strings,n=!1;if(i===void 0)t=S(this,t,e,0),n=!B(t)||t!==this._$AH&&t!==f,n&&(this._$AH=t);else{let a=t,c,l;for(t=i[0],c=0;c<i.length-1;c++)l=S(this,a[o+c],e,c),l===f&&(l=this._$AH[c]),n||=!B(l)||l!==this._$AH[c],l===d?t=d:t!==d&&(t+=(l??"")+i[c+1]),this._$AH[c]=l}n&&!r&&this.j(t)}j(t){t===d?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},ot=class extends P{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===d?void 0:t}},rt=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,i){super(t,e,o,r,i),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,i=t!==d&&(o===d||r);r&&this.element.removeEventListener(this.name,this,o),i&&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)}},nt=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)}},Zt={M:_t,P:A,A:At,C:1,L:Yt,R:st,D:Kt,V:S,I:U,H:P,N:rt,U:it,B:ot,F:nt},xe=bt.litHtmlPolyfillSupport;xe?.(W,U),(bt.litHtmlVersions??=[]).push("3.3.2");var at=(s,t,e)=>{let o=e?.renderBefore??t,r=o._$litPart$;if(r===void 0){let i=e?.renderBefore??null;o._$litPart$=r=new U(t.insertBefore(V(),i),i,void 0,e??{})}return r._$AI(s),r};var Ot=globalThis,$=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=at(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return f}};$._$litElement$=!0,$.finalized=!0,Ot.litElementHydrateSupport?.({LitElement:$});var De=Ot.litElementPolyfillSupport;De?.({LitElement:$});(Ot.litElementVersions??=[]).push("4.2.2");var Xt=new Set,te;var ee=s=>typeof s=="string"?s:"el"in s?s.el.localName:"localName"in s?s.localName:s.declaredClass,Le=(s,t,e,o)=>{let r=ee(t);if(o?.once){let n=`${s}${r}${e}`;if(Xt.has(n))return;Xt.add(n)}let i;if(o?.detail){i={};for(let[n,a]of Object.entries(o.detail))if((typeof a=="object"||typeof a=="function")&&a!==null){let c=new WeakRef(a);Object.defineProperty(i,n,{get(){return c.deref()}})}else i[n]=a;te?.log.interceptors?.forEach(n=>n(s,r,e,i)),console[s](`[${r}]: ${e}`,i)}else te?.log.interceptors?.forEach(n=>n(s,r,e)),console[s](`[${r}]: ${e}`)},se=s=>{let t=`[${ee(s)}] `;return e=>{let o=e instanceof Error&&e.message?e:new Error(String(e));o.message=`${t}${o.message}`,setTimeout(()=>{throw e})}},xs=s=>`The property \`${s.toString()}\` is required but missing.`,Ds=s=>`The property \`${s.toString()}\` is empty but must have at least one element.`,Ls=(s,t,e,o)=>Le("warn",s,`\`${t.toString()}\` is deprecated. Use \`${e.toString()}\` instead.`,o);var p=(s,t,...e)=>{try{return s?.call(t,...e)}catch(o){console.error(o,s)}},F=async(s,t,...e)=>{try{return await s?.call(t,...e)}catch(o){console.error(o,s)}};var G=Symbol.for("controller"),Ue=s=>typeof s=="object"&&s!==null&&(G in s||"hostConnected"in s||"hostDisconnected"in s||"hostUpdate"in s||"hostUpdated"in s),Ms=s=>typeof s?.then=="function",Is=s=>s.M.length,q,x=s=>{q!==s&&(q=s,queueMicrotask(()=>q===s?q=void 0:0))},K=s=>q,N=[],oe=s=>{if(s===void 0){N=[];return}let t=N.indexOf(s);N=t===-1?[...N,s]:N.slice(0,t+1),queueMicrotask(()=>N=[])},re=()=>N,R,ks=s=>{R!==s&&(R=s,queueMicrotask(()=>R===s?R=void 0:0))},Re=()=>{let s=R;return R=void 0,s},ie=async(s,t)=>{let e=lt(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},ne=async s=>{let t=lt(s);return await t.ready,t},lt=s=>{let e=K().manager.X(s);if(e!==void 0)return e;if(Ue(s))return s;let o=Re();if(o!==void 0)return o},ct=!1,js=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})}},ae=(s,t)=>{let e=t>Me?Ie:t/ke,o=0,r=setInterval(()=>{o+=e,o>=t&&(clearInterval(r),s())},e);return r},Me=4e3,Ie=2e3,ke=4;var je=(s,t,e)=>{let o=Object.keys(s),r=o.length;M===void 0&&queueMicrotask(I),M??=new Map;let i=M.get(s);return i===void 0&&(i={callbacks:[],keyCount:r},M.set(s,i)),i.keyCount!==r&&(i.callbacks.forEach(n=>n(o)),i.callbacks=[],i.keyCount=r),i.callbacks.push(n=>{let a=l=>p(t,null,l),c=n[r];c===void 0?a(void 0):s[c]===e?a(c):a(void 0)}),e},M,I=()=>{M?.forEach(({callbacks:s},t)=>{let e=Object.keys(t);s.forEach(o=>o(e))}),M=void 0},He=(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,i)=>p(t,void 0,e===i?r:void 0)),e},ze=(s=[K(),...re()],t,e)=>{let o=Array.isArray(s)?s:[s],r=o.length+1,i=n=>{r-=1,n!==void 0&&(r=Math.min(r,0)),r===0&&t(n)};o.forEach(n=>je(n,a=>i(a===void 0?void 0:{key:a,host:n,isReactive:!1}),e));for(let n of o)if("manager"in n&&n.manager.component===n){He(n,a=>i(a===void 0?void 0:{key:a,host:n,isReactive:!0}),e);break}return e},Ve=(s="",t={},e=K())=>{let o={emit:r=>{s===""&&I();let i=new CustomEvent(s,{detail:r,cancelable:!0,bubbles:!0,composed:!0,...t});return e.el.dispatchEvent(i),i}};return s===""&&ze(void 0,r=>s=r.key,o),o},Be=Ve.bind(null,""),he;he=G;var Tt=class{constructor(t){this.#t=[],this.#e=[],this.#s=[],this.#r=[],this.#i=[],this.#c=[],this.#l=[],this.#p=[],this.#h=[],this.#d=!1,this.P=new b,this.connectedCalled=!1,this.loadedCalled=!1,this[he]=!0,this.#a=[];let e=this,o=t??K(new.target.name);e.#o=o,e.ready=e.P.promise,e.#n=le(e),e.component=o,e.#o.addController(e),e.#o.manager===void 0||(oe(e),queueMicrotask(()=>e.catchUpLifecycle()))}#t;#e;#s;#r;#i;#c;#l;#p;#h;#d;#o;catchUpLifecycle(){let{manager:t}=this.#o;t.connectedCalled&&!this.connectedCalled&&this.triggerConnected(),t.#d&&this.triggerLoad().then(()=>t.loadedCalled&&this.triggerLoaded()).catch(se(this.#o))}#n;get exports(){return this.#n}set exports(t){let e=this.#n;e!==t&&(this.#n=t,this.#a.forEach(p),this.connectedCalled&&this.O!==!1&&this.#o.requestUpdate(this.O,e)),this.P.resolve(t)}setProvisionalExports(t,e=!0){this.#n=e?le(t):t,this.#a.forEach(p)}#a;watchExports(t){let e=()=>t(this.#n);return this.#a.push(e),()=>void this.#a.splice(this.#a.indexOf(e),1)}get use(){return x(this.#o),ie}get useRef(){return x(this.#o),ne}get useRefSync(){return x(this.#o),lt}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.#i.push(t)}onUpdated(t){this.#c.push(t)}onDestroy(t){this.#l.push(t)}onLifecycle(t){this.#p.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.#h.forEach(p),t.#h=[]}async triggerLoad(){if(this.#d)return;this.#d=!0;let t=this;t.hostLoad&&await F(t.hostLoad,t),this.#s.length>0&&await Promise.allSettled(this.#s.map(F)),this.P.resolve(this.#n)}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.#i.forEach(ce,t)}triggerUpdated(t){this.hostUpdated&&p(this.hostUpdated,this,t),this.#c.forEach(ce,t)}triggerDestroy(){this.hostDestroy&&p(this.hostDestroy,this),this.#l.forEach(p)}triggerLifecycle(){this.hostLifecycle&&this.#u(()=>this.hostLifecycle()),this.#p.forEach(this.#u,this)}#u(t){x(this.#o);let e=p(t);(Array.isArray(e)?e:[e]).forEach(r=>{typeof r=="function"?this.#h.push(r):typeof r=="object"&&typeof r.remove=="function"&&this.#h.push(r.remove)})}};function ce(s){p(s,void 0,this)}var de=Tt,le=s=>{if(typeof s!="object"&&typeof s!="function"||s===null)return s;let t={get(o,r,i){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,i)}},e=new Proxy(s,t);return e};var ht=s=>s.replace(We,(t,e)=>`${e===0?"":"-"}${t.toLowerCase()}`),We=/[A-Z]+(?![a-z])|[A-Z]/gu;var Qs=s=>`\u200E${s??""}\u200E`,Fe="randomUUID"in crypto,Js=()=>{if(Fe)return crypto.randomUUID();let s=crypto.getRandomValues(new Uint16Array(8));s[3]=s[3]&4095|16384,s[4]=s[4]&16383|32768;let t=e=>s[e].toString(16).padStart(4,"0");return`${t(0)+t(1)}-${t(2)}-${t(3)}-${t(4)}-${t(5)}${t(6)}${t(7)}`};var m={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},E=s=>(...t)=>({_$litDirective$:s,values:t}),v=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}=Zt,pe=s=>s;var dt=s=>s.strings===void 0,ue=()=>document.createComment(""),to=(s,t,e)=>{let o=s._$AA.parentNode,r=t===void 0?s._$AB:t._$AA;if(e===void 0){let i=o.insertBefore(ue(),r),n=o.insertBefore(ue(),r);e=new qe(i,n,s,s.options)}else{let i=e._$AB.nextSibling,n=e._$AM,a=n!==s;if(a){let c;e._$AQ?.(s),e._$AM=s,e._$AP!==void 0&&(c=s._$AU)!==n._$AU&&e._$AP(c)}if(i!==r||a){let c=e._$AA;for(;c!==i;){let l=pe(c).nextSibling;pe(o).insertBefore(c,r),c=l}}}return e},eo=(s,t,e=s)=>(s._$AI(t,e),s),Ge={},fe=(s,t=Ge)=>s._$AH=t,so=s=>s._$AH,oo=s=>{s._$AR(),s._$AA.remove()};var Ke=E(class extends v{constructor(s){if(super(s),s.type!==m.PROPERTY&&s.type!==m.ATTRIBUTE&&s.type!==m.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!dt(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===m.PROPERTY){if(t===e[o])return f}else if(s.type===m.BOOLEAN_ATTRIBUTE){if(!!t===e.hasAttribute(o))return f}else if(s.type===m.ATTRIBUTE&&e.getAttribute(o)===t+"")return f;return fe(s),t}});var Q=(s,t)=>{let e=s._$AN;if(e===void 0)return!1;for(let o of e)o._$AO?.(t,!1),Q(o,t);return!0},pt=s=>{let t,e;do{if((t=s._$AM)===void 0)break;e=t._$AN,e.delete(s),s=t}while(e?.size===0)},me=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 Qe(s){this._$AN!==void 0?(pt(this),this._$AM=s,me(this)):this._$AM=s}function Je(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 i=e;i<o.length;i++)Q(o[i],!1),pt(o[i]);else o!=null&&(Q(o,!1),pt(o));else Q(this,s)}var Ye=s=>{s.type==m.CHILD&&(s._$AP??=Je,s._$AQ??=Qe)},ut=class extends v{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,e,o){super._$AT(t,e,o),me(this),this.isConnected=t._$AU}_$AO(t,e=!0){t!==this.isConnected&&(this.isConnected=t,t?this.reconnected?.():this.disconnected?.()),e&&(Q(this,t),pt(this))}setValue(t){if(dt(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 $o=()=>new Pt,Pt=class{},St=new WeakMap,Nt=E(class extends ut{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=St.get(t);e===void 0&&(e=new WeakMap,St.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"?St.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 Dt=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},Lt={};function Ut(){}var Xe=(s,t)=>function(o,r){if(!globalThis.customElements)return;let n=(r??o??{}).resourcesUrl;n&&s.setAssetPath(n);for(let[a,[c,l=""]]of Object.entries(t)){if(customElements.get(a))continue;let[u,h,y]=l.split(";"),g=u?u?.split(",").map(ts):void 0,C=g?.map(([L])=>L),D=class extends xt{static{this.observedAttributes=g?.map(([,L])=>L).filter(L=>L!=="")}static{this.C=C}static{this.E=h?h?.split(","):void 0}static{this.D=y?.split(",")}static{this.L=a}static{this.K=s}constructor(){!D.B&&(D.B=c(),D.F()),super()}};customElements.define(a,D)}},ft=Object.defineProperty,ts=s=>{let t=s.split(":");return t.length===1?[t[0],ht(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??[])ft(this.prototype,t,{configurable:!0,enumerable:!0,get(){return this.#e[t]},set(e){this.#e[t]=e}});for(let t of this.E??[])ft(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??[])ft(this.prototype,t,{value(...e){return this.#t[t](...e)},configurable:!0})}#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=Dt(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,i=Object.values(t).find(h=>h.L===o),n=`${o}--lazy`,a=i;for(;a&&!Object.hasOwn(a,"lumina");)a=Object.getPrototypeOf(a);os(a),!e.A&&(e.A=i,customElements.define(n,i)),i.N=this;let l=document.createElement(n);i.N=void 0,this.#t=l,this.#e=l,this.#s.forEach(h=>l.attributeChangedCallback(h,null,this.getAttribute(h))),Object.entries(r).forEach(ss,l);let u=this.isConnected;(u||this.G)&&(l.connectedCallback?.(),u||l.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,i){e.setAttribute.call(this.el,r,i)},t.removeAttribute=function(r){e.removeAttribute.call(this.el,r)},ft(t,"isConnected",{get(){return Reflect.get(e,"isConnected",this.el)}}))};var mt=class extends de{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=yt in t&&typeof t.destroy=="function",$.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 ${yt} prop.`)}this.#t!==void 0&&clearTimeout(this.#t),I();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),x(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=()=>void this.#e.destroy();this.#t=ae(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,yt="autoDestroyDisabled";var ge=E(class extends v{constructor(s){if(super(s),s.type!==m.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 ve="important",is=" !"+ve,Ee=E(class extends v{constructor(s){if(super(s),s.type!==m.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 i=typeof r=="string"&&r.endsWith(is);o.includes("-")||i?e.setProperty(o,i?r.slice(0,-11):r,i?ve:""):e[o]=r}}return f}});var $e=class s extends ${constructor(){super(),this.M=[],this.manager=new mt(this);let t=this,e=t.constructor,o=e.N,r=e.K.o,i=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!==i&&(t.#e=t.shouldUpdate,t.shouldUpdate=i),r&&(t.#t=new Map,e.elementProperties.forEach((n,a)=>t.#t.set(a,r()))),!1}static finalizeStyles(t){let e=super.finalizeStyles(t),o=this.shadowRootOptions===Lt;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,i=r?.hasChanged??H,n={attribute:o&1&&typeof t=="string"?ht(t):!1,reflect:!!(o&2),type:o&4?Boolean:o&8?Number:void 0,state:!!(o&16),readOnly:!!(o&32),noAccessor:!!(o&64),c:!1,...r,hasChanged(a,c){let l=i(a,c);return n.c=l,l}};super.createProperty(t,n)}static getPropertyDescriptor(t,e,o){let r=this.K,i=super.getPropertyDescriptor(t,e,o);return o.d=i,{...i,get(){return r.t?.(this.#t.get(t)),i.get?.call(this)},set(n){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 "${n}"`);i.set.call(this,n??void 0),o.c&&this.#t?.get(t)?.notify(),a.T.length>0&&(I(),a?.S(t,n))}}}static{this.lumina=!0}#t;#e;#s;#r;#i;connectedCallback(){if(this.el.hasAttribute("defer-hydration"))return;let t=this.constructor.K.c?.(()=>this.requestUpdate());this.#i=t;let e=!this.manager.connectedCalled;super.connectedCallback(),e?queueMicrotask(()=>this.#l().catch(o=>{this.#r.reject(o),setTimeout(()=>{throw o})})):t&&this.requestUpdate()}#c(t){try{this.#i.clear(),this.constructor.K.r(this.#i,()=>super.update(t))}catch(e){throw this.#i.clear(),e}}disconnectedCallback(){super.disconnectedCallback(),this.#i?.destroy(),this.#i=void 0}createRenderRoot(){let t=this.el.shadowRoot,e=this.constructor,o=e.shadowRootOptions,i=t??(o===Lt?this.el:this.el.attachShadow(o));if(this.isConnected){let n=i.getRootNode();n.adoptedStyleSheets=[...n.adoptedStyleSheets,...e.elementStyles.map(a=>"styleSheet"in a?a.styleSheet:a)]}return i}async#l(){let t=this.el.G??Dt(this.el);t&&await t;let e=[];for(let r of this.M)"triggerLoad"in r?e.push(r.triggerLoad()):e.push(F(r.hostLoad,r));await Promise.all(e),await this.load?.(),this.manager.hasDestroy&&this.manager.onUpdate(r=>r.has(yt)&&this.manager.U()),this.#s(!0),this.performUpdate(),this.I.resolve(),await Promise.resolve();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.#i?this.#c(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 i=o?.bind(this)??o;this.manager.onLifecycle(()=>(t.addEventListener(e,i,r),()=>t.removeEventListener(e,i,r)))}async componentOnReady(){return await this.#r.promise,this}addController(t){this.M.push(t),!(G in t)&&this.renderRoot&&this.el.isConnected&&t.hostConnected?.()}removeController(t){this.M.splice(this.M.indexOf(t),1),t.controllerRemoved?.()}};var be=s=>{let t,e=r=>{t=new URL(r,globalThis.location?.href||void 0).href},o={...s,getAssetPath(r){let i=new URL(r,t);return i.origin!==globalThis.location?.origin?i.href:i.pathname},setAssetPath:e,customElement(r,i){i.K=o,i.L=r,customElements.get(r)||customElements.define(r,i)}};return e(s.defaultAssetPath),o};var Lr=s=>typeof s=="object"&&s!=null?ge(s):s,Ur=s=>typeof s=="object"&&s!=null?Ee(s):s;var Rt=class extends v{#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,Nt(this.#e)):Nt(t)}},Rr=E(Rt);var Mr=d;var Ir=s=>{let t=document.createElement("div");return at(s,t),t.firstElementChild};var ds=vt`:host{display:block;box-sizing:border-box;*,*:before,*:after{box-sizing:inherit}}:host([hidden]){display:none}:host(:not(arcgis-basemap-gallery-item,arcgis-layer-list-item,arcgis-print-custom-text-elements,arcgis-print-dpi-input,arcgis-print-export-button,arcgis-print-exported-link,arcgis-print-exports-panel,arcgis-print-format-select,arcgis-print-layout-advanced-options,arcgis-print-layout-panel,arcgis-print-main-panel,arcgis-print-map-only-advanced-options,arcgis-print-map-only-panel,arcgis-print-out-spatial-reference-input,arcgis-print-preview-input,arcgis-print-scale-section,arcgis-print-template-select,arcgis-print-template-selector,arcgis-labeled-switch,arcgis-measurement-content,arcgis-version-management-service-item,arcgis-version-management-version-item,arcgis-version-management-version-list,arcgis-version-management-version-properties,arcgis-video-player-action-bar,arcgis-video-player-actions-group,arcgis-video-player-controls-group,arcgis-video-player-metadata,arcgis-video-player-settings,arcgis-video-player-slider)){font-family:var(--calcite-font-family)}`,J=be({defaultAssetPath:"https://js.arcgis.com/5.0.15/map-components/",hydratedAttribute:"hydrated",commonStyles:ds}),{customElement:Br,getAssetPath:Wr,setAssetPath:Fr}=J;J.t=void 0;J.o=void 0;J.c=void 0;J.r=void 0;export{vt as a,ys as b,gs as c,vs as d,f as e,d as f,at as g,Ms as h,Is as i,x as j,K as k,oe as l,re as m,ks as n,js as o,Le as p,se as q,xs as r,Ds as s,Ls as t,He as u,ze as v,Ve as w,Be as x,Tt as y,de as z,Qs as A,Js as B,Xe as C,m as D,E,v as F,to as G,eo as H,fe as I,so as J,oo as K,Ke as L,$o as M,Nt as N,$e as O,Lr as P,Ur as Q,Mr as R,Ir as S,J as T,Br as U,Wr as V};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
|
|
2
|
-
import{a as W}from"./WKKGT6GI.js";import e from"./FWKUXDNJ.js";import{a as b}from"./WCESLPME.js";import d from"./DXIOCBFP.js";import"./E7SYUWIQ.js";import{a as x}from"./QE6NJBXP.js";import"./QNVR7NGK.js";import{a as S}from"./5P4MDYFO.js";import"./DHVEHATY.js";import c from"./JLTOP6ZB.js";import"./TQV3645A.js";import"./PRHHD2OW.js";import a from"./KTDXN3YM.js";import"./ZNBKMZP7.js";import{O as C,U as j,a as D,b as h,x as w}from"./TWXRM6Z7.js";import"./ALDX5YZO.js";export default $arcgis.t(([p,{watch:J},H,{property:o,subclass:N},{signal:B},{isAbortError:K},Q,,{a:A},,{a:U,c:k}])=>{var Y=D`.esri-widget__heading{color:var(--calcite-color-text-2);margin:0 0 .5rem;font-weight:var(--calcite-font-weight-semibold)}h1.esri-widget__heading{font-size:var(--calcite-font-size-xl)}h2.esri-widget__heading{font-size:var(--calcite-font-size-md)}h3.esri-widget__heading,h4.esri-widget__heading,h5.esri-widget__heading,h6.esri-widget__heading{font-size:var(--calcite-font-size)}.esri-widget{box-sizing:border-box;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);font-size:var(--calcite-font-size);line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget *,.esri-widget :before,.esri-widget :after{box-sizing:inherit}.esri-widget.esri-widget--disabled>*{opacity:.4;pointer-events:none}.esri-widget.esri-widget--compact{--esri-widget-padding-y: 0;--esri-widget-padding-x: 0}.esri-widget__anchor{color:var(--calcite-color-text-2)}.esri-widget__anchor:hover{color:var(--calcite-color-text-3)}.esri-widget__anchor:hover,.esri-widget__anchor:focus{text-decoration:underline}.esri-widget__anchor--disabled{opacity:.4;pointer-events:none}.esri-widget__header{background-color:var(--calcite-color-foreground-1);flex:1 0 100%;justify-content:space-between;align-items:center;width:100%;min-height:48px;padding:12px 0 12px 15px;display:flex}.esri-widget__heading{word-break:break-word}.esri-widget__header .esri-widget__heading{width:calc(100% - 48px);text-align:initial;color:var(--calcite-color-text-1);align-items:center;margin:0;padding:0;display:flex}.esri-widget__header-button{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);border:none;flex:0 0 48px;justify-content:center;align-self:stretch;align-items:center;width:48px;padding:0;display:flex}.esri-widget__footer{background-color:var(--calcite-color-foreground-1);justify-content:center;align-items:center;width:100%;min-height:48px;display:flex}.esri-widget__footer-pagination{color:var(--calcite-color-text-2);justify-content:space-between;align-items:center;display:flex}.esri-widget__footer-pagination-previous-button,.esri-widget__footer-pagination-next-button{cursor:pointer;background-color:var(--calcite-color-foreground-1);border:0;margin:0 7px;padding:12px 15px;transition:background-color .125s ease-in-out}.esri-widget__footer-pagination-previous-button:hover,.esri-widget__footer-pagination-previous-button:focus,.esri-widget__footer-pagination-next-button:hover,.esri-widget__footer-pagination-next-button:focus{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1)}.esri-menu{visibility:hidden;z-index:1;background-clip:padding;background-color:var(--calcite-color-foreground-1);background-clip:padding-box;width:100%;max-height:0;margin:2px 0 0;padding:0;font-size:var(--calcite-font-size);line-height:var(--calcite-spacing-xl);position:absolute;top:100%;left:0;overflow:hidden;box-shadow:0 1px 2px #0000004d}.esri-menu .esri-menu__header{color:var(--calcite-color-text-inverse);background-color:var(--calcite-color-inverse);padding:6px 12px}.esri-menu__list{margin:0;padding:0;list-style:none}.esri-menu__list-item{cursor:pointer;border-top:1px solid #adadad4d;border-left:3px solid #0000;padding:.8em 1em}.esri-menu__list-item [class^=esri-icon-],.esri-menu__list-item [class*=" esri-icon-"]{padding-right:2.8px}.esri-menu__list-item:first-child{border-top:none}.esri-menu__list-item--focus,.esri-menu__list-item:hover,.esri-menu__list-item:focus{background-color:var(--calcite-color-foreground-1)}.esri-menu__list-item:active{background-color:var(--calcite-color-foreground-current)}.esri-menu__list-item--active,.esri-menu__list-item--active:hover,.esri-menu__list-item--active:focus{background-color:var(--calcite-color-foreground-1);border-left-color:var(--calcite-color-brand)}.esri-widget__table{border-collapse:collapse;color:var(--calcite-color-text-1);border:none;width:100%;line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget__table tr:nth-child(odd){background-color:var(--calcite-color-transparent)}.esri-widget__table tr:nth-child(2n){background-color:var(--calcite-color-transparent-press)}.esri-widget__table tr a{color:var(--calcite-color-text-2)}.esri-widget__table tr a:hover,.esri-widget__table tr a:focus{color:var(--calcite-color-text-1)}.esri-widget__table tr td,.esri-widget__table tr th{vertical-align:top;word-break:break-word;padding:.5em .7em;font-size:var(--calcite-font-size-sm);font-weight:var(--calcite-font-weight-regular)}.esri-widget__table tr th{text-align:left;border-right:3px solid #0000000d;width:50%}.esri-widget__table tr td{width:50%}.esri-input{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1);border:1px solid #959595;font-size:var(--calcite-font-size)}.esri-input::-ms-clear{display:none}.esri-input::placeholder{opacity:1;color:var(--calcite-color-text-2)}.esri-input:placeholder-shown{text-overflow:ellipsis}.esri-input[type=text],.esri-input[type=password],.esri-input[type=number]{height:32px;padding:0 .5em}calcite-combobox.esri-input{border:none}.esri-widget__content--empty{text-align:center;color:var(--calcite-color-border-input);flex-flow:column wrap;align-items:center;padding:18px 22px;display:flex}.esri-widget__content--empty h1.esri-widget__heading,.esri-widget__content--empty h2.esri-widget__heading,.esri-widget__content--empty h3.esri-widget__heading,.esri-widget__content--empty h4.esri-widget__heading,.esri-widget__content--empty h5.esri-widget__heading{font-weight:var(--calcite-font-weight-regular)}.esri-widget__content-illustration--empty{width:128px;padding:1rem 0}.esri-widget__content-icon--empty{width:32px;padding:.5rem 0}.esri-select{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background:var(--calcite-color-foreground-1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-8 -8 32 32' width='32' height='32'%3E%3Cpath d='M8 11.207l-4-4V5.793l4 4 4-4v1.414z' fill='%23adadad' fillrule='nonzero'/%3E%3C/svg%3E") 100% no-repeat;border:1px solid #959595;border-radius:0;width:100%;height:32px;margin:0;padding:0 .5em;font-family:inherit;font-size:.85em;display:block}.esri-select[disabled]{cursor:auto}.esri-select::-ms-expand{display:none}.esri-disabled a,.esri-disabled [role=menu],.esri-disabled [role=checkbox],.esri-disabled [class^=esri-icon-],.esri-disabled [class*=" esri-icon-"]{color:var(--calcite-color-text-3)}.keynav-mode .esri-widget:focus,.keynav-mode .esri-widget :focus{z-index:1;outline-offset:2px;outline:2px solid #adadad}.esri-widget__loader-animation{border:.15em solid #adadad4d;border-top-color:var(--calcite-color-border-input);border-radius:100%;width:1em;height:1em;font-size:var(--calcite-font-size-md);animation:1.25s linear infinite esri-rotate;display:block;transform:translateZ(0)}:dir(rtl) .esri-widget__table th{text-align:right;border-left:3px solid #0000000d;border-right:none}:dir(rtl) .esri-select{background-position:0}:dir(rtl) .esri-menu__list-item{border-left:none;border-right:3px solid #0000}:dir(rtl) .esri-menu__list-item [class^=esri-icon-],:dir(rtl) .esri-menu__list-item [class*=" esri-icon-"]{padding-left:2px;padding-right:0}:dir(rtl) .esri-menu__list-item--active{border-right-color:var(--calcite-color-brand)}.esri-icon-font-fallback-text{clip:rect(0 0 0 0);width:1px;height:1px;position:absolute;overflow:hidden}.esri-rotating{animation:1.25s linear infinite esri-rotate;transform:translateZ(0)}.esri-clearfix:before,.esri-clearfix:after{content:" ";display:table}.esri-clearfix:after{clear:both}.esri-interactive{cursor:pointer}.esri-hidden{display:none!important}.esri-invisible{visibility:hidden!important}.esri-offscreen{position:absolute;top:-999em;left:-999em}.esri-match-height{flex-direction:column;flex:auto;display:flex;overflow:hidden}.esri-widget--panel{min-width:300px;min-height:32px;padding:var(--arcgis-internal-padding);transition:max-height .25s ease-in-out;overflow-y:auto}:host{transition:max-height .25s ease-in-out;overflow-y:auto}.root{position:relative;display:flex;flex-direction:column;gap:var(--calcite-spacing-xxxl)}.esri-widget__heading{font-weight:var(--calcite-font-weight-normal)}calcite-scrim{--calcite-scrim-background: var(--calcite-color-foreground-1)}.disabled{color:var(--calcite-color-status-danger)}.esri-widget--panel{min-width:unset}`,T="__BUILDING_EXPLORER_FILTER__";function ee(){return`${crypto.randomUUID()}${T}`}function z(t){let e=typeof t=="string"?t:t.id;return!!e&&e.includes(T)}function Z(t,e){for(let i of t)for(let s of i.filters){if(!z(s))continue;let r=e(s);if(r!=null)return r}return null}function te(t,e){for(let i of t){let s=i.filters.filter(l=>!z(l));e!=null&&s.push(e),ie(i.filters,s)||(i.filters=s);let r=i.filters.find(l=>z(l));i.activeFilterId=r!=null?r.id:null}}function ie(t,e){let i=e.length;if(t?.length!==i)return!1;for(let s=0;s<i;++s){let r=e.at(s).toJSON(),l=t.at(s).toJSON();if(r.id="",l.id="",JSON.stringify(r)!==JSON.stringify(l))return!1}return!0}function re(t){let e=G(t);return e?{filterExpression:e,filterMode:{type:"x-ray"}}:null}function se(t){let e=G(t);return e?{filterExpression:e,filterMode:{type:"solid"}}:null}function G(t){return t.filter(e=>!!e).map(e=>`(${e})`).join(" AND ")}function L(t){let e={fieldValueMap:new Map,allowedValues:[]};for(let i of t){let s=i.fieldValueMap,r=e.fieldValueMap;s.forEach((l,a)=>{r.has(a)||(r.set(a,l),e.allowedValues.push(a))})}return e.allowedValues.sort((i,s)=>i-s),e}function O(t,e){return e.allowedValues.length>0?le(t,e.allowedValues):null}function le(t,e){if(e.length===0)return t;if(t===1/0)return e[e.length-1];if(t===-1/0)return e[0];let i=e[0],s=Math.abs(i-t);for(let r of e){let l=Math.abs(r-t);l<s&&(i=r,s=l)}return i}var ae=Object.defineProperty,oe=Object.getOwnPropertyDescriptor,X=t=>{throw TypeError(t)},d=(t,e,i,s)=>{for(var r=s>1?void 0:s?oe(e,i):e,l=t.length-1,a;l>=0;l--)(a=t[l])&&(r=(s?a(e,i,r):a(r))||r);return s&&r&&ae(e,i,r),r},ne=(t,e,i)=>e.has(t)||X("Cannot "+i),c=(t,e,i)=>(ne(t,e,"read from private field"),i?i.call(t):e.get(t)),V=(t,e,i)=>e.has(t)?X("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,i),E,$,v,_,n=class extends H{constructor(t){super(t),V(this,E,B(!0)),V(this,$,B(void 0)),V(this,v,B(null)),V(this,_,new p),this._state="disabled",this._domainInfo=L([]),this._loadLayers=U(),this.layers=new p}initialize(){this.addHandles(this.layers.on("change",()=>void this._onLayersChange())),this._onLayersChange()}destroy(){this._state="disabled"}get disabled(){return this.allowedValues.length===0||c(this,E).value}set disabled(t){c(this,E).value=t}get value(){return(this.state==="ready"?c(this,$).value:this._valueBeforeReady)??0}set value(t){if(this.state!=="ready"){this._valueBeforeReady=t;return}if(t===this.value)return;let e=O(t,this);e!=null&&(c(this,$).value=e)}get min(){return this.allowedValues.length===0?null:Math.min(...this.allowedValues)}get max(){return this.allowedValues.length===0?null:Math.max(...this.allowedValues)}get allowedValues(){return c(this,v).value??this._domainInfo.allowedValues}set allowedValues(t){t==null?c(this,v).value=null:c(this,v).value=t;let e=O(this.value,this);e!=null&&(this.value=e)}get hasNext(){if(this.disabled)return!0;let t=this._valueIndex;return t>=0&&t<this.allowedValues.length-1}get hasPrevious(){return this.disabled?!0:this._valueIndex>0}get layers(){return c(this,_)}set layers(t){c(this,_).removeAll(),c(this,_).addMany(t)}get state(){return this._state}set state(t){this._state=t}get filterExpressions(){return{solid:null,xRay:null}}get _valueIndex(){return this.allowedValues.indexOf(this.value)}select(t){if(this.state!=="ready"){this._valueBeforeReady=t;return}O(t,this)!=null&&(this.disabled=!1,this.value=t)}clear(){if(this.state!=="ready"){this._valueBeforeReady=void 0;return}this.disabled=!0}next(){let{state:t,allowedValues:e,disabled:i,hasNext:s,_valueIndex:r}=this;if(t!=="ready"&&this._valueBeforeReady!=null){this._valueBeforeReady++;return}if(e.length!==0){if(i){this.disabled=!1,this.value=e[0];return}s&&(this.value=e[r+1])}}previous(){let{state:t,allowedValues:e,disabled:i,hasPrevious:s,_valueIndex:r}=this;if(t!=="ready"&&this._valueBeforeReady!=null){this._valueBeforeReady++;return}if(e.length!==0){if(i){this.disabled=!1,this.value=e[e.length-1];return}s&&(this.value=e[r-1])}}getValueLabel(t){return this.layers.length===0?null:this._domainInfo.fieldValueMap.get(t)??null}async _onLayersChange(){if(this._state="loading",this._domainInfo=L([]),this.layers.length!==0)try{await this._loadLayers(this.layers),this.state="ready",this._setup(),this.changeEmitter?.()}catch(t){K(t)||(this._state="failed")}}};E=new WeakMap;$=new WeakMap;v=new WeakMap;_=new WeakMap;d([o()],n.prototype,"changeEmitter",2);d([o()],n.prototype,"disabled",1);d([o()],n.prototype,"value",1);d([o({readOnly:!0})],n.prototype,"min",1);d([o({readOnly:!0})],n.prototype,"max",1);d([o()],n.prototype,"allowedValues",1);d([o({readOnly:!0})],n.prototype,"hasNext",1);d([o({readOnly:!0})],n.prototype,"hasPrevious",1);d([o({type:p})],n.prototype,"layers",1);d([o()],n.prototype,"_state",2);d([o()],n.prototype,"state",1);d([o({})],n.prototype,"_valueBeforeReady",2);d([o({readOnly:!0})],n.prototype,"_valueIndex",1);d([o()],n.prototype,"_domainInfo",2);n=d([N("esri.components.BuildingExplorer.BuildingNumericFilterViewModel")],n);var de=Object.defineProperty,ce=Object.getOwnPropertyDescriptor,q=t=>{throw TypeError(t)},R=(t,e,i,s)=>{for(var r=s>1?void 0:s?ce(e,i):e,l=t.length-1,a;l>=0;l--)(a=t[l])&&(r=(s?a(e,i,r):a(r))||r);return s&&r&&de(e,i,r),r},he=(t,e,i)=>e.has(t)||q("Cannot "+i),ue=(t,e,i)=>(he(t,e,"read from private field"),i?i.call(t):e.get(t)),pe=(t,e,i)=>e.has(t)?q("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,i),I,ge="bldglevel",f=class extends n{constructor(t){super(t),pe(this,I,e=>{let i=new RegExp(`${this._levelFieldName}\\s*=\\s*(\\d+)`,"giu"),s=new RegExp(`${this._levelFieldName}\\s*<\\s*(\\d+)`,"giu");for(let{filterMode:r,filterExpression:l}of e.filterBlocks??[]){if(l==null)continue;let a=null;if(r?.type==="solid"?a=i.exec(l):r?.type==="x-ray"&&(a=s.exec(l)),a)return Number.parseInt(a[1],10)}return null})}get filterExpressions(){return this.disabled||!this._levelFieldName?{solid:null,xRay:null}:{xRay:`${this._levelFieldName} < ${this.value}`,solid:`${this._levelFieldName} = ${this.value}`}}get _firstValue(){let t=this.allowedValues;return t.length>0?t[0]:0}_setup(){let t=[];for(let s of this.layers){let r=k(s,ge);r!=null&&(this._levelFieldName=r.fieldName,t.push(r))}this._domainInfo=L(t);let e=this._valueBeforeReady;this._valueBeforeReady=void 0;let i=e??Z(this.layers,ue(this,I));i!=null?this.select(i):(this.disabled=!0,this.value=this._firstValue)}};I=new WeakMap;R([o()],f.prototype,"filterExpressions",1);R([o()],f.prototype,"_levelFieldName",2);R([o()],f.prototype,"_firstValue",1);f=R([N("esri.components.BuildingExplorer.BuildingLevel")],f);var fe=Object.defineProperty,me=Object.getOwnPropertyDescriptor,y=(t,e,i,s)=>{for(var r=s>1?void 0:s?me(e,i):e,l=t.length-1,a;l>=0;l--)(a=t[l])&&(r=(s?a(e,i,r):a(r))||r);return s&&r&&fe(e,i,r),r},ve="demolishedphase",_e="createdphase",g=class extends n{constructor(t){super(t),this._parseValueFromFilter=e=>{let i=this._createdPhaseFieldName,s=new RegExp(`${i}\\s*<=\\s*(\\d+)\\s*OR\\s*${i}\\s*IS\\s*NULL`,"giu"),r=this._demolishedPhaseFieldName,l=new RegExp(`${r}\\s*>\\s*(\\d+)\\s*OR\\s*${r}\\s*IS\\s*NULL`,"giu");for(let{filterExpression:a}of e.filterBlocks??[]){let M=a?s.exec(a)??l.exec(a):null;if(M)return Number.parseInt(M[1],10)}return null}}get filterExpressions(){if(this.disabled)return{solid:null,xRay:null};let t=[],e=this._createdPhaseFieldName;e&&t.push(`(${e} <= ${this.value} OR ${e} IS NULL)`);let i=this._demolishedPhaseFieldName;i&&t.push(`(${i} > ${this.value} OR ${i} IS NULL)`);let s=t.join(" AND ");return{solid:s,xRay:s}}get _lastValue(){let t=this.allowedValues;return t.length>0?t[t.length-1]:0}_setup(){let t=[];for(let i of this.layers){let s=k(i,_e);s!=null&&(this._createdPhaseFieldName=s.fieldName,t.push(s));let r=k(i,ve);r!=null&&(this._demolishedPhaseFieldName=r.fieldName,t.push(r))}this._domainInfo=L(t);let e=this._valueBeforeReady;if(this._valueBeforeReady=void 0,this.allowedValues.length>0){let i=e??Z(this.layers,this._parseValueFromFilter);this.select(i??this._lastValue)}else this.clear()}};y([o()],g.prototype,"filterExpressions",1);y([o()],g.prototype,"_createdPhaseFieldName",2);y([o()],g.prototype,"_demolishedPhaseFieldName",2);y([o()],g.prototype,"_lastValue",1);g=y([N("esri.components.BuildingExplorer.BuildingPhase")],g);var ye=Object.defineProperty,we=Object.getOwnPropertyDescriptor,m=(t,e,i,s)=>{for(var r=s>1?void 0:s?we(e,i):e,l=t.length-1,a;l>=0;l--)(a=t[l])&&(r=(s?a(e,i,r):a(r))||r);return s&&r&&ye(e,i,r),r},u=class extends H{constructor(){super(...arguments),this.level=new f,this.phase=new g}get layers(){return this._layers}set layers(t){this._layers=t,this.level.layers=t??new p,this.phase.layers=t??new p}get filter(){let t=this.level.filterExpressions,e=this.phase.filterExpressions,i=[],s=se([t.solid,e.solid]);s!=null&&i.push(s);let r=re([t.xRay,e.xRay]);return r!=null&&i.push(r),i.length===0?null:new Q({id:ee(),name:"Building Explorer Filter",filterBlocks:i})}};m([o()],u.prototype,"_layers",2);m([o()],u.prototype,"layers",1);m([o()],u.prototype,"level",2);m([o()],u.prototype,"phase",2);m([o({readOnly:!0})],u.prototype,"filter",1);u=m([N()],u);var F=class extends C{constructor(){super(...arguments),this.messages=S({blocking:!0}),this.#i=new p,this.#r=new u,this.view=A(this),this.autoDestroyDisabled=!1,this.headingLevel=3,this.hideDisciplines=!1,this.hideLevels=!1,this.hidePhases=!1,this.icon="organization",this.arcgisBuildingLevelChange=w({bubbles:!0,composed:!0}),this.arcgisBuildingPhaseChange=w({bubbles:!0,composed:!0}),this.arcgisReady=w()}static{this.properties={view:0,autoDestroyDisabled:5,headingLevel:9,hideDisciplines:5,hideLevels:5,hidePhases:5,icon:1,label:1,layers:0,level:9,phase:9,levels:0,phases:0,levelDisabled:32,phaseDisabled:32,referenceElement:1}}static{this.styles=Y}#i;#r;get#e(){return this.#r.level}get#t(){return this.#r.phase}get minLevel(){return this.#e.min}get maxLevel(){return this.#e.max}get minPhase(){return this.#t.min}get maxPhase(){return this.#t.max}get supported(){return this.view?.type==="3d"}get layers(){return this.#i.toArray()}set layers(e){this.#i.removeAll(),this.#i.addMany(e)}get level(){return this.#e.value}set level(e){e==null?this.#e.clear():this.#e.value=e}get phase(){return this.#t.value}set phase(e){e==null?this.#t.clear():this.#t.value=e}get levels(){return this.#e.allowedValues}set levels(e){e==null?this.#e.allowedValues=null:this.#e.allowedValues=e}get phases(){return this.#t.allowedValues}set phases(e){e==null?this.#t.allowedValues=null:this.#t.allowedValues=e}get levelDisabled(){return this.#e.disabled}get phaseDisabled(){return this.#t.disabled}async destroy(){await this.manager.destroy()}loaded(){this.#e.changeEmitter=()=>this.arcgisBuildingLevelChange.emit(),this.#t.changeEmitter=()=>this.arcgisBuildingPhaseChange.emit(),this.manager.onLifecycle(()=>[J(()=>({layers:this.#i.toArray(),filter:this.#r.filter,levelState:this.#e.state,phaseState:this.#t.state}),({layers:e,filter:i,levelState:s,phaseState:r})=>{s!=="ready"||r!=="ready"||te(e,i)},{initial:!0}),J(()=>this.layers,e=>{this.#r.layers=new p(e)},{initial:!0})])}render(){let e=this.messages;if(!this.supported)return P({label:e.componentLabel,children:h`<p class="disabled">${e.unsupported}</p>`});if(this.layers.length===0)return P({label:e.componentLabel,children:h`<p class="disabled">${e.noData}</p>`});let i=this.hideLevels||this.#e.allowedValues.length===0,s=this.hidePhases||this.#t.allowedValues.length===0,r=this.#e.state!=="ready"||this.#t.state!=="ready";return P({label:e.componentLabel,loading:r,children:h`${b({hidden:i,children:h`<div>${x({level:this.headingLevel,children:this.messages.level.title})}<arcgis-building-level-picker .messages=${e.level} .level=${this.#e}></arcgis-building-level-picker></div>`})}${b({hidden:s,children:h`<div>${x({level:this.headingLevel,children:this.messages.phase.title})}<arcgis-building-phase-picker .messages=${e.phase} .phase=${this.#t}></arcgis-building-phase-picker></div>`})}${b({hidden:this.hideDisciplines,children:h`<div>${x({level:this.headingLevel,children:this.messages.disciplines.title})}<arcgis-building-discipline-tree .layers=${this.layers} .messages=${this.messages.disciplines}></arcgis-building-discipline-tree></div>`})}`})}};function P(t){return W({class:"root",hideHeader:!0,label:t.label,children:h`${t.children}${t.loading?h`<calcite-scrim .loading=${t.loading}></calcite-scrim>`:null}`})}j("arcgis-building-explorer",F);return F},"core/Collection","core/reactiveUtils","core/Accessor","core/accessorSupport/decorators","applications/Components/reactiveUtils","core/promiseUtils","layers/support/BuildingFilter",a,c,d,e)
|
|
2
|
+
import{a as W}from"./OAQ6FP35.js";import e from"./FWKUXDNJ.js";import{a as b}from"./WCESLPME.js";import d from"./DXIOCBFP.js";import"./E7SYUWIQ.js";import{a as x}from"./7FXALWBY.js";import"./ALDQGQMC.js";import{a as S}from"./NX5QB7SK.js";import"./DHVEHATY.js";import c from"./R6E7ZKNJ.js";import"./232V6BEJ.js";import"./AKHHNTS3.js";import a from"./KTDXN3YM.js";import"./ZNBKMZP7.js";import{O as C,U as j,a as D,b as h,x as w}from"./QRWBSDOD.js";import"./ALDX5YZO.js";export default $arcgis.t(([p,{watch:J},H,{property:o,subclass:N},{signal:B},{isAbortError:K},Q,,{a:A},,{a:U,c:k}])=>{var Y=D`.esri-widget__heading{color:var(--calcite-color-text-2);margin:0 0 .5rem;font-weight:var(--calcite-font-weight-semibold)}h1.esri-widget__heading{font-size:var(--calcite-font-size-xl)}h2.esri-widget__heading{font-size:var(--calcite-font-size-md)}h3.esri-widget__heading,h4.esri-widget__heading,h5.esri-widget__heading,h6.esri-widget__heading{font-size:var(--calcite-font-size)}.esri-widget{box-sizing:border-box;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);font-size:var(--calcite-font-size);line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget *,.esri-widget :before,.esri-widget :after{box-sizing:inherit}.esri-widget.esri-widget--disabled>*{opacity:.4;pointer-events:none}.esri-widget.esri-widget--compact{--esri-widget-padding-y: 0;--esri-widget-padding-x: 0}.esri-widget__anchor{color:var(--calcite-color-text-2)}.esri-widget__anchor:hover{color:var(--calcite-color-text-3)}.esri-widget__anchor:hover,.esri-widget__anchor:focus{text-decoration:underline}.esri-widget__anchor--disabled{opacity:.4;pointer-events:none}.esri-widget__header{background-color:var(--calcite-color-foreground-1);flex:1 0 100%;justify-content:space-between;align-items:center;width:100%;min-height:48px;padding:12px 0 12px 15px;display:flex}.esri-widget__heading{word-break:break-word}.esri-widget__header .esri-widget__heading{width:calc(100% - 48px);text-align:initial;color:var(--calcite-color-text-1);align-items:center;margin:0;padding:0;display:flex}.esri-widget__header-button{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);border:none;flex:0 0 48px;justify-content:center;align-self:stretch;align-items:center;width:48px;padding:0;display:flex}.esri-widget__footer{background-color:var(--calcite-color-foreground-1);justify-content:center;align-items:center;width:100%;min-height:48px;display:flex}.esri-widget__footer-pagination{color:var(--calcite-color-text-2);justify-content:space-between;align-items:center;display:flex}.esri-widget__footer-pagination-previous-button,.esri-widget__footer-pagination-next-button{cursor:pointer;background-color:var(--calcite-color-foreground-1);border:0;margin:0 7px;padding:12px 15px;transition:background-color .125s ease-in-out}.esri-widget__footer-pagination-previous-button:hover,.esri-widget__footer-pagination-previous-button:focus,.esri-widget__footer-pagination-next-button:hover,.esri-widget__footer-pagination-next-button:focus{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1)}.esri-menu{visibility:hidden;z-index:1;background-clip:padding;background-color:var(--calcite-color-foreground-1);background-clip:padding-box;width:100%;max-height:0;margin:2px 0 0;padding:0;font-size:var(--calcite-font-size);line-height:var(--calcite-spacing-xl);position:absolute;top:100%;left:0;overflow:hidden;box-shadow:0 1px 2px #0000004d}.esri-menu .esri-menu__header{color:var(--calcite-color-text-inverse);background-color:var(--calcite-color-inverse);padding:6px 12px}.esri-menu__list{margin:0;padding:0;list-style:none}.esri-menu__list-item{cursor:pointer;border-top:1px solid #adadad4d;border-left:3px solid #0000;padding:.8em 1em}.esri-menu__list-item [class^=esri-icon-],.esri-menu__list-item [class*=" esri-icon-"]{padding-right:2.8px}.esri-menu__list-item:first-child{border-top:none}.esri-menu__list-item--focus,.esri-menu__list-item:hover,.esri-menu__list-item:focus{background-color:var(--calcite-color-foreground-1)}.esri-menu__list-item:active{background-color:var(--calcite-color-foreground-current)}.esri-menu__list-item--active,.esri-menu__list-item--active:hover,.esri-menu__list-item--active:focus{background-color:var(--calcite-color-foreground-1);border-left-color:var(--calcite-color-brand)}.esri-widget__table{border-collapse:collapse;color:var(--calcite-color-text-1);border:none;width:100%;line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget__table tr:nth-child(odd){background-color:var(--calcite-color-transparent)}.esri-widget__table tr:nth-child(2n){background-color:var(--calcite-color-transparent-press)}.esri-widget__table tr a{color:var(--calcite-color-text-2)}.esri-widget__table tr a:hover,.esri-widget__table tr a:focus{color:var(--calcite-color-text-1)}.esri-widget__table tr td,.esri-widget__table tr th{vertical-align:top;word-break:break-word;padding:.5em .7em;font-size:var(--calcite-font-size-sm);font-weight:var(--calcite-font-weight-regular)}.esri-widget__table tr th{text-align:left;border-right:3px solid #0000000d;width:50%}.esri-widget__table tr td{width:50%}.esri-input{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1);border:1px solid #959595;font-size:var(--calcite-font-size)}.esri-input::-ms-clear{display:none}.esri-input::placeholder{opacity:1;color:var(--calcite-color-text-2)}.esri-input:placeholder-shown{text-overflow:ellipsis}.esri-input[type=text],.esri-input[type=password],.esri-input[type=number]{height:32px;padding:0 .5em}calcite-combobox.esri-input{border:none}.esri-widget__content--empty{text-align:center;color:var(--calcite-color-border-input);flex-flow:column wrap;align-items:center;padding:18px 22px;display:flex}.esri-widget__content--empty h1.esri-widget__heading,.esri-widget__content--empty h2.esri-widget__heading,.esri-widget__content--empty h3.esri-widget__heading,.esri-widget__content--empty h4.esri-widget__heading,.esri-widget__content--empty h5.esri-widget__heading{font-weight:var(--calcite-font-weight-regular)}.esri-widget__content-illustration--empty{width:128px;padding:1rem 0}.esri-widget__content-icon--empty{width:32px;padding:.5rem 0}.esri-select{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background:var(--calcite-color-foreground-1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-8 -8 32 32' width='32' height='32'%3E%3Cpath d='M8 11.207l-4-4V5.793l4 4 4-4v1.414z' fill='%23adadad' fillrule='nonzero'/%3E%3C/svg%3E") 100% no-repeat;border:1px solid #959595;border-radius:0;width:100%;height:32px;margin:0;padding:0 .5em;font-family:inherit;font-size:.85em;display:block}.esri-select[disabled]{cursor:auto}.esri-select::-ms-expand{display:none}.esri-disabled a,.esri-disabled [role=menu],.esri-disabled [role=checkbox],.esri-disabled [class^=esri-icon-],.esri-disabled [class*=" esri-icon-"]{color:var(--calcite-color-text-3)}.keynav-mode .esri-widget:focus,.keynav-mode .esri-widget :focus{z-index:1;outline-offset:2px;outline:2px solid #adadad}.esri-widget__loader-animation{border:.15em solid #adadad4d;border-top-color:var(--calcite-color-border-input);border-radius:100%;width:1em;height:1em;font-size:var(--calcite-font-size-md);animation:1.25s linear infinite esri-rotate;display:block;transform:translateZ(0)}:dir(rtl) .esri-widget__table th{text-align:right;border-left:3px solid #0000000d;border-right:none}:dir(rtl) .esri-select{background-position:0}:dir(rtl) .esri-menu__list-item{border-left:none;border-right:3px solid #0000}:dir(rtl) .esri-menu__list-item [class^=esri-icon-],:dir(rtl) .esri-menu__list-item [class*=" esri-icon-"]{padding-left:2px;padding-right:0}:dir(rtl) .esri-menu__list-item--active{border-right-color:var(--calcite-color-brand)}.esri-icon-font-fallback-text{clip:rect(0 0 0 0);width:1px;height:1px;position:absolute;overflow:hidden}.esri-rotating{animation:1.25s linear infinite esri-rotate;transform:translateZ(0)}.esri-clearfix:before,.esri-clearfix:after{content:" ";display:table}.esri-clearfix:after{clear:both}.esri-interactive{cursor:pointer}.esri-hidden{display:none!important}.esri-invisible{visibility:hidden!important}.esri-offscreen{position:absolute;top:-999em;left:-999em}.esri-match-height{flex-direction:column;flex:auto;display:flex;overflow:hidden}.esri-widget--panel{min-width:300px;min-height:32px;padding:var(--arcgis-internal-padding);transition:max-height .25s ease-in-out;overflow-y:auto}:host{transition:max-height .25s ease-in-out;overflow-y:auto}.root{position:relative;display:flex;flex-direction:column;gap:var(--calcite-spacing-xxxl)}.esri-widget__heading{font-weight:var(--calcite-font-weight-normal)}calcite-scrim{--calcite-scrim-background: var(--calcite-color-foreground-1)}.disabled{color:var(--calcite-color-status-danger)}.esri-widget--panel{min-width:unset}`,T="__BUILDING_EXPLORER_FILTER__";function ee(){return`${crypto.randomUUID()}${T}`}function z(t){let e=typeof t=="string"?t:t.id;return!!e&&e.includes(T)}function Z(t,e){for(let i of t)for(let s of i.filters){if(!z(s))continue;let r=e(s);if(r!=null)return r}return null}function te(t,e){for(let i of t){let s=i.filters.filter(l=>!z(l));e!=null&&s.push(e),ie(i.filters,s)||(i.filters=s);let r=i.filters.find(l=>z(l));i.activeFilterId=r!=null?r.id:null}}function ie(t,e){let i=e.length;if(t?.length!==i)return!1;for(let s=0;s<i;++s){let r=e.at(s).toJSON(),l=t.at(s).toJSON();if(r.id="",l.id="",JSON.stringify(r)!==JSON.stringify(l))return!1}return!0}function re(t){let e=G(t);return e?{filterExpression:e,filterMode:{type:"x-ray"}}:null}function se(t){let e=G(t);return e?{filterExpression:e,filterMode:{type:"solid"}}:null}function G(t){return t.filter(e=>!!e).map(e=>`(${e})`).join(" AND ")}function L(t){let e={fieldValueMap:new Map,allowedValues:[]};for(let i of t){let s=i.fieldValueMap,r=e.fieldValueMap;s.forEach((l,a)=>{r.has(a)||(r.set(a,l),e.allowedValues.push(a))})}return e.allowedValues.sort((i,s)=>i-s),e}function O(t,e){return e.allowedValues.length>0?le(t,e.allowedValues):null}function le(t,e){if(e.length===0)return t;if(t===1/0)return e[e.length-1];if(t===-1/0)return e[0];let i=e[0],s=Math.abs(i-t);for(let r of e){let l=Math.abs(r-t);l<s&&(i=r,s=l)}return i}var ae=Object.defineProperty,oe=Object.getOwnPropertyDescriptor,X=t=>{throw TypeError(t)},d=(t,e,i,s)=>{for(var r=s>1?void 0:s?oe(e,i):e,l=t.length-1,a;l>=0;l--)(a=t[l])&&(r=(s?a(e,i,r):a(r))||r);return s&&r&&ae(e,i,r),r},ne=(t,e,i)=>e.has(t)||X("Cannot "+i),c=(t,e,i)=>(ne(t,e,"read from private field"),i?i.call(t):e.get(t)),V=(t,e,i)=>e.has(t)?X("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,i),E,$,v,_,n=class extends H{constructor(t){super(t),V(this,E,B(!0)),V(this,$,B(void 0)),V(this,v,B(null)),V(this,_,new p),this._state="disabled",this._domainInfo=L([]),this._loadLayers=U(),this.layers=new p}initialize(){this.addHandles(this.layers.on("change",()=>void this._onLayersChange())),this._onLayersChange()}destroy(){this._state="disabled"}get disabled(){return this.allowedValues.length===0||c(this,E).value}set disabled(t){c(this,E).value=t}get value(){return(this.state==="ready"?c(this,$).value:this._valueBeforeReady)??0}set value(t){if(this.state!=="ready"){this._valueBeforeReady=t;return}if(t===this.value)return;let e=O(t,this);e!=null&&(c(this,$).value=e)}get min(){return this.allowedValues.length===0?null:Math.min(...this.allowedValues)}get max(){return this.allowedValues.length===0?null:Math.max(...this.allowedValues)}get allowedValues(){return c(this,v).value??this._domainInfo.allowedValues}set allowedValues(t){t==null?c(this,v).value=null:c(this,v).value=t;let e=O(this.value,this);e!=null&&(this.value=e)}get hasNext(){if(this.disabled)return!0;let t=this._valueIndex;return t>=0&&t<this.allowedValues.length-1}get hasPrevious(){return this.disabled?!0:this._valueIndex>0}get layers(){return c(this,_)}set layers(t){c(this,_).removeAll(),c(this,_).addMany(t)}get state(){return this._state}set state(t){this._state=t}get filterExpressions(){return{solid:null,xRay:null}}get _valueIndex(){return this.allowedValues.indexOf(this.value)}select(t){if(this.state!=="ready"){this._valueBeforeReady=t;return}O(t,this)!=null&&(this.disabled=!1,this.value=t)}clear(){if(this.state!=="ready"){this._valueBeforeReady=void 0;return}this.disabled=!0}next(){let{state:t,allowedValues:e,disabled:i,hasNext:s,_valueIndex:r}=this;if(t!=="ready"&&this._valueBeforeReady!=null){this._valueBeforeReady++;return}if(e.length!==0){if(i){this.disabled=!1,this.value=e[0];return}s&&(this.value=e[r+1])}}previous(){let{state:t,allowedValues:e,disabled:i,hasPrevious:s,_valueIndex:r}=this;if(t!=="ready"&&this._valueBeforeReady!=null){this._valueBeforeReady++;return}if(e.length!==0){if(i){this.disabled=!1,this.value=e[e.length-1];return}s&&(this.value=e[r-1])}}getValueLabel(t){return this.layers.length===0?null:this._domainInfo.fieldValueMap.get(t)??null}async _onLayersChange(){if(this._state="loading",this._domainInfo=L([]),this.layers.length!==0)try{await this._loadLayers(this.layers),this.state="ready",this._setup(),this.changeEmitter?.()}catch(t){K(t)||(this._state="failed")}}};E=new WeakMap;$=new WeakMap;v=new WeakMap;_=new WeakMap;d([o()],n.prototype,"changeEmitter",2);d([o()],n.prototype,"disabled",1);d([o()],n.prototype,"value",1);d([o({readOnly:!0})],n.prototype,"min",1);d([o({readOnly:!0})],n.prototype,"max",1);d([o()],n.prototype,"allowedValues",1);d([o({readOnly:!0})],n.prototype,"hasNext",1);d([o({readOnly:!0})],n.prototype,"hasPrevious",1);d([o({type:p})],n.prototype,"layers",1);d([o()],n.prototype,"_state",2);d([o()],n.prototype,"state",1);d([o({})],n.prototype,"_valueBeforeReady",2);d([o({readOnly:!0})],n.prototype,"_valueIndex",1);d([o()],n.prototype,"_domainInfo",2);n=d([N("esri.components.BuildingExplorer.BuildingNumericFilterViewModel")],n);var de=Object.defineProperty,ce=Object.getOwnPropertyDescriptor,q=t=>{throw TypeError(t)},R=(t,e,i,s)=>{for(var r=s>1?void 0:s?ce(e,i):e,l=t.length-1,a;l>=0;l--)(a=t[l])&&(r=(s?a(e,i,r):a(r))||r);return s&&r&&de(e,i,r),r},he=(t,e,i)=>e.has(t)||q("Cannot "+i),ue=(t,e,i)=>(he(t,e,"read from private field"),i?i.call(t):e.get(t)),pe=(t,e,i)=>e.has(t)?q("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,i),I,ge="bldglevel",f=class extends n{constructor(t){super(t),pe(this,I,e=>{let i=new RegExp(`${this._levelFieldName}\\s*=\\s*(\\d+)`,"giu"),s=new RegExp(`${this._levelFieldName}\\s*<\\s*(\\d+)`,"giu");for(let{filterMode:r,filterExpression:l}of e.filterBlocks??[]){if(l==null)continue;let a=null;if(r?.type==="solid"?a=i.exec(l):r?.type==="x-ray"&&(a=s.exec(l)),a)return Number.parseInt(a[1],10)}return null})}get filterExpressions(){return this.disabled||!this._levelFieldName?{solid:null,xRay:null}:{xRay:`${this._levelFieldName} < ${this.value}`,solid:`${this._levelFieldName} = ${this.value}`}}get _firstValue(){let t=this.allowedValues;return t.length>0?t[0]:0}_setup(){let t=[];for(let s of this.layers){let r=k(s,ge);r!=null&&(this._levelFieldName=r.fieldName,t.push(r))}this._domainInfo=L(t);let e=this._valueBeforeReady;this._valueBeforeReady=void 0;let i=e??Z(this.layers,ue(this,I));i!=null?this.select(i):(this.disabled=!0,this.value=this._firstValue)}};I=new WeakMap;R([o()],f.prototype,"filterExpressions",1);R([o()],f.prototype,"_levelFieldName",2);R([o()],f.prototype,"_firstValue",1);f=R([N("esri.components.BuildingExplorer.BuildingLevel")],f);var fe=Object.defineProperty,me=Object.getOwnPropertyDescriptor,y=(t,e,i,s)=>{for(var r=s>1?void 0:s?me(e,i):e,l=t.length-1,a;l>=0;l--)(a=t[l])&&(r=(s?a(e,i,r):a(r))||r);return s&&r&&fe(e,i,r),r},ve="demolishedphase",_e="createdphase",g=class extends n{constructor(t){super(t),this._parseValueFromFilter=e=>{let i=this._createdPhaseFieldName,s=new RegExp(`${i}\\s*<=\\s*(\\d+)\\s*OR\\s*${i}\\s*IS\\s*NULL`,"giu"),r=this._demolishedPhaseFieldName,l=new RegExp(`${r}\\s*>\\s*(\\d+)\\s*OR\\s*${r}\\s*IS\\s*NULL`,"giu");for(let{filterExpression:a}of e.filterBlocks??[]){let M=a?s.exec(a)??l.exec(a):null;if(M)return Number.parseInt(M[1],10)}return null}}get filterExpressions(){if(this.disabled)return{solid:null,xRay:null};let t=[],e=this._createdPhaseFieldName;e&&t.push(`(${e} <= ${this.value} OR ${e} IS NULL)`);let i=this._demolishedPhaseFieldName;i&&t.push(`(${i} > ${this.value} OR ${i} IS NULL)`);let s=t.join(" AND ");return{solid:s,xRay:s}}get _lastValue(){let t=this.allowedValues;return t.length>0?t[t.length-1]:0}_setup(){let t=[];for(let i of this.layers){let s=k(i,_e);s!=null&&(this._createdPhaseFieldName=s.fieldName,t.push(s));let r=k(i,ve);r!=null&&(this._demolishedPhaseFieldName=r.fieldName,t.push(r))}this._domainInfo=L(t);let e=this._valueBeforeReady;if(this._valueBeforeReady=void 0,this.allowedValues.length>0){let i=e??Z(this.layers,this._parseValueFromFilter);this.select(i??this._lastValue)}else this.clear()}};y([o()],g.prototype,"filterExpressions",1);y([o()],g.prototype,"_createdPhaseFieldName",2);y([o()],g.prototype,"_demolishedPhaseFieldName",2);y([o()],g.prototype,"_lastValue",1);g=y([N("esri.components.BuildingExplorer.BuildingPhase")],g);var ye=Object.defineProperty,we=Object.getOwnPropertyDescriptor,m=(t,e,i,s)=>{for(var r=s>1?void 0:s?we(e,i):e,l=t.length-1,a;l>=0;l--)(a=t[l])&&(r=(s?a(e,i,r):a(r))||r);return s&&r&&ye(e,i,r),r},u=class extends H{constructor(){super(...arguments),this.level=new f,this.phase=new g}get layers(){return this._layers}set layers(t){this._layers=t,this.level.layers=t??new p,this.phase.layers=t??new p}get filter(){let t=this.level.filterExpressions,e=this.phase.filterExpressions,i=[],s=se([t.solid,e.solid]);s!=null&&i.push(s);let r=re([t.xRay,e.xRay]);return r!=null&&i.push(r),i.length===0?null:new Q({id:ee(),name:"Building Explorer Filter",filterBlocks:i})}};m([o()],u.prototype,"_layers",2);m([o()],u.prototype,"layers",1);m([o()],u.prototype,"level",2);m([o()],u.prototype,"phase",2);m([o({readOnly:!0})],u.prototype,"filter",1);u=m([N()],u);var F=class extends C{constructor(){super(...arguments),this.messages=S({blocking:!0}),this.#i=new p,this.#r=new u,this.view=A(this),this.autoDestroyDisabled=!1,this.headingLevel=3,this.hideDisciplines=!1,this.hideLevels=!1,this.hidePhases=!1,this.icon="organization",this.arcgisBuildingLevelChange=w({bubbles:!0,composed:!0}),this.arcgisBuildingPhaseChange=w({bubbles:!0,composed:!0}),this.arcgisReady=w()}static{this.properties={view:0,autoDestroyDisabled:5,headingLevel:9,hideDisciplines:5,hideLevels:5,hidePhases:5,icon:1,label:1,layers:0,level:9,phase:9,levels:0,phases:0,levelDisabled:32,phaseDisabled:32,referenceElement:1}}static{this.styles=Y}#i;#r;get#e(){return this.#r.level}get#t(){return this.#r.phase}get minLevel(){return this.#e.min}get maxLevel(){return this.#e.max}get minPhase(){return this.#t.min}get maxPhase(){return this.#t.max}get supported(){return this.view?.type==="3d"}get layers(){return this.#i.toArray()}set layers(e){this.#i.removeAll(),this.#i.addMany(e)}get level(){return this.#e.value}set level(e){e==null?this.#e.clear():this.#e.value=e}get phase(){return this.#t.value}set phase(e){e==null?this.#t.clear():this.#t.value=e}get levels(){return this.#e.allowedValues}set levels(e){e==null?this.#e.allowedValues=null:this.#e.allowedValues=e}get phases(){return this.#t.allowedValues}set phases(e){e==null?this.#t.allowedValues=null:this.#t.allowedValues=e}get levelDisabled(){return this.#e.disabled}get phaseDisabled(){return this.#t.disabled}async destroy(){await this.manager.destroy()}loaded(){this.#e.changeEmitter=()=>this.arcgisBuildingLevelChange.emit(),this.#t.changeEmitter=()=>this.arcgisBuildingPhaseChange.emit(),this.manager.onLifecycle(()=>[J(()=>({layers:this.#i.toArray(),filter:this.#r.filter,levelState:this.#e.state,phaseState:this.#t.state}),({layers:e,filter:i,levelState:s,phaseState:r})=>{s!=="ready"||r!=="ready"||te(e,i)},{initial:!0}),J(()=>this.layers,e=>{this.#r.layers=new p(e)},{initial:!0})])}render(){let e=this.messages;if(!this.supported)return P({label:e.componentLabel,children:h`<p class="disabled">${e.unsupported}</p>`});if(this.layers.length===0)return P({label:e.componentLabel,children:h`<p class="disabled">${e.noData}</p>`});let i=this.hideLevels||this.#e.allowedValues.length===0,s=this.hidePhases||this.#t.allowedValues.length===0,r=this.#e.state!=="ready"||this.#t.state!=="ready";return P({label:e.componentLabel,loading:r,children:h`${b({hidden:i,children:h`<div>${x({level:this.headingLevel,children:this.messages.level.title})}<arcgis-building-level-picker .messages=${e.level} .level=${this.#e}></arcgis-building-level-picker></div>`})}${b({hidden:s,children:h`<div>${x({level:this.headingLevel,children:this.messages.phase.title})}<arcgis-building-phase-picker .messages=${e.phase} .phase=${this.#t}></arcgis-building-phase-picker></div>`})}${b({hidden:this.hideDisciplines,children:h`<div>${x({level:this.headingLevel,children:this.messages.disciplines.title})}<arcgis-building-discipline-tree .layers=${this.layers} .messages=${this.messages.disciplines}></arcgis-building-discipline-tree></div>`})}`})}};function P(t){return W({class:"root",hideHeader:!0,label:t.label,children:h`${t.children}${t.loading?h`<calcite-scrim .loading=${t.loading}></calcite-scrim>`:null}`})}j("arcgis-building-explorer",F);return F},"core/Collection","core/reactiveUtils","core/Accessor","core/accessorSupport/decorators","applications/Components/reactiveUtils","core/promiseUtils","layers/support/BuildingFilter",a,c,d,e)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
|
|
2
|
-
import{d as h,h as T}from"./6C7SMFB2.js";import j from"./L2TCEQKB.js";import{a as p}from"./WCESLPME.js";import i from"./DXIOCBFP.js";import"./E7SYUWIQ.js";import{a as v}from"./QE6NJBXP.js";import"./QNVR7NGK.js";import f from"./FKXV625N.js";import{a as C}from"./5P4MDYFO.js";import{a as g}from"./DHVEHATY.js";import e from"./DLJMD6RL.js";import d from"./JLTOP6ZB.js";import{g as _}from"./TQV3645A.js";import"./PRHHD2OW.js";import a from"./KTDXN3YM.js";import"./ZNBKMZP7.js";import{O as x,P as u,R as b,U as y,a as w,b as c,x as D}from"./TWXRM6Z7.js";import"./ALDX5YZO.js";export default $arcgis.t(([I,{property:a,subclass:V},{watch:E,whenOnce:L},{forceInteractive:A},,,,M,,O])=>{var R=w`.esri-widget__heading{color:var(--calcite-color-text-2);margin:0 0 .5rem;font-weight:var(--calcite-font-weight-semibold)}h1.esri-widget__heading{font-size:var(--calcite-font-size-xl)}h2.esri-widget__heading{font-size:var(--calcite-font-size-md)}h3.esri-widget__heading,h4.esri-widget__heading,h5.esri-widget__heading,h6.esri-widget__heading{font-size:var(--calcite-font-size)}.esri-widget{box-sizing:border-box;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);font-size:var(--calcite-font-size);line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget *,.esri-widget :before,.esri-widget :after{box-sizing:inherit}.esri-widget.esri-widget--disabled>*{opacity:.4;pointer-events:none}.esri-widget.esri-widget--compact{--esri-widget-padding-y: 0;--esri-widget-padding-x: 0}.esri-widget__anchor{color:var(--calcite-color-text-2)}.esri-widget__anchor:hover{color:var(--calcite-color-text-3)}.esri-widget__anchor:hover,.esri-widget__anchor:focus{text-decoration:underline}.esri-widget__anchor--disabled{opacity:.4;pointer-events:none}.esri-widget__header{background-color:var(--calcite-color-foreground-1);flex:1 0 100%;justify-content:space-between;align-items:center;width:100%;min-height:48px;padding:12px 0 12px 15px;display:flex}.esri-widget__heading{word-break:break-word}.esri-widget__header .esri-widget__heading{width:calc(100% - 48px);text-align:initial;color:var(--calcite-color-text-1);align-items:center;margin:0;padding:0;display:flex}.esri-widget__header-button{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);border:none;flex:0 0 48px;justify-content:center;align-self:stretch;align-items:center;width:48px;padding:0;display:flex}.esri-widget__footer{background-color:var(--calcite-color-foreground-1);justify-content:center;align-items:center;width:100%;min-height:48px;display:flex}.esri-widget__footer-pagination{color:var(--calcite-color-text-2);justify-content:space-between;align-items:center;display:flex}.esri-widget__footer-pagination-previous-button,.esri-widget__footer-pagination-next-button{cursor:pointer;background-color:var(--calcite-color-foreground-1);border:0;margin:0 7px;padding:12px 15px;transition:background-color .125s ease-in-out}.esri-widget__footer-pagination-previous-button:hover,.esri-widget__footer-pagination-previous-button:focus,.esri-widget__footer-pagination-next-button:hover,.esri-widget__footer-pagination-next-button:focus{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1)}.esri-menu{visibility:hidden;z-index:1;background-clip:padding;background-color:var(--calcite-color-foreground-1);background-clip:padding-box;width:100%;max-height:0;margin:2px 0 0;padding:0;font-size:var(--calcite-font-size);line-height:var(--calcite-spacing-xl);position:absolute;top:100%;left:0;overflow:hidden;box-shadow:0 1px 2px #0000004d}.esri-menu .esri-menu__header{color:var(--calcite-color-text-inverse);background-color:var(--calcite-color-inverse);padding:6px 12px}.esri-menu__list{margin:0;padding:0;list-style:none}.esri-menu__list-item{cursor:pointer;border-top:1px solid #adadad4d;border-left:3px solid #0000;padding:.8em 1em}.esri-menu__list-item [class^=esri-icon-],.esri-menu__list-item [class*=" esri-icon-"]{padding-right:2.8px}.esri-menu__list-item:first-child{border-top:none}.esri-menu__list-item--focus,.esri-menu__list-item:hover,.esri-menu__list-item:focus{background-color:var(--calcite-color-foreground-1)}.esri-menu__list-item:active{background-color:var(--calcite-color-foreground-current)}.esri-menu__list-item--active,.esri-menu__list-item--active:hover,.esri-menu__list-item--active:focus{background-color:var(--calcite-color-foreground-1);border-left-color:var(--calcite-color-brand)}.esri-widget__table{border-collapse:collapse;color:var(--calcite-color-text-1);border:none;width:100%;line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget__table tr:nth-child(odd){background-color:var(--calcite-color-transparent)}.esri-widget__table tr:nth-child(2n){background-color:var(--calcite-color-transparent-press)}.esri-widget__table tr a{color:var(--calcite-color-text-2)}.esri-widget__table tr a:hover,.esri-widget__table tr a:focus{color:var(--calcite-color-text-1)}.esri-widget__table tr td,.esri-widget__table tr th{vertical-align:top;word-break:break-word;padding:.5em .7em;font-size:var(--calcite-font-size-sm);font-weight:var(--calcite-font-weight-regular)}.esri-widget__table tr th{text-align:left;border-right:3px solid #0000000d;width:50%}.esri-widget__table tr td{width:50%}.esri-input{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1);border:1px solid #959595;font-size:var(--calcite-font-size)}.esri-input::-ms-clear{display:none}.esri-input::placeholder{opacity:1;color:var(--calcite-color-text-2)}.esri-input:placeholder-shown{text-overflow:ellipsis}.esri-input[type=text],.esri-input[type=password],.esri-input[type=number]{height:32px;padding:0 .5em}calcite-combobox.esri-input{border:none}.esri-widget__content--empty{text-align:center;color:var(--calcite-color-border-input);flex-flow:column wrap;align-items:center;padding:18px 22px;display:flex}.esri-widget__content--empty h1.esri-widget__heading,.esri-widget__content--empty h2.esri-widget__heading,.esri-widget__content--empty h3.esri-widget__heading,.esri-widget__content--empty h4.esri-widget__heading,.esri-widget__content--empty h5.esri-widget__heading{font-weight:var(--calcite-font-weight-regular)}.esri-widget__content-illustration--empty{width:128px;padding:1rem 0}.esri-widget__content-icon--empty{width:32px;padding:.5rem 0}.esri-select{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background:var(--calcite-color-foreground-1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-8 -8 32 32' width='32' height='32'%3E%3Cpath d='M8 11.207l-4-4V5.793l4 4 4-4v1.414z' fill='%23adadad' fillrule='nonzero'/%3E%3C/svg%3E") 100% no-repeat;border:1px solid #959595;border-radius:0;width:100%;height:32px;margin:0;padding:0 .5em;font-family:inherit;font-size:.85em;display:block}.esri-select[disabled]{cursor:auto}.esri-select::-ms-expand{display:none}.esri-disabled a,.esri-disabled [role=menu],.esri-disabled [role=checkbox],.esri-disabled [class^=esri-icon-],.esri-disabled [class*=" esri-icon-"]{color:var(--calcite-color-text-3)}.keynav-mode .esri-widget:focus,.keynav-mode .esri-widget :focus{z-index:1;outline-offset:2px;outline:2px solid #adadad}.esri-widget__loader-animation{border:.15em solid #adadad4d;border-top-color:var(--calcite-color-border-input);border-radius:100%;width:1em;height:1em;font-size:var(--calcite-font-size-md);animation:1.25s linear infinite esri-rotate;display:block;transform:translateZ(0)}:dir(rtl) .esri-widget__table th{text-align:right;border-left:3px solid #0000000d;border-right:none}:dir(rtl) .esri-select{background-position:0}:dir(rtl) .esri-menu__list-item{border-left:none;border-right:3px solid #0000}:dir(rtl) .esri-menu__list-item [class^=esri-icon-],:dir(rtl) .esri-menu__list-item [class*=" esri-icon-"]{padding-left:2px;padding-right:0}:dir(rtl) .esri-menu__list-item--active{border-right-color:var(--calcite-color-brand)}.esri-icon-font-fallback-text{clip:rect(0 0 0 0);width:1px;height:1px;position:absolute;overflow:hidden}.esri-rotating{animation:1.25s linear infinite esri-rotate;transform:translateZ(0)}.esri-clearfix:before,.esri-clearfix:after{content:" ";display:table}.esri-clearfix:after{clear:both}.esri-interactive{cursor:pointer}.esri-hidden{display:none!important}.esri-invisible{visibility:hidden!important}.esri-offscreen{position:absolute;top:-999em;left:-999em}.esri-match-height{flex-direction:column;flex:auto;display:flex;overflow:hidden}.esri-widget--panel{min-width:300px;min-height:32px;padding:var(--arcgis-internal-padding);transition:max-height .25s ease-in-out;overflow-y:auto}:host{position:relative;width:var(--arcgis-internal-panel-width, 300px)}.root{--section-internal-gap: var(--calcite-spacing-md);display:flex;flex-direction:column;gap:var(--calcite-spacing-lg);min-width:var(--arcgis-internal-panel-min-width, 300px);overflow:var(--arcgis-internal-panel-overflow, visible);height:fit-content}:host([visual-scale="s"]) .root{--section-internal-gap: var(--calcite-spacing-sm)}:host([visual-scale="l"]) .root{--section-internal-gap: var(--calcite-spacing-lg)}.time-range-section arcgis-time-of-day-slider{margin-block-end:var(--section-internal-gap)}.time-range-section calcite-label:last-child,.visualization-options-section calcite-label:last-child{--calcite-label-margin-bottom: 0}.date-picker{flex-grow:1;display:block}.visualization-options{flex-direction:column;display:flex;gap:var(--section-internal-gap)}.hidden-config{display:none}`,j=Object.defineProperty,H=Object.getOwnPropertyDescriptor,o=(i,e,s,n)=>{for(var r=n>1?void 0:n?H(e,s):e,l=i.length-1,d;l>=0;l--)(d=i[l])&&(r=(n?d(e,s,r):d(r))||r);return n&&r&&j(e,s,r),r},$=Symbol("interactiveHandle"),t=class extends O{constructor(){super(...arguments),this.supportedViewType="3d",this.unsupportedErrorMessage="The Shadow Cast component is only supported in 3D views.",this.shouldForceInteractive=!1,this.minMinDuration=0,this.maxMinDuration=h(8,"hours","milliseconds"),this.hideShadowDurationTooltip=!1}constructAnalysis(){return new I}initialize(){this.addHandles(E(()=>({analysisView:this.analysisView,tooltipVisible:!this.hideShadowDurationTooltip}),({analysisView:i,tooltipVisible:e})=>{this.removeHandles($),i&&(i.interactive=e,e&&this.addHandles(A(i),$))},{sync:!0,initial:!0}))}get date(){return this.analysis.date}set date(i){this.analysis.date=i}get discreteColor(){return this.analysis.discreteOptions.color}set discreteColor(i){this.analysis.discreteOptions.color=i}get discreteInterval(){return this.analysis.discreteOptions.interval}set discreteInterval(i){this.analysis.discreteOptions.interval=i}get totalDurationColor(){return this.analysis.totalDurationOptions.color}set totalDurationColor(i){this.analysis.totalDurationOptions.color=i}get totalDurationMode(){return this.analysis.totalDurationOptions.mode}set totalDurationMode(i){this.analysis.totalDurationOptions.mode=i}get localDate(){return T(this.view)}get mode(){return this.analysis.mode}set mode(i){this.analysis.mode=i}get startTimeOfDay(){return this.analysis.startTimeOfDay}set startTimeOfDay(i){this.analysis.startTimeOfDay=i}get endTimeOfDay(){return this.analysis.endTimeOfDay}set endTimeOfDay(i){this.analysis.endTimeOfDay=i}get state(){return this.view?.ready&&this.analysisView?"ready":"disabled"}get minDurationColor(){return this.analysis.minDurationOptions.color}set minDurationColor(i){this.analysis.minDurationOptions.color=i}get minDuration(){return this.analysis.minDurationOptions.minDuration}set minDuration(i){this.analysis.minDurationOptions.minDuration=i}get minDurationContextEnabled(){return this.analysis.minDurationOptions.contextEnabled}set minDurationContextEnabled(i){this.analysis.minDurationOptions.contextEnabled=i}get minDurationContextColor(){return this.analysis.minDurationOptions.contextOptions.color}set minDurationContextColor(i){this.analysis.minDurationOptions.contextOptions.color=i}get minDurationContextInterval(){return this.analysis.minDurationOptions.contextOptions.interval}set minDurationContextInterval(i){this.analysis.minDurationOptions.contextOptions.interval=i}get utcOffset(){return this.analysis.utcOffset}set utcOffset(i){this.analysis.utcOffset=i}async getDurationAtScreen(i){return await(await L(()=>this.analysisView)).getDurationAtScreen(i)}};o([a()],t.prototype,"date",1);o([a()],t.prototype,"discreteColor",1);o([a()],t.prototype,"discreteInterval",1);o([a()],t.prototype,"totalDurationColor",1);o([a()],t.prototype,"totalDurationMode",1);o([a()],t.prototype,"localDate",1);o([a()],t.prototype,"mode",1);o([a()],t.prototype,"startTimeOfDay",1);o([a()],t.prototype,"endTimeOfDay",1);o([a()],t.prototype,"state",1);o([a()],t.prototype,"minDurationColor",1);o([a()],t.prototype,"minMinDuration",2);o([a()],t.prototype,"maxMinDuration",2);o([a()],t.prototype,"minDuration",1);o([a()],t.prototype,"minDurationContextEnabled",1);o([a()],t.prototype,"minDurationContextColor",1);o([a()],t.prototype,"minDurationContextInterval",1);o([a()],t.prototype,"utcOffset",1);o([a()],t.prototype,"hideShadowDurationTooltip",2);t=o([V("components.shadow-cast.ShadowCastViewModel")],t);var Z=M(t),f=class extends x{constructor(){super(...arguments),this.viewModel=Z(this),this.messages=C(),this.analysis=this.viewModel.analysis,this.view=this.viewModel.view,this.visualScale="m",this.autoDestroyDisabled=!1,this.endTimeOfDay=this.viewModel.endTimeOfDay,this.headingLevel=4,this.hideTimeRangeSlider=!1,this.hideTimezone=!1,this.hideDatePicker=!1,this.hideShadowDurationTooltip=this.viewModel.hideShadowDurationTooltip,this.hideVisualization=this.viewModel.hideVisualization,this.hideVisualizationOptions=!1,this.hideDiscreteOptions=!1,this.hideDiscreteColorPicker=!1,this.hideDiscreteInterval=!1,this.hideTotalDurationOptions=!1,this.hideTotalDurationColorPicker=!1,this.hideTotalDurationModeSelect=!1,this.hideMinDurationOptions=!1,this.hideMinDurationColorPicker=!1,this.hideMinDurationSlider=!1,this.hideMinDurationContextOptions=!1,this.hideMinDurationContextToggle=!1,this.hideMinDurationContextColorPicker=!1,this.hideMinDurationContextInterval=!1,this.icon="measure-building-height-shadow",this.mode=this.viewModel.mode,this.startTimeOfDay=this.viewModel.startTimeOfDay,this.state=this.viewModel.state,this.utcOffset=this.viewModel.utcOffset,this.discreteColor=this.viewModel.discreteColor,this.discreteInterval=this.viewModel.discreteInterval,this.totalDurationColor=this.viewModel.totalDurationColor,this.totalDurationMode=this.viewModel.totalDurationMode,this.minDuration=this.viewModel.minDuration,this.minDurationColor=this.viewModel.minDurationColor,this.minMinDuration=this.viewModel.minMinDuration,this.maxMinDuration=this.viewModel.maxMinDuration,this.minDurationContextEnabled=this.viewModel.minDurationContextEnabled,this.minDurationContextColor=this.viewModel.minDurationContextColor,this.minDurationContextInterval=this.viewModel.minDurationContextInterval,this.arcgisPropertyChange=_()("state"),this.arcgisReady=D()}static{this.properties={analysis:0,view:0,visualScale:3,autoDestroyDisabled:5,date:1,endTimeOfDay:9,headingLevel:9,hideTimeRangeSlider:5,hideTimezone:5,hideDatePicker:5,hideShadowDurationTooltip:5,hideVisualization:5,hideVisualizationOptions:5,hideDiscreteOptions:5,hideDiscreteColorPicker:5,hideDiscreteInterval:5,hideTotalDurationOptions:5,hideTotalDurationColorPicker:5,hideTotalDurationModeSelect:5,hideMinDurationOptions:5,hideMinDurationColorPicker:5,hideMinDurationSlider:5,hideMinDurationContextOptions:5,hideMinDurationContextToggle:5,hideMinDurationContextColorPicker:5,hideMinDurationContextInterval:5,icon:3,label:1,mode:1,referenceElement:1,startTimeOfDay:9,state:32,utcOffset:9,discreteColor:0,discreteInterval:9,totalDurationColor:0,totalDurationMode:1,minDuration:9,minDurationColor:0,minMinDuration:9,maxMinDuration:9,minDurationContextEnabled:5,minDurationContextColor:0,minDurationContextInterval:9}}static{this.styles=R}get date(){return this.viewModel.date}set date(e){this.viewModel.date=e}async destroy(){await this.manager.destroy()}async getDurationAtScreen(e){return await this.viewModel.getDurationAtScreen(e)}render(){return c`<div aria-label=${this.messages.componentLabel??b} class=${u({root:!0,[g.widget]:!0,[g.widgetDisabled]:this.viewModel.state==="disabled",[g.panel]:!0})} role=presentation>${this._renderTimeRangeSection()}${p({hidden:this.hideVisualizationOptions,children:this._renderVisualizationOptionsSection()})}</div>`}_renderTimeRangeSection(){if(!this.analysis||this.hideTimeRangeSlider&&this.hideDatePicker)return;let{messages:e,utcOffset:s,viewModel:n}=this,r=this.visualScale;return c`<section class="time-range-section">${v({level:this.headingLevel,children:e.timeRangeHeading})}${p({hidden:this.hideTimeRangeSlider,children:this._renderTimeRange()})}${p({hidden:this.hideTimezone,children:c`<calcite-label .scale=${r}>${e.timezoneLabel}<calcite-input-time-zone mode=offset overlay-positioning=fixed .referenceDate=${n.localDate} .scale=${r} .value=${`${h(s??0,"hours","minutes")}`} @calciteInputTimeZoneChange=${l=>{n.utcOffset=+l.target.value/60}}></calcite-input-time-zone></calcite-label>`})}${p({hidden:this.hideDatePicker,children:c`<calcite-label .scale=${r}>${e.dateLabel}<calcite-input-date-picker overlay-positioning=fixed placement=bottom .scale=${r} .valueAsDate=${n.date} @calciteInputDatePickerChange=${l=>{let d=l.currentTarget.valueAsDate;n.date=Array.isArray(d)?d[0]:d}}></calcite-input-date-picker></calcite-label>`})}</section>`}_renderTimeRange(){let{viewModel:e}=this;return c`<arcgis-time-of-day-slider mode=range .startTime=${k(this.startTimeOfDay)} .endTime=${k(this.endTimeOfDay)} .label=${this.messages?.timeRangeSliderLabel} .visualScale=${this.visualScale} @arcgisTimeChange=${({currentTarget:s})=>{e.startTimeOfDay=h(s.startTime,"minutes","milliseconds"),e.endTimeOfDay=h(s.endTime,"minutes","milliseconds")}}></arcgis-time-of-day-slider>`}_renderVisualizationOptionsSection(){let{analysis:e,headingLevel:s,messages:n,viewModel:r}=this;if(!e)return;let{discreteOptions:l,totalDurationOptions:d,minDurationOptions:z}=e,m=(S,P)=>r.mode===S&&!P?void 0:"hidden-config";return c`<section class="visualization-options-section">${v({level:s,children:n.visualizationLabel})}<div class="visualization-options">${this._renderModeSelect()}<div class=${u(m("min-duration",this.hideMinDurationOptions))}><arcgis-shadow-cast-min-duration-config .hideColorPicker=${this.hideMinDurationColorPicker} .hideContextColorPicker=${this.hideMinDurationContextColorPicker} .hideContextInterval=${this.hideMinDurationContextInterval} .hideContextOptions=${this.hideMinDurationContextOptions} .hideContextToggle=${this.hideMinDurationContextToggle} .hideSlider=${this.hideMinDurationSlider} .minMinDuration=${this.minMinDuration} .maxMinDuration=${this.maxMinDuration} .messages=${n} .options=${z} .scale=${this.visualScale}></arcgis-shadow-cast-min-duration-config></div><div class=${u(m("total-duration",this.hideTotalDurationOptions))}><arcgis-shadow-cast-total-duration-config .hideColorPicker=${this.hideTotalDurationColorPicker} .hideModeSelect=${this.hideTotalDurationModeSelect} .messages=${n} .options=${d} .scale=${this.visualScale}></arcgis-shadow-cast-total-duration-config></div><div class=${u(m("discrete",this.hideDiscreteOptions))}><arcgis-shadow-cast-discrete-config .hideColorPicker=${this.hideDiscreteColorPicker} .hideInterval=${this.hideDiscreteInterval} .messages=${n} .options=${l} .scale=${this.visualScale}></arcgis-shadow-cast-discrete-config></div></div></section>`}_renderModeSelect(){let{messages:e,viewModel:s}=this,{mode:n}=s;return c`<calcite-select .label=${e.visualizationLabel??""} .scale=${this.visualScale} @calciteSelectChange=${r=>{let l=r.target.selectedOption?.value;s.mode=l??"min-duration"}}>${[{mode:"min-duration",label:e.minDuration?.optionLabel},{mode:"total-duration",label:e.totalDuration?.optionLabel},{mode:"discrete",label:e.discrete?.optionLabel}].map(({mode:r,label:l})=>c`<calcite-option .selected=${r===n} .value=${r} .label=${l}></calcite-option>`)}</calcite-select>`}};function k(i){return Math.round(h(i,"milliseconds","minutes"))}y("arcgis-shadow-cast",f);return f},"analysis/ShadowCastAnalysis","core/accessorSupport/decorators","core/reactiveUtils","applications/Components/analysisUtils",a,d,e,f,i,j)
|
|
2
|
+
import{d as h,h as T}from"./6C7SMFB2.js";import j from"./4FDCF2ES.js";import{a as p}from"./WCESLPME.js";import i from"./DXIOCBFP.js";import"./E7SYUWIQ.js";import{a as v}from"./7FXALWBY.js";import"./ALDQGQMC.js";import f from"./APWOPCUZ.js";import{a as C}from"./NX5QB7SK.js";import{a as g}from"./DHVEHATY.js";import e from"./ZJMQONR5.js";import d from"./R6E7ZKNJ.js";import{g as _}from"./232V6BEJ.js";import"./AKHHNTS3.js";import a from"./KTDXN3YM.js";import"./ZNBKMZP7.js";import{O as x,P as u,R as b,U as y,a as w,b as c,x as D}from"./QRWBSDOD.js";import"./ALDX5YZO.js";export default $arcgis.t(([I,{property:a,subclass:V},{watch:E,whenOnce:L},{forceInteractive:A},,,,M,,O])=>{var R=w`.esri-widget__heading{color:var(--calcite-color-text-2);margin:0 0 .5rem;font-weight:var(--calcite-font-weight-semibold)}h1.esri-widget__heading{font-size:var(--calcite-font-size-xl)}h2.esri-widget__heading{font-size:var(--calcite-font-size-md)}h3.esri-widget__heading,h4.esri-widget__heading,h5.esri-widget__heading,h6.esri-widget__heading{font-size:var(--calcite-font-size)}.esri-widget{box-sizing:border-box;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);font-size:var(--calcite-font-size);line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget *,.esri-widget :before,.esri-widget :after{box-sizing:inherit}.esri-widget.esri-widget--disabled>*{opacity:.4;pointer-events:none}.esri-widget.esri-widget--compact{--esri-widget-padding-y: 0;--esri-widget-padding-x: 0}.esri-widget__anchor{color:var(--calcite-color-text-2)}.esri-widget__anchor:hover{color:var(--calcite-color-text-3)}.esri-widget__anchor:hover,.esri-widget__anchor:focus{text-decoration:underline}.esri-widget__anchor--disabled{opacity:.4;pointer-events:none}.esri-widget__header{background-color:var(--calcite-color-foreground-1);flex:1 0 100%;justify-content:space-between;align-items:center;width:100%;min-height:48px;padding:12px 0 12px 15px;display:flex}.esri-widget__heading{word-break:break-word}.esri-widget__header .esri-widget__heading{width:calc(100% - 48px);text-align:initial;color:var(--calcite-color-text-1);align-items:center;margin:0;padding:0;display:flex}.esri-widget__header-button{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);border:none;flex:0 0 48px;justify-content:center;align-self:stretch;align-items:center;width:48px;padding:0;display:flex}.esri-widget__footer{background-color:var(--calcite-color-foreground-1);justify-content:center;align-items:center;width:100%;min-height:48px;display:flex}.esri-widget__footer-pagination{color:var(--calcite-color-text-2);justify-content:space-between;align-items:center;display:flex}.esri-widget__footer-pagination-previous-button,.esri-widget__footer-pagination-next-button{cursor:pointer;background-color:var(--calcite-color-foreground-1);border:0;margin:0 7px;padding:12px 15px;transition:background-color .125s ease-in-out}.esri-widget__footer-pagination-previous-button:hover,.esri-widget__footer-pagination-previous-button:focus,.esri-widget__footer-pagination-next-button:hover,.esri-widget__footer-pagination-next-button:focus{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1)}.esri-menu{visibility:hidden;z-index:1;background-clip:padding;background-color:var(--calcite-color-foreground-1);background-clip:padding-box;width:100%;max-height:0;margin:2px 0 0;padding:0;font-size:var(--calcite-font-size);line-height:var(--calcite-spacing-xl);position:absolute;top:100%;left:0;overflow:hidden;box-shadow:0 1px 2px #0000004d}.esri-menu .esri-menu__header{color:var(--calcite-color-text-inverse);background-color:var(--calcite-color-inverse);padding:6px 12px}.esri-menu__list{margin:0;padding:0;list-style:none}.esri-menu__list-item{cursor:pointer;border-top:1px solid #adadad4d;border-left:3px solid #0000;padding:.8em 1em}.esri-menu__list-item [class^=esri-icon-],.esri-menu__list-item [class*=" esri-icon-"]{padding-right:2.8px}.esri-menu__list-item:first-child{border-top:none}.esri-menu__list-item--focus,.esri-menu__list-item:hover,.esri-menu__list-item:focus{background-color:var(--calcite-color-foreground-1)}.esri-menu__list-item:active{background-color:var(--calcite-color-foreground-current)}.esri-menu__list-item--active,.esri-menu__list-item--active:hover,.esri-menu__list-item--active:focus{background-color:var(--calcite-color-foreground-1);border-left-color:var(--calcite-color-brand)}.esri-widget__table{border-collapse:collapse;color:var(--calcite-color-text-1);border:none;width:100%;line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget__table tr:nth-child(odd){background-color:var(--calcite-color-transparent)}.esri-widget__table tr:nth-child(2n){background-color:var(--calcite-color-transparent-press)}.esri-widget__table tr a{color:var(--calcite-color-text-2)}.esri-widget__table tr a:hover,.esri-widget__table tr a:focus{color:var(--calcite-color-text-1)}.esri-widget__table tr td,.esri-widget__table tr th{vertical-align:top;word-break:break-word;padding:.5em .7em;font-size:var(--calcite-font-size-sm);font-weight:var(--calcite-font-weight-regular)}.esri-widget__table tr th{text-align:left;border-right:3px solid #0000000d;width:50%}.esri-widget__table tr td{width:50%}.esri-input{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1);border:1px solid #959595;font-size:var(--calcite-font-size)}.esri-input::-ms-clear{display:none}.esri-input::placeholder{opacity:1;color:var(--calcite-color-text-2)}.esri-input:placeholder-shown{text-overflow:ellipsis}.esri-input[type=text],.esri-input[type=password],.esri-input[type=number]{height:32px;padding:0 .5em}calcite-combobox.esri-input{border:none}.esri-widget__content--empty{text-align:center;color:var(--calcite-color-border-input);flex-flow:column wrap;align-items:center;padding:18px 22px;display:flex}.esri-widget__content--empty h1.esri-widget__heading,.esri-widget__content--empty h2.esri-widget__heading,.esri-widget__content--empty h3.esri-widget__heading,.esri-widget__content--empty h4.esri-widget__heading,.esri-widget__content--empty h5.esri-widget__heading{font-weight:var(--calcite-font-weight-regular)}.esri-widget__content-illustration--empty{width:128px;padding:1rem 0}.esri-widget__content-icon--empty{width:32px;padding:.5rem 0}.esri-select{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background:var(--calcite-color-foreground-1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-8 -8 32 32' width='32' height='32'%3E%3Cpath d='M8 11.207l-4-4V5.793l4 4 4-4v1.414z' fill='%23adadad' fillrule='nonzero'/%3E%3C/svg%3E") 100% no-repeat;border:1px solid #959595;border-radius:0;width:100%;height:32px;margin:0;padding:0 .5em;font-family:inherit;font-size:.85em;display:block}.esri-select[disabled]{cursor:auto}.esri-select::-ms-expand{display:none}.esri-disabled a,.esri-disabled [role=menu],.esri-disabled [role=checkbox],.esri-disabled [class^=esri-icon-],.esri-disabled [class*=" esri-icon-"]{color:var(--calcite-color-text-3)}.keynav-mode .esri-widget:focus,.keynav-mode .esri-widget :focus{z-index:1;outline-offset:2px;outline:2px solid #adadad}.esri-widget__loader-animation{border:.15em solid #adadad4d;border-top-color:var(--calcite-color-border-input);border-radius:100%;width:1em;height:1em;font-size:var(--calcite-font-size-md);animation:1.25s linear infinite esri-rotate;display:block;transform:translateZ(0)}:dir(rtl) .esri-widget__table th{text-align:right;border-left:3px solid #0000000d;border-right:none}:dir(rtl) .esri-select{background-position:0}:dir(rtl) .esri-menu__list-item{border-left:none;border-right:3px solid #0000}:dir(rtl) .esri-menu__list-item [class^=esri-icon-],:dir(rtl) .esri-menu__list-item [class*=" esri-icon-"]{padding-left:2px;padding-right:0}:dir(rtl) .esri-menu__list-item--active{border-right-color:var(--calcite-color-brand)}.esri-icon-font-fallback-text{clip:rect(0 0 0 0);width:1px;height:1px;position:absolute;overflow:hidden}.esri-rotating{animation:1.25s linear infinite esri-rotate;transform:translateZ(0)}.esri-clearfix:before,.esri-clearfix:after{content:" ";display:table}.esri-clearfix:after{clear:both}.esri-interactive{cursor:pointer}.esri-hidden{display:none!important}.esri-invisible{visibility:hidden!important}.esri-offscreen{position:absolute;top:-999em;left:-999em}.esri-match-height{flex-direction:column;flex:auto;display:flex;overflow:hidden}.esri-widget--panel{min-width:300px;min-height:32px;padding:var(--arcgis-internal-padding);transition:max-height .25s ease-in-out;overflow-y:auto}:host{position:relative;width:var(--arcgis-internal-panel-width, 300px)}.root{--section-internal-gap: var(--calcite-spacing-md);display:flex;flex-direction:column;gap:var(--calcite-spacing-lg);min-width:var(--arcgis-internal-panel-min-width, 300px);overflow:var(--arcgis-internal-panel-overflow, visible);height:fit-content}:host([visual-scale="s"]) .root{--section-internal-gap: var(--calcite-spacing-sm)}:host([visual-scale="l"]) .root{--section-internal-gap: var(--calcite-spacing-lg)}.time-range-section arcgis-time-of-day-slider{margin-block-end:var(--section-internal-gap)}.time-range-section calcite-label:last-child,.visualization-options-section calcite-label:last-child{--calcite-label-margin-bottom: 0}.date-picker{flex-grow:1;display:block}.visualization-options{flex-direction:column;display:flex;gap:var(--section-internal-gap)}.hidden-config{display:none}`,j=Object.defineProperty,H=Object.getOwnPropertyDescriptor,o=(i,e,s,n)=>{for(var r=n>1?void 0:n?H(e,s):e,l=i.length-1,d;l>=0;l--)(d=i[l])&&(r=(n?d(e,s,r):d(r))||r);return n&&r&&j(e,s,r),r},$=Symbol("interactiveHandle"),t=class extends O{constructor(){super(...arguments),this.supportedViewType="3d",this.unsupportedErrorMessage="The Shadow Cast component is only supported in 3D views.",this.shouldForceInteractive=!1,this.minMinDuration=0,this.maxMinDuration=h(8,"hours","milliseconds"),this.hideShadowDurationTooltip=!1}constructAnalysis(){return new I}initialize(){this.addHandles(E(()=>({analysisView:this.analysisView,tooltipVisible:!this.hideShadowDurationTooltip}),({analysisView:i,tooltipVisible:e})=>{this.removeHandles($),i&&(i.interactive=e,e&&this.addHandles(A(i),$))},{sync:!0,initial:!0}))}get date(){return this.analysis.date}set date(i){this.analysis.date=i}get discreteColor(){return this.analysis.discreteOptions.color}set discreteColor(i){this.analysis.discreteOptions.color=i}get discreteInterval(){return this.analysis.discreteOptions.interval}set discreteInterval(i){this.analysis.discreteOptions.interval=i}get totalDurationColor(){return this.analysis.totalDurationOptions.color}set totalDurationColor(i){this.analysis.totalDurationOptions.color=i}get totalDurationMode(){return this.analysis.totalDurationOptions.mode}set totalDurationMode(i){this.analysis.totalDurationOptions.mode=i}get localDate(){return T(this.view)}get mode(){return this.analysis.mode}set mode(i){this.analysis.mode=i}get startTimeOfDay(){return this.analysis.startTimeOfDay}set startTimeOfDay(i){this.analysis.startTimeOfDay=i}get endTimeOfDay(){return this.analysis.endTimeOfDay}set endTimeOfDay(i){this.analysis.endTimeOfDay=i}get state(){return this.view?.ready&&this.analysisView?"ready":"disabled"}get minDurationColor(){return this.analysis.minDurationOptions.color}set minDurationColor(i){this.analysis.minDurationOptions.color=i}get minDuration(){return this.analysis.minDurationOptions.minDuration}set minDuration(i){this.analysis.minDurationOptions.minDuration=i}get minDurationContextEnabled(){return this.analysis.minDurationOptions.contextEnabled}set minDurationContextEnabled(i){this.analysis.minDurationOptions.contextEnabled=i}get minDurationContextColor(){return this.analysis.minDurationOptions.contextOptions.color}set minDurationContextColor(i){this.analysis.minDurationOptions.contextOptions.color=i}get minDurationContextInterval(){return this.analysis.minDurationOptions.contextOptions.interval}set minDurationContextInterval(i){this.analysis.minDurationOptions.contextOptions.interval=i}get utcOffset(){return this.analysis.utcOffset}set utcOffset(i){this.analysis.utcOffset=i}async getDurationAtScreen(i){return await(await L(()=>this.analysisView)).getDurationAtScreen(i)}};o([a()],t.prototype,"date",1);o([a()],t.prototype,"discreteColor",1);o([a()],t.prototype,"discreteInterval",1);o([a()],t.prototype,"totalDurationColor",1);o([a()],t.prototype,"totalDurationMode",1);o([a()],t.prototype,"localDate",1);o([a()],t.prototype,"mode",1);o([a()],t.prototype,"startTimeOfDay",1);o([a()],t.prototype,"endTimeOfDay",1);o([a()],t.prototype,"state",1);o([a()],t.prototype,"minDurationColor",1);o([a()],t.prototype,"minMinDuration",2);o([a()],t.prototype,"maxMinDuration",2);o([a()],t.prototype,"minDuration",1);o([a()],t.prototype,"minDurationContextEnabled",1);o([a()],t.prototype,"minDurationContextColor",1);o([a()],t.prototype,"minDurationContextInterval",1);o([a()],t.prototype,"utcOffset",1);o([a()],t.prototype,"hideShadowDurationTooltip",2);t=o([V("components.shadow-cast.ShadowCastViewModel")],t);var Z=M(t),f=class extends x{constructor(){super(...arguments),this.viewModel=Z(this),this.messages=C(),this.analysis=this.viewModel.analysis,this.view=this.viewModel.view,this.visualScale="m",this.autoDestroyDisabled=!1,this.endTimeOfDay=this.viewModel.endTimeOfDay,this.headingLevel=4,this.hideTimeRangeSlider=!1,this.hideTimezone=!1,this.hideDatePicker=!1,this.hideShadowDurationTooltip=this.viewModel.hideShadowDurationTooltip,this.hideVisualization=this.viewModel.hideVisualization,this.hideVisualizationOptions=!1,this.hideDiscreteOptions=!1,this.hideDiscreteColorPicker=!1,this.hideDiscreteInterval=!1,this.hideTotalDurationOptions=!1,this.hideTotalDurationColorPicker=!1,this.hideTotalDurationModeSelect=!1,this.hideMinDurationOptions=!1,this.hideMinDurationColorPicker=!1,this.hideMinDurationSlider=!1,this.hideMinDurationContextOptions=!1,this.hideMinDurationContextToggle=!1,this.hideMinDurationContextColorPicker=!1,this.hideMinDurationContextInterval=!1,this.icon="measure-building-height-shadow",this.mode=this.viewModel.mode,this.startTimeOfDay=this.viewModel.startTimeOfDay,this.state=this.viewModel.state,this.utcOffset=this.viewModel.utcOffset,this.discreteColor=this.viewModel.discreteColor,this.discreteInterval=this.viewModel.discreteInterval,this.totalDurationColor=this.viewModel.totalDurationColor,this.totalDurationMode=this.viewModel.totalDurationMode,this.minDuration=this.viewModel.minDuration,this.minDurationColor=this.viewModel.minDurationColor,this.minMinDuration=this.viewModel.minMinDuration,this.maxMinDuration=this.viewModel.maxMinDuration,this.minDurationContextEnabled=this.viewModel.minDurationContextEnabled,this.minDurationContextColor=this.viewModel.minDurationContextColor,this.minDurationContextInterval=this.viewModel.minDurationContextInterval,this.arcgisPropertyChange=_()("state"),this.arcgisReady=D()}static{this.properties={analysis:0,view:0,visualScale:3,autoDestroyDisabled:5,date:1,endTimeOfDay:9,headingLevel:9,hideTimeRangeSlider:5,hideTimezone:5,hideDatePicker:5,hideShadowDurationTooltip:5,hideVisualization:5,hideVisualizationOptions:5,hideDiscreteOptions:5,hideDiscreteColorPicker:5,hideDiscreteInterval:5,hideTotalDurationOptions:5,hideTotalDurationColorPicker:5,hideTotalDurationModeSelect:5,hideMinDurationOptions:5,hideMinDurationColorPicker:5,hideMinDurationSlider:5,hideMinDurationContextOptions:5,hideMinDurationContextToggle:5,hideMinDurationContextColorPicker:5,hideMinDurationContextInterval:5,icon:3,label:1,mode:1,referenceElement:1,startTimeOfDay:9,state:32,utcOffset:9,discreteColor:0,discreteInterval:9,totalDurationColor:0,totalDurationMode:1,minDuration:9,minDurationColor:0,minMinDuration:9,maxMinDuration:9,minDurationContextEnabled:5,minDurationContextColor:0,minDurationContextInterval:9}}static{this.styles=R}get date(){return this.viewModel.date}set date(e){this.viewModel.date=e}async destroy(){await this.manager.destroy()}async getDurationAtScreen(e){return await this.viewModel.getDurationAtScreen(e)}render(){return c`<div aria-label=${this.messages.componentLabel??b} class=${u({root:!0,[g.widget]:!0,[g.widgetDisabled]:this.viewModel.state==="disabled",[g.panel]:!0})} role=presentation>${this._renderTimeRangeSection()}${p({hidden:this.hideVisualizationOptions,children:this._renderVisualizationOptionsSection()})}</div>`}_renderTimeRangeSection(){if(!this.analysis||this.hideTimeRangeSlider&&this.hideDatePicker)return;let{messages:e,utcOffset:s,viewModel:n}=this,r=this.visualScale;return c`<section class="time-range-section">${v({level:this.headingLevel,children:e.timeRangeHeading})}${p({hidden:this.hideTimeRangeSlider,children:this._renderTimeRange()})}${p({hidden:this.hideTimezone,children:c`<calcite-label .scale=${r}>${e.timezoneLabel}<calcite-input-time-zone mode=offset overlay-positioning=fixed .referenceDate=${n.localDate} .scale=${r} .value=${`${h(s??0,"hours","minutes")}`} @calciteInputTimeZoneChange=${l=>{n.utcOffset=+l.target.value/60}}></calcite-input-time-zone></calcite-label>`})}${p({hidden:this.hideDatePicker,children:c`<calcite-label .scale=${r}>${e.dateLabel}<calcite-input-date-picker overlay-positioning=fixed placement=bottom .scale=${r} .valueAsDate=${n.date} @calciteInputDatePickerChange=${l=>{let d=l.currentTarget.valueAsDate;n.date=Array.isArray(d)?d[0]:d}}></calcite-input-date-picker></calcite-label>`})}</section>`}_renderTimeRange(){let{viewModel:e}=this;return c`<arcgis-time-of-day-slider mode=range .startTime=${k(this.startTimeOfDay)} .endTime=${k(this.endTimeOfDay)} .label=${this.messages?.timeRangeSliderLabel} .visualScale=${this.visualScale} @arcgisTimeChange=${({currentTarget:s})=>{e.startTimeOfDay=h(s.startTime,"minutes","milliseconds"),e.endTimeOfDay=h(s.endTime,"minutes","milliseconds")}}></arcgis-time-of-day-slider>`}_renderVisualizationOptionsSection(){let{analysis:e,headingLevel:s,messages:n,viewModel:r}=this;if(!e)return;let{discreteOptions:l,totalDurationOptions:d,minDurationOptions:z}=e,m=(S,P)=>r.mode===S&&!P?void 0:"hidden-config";return c`<section class="visualization-options-section">${v({level:s,children:n.visualizationLabel})}<div class="visualization-options">${this._renderModeSelect()}<div class=${u(m("min-duration",this.hideMinDurationOptions))}><arcgis-shadow-cast-min-duration-config .hideColorPicker=${this.hideMinDurationColorPicker} .hideContextColorPicker=${this.hideMinDurationContextColorPicker} .hideContextInterval=${this.hideMinDurationContextInterval} .hideContextOptions=${this.hideMinDurationContextOptions} .hideContextToggle=${this.hideMinDurationContextToggle} .hideSlider=${this.hideMinDurationSlider} .minMinDuration=${this.minMinDuration} .maxMinDuration=${this.maxMinDuration} .messages=${n} .options=${z} .scale=${this.visualScale}></arcgis-shadow-cast-min-duration-config></div><div class=${u(m("total-duration",this.hideTotalDurationOptions))}><arcgis-shadow-cast-total-duration-config .hideColorPicker=${this.hideTotalDurationColorPicker} .hideModeSelect=${this.hideTotalDurationModeSelect} .messages=${n} .options=${d} .scale=${this.visualScale}></arcgis-shadow-cast-total-duration-config></div><div class=${u(m("discrete",this.hideDiscreteOptions))}><arcgis-shadow-cast-discrete-config .hideColorPicker=${this.hideDiscreteColorPicker} .hideInterval=${this.hideDiscreteInterval} .messages=${n} .options=${l} .scale=${this.visualScale}></arcgis-shadow-cast-discrete-config></div></div></section>`}_renderModeSelect(){let{messages:e,viewModel:s}=this,{mode:n}=s;return c`<calcite-select .label=${e.visualizationLabel??""} .scale=${this.visualScale} @calciteSelectChange=${r=>{let l=r.target.selectedOption?.value;s.mode=l??"min-duration"}}>${[{mode:"min-duration",label:e.minDuration?.optionLabel},{mode:"total-duration",label:e.totalDuration?.optionLabel},{mode:"discrete",label:e.discrete?.optionLabel}].map(({mode:r,label:l})=>c`<calcite-option .selected=${r===n} .value=${r} .label=${l}></calcite-option>`)}</calcite-select>`}};function k(i){return Math.round(h(i,"milliseconds","minutes"))}y("arcgis-shadow-cast",f);return f},"analysis/ShadowCastAnalysis","core/accessorSupport/decorators","core/reactiveUtils","applications/Components/analysisUtils",a,d,e,f,i,j)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
|
|
2
|
-
import{a as u}from"./
|
|
2
|
+
import{a as u}from"./NX5QB7SK.js";import"./232V6BEJ.js";import"./AKHHNTS3.js";import"./ZNBKMZP7.js";import{O as g,U as h,a as m,b as c,p as s,s as p}from"./QRWBSDOD.js";import"./ALDX5YZO.js";export default $arcgis.t(([v,{substitute:y}])=>{var x=m`:host{margin-block-start:0;padding:0 var(--calcite-spacing-sm) var(--calcite-spacing-sm) var(--calcite-spacing-sm);background-color:var(--calcite-color-foreground-1)}calcite-list{border:solid 1px var(--calcite-color-border-3);border-radius:var(--calcite-corner-radius-sm);overflow:hidden}calcite-list-item [slot=content-bottom]{background-color:transparent;display:none}calcite-list-item[expanded] [slot=content-bottom]{display:unset}.warning{color:var(--calcite-color-status-danger)}.terminals{padding-block:var(--calcite-spacing-sm);padding-inline-start:var(--calcite-spacing-xl);padding-inline-end:var(--calcite-spacing-sm);display:flex;flex-direction:column}.filter-barrier-container{display:flex;width:100%;calcite-label{width:100%}}.filter-barrier{display:flex;justify-content:space-between;align-items:center;width:100%}`,d=class extends g{constructor(){super(...arguments),this._messages=u({blocking:!0}),this.traceLocations=new v,this.traceLocationType="starting-point"}static{this.properties={traceLocations:0,traceLocationType:1}}static{this.styles=x}_handleTraceLocationItemRemoved(e){let i=e.spatialProperties.flagGraphic?.layer,{traceLocations:t}=this;e.spatialProperties.flagGraphic&&i&&i.remove(e.spatialProperties.flagGraphic),t?.remove(e)}_renderTerminal(e,i){let{flagProperties:t}=e,{selectedTerminals:r}=t;if(!e)return s("warn",this,"One or more elements in `traceLocations` are missing the required property `flag`."),null;let{name:n,id:a}=i,o=r?.has(a)??!1;return c`<calcite-label layout=inline><calcite-checkbox .value=${a} .checked=${o} @calciteCheckboxChange=${l=>{l.target.checked?r?.add(a):r?.delete(a),this.requestUpdate()}}></calcite-checkbox>${n}</calcite-label>`}_renderTerminalError(){let{_messages:e}=this;return c`<calcite-notice kind=danger open scale=s width=auto><div slot=message>${e.errors.noTerminalSelected}</div></calcite-notice>`}_renderFilterBarrier(e){let{_messages:i}=this,{traceLocation:t}=e;return c`<div class="filter-barrier-container"><calcite-label layout=inline><div class="filter-barrier">${i.labels.filterBarrier}<calcite-switch .checked=${t.isFilterBarrier} @calciteSwitchChange=${r=>{t.isFilterBarrier=r.target.checked}}></calcite-switch></div></calcite-label></div>`}_renderContents(e){let{flagProperties:i}=e,{terminalConfiguration:t,selectedTerminals:r}=i,n=e.traceLocation.type==="barrier",a=t&&t.terminals.length>0&&r?.size===0;return c`<calcite-action .icon=${i.expanded?"chevron-up":"chevron-down"} slot=actions-end scale=s text @click=${()=>{i.expanded=!i.expanded,this.requestUpdate()}}></calcite-action>${a&&c`<calcite-icon class="warning" icon=exclamation-mark-triangle scale=s slot=content-start></calcite-icon>`||""}${i.expanded&&c`<div class="terminals" slot=content-bottom>${n&&this._renderFilterBarrier(e)||""}${t&&this._renderTerminals(e)||""}${a&&this._renderTerminalError()||""}</div>`||""}`}_renderTerminals(e){let{flagProperties:i}=e,{terminalConfiguration:t}=i;if(!t)return s("warn",this,"One or more locations are missing the required flag property `terminalConfiguration`."),[];let r=t.terminals;return!r||r.length===0?(s("warn",this,"`terminalConfiguration.terminals` is required but either missing or empty.`"),[]):r.map(n=>this._renderTerminal(e,n))}_renderListItem(e){let{flagProperties:i}=e,{terminalConfiguration:t,expanded:r,title:n}=i,a=n,o=t&&t.id!==0,l=e.traceLocation.type==="barrier",f=o||l,b=t?.name??void 0;return c`<calcite-list-item .label=${a} .description=${b} .value=${a} .expanded=${r}>${f?this._renderContents(e):c`<div slot=content-bottom></div>`}<calcite-action icon=x slot=actions-end scale=s text @click=${()=>this._handleTraceLocationItemRemoved(e)}></calcite-action></calcite-list-item>`}render(){let{_messages:e,traceLocationType:i}=this,t=y(e.labels.list,{traceLocationType:i}),r=this.traceLocations?.map(n=>this._renderListItem(n)).toArray()??[];return r.length===0?(s("warn",this,p("traceLocations")),null):c`<div><calcite-list interaction-mode=static selection-mode=none .label=${t}>${r}</calcite-list></div>`}};h("arcgis-utility-network-trace-location-list",d);return d},"core/Collection","intl")
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
|
|
2
|
-
import{a as _}from"./ODO32P3A.js";import i from"./FKXV625N.js";import{a as f}from"./5P4MDYFO.js";import{a as o}from"./DHVEHATY.js";import e from"./DLJMD6RL.js";import b from"./JLTOP6ZB.js";import{g as p}from"./TQV3645A.js";import"./PRHHD2OW.js";import a from"./KTDXN3YM.js";import{b as h}from"./ZNBKMZP7.js";import{O as d,P as c,U as g,a as n,b as t,x as l}from"./TWXRM6Z7.js";import"./ALDX5YZO.js";export default $arcgis.t(([{on:a,watch:v},w,,,,u])=>{var y=n`.esri-widget__heading{color:var(--calcite-color-text-2);margin:0 0 .5rem;font-weight:var(--calcite-font-weight-semibold)}h1.esri-widget__heading{font-size:var(--calcite-font-size-xl)}h2.esri-widget__heading{font-size:var(--calcite-font-size-md)}h3.esri-widget__heading,h4.esri-widget__heading,h5.esri-widget__heading,h6.esri-widget__heading{font-size:var(--calcite-font-size)}.esri-widget{box-sizing:border-box;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);font-size:var(--calcite-font-size);line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget *,.esri-widget :before,.esri-widget :after{box-sizing:inherit}.esri-widget.esri-widget--disabled>*{opacity:.4;pointer-events:none}.esri-widget.esri-widget--compact{--esri-widget-padding-y: 0;--esri-widget-padding-x: 0}.esri-widget__anchor{color:var(--calcite-color-text-2)}.esri-widget__anchor:hover{color:var(--calcite-color-text-3)}.esri-widget__anchor:hover,.esri-widget__anchor:focus{text-decoration:underline}.esri-widget__anchor--disabled{opacity:.4;pointer-events:none}.esri-widget__header{background-color:var(--calcite-color-foreground-1);flex:1 0 100%;justify-content:space-between;align-items:center;width:100%;min-height:48px;padding:12px 0 12px 15px;display:flex}.esri-widget__heading{word-break:break-word}.esri-widget__header .esri-widget__heading{width:calc(100% - 48px);text-align:initial;color:var(--calcite-color-text-1);align-items:center;margin:0;padding:0;display:flex}.esri-widget__header-button{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);border:none;flex:0 0 48px;justify-content:center;align-self:stretch;align-items:center;width:48px;padding:0;display:flex}.esri-widget__footer{background-color:var(--calcite-color-foreground-1);justify-content:center;align-items:center;width:100%;min-height:48px;display:flex}.esri-widget__footer-pagination{color:var(--calcite-color-text-2);justify-content:space-between;align-items:center;display:flex}.esri-widget__footer-pagination-previous-button,.esri-widget__footer-pagination-next-button{cursor:pointer;background-color:var(--calcite-color-foreground-1);border:0;margin:0 7px;padding:12px 15px;transition:background-color .125s ease-in-out}.esri-widget__footer-pagination-previous-button:hover,.esri-widget__footer-pagination-previous-button:focus,.esri-widget__footer-pagination-next-button:hover,.esri-widget__footer-pagination-next-button:focus{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1)}.esri-menu{visibility:hidden;z-index:1;background-clip:padding;background-color:var(--calcite-color-foreground-1);background-clip:padding-box;width:100%;max-height:0;margin:2px 0 0;padding:0;font-size:var(--calcite-font-size);line-height:var(--calcite-spacing-xl);position:absolute;top:100%;left:0;overflow:hidden;box-shadow:0 1px 2px #0000004d}.esri-menu .esri-menu__header{color:var(--calcite-color-text-inverse);background-color:var(--calcite-color-inverse);padding:6px 12px}.esri-menu__list{margin:0;padding:0;list-style:none}.esri-menu__list-item{cursor:pointer;border-top:1px solid #adadad4d;border-left:3px solid #0000;padding:.8em 1em}.esri-menu__list-item [class^=esri-icon-],.esri-menu__list-item [class*=" esri-icon-"]{padding-right:2.8px}.esri-menu__list-item:first-child{border-top:none}.esri-menu__list-item--focus,.esri-menu__list-item:hover,.esri-menu__list-item:focus{background-color:var(--calcite-color-foreground-1)}.esri-menu__list-item:active{background-color:var(--calcite-color-foreground-current)}.esri-menu__list-item--active,.esri-menu__list-item--active:hover,.esri-menu__list-item--active:focus{background-color:var(--calcite-color-foreground-1);border-left-color:var(--calcite-color-brand)}.esri-widget__table{border-collapse:collapse;color:var(--calcite-color-text-1);border:none;width:100%;line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget__table tr:nth-child(odd){background-color:var(--calcite-color-transparent)}.esri-widget__table tr:nth-child(2n){background-color:var(--calcite-color-transparent-press)}.esri-widget__table tr a{color:var(--calcite-color-text-2)}.esri-widget__table tr a:hover,.esri-widget__table tr a:focus{color:var(--calcite-color-text-1)}.esri-widget__table tr td,.esri-widget__table tr th{vertical-align:top;word-break:break-word;padding:.5em .7em;font-size:var(--calcite-font-size-sm);font-weight:var(--calcite-font-weight-regular)}.esri-widget__table tr th{text-align:left;border-right:3px solid #0000000d;width:50%}.esri-widget__table tr td{width:50%}.esri-input{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1);border:1px solid #959595;font-size:var(--calcite-font-size)}.esri-input::-ms-clear{display:none}.esri-input::placeholder{opacity:1;color:var(--calcite-color-text-2)}.esri-input:placeholder-shown{text-overflow:ellipsis}.esri-input[type=text],.esri-input[type=password],.esri-input[type=number]{height:32px;padding:0 .5em}calcite-combobox.esri-input{border:none}.esri-widget__content--empty{text-align:center;color:var(--calcite-color-border-input);flex-flow:column wrap;align-items:center;padding:18px 22px;display:flex}.esri-widget__content--empty h1.esri-widget__heading,.esri-widget__content--empty h2.esri-widget__heading,.esri-widget__content--empty h3.esri-widget__heading,.esri-widget__content--empty h4.esri-widget__heading,.esri-widget__content--empty h5.esri-widget__heading{font-weight:var(--calcite-font-weight-regular)}.esri-widget__content-illustration--empty{width:128px;padding:1rem 0}.esri-widget__content-icon--empty{width:32px;padding:.5rem 0}.esri-select{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background:var(--calcite-color-foreground-1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-8 -8 32 32' width='32' height='32'%3E%3Cpath d='M8 11.207l-4-4V5.793l4 4 4-4v1.414z' fill='%23adadad' fillrule='nonzero'/%3E%3C/svg%3E") 100% no-repeat;border:1px solid #959595;border-radius:0;width:100%;height:32px;margin:0;padding:0 .5em;font-family:inherit;font-size:.85em;display:block}.esri-select[disabled]{cursor:auto}.esri-select::-ms-expand{display:none}.esri-disabled a,.esri-disabled [role=menu],.esri-disabled [role=checkbox],.esri-disabled [class^=esri-icon-],.esri-disabled [class*=" esri-icon-"]{color:var(--calcite-color-text-3)}.keynav-mode .esri-widget:focus,.keynav-mode .esri-widget :focus{z-index:1;outline-offset:2px;outline:2px solid #adadad}.esri-widget__loader-animation{border:.15em solid #adadad4d;border-top-color:var(--calcite-color-border-input);border-radius:100%;width:1em;height:1em;font-size:var(--calcite-font-size-md);animation:1.25s linear infinite esri-rotate;display:block;transform:translateZ(0)}:dir(rtl) .esri-widget__table th{text-align:right;border-left:3px solid #0000000d;border-right:none}:dir(rtl) .esri-select{background-position:0}:dir(rtl) .esri-menu__list-item{border-left:none;border-right:3px solid #0000}:dir(rtl) .esri-menu__list-item [class^=esri-icon-],:dir(rtl) .esri-menu__list-item [class*=" esri-icon-"]{padding-left:2px;padding-right:0}:dir(rtl) .esri-menu__list-item--active{border-right-color:var(--calcite-color-brand)}.esri-icon-font-fallback-text{clip:rect(0 0 0 0);width:1px;height:1px;position:absolute;overflow:hidden}.esri-rotating{animation:1.25s linear infinite esri-rotate;transform:translateZ(0)}.esri-clearfix:before,.esri-clearfix:after{content:" ";display:table}.esri-clearfix:after{clear:both}.esri-interactive{cursor:pointer}.esri-hidden{display:none!important}.esri-invisible{visibility:hidden!important}.esri-offscreen{position:absolute;top:-999em;left:-999em}.esri-match-height{flex-direction:column;flex:auto;display:flex;overflow:hidden}:host{overflow:auto;width:var(--arcgis-internal-legend-width, 300px)}:host([card-style-layout="side-by-side"]){--arcgis-internal-legend-width: auto}`,b=u(w),s=class extends d{constructor(){super(...arguments),this.messages=f({}),this.final=_("destroy"),this.viewModel=b(this),this._isCardStyle=!1,this.view=this.viewModel.view,this.icon="legend",this.activeLayerInfos=this.viewModel.activeLayerInfos,this.basemapLegendVisible=this.viewModel.basemapLegendVisible,this.headingLevel=3,this.hideLayersNotInCurrentView=this.viewModel.hideLayersNotInCurrentView,this.respectLayerDefinitionExpression=this.viewModel.respectLayerDefinitionExpression,this.layerInfos=this.viewModel.layerInfos,this.loading=this.viewModel.loading,this.legendStyle="classic",this.autoDestroyDisabled=!1,this.label=this.messages?.componentLabel,this.state=this.viewModel.state,this.arcgisPropertyChange=p()("state"),this.arcgisReady=l()}static{this.properties={_isCardStyle:16,view:0,referenceElement:1,icon:1,activeLayerInfos:0,basemapLegendVisible:5,headingLevel:9,hideLayersNotInCurrentView:5,respectLayerDefinitionExpression:5,ignoreLayerVisibility:5,layerInfos:0,loading:39,cardStyleLayout:1,legendStyle:1,autoDestroyDisabled:5,messageOverrides:0,label:1,state:32}}static{this.styles=y}get ignoreLayerVisibility(){return!this.viewModel.respectLayerVisibility}set ignoreLayerVisibility(e){this.viewModel.respectLayerVisibility=!e}async destroy(){await this.manager.destroy()}loaded(){this.manager.onLifecycle(()=>[a(()=>this.el.view,"resize",()=>this.requestUpdate()),a(()=>this.activeLayerInfos,"change",()=>this._refreshActiveLayerInfos(this.activeLayerInfos)),v(()=>[this.cardStyleLayout,this.legendStyle,typeof this.legendStyle=="object"?this.legendStyle.type:void 0,typeof this.legendStyle=="object"?this.legendStyle.layout:void 0],()=>{let e=this.legendStyle,i=typeof e=="object"?e:{type:e};this._isCardStyle=i.type==="card",this._isCardStyle?(this.cardStyleLayout=this.cardStyleLayout||i.layout||"auto",this.cardStyleLayout==="auto"&&this.el.closest("arcgis-expand")&&(this.cardStyleLayout="stack"),this.setAttribute("card-style-layout",this.cardStyleLayout)):this.removeAttribute("card-style-layout")},{initial:!0})])}_refreshActiveLayerInfos(e){e.forEach(i=>{this.final.removeHandles(`version_${i.layer.uid}`),this._renderOnActiveLayerInfoChange(i)}),this.requestUpdate()}render(){return t`<div class=${c(h("root",o.widget,{[o.panel]:!this._isCardStyle}))}>${this._isCardStyle&&this.view?t`<arcgis-legend-card-view .activeLayerInfos=${this.activeLayerInfos} .headingLevel=${this.headingLevel} .messages=${this.messages} .layout=${this.cardStyleLayout} .view=${this.view}></arcgis-legend-card-view>`:t`<arcgis-legend-classic-view .activeLayerInfos=${this.activeLayerInfos} .headingLevel=${this.headingLevel} .messages=${this.messages}></arcgis-legend-classic-view>`}</div>`}_renderOnActiveLayerInfoChange(e){let i=v(()=>e.version,()=>this.requestUpdate());this.final.addHandles(i,`version_${e.layer.uid}`);let m=a(()=>e.children,"change",()=>e.children.forEach(r=>this._renderOnActiveLayerInfoChange(r)));this.final.addHandles(m,`version_${e.layer.uid}`),e.children.forEach(r=>this._renderOnActiveLayerInfoChange(r))}};g("arcgis-legend",s);return s},"core/reactiveUtils","widgets/Legend/LegendViewModel",a,b,e,i)
|
|
2
|
+
import{a as _}from"./CCZOXWDY.js";import i from"./APWOPCUZ.js";import{a as f}from"./NX5QB7SK.js";import{a as o}from"./DHVEHATY.js";import e from"./ZJMQONR5.js";import b from"./R6E7ZKNJ.js";import{g as p}from"./232V6BEJ.js";import"./AKHHNTS3.js";import a from"./KTDXN3YM.js";import{b as h}from"./ZNBKMZP7.js";import{O as d,P as c,U as g,a as n,b as t,x as l}from"./QRWBSDOD.js";import"./ALDX5YZO.js";export default $arcgis.t(([{on:a,watch:v},w,,,,u])=>{var y=n`.esri-widget__heading{color:var(--calcite-color-text-2);margin:0 0 .5rem;font-weight:var(--calcite-font-weight-semibold)}h1.esri-widget__heading{font-size:var(--calcite-font-size-xl)}h2.esri-widget__heading{font-size:var(--calcite-font-size-md)}h3.esri-widget__heading,h4.esri-widget__heading,h5.esri-widget__heading,h6.esri-widget__heading{font-size:var(--calcite-font-size)}.esri-widget{box-sizing:border-box;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);font-size:var(--calcite-font-size);line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget *,.esri-widget :before,.esri-widget :after{box-sizing:inherit}.esri-widget.esri-widget--disabled>*{opacity:.4;pointer-events:none}.esri-widget.esri-widget--compact{--esri-widget-padding-y: 0;--esri-widget-padding-x: 0}.esri-widget__anchor{color:var(--calcite-color-text-2)}.esri-widget__anchor:hover{color:var(--calcite-color-text-3)}.esri-widget__anchor:hover,.esri-widget__anchor:focus{text-decoration:underline}.esri-widget__anchor--disabled{opacity:.4;pointer-events:none}.esri-widget__header{background-color:var(--calcite-color-foreground-1);flex:1 0 100%;justify-content:space-between;align-items:center;width:100%;min-height:48px;padding:12px 0 12px 15px;display:flex}.esri-widget__heading{word-break:break-word}.esri-widget__header .esri-widget__heading{width:calc(100% - 48px);text-align:initial;color:var(--calcite-color-text-1);align-items:center;margin:0;padding:0;display:flex}.esri-widget__header-button{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);border:none;flex:0 0 48px;justify-content:center;align-self:stretch;align-items:center;width:48px;padding:0;display:flex}.esri-widget__footer{background-color:var(--calcite-color-foreground-1);justify-content:center;align-items:center;width:100%;min-height:48px;display:flex}.esri-widget__footer-pagination{color:var(--calcite-color-text-2);justify-content:space-between;align-items:center;display:flex}.esri-widget__footer-pagination-previous-button,.esri-widget__footer-pagination-next-button{cursor:pointer;background-color:var(--calcite-color-foreground-1);border:0;margin:0 7px;padding:12px 15px;transition:background-color .125s ease-in-out}.esri-widget__footer-pagination-previous-button:hover,.esri-widget__footer-pagination-previous-button:focus,.esri-widget__footer-pagination-next-button:hover,.esri-widget__footer-pagination-next-button:focus{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1)}.esri-menu{visibility:hidden;z-index:1;background-clip:padding;background-color:var(--calcite-color-foreground-1);background-clip:padding-box;width:100%;max-height:0;margin:2px 0 0;padding:0;font-size:var(--calcite-font-size);line-height:var(--calcite-spacing-xl);position:absolute;top:100%;left:0;overflow:hidden;box-shadow:0 1px 2px #0000004d}.esri-menu .esri-menu__header{color:var(--calcite-color-text-inverse);background-color:var(--calcite-color-inverse);padding:6px 12px}.esri-menu__list{margin:0;padding:0;list-style:none}.esri-menu__list-item{cursor:pointer;border-top:1px solid #adadad4d;border-left:3px solid #0000;padding:.8em 1em}.esri-menu__list-item [class^=esri-icon-],.esri-menu__list-item [class*=" esri-icon-"]{padding-right:2.8px}.esri-menu__list-item:first-child{border-top:none}.esri-menu__list-item--focus,.esri-menu__list-item:hover,.esri-menu__list-item:focus{background-color:var(--calcite-color-foreground-1)}.esri-menu__list-item:active{background-color:var(--calcite-color-foreground-current)}.esri-menu__list-item--active,.esri-menu__list-item--active:hover,.esri-menu__list-item--active:focus{background-color:var(--calcite-color-foreground-1);border-left-color:var(--calcite-color-brand)}.esri-widget__table{border-collapse:collapse;color:var(--calcite-color-text-1);border:none;width:100%;line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget__table tr:nth-child(odd){background-color:var(--calcite-color-transparent)}.esri-widget__table tr:nth-child(2n){background-color:var(--calcite-color-transparent-press)}.esri-widget__table tr a{color:var(--calcite-color-text-2)}.esri-widget__table tr a:hover,.esri-widget__table tr a:focus{color:var(--calcite-color-text-1)}.esri-widget__table tr td,.esri-widget__table tr th{vertical-align:top;word-break:break-word;padding:.5em .7em;font-size:var(--calcite-font-size-sm);font-weight:var(--calcite-font-weight-regular)}.esri-widget__table tr th{text-align:left;border-right:3px solid #0000000d;width:50%}.esri-widget__table tr td{width:50%}.esri-input{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1);border:1px solid #959595;font-size:var(--calcite-font-size)}.esri-input::-ms-clear{display:none}.esri-input::placeholder{opacity:1;color:var(--calcite-color-text-2)}.esri-input:placeholder-shown{text-overflow:ellipsis}.esri-input[type=text],.esri-input[type=password],.esri-input[type=number]{height:32px;padding:0 .5em}calcite-combobox.esri-input{border:none}.esri-widget__content--empty{text-align:center;color:var(--calcite-color-border-input);flex-flow:column wrap;align-items:center;padding:18px 22px;display:flex}.esri-widget__content--empty h1.esri-widget__heading,.esri-widget__content--empty h2.esri-widget__heading,.esri-widget__content--empty h3.esri-widget__heading,.esri-widget__content--empty h4.esri-widget__heading,.esri-widget__content--empty h5.esri-widget__heading{font-weight:var(--calcite-font-weight-regular)}.esri-widget__content-illustration--empty{width:128px;padding:1rem 0}.esri-widget__content-icon--empty{width:32px;padding:.5rem 0}.esri-select{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background:var(--calcite-color-foreground-1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-8 -8 32 32' width='32' height='32'%3E%3Cpath d='M8 11.207l-4-4V5.793l4 4 4-4v1.414z' fill='%23adadad' fillrule='nonzero'/%3E%3C/svg%3E") 100% no-repeat;border:1px solid #959595;border-radius:0;width:100%;height:32px;margin:0;padding:0 .5em;font-family:inherit;font-size:.85em;display:block}.esri-select[disabled]{cursor:auto}.esri-select::-ms-expand{display:none}.esri-disabled a,.esri-disabled [role=menu],.esri-disabled [role=checkbox],.esri-disabled [class^=esri-icon-],.esri-disabled [class*=" esri-icon-"]{color:var(--calcite-color-text-3)}.keynav-mode .esri-widget:focus,.keynav-mode .esri-widget :focus{z-index:1;outline-offset:2px;outline:2px solid #adadad}.esri-widget__loader-animation{border:.15em solid #adadad4d;border-top-color:var(--calcite-color-border-input);border-radius:100%;width:1em;height:1em;font-size:var(--calcite-font-size-md);animation:1.25s linear infinite esri-rotate;display:block;transform:translateZ(0)}:dir(rtl) .esri-widget__table th{text-align:right;border-left:3px solid #0000000d;border-right:none}:dir(rtl) .esri-select{background-position:0}:dir(rtl) .esri-menu__list-item{border-left:none;border-right:3px solid #0000}:dir(rtl) .esri-menu__list-item [class^=esri-icon-],:dir(rtl) .esri-menu__list-item [class*=" esri-icon-"]{padding-left:2px;padding-right:0}:dir(rtl) .esri-menu__list-item--active{border-right-color:var(--calcite-color-brand)}.esri-icon-font-fallback-text{clip:rect(0 0 0 0);width:1px;height:1px;position:absolute;overflow:hidden}.esri-rotating{animation:1.25s linear infinite esri-rotate;transform:translateZ(0)}.esri-clearfix:before,.esri-clearfix:after{content:" ";display:table}.esri-clearfix:after{clear:both}.esri-interactive{cursor:pointer}.esri-hidden{display:none!important}.esri-invisible{visibility:hidden!important}.esri-offscreen{position:absolute;top:-999em;left:-999em}.esri-match-height{flex-direction:column;flex:auto;display:flex;overflow:hidden}:host{overflow:auto;width:var(--arcgis-internal-legend-width, 300px)}:host([card-style-layout="side-by-side"]){--arcgis-internal-legend-width: auto}`,b=u(w),s=class extends d{constructor(){super(...arguments),this.messages=f({}),this.final=_("destroy"),this.viewModel=b(this),this._isCardStyle=!1,this.view=this.viewModel.view,this.icon="legend",this.activeLayerInfos=this.viewModel.activeLayerInfos,this.basemapLegendVisible=this.viewModel.basemapLegendVisible,this.headingLevel=3,this.hideLayersNotInCurrentView=this.viewModel.hideLayersNotInCurrentView,this.respectLayerDefinitionExpression=this.viewModel.respectLayerDefinitionExpression,this.layerInfos=this.viewModel.layerInfos,this.loading=this.viewModel.loading,this.legendStyle="classic",this.autoDestroyDisabled=!1,this.label=this.messages?.componentLabel,this.state=this.viewModel.state,this.arcgisPropertyChange=p()("state"),this.arcgisReady=l()}static{this.properties={_isCardStyle:16,view:0,referenceElement:1,icon:1,activeLayerInfos:0,basemapLegendVisible:5,headingLevel:9,hideLayersNotInCurrentView:5,respectLayerDefinitionExpression:5,ignoreLayerVisibility:5,layerInfos:0,loading:39,cardStyleLayout:1,legendStyle:1,autoDestroyDisabled:5,messageOverrides:0,label:1,state:32}}static{this.styles=y}get ignoreLayerVisibility(){return!this.viewModel.respectLayerVisibility}set ignoreLayerVisibility(e){this.viewModel.respectLayerVisibility=!e}async destroy(){await this.manager.destroy()}loaded(){this.manager.onLifecycle(()=>[a(()=>this.el.view,"resize",()=>this.requestUpdate()),a(()=>this.activeLayerInfos,"change",()=>this._refreshActiveLayerInfos(this.activeLayerInfos)),v(()=>[this.cardStyleLayout,this.legendStyle,typeof this.legendStyle=="object"?this.legendStyle.type:void 0,typeof this.legendStyle=="object"?this.legendStyle.layout:void 0],()=>{let e=this.legendStyle,i=typeof e=="object"?e:{type:e};this._isCardStyle=i.type==="card",this._isCardStyle?(this.cardStyleLayout=this.cardStyleLayout||i.layout||"auto",this.cardStyleLayout==="auto"&&this.el.closest("arcgis-expand")&&(this.cardStyleLayout="stack"),this.setAttribute("card-style-layout",this.cardStyleLayout)):this.removeAttribute("card-style-layout")},{initial:!0})])}_refreshActiveLayerInfos(e){e.forEach(i=>{this.final.removeHandles(`version_${i.layer.uid}`),this._renderOnActiveLayerInfoChange(i)}),this.requestUpdate()}render(){return t`<div class=${c(h("root",o.widget,{[o.panel]:!this._isCardStyle}))}>${this._isCardStyle&&this.view?t`<arcgis-legend-card-view .activeLayerInfos=${this.activeLayerInfos} .headingLevel=${this.headingLevel} .messages=${this.messages} .layout=${this.cardStyleLayout} .view=${this.view}></arcgis-legend-card-view>`:t`<arcgis-legend-classic-view .activeLayerInfos=${this.activeLayerInfos} .headingLevel=${this.headingLevel} .messages=${this.messages}></arcgis-legend-classic-view>`}</div>`}_renderOnActiveLayerInfoChange(e){let i=v(()=>e.version,()=>this.requestUpdate());this.final.addHandles(i,`version_${e.layer.uid}`);let m=a(()=>e.children,"change",()=>e.children.forEach(r=>this._renderOnActiveLayerInfoChange(r)));this.final.addHandles(m,`version_${e.layer.uid}`),e.children.forEach(r=>this._renderOnActiveLayerInfoChange(r))}};g("arcgis-legend",s);return s},"core/reactiveUtils","widgets/Legend/LegendViewModel",a,b,e,i)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
|
|
2
|
-
import{a as i}from"./
|
|
2
|
+
import{a as i}from"./232V6BEJ.js";import a from"./KTDXN3YM.js";import{z as s}from"./QRWBSDOD.js";export default $arcgis.t(([c,{a:o}])=>{var l=n=>h(n),t=class extends s{#e;constructor(e){super(e),this.setProvisionalExports(void 0)}hostConnected(){this.component.manager.loadedCalled&&o(this.component)}hostLoad(){this.component.manager.destroyed}hostLoaded(){let{el:e}=this.component,r=e.shadowRoot?.firstElementChild??e.firstElementChild??void 0;e.childElem??=r,this.#e=c.when(()=>this.component.view!=null,()=>{this.component.arcgisReady.emit()},{once:!0,initial:!0,sync:!0}),e.isConnected&&o(this.component)}hostDisconnected(){typeof this.component.el.childElem=="object"&&this.component.view?.ui?.remove(this.component.el.childElem),this.#e?.remove()}hostUpdate(e){e.has("referenceElement")&&o(this.component)}},h=i(t);return{a:l,b:t}},"core/reactiveUtils",a)
|