@arcgis/map-components 5.1.13 → 5.1.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/{7URBS6NA.js → 24J5QWIM.js} +1 -1
- package/dist/cdn/{WDBOTFWK.js → 2AICXSIS.js} +1 -1
- package/dist/cdn/{4UW3HYC3.js → 2DSUQQWK.js} +1 -1
- package/dist/cdn/{QVW2R4IS.js → 2FIVH2XK.js} +1 -1
- package/dist/cdn/{D7PGBWKD.js → 2GI3SFKH.js} +1 -1
- package/dist/cdn/{B3FZHYU3.js → 2MQQAKN4.js} +1 -1
- package/dist/cdn/{IYV4UVCX.js → 2SBEYWST.js} +1 -1
- package/dist/cdn/{GIRM7I4D.js → 2TUM7I72.js} +1 -1
- package/dist/cdn/{DRZ6WHPD.js → 2U2G567W.js} +1 -1
- package/dist/cdn/{JV42NCBG.js → 33RJDTZB.js} +1 -1
- package/dist/cdn/37S3FSN3.js +2 -0
- package/dist/cdn/{ZMUMTZ63.js → 3FDQROEZ.js} +1 -1
- package/dist/cdn/{FYIDPNFB.js → 3HVLNX4T.js} +1 -1
- package/dist/cdn/{ADMFSWCV.js → 3M3HENP4.js} +1 -1
- package/dist/cdn/{YASRISLB.js → 3MOA7PC6.js} +1 -1
- package/dist/cdn/{XF2Q2HB6.js → 3QWV6QFB.js} +1 -1
- package/dist/cdn/{IAIMHQJW.js → 3QY2B2LS.js} +1 -1
- package/dist/cdn/{NPEIETLC.js → 4475ZHIT.js} +1 -1
- package/dist/cdn/{SZEYWCNS.js → 4EVP5FM6.js} +1 -1
- package/dist/cdn/{NDVEYEFL.js → 4HTB2DEK.js} +1 -1
- package/dist/cdn/{IVRRK45N.js → 4MQQGXLC.js} +1 -1
- package/dist/cdn/{U2NBX5QR.js → 57NUQSPY.js} +1 -1
- package/dist/cdn/{YDUHARAM.js → 5IHYYWWE.js} +1 -1
- package/dist/cdn/{OV35L5WZ.js → 5KSIN7BO.js} +1 -1
- package/dist/cdn/{N5NWJJCD.js → 5OL2AF5H.js} +1 -1
- package/dist/cdn/{IKPVG2WR.js → 636MSUVT.js} +1 -1
- package/dist/cdn/{Q6GJ3EZ2.js → 6CFE45DS.js} +1 -1
- package/dist/cdn/{3OO25EFL.js → 6FO7XGJI.js} +1 -1
- package/dist/cdn/{ZQGJPLNV.js → 6KCRQUU2.js} +1 -1
- package/dist/cdn/{PZAJCVSB.js → 6NHRYOUM.js} +1 -1
- package/dist/cdn/{N2PWEYGH.js → 6OBOONFT.js} +1 -1
- package/dist/cdn/{BFOWWSBJ.js → 6QJART5C.js} +1 -1
- package/dist/cdn/{RSQRO6N4.js → 6T2LPI3X.js} +1 -1
- package/dist/cdn/{XGVUN7HD.js → 6TLW7H7K.js} +1 -1
- package/dist/cdn/{7VPGC6PP.js → 6Z2PKL3Q.js} +1 -1
- package/dist/cdn/{R4WFQOV2.js → 735KTZVX.js} +1 -1
- package/dist/cdn/{UT7A32W4.js → 7I4PGYKS.js} +1 -1
- package/dist/cdn/{FTG6IVAX.js → 7LHFGR4H.js} +1 -1
- package/dist/cdn/{5BXNJIZL.js → 7OBGTPPR.js} +1 -1
- package/dist/cdn/{DYS666GM.js → 7RAH5EVG.js} +1 -1
- package/dist/cdn/{AIIEETVV.js → 7TKAFHPQ.js} +1 -1
- package/dist/cdn/{BKJM5SV2.js → ABOBT3T4.js} +1 -1
- package/dist/cdn/{3AOF4LUS.js → AIG3WMQZ.js} +1 -1
- package/dist/cdn/{KHNP54MS.js → ALDG4D7D.js} +1 -1
- package/dist/cdn/{Z2B7ZWK7.js → ANZVLRJT.js} +1 -1
- package/dist/cdn/{AEDTK4OG.js → AOUUAE23.js} +1 -1
- package/dist/cdn/{XDUVNT35.js → ARV23EU3.js} +1 -1
- package/dist/cdn/{QVOJ5F2M.js → AVGJGETG.js} +1 -1
- package/dist/cdn/{A6EDA32H.js → BGM4XUZU.js} +1 -1
- package/dist/cdn/{Z573VDEH.js → BKQAI6LJ.js} +1 -1
- package/dist/cdn/{VGZEPYSI.js → BPUCTFAX.js} +1 -1
- package/dist/cdn/{UKZCK4AJ.js → BXAFVWAA.js} +1 -1
- package/dist/cdn/{QY2DVDK6.js → BZWJHWYX.js} +1 -1
- package/dist/cdn/{UOX7ZKHT.js → C23RVBVS.js} +1 -1
- package/dist/cdn/{4BTFW5SB.js → C546ZWKU.js} +1 -1
- package/dist/cdn/{7DCY2EZ2.js → CAVIHRZK.js} +1 -1
- package/dist/cdn/{RKCZ6J6H.js → CQXY7SJM.js} +1 -1
- package/dist/cdn/{GNZ3S53I.js → CYJ6QJXX.js} +1 -1
- package/dist/cdn/{B4L5PPNM.js → D24A3GLO.js} +1 -1
- package/dist/cdn/{BSE5M4WJ.js → DN6MOY5G.js} +1 -1
- package/dist/cdn/{7Q24HHLE.js → DSECTHHM.js} +1 -1
- package/dist/cdn/{OPQ6WR3U.js → E2LIK6WT.js} +1 -1
- package/dist/cdn/{CZZMWS47.js → E3R4JVWQ.js} +1 -1
- package/dist/cdn/{C6WWDTK5.js → E4ZB3XSO.js} +1 -1
- package/dist/cdn/{GZUDQT4W.js → EA4WNULX.js} +1 -1
- package/dist/cdn/EAQ2VQI5.js +2 -0
- package/dist/cdn/{SJB6YRC2.js → ED5CXPEX.js} +1 -1
- package/dist/cdn/{MDY46VRM.js → ENEAXKUO.js} +1 -1
- package/dist/cdn/{NQ775DQU.js → ENWA56JZ.js} +1 -1
- package/dist/cdn/{JYT73FMY.js → EOHUF6VD.js} +1 -1
- package/dist/cdn/{Q7YESQZ6.js → ERE325DF.js} +1 -1
- package/dist/cdn/{YB2ZOOL5.js → EWSAMTBG.js} +1 -1
- package/dist/cdn/{YGW5PYWZ.js → FFA6XVSZ.js} +1 -1
- package/dist/cdn/{J2C44B5O.js → FMZDSTZ4.js} +1 -1
- package/dist/cdn/{AZ2NOHFM.js → FNQ2RQWI.js} +1 -1
- package/dist/cdn/{B44PMQ6T.js → FQ64QECH.js} +1 -1
- package/dist/cdn/{H7BLPCZL.js → FUWUUCR2.js} +1 -1
- package/dist/cdn/{UWIUWHBJ.js → FX32EVP5.js} +1 -1
- package/dist/cdn/{OBW7EFHZ.js → FYNVMEQY.js} +1 -1
- package/dist/cdn/{TGC7KZDG.js → FYU5ZKWU.js} +1 -1
- package/dist/cdn/{GKR6XHM7.js → FYUHE7O6.js} +1 -1
- package/dist/cdn/{I3TBDPXT.js → GEGU42FN.js} +1 -1
- package/dist/cdn/{PGPD73AA.js → GV4R2O37.js} +1 -1
- package/dist/cdn/{ABZTY6UH.js → H374CPGH.js} +1 -1
- package/dist/cdn/{ADD3FVD6.js → H73YW3CI.js} +1 -1
- package/dist/cdn/{B7RY25MR.js → HAYFOL4X.js} +1 -1
- package/dist/cdn/{TD5P6HY7.js → HE373PPZ.js} +1 -1
- package/dist/cdn/{NM2Z5DK4.js → HHNPDTP3.js} +1 -1
- package/dist/cdn/{V36U3LJY.js → HL2NGDD4.js} +1 -1
- package/dist/cdn/{JYA2EGFP.js → HLG6PN4E.js} +1 -1
- package/dist/cdn/{6MBZ7QVK.js → HP2M4OON.js} +1 -1
- package/dist/cdn/{LK4Z556U.js → HR4YG75X.js} +1 -1
- package/dist/cdn/HZF3Y7HB.js +2 -0
- package/dist/cdn/{BYBIT2IT.js → I7ZMV7WM.js} +1 -1
- package/dist/cdn/{EBWEXHTI.js → IA3LICHL.js} +1 -1
- package/dist/cdn/{RPMP66ZL.js → IAU2QJ2I.js} +1 -1
- package/dist/cdn/{I4SCP6ZV.js → IDW3KKYQ.js} +1 -1
- package/dist/cdn/{L3HVK5YP.js → II5BGFBA.js} +1 -1
- package/dist/cdn/{6CIXAVQQ.js → IKITFQPI.js} +1 -1
- package/dist/cdn/{BIF3MEKI.js → ILFOYAFD.js} +1 -1
- package/dist/cdn/{XK7TDSZH.js → IPLGHDQX.js} +1 -1
- package/dist/cdn/{237U5I5A.js → IPYABV5P.js} +1 -1
- package/dist/cdn/{U5PGFRAC.js → IUI4XPPN.js} +1 -1
- package/dist/cdn/{QKSOMJZ7.js → JJWBX6HS.js} +1 -1
- package/dist/cdn/{KKCQY35G.js → JWSQ2RDT.js} +1 -1
- package/dist/cdn/{27T6ADBM.js → KA2OPMCZ.js} +1 -1
- package/dist/cdn/{J2ZY7NQM.js → KIBNAMZC.js} +1 -1
- package/dist/cdn/{FDCZDZTJ.js → KZ6DGS6U.js} +1 -1
- package/dist/cdn/{46SJ2WZ4.js → L2ROHG7Y.js} +1 -1
- package/dist/cdn/{MUQJQCCT.js → L5WWA6TU.js} +1 -1
- package/dist/cdn/{7JFVOQ2U.js → LC4VP7VW.js} +1 -1
- package/dist/cdn/{6CLQDAVM.js → LF5YEVRR.js} +1 -1
- package/dist/cdn/{2XLW63AT.js → LKAC2SG5.js} +1 -1
- package/dist/cdn/{KF45ZCQ7.js → LMOTZTKZ.js} +1 -1
- package/dist/cdn/{AJK2DJ4T.js → LMPV7HXC.js} +1 -1
- package/dist/cdn/{3IWYOOTJ.js → LYBQ4QMR.js} +1 -1
- package/dist/cdn/{EM4RDQBB.js → M35LZQ3E.js} +1 -1
- package/dist/cdn/{YYJJ4JLI.js → M3FW2ETY.js} +1 -1
- package/dist/cdn/{47EZUZOL.js → M3UZIXIW.js} +1 -1
- package/dist/cdn/{XHPVRCOP.js → M5XSHOZN.js} +1 -1
- package/dist/cdn/{3UFD4Q2O.js → MWTFNGQG.js} +1 -1
- package/dist/cdn/{WC7DFCX6.js → MZYDF3SX.js} +1 -1
- package/dist/cdn/{WQH6LR5Y.js → N32HCBHE.js} +1 -1
- package/dist/cdn/{D5767T7K.js → NBRCRKJS.js} +1 -1
- package/dist/cdn/{RSKWFUJQ.js → NGPRV7GX.js} +1 -1
- package/dist/cdn/{UL5QJXSR.js → NIFL76L3.js} +1 -1
- package/dist/cdn/{GVXARY7I.js → NIO2FWOM.js} +1 -1
- package/dist/cdn/{K7P562BX.js → NKYQJXG3.js} +1 -1
- package/dist/cdn/{Y6GBJTWV.js → NNWW7UYB.js} +1 -1
- package/dist/cdn/{TZNCFP53.js → NTI4FZRO.js} +1 -1
- package/dist/cdn/{D72D7F2T.js → O3ZVONZY.js} +1 -1
- package/dist/cdn/{N6F2BL3S.js → O7HYYYCW.js} +1 -1
- package/dist/cdn/{54QAWMZ2.js → OAT5SIFZ.js} +1 -1
- package/dist/cdn/{NQHTDTQ5.js → ODDYXGPM.js} +1 -1
- package/dist/cdn/{HH47EL36.js → ODEHD2AS.js} +1 -1
- package/dist/cdn/{3TMMK5TC.js → OG44OWRC.js} +1 -1
- package/dist/cdn/{YPNWRUV3.js → OJ53IJ7X.js} +1 -1
- package/dist/cdn/{GFKWZEAG.js → OM6RJ7IR.js} +1 -1
- package/dist/cdn/{7YKVITK5.js → OMAHIU3D.js} +1 -1
- package/dist/cdn/{ZWW2ANTZ.js → ONQKUD62.js} +1 -1
- package/dist/cdn/{X664S644.js → OOQLY7GT.js} +1 -1
- package/dist/cdn/{KQDPXK2V.js → OQRGRMYU.js} +1 -1
- package/dist/cdn/{6GOCA4V6.js → P3WIXEVM.js} +1 -1
- package/dist/cdn/{FL5JTHNR.js → PINI4EU2.js} +1 -1
- package/dist/cdn/PJZJB7ZN.js +2 -0
- package/dist/cdn/{USSXEVPC.js → PKSTOZQM.js} +1 -1
- package/dist/cdn/{QIAWXSZO.js → PMM766T4.js} +1 -1
- package/dist/cdn/{LKYJ5MXW.js → Q5T6RT5P.js} +1 -1
- package/dist/cdn/{FBTUKE2X.js → QEHY3M4V.js} +1 -1
- package/dist/cdn/{VME4SEBG.js → QHJBN465.js} +1 -1
- package/dist/cdn/{BY5RV2O2.js → R2JOB5RQ.js} +1 -1
- package/dist/cdn/{QG3FVT3A.js → RHCEH4B3.js} +1 -1
- package/dist/cdn/{R56OSVAF.js → RHGDAXZU.js} +1 -1
- package/dist/cdn/{2NGTS4IM.js → RHVNBZZW.js} +1 -1
- package/dist/cdn/{42IUOSCC.js → RQ3WEQ2W.js} +1 -1
- package/dist/cdn/{OQS6YKPA.js → RRQQ4DU7.js} +1 -1
- package/dist/cdn/{OZAVEDAG.js → RS35CVCR.js} +1 -1
- package/dist/cdn/{RSQOG6FF.js → RVGSV6XM.js} +1 -1
- package/dist/cdn/{UJQFRIQA.js → S5N6H2X7.js} +1 -1
- package/dist/cdn/{3C4S5RKO.js → SDXDLM3Z.js} +1 -1
- package/dist/cdn/{PBBJCTHI.js → SE2DCWBQ.js} +1 -1
- package/dist/cdn/{KMZXLPKZ.js → SKVHPNKI.js} +1 -1
- package/dist/cdn/{UDSPO3N4.js → STVJFDNC.js} +1 -1
- package/dist/cdn/{K3UC44KX.js → SUNJWLGQ.js} +1 -1
- package/dist/cdn/{Y7I4CPLY.js → SXWZTWLF.js} +1 -1
- package/dist/cdn/{4S2B4MOY.js → SYIIL5TL.js} +1 -1
- package/dist/cdn/{BQ6PFZDG.js → SZE4OTL6.js} +1 -1
- package/dist/cdn/{I2YHWTFJ.js → T2JO557H.js} +1 -1
- package/dist/cdn/{H4YY26MH.js → TS2NM4GD.js} +1 -1
- package/dist/cdn/{XVBRGJJ3.js → TYQTIMMT.js} +1 -1
- package/dist/cdn/{ZRWTQWJW.js → TZCCIWDD.js} +1 -1
- package/dist/cdn/{XOSGVDE2.js → UA744W2W.js} +1 -1
- package/dist/cdn/{5D4DIU6R.js → UCYXRJVE.js} +1 -1
- package/dist/cdn/{OV6I3H2X.js → UQGLGNL3.js} +1 -1
- package/dist/cdn/{NRC4PGGY.js → UQH3H6QL.js} +1 -1
- package/dist/cdn/{26GRNDD3.js → UQLETO2U.js} +1 -1
- package/dist/cdn/URDT24BJ.js +2 -0
- package/dist/cdn/{XMRUII5L.js → V3FLOGUZ.js} +1 -1
- package/dist/cdn/VBLOZY3N.js +2 -0
- package/dist/cdn/{BWTPCYNX.js → VCQGCHTE.js} +1 -1
- package/dist/cdn/{IHUORLQV.js → VELAKP67.js} +1 -1
- package/dist/cdn/{KK7ROCO4.js → VL2ZXSIL.js} +1 -1
- package/dist/cdn/{PPOSVBCV.js → VRT7F2KN.js} +1 -1
- package/dist/cdn/{UFNVXJFI.js → VTK7PR62.js} +1 -1
- package/dist/cdn/{G24BYXK5.js → VZ4WYD2R.js} +1 -1
- package/dist/cdn/{RYUTUOUL.js → W35HEVDC.js} +1 -1
- package/dist/cdn/{ASGNIA7K.js → WGHCOO3R.js} +1 -1
- package/dist/cdn/{CT2B4JBU.js → WLKTNQCC.js} +1 -1
- package/dist/cdn/{4M5OC7SW.js → WRUH5YIG.js} +1 -1
- package/dist/cdn/{HYU3NTA7.js → WVDRHMUO.js} +1 -1
- package/dist/cdn/{AP5SX3EI.js → WZIBJB3V.js} +1 -1
- package/dist/cdn/{ATM3KDEE.js → X2BOPIGW.js} +1 -1
- package/dist/cdn/{EWYU7LPC.js → X4E6T3K4.js} +1 -1
- package/dist/cdn/{2ILNQKWY.js → XBDMPYNW.js} +1 -1
- package/dist/cdn/{5NHWTIYG.js → XCZXAWKT.js} +1 -1
- package/dist/cdn/{CNJ6SN5S.js → XK2C3KRQ.js} +1 -1
- package/dist/cdn/{MAWMRFEQ.js → XN32HPFA.js} +1 -1
- package/dist/cdn/{S33WOKNL.js → XXNRBKXM.js} +1 -1
- package/dist/cdn/{IW32PZT2.js → XXYTIESL.js} +1 -1
- package/dist/cdn/{FRMNUFSU.js → XZOO2WCY.js} +1 -1
- package/dist/cdn/{BXK7AJQG.js → YE326KQ6.js} +1 -1
- package/dist/cdn/{J3CIJZP5.js → YESD7H5X.js} +1 -1
- package/dist/cdn/{3MWLBCHB.js → YM2MVBJ3.js} +1 -1
- package/dist/cdn/{FO7KY7DO.js → YMIIANHD.js} +1 -1
- package/dist/cdn/{RB7UDIMI.js → YPVLWVDG.js} +1 -1
- package/dist/cdn/{R3NG6GO5.js → YQXZOATB.js} +1 -1
- package/dist/cdn/{XXMDW7UV.js → YWS4JOAW.js} +1 -1
- package/dist/cdn/{ZZPBMUSR.js → YXQKNZVH.js} +1 -1
- package/dist/cdn/{ERXEPWUJ.js → YY6JPZLR.js} +1 -1
- package/dist/cdn/{7HKH3ZEA.js → ZGPBSNUG.js} +1 -1
- package/dist/cdn/{N7RHUI2D.js → ZJ7IUHQW.js} +1 -1
- package/dist/cdn/{VMDV6CWP.js → ZLW7MHNW.js} +1 -1
- package/dist/cdn/{T54NCGUQ.js → ZPGFEYU5.js} +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/chunks/runtime.js +1 -1
- package/dist/components/arcgis-feature-title/customElement.js +7 -6
- package/dist/components/arcgis-multi-feature-form/customElement.d.ts +9 -7
- package/dist/components/arcgis-multi-feature-form/customElement.js +98 -21
- package/dist/components/arcgis-paste/customElement.js +1 -1
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/vscode.html-custom-data.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/loader.js +1 -1
- package/dist/types/lumina.d.ts +1 -1
- package/dist/types/preact.d.ts +1 -1
- package/dist/types/react.d.ts +1 -1
- package/dist/types/stencil.d.ts +1 -1
- package/package.json +4 -4
- package/dist/cdn/4Q7JOXMR.js +0 -2
- package/dist/cdn/6ULWJF4W.js +0 -2
- package/dist/cdn/E7MZGFTI.js +0 -2
- package/dist/cdn/JMQJ3WPN.js +0 -2
- package/dist/cdn/MKZT66UA.js +0 -2
- package/dist/cdn/PWEBZBLN.js +0 -2
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import i from"./R4WFQOV2.js";import{a as _}from"./NQ775DQU.js";import{a as D}from"./54VXNFQ4.js";import e from"./G24BYXK5.js";import c from"./YGW5PYWZ.js";import{h as b}from"./BSE5M4WJ.js";import"./LK4Z556U.js";import a from"./TD5P6HY7.js";import{d as u}from"./B7RY25MR.js";import{M as d,N as g,O as w,P as h,R as f,U as y,a as v,b as o,x}from"./XF2Q2HB6.js";import"./3TTFCHAA.js";export default $arcgis.t(([{on:I,when:C,watch:H},P,{property:p,subclass:M},,,,$])=>{var O=Object.defineProperty,L=Object.getOwnPropertyDescriptor,l=(i,e,t,a)=>{for(var s=a>1?void 0:a?L(e,t):e,n=i.length-1,c;n>=0;n--)(c=i[n])&&(s=(a?c(e,t,s):c(s))||s);return a&&s&&O(e,t,s),s},E=new EventTarget;function S(i,e,t){let a=!1,s=H(i,(n,c)=>{a||e(n,c)},t);return{remove(){s.remove()},pause(){a=!0},resume(){a=!1}}}var r=class extends P{constructor(i){super(i),this._viewpointHandle=null,this.addHandles(I(()=>E,"expand",e=>{let{target:t}=e.detail;t!==this&&t.expanded&&t.group&&t.group===this.group&&this.expanded&&this._collapse()}))}destroy(){this._viewpointHandle=null,this.view=null}set autoCollapse(i){this._set("autoCollapse",i),this._watchViewpoint()}set expanded(i){this._set("expanded",i),this.group&&i&&E.dispatchEvent(new CustomEvent("expand",{detail:{target:this}})),this._viewpointHandleChange(i)}get state(){return this.view?.ready?"ready":"disabled"}set view(i){this._get("view")!==i&&(this._set("view",i),i&&C(()=>i.ready,()=>{this.view===i&&this._watchViewpoint()},{once:!0,initial:!0}))}_viewpointHandleChange(i){this._viewpointHandle&&(i?C(()=>this.view?.stationary,()=>this._viewpointHandle?.resume(),{once:!0,initial:!0}):this._viewpointHandle.pause())}_watchViewpoint(){let i="viewpoint";this.removeHandles(i),this._viewpointHandle=null;let{autoCollapse:e,view:t}=this;if(!t||!e)return;let a=S(()=>t.type==="3d"?t.camera:t.viewpoint,()=>this._collapse());this.addHandles(a,i),this._viewpointHandle=a}_collapse(){this.expanded=!1}};l([p({value:!1})],r.prototype,"autoCollapse",1);l([p({value:!1})],r.prototype,"expanded",1);l([p()],r.prototype,"group",2);l([p({readOnly:!0})],r.prototype,"state",1);l([p({value:null})],r.prototype,"view",1);r=l([M("map-components.expand.ExpandViewModel")],r);var j=v`:host{display:flex;pointer-events:auto;--arcgis-internal-expand-icon-number-spacing-left: none;--arcgis-internal-expand-icon-number-spacing-right: none}arcgis-expand>.content-expanded{background-color:var(--calcite-color-background)}.root{--esri-widget-panel-max-height: 95svh;--calcite-sheet-max-height: var(--esri-widget-panel-max-height);--calcite-sheet-height: auto;--calcite-action-corner-radius: 0}.action{cursor:pointer;text-align:center;color:var(--calcite-color-text-2);justify-content:center;align-items:center;margin:0;padding:0;font-size:var(--calcite-font-size);transition:background-color .125s ease-in-out;display:flex;flex-direction:column;overflow:hidden}.toggle{position:relative}.popover-content{flex-direction:column;display:flex;max-height:var(--arcgis-internal-expand-max-height, 95svh);::slotted(*){max-height:var(--arcgis-internal-expand-max-height, 95svh);overflow-y:auto}::slotted(arcgis-sketch){--arcgis-internal-sketch-gap: var(--calcite-spacing-none)}::slotted(:is(arcgis-area-measurement-2d,arcgis-area-measurement-3d,arcgis-basemap-gallery,arcgis-basemap-layer-list,arcgis-bookmarks,arcgis-building-explorer,arcgis-catalog-layer-list,arcgis-directions,arcgis-direct-line-measurement-3d,arcgis-distance-measurement-2d,arcgis-editor,arcgis-feature-form,arcgis-features,arcgis-layer-list,arcgis-layer-list-next,arcgis-legend,arcgis-line-of-sight,arcgis-print,arcgis-shadow-cast,arcgis-slice,arcgis-table-list,arcgis-utility-network-trace,arcgis-grid-controls)){width:var(--arcgis-internal-panel-width);min-width:var(--calcite-spacing-xxxl);min-height:var(--calcite-spacing-xxxl);transition:max-height .25s ease-in-out}}.popover-content .esri-widget--panel{width:300px}.panel{max-height:var(--esri-widget-panel-max-height)}.panel-content{::slotted(*){width:100%}::slotted(:is(arcgis-area-measurement-2d,arcgis-area-measurement-3d,arcgis-basemap-gallery,arcgis-basemap-layer-list,arcgis-bookmarks,arcgis-building-explorer,arcgis-catalog-layer-list,arcgis-directions,arcgis-direct-line-measurement-3d,arcgis-distance-measurement-2d,arcgis-editor,arcgis-feature-form,arcgis-features,arcgis-layer-list,arcgis-layer-list-next,arcgis-legend,arcgis-line-of-sight,arcgis-print,arcgis-shadow-cast,arcgis-slice,arcgis-table-list,arcgis-utility-network-trace,arcgis-grid-controls)){overflow-y:auto}}.panel-content .esri-widget{width:auto}.panel-content .esri-widget--panel{flex:auto}.arcgis-map-container-ui__element .popover-content .esri-widget,.arcgis-map-container-ui__element .popover-content .esri-widget.esri-component,.arcgis-map-container-ui__element .panel-content .esri-widget,.arcgis-map-container-ui__element .panel-content .esri-widget.esri-component,.popover-content .esri-widget,.popover-content .esri-widget.esri-component,.panel-content .esri-widget,.panel-content .esri-widget.esri-component{box-sizing:border-box;box-shadow:none;margin-bottom:0}.panel-content,.content-container{background-color:var(--calcite-color-foreground-1);flex-direction:column;flex:auto;justify-content:stretch;display:flex}.sheet .panel-content,.sheet .content-container{overflow:hidden}.panel-icon-number{align-self:center}.icon{display:flex}calcite-button:not(:hover) .icon:not(calcite-icon){color:var(--calcite-color-text-3)}.icon-flip{transform:var(--arcgis-internal-collapse-icon-flip)}.icon-number{transform-origin:50%;color:var(--calcite-color-text-inverse);pointer-events:none;background-color:var(--calcite-color-text-3);border-radius:var(--calcite-spacing-xl);justify-content:center;align-items:center;height:var(--calcite-spacing-lg);padding:.125em .333em;font-size:var(--calcite-font-size-sm);line-height:1em;display:flex;position:absolute;top:-6px;left:var(--arcgis-internal-expand-icon-number-spacing-left);right:var(--arcgis-internal-expand-icon-number-spacing-right)}`,k="chevrons-left",T="chevrons-right",z=$(r),m=class extends w{constructor(){super(...arguments),this.popoverEl=d(),this.messages=_({}),this.viewModel=z(this),this.toggleActionEl=d(),this.view=this.viewModel.view,this.state=this.viewModel.state,this.autoDestroyDisabled=!1,this.autoCollapse=this.viewModel.autoCollapse,this.closeOnEscDisabled=!1,this.content="",this.expanded=this.viewModel.expanded,this.expandTooltip="",this.collapseTooltip="",this.focusTrapDisabled=!1,this.group=this.viewModel.group,this.iconNumber=0,this.mode="auto",this.topLayerDisabled=!1,this.visualScale="m",this.arcgisPropertyChange=b()("expanded"),this.arcgisReady=x()}static{this.properties={expandTitle:16,_displaySheet:16,view:0,state:32,icon:1,label:1,autoDestroyDisabled:5,referenceElement:1,autoCollapse:5,closeOnEscDisabled:5,content:1,expanded:7,expandIcon:3,expandTooltip:1,collapseIcon:3,collapseTooltip:1,focusTrapDisabled:5,group:1,iconNumber:9,mode:1,placement:1,messageOverrides:0,topLayerDisabled:5,visualScale:1}}static{this.styles=j}get expandTitle(){let{expanded:e,messages:t,collapseTooltip:a,expandTooltip:s}=this;return(e?a||t.collapse:s||t.expand)??""}get _displaySheet(){switch(this.mode){case"drawer":return!0;case"auto":return this.viewModel.view?.widthBreakpoint==="xsmall";default:return!1}}get expandIcon(){if(this._expandIcon)return this._expandIcon;let e=null;return this.content instanceof HTMLElement&&("widget"in this.content&&this.content.widget?.icon?e=this.content.widget.icon:"icon"in this.content?e=this.content.icon:e=this.content.getAttribute("icon")),e??k}set expandIcon(e){this._expandIcon=e}get collapseIcon(){return this._collapseIcon??T}set collapseIcon(e){this._collapseIcon=e}async collapse(){this.expanded=!1}async destroy(){await this.manager.destroy()}async expand(){this.expanded=!0}loaded(){this.manager.onLifecycle(()=>[H(()=>this.viewModel?.view?.size,()=>{this.popoverEl?.value?.reposition()},{initial:!0})])}toggle(){this.expanded=!this.expanded}getPopoverPlacement(){if(this.placement)return this.placement;switch(this.el.slot){case"bottom-start":case"bottom-left":return"right-end";case"bottom-right":case"bottom-end":return"left-end";case"top-start":case"top-left":return"right-start";case"top-right":case"top-end":return"left-start";default:return"auto"}}_isCloseOnEscapeDisabled(e){let{closeOnEscDisabled:t}=this;return typeof t=="function"?t(e):t}_handlePopoverClose(e){e.target===this.popoverEl.value&&this.collapse()}_handleKeyDown(e){this.expanded&&e.key==="Escape"&&this._isCloseOnEscapeDisabled(e)&&e.preventDefault()}render(){let{_displaySheet:e,toggleActionEl:t,expanded:a,label:s,topLayerDisabled:n}=this;return o`<div class=${h(u("root",D.widget))}>${this._renderToggle()}${e?o`<calcite-sheet class="sheet" height=l .label=${s??""} .topLayerDisabled=${n} @keydown=${this._handleKeyDown} .open=${a} position=block-end @calciteSheetClose=${this.collapse}><calcite-panel class="panel" closable .closed=${!a} .heading=${s} @keydown=${this._handleKeyDown} @calcitePanelClose=${this.collapse}><div class="panel-content">${this._renderContent()}</div></calcite-panel></calcite-sheet>`:t.value?o`<calcite-popover .focusTrapDisabled=${this.focusTrapDisabled} .label=${s??""} @keydown=${this._handleKeyDown} trigger-disabled .open=${a} overlay-positioning=fixed .placement=${this.getPopoverPlacement()} .referenceElement=${t.value} .topLayerDisabled=${n} @calcitePopoverClose=${this._handlePopoverClose} ${g(this.popoverEl)}><div class="popover-content">${this._renderContent()}</div></calcite-popover>`:null}</div>`}_renderBadgeNumber(){let{expanded:e,iconNumber:t}=this;return t&&!e?o`<span class="icon-number">${t}</span>`:null}_renderToggleButton(){let{expanded:e,expandTitle:t,expandIcon:a,collapseIcon:s}=this,n=e?s:a;return o`<calcite-action class=${h(u("action","icon",{"icon-flip":n===k||n===T}))} @click=${this.toggle} .text=${t} title=${t??f} .icon=${n} .scale=${this.visualScale} appearance=solid ${g(this.toggleActionEl)}></calcite-action>`}_renderToggle(){return o`<div class="toggle">${this._renderToggleButton()}${this._renderBadgeNumber()}</div>`}_renderContent(){return o`<div class="content-container"><slot></slot></div>`}};y("arcgis-expand",m);return m},"core/reactiveUtils","core/Accessor","core/accessorSupport/decorators",a,c,e,i)
|
|
2
|
+
import i from"./735KTZVX.js";import{a as _}from"./ENWA56JZ.js";import{a as D}from"./54VXNFQ4.js";import e from"./VZ4WYD2R.js";import c from"./FFA6XVSZ.js";import{h as b}from"./DN6MOY5G.js";import"./HR4YG75X.js";import a from"./HE373PPZ.js";import{d as u}from"./HAYFOL4X.js";import{M as d,N as g,O as w,P as h,R as f,U as y,a as v,b as o,x}from"./3QWV6QFB.js";import"./3TTFCHAA.js";export default $arcgis.t(([{on:I,when:C,watch:H},P,{property:p,subclass:M},,,,$])=>{var O=Object.defineProperty,L=Object.getOwnPropertyDescriptor,l=(i,e,t,a)=>{for(var s=a>1?void 0:a?L(e,t):e,n=i.length-1,c;n>=0;n--)(c=i[n])&&(s=(a?c(e,t,s):c(s))||s);return a&&s&&O(e,t,s),s},E=new EventTarget;function S(i,e,t){let a=!1,s=H(i,(n,c)=>{a||e(n,c)},t);return{remove(){s.remove()},pause(){a=!0},resume(){a=!1}}}var r=class extends P{constructor(i){super(i),this._viewpointHandle=null,this.addHandles(I(()=>E,"expand",e=>{let{target:t}=e.detail;t!==this&&t.expanded&&t.group&&t.group===this.group&&this.expanded&&this._collapse()}))}destroy(){this._viewpointHandle=null,this.view=null}set autoCollapse(i){this._set("autoCollapse",i),this._watchViewpoint()}set expanded(i){this._set("expanded",i),this.group&&i&&E.dispatchEvent(new CustomEvent("expand",{detail:{target:this}})),this._viewpointHandleChange(i)}get state(){return this.view?.ready?"ready":"disabled"}set view(i){this._get("view")!==i&&(this._set("view",i),i&&C(()=>i.ready,()=>{this.view===i&&this._watchViewpoint()},{once:!0,initial:!0}))}_viewpointHandleChange(i){this._viewpointHandle&&(i?C(()=>this.view?.stationary,()=>this._viewpointHandle?.resume(),{once:!0,initial:!0}):this._viewpointHandle.pause())}_watchViewpoint(){let i="viewpoint";this.removeHandles(i),this._viewpointHandle=null;let{autoCollapse:e,view:t}=this;if(!t||!e)return;let a=S(()=>t.type==="3d"?t.camera:t.viewpoint,()=>this._collapse());this.addHandles(a,i),this._viewpointHandle=a}_collapse(){this.expanded=!1}};l([p({value:!1})],r.prototype,"autoCollapse",1);l([p({value:!1})],r.prototype,"expanded",1);l([p()],r.prototype,"group",2);l([p({readOnly:!0})],r.prototype,"state",1);l([p({value:null})],r.prototype,"view",1);r=l([M("map-components.expand.ExpandViewModel")],r);var j=v`:host{display:flex;pointer-events:auto;--arcgis-internal-expand-icon-number-spacing-left: none;--arcgis-internal-expand-icon-number-spacing-right: none}arcgis-expand>.content-expanded{background-color:var(--calcite-color-background)}.root{--esri-widget-panel-max-height: 95svh;--calcite-sheet-max-height: var(--esri-widget-panel-max-height);--calcite-sheet-height: auto;--calcite-action-corner-radius: 0}.action{cursor:pointer;text-align:center;color:var(--calcite-color-text-2);justify-content:center;align-items:center;margin:0;padding:0;font-size:var(--calcite-font-size);transition:background-color .125s ease-in-out;display:flex;flex-direction:column;overflow:hidden}.toggle{position:relative}.popover-content{flex-direction:column;display:flex;max-height:var(--arcgis-internal-expand-max-height, 95svh);::slotted(*){max-height:var(--arcgis-internal-expand-max-height, 95svh);overflow-y:auto}::slotted(arcgis-sketch){--arcgis-internal-sketch-gap: var(--calcite-spacing-none)}::slotted(:is(arcgis-area-measurement-2d,arcgis-area-measurement-3d,arcgis-basemap-gallery,arcgis-basemap-layer-list,arcgis-bookmarks,arcgis-building-explorer,arcgis-catalog-layer-list,arcgis-directions,arcgis-direct-line-measurement-3d,arcgis-distance-measurement-2d,arcgis-editor,arcgis-feature-form,arcgis-features,arcgis-layer-list,arcgis-layer-list-next,arcgis-legend,arcgis-line-of-sight,arcgis-print,arcgis-shadow-cast,arcgis-slice,arcgis-table-list,arcgis-utility-network-trace,arcgis-grid-controls)){width:var(--arcgis-internal-panel-width);min-width:var(--calcite-spacing-xxxl);min-height:var(--calcite-spacing-xxxl);transition:max-height .25s ease-in-out}}.popover-content .esri-widget--panel{width:300px}.panel{max-height:var(--esri-widget-panel-max-height)}.panel-content{::slotted(*){width:100%}::slotted(:is(arcgis-area-measurement-2d,arcgis-area-measurement-3d,arcgis-basemap-gallery,arcgis-basemap-layer-list,arcgis-bookmarks,arcgis-building-explorer,arcgis-catalog-layer-list,arcgis-directions,arcgis-direct-line-measurement-3d,arcgis-distance-measurement-2d,arcgis-editor,arcgis-feature-form,arcgis-features,arcgis-layer-list,arcgis-layer-list-next,arcgis-legend,arcgis-line-of-sight,arcgis-print,arcgis-shadow-cast,arcgis-slice,arcgis-table-list,arcgis-utility-network-trace,arcgis-grid-controls)){overflow-y:auto}}.panel-content .esri-widget{width:auto}.panel-content .esri-widget--panel{flex:auto}.arcgis-map-container-ui__element .popover-content .esri-widget,.arcgis-map-container-ui__element .popover-content .esri-widget.esri-component,.arcgis-map-container-ui__element .panel-content .esri-widget,.arcgis-map-container-ui__element .panel-content .esri-widget.esri-component,.popover-content .esri-widget,.popover-content .esri-widget.esri-component,.panel-content .esri-widget,.panel-content .esri-widget.esri-component{box-sizing:border-box;box-shadow:none;margin-bottom:0}.panel-content,.content-container{background-color:var(--calcite-color-foreground-1);flex-direction:column;flex:auto;justify-content:stretch;display:flex}.sheet .panel-content,.sheet .content-container{overflow:hidden}.panel-icon-number{align-self:center}.icon{display:flex}calcite-button:not(:hover) .icon:not(calcite-icon){color:var(--calcite-color-text-3)}.icon-flip{transform:var(--arcgis-internal-collapse-icon-flip)}.icon-number{transform-origin:50%;color:var(--calcite-color-text-inverse);pointer-events:none;background-color:var(--calcite-color-text-3);border-radius:var(--calcite-spacing-xl);justify-content:center;align-items:center;height:var(--calcite-spacing-lg);padding:.125em .333em;font-size:var(--calcite-font-size-sm);line-height:1em;display:flex;position:absolute;top:-6px;left:var(--arcgis-internal-expand-icon-number-spacing-left);right:var(--arcgis-internal-expand-icon-number-spacing-right)}`,k="chevrons-left",T="chevrons-right",z=$(r),m=class extends w{constructor(){super(...arguments),this.popoverEl=d(),this.messages=_({}),this.viewModel=z(this),this.toggleActionEl=d(),this.view=this.viewModel.view,this.state=this.viewModel.state,this.autoDestroyDisabled=!1,this.autoCollapse=this.viewModel.autoCollapse,this.closeOnEscDisabled=!1,this.content="",this.expanded=this.viewModel.expanded,this.expandTooltip="",this.collapseTooltip="",this.focusTrapDisabled=!1,this.group=this.viewModel.group,this.iconNumber=0,this.mode="auto",this.topLayerDisabled=!1,this.visualScale="m",this.arcgisPropertyChange=b()("expanded"),this.arcgisReady=x()}static{this.properties={expandTitle:16,_displaySheet:16,view:0,state:32,icon:1,label:1,autoDestroyDisabled:5,referenceElement:1,autoCollapse:5,closeOnEscDisabled:5,content:1,expanded:7,expandIcon:3,expandTooltip:1,collapseIcon:3,collapseTooltip:1,focusTrapDisabled:5,group:1,iconNumber:9,mode:1,placement:1,messageOverrides:0,topLayerDisabled:5,visualScale:1}}static{this.styles=j}get expandTitle(){let{expanded:e,messages:t,collapseTooltip:a,expandTooltip:s}=this;return(e?a||t.collapse:s||t.expand)??""}get _displaySheet(){switch(this.mode){case"drawer":return!0;case"auto":return this.viewModel.view?.widthBreakpoint==="xsmall";default:return!1}}get expandIcon(){if(this._expandIcon)return this._expandIcon;let e=null;return this.content instanceof HTMLElement&&("widget"in this.content&&this.content.widget?.icon?e=this.content.widget.icon:"icon"in this.content?e=this.content.icon:e=this.content.getAttribute("icon")),e??k}set expandIcon(e){this._expandIcon=e}get collapseIcon(){return this._collapseIcon??T}set collapseIcon(e){this._collapseIcon=e}async collapse(){this.expanded=!1}async destroy(){await this.manager.destroy()}async expand(){this.expanded=!0}loaded(){this.manager.onLifecycle(()=>[H(()=>this.viewModel?.view?.size,()=>{this.popoverEl?.value?.reposition()},{initial:!0})])}toggle(){this.expanded=!this.expanded}getPopoverPlacement(){if(this.placement)return this.placement;switch(this.el.slot){case"bottom-start":case"bottom-left":return"right-end";case"bottom-right":case"bottom-end":return"left-end";case"top-start":case"top-left":return"right-start";case"top-right":case"top-end":return"left-start";default:return"auto"}}_isCloseOnEscapeDisabled(e){let{closeOnEscDisabled:t}=this;return typeof t=="function"?t(e):t}_handlePopoverClose(e){e.target===this.popoverEl.value&&this.collapse()}_handleKeyDown(e){this.expanded&&e.key==="Escape"&&this._isCloseOnEscapeDisabled(e)&&e.preventDefault()}render(){let{_displaySheet:e,toggleActionEl:t,expanded:a,label:s,topLayerDisabled:n}=this;return o`<div class=${h(u("root",D.widget))}>${this._renderToggle()}${e?o`<calcite-sheet class="sheet" height=l .label=${s??""} .topLayerDisabled=${n} @keydown=${this._handleKeyDown} .open=${a} position=block-end @calciteSheetClose=${this.collapse}><calcite-panel class="panel" closable .closed=${!a} .heading=${s} @keydown=${this._handleKeyDown} @calcitePanelClose=${this.collapse}><div class="panel-content">${this._renderContent()}</div></calcite-panel></calcite-sheet>`:t.value?o`<calcite-popover .focusTrapDisabled=${this.focusTrapDisabled} .label=${s??""} @keydown=${this._handleKeyDown} trigger-disabled .open=${a} overlay-positioning=fixed .placement=${this.getPopoverPlacement()} .referenceElement=${t.value} .topLayerDisabled=${n} @calcitePopoverClose=${this._handlePopoverClose} ${g(this.popoverEl)}><div class="popover-content">${this._renderContent()}</div></calcite-popover>`:null}</div>`}_renderBadgeNumber(){let{expanded:e,iconNumber:t}=this;return t&&!e?o`<span class="icon-number">${t}</span>`:null}_renderToggleButton(){let{expanded:e,expandTitle:t,expandIcon:a,collapseIcon:s}=this,n=e?s:a;return o`<calcite-action class=${h(u("action","icon",{"icon-flip":n===k||n===T}))} @click=${this.toggle} .text=${t} title=${t??f} .icon=${n} .scale=${this.visualScale} appearance=solid ${g(this.toggleActionEl)}></calcite-action>`}_renderToggle(){return o`<div class="toggle">${this._renderToggleButton()}${this._renderBadgeNumber()}</div>`}_renderContent(){return o`<div class="content-container"><slot></slot></div>`}};y("arcgis-expand",m);return m},"core/reactiveUtils","core/Accessor","core/accessorSupport/decorators",a,c,e,i)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import a from"./BJQE4ISL.js";import{a as o}from"./
|
|
2
|
+
import a from"./BJQE4ISL.js";import{a as o}from"./FNQ2RQWI.js";import"./DN6MOY5G.js";import"./HR4YG75X.js";import"./HAYFOL4X.js";import{O as i,U as l,a as s,b as t}from"./3QWV6QFB.js";import"./3TTFCHAA.js";export default $arcgis.t(([{watch:n},{f:c}])=>{var r=s`:host{display:flex;flex-direction:column;flex-grow:1}calcite-tabs{flex-grow:1}calcite-tab{--calcite-tab-content-block-padding: 0}calcite-loader{margin-right:var(--calcite-spacing-xxs)}`,a=class extends i{constructor(){super(...arguments),this._prevLayoutTemplateId=null,this._handles=o("disconnect"),this._selectedTab="layout",this._hasPendingExport=!1,this.hideAdvancedOptions=!1,this.autoPopulateAuthor=!1,this.hideFeatureAttributes=!1,this.hideIncludeTables=!1}static{this.properties={_selectedTab:16,_hasPendingExport:16,hideAdvancedOptions:5,autoPopulateAuthor:5,showSaveAs:5,arcgisSaveAs:0,viewModel:0,messages:0,showTemplateSelector:0,allowedFormatsForSaving:1,hideFeatureAttributes:5,hideIncludeTables:5}}static{this.styles=r}loaded(){this.manager.onLifecycle(()=>[this.viewModel.exportedLinks.on("change",()=>{this._handles.removeHandles("pending-exports"),this._handles.addHandles(this.viewModel.exportedLinks.toArray().map(e=>n(()=>e.state,()=>this.requestUpdate(),{initial:!0})),"pending-exports")})])}async _layoutTabChangeHandler(){let e=(this._prevLayoutTemplateId?this.viewModel.getLayoutTemplateById(this._prevLayoutTemplateId):null)??this.viewModel.defaultTemplate;await this.viewModel.applyTemplate(e),this._prevLayoutTemplateId=e?.id,this._selectedTab="layout"}async _mapOnlyTabChangeHandler(){this._updatePrevLayoutTemplateId(),await this.viewModel.applyTemplate("map-only"),this._selectedTab="map-only"}async _exportsTabChangeHandler(){this._updatePrevLayoutTemplateId(),this._selectedTab="exports"}_selectExportsTab(){this._updatePrevLayoutTemplateId(),this._selectedTab="exports"}_updatePrevLayoutTemplateId(){!c(this.viewModel.templateOptions.layout)&&this.viewModel.templateOptions.id&&(this._prevLayoutTemplateId=this.viewModel.templateOptions.id)}render(){let e=this.viewModel.exportedLinks.some(({state:d})=>d==="pending");return t`<calcite-tabs layout=center bordered><calcite-tab-nav slot=title-group><calcite-tab-title @calciteTabsActivate=${this._layoutTabChangeHandler} .selected=${this._selectedTab==="layout"}>${this.messages.layoutTab}</calcite-tab-title><calcite-tab-title @calciteTabsActivate=${this._mapOnlyTabChangeHandler} .selected=${this._selectedTab==="map-only"}>${this.messages.mapOnlyTab}</calcite-tab-title><calcite-tab-title @calciteTabsActivate=${this._exportsTabChangeHandler} .selected=${this._selectedTab==="exports"}>${e?t`<calcite-loader inline label=loading scale=s></calcite-loader>`:null}${this.messages.exportsTab}</calcite-tab-title></calcite-tab-nav><calcite-tab selected><arcgis-print-layout-panel .messages=${this.messages} .viewModel=${this.viewModel} .hideAdvancedOptions=${this.hideAdvancedOptions} .autoPopulateAuthor=${this.autoPopulateAuthor} .hideFeatureAttributes=${this.hideFeatureAttributes} .hideIncludeTables=${this.hideIncludeTables} .showTemplateSelector=${this.showTemplateSelector} .selectExportsTab=${this._selectExportsTab.bind(this)}></arcgis-print-layout-panel></calcite-tab><calcite-tab><arcgis-print-map-only-panel .messages=${this.messages} .viewModel=${this.viewModel} .hideAdvancedOptions=${this.hideAdvancedOptions} .selectExportsTab=${this._selectExportsTab.bind(this)}></arcgis-print-map-only-panel></calcite-tab><calcite-tab><arcgis-print-exports-panel .messages=${this.messages} .viewModel=${this.viewModel} .allowedFormatsForSaving=${this.allowedFormatsForSaving} .showSaveAs=${this.showSaveAs} .arcgisSaveAs=${this.arcgisSaveAs}></arcgis-print-exports-panel></calcite-tab></calcite-tabs>`}};l("arcgis-print-main-panel",a);return a},"core/reactiveUtils",a)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import i from"./FO7KY7DO.js";import{a as $,b as S,d as m,g as l,j as U,k as V}from"./S4I3X6AX.js";import{a as u}from"./IGSZABNU.js";import h from"./ASGNIA7K.js";import"./PC4PAQXQ.js";import e from"./R4WFQOV2.js";import{a as D}from"./NQ775DQU.js";import{a as p}from"./54VXNFQ4.js";import d from"./G24BYXK5.js";import c from"./YGW5PYWZ.js";import{h as k}from"./BSE5M4WJ.js";import"./LK4Z556U.js";import a from"./TD5P6HY7.js";import{d as y}from"./B7RY25MR.js";import{O as f,P as v,R as b,U as x,a as _,b as g,x as w}from"./XF2Q2HB6.js";import"./3TTFCHAA.js";export default $arcgis.t(([j,{isAboveGeodesicDistanceThreshold:C},{property:c,subclass:E},{watch:P},,,,M,{f:z},O])=>{var A=_`.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}.esri-unit-select{width:100%}.esri-unit-select__label{--calcite-label-margin-bottom: 0;width:100%}:host{display:block}.esri-measurement-widget-content{padding:var(--arcgis-internal-padding);flex-direction:column;gap:var(--calcite-spacing-xxl);display:flex;position:relative;overflow-y:auto}.esri-measurement-widget-content__error{color:var(--calcite-color-status-danger)}.esri-measurement-widget-content__error,.esri-measurement-widget-content__hint{overflow:hidden}.esri-measurement-widget-content__error p,.esri-measurement-widget-content__hint p{margin:0;padding:0}.esri-measurement-widget-content__hint,.esri-measurement-widget-content__error,.esri-measurement-widget-content__measurement,.esri-measurement-widget-content__measurement-item{flex-direction:column;gap:var(--calcite-spacing-md);animation:.25s ease-in-out esri-fade-in;display:flex}.esri-measurement-widget-content__measurement-item--disabled{color:var(--calcite-color-border-ghost)}.esri-measurement-widget-content__measurement-item__value{font-weight:var(--calcite-font-weight-semibold)}.esri-measurement-widget-content__actions{flex-direction:column;justify-content:center;gap:var(--calcite-spacing-xs);display:flex}:host{width:var(--arcgis-internal-panel-width, 300px)}.root{min-width:var(--arcgis-internal-panel-min-width);overflow:var(--arcgis-internal-panel-overflow, visible);height:fit-content}`,B=Object.defineProperty,T=Object.getOwnPropertyDescriptor,s=(t,e,r,o)=>{for(var i=o>1?void 0:o?T(e,r):e,n=t.length-1,d;n>=0;n--)(d=t[n])&&(i=(o?d(e,r,i):d(i))||i);return o&&i&&B(e,r,i),i},a=class extends O{constructor(){super(...arguments),this.supportedViewType="3d",this.unsupportedErrorMessage="The Direct Line Measurement 3D component is only supported in 3D views."}initialize(){this.addHandles(P(()=>({analysis:this.analysis,unit:this._userUnit}),({analysis:t,unit:e})=>{e&&(t.unit=e)},{sync:!0,initial:!0}))}get state(){let{analysis:t,disabled:e,operationState:r,ready:o,supported:i}=this,{valid:n}=t;return $({supported:i,disabled:e,ready:o,operationState:r,valid:n})}get displayState(){return S(this.state,!!this.analysis.startPoint)}get measurement(){let t=this.analysisView?.result,e=t?.mode??"euclidean";if(!this.analysis.valid)return{mode:e,directDistance:l(void 0),horizontalDistance:l(void 0),verticalDistance:l(void 0)};let r=t?.directDistance,o=r!=null&&C(r);return{mode:e,directDistance:l(o?void 0:r),horizontalDistance:l(t?.horizontalDistance),verticalDistance:l(t?.verticalDistance)}}get unitOptions(){return U(this._userUnitOptions,m,m)}set unitOptions(t){this._userUnitOptions=t}get unit(){return V(this._userUnit,this.analysis.unit,this.unitOptions,this.defaultMeasurementSystem)}set unit(t){this._userUnit=t}async place(t){await this.analysisView?.place(t)}clearAnalysis(){this.analysis.startPoint=null,this.analysis.endPoint=null}constructAnalysis(){return new j}};s([c({readOnly:!0})],a.prototype,"state",1);s([c({readOnly:!0})],a.prototype,"displayState",1);s([c({readOnly:!0})],a.prototype,"measurement",1);s([c()],a.prototype,"unitOptions",1);s([c()],a.prototype,"_userUnitOptions",2);s([c()],a.prototype,"unit",1);s([c()],a.prototype,"_userUnit",2);a=s([E("components.direct-line-measurement-3d.DirectLineMeasurement3dViewModel")],a);var G=M(a),h=class extends f{constructor(){super(...arguments),this.viewModel=G(this),this.messages=D({name:"directline-measurement-3d",blocking:!0}),this.view=this.viewModel.view,this.analysis=this.viewModel.analysis,this.autoDestroyDisabled=!1,this.hideStartButton=!1,this.hideUnitSelect=!1,this.hideVisualization=this.viewModel.hideVisualization,this.icon="measure-line",this.state=this.viewModel.state,this.unit=this.viewModel.unit,this.unitOptions=this.viewModel.unitOptions,this.arcgisPropertyChange=k()("analysis","state"),this.arcgisReady=w()}static{this.properties={view:0,analysis:0,autoDestroyDisabled:5,hideStartButton:5,hideUnitSelect:5,hideVisualization:5,icon:3,label:1,referenceElement:1,state:32,unit:1,unitOptions:0}}static{this.styles=A}async clear(){this.viewModel.clear()}async destroy(){await this.manager.destroy()}async start(){z(this.viewModel.start())}render(){let{messages:e,unit:r,unitOptions:o,viewModel:i}=this,{measurement:n,state:d}=i;return g`<div aria-label=${e.componentLabel??b} class=${v(y("root",p.widget,p.panel))} role=presentation><arcgis-measurement-content .state=${i.displayState} .hintLabel=${e.hint} .unsupportedLabel=${e.unsupported} .items=${[{title:e.direct,measurement:n.directDistance},{title:e.horizontal,measurement:n.horizontalDistance},{title:e.vertical,measurement:n.verticalDistance}]}>${u({hidden:this.hideUnitSelect,children:g`<arcgis-unit-select slot=settings .options=${o} .selectLabel=${e.unit} .value=${r} @arcgisUnitSelectChange=${L=>{this.unit=L.detail}}></arcgis-unit-select>`})}${u({hidden:this.hideStartButton,children:g`<calcite-button slot=actions .disabled=${d==="disabled"||d==="unsupported"} @click=${this.start}>${e.newMeasurement}</calcite-button>`})}</arcgis-measurement-content></div>`}};x("arcgis-direct-line-measurement-3d",h);return h},"analysis/DirectLineMeasurementAnalysis","applications/Components/analysisUtils","core/accessorSupport/decorators","core/reactiveUtils",a,c,d,e,h,i)
|
|
2
|
+
import i from"./YMIIANHD.js";import{a as $,b as S,d as m,g as l,j as U,k as V}from"./S4I3X6AX.js";import{a as u}from"./IGSZABNU.js";import h from"./WGHCOO3R.js";import"./PC4PAQXQ.js";import e from"./735KTZVX.js";import{a as D}from"./ENWA56JZ.js";import{a as p}from"./54VXNFQ4.js";import d from"./VZ4WYD2R.js";import c from"./FFA6XVSZ.js";import{h as k}from"./DN6MOY5G.js";import"./HR4YG75X.js";import a from"./HE373PPZ.js";import{d as y}from"./HAYFOL4X.js";import{O as f,P as v,R as b,U as x,a as _,b as g,x as w}from"./3QWV6QFB.js";import"./3TTFCHAA.js";export default $arcgis.t(([j,{isAboveGeodesicDistanceThreshold:C},{property:c,subclass:E},{watch:P},,,,M,{f:z},O])=>{var A=_`.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}.esri-unit-select{width:100%}.esri-unit-select__label{--calcite-label-margin-bottom: 0;width:100%}:host{display:block}.esri-measurement-widget-content{padding:var(--arcgis-internal-padding);flex-direction:column;gap:var(--calcite-spacing-xxl);display:flex;position:relative;overflow-y:auto}.esri-measurement-widget-content__error{color:var(--calcite-color-status-danger)}.esri-measurement-widget-content__error,.esri-measurement-widget-content__hint{overflow:hidden}.esri-measurement-widget-content__error p,.esri-measurement-widget-content__hint p{margin:0;padding:0}.esri-measurement-widget-content__hint,.esri-measurement-widget-content__error,.esri-measurement-widget-content__measurement,.esri-measurement-widget-content__measurement-item{flex-direction:column;gap:var(--calcite-spacing-md);animation:.25s ease-in-out esri-fade-in;display:flex}.esri-measurement-widget-content__measurement-item--disabled{color:var(--calcite-color-border-ghost)}.esri-measurement-widget-content__measurement-item__value{font-weight:var(--calcite-font-weight-semibold)}.esri-measurement-widget-content__actions{flex-direction:column;justify-content:center;gap:var(--calcite-spacing-xs);display:flex}:host{width:var(--arcgis-internal-panel-width, 300px)}.root{min-width:var(--arcgis-internal-panel-min-width);overflow:var(--arcgis-internal-panel-overflow, visible);height:fit-content}`,B=Object.defineProperty,T=Object.getOwnPropertyDescriptor,s=(t,e,r,o)=>{for(var i=o>1?void 0:o?T(e,r):e,n=t.length-1,d;n>=0;n--)(d=t[n])&&(i=(o?d(e,r,i):d(i))||i);return o&&i&&B(e,r,i),i},a=class extends O{constructor(){super(...arguments),this.supportedViewType="3d",this.unsupportedErrorMessage="The Direct Line Measurement 3D component is only supported in 3D views."}initialize(){this.addHandles(P(()=>({analysis:this.analysis,unit:this._userUnit}),({analysis:t,unit:e})=>{e&&(t.unit=e)},{sync:!0,initial:!0}))}get state(){let{analysis:t,disabled:e,operationState:r,ready:o,supported:i}=this,{valid:n}=t;return $({supported:i,disabled:e,ready:o,operationState:r,valid:n})}get displayState(){return S(this.state,!!this.analysis.startPoint)}get measurement(){let t=this.analysisView?.result,e=t?.mode??"euclidean";if(!this.analysis.valid)return{mode:e,directDistance:l(void 0),horizontalDistance:l(void 0),verticalDistance:l(void 0)};let r=t?.directDistance,o=r!=null&&C(r);return{mode:e,directDistance:l(o?void 0:r),horizontalDistance:l(t?.horizontalDistance),verticalDistance:l(t?.verticalDistance)}}get unitOptions(){return U(this._userUnitOptions,m,m)}set unitOptions(t){this._userUnitOptions=t}get unit(){return V(this._userUnit,this.analysis.unit,this.unitOptions,this.defaultMeasurementSystem)}set unit(t){this._userUnit=t}async place(t){await this.analysisView?.place(t)}clearAnalysis(){this.analysis.startPoint=null,this.analysis.endPoint=null}constructAnalysis(){return new j}};s([c({readOnly:!0})],a.prototype,"state",1);s([c({readOnly:!0})],a.prototype,"displayState",1);s([c({readOnly:!0})],a.prototype,"measurement",1);s([c()],a.prototype,"unitOptions",1);s([c()],a.prototype,"_userUnitOptions",2);s([c()],a.prototype,"unit",1);s([c()],a.prototype,"_userUnit",2);a=s([E("components.direct-line-measurement-3d.DirectLineMeasurement3dViewModel")],a);var G=M(a),h=class extends f{constructor(){super(...arguments),this.viewModel=G(this),this.messages=D({name:"directline-measurement-3d",blocking:!0}),this.view=this.viewModel.view,this.analysis=this.viewModel.analysis,this.autoDestroyDisabled=!1,this.hideStartButton=!1,this.hideUnitSelect=!1,this.hideVisualization=this.viewModel.hideVisualization,this.icon="measure-line",this.state=this.viewModel.state,this.unit=this.viewModel.unit,this.unitOptions=this.viewModel.unitOptions,this.arcgisPropertyChange=k()("analysis","state"),this.arcgisReady=w()}static{this.properties={view:0,analysis:0,autoDestroyDisabled:5,hideStartButton:5,hideUnitSelect:5,hideVisualization:5,icon:3,label:1,referenceElement:1,state:32,unit:1,unitOptions:0}}static{this.styles=A}async clear(){this.viewModel.clear()}async destroy(){await this.manager.destroy()}async start(){z(this.viewModel.start())}render(){let{messages:e,unit:r,unitOptions:o,viewModel:i}=this,{measurement:n,state:d}=i;return g`<div aria-label=${e.componentLabel??b} class=${v(y("root",p.widget,p.panel))} role=presentation><arcgis-measurement-content .state=${i.displayState} .hintLabel=${e.hint} .unsupportedLabel=${e.unsupported} .items=${[{title:e.direct,measurement:n.directDistance},{title:e.horizontal,measurement:n.horizontalDistance},{title:e.vertical,measurement:n.verticalDistance}]}>${u({hidden:this.hideUnitSelect,children:g`<arcgis-unit-select slot=settings .options=${o} .selectLabel=${e.unit} .value=${r} @arcgisUnitSelectChange=${L=>{this.unit=L.detail}}></arcgis-unit-select>`})}${u({hidden:this.hideStartButton,children:g`<calcite-button slot=actions .disabled=${d==="disabled"||d==="unsupported"} @click=${this.start}>${e.newMeasurement}</calcite-button>`})}</arcgis-measurement-content></div>`}};x("arcgis-direct-line-measurement-3d",h);return h},"analysis/DirectLineMeasurementAnalysis","applications/Components/analysisUtils","core/accessorSupport/decorators","core/reactiveUtils",a,c,d,e,h,i)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import{a as o}from"./
|
|
2
|
+
import{a as o}from"./3QWV6QFB.js";var p=o`.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}`;export{p as a};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import g from"./IW32PZT2.js";import f from"./R3NYK6BO.js";import e from"./R4WFQOV2.js";import{a as V}from"./NQ775DQU.js";import d from"./G24BYXK5.js";import c from"./YGW5PYWZ.js";import{h as F}from"./BSE5M4WJ.js";import"./LK4Z556U.js";import a from"./TD5P6HY7.js";import{d as x}from"./B7RY25MR.js";import{N as y,O as I,P as M,R as b,U as C,a as $,b as n,x as w}from"./XF2Q2HB6.js";import"./3TTFCHAA.js";export default $arcgis.t(([{substitute:k},{renderingSanitizer:B},N,{watch:H},{stripHTML:Z},P,,,,R,,{a:_,b:L,c:T,d:E,e:A,i:D,p:c}])=>{var z=$`:host{display:flex;flex:1 1 auto;background-color:var(--calcite-color-foreground-1);--calcite-color-background: var(--calcite-color-foreground-1)}.root{flex:1 1 auto}.root calcite-icon{box-sizing:content-box}.loading-container{display:flex;justify-content:center;padding:var(--calcite-spacing-md) 0;width:100%}.content-element{margin-bottom:var(--calcite-spacing-lg);padding:0 var(--calcite-spacing-sm);display:flex;flex-direction:column}.content-element:only-child,.content-element:last-child{margin-bottom:var(--calcite-spacing-xxs)}.last-edited-info{padding-top:var(--calcite-spacing-xs);font-size:var(--calcite-font-size-sm)}`,U=R(P),v=class extends I{constructor(){super(...arguments),this.messages=V(),this._rootFlowNode=null,this.internalFlowItems=new N,this.flowType="feature",this.viewModel=U(this),this.view=this.viewModel.view,this.icon="icon",this.isFeatureFromTable=this.viewModel.isFeatureFromTable,this.graphic=this.viewModel.graphic,this.defaultPopupTemplateEnabled=this.viewModel.defaultPopupTemplateEnabled,this.headingLevel=2,this.spatialReference=this.viewModel.spatialReference,this.timeZone=this.viewModel.timeZone,this.heading=this.viewModel.title,this.map=this.viewModel.map,this.chartAnimationDisabled=this.viewModel.abilities.chartAnimation,this.hideHeading=!1,this.hideContent=!1,this.hideAttachmentsContent=!1,this.hideCustomContent=!1,this.hideExpressionContent=!1,this.hideFieldsContent=!1,this.hideMediaContent=!1,this.showRelationshipContent=!1,this.hideTextContent=!1,this.showUtilityNetworkContent=!1,this.hideLastEditedInfo=!1,this.autoDestroyDisabled=!1,this.location=this.viewModel.location,this.state=this.viewModel.state,this.arcgisPropertyChange=F()("flowItems","state"),this.arcgisReady=w()}static{this.properties={popupTemplate:16,sourceLayer:16,fieldInfoMap:16,values:16,globalValues:16,internalFlowItems:16,flowType:1,viewModel:0,view:0,flowItems:0,referenceElement:1,icon:1,isFeatureFromTable:36,graphic:0,defaultPopupTemplateEnabled:5,headingLevel:9,spatialReference:0,timeZone:1,heading:0,map:0,chartAnimationDisabled:5,hideHeading:5,hideContent:5,hideAttachmentsContent:5,hideCustomContent:5,hideExpressionContent:5,hideFieldsContent:5,hideMediaContent:5,showRelationshipContent:5,hideTextContent:5,showUtilityNetworkContent:5,hideLastEditedInfo:5,autoDestroyDisabled:5,messageOverrides:0,label:1,location:0,state:32}}static{this.styles=z}get popupTemplate(){return T(this.graphic,this.defaultPopupTemplateEnabled)??void 0}get sourceLayer(){return E(this.graphic)}get fieldInfoMap(){return _(L(this.popupTemplate),this.sourceLayer)}get values(){return this.graphic?.attributes??{}}get globalValues(){return this.viewModel.formattedAttributes?.global??{}}async destroy(){this._removeFlowItems(),await this.manager.destroy()}async nextMedia(e){return this.viewModel.nextMedia(e)}async previousMedia(e){return this.viewModel.previousMedia(e)}async setActiveMedia(e,t){return this.viewModel.setActiveMedia(e,t)}async updateGeometry(){return await this.viewModel.updateGeometry()}loaded(){this.manager.onLifecycle(()=>[H(()=>[this.internalFlowItems?.length],()=>this._setFocus())])}_removeFlowItems(){this.internalFlowItems?.destroyAll()}_storeRootFlowNode(e){this._rootFlowNode=e}_setFocus(){this._rootFlowNode?.setFocus()}_handleDrillInBackClick(){this.internalFlowItems?.pop()?.destroy()}render(){let{state:e}=this.viewModel,t=n`<div class="container">${e==="error"?this._renderError():this._renderContentContainer()}</div>`;return n`<div class="root">${t}</div>`}_renderError(){let{messages:e,hideHeading:t}=this;return n`<calcite-notice icon=exclamation-mark-circle kind=danger open scale=s>${t?null:n`<div slot=title>${e.error}</div>`}<div slot=message>${e.loadingError}</div></calcite-notice>`}_renderAttachments(e){let{values:t,fieldInfoMap:i,sourceLayer:o,globalValues:s}=this,a=c({values:t,fieldInfoMap:i,globalValues:s,layer:o,text:e.title}),r=c({values:t,fieldInfoMap:i,globalValues:s,layer:o,text:e.description});return n`<arcgis-feature-attachments .headingLevel=${this.headingLevel} .heading=${a} class="content-element" .displayType=${e.displayType} .attachmentKeywords=${e.attachmentKeywords??void 0} .attachmentTypes=${e.attachmentTypes??void 0} .orderByFields=${e.orderByFields??void 0} .graphic=${this.graphic??void 0} .description=${r} .messages=${this.messages}></arcgis-feature-attachments>`}_renderCustom(e){return n`<arcgis-feature-content .creator=${e.creator} .destroyer=${e.destroyer??void 0} .graphic=${this.graphic??void 0} class="content-element"></arcgis-feature-content>`}_renderFields(e,t){let i=this.viewModel.formattedAttributes,{values:o,fieldInfoMap:s,sourceLayer:a,popupTemplate:r,globalValues:l,graphic:d}=this,h=!!e?.fieldInfos,p=(e.fieldInfos??r?.fieldInfos??[])?.filter(({fieldName:f})=>!!f&&(D(f)||A(f)||f in o)),u=r?.expressionInfos,m=c({values:o,fieldInfoMap:s,globalValues:l,layer:a,text:e.title}),g=c({values:o,fieldInfoMap:s,globalValues:l,layer:a,text:e.description});return n`<arcgis-feature-fields .headingLevel=${this.headingLevel} .heading=${m} class="content-element" .messages=${this.messages} .graphic=${d??void 0} .isContentFieldInfos=${h} .layer=${a} .description=${g} .values=${{...i?.global,...i?.content?.[t]}} .fieldInfos=${p} .expressionInfos=${u??void 0}></arcgis-feature-fields>`}_renderMedia(e,t){let{values:i,graphic:o,fieldInfoMap:s,sourceLayer:a,popupTemplate:r,globalValues:l}=this,{formattedAttributes:d,relatedInfos:h}=this.viewModel,p={...d?.global,...d?.content?.[t]},u=c({values:i,fieldInfoMap:s,globalValues:l,layer:a,text:e.title}),m=c({values:i,fieldInfoMap:s,globalValues:l,layer:a,text:e.description});return n`<arcgis-feature-media .activeMediaInfoIndex=${e.activeMediaInfoIndex??0} .chartAnimationDisabled=${this.chartAnimationDisabled} .headingLevel=${this.headingLevel} .heading=${u} class="content-element" .description=${m} .values=${i} .layer=${a} .graphic=${o??void 0} .messages=${this.messages} .fieldInfoMap=${s} .mediaInfos=${e.mediaInfos??[]} .popupTemplate=${r??void 0} .relatedInfos=${h} .formattedValues=${p}></arcgis-feature-media>`}_renderText(e){return n`<arcgis-feature-content .creator=${e.text} .graphic=${this.graphic??void 0} class="content-element"></arcgis-feature-content>`}_renderExpression(e,t){let i=this.viewModel.formattedAttributes,{fieldInfoMap:o}=this;return n`<arcgis-feature-expression .expressionInfo=${e.expressionInfo} .map=${this.map??void 0} .spatialReference=${this.spatialReference??void 0} .view=${this.viewModel.view??void 0} .graphic=${this.graphic??void 0} .location=${this.location??void 0} .headingLevel=${this.headingLevel} class="content-element" .interceptor=${this.viewModel.interceptor} .messages=${this.messages} .fieldInfoMap=${o} .values=${{...i?.global,...i?.content?.[t]}}></arcgis-feature-expression>`}_renderRelationship(e,t){let{values:i,graphic:o,fieldInfoMap:s,sourceLayer:a,globalValues:r}=this,{displayCount:l,orderByFields:d,relationshipId:h}=e,{formattedAttributes:p,view:u}=this.viewModel,m={...p?.global,...p?.content?.[t]},g=c({values:i,fieldInfoMap:s,globalValues:r,layer:a,text:e.title}),f=c({values:i,fieldInfoMap:s,globalValues:r,layer:a,text:e.description});return n`<arcgis-feature-relationship .autoDestroyDisabled=${this.autoDestroyDisabled} class="content-element" .flowItems=${this.flowItems??this.internalFlowItems} .description=${f} .layer=${a} .map=${this.map??void 0} .displayCount=${l} .graphic=${o??void 0} .heading=${g} .headingLevel=${this.headingLevel} .messages=${this.messages} .orderByFields=${d??void 0} .relationshipId=${h??void 0} .spatialReference=${this.spatialReference??void 0} .timeZone=${this.timeZone??void 0} .values=${m} .view=${u??void 0}></arcgis-feature-relationship>`}_renderAssociation(e){let{fieldInfoMap:t,globalValues:i,graphic:o,messages:s,sourceLayer:a,values:r}=this,l=c({values:r,fieldInfoMap:t,globalValues:i,layer:a,text:e.title}),d=c({values:r,fieldInfoMap:t,globalValues:i,layer:a,text:e.description});return n`<arcgis-feature-utility-network-associations .autoDestroyDisabled=${this.autoDestroyDisabled} .associationTypes=${e.associationTypes} class="content-element" .description=${d} .flowItems=${this.flowItems??this.internalFlowItems} .graphic=${o??void 0} .heading=${l} .headingLevel=${this.headingLevel} .layer=${a} .map=${this.map??void 0} .messages=${s} .parentFeatureViewModel=${this.viewModel} .referenceElement=${this.referenceElement} .spatialReference=${this.spatialReference??void 0} .timeZone=${this.timeZone??void 0} .view=${this.viewModel.view??void 0}></arcgis-feature-utility-network-associations>`}_renderContentElement(e,t){switch(e.type){case"attachments":return this.hideAttachmentsContent?null:this._renderAttachments(e);case"custom":return this.hideCustomContent?null:this._renderCustom(e);case"fields":return this.hideFieldsContent?null:this._renderFields(e,t);case"media":return this.hideMediaContent?null:this._renderMedia(e,t);case"text":return this.hideTextContent?null:this._renderText(e);case"expression":return this.hideExpressionContent?null:this._renderExpression(e,t);case"relationship":return this.showRelationshipContent?this._renderRelationship(e,t):null;case"utility-network-associations":return this.showUtilityNetworkContent?this._renderAssociation(e):null;default:return null}}_renderContent(){let{content:e,graphic:t}=this.viewModel;return e?Array.isArray(e)&&e.length?e.length?e.map(this._renderContentElement,this):null:typeof e=="string"?n`<arcgis-feature-content .creator=${e} .graphic=${t??void 0} class="content-element"></arcgis-feature-content>`:e instanceof HTMLElement?e:null:null}_renderContentContainer(){let{flowItems:e,hideContent:t,internalFlowItems:i,headingLevel:o,state:s,messages:a,heading:r,hideHeading:l}=this,d=t?null:n`<div class="main">${[this._renderContent(),this._renderLastEditInfo()]}</div>`,h=a.returnToInitialFeature??"";return e?d:n`<calcite-flow ${y(this._storeRootFlowNode)}><calcite-flow-item .loading=${s==="loading"} .headingLevel=${o} .heading=${l?void 0:Z(r)} .selected=${!i.length}>${!l&&r?n`<div slot=heading><div .innerHTML=${B.sanitize(r??"")??""}></div></div>`:null}${d}</calcite-flow-item>${i.toArray().map((p,u)=>n`<calcite-flow-item @calciteFlowItemBack=${m=>{m.preventDefault(),this._handleDrillInBackClick()}} .loading=${s==="loading"} .headingLevel=${o} .selected=${u===i.length-1}><calcite-action icon=move-up @click=${this._removeFlowItems} slot=header-actions-start .text=${h} title=${h??b}></calcite-action>${p}</calcite-flow-item>`)}</calcite-flow>`}_renderLastEditInfo(){let{hideLastEditedInfo:e,messages:t}=this,{lastEditInfo:i}=this.viewModel;if(!i||e)return null;let{date:o,user:s}=i,a=i.type==="edit"?s?t.lastEditedByUser:t.lastEdited:s?t.lastCreatedByUser:t.lastCreated,r=k(a??"",{date:o,user:s});return n`<div class=${M(x("last-edited-info","content-element"))}>${r}</div>`}};C("arcgis-feature",v);return v},"intl","applications/Components/sanitizerUtils","core/Collection","core/reactiveUtils","applications/Components/stringUtils","widgets/Feature/FeatureViewModel",a,c,d,e,f,g)
|
|
2
|
+
import g from"./XXYTIESL.js";import f from"./R3NYK6BO.js";import e from"./735KTZVX.js";import{a as V}from"./ENWA56JZ.js";import d from"./VZ4WYD2R.js";import c from"./FFA6XVSZ.js";import{h as F}from"./DN6MOY5G.js";import"./HR4YG75X.js";import a from"./HE373PPZ.js";import{d as x}from"./HAYFOL4X.js";import{N as y,O as I,P as M,R as b,U as C,a as $,b as n,x as w}from"./3QWV6QFB.js";import"./3TTFCHAA.js";export default $arcgis.t(([{substitute:k},{renderingSanitizer:B},N,{watch:H},{stripHTML:Z},P,,,,R,,{a:_,b:L,c:T,d:E,e:A,i:D,p:c}])=>{var z=$`:host{display:flex;flex:1 1 auto;background-color:var(--calcite-color-foreground-1);--calcite-color-background: var(--calcite-color-foreground-1)}.root{flex:1 1 auto}.root calcite-icon{box-sizing:content-box}.loading-container{display:flex;justify-content:center;padding:var(--calcite-spacing-md) 0;width:100%}.content-element{margin-bottom:var(--calcite-spacing-lg);padding:0 var(--calcite-spacing-sm);display:flex;flex-direction:column}.content-element:only-child,.content-element:last-child{margin-bottom:var(--calcite-spacing-xxs)}.last-edited-info{padding-top:var(--calcite-spacing-xs);font-size:var(--calcite-font-size-sm)}`,U=R(P),v=class extends I{constructor(){super(...arguments),this.messages=V(),this._rootFlowNode=null,this.internalFlowItems=new N,this.flowType="feature",this.viewModel=U(this),this.view=this.viewModel.view,this.icon="icon",this.isFeatureFromTable=this.viewModel.isFeatureFromTable,this.graphic=this.viewModel.graphic,this.defaultPopupTemplateEnabled=this.viewModel.defaultPopupTemplateEnabled,this.headingLevel=2,this.spatialReference=this.viewModel.spatialReference,this.timeZone=this.viewModel.timeZone,this.heading=this.viewModel.title,this.map=this.viewModel.map,this.chartAnimationDisabled=this.viewModel.abilities.chartAnimation,this.hideHeading=!1,this.hideContent=!1,this.hideAttachmentsContent=!1,this.hideCustomContent=!1,this.hideExpressionContent=!1,this.hideFieldsContent=!1,this.hideMediaContent=!1,this.showRelationshipContent=!1,this.hideTextContent=!1,this.showUtilityNetworkContent=!1,this.hideLastEditedInfo=!1,this.autoDestroyDisabled=!1,this.location=this.viewModel.location,this.state=this.viewModel.state,this.arcgisPropertyChange=F()("flowItems","state"),this.arcgisReady=w()}static{this.properties={popupTemplate:16,sourceLayer:16,fieldInfoMap:16,values:16,globalValues:16,internalFlowItems:16,flowType:1,viewModel:0,view:0,flowItems:0,referenceElement:1,icon:1,isFeatureFromTable:36,graphic:0,defaultPopupTemplateEnabled:5,headingLevel:9,spatialReference:0,timeZone:1,heading:0,map:0,chartAnimationDisabled:5,hideHeading:5,hideContent:5,hideAttachmentsContent:5,hideCustomContent:5,hideExpressionContent:5,hideFieldsContent:5,hideMediaContent:5,showRelationshipContent:5,hideTextContent:5,showUtilityNetworkContent:5,hideLastEditedInfo:5,autoDestroyDisabled:5,messageOverrides:0,label:1,location:0,state:32}}static{this.styles=z}get popupTemplate(){return T(this.graphic,this.defaultPopupTemplateEnabled)??void 0}get sourceLayer(){return E(this.graphic)}get fieldInfoMap(){return _(L(this.popupTemplate),this.sourceLayer)}get values(){return this.graphic?.attributes??{}}get globalValues(){return this.viewModel.formattedAttributes?.global??{}}async destroy(){this._removeFlowItems(),await this.manager.destroy()}async nextMedia(e){return this.viewModel.nextMedia(e)}async previousMedia(e){return this.viewModel.previousMedia(e)}async setActiveMedia(e,t){return this.viewModel.setActiveMedia(e,t)}async updateGeometry(){return await this.viewModel.updateGeometry()}loaded(){this.manager.onLifecycle(()=>[H(()=>[this.internalFlowItems?.length],()=>this._setFocus())])}_removeFlowItems(){this.internalFlowItems?.destroyAll()}_storeRootFlowNode(e){this._rootFlowNode=e}_setFocus(){this._rootFlowNode?.setFocus()}_handleDrillInBackClick(){this.internalFlowItems?.pop()?.destroy()}render(){let{state:e}=this.viewModel,t=n`<div class="container">${e==="error"?this._renderError():this._renderContentContainer()}</div>`;return n`<div class="root">${t}</div>`}_renderError(){let{messages:e,hideHeading:t}=this;return n`<calcite-notice icon=exclamation-mark-circle kind=danger open scale=s>${t?null:n`<div slot=title>${e.error}</div>`}<div slot=message>${e.loadingError}</div></calcite-notice>`}_renderAttachments(e){let{values:t,fieldInfoMap:i,sourceLayer:o,globalValues:s}=this,a=c({values:t,fieldInfoMap:i,globalValues:s,layer:o,text:e.title}),r=c({values:t,fieldInfoMap:i,globalValues:s,layer:o,text:e.description});return n`<arcgis-feature-attachments .headingLevel=${this.headingLevel} .heading=${a} class="content-element" .displayType=${e.displayType} .attachmentKeywords=${e.attachmentKeywords??void 0} .attachmentTypes=${e.attachmentTypes??void 0} .orderByFields=${e.orderByFields??void 0} .graphic=${this.graphic??void 0} .description=${r} .messages=${this.messages}></arcgis-feature-attachments>`}_renderCustom(e){return n`<arcgis-feature-content .creator=${e.creator} .destroyer=${e.destroyer??void 0} .graphic=${this.graphic??void 0} class="content-element"></arcgis-feature-content>`}_renderFields(e,t){let i=this.viewModel.formattedAttributes,{values:o,fieldInfoMap:s,sourceLayer:a,popupTemplate:r,globalValues:l,graphic:d}=this,h=!!e?.fieldInfos,p=(e.fieldInfos??r?.fieldInfos??[])?.filter(({fieldName:f})=>!!f&&(D(f)||A(f)||f in o)),u=r?.expressionInfos,m=c({values:o,fieldInfoMap:s,globalValues:l,layer:a,text:e.title}),g=c({values:o,fieldInfoMap:s,globalValues:l,layer:a,text:e.description});return n`<arcgis-feature-fields .headingLevel=${this.headingLevel} .heading=${m} class="content-element" .messages=${this.messages} .graphic=${d??void 0} .isContentFieldInfos=${h} .layer=${a} .description=${g} .values=${{...i?.global,...i?.content?.[t]}} .fieldInfos=${p} .expressionInfos=${u??void 0}></arcgis-feature-fields>`}_renderMedia(e,t){let{values:i,graphic:o,fieldInfoMap:s,sourceLayer:a,popupTemplate:r,globalValues:l}=this,{formattedAttributes:d,relatedInfos:h}=this.viewModel,p={...d?.global,...d?.content?.[t]},u=c({values:i,fieldInfoMap:s,globalValues:l,layer:a,text:e.title}),m=c({values:i,fieldInfoMap:s,globalValues:l,layer:a,text:e.description});return n`<arcgis-feature-media .activeMediaInfoIndex=${e.activeMediaInfoIndex??0} .chartAnimationDisabled=${this.chartAnimationDisabled} .headingLevel=${this.headingLevel} .heading=${u} class="content-element" .description=${m} .values=${i} .layer=${a} .graphic=${o??void 0} .messages=${this.messages} .fieldInfoMap=${s} .mediaInfos=${e.mediaInfos??[]} .popupTemplate=${r??void 0} .relatedInfos=${h} .formattedValues=${p}></arcgis-feature-media>`}_renderText(e){return n`<arcgis-feature-content .creator=${e.text} .graphic=${this.graphic??void 0} class="content-element"></arcgis-feature-content>`}_renderExpression(e,t){let i=this.viewModel.formattedAttributes,{fieldInfoMap:o}=this;return n`<arcgis-feature-expression .expressionInfo=${e.expressionInfo} .map=${this.map??void 0} .spatialReference=${this.spatialReference??void 0} .view=${this.viewModel.view??void 0} .graphic=${this.graphic??void 0} .location=${this.location??void 0} .headingLevel=${this.headingLevel} class="content-element" .interceptor=${this.viewModel.interceptor} .messages=${this.messages} .fieldInfoMap=${o} .values=${{...i?.global,...i?.content?.[t]}}></arcgis-feature-expression>`}_renderRelationship(e,t){let{values:i,graphic:o,fieldInfoMap:s,sourceLayer:a,globalValues:r}=this,{displayCount:l,orderByFields:d,relationshipId:h}=e,{formattedAttributes:p,view:u}=this.viewModel,m={...p?.global,...p?.content?.[t]},g=c({values:i,fieldInfoMap:s,globalValues:r,layer:a,text:e.title}),f=c({values:i,fieldInfoMap:s,globalValues:r,layer:a,text:e.description});return n`<arcgis-feature-relationship .autoDestroyDisabled=${this.autoDestroyDisabled} class="content-element" .flowItems=${this.flowItems??this.internalFlowItems} .description=${f} .layer=${a} .map=${this.map??void 0} .displayCount=${l} .graphic=${o??void 0} .heading=${g} .headingLevel=${this.headingLevel} .messages=${this.messages} .orderByFields=${d??void 0} .relationshipId=${h??void 0} .spatialReference=${this.spatialReference??void 0} .timeZone=${this.timeZone??void 0} .values=${m} .view=${u??void 0}></arcgis-feature-relationship>`}_renderAssociation(e){let{fieldInfoMap:t,globalValues:i,graphic:o,messages:s,sourceLayer:a,values:r}=this,l=c({values:r,fieldInfoMap:t,globalValues:i,layer:a,text:e.title}),d=c({values:r,fieldInfoMap:t,globalValues:i,layer:a,text:e.description});return n`<arcgis-feature-utility-network-associations .autoDestroyDisabled=${this.autoDestroyDisabled} .associationTypes=${e.associationTypes} class="content-element" .description=${d} .flowItems=${this.flowItems??this.internalFlowItems} .graphic=${o??void 0} .heading=${l} .headingLevel=${this.headingLevel} .layer=${a} .map=${this.map??void 0} .messages=${s} .parentFeatureViewModel=${this.viewModel} .referenceElement=${this.referenceElement} .spatialReference=${this.spatialReference??void 0} .timeZone=${this.timeZone??void 0} .view=${this.viewModel.view??void 0}></arcgis-feature-utility-network-associations>`}_renderContentElement(e,t){switch(e.type){case"attachments":return this.hideAttachmentsContent?null:this._renderAttachments(e);case"custom":return this.hideCustomContent?null:this._renderCustom(e);case"fields":return this.hideFieldsContent?null:this._renderFields(e,t);case"media":return this.hideMediaContent?null:this._renderMedia(e,t);case"text":return this.hideTextContent?null:this._renderText(e);case"expression":return this.hideExpressionContent?null:this._renderExpression(e,t);case"relationship":return this.showRelationshipContent?this._renderRelationship(e,t):null;case"utility-network-associations":return this.showUtilityNetworkContent?this._renderAssociation(e):null;default:return null}}_renderContent(){let{content:e,graphic:t}=this.viewModel;return e?Array.isArray(e)&&e.length?e.length?e.map(this._renderContentElement,this):null:typeof e=="string"?n`<arcgis-feature-content .creator=${e} .graphic=${t??void 0} class="content-element"></arcgis-feature-content>`:e instanceof HTMLElement?e:null:null}_renderContentContainer(){let{flowItems:e,hideContent:t,internalFlowItems:i,headingLevel:o,state:s,messages:a,heading:r,hideHeading:l}=this,d=t?null:n`<div class="main">${[this._renderContent(),this._renderLastEditInfo()]}</div>`,h=a.returnToInitialFeature??"";return e?d:n`<calcite-flow ${y(this._storeRootFlowNode)}><calcite-flow-item .loading=${s==="loading"} .headingLevel=${o} .heading=${l?void 0:Z(r)} .selected=${!i.length}>${!l&&r?n`<div slot=heading><div .innerHTML=${B.sanitize(r??"")??""}></div></div>`:null}${d}</calcite-flow-item>${i.toArray().map((p,u)=>n`<calcite-flow-item @calciteFlowItemBack=${m=>{m.preventDefault(),this._handleDrillInBackClick()}} .loading=${s==="loading"} .headingLevel=${o} .selected=${u===i.length-1}><calcite-action icon=move-up @click=${this._removeFlowItems} slot=header-actions-start .text=${h} title=${h??b}></calcite-action>${p}</calcite-flow-item>`)}</calcite-flow>`}_renderLastEditInfo(){let{hideLastEditedInfo:e,messages:t}=this,{lastEditInfo:i}=this.viewModel;if(!i||e)return null;let{date:o,user:s}=i,a=i.type==="edit"?s?t.lastEditedByUser:t.lastEdited:s?t.lastCreatedByUser:t.lastCreated,r=k(a??"",{date:o,user:s});return n`<div class=${M(x("last-edited-info","content-element"))}>${r}</div>`}};C("arcgis-feature",v);return v},"intl","applications/Components/sanitizerUtils","core/Collection","core/reactiveUtils","applications/Components/stringUtils","widgets/Feature/FeatureViewModel",a,c,d,e,f,g)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import{O as m,U as u,a as l,b as o}from"./
|
|
2
|
+
import{O as m,U as u,a as l,b as o}from"./3QWV6QFB.js";import"./3TTFCHAA.js";export default $arcgis.t(([{watch:c},d,f])=>{var p=l`.invalid-wkid-text{color:var(--calcite-color-status-danger);font-size:var(--calcite-font-size--0)}`,h=/^\s*\d+(?:\s*\+\s*\d+)*(?:\s*,\s*\d+(?:\s*\+\s*\d+)*)*\s*$/u;function T(i){if(!/^\d+$/u.test(i))return null;let t=Number(i);return Number.isSafeInteger(t)&&t>0?t:null}function v(i){if(!h.test(i))return null;let t=[];for(let s of i.split(",")){let r=[];for(let a of s.split("+")){let n=T(a.trim());if(n==null)return null;r.push(new f({wkid:n}))}t.push(new d({steps:r}))}return t}function _(i){return i==null||i.length===0?"":i.map(t=>t.steps.map(s=>s.wkid).filter(s=>s!=null).join("+")).filter(t=>t.length>0).join(",")}var e=class extends m{constructor(){super(...arguments),this._isValidDatumTransformations=!0}static{this.properties={_datumTransformations:16,_isValidDatumTransformations:16,templateOptions:0,viewModel:0,messages:0}}static{this.styles=p}loaded(){this.manager.onLifecycle(()=>[c(()=>this.viewModel.datumTransformations,t=>{this._datumTransformations=_(t),this._isValidDatumTransformations=!0},{initial:!0})])}render(){let{messages:t}=this,s=this.viewModel.cimVersion;if(!(s!=null&&Number.parseFloat(s)<3.7))return o`<div><calcite-label>${t.datumTransformations}<calcite-input .value=${this._datumTransformations??""} .max=${Number.MAX_SAFE_INTEGER} @calciteInputInput=${({currentTarget:r})=>{let a=r.value?.trim()??"";if(this._datumTransformations=a,a===""){this.viewModel.datumTransformations=null,this._isValidDatumTransformations=!0;return}let n=v(a);if(n==null){this._isValidDatumTransformations=!1;return}this._isValidDatumTransformations=!0,this.viewModel.datumTransformations=n}}></calcite-input>${this._isValidDatumTransformations?null:o`<div class="invalid-wkid-text">${t.invalidWkid}</div>`}</calcite-label></div>`}};u("arcgis-print-datum-transformation-input",e);return e},"core/reactiveUtils","geometry/operators/support/GeographicTransformation","geometry/operators/support/GeographicTransformationStep")
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import{a as y,b as f,c as v}from"./
|
|
2
|
+
import{a as y,b as f,c as v}from"./SKVHPNKI.js";import{a}from"./XUKTPPFV.js";import{a as p}from"./VL2ZXSIL.js";import b from"./VZ4WYD2R.js";import{f as m}from"./DN6MOY5G.js";import"./HR4YG75X.js";import"./HAYFOL4X.js";import{M as e,N as s,O as n,P as l,U as c,a as o,b as t,x as h}from"./3QWV6QFB.js";import"./3TTFCHAA.js";export default $arcgis.t(([{watch:w},u,{b:d}])=>{var R=o`:host{width:100%;height:100%}`,g=d(u,{omitProps:["container","navigation","scale","ui"]}),r=class extends n{constructor(){super(),this._containerRef=e(),this._direction=m(),this._mapRef=e(),this._slotGroupRefs=f(),this.autoDestroyDisabled=!1,this.view=g(this),this.attributionMode=this.view.attributionMode,this.ready=this.view.ready,this.layer=this.view.layer,this.map=this.view.map,this.operationalDataVisible=this.view.operationalDataVisible,this.arcgisViewReadyChange=h()}static{this.properties={autoDestroyDisabled:5,view:32,aria:0,attributionMode:1,ready:36,layer:0,map:0,operationalDataVisible:5}}static{this.styles=[p,y,R]}get aria(){return this.view?.aria}set aria(i){this.view&&(this.view.aria=i)}async destroy(){await this.manager.destroy()}loaded(){let i=this;i.el.childElem=this._mapRef.value,this.view.container??=i.el.childElem,this.manager.onLifecycle(()=>[w(()=>this.layer,()=>{this.layer&&this.view&&(this.view.layer=this.layer,this.layer.loaded||this.layer.load())},{initial:!0}),w(()=>this.view.ready,()=>{this.view.ready&&this.arcgisViewReadyChange.emit()},{initial:this.view.ready})])}renderMain(){return t`<div class=${`root ${a.base}`} ${s(this._mapRef)}></div>`}render(){return t`${this.renderMain()}<section class=${l(a.containerUI)} ${s(this._containerRef)}>${v({direction:this._direction,slotGroupRefs:this._slotGroupRefs})}</section>`}};c("arcgis-video",r);return r},"core/reactiveUtils","views/VideoView",b)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import{a as M}from"./RB7UDIMI.js";import{a as z}from"./FDCZDZTJ.js";import{c as S}from"./S4I3X6AX.js";import e from"./R4WFQOV2.js";import{a as C}from"./NQ775DQU.js";import d from"./G24BYXK5.js";import b from"./YGW5PYWZ.js";import{h as k}from"./BSE5M4WJ.js";import"./LK4Z556U.js";import a from"./TD5P6HY7.js";import"./B7RY25MR.js";import{M as u,N as h,O as $,P as _,U as y,a as x,b as n,f as c,q as g,x as v}from"./XF2Q2HB6.js";import"./3TTFCHAA.js";export default $arcgis.t(([{convertUnit:D},{getDefaultUnitForView:U},{hasDisplayProperties:b},I,O,f,A,,,,P])=>{var V=x`[class^=esri-icon-],[class*=" esri-icon-"]{speak:none;font-variant:normal;text-transform:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-style:normal;font-weight:var(--calcite-font-weight-normal);line-height:1;font-family:CalciteWebCoreIcons!important}.esri-icon-close:before{content:"";color:inherit}.esri-icon-drag-horizontal:before{content:"";color:inherit}.esri-icon-drag-vertical:before{content:"";color:inherit}.esri-icon-handle-horizontal:before{content:"";color:inherit}.esri-icon-handle-vertical:before{content:"";color:inherit}.esri-icon-check-mark:before{content:"";color:inherit}.esri-icon-left-triangle-arrow:before{content:"";color:inherit}.esri-icon-right-triangle-arrow:before{content:"";color:inherit}.esri-icon-down-arrow:before{content:"";color:inherit}.esri-icon-up-arrow:before{content:"";color:inherit}.esri-icon-overview-arrow-bottom-left:before{content:"";color:inherit}.esri-icon-overview-arrow-bottom-right:before{content:"";color:inherit}.esri-icon-overview-arrow-top-left:before{content:"";color:inherit}.esri-icon-overview-arrow-top-right:before{content:"";color:inherit}.esri-icon-maximize:before{content:"";color:inherit}.esri-icon-minimize:before{content:"";color:inherit}.esri-icon-checkbox-unchecked:before{content:"";color:inherit}.esri-icon-checkbox-checked:before{content:"";color:inherit}.esri-icon-radio-unchecked:before{content:"";color:inherit}.esri-icon-radio-checked:before{content:"";color:inherit}.esri-icon-up-arrow-circled:before{content:"";color:inherit}.esri-icon-down-arrow-circled:before{content:"";color:inherit}.esri-icon-left-arrow-circled:before{content:"";color:inherit}.esri-icon-right-arrow-circled:before{content:"";color:inherit}.esri-icon-zoom-out-fixed:before{content:"";color:inherit}.esri-icon-zoom-in-fixed:before{content:"";color:inherit}.esri-icon-refresh:before{content:"";color:inherit}.esri-icon-edit:before{content:"";color:inherit}.esri-icon-authorize:before{content:"";color:inherit}.esri-icon-map-pin:before{content:"";color:inherit}.esri-icon-blank-map-pin:before{content:"";color:inherit}.esri-icon-table:before{content:"";color:inherit}.esri-icon-plus:before{content:"";color:inherit}.esri-icon-minus:before{content:"";color:inherit}.esri-icon-beginning:before{content:"";color:inherit}.esri-icon-reverse:before{content:"";color:inherit}.esri-icon-pause:before{content:"";color:inherit}.esri-icon-play:before{content:"";color:inherit}.esri-icon-forward:before{content:"";color:inherit}.esri-icon-end:before{content:"";color:inherit}.esri-icon-erase:before{content:"";color:inherit}.esri-icon-up-down-arrows:before{content:"";color:inherit}.esri-icon-left:before{content:"";color:inherit}.esri-icon-right:before{content:"";color:inherit}.esri-icon-announcement:before{content:"";color:inherit}.esri-icon-notice-round:before{content:"";color:inherit}.esri-icon-notice-triangle:before{content:"";color:inherit}.esri-icon-home:before{content:"";color:inherit}.esri-icon-locate:before{content:"";color:inherit}.esri-icon-expand:before{content:"";color:inherit}.esri-icon-collapse:before{content:"";color:inherit}.esri-icon-layer-list:before{content:"";color:inherit}.esri-icon-basemap:before{content:"";color:inherit}.esri-icon-globe:before{content:"";color:inherit}.esri-icon-applications:before{content:"";color:inherit}.esri-icon-arrow-up-circled:before{content:"";color:inherit}.esri-icon-arrow-down-circled:before{content:"";color:inherit}.esri-icon-arrow-left-circled:before{content:"";color:inherit}.esri-icon-arrow-right-circled:before{content:"";color:inherit}.esri-icon-minus-circled:before{content:"";color:inherit}.esri-icon-plus-circled:before{content:"";color:inherit}.esri-icon-add-attachment:before{content:"";color:inherit}.esri-icon-attachment:before{content:"";color:inherit}.esri-icon-calendar:before{content:"";color:inherit}.esri-icon-close-circled:before{content:"";color:inherit}.esri-icon-browser:before{content:"";color:inherit}.esri-icon-collection:before{content:"";color:inherit}.esri-icon-comment:before{content:"";color:inherit}.esri-icon-configure-popup:before{content:"";color:inherit}.esri-icon-contact:before{content:"";color:inherit}.esri-icon-dashboard:before{content:"";color:inherit}.esri-icon-deny:before{content:"";color:inherit}.esri-icon-description:before{content:"";color:inherit}.esri-icon-directions:before{content:"";color:inherit}.esri-icon-directions2:before{content:"";color:inherit}.esri-icon-documentation:before{content:"";color:inherit}.esri-icon-duplicate:before{content:"";color:inherit}.esri-icon-review:before{content:"";color:inherit}.esri-icon-environment-settings:before{content:"";color:inherit}.esri-icon-error:before{content:"";color:inherit}.esri-icon-error2:before{content:"";color:inherit}.esri-icon-experimental:before{content:"";color:inherit}.esri-icon-feature-layer:before{content:"";color:inherit}.esri-icon-filter:before{content:"";color:inherit}.esri-icon-grant:before{content:"";color:inherit}.esri-icon-group:before{content:"";color:inherit}.esri-icon-key:before{content:"";color:inherit}.esri-icon-labels:before{content:"";color:inherit}.esri-icon-tag:before{content:"";color:inherit}.esri-icon-layers:before{content:"";color:inherit}.esri-icon-left-arrow:before{content:"";color:inherit}.esri-icon-right-arrow:before{content:"";color:inherit}.esri-icon-link-external:before{content:"";color:inherit}.esri-icon-link:before{content:"";color:inherit}.esri-icon-loading-indicator:before{content:"";color:inherit}.esri-icon-maps:before{content:"";color:inherit}.esri-icon-marketplace:before{content:"";color:inherit}.esri-icon-media:before{content:"";color:inherit}.esri-icon-media2:before{content:"";color:inherit}.esri-icon-menu:before{content:"";color:inherit}.esri-icon-mobile:before{content:"";color:inherit}.esri-icon-phone:before{content:"";color:inherit}.esri-icon-navigation:before{content:"";color:inherit}.esri-icon-pan:before{content:"";color:inherit}.esri-icon-printer:before{content:"";color:inherit}.esri-icon-pie-chart:before{content:"";color:inherit}.esri-icon-chart:before{content:"";color:inherit}.esri-icon-line-chart:before{content:"";color:inherit}.esri-icon-question:before{content:"";color:inherit}.esri-icon-resend-invitation:before{content:"";color:inherit}.esri-icon-rotate:before{content:"";color:inherit}.esri-icon-save:before{content:"";color:inherit}.esri-icon-settings:before{content:"";color:inherit}.esri-icon-settings2:before{content:"";color:inherit}.esri-icon-share:before{content:"";color:inherit}.esri-icon-sign-out:before{content:"";color:inherit}.esri-icon-support:before{content:"";color:inherit}.esri-icon-user:before{content:"";color:inherit}.esri-icon-time-clock:before{content:"";color:inherit}.esri-icon-trash:before{content:"";color:inherit}.esri-icon-upload:before{content:"";color:inherit}.esri-icon-download:before{content:"";color:inherit}.esri-icon-zoom-in-magnifying-glass:before{content:"";color:#6e6e6e}.esri-icon-search:before{content:"";color:inherit}.esri-icon-zoom-out-magnifying-glass:before{content:"";color:#6e6e6e}.esri-icon-locked:before{content:"";color:inherit}.esri-icon-unlocked:before{content:"";color:inherit}.esri-icon-favorites:before{content:"";color:inherit}.esri-icon-compass:before{content:"";color:inherit}.esri-icon-down:before{content:"";color:inherit}.esri-icon-up:before{content:"";color:inherit}.esri-icon-chat:before{content:"";color:inherit}.esri-icon-dock-bottom:before{content:"";color:inherit}.esri-icon-dock-left:before{content:"";color:inherit}.esri-icon-dock-right:before{content:"";color:inherit}.esri-icon-organization:before{content:"";color:inherit}.esri-icon-north-navigation:before{content:"";color:inherit}.esri-icon-locate-circled:before{content:"";color:inherit}.esri-icon-dial:before{content:"";color:inherit}.esri-icon-polygon:before{content:"";color:inherit}.esri-icon-polyline:before{content:"";color:inherit}.esri-icon-visible:before{content:"";color:inherit}.esri-icon-non-visible:before{content:"";color:inherit}.esri-icon-link-vertical:before{content:"";color:inherit}.esri-icon-unlocked-link-vertical:before{content:"";color:inherit}.esri-icon-link-horizontal:before{content:"";color:inherit}.esri-icon-unlocked-link-horizontal:before{content:"";color:inherit}.esri-icon-swap:before{content:"";color:inherit}.esri-icon-cta-link-external:before{content:"";color:inherit}.esri-icon-reply:before{content:"";color:inherit}.esri-icon-public:before{content:"";color:inherit}.esri-icon-share2:before{content:"";color:inherit}.esri-icon-launch-link-external:before{content:"";color:inherit}.esri-icon-rotate-back:before{content:"";color:inherit}.esri-icon-pan2:before{content:"";color:inherit}.esri-icon-tracking:before{content:"";color:inherit}.esri-icon-expand2:before{content:"";color:inherit}.esri-icon-arrow-down:before{content:"";color:inherit}.esri-icon-arrow-up:before{content:"";color:inherit}.esri-icon-hollow-eye:before{content:"";color:inherit}.esri-icon-play-circled:before{content:"";color:inherit}.esri-icon-volume-off:before{content:"";color:inherit}.esri-icon-volume-on:before{content:"";color:inherit}.esri-icon-bookmark:before{content:"";color:inherit}.esri-icon-lightbulb:before{content:"";color:inherit}.esri-icon-sketch-rectangle:before{content:"";color:inherit}.esri-icon-north-navigation-filled:before{content:"";color:inherit}.esri-icon-default-action:before{content:"";color:inherit}.esri-icon-undo:before{content:"";color:inherit}.esri-icon-redo:before{content:"";color:inherit}.esri-icon-cursor:before{content:"";color:inherit}.esri-icon-cursor-filled:before{content:"";color:inherit}.esri-icon-measure:before{content:"";color:inherit}.esri-icon-measure-line:before{content:"";color:inherit}.esri-icon-measure-area:before{content:"";color:inherit}.esri-icon-legend:before{content:"";color:inherit}.esri-icon-sliders:before{content:"";color:inherit}.esri-icon-sliders-horizontal:before{content:"";color:inherit}.esri-icon-cursor-marquee:before{content:"";color:inherit}.esri-icon-lasso:before{content:"";color:inherit}.esri-icon-elevation-profile:before{content:"";color:inherit}.esri-icon-slice:before{content:"";color:inherit}.esri-icon-line-of-sight:before{content:"";color:inherit}.esri-icon-zoom-to-object:before{content:"";color:inherit}.esri-icon-urban-model:before{content:"";color:inherit}.esri-icon-measure-building-height-shadow:before{content:"";color:inherit}.esri-icon-partly-cloudy:before{content:"";color:inherit}.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-button{box-sizing:border-box;cursor:pointer;white-space:normal;word-break:normal;color:var(--calcite-color-text-1);background-color:var(--calcite-color-status-info);border:var(--calcite-spacing-px) solid var(--calcite-color-status-info);justify-content:center;align-items:center;width:100%;min-height:var(--calcite-spacing-xxxl);padding:6px 7px;font-family:inherit;font-size:var(--calcite-font-size);transition:background-color .125s ease-in-out,border .125s ease-in-out;display:flex;overflow:hidden;&:hover{color:var(--calcite-color-text-1);background-color:var(--calcite-color-status-info-hover);border:var(--calcite-spacing-px) solid var(--calcite-color-status-info-hover)}}.esri-button:hover{color:var(--calcite-color-text-1);background-color:var(--calcite-color-text-2);border:1px solid var(--calcite-color-text-2)}.esri-button.esri-button--small{min-height:var(--calcite-spacing-xl);font-size:var(--calcite-font-size-sm)}.esri-button.esri-button--half{width:50%;display:inline-block}.esri-button.esri-button--third{width:33%;display:inline-block}.esri-button--secondary{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1)}.esri-button--tertiary{color:var(--calcite-color-brand);background-color:var(--calcite-color-transparent);border-color:var(--calcite-color-transparent)}.esri-button--tertiary:hover{color:var(--calcite-color-brand-hover);background-color:var(--calcite-color-foreground-2);border-color:var(--calcite-color-transparent)}.esri-button--disabled{opacity:.4;pointer-events:none}.esri-button--drill-in{outline-offset:-4px;cursor:pointer;text-align:unset;background-color:var(--calcite-color-foreground-1);border:none;border-radius:2px;justify-content:space-between;align-items:center;margin:var(--calcite-spacing-md) 7px;padding:var(--calcite-spacing-md) 7px;text-decoration:none;transition:background-color .125s ease-in-out;display:flex;box-shadow:0 0 0 1px #adadad4d}.esri-button--drill-in:hover,.esri-button--drill-in:focus{background-color:var(--calcite-color-foreground-2)}.esri-button--drill-in__title{font-size:var(--calcite-font-size)}.esri-button--drill-in [class^=esri-icon-],.esri-button--drill-in [class*=" esri-icon-"]{padding:0 7px}.esri-widget--button{cursor:pointer;text-align:center;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);flex-flow:row;justify-content:center;align-items:center;width:var(--calcite-spacing-xxxl);height:var(--calcite-spacing-xxxl);margin:0;padding:0;font-size:var(--calcite-font-size);transition:background-color .125s ease-in-out;display:flex;overflow:hidden}.esri-widget--button:is(calcite-button):not(:hover){--calcite-icon-color: var(--calcite-color-text-3)}.esri-widget--button:not([appearance]),.esri-widget--button[appearance=solid]{--calcite-color-foreground-3: var(--calcite-color-foreground-1)}.esri-widget--button:is(calcite-button){--calcite-offset-invert-focus: 1}.esri-widget--button calcite-loader[inline]{margin:auto}.esri-button--secondary{color:var(--calcite-color-brand);background-color:var(--calcite-color-foreground-1);&:hover{color:var(--calcite-color-text-inverse);background-color:var(--calcite-color-status-info);border:1px solid var(--calcite-color-status-info)}}:host{background-color:var(--calcite-color-foreground-1);color:var(--calcite-color-text-2);padding-block-start:var(--arcgis-coordinate-conversion-padding-y);width:var(--arcgis-coordinate-conversion-width, 280px)}.root{background-color:var(--calcite-color-foreground-1)}calcite-alert{--calcite-alert-offset-size: var(--calcite-spacing-sm)}calcite-notice[open]{padding:var(--calcite-spacing-sm)}calcite-block{--calcite-block-content-space: 0;margin:0;padding-inline:var(--arcgis-coordinate-conversion-padding-x)}calcite-block:last-of-type{padding-block-end:var(--arcgis-coordinate-conversion-padding-y, var(--calcite-spacing-sm))}.conversion-popover{--calcite-popover-max-size-x: var(--arcgis-coordinate-conversion-settings-block-size, 250px)}.go-to-input-holder{display:flex}.go-to-input-holder calcite-input{flex:1}.conversions-block{border:none;padding-bottom:var(--calcite-spacing-sm)}.live-mode-block{--calcite-label-margin-bottom: 0;padding-block:var(--calcite-spacing-sm);padding-inline:var(--arcgis-coordinate-conversion-padding-x, var(--calcite-spacing-sm))}.live-mode-label{width:fit-content;margin-inline-start:auto}.font-size-small{font-size:var(--calcite-font-size--2)}.format-radio-label{display:flex;flex-direction:column}.radio-label{font-weight:var(--calcite-font-weight-medium);font-size:var(--calcite-font-size--2)}.radio-description{font-weight:var(--calcite-font-weight-light);font-size:var(--calcite-font-size--3)}.unit-select-panel{--calcite-panel-space: var(--calcite-spacing-md)}.popover-footer{padding:var(--calcite-spacing-sm);border-top:1px solid var(--calcite-color-border-3)}.input-form-group{display:flex;flex-direction:column;align-items:flex-start;padding:var(--calcite-spacing-sm)}.add-conversion-trigger{margin-inline-start:var(--calcite-spacing-sm);margin-block-start:var(--calcite-spacing-sm)}.input-form-group calcite-label{width:100%}.settings{padding:var(--calcite-spacing-md);display:flex;flex-direction:column;align-items:center;background-color:var(--calcite-color-foreground-1);width:calc(var(--arcgis-coordinate-conversion-settings-block-size, 250px) - (2 * var(--calcite-spacing-md)) - 2px)}.settings calcite-label{width:100%}.settings calcite-input{flex:1}.settings-form-group-horizontal{display:flex}`,q=2500,B=new I({x:0,y:0}),l={copy:"copy",gear:"gear",goTo:"zoom-to-object",lightbulb:"lightbulb",plus:"plus",refresh:"refresh",warning:"exclamation-mark-triangle"},j=P(O),m=class extends ${constructor(){super(...arguments),this._alertTimer=-1,this._conversionPopoverMap=new Map,this._coordinateInput=u(),this.messages=C({name:"coordinate-conversion-next",blocking:!0}),this._multipleConversionsDisabled=!1,this.quantityFormatter=new A,this.viewModel=j(this),this.clearAlertTimeout=()=>{window.clearTimeout(this._alertTimer),this.alertProperties={...this.alertProperties,open:!1}},this.onElevationPopoverTriggerMount=e=>{this._elevationPopoverTrigger=e},this.onFormatPopoverTriggerMount=e=>{this._formatsPopoverTrigger=e},this.handleFormatComboboxChange=e=>{let i=e.target.selectedItems[0].value,o=this.formats.find(t=>t.name===i);if(o){let t=this.activeConversion??this.conversions.at(0)??null,r=new f({format:o});t&&this.transferConversionPopoverState(t,r),this.conversions.splice(0,1,r),this.activeConversion=r,this.setPreviewConversion()}},this.alertProperties={kind:"brand",message:null,title:null,open:!1},this.elevationPopoverOpen=!1,this.formatsPopoverOpen=!1,this.invalidInput=!1,this.view=this.viewModel.view,this.autoDestroyDisabled=!1,this.conversions=this.viewModel.conversions,this.currentLocation=this.viewModel.currentLocation,this.formats=this.viewModel.formats,this.goToOverride=this.viewModel.goToOverride,this.headingLevel=4,this.hideCaptureSection=!1,this.hideInputSection=!1,this.hideSettingsButton=!1,this.icon="coordinate-system",this.label=this.messages.componentLabel,this.locationSymbol=this.viewModel.locationSymbol,this.mode=this.viewModel.mode,this.removeLeadingZeros=this.viewModel.removeLeadingZeros,this.visualScale="s",this.showElevation=!1,this.state=this.viewModel.state,this.storageType=this.viewModel.storageType,this.arcgisConversionChange=v(),this.arcgisPropertyChange=k()("currentLocation","state","mode","verticalUnit"),this.arcgisReady=v(),this.renderConversionView=(e,i)=>{let{messages:o}=this,{format:t}=e,r=t?.label??"",s=i===0&&!e.displayCoordinate?o.noLocation:e.displayCoordinate,a=this._renderConversionActions(e,s);return z(e?.format?.name,n`<calcite-list-item class="conversion-list-item" .description=${r.toUpperCase()} .label=${this.getDisplayCoordinate(s)} .scale=${this.visualScale} title=${s??void 0??c}>${a}</calcite-list-item>`)},this.renderLiveModeSection=()=>{let{messages:e}=this,i=this.mode==="idle"?this.viewModel.mode:this.mode;return n`<calcite-block class="live-mode-block" .disabled=${this.disabled} expanded .headingLevel=${this.headingLevel} .label=${e.captureMode} .scale=${this.visualScale}><calcite-label alignment=end class="live-mode-label" layout=inline .scale=${this.visualScale}>${e.captureMode}<calcite-switch .checked=${i==="capture"} @calciteSwitchChange=${this.toggleMode}></calcite-switch></calcite-label></calcite-block>`}}static{this.properties={activeConversion:16,alertProperties:16,defaultMeasurementSystem:16,disabled:16,displayedElevation:16,elevationPopoverOpen:16,formatsPopoverOpen:16,invalidInput:16,inputFormat:16,previewConversion:16,view:0,autoDestroyDisabled:5,conversions:0,currentLocation:0,formats:0,goToOverride:0,headingLevel:9,hideCaptureSection:7,hideInputSection:7,hideSettingsButton:7,icon:1,ignoreCoordinatePrecision:5,label:1,locationSymbol:0,mode:3,multipleConversionsDisabled:7,referenceElement:1,removeLeadingZeros:7,visualScale:1,showElevation:7,state:32,storageDisabled:7,storageType:1,verticalUnit:1}}static{this.styles=V}get defaultMeasurementSystem(){return this.view?.ready?U(this.view):"metric"}get disabled(){return this.viewModel.state==="disabled"}get displayedElevation(){let{currentLocation:e,verticalUnit:i,messages:o}=this;if(e?.z===void 0||e.z===null)return o.noElevation;{let t=D(e.z,"meters",i);return this.quantityFormatter.formatLength({value:t,unit:i,type:"length"},2,"plural")}}get ignoreCoordinatePrecision(){return!this.viewModel.calculateCoordinatePrecision}set ignoreCoordinatePrecision(e){this.viewModel.calculateCoordinatePrecision=!e}get multipleConversionsDisabled(){return this._multipleConversionsDisabled}set multipleConversionsDisabled(e){e&&this.conversions.splice(1,this.conversions.length-1),this._multipleConversionsDisabled=e}get storageDisabled(){return!this.viewModel.storageEnabled}set storageDisabled(e){this.viewModel.storageEnabled=!e}get verticalUnit(){return this.viewModel.verticalUnit??(this.defaultMeasurementSystem==="imperial"?"feet":"meters")}set verticalUnit(e){this.viewModel.verticalUnit=e}async destroy(){this.clearAlertTimeout(),await this.manager.destroy()}async reverseConvert(e,i){return await this.viewModel.reverseConvert(e,i)}load(){this.manager.onLifecycle(()=>[this.conversions.on("change",()=>this.arcgisConversionChange.emit())])}willUpdate(e){if(e.has("mode")&&this.mode==="idle"){this.viewModel.setLocation(this.currentLocation);return}if(e.has("currentLocation")){let i=e.get("currentLocation");this.mode==="idle"&&!this.currentLocation?.equals(i)&&this.viewModel.setLocation(this.currentLocation)}}closeAllPopovers(){for(let e of this._conversionPopoverMap.values())e.open=!1;this.elevationPopoverOpen=!1,this.formatsPopoverOpen=!1,this.requestUpdate()}async copyToClipboard(e){e&&(e=e.replace(//gu,""),await navigator.clipboard.writeText(e))}findSettingsFormat(){return this.activeConversion?.format||this.conversions.reduceRight((e,i)=>{let o=i.format;return o&&b(o)?o:e},null)||this.formats.find(e=>b(e))||null}getConversionPopoverState(e){let i=this._conversionPopoverMap.get(e);return i||(i={triggerRef:u(),open:!1},this._conversionPopoverMap.set(e,i)),i}getDisplayCoordinate(e){return e?e.includes(",")?e.replace(/, /gu,",\xA0\u200B").replace(/ /gu,"\xA0"):e:"\u200B"}getFormatDescription(e){let{messages:i}=this;return i.formatDescriptions[e.name]??i.formatDescriptions.custom}getId(e){return`arcgis-coordinate-conversion-${e}`}openConversionSettings(e,i){let o=this.getConversionPopoverState(e),t=this.activeConversion!==e||!o.open;this.closeAllPopovers(),o.open=t,this._conversionPopoverTrigger=t?i.currentTarget:void 0,this.activeConversion=t?e:void 0,t&&this.setPreviewConversion(),this.requestUpdate(),i.stopPropagation()}async processUserInput(e,i,o){let{viewModel:t}=this;try{let r=await this._reverseConvert(e,i);if(r)o&&t.goToLocation(r).catch(s=>{g(this)(s),this.showAlertMessage(null,this.messages.locationOffBasemap,"warning")});else throw new Error("failed to process user input");this.mode==="capture"?t.resume():this.mode="capture",this.invalidInput=!1,this.currentLocation=r??void 0,t.setLocation(r)}catch(r){g(this)(r),this.showAlertMessage(null,this.messages.invalidCoordinate,"warning"),this.invalidInput=!0}}async processUserKeyboardInput(e){let{key:i}=e;if(i==="Enter"){let o=this.inputFormat||this.conversions.at(0)?.format,t=this._coordinateInput.value?.value;if(!o||!t)return;await this.processUserInput(t,o,!0)}else this.invalidInput=!1}async processUserMouseInput(e){let i=this.inputFormat||this.conversions.at(0)?.format,o=this._coordinateInput.value?.value;!i||!o||await this.processUserInput(o,i,e)}async _reverseConvert(e,i){return await i.reverseConvert(e)}setDefaultPattern(e){e.stopPropagation();let i=this.findSettingsFormat();i?.defaultPattern&&(i.currentPattern=i.defaultPattern)}setInputFormat(e){let i=e.target.selectedOption.value;i!==null&&(this.inputFormat=i)}setPreviewConversion(){let e=this.findSettingsFormat(),i=this.viewModel;if(e){let o=this.conversions.find(t=>t.format===e);this.previewConversion=new f({format:e,position:{location:this.currentLocation,coordinate:o?.position?.coordinate}}),this.previewConversion.position?.coordinate||i.previewConversion(this.previewConversion,i.currentLocation??B)}}showAlertMessage(e,i,o,t=q){this.alertProperties={...this.alertProperties,title:e,message:i,kind:o,open:!0},window.clearTimeout(this._alertTimer),this._alertTimer=window.setTimeout(()=>{this.alertProperties={...this.alertProperties,open:!1}},t)}toggleConversion(e){let i=e.target,o=this.formats.find(t=>t.name===i.getAttribute("data-format"));if(o){let t=this.conversions.find(r=>r.format===o);if(t){if(this.conversions.length>1){let r=this._conversionPopoverMap.get(t);r&&(r.open=!1,this._conversionPopoverMap.delete(t)),this.activeConversion===t&&(this.activeConversion=void 0),this.conversions.remove(t)}}else{let r=new f({format:o});this.conversions.add(r)}}}toggleMode(){this.mode=this.viewModel.mode==="live"?"capture":"live"}transferConversionPopoverState(e,i){let o=this.getConversionPopoverState(e),t=this.getConversionPopoverState(i);t.open=o.open,this._conversionPopoverMap.delete(e)}updateCurrentPattern(e){e.stopPropagation();let i=e.target,o=this.findSettingsFormat();o&&(o.currentPattern=i.value)}render(){let{headingLevel:e}=this,i=this.renderConversionPopover();return n`<calcite-panel class=root .headingLevel=${e} .scale=${this.visualScale}>${this.renderConversionsView()}${this.renderAlert()}</calcite-panel>${i}`}renderAlert(){let{messages:e}=this,{open:i,message:o,title:t,kind:r}=this.alertProperties;return n`<calcite-alert class="alert" .kind=${r} .label=${e.alertLabel} @calciteAlertClose=${this.clearAlertTimeout} .open=${i} placement=top .scale=${this.visualScale} slot=alerts>${t?n`<div slot=title>${t}</div>`:null}${o?n`<div slot=message>${o}</div>`:null}</calcite-alert>`}_renderConversionActions(e,i){let{messages:o}=this,t=this.getConversionPopoverState(e),r=o.settingsTitleWithFormat.replace("{formatName}",e.format?.name?.toUpperCase()??""),s=e.displayCoordinate&&this.mode!=="live";return n`<calcite-action-group layout=horizontal .scale=${this.visualScale} slot=actions-end>${s?n`<calcite-action .icon=${l.copy} .label=${o.copyLabel} @click=${()=>this.copyToClipboard(i)} .scale=${this.visualScale} .text=${o.copyLabel} title=${o.copyLabel??c}></calcite-action>`:null}${this.hideSettingsButton?null:n`<calcite-action data-format=${e.format?.name??c} .icon=${l.gear} .label=${r} @click=${a=>this.openConversionSettings(e,a)} .scale=${this.visualScale} .text=${r} title=${r??c} ${h(t.triggerRef)}></calcite-action>`}</calcite-action-group>`}renderConversionOptions(e,i){return e.map(o=>n`<calcite-option .label=${o.label.toUpperCase()} .selected=${o===i} .value=${o}>${o.label}</calcite-option>`)}renderConversionPopover(){let{activeConversion:e,messages:i}=this;if(!e)return null;let o=this.getConversionPopoverState(e),t=i.settingsTitleWithFormat.replace("{formatName}",e.format?.name?.toUpperCase()??"");return this.renderPopover({class:"conversion-popover",content:this.renderSettingsView(),getPopoverOpenProperty:()=>o.open,heading:t,includeFooter:!0,label:t,setPopoverOpenProperty:r=>{o.open=r,r||(this._conversionPopoverTrigger=void 0,this.activeConversion=void 0),this.requestUpdate()},trigger:null,triggerElement:o.triggerRef.value??this._conversionPopoverTrigger??void 0})}renderConversionsView(){if(!this.conversions)return;let{messages:e,multipleConversionsDisabled:i}=this,o=(i?this.conversions.slice(0,1):this.conversions).map(this.renderConversionView).reverse(),t=this.showElevation?this.renderElevation():null,r=this.hideCaptureSection?null:this.renderLiveModeSection(),s=this.hideInputSection?null:this.renderCoordinateInputView(),a=this.multipleConversionsDisabled?null:this.renderFormatDropdown(),d=this.disabled?n`<calcite-notice .icon=${l.lightbulb} .open=${this.disabled} width=full><div class="font-size-small" slot=message>${e.noBasemap}</div></calcite-notice>`:null;return n`${r}${d}${s}<calcite-block class="conversions-block" .disabled=${this.disabled} expanded .heading=${e.coordinates} .headingLevel=${this.headingLevel} .scale=${this.visualScale}><calcite-list interaction-mode=static .label=${e.coordinates} .scale=${this.visualScale}>${o}</calcite-list>${a}</calcite-block>${t}`}renderCoordinateInputView(){let{messages:e}=this,i=this.inputFormat??this.conversions.at(0)?.format,o=this.getId("coordinate-input"),t=this.renderConversionOptions(this.formats,i??void 0),r=n`<calcite-action .icon=${l.goTo} .label=${e.convertAndGoTo} @click=${()=>this.processUserMouseInput(!0)} .scale=${this.visualScale} .text=${e.convertAndGoTo} title=${e.convertAndGoTo??c}></calcite-action>`;return n`<calcite-block collapsible data-testid=input-block .disabled=${this.disabled} .heading=${e.input} .headingLevel=${this.headingLevel} .scale=${this.visualScale}><div class="input-form-group"><calcite-label .scale=${this.visualScale}>${e.inputFormat}<calcite-select aria-controls=${o??c} class="input-select" .label=${e.inputFormat} @calciteSelectChange=${this.setInputFormat} .scale=${this.visualScale}>${t}</calcite-select></calcite-label><calcite-label .scale=${this.visualScale}>${e.inputCoordTitle}<div class="go-to-input-holder"><calcite-input class="coordinate-input" data-format=${i??c} data-testid=coordinate-input id=${o??c} @keydown=${this.processUserKeyboardInput} .placeholder=${e.inputCoordTitle} required .scale=${this.visualScale} .status=${this.invalidInput?"invalid":"idle"} ${h(this._coordinateInput)}></calcite-input>${r}</div></calcite-label><calcite-button appearance=outline data-testid=convert-button kind=neutral @click=${()=>this.processUserMouseInput(!1)} type=button .scale=${this.visualScale} width=auto>${e.convert}</calcite-button></div></calcite-block>`}renderElevation(){let{messages:e}=this,i=this.displayedElevation??e.noElevation,o=this.renderElevationActions(),t=this.hideSettingsButton?null:this.renderElevationSettingsDropdown();return n`<calcite-block .disabled=${this.disabled} expanded .heading=${e.elevation} .headingLevel=${this.headingLevel} .scale=${this.visualScale}><calcite-list interaction-mode=static .label=${e.elevation} .scale=${this.visualScale}><calcite-list-item class="elevation-list-item" .label=${i} .scale=${this.visualScale} title=${i??c}>${o}</calcite-list-item></calcite-list>${t}</calcite-block>`}renderElevationActions(){let{messages:e}=this,i=this.currentLocation?.z!==void 0&&this.mode!=="live",o=this.displayedElevation??e.noElevation;return n`<calcite-action-group layout=horizontal .scale=${this.visualScale} slot=actions-end>${i?n`<calcite-action .icon=${l.copy} .label=${e.copyElevationLabel} @click=${()=>i&&this.copyToClipboard(o)} .scale=${this.visualScale} .text=${e.copyElevationLabel} title=${e.copyElevationLabel??c}></calcite-action>`:null}${this.hideSettingsButton?null:n`<calcite-action .icon=${l.gear} .label=${e.selectElevationUnit} .scale=${this.visualScale} .text=${e.selectElevationUnit} title=${e.selectElevationUnit??c} ${h(this.onElevationPopoverTriggerMount)}></calcite-action>`}</calcite-action-group>`}renderElevationSettingsDropdown(){let{messages:e}=this,i=n`<arcgis-unit-radio-button-group @arcgisUnitSelectChange=${o=>this.verticalUnit=o.detail} .options=${S} .name=${e.selectElevationUnit} .scale=${this.visualScale} .value=${this.verticalUnit}></arcgis-unit-radio-button-group>`;return this.renderPopover({content:i,closeOnEnter:!0,getPopoverOpenProperty:()=>this.elevationPopoverOpen,includeFooter:!1,label:e.selectElevationUnit,setPopoverOpenProperty:o=>this.elevationPopoverOpen=o,trigger:null,triggerElement:this._elevationPopoverTrigger})}renderFormatDropdown(){let{messages:e}=this,i=n`<calcite-list .label=${e.addConversion} .scale=${this.visualScale} selection-mode=multiple>${M(this.formats,t=>t,t=>{let r=!!this.conversions.find(a=>a.format===t),s=this.getFormatDescription(t);return n`<calcite-list-item data-format=${t.name??c} .description=${s} .disabled=${r&&this.conversions.length===1} .label=${t.label.toUpperCase()} @calciteListItemSelect=${this.toggleConversion} .selected=${r}></calcite-list-item>`})}</calcite-list>`,o=n`<calcite-button appearance=outline class="add-conversion-trigger" .iconStart=${l.plus} kind=neutral .label=${e.selectFormats} round .scale=${this.visualScale} ${h(this.onFormatPopoverTriggerMount)}>${e.selectFormats}</calcite-button>`;return this.renderPopover({content:i,includeFooter:!0,getPopoverOpenProperty:()=>this.formatsPopoverOpen,label:e.selectFormats,setPopoverOpenProperty:t=>this.formatsPopoverOpen=t,trigger:o,triggerElement:this._formatsPopoverTrigger})}renderPopover({content:e,class:i,closeOnEnter:o,heading:t,getPopoverOpenProperty:r,includeFooter:s,label:a,setPopoverOpenProperty:d,slot:L,trigger:E,triggerDisabled:T,triggerElement:w}){let{messages:F}=this;return n`${E}${w?n`<calcite-popover auto-close class=${_(i)} .heading=${t} .headingLevel=${this.headingLevel} .label=${a} @calcitePopoverBeforeOpen=${()=>{d(!0)}} @calcitePopoverClose=${p=>{d(!1),p.stopPropagation()}} @keydown=${p=>{o&&(p.key==="Enter"||p.key===" ")&&d(!1)}} .open=${r()} .referenceElement=${w} .scale=${this.visualScale} slot=${L??c} .triggerDisabled=${T}>${e}${s?n`<div class="popover-footer"><calcite-button appearance=solid class="popover-done-button" kind=brand @click=${()=>d(!1)} .scale=${this.visualScale} width=full>${F.done}</calcite-button></div>`:null}</calcite-popover>`:null}`}renderSettingsView(){let{messages:e}=this,i=this.findSettingsFormat(),o=this.getId("pattern-input"),t=this.getId("preview-coordinate"),r=i?.currentPattern,s=this.multipleConversionsDisabled?this.renderSingleFormatDropdown():null;if(!i||!b(i))return n`<div class="settings"><calcite-label .scale=${this.visualScale}>${e.format}${s??n`<calcite-notice class="no-display-properties-notice" .icon=${l.warning} open .scale=${this.visualScale}><div class="font-size-small" slot=message>${e.noDisplayProperties}</div></calcite-notice>`}</calcite-label></div>`;let a=n`<calcite-action .icon=${l.refresh} .label=${e.defaultPattern} @click=${this.setDefaultPattern} .scale=${this.visualScale} .text=${e.defaultPattern} title=${e.defaultPattern??c}></calcite-action>`;return n`<div class="settings"><calcite-label .scale=${this.visualScale}>${e.format}${s}</calcite-label><calcite-label .for=${o} .scale=${this.visualScale}>${e.display}<div class="settings-form-group-horizontal"><calcite-input aria-controls=${t??c} class="pattern-input" id=${o??c} @calciteInputInput=${this.updateCurrentPattern} .scale=${this.visualScale} type=text .value=${r}></calcite-input>${a}</div></calcite-label><calcite-label .scale=${this.visualScale}>${e.preview}<calcite-input read-only .scale=${this.visualScale} type=text .value=${this.previewConversion?.displayCoordinate??void 0}></calcite-input></calcite-label></div>`}renderSingleFormatDropdown(){let{messages:e}=this;return n`<calcite-combobox data-testid=single-format-combobox .label=${e.selectFormat} @calciteComboboxChange=${this.handleFormatComboboxChange} .scale=${this.visualScale} selection-mode=single-persist>${this.formats?.map(i=>n`<calcite-combobox-item .description=${this.getFormatDescription(i)} .heading=${i.label.toUpperCase()} .selected=${this.conversions.at(0)?.format===i} .value=${i.name}></calcite-combobox-item>`)}</calcite-combobox>`}};y("arcgis-coordinate-conversion-next",m);return m},"applications/Components/unitUtils","applications/Components/getDefaultUnits","applications/Components/formatUtils","geometry/Point","widgets/CoordinateConversion/CoordinateConversionViewModel","widgets/CoordinateConversion/support/Conversion","applications/Components/QuantityFormatter",a,b,d,e)
|
|
2
|
+
import{a as M}from"./YPVLWVDG.js";import{a as z}from"./KZ6DGS6U.js";import{c as S}from"./S4I3X6AX.js";import e from"./735KTZVX.js";import{a as C}from"./ENWA56JZ.js";import d from"./VZ4WYD2R.js";import b from"./FFA6XVSZ.js";import{h as k}from"./DN6MOY5G.js";import"./HR4YG75X.js";import a from"./HE373PPZ.js";import"./HAYFOL4X.js";import{M as u,N as h,O as $,P as _,U as y,a as x,b as n,f as c,q as g,x as v}from"./3QWV6QFB.js";import"./3TTFCHAA.js";export default $arcgis.t(([{convertUnit:D},{getDefaultUnitForView:U},{hasDisplayProperties:b},I,O,f,A,,,,P])=>{var V=x`[class^=esri-icon-],[class*=" esri-icon-"]{speak:none;font-variant:normal;text-transform:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-style:normal;font-weight:var(--calcite-font-weight-normal);line-height:1;font-family:CalciteWebCoreIcons!important}.esri-icon-close:before{content:"";color:inherit}.esri-icon-drag-horizontal:before{content:"";color:inherit}.esri-icon-drag-vertical:before{content:"";color:inherit}.esri-icon-handle-horizontal:before{content:"";color:inherit}.esri-icon-handle-vertical:before{content:"";color:inherit}.esri-icon-check-mark:before{content:"";color:inherit}.esri-icon-left-triangle-arrow:before{content:"";color:inherit}.esri-icon-right-triangle-arrow:before{content:"";color:inherit}.esri-icon-down-arrow:before{content:"";color:inherit}.esri-icon-up-arrow:before{content:"";color:inherit}.esri-icon-overview-arrow-bottom-left:before{content:"";color:inherit}.esri-icon-overview-arrow-bottom-right:before{content:"";color:inherit}.esri-icon-overview-arrow-top-left:before{content:"";color:inherit}.esri-icon-overview-arrow-top-right:before{content:"";color:inherit}.esri-icon-maximize:before{content:"";color:inherit}.esri-icon-minimize:before{content:"";color:inherit}.esri-icon-checkbox-unchecked:before{content:"";color:inherit}.esri-icon-checkbox-checked:before{content:"";color:inherit}.esri-icon-radio-unchecked:before{content:"";color:inherit}.esri-icon-radio-checked:before{content:"";color:inherit}.esri-icon-up-arrow-circled:before{content:"";color:inherit}.esri-icon-down-arrow-circled:before{content:"";color:inherit}.esri-icon-left-arrow-circled:before{content:"";color:inherit}.esri-icon-right-arrow-circled:before{content:"";color:inherit}.esri-icon-zoom-out-fixed:before{content:"";color:inherit}.esri-icon-zoom-in-fixed:before{content:"";color:inherit}.esri-icon-refresh:before{content:"";color:inherit}.esri-icon-edit:before{content:"";color:inherit}.esri-icon-authorize:before{content:"";color:inherit}.esri-icon-map-pin:before{content:"";color:inherit}.esri-icon-blank-map-pin:before{content:"";color:inherit}.esri-icon-table:before{content:"";color:inherit}.esri-icon-plus:before{content:"";color:inherit}.esri-icon-minus:before{content:"";color:inherit}.esri-icon-beginning:before{content:"";color:inherit}.esri-icon-reverse:before{content:"";color:inherit}.esri-icon-pause:before{content:"";color:inherit}.esri-icon-play:before{content:"";color:inherit}.esri-icon-forward:before{content:"";color:inherit}.esri-icon-end:before{content:"";color:inherit}.esri-icon-erase:before{content:"";color:inherit}.esri-icon-up-down-arrows:before{content:"";color:inherit}.esri-icon-left:before{content:"";color:inherit}.esri-icon-right:before{content:"";color:inherit}.esri-icon-announcement:before{content:"";color:inherit}.esri-icon-notice-round:before{content:"";color:inherit}.esri-icon-notice-triangle:before{content:"";color:inherit}.esri-icon-home:before{content:"";color:inherit}.esri-icon-locate:before{content:"";color:inherit}.esri-icon-expand:before{content:"";color:inherit}.esri-icon-collapse:before{content:"";color:inherit}.esri-icon-layer-list:before{content:"";color:inherit}.esri-icon-basemap:before{content:"";color:inherit}.esri-icon-globe:before{content:"";color:inherit}.esri-icon-applications:before{content:"";color:inherit}.esri-icon-arrow-up-circled:before{content:"";color:inherit}.esri-icon-arrow-down-circled:before{content:"";color:inherit}.esri-icon-arrow-left-circled:before{content:"";color:inherit}.esri-icon-arrow-right-circled:before{content:"";color:inherit}.esri-icon-minus-circled:before{content:"";color:inherit}.esri-icon-plus-circled:before{content:"";color:inherit}.esri-icon-add-attachment:before{content:"";color:inherit}.esri-icon-attachment:before{content:"";color:inherit}.esri-icon-calendar:before{content:"";color:inherit}.esri-icon-close-circled:before{content:"";color:inherit}.esri-icon-browser:before{content:"";color:inherit}.esri-icon-collection:before{content:"";color:inherit}.esri-icon-comment:before{content:"";color:inherit}.esri-icon-configure-popup:before{content:"";color:inherit}.esri-icon-contact:before{content:"";color:inherit}.esri-icon-dashboard:before{content:"";color:inherit}.esri-icon-deny:before{content:"";color:inherit}.esri-icon-description:before{content:"";color:inherit}.esri-icon-directions:before{content:"";color:inherit}.esri-icon-directions2:before{content:"";color:inherit}.esri-icon-documentation:before{content:"";color:inherit}.esri-icon-duplicate:before{content:"";color:inherit}.esri-icon-review:before{content:"";color:inherit}.esri-icon-environment-settings:before{content:"";color:inherit}.esri-icon-error:before{content:"";color:inherit}.esri-icon-error2:before{content:"";color:inherit}.esri-icon-experimental:before{content:"";color:inherit}.esri-icon-feature-layer:before{content:"";color:inherit}.esri-icon-filter:before{content:"";color:inherit}.esri-icon-grant:before{content:"";color:inherit}.esri-icon-group:before{content:"";color:inherit}.esri-icon-key:before{content:"";color:inherit}.esri-icon-labels:before{content:"";color:inherit}.esri-icon-tag:before{content:"";color:inherit}.esri-icon-layers:before{content:"";color:inherit}.esri-icon-left-arrow:before{content:"";color:inherit}.esri-icon-right-arrow:before{content:"";color:inherit}.esri-icon-link-external:before{content:"";color:inherit}.esri-icon-link:before{content:"";color:inherit}.esri-icon-loading-indicator:before{content:"";color:inherit}.esri-icon-maps:before{content:"";color:inherit}.esri-icon-marketplace:before{content:"";color:inherit}.esri-icon-media:before{content:"";color:inherit}.esri-icon-media2:before{content:"";color:inherit}.esri-icon-menu:before{content:"";color:inherit}.esri-icon-mobile:before{content:"";color:inherit}.esri-icon-phone:before{content:"";color:inherit}.esri-icon-navigation:before{content:"";color:inherit}.esri-icon-pan:before{content:"";color:inherit}.esri-icon-printer:before{content:"";color:inherit}.esri-icon-pie-chart:before{content:"";color:inherit}.esri-icon-chart:before{content:"";color:inherit}.esri-icon-line-chart:before{content:"";color:inherit}.esri-icon-question:before{content:"";color:inherit}.esri-icon-resend-invitation:before{content:"";color:inherit}.esri-icon-rotate:before{content:"";color:inherit}.esri-icon-save:before{content:"";color:inherit}.esri-icon-settings:before{content:"";color:inherit}.esri-icon-settings2:before{content:"";color:inherit}.esri-icon-share:before{content:"";color:inherit}.esri-icon-sign-out:before{content:"";color:inherit}.esri-icon-support:before{content:"";color:inherit}.esri-icon-user:before{content:"";color:inherit}.esri-icon-time-clock:before{content:"";color:inherit}.esri-icon-trash:before{content:"";color:inherit}.esri-icon-upload:before{content:"";color:inherit}.esri-icon-download:before{content:"";color:inherit}.esri-icon-zoom-in-magnifying-glass:before{content:"";color:#6e6e6e}.esri-icon-search:before{content:"";color:inherit}.esri-icon-zoom-out-magnifying-glass:before{content:"";color:#6e6e6e}.esri-icon-locked:before{content:"";color:inherit}.esri-icon-unlocked:before{content:"";color:inherit}.esri-icon-favorites:before{content:"";color:inherit}.esri-icon-compass:before{content:"";color:inherit}.esri-icon-down:before{content:"";color:inherit}.esri-icon-up:before{content:"";color:inherit}.esri-icon-chat:before{content:"";color:inherit}.esri-icon-dock-bottom:before{content:"";color:inherit}.esri-icon-dock-left:before{content:"";color:inherit}.esri-icon-dock-right:before{content:"";color:inherit}.esri-icon-organization:before{content:"";color:inherit}.esri-icon-north-navigation:before{content:"";color:inherit}.esri-icon-locate-circled:before{content:"";color:inherit}.esri-icon-dial:before{content:"";color:inherit}.esri-icon-polygon:before{content:"";color:inherit}.esri-icon-polyline:before{content:"";color:inherit}.esri-icon-visible:before{content:"";color:inherit}.esri-icon-non-visible:before{content:"";color:inherit}.esri-icon-link-vertical:before{content:"";color:inherit}.esri-icon-unlocked-link-vertical:before{content:"";color:inherit}.esri-icon-link-horizontal:before{content:"";color:inherit}.esri-icon-unlocked-link-horizontal:before{content:"";color:inherit}.esri-icon-swap:before{content:"";color:inherit}.esri-icon-cta-link-external:before{content:"";color:inherit}.esri-icon-reply:before{content:"";color:inherit}.esri-icon-public:before{content:"";color:inherit}.esri-icon-share2:before{content:"";color:inherit}.esri-icon-launch-link-external:before{content:"";color:inherit}.esri-icon-rotate-back:before{content:"";color:inherit}.esri-icon-pan2:before{content:"";color:inherit}.esri-icon-tracking:before{content:"";color:inherit}.esri-icon-expand2:before{content:"";color:inherit}.esri-icon-arrow-down:before{content:"";color:inherit}.esri-icon-arrow-up:before{content:"";color:inherit}.esri-icon-hollow-eye:before{content:"";color:inherit}.esri-icon-play-circled:before{content:"";color:inherit}.esri-icon-volume-off:before{content:"";color:inherit}.esri-icon-volume-on:before{content:"";color:inherit}.esri-icon-bookmark:before{content:"";color:inherit}.esri-icon-lightbulb:before{content:"";color:inherit}.esri-icon-sketch-rectangle:before{content:"";color:inherit}.esri-icon-north-navigation-filled:before{content:"";color:inherit}.esri-icon-default-action:before{content:"";color:inherit}.esri-icon-undo:before{content:"";color:inherit}.esri-icon-redo:before{content:"";color:inherit}.esri-icon-cursor:before{content:"";color:inherit}.esri-icon-cursor-filled:before{content:"";color:inherit}.esri-icon-measure:before{content:"";color:inherit}.esri-icon-measure-line:before{content:"";color:inherit}.esri-icon-measure-area:before{content:"";color:inherit}.esri-icon-legend:before{content:"";color:inherit}.esri-icon-sliders:before{content:"";color:inherit}.esri-icon-sliders-horizontal:before{content:"";color:inherit}.esri-icon-cursor-marquee:before{content:"";color:inherit}.esri-icon-lasso:before{content:"";color:inherit}.esri-icon-elevation-profile:before{content:"";color:inherit}.esri-icon-slice:before{content:"";color:inherit}.esri-icon-line-of-sight:before{content:"";color:inherit}.esri-icon-zoom-to-object:before{content:"";color:inherit}.esri-icon-urban-model:before{content:"";color:inherit}.esri-icon-measure-building-height-shadow:before{content:"";color:inherit}.esri-icon-partly-cloudy:before{content:"";color:inherit}.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-button{box-sizing:border-box;cursor:pointer;white-space:normal;word-break:normal;color:var(--calcite-color-text-1);background-color:var(--calcite-color-status-info);border:var(--calcite-spacing-px) solid var(--calcite-color-status-info);justify-content:center;align-items:center;width:100%;min-height:var(--calcite-spacing-xxxl);padding:6px 7px;font-family:inherit;font-size:var(--calcite-font-size);transition:background-color .125s ease-in-out,border .125s ease-in-out;display:flex;overflow:hidden;&:hover{color:var(--calcite-color-text-1);background-color:var(--calcite-color-status-info-hover);border:var(--calcite-spacing-px) solid var(--calcite-color-status-info-hover)}}.esri-button:hover{color:var(--calcite-color-text-1);background-color:var(--calcite-color-text-2);border:1px solid var(--calcite-color-text-2)}.esri-button.esri-button--small{min-height:var(--calcite-spacing-xl);font-size:var(--calcite-font-size-sm)}.esri-button.esri-button--half{width:50%;display:inline-block}.esri-button.esri-button--third{width:33%;display:inline-block}.esri-button--secondary{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1)}.esri-button--tertiary{color:var(--calcite-color-brand);background-color:var(--calcite-color-transparent);border-color:var(--calcite-color-transparent)}.esri-button--tertiary:hover{color:var(--calcite-color-brand-hover);background-color:var(--calcite-color-foreground-2);border-color:var(--calcite-color-transparent)}.esri-button--disabled{opacity:.4;pointer-events:none}.esri-button--drill-in{outline-offset:-4px;cursor:pointer;text-align:unset;background-color:var(--calcite-color-foreground-1);border:none;border-radius:2px;justify-content:space-between;align-items:center;margin:var(--calcite-spacing-md) 7px;padding:var(--calcite-spacing-md) 7px;text-decoration:none;transition:background-color .125s ease-in-out;display:flex;box-shadow:0 0 0 1px #adadad4d}.esri-button--drill-in:hover,.esri-button--drill-in:focus{background-color:var(--calcite-color-foreground-2)}.esri-button--drill-in__title{font-size:var(--calcite-font-size)}.esri-button--drill-in [class^=esri-icon-],.esri-button--drill-in [class*=" esri-icon-"]{padding:0 7px}.esri-widget--button{cursor:pointer;text-align:center;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);flex-flow:row;justify-content:center;align-items:center;width:var(--calcite-spacing-xxxl);height:var(--calcite-spacing-xxxl);margin:0;padding:0;font-size:var(--calcite-font-size);transition:background-color .125s ease-in-out;display:flex;overflow:hidden}.esri-widget--button:is(calcite-button):not(:hover){--calcite-icon-color: var(--calcite-color-text-3)}.esri-widget--button:not([appearance]),.esri-widget--button[appearance=solid]{--calcite-color-foreground-3: var(--calcite-color-foreground-1)}.esri-widget--button:is(calcite-button){--calcite-offset-invert-focus: 1}.esri-widget--button calcite-loader[inline]{margin:auto}.esri-button--secondary{color:var(--calcite-color-brand);background-color:var(--calcite-color-foreground-1);&:hover{color:var(--calcite-color-text-inverse);background-color:var(--calcite-color-status-info);border:1px solid var(--calcite-color-status-info)}}:host{background-color:var(--calcite-color-foreground-1);color:var(--calcite-color-text-2);padding-block-start:var(--arcgis-coordinate-conversion-padding-y);width:var(--arcgis-coordinate-conversion-width, 280px)}.root{background-color:var(--calcite-color-foreground-1)}calcite-alert{--calcite-alert-offset-size: var(--calcite-spacing-sm)}calcite-notice[open]{padding:var(--calcite-spacing-sm)}calcite-block{--calcite-block-content-space: 0;margin:0;padding-inline:var(--arcgis-coordinate-conversion-padding-x)}calcite-block:last-of-type{padding-block-end:var(--arcgis-coordinate-conversion-padding-y, var(--calcite-spacing-sm))}.conversion-popover{--calcite-popover-max-size-x: var(--arcgis-coordinate-conversion-settings-block-size, 250px)}.go-to-input-holder{display:flex}.go-to-input-holder calcite-input{flex:1}.conversions-block{border:none;padding-bottom:var(--calcite-spacing-sm)}.live-mode-block{--calcite-label-margin-bottom: 0;padding-block:var(--calcite-spacing-sm);padding-inline:var(--arcgis-coordinate-conversion-padding-x, var(--calcite-spacing-sm))}.live-mode-label{width:fit-content;margin-inline-start:auto}.font-size-small{font-size:var(--calcite-font-size--2)}.format-radio-label{display:flex;flex-direction:column}.radio-label{font-weight:var(--calcite-font-weight-medium);font-size:var(--calcite-font-size--2)}.radio-description{font-weight:var(--calcite-font-weight-light);font-size:var(--calcite-font-size--3)}.unit-select-panel{--calcite-panel-space: var(--calcite-spacing-md)}.popover-footer{padding:var(--calcite-spacing-sm);border-top:1px solid var(--calcite-color-border-3)}.input-form-group{display:flex;flex-direction:column;align-items:flex-start;padding:var(--calcite-spacing-sm)}.add-conversion-trigger{margin-inline-start:var(--calcite-spacing-sm);margin-block-start:var(--calcite-spacing-sm)}.input-form-group calcite-label{width:100%}.settings{padding:var(--calcite-spacing-md);display:flex;flex-direction:column;align-items:center;background-color:var(--calcite-color-foreground-1);width:calc(var(--arcgis-coordinate-conversion-settings-block-size, 250px) - (2 * var(--calcite-spacing-md)) - 2px)}.settings calcite-label{width:100%}.settings calcite-input{flex:1}.settings-form-group-horizontal{display:flex}`,q=2500,B=new I({x:0,y:0}),l={copy:"copy",gear:"gear",goTo:"zoom-to-object",lightbulb:"lightbulb",plus:"plus",refresh:"refresh",warning:"exclamation-mark-triangle"},j=P(O),m=class extends ${constructor(){super(...arguments),this._alertTimer=-1,this._conversionPopoverMap=new Map,this._coordinateInput=u(),this.messages=C({name:"coordinate-conversion-next",blocking:!0}),this._multipleConversionsDisabled=!1,this.quantityFormatter=new A,this.viewModel=j(this),this.clearAlertTimeout=()=>{window.clearTimeout(this._alertTimer),this.alertProperties={...this.alertProperties,open:!1}},this.onElevationPopoverTriggerMount=e=>{this._elevationPopoverTrigger=e},this.onFormatPopoverTriggerMount=e=>{this._formatsPopoverTrigger=e},this.handleFormatComboboxChange=e=>{let i=e.target.selectedItems[0].value,o=this.formats.find(t=>t.name===i);if(o){let t=this.activeConversion??this.conversions.at(0)??null,r=new f({format:o});t&&this.transferConversionPopoverState(t,r),this.conversions.splice(0,1,r),this.activeConversion=r,this.setPreviewConversion()}},this.alertProperties={kind:"brand",message:null,title:null,open:!1},this.elevationPopoverOpen=!1,this.formatsPopoverOpen=!1,this.invalidInput=!1,this.view=this.viewModel.view,this.autoDestroyDisabled=!1,this.conversions=this.viewModel.conversions,this.currentLocation=this.viewModel.currentLocation,this.formats=this.viewModel.formats,this.goToOverride=this.viewModel.goToOverride,this.headingLevel=4,this.hideCaptureSection=!1,this.hideInputSection=!1,this.hideSettingsButton=!1,this.icon="coordinate-system",this.label=this.messages.componentLabel,this.locationSymbol=this.viewModel.locationSymbol,this.mode=this.viewModel.mode,this.removeLeadingZeros=this.viewModel.removeLeadingZeros,this.visualScale="s",this.showElevation=!1,this.state=this.viewModel.state,this.storageType=this.viewModel.storageType,this.arcgisConversionChange=v(),this.arcgisPropertyChange=k()("currentLocation","state","mode","verticalUnit"),this.arcgisReady=v(),this.renderConversionView=(e,i)=>{let{messages:o}=this,{format:t}=e,r=t?.label??"",s=i===0&&!e.displayCoordinate?o.noLocation:e.displayCoordinate,a=this._renderConversionActions(e,s);return z(e?.format?.name,n`<calcite-list-item class="conversion-list-item" .description=${r.toUpperCase()} .label=${this.getDisplayCoordinate(s)} .scale=${this.visualScale} title=${s??void 0??c}>${a}</calcite-list-item>`)},this.renderLiveModeSection=()=>{let{messages:e}=this,i=this.mode==="idle"?this.viewModel.mode:this.mode;return n`<calcite-block class="live-mode-block" .disabled=${this.disabled} expanded .headingLevel=${this.headingLevel} .label=${e.captureMode} .scale=${this.visualScale}><calcite-label alignment=end class="live-mode-label" layout=inline .scale=${this.visualScale}>${e.captureMode}<calcite-switch .checked=${i==="capture"} @calciteSwitchChange=${this.toggleMode}></calcite-switch></calcite-label></calcite-block>`}}static{this.properties={activeConversion:16,alertProperties:16,defaultMeasurementSystem:16,disabled:16,displayedElevation:16,elevationPopoverOpen:16,formatsPopoverOpen:16,invalidInput:16,inputFormat:16,previewConversion:16,view:0,autoDestroyDisabled:5,conversions:0,currentLocation:0,formats:0,goToOverride:0,headingLevel:9,hideCaptureSection:7,hideInputSection:7,hideSettingsButton:7,icon:1,ignoreCoordinatePrecision:5,label:1,locationSymbol:0,mode:3,multipleConversionsDisabled:7,referenceElement:1,removeLeadingZeros:7,visualScale:1,showElevation:7,state:32,storageDisabled:7,storageType:1,verticalUnit:1}}static{this.styles=V}get defaultMeasurementSystem(){return this.view?.ready?U(this.view):"metric"}get disabled(){return this.viewModel.state==="disabled"}get displayedElevation(){let{currentLocation:e,verticalUnit:i,messages:o}=this;if(e?.z===void 0||e.z===null)return o.noElevation;{let t=D(e.z,"meters",i);return this.quantityFormatter.formatLength({value:t,unit:i,type:"length"},2,"plural")}}get ignoreCoordinatePrecision(){return!this.viewModel.calculateCoordinatePrecision}set ignoreCoordinatePrecision(e){this.viewModel.calculateCoordinatePrecision=!e}get multipleConversionsDisabled(){return this._multipleConversionsDisabled}set multipleConversionsDisabled(e){e&&this.conversions.splice(1,this.conversions.length-1),this._multipleConversionsDisabled=e}get storageDisabled(){return!this.viewModel.storageEnabled}set storageDisabled(e){this.viewModel.storageEnabled=!e}get verticalUnit(){return this.viewModel.verticalUnit??(this.defaultMeasurementSystem==="imperial"?"feet":"meters")}set verticalUnit(e){this.viewModel.verticalUnit=e}async destroy(){this.clearAlertTimeout(),await this.manager.destroy()}async reverseConvert(e,i){return await this.viewModel.reverseConvert(e,i)}load(){this.manager.onLifecycle(()=>[this.conversions.on("change",()=>this.arcgisConversionChange.emit())])}willUpdate(e){if(e.has("mode")&&this.mode==="idle"){this.viewModel.setLocation(this.currentLocation);return}if(e.has("currentLocation")){let i=e.get("currentLocation");this.mode==="idle"&&!this.currentLocation?.equals(i)&&this.viewModel.setLocation(this.currentLocation)}}closeAllPopovers(){for(let e of this._conversionPopoverMap.values())e.open=!1;this.elevationPopoverOpen=!1,this.formatsPopoverOpen=!1,this.requestUpdate()}async copyToClipboard(e){e&&(e=e.replace(//gu,""),await navigator.clipboard.writeText(e))}findSettingsFormat(){return this.activeConversion?.format||this.conversions.reduceRight((e,i)=>{let o=i.format;return o&&b(o)?o:e},null)||this.formats.find(e=>b(e))||null}getConversionPopoverState(e){let i=this._conversionPopoverMap.get(e);return i||(i={triggerRef:u(),open:!1},this._conversionPopoverMap.set(e,i)),i}getDisplayCoordinate(e){return e?e.includes(",")?e.replace(/, /gu,",\xA0\u200B").replace(/ /gu,"\xA0"):e:"\u200B"}getFormatDescription(e){let{messages:i}=this;return i.formatDescriptions[e.name]??i.formatDescriptions.custom}getId(e){return`arcgis-coordinate-conversion-${e}`}openConversionSettings(e,i){let o=this.getConversionPopoverState(e),t=this.activeConversion!==e||!o.open;this.closeAllPopovers(),o.open=t,this._conversionPopoverTrigger=t?i.currentTarget:void 0,this.activeConversion=t?e:void 0,t&&this.setPreviewConversion(),this.requestUpdate(),i.stopPropagation()}async processUserInput(e,i,o){let{viewModel:t}=this;try{let r=await this._reverseConvert(e,i);if(r)o&&t.goToLocation(r).catch(s=>{g(this)(s),this.showAlertMessage(null,this.messages.locationOffBasemap,"warning")});else throw new Error("failed to process user input");this.mode==="capture"?t.resume():this.mode="capture",this.invalidInput=!1,this.currentLocation=r??void 0,t.setLocation(r)}catch(r){g(this)(r),this.showAlertMessage(null,this.messages.invalidCoordinate,"warning"),this.invalidInput=!0}}async processUserKeyboardInput(e){let{key:i}=e;if(i==="Enter"){let o=this.inputFormat||this.conversions.at(0)?.format,t=this._coordinateInput.value?.value;if(!o||!t)return;await this.processUserInput(t,o,!0)}else this.invalidInput=!1}async processUserMouseInput(e){let i=this.inputFormat||this.conversions.at(0)?.format,o=this._coordinateInput.value?.value;!i||!o||await this.processUserInput(o,i,e)}async _reverseConvert(e,i){return await i.reverseConvert(e)}setDefaultPattern(e){e.stopPropagation();let i=this.findSettingsFormat();i?.defaultPattern&&(i.currentPattern=i.defaultPattern)}setInputFormat(e){let i=e.target.selectedOption.value;i!==null&&(this.inputFormat=i)}setPreviewConversion(){let e=this.findSettingsFormat(),i=this.viewModel;if(e){let o=this.conversions.find(t=>t.format===e);this.previewConversion=new f({format:e,position:{location:this.currentLocation,coordinate:o?.position?.coordinate}}),this.previewConversion.position?.coordinate||i.previewConversion(this.previewConversion,i.currentLocation??B)}}showAlertMessage(e,i,o,t=q){this.alertProperties={...this.alertProperties,title:e,message:i,kind:o,open:!0},window.clearTimeout(this._alertTimer),this._alertTimer=window.setTimeout(()=>{this.alertProperties={...this.alertProperties,open:!1}},t)}toggleConversion(e){let i=e.target,o=this.formats.find(t=>t.name===i.getAttribute("data-format"));if(o){let t=this.conversions.find(r=>r.format===o);if(t){if(this.conversions.length>1){let r=this._conversionPopoverMap.get(t);r&&(r.open=!1,this._conversionPopoverMap.delete(t)),this.activeConversion===t&&(this.activeConversion=void 0),this.conversions.remove(t)}}else{let r=new f({format:o});this.conversions.add(r)}}}toggleMode(){this.mode=this.viewModel.mode==="live"?"capture":"live"}transferConversionPopoverState(e,i){let o=this.getConversionPopoverState(e),t=this.getConversionPopoverState(i);t.open=o.open,this._conversionPopoverMap.delete(e)}updateCurrentPattern(e){e.stopPropagation();let i=e.target,o=this.findSettingsFormat();o&&(o.currentPattern=i.value)}render(){let{headingLevel:e}=this,i=this.renderConversionPopover();return n`<calcite-panel class=root .headingLevel=${e} .scale=${this.visualScale}>${this.renderConversionsView()}${this.renderAlert()}</calcite-panel>${i}`}renderAlert(){let{messages:e}=this,{open:i,message:o,title:t,kind:r}=this.alertProperties;return n`<calcite-alert class="alert" .kind=${r} .label=${e.alertLabel} @calciteAlertClose=${this.clearAlertTimeout} .open=${i} placement=top .scale=${this.visualScale} slot=alerts>${t?n`<div slot=title>${t}</div>`:null}${o?n`<div slot=message>${o}</div>`:null}</calcite-alert>`}_renderConversionActions(e,i){let{messages:o}=this,t=this.getConversionPopoverState(e),r=o.settingsTitleWithFormat.replace("{formatName}",e.format?.name?.toUpperCase()??""),s=e.displayCoordinate&&this.mode!=="live";return n`<calcite-action-group layout=horizontal .scale=${this.visualScale} slot=actions-end>${s?n`<calcite-action .icon=${l.copy} .label=${o.copyLabel} @click=${()=>this.copyToClipboard(i)} .scale=${this.visualScale} .text=${o.copyLabel} title=${o.copyLabel??c}></calcite-action>`:null}${this.hideSettingsButton?null:n`<calcite-action data-format=${e.format?.name??c} .icon=${l.gear} .label=${r} @click=${a=>this.openConversionSettings(e,a)} .scale=${this.visualScale} .text=${r} title=${r??c} ${h(t.triggerRef)}></calcite-action>`}</calcite-action-group>`}renderConversionOptions(e,i){return e.map(o=>n`<calcite-option .label=${o.label.toUpperCase()} .selected=${o===i} .value=${o}>${o.label}</calcite-option>`)}renderConversionPopover(){let{activeConversion:e,messages:i}=this;if(!e)return null;let o=this.getConversionPopoverState(e),t=i.settingsTitleWithFormat.replace("{formatName}",e.format?.name?.toUpperCase()??"");return this.renderPopover({class:"conversion-popover",content:this.renderSettingsView(),getPopoverOpenProperty:()=>o.open,heading:t,includeFooter:!0,label:t,setPopoverOpenProperty:r=>{o.open=r,r||(this._conversionPopoverTrigger=void 0,this.activeConversion=void 0),this.requestUpdate()},trigger:null,triggerElement:o.triggerRef.value??this._conversionPopoverTrigger??void 0})}renderConversionsView(){if(!this.conversions)return;let{messages:e,multipleConversionsDisabled:i}=this,o=(i?this.conversions.slice(0,1):this.conversions).map(this.renderConversionView).reverse(),t=this.showElevation?this.renderElevation():null,r=this.hideCaptureSection?null:this.renderLiveModeSection(),s=this.hideInputSection?null:this.renderCoordinateInputView(),a=this.multipleConversionsDisabled?null:this.renderFormatDropdown(),d=this.disabled?n`<calcite-notice .icon=${l.lightbulb} .open=${this.disabled} width=full><div class="font-size-small" slot=message>${e.noBasemap}</div></calcite-notice>`:null;return n`${r}${d}${s}<calcite-block class="conversions-block" .disabled=${this.disabled} expanded .heading=${e.coordinates} .headingLevel=${this.headingLevel} .scale=${this.visualScale}><calcite-list interaction-mode=static .label=${e.coordinates} .scale=${this.visualScale}>${o}</calcite-list>${a}</calcite-block>${t}`}renderCoordinateInputView(){let{messages:e}=this,i=this.inputFormat??this.conversions.at(0)?.format,o=this.getId("coordinate-input"),t=this.renderConversionOptions(this.formats,i??void 0),r=n`<calcite-action .icon=${l.goTo} .label=${e.convertAndGoTo} @click=${()=>this.processUserMouseInput(!0)} .scale=${this.visualScale} .text=${e.convertAndGoTo} title=${e.convertAndGoTo??c}></calcite-action>`;return n`<calcite-block collapsible data-testid=input-block .disabled=${this.disabled} .heading=${e.input} .headingLevel=${this.headingLevel} .scale=${this.visualScale}><div class="input-form-group"><calcite-label .scale=${this.visualScale}>${e.inputFormat}<calcite-select aria-controls=${o??c} class="input-select" .label=${e.inputFormat} @calciteSelectChange=${this.setInputFormat} .scale=${this.visualScale}>${t}</calcite-select></calcite-label><calcite-label .scale=${this.visualScale}>${e.inputCoordTitle}<div class="go-to-input-holder"><calcite-input class="coordinate-input" data-format=${i??c} data-testid=coordinate-input id=${o??c} @keydown=${this.processUserKeyboardInput} .placeholder=${e.inputCoordTitle} required .scale=${this.visualScale} .status=${this.invalidInput?"invalid":"idle"} ${h(this._coordinateInput)}></calcite-input>${r}</div></calcite-label><calcite-button appearance=outline data-testid=convert-button kind=neutral @click=${()=>this.processUserMouseInput(!1)} type=button .scale=${this.visualScale} width=auto>${e.convert}</calcite-button></div></calcite-block>`}renderElevation(){let{messages:e}=this,i=this.displayedElevation??e.noElevation,o=this.renderElevationActions(),t=this.hideSettingsButton?null:this.renderElevationSettingsDropdown();return n`<calcite-block .disabled=${this.disabled} expanded .heading=${e.elevation} .headingLevel=${this.headingLevel} .scale=${this.visualScale}><calcite-list interaction-mode=static .label=${e.elevation} .scale=${this.visualScale}><calcite-list-item class="elevation-list-item" .label=${i} .scale=${this.visualScale} title=${i??c}>${o}</calcite-list-item></calcite-list>${t}</calcite-block>`}renderElevationActions(){let{messages:e}=this,i=this.currentLocation?.z!==void 0&&this.mode!=="live",o=this.displayedElevation??e.noElevation;return n`<calcite-action-group layout=horizontal .scale=${this.visualScale} slot=actions-end>${i?n`<calcite-action .icon=${l.copy} .label=${e.copyElevationLabel} @click=${()=>i&&this.copyToClipboard(o)} .scale=${this.visualScale} .text=${e.copyElevationLabel} title=${e.copyElevationLabel??c}></calcite-action>`:null}${this.hideSettingsButton?null:n`<calcite-action .icon=${l.gear} .label=${e.selectElevationUnit} .scale=${this.visualScale} .text=${e.selectElevationUnit} title=${e.selectElevationUnit??c} ${h(this.onElevationPopoverTriggerMount)}></calcite-action>`}</calcite-action-group>`}renderElevationSettingsDropdown(){let{messages:e}=this,i=n`<arcgis-unit-radio-button-group @arcgisUnitSelectChange=${o=>this.verticalUnit=o.detail} .options=${S} .name=${e.selectElevationUnit} .scale=${this.visualScale} .value=${this.verticalUnit}></arcgis-unit-radio-button-group>`;return this.renderPopover({content:i,closeOnEnter:!0,getPopoverOpenProperty:()=>this.elevationPopoverOpen,includeFooter:!1,label:e.selectElevationUnit,setPopoverOpenProperty:o=>this.elevationPopoverOpen=o,trigger:null,triggerElement:this._elevationPopoverTrigger})}renderFormatDropdown(){let{messages:e}=this,i=n`<calcite-list .label=${e.addConversion} .scale=${this.visualScale} selection-mode=multiple>${M(this.formats,t=>t,t=>{let r=!!this.conversions.find(a=>a.format===t),s=this.getFormatDescription(t);return n`<calcite-list-item data-format=${t.name??c} .description=${s} .disabled=${r&&this.conversions.length===1} .label=${t.label.toUpperCase()} @calciteListItemSelect=${this.toggleConversion} .selected=${r}></calcite-list-item>`})}</calcite-list>`,o=n`<calcite-button appearance=outline class="add-conversion-trigger" .iconStart=${l.plus} kind=neutral .label=${e.selectFormats} round .scale=${this.visualScale} ${h(this.onFormatPopoverTriggerMount)}>${e.selectFormats}</calcite-button>`;return this.renderPopover({content:i,includeFooter:!0,getPopoverOpenProperty:()=>this.formatsPopoverOpen,label:e.selectFormats,setPopoverOpenProperty:t=>this.formatsPopoverOpen=t,trigger:o,triggerElement:this._formatsPopoverTrigger})}renderPopover({content:e,class:i,closeOnEnter:o,heading:t,getPopoverOpenProperty:r,includeFooter:s,label:a,setPopoverOpenProperty:d,slot:L,trigger:E,triggerDisabled:T,triggerElement:w}){let{messages:F}=this;return n`${E}${w?n`<calcite-popover auto-close class=${_(i)} .heading=${t} .headingLevel=${this.headingLevel} .label=${a} @calcitePopoverBeforeOpen=${()=>{d(!0)}} @calcitePopoverClose=${p=>{d(!1),p.stopPropagation()}} @keydown=${p=>{o&&(p.key==="Enter"||p.key===" ")&&d(!1)}} .open=${r()} .referenceElement=${w} .scale=${this.visualScale} slot=${L??c} .triggerDisabled=${T}>${e}${s?n`<div class="popover-footer"><calcite-button appearance=solid class="popover-done-button" kind=brand @click=${()=>d(!1)} .scale=${this.visualScale} width=full>${F.done}</calcite-button></div>`:null}</calcite-popover>`:null}`}renderSettingsView(){let{messages:e}=this,i=this.findSettingsFormat(),o=this.getId("pattern-input"),t=this.getId("preview-coordinate"),r=i?.currentPattern,s=this.multipleConversionsDisabled?this.renderSingleFormatDropdown():null;if(!i||!b(i))return n`<div class="settings"><calcite-label .scale=${this.visualScale}>${e.format}${s??n`<calcite-notice class="no-display-properties-notice" .icon=${l.warning} open .scale=${this.visualScale}><div class="font-size-small" slot=message>${e.noDisplayProperties}</div></calcite-notice>`}</calcite-label></div>`;let a=n`<calcite-action .icon=${l.refresh} .label=${e.defaultPattern} @click=${this.setDefaultPattern} .scale=${this.visualScale} .text=${e.defaultPattern} title=${e.defaultPattern??c}></calcite-action>`;return n`<div class="settings"><calcite-label .scale=${this.visualScale}>${e.format}${s}</calcite-label><calcite-label .for=${o} .scale=${this.visualScale}>${e.display}<div class="settings-form-group-horizontal"><calcite-input aria-controls=${t??c} class="pattern-input" id=${o??c} @calciteInputInput=${this.updateCurrentPattern} .scale=${this.visualScale} type=text .value=${r}></calcite-input>${a}</div></calcite-label><calcite-label .scale=${this.visualScale}>${e.preview}<calcite-input read-only .scale=${this.visualScale} type=text .value=${this.previewConversion?.displayCoordinate??void 0}></calcite-input></calcite-label></div>`}renderSingleFormatDropdown(){let{messages:e}=this;return n`<calcite-combobox data-testid=single-format-combobox .label=${e.selectFormat} @calciteComboboxChange=${this.handleFormatComboboxChange} .scale=${this.visualScale} selection-mode=single-persist>${this.formats?.map(i=>n`<calcite-combobox-item .description=${this.getFormatDescription(i)} .heading=${i.label.toUpperCase()} .selected=${this.conversions.at(0)?.format===i} .value=${i.name}></calcite-combobox-item>`)}</calcite-combobox>`}};y("arcgis-coordinate-conversion-next",m);return m},"applications/Components/unitUtils","applications/Components/getDefaultUnits","applications/Components/formatUtils","geometry/Point","widgets/CoordinateConversion/CoordinateConversionViewModel","widgets/CoordinateConversion/support/Conversion","applications/Components/QuantityFormatter",a,b,d,e)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import{a as v}from"./54VXNFQ4.js";import{d as S}from"./
|
|
2
|
+
import{a as v}from"./54VXNFQ4.js";import{d as S}from"./HAYFOL4X.js";import{P as d,R as g,b as m,c as h,d as p}from"./3QWV6QFB.js";var x=Symbol.for(""),y=t=>{if(t?.r===x)return t?._$litStatic$},_=t=>({_$litStatic$:t,r:x});var M=new Map,u=t=>(a,...s)=>{let r=s.length,n,o,i=[],l=[],c,e=0,$=!1;for(;e<r;){for(c=a[e];e<r&&(o=s[e],(n=y(o))!==void 0);)c+=n+a[++e],$=!0;e!==r&&l.push(o),i.push(c),e++}if(e===r&&i.push(a[r]),$){let f=i.join("$$lit$$");(a=M.get(f))===void 0&&(i.raw=i,M.set(f,a=i)),s=l}return t(a,...s)},b=u(m),j=u(h),k=u(p);function A({level:t,class:a,id:s,children:r,excludeGlobalCss:n}){let o=w(t),i=`h${o}`,l=_(i);return b`<${l} .ariaLevel=${String(o)} class=${d(S(n?a:v.heading,a))} id=${s??g} role=heading>${r}</${l}>`}function C(t,a,s){return Math.min(Math.max(t,a),s)}function w(t){return C(Math.ceil(t),1,6)}function B(t,a=1){return w(t+a)}export{A as a,B as b};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import{a as p}from"./
|
|
2
|
+
import{a as p}from"./YPVLWVDG.js";import{i as m}from"./S4I3X6AX.js";import{a as n}from"./ENWA56JZ.js";import"./DN6MOY5G.js";import"./HR4YG75X.js";import"./HAYFOL4X.js";import{O as o,U as r,a as l,b as e,x as c}from"./3QWV6QFB.js";import"./3TTFCHAA.js";var y=l`:host{width:100%}.root{--calcite-label-margin-bottom: 0;width:100%}.root[layout=inline-space-between] calcite-select{width:var(--arcgis-unit-select-inline-size, 180px)}`,s=class extends o{constructor(){super(...arguments),this.messages=n({}),this.options=[],this.scale="m",this.layout="block",this.arcgisUnitSelectChange=c()}static{this.properties={options:[1,{type:Array}],scale:1,selectLabel:1,value:0,messageOverrides:0,label:1,layout:1}}static{this.styles=y}async destroy(){await this.manager.destroy()}render(){let{messages:a,options:h=[],selectLabel:i,value:u,arcgisUnitSelectChange:g}=this;return e`<calcite-label class="root" .layout=${this.layout} .scale=${this.scale}>${i}<calcite-select .label=${i} @calciteSelectChange=${t=>{g.emit(t.target.value)}} .scale=${this.scale}>${p(h,t=>t,t=>e`<calcite-option .selected=${t===u} .value=${t}>${m(t)?a.systems?.[t]:a.units?.[t]?.pluralCapitalized}</calcite-option>`)}</calcite-select></calcite-label>`}};r("arcgis-unit-select",s);export{s as ArcgisUnitSelect};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
+
import{a as _}from"./ENWA56JZ.js";import"./DN6MOY5G.js";import"./HR4YG75X.js";import"./HAYFOL4X.js";import{M as l,N as h,O as o,U as c,b as n,p as r}from"./3QWV6QFB.js";import"./3TTFCHAA.js";export default $arcgis.t(([p,{renderingSanitizer:u}])=>{var a=class extends o{constructor(){super(...arguments),this._lastRun=0,this._attempted=!1,this._isCurrentlyInView=!1,this._io=null,this._titleContainerSpan=l(),this._messages=_(),this._generatedTitle=null,this.isNewFeature=!1}static{this.properties={_generatedTitle:16,graphic:0,layer:0,noTitleLabel:1,isNewFeature:5}}loaded(){this.manager.onLifecycle(()=>(this._addIntersectionObserver(),()=>{this._removeIntersectionObserver()}))}willUpdate(e){e.has("graphic")&&(this.hasUpdated||this.graphic!==null)&&this._changeGraphic()}updated(){!this._attempted&&this._isCurrentlyInView&&(this._attempted=!0,this._handleTitle().catch(e=>{r("warn",this,"Failed processing title")}))}get rootLayer(){return this.layer?.type==="subtype-sublayer"?this.layer.parent:this.layer}_changeGraphic(){this._changeData()}_changeData(){this._generatedTitle=null,this._attempted=!1}_createNoTitleLabel(){return this.noTitleLabel===null||this.noTitleLabel===void 0?this._messages.noTitleLabel??"":this.noTitleLabel}async _generateTitle(){if(!(this.layer&&this.graphic))return this._createNoTitleLabel();if(this.layer.getFeatureTitle){let e=this.graphic;if(this.isNewFeature&&this.layer?.objectIdField&&e){let{[this.layer.objectIdField]:i,...s}=e.attributes??{};e=new p({geometry:e.geometry,attributes:{...s}})}return await this.layer.getFeatureTitle(e)||this._createNoTitleLabel()}else return this._createNoTitleLabel()}async _handleTitle(){let e=++this._lastRun;if(!this._generatedTitle||this._generatedTitle==="")try{let t=await this._generateTitle();if(this._lastRun!==e||this._generatedTitle===t)return;this._generatedTitle=u.sanitize(t??"")}finally{this._attempted=!0}}_addIntersectionObserver(){let e={rootMargin:"50px 0px",threshold:.01};this._titleContainerSpan.value&&requestAnimationFrame(()=>{this.isConnected&&(this._io=new IntersectionObserver(t=>{let i=!1;t.forEach(s=>{s.intersectionRatio>0&&!i?(i=!0,this._isCurrentlyInView=!0,this._handleTitle().catch(g=>{r("warn",this,"Failed processing title")})):this._isCurrentlyInView=!1})},e),this._io.observe(this._titleContainerSpan.value))})}_removeIntersectionObserver(){this._io?.disconnect(),this._io=null}render(){return n`<span .innerHTML=${this._generatedTitle??""??""} ${h(this._titleContainerSpan)}></span>`}};c("arcgis-feature-title",a);return a},"Graphic","applications/Components/sanitizerUtils")
|