1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[694],{2341:(e,t,o)=>{o.d(t,{A:()=>v,S:()=>g,d:()=>b});var i=o(13667),a=o(67611),s=o(43661),n=o(65763),l=o(89612),c=o(82166),r=o(12516),d=o(37359),h=o(74992),u=o(38454),p=o(98770);let g={menuActions:"menu-actions",menuTooltip:"menu-tooltip"},m={menu:"ellipsis"},f={container:"container"},v=(0,i.w$)(class extends i.wt{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.setMenuOpen=e=>{this.menuOpen=!!e.target.open},this.handleMenuActionsSlotChange=e=>{this.hasMenuActions=(0,r.d)(e)},this.expanded=!1,this.label=void 0,this.layout="vertical",this.columns=void 0,this.menuOpen=!1,this.overlayPositioning="absolute",this.scale=void 0,this.menuFlipPlacements=void 0,this.menuPlacement=void 0,this.messages=void 0,this.messageOverrides=void 0,this.effectiveLocale="",this.defaultMessages=void 0,this.hasMenuActions=!1}expandedHandler(){this.menuOpen=!1}onMessagesChange(){}effectiveLocaleChange(){(0,l.u)(this,this.effectiveLocale)}async setFocus(){await (0,s.c)(this),this.el.focus()}connectedCallback(){(0,n.c)(this),(0,l.c)(this),(0,a.c)(this)}disconnectedCallback(){(0,n.d)(this),(0,l.d)(this),(0,a.d)(this)}async componentWillLoad(){(0,s.s)(this),await (0,l.s)(this)}componentDidLoad(){(0,s.a)(this)}renderMenu(){let{expanded:e,menuOpen:t,scale:o,layout:a,messages:s,overlayPositioning:n,hasMenuActions:l,menuFlipPlacements:r,menuPlacement:d}=this;return(0,i.h)("calcite-action-menu",{expanded:e,flipPlacements:r??("horizontal"===a?["top","bottom"]:["left","right"]),hidden:!l,label:s.more,onCalciteActionMenuOpen:this.setMenuOpen,open:t,overlayPositioning:n,placement:d??("horizontal"===a?"bottom-start":"leading-start"),scale:o},(0,i.h)("calcite-action",{icon:m.menu,scale:o,slot:c.S.trigger,text:s.more,textEnabled:e}),(0,i.h)("slot",{name:g.menuActions,onSlotchange:this.handleMenuActionsSlotChange}),(0,i.h)("slot",{name:g.menuTooltip,slot:c.S.tooltip}))}render(){return(0,i.h)("div",{key:"8143606c5745053f15140f34ff5ea375a683325f","aria-label":this.label,class:f.container,role:"group"},(0,i.h)("slot",{key:"e8c2821b9ce2e9d0293478989fc31d24f043f9c3"}),this.renderMenu())}static get delegatesFocus(){return!0}static get assetsDirs(){return["assets"]}get el(){return this}static get watchers(){return{expanded:["expandedHandler"],messageOverrides:["onMessagesChange"],effectiveLocale:["effectiveLocaleChange"]}}static get style(){return':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{display:flex;flex-direction:column;padding:0px;background-color:transparent;border-color:var(--calcite-action-group-border-color, var(--calcite-color-border-3));border-style:solid;border-width:0}.container{display:flex;flex-grow:1;flex-direction:column}:host([columns="1"]){--calcite-internal-action-group-columns:1}:host([columns="2"]){--calcite-internal-action-group-columns:2}:host([columns="3"]){--calcite-internal-action-group-columns:3}:host([columns="4"]){--calcite-internal-action-group-columns:4}:host([columns="5"]){--calcite-internal-action-group-columns:5}:host([columns="6"]){--calcite-internal-action-group-columns:6}
1:host(:first-child){padding-block-start:0px}:host([layout=horizontal]),:host([layout=horizontal]) .container{flex-direction:row}:host([layout=grid]){display:grid}:host([layout=grid]) .container{display:grid;place-content:stretch;background-color:transparent;grid-template-columns:repeat(var(--calcite-action-group-columns, var(--calcite-internal-action-group-columns, 3)), auto);gap:var(--calcite-action-group-gap, 1px);padding:var(--calcite-action-group-gap, 1px)}:host([hidden]){display:none}[hidden]{display:none}'}},[17,"calcite-action-group",{expanded:[516],label:[1],layout:[513],columns:[514],menuOpen:[1540,"menu-open"],overlayPositioning:[513,"overlay-positioning"],scale:[513],menuFlipPlacements:[16],menuPlacement:[513,"menu-placement"],messages:[1040],messageOverrides:[1040],effectiveLocale:[32],defaultMessages:[32],hasMenuActions:[32],setFocus:[64]},void 0,{expanded:["expandedHandler"],messageOverrides:["onMessagesChange"],effectiveLocale:["effectiveLocaleChange"]}]);function b(){"undefined"!=typeof customElements&&["calcite-action-group","calcite-action","calcite-action-menu","calcite-icon","calcite-loader","calcite-popover"].forEach(e=>{switch(e){case"calcite-action-group":customElements.get(e)||customElements.define(e,v);break;case"calcite-action":customElements.get(e)||(0,d.d)();break;case"calcite-action-menu":customElements.get(e)||(0,c.d)();break;case"calcite-icon":customElements.get(e)||(0,h.d)();break;case"calcite-loader":customElements.get(e)||(0,u.d)();break;case"calcite-popover":customElements.get(e)||(0,p.d)()}})}b()},67611:(e,t,o)=>{let i;o.d(t,{c:()=>l,d:()=>c});var a=o(13667),s=o(23936);let n={childList:!0};function l(e){i||(i=(0,s.c)("mutation",r)),i.observe(e.el,n)}function c(e){i.unobserve(e.el)}function r(e){e.forEach(({target:e})=>{(0,a.$x)(e)})}},88313:(e,t,o)=>{o.r(t),o.d(t,{CalciteActionBar:()=>D,defineCustomElement:()=>T});var i=o(13667),a=o(67611),s=o(12516),n=o(43661),l=o(65763),c=o(23936),r=o(89612),d=o(2341),h=o(82166);let u=e=>e.reduce((e,t)=>e+t,0)/e.length,p=e=>{let t=e.filter(e=>e.slot!==d.S.menuActions),o=t?.length;return{actionWidth:o?u(t.map(e=>e.clientWidth||0)):0,actionHeight:o?u(t.map(e=>e.clientHeight||0)):0}},g=({width:e,actionWidth:t,layout:o,height:i,actionHeight:a,groupCount:s})=>Math.floor((("horizontal"===o?e:i)-2*s)/("horizontal"===o?t:a)),m=({layout:e,actionCount:t,actionWidth:o,width:i,actionHeight:a,height:s,groupCount:n})=>Math.max(t-g({width:i,actionWidth:o,layout:e,height:s,actionHeight:a,groupCount:n}),0),f=e=>Array.from(e.querySelectorAll("calcite-action")).filter(e=>!e.closest("calcite-action-menu")||e.slot===h.S.trigger),v=({actionGroups:e,expanded:t,overflowCount:o})=>{let a=o;e.reverse().forEach(e=>{let o=0,s=f(e).reverse();s.forEach(e=>{e.slot===d.S.menuActions&&(e.removeAttribute("slot"),e.textEnabled=t)}),a>0&&s.some(e=>(s.filter(e=>!e.slot).length>1&&s.length>2&&!e.closest("calcite-action-menu")&&(e.textEnabled=!0,e.setAttribute("slot",d.S.menuActions),++o>1&&a--),a<1)),(0,i.$x)(e)})},b={chevronsLeft:"chevrons-left",chevronsRight:"chevrons-right"};function x({el:e,expanded:t}){f(e).filter(e=>e.slot!==d.S.menuActions).forEach(e=>e.textEnabled=t),e.querySelectorAll("calcite-action-group, calcite-action-menu").forEach(e=>e.expanded=t)}let y=({tooltip:e,referenceElement:t,expanded:o,ref:i})=>(e&&(e.referenceElement=!o&&t?t:null),i&&i(t),t),A=({expanded:e,expandText:t,collapseText:o,expandLabel:a,collapseLabel:n,toggle:l,el:c,position:r,tooltip:d,ref:h,scale:u})=>{let p="rtl"===(0,s.a)(c),g=e?o:t,m=e?n:a,f=[b.chevronsLeft,b.chevronsRight];p&&f.reverse();let v="end"===(r||c.closest("calcite-shell-panel")?.position||"start"),x=v?f[1]:f[0],A=v?f[0]:f[1];return(0,i.h)("calcite-action",{icon:e?x:A,id:"expand-toggle",label:m,onClick:l,ref:t=>y({tooltip:d,referenceElement:t,expanded:e,ref:h}),scale:u,text:g,textEnabled:e,title:e||d?null:g})};var E=o(89034),w=o(37359),z=o(74992),C=o(38454),L=o(98770),k=o(30334);let S={actionGroupEnd:"action-group--end"},O={actionsEnd:"actions-end",bottomActions:"bottom-actions",expandTooltip:"expand-tooltip"},H=(0,i.w$)(class extends i.wt{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.calciteActionBarToggle=(0,i.lh)(this,"calciteActionBarToggle",6),this.mutationObserver=(0,c.c)("mutation",()=>{let{el:e,expanded:t}=this;x({el:e,expanded:t}),this.overflowActions()}),this.resizeObserver=(0,c.c)("resize",e=>this.resizeHandlerEntries(e)),this.actionMenuOpenHandler=e=>{if(e.target.menuOpen){let t=e.composedPath();Array.from(this.el.querySelectorAll("calcite-action-group")).forEac
1h(e=>{t.includes(e)||(e.menuOpen=!1)})}},this.resizeHandlerEntries=e=>{e.forEach(this.resizeHandler)},this.resizeHandler=e=>{let{width:t,height:o}=e.contentRect;this.resize({width:t,height:o})},this.resize=(0,k.d)(({width:e,height:t})=>{let{el:o,expanded:i,expandDisabled:a,layout:s,overflowActionsDisabled:n}=this;if(n||"vertical"===s&&!t||"horizontal"===s&&!e)return;let l=f(o),c=a?l.length:l.length+1,r=Array.from(o.querySelectorAll("calcite-action-group"));this.setGroupLayout(r);let d=this.hasActionsEnd||this.hasBottomActions||!a?r.length+1:r.length,{actionHeight:h,actionWidth:u}=p(l);v({actionGroups:r,expanded:i,overflowCount:m({layout:s,actionCount:c,actionHeight:h,actionWidth:u,height:t,width:e,groupCount:d})})},E.D.resize),this.toggleExpand=()=>{this.expanded=!this.expanded,this.calciteActionBarToggle.emit()},this.handleDefaultSlotChange=e=>{let t=(0,s.s)(e).filter(e=>e.matches("calcite-action-group"));this.setGroupLayout(t)},this.handleActionsEndSlotChange=e=>{this.hasActionsEnd=(0,s.d)(e)},this.handleBottomActionsSlotChange=e=>{this.hasBottomActions=(0,s.d)(e)},this.handleTooltipSlotChange=e=>{let t=(0,s.s)(e).filter(e=>e?.matches("calcite-tooltip"));this.expandTooltip=t[0]},this.actionsEndGroupLabel=void 0,this.expandDisabled=!1,this.expanded=!1,this.layout="vertical",this.overflowActionsDisabled=!1,this.overlayPositioning="absolute",this.position=void 0,this.scale=void 0,this.messages=void 0,this.messageOverrides=void 0,this.effectiveLocale=void 0,this.hasActionsEnd=!1,this.hasBottomActions=!1,this.expandTooltip=void 0,this.defaultMessages=void 0}expandHandler(){this.overflowActions()}expandedHandler(){let{el:e,expanded:t}=this;x({el:e,expanded:t}),this.overflowActions()}layoutHandler(){this.updateGroups()}overflowDisabledHandler(e){if(e)return void this.resizeObserver?.disconnect();this.resizeObserver?.observe(this.el),this.overflowActions()}onMessagesChange(){}effectiveLocaleChange(){(0,r.u)(this,this.effectiveLocale)}componentDidLoad(){let{el:e,expanded:t}=this;(0,n.a)(this),x({el:e,expanded:t}),this.overflowActions()}connectedCallback(){let{el:e,expanded:t}=this;(0,l.c)(this),(0,r.c)(this),x({el:e,expanded:t}),this.mutationObserver?.observe(e,{childList:!0,subtree:!0}),this.overflowActionsDisabled||this.resizeObserver?.observe(e),this.overflowActions(),(0,a.c)(this)}async componentWillLoad(){(0,n.s)(this),await (0,r.s)(this)}disconnectedCallback(){this.mutationObserver?.disconnect(),this.resizeObserver?.disconnect(),(0,a.d)(this),(0,l.d)(this),(0,r.d)(this)}async overflowActions(){this.resize({width:this.el.clientWidth,height:this.el.clientHeight})}async setFocus(){await (0,n.c)(this),(0,s.f)(this.el)}updateGroups(){this.setGroupLayout(Array.from(this.el.querySelectorAll("calcite-action-group")))}setGroupLayout(e){e.forEach(e=>e.layout=this.layout)}renderBottomActionGroup(){let{expanded:e,expandDisabled:t,el:o,position:a,toggleExpand:s,scale:n,layout:l,messages:c,actionsEndGroupLabel:r,overlayPositioning:d}=this,h=t?null:(0,i.h)(A,{collapseLabel:c.collapseLabel,collapseText:c.collapse,el:o,expandLabel:c.expandLabel,expandText:c.expand,expanded:e,position:a,scale:n,toggle:s,tooltip:this.expandTooltip});return(0,i.h)("calcite-action-group",{class:S.actionGroupEnd,hidden:this.expandDisabled&&!(this.hasActionsEnd||this.hasBottomActions),label:r,layout:l,overlayPositioning:d,scale:n},(0,i.h)("slot",{name:O.actionsEnd,onSlotchange:this.handleActionsEndSlotChange}),(0,i.h)("slot",{name:O.bottomActions,onSlotchange:this.handleBottomActionsSlotChange}),(0,i.h)("slot",{name:O.expandTooltip,onSlotchange:this.handleTooltipSlotChange}),h)}render(){return(0,i.h)(i.xr,{key:"ff6e365531a0ed2032864bb0777910c3932e9c6b",onCalciteActionMenuOpen:this.actionMenuOpenHandler},(0,i.h)("slot",{key:"f12b2f455752a62ee32b65224bed385940135a49",onSlotchange:this.handleDefaultSlotChange}),this.renderBottomActionGroup())}static get assetsDirs(){return["assets"]}get el(){return this}static get watchers(){return{expandDisabled:["expandHandler"],expanded:["expandedHandler"],layout:["layoutHandler"],overflowActionsDisabled:["overflowDisabledHandler"],messageOverrides:["onMessagesChange"],effectiveLocale:["effectiveLocaleChange"]}}static get style(){return":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{pointer-events:auto;display:inline-flex;align-self:stretch;gap:var(--calcite-action-bar-items-space, 0)}:host([layout=vertical]){flex-direction:column}:host([layout=vertical]):host([overflow-actions-disabled]){overflow-y:auto}:host([layout=vertical]):host([expanded]){max-inline-size:var(--calcite-action-bar-ex
1panded-max-width, auto)}:host([layout=vertical]) .action-group--end{margin-block-start:auto}:host([layout=vertical]) ::slotted(calcite-action-group:not(:last-of-type)){border-block-end-width:var(--calcite-border-width-sm)}:host([layout=horizontal]){flex-direction:row}:host([layout=horizontal]):host([overflow-actions-disabled]){overflow-x:auto}:host([layout=horizontal]) .action-group--end{margin-inline-start:auto}:host([layout=horizontal]) ::slotted(calcite-action-group:not(:last-of-type)){border-inline-end-width:var(--calcite-border-width-sm)}.action-group--end{justify-content:flex-end}:host([hidden]){display:none}[hidden]{display:none}"}},[1,"calcite-action-bar",{actionsEndGroupLabel:[1,"actions-end-group-label"],expandDisabled:[516,"expand-disabled"],expanded:[1540],layout:[513],overflowActionsDisabled:[516,"overflow-actions-disabled"],overlayPositioning:[513,"overlay-positioning"],position:[513],scale:[513],messages:[1040],messageOverrides:[1040],effectiveLocale:[32],hasActionsEnd:[32],hasBottomActions:[32],expandTooltip:[32],defaultMessages:[32],overflowActions:[64],setFocus:[64]},void 0,{expandDisabled:["expandHandler"],expanded:["expandedHandler"],layout:["layoutHandler"],overflowActionsDisabled:["overflowDisabledHandler"],messageOverrides:["onMessagesChange"],effectiveLocale:["effectiveLocaleChange"]}]);function M(){"undefined"!=typeof customElements&&["calcite-action-bar","calcite-action","calcite-action-group","calcite-action-menu","calcite-icon","calcite-loader","calcite-popover"].forEach(e=>{switch(e){case"calcite-action-bar":customElements.get(e)||customElements.define(e,H);break;case"calcite-action":customElements.get(e)||(0,w.d)();break;case"calcite-action-group":customElements.get(e)||(0,d.d)();break;case"calcite-action-menu":customElements.get(e)||(0,h.d)();break;case"calcite-icon":customElements.get(e)||(0,z.d)();break;case"calcite-loader":customElements.get(e)||(0,C.d)();break;case"calcite-popover":customElements.get(e)||(0,L.d)()}})}M();let D=H,T=M}}]);
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.