1import"./index-CBzy6VQI.js";import"./index-B6_gWDPA.js";import"./index-D6RFGx9X.js";import"./index-Cf4FSAQy.js";import"./index-SDdgBzod.js";import"./index-B3ZdHuQB.js";import{S as o}from"./index-6zl66jFr.js";import{L as I,c as a,A as S,s as x,b as p,i as F,a as P}from"./index-CyVzZKgG.js";import{i as R}from"./keyed-085yZ6Eb.js";import{e as f,n as u}from"./ref-B5wsax95.js";import{g as A}from"./dom-BkrzsosM.js";import{u as T,I as E}from"./interactive-DcDrucMu.js";import{u as L}from"./useT9n-BDQkmzpx.js";import{u as O}from"./useSetFocus-C67nOoTy.js";import"./guid-DlHjpvET.js";import"./observers--h0QxY17.js";import"./form-BQxmH375.js";import"./floating-ui-D5d99ZMs.js";import"./debounce-D3NSP8gs.js";import"./openCloseComponent-EVAeIZAP.js";import"./static-BjOskOZd.js";import"./FloatingArrow-Cwlf9XVv.js";import"./useFocusTrap-BIFs0azL.js";import"./index-CMIsA__6.js";import"./key-HTOW8iPe.js";import"./array-DtjklSP3.js";/*! 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.3.3 */const z={backButton:"back-button"},b={backLeft:"chevron-left",backRight:"chevron-right"},t={actionBar:"action-bar",alerts:"alerts",contentTop:"content-top",contentBottom:"content-bottom",headerActionsStart:"header-actions-start",headerActionsEnd:"header-actions-end",headerMenuActions:"header-menu-actions",headerContent:"header-content",fab:"fab",footer:"footer",footerActions:"footer-actions",footerEnd:"footer-end",footerStart:"footer-start"},D=F`:host{--calcite-internal-color-focus: var( --calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)) )}:host{box-sizing:border-box;background-color:var(--calcite-color-foreground-1);color:var(--calcite-color-text-2);font-size:var(--calcite-font-size--1)}:host *{box-sizing:border-box}: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{position:relative;display:none;inline-size:100%;flex:1 1 auto;overflow:hidden}:host([selected]){display:flex}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}.back-button{border-width:0px;border-style:solid;border-inline-end-width:1px;border-color:var(--calcite-flow-border-color, var(--calcite-color-border-3))}calcite-panel{--calcite-panel-background-color: var(--calcite-flow-background-color);--calcite-panel-border-color: var(--calcite-flow-border-color, var(--calcite-flow-item-header-border-block-end));--calcite-panel-corner-radius: var(--calcite-flow-corner-radius);--calcite-panel-description-text-color: var(--calcite-flow-description-text-color);--calcite-panel-footer-background-color: var(--calcite-flow-footer-background-color);--calcite-panel-footer-space: var(--calcite-flow-footer-space, var(--calcite-flow-item-footer-padding));--calcite-panel-header-action-background-color-hover: var(--calcite-flow-header-action-background-color-hover);--calcite-panel-header-action-background-color-press: var(--calcite-flow-header-action-background-color-press);--calcite-panel-header-action-background-color: var(--calcite-flow-header-action-background-color);--calcite-panel-header-action-indicator-color: var(--calcite-flow-header-action-indicator-color);--calcite-panel-header-action-text-color-press: var(--calcite-flow-header-action-text-color-press);--calcite-panel-header-action-text-color: var(--calcite-flow-header-action-text-color);--calcite-panel-header-background-color: var(--calcite-flow-header-background-color);--calcite-panel-header-content-space: var(--calcite-flow-header-content-space);--calcite-panel-heading-text-color: var(--calcite-flow-heading-text-color);--calcite-panel-icon-color: var(--calcite-flow-icon-color);--calcite-panel-space: var(--calcite-flow-space)}:host([hidden]){display:none}[hidden]{display:none}`,r=class r extends I{constructor(){super(...arguments),this.backButtonRef=f(),this.containerRef
3=f(),this.messages=L(),this.focusSetter=O()(this),this.closable=!1,this.closed=!1,this.collapseDirection="down",this.collapsed=!1,this.collapsible=!1,this.disabled=!1,this.iconFlipRtl=!1,this.loading=!1,this.menuOpen=!1,this.overlayPositioning="absolute",this.scale="m",this.selected=!1,this.showBackButton=!1,this.calciteFlowItemBack=a(),this.calciteFlowItemClose=a({cancelable:!1}),this.calciteFlowItemCollapse=a({cancelable:!1}),this.calciteFlowItemExpand=a({cancelable:!1}),this.calciteFlowItemScroll=a({cancelable:!1}),this.calciteFlowItemToggle=a({cancelable:!1}),this.calciteInternalFlowItemChange=a({cancelable:!1})}async scrollContentTo(e){var l;await((l=this.containerRef.value)==null?void 0:l.scrollContentTo(e))}async setFocus(e){return this.focusSetter(()=>this.backButtonRef.value||this.containerRef.value,e)}willUpdate(e){e.has("selected")&&(this.hasUpdated||this.selected!==!1)&&this.calciteInternalFlowItemChange.emit(),e.has("collapsed")&&this.hasUpdated&&(this.collapsed?this.calciteFlowItemCollapse.emit():this.calciteFlowItemExpand.emit())}updated(){T(this)}handleInternalPanelScroll(e){e.target===this.containerRef.value&&(e.stopPropagation(),this.calciteFlowItemScroll.emit())}handleInternalPanelClose(e){e.target===this.containerRef.value&&(e.stopPropagation(),this.closed=!0,this.calciteFlowItemClose.emit())}handleInternalPanelToggle(e){e.target===this.containerRef.value&&(e.stopPropagation(),this.collapsed=e.target.collapsed,this.calciteFlowItemToggle.emit())}backButtonClick(){this.calciteFlowItemBack.emit()}renderBackButton(){const{el:e}=this,l=A(e)==="rtl",{showBackButton:s,backButtonClick:n,messages:d}=this,c=d.back,i=l?b.backRight:b.backLeft;return s?R("flow-back-button",p`<calcite-action .ariaLabel=${c} class=${x(z.backButton)} .icon=${i} @click=${n} scale=s slot=${t.headerActionsStart} .text=${c} title=${c??S} ${u(this.backButtonRef)}></calcite-action>`):null}render(){const{collapsed:e,collapseDirection:l,collapsible:s,closable:n,closed:d,description:c,disabled:i,heading:m,headingLevel:g,loading:$,menuOpen:v,messages:w,overlayPositioning:k,beforeClose:B,icon:y,iconFlipRtl:C}=this;return E({disabled:i,children:p`<calcite-panel .beforeClose=${B} .closable=${n} .closed=${d} .collapseDirection=${l} .collapsed=${e} .collapsible=${s} .description=${c} .disabled=${i} .heading=${m} .headingLevel=${g} .icon=${y} .iconFlipRtl=${C} .loading=${$} .menuOpen=${v} .messageOverrides=${w} @calcitePanelClose=${this.handleInternalPanelClose} @calcitePanelScroll=${this.handleInternalPanelScroll} @calcitePanelToggle=${this.handleInternalPanelToggle} .overlayPositioning=${k} .scale=${this.scale} ${u(this.containerRef)}>${this.renderBackButton()}<slot name=${t.actionBar} slot=${o.actionBar}></slot><slot name=${t.alerts} slot=${o.alerts}></slot><slot name=${t.headerActionsStart} slot=${o.headerActionsStart}></slot><slot name=${t.headerActionsEnd} slot=${o.headerActionsEnd}></slot><slot name=${t.headerContent} slot=${o.headerContent}></slot><slot name=${t.headerMenuActions} slot=${o.headerMenuActions}></slot><slot name=${t.fab} slot=${o.fab}></slot><slot name=${t.contentTop} slot=${o.contentTop}></slot><slot name=${t.contentBottom} slot=${o.contentBottom}></slot><slot name=${t.footerStart} slot=${o.footerStart}></slot><slot name=${t.footer} slot=${o.footer}></slot><slot name=${t.footerEnd} slot=${o.footerEnd}></slot><slot name=${t.footerActions} slot=${o.footerActions}></slot><slot></slot></calcite-panel>`})}};r.properties={beforeBack:[0,{},{attribute:!1}],beforeClose:[0,{},{attribute:!1}],closable:[7,{},{reflect:!0,type:Boolean}],closed:[7,{},{reflect:!0,type:Boolean}],collapseDirection:1,collapsed:[7,{},{reflect:!0,type:Boolean}],collapsible:[7,{},{reflect:!0,type:Boolean}],description:1,disabled:[7,{},{reflect:!0,type:Boolean}],heading:1,headingLevel:[11,{},{type:Number,reflect:!0}],icon:[3,{},{reflect:!0}],iconFlipRtl:[7,{},{reflect:!0,type:Boolean}],loading:[7,{},{reflect:!0,type:Boolean}],menuOpen:[7,{},{reflect:!0,type:Boolean}],messageOverrides:[0,{},{attribute:!1}],overlayPositioning:[3,{},{reflect:!0}],scale:[3,{},{reflect:!0}],selected:[7,{},{reflect:!0,type:Boolean}],showBackButton:[5,{},{type:Boolean}]},r.styles=D;let h=r;P("calcite-flow-item",h);export{h as FlowItem};
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.