@esri/solutions-components 5.1.7 → 5.1.8

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.
Files changed (95) hide show
  1. package/dist/cdn/{BDLUGJD5.js → 2M7EEGDF.js} +1 -1
  2. package/dist/cdn/{LMECD6IO.js → 2O26BLP3.js} +1 -1
  3. package/dist/cdn/{HLI47FX3.js → 2OQUTK7I.js} +1 -1
  4. package/dist/cdn/{SEC5SVYP.js → 3L2YVDZV.js} +1 -1
  5. package/dist/cdn/{CWOTSLST.js → 4MBBMZRV.js} +1 -1
  6. package/dist/cdn/{XXES5FD3.js → 54BSF6PB.js} +1 -1
  7. package/dist/cdn/{5B2AJOVW.js → 5CC252PA.js} +1 -1
  8. package/dist/cdn/{ITPPLZAH.js → 5EHS2775.js} +1 -1
  9. package/dist/cdn/{6ZT75GHR.js → 637IK6FV.js} +1 -1
  10. package/dist/cdn/{QDGGXNDY.js → 6GWUGFCO.js} +1 -1
  11. package/dist/cdn/{LX45BNKY.js → 6QDGY4QN.js} +1 -1
  12. package/dist/cdn/{AP4IMJKR.js → 6U2SMFQG.js} +1 -1
  13. package/dist/cdn/{S6JOJCPL.js → 7HJRSFHH.js} +1 -1
  14. package/dist/cdn/{BUHQWMH6.js → 7PK5Y4KU.js} +1 -1
  15. package/dist/cdn/{7QVAU4HQ.js → 7XCONMPD.js} +1 -1
  16. package/dist/cdn/{KK66RGNI.js → AI34V5DG.js} +1 -1
  17. package/dist/cdn/{3OZQTYKM.js → BCDMZZUM.js} +1 -1
  18. package/dist/cdn/{BVN3N6O5.js → BX23CSGZ.js} +1 -1
  19. package/dist/cdn/{L5MBRVIL.js → CAI7336J.js} +1 -1
  20. package/dist/cdn/{AN6WCP7N.js → DNQOG5YP.js} +1 -1
  21. package/dist/cdn/{IG2GH6AA.js → E25P7R3I.js} +1 -1
  22. package/dist/cdn/{FNAUHKLV.js → EACMOPUA.js} +1 -1
  23. package/dist/cdn/{GOGWOWVK.js → ER7C7GFF.js} +1 -1
  24. package/dist/cdn/{GOSQ6L47.js → F5ECDR26.js} +1 -1
  25. package/dist/cdn/{PFDRIE2K.js → FHKSSIFN.js} +1 -1
  26. package/dist/cdn/{MWDSGB2V.js → FWEME25Y.js} +1 -1
  27. package/dist/cdn/{WYTIWYDU.js → FWNGMWZA.js} +1 -1
  28. package/dist/cdn/{YUPCSEQP.js → GH3442MP.js} +1 -1
  29. package/dist/cdn/{UZHXRFLN.js → HBOYQKRA.js} +1 -1
  30. package/dist/cdn/{UVKNTS46.js → HDQMIRL3.js} +1 -1
  31. package/dist/cdn/{5SXIU3BW.js → HJATRXI5.js} +1 -1
  32. package/dist/cdn/{LDHH4PLH.js → HJHBVFNR.js} +1 -1
  33. package/dist/cdn/{33LSKNZV.js → HJM3CVYG.js} +1 -1
  34. package/dist/cdn/{INJQDLFR.js → HQ4UR7IL.js} +1 -1
  35. package/dist/cdn/{XO7WR3ST.js → HSDCRKVW.js} +1 -1
  36. package/dist/cdn/{SXOOD5HR.js → ICYNUBQU.js} +1 -1
  37. package/dist/cdn/{AD65SM7W.js → IQB3K7JJ.js} +1 -1
  38. package/dist/cdn/{XGMZICRZ.js → IVRAMXHN.js} +1 -1
  39. package/dist/cdn/{W4MXYFDY.js → J637H72O.js} +1 -1
  40. package/dist/cdn/{U6E3GTOU.js → JPPVEGCE.js} +1 -1
  41. package/dist/cdn/{H5EGCSOF.js → JXENGWO7.js} +1 -1
  42. package/dist/cdn/{MLII3W5F.js → KJCSH4C5.js} +1 -1
  43. package/dist/cdn/LEDQ6637.js +2 -0
  44. package/dist/cdn/{W5OSHXEK.js → LLX66PUO.js} +1 -1
  45. package/dist/cdn/{S2W7E3NA.js → M3JUFIRX.js} +1 -1
  46. package/dist/cdn/{5QRXRGLF.js → MANV7P4Q.js} +1 -1
  47. package/dist/cdn/{S2AXI4SA.js → MKQGF56B.js} +1 -1
  48. package/dist/cdn/{PNZODCAL.js → MMTJW55T.js} +1 -1
  49. package/dist/cdn/{UX45EOY5.js → MVWLTREQ.js} +1 -1
  50. package/dist/cdn/{XX3JE5TG.js → MWDMW2ZM.js} +1 -1
  51. package/dist/cdn/{AYKCDJWS.js → N2VLJYP4.js} +1 -1
  52. package/dist/cdn/{MKELKI2T.js → NFFP42N5.js} +1 -1
  53. package/dist/cdn/{VBWYZ4HN.js → NGOJ7VZL.js} +1 -1
  54. package/dist/cdn/{Q4STGW4N.js → NJMLL5XX.js} +1 -1
  55. package/dist/cdn/{UILIDZ4T.js → NLLURRUK.js} +1 -1
  56. package/dist/cdn/{VKR2NYWM.js → OEEPKEPZ.js} +1 -1
  57. package/dist/cdn/{VREMLGJJ.js → OGMMGJHK.js} +1 -1
  58. package/dist/cdn/{VVOOFFHZ.js → OPWNZR62.js} +1 -1
  59. package/dist/cdn/{BVJSKHIJ.js → OWWKUKN3.js} +1 -1
  60. package/dist/cdn/{76XSY7RQ.js → PPZEYDPE.js} +1 -1
  61. package/dist/cdn/{RFMVPN23.js → PPZZ6J5N.js} +1 -1
  62. package/dist/cdn/{R2376CFL.js → QKUYJTEG.js} +1 -1
  63. package/dist/cdn/{7CTKIDTK.js → R2EUXH2P.js} +1 -1
  64. package/dist/cdn/{NKDU2TAM.js → R6GQJNXY.js} +1 -1
  65. package/dist/cdn/{HL6M35LH.js → RC3DIQCT.js} +1 -1
  66. package/dist/cdn/S4IVN4PM.js +2 -0
  67. package/dist/cdn/{OFSSA4KH.js → S6P73VDK.js} +1 -1
  68. package/dist/cdn/{RUTUH7N2.js → SG27CNFK.js} +1 -1
  69. package/dist/cdn/{2UZL25F6.js → SKFESVG6.js} +1 -1
  70. package/dist/cdn/{G7DXGXD5.js → TFDQ7VPN.js} +1 -1
  71. package/dist/cdn/{SFK62MT5.js → TJHMUNGQ.js} +1 -1
  72. package/dist/cdn/{W3VGI3V4.js → TXZQCCPY.js} +1 -1
  73. package/dist/cdn/{7LI6OQK3.js → U5FX5B7A.js} +1 -1
  74. package/dist/cdn/{5NNEKKUV.js → UMVREJL4.js} +1 -1
  75. package/dist/cdn/{7ZBICRL7.js → UQG6SVSR.js} +1 -1
  76. package/dist/cdn/{R66PA7KH.js → VBGS7UC6.js} +1 -1
  77. package/dist/cdn/{7ITTVACQ.js → VBSH6HUJ.js} +1 -1
  78. package/dist/cdn/{RF7EYGIN.js → W2VPFCOJ.js} +1 -1
  79. package/dist/cdn/{YS6YVEQ6.js → X2J6ENB4.js} +1 -1
  80. package/dist/cdn/{CT3Q55SW.js → XRTAHMVO.js} +1 -1
  81. package/dist/cdn/{JZHDUP2P.js → Y6HBRP4F.js} +1 -1
  82. package/dist/cdn/{NL3DY2BQ.js → Y7M2VJDX.js} +1 -1
  83. package/dist/cdn/{IIQXZDKH.js → YE5LWHDI.js} +1 -1
  84. package/dist/cdn/{VB65FVOZ.js → YF4GV3UF.js} +1 -1
  85. package/dist/cdn/{XFIZA7RX.js → ZHVWNNTG.js} +1 -1
  86. package/dist/cdn/{RLXRIKON.js → ZO4PZGTY.js} +1 -1
  87. package/dist/cdn/index.js +1 -1
  88. package/dist/chunks/runtime.js +1 -1
  89. package/dist/docs/api.json +1 -1
  90. package/dist/docs/docs.json +1 -1
  91. package/dist/docs/web-types.json +1 -1
  92. package/dist/solutions-components_commit.txt +5 -5
  93. package/package.json +1 -1
  94. package/dist/cdn/3BYUBGQ2.js +0 -2
  95. package/dist/cdn/AILFEJUP.js +0 -2
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import{a as R}from"./PPFEO3UH.js";import{a as F}from"./YUWXPLTE.js";import b from"./AD65SM7W.js";import{a as $,b as C}from"./2B4SGB3I.js";import{b as d}from"./RLSY4VUQ.js";import{a as S}from"./XO7WR3ST.js";import{b as w}from"./SEC5SVYP.js";import{F as o,G as r,H as x,J as c,K as h,h as v,i as a,q as y}from"./T3EPRHTT.js";export default $arcgis.t(([{j:u,k:f,r:_}])=>{var O=v`.display-flex{display:flex}.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: 0px;--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: 0px;font-weight:var(--calcite-font-weight-medium)}.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-sm)}.align-items-center{align-items:center}.justify-content-end{justify-content:end}.filter-width-350{--calcite-shell-panel-width: 350px}.z-index-1{z-index:1}.z-index-2{z-index:2}h1{font-weight:unset;margin:0;padding:0}@container (max-width: 800px){.filter{display:none}}.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)}.background-override{--calcite-shell-panel-background-color: var(--calcite-color-surface-4);--calcite-panel-background-color: var(--calcite-color-surface-4)}.chips-container{display:flex;flex-wrap:wrap;align-items:center;gap:var(--calcite-spacing-xs);flex:1;padding-block:var(--calcite-spacing-xs)}.header-content-wrapper{min-height:50px;flex-wrap:wrap;gap:var(--calcite-spacing-xs);padding-inline-start:var(--calcite-spacing-lg);padding-top:8px}.position-relative{position:relative;height:100%;overflow:hidden}.height-100{height:100%}.border-none{border:none}.height-50{height:50px}.chip-group{max-width:100%}.chip-group{display:flex;flex-wrap:wrap}.responsive-chip{max-width:100%}.responsive-chip .chip-text{display:inline-flex;align-items:center;line-height:1;max-width:100%}@container (max-width: 800px){.responsive-chip{max-width:100%;min-width:0}.responsive-chip .chip-text{max-width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}}.mobile-stack{flex-direction:column;align-items:flex-start;padding-top:var(--calcite-spacing-md)}`,g=class extends x{constructor(){super(),this.solutionsCount=0,this._isLoading=!0,this._filterOpen=!0,this._filters={categories:[],searchTerm:""},this._isMobile=!1,this._translations=S({name:"solutions-all-shell",blocking:!0}),this._allSolutionsPanelRef=o(),this._solutionsFilterPanelRef=o(),this._mainPanelRef=o(),this._panelFixed=!1,this._configContextConsumer=d({context:C,subscribe:!0}),this._isMobileContextConsumer=d({context:$,subscribe:!0,callback:e=>this._isMobile=e}),this.filterRemoved=y(),this.listenOn(window,"searchChanged",e=>{e.detail&&e.detail.scope==="all-solutions"&&this._filterApplied(e.detail.option,e.detail.logSearchTelemetry)}),this.listenOn(window,"toggleFilter",this._toggleFilter),this.listenOn(window,"cardsFetched",()=>{this._isLoading=!1,this._syncSolutionChipOrderWithDisplayedCards()}),this.listenOn(window,"solutionMatchesFromAssistant",e=>{this._applyAssistantSolutionMatches(e.detail)})}static{this.properties={solutionsCount:9,_isLoading:16,_filterOpen:16,_filters:16,_isMobile:16,_translations:16}}static{this.styles=O}willUpdate(e){e.has("_isMobile")&&(this._filterOpen=!this._isMobile)}get _telemetry(){return this._configContextConsumer.value?.telemetrySession}async searchSolutions(e){if(this._allSolutionsPanelRef.value.setSearchOptions(e),"industry"in e||"domain"in e){e.displayValue=e.domain||e.industry;let t=e.industry?Object.entries(u).find(([,s])=>s===e.industry)?.[0]:void 0,i=e.domain?Object.entries(f).find(([,s])=>s===e.domain)?.[0]:void 0;e.industry=t||"",e.domain=i||"",e.value=i||t||"",this._solutionsFilterPanelRef.value.changeIndustryFilter(e.industry,e.domain,e.displayValue,!0)}else("searchTerm"in e||"sortType"in e)&&("searchTerm"in e&&(this._filters.searchTerm=e.searchTerm),this._allSolutionsPanelRef.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(i=>{if(i.type==="attributes"&&i.attributeName==="tabindex"){let s=i.target;s.classList.contains("content-wrapper")&&s.tabIndex===0&&(s.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(){let e=this._isMobile?"justify-content-end":"",t=this._isLoading?"display-none":"";return a`<calcite-shell class=${`position-relative ${t}`}>${this._isMobile?"":this._getFilterPanel()}<h1 class="height-100"><calcite-panel class="border-override header-override panel-override z-index-1" ${r(this._mainPanelRef)}><div class=${c(this._isMobile?`mobile-stack ${e}`:`display-flex align-items-center header-content-wrapper ${e}`)} slot=header-content><calcite-label class="label-override">${this._translations.numberOfSolutions.replace("{{count}}",this.solutionsCount.toString())}</calcite-label><div class="chips-container">${this._renderChips()}${this._filters.categories&&this._filters.categories?.length>0&&a`<calcite-button appearance=transparent icon-start=reset kind=neutral @click=${()=>{let i=this._filters.categories?.some(s=>s.type==="solution")??!1;this._filters={...this._filters,categories:[]},i&&window.dispatchEvent(new CustomEvent("clearAssistantResultFilters")),this._allSolutionsPanelRef.value?.searchSolutions(this._filters.categories),this._filters.searchTerm!==""&&this._allSolutionsPanelRef.value?.searchSolutions({searchTerm:this._filters.searchTerm}),this.filterRemoved.emit([])}} .label=${this._translations.clearIndustryFilter}>${this._translations.clearIndustryFilter}</calcite-button>`||""}</div></div>${this._isMobile&&this._getFilterPanel()||""}${this._getSolutionsAllPanel()}</calcite-panel></h1></calcite-shell>`}_getFilterPanel(){let e=this._filterOpen?{display:"flex"}:"";return this._isMobile?a`<calcite-panel class=${`border-none ${this._filterOpen?"background-override":"filter background-override"}`} id=solutions-all-shell-panel-start style=${h(e)}><solutions-filter-panel class="height-100" @applyFilter=${t=>{this._filterApplied(t.detail)}} ${r(this._solutionsFilterPanelRef)}></solutions-filter-panel></calcite-panel>`:a`<calcite-shell-panel class="filter background-override filter-width-350" id=solutions-all-shell-panel-start slot=panel-start style=${h(e)}><calcite-panel class="border-none"><solutions-filter-panel class="height-100" @applyFilter=${t=>{this._filterApplied(t.detail)}} ${r(this._solutionsFilterPanelRef)}></solutions-filter-panel></calcite-panel></calcite-shell-panel>`}_getSolutionsAllPanel(){let e=this._isMobile&&this._filterOpen?{display:"none"}:"";return a`<solutions-all-panel @cardsFetched=${this._updateSolutionCount} style=${h(e)} ${r(this._allSolutionsPanelRef)}></solutions-all-panel>`}_renderChips(){if(!this._filters.categories)return;let e=this._filters.categories.filter(t=>t.type==="industry"||t.type==="domain"||t.type==="solution");if(e.length!==0)return a`<calcite-chip-group class="chip-group" .label=${this._translations.appliedFilters}>${this._filters.displayValue&&this._filters.displayValue!==""?F(`${this._filters.displayValue}`,a`<calcite-chip appearance=outline-fill class=${c(this._isMobile?"responsive-chip":"padding-start responsive-chip")} closable .label=${this._filters.displayValue??""} @calciteChipClose=${()=>this._chipClosed(this._filters.displayValue,"solution")} .value=${this._filters.displayValue}>${this._filters.displayValue}</calcite-chip>`):R(e,t=>`${t.type}:${t.value}`,t=>a`<calcite-chip appearance=outline-fill class=${c(this._isMobile?"responsive-chip":"padding-start responsive-chip")} closable .label=${t.displayValue} @calciteChipClose=${()=>this._chipClosed(t.displayValue,t.type)} .value=${t.displayValue}>${t.displayValue}</calcite-chip>`)}</calcite-chip-group>`}_updateSolutionCount(e){this.solutionsCount=e.detail}_syncSolutionChipOrderWithDisplayedCards(){if(!this._filters.categories?.length)return;let e=this._filters.categories.filter(l=>l.type==="solution");if(e.length<=1)return;let t=this._allSolutionsPanelRef.value?.getDisplayedSolutionIds?.()??[];if(!t.length)return;let i=new Map;t.forEach((l,p)=>{i.set(l,p)});let s=[...e].sort((l,p)=>{let m=i.get(String(l.value)),b=i.get(String(p.value)),T=m===void 0?Number.MAX_SAFE_INTEGER:m,P=b===void 0?Number.MAX_SAFE_INTEGER:b;return T-P}),n=this._filters.categories.filter(l=>l.type!=="solution");this._filters={...this._filters,categories:[...n,...s]}}_chipClosed(e,t){if(this._filters.categories){if(t==="solution"){this._filters={...this._filters,categories:[]},window.dispatchEvent(new CustomEvent("clearAssistantResultFilters")),this._allSolutionsPanelRef.value?.searchSolutions(),this._filters.searchTerm!==""&&this._allSolutionsPanelRef.value?.searchSolutions({searchTerm:this._filters.searchTerm});return}if(t==="industry")this._filters.categories=[];else{let i=this._filters.categories.filter(s=>s.displayValue!==e&&s.type!==t);this._filters.categories=i}this._filters.categories.length>0?this._allSolutionsPanelRef.value?.searchSolutions(this._filters.categories):this._filters.searchTerm!==""?(this._allSolutionsPanelRef.value?.searchSolutions(this._filters.categories),this._allSolutionsPanelRef.value?.searchSolutions({searchTerm:this._filters.searchTerm})):this._allSolutionsPanelRef.value?.searchSolutions(),this.filterRemoved.emit(this._filters.categories)}}_applyAssistantSolutionMatches(e){let t=Array.isArray(e?.solutionIds)?e.solutionIds:[],i=Array.isArray(e?.solutionTitles)?e.solutionTitles:[],s=t.map((n,l)=>({type:"solution",value:n,displayValue:i[l]??n}));this._filters={categories:s,searchTerm:"",displayValue:this._translations.aiAssistantResults},this.filterRemoved.emit([])}_toggleFilter(){this._filterOpen=!this._filterOpen}_logFilterTelemetry(e){if((e.type==="industry"||e.type==="domain")&&e.industry){let t=[u[e.industry]];if(e.domain){let i=f[e.domain];t.push(i)}this._telemetry?.logEvent({category:_.ALL_SOLUTIONS,action:"Filter",dimensions:t})}}_filterApplied(e,t){if(this._filters.categories)if(e){let i=e;if("displayValue"in e)this._filters.categories.push(e),this._logFilterTelemetry(e);else if(Array.isArray(e)&&e.length>0){e.length>=2&&(i=[e[e.length-1]]),this._filters={categories:e,searchTerm:this._filters.searchTerm};let s=e[e.length-1];s&&this._logFilterTelemetry(s)}if("searchTerm"in i&&(this._filters.searchTerm=i.searchTerm,t&&i.searchTerm)){this._telemetry?.logEvent({category:_.ALL_SOLUTIONS,action:"Search",dimensions:[i.searchTerm]});return}this._allSolutionsPanelRef.value?.searchSolutions(i)}else this._filters.categories=[],this._allSolutionsPanelRef.value?.searchSolutions()}};w("solutions-all-shell",g);return g},b)
2
+ import{a as R}from"./PPFEO3UH.js";import{a as F}from"./YUWXPLTE.js";import b from"./IQB3K7JJ.js";import{a as $,b as C}from"./2B4SGB3I.js";import{b as d}from"./RLSY4VUQ.js";import{a as S}from"./HSDCRKVW.js";import{b as w}from"./3L2YVDZV.js";import{F as o,G as r,H as x,J as c,K as h,h as v,i as a,q as y}from"./T3EPRHTT.js";export default $arcgis.t(([{j:u,k:f,r:_}])=>{var O=v`.display-flex{display:flex}.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: 0px;--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: 0px;font-weight:var(--calcite-font-weight-medium)}.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-sm)}.align-items-center{align-items:center}.justify-content-end{justify-content:end}.filter-width-350{--calcite-shell-panel-width: 350px}.z-index-1{z-index:1}.z-index-2{z-index:2}h1{font-weight:unset;margin:0;padding:0}@container (max-width: 800px){.filter{display:none}}.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)}.background-override{--calcite-shell-panel-background-color: var(--calcite-color-surface-4);--calcite-panel-background-color: var(--calcite-color-surface-4)}.chips-container{display:flex;flex-wrap:wrap;align-items:center;gap:var(--calcite-spacing-xs);flex:1;padding-block:var(--calcite-spacing-xs)}.header-content-wrapper{min-height:50px;flex-wrap:wrap;gap:var(--calcite-spacing-xs);padding-inline-start:var(--calcite-spacing-lg);padding-top:8px}.position-relative{position:relative;height:100%;overflow:hidden}.height-100{height:100%}.border-none{border:none}.height-50{height:50px}.chip-group{max-width:100%}.chip-group{display:flex;flex-wrap:wrap}.responsive-chip{max-width:100%}.responsive-chip .chip-text{display:inline-flex;align-items:center;line-height:1;max-width:100%}@container (max-width: 800px){.responsive-chip{max-width:100%;min-width:0}.responsive-chip .chip-text{max-width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}}.mobile-stack{flex-direction:column;align-items:flex-start;padding-top:var(--calcite-spacing-md)}`,g=class extends x{constructor(){super(),this.solutionsCount=0,this._isLoading=!0,this._filterOpen=!0,this._filters={categories:[],searchTerm:""},this._isMobile=!1,this._translations=S({name:"solutions-all-shell",blocking:!0}),this._allSolutionsPanelRef=o(),this._solutionsFilterPanelRef=o(),this._mainPanelRef=o(),this._panelFixed=!1,this._configContextConsumer=d({context:C,subscribe:!0}),this._isMobileContextConsumer=d({context:$,subscribe:!0,callback:e=>this._isMobile=e}),this.filterRemoved=y(),this.listenOn(window,"searchChanged",e=>{e.detail&&e.detail.scope==="all-solutions"&&this._filterApplied(e.detail.option,e.detail.logSearchTelemetry)}),this.listenOn(window,"toggleFilter",this._toggleFilter),this.listenOn(window,"cardsFetched",()=>{this._isLoading=!1,this._syncSolutionChipOrderWithDisplayedCards()}),this.listenOn(window,"solutionMatchesFromAssistant",e=>{this._applyAssistantSolutionMatches(e.detail)})}static{this.properties={solutionsCount:9,_isLoading:16,_filterOpen:16,_filters:16,_isMobile:16,_translations:16}}static{this.styles=O}willUpdate(e){e.has("_isMobile")&&(this._filterOpen=!this._isMobile)}get _telemetry(){return this._configContextConsumer.value?.telemetrySession}async searchSolutions(e){if(this._allSolutionsPanelRef.value.setSearchOptions(e),"industry"in e||"domain"in e){e.displayValue=e.domain||e.industry;let t=e.industry?Object.entries(u).find(([,s])=>s===e.industry)?.[0]:void 0,i=e.domain?Object.entries(f).find(([,s])=>s===e.domain)?.[0]:void 0;e.industry=t||"",e.domain=i||"",e.value=i||t||"",this._solutionsFilterPanelRef.value.changeIndustryFilter(e.industry,e.domain,e.displayValue,!0)}else("searchTerm"in e||"sortType"in e)&&("searchTerm"in e&&(this._filters.searchTerm=e.searchTerm),this._allSolutionsPanelRef.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(i=>{if(i.type==="attributes"&&i.attributeName==="tabindex"){let s=i.target;s.classList.contains("content-wrapper")&&s.tabIndex===0&&(s.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(){let e=this._isMobile?"justify-content-end":"",t=this._isLoading?"display-none":"";return a`<calcite-shell class=${`position-relative ${t}`}>${this._isMobile?"":this._getFilterPanel()}<h1 class="height-100"><calcite-panel class="border-override header-override panel-override z-index-1" ${r(this._mainPanelRef)}><div class=${c(this._isMobile?`mobile-stack ${e}`:`display-flex align-items-center header-content-wrapper ${e}`)} slot=header-content><calcite-label class="label-override">${this._translations.numberOfSolutions.replace("{{count}}",this.solutionsCount.toString())}</calcite-label><div class="chips-container">${this._renderChips()}${this._filters.categories&&this._filters.categories?.length>0&&a`<calcite-button appearance=transparent icon-start=reset kind=neutral @click=${()=>{let i=this._filters.categories?.some(s=>s.type==="solution")??!1;this._filters={...this._filters,categories:[]},i&&window.dispatchEvent(new CustomEvent("clearAssistantResultFilters")),this._allSolutionsPanelRef.value?.searchSolutions(this._filters.categories),this._filters.searchTerm!==""&&this._allSolutionsPanelRef.value?.searchSolutions({searchTerm:this._filters.searchTerm}),this.filterRemoved.emit([])}} .label=${this._translations.clearIndustryFilter}>${this._translations.clearIndustryFilter}</calcite-button>`||""}</div></div>${this._isMobile&&this._getFilterPanel()||""}${this._getSolutionsAllPanel()}</calcite-panel></h1></calcite-shell>`}_getFilterPanel(){let e=this._filterOpen?{display:"flex"}:"";return this._isMobile?a`<calcite-panel class=${`border-none ${this._filterOpen?"background-override":"filter background-override"}`} id=solutions-all-shell-panel-start style=${h(e)}><solutions-filter-panel class="height-100" @applyFilter=${t=>{this._filterApplied(t.detail)}} ${r(this._solutionsFilterPanelRef)}></solutions-filter-panel></calcite-panel>`:a`<calcite-shell-panel class="filter background-override filter-width-350" id=solutions-all-shell-panel-start slot=panel-start style=${h(e)}><calcite-panel class="border-none"><solutions-filter-panel class="height-100" @applyFilter=${t=>{this._filterApplied(t.detail)}} ${r(this._solutionsFilterPanelRef)}></solutions-filter-panel></calcite-panel></calcite-shell-panel>`}_getSolutionsAllPanel(){let e=this._isMobile&&this._filterOpen?{display:"none"}:"";return a`<solutions-all-panel @cardsFetched=${this._updateSolutionCount} style=${h(e)} ${r(this._allSolutionsPanelRef)}></solutions-all-panel>`}_renderChips(){if(!this._filters.categories)return;let e=this._filters.categories.filter(t=>t.type==="industry"||t.type==="domain"||t.type==="solution");if(e.length!==0)return a`<calcite-chip-group class="chip-group" .label=${this._translations.appliedFilters}>${this._filters.displayValue&&this._filters.displayValue!==""?F(`${this._filters.displayValue}`,a`<calcite-chip appearance=outline-fill class=${c(this._isMobile?"responsive-chip":"padding-start responsive-chip")} closable .label=${this._filters.displayValue??""} @calciteChipClose=${()=>this._chipClosed(this._filters.displayValue,"solution")} .value=${this._filters.displayValue}>${this._filters.displayValue}</calcite-chip>`):R(e,t=>`${t.type}:${t.value}`,t=>a`<calcite-chip appearance=outline-fill class=${c(this._isMobile?"responsive-chip":"padding-start responsive-chip")} closable .label=${t.displayValue} @calciteChipClose=${()=>this._chipClosed(t.displayValue,t.type)} .value=${t.displayValue}>${t.displayValue}</calcite-chip>`)}</calcite-chip-group>`}_updateSolutionCount(e){this.solutionsCount=e.detail}_syncSolutionChipOrderWithDisplayedCards(){if(!this._filters.categories?.length)return;let e=this._filters.categories.filter(l=>l.type==="solution");if(e.length<=1)return;let t=this._allSolutionsPanelRef.value?.getDisplayedSolutionIds?.()??[];if(!t.length)return;let i=new Map;t.forEach((l,p)=>{i.set(l,p)});let s=[...e].sort((l,p)=>{let m=i.get(String(l.value)),b=i.get(String(p.value)),T=m===void 0?Number.MAX_SAFE_INTEGER:m,P=b===void 0?Number.MAX_SAFE_INTEGER:b;return T-P}),n=this._filters.categories.filter(l=>l.type!=="solution");this._filters={...this._filters,categories:[...n,...s]}}_chipClosed(e,t){if(this._filters.categories){if(t==="solution"){this._filters={...this._filters,categories:[]},window.dispatchEvent(new CustomEvent("clearAssistantResultFilters")),this._allSolutionsPanelRef.value?.searchSolutions(),this._filters.searchTerm!==""&&this._allSolutionsPanelRef.value?.searchSolutions({searchTerm:this._filters.searchTerm});return}if(t==="industry")this._filters.categories=[];else{let i=this._filters.categories.filter(s=>s.displayValue!==e&&s.type!==t);this._filters.categories=i}this._filters.categories.length>0?this._allSolutionsPanelRef.value?.searchSolutions(this._filters.categories):this._filters.searchTerm!==""?(this._allSolutionsPanelRef.value?.searchSolutions(this._filters.categories),this._allSolutionsPanelRef.value?.searchSolutions({searchTerm:this._filters.searchTerm})):this._allSolutionsPanelRef.value?.searchSolutions(),this.filterRemoved.emit(this._filters.categories)}}_applyAssistantSolutionMatches(e){let t=Array.isArray(e?.solutionIds)?e.solutionIds:[],i=Array.isArray(e?.solutionTitles)?e.solutionTitles:[],s=t.map((n,l)=>({type:"solution",value:n,displayValue:i[l]??n}));this._filters={categories:s,searchTerm:"",displayValue:this._translations.aiAssistantResults},this.filterRemoved.emit([])}_toggleFilter(){this._filterOpen=!this._filterOpen}_logFilterTelemetry(e){if((e.type==="industry"||e.type==="domain")&&e.industry){let t=[u[e.industry]];if(e.domain){let i=f[e.domain];t.push(i)}this._telemetry?.logEvent({category:_.ALL_SOLUTIONS,action:"Filter",dimensions:t})}}_filterApplied(e,t){if(this._filters.categories)if(e){let i=e;if("displayValue"in e)this._filters.categories.push(e),this._logFilterTelemetry(e);else if(Array.isArray(e)&&e.length>0){e.length>=2&&(i=[e[e.length-1]]),this._filters={categories:e,searchTerm:this._filters.searchTerm};let s=e[e.length-1];s&&this._logFilterTelemetry(s)}if("searchTerm"in i&&(this._filters.searchTerm=i.searchTerm,t&&i.searchTerm)){this._telemetry?.logEvent({category:_.ALL_SOLUTIONS,action:"Search",dimensions:[i.searchTerm]});return}this._allSolutionsPanelRef.value?.searchSolutions(i)}else this._filters.categories=[],this._allSolutionsPanelRef.value?.searchSolutions()}};w("solutions-all-shell",g);return g},b)
@@ -0,0 +1,2 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
+ import{a}from"./6QDGY4QN.js";import"./YUWXPLTE.js";import"./HSDCRKVW.js";import"./QMAV4UTN.js";import"./Y2AUIXNK.js";import"./3L2YVDZV.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 d from"./2C4DK6YC.js";import a from"./WV7QX3ED.js";import{a as g}from"./XO7WR3ST.js";import"./QMAV4UTN.js";import"./Y2AUIXNK.js";import{b}from"./SEC5SVYP.js";import{F as h,G as c,H as _,J as w,h as m,i as s,q as n,u as C}from"./T3EPRHTT.js";import"./EXBEKVP5.js";export default $arcgis.t(([f,{b:d},{d:y}])=>{var B=m`@layer{:host{display:block!important}.display-none{display:none}.padding-1{padding:1rem}.position-relative{position:relative}.overflow-auto{overflow:auto}.height-full{height:100%}.paste-component{--arcgis-paste-height: 100%;--arcgis-paste-width: 100%;height:100%;width:100%}.position-static{position:static!important}.z-index-500{z-index:500!important}.margin-top-10{margin-top:10px}card-manager{display:block}}`,p=class extends _{constructor(){super(),this.customInfoText="",this.enableEditGeometry=!1,this.enableSnapping=!1,this.isMobile=!1,this.zoomAndScrollToSelected=!1,this.selectedFeaturesIds=[],this.enableCreateFeatures=!0,this.createBtnLabel="",this.selectingFeatureFromMap=!1,this.showSketchWidgets=!1,this.mapComponentId="",this.pasteEnabled=!1,this.showCopyPasteActions=!1,this.allowedPasteLayerIds=[],this._cardLoading=!1,this._graphics=[],this._showCreateFeatureComponent=!1,this._showSubmitBtn=!1,this._activeFeatureCreationCount=1,this._createAndBackBtnDisabled=!1,this._translations=g({name:"card-manager",blocking:!0}),this._isFeatureCreated=!1,this._createFeature=h(),this._pasteComponent=h(),this.createWorkFlowStarted=n(),this.backFromCreateWorkFlow=n(),this.featuresCopied=n(),this.featuresPasted=n(),this.disablePaste=n(),this._handleCreateAndBackBtn=e=>{this._createFeatureEditor&&(this._createAndBackBtnDisabled=e)},this._featuresAdded=()=>{this._pasteComponent.value&&this._resetPasteWorkflow()},this._initCreateComponent=()=>{this._isFeatureCreated=!1,this._handleCreateAndBackBtn(!1),this._showCreateFeatureComponent=!0},this._createFeatureEditorInitialized=e=>{this._createFeatureEditor=e.detail},this._createFeatureEditorClosed=()=>{this._createFeatureEditor=void 0},this._pasteComponentReady=async()=>{let e=this._pasteComponent.value;if(e&&this.mapComponentId&&e.referenceElement===void 0){let t=document.getElementById(this.mapComponentId);await t.viewOnReady(),e.referenceElement=t}e&&!this._clipboardWatchHandle&&(this._clipboardWatchHandle=f.watch(()=>e.clipboard.hasItems,t=>{t||this.disablePaste.emit()}))},this._applyPasteCommand=async e=>{let t=new Promise((a,o)=>{if(!this._pasteComponent.value){console.error("Paste failed: paste component is not available."),a();return}try{e.detail.applySet?this._pasteComponent.value.writeChanges(e.detail.applySet).then(()=>{this._resetPasteWorkflow(),a()}).catch(i=>{console.log(i),o(i)}):a()}catch(i){o(i),console.error("Paste failed:",i)}});e.detail.completionCallback=t},this.listenOn(window,"featureSelectionChange",this.featureSelectionChange),this.listenOn(window,"layerSelectionChange",this.layerSelectionChange),this.listenOn(window,"mapChanged",this.mapChanged),this.listenOn(window,"relatedRecordToggled",this.relatedRecordToggled),this.listenOn(window,"copyFeatures",this._copyFeatures),this.listenOn(window,"pasteFeatures",this._pasteFeatures),this.listenOn(window,"featuresAdded",this._featuresAdded),this.listenOn(window,"initCreateComponent",this._initCreateComponent),this.listenOn(window,"createFeatureEditorInitialized",this._createFeatureEditorInitialized),this.listenOn(window,"createFeatureEditorClosed",this._createFeatureEditorClosed),this.listenOn(window,"continueEditing",()=>this._handleCreateAndBackBtn(!1)),this.listenOn(window,"beforeLayerSelectionChange",()=>this._handleCreateAndBackBtn(!0)),this.listenOn(window,"beforeMapInfoChange",()=>this._handleCreateAndBackBtn(!0)),this.listenOn(window,"beforeFeatureSelectionChange",()=>this._handleCreateAndBackBtn(!0))}static{this.properties={customInfoText:1,enableEditGeometry:5,enableSnapping:5,isMobile:5,layerOrTable:0,mapView:0,zoomAndScrollToSelected:5,selectedFeaturesIds:0,enableCreateFeatures:5,createBtnLabel:1,selectingFeatureFromMap:5,showSketchWidgets:5,mapComponentId:1,pasteEnabled:5,showCopyPasteActions:5,allowedPasteLayerIds:0,_cardLoading:16,_graphics:16,_showCreateFeatureComponent:16,_showSubmitBtn:16,_activeFeatureCreationCount:16,_createAndBackBtnDisabled:16,_translations:16}}static{this.styles=B}static{this.shadowRootOptions=C}async featureSelectionChange(e){this._showCreateFeatureComponent&&!this._isFeatureCreated&&this._backFromCreateFeature();let t=e.detail;this._graphics=await this._getFeaturesByIds(t)}async layerSelectionChange(e){this._showCreateFeatureComponent&&this._backFromCreateFeature();let t=e.detail[0];this.layerOrTable=this.mapView?await y(this.mapView,t):void 0,await this._resetPasteWorkflow()}async mapChanged(e){await this._resetPasteWorkflow()}async relatedRecordToggled(e){let t=e.detail;this.layerOrTable=t}async _copyFeatures(e){if(!this._pasteComponent.value)return;let t=e.detail.featuresIds,a=this.layerOrTable,o=await d(t,a,[],!0,this.mapView?.spatialReference),i=[];o.forEach(r=>{let l={layer:r.layer,graphic:r,type:"feature"};i.push(l)}),this._pasteComponent.value.clipboard.setData(i),this.featuresCopied.emit(),this.requestUpdate()}async _pasteFeatures(e){if(!this._pasteComponent.value){console.error("Paste failed: paste component is not available.");return}try{this._pasteComponent.value.closed=!1,await this._pasteComponent.value.showClipboardItems(!0),this.layerOrTable?.isTable||await this._pasteComponent.value.startMoveClipboard(!0),this.featuresPasted.emit()}catch(t){console.error("Paste failed:",t)}}_getLayerPermissionsCheck(){let e=this.allowedPasteLayerIds?.length>0?this.allowedPasteLayerIds.map(String):this.layerOrTable?.id!==void 0?[String(this.layerOrTable.id)]:[],t=new Set(e);return{canCreate:a=>t.has(String(a.id))&&a.editingEnabled&&a.capabilities?.operations?.supportsAdd,canUpdate:a=>t.has(String(a.id))&&a.editingEnabled&&a.capabilities?.operations?.supportsUpdate}}async _resetPasteWorkflow(){if(this._pasteComponent.value)try{await this._pasteComponent.value.showClipboardItems(!1),await this._pasteComponent.value.cancelMoveClipboard()}catch(e){console.error("Reset paste workflow failed:",e)}finally{this._pasteComponent.value&&(this._pasteComponent.value.closed=!0)}}async load(){this.selectedFeaturesIds?.length>0&&(this._graphics=await this._getFeaturesByIds(this.selectedFeaturesIds))}disconnectedCallback(){super.disconnectedCallback(),this._clipboardWatchHandle?.remove(),this._clipboardWatchHandle=void 0}render(){let e=(this._pasteComponent.value?.closed||!this.showCopyPasteActions)&&this._graphics?.length>0,t=this._pasteComponent.value?.closed?"display-none":"",a=this._graphics?.length===0&&this._showCreateFeatureComponent?"":"display-none",o=this._graphics?.length>0||this._showCreateFeatureComponent||!this._pasteComponent.value?.closed&&this.showCopyPasteActions?"display-none":"",i=this.layerOrTable?.isTable,r=this.customInfoText?this.customInfoText:this.selectingFeatureFromMap?this._translations.selectFeaturesFromMapToStart:this._translations.selectFeaturesToStart,l=this.enableCreateFeatures&&this.layerOrTable?.editingEnabled&&this.layerOrTable?.capabilities?.operations?.supportsAdd,u=this.createBtnLabel?this.createBtnLabel:i?this._translations.createRecord:this._translations.createFeature,F=!this.layerOrTable,v=this.enableSnapping&&!this.layerOrTable?.isTable,$=this.layerOrTable?.isTable?["paste"]:["paste","paste-as"],k=!this.layerOrTable?.isTable;return s`<calcite-panel><div class="overflow-auto height-full">${e&&s`<calcite-shell class=${"position-relative"}><div class="position-static z-index-500 height-full"><info-card .allowEditing=${this.layerOrTable?.editingEnabled} .enableEditGeometry=${this.enableEditGeometry} .enableSnapping=${v} .graphics=${this._graphics.reverse()} .isLoading=${this._cardLoading} .isMobile=${this.isMobile} .mapView=${this.mapView} .featuresReferenceId=${this.mapComponentId} position=relative .pasteEnabled=${this.pasteEnabled} show-close-btn .showCopyPasteActions=${this.showCopyPasteActions}></info-card></div></calcite-shell>`||""}<calcite-shell class=${`position-relative ${o}`}><calcite-panel><div class=padding-1><calcite-notice .icon=${this.selectingFeatureFromMap?"map":"table"} icon-flip-rtl open><div slot=message>${r}</div></calcite-notice></div>${!this.isMobile&&l&&s`<calcite-button .disabled=${F} @click=${()=>this._createFeatureBtnClicked()} slot=footer width=full>${u}</calcite-button>`||""}</calcite-panel></calcite-shell><calcite-shell class=${`position-relative ${a}`}><calcite-flow-item selected><calcite-panel .heading=${u}><calcite-action class="back-button hydrated" .disabled=${this._createAndBackBtnDisabled} icon=chevron-left @click=${this._backFromCreateFeature} scale=s slot=header-actions-start .text=${this._translations.back}></calcite-action>${this.getEditorComponent()}${this._showSubmitBtn&&s`<calcite-button appearance=solid class="footer-top-button footer-button" .disabled=${this._createAndBackBtnDisabled} @click=${()=>this._createFeature.value&&void this._createFeature.value.submit()} slot=footer width=full>${this._activeFeatureCreationCount>1?this._translations.createMultiple.replace("{{n}}",String(this._activeFeatureCreationCount)):this._translations.create}</calcite-button>`||""}</calcite-panel></calcite-flow-item></calcite-shell>${this.showCopyPasteActions&&s`<calcite-panel class=${w(t)}><arcgis-paste always-show-feature-form class=${`paste-component ${t}`} closed @arcgisReady=${this._pasteComponentReady} @arcgisApplyPasteCommand=${this._applyPasteCommand} @arcgisClose=${()=>{this._resetPasteWorkflow()}} paste-with-multiple-layers-enabled paste-with-multiple-features-enabled .layerPermissionsCheck=${this._getLayerPermissionsCheck()} .supportedCommands=${$} .view=${this.mapView} ${c(this._pasteComponent)}>${k&&s`<calcite-notice slot=commands-page-message class="margin-top-10" open icon=move><div slot=message>${this._translations.moveClipboardFeatures}</div></calcite-notice>`||""}</arcgis-paste></calcite-panel>`||""}</div></calcite-panel>`}getEditorComponent(){let e=this.enableSnapping&&!this.layerOrTable?.isTable&&this.enableCreateFeatures;return s`<div>${this._showCreateFeatureComponent&&s`<create-feature allow-multiple-creation customize-submit .enableSnapping=${e} .mapView=${this.mapView} .isMobile=${this.isMobile} @activeFeatureCountChange=${t=>{this._activeFeatureCreationCount=t.detail,this._showSubmitBtn=this._activeFeatureCreationCount>0}} @drawComplete=${()=>{this._showSubmitBtn=!0}} @editingAttachment=${t=>{this._showSubmitBtn=!t.detail}} @progressStatus=${()=>{setTimeout(()=>{this._isFeatureCreated=!1},2e3)}} @success=${this._featureCreated} .showSketchWidgets=${this.showSketchWidgets} .selectedLayerId=${this.layerOrTable?.id} show-guiding-msg .showLayerVisibilityMsg=${this.layerOrTable?.visible===!1} ${c(this._createFeature)}></create-feature>`||""}</div>`}async _getFeaturesByIds(e){return(e.length>0&&this.layerOrTable&&this.mapView?await d(e,this.layerOrTable,[],!0,this.mapView?.spatialReference):[]).sort((t,a)=>e.indexOf(Number(t.getObjectId()))-e.indexOf(Number(a.getObjectId())))}_createFeatureBtnClicked(){this._showCreateFeatureComponent=!0,this._handleCreateAndBackBtn(!1),this.createWorkFlowStarted.emit()}async _backFromCreateFeature(){this._createFeatureEditor&&await this._validateActiveEdits()&&(this._showCreateFeatureComponent=!1,this.backFromCreateWorkFlow.emit(),this._showSubmitBtn=!1,this._handleCreateAndBackBtn(!1))}async _validateActiveEdits(){let e=!0;if(this._createFeatureEditor&&this._hasPendingEdits()){let t=!1;try{this._handleCreateAndBackBtn(!0),this._createFeatureEditor.activeWorkflow&&await this._createFeatureEditor.activeWorkflow.cancel({force:!1})}catch(a){t=a?.name==="workflow:cancel-denied"}t&&(this._handleCreateAndBackBtn(!1),e=!1)}return e}_hasPendingEdits(){return this._createFeatureEditor?.activeWorkflow?.hasPendingEdits}_featureCreated(){this._showSubmitBtn=!1,this._isFeatureCreated=!0}};b("card-manager",p);return p},"core/reactiveUtils",a,d)
2
+ import d from"./2C4DK6YC.js";import a from"./WV7QX3ED.js";import{a as g}from"./HSDCRKVW.js";import"./QMAV4UTN.js";import"./Y2AUIXNK.js";import{b}from"./3L2YVDZV.js";import{F as h,G as c,H as _,J as w,h as m,i as s,q as n,u as C}from"./T3EPRHTT.js";import"./EXBEKVP5.js";export default $arcgis.t(([f,{b:d},{d:y}])=>{var B=m`@layer{:host{display:block!important}.display-none{display:none}.padding-1{padding:1rem}.position-relative{position:relative}.overflow-auto{overflow:auto}.height-full{height:100%}.paste-component{--arcgis-paste-height: 100%;--arcgis-paste-width: 100%;height:100%;width:100%}.position-static{position:static!important}.z-index-500{z-index:500!important}.margin-top-10{margin-top:10px}card-manager{display:block}}`,p=class extends _{constructor(){super(),this.customInfoText="",this.enableEditGeometry=!1,this.enableSnapping=!1,this.isMobile=!1,this.zoomAndScrollToSelected=!1,this.selectedFeaturesIds=[],this.enableCreateFeatures=!0,this.createBtnLabel="",this.selectingFeatureFromMap=!1,this.showSketchWidgets=!1,this.mapComponentId="",this.pasteEnabled=!1,this.showCopyPasteActions=!1,this.allowedPasteLayerIds=[],this._cardLoading=!1,this._graphics=[],this._showCreateFeatureComponent=!1,this._showSubmitBtn=!1,this._activeFeatureCreationCount=1,this._createAndBackBtnDisabled=!1,this._translations=g({name:"card-manager",blocking:!0}),this._isFeatureCreated=!1,this._createFeature=h(),this._pasteComponent=h(),this.createWorkFlowStarted=n(),this.backFromCreateWorkFlow=n(),this.featuresCopied=n(),this.featuresPasted=n(),this.disablePaste=n(),this._handleCreateAndBackBtn=e=>{this._createFeatureEditor&&(this._createAndBackBtnDisabled=e)},this._featuresAdded=()=>{this._pasteComponent.value&&this._resetPasteWorkflow()},this._initCreateComponent=()=>{this._isFeatureCreated=!1,this._handleCreateAndBackBtn(!1),this._showCreateFeatureComponent=!0},this._createFeatureEditorInitialized=e=>{this._createFeatureEditor=e.detail},this._createFeatureEditorClosed=()=>{this._createFeatureEditor=void 0},this._pasteComponentReady=async()=>{let e=this._pasteComponent.value;if(e&&this.mapComponentId&&e.referenceElement===void 0){let t=document.getElementById(this.mapComponentId);await t.viewOnReady(),e.referenceElement=t}e&&!this._clipboardWatchHandle&&(this._clipboardWatchHandle=f.watch(()=>e.clipboard.hasItems,t=>{t||this.disablePaste.emit()}))},this._applyPasteCommand=async e=>{let t=new Promise((a,o)=>{if(!this._pasteComponent.value){console.error("Paste failed: paste component is not available."),a();return}try{e.detail.applySet?this._pasteComponent.value.writeChanges(e.detail.applySet).then(()=>{this._resetPasteWorkflow(),a()}).catch(i=>{console.log(i),o(i)}):a()}catch(i){o(i),console.error("Paste failed:",i)}});e.detail.completionCallback=t},this.listenOn(window,"featureSelectionChange",this.featureSelectionChange),this.listenOn(window,"layerSelectionChange",this.layerSelectionChange),this.listenOn(window,"mapChanged",this.mapChanged),this.listenOn(window,"relatedRecordToggled",this.relatedRecordToggled),this.listenOn(window,"copyFeatures",this._copyFeatures),this.listenOn(window,"pasteFeatures",this._pasteFeatures),this.listenOn(window,"featuresAdded",this._featuresAdded),this.listenOn(window,"initCreateComponent",this._initCreateComponent),this.listenOn(window,"createFeatureEditorInitialized",this._createFeatureEditorInitialized),this.listenOn(window,"createFeatureEditorClosed",this._createFeatureEditorClosed),this.listenOn(window,"continueEditing",()=>this._handleCreateAndBackBtn(!1)),this.listenOn(window,"beforeLayerSelectionChange",()=>this._handleCreateAndBackBtn(!0)),this.listenOn(window,"beforeMapInfoChange",()=>this._handleCreateAndBackBtn(!0)),this.listenOn(window,"beforeFeatureSelectionChange",()=>this._handleCreateAndBackBtn(!0))}static{this.properties={customInfoText:1,enableEditGeometry:5,enableSnapping:5,isMobile:5,layerOrTable:0,mapView:0,zoomAndScrollToSelected:5,selectedFeaturesIds:0,enableCreateFeatures:5,createBtnLabel:1,selectingFeatureFromMap:5,showSketchWidgets:5,mapComponentId:1,pasteEnabled:5,showCopyPasteActions:5,allowedPasteLayerIds:0,_cardLoading:16,_graphics:16,_showCreateFeatureComponent:16,_showSubmitBtn:16,_activeFeatureCreationCount:16,_createAndBackBtnDisabled:16,_translations:16}}static{this.styles=B}static{this.shadowRootOptions=C}async featureSelectionChange(e){this._showCreateFeatureComponent&&!this._isFeatureCreated&&this._backFromCreateFeature();let t=e.detail;this._graphics=await this._getFeaturesByIds(t)}async layerSelectionChange(e){this._showCreateFeatureComponent&&this._backFromCreateFeature();let t=e.detail[0];this.layerOrTable=this.mapView?await y(this.mapView,t):void 0,await this._resetPasteWorkflow()}async mapChanged(e){await this._resetPasteWorkflow()}async relatedRecordToggled(e){let t=e.detail;this.layerOrTable=t}async _copyFeatures(e){if(!this._pasteComponent.value)return;let t=e.detail.featuresIds,a=this.layerOrTable,o=await d(t,a,[],!0,this.mapView?.spatialReference),i=[];o.forEach(r=>{let l={layer:r.layer,graphic:r,type:"feature"};i.push(l)}),this._pasteComponent.value.clipboard.setData(i),this.featuresCopied.emit(),this.requestUpdate()}async _pasteFeatures(e){if(!this._pasteComponent.value){console.error("Paste failed: paste component is not available.");return}try{this._pasteComponent.value.closed=!1,await this._pasteComponent.value.showClipboardItems(!0),this.layerOrTable?.isTable||await this._pasteComponent.value.startMoveClipboard(!0),this.featuresPasted.emit()}catch(t){console.error("Paste failed:",t)}}_getLayerPermissionsCheck(){let e=this.allowedPasteLayerIds?.length>0?this.allowedPasteLayerIds.map(String):this.layerOrTable?.id!==void 0?[String(this.layerOrTable.id)]:[],t=new Set(e);return{canCreate:a=>t.has(String(a.id))&&a.editingEnabled&&a.capabilities?.operations?.supportsAdd,canUpdate:a=>t.has(String(a.id))&&a.editingEnabled&&a.capabilities?.operations?.supportsUpdate}}async _resetPasteWorkflow(){if(this._pasteComponent.value)try{await this._pasteComponent.value.showClipboardItems(!1),await this._pasteComponent.value.cancelMoveClipboard()}catch(e){console.error("Reset paste workflow failed:",e)}finally{this._pasteComponent.value&&(this._pasteComponent.value.closed=!0)}}async load(){this.selectedFeaturesIds?.length>0&&(this._graphics=await this._getFeaturesByIds(this.selectedFeaturesIds))}disconnectedCallback(){super.disconnectedCallback(),this._clipboardWatchHandle?.remove(),this._clipboardWatchHandle=void 0}render(){let e=(this._pasteComponent.value?.closed||!this.showCopyPasteActions)&&this._graphics?.length>0,t=this._pasteComponent.value?.closed?"display-none":"",a=this._graphics?.length===0&&this._showCreateFeatureComponent?"":"display-none",o=this._graphics?.length>0||this._showCreateFeatureComponent||!this._pasteComponent.value?.closed&&this.showCopyPasteActions?"display-none":"",i=this.layerOrTable?.isTable,r=this.customInfoText?this.customInfoText:this.selectingFeatureFromMap?this._translations.selectFeaturesFromMapToStart:this._translations.selectFeaturesToStart,l=this.enableCreateFeatures&&this.layerOrTable?.editingEnabled&&this.layerOrTable?.capabilities?.operations?.supportsAdd,u=this.createBtnLabel?this.createBtnLabel:i?this._translations.createRecord:this._translations.createFeature,F=!this.layerOrTable,v=this.enableSnapping&&!this.layerOrTable?.isTable,$=this.layerOrTable?.isTable?["paste"]:["paste","paste-as"],k=!this.layerOrTable?.isTable;return s`<calcite-panel><div class="overflow-auto height-full">${e&&s`<calcite-shell class=${"position-relative"}><div class="position-static z-index-500 height-full"><info-card .allowEditing=${this.layerOrTable?.editingEnabled} .enableEditGeometry=${this.enableEditGeometry} .enableSnapping=${v} .graphics=${this._graphics.reverse()} .isLoading=${this._cardLoading} .isMobile=${this.isMobile} .mapView=${this.mapView} .featuresReferenceId=${this.mapComponentId} position=relative .pasteEnabled=${this.pasteEnabled} show-close-btn .showCopyPasteActions=${this.showCopyPasteActions}></info-card></div></calcite-shell>`||""}<calcite-shell class=${`position-relative ${o}`}><calcite-panel><div class=padding-1><calcite-notice .icon=${this.selectingFeatureFromMap?"map":"table"} icon-flip-rtl open><div slot=message>${r}</div></calcite-notice></div>${!this.isMobile&&l&&s`<calcite-button .disabled=${F} @click=${()=>this._createFeatureBtnClicked()} slot=footer width=full>${u}</calcite-button>`||""}</calcite-panel></calcite-shell><calcite-shell class=${`position-relative ${a}`}><calcite-flow-item selected><calcite-panel .heading=${u}><calcite-action class="back-button hydrated" .disabled=${this._createAndBackBtnDisabled} icon=chevron-left @click=${this._backFromCreateFeature} scale=s slot=header-actions-start .text=${this._translations.back}></calcite-action>${this.getEditorComponent()}${this._showSubmitBtn&&s`<calcite-button appearance=solid class="footer-top-button footer-button" .disabled=${this._createAndBackBtnDisabled} @click=${()=>this._createFeature.value&&void this._createFeature.value.submit()} slot=footer width=full>${this._activeFeatureCreationCount>1?this._translations.createMultiple.replace("{{n}}",String(this._activeFeatureCreationCount)):this._translations.create}</calcite-button>`||""}</calcite-panel></calcite-flow-item></calcite-shell>${this.showCopyPasteActions&&s`<calcite-panel class=${w(t)}><arcgis-paste always-show-feature-form class=${`paste-component ${t}`} closed @arcgisReady=${this._pasteComponentReady} @arcgisApplyPasteCommand=${this._applyPasteCommand} @arcgisClose=${()=>{this._resetPasteWorkflow()}} paste-with-multiple-layers-enabled paste-with-multiple-features-enabled .layerPermissionsCheck=${this._getLayerPermissionsCheck()} .supportedCommands=${$} .view=${this.mapView} ${c(this._pasteComponent)}>${k&&s`<calcite-notice slot=commands-page-message class="margin-top-10" open icon=move><div slot=message>${this._translations.moveClipboardFeatures}</div></calcite-notice>`||""}</arcgis-paste></calcite-panel>`||""}</div></calcite-panel>`}getEditorComponent(){let e=this.enableSnapping&&!this.layerOrTable?.isTable&&this.enableCreateFeatures;return s`<div>${this._showCreateFeatureComponent&&s`<create-feature allow-multiple-creation customize-submit .enableSnapping=${e} .mapView=${this.mapView} .isMobile=${this.isMobile} @activeFeatureCountChange=${t=>{this._activeFeatureCreationCount=t.detail,this._showSubmitBtn=this._activeFeatureCreationCount>0}} @drawComplete=${()=>{this._showSubmitBtn=!0}} @editingAttachment=${t=>{this._showSubmitBtn=!t.detail}} @progressStatus=${()=>{setTimeout(()=>{this._isFeatureCreated=!1},2e3)}} @success=${this._featureCreated} .showSketchWidgets=${this.showSketchWidgets} .selectedLayerId=${this.layerOrTable?.id} show-guiding-msg .showLayerVisibilityMsg=${this.layerOrTable?.visible===!1} ${c(this._createFeature)}></create-feature>`||""}</div>`}async _getFeaturesByIds(e){return(e.length>0&&this.layerOrTable&&this.mapView?await d(e,this.layerOrTable,[],!0,this.mapView?.spatialReference):[]).sort((t,a)=>e.indexOf(Number(t.getObjectId()))-e.indexOf(Number(a.getObjectId())))}_createFeatureBtnClicked(){this._showCreateFeatureComponent=!0,this._handleCreateAndBackBtn(!1),this.createWorkFlowStarted.emit()}async _backFromCreateFeature(){this._createFeatureEditor&&await this._validateActiveEdits()&&(this._showCreateFeatureComponent=!1,this.backFromCreateWorkFlow.emit(),this._showSubmitBtn=!1,this._handleCreateAndBackBtn(!1))}async _validateActiveEdits(){let e=!0;if(this._createFeatureEditor&&this._hasPendingEdits()){let t=!1;try{this._handleCreateAndBackBtn(!0),this._createFeatureEditor.activeWorkflow&&await this._createFeatureEditor.activeWorkflow.cancel({force:!1})}catch(a){t=a?.name==="workflow:cancel-denied"}t&&(this._handleCreateAndBackBtn(!1),e=!1)}return e}_hasPendingEdits(){return this._createFeatureEditor?.activeWorkflow?.hasPendingEdits}_featureCreated(){this._showSubmitBtn=!1,this._isFeatureCreated=!0}};b("card-manager",p);return p},"core/reactiveUtils",a,d)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import a from"./KK66RGNI.js";export default $arcgis.t(([a,u,{g:i}])=>{var c=class{async getPopupTitle(o,f){let s={};for(let[e,r]of Object.entries(o.attributes))s={...s,[`{${e.toUpperCase()}}`]:r};let p=o.layer,l=this._removeTags(p?.popupTemplate?.title);if(l.includes("{expression/expr")&&p?.popupTemplate?.expressionInfos!=null)for(let e=0;e<p.popupTemplate?.expressionInfos.length;e++){let r=p.popupTemplate.expressionInfos[e],n=a.createArcadeProfile("popup");try{let t=await(await a.createArcadeExecutor(r.expression,n)).executeAsync({$feature:o,$layer:p,$map:f});(t!==null||t!=="")&&(s[`{expression/${r.name}}`.toUpperCase()]=t)}catch(t){console.error(t);continue}}return p.popupTemplate?.fieldInfos&&p.fields.forEach(e=>{let r=o.attributes[e.name],n=(p?.popupTemplate?.fieldInfos||[]).find(m=>m.fieldName.toLowerCase()===e.name.toLowerCase()),t=i(r,e.type,e?.domain,n?.format,u);s[`{${e.name.toUpperCase()}}`]=t??r}),l?.replace(/{.*?}/g,e=>s[e.toUpperCase()]!=null?s[e.toUpperCase()]:"")}_removeTags(o){return o==null||o===""?"":o.toString().replace(/(<([^>]+)>)/gi,"")}};return c},"arcade","intl",a)
2
+ import a from"./AI34V5DG.js";export default $arcgis.t(([a,u,{g:i}])=>{var c=class{async getPopupTitle(o,f){let s={};for(let[e,r]of Object.entries(o.attributes))s={...s,[`{${e.toUpperCase()}}`]:r};let p=o.layer,l=this._removeTags(p?.popupTemplate?.title);if(l.includes("{expression/expr")&&p?.popupTemplate?.expressionInfos!=null)for(let e=0;e<p.popupTemplate?.expressionInfos.length;e++){let r=p.popupTemplate.expressionInfos[e],n=a.createArcadeProfile("popup");try{let t=await(await a.createArcadeExecutor(r.expression,n)).executeAsync({$feature:o,$layer:p,$map:f});(t!==null||t!=="")&&(s[`{expression/${r.name}}`.toUpperCase()]=t)}catch(t){console.error(t);continue}}return p.popupTemplate?.fieldInfos&&p.fields.forEach(e=>{let r=o.attributes[e.name],n=(p?.popupTemplate?.fieldInfos||[]).find(m=>m.fieldName.toLowerCase()===e.name.toLowerCase()),t=i(r,e.type,e?.domain,n?.format,u);s[`{${e.name.toUpperCase()}}`]=t??r}),l?.replace(/{.*?}/g,e=>s[e.toUpperCase()]!=null?s[e.toUpperCase()]:"")}_removeTags(o){return o==null||o===""?"":o.toString().replace(/(<([^>]+)>)/gi,"")}};return c},"arcade","intl",a)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import c from"./L5MBRVIL.js";import"./PPFEO3UH.js";import b from"./AD65SM7W.js";import a from"./XOPNEAS5.js";import"./2B4SGB3I.js";import"./RLSY4VUQ.js";import"./AO7XKW2U.js";import"./XO7WR3ST.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"./SEC5SVYP.js";import"./T3EPRHTT.js";import"./EXBEKVP5.js";export default $arcgis.t(([,,a])=>{return a},a,b,c)
2
+ import c from"./CAI7336J.js";import"./PPFEO3UH.js";import b from"./IQB3K7JJ.js";import a from"./XOPNEAS5.js";import"./2B4SGB3I.js";import"./RLSY4VUQ.js";import"./AO7XKW2U.js";import"./HSDCRKVW.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"./3L2YVDZV.js";import"./T3EPRHTT.js";import"./EXBEKVP5.js";export default $arcgis.t(([,,a])=>{return a},a,b,c)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import b from"./2C4DK6YC.js";import a from"./WV7QX3ED.js";import{a as g}from"./XO7WR3ST.js";import"./QMAV4UTN.js";import"./Y2AUIXNK.js";import{b as p}from"./SEC5SVYP.js";import{F as n,G as d,H as c,J as o,h,i as s,q as i,u as l}from"./T3EPRHTT.js";import"./EXBEKVP5.js";export default $arcgis.t(([a,,{e:m}])=>{var u=h`@layer{:host{display:block}#feature-form{padding-top:0}.esri-editor__prompt--danger{position:relative!important;width:100%!important;background-color:var(--calcite-color-surface-2)!important}.esri-feature__content-node{background-color:var(--calcite-color-surface-2)!important}.hide-editor-toolbar .esri-editor__panel-toolbar{display:none!important}.position-absolute{position:absolute;inset:0;overflow:auto}.esri-editor__panel-content{padding-block:10px!important}}`,r=class extends c{constructor(){super(),this.enableEditGeometry=!1,this.enableSnapping=!1,this.graphicIndex=0,this.graphics=[],this.open=!1,this.allowMultipleEditing=!1,this._editorLoading=!1,this._layerInfos=null,this._translations=g({name:"edit-card",blocking:!0}),this._editor=n(),this._shouldClose=!1,this._shouldEmitEditsComplete=!1,this.closeEdit=i(),this.editorInitialized=i(),this.editsComplete=i(),this.refreshGraphics=i(),this.creatingFeature=i(),this._onEditorReady=async()=>{this._attachmentHandle&&this._activeWorkflowHandle&&(this._attachmentHandle.remove(),this._activeWorkflowHandle.remove());let t=this._editor.value;this._attachmentHandle=a.when(()=>t?.state==="adding-attachment"||t?.state==="editing-attachment"||t?.state==="creating-features",()=>{this._shouldClose=!1}),this._activeWorkflowHandle=a.watch(()=>t?.activeWorkflow,e=>{(e?.type==="update"||e?.type==="create-features")&&(this._shouldClose=!1),(!e?.type&&!e?.hasPendingEdits&&!t?.activeWorkflow||!t?.activeWorkflow?.started)&&(this.allowMultipleEditing=!1,this.open=!1)}),a.watch(()=>t?.state,e=>{e==="creating-features"&&this.graphics[0].layer.isTable&&!t?.viewModel?.featureTemplatesLayers?.items.length&&!t?.viewModel?.featureTemplatesLayers?.items[0]?.isTable&&this.creatingFeature.emit(),this._shouldEmitEditsComplete&&e==="ready"&&!t?.activeWorkflow&&(this.editsComplete.emit(),this._shouldEmitEditsComplete=!1)}),t&&this.editorInitialized.emit(t),this.graphicIndex>-1&&this.graphics.length>0&&this.open&&!this._shouldClose&&await this._startUpdate(),this._editorLoading=!1},this.listenOn(window,"featureSelectionChange",this.featureSelectionChange),this.listenOn(window,"mapChanged",this.mapChanged)}static{this.properties={enableEditGeometry:5,enableSnapping:5,graphicIndex:9,graphics:0,mapView:0,open:5,allowMultipleEditing:5,_editorLoading:16,_layerInfos:16,_translations:16}}static{this.styles=u}static{this.shadowRootOptions=l}async graphicsWatchHandler(){this.graphics.length===0&&this.open&&await this._closeEdit(!0)}async openWatchHandler(t){t&&this.graphics?.length>0&&this.graphicIndex>-1&&(this._editorLoading=!0,await this._loadLayerInfos()),t||await this._closeEdit(!0)}async featureSelectionChange(){this.open&&await this._closeEdit(!1)}async mapChanged(){this.open&&await this._closeEdit(!1)}willUpdate(t){if(t.has("graphics")&&this.graphicsWatchHandler(),t.has("open")&&(this.hasUpdated||this.open!==!1)&&this.openWatchHandler(this.open),this.graphics?.length>0&&this.graphics[0]?.layer){this._layer=this.graphics[0].layer,this._layerEditHandle&&this._layerEditHandle.remove();let e=this._layer.type==="subtype-sublayer"?this._layer.parent:this._layer;e&&(this._layerEditHandle=e.on("edits",()=>{this._shouldEmitEditsComplete=!0}))}}render(){let t=this.graphics?.length>0&&this.graphics[0]?!this.graphics[0].layer.editingEnabled:!0,e=this._editorLoading?"display-none":"position-absolute",_=this._editorLoading?"":"display-none";return s`<div class="position-absolute">${t?s`<calcite-notice kind=warning open slot=content-top width=full><div slot=message>${this._translations.enableEditing}</div></calcite-notice>`:void 0}<div class="position-absolute">${this.open&&this.mapView&&this._layerInfos!==null&&s`<arcgis-editor class=${o(e)} .view=${this.mapView} .layerInfos=${this._layerInfos} .hideSettingsMenu=${!(this.enableSnapping&&this.enableEditGeometry)} hide-sketch .hideSnappingControlsElementsEnabledToggle=${!(this.enableSnapping&&this.enableEditGeometry)} @arcgisReady=${this._onEditorReady} ${d(this._editor)}></arcgis-editor>`||""}<calcite-loader class=${o(_)} label scale=s></calcite-loader></div></div>`}disconnectedCallback(){super.disconnectedCallback(),this._editor.value&&this._editor.value.destroy(),this._attachmentHandle?.remove(),this._activeWorkflowHandle?.remove(),this._layerEditHandle?.remove()}async _loadLayerInfos(){if(this.mapView&&this.graphics&&this.graphics.length>0&&this.graphics[0]){let t=await m(this.mapView);this._layerInfos=t.map(e=>({layer:e,geometryUpdatesEnabled:this.enableEditGeometry}))}}async _closeEdit(t){this._shouldClose=!0,t&&this._editor.value?.activeWorkflow?(this._editor.value.activeWorkflow?.activeWorkflow?.hasPendingEdits&&(await this._editor.value.activeWorkflow.reset(),await this._editor.value.cancelWorkflow()),await this._editor.value.destroy()):this.graphicIndex>-1&&this.graphics?.length>0&&this.refreshGraphics.emit(this.graphics),this.enableSnapping&&((this.mapView?.ui.view).grid=null),this._shouldClose=!1,this.closeEdit.emit()}async _startUpdate(){this.allowMultipleEditing?await this._editor.value?.startUpdateFeaturesWorkflow(this.graphics):await this._editor.value?.startUpdateWorkflowAtFeatureEdit(this.graphics[this.graphicIndex]),this._shouldClose=!0}};p("edit-card",r);return r},"core/reactiveUtils",a,b)
2
+ import b from"./2C4DK6YC.js";import a from"./WV7QX3ED.js";import{a as g}from"./HSDCRKVW.js";import"./QMAV4UTN.js";import"./Y2AUIXNK.js";import{b as p}from"./3L2YVDZV.js";import{F as n,G as d,H as c,J as o,h,i as s,q as i,u as l}from"./T3EPRHTT.js";import"./EXBEKVP5.js";export default $arcgis.t(([a,,{e:m}])=>{var u=h`@layer{:host{display:block}#feature-form{padding-top:0}.esri-editor__prompt--danger{position:relative!important;width:100%!important;background-color:var(--calcite-color-surface-2)!important}.esri-feature__content-node{background-color:var(--calcite-color-surface-2)!important}.hide-editor-toolbar .esri-editor__panel-toolbar{display:none!important}.position-absolute{position:absolute;inset:0;overflow:auto}.esri-editor__panel-content{padding-block:10px!important}}`,r=class extends c{constructor(){super(),this.enableEditGeometry=!1,this.enableSnapping=!1,this.graphicIndex=0,this.graphics=[],this.open=!1,this.allowMultipleEditing=!1,this._editorLoading=!1,this._layerInfos=null,this._translations=g({name:"edit-card",blocking:!0}),this._editor=n(),this._shouldClose=!1,this._shouldEmitEditsComplete=!1,this.closeEdit=i(),this.editorInitialized=i(),this.editsComplete=i(),this.refreshGraphics=i(),this.creatingFeature=i(),this._onEditorReady=async()=>{this._attachmentHandle&&this._activeWorkflowHandle&&(this._attachmentHandle.remove(),this._activeWorkflowHandle.remove());let t=this._editor.value;this._attachmentHandle=a.when(()=>t?.state==="adding-attachment"||t?.state==="editing-attachment"||t?.state==="creating-features",()=>{this._shouldClose=!1}),this._activeWorkflowHandle=a.watch(()=>t?.activeWorkflow,e=>{(e?.type==="update"||e?.type==="create-features")&&(this._shouldClose=!1),(!e?.type&&!e?.hasPendingEdits&&!t?.activeWorkflow||!t?.activeWorkflow?.started)&&(this.allowMultipleEditing=!1,this.open=!1)}),a.watch(()=>t?.state,e=>{e==="creating-features"&&this.graphics[0].layer.isTable&&!t?.viewModel?.featureTemplatesLayers?.items.length&&!t?.viewModel?.featureTemplatesLayers?.items[0]?.isTable&&this.creatingFeature.emit(),this._shouldEmitEditsComplete&&e==="ready"&&!t?.activeWorkflow&&(this.editsComplete.emit(),this._shouldEmitEditsComplete=!1)}),t&&this.editorInitialized.emit(t),this.graphicIndex>-1&&this.graphics.length>0&&this.open&&!this._shouldClose&&await this._startUpdate(),this._editorLoading=!1},this.listenOn(window,"featureSelectionChange",this.featureSelectionChange),this.listenOn(window,"mapChanged",this.mapChanged)}static{this.properties={enableEditGeometry:5,enableSnapping:5,graphicIndex:9,graphics:0,mapView:0,open:5,allowMultipleEditing:5,_editorLoading:16,_layerInfos:16,_translations:16}}static{this.styles=u}static{this.shadowRootOptions=l}async graphicsWatchHandler(){this.graphics.length===0&&this.open&&await this._closeEdit(!0)}async openWatchHandler(t){t&&this.graphics?.length>0&&this.graphicIndex>-1&&(this._editorLoading=!0,await this._loadLayerInfos()),t||await this._closeEdit(!0)}async featureSelectionChange(){this.open&&await this._closeEdit(!1)}async mapChanged(){this.open&&await this._closeEdit(!1)}willUpdate(t){if(t.has("graphics")&&this.graphicsWatchHandler(),t.has("open")&&(this.hasUpdated||this.open!==!1)&&this.openWatchHandler(this.open),this.graphics?.length>0&&this.graphics[0]?.layer){this._layer=this.graphics[0].layer,this._layerEditHandle&&this._layerEditHandle.remove();let e=this._layer.type==="subtype-sublayer"?this._layer.parent:this._layer;e&&(this._layerEditHandle=e.on("edits",()=>{this._shouldEmitEditsComplete=!0}))}}render(){let t=this.graphics?.length>0&&this.graphics[0]?!this.graphics[0].layer.editingEnabled:!0,e=this._editorLoading?"display-none":"position-absolute",_=this._editorLoading?"":"display-none";return s`<div class="position-absolute">${t?s`<calcite-notice kind=warning open slot=content-top width=full><div slot=message>${this._translations.enableEditing}</div></calcite-notice>`:void 0}<div class="position-absolute">${this.open&&this.mapView&&this._layerInfos!==null&&s`<arcgis-editor class=${o(e)} .view=${this.mapView} .layerInfos=${this._layerInfos} .hideSettingsMenu=${!(this.enableSnapping&&this.enableEditGeometry)} hide-sketch .hideSnappingControlsElementsEnabledToggle=${!(this.enableSnapping&&this.enableEditGeometry)} @arcgisReady=${this._onEditorReady} ${d(this._editor)}></arcgis-editor>`||""}<calcite-loader class=${o(_)} label scale=s></calcite-loader></div></div>`}disconnectedCallback(){super.disconnectedCallback(),this._editor.value&&this._editor.value.destroy(),this._attachmentHandle?.remove(),this._activeWorkflowHandle?.remove(),this._layerEditHandle?.remove()}async _loadLayerInfos(){if(this.mapView&&this.graphics&&this.graphics.length>0&&this.graphics[0]){let t=await m(this.mapView);this._layerInfos=t.map(e=>({layer:e,geometryUpdatesEnabled:this.enableEditGeometry}))}}async _closeEdit(t){this._shouldClose=!0,t&&this._editor.value?.activeWorkflow?(this._editor.value.activeWorkflow?.activeWorkflow?.hasPendingEdits&&(await this._editor.value.activeWorkflow.reset(),await this._editor.value.cancelWorkflow()),await this._editor.value.destroy()):this.graphicIndex>-1&&this.graphics?.length>0&&this.refreshGraphics.emit(this.graphics),this.enableSnapping&&((this.mapView?.ui.view).grid=null),this._shouldClose=!1,this.closeEdit.emit()}async _startUpdate(){this.allowMultipleEditing?await this._editor.value?.startUpdateFeaturesWorkflow(this.graphics):await this._editor.value?.startUpdateWorkflowAtFeatureEdit(this.graphics[this.graphicIndex]),this._shouldClose=!0}};p("edit-card",r);return r},"core/reactiveUtils",a,b)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import{a as d}from"./XO7WR3ST.js";import"./QMAV4UTN.js";import"./Y2AUIXNK.js";import{b as o}from"./SEC5SVYP.js";import{F as r,G as c,H as u,h as l,i as s,q as a}from"./T3EPRHTT.js";import"./EXBEKVP5.js";export default $arcgis.t(([e,h])=>{var f=l`:host{display:block}.c-container{display:inline-flex}.flex-1{flex:"1"}.padding-end-1{padding-inline-end:1rem}.w-50{width:50%}`,n=class extends u{constructor(){super(...arguments),this.appearance="text",this.distance=0,this.geometries=[],this.max=0,this.min=0,this.sliderTicks=10,this.unionResults=!0,this.unit="meters",this.disabled=!1,this._translations=d({name:"buffer-tools",blocking:!0}),this._unitElement=r(),this.bufferComplete=a(),this.distanceChanged=a(),this.unitChanged=a()}static{this.properties={appearance:1,distance:9,geometries:0,max:9,min:9,sliderTicks:9,unionResults:5,unit:1,disabled:5,_translations:16,_units:16}}static{this.styles=f}willUpdate(t){t.has("geometries")&&(this.hasUpdated||this.geometries?.length>0)&&this.geometriesWatchHandler(),t.has("disabled")&&(this.hasUpdated||this.disabled!==!1)&&this.disabledWatchHandler(),t.has("_translations")&&this._defineTranslations(),t.has("unit")&&this.hasUpdated&&this._setUnit(this.unit),t.has("distance")&&this.hasUpdated&&this._setDistance({target:{value:this.distance}})}geometriesWatchHandler(){this._buffer()}disabledWatchHandler(){this._buffer()}async getTranslatedUnit(t){return this._units||await this._defineTranslations(),this._units?this._units[t]:""}render(){return this.appearance==="text"?this._getTextBoxDisplay():this._getSliderDisplay()}async _defineTranslations(){this._units={feet:this._translations.feet||"Feet",meters:this._translations.meters||"Meters",miles:this._translations.miles||"Miles",kilometers:this._translations.kilometers||"Kilometers"}}_getUnits(){return this._units?Object.keys(this._units).map(t=>this._units?s`<calcite-option .label=${this._units[t]} .selected=${this.unit===t} .value=${t}></calcite-option>`:void 0):void 0}_setDistance(t){let i=Number.parseInt(t.target.value,10);this.distance!==i&&i>=this.min&&(this.distanceChanged.emit({oldValue:this.distance,newValue:i}),this.distance=i,this.distance>0?this._buffer():this.bufferComplete.emit(void 0))}_setUnit(t){this.unitChanged.emit({oldValue:this.unit,newValue:t}),this.unit=t,this._buffer()}_buffer(){this.disabled?this.bufferComplete.emit(void 0):(this._bufferTimeout&&clearTimeout(this._bufferTimeout),this._bufferTimeout=setTimeout(async()=>{if(this.geometries?.length>0&&this.unit&&this.distance>0&&e&&h){e.isLoaded()||await e.load();let t=this.geometries[0].spatialReference,i=this.geometries,m=t.isWGS84||t.isWebMercator?e.executeMany(i,[this.distance],{union:this.unionResults,unit:this.unit}):h.executeMany(i,[this.distance],{unit:this.unit,union:this.unionResults});this.bufferComplete.emit(m)}},400))}_getTextBoxDisplay(){return s`<div class="c-container"><calcite-input class="padding-end-1 w-50" .max=${this.max&&this.max>0?this.max:void 0} .min=${this.min} number-button-type=vertical @calciteInputInput=${this._setDistance} placeholder=0 type=number .value=${this.distance?this.distance.toString():void 0}></calcite-input><calcite-select class="flex-1 w-50" .label=${this._translations.unit} @calciteSelectChange=${()=>{this._unitElement?.value&&this._setUnit(this._unitElement?.value.value)}} ${c(this._unitElement)}>${this._getUnits()}</calcite-select></div>`}_getSliderDisplay(){return s`<div><calcite-slider label-handles .max=${this.max&&this.max>0?this.max:void 0} .min=${this.min} .ticks=${this.sliderTicks}></calcite-slider></div>`}_testAccess(t,i){switch(t){case"_setUnit":return this._setUnit(i);case"_setDistance":return this._setDistance(i)}return null}};o("buffer-tools",n);return n},"geometry/operators/geodesicBufferOperator","geometry/operators/bufferOperator")
2
+ import{a as d}from"./HSDCRKVW.js";import"./QMAV4UTN.js";import"./Y2AUIXNK.js";import{b as o}from"./3L2YVDZV.js";import{F as r,G as c,H as u,h as l,i as s,q as a}from"./T3EPRHTT.js";import"./EXBEKVP5.js";export default $arcgis.t(([e,h])=>{var f=l`:host{display:block}.c-container{display:inline-flex}.flex-1{flex:"1"}.padding-end-1{padding-inline-end:1rem}.w-50{width:50%}`,n=class extends u{constructor(){super(...arguments),this.appearance="text",this.distance=0,this.geometries=[],this.max=0,this.min=0,this.sliderTicks=10,this.unionResults=!0,this.unit="meters",this.disabled=!1,this._translations=d({name:"buffer-tools",blocking:!0}),this._unitElement=r(),this.bufferComplete=a(),this.distanceChanged=a(),this.unitChanged=a()}static{this.properties={appearance:1,distance:9,geometries:0,max:9,min:9,sliderTicks:9,unionResults:5,unit:1,disabled:5,_translations:16,_units:16}}static{this.styles=f}willUpdate(t){t.has("geometries")&&(this.hasUpdated||this.geometries?.length>0)&&this.geometriesWatchHandler(),t.has("disabled")&&(this.hasUpdated||this.disabled!==!1)&&this.disabledWatchHandler(),t.has("_translations")&&this._defineTranslations(),t.has("unit")&&this.hasUpdated&&this._setUnit(this.unit),t.has("distance")&&this.hasUpdated&&this._setDistance({target:{value:this.distance}})}geometriesWatchHandler(){this._buffer()}disabledWatchHandler(){this._buffer()}async getTranslatedUnit(t){return this._units||await this._defineTranslations(),this._units?this._units[t]:""}render(){return this.appearance==="text"?this._getTextBoxDisplay():this._getSliderDisplay()}async _defineTranslations(){this._units={feet:this._translations.feet||"Feet",meters:this._translations.meters||"Meters",miles:this._translations.miles||"Miles",kilometers:this._translations.kilometers||"Kilometers"}}_getUnits(){return this._units?Object.keys(this._units).map(t=>this._units?s`<calcite-option .label=${this._units[t]} .selected=${this.unit===t} .value=${t}></calcite-option>`:void 0):void 0}_setDistance(t){let i=Number.parseInt(t.target.value,10);this.distance!==i&&i>=this.min&&(this.distanceChanged.emit({oldValue:this.distance,newValue:i}),this.distance=i,this.distance>0?this._buffer():this.bufferComplete.emit(void 0))}_setUnit(t){this.unitChanged.emit({oldValue:this.unit,newValue:t}),this.unit=t,this._buffer()}_buffer(){this.disabled?this.bufferComplete.emit(void 0):(this._bufferTimeout&&clearTimeout(this._bufferTimeout),this._bufferTimeout=setTimeout(async()=>{if(this.geometries?.length>0&&this.unit&&this.distance>0&&e&&h){e.isLoaded()||await e.load();let t=this.geometries[0].spatialReference,i=this.geometries,m=t.isWGS84||t.isWebMercator?e.executeMany(i,[this.distance],{union:this.unionResults,unit:this.unit}):h.executeMany(i,[this.distance],{unit:this.unit,union:this.unionResults});this.bufferComplete.emit(m)}},400))}_getTextBoxDisplay(){return s`<div class="c-container"><calcite-input class="padding-end-1 w-50" .max=${this.max&&this.max>0?this.max:void 0} .min=${this.min} number-button-type=vertical @calciteInputInput=${this._setDistance} placeholder=0 type=number .value=${this.distance?this.distance.toString():void 0}></calcite-input><calcite-select class="flex-1 w-50" .label=${this._translations.unit} @calciteSelectChange=${()=>{this._unitElement?.value&&this._setUnit(this._unitElement?.value.value)}} ${c(this._unitElement)}>${this._getUnits()}</calcite-select></div>`}_getSliderDisplay(){return s`<div><calcite-slider label-handles .max=${this.max&&this.max>0?this.max:void 0} .min=${this.min} .ticks=${this.sliderTicks}></calcite-slider></div>`}_testAccess(t,i){switch(t){case"_setUnit":return this._setUnit(i);case"_setDistance":return this._setDistance(i)}return null}};o("buffer-tools",n);return n},"geometry/operators/geodesicBufferOperator","geometry/operators/bufferOperator")
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import{b as o}from"./SEC5SVYP.js";import{F as l,G as p,H as m,h as r,i}from"./T3EPRHTT.js";import"./EXBEKVP5.js";export default $arcgis.t(([d])=>{var b=r`.display-block{display:block}`,e=class extends m{constructor(){super(...arguments),this.basemapGalleryRef=l(),this._basemapGalleryReady=()=>{this._updateBasemapSource()}}static{this.properties={basemapGalleryRef:0,mapView:0,basemapConfig:0}}static{this.styles=b}willUpdate(a){a.has("basemapConfig")&&this.basemapConfigWatchHandler()}async basemapConfigWatchHandler(){await this._updateBasemapSource()}render(){return this.mapView&&i`<arcgis-basemap-gallery auto-destroy-disabled .view=${this.mapView} @arcgisReady=${this._basemapGalleryReady} ${p(this.basemapGalleryRef)}></arcgis-basemap-gallery>`||""}disconnectedCallback(){super.disconnectedCallback(),this.basemapGalleryRef.value&&this.basemapGalleryRef.value.destroy()}async _updateBasemapSource(){let a=this.basemapGalleryRef.value;if(!a)return;let c=n=>{let t=n.portalItem?.id;return!t||!this.basemapConfig?!0:!this.basemapConfig.basemapIdsToFilter.includes(t)},s=new d({query:this.basemapConfig?.basemapGroupId?`id:${this.basemapConfig.basemapGroupId}`:null,filterFunction:c});await s.refresh(),a.source=s}};o("map-basemap-gallery",e);return e},"widgets/BasemapGallery/support/PortalBasemapsSource")
2
+ import{b as o}from"./3L2YVDZV.js";import{F as l,G as p,H as m,h as r,i}from"./T3EPRHTT.js";import"./EXBEKVP5.js";export default $arcgis.t(([d])=>{var b=r`.display-block{display:block}`,e=class extends m{constructor(){super(...arguments),this.basemapGalleryRef=l(),this._basemapGalleryReady=()=>{this._updateBasemapSource()}}static{this.properties={basemapGalleryRef:0,mapView:0,basemapConfig:0}}static{this.styles=b}willUpdate(a){a.has("basemapConfig")&&this.basemapConfigWatchHandler()}async basemapConfigWatchHandler(){await this._updateBasemapSource()}render(){return this.mapView&&i`<arcgis-basemap-gallery auto-destroy-disabled .view=${this.mapView} @arcgisReady=${this._basemapGalleryReady} ${p(this.basemapGalleryRef)}></arcgis-basemap-gallery>`||""}disconnectedCallback(){super.disconnectedCallback(),this.basemapGalleryRef.value&&this.basemapGalleryRef.value.destroy()}async _updateBasemapSource(){let a=this.basemapGalleryRef.value;if(!a)return;let c=n=>{let t=n.portalItem?.id;return!t||!this.basemapConfig?!0:!this.basemapConfig.basemapIdsToFilter.includes(t)},s=new d({query:this.basemapConfig?.basemapGroupId?`id:${this.basemapConfig.basemapGroupId}`:null,filterFunction:c});await s.refresh(),a.source=s}};o("map-basemap-gallery",e);return e},"widgets/BasemapGallery/support/PortalBasemapsSource")
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import h from"./AP4IMJKR.js";import e from"./XL66TA6C.js";import c from"./XSJOQTEM.js";import b from"./AD65SM7W.js";import a from"./XOPNEAS5.js";import{b as C}from"./2B4SGB3I.js";import{b as v}from"./RLSY4VUQ.js";import"./AO7XKW2U.js";import{a as w}from"./XO7WR3ST.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 f}from"./SEC5SVYP.js";import{F as u,G as d,H as g,L as y,h as m,i as r,j as _,q as n}from"./T3EPRHTT.js";import"./EXBEKVP5.js";export default $arcgis.t(([{p:x,t:T},{n:c,r:l,s:b},,h,S])=>{var $=m`calcite-panel{width:100%;height:100%;--calcite-panel-background-color: var(--calcite-color-surface-3)}.card-group{overflow:hidden;padding:.25rem var(--calcite-spacing-xxs) var(--calcite-spacing-md)}.text-center{text-align:center}.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)}.no-solutions{display:flex;flex-direction:column;justify-content:center;align-items:center;width:100%;min-height:calc(100vh - 190px)}.display-flex{display:flex}.display-none{display:none}.flex-direction-column{flex-direction:column}h1{font-weight:unset;margin:0;padding:0}solution-deployed-card{width:calc(20% - .75rem)}@container (max-width: 1280px){solution-deployed-card{width:calc(25% - .75rem)}}@container (max-width: 1010px){solution-deployed-card{width:calc(33.333% - .75rem)}}@container (max-width: 740px){solution-deployed-card{width:calc(50% - .75rem)}}@container (max-width: 440px){solution-deployed-card{width:calc(100% - .75rem)}}.margin-top-half{margin-top:.5rem}`,F=5,p=class extends g{constructor(){super(),this.sortType="created",this._cards=[],this._cardsFetching=!1,this._modifiedCheckTry=0,this._newId="",this._refs={},this._showDeleteCompleteAlert=!1,this._deletedSolutionName="",this._translations=w({name:"solutions-deployed-panel",blocking:!0}),this._agoTerms=c,this._allCards=[],this._baseAgoTerms=c,this._categories=[],this._mainPanelRef=u(),this._panelFixed=!1,this._configContextConsumer=v({context:C,subscribe:!0,callback:async t=>{t&&(this._initCardsFetchers(),await this._getDeployedSolutions())}}),this._delay=!1,this._owner="My solutions",this._sortField="created",this._sortOrder="desc",this.deployedCardsFetched=n(),this.searchTermSet=n(),this.sortTypeSet=n(),this.listenOn(window,"solutionDeleted",t=>{this._modifiedCheckTry=F,this.reload(t.detail.showAlert,t.detail.refreshSolutionsTimeout,t.detail.solutionTitle)}),this.listenOn(window,"solutionConfigureDialogClose",t=>{t.detail&&this.reload(!1,!1)}),this.listenOn(window,"deployProgressEnd",t=>{this._modifiedCheckTry=F,this._refreshAfterDeploy(t.detail)}),this.listenOn(window,"sortTypeChanged",t=>{t.detail&&t.detail.scope==="deployments"&&(this.sortType=t.detail.sortType,this._telemetry?.logEvent({category:l.DEPLOYMENTS,action:"Sort",dimensions:[x(t.detail.sortType)]}),this.searchSolutions(t.detail))}),this.listenOn(window,"searchChanged",t=>{t.detail&&t.detail.scope==="deployments"&&(t.detail.logSearchTelemetry&&t.detail.option?.searchTerm?this._telemetry?.logEvent({category:l.DEPLOYMENTS,action:"Search",dimensions:[t.detail.option.searchTerm]}):this.searchSolutions(t.detail.option))})}static{this.properties={sortType:1,_cards:16,_cardsFetching:16,_modifiedCheckTry:16,_newId:16,_refs:16,_showDeleteCompleteAlert:16,_deletedSolutionName:16,_translations:16}}static{this.styles=$}get _telemetry(){return this._configContextConsumer.value?.telemetrySession}async reload(t=!0,e=!0,s){if(this._initCardsFetchers(),t){let i=s||this._translations.solution;T({kind:"success",icon:"check-circle",title:this._translations.deleteComplete.replace("{{solutionName}}",i),message:"",autoClose:!0,autoCloseDuration:"fast"})}e?setTimeout(()=>{(async()=>{try{await this._getDeployedSolutions()}catch(i){console.error("Error getting deployed solutions:",i)}})()},500):await this._getDeployedSolutions()}async searchSolutions(t){if(t){if("searchTerm"in t&&this._setSearchTerm(t.searchTerm||""),"sortType"in t&&this._setSortOptions(t),Object.keys(t).indexOf("type")>-1){let e=t;this._owner=e.value,this._telemetry?.logEvent({category:l.DEPLOYMENTS,action:"Filter",dimensions:[e.value==="My solutions"?"My content":"Organization"]})}if(Object.keys(t).indexOf("filter")>-1){let e=t;this._owner=e.filter===b.ORG?"My organization's solutions":"My solutions"}}else this._agoTerms=this._baseAgoTerms,this._clearFilterCategories();await this._getDeployedSolutions()}async setSearchOptions(t){t&&("searchTerm"in t&&(this._setSearchTerm(t.searchTerm),this.searchTermSet.emit({searchTerm:t.searchTerm,scope:"deployments"})),"sortType"in t&&(this._setSortOptions(t),this.sortTypeSet.emit({sortType:t.sortType,scope:"deployments"})))}updated(){this._fixPanelContentWrapperFocus()}_fixPanelContentWrapperFocus(){if(!this._panelFixed&&this._mainPanelRef.value){let t=this._mainPanelRef.value;t.componentOnReady?.().then(()=>{if(t.shadowRoot){let e=t.shadowRoot.querySelector(".content-wrapper");e&&(e.tabIndex=-1,this._panelFixed=!0,this._setupPanelObserver())}}).catch(()=>{this._panelFixed=!0})}}_setupPanelObserver(){if(this._panelObserver)return;this._panelObserver=new MutationObserver(e=>{e.forEach(s=>{if(s.type==="attributes"&&s.attributeName==="tabindex"){let i=s.target;i.classList.contains("content-wrapper")&&i.tabIndex===0&&(i.tabIndex=-1)}})});let t=this._mainPanelRef.value;if(t?.shadowRoot){let e=t.shadowRoot.querySelector(".content-wrapper");e&&this._panelObserver.observe(e,{attributes:!0,attributeFilter:["tabindex"]})}}disconnectedCallback(){super.disconnectedCallback(),this._panelObserver?.disconnect()}render(){return this._cardsFetching?r`<calcite-loader .label=${this._translations.fetchingDeployedSolutions}></calcite-loader>`:this._cards.length?r`<calcite-panel ${d(this._mainPanelRef)}><calcite-card-group class="card-group" .label=${this._translations.allDeployed}>${this._renderCards()}</calcite-card-group></calcite-panel>`:r`<div class="no-solutions">${this._getSolutionsBriefcase()}<div class="text-center leader-1 warning-text trailer-1 display-flex flex-direction-column"><div>${this._translations.noSolutionsFound}</div><div class="margin-top-half">${this._translations.noSolutionsInstruction}</div></div></div>`}_initCardsFetchers(){if(this._configContextConsumer.value){let t=this._configContextConsumer.value;this._cardsFetcher=new h(t.locale,t.orgUrl,t.portalURL),this._cardsFetcherDeployed=new h(t.locale,t.orgUrl,t.portalURL)}}_renderCards(){return this._refs={},this._cards.map(t=>r`<solution-deployed-card .card=${t} .deployedDate=${t.created} .description=${t.snippet} .diagramKey=${this._configContextConsumer.value?.diagramKey} .heading=${t.title} id=${t.id??y} .itemId=${t.id} .owner=${this._owner==="My solutions"?"":t.owner} .thumbnail=${t.thumbnailUrl} ${d(this._handleRefs)}></solution-deployed-card>`)}_handleRefs(t){t&&(this._refs[t.id]=t)}async _getDeployedSolutions(){let t=this._configContextConsumer.value.authentication;if(t.IsSignedIn){this._abortController?(this._abortController.abort("redundant request"),this._abortController=new AbortController):this._abortController=new AbortController,this._cardsFetching=!0;try{let e=await S(t,this._configContextConsumer.value.userSession,this._cardsFetcher,this._cardsFetcherDeployed,this._agoTerms,this._sortField,this._sortOrder,this._delay,this._categories,this._allCards,this._abortController.signal,this._owner);this._abortController=void 0,this._modifiedCheckTry>0&&(this._cards?.length===e?.cards?.length?(this._modifiedCheckTry--,this._getDeployedSolutions()):this._modifiedCheckTry=0),this._cards=e?.cards??[],this.deployedCardsFetched.emit(this._cards.length),this._cardsFetching=!1}catch(e){e.message!=="redundant request"&&console.warn(e)}}}_getSolutionsBriefcase(){return r`<div><svg aria-hidden=true viewBox="0 0 64 64" width=200 height=200 xmlns=http://www.w3.org/2000/svg fill=var(--calcite-color-text-3)>${_`<path d="M10.723 54.9h6.409a7.896 7.896 0 0 0 13.736 0h23.896a4.137 4.137 0 0 0 4.136-4.136l-.004-32.446a3.222 3.222 0 0 0-3.217-3.219l-10.779.064V9.836A3.741 3.741 0 0 0 41.163 6.1H23.837A3.741 3.741 0 0 0 20.1 9.836l.067 5.264-10.8.004A3.275 3.275 0 0 0 6.1 18.37L6.096 26a.893.893 0 0 0 .263.636.907.907 0 0 0 .638.263l5.902-.014.013-5.985 38.781.01a.407.407 0 0 1 .407.407l.008 22.925a2.858 2.858 0 0 1-2.857 2.858H30.868a7.896 7.896 0 0 0-13.736 0H12.9v-5.2a.801.801 0 0 0-.8-.8H6.9a.801.801 0 0 0-.8.8l-.001 8.375a4.59 4.59 0 0 0 1.353 3.27 4.658 4.658 0 0 0 3.27 1.355zM6.9 41.9h5.2v6h5.51l.112-.213a7.098 7.098 0 0 1 12.556 0l.113.213h18.86a3.683 3.683 0 0 0 2.587-1.071 3.635 3.635 0 0 0 1.071-2.587L52.9 21.317a1.208 1.208 0 0 0-1.207-1.207l-38.867-.01a.714.714 0 0 0-.714.712l-.011 5.275-5.106.012.001.4-.1-.499.003-7.628a2.471 2.471 0 0 1 2.468-2.469l10.8-.003a.734.734 0 0 0 .733-.733v-5.33A2.94 2.94 0 0 1 23.837 6.9h17.326A2.94 2.94 0 0 1 44.1 9.836v5.327a.734.734 0 0 0 .733.733l10.846.003a2.421 2.421 0 0 1 2.417 2.419l.004 32.446a3.337 3.337 0 0 1-3.336 3.336H30.39l-.113.213a7.098 7.098 0 0 1-12.556 0l-.113-.213h-6.886a3.85 3.85 0 0 1-2.704-1.12 3.796 3.796 0 0 1-1.12-2.705zm17.1 13a3.9 3.9 0 1 0-3.9-3.9 3.905 3.905 0 0 0 3.9 3.9zm0-7a3.1 3.1 0 1 1-3.1 3.1 3.103 3.103 0 0 1 3.1-3.1zm10-6a7.918 7.918 0 0 0 7.349-5h4.818a.734.734 0 0 0 .733-.733v-4.334a.734.734 0 0 0-.733-.733h-4.818a7.9 7.9 0 0 0-14.698 0H5.833a.734.734 0 0 0-.733.733v4.334a.734.734 0 0 0 .733.733h20.818a7.918 7.918 0 0 0 7.349 5zm-28.167-10h21.378l.095-.266a7.1 7.1 0 0 1 13.388 0l.095.266 5.31-.066.068 4.266h-5.378l-.095.266a7.1 7.1 0 0 1-13.388 0l-.095-.266-21.31.066zM34 37.9a3.9 3.9 0 1 0-3.9-3.9 3.905 3.905 0 0 0 3.9 3.9zm0-7a3.1 3.1 0 1 1-3.1 3.1 3.103 3.103 0 0 1 3.1-3.1zm5.658-20.8H25.342a1.244 1.244 0 0 0-1.242 1.242V15.9h16.8v-4.558a1.244 1.244 0 0 0-1.242-1.242zm.442 5H24.9v-3.758a.443.443 0 0 1 .442-.442h14.316a.443.443 0 0 1 .442.442z" />`}</svg></div>`}_setSearchTerm(t){this._agoTerms=this._baseAgoTerms+` ${t}`}_setSortOptions(t){let e=t.sortType;e==="relevance"||e==="title"?(e==="title"&&(this._sortOrder="asc"),this._sortField=e):(e==="updated"||e==="created")&&(this._sortOrder="desc",this._sortField=e),this.sortType=e}_clearFilterCategories(){this._categories=[]}async _refreshAfterDeploy(t){if(t){this._newId=t;let e=10,s=500;for(let a=0;a<e&&(await this._getDeployedSolutions(),!this._cards.some(o=>o.id===t));a++)a<e-1&&await new Promise(o=>setTimeout(o,s));await this.updateComplete;let i=10,O=100;for(let a=0;a<i;a++){if(this._refs[t]){let o=this._cards.find(D=>D.id===t);window.dispatchEvent(new CustomEvent("deployedCardReady",{detail:{card:o,cardRef:this._refs[t]}})),this._newId="";return}await new Promise(o=>setTimeout(o,O)),await this.updateComplete}console.warn(`Failed to find ref for newly deployed solution after all retries: ${t}`),window.dispatchEvent(new CustomEvent("deploymentCompletedWithoutNav",{detail:{solutionId:t}})),this._newId=""}}};f("solutions-deployed-panel",p);return p},a,b,c,e,h)
2
+ import h from"./6U2SMFQG.js";import e from"./XL66TA6C.js";import c from"./XSJOQTEM.js";import b from"./IQB3K7JJ.js";import a from"./XOPNEAS5.js";import{b as C}from"./2B4SGB3I.js";import{b as v}from"./RLSY4VUQ.js";import"./AO7XKW2U.js";import{a as w}from"./HSDCRKVW.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 f}from"./3L2YVDZV.js";import{F as u,G as d,H as g,L as y,h as m,i as r,j as _,q as n}from"./T3EPRHTT.js";import"./EXBEKVP5.js";export default $arcgis.t(([{p:x,t:T},{n:c,r:l,s:b},,h,S])=>{var $=m`calcite-panel{width:100%;height:100%;--calcite-panel-background-color: var(--calcite-color-surface-3)}.card-group{overflow:hidden;padding:.25rem var(--calcite-spacing-xxs) var(--calcite-spacing-md)}.text-center{text-align:center}.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)}.no-solutions{display:flex;flex-direction:column;justify-content:center;align-items:center;width:100%;min-height:calc(100vh - 190px)}.display-flex{display:flex}.display-none{display:none}.flex-direction-column{flex-direction:column}h1{font-weight:unset;margin:0;padding:0}solution-deployed-card{width:calc(20% - .75rem)}@container (max-width: 1280px){solution-deployed-card{width:calc(25% - .75rem)}}@container (max-width: 1010px){solution-deployed-card{width:calc(33.333% - .75rem)}}@container (max-width: 740px){solution-deployed-card{width:calc(50% - .75rem)}}@container (max-width: 440px){solution-deployed-card{width:calc(100% - .75rem)}}.margin-top-half{margin-top:.5rem}`,F=5,p=class extends g{constructor(){super(),this.sortType="created",this._cards=[],this._cardsFetching=!1,this._modifiedCheckTry=0,this._newId="",this._refs={},this._showDeleteCompleteAlert=!1,this._deletedSolutionName="",this._translations=w({name:"solutions-deployed-panel",blocking:!0}),this._agoTerms=c,this._allCards=[],this._baseAgoTerms=c,this._categories=[],this._mainPanelRef=u(),this._panelFixed=!1,this._configContextConsumer=v({context:C,subscribe:!0,callback:async t=>{t&&(this._initCardsFetchers(),await this._getDeployedSolutions())}}),this._delay=!1,this._owner="My solutions",this._sortField="created",this._sortOrder="desc",this.deployedCardsFetched=n(),this.searchTermSet=n(),this.sortTypeSet=n(),this.listenOn(window,"solutionDeleted",t=>{this._modifiedCheckTry=F,this.reload(t.detail.showAlert,t.detail.refreshSolutionsTimeout,t.detail.solutionTitle)}),this.listenOn(window,"solutionConfigureDialogClose",t=>{t.detail&&this.reload(!1,!1)}),this.listenOn(window,"deployProgressEnd",t=>{this._modifiedCheckTry=F,this._refreshAfterDeploy(t.detail)}),this.listenOn(window,"sortTypeChanged",t=>{t.detail&&t.detail.scope==="deployments"&&(this.sortType=t.detail.sortType,this._telemetry?.logEvent({category:l.DEPLOYMENTS,action:"Sort",dimensions:[x(t.detail.sortType)]}),this.searchSolutions(t.detail))}),this.listenOn(window,"searchChanged",t=>{t.detail&&t.detail.scope==="deployments"&&(t.detail.logSearchTelemetry&&t.detail.option?.searchTerm?this._telemetry?.logEvent({category:l.DEPLOYMENTS,action:"Search",dimensions:[t.detail.option.searchTerm]}):this.searchSolutions(t.detail.option))})}static{this.properties={sortType:1,_cards:16,_cardsFetching:16,_modifiedCheckTry:16,_newId:16,_refs:16,_showDeleteCompleteAlert:16,_deletedSolutionName:16,_translations:16}}static{this.styles=$}get _telemetry(){return this._configContextConsumer.value?.telemetrySession}async reload(t=!0,e=!0,s){if(this._initCardsFetchers(),t){let i=s||this._translations.solution;T({kind:"success",icon:"check-circle",title:this._translations.deleteComplete.replace("{{solutionName}}",i),message:"",autoClose:!0,autoCloseDuration:"fast"})}e?setTimeout(()=>{(async()=>{try{await this._getDeployedSolutions()}catch(i){console.error("Error getting deployed solutions:",i)}})()},500):await this._getDeployedSolutions()}async searchSolutions(t){if(t){if("searchTerm"in t&&this._setSearchTerm(t.searchTerm||""),"sortType"in t&&this._setSortOptions(t),Object.keys(t).indexOf("type")>-1){let e=t;this._owner=e.value,this._telemetry?.logEvent({category:l.DEPLOYMENTS,action:"Filter",dimensions:[e.value==="My solutions"?"My content":"Organization"]})}if(Object.keys(t).indexOf("filter")>-1){let e=t;this._owner=e.filter===b.ORG?"My organization's solutions":"My solutions"}}else this._agoTerms=this._baseAgoTerms,this._clearFilterCategories();await this._getDeployedSolutions()}async setSearchOptions(t){t&&("searchTerm"in t&&(this._setSearchTerm(t.searchTerm),this.searchTermSet.emit({searchTerm:t.searchTerm,scope:"deployments"})),"sortType"in t&&(this._setSortOptions(t),this.sortTypeSet.emit({sortType:t.sortType,scope:"deployments"})))}updated(){this._fixPanelContentWrapperFocus()}_fixPanelContentWrapperFocus(){if(!this._panelFixed&&this._mainPanelRef.value){let t=this._mainPanelRef.value;t.componentOnReady?.().then(()=>{if(t.shadowRoot){let e=t.shadowRoot.querySelector(".content-wrapper");e&&(e.tabIndex=-1,this._panelFixed=!0,this._setupPanelObserver())}}).catch(()=>{this._panelFixed=!0})}}_setupPanelObserver(){if(this._panelObserver)return;this._panelObserver=new MutationObserver(e=>{e.forEach(s=>{if(s.type==="attributes"&&s.attributeName==="tabindex"){let i=s.target;i.classList.contains("content-wrapper")&&i.tabIndex===0&&(i.tabIndex=-1)}})});let t=this._mainPanelRef.value;if(t?.shadowRoot){let e=t.shadowRoot.querySelector(".content-wrapper");e&&this._panelObserver.observe(e,{attributes:!0,attributeFilter:["tabindex"]})}}disconnectedCallback(){super.disconnectedCallback(),this._panelObserver?.disconnect()}render(){return this._cardsFetching?r`<calcite-loader .label=${this._translations.fetchingDeployedSolutions}></calcite-loader>`:this._cards.length?r`<calcite-panel ${d(this._mainPanelRef)}><calcite-card-group class="card-group" .label=${this._translations.allDeployed}>${this._renderCards()}</calcite-card-group></calcite-panel>`:r`<div class="no-solutions">${this._getSolutionsBriefcase()}<div class="text-center leader-1 warning-text trailer-1 display-flex flex-direction-column"><div>${this._translations.noSolutionsFound}</div><div class="margin-top-half">${this._translations.noSolutionsInstruction}</div></div></div>`}_initCardsFetchers(){if(this._configContextConsumer.value){let t=this._configContextConsumer.value;this._cardsFetcher=new h(t.locale,t.orgUrl,t.portalURL),this._cardsFetcherDeployed=new h(t.locale,t.orgUrl,t.portalURL)}}_renderCards(){return this._refs={},this._cards.map(t=>r`<solution-deployed-card .card=${t} .deployedDate=${t.created} .description=${t.snippet} .diagramKey=${this._configContextConsumer.value?.diagramKey} .heading=${t.title} id=${t.id??y} .itemId=${t.id} .owner=${this._owner==="My solutions"?"":t.owner} .thumbnail=${t.thumbnailUrl} ${d(this._handleRefs)}></solution-deployed-card>`)}_handleRefs(t){t&&(this._refs[t.id]=t)}async _getDeployedSolutions(){let t=this._configContextConsumer.value.authentication;if(t.IsSignedIn){this._abortController?(this._abortController.abort("redundant request"),this._abortController=new AbortController):this._abortController=new AbortController,this._cardsFetching=!0;try{let e=await S(t,this._configContextConsumer.value.userSession,this._cardsFetcher,this._cardsFetcherDeployed,this._agoTerms,this._sortField,this._sortOrder,this._delay,this._categories,this._allCards,this._abortController.signal,this._owner);this._abortController=void 0,this._modifiedCheckTry>0&&(this._cards?.length===e?.cards?.length?(this._modifiedCheckTry--,this._getDeployedSolutions()):this._modifiedCheckTry=0),this._cards=e?.cards??[],this.deployedCardsFetched.emit(this._cards.length),this._cardsFetching=!1}catch(e){e.message!=="redundant request"&&console.warn(e)}}}_getSolutionsBriefcase(){return r`<div><svg aria-hidden=true viewBox="0 0 64 64" width=200 height=200 xmlns=http://www.w3.org/2000/svg fill=var(--calcite-color-text-3)>${_`<path d="M10.723 54.9h6.409a7.896 7.896 0 0 0 13.736 0h23.896a4.137 4.137 0 0 0 4.136-4.136l-.004-32.446a3.222 3.222 0 0 0-3.217-3.219l-10.779.064V9.836A3.741 3.741 0 0 0 41.163 6.1H23.837A3.741 3.741 0 0 0 20.1 9.836l.067 5.264-10.8.004A3.275 3.275 0 0 0 6.1 18.37L6.096 26a.893.893 0 0 0 .263.636.907.907 0 0 0 .638.263l5.902-.014.013-5.985 38.781.01a.407.407 0 0 1 .407.407l.008 22.925a2.858 2.858 0 0 1-2.857 2.858H30.868a7.896 7.896 0 0 0-13.736 0H12.9v-5.2a.801.801 0 0 0-.8-.8H6.9a.801.801 0 0 0-.8.8l-.001 8.375a4.59 4.59 0 0 0 1.353 3.27 4.658 4.658 0 0 0 3.27 1.355zM6.9 41.9h5.2v6h5.51l.112-.213a7.098 7.098 0 0 1 12.556 0l.113.213h18.86a3.683 3.683 0 0 0 2.587-1.071 3.635 3.635 0 0 0 1.071-2.587L52.9 21.317a1.208 1.208 0 0 0-1.207-1.207l-38.867-.01a.714.714 0 0 0-.714.712l-.011 5.275-5.106.012.001.4-.1-.499.003-7.628a2.471 2.471 0 0 1 2.468-2.469l10.8-.003a.734.734 0 0 0 .733-.733v-5.33A2.94 2.94 0 0 1 23.837 6.9h17.326A2.94 2.94 0 0 1 44.1 9.836v5.327a.734.734 0 0 0 .733.733l10.846.003a2.421 2.421 0 0 1 2.417 2.419l.004 32.446a3.337 3.337 0 0 1-3.336 3.336H30.39l-.113.213a7.098 7.098 0 0 1-12.556 0l-.113-.213h-6.886a3.85 3.85 0 0 1-2.704-1.12 3.796 3.796 0 0 1-1.12-2.705zm17.1 13a3.9 3.9 0 1 0-3.9-3.9 3.905 3.905 0 0 0 3.9 3.9zm0-7a3.1 3.1 0 1 1-3.1 3.1 3.103 3.103 0 0 1 3.1-3.1zm10-6a7.918 7.918 0 0 0 7.349-5h4.818a.734.734 0 0 0 .733-.733v-4.334a.734.734 0 0 0-.733-.733h-4.818a7.9 7.9 0 0 0-14.698 0H5.833a.734.734 0 0 0-.733.733v4.334a.734.734 0 0 0 .733.733h20.818a7.918 7.918 0 0 0 7.349 5zm-28.167-10h21.378l.095-.266a7.1 7.1 0 0 1 13.388 0l.095.266 5.31-.066.068 4.266h-5.378l-.095.266a7.1 7.1 0 0 1-13.388 0l-.095-.266-21.31.066zM34 37.9a3.9 3.9 0 1 0-3.9-3.9 3.905 3.905 0 0 0 3.9 3.9zm0-7a3.1 3.1 0 1 1-3.1 3.1 3.103 3.103 0 0 1 3.1-3.1zm5.658-20.8H25.342a1.244 1.244 0 0 0-1.242 1.242V15.9h16.8v-4.558a1.244 1.244 0 0 0-1.242-1.242zm.442 5H24.9v-3.758a.443.443 0 0 1 .442-.442h14.316a.443.443 0 0 1 .442.442z" />`}</svg></div>`}_setSearchTerm(t){this._agoTerms=this._baseAgoTerms+` ${t}`}_setSortOptions(t){let e=t.sortType;e==="relevance"||e==="title"?(e==="title"&&(this._sortOrder="asc"),this._sortField=e):(e==="updated"||e==="created")&&(this._sortOrder="desc",this._sortField=e),this.sortType=e}_clearFilterCategories(){this._categories=[]}async _refreshAfterDeploy(t){if(t){this._newId=t;let e=10,s=500;for(let a=0;a<e&&(await this._getDeployedSolutions(),!this._cards.some(o=>o.id===t));a++)a<e-1&&await new Promise(o=>setTimeout(o,s));await this.updateComplete;let i=10,O=100;for(let a=0;a<i;a++){if(this._refs[t]){let o=this._cards.find(D=>D.id===t);window.dispatchEvent(new CustomEvent("deployedCardReady",{detail:{card:o,cardRef:this._refs[t]}})),this._newId="";return}await new Promise(o=>setTimeout(o,O)),await this.updateComplete}console.warn(`Failed to find ref for newly deployed solution after all retries: ${t}`),window.dispatchEvent(new CustomEvent("deploymentCompletedWithoutNav",{detail:{solutionId:t}})),this._newId=""}}};f("solutions-deployed-panel",p);return p},a,b,c,e,h)
@@ -1,5 +1,5 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import{a as He,b as ae}from"./7CGCLEYB.js";import{a as ye}from"./US5FON7D.js";import{a as $r}from"./XO7WR3ST.js";import"./QMAV4UTN.js";import"./Y2AUIXNK.js";import{c as Kr,k as st}from"./3TAQSXLA.js";import{a as at}from"./PY6RTQDR.js";import{b as Br}from"./SEC5SVYP.js";import{H as Fr,h as Wr,q as qr}from"./T3EPRHTT.js";import{b as te,d as Vt}from"./EXBEKVP5.js";var nn=te((Wt,qt)=>{(function(t,e){typeof Wt=="object"&&typeof qt<"u"?qt.exports=function(r,n,i,s,a){for(n=n.split?n.split("."):n,s=0;s<n.length;s++)r=r?r[n[s]]:a;return r===a?i:r}:typeof define=="function"&&define.amd?define(function(){return function(r,n,i,s,a){for(n=n.split?n.split("."):n,s=0;s<n.length;s++)r=r?r[n[s]]:a;return r===a?i:r}}):t.dlv=function(r,n,i,s,a){for(n=n.split?n.split("."):n,s=0;s<n.length;s++)r=r?r[n[s]]:a;return r===a?i:r}})(Wt)});var cr=te((ic,Ke)=>{function os(t,e){this.v=t,this.k=e}Ke.exports=os,Ke.exports.__esModule=!0,Ke.exports.default=Ke.exports});var lr=te((ac,me)=>{function Tt(t,e,r,n){var i=Object.defineProperty;try{i({},"",{})}catch{i=0}me.exports=Tt=function(a,o,c,u){function f(d,m){Tt(a,d,function(g){return this._invoke(d,m,g)})}o?i?i(a,o,{value:c,enumerable:!u,configurable:!u,writable:!u}):a[o]=c:(f("next",0),f("throw",1),f("return",2))},me.exports.__esModule=!0,me.exports.default=me.exports,Tt(t,e,r,n)}me.exports=Tt,me.exports.__esModule=!0,me.exports.default=me.exports});var fr=te((sc,ge)=>{var le=lr();function Jn(){var t,e,r=typeof Symbol=="function"?Symbol:{},n=r.iterator||"@@iterator",i=r.toStringTag||"@@toStringTag";function s(g,A,I,E){var x=A&&A.prototype instanceof o?A:o,y=Object.create(x.prototype);return le(y,"_invoke",(function(M,v,h){var P,w,b,D=0,H=h||[],L=!1,R={p:0,n:0,v:t,a:z,f:z.bind(t,4),d:function(S,j){return P=S,w=0,b=t,R.n=j,a}};function z(k,S){for(w=k,b=S,e=0;!L&&D&&!j&&e<H.length;e++){var j,C=H[e],ee=R.p,l=C[2];k>3?(j=l===S)&&(b=C[(w=C[4])?5:(w=3,3)],C[4]=C[5]=t):C[0]<=ee&&((j=k<2&&ee<C[1])?(w=0,R.v=S,R.n=C[1]):ee<l&&(j=k<3||C[0]>S||S>l)&&(C[4]=k,C[5]=S,R.n=l,w=0))}if(j||k>1)return a;throw L=!0,S}return function(k,S,j){if(D>1)throw TypeError("Generator is already running");for(L&&S===1&&z(S,j),w=S,b=j;(e=w<2?t:b)||!L;){P||(w?w<3?(w>1&&(R.n=-1),z(w,b)):R.n=b:R.v=b);try{if(D=2,P){if(w||(k="next"),e=P[k]){if(!(e=e.call(P,b)))throw TypeError("iterator result is not an object");if(!e.done)return e;b=e.value,w<2&&(w=0)}else w===1&&(e=P.return)&&e.call(P),w<2&&(b=TypeError("The iterator does not provide a '"+k+"' method"),w=1);P=t}else if((e=(L=R.n<0)?b:M.call(v,R))!==a)break}catch(C){P=t,w=1,b=C}finally{D=1}}return{value:e,done:L}}})(g,I,E),!0),y}var a={};function o(){}function c(){}function u(){}e=Object.getPrototypeOf;var f=[][n]?e(e([][n]())):(le(e={},n,function(){return this}),e),d=u.prototype=o.prototype=Object.create(f);function m(g){return Object.setPrototypeOf?Object.setPrototypeOf(g,u):(g.__proto__=u,le(g,i,"GeneratorFunction")),g.prototype=Object.create(d),g}return c.prototype=u,le(d,"constructor",u),le(u,"constructor",c),c.displayName="GeneratorFunction",le(u,i,"GeneratorFunction"),le(d),le(d,i,"Generator"),le(d,n,function(){return this}),le(d,"toString",function(){return"[object Generator]"}),(ge.exports=Jn=function(){return{w:s,m}},ge.exports.__esModule=!0,ge.exports.default=ge.exports)()}ge.exports=Jn,ge.exports.__esModule=!0,ge.exports.default=ge.exports});var mr=te((oc,Ye)=>{var us=cr(),dr=lr();function pr(t,e){function r(i,s,a,o){try{var c=t[i](s),u=c.value;return u instanceof us?e.resolve(u.v).then(function(f){r("next",f,a,o)},function(f){r("throw",f,a,o)}):e.resolve(u).then(function(f){c.value=f,a(c)},function(f){return r("throw",f,a,o)})}catch(f){o(f)}}var n;this.next||(dr(pr.prototype),dr(pr.prototype,typeof Symbol=="function"&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),dr(this,"_invoke",function(i,s,a){function o(){return new e(function(c,u){r(i,a,c,u)})}return n=n?n.then(o,o):o()},!0)}Ye.exports=pr,Ye.exports.__esModule=!0,Ye.exports.default=Ye.exports});var gr=te((uc,Xe)=>{var cs=fr(),ls=mr();function fs(t,e,r,n,i){return new ls(cs().w(t,e,r,n),i||Promise)}Xe.exports=fs,Xe.exports.__esModule=!0,Xe.exports.default=Xe.exports});var Zn=te((cc,Je)=>{var ds=gr();function ps(t,e,r,n,i){var s=ds(t,e,r,n,i);return s.next().then(function(a){return a.done?a.value:s.next()})}Je.exports=ps,Je.exports.__esModule=!0,Je.exports.default=Je.exports});var Qn=te((lc,Ze)=>{function ms(t){var e=Object(t),r=[];for(var n in e)r.unshift(n);return function i(){for(;r.length;)if((n=r.pop())in e)return i.value=n,i.done=!1,i;return i.done=!0,i}}Ze.exports=ms,Ze.exports.__esModule=!0,Ze.exports.default=Ze.exports});var ei=te((fc,he)=>{function hr(t){"@babel/helpers - typeof";return he.exports=hr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},he.exports.__esModule=!0,he.exports.default=he.exports,hr(t)}he.exports=hr,he.exports.__esModule=!0,he.exports.default=he.exports});var ti=te((dc,Qe)=>{var gs=ei().default;function hs(t){if(t!=null){var e=t[typeof Symbol=="function"&&Symbol.iterator||"@@iterator"],r=0;if(e)return e.call(t);if(typeof t.next=="function")return t;if(!isNaN(t.length))return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}}}throw new TypeError(gs(t)+" is not iterable")}Qe.exports=hs,Qe.exports.__esModule=!0,Qe.exports.default=Qe.exports});var ni=te((pc,ve)=>{var vs=cr(),ys=fr(),bs=Zn(),ws=gr(),Ss=mr(),Es=Qn(),ri=ti();function vr(){"use strict";var t=ys(),e=t.m(vr),r=(Object.getPrototypeOf?Object.getPrototypeOf(e):e.__proto__).constructor;function n(a){var o=typeof a=="function"&&a.constructor;return!!o&&(o===r||(o.displayName||o.name)==="GeneratorFunction")}var i={throw:1,return:2,break:3,continue:3};function s(a){var o,c;return function(u){o||(o={stop:function(){return c(u.a,2)},catch:function(){return u.v},abrupt:function(d,m){return c(u.a,i[d],m)},delegateYield:function(d,m,g){return o.resultName=m,c(u.d,ri(d),g)},finish:function(d){return c(u.f,d)}},c=function(d,m,g){u.p=o.prev,u.n=o.next;try{return d(m,g)}finally{o.next=u.n}}),o.resultName&&(o[o.resultName]=u.v,o.resultName=void 0),o.sent=u.v,o.next=u.n;try{return a.call(this,o)}finally{u.p=o.prev,u.n=o.next}}}return(ve.exports=vr=function(){return{wrap:function(c,u,f,d){return t.w(s(c),u,f,d&&d.reverse())},isGeneratorFunction:n,mark:t.m,awrap:function(c,u){return new vs(c,u)},AsyncIterator:Ss,async:function(c,u,f,d,m){return(n(u)?ws:bs)(s(c),u,f,d,m)},keys:Es,values:ri}},ve.exports.__esModule=!0,ve.exports.default=ve.exports)()}ve.exports=vr,ve.exports.__esModule=!0,ve.exports.default=ve.exports});var ai=te((mc,ii)=>{var xt=ni()();ii.exports=xt;try{regeneratorRuntime=xt}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=xt:Function("r","regeneratorRuntime = r")(xt)}});var yi=te((Ec,vi)=>{"use strict";var Is=function(e){return As(e)&&!Ps(e)};function As(t){return!!t&&typeof t=="object"}function Ps(t){var e=Object.prototype.toString.call(t);return e==="[object RegExp]"||e==="[object Date]"||Ns(t)}var Ts=typeof Symbol=="function"&&Symbol.for,xs=Ts?Symbol.for("react.element"):60103;function Ns(t){return t.$$typeof===xs}function ks(t){return Array.isArray(t)?[]:{}}function tt(t,e){return e.clone!==!1&&e.isMergeableObject(t)?Le(ks(t),t,e):t}function js(t,e,r){return t.concat(e).map(function(n){return tt(n,r)})}function _s(t,e){if(!e.customMerge)return Le;var r=e.customMerge(t);return typeof r=="function"?r:Le}function Cs(t){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(e){return Object.propertyIsEnumerable.call(t,e)}):[]}function gi(t){return Object.keys(t).concat(Cs(t))}function hi(t,e){try{return e in t}catch{return!1}}function Ms(t,e){return hi(t,e)&&!(Object.hasOwnProperty.call(t,e)&&Object.propertyIsEnumerable.call(t,e))}function Ds(t,e,r){var n={};return r.isMergeableObject(t)&&gi(t).forEach(function(i){n[i]=tt(t[i],r)}),gi(e).forEach(function(i){Ms(t,i)||(hi(t,i)&&r.isMergeableObject(e[i])?n[i]=_s(i,r)(t[i],e[i],r):n[i]=tt(e[i],r))}),n}function Le(t,e,r){r=r||{},r.arrayMerge=r.arrayMerge||js,r.isMergeableObject=r.isMergeableObject||Is,r.cloneUnlessOtherwiseSpecified=tt;var n=Array.isArray(e),i=Array.isArray(t),s=n===i;return s?n?r.arrayMerge(t,e,r):Ds(t,e,r):tt(e,r)}Le.all=function(e,r){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(n,i){return Le(n,i,r)},{})};var Us=Le;vi.exports=Us});function Gt(){var t;return!!(!((t=window?.navigator)===null||t===void 0)&&t.globalPrivacyControl)}function Yr(t={}){let{disabled:e,portal:r,requireConsent:n,userPrivacySettings:i}=t;if(n)if(i?.accepted){if(i?.functional===!1&&i?.performance===!1&&i?.targeting===!1)return!0}else return!0;return i?.accepted===!0&&i?.functional===!1&&i?.performance===!1&&i?.targeting===!1||e||r?.eueiEnabled===!1||Gt()?!0:!(!r||Qi(r)||ea(r)||ta(r))}function Qi(t){return t.eueiEnabled&&t.user&&t.user.orgId===t.id}function ea(t){return t.user&&!t.user.orgId&&t.ipCntryCode==="US"}function ta(t){return!t.user&&t.ipCntryCode==="US"}var Pe={storage:{},memory:!0,get(t){let e;try{e=window.localStorage&&window.localStorage.getItem(t)||this.storage[t]}catch{e=this.storage[t]}if(e)try{return JSON.parse(e)}catch{return}else return},set(t,e){let r=JSON.stringify(e);try{window.localStorage.setItem(t,r)}catch{this.memory||(console.error("setting local storage failed, falling back to in-memory storage"),this.memory=!0),this.storage[t]=e}},delete(t){try{window.localStorage.removeItem(t)}catch{this.memory||(console.error("setting local storage failed, falling back to in-memory storage"),this.memory=!0),delete this.storage[t]}}};var Xr="esri-telemetry";function Jr(t){return new Promise((r,n)=>{t.onload=r,t.onerror=n,(!na(t)||t.body)&&r()})}function ra(t){let{id:e,dataAttribute:r}=t;return!!document.getElementById(e)||!!document.querySelector(`[data-${Xr}="${r}"]`)}function na(t){let{body:e,src:r,id:n,dataAttribute:i,section:s="body",type:a="text/javascript",async:o=!1,defer:c=!1,onload:u,onerror:f}=t;if(typeof window>"u")throw new Ve("Window is undefined: Cannot add script element.");if(ra(t)){console.log(`script (${n||i}) is already present, skipping`);return}let d=ia({id:n,dataAttribute:i,type:a,async:o,defer:c,body:e,src:r,onload:u,onerror:f});return s==="body"?document.body.appendChild(d):document.head.appendChild(d)}var Ve=class extends Error{};function ia({id:t,dataAttribute:e,type:r,async:n,defer:i,body:s,src:a,onload:o,onerror:c}){let u=document.createElement("script");return t&&(u.id=t),e&&u.setAttribute(`data-${Xr}`,e),a&&(u.src=a),s&&(u.innerText=s),u.type=r,u.async=n,u.defer=i,o&&(u.onload=o),c&&(u.onerror=c),u}function Zr(t){return t.map(e=>{let r=[];return["src","id","dataAttribute","type"].forEach(n=>{let i=n;n==="dataAttribute"&&(i="data-esri-telemetry"),e[n]&&r.push(`${i}="${e[n]}"`)}),["async","defer"].forEach(n=>{e[n]&&r.push(`${n}`)}),`<script ${r.join(" ")}>${e.body?e.body:""}<\/script>`}).join("")}var aa=["esri.com","esriuk.com","esri.de","esri.ca","esrifrance.fr","esri.nl","esri-portugal.pt","esribulgaria.com","esri.fi","esri.kr","esrimalaysia.com.my","esri.es","esriaustralia.com.au","esri-southafrica.com","esri.cl","esrichina.com.cn","esri.co","esriturkey.com.tr","geodata.no","esriitalia.it","esri.pl"],ot=class{constructor(e){var r,n,i;this.trackers=[],this.options=e,this.debug=e.debug,this.suppressDisabledWarnings=e.suppressDisabledWarnings,this.logger=e.logger||console,e.userPrivacySettings&&(this._userPrivacySettings=e.userPrivacySettings),e.requireConsent&&!e.userPrivacySettings&&(this._userPrivacySettings={accepted:!1,performance:!1,targeting:!1,functional:!1,id:ua(),timestamp:Date.now()},e.userPrivacySettings=this._userPrivacySettings),this.disabled=Yr(e),this.disabled&&!this.suppressDisabledWarnings&&this.logger.info("Telemetry Disabled");let s=((r=e.portal)===null||r===void 0?void 0:r.user)||e.user;s&&this.setUser(s,(i=(n=e.portal)===null||n===void 0?void 0:n.subscriptionInfo)===null||i===void 0?void 0:i.type),this.disabled||this.initializeTrackers()}shouldInitializeTrackers(e,r,n){let i=!r&&!e?.accepted,s=n.every(a=>e?.[a]);return i||s}filterTrackers(e){return this.options.plugins.filter(r=>e.includes(r.name))}initializeTrackers(){let e=this._userPrivacySettings,r=this.options.requireConsent;this.trackers=[],this.options.plugins&&(e?(this.shouldInitializeTrackers(e,r,["performance"])&&this.trackers.push(...this.filterTrackers(["amazon"])),this.shouldInitializeTrackers(e,r,["performance","targeting","functional"])&&this.trackers.push(...this.filterTrackers(["adobe-analytics","googleAnalytics","siteimprove"]))):this.trackers.push(...this.options.plugins)),this.trackers.length||this.logger.info("No trackers configured")}getScriptTags(){return this.trackers.map(e=>e.getScriptTags&&e.getScriptTags()).join("")}async init(){let e=this.trackers.map(r=>r.init());await Promise.all(e)}setUser(e={},r="Public"){e=typeof e=="string"?{username:e}:e,this.user=e,this.user.accountType=r;let n;if(e.email&&e.email.split){let i=e.email.split("@")[1];n=aa.filter(s=>i===s).length>0}(n||["In House","Demo and Marketing"].indexOf(r)>-1)&&(this.user.internalUser=!0)}async updateUserPrivacySettings(e){let{accepted:r,performance:n,targeting:i,functional:s}=this._userPrivacySettings,a=e.accepted&&!r&&!this.options.requireConsent&&(!e.performance||!e.targeting||!e.functional)||!e.performance&&n||!e.targeting&&i||!e.functional&&s;return this._userPrivacySettings=e,a||(this.disabled=!1,this.initializeTrackers(),await this.init()),{reload:a}}logPageView(e,r={},n={}){if(this.disabled&&!this.suppressDisabledWarnings)return this.logger.info("Page view was not logged because telemetry is disabled."),!1;let i=this.trackers.filter(({disabled:o,hasError:c})=>!o&&!c);if(!i.length)return this.logger.info("Page view was not logged because no enabled telemetry-plugins are registered."),!1;let s=this.preProcess(r,n);this.debug&&this.logger.info("Tracking page view",JSON.stringify(s));let a=i.map(o=>o.logPageView(e,s));return Promise.all(a).then(),!0}logEvent(e,r={}){if(this.disabled&&!this.suppressDisabledWarnings)return this.logger.info("Event was not logged because telemetry is disabled."),!1;let n=this.trackers.filter(({disabled:a,hasError:o})=>!a&&!o);if(!n.length)return this.logger.info("Event was not logged because no enabled telemetry-plugins are registered."),!1;let i=this.preProcess(e,r);this.debug&&this.logger.info("Tracking event",JSON.stringify(i));let s=n.map(a=>a.logEvent(i));return Promise.all(s).then(),!0}logError(e={}){e=Object.assign({eventType:"error"},e),this.logEvent(e)}startWorkflow(e,r={}){let n={name:e,start:Date.now(),steps:[],workflowId:Math.floor((1+Math.random())*17592186044416).toString(16)};this.saveWorkflow(n);let i=Object.assign({name:e,step:"start"},r);return this.logWorkflow(i),n}stepWorkflow(e,r,n={}){let i=typeof n=="string"?n:n.details,s=Object.assign({name:e,step:r,details:i},n);this.logWorkflow(s)}endWorkflow(e,r={}){let n=Object.assign({name:e,step:"finish"},r);this.logWorkflow(n)}cancelWorkflow(e,r={}){let n=Object.assign({name:e,step:"cancel"},r);this.logWorkflow(n)}getWorkflow(e){let r=Pe.get(`TELEMETRY-WORKFLOW:${e}`);if(r){let n=Date.now()-r.start,i=1800*1e3;if(n<i)return r;this.deleteWorkflow(r)}}saveWorkflow(e){Pe.set(`TELEMETRY-WORKFLOW:${e.name}`,e)}deleteWorkflow(e){Pe.delete(`TELEMETRY-WORKFLOW:${e.name}`)}logWorkflow(e={}){e=this.preProcess(e);let r=this.getWorkflow(e.name);r||(this.startWorkflow(e.name),r=this.getWorkflow(e.name)),r.steps.push(e.step),r.duration=(Date.now()-r.start)/1e3,["cancel","finish"].indexOf(e.step)>-1?this.deleteWorkflow(r):this.saveWorkflow(r);let n=Object.assign(e,{eventType:"workflow",category:e.name,action:e.step,label:e.details,duration:r.duration,workflowId:r.workflowId});this.logEvent(n)}preProcess(e={},r={}){let n={};return this.user&&(n={user:"unknown",org:"unknown",lastLogin:this.user.lastLogin,userSince:this.user.created,internalUser:this.user.internalUser||!1,accountType:this.user.accountType}),Object.entries(Object.assign(Object.assign({},e),n)).reduce(sa(r.omitComplexData,this.logger),{})}disable(){this.disabled=!0,this.trackers.forEach(e=>{var r;e.hasError||(e.disabled=!0,(r=e.disable)===null||r===void 0||r.call(e))})}disableTracker(e){var r;let n=this.trackers.find(({name:i})=>i===e);n&&!n.hasError&&(n.disabled=!0,(r=n.disable)===null||r===void 0||r.call(n))}enableTracker(e){var r;let n=this.trackers.find(({name:i})=>i===e);n&&!n.hasError&&(n.disabled=!1,(r=n.enable)===null||r===void 0||r.call(n))}};function sa(t,e){return function(r,[n,i]){return oa(i)?r[n]=i:t||(e.warn(`You are trying to log a non-primitive value, ${n}:${JSON.stringify(i)}. This will get logged as [object Object]`),r[n]=i),r}}function oa(t){return["string","number","boolean","undefined"].includes(typeof t)||t&&typeof t.valueOf()=="string"}function ua(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){let e=Math.random()*16|0;return(t==="x"?e:e&3|8).toString(16)})}var ut=class{constructor(e){var r;if(this.name="googleAnalytics",this.dimensions={},this.metrics={},this.isInitialized=!1,typeof window<"u"&&!(!((r=e?.measurementIds)===null||r===void 0)&&r.length))throw new Error("at least one measurementId needs to be provided in your configuration");Object.assign(this,e)}_getScripts(){return[{dataAttribute:"google-analytics",async:!0,src:`https://www.googletagmanager.com/gtag/js?id=${this.measurementIds?this.measurementIds[0]:""}`}]}getScriptTags(){return Zr(this._getScripts())}async init(){if(!this.isInitialized){if(typeof window>"u")throw new Ve("Window is undefined: Cannot add script element.");await Promise.all(this._getScripts().map(e=>Jr(e))),this.injectConfig(),this.isInitialized=!0}}logPageView(e,r={}){let n=this.buildCustomParams(r),i=Object.assign({page_title:e||window.location.pathname},n);return window.gtag("event","page_view",i),!0}logEvent(e){let{action:r}=e,n=at(e,["action"]),i=r||"other",s=this.buildCustomParams(n);return window.gtag("event",i,s),!0}disable(){this.measurementIds&&this.measurementIds.forEach(e=>{window[`ga-disable-${e}`]=!0})}enable(){this.measurementIds&&this.measurementIds.forEach(e=>{window[`ga-disable-${e}`]=void 0})}injectConfig(){window.dataLayer=window.dataLayer||[],window.gtag=function(){window.dataLayer.push(arguments)},window.gtag("js",new Date);let e={custom_map:this.createDimensionsAndMetricsCustomMap(this.dimensions,this.metrics),send_page_view:!1,anonymize_ip:!0};this.measurementIds.forEach(r=>{window.gtag("config",r,e)})}buildCustomParams(e){let r,{category:n,label:i}=e;return r=this.verifyCustomDimensionAndMetrics(e),n&&(r=Object.assign(Object.assign({},r),{event_category:n})),i&&(r=Object.assign(Object.assign({},r),{event_label:i})),r}verifyCustomDimensionAndMetrics(e){let r=this.createDimensionsAndMetricsCustomMap(this.dimensions,this.metrics),n=Object.values(r);return Object.keys(e).filter(s=>n.includes(s)).reduce((s,a)=>Object.assign(s,{[a]:e[a]}),{})}createDimensionsAndMetricsCustomMap(e={},r={}){let n=this.createMetricCustomMap(r),i=this.createDimensionCustomMap(e);return Object.assign(Object.assign({},n),i)}createMetricCustomMap(e={}){return Object.keys(e).map(function(r){return{key:`metric${e[r]}`,value:r}}).filter(r=>r).reduce((r,{key:n,value:i})=>(r[n]=i,r),{})}createDimensionCustomMap(e={}){return Object.keys(e).map(function(r){return{key:`dimension${e[r]}`,value:r}}).filter(r=>r).reduce((r,{key:n,value:i})=>(r[n]=i,r),{})}};var Qr="TELEMETRY_COGNITO_CREDENTIALS";function en(t,e={}){let n=`https://cognito-identity${e.fips===!0?"-fips":""}.us-east-1.amazonaws.com/`,i=Pe.get(Qr);if(i&&Date.now()/1e3<i.Expiration)return Promise.resolve(i);let s={method:"POST",headers:{"Content-type":"application/x-amz-json-1.1","X-Amz-Target":"AWSCognitoIdentityService.GetId"},body:JSON.stringify({IdentityPoolId:t})};return fetch(n,s).then(a=>{if(!a.ok)throw new Error(a.statusText);return a.json()}).then(a=>{let{IdentityId:o}=a,c={method:"POST",headers:{"Content-type":"application/x-amz-json-1.1","X-Amz-Target":"AWSCognitoIdentityService.GetCredentialsForIdentity"},body:JSON.stringify({IdentityId:o})};return fetch(n,c)}).then(a=>{if(!a.ok)throw new Error(a.statusText);return a.json()}).then(({Credentials:a})=>(Pe.set(Qr,a),a))}function ct({telemetryData:t,dimensionLookup:e={},excludeKeys:r=[]}){return Object.keys(t).filter(n=>!r.includes(n)).map(n=>e[n]?{key:la(e,n),value:t[n]}:{key:n,value:ca(t,n)}).reduce((n,{key:i,value:s})=>(n[i]=s,n),{})}function ca(t,e){return e==="json"?t[e]?JSON.stringify(t[e]):"null":t[e]===void 0?"null":t[e].toString()}function la(t,e){return`dimension${t[e]}`}var fa=["size","duration","position","number","count"];function lt(t,e={}){return Object.keys(t).filter(r=>e[r]||fa.includes(r)).map(r=>e[r]?{key:da(e,r),value:t[r]}:{key:r,value:t[r]}).reduce((r,{key:n,value:i})=>(r[n]=i,r),{})}function da(t,e){return`metric${t[e]}`}function tn({event:t={},dimensionLookup:e={},metricLookup:r={}}){var n,i;let{pathname:s,eventType:a="other"}=t,o=lt(t,r),c=ct({telemetryData:Object.assign({eventType:a},t),dimensionLookup:e,excludeKeys:["workflow","pathname",...Object.keys(o),...Object.keys(r)]}),u=Object.assign(Object.assign({name:a},c),o);return typeof document<"u"&&document.referrer&&(u.referrer=document.referrer),typeof window<"u"&&!u.hostname&&(u.hostname=(n=window.location)===null||n===void 0?void 0:n.hostname),u.path=typeof window<"u"&&window.location.pathname?(i=window.location)===null||i===void 0?void 0:i.pathname:s,u}function rn({page:t,previousPage:e={},options:r={},dimensionLookup:n={},metricLookup:i={}}){let s=lt(r,i),a=ct({telemetryData:r,dimensionLookup:n,excludeKeys:["workflow",...Object.keys(s),...Object.keys(i)]}),{referrer:o,title:c}=document||{},{hostname:u,pathname:f}=window&&window.location?window.location:{};return Object.assign(Object.assign({name:"pageView",referrer:o,hostname:u,path:t||f,pageUrl:t||f,pageName:c,previousPageUrl:e.pageUrl,previousPageName:e.pageName},a),s)}var gt=Vt(nn(),1);var pa="function",ma="string",ne="undefined",ga="boolean",_e="object",ha="array",va="number",ya="symbol",ba="null";var an=function(){},Ft="any",Bt="*";var de="__",wa="form",Sa="input",Ea="button",Oa="select";var ft=typeof process!==ne?process:{},vu=ft.env&&ft.env.NODE_ENV||"";var re=typeof document!==ne,yu=re&&window.location.hostname==="localhost",bu=ft.versions!=null&&ft.versions.node!=null,wu=typeof Deno!==ne&&typeof Deno.core!==ne,Su=typeof self===_e&&self.constructor&&self.constructor.name==="DedicatedWorkerGlobalScope",Eu=re&&window.name==="nodejs"||typeof navigator!==ne&&typeof navigator.userAgent!==ne&&(navigator.userAgent.includes("Node.js")||navigator.userAgent.includes("jsdom"));function sn(t,e){return e.charAt(0)[t]()+e.slice(1)}var Ia=sn.bind(null,"toUpperCase"),Aa=sn.bind(null,"toLowerCase");function Pa(t){return un(t)?Ia(ba):typeof t===_e?Na(t):Object.prototype.toString.call(t).slice(8,-1)}function dt(t,e){e===void 0&&(e=!0);var r=Pa(t);return e?Aa(r):r}function Ge(t,e){return typeof e===t}var Y=Ge.bind(null,pa),ie=Ge.bind(null,ma),Te=Ge.bind(null,ne);var on=Ge.bind(null,ga),Ou=Ge.bind(null,ya);function un(t){return t===null}function Ta(t){return dt(t)===va&&!isNaN(t)}function $t(t){return dt(t)===ha}function K(t){if(!xa(t))return!1;for(var e=t;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}function xa(t){return t&&(typeof t===_e||t!==null)}function Na(t){return Y(t.constructor)?t.constructor.name:null}function ka(t){return t instanceof Error||ie(t.message)&&t.constructor&&Ta(t.constructor.stackTraceLimit)}function cn(t,e){if(typeof e!="object"||un(e))return!1;if(e instanceof t)return!0;var r=dt(new t(""));if(ka(e))for(;e;){if(dt(e)===r)return!0;e=Object.getPrototypeOf(e)}return!1}var Iu=cn.bind(null,TypeError),Au=cn.bind(null,SyntaxError);function pt(t,e){var r=t instanceof Element||t instanceof HTMLDocument;return r&&e?ja(t,e):r}function ja(t,e){return e===void 0&&(e=""),t&&t.nodeName===e.toUpperCase()}function mt(t){var e=[].slice.call(arguments,1);return function(){return t.apply(void 0,[].slice.call(arguments).concat(e))}}var Pu=mt(pt,wa),Tu=mt(pt,Ea),xu=mt(pt,Sa),Nu=mt(pt,Oa);function ln(t){return t?$t(t)?t:[t]:[]}function fn(t){try{return decodeURIComponent(t.replace(/\+/g," "))}catch{return null}}function dn(t){return(function(e){for(var r,n=Object.create(null),i=/([^&=]+)=?([^&]*)/g;r=i.exec(e);){var s=fn(r[1]),a=fn(r[2]);if(s)if(s.substring(s.length-2)==="[]"){var o=n[s=s.substring(0,s.length-2)]||(n[s]=[]);n[s]=Array.isArray(o)?o:[],n[s].push(a)}else n[s]=a===""||a}for(var c in n){var u=c.split("[");u.length>1&&(_a(n,u.map(function(f){return f.replace(/[?[\]\\ ]/g,"")}),n[c]),delete n[c])}return n})((function(e){if(e){var r=e.match(/\?(.*)/);return r&&r[1]?r[1].split("#")[0]:""}return re&&window.location.search.substring(1)})(t))}function _a(t,e,r){for(var n=e.length-1,i=0;i<n;++i){var s=e[i];if(s==="__proto__"||s==="constructor")break;s in t||(t[s]={}),t=t[s]}t[e[n]]=r}function oe(){for(var t="",e=0,r=4294967295*Math.random()|0;e++<36;){var n="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx"[e-1],i=15&r;t+=n=="-"||n=="4"?n:(n=="x"?i:3&i|8).toString(16),r=e%8==0?4294967295*Math.random()|0:r>>4}return t}var be="global",xe=de+be+de,Ne=typeof self===_e&&self.self===self&&self||typeof global===_e&&global[be]===global&&global||void 0;function X(t){return Ne[xe][t]}function J(t,e){return Ne[xe][t]=e}function se(t){delete Ne[xe][t]}function we(t,e,r){var n;try{if(We(t)){var i=window[t];n=i[e].bind(i)}}catch{}return n||r}Ne[xe]||(Ne[xe]={});var ht={};function We(t){if(typeof ht[t]!==ne)return ht[t];try{var e=window[t];e.setItem(ne,ne),e.removeItem(ne)}catch{return ht[t]=!1}return ht[t]=!0}function T(){return T=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)({}).hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},T.apply(null,arguments)}var Ee="function",pe="undefined",Fe="reducer",jn="@@redux/",Zt=jn+"INIT",Ca=jn+Math.random().toString(36),pn=(function(){return typeof Symbol===Ee&&Symbol.observable||"@@observable"})(),vt=" != "+Ee;function _n(t,e,r){var n;if(typeof e===Ee&&typeof r===pe&&(r=e,e=void 0),typeof r!==pe){if(typeof r!==Ee)throw new Error("enhancer"+vt);return r(_n)(t,e)}if(typeof t!==Ee)throw new Error(Fe+vt);var i=t,s=e,a=[],o=a,c=!1;function u(){o===a&&(o=a.slice())}function f(){return s}function d(g){if(typeof g!==Ee)throw new Error("Listener"+vt);var A=!0;return u(),o.push(g),function(){if(A){A=!1,u();var I=o.indexOf(g);o.splice(I,1)}}}function m(g){if(!K(g))throw new Error("Act != obj");if(typeof g.type===pe)throw new Error("ActType "+pe);if(c)throw new Error("Dispatch in "+Fe);try{c=!0,s=i(s,g)}finally{c=!1}for(var A=a=o,I=0;I<A.length;I++)(0,A[I])();return g}return m({type:Zt}),(n={dispatch:m,subscribe:d,getState:f,replaceReducer:function(g){if(typeof g!==Ee)throw new Error("next "+Fe+vt);i=g,m({type:Zt})}})[pn]=function(){var g,A=d;return(g={subscribe:function(I){if(typeof I!="object")throw new TypeError("Observer != obj");function E(){I.next&&I.next(f())}return E(),{unsubscribe:A(E)}}})[pn]=function(){return this},g},n}function Ma(t,e){var r=e&&e.type;return"action "+(r&&r.toString()||"?")+Fe+" "+t+" returns "+pe}function Ue(){var t=[].slice.call(arguments);return t.length===0?function(e){return e}:t.length===1?t[0]:t.reduce(function(e,r){return function(){return e(r.apply(void 0,[].slice.call(arguments)))}})}function Da(){var t=arguments;return function(e){return function(r,n,i){var s,a=e(r,n,i),o=a.dispatch,c={getState:a.getState,dispatch:function(u){return o(u)}};return s=[].slice.call(t).map(function(u){return u(c)}),T({},a,{dispatch:o=Ue.apply(void 0,s)(a.dispatch)})}}}var Oe=de+"anon_id",ke=de+"user_id",Me=de+"user_traits";var Qt="analytics",Se="userId",Ce="anonymousId",wt=["bootstrap","params","campaign","initializeStart","initialize","initializeEnd","ready","resetStart","reset","resetEnd","pageStart","page","pageEnd","pageAborted","trackStart","track","trackEnd","trackAborted","identifyStart","identify","identifyEnd","identifyAborted","userIdChanged","registerPlugins","enablePlugin","disablePlugin","online","offline","setItemStart","setItem","setItemEnd","setItemAborted","removeItemStart","removeItem","removeItemEnd","removeItemAborted"],er=["name","EVENTS","config","loaded"],N=wt.reduce(function(t,e){return t[e]=e,t},{registerPluginType:function(t){return"registerPlugin:"+t},pluginReadyType:function(t){return"ready:"+t}}),mn=/^utm_/,gn=/^an_prop_/,hn=/^an_trait_/;function Ua(t){var e=t.storage.setItem;return function(r){return function(n){return function(i){if(i.type===N.bootstrap){var s=i.params,a=i.user,o=i.persistedUser,c=i.initialUser,u=o.userId===a.userId;o.anonymousId!==a.anonymousId&&e(Oe,a.anonymousId),u||e(ke,a.userId),c.traits&&e(Me,T({},u&&o.traits?o.traits:{},c.traits));var f=Object.keys(i.params);if(f.length){var d=s.an_uid,m=s.an_event,g=f.reduce(function(A,I){if(I.match(mn)||I.match(/^(d|g)clid/)){var E=I.replace(mn,"");A.campaign[E==="campaign"?"name":E]=s[I]}return I.match(gn)&&(A.props[I.replace(gn,"")]=s[I]),I.match(hn)&&(A.traits[I.replace(hn,"")]=s[I]),A},{campaign:{},props:{},traits:{}});r.dispatch(T({type:N.params,raw:s},g,d?{userId:d}:{})),d&&setTimeout(function(){return t.identify(d,g.traits)},0),m&&setTimeout(function(){return t.track(m,g.props)},0),Object.keys(g.campaign).length&&r.dispatch({type:N.campaign,campaign:g.campaign})}}return n(i)}}}}function Ra(t){return function(e,r){if(e===void 0&&(e={}),r===void 0&&(r={}),r.type===N.setItemEnd){if(r.key===Oe)return T({},e,{anonymousId:r.value});if(r.key===ke)return T({},e,{userId:r.value})}switch(r.type){case N.identify:return Object.assign({},e,{userId:r.userId,traits:T({},e.traits,r.traits)});case N.reset:return[ke,Oe,Me].forEach(function(n){t.removeItem(n)}),Object.assign({},e,{userId:null,anonymousId:null,traits:{}});default:return e}}}function vn(t){return{userId:t.getItem(ke),anonymousId:t.getItem(Oe),traits:t.getItem(Me)}}var tr=function(t){return de+"TEMP"+de+t};function za(t){var e=t.storage,r=e.setItem,n=e.removeItem,i=e.getItem;return function(s){return function(a){return function(o){var c=o.userId,u=o.traits,f=o.options;if(o.type===N.reset&&([ke,Me,Oe].forEach(function(g){n(g)}),[Se,Ce,"traits"].forEach(function(g){se(tr(g))})),o.type===N.identify){i(Oe)||r(Oe,oe());var d=i(ke),m=i(Me)||{};d&&d!==c&&s.dispatch({type:N.userIdChanged,old:{userId:d,traits:m},new:{userId:c,traits:u},options:f}),c&&r(ke,c),u&&r(Me,T({},m,u))}return a(o)}}}}var qe={};function yn(t,e){qe[t]&&Y(qe[t])&&(qe[t](e),delete qe[t])}function Cn(t,e,r){return new Promise(function(n,i){return e()?n(t):r<1?i(T({},t,{queue:!0})):new Promise(function(s){return setTimeout(s,10)}).then(function(s){return Cn(t,e,r-10).then(n,i)})})}function La(t){return{abort:t}}var Kt=function(t){var e=t.data,r=t.action,n=t.instance,i=t.state,s=t.allPlugins,a=t.allMatches,o=t.store,c=t.EVENTS;try{var u=i.plugins,f=i.context,d=r.type,m=d.match(De),g=e.exact.map(function(E){return E.pluginName});m&&(g=a.during.map(function(E){return E.pluginName}));var A=(function(E,x){return function(y,M,v){var h=M.config,P=M.name,w=P+"."+y.type;v&&(w=v.event);var b=y.type.match(De)?(function(D,H,L,R,z){return function(k,S){var j=R?R.name:D,C=S&&Be(S)?S:L;if(R&&(!(C=S&&Be(S)?S:[D]).includes(D)||C.length!==1))throw new Error("Method "+H+" can only abort "+D+" plugin. "+JSON.stringify(C)+" input valid");return T({},z,{abort:{reason:k,plugins:C,caller:H,_:j}})}})(P,w,x,v,y):(function(D,H){return function(){throw new Error(D.type+" action not cancellable. Remove abort in "+H)}})(y,w);return{payload:Ha(y),instance:E,config:h||{},abort:b}}})(n,g),I=e.exact.reduce(function(E,x){var y=x.pluginName,M=x.methodName,v=!1;return M.match(/^initialize/)||M.match(/^reset/)||(v=!u[y].loaded),f.offline&&M.match(/^(page|track|identify)/)&&(v=!0),E[""+y]=v,E},{});return Promise.resolve(e.exact.reduce(function(E,x,y){var M=x.pluginName;return Promise.resolve(E).then(function(v){function h(){return Promise.resolve(v)}var P=(function(){if(e.namespaced&&e.namespaced[M])return Promise.resolve(e.namespaced[M].reduce(function(w,b,D){return Promise.resolve(w).then(function(H){return b.method&&Y(b.method)?((function(k,S){var j=An(k);if(j&&j.name===S){var C=An(j.method);throw new Error([S+" plugin is calling method "+k,"Plugins cant call self","Use "+j.method+" "+(C?"or "+C.method:"")+" in "+S+" plugin insteadof "+k].join(`
2
+ import{a as He,b as ae}from"./7CGCLEYB.js";import{a as ye}from"./US5FON7D.js";import{a as $r}from"./HSDCRKVW.js";import"./QMAV4UTN.js";import"./Y2AUIXNK.js";import{c as Kr,k as st}from"./3TAQSXLA.js";import{a as at}from"./PY6RTQDR.js";import{b as Br}from"./3L2YVDZV.js";import{H as Fr,h as Wr,q as qr}from"./T3EPRHTT.js";import{b as te,d as Vt}from"./EXBEKVP5.js";var nn=te((Wt,qt)=>{(function(t,e){typeof Wt=="object"&&typeof qt<"u"?qt.exports=function(r,n,i,s,a){for(n=n.split?n.split("."):n,s=0;s<n.length;s++)r=r?r[n[s]]:a;return r===a?i:r}:typeof define=="function"&&define.amd?define(function(){return function(r,n,i,s,a){for(n=n.split?n.split("."):n,s=0;s<n.length;s++)r=r?r[n[s]]:a;return r===a?i:r}}):t.dlv=function(r,n,i,s,a){for(n=n.split?n.split("."):n,s=0;s<n.length;s++)r=r?r[n[s]]:a;return r===a?i:r}})(Wt)});var cr=te((ic,Ke)=>{function os(t,e){this.v=t,this.k=e}Ke.exports=os,Ke.exports.__esModule=!0,Ke.exports.default=Ke.exports});var lr=te((ac,me)=>{function Tt(t,e,r,n){var i=Object.defineProperty;try{i({},"",{})}catch{i=0}me.exports=Tt=function(a,o,c,u){function f(d,m){Tt(a,d,function(g){return this._invoke(d,m,g)})}o?i?i(a,o,{value:c,enumerable:!u,configurable:!u,writable:!u}):a[o]=c:(f("next",0),f("throw",1),f("return",2))},me.exports.__esModule=!0,me.exports.default=me.exports,Tt(t,e,r,n)}me.exports=Tt,me.exports.__esModule=!0,me.exports.default=me.exports});var fr=te((sc,ge)=>{var le=lr();function Jn(){var t,e,r=typeof Symbol=="function"?Symbol:{},n=r.iterator||"@@iterator",i=r.toStringTag||"@@toStringTag";function s(g,A,I,E){var x=A&&A.prototype instanceof o?A:o,y=Object.create(x.prototype);return le(y,"_invoke",(function(M,v,h){var P,w,b,D=0,H=h||[],L=!1,R={p:0,n:0,v:t,a:z,f:z.bind(t,4),d:function(S,j){return P=S,w=0,b=t,R.n=j,a}};function z(k,S){for(w=k,b=S,e=0;!L&&D&&!j&&e<H.length;e++){var j,C=H[e],ee=R.p,l=C[2];k>3?(j=l===S)&&(b=C[(w=C[4])?5:(w=3,3)],C[4]=C[5]=t):C[0]<=ee&&((j=k<2&&ee<C[1])?(w=0,R.v=S,R.n=C[1]):ee<l&&(j=k<3||C[0]>S||S>l)&&(C[4]=k,C[5]=S,R.n=l,w=0))}if(j||k>1)return a;throw L=!0,S}return function(k,S,j){if(D>1)throw TypeError("Generator is already running");for(L&&S===1&&z(S,j),w=S,b=j;(e=w<2?t:b)||!L;){P||(w?w<3?(w>1&&(R.n=-1),z(w,b)):R.n=b:R.v=b);try{if(D=2,P){if(w||(k="next"),e=P[k]){if(!(e=e.call(P,b)))throw TypeError("iterator result is not an object");if(!e.done)return e;b=e.value,w<2&&(w=0)}else w===1&&(e=P.return)&&e.call(P),w<2&&(b=TypeError("The iterator does not provide a '"+k+"' method"),w=1);P=t}else if((e=(L=R.n<0)?b:M.call(v,R))!==a)break}catch(C){P=t,w=1,b=C}finally{D=1}}return{value:e,done:L}}})(g,I,E),!0),y}var a={};function o(){}function c(){}function u(){}e=Object.getPrototypeOf;var f=[][n]?e(e([][n]())):(le(e={},n,function(){return this}),e),d=u.prototype=o.prototype=Object.create(f);function m(g){return Object.setPrototypeOf?Object.setPrototypeOf(g,u):(g.__proto__=u,le(g,i,"GeneratorFunction")),g.prototype=Object.create(d),g}return c.prototype=u,le(d,"constructor",u),le(u,"constructor",c),c.displayName="GeneratorFunction",le(u,i,"GeneratorFunction"),le(d),le(d,i,"Generator"),le(d,n,function(){return this}),le(d,"toString",function(){return"[object Generator]"}),(ge.exports=Jn=function(){return{w:s,m}},ge.exports.__esModule=!0,ge.exports.default=ge.exports)()}ge.exports=Jn,ge.exports.__esModule=!0,ge.exports.default=ge.exports});var mr=te((oc,Ye)=>{var us=cr(),dr=lr();function pr(t,e){function r(i,s,a,o){try{var c=t[i](s),u=c.value;return u instanceof us?e.resolve(u.v).then(function(f){r("next",f,a,o)},function(f){r("throw",f,a,o)}):e.resolve(u).then(function(f){c.value=f,a(c)},function(f){return r("throw",f,a,o)})}catch(f){o(f)}}var n;this.next||(dr(pr.prototype),dr(pr.prototype,typeof Symbol=="function"&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),dr(this,"_invoke",function(i,s,a){function o(){return new e(function(c,u){r(i,a,c,u)})}return n=n?n.then(o,o):o()},!0)}Ye.exports=pr,Ye.exports.__esModule=!0,Ye.exports.default=Ye.exports});var gr=te((uc,Xe)=>{var cs=fr(),ls=mr();function fs(t,e,r,n,i){return new ls(cs().w(t,e,r,n),i||Promise)}Xe.exports=fs,Xe.exports.__esModule=!0,Xe.exports.default=Xe.exports});var Zn=te((cc,Je)=>{var ds=gr();function ps(t,e,r,n,i){var s=ds(t,e,r,n,i);return s.next().then(function(a){return a.done?a.value:s.next()})}Je.exports=ps,Je.exports.__esModule=!0,Je.exports.default=Je.exports});var Qn=te((lc,Ze)=>{function ms(t){var e=Object(t),r=[];for(var n in e)r.unshift(n);return function i(){for(;r.length;)if((n=r.pop())in e)return i.value=n,i.done=!1,i;return i.done=!0,i}}Ze.exports=ms,Ze.exports.__esModule=!0,Ze.exports.default=Ze.exports});var ei=te((fc,he)=>{function hr(t){"@babel/helpers - typeof";return he.exports=hr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},he.exports.__esModule=!0,he.exports.default=he.exports,hr(t)}he.exports=hr,he.exports.__esModule=!0,he.exports.default=he.exports});var ti=te((dc,Qe)=>{var gs=ei().default;function hs(t){if(t!=null){var e=t[typeof Symbol=="function"&&Symbol.iterator||"@@iterator"],r=0;if(e)return e.call(t);if(typeof t.next=="function")return t;if(!isNaN(t.length))return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}}}throw new TypeError(gs(t)+" is not iterable")}Qe.exports=hs,Qe.exports.__esModule=!0,Qe.exports.default=Qe.exports});var ni=te((pc,ve)=>{var vs=cr(),ys=fr(),bs=Zn(),ws=gr(),Ss=mr(),Es=Qn(),ri=ti();function vr(){"use strict";var t=ys(),e=t.m(vr),r=(Object.getPrototypeOf?Object.getPrototypeOf(e):e.__proto__).constructor;function n(a){var o=typeof a=="function"&&a.constructor;return!!o&&(o===r||(o.displayName||o.name)==="GeneratorFunction")}var i={throw:1,return:2,break:3,continue:3};function s(a){var o,c;return function(u){o||(o={stop:function(){return c(u.a,2)},catch:function(){return u.v},abrupt:function(d,m){return c(u.a,i[d],m)},delegateYield:function(d,m,g){return o.resultName=m,c(u.d,ri(d),g)},finish:function(d){return c(u.f,d)}},c=function(d,m,g){u.p=o.prev,u.n=o.next;try{return d(m,g)}finally{o.next=u.n}}),o.resultName&&(o[o.resultName]=u.v,o.resultName=void 0),o.sent=u.v,o.next=u.n;try{return a.call(this,o)}finally{u.p=o.prev,u.n=o.next}}}return(ve.exports=vr=function(){return{wrap:function(c,u,f,d){return t.w(s(c),u,f,d&&d.reverse())},isGeneratorFunction:n,mark:t.m,awrap:function(c,u){return new vs(c,u)},AsyncIterator:Ss,async:function(c,u,f,d,m){return(n(u)?ws:bs)(s(c),u,f,d,m)},keys:Es,values:ri}},ve.exports.__esModule=!0,ve.exports.default=ve.exports)()}ve.exports=vr,ve.exports.__esModule=!0,ve.exports.default=ve.exports});var ai=te((mc,ii)=>{var xt=ni()();ii.exports=xt;try{regeneratorRuntime=xt}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=xt:Function("r","regeneratorRuntime = r")(xt)}});var yi=te((Ec,vi)=>{"use strict";var Is=function(e){return As(e)&&!Ps(e)};function As(t){return!!t&&typeof t=="object"}function Ps(t){var e=Object.prototype.toString.call(t);return e==="[object RegExp]"||e==="[object Date]"||Ns(t)}var Ts=typeof Symbol=="function"&&Symbol.for,xs=Ts?Symbol.for("react.element"):60103;function Ns(t){return t.$$typeof===xs}function ks(t){return Array.isArray(t)?[]:{}}function tt(t,e){return e.clone!==!1&&e.isMergeableObject(t)?Le(ks(t),t,e):t}function js(t,e,r){return t.concat(e).map(function(n){return tt(n,r)})}function _s(t,e){if(!e.customMerge)return Le;var r=e.customMerge(t);return typeof r=="function"?r:Le}function Cs(t){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(e){return Object.propertyIsEnumerable.call(t,e)}):[]}function gi(t){return Object.keys(t).concat(Cs(t))}function hi(t,e){try{return e in t}catch{return!1}}function Ms(t,e){return hi(t,e)&&!(Object.hasOwnProperty.call(t,e)&&Object.propertyIsEnumerable.call(t,e))}function Ds(t,e,r){var n={};return r.isMergeableObject(t)&&gi(t).forEach(function(i){n[i]=tt(t[i],r)}),gi(e).forEach(function(i){Ms(t,i)||(hi(t,i)&&r.isMergeableObject(e[i])?n[i]=_s(i,r)(t[i],e[i],r):n[i]=tt(e[i],r))}),n}function Le(t,e,r){r=r||{},r.arrayMerge=r.arrayMerge||js,r.isMergeableObject=r.isMergeableObject||Is,r.cloneUnlessOtherwiseSpecified=tt;var n=Array.isArray(e),i=Array.isArray(t),s=n===i;return s?n?r.arrayMerge(t,e,r):Ds(t,e,r):tt(e,r)}Le.all=function(e,r){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(n,i){return Le(n,i,r)},{})};var Us=Le;vi.exports=Us});function Gt(){var t;return!!(!((t=window?.navigator)===null||t===void 0)&&t.globalPrivacyControl)}function Yr(t={}){let{disabled:e,portal:r,requireConsent:n,userPrivacySettings:i}=t;if(n)if(i?.accepted){if(i?.functional===!1&&i?.performance===!1&&i?.targeting===!1)return!0}else return!0;return i?.accepted===!0&&i?.functional===!1&&i?.performance===!1&&i?.targeting===!1||e||r?.eueiEnabled===!1||Gt()?!0:!(!r||Qi(r)||ea(r)||ta(r))}function Qi(t){return t.eueiEnabled&&t.user&&t.user.orgId===t.id}function ea(t){return t.user&&!t.user.orgId&&t.ipCntryCode==="US"}function ta(t){return!t.user&&t.ipCntryCode==="US"}var Pe={storage:{},memory:!0,get(t){let e;try{e=window.localStorage&&window.localStorage.getItem(t)||this.storage[t]}catch{e=this.storage[t]}if(e)try{return JSON.parse(e)}catch{return}else return},set(t,e){let r=JSON.stringify(e);try{window.localStorage.setItem(t,r)}catch{this.memory||(console.error("setting local storage failed, falling back to in-memory storage"),this.memory=!0),this.storage[t]=e}},delete(t){try{window.localStorage.removeItem(t)}catch{this.memory||(console.error("setting local storage failed, falling back to in-memory storage"),this.memory=!0),delete this.storage[t]}}};var Xr="esri-telemetry";function Jr(t){return new Promise((r,n)=>{t.onload=r,t.onerror=n,(!na(t)||t.body)&&r()})}function ra(t){let{id:e,dataAttribute:r}=t;return!!document.getElementById(e)||!!document.querySelector(`[data-${Xr}="${r}"]`)}function na(t){let{body:e,src:r,id:n,dataAttribute:i,section:s="body",type:a="text/javascript",async:o=!1,defer:c=!1,onload:u,onerror:f}=t;if(typeof window>"u")throw new Ve("Window is undefined: Cannot add script element.");if(ra(t)){console.log(`script (${n||i}) is already present, skipping`);return}let d=ia({id:n,dataAttribute:i,type:a,async:o,defer:c,body:e,src:r,onload:u,onerror:f});return s==="body"?document.body.appendChild(d):document.head.appendChild(d)}var Ve=class extends Error{};function ia({id:t,dataAttribute:e,type:r,async:n,defer:i,body:s,src:a,onload:o,onerror:c}){let u=document.createElement("script");return t&&(u.id=t),e&&u.setAttribute(`data-${Xr}`,e),a&&(u.src=a),s&&(u.innerText=s),u.type=r,u.async=n,u.defer=i,o&&(u.onload=o),c&&(u.onerror=c),u}function Zr(t){return t.map(e=>{let r=[];return["src","id","dataAttribute","type"].forEach(n=>{let i=n;n==="dataAttribute"&&(i="data-esri-telemetry"),e[n]&&r.push(`${i}="${e[n]}"`)}),["async","defer"].forEach(n=>{e[n]&&r.push(`${n}`)}),`<script ${r.join(" ")}>${e.body?e.body:""}<\/script>`}).join("")}var aa=["esri.com","esriuk.com","esri.de","esri.ca","esrifrance.fr","esri.nl","esri-portugal.pt","esribulgaria.com","esri.fi","esri.kr","esrimalaysia.com.my","esri.es","esriaustralia.com.au","esri-southafrica.com","esri.cl","esrichina.com.cn","esri.co","esriturkey.com.tr","geodata.no","esriitalia.it","esri.pl"],ot=class{constructor(e){var r,n,i;this.trackers=[],this.options=e,this.debug=e.debug,this.suppressDisabledWarnings=e.suppressDisabledWarnings,this.logger=e.logger||console,e.userPrivacySettings&&(this._userPrivacySettings=e.userPrivacySettings),e.requireConsent&&!e.userPrivacySettings&&(this._userPrivacySettings={accepted:!1,performance:!1,targeting:!1,functional:!1,id:ua(),timestamp:Date.now()},e.userPrivacySettings=this._userPrivacySettings),this.disabled=Yr(e),this.disabled&&!this.suppressDisabledWarnings&&this.logger.info("Telemetry Disabled");let s=((r=e.portal)===null||r===void 0?void 0:r.user)||e.user;s&&this.setUser(s,(i=(n=e.portal)===null||n===void 0?void 0:n.subscriptionInfo)===null||i===void 0?void 0:i.type),this.disabled||this.initializeTrackers()}shouldInitializeTrackers(e,r,n){let i=!r&&!e?.accepted,s=n.every(a=>e?.[a]);return i||s}filterTrackers(e){return this.options.plugins.filter(r=>e.includes(r.name))}initializeTrackers(){let e=this._userPrivacySettings,r=this.options.requireConsent;this.trackers=[],this.options.plugins&&(e?(this.shouldInitializeTrackers(e,r,["performance"])&&this.trackers.push(...this.filterTrackers(["amazon"])),this.shouldInitializeTrackers(e,r,["performance","targeting","functional"])&&this.trackers.push(...this.filterTrackers(["adobe-analytics","googleAnalytics","siteimprove"]))):this.trackers.push(...this.options.plugins)),this.trackers.length||this.logger.info("No trackers configured")}getScriptTags(){return this.trackers.map(e=>e.getScriptTags&&e.getScriptTags()).join("")}async init(){let e=this.trackers.map(r=>r.init());await Promise.all(e)}setUser(e={},r="Public"){e=typeof e=="string"?{username:e}:e,this.user=e,this.user.accountType=r;let n;if(e.email&&e.email.split){let i=e.email.split("@")[1];n=aa.filter(s=>i===s).length>0}(n||["In House","Demo and Marketing"].indexOf(r)>-1)&&(this.user.internalUser=!0)}async updateUserPrivacySettings(e){let{accepted:r,performance:n,targeting:i,functional:s}=this._userPrivacySettings,a=e.accepted&&!r&&!this.options.requireConsent&&(!e.performance||!e.targeting||!e.functional)||!e.performance&&n||!e.targeting&&i||!e.functional&&s;return this._userPrivacySettings=e,a||(this.disabled=!1,this.initializeTrackers(),await this.init()),{reload:a}}logPageView(e,r={},n={}){if(this.disabled&&!this.suppressDisabledWarnings)return this.logger.info("Page view was not logged because telemetry is disabled."),!1;let i=this.trackers.filter(({disabled:o,hasError:c})=>!o&&!c);if(!i.length)return this.logger.info("Page view was not logged because no enabled telemetry-plugins are registered."),!1;let s=this.preProcess(r,n);this.debug&&this.logger.info("Tracking page view",JSON.stringify(s));let a=i.map(o=>o.logPageView(e,s));return Promise.all(a).then(),!0}logEvent(e,r={}){if(this.disabled&&!this.suppressDisabledWarnings)return this.logger.info("Event was not logged because telemetry is disabled."),!1;let n=this.trackers.filter(({disabled:a,hasError:o})=>!a&&!o);if(!n.length)return this.logger.info("Event was not logged because no enabled telemetry-plugins are registered."),!1;let i=this.preProcess(e,r);this.debug&&this.logger.info("Tracking event",JSON.stringify(i));let s=n.map(a=>a.logEvent(i));return Promise.all(s).then(),!0}logError(e={}){e=Object.assign({eventType:"error"},e),this.logEvent(e)}startWorkflow(e,r={}){let n={name:e,start:Date.now(),steps:[],workflowId:Math.floor((1+Math.random())*17592186044416).toString(16)};this.saveWorkflow(n);let i=Object.assign({name:e,step:"start"},r);return this.logWorkflow(i),n}stepWorkflow(e,r,n={}){let i=typeof n=="string"?n:n.details,s=Object.assign({name:e,step:r,details:i},n);this.logWorkflow(s)}endWorkflow(e,r={}){let n=Object.assign({name:e,step:"finish"},r);this.logWorkflow(n)}cancelWorkflow(e,r={}){let n=Object.assign({name:e,step:"cancel"},r);this.logWorkflow(n)}getWorkflow(e){let r=Pe.get(`TELEMETRY-WORKFLOW:${e}`);if(r){let n=Date.now()-r.start,i=1800*1e3;if(n<i)return r;this.deleteWorkflow(r)}}saveWorkflow(e){Pe.set(`TELEMETRY-WORKFLOW:${e.name}`,e)}deleteWorkflow(e){Pe.delete(`TELEMETRY-WORKFLOW:${e.name}`)}logWorkflow(e={}){e=this.preProcess(e);let r=this.getWorkflow(e.name);r||(this.startWorkflow(e.name),r=this.getWorkflow(e.name)),r.steps.push(e.step),r.duration=(Date.now()-r.start)/1e3,["cancel","finish"].indexOf(e.step)>-1?this.deleteWorkflow(r):this.saveWorkflow(r);let n=Object.assign(e,{eventType:"workflow",category:e.name,action:e.step,label:e.details,duration:r.duration,workflowId:r.workflowId});this.logEvent(n)}preProcess(e={},r={}){let n={};return this.user&&(n={user:"unknown",org:"unknown",lastLogin:this.user.lastLogin,userSince:this.user.created,internalUser:this.user.internalUser||!1,accountType:this.user.accountType}),Object.entries(Object.assign(Object.assign({},e),n)).reduce(sa(r.omitComplexData,this.logger),{})}disable(){this.disabled=!0,this.trackers.forEach(e=>{var r;e.hasError||(e.disabled=!0,(r=e.disable)===null||r===void 0||r.call(e))})}disableTracker(e){var r;let n=this.trackers.find(({name:i})=>i===e);n&&!n.hasError&&(n.disabled=!0,(r=n.disable)===null||r===void 0||r.call(n))}enableTracker(e){var r;let n=this.trackers.find(({name:i})=>i===e);n&&!n.hasError&&(n.disabled=!1,(r=n.enable)===null||r===void 0||r.call(n))}};function sa(t,e){return function(r,[n,i]){return oa(i)?r[n]=i:t||(e.warn(`You are trying to log a non-primitive value, ${n}:${JSON.stringify(i)}. This will get logged as [object Object]`),r[n]=i),r}}function oa(t){return["string","number","boolean","undefined"].includes(typeof t)||t&&typeof t.valueOf()=="string"}function ua(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){let e=Math.random()*16|0;return(t==="x"?e:e&3|8).toString(16)})}var ut=class{constructor(e){var r;if(this.name="googleAnalytics",this.dimensions={},this.metrics={},this.isInitialized=!1,typeof window<"u"&&!(!((r=e?.measurementIds)===null||r===void 0)&&r.length))throw new Error("at least one measurementId needs to be provided in your configuration");Object.assign(this,e)}_getScripts(){return[{dataAttribute:"google-analytics",async:!0,src:`https://www.googletagmanager.com/gtag/js?id=${this.measurementIds?this.measurementIds[0]:""}`}]}getScriptTags(){return Zr(this._getScripts())}async init(){if(!this.isInitialized){if(typeof window>"u")throw new Ve("Window is undefined: Cannot add script element.");await Promise.all(this._getScripts().map(e=>Jr(e))),this.injectConfig(),this.isInitialized=!0}}logPageView(e,r={}){let n=this.buildCustomParams(r),i=Object.assign({page_title:e||window.location.pathname},n);return window.gtag("event","page_view",i),!0}logEvent(e){let{action:r}=e,n=at(e,["action"]),i=r||"other",s=this.buildCustomParams(n);return window.gtag("event",i,s),!0}disable(){this.measurementIds&&this.measurementIds.forEach(e=>{window[`ga-disable-${e}`]=!0})}enable(){this.measurementIds&&this.measurementIds.forEach(e=>{window[`ga-disable-${e}`]=void 0})}injectConfig(){window.dataLayer=window.dataLayer||[],window.gtag=function(){window.dataLayer.push(arguments)},window.gtag("js",new Date);let e={custom_map:this.createDimensionsAndMetricsCustomMap(this.dimensions,this.metrics),send_page_view:!1,anonymize_ip:!0};this.measurementIds.forEach(r=>{window.gtag("config",r,e)})}buildCustomParams(e){let r,{category:n,label:i}=e;return r=this.verifyCustomDimensionAndMetrics(e),n&&(r=Object.assign(Object.assign({},r),{event_category:n})),i&&(r=Object.assign(Object.assign({},r),{event_label:i})),r}verifyCustomDimensionAndMetrics(e){let r=this.createDimensionsAndMetricsCustomMap(this.dimensions,this.metrics),n=Object.values(r);return Object.keys(e).filter(s=>n.includes(s)).reduce((s,a)=>Object.assign(s,{[a]:e[a]}),{})}createDimensionsAndMetricsCustomMap(e={},r={}){let n=this.createMetricCustomMap(r),i=this.createDimensionCustomMap(e);return Object.assign(Object.assign({},n),i)}createMetricCustomMap(e={}){return Object.keys(e).map(function(r){return{key:`metric${e[r]}`,value:r}}).filter(r=>r).reduce((r,{key:n,value:i})=>(r[n]=i,r),{})}createDimensionCustomMap(e={}){return Object.keys(e).map(function(r){return{key:`dimension${e[r]}`,value:r}}).filter(r=>r).reduce((r,{key:n,value:i})=>(r[n]=i,r),{})}};var Qr="TELEMETRY_COGNITO_CREDENTIALS";function en(t,e={}){let n=`https://cognito-identity${e.fips===!0?"-fips":""}.us-east-1.amazonaws.com/`,i=Pe.get(Qr);if(i&&Date.now()/1e3<i.Expiration)return Promise.resolve(i);let s={method:"POST",headers:{"Content-type":"application/x-amz-json-1.1","X-Amz-Target":"AWSCognitoIdentityService.GetId"},body:JSON.stringify({IdentityPoolId:t})};return fetch(n,s).then(a=>{if(!a.ok)throw new Error(a.statusText);return a.json()}).then(a=>{let{IdentityId:o}=a,c={method:"POST",headers:{"Content-type":"application/x-amz-json-1.1","X-Amz-Target":"AWSCognitoIdentityService.GetCredentialsForIdentity"},body:JSON.stringify({IdentityId:o})};return fetch(n,c)}).then(a=>{if(!a.ok)throw new Error(a.statusText);return a.json()}).then(({Credentials:a})=>(Pe.set(Qr,a),a))}function ct({telemetryData:t,dimensionLookup:e={},excludeKeys:r=[]}){return Object.keys(t).filter(n=>!r.includes(n)).map(n=>e[n]?{key:la(e,n),value:t[n]}:{key:n,value:ca(t,n)}).reduce((n,{key:i,value:s})=>(n[i]=s,n),{})}function ca(t,e){return e==="json"?t[e]?JSON.stringify(t[e]):"null":t[e]===void 0?"null":t[e].toString()}function la(t,e){return`dimension${t[e]}`}var fa=["size","duration","position","number","count"];function lt(t,e={}){return Object.keys(t).filter(r=>e[r]||fa.includes(r)).map(r=>e[r]?{key:da(e,r),value:t[r]}:{key:r,value:t[r]}).reduce((r,{key:n,value:i})=>(r[n]=i,r),{})}function da(t,e){return`metric${t[e]}`}function tn({event:t={},dimensionLookup:e={},metricLookup:r={}}){var n,i;let{pathname:s,eventType:a="other"}=t,o=lt(t,r),c=ct({telemetryData:Object.assign({eventType:a},t),dimensionLookup:e,excludeKeys:["workflow","pathname",...Object.keys(o),...Object.keys(r)]}),u=Object.assign(Object.assign({name:a},c),o);return typeof document<"u"&&document.referrer&&(u.referrer=document.referrer),typeof window<"u"&&!u.hostname&&(u.hostname=(n=window.location)===null||n===void 0?void 0:n.hostname),u.path=typeof window<"u"&&window.location.pathname?(i=window.location)===null||i===void 0?void 0:i.pathname:s,u}function rn({page:t,previousPage:e={},options:r={},dimensionLookup:n={},metricLookup:i={}}){let s=lt(r,i),a=ct({telemetryData:r,dimensionLookup:n,excludeKeys:["workflow",...Object.keys(s),...Object.keys(i)]}),{referrer:o,title:c}=document||{},{hostname:u,pathname:f}=window&&window.location?window.location:{};return Object.assign(Object.assign({name:"pageView",referrer:o,hostname:u,path:t||f,pageUrl:t||f,pageName:c,previousPageUrl:e.pageUrl,previousPageName:e.pageName},a),s)}var gt=Vt(nn(),1);var pa="function",ma="string",ne="undefined",ga="boolean",_e="object",ha="array",va="number",ya="symbol",ba="null";var an=function(){},Ft="any",Bt="*";var de="__",wa="form",Sa="input",Ea="button",Oa="select";var ft=typeof process!==ne?process:{},vu=ft.env&&ft.env.NODE_ENV||"";var re=typeof document!==ne,yu=re&&window.location.hostname==="localhost",bu=ft.versions!=null&&ft.versions.node!=null,wu=typeof Deno!==ne&&typeof Deno.core!==ne,Su=typeof self===_e&&self.constructor&&self.constructor.name==="DedicatedWorkerGlobalScope",Eu=re&&window.name==="nodejs"||typeof navigator!==ne&&typeof navigator.userAgent!==ne&&(navigator.userAgent.includes("Node.js")||navigator.userAgent.includes("jsdom"));function sn(t,e){return e.charAt(0)[t]()+e.slice(1)}var Ia=sn.bind(null,"toUpperCase"),Aa=sn.bind(null,"toLowerCase");function Pa(t){return un(t)?Ia(ba):typeof t===_e?Na(t):Object.prototype.toString.call(t).slice(8,-1)}function dt(t,e){e===void 0&&(e=!0);var r=Pa(t);return e?Aa(r):r}function Ge(t,e){return typeof e===t}var Y=Ge.bind(null,pa),ie=Ge.bind(null,ma),Te=Ge.bind(null,ne);var on=Ge.bind(null,ga),Ou=Ge.bind(null,ya);function un(t){return t===null}function Ta(t){return dt(t)===va&&!isNaN(t)}function $t(t){return dt(t)===ha}function K(t){if(!xa(t))return!1;for(var e=t;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}function xa(t){return t&&(typeof t===_e||t!==null)}function Na(t){return Y(t.constructor)?t.constructor.name:null}function ka(t){return t instanceof Error||ie(t.message)&&t.constructor&&Ta(t.constructor.stackTraceLimit)}function cn(t,e){if(typeof e!="object"||un(e))return!1;if(e instanceof t)return!0;var r=dt(new t(""));if(ka(e))for(;e;){if(dt(e)===r)return!0;e=Object.getPrototypeOf(e)}return!1}var Iu=cn.bind(null,TypeError),Au=cn.bind(null,SyntaxError);function pt(t,e){var r=t instanceof Element||t instanceof HTMLDocument;return r&&e?ja(t,e):r}function ja(t,e){return e===void 0&&(e=""),t&&t.nodeName===e.toUpperCase()}function mt(t){var e=[].slice.call(arguments,1);return function(){return t.apply(void 0,[].slice.call(arguments).concat(e))}}var Pu=mt(pt,wa),Tu=mt(pt,Ea),xu=mt(pt,Sa),Nu=mt(pt,Oa);function ln(t){return t?$t(t)?t:[t]:[]}function fn(t){try{return decodeURIComponent(t.replace(/\+/g," "))}catch{return null}}function dn(t){return(function(e){for(var r,n=Object.create(null),i=/([^&=]+)=?([^&]*)/g;r=i.exec(e);){var s=fn(r[1]),a=fn(r[2]);if(s)if(s.substring(s.length-2)==="[]"){var o=n[s=s.substring(0,s.length-2)]||(n[s]=[]);n[s]=Array.isArray(o)?o:[],n[s].push(a)}else n[s]=a===""||a}for(var c in n){var u=c.split("[");u.length>1&&(_a(n,u.map(function(f){return f.replace(/[?[\]\\ ]/g,"")}),n[c]),delete n[c])}return n})((function(e){if(e){var r=e.match(/\?(.*)/);return r&&r[1]?r[1].split("#")[0]:""}return re&&window.location.search.substring(1)})(t))}function _a(t,e,r){for(var n=e.length-1,i=0;i<n;++i){var s=e[i];if(s==="__proto__"||s==="constructor")break;s in t||(t[s]={}),t=t[s]}t[e[n]]=r}function oe(){for(var t="",e=0,r=4294967295*Math.random()|0;e++<36;){var n="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx"[e-1],i=15&r;t+=n=="-"||n=="4"?n:(n=="x"?i:3&i|8).toString(16),r=e%8==0?4294967295*Math.random()|0:r>>4}return t}var be="global",xe=de+be+de,Ne=typeof self===_e&&self.self===self&&self||typeof global===_e&&global[be]===global&&global||void 0;function X(t){return Ne[xe][t]}function J(t,e){return Ne[xe][t]=e}function se(t){delete Ne[xe][t]}function we(t,e,r){var n;try{if(We(t)){var i=window[t];n=i[e].bind(i)}}catch{}return n||r}Ne[xe]||(Ne[xe]={});var ht={};function We(t){if(typeof ht[t]!==ne)return ht[t];try{var e=window[t];e.setItem(ne,ne),e.removeItem(ne)}catch{return ht[t]=!1}return ht[t]=!0}function T(){return T=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)({}).hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},T.apply(null,arguments)}var Ee="function",pe="undefined",Fe="reducer",jn="@@redux/",Zt=jn+"INIT",Ca=jn+Math.random().toString(36),pn=(function(){return typeof Symbol===Ee&&Symbol.observable||"@@observable"})(),vt=" != "+Ee;function _n(t,e,r){var n;if(typeof e===Ee&&typeof r===pe&&(r=e,e=void 0),typeof r!==pe){if(typeof r!==Ee)throw new Error("enhancer"+vt);return r(_n)(t,e)}if(typeof t!==Ee)throw new Error(Fe+vt);var i=t,s=e,a=[],o=a,c=!1;function u(){o===a&&(o=a.slice())}function f(){return s}function d(g){if(typeof g!==Ee)throw new Error("Listener"+vt);var A=!0;return u(),o.push(g),function(){if(A){A=!1,u();var I=o.indexOf(g);o.splice(I,1)}}}function m(g){if(!K(g))throw new Error("Act != obj");if(typeof g.type===pe)throw new Error("ActType "+pe);if(c)throw new Error("Dispatch in "+Fe);try{c=!0,s=i(s,g)}finally{c=!1}for(var A=a=o,I=0;I<A.length;I++)(0,A[I])();return g}return m({type:Zt}),(n={dispatch:m,subscribe:d,getState:f,replaceReducer:function(g){if(typeof g!==Ee)throw new Error("next "+Fe+vt);i=g,m({type:Zt})}})[pn]=function(){var g,A=d;return(g={subscribe:function(I){if(typeof I!="object")throw new TypeError("Observer != obj");function E(){I.next&&I.next(f())}return E(),{unsubscribe:A(E)}}})[pn]=function(){return this},g},n}function Ma(t,e){var r=e&&e.type;return"action "+(r&&r.toString()||"?")+Fe+" "+t+" returns "+pe}function Ue(){var t=[].slice.call(arguments);return t.length===0?function(e){return e}:t.length===1?t[0]:t.reduce(function(e,r){return function(){return e(r.apply(void 0,[].slice.call(arguments)))}})}function Da(){var t=arguments;return function(e){return function(r,n,i){var s,a=e(r,n,i),o=a.dispatch,c={getState:a.getState,dispatch:function(u){return o(u)}};return s=[].slice.call(t).map(function(u){return u(c)}),T({},a,{dispatch:o=Ue.apply(void 0,s)(a.dispatch)})}}}var Oe=de+"anon_id",ke=de+"user_id",Me=de+"user_traits";var Qt="analytics",Se="userId",Ce="anonymousId",wt=["bootstrap","params","campaign","initializeStart","initialize","initializeEnd","ready","resetStart","reset","resetEnd","pageStart","page","pageEnd","pageAborted","trackStart","track","trackEnd","trackAborted","identifyStart","identify","identifyEnd","identifyAborted","userIdChanged","registerPlugins","enablePlugin","disablePlugin","online","offline","setItemStart","setItem","setItemEnd","setItemAborted","removeItemStart","removeItem","removeItemEnd","removeItemAborted"],er=["name","EVENTS","config","loaded"],N=wt.reduce(function(t,e){return t[e]=e,t},{registerPluginType:function(t){return"registerPlugin:"+t},pluginReadyType:function(t){return"ready:"+t}}),mn=/^utm_/,gn=/^an_prop_/,hn=/^an_trait_/;function Ua(t){var e=t.storage.setItem;return function(r){return function(n){return function(i){if(i.type===N.bootstrap){var s=i.params,a=i.user,o=i.persistedUser,c=i.initialUser,u=o.userId===a.userId;o.anonymousId!==a.anonymousId&&e(Oe,a.anonymousId),u||e(ke,a.userId),c.traits&&e(Me,T({},u&&o.traits?o.traits:{},c.traits));var f=Object.keys(i.params);if(f.length){var d=s.an_uid,m=s.an_event,g=f.reduce(function(A,I){if(I.match(mn)||I.match(/^(d|g)clid/)){var E=I.replace(mn,"");A.campaign[E==="campaign"?"name":E]=s[I]}return I.match(gn)&&(A.props[I.replace(gn,"")]=s[I]),I.match(hn)&&(A.traits[I.replace(hn,"")]=s[I]),A},{campaign:{},props:{},traits:{}});r.dispatch(T({type:N.params,raw:s},g,d?{userId:d}:{})),d&&setTimeout(function(){return t.identify(d,g.traits)},0),m&&setTimeout(function(){return t.track(m,g.props)},0),Object.keys(g.campaign).length&&r.dispatch({type:N.campaign,campaign:g.campaign})}}return n(i)}}}}function Ra(t){return function(e,r){if(e===void 0&&(e={}),r===void 0&&(r={}),r.type===N.setItemEnd){if(r.key===Oe)return T({},e,{anonymousId:r.value});if(r.key===ke)return T({},e,{userId:r.value})}switch(r.type){case N.identify:return Object.assign({},e,{userId:r.userId,traits:T({},e.traits,r.traits)});case N.reset:return[ke,Oe,Me].forEach(function(n){t.removeItem(n)}),Object.assign({},e,{userId:null,anonymousId:null,traits:{}});default:return e}}}function vn(t){return{userId:t.getItem(ke),anonymousId:t.getItem(Oe),traits:t.getItem(Me)}}var tr=function(t){return de+"TEMP"+de+t};function za(t){var e=t.storage,r=e.setItem,n=e.removeItem,i=e.getItem;return function(s){return function(a){return function(o){var c=o.userId,u=o.traits,f=o.options;if(o.type===N.reset&&([ke,Me,Oe].forEach(function(g){n(g)}),[Se,Ce,"traits"].forEach(function(g){se(tr(g))})),o.type===N.identify){i(Oe)||r(Oe,oe());var d=i(ke),m=i(Me)||{};d&&d!==c&&s.dispatch({type:N.userIdChanged,old:{userId:d,traits:m},new:{userId:c,traits:u},options:f}),c&&r(ke,c),u&&r(Me,T({},m,u))}return a(o)}}}}var qe={};function yn(t,e){qe[t]&&Y(qe[t])&&(qe[t](e),delete qe[t])}function Cn(t,e,r){return new Promise(function(n,i){return e()?n(t):r<1?i(T({},t,{queue:!0})):new Promise(function(s){return setTimeout(s,10)}).then(function(s){return Cn(t,e,r-10).then(n,i)})})}function La(t){return{abort:t}}var Kt=function(t){var e=t.data,r=t.action,n=t.instance,i=t.state,s=t.allPlugins,a=t.allMatches,o=t.store,c=t.EVENTS;try{var u=i.plugins,f=i.context,d=r.type,m=d.match(De),g=e.exact.map(function(E){return E.pluginName});m&&(g=a.during.map(function(E){return E.pluginName}));var A=(function(E,x){return function(y,M,v){var h=M.config,P=M.name,w=P+"."+y.type;v&&(w=v.event);var b=y.type.match(De)?(function(D,H,L,R,z){return function(k,S){var j=R?R.name:D,C=S&&Be(S)?S:L;if(R&&(!(C=S&&Be(S)?S:[D]).includes(D)||C.length!==1))throw new Error("Method "+H+" can only abort "+D+" plugin. "+JSON.stringify(C)+" input valid");return T({},z,{abort:{reason:k,plugins:C,caller:H,_:j}})}})(P,w,x,v,y):(function(D,H){return function(){throw new Error(D.type+" action not cancellable. Remove abort in "+H)}})(y,w);return{payload:Ha(y),instance:E,config:h||{},abort:b}}})(n,g),I=e.exact.reduce(function(E,x){var y=x.pluginName,M=x.methodName,v=!1;return M.match(/^initialize/)||M.match(/^reset/)||(v=!u[y].loaded),f.offline&&M.match(/^(page|track|identify)/)&&(v=!0),E[""+y]=v,E},{});return Promise.resolve(e.exact.reduce(function(E,x,y){var M=x.pluginName;return Promise.resolve(E).then(function(v){function h(){return Promise.resolve(v)}var P=(function(){if(e.namespaced&&e.namespaced[M])return Promise.resolve(e.namespaced[M].reduce(function(w,b,D){return Promise.resolve(w).then(function(H){return b.method&&Y(b.method)?((function(k,S){var j=An(k);if(j&&j.name===S){var C=An(j.method);throw new Error([S+" plugin is calling method "+k,"Plugins cant call self","Use "+j.method+" "+(C?"or "+C.method:"")+" in "+S+" plugin insteadof "+k].join(`
3
3
  `))}})(b.methodName,b.pluginName),Promise.resolve(b.method({payload:H,instance:n,abort:(L=H,R=M,z=b.pluginName,function(k,S){return T({},L,{abort:{reason:k,plugins:S||[R],caller:d,from:z||R}})}),config:Sn(b.pluginName,u,s),plugins:u})).then(function(k){var S=K(k)?k:{};return Promise.resolve(T({},H,S))})):H;var L,R,z})},Promise.resolve(r))).then(function(w){v[M]=w});v[M]=r})();return P&&P.then?P.then(h):h()})},Promise.resolve({}))).then(function(E){return Promise.resolve(e.exact.reduce(function(x,y,M){try{var v=e.exact.length===M+1,h=y.pluginName,P=s[h];return Promise.resolve(x).then(function(w){var b=E[h]?E[h]:{};if(m&&(b=w),Xt(b,h))return Yt({data:b,method:d,instance:n,pluginName:h,store:o}),Promise.resolve(w);if(Xt(w,h))return v&&Yt({data:w,method:d,instance:n,store:o}),Promise.resolve(w);if(I.hasOwnProperty(h)&&I[h]===!0)return o.dispatch({type:"queue",plugin:h,payload:b,_:{called:"queue",from:"queueMechanism"}}),Promise.resolve(w);var D=A(E[h],s[h]);return Promise.resolve(P[d]({abort:D.abort,payload:b,instance:n,config:Sn(h,u,s),plugins:u})).then(function(H){var L=K(H)?H:{},R=T({},w,L),z=E[h];if(Xt(z,h))Yt({data:z,method:d,instance:n,pluginName:h,store:o});else{var k=d+":"+h;(k.match(/:/g)||[]).length<2&&!d.match(bn)&&!d.match(wn)&&n.dispatch(T({},m?R:b,{type:k,_:{called:k,from:"submethod"}}))}return Promise.resolve(R)})})}catch(w){return Promise.reject(w)}},Promise.resolve(r))).then(function(x){if(!(d.match(De)||d.match(/^registerPlugin/)||d.match(wn)||d.match(bn)||d.match(/^params/)||d.match(/^userIdChanged/))){if(c.plugins.includes(d),x._&&x._.originalAction===d)return x;var y=T({},x,{_:{originalAction:x.type,called:x.type,from:"engineEnd"}});Mn(x,e.exact.length)&&!d.match(/End$/)&&(y=T({},y,{type:x.type+"Aborted"})),o.dispatch(y)}return x})})}catch(E){return Promise.reject(E)}},De=/Start$/,bn=/^bootstrap/,wn=/^ready/;function Yt(t){var e=t.pluginName,r=t.method+"Aborted"+(e?":"+e:"");t.store.dispatch(T({},t.data,{type:r,_:{called:r,from:"abort"}}))}function Sn(t,e,r){var n=e[t]||r[t];return n&&n.config?n.config:{}}function En(t,e){return e.reduce(function(r,n){return n[t]?r.concat({methodName:t,pluginName:n.name,method:n[t]}):r},[])}function On(t,e){var r=t.replace(De,""),n=e?":"+e:"";return[""+t+n,""+r+n,r+"End"+n]}function Xt(t,e){var r=t.abort;return!!r&&(r===!0||In(r,e)||r&&In(r.plugins,e))}function Mn(t,e){var r=t.abort;if(!r)return!1;if(r===!0||ie(r))return!0;var n=r.plugins;return Be(r)&&r.length===e||Be(n)&&n.length===e}function Be(t){return Array.isArray(t)}function In(t,e){return!(!t||!Be(t))&&t.includes(e)}function An(t){var e=t.match(/(.*):(.*)/);return!!e&&{method:e[1],name:e[2]}}function Ha(t){return Object.keys(t).reduce(function(e,r){return r==="type"||(e[r]=K(t[r])?Object.assign({},t[r]):t[r]),e},{})}function Va(t,e,r){var n={};return function(i){return function(s){return function(a){try{var o,c=function(v){return o?v:s(d)},u=a.type,f=a.plugins,d=a;if(a.abort)return Promise.resolve(s(a));if(u===N.enablePlugin&&i.dispatch({type:N.initializeStart,plugins:f,disabled:[],fromEnable:!0,meta:a.meta}),u===N.disablePlugin&&setTimeout(function(){return yn(a.meta.rid,{payload:a})},0),u===N.initializeEnd){var m=e(),g=Object.keys(m),A=g.filter(function(v){return f.includes(v)}).map(function(v){return m[v]}),I=[],E=[],x=a.disabled,y=A.map(function(v){var h=v.loaded,P=v.name,w=v.config;return Cn(v,function(){return h({config:w})},1e4).then(function(b){return n[P]||(i.dispatch({type:N.pluginReadyType(P),name:P,events:Object.keys(v).filter(function(D){return!er.includes(D)})}),n[P]=!0),I=I.concat(P),v}).catch(function(b){if(b instanceof Error)throw new Error(b);return E=E.concat(b.name),b})});Promise.all(y).then(function(v){var h={plugins:I,failed:E,disabled:x};setTimeout(function(){g.length===y.length+x.length&&i.dispatch(T({},{type:N.ready},h))},0)})}var M=(function(){if(u!==N.bootstrap)return/^ready:([^:]*)$/.test(u)&&setTimeout(function(){return(function(v,h,P){var w={},b=h(),D=v.getState(),H=D.plugins,L=D.queue,R=D.user;if(!D.context.offline&&L&&L.actions&&L.actions.length){var z=L.actions.reduce(function(S,j,C){return H[j.plugin].loaded?(S.process.push(j),S.processIndex.push(C)):(S.requeue.push(j),S.requeueIndex.push(C)),S},{processIndex:[],process:[],requeue:[],requeueIndex:[]});if(z.processIndex&&z.processIndex.length){z.processIndex.forEach(function(S){var j=L.actions[S],C=j.plugin,ee=j.payload.type,l=b[C][ee];if(l&&Y(l)){var p,O=(function(U,B){return U===void 0&&(U={}),B===void 0&&(B={}),[Se,Ce].reduce(function(G,q){return U.hasOwnProperty(q)&&B[q]&&B[q]!==U[q]&&(G[q]=B[q]),G},U)})(j.payload,R),_=w[O.meta.rid];if(!_&&(p=l({payload:O,config:H[C].config,instance:P,abort:La}))&&K(p)&&p.abort)return void(w[O.meta.rid]=!0);if(!_){var V=ee+":"+C;v.dispatch(T({},O,{type:V,_:{called:V,from:"queueDrain"}}))}}});var k=L.actions.filter(function(S,j){return!~z.processIndex.indexOf(j)});L.actions=k}}})(i,e,t)},0),Promise.resolve((function(v,h,P,w,b){try{var D=Y(h)?h():h,H=v.type,L=H.replace(De,"");if(v._&&v._.called)return Promise.resolve(v);var R=P.getState(),z=(j=D,(C=R.plugins)===void 0&&(C={}),(ee=v.options)===void 0&&(ee={}),Object.keys(j).filter(function(l){var p=ee.plugins||{};return on(p[l])?p[l]:p.all!==!1&&(!C[l]||C[l].enabled!==!1)}).map(function(l){return j[l]}));H===N.initializeStart&&v.fromEnable&&(z=Object.keys(R.plugins).filter(function(l){var p=R.plugins[l];return v.plugins.includes(l)&&!p.initialized}).map(function(l){return D[l]}));var k=z.map(function(l){return l.name}),S=(function(l,p){var O=On(l).map(function(_){return En(_,p)});return p.reduce(function(_,V){var U=V.name,B=On(l,U).map(function(fe){return En(fe,p)}),G=B[0],q=B[1],W=B[2];return G.length&&(_.beforeNS[U]=G),q.length&&(_.duringNS[U]=q),W.length&&(_.afterNS[U]=W),_},{before:O[0],beforeNS:{},during:O[1],duringNS:{},after:O[2],afterNS:{}})})(H,z);return Promise.resolve(Kt({action:v,data:{exact:S.before,namespaced:S.beforeNS},state:R,allPlugins:D,allMatches:S,instance:P,store:w,EVENTS:b})).then(function(l){function p(){var V=(function(){if(H.match(De))return Promise.resolve(Kt({action:T({},O,{type:L+"End"}),data:{exact:S.after,namespaced:S.afterNS},state:R,allPlugins:D,allMatches:S,instance:P,store:w,EVENTS:b})).then(function(U){U.meta&&U.meta.hasCallback&&yn(U.meta.rid,{payload:U})})})();return V&&V.then?V.then(function(){return l}):l}if(Mn(l,k.length))return l;var O,_=(function(){if(H!==L)return Promise.resolve(Kt({action:T({},l,{type:L}),data:{exact:S.during,namespaced:S.duringNS},state:R,allPlugins:D,allMatches:S,instance:P,store:w,EVENTS:b})).then(function(V){O=V});O=l})();return _&&_.then?_.then(p):p()})}catch(l){return Promise.reject(l)}var j,C,ee})(a,e,t,i,r)).then(function(v){var h=s(v);return o=1,h})})();return Promise.resolve(M&&M.then?M.then(c):c(M))}catch(v){return Promise.reject(v)}}}}}function Ga(t){return function(e){return function(r){return function(n){var i=n.type,s=n.key,a=n.value,o=n.options;if(i===N.setItem||i===N.removeItem){if(n.abort)return r(n);i===N.setItem?t.setItem(s,a,o):t.removeItem(s,o)}return r(n)}}}}var Wa=function(){var t=this;this.before=[],this.after=[],this.addMiddleware=function(e,r){t[r]=t[r].concat(e)},this.removeMiddleware=function(e,r){var n=t[r].findIndex(function(i){return i===e});n!==-1&&(t[r]=[].concat(t[r].slice(0,n),t[r].slice(n+1)))},this.dynamicMiddlewares=function(e){return function(r){return function(n){return function(i){var s={getState:r.getState,dispatch:function(o){return r.dispatch(o)}},a=t[e].map(function(o){return o(s)});return Ue.apply(void 0,a)(n)(i)}}}}};function qa(t){return function(e,r){e===void 0&&(e={});var n={};if(r.type==="initialize:aborted")return e;if(/^registerPlugin:([^:]*)$/.test(r.type)){var i=Pn(r.type,"registerPlugin"),s=t()[i];if(!s||!i)return e;var a=r.enabled,o=s.config;return n[i]={enabled:a,initialized:!!a&&!s.initialize,loaded:!!a&&!!s.loaded({config:o}),config:o},T({},e,n)}if(/^initialize:([^:]*)$/.test(r.type)){var c=Pn(r.type,N.initialize),u=t()[c];return u&&c?(n[c]=T({},e[c],{initialized:!0,loaded:!!u.loaded({config:u.config})}),T({},e,n)):e}if(/^ready:([^:]*)$/.test(r.type))return n[r.name]=T({},e[r.name],{loaded:!0}),T({},e,n);switch(r.type){case N.disablePlugin:return T({},e,Tn(r.plugins,!1,e));case N.enablePlugin:return T({},e,Tn(r.plugins,!0,e));default:return e}}}function Pn(t,e){return t.substring(e.length+1,t.length)}function Tn(t,e,r){return t.reduce(function(n,i){return n[i]=T({},r[i],{enabled:e}),n},r)}function Dn(t){try{return JSON.parse(JSON.stringify(t))}catch{}return t}var Fa={last:{},history:[]};function Ba(t,e){t===void 0&&(t=Fa);var r=e.options,n=e.meta;if(e.type===N.track){var i=Dn(T({event:e.event,properties:e.properties},Object.keys(r).length&&{options:r},{meta:n}));return T({},t,{last:i,history:t.history.concat(i)})}return t}var $a={actions:[]};function Ka(t,e){t===void 0&&(t=$a);var r=e.payload;switch(e.type){case"queue":var n;return n=r&&r.type&&r.type===N.identify?[e].concat(t.actions):t.actions.concat(e),T({},t,{actions:n});case"dequeue":return[];default:return t}}var Un=/#.*$/;function Ya(t){var e=/(http[s]?:\/\/)?([^\/\s]+\/)(.*)/g.exec(t);return"/"+(e&&e[3]?e[3].split("?")[0].replace(Un,""):"")}var Rn,Xa=function(t){if(t===void 0&&(t={}),!re)return t;var e=document,r=e.title,n=e.referrer,i=window,s=i.location,a=i.innerWidth,o=i.innerHeight,c=s.hash,u=s.search,f=(function(m){var g=(function(){if(re){for(var A,I=document.getElementsByTagName("link"),E=0;A=I[E];E++)if(A.getAttribute("rel")==="canonical")return A.getAttribute("href")}})();return g?g.match(/\?/)?g:g+m:window.location.href.replace(Un,"")})(u),d={title:r,url:f,path:Ya(f),hash:c,search:u,width:a,height:o};return n&&n!==""&&(d.referrer=n),T({},d,t)},Ja={last:{},history:[]};function Za(t,e){t===void 0&&(t=Ja);var r=e.options;if(e.type===N.page){var n=Dn(T({properties:e.properties,meta:e.meta},Object.keys(r).length&&{options:r}));return T({},t,{last:n,history:t.history.concat(n)})}return t}Rn={};var xn={initialized:!1,sessionId:oe(),app:null,version:null,debug:!1,offline:!!re&&!navigator.onLine,os:{name:"na"},userAgent:re?navigator.userAgent:"node",library:{name:Qt,version:"0.13.1"},timezone:void 0,locale:void 0,campaign:{},referrer:Rn};function Qa(t,e){t===void 0&&(t=xn);var r=t.initialized,n=e.campaign;switch(e.type){case N.campaign:return T({},t,{campaign:n});case N.offline:return T({},t,{offline:!0});case N.online:return T({},t,{offline:!1});default:return r?t:T({},xn,t,{initialized:!0})}}var es=["plugins","reducers","storage"];function zn(){return J(Qt,[]),function(t){return function(e,r,n){var i=t(e,r,n),s=i.dispatch;return Object.assign(i,{dispatch:function(a){return Ne[xe][Qt].push(a.action||a),s(a)}})}}}function Nn(t){return function(){return Ue(Ue.apply(null,arguments),zn())}}function Jt(t){return t?$t(t)?t:[t]:[]}function kn(t,e,r){t===void 0&&(t={});var n,i,s=oe();return e&&(qe[s]=(n=e,i=(function(a){for(var o,c=a||Array.prototype.slice.call(arguments),u=0;u<c.length;u++)if(Y(c[u])){o=c[u];break}return o})(r),function(a){i&&i(a),n(a)})),T({},t,{rid:s,ts:new Date().getTime()},e?{hasCallback:!0}:{})}function Ln(t){t===void 0&&(t={});var e=t.reducers||{},r=t.initialUser||{},n=(t.plugins||[]).reduce(function(l,p){if(Y(p))return l.middlewares=l.middlewares.concat(p),l;if(p.NAMESPACE&&(p.name=p.NAMESPACE),!p.name)throw new Error("https://lytics.dev/errors/1");p.config||(p.config={});var O=p.EVENTS?Object.keys(p.EVENTS).map(function(U){return p.EVENTS[U]}):[];l.pluginEnabled[p.name]=!(p.enabled===!1||p.config.enabled===!1),delete p.enabled,p.methods&&(l.methods[p.name]=Object.keys(p.methods).reduce(function(U,B){var G;return U[B]=(G=p.methods[B],function(){for(var q=Array.prototype.slice.call(arguments),W=new Array(G.length),fe=0;fe<q.length;fe++)W[fe]=q[fe];return W[W.length]=h,G.apply({instance:h},W)}),U},{}),delete p.methods);var _=Object.keys(p).concat(O),V=new Set(l.events.concat(_));if(l.events=Array.from(V),l.pluginsArray=l.pluginsArray.concat(p),l.plugins[p.name])throw new Error(p.name+"AlreadyLoaded");return l.plugins[p.name]=p,l.plugins[p.name].loaded||(l.plugins[p.name].loaded=function(){return!0}),l},{plugins:{},pluginEnabled:{},methods:{},pluginsArray:[],middlewares:[],events:[]}),i=t.storage?t.storage:{getItem:X,setItem:J,removeItem:se},s=(function(l){return function(p,O,_){return O.getState("user")[p]||(_&&K(_)&&_[p]?_[p]:vn(l)[p]||X(tr(p))||null)}})(i),a=n.plugins,o=n.events.filter(function(l){return!er.includes(l)}).sort(),c=new Set(o.concat(wt).filter(function(l){return!er.includes(l)})),u=Array.from(c).sort(),f=function(){return a},d=new Wa,m=d.addMiddleware,g=d.removeMiddleware,A=d.dynamicMiddlewares,I=function(){throw new Error("Abort disabled inListener")},E=dn(),x=vn(i),y=T({},x,r,E.an_uid?{userId:E.an_uid}:{},E.an_aid?{anonymousId:E.an_aid}:{});y.anonymousId||(y.anonymousId=oe());var M=T({enable:function(l,p){return new Promise(function(O){S.dispatch({type:N.enablePlugin,plugins:Jt(l),_:{originalAction:N.enablePlugin}},O,[p])})},disable:function(l,p){return new Promise(function(O){S.dispatch({type:N.disablePlugin,plugins:Jt(l),_:{originalAction:N.disablePlugin}},O,[p])})}},n.methods),v=!1,h={identify:function(l,p,O,_){try{var V=ie(l)?l:null,U=K(l)?l:p,B=O||{},G=h.user();J(tr(Se),V);var q=V||U.userId||s(Se,h,U);return Promise.resolve(new Promise(function(W){S.dispatch(T({type:N.identifyStart,userId:q,traits:U||{},options:B,anonymousId:G.anonymousId},G.id&&G.id!==V&&{previousId:G.id}),W,[p,O,_])}))}catch(W){return Promise.reject(W)}},track:function(l,p,O,_){try{var V=K(l)?l.event:l;if(!V||!ie(V))throw new Error("EventMissing");var U=K(l)?l:p||{},B=K(O)?O:{};return Promise.resolve(new Promise(function(G){S.dispatch({type:N.trackStart,event:V,properties:U,options:B,userId:s(Se,h,p),anonymousId:s(Ce,h,p)},G,[p,O,_])}))}catch(G){return Promise.reject(G)}},page:function(l,p,O){try{var _=K(l)?l:{},V=K(p)?p:{};return Promise.resolve(new Promise(function(U){S.dispatch({type:N.pageStart,properties:Xa(_),options:V,userId:s(Se,h,_),anonymousId:s(Ce,h,_)},U,[l,p,O])}))}catch(U){return Promise.reject(U)}},user:function(l){if(l===Se||l==="id")return s(Se,h);if(l===Ce||l==="anonId")return s(Ce,h);var p=h.getState("user");return l?(0,gt.default)(p,l):p},reset:function(l){return new Promise(function(p){S.dispatch({type:N.resetStart},p,l)})},ready:function(l){return v&&l({plugins:M,instance:h}),h.on(N.ready,function(p){l&&l(p),v=!0})},on:function(l,p){if(!l||!Y(p))return!1;if(l===N.bootstrap)throw new Error(".on disabled for "+l);var O=/Start$|Start:/;if(l==="*"){var _=function(G){return function(q){return function(W){return W.type.match(O)&&p({payload:W,instance:h,plugins:a}),q(W)}}},V=function(G){return function(q){return function(W){return W.type.match(O)||p({payload:W,instance:h,plugins:a}),q(W)}}};return m(_,yt),m(V,bt),function(){g(_,yt),g(V,bt)}}var U=l.match(O)?yt:bt,B=function(G){return function(q){return function(W){return W.type===l&&p({payload:W,instance:h,plugins:a,abort:I}),q(W)}}};return m(B,U),function(){return g(B,U)}},once:function(l,p){if(!l||!Y(p))return!1;if(l===N.bootstrap)throw new Error(".once disabled for "+l);var O=h.on(l,function(_){p({payload:_.payload,instance:h,plugins:a,abort:I}),O()});return O},getState:function(l){var p=S.getState();return l?(0,gt.default)(p,l):Object.assign({},p)},dispatch:function(l){var p=ie(l)?{type:l}:l;if(wt.includes(p.type))throw new Error("reserved action "+p.type);var O=T({},p,{_:T({originalAction:p.type},l._||{})});S.dispatch(O)},enablePlugin:M.enable,disablePlugin:M.disable,plugins:M,storage:{getItem:i.getItem,setItem:function(l,p,O){S.dispatch({type:N.setItemStart,key:l,value:p,options:O})},removeItem:function(l,p){S.dispatch({type:N.removeItemStart,key:l,options:p})}},setAnonymousId:function(l,p){h.storage.setItem(Oe,l,p)},events:{core:wt,plugins:o}},P=n.middlewares.concat([function(l){return function(p){return function(O){return O.meta||(O.meta=kn()),p(O)}}},A(yt),Va(h,f,{all:u,plugins:o}),Ga(i),Ua(h),za(h),A(bt)]),w={context:Qa,user:Ra(i),page:Za,track:Ba,plugins:qa(f),queue:Ka},b=Ue,D=Ue;if(re&&t.debug){var H=window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__;H&&(b=H({trace:!0,traceLimit:25})),D=function(){return arguments.length===0?zn():K(typeof arguments[0])?Nn():Nn().apply(null,arguments)}}var L,R=(function(l){return Object.keys(l).reduce(function(p,O){return es.includes(O)||(p[O]=l[O]),p},{})})(t),z=n.pluginsArray.reduce(function(l,p){var O=p.name,_=p.config,V=p.loaded,U=n.pluginEnabled[O];return l[O]={enabled:U,initialized:!!U&&!p.initialize,loaded:!!V({config:_}),config:_},l},{}),k={context:R,user:y,plugins:z},S=_n((function(l){for(var p=Object.keys(l),O={},_=0;_<p.length;_++){var V=p[_];typeof l[V]===Ee&&(O[V]=l[V])}var U,B=Object.keys(O);try{(function(G){Object.keys(G).forEach(function(q){var W=G[q];if(typeof W(void 0,{type:Zt})===pe||typeof W(void 0,{type:Ca})===pe)throw new Error(Fe+" "+q+" "+pe)})})(O)}catch(G){U=G}return function(G,q){if(G===void 0&&(G={}),U)throw U;for(var W=!1,fe={},Lt=0;Lt<B.length;Lt++){var it=B[Lt],Gr=G[it],Ht=(0,O[it])(Gr,q);if(typeof Ht===pe){var Zi=Ma(it,q);throw new Error(Zi)}fe[it]=Ht,W=W||Ht!==Gr}return W?fe:G}})(T({},w,e)),k,D(b(Da.apply(void 0,P))));S.dispatch=(L=S.dispatch,function(l,p,O){var _=T({},l,{meta:kn(l.meta,p,Jt(O))});return L.apply(null,[_])});var j=Object.keys(a);S.dispatch({type:N.bootstrap,plugins:j,config:R,params:E,user:y,initialUser:r,persistedUser:x});var C=j.filter(function(l){return n.pluginEnabled[l]}),ee=j.filter(function(l){return!n.pluginEnabled[l]});return S.dispatch({type:N.registerPlugins,plugins:j,enabled:n.pluginEnabled}),n.pluginsArray.map(function(l,p){var O=l.bootstrap,_=l.config,V=l.name;O&&Y(O)&&O({instance:h,config:_,payload:l}),S.dispatch({type:N.registerPluginType(V),name:V,enabled:n.pluginEnabled[V],plugin:l}),n.pluginsArray.length===p+1&&S.dispatch({type:N.initializeStart,plugins:C,disabled:ee})}),h}var yt="before",bt="after";var Ie="cookie",je=rr(),$e=Ot,St=Ot;function Et(t){return je?Ot(t,"",-1):se(t)}function rr(){if(je!==void 0)return je;var t=Ie+Ie;try{Ot(t,t),je=document.cookie.indexOf(t)!==-1,Et(t)}catch{je=!1}return je}function Ot(t,e,r,n,i,s){if(typeof window<"u"){var a=arguments.length>1;return je===!1&&(a?J(t,e):X(t)),a?document.cookie=t+"="+encodeURIComponent(e)+(r?"; expires="+new Date(+new Date+1e3*r).toUTCString()+(n?"; path="+n:"")+(i?"; domain="+i:"")+(s?"; secure":""):""):decodeURIComponent((("; "+document.cookie).split("; "+t+"=")[1]||"").split(";")[0])}}var ue="localStorage",Hn=We.bind(null,ue),It=we(ue,"getItem",X),Vn=we(ue,"setItem",J),nr=we(ue,"removeItem",se);var ce="sessionStorage",Gn=We.bind(null,ce),Wn=we(ce,"getItem",X),qn=we(ce,"setItem",J),Fu=we(ce,"removeItem",se);function Re(t){var e=t;try{if((e=JSON.parse(t))==="true")return!0;if(e==="false")return!1;if(K(e))return e;parseFloat(e)===e&&(e=parseFloat(e))}catch{}if(e!==null&&e!=="")return e}var ts=Hn(),rs=Gn(),ns=rr();function Fn(t,e){if(t){var r=ir(e),n=!ur(r),i=ar(r)?Re(localStorage.getItem(t)):void 0;if(n&&!Te(i))return i;var s=sr(r)?Re($e(t)):void 0;if(n&&s)return s;var a=or(r)?Re(sessionStorage.getItem(t)):void 0;if(n&&a)return a;var o=X(t);return n?o:{localStorage:i,sessionStorage:a,cookie:s,global:o}}}function is(t,e,r){if(t&&!Te(e)){var n={},i=ir(r),s=JSON.stringify(e),a=!ur(i);return ar(i)&&(n[ue]=At(ue,e,Re(localStorage.getItem(t))),localStorage.setItem(t,s),a)?n[ue]:sr(i)&&(n[Ie]=At(Ie,e,Re($e(t))),St(t,s),a)?n[Ie]:or(i)&&(n[ce]=At(ce,e,Re(sessionStorage.getItem(t))),sessionStorage.setItem(t,s),a)?n[ce]:(n[be]=At(be,e,X(t)),J(t,e),a?n[be]:n)}}function as(t,e){if(t){var r=ir(e),n=Fn(t,Bt),i={};return!Te(n.localStorage)&&ar(r)&&(localStorage.removeItem(t),i[ue]=n.localStorage),!Te(n.cookie)&&sr(r)&&(Et(t),i[Ie]=n.cookie),!Te(n.sessionStorage)&&or(r)&&(sessionStorage.removeItem(t),i[ce]=n.sessionStorage),!Te(n.global)&&Pt(r,be)&&(se(t),i[be]=n.global),i}}function ir(t){return t?ie(t)?t:t.storage:Ft}function ar(t){return ts&&Pt(t,ue)}function sr(t){return ns&&Pt(t,Ie)}function or(t){return rs&&Pt(t,ce)}function ur(t){return t===Bt||t==="all"}function Pt(t,e){return t===Ft||t===e||ur(t)}function At(t,e,r){return{location:t,current:e,previous:r}}var Bn={setItem:is,getItem:Fn,removeItem:as};function ss(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function $n(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function Kn(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?$n(Object(r),!0).forEach(function(n){ss(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):$n(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Yn(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e={storage:Bn};return Ln(Kn(Kn({},e),t))}function Xn(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function $(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Xn(Object(r),!0).forEach(function(n){He(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Xn(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}var F=Vt(ai());var si=function(){};function oi(t,e){var r,n,i,s=(e=e||{}).initial||[],a=e.max||1/0,o=e.interval||1e4,c=e.onEmpty||si,u=e.onPause||si;function f(m){clearInterval(r);var g=s.splice(0,a);return g.length&&t(g,s),s.length?m?f():d():(i=!1,c(s))}function d(){i=!0,r=setInterval(f,o)}return s.length&&d(),{flush:function(m){f(m)},resume:f,push:function(m){return(n=s.push(m))>=a&&!e.throttle&&f(),i||d(),n},size:function(){return s.length},pause:function(m){m&&f(),clearInterval(r),i=!1,u(s)}}}var Nt="__",kt="session",ci=Nt+kt,li="page",ui=["id","createdAt","created"];function yr(t){var e=t?new Date(t):new Date;return[e.toISOString(),e.getTime()]}function fi(){var t=yr(),e=t[0],r=t[1];return{id:oe(),created:r,createdAt:e}}var Os={session:[Wn,qn],page:[X,J]};function jt(t,e){for(var r=Os[t],n=r[0],i=r[1],s=fi(),a=!1,o={},c=0;c<ui.length;c++){var u=ui[c],f=Nt+t+Nt+kt+Nt+u,d=n(f);a=e||!d,(e||!e&&!d)&&i(f,s[u]);var m=d&&!e?d:s[u],g=u!=="created"?m:Number(m);o[u]=g}return br(o,a)}function br(t,e){var r=Date.now();return t.elapsed=r-t.created,t.expires&&(t.remaining=Math.max(t.expires-r,0),t.isExpired=t.remaining===0),t.isNew=e,t}function ze(t,e){t===void 0&&(t=30);var r=$e(ci),n=r?JSON.parse(r):et(t);return e?n:br(n,!r)}function et(t,e,r){t===void 0&&(t=30);var n=r?ze(t,!0):fi(),i=60*t,s=n.created;if(r){var a=yr(),o=a[0],c=a[1];n.modified=c,n.modifiedAt=o,s=c}var u=yr(s+1e3*i),f=u[0];return n.expires=u[1],n.expiresAt=f,n.duration=1e3*i,e&&(n=Object.assign(n,e)),St(ci,JSON.stringify(n),i),br(n,!r)}var di=function(t,e){return t===void 0&&(t=30),et(t||1,e,!0)};var wr=jt.bind(null,kt),pi=jt.bind(null,kt,!0),_t=jt.bind(null,li),Sr=jt.bind(null,li,!0);var Ae=typeof window<"u";function mi(t){return typeof t=="string"}function Er(t){return typeof t=="boolean"}var Hi=Vt(yi());var Ir=new TextEncoder,Rs={appstream2:"appstream",cloudhsmv2:"cloudhsm",email:"ses",marketplace:"aws-marketplace",mobile:"AWSMobileHubService",pinpoint:"mobiletargeting",queue:"sqs","git-codecommit":"codecommit","mturk-requester-sandbox":"mturk-requester","personalize-runtime":"personalize"},zs=new Set(["authorization","content-type","content-length","user-agent","presigned-expires","expect","x-amzn-trace-id","range","connection"]),Ct=class{constructor({accessKeyId:e,secretAccessKey:r,sessionToken:n,service:i,region:s,cache:a,retries:o,initRetryMs:c}){if(e==null)throw new TypeError("accessKeyId is a required option");if(r==null)throw new TypeError("secretAccessKey is a required option");this.accessKeyId=e,this.secretAccessKey=r,this.sessionToken=n,this.service=i,this.region=s,this.cache=a||new Map,this.retries=o??10,this.initRetryMs=c||50}async sign(e,r){if(e instanceof Request){let{method:s,url:a,headers:o,body:c}=e;r=Object.assign({method:s,url:a,headers:o},r),r.body==null&&o.has("Content-Type")&&(r.body=c!=null&&o.has("X-Amz-Content-Sha256")?c:await e.clone().arrayBuffer()),e=a}let n=new Ar(Object.assign({url:e.toString()},r,this,r&&r.aws)),i=Object.assign({},r,await n.sign());delete i.aws;try{return new Request(i.url.toString(),i)}catch(s){if(s instanceof TypeError)return new Request(i.url.toString(),Object.assign({duplex:"half"},i));throw s}}async fetch(e,r){for(let n=0;n<=this.retries;n++){let i=fetch(await this.sign(e,r));if(n===this.retries)return i;let s=await i;if(s.status<500&&s.status!==429)return s;await new Promise(a=>setTimeout(a,Math.random()*this.initRetryMs*Math.pow(2,n)))}throw new Error("An unknown error occurred, ensure retries is not negative")}},Ar=class{constructor({method:e,url:r,headers:n,body:i,accessKeyId:s,secretAccessKey:a,sessionToken:o,service:c,region:u,cache:f,datetime:d,signQuery:m,appendSessionToken:g,allHeaders:A,singleEncode:I}){if(r==null)throw new TypeError("url is a required option");if(s==null)throw new TypeError("accessKeyId is a required option");if(a==null)throw new TypeError("secretAccessKey is a required option");this.method=e||(i?"POST":"GET"),this.url=new URL(r),this.headers=new Headers(n||{}),this.body=i,this.accessKeyId=s,this.secretAccessKey=a,this.sessionToken=o;let E,x;(!c||!u)&&([E,x]=Ls(this.url,this.headers)),this.service=c||E||"",this.region=u||x||"us-east-1",this.cache=f||new Map,this.datetime=d||new Date().toISOString().replace(/[:-]|\.\d{3}/g,""),this.signQuery=m,this.appendSessionToken=g||this.service==="iotdevicegateway",this.headers.delete("Host"),this.service==="s3"&&!this.signQuery&&!this.headers.has("X-Amz-Content-Sha256")&&this.headers.set("X-Amz-Content-Sha256","UNSIGNED-PAYLOAD");let y=this.signQuery?this.url.searchParams:this.headers;if(y.set("X-Amz-Date",this.datetime),this.sessionToken&&!this.appendSessionToken&&y.set("X-Amz-Security-Token",this.sessionToken),this.signableHeaders=["host",...this.headers.keys()].filter(v=>A||!zs.has(v)).sort(),this.signedHeaders=this.signableHeaders.join(";"),this.canonicalHeaders=this.signableHeaders.map(v=>v+":"+(v==="host"?this.url.host:(this.headers.get(v)||"").replace(/\s+/g," "))).join(`
4
4
  `),this.credentialString=[this.datetime.slice(0,8),this.region,this.service,"aws4_request"].join("/"),this.signQuery&&(this.service==="s3"&&!y.has("X-Amz-Expires")&&y.set("X-Amz-Expires","86400"),y.set("X-Amz-Algorithm","AWS4-HMAC-SHA256"),y.set("X-Amz-Credential",this.accessKeyId+"/"+this.credentialString),y.set("X-Amz-SignedHeaders",this.signedHeaders)),this.service==="s3")try{this.encodedPath=decodeURIComponent(this.url.pathname.replace(/\+/g," "))}catch{this.encodedPath=this.url.pathname}else this.encodedPath=this.url.pathname.replace(/\/+/g,"/");I||(this.encodedPath=encodeURIComponent(this.encodedPath).replace(/%2F/g,"/")),this.encodedPath=Si(this.encodedPath);let M=new Set;this.encodedSearch=[...this.url.searchParams].filter(([v])=>{if(!v)return!1;if(this.service==="s3"){if(M.has(v))return!1;M.add(v)}return!0}).map(v=>v.map(h=>Si(encodeURIComponent(h)))).sort(([v,h],[P,w])=>v<P?-1:v>P?1:h<w?-1:h>w?1:0).map(v=>v.join("=")).join("&")}async sign(){return this.signQuery?(this.url.searchParams.set("X-Amz-Signature",await this.signature()),this.sessionToken&&this.appendSessionToken&&this.url.searchParams.set("X-Amz-Security-Token",this.sessionToken)):this.headers.set("Authorization",await this.authHeader()),{method:this.method,url:this.url,headers:this.headers,body:this.body}}async authHeader(){return["AWS4-HMAC-SHA256 Credential="+this.accessKeyId+"/"+this.credentialString,"SignedHeaders="+this.signedHeaders,"Signature="+await this.signature()].join(", ")}async signature(){let e=this.datetime.slice(0,8),r=[this.secretAccessKey,e,this.region,this.service].join(),n=this.cache.get(r);if(!n){let i=await rt("AWS4"+this.secretAccessKey,e),s=await rt(i,this.region),a=await rt(s,this.service);n=await rt(a,"aws4_request"),this.cache.set(r,n)}return Or(await rt(n,await this.stringToSign()))}async stringToSign(){return["AWS4-HMAC-SHA256",this.datetime,this.credentialString,Or(await bi(await this.canonicalString()))].join(`
5
5
  `)}async canonicalString(){return[this.method.toUpperCase(),this.encodedPath,this.encodedSearch,this.canonicalHeaders+`
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import{a as v}from"./XO7WR3ST.js";import{b}from"./SEC5SVYP.js";import{F as r,G as d,H as m,h as p,i as u,q as g}from"./T3EPRHTT.js";var _={heading:"Get Started",card1:{heading:"What's new in the app"},card2:{heading:"Deploy a solution"},card3:{heading:"Manage a deployment"},card4:{heading:"AI Assistant"}},w={heading:"Documentation",card1:{heading:"Help"},card2:{heading:"What's new"},card3:{heading:"FAQ"},card4:{heading:"ArcGIS Blog"}},E={heading:"Support",card1:{heading:"Esri Community"},card2:{heading:"ArcGIS Ideas"},card3:{heading:"Esri Video"},card4:{heading:"Technical support"}},t={getStarted:_,documentation:w,support:E},R=p`*[tabindex]:focus-visible{outline:2px solid var(--calcite-color-brand);outline-offset:2px}:host{display:block;position:relative;height:100%}.position-relative{position:relative}.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: 0px;--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}.z-index-1{z-index:1}calcite-shell{background-color:unset;height:auto}.section-spacing{margin-top:var(--calcite-spacing-lg)}`,l=class extends m{constructor(){super(),this._translations=v({name:"solutions-resources-shell",blocking:!0}),this._mainPanelRef=r(),this._getStartedSectionRef=r(),this._documentationSectionRef=r(),this._supportSectionRef=r(),this._panelFixed=!1,this.sortTypeChanged=g(),this.listenOn(window,"deployAppTabSelected",this._handleDeployAppTabSelected)}static{this.properties={_translations:16}}static{this.styles=R}updated(){this._fixPanelContentWrapperFocus()}_fixPanelContentWrapperFocus(){if(!this._panelFixed&&this._mainPanelRef.value){let e=this._mainPanelRef.value;e.componentOnReady?.().then(()=>{if(e.shadowRoot){let i=e.shadowRoot.querySelector(".content-wrapper");i&&(i.tabIndex=-1,this._panelFixed=!0,this._setupPanelObserver())}}).catch(()=>{this._panelFixed=!0})}}_setupPanelObserver(){if(this._panelObserver)return;this._panelObserver=new MutationObserver(i=>{i.forEach(a=>{if(a.type==="attributes"&&a.attributeName==="tabindex"){let s=a.target;s.classList.contains("content-wrapper")&&s.tabIndex===0&&(s.tabIndex=-1)}})});let e=this._mainPanelRef.value;if(e?.shadowRoot){let i=e.shadowRoot.querySelector(".content-wrapper");i&&this._panelObserver.observe(i,{attributes:!0,attributeFilter:["tabindex"]})}}disconnectedCallback(){super.disconnectedCallback(),this._panelObserver?.disconnect()}render(){let e=this._translations;return u`<calcite-shell class="position-relative"><calcite-panel class="border-override header-override panel-override z-index-1" ${d(this._mainPanelRef)}><div class="section-spacing" ${d(this._getStartedSectionRef)}><solutions-resources-section .heading=${e.getStarted.heading} .subheading=${e.getStarted.subheading} .cards=${[{meridianIcon:"value",heading:e.getStarted.card1.heading,description:e.getStarted.card1.description,url:"https://links.esri.com/solutions/whats-new-in-the-app",headingEn:t.getStarted.card1.heading,sectionHeadingEn:t.getStarted.heading},{meridianIcon:"install",heading:e.getStarted.card2.heading,description:e.getStarted.card2.description,url:"https://links.esri.com/solutions/deploy-a-solution",headingEn:t.getStarted.card2.heading,sectionHeadingEn:t.getStarted.heading},{meridianIcon:"keys",heading:e.getStarted.card3.heading,description:e.getStarted.card3.description,url:"https://links.esri.com/solutions/manage-a-deployment",headingEn:t.getStarted.card3.heading,sectionHeadingEn:t.getStarted.heading},{meridianIcon:"speech-bubbles",heading:e.getStarted.card4.heading,description:e.getStarted.card4.description,url:"https://links.esri.com/solutions/ai-assistant",headingEn:t.getStarted.card4.heading,sectionHeadingEn:t.getStarted.heading}]}></solutions-resources-section></div><div ${d(this._documentationSectionRef)}><solutions-resources-section .heading=${e.documentation.heading} .subheading=${e.documentation.subheading} .cards=${[{meridianIcon:"search-files",heading:e.documentation.card1.heading,description:e.documentation.card1.description,url:"https://links.esri.com/solutions/help",headingEn:t.documentation.card1.heading,sectionHeadingEn:t.documentation.heading},{meridianIcon:"value",heading:e.documentation.card2.heading,description:e.documentation.card2.description,url:"https://links.esri.com/solutions/whats-new",headingEn:t.documentation.card2.heading,sectionHeadingEn:t.documentation.heading},{meridianIcon:"faq",heading:e.documentation.card3.heading,description:e.documentation.card3.description,url:"https://links.esri.com/solutions/faq",headingEn:t.documentation.card3.heading,sectionHeadingEn:t.documentation.heading},{meridianIcon:"arcmap-blog",heading:e.documentation.card4.heading,description:e.documentation.card4.description,url:"https://links.esri.com/solutions/arcgis-blogs",headingEn:t.documentation.card4.heading,sectionHeadingEn:t.documentation.heading}]}></solutions-resources-section></div><div ${d(this._supportSectionRef)}><solutions-resources-section .heading=${e.support.heading} .subheading=${e.support.subheading} .cards=${[{meridianIcon:"esri-community",heading:e.support.card1.heading,description:e.support.card1.description,url:"https://links.esri.com/solutions/esri-community",headingEn:t.support.card1.heading,sectionHeadingEn:t.support.heading},{meridianIcon:"idea",heading:e.support.card2.heading,description:e.support.card2.description,url:"https://links.esri.com/solutions/arcgis-ideas",headingEn:t.support.card2.heading,sectionHeadingEn:t.support.heading},{meridianIcon:"video",heading:e.support.card3.heading,description:e.support.card3.description,url:"https://links.esri.com/solutions/esri-video",headingEn:t.support.card3.heading,sectionHeadingEn:t.support.heading},{meridianIcon:"support",heading:e.support.card4.heading,description:e.support.card4.description,url:"https://links.esri.com/solutions/technical-support",headingEn:t.support.card4.heading,sectionHeadingEn:t.support.heading}]}></solutions-resources-section></div></calcite-panel></calcite-shell>`}async scrollToSection(e){let i={getStarted:this._getStartedSectionRef,documentation:this._documentationSectionRef,support:this._supportSectionRef}[e];if(!i.value||!this._mainPanelRef.value)return;let a=this._mainPanelRef.value,s=()=>{let n=this.el;for(;n&&n!==document.body;){let o=window.getComputedStyle(n),c=o.overflowY,h=o.overflow;if(n.scrollHeight>n.clientHeight&&(c==="auto"||c==="scroll"||h==="auto"||h==="scroll")&&i.value){let f=n.getBoundingClientRect(),S=i.value.getBoundingClientRect().top-f.top+n.scrollTop;n.scrollTo({top:S,behavior:"smooth"});return}n=n.parentElement}if(a.shadowRoot){let o=a.shadowRoot.querySelector(".content-wrapper");if(o&&i.value){let c=i.value.offsetTop;if(o.scrollHeight>o.clientHeight){o.scrollTo({top:c,behavior:"smooth"});return}}}i.value&&i.value.scrollIntoView({behavior:"smooth",block:"start"})};typeof a.componentOnReady=="function"?(await a.componentOnReady(),s()):(await new Promise(n=>setTimeout(n,100)),s())}_handleDeployAppTabSelected(e){e.detail==="resources"&&this.sortTypeChanged.emit("")}};b("solutions-resources-shell",l);export{l as a};
2
+ import{a as v}from"./HSDCRKVW.js";import{b}from"./3L2YVDZV.js";import{F as r,G as d,H as m,h as p,i as u,q as g}from"./T3EPRHTT.js";var _={heading:"Get Started",card1:{heading:"What's new in the app"},card2:{heading:"Deploy a solution"},card3:{heading:"Manage a deployment"},card4:{heading:"AI Assistant"}},w={heading:"Documentation",card1:{heading:"Help"},card2:{heading:"What's new"},card3:{heading:"FAQ"},card4:{heading:"ArcGIS Blog"}},E={heading:"Support",card1:{heading:"Esri Community"},card2:{heading:"ArcGIS Ideas"},card3:{heading:"Esri Video"},card4:{heading:"Technical support"}},t={getStarted:_,documentation:w,support:E},R=p`*[tabindex]:focus-visible{outline:2px solid var(--calcite-color-brand);outline-offset:2px}:host{display:block;position:relative;height:100%}.position-relative{position:relative}.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: 0px;--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}.z-index-1{z-index:1}calcite-shell{background-color:unset;height:auto}.section-spacing{margin-top:var(--calcite-spacing-lg)}`,l=class extends m{constructor(){super(),this._translations=v({name:"solutions-resources-shell",blocking:!0}),this._mainPanelRef=r(),this._getStartedSectionRef=r(),this._documentationSectionRef=r(),this._supportSectionRef=r(),this._panelFixed=!1,this.sortTypeChanged=g(),this.listenOn(window,"deployAppTabSelected",this._handleDeployAppTabSelected)}static{this.properties={_translations:16}}static{this.styles=R}updated(){this._fixPanelContentWrapperFocus()}_fixPanelContentWrapperFocus(){if(!this._panelFixed&&this._mainPanelRef.value){let e=this._mainPanelRef.value;e.componentOnReady?.().then(()=>{if(e.shadowRoot){let i=e.shadowRoot.querySelector(".content-wrapper");i&&(i.tabIndex=-1,this._panelFixed=!0,this._setupPanelObserver())}}).catch(()=>{this._panelFixed=!0})}}_setupPanelObserver(){if(this._panelObserver)return;this._panelObserver=new MutationObserver(i=>{i.forEach(a=>{if(a.type==="attributes"&&a.attributeName==="tabindex"){let s=a.target;s.classList.contains("content-wrapper")&&s.tabIndex===0&&(s.tabIndex=-1)}})});let e=this._mainPanelRef.value;if(e?.shadowRoot){let i=e.shadowRoot.querySelector(".content-wrapper");i&&this._panelObserver.observe(i,{attributes:!0,attributeFilter:["tabindex"]})}}disconnectedCallback(){super.disconnectedCallback(),this._panelObserver?.disconnect()}render(){let e=this._translations;return u`<calcite-shell class="position-relative"><calcite-panel class="border-override header-override panel-override z-index-1" ${d(this._mainPanelRef)}><div class="section-spacing" ${d(this._getStartedSectionRef)}><solutions-resources-section .heading=${e.getStarted.heading} .subheading=${e.getStarted.subheading} .cards=${[{meridianIcon:"value",heading:e.getStarted.card1.heading,description:e.getStarted.card1.description,url:"https://links.esri.com/solutions/whats-new-in-the-app",headingEn:t.getStarted.card1.heading,sectionHeadingEn:t.getStarted.heading},{meridianIcon:"install",heading:e.getStarted.card2.heading,description:e.getStarted.card2.description,url:"https://links.esri.com/solutions/deploy-a-solution",headingEn:t.getStarted.card2.heading,sectionHeadingEn:t.getStarted.heading},{meridianIcon:"keys",heading:e.getStarted.card3.heading,description:e.getStarted.card3.description,url:"https://links.esri.com/solutions/manage-a-deployment",headingEn:t.getStarted.card3.heading,sectionHeadingEn:t.getStarted.heading},{meridianIcon:"speech-bubbles",heading:e.getStarted.card4.heading,description:e.getStarted.card4.description,url:"https://links.esri.com/solutions/ai-assistant",headingEn:t.getStarted.card4.heading,sectionHeadingEn:t.getStarted.heading}]}></solutions-resources-section></div><div ${d(this._documentationSectionRef)}><solutions-resources-section .heading=${e.documentation.heading} .subheading=${e.documentation.subheading} .cards=${[{meridianIcon:"search-files",heading:e.documentation.card1.heading,description:e.documentation.card1.description,url:"https://links.esri.com/solutions/help",headingEn:t.documentation.card1.heading,sectionHeadingEn:t.documentation.heading},{meridianIcon:"value",heading:e.documentation.card2.heading,description:e.documentation.card2.description,url:"https://links.esri.com/solutions/whats-new",headingEn:t.documentation.card2.heading,sectionHeadingEn:t.documentation.heading},{meridianIcon:"faq",heading:e.documentation.card3.heading,description:e.documentation.card3.description,url:"https://links.esri.com/solutions/faq",headingEn:t.documentation.card3.heading,sectionHeadingEn:t.documentation.heading},{meridianIcon:"arcmap-blog",heading:e.documentation.card4.heading,description:e.documentation.card4.description,url:"https://links.esri.com/solutions/arcgis-blogs",headingEn:t.documentation.card4.heading,sectionHeadingEn:t.documentation.heading}]}></solutions-resources-section></div><div ${d(this._supportSectionRef)}><solutions-resources-section .heading=${e.support.heading} .subheading=${e.support.subheading} .cards=${[{meridianIcon:"esri-community",heading:e.support.card1.heading,description:e.support.card1.description,url:"https://links.esri.com/solutions/esri-community",headingEn:t.support.card1.heading,sectionHeadingEn:t.support.heading},{meridianIcon:"idea",heading:e.support.card2.heading,description:e.support.card2.description,url:"https://links.esri.com/solutions/arcgis-ideas",headingEn:t.support.card2.heading,sectionHeadingEn:t.support.heading},{meridianIcon:"video",heading:e.support.card3.heading,description:e.support.card3.description,url:"https://links.esri.com/solutions/esri-video",headingEn:t.support.card3.heading,sectionHeadingEn:t.support.heading},{meridianIcon:"support",heading:e.support.card4.heading,description:e.support.card4.description,url:"https://links.esri.com/solutions/technical-support",headingEn:t.support.card4.heading,sectionHeadingEn:t.support.heading}]}></solutions-resources-section></div></calcite-panel></calcite-shell>`}async scrollToSection(e){let i={getStarted:this._getStartedSectionRef,documentation:this._documentationSectionRef,support:this._supportSectionRef}[e];if(!i.value||!this._mainPanelRef.value)return;let a=this._mainPanelRef.value,s=()=>{let n=this.el;for(;n&&n!==document.body;){let o=window.getComputedStyle(n),c=o.overflowY,h=o.overflow;if(n.scrollHeight>n.clientHeight&&(c==="auto"||c==="scroll"||h==="auto"||h==="scroll")&&i.value){let f=n.getBoundingClientRect(),S=i.value.getBoundingClientRect().top-f.top+n.scrollTop;n.scrollTo({top:S,behavior:"smooth"});return}n=n.parentElement}if(a.shadowRoot){let o=a.shadowRoot.querySelector(".content-wrapper");if(o&&i.value){let c=i.value.offsetTop;if(o.scrollHeight>o.clientHeight){o.scrollTo({top:c,behavior:"smooth"});return}}}i.value&&i.value.scrollIntoView({behavior:"smooth",block:"start"})};typeof a.componentOnReady=="function"?(await a.componentOnReady(),s()):(await new Promise(n=>setTimeout(n,100)),s())}_handleDeployAppTabSelected(e){e.detail==="resources"&&this.sortTypeChanged.emit("")}};b("solutions-resources-shell",l);export{l as a};