PageSourceSearch

https://maps.watertown-ny.gov/portal/home/11.5.0/js/calcite-components/calcite/I7NALNEM.js

js watertown-ny.gov collected 2026-10-01 11:53:52 UTC 7,799 bytes, 4 lines download raw bytes

1/*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
2See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
3v3.0.3 */
4import{e as k,i as I,j as S}from"./L64PNSJ7.js";import{a}from"./NHLJM63F.js";import{a as z,b as y}from"./6NJ2XB5D.js";import{a as d,b as C}from"./RR6NYECR.js";import"./6NCXFBVI.js";import{a as c}from"./RIMAR2EG.js";import{s as $}from"./SXYTJEOC.js";import{a as w}from"./B4YIOD3M.js";import{J as v,e as u,f as o,j as g,v as r,w as x,x as i,y as f}from"./74XIV7EB.js";var t={active:"label--active",centerContent:"center-content",container:"container",custom:"icon--custom",description:"description",icon:"icon",iconSelected:"icon--selected",label:"label",scale:m=>`scale--${m}`,selected:"label--selected",shortText:"short-text",single:"label--single",textContainer:"text-container",title:"title"},M={contentEnd:"content-end",contentStart:"content-start"},j=u`:host([disabled]){cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host([hidden]){display:none}[hidden]{display:none}.scale--s{font-size:var(--calcite-font-size--2);line-height:1rem;--calcite-combobox-item-spacing-unit-s: .25rem;--calcite-combobox-item-spacing-unit-l: .5rem;--calcite-combobox-item-selector-icon-size: 1rem;--calcite-internal-combobox-item-description-font-size: var(--calcite-font-size-xs)}.scale--m{font-size:var(--calcite-font-size--1);line-height:1rem;--calcite-combobox-item-spacing-unit-s: .375rem;--calcite-combobox-item-spacing-unit-l: .75rem;--calcite-combobox-item-selector-icon-size: 1rem;--calcite-internal-combobox-item-description-font-size: var(--calcite-font-size-sm)}.scale--l{font-size:var(--calcite-font-size-0);line-height:1.25rem;--calcite-combobox-item-spacing-unit-s: .625rem;--calcite-combobox-item-spacing-unit-l: 1rem;--calcite-combobox-item-selector-icon-size: 1.5rem;--calcite-internal-combobox-item-description-font-size: var(--calcite-font-size)}.container{--calcite-combobox-item-indent-value: calc( var(--calcite-combobox-item-spacing-unit-l) * var(--calcite-combobox-item-spacing-indent-multiplier) )}:host(:focus){--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-sha
4dow)}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}:host,ul{margin:0;display:flex;flex-direction:column;padding:0}:host(:focus),ul:focus{outline:2px solid transparent;outline-offset:2px}.label{position:relative;box-sizing:border-box;display:flex;inline-size:100%;min-inline-size:100%;cursor:pointer;align-items:center;color:var(--calcite-color-text-3);text-decoration-line:none;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1);outline-color:transparent;word-wrap:break-word;word-break:break-word;justify-content:space-around;gap:var(--calcite-combobox-item-spacing-unit-l);padding-block:var(--calcite-combobox-item-spacing-unit-s);padding-inline-end:var(--calcite-combobox-item-spacing-unit-l);padding-inline-start:var(--calcite-combobox-item-indent-value)}:host([disabled]) .label{cursor:default}.label--selected{color:var(--calcite-color-text-1)}.label--selected .title{font-weight:var(--calcite-font-weight-medium)}.label--active{outline:2px solid var(--calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)));outline-offset:calc(-2px*(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))))}.label:hover,.label:active{background-color:var(--calcite-color-foreground-2);color:var(--calcite-color-text-1);text-decoration-line:none;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-sha
4dow)}.label:active{background-color:var(--calcite-color-foreground-3)}.icon{display:inline-flex;opacity:0;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1);color:var(--calcite-color-border-1)}.icon--custom{margin-block-start:-1px}.icon--selected{color:var(--calcite-color-text-1)}.label--selected .icon{opacity:1;color:var(--calcite-color-brand)}.center-content{display:flex;flex-direction:column;flex-grow:1;padding-block:0}.description{font-size:var(--calcite-internal-combobox-item-description-font-size)}:host([selected]) .description,:host(:hover) .description{color:var(--calcite-color-text-2)}.short-text{color:var(--calcite-color-text-3);white-space:nowrap}.title{color:var(--calcite-color-text-1)}.title,.description,.short-text{line-height:var(--calcite-font-line-height-relative-snug)}:host([item-hidden]){display:none}.text-match{background-color:transparent;color:inherit;font-weight:var(--calcite-font-weight-bold)}`,h=class extends x{constructor(){super(...arguments),this.hasContent=!1,this._selected=!1,this.active=!1,this.disabled=!1,this.guid=w(),this.iconFlipRtl=!1,this.scale="m",this.selectionMode="multiple",this.itemHidden=!1,this.calciteComboboxItemChange=r({cancelable:!1}),this.calciteInternalComboboxItemChange=r({cancelable:!1})}static{this.properties={hasContent:16,active:7,ancestors:0,description:1,disabled:7,filterDisabled:7,filterTextMatchPattern:2,guid:3,heading:1,icon:3,iconFlipRtl:7,label:1,metadata:0,scale:1,selected:7,selectionMode:3,shortHeading:1,textLabel:3,value:1,itemHidden:7}}static{this.styles=j}get selected(){return this._selected}set selected(e){let l=this._selected;e!==l&&(this._selected=e,this.emitItemChange())}connectedCallback(){super.connectedCallback(),this.ancestors=k(this.el)}load(){C(this,"value","textLabel")}willUpdate(e){this.hasUpdated&&(e.has("disabled")||e.has("heading")||e.has("label")||e.has("textLabel"))&&this.emitItemChange()}updated(){z(this)}emitItemChange(){this.calciteInternalComboboxItemChange.emit()}handleDefaultSlotChange(e){this.hasContent=$(e)}toggleSelected(){let e=this.selectionMode==="single-persist";this.disabled||e&&this.selected||(this.selected=!this.selected,this.calciteComboboxItemChange.emit())}itemClickHandler(){this.toggleSelected()}renderIcon(e){return this.icon?c("icon",o`<calcite-icon class=${i({[t.custom]:!!this.icon,[t.iconSelected]:this.icon&&this.selected})} .flipRtl=${this.iconFlipRtl} .icon=${this.icon||e} .scale=${d(this.scale)}></calcite-icon>`):null}renderSelectIndicator(e){return c("indicator",o`<calcite-icon class=${i({[t.icon]:!0,[t.iconSelected]:this.selected})} .flipRtl=${this.iconFlipRtl} .icon=${e} .scale=${d(this.scale)}></calcite-icon>`)}renderChildren(){return c("default-slot-container",o`<ul .hidden=${!this.hasContent}><slot @slotchange=${this.handleDefaultSlotChange}></slot></ul>`)}render(){let{disabled:e,heading:l,label:H,textLabel:L,value:R,filterTextMatchPattern:n,description:b,shortHeading:p}=this,s=S(this.selectionMode),E=e||s?void 0:"check",F=s?"bullet-point":"check",T=l||L,_=H||R,D={[t.label]:!0,[t.selected]:this.selected,[t.active]:this.active,[t.single]:s},P=I(this.el);return this.el.ariaHidden="true",this.el.ariaLabel=_,y({disabled:e,children:o`<div class=${i({[t.container]:!0,[t.scale(this.scale)]:!0})} style=${f({"--calcite-combobox-item-spacing-indent-multiplier":`${P}`})}><li class=${i(D)} id=${this.guid??g} @click=${this.itemClickHandler}>${this.renderSelectIndicator(F)}<slot name=${M.contentStart}></slot>${this.renderIcon(E)}<div class=${i(t.centerContent)}><div class=${i(t.title)}>${a({text:T,pattern:n})}</div>${b?o`<div class=${i(t.description)}>${a({text:b,pattern:n})}</div>`:null}</div>${p?o`<div class=${i(t.shortText)}>${a({text:p,pattern:n})}</div>`:null}<slot name=${M.contentEnd}></slot></li>${this.renderChildren()}</div>`})}};v("calcite-combobox-item",h);export{h as ComboboxItem};

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.