@esri/solutions-components 5.1.2 → 5.1.3
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/{7EJXZVSX.js → 2CCKYJSY.js} +1 -1
- package/dist/cdn/{3KYCZII7.js → 2DCSGUOX.js} +1 -1
- package/dist/cdn/{LSMP2ZCO.js → 2EUQOQY3.js} +1 -1
- package/dist/cdn/{FSFVH74N.js → 2GHTA5PV.js} +1 -1
- package/dist/cdn/{3DNEBMT3.js → 2GJEHDZJ.js} +1 -1
- package/dist/cdn/{LRGW6G5E.js → 2XTZLJ5F.js} +1 -1
- package/dist/cdn/{CKPQTIAF.js → 37CMWBMW.js} +1 -1
- package/dist/cdn/{SD3DV4KO.js → 37XAYW3Z.js} +1 -1
- package/dist/cdn/{LQFA6HOT.js → 3DFMPPUD.js} +1 -1
- package/dist/cdn/{LXJI7FYN.js → 3MN7XFQ2.js} +1 -1
- package/dist/cdn/{EHIUCEAX.js → 3N2AUH5S.js} +1 -1
- package/dist/cdn/{OPWMEQVM.js → 3TO6KC3G.js} +2 -2
- package/dist/cdn/{OVAQRVFG.js → 3XOKCST3.js} +1 -1
- package/dist/cdn/{GZZMHIFA.js → 43MZA66W.js} +1 -1
- package/dist/cdn/{T7O4WZGU.js → 45JNINYV.js} +1 -1
- package/dist/cdn/{RQVXDCWL.js → 4PDKVX4T.js} +1 -1
- package/dist/cdn/{DEVAXAP7.js → 56PIVLPU.js} +1 -1
- package/dist/cdn/{ZB5UCRCG.js → 5BJO5ABV.js} +1 -1
- package/dist/cdn/{QVD3AXIP.js → 5EYRW6FE.js} +1 -1
- package/dist/cdn/{L6XSVTY3.js → 5L7HZJBG.js} +1 -1
- package/dist/cdn/{4RH7N22O.js → 5LM5R34X.js} +1 -1
- package/dist/cdn/{JF2ASXUT.js → 6AVCTQ6J.js} +1 -1
- package/dist/cdn/{PSM4UX7K.js → 6AWTIASQ.js} +1 -1
- package/dist/cdn/{NIUKLQOT.js → 6FPVZV4K.js} +1 -1
- package/dist/cdn/{WVCL5OUK.js → 6SHN7V3N.js} +1 -1
- package/dist/cdn/{IVMHEGLY.js → 6UVMG6O6.js} +1 -1
- package/dist/cdn/{RPL5Q7IL.js → 7IKNLW73.js} +1 -1
- package/dist/cdn/{5IO4VX4R.js → AHC3CH4P.js} +1 -1
- package/dist/cdn/{74Z5A6E2.js → AKXVDLK3.js} +1 -1
- package/dist/cdn/AO7XKW2U.js +4 -0
- package/dist/cdn/{BZWJ3KFS.js → ATEM3GJU.js} +104 -104
- package/dist/cdn/{3NI2BJYO.js → AULN2QXN.js} +1 -1
- package/dist/cdn/{GRVDJVOF.js → AX2U2PGS.js} +1 -1
- package/dist/cdn/{YBJ6AHAG.js → B57TWGXS.js} +1 -1
- package/dist/cdn/{EX4K4RKP.js → B7YYMYZB.js} +1 -1
- package/dist/cdn/{SQEPSAKG.js → BACWGZE4.js} +1 -1
- package/dist/cdn/{BWNEUQZZ.js → BDAY2SRY.js} +1 -1
- package/dist/cdn/{O6IGMQN7.js → BOQUQFNT.js} +1 -1
- package/dist/cdn/{LKVPVQIC.js → BTOTDVAS.js} +1 -1
- package/dist/cdn/{6L6JOGWD.js → BWFET22E.js} +1 -1
- package/dist/cdn/{DXI5HEQM.js → C7YLT2V6.js} +1 -1
- package/dist/cdn/{V24CDHGH.js → CAXEJ55N.js} +1 -1
- package/dist/cdn/{LCDURBN6.js → CYKO5XJY.js} +1 -1
- package/dist/cdn/{HOSSEVH5.js → DDUV67TU.js} +1 -1
- package/dist/cdn/{UDWEFNJE.js → DRZ2MEHM.js} +1 -1
- package/dist/cdn/DTTQLI5W.js +2 -0
- package/dist/cdn/{5FW45CM6.js → EJK7PYN5.js} +1 -1
- package/dist/cdn/{C2GWD5VP.js → ENJC4SNG.js} +1 -1
- package/dist/cdn/{WNYAZ4ME.js → ESH7SFXX.js} +1 -1
- package/dist/cdn/{B7CVHLVL.js → F46RK2J3.js} +1 -1
- package/dist/cdn/{MZ5XI2CY.js → F6H43GFC.js} +1 -1
- package/dist/cdn/{ECUD4NU6.js → FAHLQLKD.js} +1 -1
- package/dist/cdn/{QMQAQSIA.js → FKQHOE2A.js} +1 -1
- package/dist/cdn/{7AHZBLTM.js → FL4YRGDB.js} +1 -1
- package/dist/cdn/{KPEPW4QL.js → FPBZRT3J.js} +1 -1
- package/dist/cdn/{UILBHLN7.js → FWRNU7AK.js} +1 -1
- package/dist/cdn/{BFFHQBDI.js → G63VTGNV.js} +1 -1
- package/dist/cdn/{QODVIACF.js → GCDVJH5S.js} +1 -1
- package/dist/cdn/{EBDDUQNC.js → GCLCH6NX.js} +1 -1
- package/dist/cdn/{MVXK7UGO.js → GLD7SDA5.js} +1 -1
- package/dist/cdn/{KB7CXY4N.js → GVREVCUB.js} +1 -1
- package/dist/cdn/{ZHVO477V.js → HCY3VGST.js} +1 -1
- package/dist/cdn/{65I4AUS4.js → HKURBCD6.js} +1 -1
- package/dist/cdn/{XA6ZDTKA.js → HSZJX2Q4.js} +1 -1
- package/dist/cdn/{GSLDFLWZ.js → HXCNKN3S.js} +1 -1
- package/dist/cdn/{JB5XLSNA.js → IK3L2OC3.js} +1 -1
- package/dist/cdn/{O6HS2AMH.js → IKA3ESQ5.js} +1 -1
- package/dist/cdn/{Y7Z6LFBH.js → IXSDSBUI.js} +1 -1
- package/dist/cdn/{XXRBPKMI.js → J5Q7IGCO.js} +1 -1
- package/dist/cdn/{KMY4AVEA.js → J6PFJWXU.js} +1 -1
- package/dist/cdn/{QTCXH2O3.js → JBBUAR3W.js} +1 -1
- package/dist/cdn/{3CSSTWYC.js → JCPQ7OOS.js} +1 -1
- package/dist/cdn/{BSIPKI63.js → JNQB7T54.js} +1 -1
- package/dist/cdn/{J7DTCWOP.js → JX7BWUKD.js} +1 -1
- package/dist/cdn/{CC7JGR5Q.js → KGL266WS.js} +1 -1
- package/dist/cdn/{MXPZF4RB.js → KGXEY5HR.js} +1 -1
- package/dist/cdn/{EJRV6YWD.js → KN5XFC7O.js} +1 -1
- package/dist/cdn/{FDNEF4QD.js → KU2QSXAD.js} +1 -1
- package/dist/cdn/{65OXHGCN.js → KX4F4INQ.js} +1 -1
- package/dist/cdn/{7XPOQHB4.js → KZBPVSUW.js} +1 -1
- package/dist/cdn/{VSRNGZ43.js → LABCYKSC.js} +1 -1
- package/dist/cdn/{WRMREY3V.js → LI3GKZ35.js} +1 -1
- package/dist/cdn/{7NQYBMRX.js → MIKSQTTI.js} +1 -1
- package/dist/cdn/{CVKCFLNY.js → MOHSZVTU.js} +1 -1
- package/dist/cdn/{LFIP5DV3.js → MWTTZLRQ.js} +1 -1
- package/dist/cdn/{GHVPHEOH.js → MXNYBLUV.js} +1 -1
- package/dist/cdn/{AS7PVOU3.js → MZ63UWGX.js} +1 -1
- package/dist/cdn/N4MCHYQT.js +2 -0
- package/dist/cdn/{MVSQRD5M.js → NAZXHTIH.js} +1 -1
- package/dist/cdn/{GSI62QHB.js → NBWMZOGE.js} +1 -1
- package/dist/cdn/{NJSQ3NUT.js → NGAS7OCN.js} +1 -1
- package/dist/cdn/{6RQBPR56.js → O7LSXSBD.js} +1 -1
- package/dist/cdn/{DF2U7HIU.js → OLN76PG4.js} +1 -1
- package/dist/cdn/PIRHBQVO.js +351 -0
- package/dist/cdn/{LSDYUCCZ.js → PLELSLAV.js} +1 -1
- package/dist/cdn/{6KBY56R4.js → PPLHKHZ3.js} +1 -1
- package/dist/cdn/{HQFL3NGM.js → PWGCOGC7.js} +1 -1
- package/dist/cdn/{DLV7AZZ6.js → QEITYICZ.js} +1 -1
- package/dist/cdn/{KLZWOBGK.js → QVDDWNQD.js} +1 -1
- package/dist/cdn/{ZXGNDW3R.js → QWUJHEPY.js} +1 -1
- package/dist/cdn/R437P4KQ.js +2 -0
- package/dist/cdn/{ZSATEDPE.js → RKVNFHFD.js} +1 -1
- package/dist/cdn/{CVNW2AU2.js → RM6HYEWM.js} +1 -1
- package/dist/cdn/{GWIC6C6P.js → RNMVOUE3.js} +1 -1
- package/dist/cdn/{C3SIGIJC.js → RQQWTDQG.js} +1 -1
- package/dist/cdn/{XIUYVZYL.js → S3CBTGXW.js} +1 -1
- package/dist/cdn/{XYAVR2MM.js → SGWJLKO4.js} +1 -1
- package/dist/cdn/{BKIKLE4Z.js → SI2EHJJ5.js} +1 -1
- package/dist/cdn/{Z6CZ7GFZ.js → SY3D5J7W.js} +1 -1
- package/dist/cdn/{3FIRDPVD.js → TBXAQ6YS.js} +1 -1
- package/dist/cdn/{Q5N7I65T.js → TFWTXEN7.js} +1 -1
- package/dist/cdn/{YHF3Q7QB.js → TKIL55TV.js} +1 -1
- package/dist/cdn/{NVNB4L52.js → TSLAML4I.js} +1 -1
- package/dist/cdn/{5Q64VY2E.js → UCHXRVI7.js} +1 -1
- package/dist/cdn/{PQVA7SKB.js → UE2HAEBW.js} +1 -1
- package/dist/cdn/{E3O6DPAL.js → UEC5OGAS.js} +1 -1
- package/dist/cdn/{DE7GSGUB.js → UKAP3ALW.js} +1 -1
- package/dist/cdn/{CRTJERAB.js → UNKENPV5.js} +1 -1
- package/dist/cdn/{5F6WBFDO.js → V4OFLP6D.js} +1 -1
- package/dist/cdn/{LK6WQCXQ.js → VBZL2GZD.js} +1 -1
- package/dist/cdn/{RNNEZRGA.js → VLP6VQEG.js} +1 -1
- package/dist/cdn/{INFZEU32.js → VZY472CH.js} +1 -1
- package/dist/cdn/{P2FSR5OV.js → WEADUP3Y.js} +1 -1
- package/dist/cdn/{Y2KRCLNN.js → WKTMPKVR.js} +1 -1
- package/dist/cdn/{E5YZOOW3.js → WXFKH5GM.js} +1 -1
- package/dist/cdn/{RAL6IXW5.js → X52CK3FZ.js} +1 -1
- package/dist/cdn/{4MAH5ULJ.js → X7GGOH2R.js} +1 -1
- package/dist/cdn/{RJLEYL7O.js → XEON6B7Z.js} +1 -1
- package/dist/cdn/{SAVDBHDE.js → XL66TA6C.js} +1 -1
- package/dist/cdn/{KPKJ2OVD.js → XN5455P6.js} +1 -1
- package/dist/cdn/{DQJ36YEL.js → XOCNSPTC.js} +1 -1
- package/dist/cdn/{TK5EXRZL.js → XOPNEAS5.js} +1 -1
- package/dist/cdn/{YVNBCXBJ.js → XR3PT7FP.js} +1 -1
- package/dist/cdn/{LOSU3FPH.js → XSJOQTEM.js} +1 -1
- package/dist/cdn/{6OKLCUSH.js → Y2DDFGCN.js} +1 -1
- package/dist/cdn/{6F6YFDOY.js → YWO5HXXP.js} +1 -1
- package/dist/cdn/{NWOPIQFN.js → ZIIHIUUV.js} +1 -1
- package/dist/cdn/{Q6CXYCV6.js → ZOGD4MGP.js} +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/chunks/runtime.js +1 -1
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/solutions-components_commit.txt +4 -7
- package/package.json +1 -1
- package/dist/cdn/A4KEZALJ.js +0 -2
- package/dist/cdn/CGQALCTZ.js +0 -4
- package/dist/cdn/CXTHIJOC.js +0 -351
- package/dist/cdn/GPIIJWNM.js +0 -2
- package/dist/cdn/IGY23J7D.js +0 -2
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import{b as h}from"./
|
|
2
|
+
import{b as h}from"./KGXEY5HR.js";import{F as o,G as a,H as m,J as n,h as d,i as c,u as l}from"./T3EPRHTT.js";import"./EXBEKVP5.js";export default $arcgis.t(([v,p,g])=>{var f=d`@layer{.esri-measurement,.esri-coordinate-conversion{width:300px}.instant-apps-measurement-tool__hide{display:none}}`,u="instant-apps-measurement-tool",s={base:u,hide:`${u}__hide`},r=class extends m{constructor(){super(...arguments),this._measureElement=o(),this._coordinateElement=o()}static{this.properties={view:0,measureConfiguration:0,activeTool:1}}static{this.styles=f}static{this.shadowRootOptions=l}willUpdate(e){e.has("activeTool")&&this._setActiveTool(this.activeTool)}loaded(){this._init()}disconnectedCallback(){super.disconnectedCallback(),this._measureWidget?.destroy(),this._coordinateWidget?.destroy()}async _init(){await this._initMeasurementWidget(),await this._initCoordinateWidget()}async _initMeasurementWidget(){this.view&&this._measureElement&&!this._measureWidget&&(this._measureWidget=new v({view:this.view,container:this._measureElement.value,...this.measureConfiguration}),this.measureConfiguration.activeToolType&&this._setActiveTool(this.measureConfiguration.activeToolType))}_setActiveTool(e){let t=this.view.type;this._measureWidget?.clear(),this._coordinateElement.value?.classList.add(s.hide),e==="distance"&&this._measureWidget?this._measureWidget.activeTool=t==="2d"?"distance":"direct-line":e==="area"&&this._measureWidget?this._measureWidget.activeTool="area":e==="point"&&this._coordinateElement.value?.classList?.remove(s.hide);let i=this.el.getRootNode().querySelector(`calcite-action[data-value="${e}"]`);i&&i.setFocus()}async _initCoordinateWidget(){let{activeToolType:e,coordinateFormat:t}=this.measureConfiguration;if(this?.view&&this._coordinateElement&&!this._coordinateWidget&&(this._coordinateWidget=new p({view:this.view,storageEnabled:!1,container:this._coordinateElement.value}),t!=null)){let i=this._coordinateWidget.formats.find(_=>_.name===t);this._coordinateWidget?.conversions?.splice(0,0,new g({format:i}))}e!=null&&this._setActiveTool(e)}render(){return c`<div class=${n(s.base)}><div ${a(this._measureElement)}></div><div class=${n(s.hide)} ${a(this._coordinateElement)}></div></div>`}};h("instant-apps-measurement-tool",r);return r},"widgets/Measurement","widgets/CoordinateConversion","widgets/CoordinateConversion/support/Conversion")
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import a from"./
|
|
2
|
+
import a from"./XOPNEAS5.js";import{a as f,b as v}from"./2B4SGB3I.js";import{b as r}from"./RLSY4VUQ.js";import{a as b}from"./LABCYKSC.js";import{b as g}from"./5BJO5ABV.js";import{F as s,G as l,H as p,K as u,h as d,i,j as h,q as o}from"./T3EPRHTT.js";export default $arcgis.t(([{s:m,t:x}])=>{var w=d`calcite-shell-panel{z-index:var(--calcite-z-index-1)}.display-flex{display:flex}.flex-1,.flex-grow{flex:1}.flex-shrink-0{flex:0 0 auto}.leader-1{margin-top:var(--calcite-spacing-xxl)}.trailer-1{margin-bottom:var(--calcite-spacing-xxl)}.warning-text{max-width:35em;margin-left:auto;margin-right:auto;font-size:var(--calcite-font-size-md)}.text-center{text-align:center}.border-override{border-top-width:var(--calcite-border-width-none);border-bottom-width:var(--calcite-border-width-none)}.header-override{--calcite-panel-header-content-space: var(--calcite-spacing-none);--calcite-panel-header-background-color: var(--calcite-color-surface-3)}.panel-override{--calcite-panel-background-color: var(--calcite-color-surface-3);--calcite-panel-border-color: none}.label-override{--calcite-label-margin-bottom: var(--calcite-spacing-none);font-weight:var(--calcite-font-weight-medium)}.header-content-wrapper{padding-inline-start:var(--calcite-spacing-xxs)}.header-button-padding{padding-top:var(--calcite-spacing-sm);padding-bottom:var(--calcite-spacing-sm);padding-inline-start:var(--calcite-spacing-lg);padding-inline-end:var(--calcite-spacing-lg)}.padding-start{padding-inline-start:var(--calcite-spacing-lg)}.align-items-center{align-items:center}.justify-content-end{justify-content:end}.justify-content-start{justify-content:start}.filter-width-350{--calcite-shell-panel-width: 350px}.z-index-2{z-index:2}.mock-fab{--calcite-fab-shadow-internal: 0 6px 20px -4px rgba(0, 0, 0, .1), 0 4px 12px -2px rgba(0, 0, 0, .08);box-shadow:var(--calcite-fab-shadow, var(--calcite-fab-shadow-internal));--calcite-button-background-color: var(--calcite-fab-background-color);--calcite-button-border-color: var(--calcite-fab-border-color);--calcite-button-text-color: var(--calcite-fab-text-color);--calcite-button-loader-color: var(--calcite-fab-loader-color)}.position-relative{position:relative;height:100%;overflow:hidden}.height-100{height:100%}.height-50{height:50px}.sign-in-prompt{display:flex;flex-direction:column;justify-content:center;align-items:center;width:100%;height:100%}.sign-in-icon{transform:translate(-20px)}.height-150{height:150px}.width-150{width:150px}.padding-top-8{padding-top:8px}`,c=class extends p{constructor(){super(),this.solutionsCount=0,this.filterOpen=!0,this.isMobile=!1,this._translations=b({name:"solutions-deployed-shell",blocking:!0}),this._configContextConsumer=r({context:v,subscribe:!0}),this._isMobileContextConsumer=r({context:f,subscribe:!0,callback:e=>this.isMobile=e}),this._solutionsDeployedPanelRef=s(),this._mainPanelRef=s(),this._panelFixed=!1,this.filterRemoved=o(),this.tokenRefreshed=o(),this._handleSignIn=()=>{let e=window.location.pathname.endsWith("deployments")?"":"deployments";this._configContextConsumer.value?.authentication?.signIn(e)},this.listenOn(window,"deployedCardFetchFailed",e=>{let t=e.detail;x({kind:"danger",icon:"exclamation-mark-triangle",title:t.title,message:t.message,autoClose:!0})})}static{this.properties={solutionsCount:9,filterOpen:16,isMobile:16,_translations:16}}static{this.styles=w}willUpdate(e){e.has("isMobile")&&(this.filterOpen=!this.isMobile)}async searchSolutions(e){this._solutionsDeployedPanelRef.value?.setSearchOptions(e),("sortType"in e||"searchTerm"in e)&&this._solutionsDeployedPanelRef.value?.searchSolutions(e)}async load(){this._isMobileContextConsumer.value&&(this.isMobile=this._isMobileContextConsumer.value)}updated(){this._fixPanelContentWrapperFocus()}_fixPanelContentWrapperFocus(){if(!this._panelFixed&&this._mainPanelRef.value){let e=this._mainPanelRef.value;e.componentOnReady?.().then(()=>{if(e.shadowRoot){let t=e.shadowRoot.querySelector(".content-wrapper");t&&(t.tabIndex=-1,this._panelFixed=!0,this._setupPanelObserver())}}).catch(()=>{this._panelFixed=!0})}}_setupPanelObserver(){if(this._panelObserver)return;this._panelObserver=new MutationObserver(t=>{t.forEach(n=>{if(n.type==="attributes"&&n.attributeName==="tabindex"){let a=n.target;a.classList.contains("content-wrapper")&&a.tabIndex===0&&(a.tabIndex=-1)}})});let e=this._mainPanelRef.value;if(e?.shadowRoot){let t=e.shadowRoot.querySelector(".content-wrapper");t&&this._panelObserver.observe(t,{attributes:!0,attributeFilter:["tabindex"]})}}disconnectedCallback(){super.disconnectedCallback(),this._panelObserver?.disconnect()}render(){if(!this._configContextConsumer.value?.authentication?.IsSignedIn)return this._getSignInPrompt();let e=this.isMobile?"justify-content-start":"";return i`<calcite-shell class="position-relative"><calcite-panel class="border-override header-override panel-override z-index-1" ${l(this._mainPanelRef)}><div class=${`display-flex align-items-center height-50 header-content-wrapper ${e}`} slot=header-content><calcite-label class="label-override flex-shrink-0 padding-top-8" layout=inline>${this._translations.numberOfDeployments?.replace("{{count}}",this.solutionsCount.toString())}</calcite-label></div>${this._getSolutionsDeployedPanel()}</calcite-panel></calcite-shell>`}_getSignInPrompt(){return i`<div class="sign-in-prompt">${this._getSignInIcon()}<div class="text-center leader-1 warning-text trailer-1">${this._translations.signInMessage}</div><calcite-button appearance=outline @click=${this._handleSignIn} @keydown=${e=>m(e,()=>this._handleSignIn())} scale=l>${this._translations.signIn}</calcite-button></div>`}_getSolutionsDeployedPanel(){let e=this.isMobile&&this.filterOpen?{display:"none"}:"";return i`<div><solutions-deployed-panel @deployedCardsFetched=${this._updateSolutionCount} style=${u(e)} ${l(this._solutionsDeployedPanelRef)}></solutions-deployed-panel></div>`}_updateSolutionCount(e){this.solutionsCount=e.detail}_getSignInIcon(){return i`<div class="sign-in-icon"><svg aria-hidden=true viewBox="0 0 64 64" width=200 height=200 xmlns=http://www.w3.org/2000/svg>${h`<path d="M56.9 4.1V60h-.8V4.9H23.3l25.6 7.47v39.26l-28.8 8.4V35h.8v23.97l27.2-7.94V12.97L20.9 5.03V30h-.8V4.1h36.8zM30.735 41.7l.565.566 9.766-9.766-9.766-9.766-.565.567 8.799 8.799H5v.8h34.534l-8.8 8.8z" fill=var(--calcite-color-text-3) />`}</svg></div>`}};g("solutions-deployed-shell",c);return c},a)
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
+
import{a}from"./OLN76PG4.js";import"./YUWXPLTE.js";import"./LABCYKSC.js";import"./QMAV4UTN.js";import"./Y2AUIXNK.js";import"./5BJO5ABV.js";import"./T3EPRHTT.js";import"./EXBEKVP5.js";export{a as SolutionDeployingDialog};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import{a as S}from"./PPFEO3UH.js";import{a as _}from"./65I4AUS4.js";import{b as L}from"./MXPZF4RB.js";import{d as w}from"./QMAV4UTN.js";import"./Y2AUIXNK.js";import{F as l,G as o,H as v,h as y,i as c,q as p}from"./T3EPRHTT.js";import"./EXBEKVP5.js";export default $arcgis.t(([b,B,V,k,{execute:A},{formatNumber:D,prefersRTL:x,getLocale:I,convertNumberFormatToIntlOptions:O},E,R,u,U,z,C])=>{var F=y`:host{--default-width: 375px;--width: var(--default-width);--padding: 10px;--border-style: 1px solid var(--calcite-color-border-1);--calcite-icon-color: var(--calcite-color-text-3);display:block;background:var(--background-color, var(--calcite-color-foreground-1));color:var(--calcite-color-text-1);font-size:var(--calcite-font-size--1);box-sizing:border-box}::slotted(arcgis-sketch),::slotted(arcgis-search){display:flex;justify-content:center;align-items:center}::slotted(arcgis-sketch){--calcite-action-bar-shadow: none;--calcite-action-bar-corner-radius: none;--calcite-action-group-border-color: var(--calcite-color-border-1)}::slotted(arcgis-search){width:100%;padding:var(--padding)}[hidden]{display:none}[role=dialog]{width:var(--width);>*{padding-inline:var(--padding)}}header calcite-input-message{margin-block-end:var(--calcite-spacing-lg)}h2{color:inherit;font-size:inherit;font-weight:var(--calcite-font-weight-medium);line-height:1;margin-block:var(--padding);padding-block-end:var(--calcite-spacing-md);border-bottom:var(--calcite-border-width-sm) solid var(--calcite-color-border-1)}.border-bottom{height:1px;border-bottom:var(--border-style)}calcite-label:first-of-type span{padding-block-start:var(--padding)}.buffer-labels-label{margin-block:var(--padding);>span{display:flex;justify-content:space-between;width:100%}}.main-buttons-wrapper{display:flex;flex-direction:column;gap:var(--padding);padding-block:var(--padding)}`,T=O({places:1,digitSeparator:!0});function P({bufferDistance:s,bufferGraphic:e,bufferUnit:t,unitsAbbrLookup:i,view:a}){try{let n=W(s,t,i),r=j(n,a.type==="3d"),h=q(e.geometry);return new k({symbol:r,geometry:h})}catch(n){console.error(String(n))}}function W(s,e,t){let i=t[e],a=D(s,T);return x(I())?`${i} ${a}`:`${a} ${i}`}function j(s,e){return e?new R({verticalOffset:{screenLength:40,maxWorldLength:60,minWorldLength:20},symbolLayers:[new E({font:{size:12,family:"sans-serif"},text:s,halo:{color:[0,0,0],size:1},material:{color:"white"},size:12})]}):new V({color:"white",haloColor:"black",haloSize:"1px",text:s,xoffset:0,yoffset:30,font:{size:12,family:"sans-serif"}})}function q(s){try{return A(s)}catch(e){console.error(String(e))}}var d={style:"solid",color:[100,100,100,.5],outline:{color:[255,255,255,255],width:1.5}};function M(s,e){return new z({geometry:s,symbol:e})}async function $({graphic:s,distance:e,unit:t,isGeodesic:i}){i&&!u.isLoaded()&&await u.load();let a=i?u:U;try{let n={unit:t},r=a.execute(s.geometry,e,n);if(!r)throw new Error("buffer failed");return r}catch(n){console.error(String(n))}}async function N({graphic:s,unit:e,isGeodesic:t,distanceValues:i}){let a=0,n=s,r=[];for(;a<i.length;){let h=i[a],f=await $({graphic:s,distance:h,unit:e,isGeodesic:t});if(!f)continue;let m=C.execute(f,n.geometry);m&&r.push(m),n=M(f,s.symbol),a++}return r}function G(s){let e=s?.assignedElements?.({flatten:!0});if(e?.length)return e.at(0)}var J=["meters","kilometers","miles","yards","feet","us-feet"],g=class extends v{constructor(){super(),this._messages=_({name:"instant-apps-buffer",blocking:!0}),this.#t=l(),this.#e=l(),this.#s=l(),this.#a=l(),this.#r=l(),this.inputMethod="select-feature",this.bufferLabelsVisible=!1,this.inputGraphics=[],this.bufferUnit="miles",this.bufferInputStep=1,this.bufferDistance=1,this.bufferMinDistance=.1,this.bufferMaxDistance=1e6,this.geodesicBufferEnabled=!1,this.bufferColor=d.color,this.bufferStyle=d.style,this.bufferOutlineColor=d.outline.color,this.bufferOutlineWidth=d.outline.width,this.elevationInfoMode="on-the-ground",this.arcgisPropertyChange=w()("inputMethod","inputGraphics"),this.arcgisBufferCreate=p(),this.arcgisBufferClear=p(),this.bufferLayer=new b({title:"buffer-graphics",listMode:"hide"}),this.bufferLabelsLayer=new b({title:"buffer-graphics-labels",visible:this.bufferLabelsVisible,listMode:"hide"}),this.miscGraphicsLayer=new b({title:"misc-graphics",listMode:"hide"}),this.listen("calciteRadioButtonGroupChange",this._handleBufferInputChange),this.listen("arcgisCreate",this._handleArcgisSketchEventCreate),this.listen("arcgisDelete",this._handleArcgisSketchEventDelete),this.listen("arcgisSearchClear",this._handleArcgisSearchClear),this.listen("arcgisSelectResult",this._handleArcgisSearchSelect),this.listen("arcgisPropertyChange",this._onArcgisPropertyChange)}static{this.properties={inputMethod:131,bufferLayer:0,bufferLabelsLayer:0,miscGraphicsLayer:0,bufferLabelsVisible:135,inputGraphics:0,view:0,sources:0,bufferUnit:131,bufferInputStep:139,bufferDistance:139,distanceValuesSorted:32,bufferMinDistance:139,bufferMaxDistance:139,geodesicBufferEnabled:135,readyToBuffer:32,bufferColor:0,bufferStyle:1,bufferOutlineColor:0,bufferOutlineWidth:9,bufferGraphicSymbol:32,elevationInfoMode:1}}static{this.styles=F}#t;#e;#s;#a;#r;get#i(){let e=this.#a.value;return G(e)}get#n(){let e=this.#r.value;return G(e)}get distanceValuesSorted(){return this.#s.value?.distanceValuesSorted||[]}get readyToBuffer(){return!!this.view&&!!this.bufferLayer&&!!this.inputGraphics?.length&&!!this.distanceValuesSorted?.length}get bufferGraphicSymbol(){let e=typeof this.bufferOutlineWidth=="number"&&this.bufferOutlineWidth>0,t=typeof this.bufferOutlineColor<"u"&&e;return new B({color:this.bufferColor,style:this.bufferStyle,outline:t?{color:this.bufferOutlineColor,width:this.bufferOutlineWidth}:null})}async clearBufferLayer(){this._clearBufferLayer()}async setFocus(){this.#t.value&&await this.#t.value.setFocus()}async setSelectionInput(e){let t=e.clone();this.inputMethod="select-feature",await this.updateComplete,await this.#e.value?.componentOnReady(),this.miscGraphicsLayer?.add(t),this.#e.value?.selectionManager?.add(this.miscGraphicsLayer,[t]),await this.updateComplete,await new Promise(i=>window.requestAnimationFrame(i)),this.inputGraphics=[t]}async setAddedBufferDistance(){let e=this.#s.value;await e.componentOnReady(),e.clearDistanceValues(),await e.updateComplete,e.bufferDistance=this.bufferDistance,e.maybeAddDistanceValue()}async cancelActiveSelection(){let e=this.#e.value;e&&e.toolbarState==="active"&&(await e.componentOnReady(),e.selectionToolbarViewModel?.cancel(),e.enabledTool=null)}async cancelSketchAction(){let e=this.#i;e&&e.state==="active"&&(await e.componentOnReady(),await e.cancel())}willUpdate(e){this.view&&this.view.type==="3d"&&(e.has("view")||e.has("elevationInfoMode"))&&(this.bufferLayer.elevationInfo={mode:this.elevationInfoMode}),e.has("bufferLabelsVisible")&&this.bufferLabelsLayer&&(this.bufferLabelsLayer.visible=this.bufferLabelsVisible),e.has("view")&&this.view&&this.view!==e.get("view")&&this.view.when().then(()=>{this.view.map&&!this.view.map.layers.includes(this.miscGraphicsLayer)&&this.view.map.add(this.miscGraphicsLayer)}),e.has("sources")&&this.sources&&(this.sources?.includes(this.miscGraphicsLayer)||this.sources.add(this.miscGraphicsLayer))}_handleBufferInputChange(){let e=(this.#t.value.shadowRoot?.querySelector("calcite-radio-button-group")).selectedItem.value;this.inputMethod=e}_handleArcgisSketchEventCreate(e){e.detail.state==="complete"&&this._assignInputGraphicsFromArcgisSketch()}_handleArcgisSketchEventDelete(e){this._assignInputGraphicsFromArcgisSketch()}_assignInputGraphicsFromArcgisSketch(){this.#i&&(this.inputGraphics=[...this.#i?.layer?.graphics?.toArray()??[]])}async _handleArcgisSearchSelect(){let e=this.#n.resultGraphic;e&&(this.inputGraphics=[e.clone()])}_handleArcgisSearchClear(){this.inputGraphics=[]}async _handleSelectionChange(e){this._getSelectedGraphics(),this._maybeClearMiscGraphicsOnDeselect(e)}async _getSelectedGraphics(){let e=await this.#e.value.getSelectedFeatures(),t=[];for(let i of e)t=[...t,...i.data.features];this.inputGraphics=t}_maybeClearMiscGraphicsOnDeselect(e){if(!e.detail?.changes?.length)return;let{changes:t}=e.detail;t.some(({removed:i,layer:a})=>i?.length&&a===this.miscGraphicsLayer)&&this._clearMiscGraphicsLayer()}_clearMiscGraphicsLayer(){this.miscGraphicsLayer?.graphics?.removeAll()}_onLabelsSwitchChange(e){this.bufferLabelsVisible=e.target.checked}_clearBufferLayer(){this.bufferLayer?.removeAll()}_clearBufferLabelsLayer(){this.bufferLabelsLayer?.removeAll()}async _onCreateBufferClick(){this._handleBufferValidation(),await this._bufferInputGraphics()}_handleBufferValidation(){this._handleBufferInputValidation(),this._handleBufferDistanceValidation()}_handleBufferInputValidation(){let e=this.#t.value;e&&(this.inputGraphics.length?e.showErrorMessage=!1:e.showErrorMessage=!0)}_handleBufferDistanceValidation(){let e=this.#s.value;e&&(this.distanceValuesSorted.length?e.showMissingDistanceValueErrorMessage=!1:e.showMissingDistanceValueErrorMessage=!0)}_clearAllGraphics(){this.inputGraphics=[],this._clearBufferLayer(),this._clearBufferLabelsLayer(),this._clearMiscGraphicsLayer(),this.#e?.value?.clearSelection?.(),this.#n?.clear?.(),this.#i?.cancel?.(),this.#i?.delete?.(),this.#i?.layer?.removeAll?.(),this.arcgisBufferClear.emit()}_onArcgisPropertyChange(e){e.detail.name==="inputGraphics"&&this.inputGraphics.length&&this._handleBufferInputValidation()}_onBufferUnitChange(e){let t=e.target.value;this.bufferUnit=t}async _bufferInputGraphics(){if(!this.readyToBuffer)return;this.view.map?.layers.includes(this.bufferLayer)?this.bufferLayer.removeAll():this.view.map.add(this.bufferLayer),this.view.map?.layers.includes(this.bufferLabelsLayer)?this.bufferLabelsLayer.removeAll():this.view.map.add(this.bufferLabelsLayer);let e=[];for(let a of this.inputGraphics){let n={graphic:a,unit:this.bufferUnit,isGeodesic:this.geodesicBufferEnabled},r;this.distanceValuesSorted.length>1&&(r=N({...n,distanceValues:this.distanceValuesSorted})),this.distanceValuesSorted?.length===1&&(r=$({...n,distance:this.distanceValuesSorted[0]})),e.push(r)}let t=this.bufferGraphicSymbol,i=await Promise.all(e).catch(a=>console.error(String(a)));if(i&&i?.length){let a=i.flat().filter(r=>!!r).map(r=>M(r,t)),n=a.map((r,h)=>{let f=this.distanceValuesSorted[h%this.distanceValuesSorted.length];return P({bufferGraphic:r,bufferDistance:f,bufferUnit:this.bufferUnit,view:this.view,unitsAbbrLookup:this._messages.unitsAbbr})});this.bufferLayer.addMany(a),this.bufferLabelsLayer.addMany(n),this.arcgisBufferCreate.emit()}}_renderInputMethod(){return this.inputMethod==="select-feature"?c`<instant-apps-selection-toolbar .view=${this.view} .sources=${this.sources} @selectionChange=${this._handleSelectionChange} continuous-selection-enabled selection-operation-type=add ${o(this.#e)}></instant-apps-selection-toolbar>`:this.inputMethod==="draw-graphic"?c`<slot name=arcgis-sketch ${o(this.#a)}></slot>`:this.inputMethod==="search-location"?c`<slot name=arcgis-search ${o(this.#r)}></slot>`:null}render(){return c`<div role=dialog aria-labelledby=buffer-title><header><h2 id=buffer-title>${this._messages.title}</h2><calcite-input-message icon=information>${this._messages.labels.helpText}</calcite-input-message></header><instant-apps-buffer-input-radiogroup .labels=${this._messages.inputRadioButtonLabels} .selectedValue=${this.inputMethod} ${o(this.#t)}></instant-apps-buffer-input-radiogroup>${this._renderInputMethod()}<instant-apps-buffer-distance-manager .bufferDistance=${this.bufferDistance} .bufferInputStep=${this.bufferInputStep} .bufferMinDistance=${this.bufferMinDistance} .bufferMaxDistance=${this.bufferMaxDistance} .labels=${this._messages.labels} ${o(this.#s)}></instant-apps-buffer-distance-manager><calcite-label><span>${this._messages.labels.unit}</span><calcite-select .label=${this._messages.labels.unit} @calciteSelectChange=${this._onBufferUnitChange}>${S(J,e=>e,e=>c`<calcite-option .value=${e} .selected=${this.bufferUnit===e}>${this._messages.units[e]}</calcite-option>`)}</calcite-select></calcite-label><calcite-label class="buffer-labels-label" layout=inline><span><span>${this._messages.labels.showDistanceLabel}</span><calcite-switch .checked=${this.bufferLabelsVisible} @calciteSwitchChange=${this._onLabelsSwitchChange}></calcite-switch></span></calcite-label><div class="main-buttons-wrapper"><calcite-button @click=${this._onCreateBufferClick}>${this._messages.labels.draw}</calcite-button><calcite-button appearance=outline @click=${this._clearAllGraphics}>${this._messages.labels.clear}</calcite-button></div></div>`}};L("instant-apps-buffer",g);return g},"layers/GraphicsLayer","symbols/SimpleFillSymbol","symbols/TextSymbol","Graphic","geometry/operators/labelPointOperator","intl","symbols/TextSymbol3DLayer","symbols/PointSymbol3D","geometry/operators/geodesicBufferOperator","geometry/operators/bufferOperator","Graphic","geometry/operators/differenceOperator")
|
|
2
|
+
import{a as S}from"./PPFEO3UH.js";import{a as _}from"./HKURBCD6.js";import{b as L}from"./KGXEY5HR.js";import{d as w}from"./QMAV4UTN.js";import"./Y2AUIXNK.js";import{F as l,G as o,H as v,h as y,i as c,q as p}from"./T3EPRHTT.js";import"./EXBEKVP5.js";export default $arcgis.t(([b,B,V,k,{execute:A},{formatNumber:D,prefersRTL:x,getLocale:I,convertNumberFormatToIntlOptions:O},E,R,u,U,z,C])=>{var F=y`:host{--default-width: 375px;--width: var(--default-width);--padding: 10px;--border-style: 1px solid var(--calcite-color-border-1);--calcite-icon-color: var(--calcite-color-text-3);display:block;background:var(--background-color, var(--calcite-color-foreground-1));color:var(--calcite-color-text-1);font-size:var(--calcite-font-size--1);box-sizing:border-box}::slotted(arcgis-sketch),::slotted(arcgis-search){display:flex;justify-content:center;align-items:center}::slotted(arcgis-sketch){--calcite-action-bar-shadow: none;--calcite-action-bar-corner-radius: none;--calcite-action-group-border-color: var(--calcite-color-border-1)}::slotted(arcgis-search){width:100%;padding:var(--padding)}[hidden]{display:none}[role=dialog]{width:var(--width);>*{padding-inline:var(--padding)}}header calcite-input-message{margin-block-end:var(--calcite-spacing-lg)}h2{color:inherit;font-size:inherit;font-weight:var(--calcite-font-weight-medium);line-height:1;margin-block:var(--padding);padding-block-end:var(--calcite-spacing-md);border-bottom:var(--calcite-border-width-sm) solid var(--calcite-color-border-1)}.border-bottom{height:1px;border-bottom:var(--border-style)}calcite-label:first-of-type span{padding-block-start:var(--padding)}.buffer-labels-label{margin-block:var(--padding);>span{display:flex;justify-content:space-between;width:100%}}.main-buttons-wrapper{display:flex;flex-direction:column;gap:var(--padding);padding-block:var(--padding)}`,T=O({places:1,digitSeparator:!0});function P({bufferDistance:s,bufferGraphic:e,bufferUnit:t,unitsAbbrLookup:i,view:a}){try{let n=W(s,t,i),r=j(n,a.type==="3d"),h=q(e.geometry);return new k({symbol:r,geometry:h})}catch(n){console.error(String(n))}}function W(s,e,t){let i=t[e],a=D(s,T);return x(I())?`${i} ${a}`:`${a} ${i}`}function j(s,e){return e?new R({verticalOffset:{screenLength:40,maxWorldLength:60,minWorldLength:20},symbolLayers:[new E({font:{size:12,family:"sans-serif"},text:s,halo:{color:[0,0,0],size:1},material:{color:"white"},size:12})]}):new V({color:"white",haloColor:"black",haloSize:"1px",text:s,xoffset:0,yoffset:30,font:{size:12,family:"sans-serif"}})}function q(s){try{return A(s)}catch(e){console.error(String(e))}}var d={style:"solid",color:[100,100,100,.5],outline:{color:[255,255,255,255],width:1.5}};function M(s,e){return new z({geometry:s,symbol:e})}async function $({graphic:s,distance:e,unit:t,isGeodesic:i}){i&&!u.isLoaded()&&await u.load();let a=i?u:U;try{let n={unit:t},r=a.execute(s.geometry,e,n);if(!r)throw new Error("buffer failed");return r}catch(n){console.error(String(n))}}async function N({graphic:s,unit:e,isGeodesic:t,distanceValues:i}){let a=0,n=s,r=[];for(;a<i.length;){let h=i[a],f=await $({graphic:s,distance:h,unit:e,isGeodesic:t});if(!f)continue;let m=C.execute(f,n.geometry);m&&r.push(m),n=M(f,s.symbol),a++}return r}function G(s){let e=s?.assignedElements?.({flatten:!0});if(e?.length)return e.at(0)}var J=["meters","kilometers","miles","yards","feet","us-feet"],g=class extends v{constructor(){super(),this._messages=_({name:"instant-apps-buffer",blocking:!0}),this.#t=l(),this.#e=l(),this.#s=l(),this.#a=l(),this.#r=l(),this.inputMethod="select-feature",this.bufferLabelsVisible=!1,this.inputGraphics=[],this.bufferUnit="miles",this.bufferInputStep=1,this.bufferDistance=1,this.bufferMinDistance=.1,this.bufferMaxDistance=1e6,this.geodesicBufferEnabled=!1,this.bufferColor=d.color,this.bufferStyle=d.style,this.bufferOutlineColor=d.outline.color,this.bufferOutlineWidth=d.outline.width,this.elevationInfoMode="on-the-ground",this.arcgisPropertyChange=w()("inputMethod","inputGraphics"),this.arcgisBufferCreate=p(),this.arcgisBufferClear=p(),this.bufferLayer=new b({title:"buffer-graphics",listMode:"hide"}),this.bufferLabelsLayer=new b({title:"buffer-graphics-labels",visible:this.bufferLabelsVisible,listMode:"hide"}),this.miscGraphicsLayer=new b({title:"misc-graphics",listMode:"hide"}),this.listen("calciteRadioButtonGroupChange",this._handleBufferInputChange),this.listen("arcgisCreate",this._handleArcgisSketchEventCreate),this.listen("arcgisDelete",this._handleArcgisSketchEventDelete),this.listen("arcgisSearchClear",this._handleArcgisSearchClear),this.listen("arcgisSelectResult",this._handleArcgisSearchSelect),this.listen("arcgisPropertyChange",this._onArcgisPropertyChange)}static{this.properties={inputMethod:131,bufferLayer:0,bufferLabelsLayer:0,miscGraphicsLayer:0,bufferLabelsVisible:135,inputGraphics:0,view:0,sources:0,bufferUnit:131,bufferInputStep:139,bufferDistance:139,distanceValuesSorted:32,bufferMinDistance:139,bufferMaxDistance:139,geodesicBufferEnabled:135,readyToBuffer:32,bufferColor:0,bufferStyle:1,bufferOutlineColor:0,bufferOutlineWidth:9,bufferGraphicSymbol:32,elevationInfoMode:1}}static{this.styles=F}#t;#e;#s;#a;#r;get#i(){let e=this.#a.value;return G(e)}get#n(){let e=this.#r.value;return G(e)}get distanceValuesSorted(){return this.#s.value?.distanceValuesSorted||[]}get readyToBuffer(){return!!this.view&&!!this.bufferLayer&&!!this.inputGraphics?.length&&!!this.distanceValuesSorted?.length}get bufferGraphicSymbol(){let e=typeof this.bufferOutlineWidth=="number"&&this.bufferOutlineWidth>0,t=typeof this.bufferOutlineColor<"u"&&e;return new B({color:this.bufferColor,style:this.bufferStyle,outline:t?{color:this.bufferOutlineColor,width:this.bufferOutlineWidth}:null})}async clearBufferLayer(){this._clearBufferLayer()}async setFocus(){this.#t.value&&await this.#t.value.setFocus()}async setSelectionInput(e){let t=e.clone();this.inputMethod="select-feature",await this.updateComplete,await this.#e.value?.componentOnReady(),this.miscGraphicsLayer?.add(t),this.#e.value?.selectionManager?.add(this.miscGraphicsLayer,[t]),await this.updateComplete,await new Promise(i=>window.requestAnimationFrame(i)),this.inputGraphics=[t]}async setAddedBufferDistance(){let e=this.#s.value;await e.componentOnReady(),e.clearDistanceValues(),await e.updateComplete,e.bufferDistance=this.bufferDistance,e.maybeAddDistanceValue()}async cancelActiveSelection(){let e=this.#e.value;e&&e.toolbarState==="active"&&(await e.componentOnReady(),e.selectionToolbarViewModel?.cancel(),e.enabledTool=null)}async cancelSketchAction(){let e=this.#i;e&&e.state==="active"&&(await e.componentOnReady(),await e.cancel())}willUpdate(e){this.view&&this.view.type==="3d"&&(e.has("view")||e.has("elevationInfoMode"))&&(this.bufferLayer.elevationInfo={mode:this.elevationInfoMode}),e.has("bufferLabelsVisible")&&this.bufferLabelsLayer&&(this.bufferLabelsLayer.visible=this.bufferLabelsVisible),e.has("view")&&this.view&&this.view!==e.get("view")&&this.view.when().then(()=>{this.view.map&&!this.view.map.layers.includes(this.miscGraphicsLayer)&&this.view.map.add(this.miscGraphicsLayer)}),e.has("sources")&&this.sources&&(this.sources?.includes(this.miscGraphicsLayer)||this.sources.add(this.miscGraphicsLayer))}_handleBufferInputChange(){let e=(this.#t.value.shadowRoot?.querySelector("calcite-radio-button-group")).selectedItem.value;this.inputMethod=e}_handleArcgisSketchEventCreate(e){e.detail.state==="complete"&&this._assignInputGraphicsFromArcgisSketch()}_handleArcgisSketchEventDelete(e){this._assignInputGraphicsFromArcgisSketch()}_assignInputGraphicsFromArcgisSketch(){this.#i&&(this.inputGraphics=[...this.#i?.layer?.graphics?.toArray()??[]])}async _handleArcgisSearchSelect(){let e=this.#n.resultGraphic;e&&(this.inputGraphics=[e.clone()])}_handleArcgisSearchClear(){this.inputGraphics=[]}async _handleSelectionChange(e){this._getSelectedGraphics(),this._maybeClearMiscGraphicsOnDeselect(e)}async _getSelectedGraphics(){let e=await this.#e.value.getSelectedFeatures(),t=[];for(let i of e)t=[...t,...i.data.features];this.inputGraphics=t}_maybeClearMiscGraphicsOnDeselect(e){if(!e.detail?.changes?.length)return;let{changes:t}=e.detail;t.some(({removed:i,layer:a})=>i?.length&&a===this.miscGraphicsLayer)&&this._clearMiscGraphicsLayer()}_clearMiscGraphicsLayer(){this.miscGraphicsLayer?.graphics?.removeAll()}_onLabelsSwitchChange(e){this.bufferLabelsVisible=e.target.checked}_clearBufferLayer(){this.bufferLayer?.removeAll()}_clearBufferLabelsLayer(){this.bufferLabelsLayer?.removeAll()}async _onCreateBufferClick(){this._handleBufferValidation(),await this._bufferInputGraphics()}_handleBufferValidation(){this._handleBufferInputValidation(),this._handleBufferDistanceValidation()}_handleBufferInputValidation(){let e=this.#t.value;e&&(this.inputGraphics.length?e.showErrorMessage=!1:e.showErrorMessage=!0)}_handleBufferDistanceValidation(){let e=this.#s.value;e&&(this.distanceValuesSorted.length?e.showMissingDistanceValueErrorMessage=!1:e.showMissingDistanceValueErrorMessage=!0)}_clearAllGraphics(){this.inputGraphics=[],this._clearBufferLayer(),this._clearBufferLabelsLayer(),this._clearMiscGraphicsLayer(),this.#e?.value?.clearSelection?.(),this.#n?.clear?.(),this.#i?.cancel?.(),this.#i?.delete?.(),this.#i?.layer?.removeAll?.(),this.arcgisBufferClear.emit()}_onArcgisPropertyChange(e){e.detail.name==="inputGraphics"&&this.inputGraphics.length&&this._handleBufferInputValidation()}_onBufferUnitChange(e){let t=e.target.value;this.bufferUnit=t}async _bufferInputGraphics(){if(!this.readyToBuffer)return;this.view.map?.layers.includes(this.bufferLayer)?this.bufferLayer.removeAll():this.view.map.add(this.bufferLayer),this.view.map?.layers.includes(this.bufferLabelsLayer)?this.bufferLabelsLayer.removeAll():this.view.map.add(this.bufferLabelsLayer);let e=[];for(let a of this.inputGraphics){let n={graphic:a,unit:this.bufferUnit,isGeodesic:this.geodesicBufferEnabled},r;this.distanceValuesSorted.length>1&&(r=N({...n,distanceValues:this.distanceValuesSorted})),this.distanceValuesSorted?.length===1&&(r=$({...n,distance:this.distanceValuesSorted[0]})),e.push(r)}let t=this.bufferGraphicSymbol,i=await Promise.all(e).catch(a=>console.error(String(a)));if(i&&i?.length){let a=i.flat().filter(r=>!!r).map(r=>M(r,t)),n=a.map((r,h)=>{let f=this.distanceValuesSorted[h%this.distanceValuesSorted.length];return P({bufferGraphic:r,bufferDistance:f,bufferUnit:this.bufferUnit,view:this.view,unitsAbbrLookup:this._messages.unitsAbbr})});this.bufferLayer.addMany(a),this.bufferLabelsLayer.addMany(n),this.arcgisBufferCreate.emit()}}_renderInputMethod(){return this.inputMethod==="select-feature"?c`<instant-apps-selection-toolbar .view=${this.view} .sources=${this.sources} @selectionChange=${this._handleSelectionChange} continuous-selection-enabled selection-operation-type=add ${o(this.#e)}></instant-apps-selection-toolbar>`:this.inputMethod==="draw-graphic"?c`<slot name=arcgis-sketch ${o(this.#a)}></slot>`:this.inputMethod==="search-location"?c`<slot name=arcgis-search ${o(this.#r)}></slot>`:null}render(){return c`<div role=dialog aria-labelledby=buffer-title><header><h2 id=buffer-title>${this._messages.title}</h2><calcite-input-message icon=information>${this._messages.labels.helpText}</calcite-input-message></header><instant-apps-buffer-input-radiogroup .labels=${this._messages.inputRadioButtonLabels} .selectedValue=${this.inputMethod} ${o(this.#t)}></instant-apps-buffer-input-radiogroup>${this._renderInputMethod()}<instant-apps-buffer-distance-manager .bufferDistance=${this.bufferDistance} .bufferInputStep=${this.bufferInputStep} .bufferMinDistance=${this.bufferMinDistance} .bufferMaxDistance=${this.bufferMaxDistance} .labels=${this._messages.labels} ${o(this.#s)}></instant-apps-buffer-distance-manager><calcite-label><span>${this._messages.labels.unit}</span><calcite-select .label=${this._messages.labels.unit} @calciteSelectChange=${this._onBufferUnitChange}>${S(J,e=>e,e=>c`<calcite-option .value=${e} .selected=${this.bufferUnit===e}>${this._messages.units[e]}</calcite-option>`)}</calcite-select></calcite-label><calcite-label class="buffer-labels-label" layout=inline><span><span>${this._messages.labels.showDistanceLabel}</span><calcite-switch .checked=${this.bufferLabelsVisible} @calciteSwitchChange=${this._onLabelsSwitchChange}></calcite-switch></span></calcite-label><div class="main-buttons-wrapper"><calcite-button @click=${this._onCreateBufferClick}>${this._messages.labels.draw}</calcite-button><calcite-button appearance=outline @click=${this._clearAllGraphics}>${this._messages.labels.clear}</calcite-button></div></div>`}};L("instant-apps-buffer",g);return g},"layers/GraphicsLayer","symbols/SimpleFillSymbol","symbols/TextSymbol","Graphic","geometry/operators/labelPointOperator","intl","symbols/TextSymbol3DLayer","symbols/PointSymbol3D","geometry/operators/geodesicBufferOperator","geometry/operators/bufferOperator","Graphic","geometry/operators/differenceOperator")
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import d from"./DQJ36YEL.js";import b from"./TK5EXRZL.js";import{b as n}from"./2B4SGB3I.js";import{b as s}from"./RLSY4VUQ.js";import{a as o}from"./VSRNGZ43.js";import{b as h}from"./ZB5UCRCG.js";import{H as e,L as r,h as c,i as a,j as t}from"./T3EPRHTT.js";export default $arcgis.t(([{s:m},{r:z}])=>{var p=c`calcite-card{cursor:pointer;height:100%;padding-bottom:2px;border-inline-start:3px solid transparent}calcite-card:hover{outline:1px solid var(--calcite-color-brand);border-inline-start:3px solid var(--calcite-color-brand);box-sizing:border-box}.card-icon{margin-bottom:var(--calcite-spacing-md);display:flex;justify-content:flex-start}.card-heading{font-size:var(--calcite-font-size-0);font-weight:var(--calcite-font-weight-medium);margin:0 0 var(--calcite-spacing-sm) 0;color:var(--calcite-color-text-1)}.card-description{font-size:var(--calcite-font-size--1);color:var(--calcite-color-text-2);margin:0}.meridian-icon{width:48px;height:48px;display:block;color:var(--calcite-color-text-3)}`,v={"arcmap-blog":"M34 28.9H10v-.8h24zm-24 5h20v-.8H10zm31.591-20.8l-.8.8H45.1v25.2H18.583l-9.817 4.245 1.823-4.245H3.9V13.9h22.665l.8-.8H3.1v26.8h6.274l-2.142 4.986L18.666 39.9H45.9V13.1zm-.953-5.141l.449 2.676L32.6 19.12l-.567-.565 8.195-8.196-.286-1.708L24.09 24.476a1.82 1.82 0 0 1-.689.431l-3.52 1.22 1.213-3.525a1.832 1.832 0 0 1 .431-.692L42.461.989l2.578 2.577zm3.268-4.394L42.461 2.12 22.09 22.475a1.036 1.036 0 0 0-.242.388l-.678 1.97 1.968-.682a1.018 1.018 0 0 0 .384-.24z","esri-community":"M24 47.896a3.897 3.897 0 0 1-1.563-.327L3.1 39.106V12.928a6.169 6.169 0 0 1 3.696-5.651L22.436.43a3.905 3.905 0 0 1 3.128 0L44.9 8.894v26.178a6.17 6.17 0 0 1-3.696 5.651l-15.64 6.846a3.897 3.897 0 0 1-1.564.327zM3.9 38.583l18.857 8.254a3.11 3.11 0 0 0 2.486 0l15.64-6.846a5.37 5.37 0 0 0 3.217-4.92V9.418L25.243 1.163a3.11 3.11 0 0 0-2.486 0L7.117 8.01A5.369 5.369 0 0 0 3.9 12.928zm21.364.344a14.156 14.156 0 0 1-14.17-14.111 13.678 13.678 0 0 1 16.893-13.26l.387.103-1.164 4.336-.389-.107a8.052 8.052 0 0 0-2.141-.282 8.907 8.907 0 0 0-8.74 8.838 9.303 9.303 0 0 0 15.277 7.075.809.809 0 0 1 1.104.062l2.451 2.57a.808.808 0 0 1-.047 1.161 14.213 14.213 0 0 1-9.461 3.615zm-.559-27a12.956 12.956 0 0 0-12.81 12.889 13.375 13.375 0 0 0 22.298 9.899L31.73 32.13a10.103 10.103 0 0 1-16.591-7.687 9.718 9.718 0 0 1 9.54-9.637 8.982 8.982 0 0 1 1.965.212l.748-2.787a11.953 11.953 0 0 0-2.687-.305zM36 26.9H24a3.905 3.905 0 0 1-3.9-3.9.901.901 0 0 1 .9-.9h10.84a7.77 7.77 0 0 0-1.875-4.15l-.131-.158 1.332-5.01.475.357a13.413 13.413 0 0 1 5.26 10.705V26a.901.901 0 0 1-.901.9zm-15-4a.1.1 0 0 0-.1.1 3.103 3.103 0 0 0 3.1 3.1h12a.1.1 0 0 0 .1-.1v-2.156a12.643 12.643 0 0 0-4.47-9.693l-.918 3.451a8.135 8.135 0 0 1 1.95 4.898v.4z",faq:"M18.495 23.09a3.22 3.22 0 0 1 3.502 3.123 3.526 3.526 0 0 1-1.593 3.034 3.413 3.413 0 0 0-1.524 3.096V33h-.8v-.657a4.165 4.165 0 0 1 1.812-3.71 2.727 2.727 0 0 0 1.305-2.42 2.425 2.425 0 0 0-2.702-2.322c-1.716 0-2.498.99-2.498 1.912h-.8c0-1.348 1.133-2.712 3.298-2.712zm22.849-2.748l.843 4.81-3.579-1.014.218-.77 2.354.668-.721-4.111.246-.139c3.427-1.927 5.393-4.774 5.393-7.81 0-5.554-6.55-10.072-14.6-10.072s-14.6 4.518-14.6 10.072a8.111 8.111 0 0 0 2.73 5.856l.313.3C29.924 18.47 37.9 24.104 37.9 31c0 7.113-8.479 12.9-18.9 12.9-1.417 0-3.901-.295-4.433-.36l-9.71 3.627 2.062-6.238C2.58 38.47.1 34.867.1 31c0-7.064 8.364-12.813 18.686-12.893a8.769 8.769 0 0 1-2.688-6.131c0-5.995 6.908-10.872 15.4-10.872s15.4 4.877 15.4 10.872c0 3.258-2.02 6.295-5.554 8.366zM19 18.9C9.02 18.9.9 24.328.9 31c0 3.65 2.44 7.073 6.694 9.389l.293.16-1.746 5.285 8.33-3.112.097.012c.03.004 2.923.366 4.432.366 9.98 0 18.1-5.428 18.1-12.1S28.98 18.9 19 18.9zm.4 16.6a.9.9 0 1 1-.9-.9.901.901 0 0 1 .9.9zm-.8 0a.1.1 0 0 0-.2 0c0 .11.2.11.2 0zm12.9-25.025a1.025 1.025 0 1 1-1.025 1.025 1.026 1.026 0 0 1 1.025-1.025zm0 .8a.225.225 0 0 0-.225.225c0 .248.45.248.45 0a.225.225 0 0 0-.225-.225zm6.975.225a1.025 1.025 0 1 1 1.025 1.025 1.026 1.026 0 0 1-1.025-1.025zm.8 0c0 .248.45.248.45 0a.225.225 0 0 0-.45 0zM23.5 10.475a1.025 1.025 0 1 1-1.025 1.025 1.026 1.026 0 0 1 1.025-1.025zm0 .8a.225.225 0 0 0-.225.225c0 .248.45.248.45 0a.225.225 0 0 0-.225-.225z",idea:"M31.858 10.113a12.288 12.288 0 0 0-9.675-3.074 12.438 12.438 0 0 0-7.706 20.764 11.032 11.032 0 0 1 3.016 7.387A1.511 1.511 0 0 0 19 36.9h.187l.388 1.553-.523 1.047.5 1-.41.821-.043 1.033 2.44 2.546h3.921l2.439-2.546V36.9h.307a1.51 1.51 0 0 0 1.508-1.504 11.03 11.03 0 0 1 3.014-7.391 12.45 12.45 0 0 0-.871-17.692zM27.1 42.033L25.12 44.1h-3.24l-1.98-2.068v-.437l.347-.695H24v-.8h-3.753l-.3-.6.3-.6H24v-.8h-3.688l-.3-1.2H27.1zm-5.2-9.869a1.6 1.6 0 1 1 3.2 0V36.1h-3.2zm10.238-4.698a11.814 11.814 0 0 0-3.222 7.924.71.71 0 0 1-.71.71H25.9v-3.936a2.406 2.406 0 0 0-.468-1.42l3.903-12.02-.76-.247-3.786 11.655a2.368 2.368 0 0 0-.89-.344V22.9H25v-.8h-3v.8h1.1v6.888a2.368 2.368 0 0 0-.889.344l-3.785-11.655-.761.248 3.903 12.019a2.406 2.406 0 0 0-.468 1.42V36.1h-2.099a.712.712 0 0 1-.709-.717 11.812 11.812 0 0 0-3.225-7.92 11.638 11.638 0 0 1 7.205-19.429 11.486 11.486 0 0 1 9.053 2.876 11.65 11.65 0 0 1 .813 16.556zM23.9 3h-.8V0h.8zM11.69 7.194l-1.77-2.39.642-.476 1.771 2.39zm24.748-2.866l.642.477-1.77 2.39-.644-.477zM2.483 16.022l2.822.808-.22.77-2.822-.808zm42.252.77l-2.822.808-.22-.77 2.822-.808z",install:"M30.991 21.733l-7.395 7.394-7.395-7.394.567-.566L23.1 27.5V3h.8v24.691l6.525-6.524zm6.7-7.633H26v.8h11.1v26.2H9.9V14.9H21v-.8H9.31L.69 24.748l.62.504L9.1 15.63V41.9h28.8V15.63l7.79 9.622.62-.504z",keys:"M42.52 18.96c-.8-2.67-2.58-4.84-4.98-6.07-.02-.02-.03-.04-.05-.06.34-1.09.41-2.27.41-3.66C37.9 4.08 35.31.1 32 .1c-3.19 0-5.72 3.7-5.88 8.54-6.7 1.555-10.39 8.9-7.57 15.21L5.1 37.08v5.79l6.27.03 3.28-3.57V37.9h1.34l2.41-2.41v-1.34h1.23l4.87-4.55c.57.23 1.16.41 1.76.54L20.79 43.3l1.74 4.39 4.92-1.93 1.5-3.7-.41-1.01 1.15-.45 1.12-2.76-.42-1.06.93-.37 2.33-5.21c6.53.047 10.619-6.336 8.87-12.24zM17.6 35.16l-1.94 1.94h-1.81v1.92l-2.83 3.08-5.12-.03v-4.65l13.61-13.4c-3.048-6.604.758-13.066 6.6-14.56.037 2.097.58 4.415 1.72 6.17-.878 2.281.823 4.77 3.29 4.77 1.95 0 3.53-1.58 3.53-3.52 0-3.417-4.395-4.834-6.39-2.06-.913-1.675-1.336-3.612-1.36-5.52 3.674-.656 7.662.792 10.1 4.22 4.726 6.764-.128 16.08-8.38 16.08-1.426 0-2.9-.303-4.29-.94l-5.01 4.69H17.6v1.81zm16.24-18.1c-1.518.948-3.521.728-5.1-1.5 1.346-2.459 5.11-1.493 5.11 1.32 0 .06 0 .12-.01.18zm-.29 1.04c-.44.89-1.36 1.5-2.43 1.5a2.725 2.725 0 0 1-2.69-3.13c1.322 1.591 3.197 2.391 5.12 1.63zM32 .9c2.81 0 5.1 3.71 5.1 8.27 0 1.09-.04 2.03-.23 2.89-2.58-2.899-6.39-4.152-9.95-3.58C27.13 4.24 29.33.9 32 .9zm1.14 29.48l-2.42 5.41-1.37.54.6 1.51-.88 2.14-1.56.63.57 1.45-1.24 3.08-3.86 1.52-1.33-3.35 5.41-13.02c.665.091 1.147.11 1.698.11l-5.36 12.44.734.316L29.65 30.35c7.71-.716 12.301-9.014 8.82-15.93 6.615 4.993 3.842 16.3-5.33 15.96zM20.38 28.1L9.15 39.34l-.57-.57 11.24-11.23.56.56z","search-files":"M10.9 4h-.8V1.1h13.57l9.23 9.23v13.28c-.26-.04-.53-.07-.8-.09V10.9h-5.08l-.8-.8h5.31L23.9 2.47v5.31l-.8-.8V1.9H10.9V4zm12.27 31.9H6.1V5.1h13.57l9.23 9.23v9.56a6.335 6.335 0 0 0-.8.28V14.9h-9v-9H6.9v29.2h15.99c.03.139.193.611.28.8zM19.9 14.1h7.63L19.9 6.47v7.63zm7.2 18.4v.5h.8v-.5c0-1.985 1.617-3.6 3.602-3.6H32v-.8h-.499a4.408 4.408 0 0 0-4.402 4.4zm18.733 12.096c0 .24-.094.466-.264.636l-1.307 1.307a.897.897 0 0 1-1.274 0l-5.527-5.528.97-.996-2.005-2.005A7.364 7.364 0 0 1 31.5 39.9c-4.08 0-7.4-3.319-7.4-7.4s3.32-7.4 7.4-7.4c4.081 0 7.401 3.32 7.401 7.4a7.36 7.36 0 0 1-1.909 4.944l1.997 1.997 1.018-1.044 5.561 5.561c.167.168.264.4.264.637zM31.5 39.102c3.64 0 6.6-2.961 6.6-6.6 0-3.64-2.96-6.601-6.6-6.601s-6.6 2.96-6.6 6.6c0 3.64 2.96 6.6 6.6 6.6zm13.502 5.423l-4.987-4.988-1.43 1.467 4.969 4.97h.14l1.308-1.307v-.142zM9 19.9h15v-.8H9v.8zm0 10h9v-.8H9v.8zm12-5.8H9v.8h12v-.8z",support:"M39.973 19.342l.069-.016a67.604 67.604 0 0 0-.898-3.54A16.04 16.04 0 0 0 23.514 4.1 16.006 16.006 0 0 0 7.797 16.11c-.175.663-.324 1.326-.477 1.99H6.5a1.402 1.402 0 0 0-1.4 1.4v2a1.402 1.402 0 0 0 1.4 1.4h1.4v-3.792q.304-1.398.67-2.796A15.216 15.216 0 0 1 23.514 4.9a15.248 15.248 0 0 1 14.86 11.104 66.99 66.99 0 0 1 .805 3.156c-.375.029-1.054.27-1.054 1.659v8.47c0 1.376.666 1.625 1.043 1.658-2.449 5.636-4.985 9.933-11.21 10.536a1.979 1.979 0 0 0-1.904-1.464h-2.108a1.981 1.981 0 1 0 0 3.962h2.108a1.978 1.978 0 0 0 1.953-1.699c6.887-.656 9.598-5.636 12.153-11.61 1.29-.717 2.766-2.661 2.766-3.924V23.36c0-1.324-1.624-3.396-2.953-4.018zM7.1 22.1h-.6a.6.6 0 0 1-.6-.6v-2a.6.6 0 0 1 .6-.6h.6zm18.954 21.081h-2.108a1.181 1.181 0 0 1 0-2.362h2.108a1.181 1.181 0 0 1 0 2.362zm16.071-16.433c0 1.207-2.003 3.406-2.856 3.406-.284 0-.343-.47-.343-.865v-8.47c0-.395.06-.865.343-.865.853 0 2.856 2.2 2.856 3.406z",value:"M14.068 13.1l-6.83 7.62L24.5 45.067l17.261-24.345-6.829-7.62H14.068zm19.883.8l-2 6.2H17.049l-2-6.2h18.902zm-19.685.178l1.943 6.022h-7.34l5.397-6.022zM8.346 20.9h8.12l6.779 21.013L8.347 20.9zM24.5 43.198L17.307 20.9h14.386L24.5 43.198zm1.255-1.283L32.533 20.9h8.12L25.755 41.915zM32.79 20.1l1.943-6.022L40.13 20.1h-7.339zM24.9 5h-.8V2h.8v3zm11.42 3.628l-.642-.476 1.771-2.39.643.476-1.772 2.39zm-23.642 0l-1.772-2.39.643-.476 1.771 2.39-.642.476zm35.253 7.164l-2.822.808-.22-.77 2.822-.808.22.77zm-46.644-.77l2.822.809-.22.77-2.822-.809.22-.77z",video:"M11.363 17.1l27.814-8.32-1.697-5.673-31.127 9.311 1.696 5.673.051-.015V41.9h31.8V17.1zm15.783-5.556l-5.179 1.549 1.246-4.883 5.178-1.549zm2.14-5.15l5.178-1.549-1.246 4.883-5.178 1.548zm-8.213 6.966l-5.178 1.549 1.246-4.883 5.178-1.548zm-6.072 1.816l-5.178 1.549 1.246-4.883 5.178-1.548zm23.18-6.933L34.112 9.46l1.246-4.882 1.585-.474zM7.35 12.955l2.826-.845-1.246 4.882-.343.103zM29.044 22.1l2.52-4.2h5.405l-2.52 4.2zm-19.014 0l2.52-4.2h5.405l-2.52 4.2zm8.858-4.2h5.405l-2.52 4.2h-5.405zm6.338 0h5.405l-2.52 4.2h-5.405zM8.9 17.9h2.716l-2.519 4.2H8.9zm30.2 23.2H8.9V22.9h30.2zm-3.718-19l2.52-4.2H39.1v4.2zM36 27.9h-2v-.8h2zm-5 0H13v-.8h18zm-17.9 9h22.8v-5.8H13.1zm.8-5h21.2v4.2H13.9z","speech-bubbles":"M11 15.9v-.8h18v.8zm12 4v-.8H11v.8zm-1 7.2h-3.443L9.9 32.76V27.1H5.75a1.852 1.852 0 0 1-1.85-1.85v-14.5A1.852 1.852 0 0 1 5.75 8.9h27.5a1.852 1.852 0 0 1 1.85 1.85V22h.8V10.75a2.653 2.653 0 0 0-2.65-2.65H5.75a2.653 2.653 0 0 0-2.65 2.65v14.5a2.653 2.653 0 0 0 2.65 2.65H9.1v6.34l9.695-6.34H22zm18.9 9.8h1.35a2.653 2.653 0 0 0 2.65-2.65v-8.5a2.653 2.653 0 0 0-2.65-2.65h-16.5a2.653 2.653 0 0 0-2.65 2.65v8.5a2.653 2.653 0 0 0 2.65 2.65h7.28l7.87 5.628zm1.35-13a1.852 1.852 0 0 1 1.85 1.85v8.5a1.852 1.852 0 0 1-1.85 1.85H40.1v4.872L33.288 36.1H25.75a1.852 1.852 0 0 1-1.85-1.85v-8.5a1.852 1.852 0 0 1 1.85-1.85zm-3.25 4v-.8H29v.8zm-3 5v-.8h-7v.8z"},i=class extends e{constructor(){super(...arguments),this._translations=o({name:"solution-resource-card",blocking:!0}),this._configContextConsumer=s({context:n,subscribe:!0}),this.heading="",this.description=""}static{this.properties={_translations:16,icon:1,meridianIcon:1,heading:1,description:1,url:1,headingEn:1,sectionHeadingEn:1}}static{this.styles=p}get _telemetry(){return this._configContextConsumer.value?.telemetrySession}render(){return a`<calcite-card @click=${()=>this.url&&this._handleCardClick(this.url)} @keydown=${l=>m(l,()=>this.url&&this._handleCardClick(this.url))}>${this.meridianIcon&&v[this.meridianIcon]&&a`<div class="card-icon"><svg aria-hidden=true class="meridian-icon" xmlns=http://www.w3.org/2000/svg viewBox="0 0 48 48">${t`<path fill=currentColor d=${v[this.meridianIcon]??r} />`}</svg></div>`||""}${this.icon&&a`<div class="card-icon"><calcite-icon aria-hidden=true .icon=${this.icon} scale=l></calcite-icon></div>`||""}<h3 class="card-heading">${this.heading}</h3><p class="card-description">${this.description}</p></calcite-card>`}_handleCardClick(l){let d=this.headingEn||this.heading,H=this.sectionHeadingEn||"";this._telemetry?.logEvent({category:z.RESOURCES,action:"Open",dimensions:[`${H} - ${d}`]}),window.open(l,"_blank","noopener,noreferrer")}};h("solution-resource-card",i);return i},b,d)
|
|
2
|
+
import d from"./XOCNSPTC.js";import b from"./XOPNEAS5.js";import{b as n}from"./2B4SGB3I.js";import{b as s}from"./RLSY4VUQ.js";import{a as o}from"./LABCYKSC.js";import{b as h}from"./5BJO5ABV.js";import{H as e,L as r,h as c,i as a,j as t}from"./T3EPRHTT.js";export default $arcgis.t(([{s:m},{r:z}])=>{var p=c`calcite-card{cursor:pointer;height:100%;padding-bottom:2px;border-inline-start:3px solid transparent}calcite-card:hover{outline:1px solid var(--calcite-color-brand);border-inline-start:3px solid var(--calcite-color-brand);box-sizing:border-box}.card-icon{margin-bottom:var(--calcite-spacing-md);display:flex;justify-content:flex-start}.card-heading{font-size:var(--calcite-font-size-0);font-weight:var(--calcite-font-weight-medium);margin:0 0 var(--calcite-spacing-sm) 0;color:var(--calcite-color-text-1)}.card-description{font-size:var(--calcite-font-size--1);color:var(--calcite-color-text-2);margin:0}.meridian-icon{width:48px;height:48px;display:block;color:var(--calcite-color-text-3)}`,v={"arcmap-blog":"M34 28.9H10v-.8h24zm-24 5h20v-.8H10zm31.591-20.8l-.8.8H45.1v25.2H18.583l-9.817 4.245 1.823-4.245H3.9V13.9h22.665l.8-.8H3.1v26.8h6.274l-2.142 4.986L18.666 39.9H45.9V13.1zm-.953-5.141l.449 2.676L32.6 19.12l-.567-.565 8.195-8.196-.286-1.708L24.09 24.476a1.82 1.82 0 0 1-.689.431l-3.52 1.22 1.213-3.525a1.832 1.832 0 0 1 .431-.692L42.461.989l2.578 2.577zm3.268-4.394L42.461 2.12 22.09 22.475a1.036 1.036 0 0 0-.242.388l-.678 1.97 1.968-.682a1.018 1.018 0 0 0 .384-.24z","esri-community":"M24 47.896a3.897 3.897 0 0 1-1.563-.327L3.1 39.106V12.928a6.169 6.169 0 0 1 3.696-5.651L22.436.43a3.905 3.905 0 0 1 3.128 0L44.9 8.894v26.178a6.17 6.17 0 0 1-3.696 5.651l-15.64 6.846a3.897 3.897 0 0 1-1.564.327zM3.9 38.583l18.857 8.254a3.11 3.11 0 0 0 2.486 0l15.64-6.846a5.37 5.37 0 0 0 3.217-4.92V9.418L25.243 1.163a3.11 3.11 0 0 0-2.486 0L7.117 8.01A5.369 5.369 0 0 0 3.9 12.928zm21.364.344a14.156 14.156 0 0 1-14.17-14.111 13.678 13.678 0 0 1 16.893-13.26l.387.103-1.164 4.336-.389-.107a8.052 8.052 0 0 0-2.141-.282 8.907 8.907 0 0 0-8.74 8.838 9.303 9.303 0 0 0 15.277 7.075.809.809 0 0 1 1.104.062l2.451 2.57a.808.808 0 0 1-.047 1.161 14.213 14.213 0 0 1-9.461 3.615zm-.559-27a12.956 12.956 0 0 0-12.81 12.889 13.375 13.375 0 0 0 22.298 9.899L31.73 32.13a10.103 10.103 0 0 1-16.591-7.687 9.718 9.718 0 0 1 9.54-9.637 8.982 8.982 0 0 1 1.965.212l.748-2.787a11.953 11.953 0 0 0-2.687-.305zM36 26.9H24a3.905 3.905 0 0 1-3.9-3.9.901.901 0 0 1 .9-.9h10.84a7.77 7.77 0 0 0-1.875-4.15l-.131-.158 1.332-5.01.475.357a13.413 13.413 0 0 1 5.26 10.705V26a.901.901 0 0 1-.901.9zm-15-4a.1.1 0 0 0-.1.1 3.103 3.103 0 0 0 3.1 3.1h12a.1.1 0 0 0 .1-.1v-2.156a12.643 12.643 0 0 0-4.47-9.693l-.918 3.451a8.135 8.135 0 0 1 1.95 4.898v.4z",faq:"M18.495 23.09a3.22 3.22 0 0 1 3.502 3.123 3.526 3.526 0 0 1-1.593 3.034 3.413 3.413 0 0 0-1.524 3.096V33h-.8v-.657a4.165 4.165 0 0 1 1.812-3.71 2.727 2.727 0 0 0 1.305-2.42 2.425 2.425 0 0 0-2.702-2.322c-1.716 0-2.498.99-2.498 1.912h-.8c0-1.348 1.133-2.712 3.298-2.712zm22.849-2.748l.843 4.81-3.579-1.014.218-.77 2.354.668-.721-4.111.246-.139c3.427-1.927 5.393-4.774 5.393-7.81 0-5.554-6.55-10.072-14.6-10.072s-14.6 4.518-14.6 10.072a8.111 8.111 0 0 0 2.73 5.856l.313.3C29.924 18.47 37.9 24.104 37.9 31c0 7.113-8.479 12.9-18.9 12.9-1.417 0-3.901-.295-4.433-.36l-9.71 3.627 2.062-6.238C2.58 38.47.1 34.867.1 31c0-7.064 8.364-12.813 18.686-12.893a8.769 8.769 0 0 1-2.688-6.131c0-5.995 6.908-10.872 15.4-10.872s15.4 4.877 15.4 10.872c0 3.258-2.02 6.295-5.554 8.366zM19 18.9C9.02 18.9.9 24.328.9 31c0 3.65 2.44 7.073 6.694 9.389l.293.16-1.746 5.285 8.33-3.112.097.012c.03.004 2.923.366 4.432.366 9.98 0 18.1-5.428 18.1-12.1S28.98 18.9 19 18.9zm.4 16.6a.9.9 0 1 1-.9-.9.901.901 0 0 1 .9.9zm-.8 0a.1.1 0 0 0-.2 0c0 .11.2.11.2 0zm12.9-25.025a1.025 1.025 0 1 1-1.025 1.025 1.026 1.026 0 0 1 1.025-1.025zm0 .8a.225.225 0 0 0-.225.225c0 .248.45.248.45 0a.225.225 0 0 0-.225-.225zm6.975.225a1.025 1.025 0 1 1 1.025 1.025 1.026 1.026 0 0 1-1.025-1.025zm.8 0c0 .248.45.248.45 0a.225.225 0 0 0-.45 0zM23.5 10.475a1.025 1.025 0 1 1-1.025 1.025 1.026 1.026 0 0 1 1.025-1.025zm0 .8a.225.225 0 0 0-.225.225c0 .248.45.248.45 0a.225.225 0 0 0-.225-.225z",idea:"M31.858 10.113a12.288 12.288 0 0 0-9.675-3.074 12.438 12.438 0 0 0-7.706 20.764 11.032 11.032 0 0 1 3.016 7.387A1.511 1.511 0 0 0 19 36.9h.187l.388 1.553-.523 1.047.5 1-.41.821-.043 1.033 2.44 2.546h3.921l2.439-2.546V36.9h.307a1.51 1.51 0 0 0 1.508-1.504 11.03 11.03 0 0 1 3.014-7.391 12.45 12.45 0 0 0-.871-17.692zM27.1 42.033L25.12 44.1h-3.24l-1.98-2.068v-.437l.347-.695H24v-.8h-3.753l-.3-.6.3-.6H24v-.8h-3.688l-.3-1.2H27.1zm-5.2-9.869a1.6 1.6 0 1 1 3.2 0V36.1h-3.2zm10.238-4.698a11.814 11.814 0 0 0-3.222 7.924.71.71 0 0 1-.71.71H25.9v-3.936a2.406 2.406 0 0 0-.468-1.42l3.903-12.02-.76-.247-3.786 11.655a2.368 2.368 0 0 0-.89-.344V22.9H25v-.8h-3v.8h1.1v6.888a2.368 2.368 0 0 0-.889.344l-3.785-11.655-.761.248 3.903 12.019a2.406 2.406 0 0 0-.468 1.42V36.1h-2.099a.712.712 0 0 1-.709-.717 11.812 11.812 0 0 0-3.225-7.92 11.638 11.638 0 0 1 7.205-19.429 11.486 11.486 0 0 1 9.053 2.876 11.65 11.65 0 0 1 .813 16.556zM23.9 3h-.8V0h.8zM11.69 7.194l-1.77-2.39.642-.476 1.771 2.39zm24.748-2.866l.642.477-1.77 2.39-.644-.477zM2.483 16.022l2.822.808-.22.77-2.822-.808zm42.252.77l-2.822.808-.22-.77 2.822-.808z",install:"M30.991 21.733l-7.395 7.394-7.395-7.394.567-.566L23.1 27.5V3h.8v24.691l6.525-6.524zm6.7-7.633H26v.8h11.1v26.2H9.9V14.9H21v-.8H9.31L.69 24.748l.62.504L9.1 15.63V41.9h28.8V15.63l7.79 9.622.62-.504z",keys:"M42.52 18.96c-.8-2.67-2.58-4.84-4.98-6.07-.02-.02-.03-.04-.05-.06.34-1.09.41-2.27.41-3.66C37.9 4.08 35.31.1 32 .1c-3.19 0-5.72 3.7-5.88 8.54-6.7 1.555-10.39 8.9-7.57 15.21L5.1 37.08v5.79l6.27.03 3.28-3.57V37.9h1.34l2.41-2.41v-1.34h1.23l4.87-4.55c.57.23 1.16.41 1.76.54L20.79 43.3l1.74 4.39 4.92-1.93 1.5-3.7-.41-1.01 1.15-.45 1.12-2.76-.42-1.06.93-.37 2.33-5.21c6.53.047 10.619-6.336 8.87-12.24zM17.6 35.16l-1.94 1.94h-1.81v1.92l-2.83 3.08-5.12-.03v-4.65l13.61-13.4c-3.048-6.604.758-13.066 6.6-14.56.037 2.097.58 4.415 1.72 6.17-.878 2.281.823 4.77 3.29 4.77 1.95 0 3.53-1.58 3.53-3.52 0-3.417-4.395-4.834-6.39-2.06-.913-1.675-1.336-3.612-1.36-5.52 3.674-.656 7.662.792 10.1 4.22 4.726 6.764-.128 16.08-8.38 16.08-1.426 0-2.9-.303-4.29-.94l-5.01 4.69H17.6v1.81zm16.24-18.1c-1.518.948-3.521.728-5.1-1.5 1.346-2.459 5.11-1.493 5.11 1.32 0 .06 0 .12-.01.18zm-.29 1.04c-.44.89-1.36 1.5-2.43 1.5a2.725 2.725 0 0 1-2.69-3.13c1.322 1.591 3.197 2.391 5.12 1.63zM32 .9c2.81 0 5.1 3.71 5.1 8.27 0 1.09-.04 2.03-.23 2.89-2.58-2.899-6.39-4.152-9.95-3.58C27.13 4.24 29.33.9 32 .9zm1.14 29.48l-2.42 5.41-1.37.54.6 1.51-.88 2.14-1.56.63.57 1.45-1.24 3.08-3.86 1.52-1.33-3.35 5.41-13.02c.665.091 1.147.11 1.698.11l-5.36 12.44.734.316L29.65 30.35c7.71-.716 12.301-9.014 8.82-15.93 6.615 4.993 3.842 16.3-5.33 15.96zM20.38 28.1L9.15 39.34l-.57-.57 11.24-11.23.56.56z","search-files":"M10.9 4h-.8V1.1h13.57l9.23 9.23v13.28c-.26-.04-.53-.07-.8-.09V10.9h-5.08l-.8-.8h5.31L23.9 2.47v5.31l-.8-.8V1.9H10.9V4zm12.27 31.9H6.1V5.1h13.57l9.23 9.23v9.56a6.335 6.335 0 0 0-.8.28V14.9h-9v-9H6.9v29.2h15.99c.03.139.193.611.28.8zM19.9 14.1h7.63L19.9 6.47v7.63zm7.2 18.4v.5h.8v-.5c0-1.985 1.617-3.6 3.602-3.6H32v-.8h-.499a4.408 4.408 0 0 0-4.402 4.4zm18.733 12.096c0 .24-.094.466-.264.636l-1.307 1.307a.897.897 0 0 1-1.274 0l-5.527-5.528.97-.996-2.005-2.005A7.364 7.364 0 0 1 31.5 39.9c-4.08 0-7.4-3.319-7.4-7.4s3.32-7.4 7.4-7.4c4.081 0 7.401 3.32 7.401 7.4a7.36 7.36 0 0 1-1.909 4.944l1.997 1.997 1.018-1.044 5.561 5.561c.167.168.264.4.264.637zM31.5 39.102c3.64 0 6.6-2.961 6.6-6.6 0-3.64-2.96-6.601-6.6-6.601s-6.6 2.96-6.6 6.6c0 3.64 2.96 6.6 6.6 6.6zm13.502 5.423l-4.987-4.988-1.43 1.467 4.969 4.97h.14l1.308-1.307v-.142zM9 19.9h15v-.8H9v.8zm0 10h9v-.8H9v.8zm12-5.8H9v.8h12v-.8z",support:"M39.973 19.342l.069-.016a67.604 67.604 0 0 0-.898-3.54A16.04 16.04 0 0 0 23.514 4.1 16.006 16.006 0 0 0 7.797 16.11c-.175.663-.324 1.326-.477 1.99H6.5a1.402 1.402 0 0 0-1.4 1.4v2a1.402 1.402 0 0 0 1.4 1.4h1.4v-3.792q.304-1.398.67-2.796A15.216 15.216 0 0 1 23.514 4.9a15.248 15.248 0 0 1 14.86 11.104 66.99 66.99 0 0 1 .805 3.156c-.375.029-1.054.27-1.054 1.659v8.47c0 1.376.666 1.625 1.043 1.658-2.449 5.636-4.985 9.933-11.21 10.536a1.979 1.979 0 0 0-1.904-1.464h-2.108a1.981 1.981 0 1 0 0 3.962h2.108a1.978 1.978 0 0 0 1.953-1.699c6.887-.656 9.598-5.636 12.153-11.61 1.29-.717 2.766-2.661 2.766-3.924V23.36c0-1.324-1.624-3.396-2.953-4.018zM7.1 22.1h-.6a.6.6 0 0 1-.6-.6v-2a.6.6 0 0 1 .6-.6h.6zm18.954 21.081h-2.108a1.181 1.181 0 0 1 0-2.362h2.108a1.181 1.181 0 0 1 0 2.362zm16.071-16.433c0 1.207-2.003 3.406-2.856 3.406-.284 0-.343-.47-.343-.865v-8.47c0-.395.06-.865.343-.865.853 0 2.856 2.2 2.856 3.406z",value:"M14.068 13.1l-6.83 7.62L24.5 45.067l17.261-24.345-6.829-7.62H14.068zm19.883.8l-2 6.2H17.049l-2-6.2h18.902zm-19.685.178l1.943 6.022h-7.34l5.397-6.022zM8.346 20.9h8.12l6.779 21.013L8.347 20.9zM24.5 43.198L17.307 20.9h14.386L24.5 43.198zm1.255-1.283L32.533 20.9h8.12L25.755 41.915zM32.79 20.1l1.943-6.022L40.13 20.1h-7.339zM24.9 5h-.8V2h.8v3zm11.42 3.628l-.642-.476 1.771-2.39.643.476-1.772 2.39zm-23.642 0l-1.772-2.39.643-.476 1.771 2.39-.642.476zm35.253 7.164l-2.822.808-.22-.77 2.822-.808.22.77zm-46.644-.77l2.822.809-.22.77-2.822-.809.22-.77z",video:"M11.363 17.1l27.814-8.32-1.697-5.673-31.127 9.311 1.696 5.673.051-.015V41.9h31.8V17.1zm15.783-5.556l-5.179 1.549 1.246-4.883 5.178-1.549zm2.14-5.15l5.178-1.549-1.246 4.883-5.178 1.548zm-8.213 6.966l-5.178 1.549 1.246-4.883 5.178-1.548zm-6.072 1.816l-5.178 1.549 1.246-4.883 5.178-1.548zm23.18-6.933L34.112 9.46l1.246-4.882 1.585-.474zM7.35 12.955l2.826-.845-1.246 4.882-.343.103zM29.044 22.1l2.52-4.2h5.405l-2.52 4.2zm-19.014 0l2.52-4.2h5.405l-2.52 4.2zm8.858-4.2h5.405l-2.52 4.2h-5.405zm6.338 0h5.405l-2.52 4.2h-5.405zM8.9 17.9h2.716l-2.519 4.2H8.9zm30.2 23.2H8.9V22.9h30.2zm-3.718-19l2.52-4.2H39.1v4.2zM36 27.9h-2v-.8h2zm-5 0H13v-.8h18zm-17.9 9h22.8v-5.8H13.1zm.8-5h21.2v4.2H13.9z","speech-bubbles":"M11 15.9v-.8h18v.8zm12 4v-.8H11v.8zm-1 7.2h-3.443L9.9 32.76V27.1H5.75a1.852 1.852 0 0 1-1.85-1.85v-14.5A1.852 1.852 0 0 1 5.75 8.9h27.5a1.852 1.852 0 0 1 1.85 1.85V22h.8V10.75a2.653 2.653 0 0 0-2.65-2.65H5.75a2.653 2.653 0 0 0-2.65 2.65v14.5a2.653 2.653 0 0 0 2.65 2.65H9.1v6.34l9.695-6.34H22zm18.9 9.8h1.35a2.653 2.653 0 0 0 2.65-2.65v-8.5a2.653 2.653 0 0 0-2.65-2.65h-16.5a2.653 2.653 0 0 0-2.65 2.65v8.5a2.653 2.653 0 0 0 2.65 2.65h7.28l7.87 5.628zm1.35-13a1.852 1.852 0 0 1 1.85 1.85v8.5a1.852 1.852 0 0 1-1.85 1.85H40.1v4.872L33.288 36.1H25.75a1.852 1.852 0 0 1-1.85-1.85v-8.5a1.852 1.852 0 0 1 1.85-1.85zm-3.25 4v-.8H29v.8zm-3 5v-.8h-7v.8z"},i=class extends e{constructor(){super(...arguments),this._translations=o({name:"solution-resource-card",blocking:!0}),this._configContextConsumer=s({context:n,subscribe:!0}),this.heading="",this.description=""}static{this.properties={_translations:16,icon:1,meridianIcon:1,heading:1,description:1,url:1,headingEn:1,sectionHeadingEn:1}}static{this.styles=p}get _telemetry(){return this._configContextConsumer.value?.telemetrySession}render(){return a`<calcite-card @click=${()=>this.url&&this._handleCardClick(this.url)} @keydown=${l=>m(l,()=>this.url&&this._handleCardClick(this.url))}>${this.meridianIcon&&v[this.meridianIcon]&&a`<div class="card-icon"><svg aria-hidden=true class="meridian-icon" xmlns=http://www.w3.org/2000/svg viewBox="0 0 48 48">${t`<path fill=currentColor d=${v[this.meridianIcon]??r} />`}</svg></div>`||""}${this.icon&&a`<div class="card-icon"><calcite-icon aria-hidden=true .icon=${this.icon} scale=l></calcite-icon></div>`||""}<h3 class="card-heading">${this.heading}</h3><p class="card-description">${this.description}</p></calcite-card>`}_handleCardClick(l){let d=this.headingEn||this.heading,H=this.sectionHeadingEn||"";this._telemetry?.logEvent({category:z.RESOURCES,action:"Open",dimensions:[`${H} - ${d}`]}),window.open(l,"_blank","noopener,noreferrer")}};h("solution-resource-card",i);return i},b,d)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import{a as r,b as p}from"./
|
|
2
|
+
import{a as r,b as p}from"./AULN2QXN.js";import{b as n}from"./5BJO5ABV.js";import{H as o,L as t,h as e,i as s}from"./T3EPRHTT.js";import"./EXBEKVP5.js";var y=e`.item-type-icon{@apply block h-4 pointer-events-none;margin-top:.15em!important;min-width:16px;fill:currentColor;transform:rotate(360deg)}.item-type-icon-margin{@apply m-inline-end-1.5;}`,i=class extends o{constructor(){super(...arguments),this.isPortal=!1,this.type="",this.typeKeywords=[],this.designType=""}static{this.properties={isPortal:5,type:1,typeKeywords:0,designType:1}}static{this.styles=y}render(){let a=this.designType?r(this.designType):p(this.type,this.typeKeywords),m=this.designType||this.type;return s`<div title=${m??t}><img alt aria-hidden=true class="item-type-icon item-type-icon-margin" height=16 src=${a??t} width=16></div>`}};n("solution-item-icon",i);export{i as SolutionItemIcon};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import{a as p}from"./IADXB53D.js";import{b as l}from"./
|
|
2
|
+
import{a as p}from"./IADXB53D.js";import{b as l}from"./KGXEY5HR.js";import{F as i,G as n,H as r,J as o,K as d,h as s,i as a}from"./T3EPRHTT.js";import"./EXBEKVP5.js";var c=s`:host{display:block}:host .esri-legend__service{margin:0;padding:0}:host .hide{display:none}`,e={service:"esri-legend__service",groupLayer:"esri-legend__group-layer",groupContent:"esri-legend__group-content"},t=class extends r{constructor(){super(),this.layerCaption=i(),this.expanded=!0,this.isChild=!1,this.listenOn(window,"layerCaptionElementExpandUpdated",this.layerCaptionElementExpandUpdatedEmitted)}static{this.properties={expanded:16,legendvm:0,featureCount:5,activeLayerInfo:0,isChild:5}}static{this.styles=c}load(){new MutationObserver(()=>{this.requestUpdate()}).observe(this.el,{attributes:!0})}layerCaptionElementExpandUpdatedEmitted(){this.expanded=!!this.layerCaption.value?.expanded}render(){return a`<div style=${d({borderLeft:"1px solid var(--calcite-color-border-3)"})} class=${`${e.service} ${e.groupLayer}`}><instant-apps-interactive-legend-layer-element-caption class=${o(p(this.el))} .legendvm=${this.legendvm} .featureCount=${this.featureCount} .activeLayerInfo=${this.activeLayerInfo} .isChild=${this.isChild} ${n(this.layerCaption)}></instant-apps-interactive-legend-layer-element-caption><div class=${`${e.groupContent} ${this.expanded?"show":"hide"}`}><slot name=content></slot></div></div>`}};l("instant-apps-interactive-legend-group-legend-element",t);export{t as InstantAppsInteractiveLegendGroupLegendElement};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import f from"./3W7ANZME.js";import"./CJ3EZE7U.js";import e from"./SHQFXQEI.js";import{b as I,e as $}from"./C5KDPY7R.js";import"./YM4U4HSN.js";import{a as x}from"./IADXB53D.js";import c from"./QZ2ZMWIH.js";import a from"./CS5N3DOL.js";import{a as u}from"./YUWXPLTE.js";import{a as y}from"./
|
|
2
|
+
import f from"./3W7ANZME.js";import"./CJ3EZE7U.js";import e from"./SHQFXQEI.js";import{b as I,e as $}from"./C5KDPY7R.js";import"./YM4U4HSN.js";import{a as x}from"./IADXB53D.js";import c from"./QZ2ZMWIH.js";import a from"./CS5N3DOL.js";import{a as u}from"./YUWXPLTE.js";import{a as y}from"./HKURBCD6.js";import{b as _}from"./KGXEY5HR.js";import"./QMAV4UTN.js";import"./Y2AUIXNK.js";import{H as b,J as d,h as v,i as r}from"./T3EPRHTT.js";import"./EXBEKVP5.js";export default $arcgis.t(([F,,{a:n,b:p,c:C},{c:m,e:T},{d:f,e:L,f:w}])=>{var z=v`:host{display:flex;align-items:center}.instant-apps-interactive-legend__total-feature-count{font-weight:var(--calcite-font-weight-medium);font-size:var(--calcite-font-size-0)}.instant-apps-interactive-legend__info-count-text{font-size:var(--instant-apps-interactive-legend-info-font-size);color:var(--instant-apps-interactive-legend-secondary-color);white-space:nowrap}.calcite-mode-dark.instant-apps-interactive-legend__info-count-text.instant-apps-interactive-legend__info-count-text--selected{color:var(--calcite-color-text-inverse)}.instant-apps-interactive-legend-count--compact .instant-apps-interactive-legend__total-feature-count{font-size:.75rem}:host:dir(rtl){margin-left:0;margin-right:auto}`,c={countText:" instant-apps-interactive-legend__info-count-text",countTextSelected:" instant-apps-interactive-legend__info-count-text--selected",totalFeatureCount:"instant-apps-interactive-legend__total-feature-count",compact:"instant-apps-interactive-legend-count--compact"},g=class extends b{constructor(){super(...arguments),this._messages=y({name:"instant-apps-interactive-legend"}),this.showTotal=!1,this.categoryId=""}static{this.properties={showTotal:5,legendvm:0,activeLayerInfo:0,categoryId:1,infoIndex:9,selected:5,legendElement:0}}static{this.styles=z}load(){if(this.attributeObserver=new MutationObserver(()=>{this.requestUpdate()}),this.attributeObserver.observe(this.el,{attributes:!0}),!this.dataChangeHandle){let t=p.onChange("data",()=>this.requestUpdate());this.isRemovableHandle(t)&&(this.dataChangeHandle={remove:t.remove.bind(t)})}}disconnectedCallback(){super.disconnectedCallback(),this.attributeObserver?.disconnect(),this.attributeObserver=void 0,this.dataChangeHandle?.remove(),this.dataChangeHandle=void 0}isRemovableHandle(t){return!!t&&typeof t.remove=="function"}formatResolvedNumber(t){return f(t)?F.formatNumber(t):""}getCount(){let{categoryId:t}=this,a=this.activeLayerInfo.layer.id,o=n.data[a]?.categories?.size;if((!n.data||!a||!t)&&!o)return"";let s=n.data[a];if(!s)return;let{categories:l}=s,e=l.get(t),i;return e?.nestedInfos?i=T(e,this.infoIndex):i=e,this.formatResolvedNumber(i.count)}getTotalFeatureCount(){let t=this.activeLayerInfo.layer.id;if(!n.data||!t)return"";let a=n.data[t];if(!a)return;let{categories:o}=a,s=m(o),l=I(o),e;if(l)e=w(s);else if($(this.activeLayerInfo)){let i=C(this.activeLayerInfo.layer),h=m(i.categories)[1];e=f(h.count)?h.count:null}else e=L(s);return this.formatResolvedNumber(e)}render(){let t=p.get("compact")?c.compact:"";return u("int-legend-count",r`<div class=${d(t)}>${this.showTotal?r`<span class=${d(c.totalFeatureCount)}>${this._messages?.totalFeatureCount}: ${this.getTotalFeatureCount()}</span>`:u("element-info-count",r`<span class=${`${c.countText} ${x(this.el)}${this.selected?c.countTextSelected:""}`}>${this.getCount()}</span>`)}</div>`)}};_("instant-apps-interactive-legend-count",g);return g},"intl",a,c,e,f)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import{a as m}from"./
|
|
2
|
+
import{a as m}from"./HKURBCD6.js";import{b as d}from"./KGXEY5HR.js";import"./QMAV4UTN.js";import"./Y2AUIXNK.js";import{F as g,G as h,H as u,J as t,h as p,i,l as e}from"./T3EPRHTT.js";import"./EXBEKVP5.js";export default $arcgis.t(([b,o,f])=>{var I=p`:host{--instant-apps-sign-in-indicator-color: #007ac2;display:block;box-shadow:none!important}:host .instant-apps-sign-in__container{height:inherit;display:flex;align-items:center;height:100%}:host .instant-apps-sign-in__container calcite-action{--calcite-action-text-color: var(--calcite-color-text-1);--calcite-font-size--2: var(--calcite-font-size--1);--calcite-internal-action-padding-inline: 12px}:host .instant-apps-sign-in__container calcite-action:focus{--calcite-action-background-color: var(--calcite-color-foreground-2)}:host .instant-apps-sign-in__container calcite-action,:host .instant-apps-sign-in__container calcite-navigation-user{height:100%}:host .instant-apps-sign-in__container calcite-navigation-user{--calcite-color-foreground-2: rgba(0, 0, 0, .04);--calcite-color-foreground-3: rgba(0, 0, 0, .04)}:host .instant-apps-sign-in__container .instant-apps-sign-in__indicator:after{content:"";position:absolute;block-size:.5rem;inline-size:.5rem;border-radius:9999px;inset-block-end:-.275rem;inset-inline-end:-.275rem;background-color:var(--instant-apps-sign-in-indicator-color);bottom:calc(50% - 15px);right:calc(50% - 15px)}:host .instant-apps-sign-in__container .instant-apps-sign-in__sign-in-btn{margin:10px}:host .instant-apps-sign-in__container calcite-popover[scale=m] .instant-apps-sign-in__sign-in-container{min-width:140px}:host .instant-apps-sign-in__container calcite-popover[scale=s] .instant-apps-sign-in__sign-in-container{min-width:100px}:host .instant-apps-sign-in__container button{height:32px;width:32px;padding:0;box-sizing:border-box;display:flex;cursor:pointer;-webkit-user-select:none;user-select:none;appearance:none;-moz-appearance:none;-webkit-appearance:none;text-decoration-line:none;transition:color var(--calcite-animation-timing) ease-in-out,background-color var(--calcite-animation-timing) ease-in-out,box-shadow var(--calcite-animation-timing) ease-in-out,outline-color var(--calcite-internal-animation-timing-fast) ease-in-out;border:none;border-radius:50%;background:#000}:host .instant-apps-sign-in__container button:hover calcite-avatar{opacity:.7;transition:.3s}:host .instant-apps-sign-in__landing-page{display:flex;flex-direction:column;justify-content:center;padding:40px;width:50%;min-height:30%;background:#fffc;color:#151515;text-align:center}:host .instant-apps-sign-in__landing-page h1{font-size:22px;margin:10px 0}:host .instant-apps-sign-in__landing-page h2{font-size:16px;margin:0 0 10px}:host .instant-apps-sign-in__landing-page p{font-size:16px;margin:0}:host .instant-apps-sign-in__entry-button-container{display:flex;justify-content:center;gap:8px}:host .instant-apps-sign-in__entry-button{--calcite-color-brand: var(--instant-apps-landing-page-entry-button-color);--calcite-color-brand-hover: var( --instant-apps-landing-page-entry-button-color );--calcite-color-brand-press: var( --instant-apps-landing-page-entry-button-color );min-width:165px}:host .instant-apps-sign-in__entry-button[appearance=solid]{border:1px solid #fff}:host .instant-apps-sign-in__entry-button[appearance=solid]:hover,:host .instant-apps-sign-in__entry-button[appearance=solid]:focus{filter:brightness(.9)}@media screen and (max-width:767px){:host{flex-direction:column;align-items:center}:host calcite-button{width:100%}:host .instant-apps-sign-in__entry-button-container{display:flex;flex-direction:column}}`,a={base:"instant-apps-sign-in__container",SignInBtn:"instant-apps-sign-in__sign-in-btn",buttonContainer:"instant-apps-sign-in__entry-button-container",entryButton:"instant-apps-sign-in__entry-button",indicator:"instant-apps-sign-in__indicator",signInContainer:"instant-apps-sign-in__sign-in-container"},r=class extends u{constructor(){super(...arguments),this._messages=m({name:"instant-apps-sign-in",blocking:!0}),this.signInPopover=g(),this.ready=!1,this.isSignedIn=!1,this.type="navigation",this.openInPopup=!1,this.landingPage=!1,this.showIndicator=!0}static{this.properties={ready:16,isSignedIn:16,user:16,type:1,portal:0,oauthappid:1,openInPopup:5,landingPage:5,showIndicator:5,closeLandingPage:0,signInPopoverItems:0}}static{this.styles=I}async load(){await this.initSignIn()}willUpdate(n){(n.has("portal")||n.has("oauthappid"))&&this.initSignIn()}async initSignIn(){this.portal==null||this.oauthappid==null||(this.info=new f({appId:this.oauthappid,portalUrl:this.portal.url,flowType:"authorization-code",popup:this.openInPopup}),o.registerOAuthInfos([this.info]),this.isSignedIn=await this.checkSignInStatus(),this.ready=!0,this.isSignedIn&&(await b.whenOnce(()=>this.portal.user),this.portal.user&&(this.user=this.portal.user)))}async signIn(){this.setSignInLocalStorage(),await o.getCredential(`${this.info.portalUrl}/sharing`,{oAuthPopupConfirmation:!1}),await this.checkSignInStatus()}signOut(){this.portal.credential?.destroy(),o.destroyCredentials(),this.portal.authMode="anonymous",this.portal.credential=null;let n=window.location.href;this.setSignInLocalStorage(),window.location.href=`${this.portal.restUrl}/oauth2/signout?client_id=${this.oauthappid}&redirect_uri=${n}`}async landingPageSignIn(){await this.signIn(),this.closeLandingPage!=null&&this.closeLandingPage()}guestOnClick(){this.isSignedIn?this.signOut():this.closeLandingPage!=null&&this.closeLandingPage()}async checkSignInStatus(){try{let n=await o.checkSignInStatus(`${this.info.portalUrl}/sharing`);return this.portal.credential=n,!0}catch{return this.portal.credential=null,!1}}setSignInLocalStorage(){let n=new Date;localStorage.setItem("signing-in",n.getTime().toString()),setTimeout(()=>{localStorage.removeItem("signing-in")},2e3)}render(){return this.ready?this.renderContent():null}renderContent(){return this.type==="landingPage"?this.renderLandingPageSignIn():this.renderSignInContainer()}renderSignInContainer(){return i`<div class=${t(a.base)}>${this.isSignedIn?this.renderSignInPopover():this.renderSignInButton()}</div>`}renderSignInPopover(){let n=this.type==="navigation"?"m":"s",s=this.showIndicator?a.indicator:"",c=this.user?.id??this.user?.sourceJSON?.id;return i`${this.type==="navigation"?i`<calcite-navigation-user class=${t(s)} id=instant-apps-sign-in-user-button .thumbnail=${this.user?.thumbnailUrl??""} full-name=${this.user?.fullName??e} .username=${this.user?.username} user-id=${c??e} text-disabled></calcite-navigation-user>`:i`<button id=instant-apps-sign-in-user-button><calcite-avatar class=${t(s)} .thumbnail=${this.user?.thumbnailUrl??""} full-name=${this.user?.fullName??e} .username=${this.user?.username} user-id=${c??e}></calcite-avatar></button>`}<calcite-popover placement=bottom-end .scale=${n} reference-element=instant-apps-sign-in-user-button offset-distance=0 pointer-disabled focus-trap-disabled auto-close label="User settings" ${h(this.signInPopover)}><div class=${t(a.signInContainer)}><slot name=sign-in-popover-top></slot>${this.signInPopoverItems?.map(l=>i`<calcite-action scale=s @click=${_=>{l.onClick(_),this.signInPopover.value&&(this.signInPopover.value.open=!1)}} .text=${l.label} text-enabled></calcite-action>`)}<calcite-action scale=s @click=${this.signOut} .text=${this._messages.signOut} text-enabled></calcite-action></div></calcite-popover>`}renderSignInButton(){let n=this.type==="navigation"?"transparent":"solid",s=this.type==="navigation"?a.SignInBtn:"";return i`<calcite-button class=${t(s)} @click=${this.signIn} scale=s icon-start=sign-in .appearance=${n}>${this._messages.signIn}</calcite-button>`}renderLandingPageSignIn(){return i`<div class=${t(a.buttonContainer)}><calcite-button class=${t(a.entryButton)} scale=l @click=${this.landingPageSignIn}>${this._messages.signIn}</calcite-button><calcite-button class=${t(a.entryButton)} scale=l appearance=outline-fill @click=${this.guestOnClick}>${this._messages.continueAsGuest}</calcite-button></div>`}};d("instant-apps-sign-in",r);return r},"core/reactiveUtils","identity/IdentityManager","identity/OAuthInfo")
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import{a as n}from"./
|
|
2
|
+
import{a as n}from"./HKURBCD6.js";import{b as i}from"./KGXEY5HR.js";import"./QMAV4UTN.js";import"./Y2AUIXNK.js";import{H as o,h as a,i as s}from"./T3EPRHTT.js";import"./EXBEKVP5.js";var p=a`[role=alert]{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}`,r=class extends o{constructor(){super(),this._messages=n({name:"instant-apps-app-error"}),this._handleErrorMessage=this._handleErrorMessage.bind(this),this.listenOn(document,"instant-apps-error",this._handleErrorMessage)}static{this.properties={errorMessage:16}}static{this.styles=p}async clearErrorMessage(){this.errorMessage=void 0}_handleErrorMessage(e){if(!e.detail||!this._messages?.errorMessages)return;let t=this._messages.errorMessages[e.detail];t&&(this.errorMessage=t)}render(){return s`<div role=alert>${this.errorMessage&&s`<p>${this.errorMessage}</p>`||""}</div>`}};i("instant-apps-app-error",r);export{r as InstantAppsAppError};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import f from"./
|
|
2
|
+
import f from"./XL66TA6C.js";import e from"./XSJOQTEM.js";import b from"./XOPNEAS5.js";import{b as m}from"./2B4SGB3I.js";import{b as d}from"./RLSY4VUQ.js";import"./AO7XKW2U.js";import{a as c}from"./LABCYKSC.js";import"./QMAV4UTN.js";import"./Y2AUIXNK.js";import"./TEHBW75B.js";import"./RSPNBIIE.js";import"./ZCU2WWVN.js";import"./WGO4EVOV.js";import"./YKB6256M.js";import"./36LRAUE4.js";import"./JMY4B4WQ.js";import"./VQ5ZAQUF.js";import"./Z4F2NZOT.js";import"./KOIDWEP3.js";import"./3KXMYZCU.js";import"./6ERMTA3J.js";import"./GF4QELNV.js";import"./3TAQSXLA.js";import"./PY6RTQDR.js";import"./DKD2EGQP.js";import"./5O53T3SW.js";import"./AJZDBHB6.js";import"./FES7B3SJ.js";import{b as a}from"./5BJO5ABV.js";import{H as r,L as s,h as o,i,q as n}from"./T3EPRHTT.js";import"./EXBEKVP5.js";export default $arcgis.t(([{v:u},,h])=>{var p=o`.text-center{text-align:center}.no-solutions{display:flex;flex-direction:column;justify-content:center;align-items:center;width:100%;min-height:calc(100vh - 190px)}.display-flex{display:flex;align-items:center}.display-none{display:none}.flex-direction-column{flex-direction:column}.flex-direction-row{flex-direction:row}.padding-10{padding:10px}.padding-y-10{padding-top:10px;padding-bottom:10px}.subnote{font-size:var(--calcite-font-size--2);font-weight:var(--calcite-font-weight-normal)}.solution-list-item-label{color:var(--calcite-color-text-1);font-size:var(--calcite-font-size--1)}.solution-list-item-label,.solution-list-item-description{font-family:var(--calcite-font-family);font-weight:var(--calcite-font-weight-normal);overflow-wrap:break-word;word-break:break-word}.solution-list-item-description{font-size:var(--calcite-font-size--2);margin-block-start:.125rem;color:var(--calcite-color-text-3)}.solution-list-item-content{display:flex;flex:1 1 auto;flex-direction:column;justify-content:center;line-height:1.375}.underline{text-decoration:underline}`,l=class extends r{constructor(){super(),this.referenceCards=[],this.results=null,this.hasLinks=!1,this.listTitle="",this._translations=c({name:"solutions-deployed-list",blocking:!0}),this._cardsFetcher=null,this._configContextConsumer=d({context:m,subscribe:!0}),this.deployedCardSelected=n()}static{this.properties={referenceCards:0,results:0,hasLinks:5,listTitle:1,_translations:16,_cardsFetcher:16}}static{this.styles=p}async load(){if(this._configContextConsumer?.value){let t=this._configContextConsumer.value;this._cardsFetcher=new h(t.locale,t.orgUrl,t.portalURL)}}disconnectedCallback(){super.disconnectedCallback()}render(){if(!this.results)return i`<div class="no-solutions"></div>`;let t=this.listTitle||this._translations.dependencyList,e="solutions-deployed-list-title";return i`${this.listTitle!==""&&i`<div class="solutions-deployed-list-title" id=${e}>${this.listTitle}</div>`||""}${this.hasLinks?i`<calcite-list aria-labelledby=${(this.listTitle!==""?e:void 0)??s} .label=${t}>${this._renderCards()}</calcite-list>`:i`<calcite-list aria-labelledby=${(this.listTitle!==""?e:void 0)??s} .label=${t} selection-mode=none interaction-mode=static>${this._renderCards()}</calcite-list>`}`}_renderCards(){if(this._cardsFetcher&&this.results){let t={...this.results};return t.results=u(t.results),this._cardsFetcher.getCardsFromResponse(t).map(e=>i`<calcite-list-item .label=${e.title} @calciteListItemSelect=${()=>{this.hasLinks&&this._cardSelected(e)}} .value=${e.id}><div class="solution-list-item-content" slot=content><div class=${`solution-list-item-label ${this.hasLinks?"underline":""}`}>${e.title}</div><div class="solution-list-item-description">${`${this._translations.deployedVersion} ${e.deployVersion} - ${new Date(e.created).toLocaleDateString(this._configContextConsumer.value?.locale,{year:"numeric",month:"long",day:"numeric"})}`}</div></div></calcite-list-item>`)}return[]}async _cardSelected(t){let e={tabType:"deployed-card",tabTitleOrId:t.id};window.dispatchEvent(new CustomEvent("forceSelectTab",{detail:e}))}};a("solutions-deployed-list",l);return l},b,e,f)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import{a as p}from"./IADXB53D.js";import{b as o}from"./
|
|
2
|
+
import{a as p}from"./IADXB53D.js";import{b as o}from"./KGXEY5HR.js";import{F as s,G as r,H as n,J as l,K as d,h as a,i}from"./T3EPRHTT.js";import"./EXBEKVP5.js";var c=a`:host{display:block}:host .esri-legend__service{padding:0}:host .esri-legend__layer-body,:host .esri-legend__layer,:host .esri-legend__layer-table,:host .esri-legend__group-layer-child,:host .esri-legend__layer-child-table{margin:0;overflow:hidden}:host .hide{display:none}`,e={service:"esri-legend__service",groupLayerChild:"esri-legend__group-layer-child",layer:"esri-legend__layer"},t=class extends n{constructor(){super(),this.layerCaption=s(),this.expanded=!0,this.listenOn(window,"layerCaptionElementExpandUpdated",this.layerCaptionElementExpandUpdatedEmitted)}static{this.properties={expanded:16,legendvm:0,featureCount:5,activeLayerInfo:0,isChild:5}}static{this.styles=c}load(){new MutationObserver(()=>{this.requestUpdate()}).observe(this.el,{attributes:!0})}layerCaptionElementExpandUpdatedEmitted(){this.layerCaption.value&&(this.expanded=this.layerCaption.value.expanded)}render(){let h=this.activeLayerInfo.parent?` ${e.groupLayerChild}`:"";return i`<div style=${d({borderLeft:"1px solid var(--calcite-color-border-3)"})} class=${`${e.service}${h}`} tabindex=0><instant-apps-interactive-legend-layer-element-caption .legendvm=${this.legendvm} .featureCount=${this.featureCount} .activeLayerInfo=${this.activeLayerInfo} .isChild=${!!this.isChild} class=${l(p(this.el))} ${r(this.layerCaption)}></instant-apps-interactive-legend-layer-element-caption><div .id=${`${this.activeLayerInfo?.layer?.id}-legend-layer`} class=${`${e.layer}${this.expanded?" show":" hide"}`}><slot name=content></slot></div></div>`}};o("instant-apps-interactive-legend-layer-element",t);export{t as InstantAppsInteractiveLegendLayerElement};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import h from"./
|
|
2
|
+
import h from"./UKAP3ALW.js";import g from"./GLD7SDA5.js";import"./VLP6VQEG.js";import"./VVZAS55G.js";import"./KGXEY5HR.js";import e from"./XOCNSPTC.js";import d from"./XOPNEAS5.js";import"./2B4SGB3I.js";import"./RLSY4VUQ.js";import"./AO7XKW2U.js";import"./US5FON7D.js";import c from"./2C4DK6YC.js";import a from"./WV7QX3ED.js";import{a as _}from"./LABCYKSC.js";import"./QMAV4UTN.js";import"./Y2AUIXNK.js";import"./TEHBW75B.js";import"./RSPNBIIE.js";import"./ZCU2WWVN.js";import"./WGO4EVOV.js";import"./YKB6256M.js";import"./36LRAUE4.js";import"./JMY4B4WQ.js";import"./VQ5ZAQUF.js";import"./Z4F2NZOT.js";import"./KOIDWEP3.js";import"./3KXMYZCU.js";import"./6ERMTA3J.js";import"./GF4QELNV.js";import"./3TAQSXLA.js";import"./PY6RTQDR.js";import"./DKD2EGQP.js";import"./5O53T3SW.js";import"./AJZDBHB6.js";import"./FES7B3SJ.js";import{b as y}from"./5BJO5ABV.js";import{G as b,H as u,h as m,i as f}from"./T3EPRHTT.js";import"./EXBEKVP5.js";export default $arcgis.t(([])=>{var v=m`.height-51{height:51px}.width-51{width:51px}`,p=class extends u{constructor(){super(),this._translations=_({name:"field-selection",blocking:!0}),this._fieldSortOrder="default",this._selectedFields=[],this._fieldVisibilityPopoverClickHandler=i=>{this._fieldVisibilityPopoverNode?this._isInNode(i.target,"arcgis-field-pick-list")||(document.body.removeChild(this._fieldVisibilityPopoverNode),this._fieldVisibilityPopoverNode=void 0,document.removeEventListener("click",this._fieldVisibilityPopoverClickHandler)):document.removeEventListener("click",this._fieldVisibilityPopoverClickHandler)},this.listenOn(window,"columnReorder",this.handleColumnReorder,{capture:!0})}static{this.properties={configExtraFields:1,layer:0,mapView:0,table:0,tableRef:0,_translations:16}}static{this.styles=v}render(){return f`<calcite-action alignment=center class="height-51 width-51" id=solutions-field-selection .text=${this._translations.fieldVisibility} scale=m @click=${()=>this._handleFieldVisibilityClick()} @mouseover=${()=>this._addTableTooltip(this._fieldVisibilityActionNode,this._translations.fieldVisibility)} @mouseout=${()=>this._removeTableTooltip()} @focus=${()=>this._addTableTooltip(this._fieldVisibilityActionNode,this._translations.fieldVisibility)} ${b(i=>this._fieldVisibilityActionNode=i)}><calcite-icon aria-hidden=true scale=s icon=gear></calcite-icon></calcite-action>`}handleColumnReorder(){this._fieldSortOrder="default",this._fieldVisibilityPopoverNode&&(this.removeFieldsPickList(),this._handleFieldVisibilityClick())}_handleFieldVisibilityClick(){if(this._fieldVisibilityPopoverNode)return;let i=this.table?.tableTemplate?.columnTemplates;if(this.layer&&this.mapView&&i&&this._fieldVisibilityActionNode){document.removeEventListener("click",this._fieldVisibilityPopoverClickHandler);let t=this.table.fieldColumns.map(l=>({alias:l.field.alias,description:l.field.description,name:l.field.name,type:l.field.type}));if(this._hasAttachmentsEnabled(this.layer)){let l="Attachments";if(this._shouldShowField(l.toUpperCase(),!1)){if(!i.some(s=>s.fieldName.toUpperCase()===l.toUpperCase())){let s={fieldName:l,type:"attachment",visible:!0};i.push(s)}t.push({name:l,alias:"Photos and files",type:"none",description:l})}}if(this.table.relatedRecordsEnabled&&this.layer.relationships&&this.layer.relationships.length>0){let l=this.layer.parent;this.layer.relationships.forEach((s,h)=>{let o,a=this._shouldShowField(s.name||"",!0);if(!a){let n=[...l?.layers||[],...l?.tables||[]].find(c=>c.layerId===s.relatedTableId),d=n?n.title:void 0;d&&this._shouldShowField(d,!0)&&(s.name=d,a=!0)}if(!a){let n=s.keyField||`related_${h}`;this._shouldShowField(n,!0)&&(s.name=s.name||n,a=!0)}if(!i.some(n=>n.fieldName.toLowerCase()===s.name?.toLowerCase()?(o=s.name,!0):!1))if(s.name){o=s.name;let n={fieldName:o,type:"relationship",visible:!0};a=this._shouldShowField(o,!0),i.push(n)}else{let n=[...l?.layers||[],...l?.tables],d;if(n.some(c=>c.layerId===s.relatedTableId?(d=c,!0):!1),d){o=d.title,s.name=o;let c={fieldName:o,type:"relationship",visible:!0};a=this._shouldShowField(o,!0),i.push(c)}}o&&a&&t.push({name:o,alias:`Related ${o}`,type:"none",description:`related:${o}`})})}let e=this._fieldVisibilityPopoverNode?this._fieldVisibilityPopoverNode:document.createElement("arcgis-field-pick-list");e.layer=this.layer,e.fields=t,e.showFieldInfo=!0,e.showFieldName=!0,e.showDescription=!1,e.showSelectionAll=!0,e.hideCancel=!0,e.hideSort=!1,e.showFilterLength=5,e.multiple=!0,e.heading=this._translations.fieldVisibility,e.okBtnText=this._translations.doneWithFieldChanges,e.filterPlaceholderText=this._translations.filterFields,e.sortBy=this._fieldSortOrder??"default";let r=this.table?.visibleColumns.map(l=>l.fieldName.startsWith("EsriFeatureTableRelationshipColumn")||l.fieldName.startsWith("EsriFeatureTableAttachmentsColumn")?l.effectiveLabel:l.fieldName);e.selectedFields=i.reduce((l,s)=>((r?r.indexOf(s.fieldName)>-1:s.visible)&&l.push(s.fieldName),l),[]),this._selectedFields=e.selectedFields,e.style.minHeight="340px",e.popoverProps={refElement:this._fieldVisibilityActionNode,popoverWidth:300,placement:"bottom-end",offsetDistance:-20,triggerDisabled:!1,autoClose:!1},e.addEventListener("arcgisChange",l=>{l.stopPropagation();let s=l.detail.selectedFields,h=this._getDifference(s,this._selectedFields),o=this._getDifference(this._selectedFields,s);h.concat(o).forEach(a=>{let n=this.layer?.relationships?.map(d=>d.name)||[];if(a==="Attachments"){let d=this.table.columns.find(c=>"onShowAttachments"in c);d.hidden=o.indexOf(a)>-1}else n.indexOf(a)>-1?this.table.columns.filter(d=>"relationshipId"in d).forEach(d=>{o.indexOf(a)>-1,a==d.effectiveLabel&&(d.hidden=o.indexOf(a)>-1)}):this.table.toggleColumnVisibility(a)}),this._selectedFields=s,this._updateTable(this.table.tableTemplate)}),e.addEventListener("arcgisSortByChange",l=>{l.stopPropagation(),this._fieldSortOrder=l.detail,this._sortFields(l.detail)}),e.addEventListener("arcgisClose",()=>{this._closePopovers(),setTimeout(()=>this._fieldVisibilityActionNode.setFocus(),200)}),document.body.appendChild(e),this._fieldVisibilityPopoverNode=e,setTimeout(()=>document.addEventListener("click",this._fieldVisibilityPopoverClickHandler),200)}}_shouldShowField(i,t){return(this.configExtraFields||[]).some(e=>t?e.replace("related:","").toUpperCase()===i.toUpperCase():e.toUpperCase()===i.toUpperCase())}removeFieldsPickList(){this._fieldVisibilityPopoverNode&&(document.body.removeChild(this._fieldVisibilityPopoverNode),this._fieldVisibilityPopoverNode=void 0)}_sortFields(i){let t=this.table.tableTemplate.columnTemplates,e=this._getSortOrder(i),r=t.filter(s=>s.type!=="attachment"&&s.type!=="relationship").sort((s,h)=>{let o=e.indexOf(s.fieldName),a=e.indexOf(h.fieldName);return o===-1&&a!==-1?1:o!==-1&&a===-1?-1:o===-1&&a===-1?0:o-a}),l=t.filter(s=>s.type==="attachment"||s.type==="relationship");this.tableRef.setColumnOrder([...r,...l]),this._updateTable(this.table.tableTemplate)}_getSortOrder(i){let t=[...this.layer.fields];return i==="display"?t.sort((e,r)=>e.alias.localeCompare(r.alias)):i==="field"?t.sort((e,r)=>e.name.localeCompare(r.name)):i==="type"&&t.sort((e,r)=>e.type.localeCompare(r.type)),t.map(e=>e.name)}_getDifference(i,t){return i.filter(e=>!t.includes(e))}_updateTable(i){this.table.tableTemplate=i,this._isStandardView()&&this._syncAttributeTableTemplate()}async _syncAttributeTableTemplate(){let i=this.table.layer;if(i.attributeTableTemplate){let{_modules:t}=this,e=i.attributeTableTemplate.clone();t?.attributeTableTemplateUtils.syncAttributeTableTemplate(this.table,e),JSON.stringify(e)!==JSON.stringify(i.attributeTableTemplate)&&(i.attributeTableTemplate=e)}if(i.attributeTableTemplate?.orderByFields?.length>1){let t=i.attributeTableTemplate.clone(),e=this.table.activeSortOrders[0];t.orderByFields=[{field:e.fieldName,order:e.direction}],i.attributeTableTemplate=t,this._syncColumnDirectionsWithOrderByFields()}}_syncColumnDirectionsWithOrderByFields(){let i=this.table.activeSortOrders[0]?.fieldName;this.table.columns.forEach(t=>{"fieldName"in t&&t.fieldName!==i&&(t.direction=void 0)}),this.table.tableTemplate?.columnTemplates.forEach(t=>{"fieldName"in t&&t.fieldName!==i&&(t.direction=void 0)})}_isStandardView(){return!this.table.relatedTable&&!this.table.attachmentsViewOptions.objectId}_closePopovers(){document.removeEventListener("click",this._fieldVisibilityPopoverClickHandler),this._fieldVisibilityPopoverNode&&(document.body.removeChild(this._fieldVisibilityPopoverNode),this._fieldVisibilityPopoverNode=void 0)}_addTableTooltip(i,t){let e=document.createElement("calcite-tooltip");e.className="table-tooltip",e.referenceElement=i,e.placement="trailing-start",e.open=!0;let r=document.createElement("div");r.className="tooltip",r.innerHTML=t,e.append(r),document.body.append(e)}_removeTableTooltip(){document.querySelectorAll(".table-tooltip").forEach(i=>i.parentNode?.removeChild(i))}_isInNode(i,t){for(;i;){if(i.nodeName===t.toUpperCase())return!0;i=i.parentElement}return!1}_hasAttachmentsEnabled(i){if(!i?.capabilities)return!1;let{capabilities:{data:{supportsAttachment:t},operations:{supportsQueryAttachments:e}}}=i;return t&&e}};y("field-selection",p);return p},a,c,d,e,g,h)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import h from"./
|
|
2
|
+
import h from"./3N2AUH5S.js";import"./6AWTIASQ.js";import e from"./XOCNSPTC.js";import b from"./XOPNEAS5.js";import{b as I}from"./2B4SGB3I.js";import{b as D}from"./RLSY4VUQ.js";import{_b as y}from"./AO7XKW2U.js";import{a as f}from"./LABCYKSC.js";import"./QMAV4UTN.js";import"./Y2AUIXNK.js";import"./TEHBW75B.js";import"./RSPNBIIE.js";import"./ZCU2WWVN.js";import"./WGO4EVOV.js";import"./YKB6256M.js";import"./36LRAUE4.js";import"./JMY4B4WQ.js";import"./VQ5ZAQUF.js";import"./Z4F2NZOT.js";import"./KOIDWEP3.js";import"./3KXMYZCU.js";import"./6ERMTA3J.js";import"./GF4QELNV.js";import"./3TAQSXLA.js";import"./PY6RTQDR.js";import"./DKD2EGQP.js";import"./5O53T3SW.js";import"./AJZDBHB6.js";import"./FES7B3SJ.js";import{b as _}from"./5BJO5ABV.js";import{F as u,G as d,H as g,J as r,h as m,i as a,l as p,q as c}from"./T3EPRHTT.js";import"./EXBEKVP5.js";export default $arcgis.t(([{h:b,m:w,u:$},{c:C,e:v,r:x},{a:S,b:P}])=>{var T=m`*[tabindex]:focus-visible{outline-style:solid!important;outline-width:2px!important;outline-color:var(--calcite-color-brand)!important;outline-offset:2px!important}.deletion-note-text{display:inline-block}.deletion-note-container{display:flex;align-items:center;gap:var(--calcite-spacing-sm);font-size:var(--calcite-font-size-0);margin-bottom:var(--calcite-spacing-md)}.panel-bg-color{--calcite-panel-header-background-color: var(--calcite-color-surface-2);--calcite-panel-background-color: var(--calcite-color-surface-2)}.display-none{display:none}calcite-loader{--calcite-loader-spacing: var(--calcite-spacing-md)}.loader-text{margin-top:var(--calcite-spacing-md);margin-bottom:var(--calcite-spacing-xl);text-align:center;font-size:var(--calcite-font-size-relative-base);color:var(--calcite-color-text-1)}.padding-around{padding:12px 2rem 2rem}`,h=class extends g{constructor(){super(),this.open=!1,this.source="Card Dropdown",this._deletePercentage=0,this._fetchingTemplates=!1,this._isDeleteInProgress=!1,this._nonSolutionDependencyItems=[],this._showDeleteError=!1,this._showUndeletableItems=!1,this._templateInfos=[],this._translations=f({name:"solution-delete-dialog",blocking:!0}),this._accordion=u(),this._configContextConsumer=D({context:I,subscribe:!0}),this.solutionDeleteDialogOpen=c(),this.solutionDeleted=c(),this.solutionDeleteDialogBeforeClose=c(),this.listenOn(window,"beforeunload",e=>{this._isDeleteInProgress&&(e.preventDefault(),e.returnValue=!0)})}static{this.properties={card:0,open:5,source:1,_deletePercentage:16,_fetchingTemplates:16,_isDeleteInProgress:16,_nonSolutionDependencyItems:16,_showDeleteError:16,_showUndeletableItems:16,_templateInfos:16,_translations:16}}static{this.styles=T}get _hasAdminDeletePermission(){return this._configContextConsumer.value?.authentication?C(this._configContextConsumer.value?.authentication):!1}get _telemetry(){return this._configContextConsumer.value?.telemetrySession}close(){this._showUndeletableItems&&this.solutionDeleted.emit({showAlert:!1,refreshSolutionsTimeout:!0,solutionTitle:this.card?.title}),this._showDeleteError=!1,this._showUndeletableItems=!1,this._isDeleteInProgress=!1,this.open=!1,this.solutionDeleteDialogOpen.emit(!1)}delete(){if(b(this._configContextConsumer.value)){this.close();return}if(this._telemetry?.logEvent({category:x.DEPLOYMENTS,action:"Delete Solution",dimensions:["",this.card?.deployCommonId||"",this.card?.deployVersion||"",this.source,w(this.card?.typeKeywords)]}),this._isDeleteInProgress=!0,this.card){let e=[{itemName:this.card.title,itemType:"Solution",owner:this.card.owner,modified:this.card.modified}],t={progressCallback:o=>{this._deletePercentage=Math.round(o)},solutionOwner:this.card.owner};y(this.card.id,this._configContextConsumer.value.userSession,t).then(o=>{let i=o[1],n;if(i?n=i.items.map(s=>({itemName:s.title,itemType:s.type,owner:s.owner,modified:s.modified})):n=e,n.length===0)this.solutionDeleted.emit({showAlert:!0,refreshSolutionsTimeout:!0,solutionTitle:this.card?.title}),this._isDeleteInProgress=!1,this.open=!1;else if(n.some(s=>s.itemType==="Solution"))this.card?P(this.card,this._configContextConsumer.value.userSession).then(s=>{this._templateInfos=s,this._showDeleteError=!0,this._showUndeletableItems=!0,this._isDeleteInProgress=!1}):(this._showDeleteError=!0,this._isDeleteInProgress=!1);else if(this.card){let s=[];s=i.items.map(l=>({id:l.id,title:l.title,type:l.type,owner:l.owner,modified:l.modified,typeKeywords:[],snippet:"",dependencies:[],url:v(l.id,this._configContextConsumer.value.authentication)})),this._templateInfos=s,this._showDeleteError=!1,this._showUndeletableItems=!0,this._isDeleteInProgress=!1}else this.solutionDeleted.emit({showAlert:!0,refreshSolutionsTimeout:!0}),this._isDeleteInProgress=!1,this.open=!1})}}willUpdate(e){if(e.has("open")){let t=e.get("open");this.open&&!t&&(this._fetchingTemplates=!0,S(this._configContextConsumer.value.userSession,this.card).then(o=>{this._templateInfos=o.templateInfos,this._nonSolutionDependencyItems=o._nonSolutionDependencyItems,this._fetchingTemplates=!1}))}}render(){let e=this._fetchingTemplates?"":"display-none",t=this._fetchingTemplates?"display-none":"",o=$(this._nonSolutionDependencyItems,this.card.id),i=this._templateInfos.length-this._getDependencyCount()-this._getNonOwnerCount(),n=this._translations.deletionCount.replace("{{deleteableCount}}",i.toString()).replace("{{totalCount}}",this._templateInfos.length.toString());return a`<calcite-dialog class="panel-bg-color" .closeDisabled=${this._isDeleteInProgress} .escapeDisabled=${this._isDeleteInProgress} .heading=${this._translations.title.replace("{{solution}}",this.card?.title??"")} id=${this._translations.title.replace("{{solution}}",this.card?.title??"")??p} modal kind=danger .open=${this.open} width=l outside-close-disabled @calciteDialogBeforeClose=${()=>{this.solutionDeleteDialogBeforeClose.emit()}} @calciteDialogClose=${()=>{this.open=!1,this.solutionDeleteDialogOpen.emit(!1)}}>${this._isDeleteInProgress?a`<calcite-loader .label=${this._translations.deleteInProgress} scale=l type=determinate-value .value=${this._deletePercentage}></calcite-loader><div class="loader-text" role=status tabindex=0>${this._translations.deleteInProgress}</div>`:this._showUndeletableItems?a`<calcite-label class=${r(t)} layout=inline><span tabindex=0>${this._translations.failedToDeleteItems}</span></calcite-label><solution-item-accordion class=${r(t)} .itemRelationshipDependencies=${[]} link-type=item list-selection-mode=multiple .reuseWarning=${this._translations.itemDependencyReusewarning} .templateInfos=${this._templateInfos} .typeKeywords=${this.card?.typeKeywords} usage-context=delete ${d(this._accordion)}></solution-item-accordion><calcite-button appearance=outline @click=${this.close} slot=footer-end>${this._translations.buttonClose}</calcite-button>`:a`<div class="padding-around"><div class=${`deletion-note-container ${t}`}><span class="deletion-note-text" tabindex=0>${this._translations.deletionNote}</span><calcite-chip .label=${n} scale=m icon=information>${n}</calcite-chip></div><calcite-loader class=${r(e)} label></calcite-loader><solution-item-accordion class=${r(t)} .itemRelationshipDependencies=${o} link-type=item list-selection-mode=multiple .reuseWarning=${this._translations.itemDependencyReusewarning} .templateInfos=${this._templateInfos} .typeKeywords=${this.card?.typeKeywords} usage-context=delete ${d(this._accordion)}></solution-item-accordion></div><calcite-button appearance=outline @click=${this.close} slot=footer-end>${this._translations.buttonCancel}</calcite-button><calcite-button @click=${()=>{this.delete()}} slot=footer-end kind=danger>${this._translations.buttonDelete}</calcite-button>${this._showDeleteError&&a`<calcite-alert auto-close icon=exclamation-mark-triangle kind=danger .label=${this._translations.failedToDelete} @calciteAlertClose=${()=>{this._showDeleteError=!1}} open><div slot=message>${this._translations.failedToDelete}</div></calcite-alert>`||""}`}</calcite-dialog>`}_getDependencyCount(){let e=this._nonSolutionDependencyItems.map(t=>t.controlItemId);return new Set(e).size}_getNonOwnerCount(){if(this._templateInfos.length===0||this._hasAdminDeletePermission)return 0;let e=this._nonSolutionDependencyItems.map(i=>i.controlItemId),t=new Set(e),o=this._configContextConsumer.value.userSession.username;return this._templateInfos.filter(i=>!t.has(i.id)).filter(i=>i.owner!==o).length}};_("solution-delete-dialog",h);return h},b,e,h)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import{$a as _,A as z,Ab as ya,B as A,Bb as za,C as B,Cb as Aa,D as C,E as D,F as E,Fb as Ba,G as F,Gb as Ca,H as G,Hb as Da,I as H,Ib as Ea,Jb as Fa,Ka as J,Kb as Ga,La as K,Lb as Ha,Ma as L,Mb as Ia,Na as M,Nb as Ja,Oa as N,Ob as Ka,Pa as O,Pb as La,Qa as P,Ra as Q,Sa as R,Ta as S,Ua as T,Va as U,Wa as V,Xa as W,Ya as X,Za as Y,_a as Z,a,ab as $,b,bb as aa,c,cb as ba,d,db as ca,e,eb as da,f,fb as ea,gb as fa,h as g,hb as ga,i as h,ib as ha,j as i,jb as ia,k as j,kb as ja,l as k,lb as ka,m as l,n as m,nb as la,o as n,ob as ma,p as o,pb as na,q as p,qb as oa,r as q,rb as pa,s as r,sb as qa,t as s,tb as ra,u as t,ub as sa,v as u,vb as ta,w as v,wb as ua,x as w,xb as va,y as x,yb as wa,z as y,za as I,zb as xa}from"./
|
|
2
|
+
import{$a as _,A as z,Ab as ya,B as A,Bb as za,C as B,Cb as Aa,D as C,E as D,F as E,Fb as Ba,G as F,Gb as Ca,H as G,Hb as Da,I as H,Ib as Ea,Jb as Fa,Ka as J,Kb as Ga,La as K,Lb as Ha,Ma as L,Mb as Ia,Na as M,Nb as Ja,Oa as N,Ob as Ka,Pa as O,Pb as La,Qa as P,Ra as Q,Sa as R,Ta as S,Ua as T,Va as U,Wa as V,Xa as W,Ya as X,Za as Y,_a as Z,a,ab as $,b,bb as aa,c,cb as ba,d,db as ca,e,eb as da,f,fb as ea,gb as fa,h as g,hb as ga,i as h,ib as ha,j as i,jb as ia,k as j,kb as ja,l as k,lb as ka,m as l,n as m,nb as la,o as n,ob as ma,p as o,pb as na,q as p,qb as oa,r as q,rb as pa,s as r,sb as qa,t as s,tb as ra,u as t,ub as sa,v as u,vb as ta,w as v,wb as ua,x as w,xb as va,y as x,yb as wa,z as y,za as I,zb as xa}from"./ATEM3GJU.js";import"./EXBEKVP5.js";export{S as Annotation,O as AsyncBatchedStore,Q as BaseChannel,L as BaseCheckpointSaver,k as BaseLangGraphError,N as BaseStore,R as BinaryOperatorAggregate,d as COMMAND_SYMBOL,I as ChatModelStreamImpl,i as Command,e as CommandInstance,Ca as CompiledStateGraph,qa as DeltaChannel,ua as DeltaValue,b as END,B as EmptyChannelError,A as EmptyInputError,$ as EventLog,la as Graph,l as GraphBubbleUp,o as GraphDrained,q as GraphInterrupt,m as GraphRecursionError,ha as GraphRunStream,n as GraphValueError,c as INTERRUPT,P as InMemoryStore,C as InvalidUpdateError,M as MemorySaver,Da as MessageGraph,Ia as MessagesAnnotation,Aa as MessagesDeltaValue,za as MessagesValue,Ja as MessagesZodMeta,Ka as MessagesZodState,D as MultipleSubgraphsError,s as NodeError,r as NodeInterrupt,y as NodeTimeoutError,g as Overwrite,u as ParentCommand,wa as REMOVE_ALL_MESSAGES,sa as ReducedValue,F as RemoteException,X as RunControl,a as START,Y as STREAM_EVENTS_V3_MODES,f as Send,Ba as StateGraph,G as StateGraphInputError,va as StateSchema,$ as StreamChannel,ia as SubgraphRunStream,E as UnreachableNodeError,ta as UntrackedValue,ra as UntrackedValueChannel,xa as addMessages,_ as convertToProtocolEvent,K as copyCheckpoint,ja as createGraphRunStream,ba as createLifecycleTransformer,ca as createMessagesTransformer,ea as createSubgraphDiscoveryTransformer,fa as createValuesTransformer,J as emptyCheckpoint,Ga as entrypoint,aa as filterLifecycleEntries,da as filterSubgraphHandles,V as getConfig,W as getCurrentTaskInput,oa as getJsonSchemaFromSchema,Ha as getPreviousState,pa as getSchemaDefaultGetter,T as getStore,H as getSubgraphsSeenSet,U as getWriter,ka as interrupt,Z as isCheckpointEnvelope,j as isCommand,w as isGraphBubbleUp,p as isGraphDrained,x as isGraphInterrupt,h as isInterrupted,ga as isNativeTransformer,t as isNodeError,z as isNodeTimeoutError,v as isParentCommand,na as isSerializableSchema,ma as isStandardSchema,ya as messagesDeltaReducer,xa as messagesStateReducer,Ea as pushMessage,Fa as task,La as writer};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import c from"./
|
|
2
|
+
import c from"./RM6HYEWM.js";import b from"./XOCNSPTC.js";import a from"./XOPNEAS5.js";import"./2B4SGB3I.js";import"./RLSY4VUQ.js";import"./AO7XKW2U.js";import"./LABCYKSC.js";import"./QMAV4UTN.js";import"./Y2AUIXNK.js";import"./TEHBW75B.js";import"./RSPNBIIE.js";import"./ZCU2WWVN.js";import"./WGO4EVOV.js";import"./YKB6256M.js";import"./36LRAUE4.js";import"./JMY4B4WQ.js";import"./VQ5ZAQUF.js";import"./Z4F2NZOT.js";import"./KOIDWEP3.js";import"./3KXMYZCU.js";import"./6ERMTA3J.js";import"./GF4QELNV.js";import"./3TAQSXLA.js";import"./PY6RTQDR.js";import"./DKD2EGQP.js";import"./5O53T3SW.js";import"./AJZDBHB6.js";import"./FES7B3SJ.js";import"./5BJO5ABV.js";import"./T3EPRHTT.js";import"./EXBEKVP5.js";export default $arcgis.t(([,,a])=>{return a},a,b,c)
|