PageSourceSearch

https://rxburnplanner.com/assets/FeatureUtilityNetworkAssociationList-Boq-Uuyk.js

js rxburnplanner.com collected 2026-10-05 11:48:11 UTC 13,786 bytes, 2 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-B6_gWDPA.js","assets/index-CyVzZKgG.js","assets/index-DT-_TUjA.css","assets/dom-BkrzsosM.js","assets/guid-DlHjpvET.js","assets/observers--h0QxY17.js","assets/index-BAV6pcuE.js","assets/index-2Kwm0oPt.js","assets/customElement-D1TPjPf5.js","assets/input-DNPTfPTp.js","assets/ref-B5wsax95.js","assets/key-HTOW8iPe.js","assets/keyed-085yZ6Eb.js","assets/static-BjOskOZd.js","assets/index-CMIsA__6.js","assets/form-BQxmH375.js","assets/interactive-DcDrucMu.js","assets/label-0G1YCKE1.js","assets/useSetFocus-C67nOoTy.js","assets/InternalLabel-DjxHbNIA.js","assets/Validation-DHYmP1EZ.js","assets/useT9n-BDQkmzpx.js","assets/index-CBzy6VQI.js","assets/index-BNLZDMAO.js","assets/openCloseComponent-EVAeIZAP.js","assets/index-P5U2vmkA.js","assets/index-dEkMhtTW.js","assets/index-B3ZdHuQB.js","assets/useCancelable-DxylvR5W.js","assets/debounce-D3NSP8gs.js","assets/utils2-BdSvS_VQ.js","assets/index-DGRaJekK.js","assets/index-DiG3RFP3.js","assets/floating-ui-D5d99ZMs.js","assets/dynamicClasses-Bih5x83q.js","assets/index-D6RFGx9X.js","assets/index-DNYSJwCQ.js","assets/resources7-BeUU2AIC.js","assets/index-CZrc9qfs.js","assets/_sortable-CTiHOdW_.js","assets/resources5-B8vQCAMP.js","assets/index-Cq-U4Bb0.js","assets/FloatingArrow-Cwlf9XVv.js","assets/Popup-b7c2T6gA.js","assets/throttle-1qKNXc6c.js","assets/unitFormatUtils-LvL7ejof.js","assets/AttachmentInfo-B8_61Klv.js","assets/featureUtils-BBxduY9c.js","assets/shared-CQFVI6D5.js","assets/isImageryGraphicOrigin-Ccuhb4eK.js","assets/isImageryTileGraphicOrigin-ZR-gBf9D.js","assets/streamLayerUtils-DFlbJ4P1.js","assets/NetworkElement-8W3txnMK.js","assets/ReactiveSet-pvYKjDUN.js"])))=>i.map(i=>d[i]);
2import{m7 as P,da as V,mc as E,q as u,jK as a,oW as L,f9 as O,_ as s,m as r,mh as b,e as T,bD as N,oX as k,md as x,mU as F}from"./index-CyVzZKgG.js";import{v as y,s as g}from"./Popup-b7c2T6gA.js";import"./throttle-1qKNXc6c.js";import"./unitFormatUtils-LvL7ejof.js";import"./AttachmentInfo-B8_61Klv.js";import"./featureUtils-BBxduY9c.js";import"./shared-CQFVI6D5.js";import"./isImageryGraphicOrigin-Ccuhb4eK.js";import"./isImageryTileGraphicOrigin-ZR-gBf9D.js";import"./streamLayerUtils-DFlbJ4P1.js";import"./NetworkElement-8W3txnMK.js";import"./ReactiveSet-pvYKjDUN.js";const v="esri-utility-network-association-list",_={featureObserver:`${v}__feature-observer`,filterContainer:`${v}__filter-container`,limitNoticeContainer:`${v}__limit-notice-container`,loadingContainer:`${v}__loading-container`};let l=class extends P{constructor(e,t){super(e,t),this._isFeatureCountNoticeOpen=!0,this._observer=new IntersectionObserver(([o])=>{o!=null&&o.isIntersecting&&this._increaseFeaturePage()},{root:window.document}),this._observerNode=null,this.featuresPerPage=50,this.filterText="",this.headingLevel=5,this.maxFeatureCount=1e3,this.messagesFeature=null,this.messagesCommon=null,this.selectedLayer=null,this.tooltipReferenceMap=new V,this.viewModel=new y}initialize(){this.setUpObserver()}loadDependencies(){return E({icon:()=>u(()=>import("./index-B6_gWDPA.js").then(e=>e.i),__vite__mapDeps([0,1,2,3,4,5])),input:()=>u(()=>import("./index-BAV6pcuE.js"),__vite__mapDeps([6,0,1,2,3,4,5,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21])),loader:()=>u(()=>import("./index-CBzy6VQI.js"),__vite__mapDeps([22,1,2,4,21,14])),notice:()=>u(()=>import("./index-BNLZDMAO.js"),__vite__mapDeps([23,0,1,2,3,4,5,10,24,18,14,21]))})}destroy(){this.tooltipReferenceMap.clear()}get associatedFeatureCount(){const e=this.viewModel.associationViewModels,t=this.selectedLayer?e.get(this.selectedLayer):null;return t?t.length:0}set currentFeaturePage(e){const{featuresPerPage:t,associatedFeatureCount:o}=this,i=Math.ceil(o/t)||1,n=Math.max(Math.min(e,i),1);this._set("currentFeaturePage",n)}get currentFeaturePage(){return this._get("currentFeaturePage")??1}get endIndex(){const{currentFeaturePage:e,featuresPerPage:t,maxFeatureCount:o}=this;return Math.min(e*t,o)}renderConnectivityIcon(e,t){const{tooltipReferenceMap:o}=this;let i;switch(e){case"junction-edge-from-connectivity":i="connection-end-left";break;case"junction-edge-to-connectivity":i="connection-end-right";break;case"junction-edge-midspan-connectivity":i="connection-middle";break;default:i="connection-to-connection"}return a("calcite-icon",{afterCreate:n=>o.set(t,n),afterRemoved:()=>o.delete(t),icon:i,scale:"s",slot:"content-start"})}renderFeatureCountWarning(){const{associatedFeatureCount:e,maxFeatureCount:t,messagesFeature:o}=this;return e>t?a("calcite-notice",{class:this._isFeatureCountNoticeOpen?_.limitNoticeContainer:void 0,closable:!0,icon:"information",kind:"info",open:!0,scale:"s",width:"full",onCalciteNoticeBeforeOpen:()=>this._isFeatureCountNoticeOpen=!0,onCalciteNoticeClose:()=>this._isFeatureCountNoticeOpen=!1},a("div",{slot:"title"},o.associationsLimitNoticeTitle),a("div",{slot:"message"},L(o.associationsLimitNoticeMessage,{number:t}))):null}renderFeatureObserver(){return a("div",{afterCreate:this._onObserverCreate,bind:this,class:_.featureObserver,key:"feature-observer"})}renderFilter(){return a("div",{class:_.filterContainer,key:"filter"},a("calcite-input",{icon:"search",placeholder:this.messagesFeature.associationFilterPlaceholder,type:"search",onCalciteInputInput:e=>{this.filterText=e.currentTarget.value.trim().toLowerCase(),this.currentFeaturePage=1}}))}
2renderLoading(){return a("div",{class:_.loadingContainer,key:"loading-container"},this.renderLoadingIcon())}renderLoadingIcon(){return a("calcite-loader",{inline:!0,label:this.messagesCommon.loading})}getConnectivityTooltip(e){const{messagesFeature:t}=this;switch(e){case"connectivity":case"junction-junction-connectivity":return t.associationsJunctionJunction;case"junction-edge-from-connectivity":return t.associationsJunctionEdgeFrom;case"junction-edge-midspan-connectivity":return t.associationsJunctionEdgeMidspan;case"junction-edge-to-connectivity":return t.associationsJunctionEdgeTo;default:return""}}setUpObserver(){this.addHandles(O(()=>this._observerNode,()=>this._onObserverChange()))}_increaseFeaturePage(){this.currentFeaturePage++}_onObserverChange(){this._observerNode&&this._observer.unobserve(this._observerNode);const{state:e,showAllEnabled:t}=this.viewModel;this._observerNode&&e==="ready"&&t&&this._observer.observe(this._observerNode)}_onObserverCreate(e){this._observerNode=e}};s([r()],l.prototype,"_observer",void 0),s([r()],l.prototype,"_observerNode",void 0),s([r()],l.prototype,"associatedFeatureCount",null),s([r()],l.prototype,"currentFeaturePage",null),s([r()],l.prototype,"endIndex",null),s([r()],l.prototype,"featuresPerPage",void 0),s([r()],l.prototype,"filterText",void 0),s([r()],l.prototype,"headingLevel",void 0),s([r()],l.prototype,"maxFeatureCount",void 0),s([r(),b("esri/widgets/Feature/t9n/Feature")],l.prototype,"messagesFeature",void 0),s([r(),b("esri/t9n/common")],l.prototype,"messagesCommon",void 0),s([r()],l.prototype,"selectedLayer",void 0),s([r()],l.prototype,"tooltipReferenceMap",void 0),s([r({type:y})],l.prototype,"viewModel",void 0),l=s([T("esri.widgets.support.UtilityNetworkAssociations.UtilityNetworkAssociationList")],l);function M(e){const{percentAlong:t}=e;return t==null?"":N(t,{style:"percent",maximumFractionDigits:2})}function I(e){const{associationType:t}=e;return t==="connectivity"||t==="junction-junction-connectivity"||t==="junction-edge-from-connectivity"||t==="junction-edge-midspan-connectivity"||t==="junction-edge-to-connectivity"}function R(e){return e.associationType==="junction-edge-midspan-connectivity"}var f;const C="esri-feature-utility-network-associations",A={base:C,listItemHidden:`${C}__list-item--hidden`},$="nested";let c=f=class extends l{constructor(e,t){super(e,t),this.description=null,this.flowItems=null,this.flowType="feature-utility-network-association-type",this.listType=null,this.parentFeatureViewModel=null,this.title=null,this.viewModel=new y,this.visibleElements=new g}initialize(){this.setUpObserver()}loadDependencies(){return E({chip:()=>u(()=>import("./index-P5U2vmkA.js"),__vite__mapDeps([25,0,1,2,3,4,5,10,16,11,18,14,21])),icon:()=>u(()=>import("./index-B6_gWDPA.js").then(e=>e.i),__vite__mapDeps([0,1,2,3,4,5])),list:()=>u(()=>import("./index-dEkMhtTW.js"),__vite__mapDeps([26,22,1,2,4,21,14,27,10,5,3,12,0,7,8,6,9,11,13,15,16,17,18,19,20,28,29,30])),"list-item":()=>u(()=>import("./index-DGRaJekK.js"),__vite__mapDeps([31,0,1,2,3,4,5,32,10,33,29,16,11,24,34,18,14,22,21,35,12,15,36,37,38,39,30,40])),tooltip:()=>u(()=>import("./index-Cq-U4Bb0.js"),__vite__mapDeps([41,1,2,10,33,3,4,29,24,42,12]))})}destroy(){this.tooltipReferenceMap.clear()}render(){var n;const e=this.viewModel.associationViewModels,{state:t,showAllEnabled:o}=this.viewModel,{state:i}=this.parentFeatureViewModel??{};return a("div",{class:this.classes(A.base,x.widget)},t==="loading"||t==="querying"||i==="loading"?this.renderLoading():a("calcite-list",{displayMode:$,label:((n=this.selectedLayer)==null?void 0:n.title)??this.messagesCommon.untitled},o&&this.selectedLayer?a(k,null,this.renderFilter(),this.renderFeatureCountWarning(),this._renderAssociatedFeatureListPage(),this.renderFeatureObserver()):Array.from(e.keys(),d=>this._renderTypeList(d,e.get(d)))))}_showAllAssociations(e){const{flowItems:t,viewModel:o,description:i}=this;if(!t||!e)return;o.showAllEnabled=!0;const n=new f({selectedLayer:e,title:e==null?void 0:e.title,flowItems:t,parentFeatureViewModel:this.parentFeatureViewModel,featureVisibleElements:this.featureVisibleElements,description:i,visibleElements:new g({title:!1,description:!1}),viewModel:o});t.push(n)}_renderAssociatedFeatureListPage(){const e=this.viewModel.associationViewModels.get(this.selectedLayer).filter(t=>t.title.toLowerCase().includes(this.filterText)).slice(0,this.endIndex);return[...this._renderTooltips(e),...this._renderAssociatedFeatureList(e)]}_renderItemTooltip(e){const{tooltipReferenceMap:t}=this;return I(e.association)?a("calcite-tooltip",{key:`tooltip-${e.featureViewModel.uid}`,overlayPositioning:"fixed",referenceElement:t.get(e.featureViewModel.uid)},this.getConnectivityTooltip(e.association.associationType)):null}
2_renderAssociatedFeature(e){const{featureViewModel:t,title:o}=e,i=t.state==="loading",n=this._findFlowItem(t),d=n<0&&this._isParentFeature(t),p=d||n>=0;return a("calcite-list-item",{class:i?A.listItemHidden:void 0,description:F(e.terminalName??""),key:`associated-feature-type-${t.uid}`,label:F(o),onCalciteListItemSelect:()=>this._handleFeatureClick(d,n,t)},I(e.association)?this.renderConnectivityIcon(e.association.associationType,e.featureViewModel.uid):null,R(e.association)?a("calcite-chip",{label:M(e.association),scale:"s",slot:"content-end"},M(e.association)):null,this._renderChevronIconNode(p))}async _selectAssociation(e){const{flowItems:t,featureVisibleElements:o}=this;if(!t)return;e.abilities={utilityNetworkAssociationsContent:!0};const{default:i}=await u(()=>import("./Popup-b7c2T6gA.js").then(n=>n.F),__vite__mapDeps([43,1,2,44,45,46,47,48,49,50,51,52,53]));t.push(new i({flowItems:t,flowType:"feature-association",viewModel:e,visibleElements:o}))}_handleFeatureClick(e,t,o){if(e)this.flowItems.drain(i=>{"showAllEnabled"in i.viewModel&&(i.viewModel.showAllEnabled=!1),i.viewModel=null,i.destroy()});else if(t<0||!this.flowItems)this._selectAssociation(o);else for(;this.flowItems.length>t+1;){const i=this.flowItems.pop();i&&("showAllEnabled"in i.viewModel&&(i.viewModel.showAllEnabled=!1),i.viewModel=null,i.destroy())}}_featureViewModelMatch(e,t){const o=e.graphic,i=o==null?void 0:o.layer;let n=null;(i==null?void 0:i.type)==="subtype-sublayer"&&i.parent?n=i.parent.globalIdField??null:i&&"globalIdField"in i&&(n=i.globalIdField);const d=n?o==null?void 0:o.attributes[n]:null,p=t.graphic,h=p==null?void 0:p.layer;let m=null;(h==null?void 0:h.type)==="subtype-sublayer"&&h.parent?m=h.parent.globalIdField??null:h&&"globalIdField"in h&&(m=h.globalIdField);const w=m?p==null?void 0:p.attributes[m]:null;return d&&w&&d===w}_isParentFeature(e){var i;const t=(i=this.flowItems)==null?void 0:i.getItemAt(0);if(!t)return!1;const o=t.parentFeatureViewModel;return this._featureViewModelMatch(o,e)}_findFlowItem(e){var t;return((t=this.flowItems)==null?void 0:t.findIndex(o=>{if(o.flowType!=="feature-association")return!1;const i=o.viewModel;return this._featureViewModelMatch(i,e)}))??-1}_renderTooltips(e){return e.toArray().map(t=>this._renderItemTooltip(t))}_renderAssociatedFeatureList(e){return e.toArray().map(t=>this._renderAssociatedFeature(t))}_renderChevronIconNode(e){return a("calcite-icon",{flipRtl:!0,icon:e?"move-up":"chevron-right",scale:"s",slot:"content-end"})}_renderTypeList(e,t){const{messagesFeature:o}=this,{displayCount:i}=this.viewModel,n=t.slice(0,i),d=n.length<t.length;return a("calcite-list-item",{expanded:!0,key:"show-all",label:e.title,value:e.id},a("calcite-chip",{label:String(t.length),scale:"s",slot:"content-end"},t.length),a("calcite-list",{group:e.id,label:e.title??""},[this._renderTooltips(n),this._renderAssociatedFeatureList(n)],d?a("calcite-list-item",{description:L(o==null?void 0:o.numberRecords,{number:t.length.toString()}),key:"show-all-item",label:o.showAll,onCalciteListItemSelect:()=>this._showAllAssociations(e)},a("calcite-icon",{icon:"list",scale:"s",slot:"content-end"})):null))}};s([r()],c.prototype,"description",void 0),s([r()],c.prototype,"featureVisibleElements",void 0),s([r()],c.prototype,"flowItems",void 0),s([r()],c.prototype,"flowType",void 0),s([r()],c.prototype,"listType",void 0),s([r()],c.prototype,"parentFeatureViewModel",void 0),s([r()],c.prototype,"title",void 0),s([r({type:y})],c.prototype,"viewModel",void 0),s([r({type:g,nonNullable:!0})],c.prototype,"visibleElements",void 0),c=f=s([T("esri.widgets.Feature.FeatureUtilityNetworkAssociationList")],c);const G=c;export{G as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.