/*!
 * Copyright (c) 2026 Vertex Software LLC. All rights reserved.
 */
import{t as e,p as r,H as t,h as o}from"./p-DmsAWRoU.js";import{d as a}from"./p-cqUlqhCK.js";import{d as i}from"./p-nGQgu0fu.js";import{d as s}from"./p-CdoAt_fp.js";import{d as n}from"./p-BqWR8F1N.js";import{d as l}from"./p-DezD13oo.js";const d=()=>`:host{--viewer-toolbar-group-gap:0.5rem;--viewer-toolbar-group-background:rgba(245, 245, 245, 0.95);--viewer-toolbar-group-border-radius:0.25rem;--viewer-toolbar-group-box-shadow:-1px 0 2px rgba(0, 0, 0, 0.12),     1px 0 2px rgba(0, 0, 0, 0.13);--viewer-toolbar-group-padding:0.25rem;--viewer-toolbar-group-item-gap:0.25rem}.group{background:var(--viewer-toolbar-group-background);border-radius:var(--viewer-toolbar-group-border-radius);box-shadow:var(--viewer-toolbar-group-box-shadow);padding:var(--viewer-toolbar-group-padding)}.group[data-direction='horizontal']:not(:first-child){margin-left:var(--viewer-toolbar-group-gap)}.group[data-direction='horizontal'] .group-item:not(:first-child){margin-left:var(--viewer-toolbar-group-item-gap)}.group[data-direction='vertical']:not(:first-child){margin-top:var(--viewer-toolbar-group-gap)}.group[data-direction='vertical'] .group-item:not(:first-child){margin-top:var(--viewer-toolbar-group-item-gap)}.btn{color:var(--neutral-800);padding:0.125rem;border-radius:0.125rem}.btn:hover{background:var(--neutral-300)}`;const c=r(class e extends t{constructor(e){super();if(e!==false){this.__registerHost()}this.__attachShadow();this.placement="bottom-center";this.direction="horizontal";this.animationsDisabled=false;this.animationMs=1e3}render(){return o("vertex-viewer-toolbar",{key:"58781d25dbddb4e75f5be56d5ab0d9c2c232aee1",placement:this.placement,direction:this.direction},o("vertex-viewer-toolbar-group",{key:"3c6f854f20b29bac33318c5aca11647f6f0c7396",class:"group",direction:this.direction,"data-direction":this.direction},o("vertex-viewer-button",{key:"1cf18704559b00b0ceb10cea67125147a2431e8a",class:"group-item btn","data-test-id":"fit-all-btn",onClick:()=>this.viewAll()},o("vertex-viewer-icon",{key:"b24ac73216986e134fe4b27b5f254d43ffe755be",class:"icon",name:"fit-all",size:"md"}))))}async viewAll(){var e;const r=await((e=this.viewer)===null||e===void 0?void 0:e.scene());const t=this.animationsDisabled?undefined:{milliseconds:this.animationMs};r===null||r===void 0?void 0:r.camera().viewAll().render({animation:t})}static get style(){return d()}},[1,"vertex-viewer-default-toolbar",{viewer:[16],placement:[1],direction:[1],animationsDisabled:[4,"animations-disabled"],animationMs:[2,"animation-ms"]}]);function v(){if(typeof customElements==="undefined"){return}const r=["vertex-viewer-default-toolbar","vertex-viewer-button","vertex-viewer-icon","vertex-viewer-layer","vertex-viewer-toolbar","vertex-viewer-toolbar-group"];r.forEach((r=>{switch(r){case"vertex-viewer-default-toolbar":if(!customElements.get(e(r))){customElements.define(e(r),c)}break;case"vertex-viewer-button":if(!customElements.get(e(r))){a()}break;case"vertex-viewer-icon":if(!customElements.get(e(r))){i()}break;case"vertex-viewer-layer":if(!customElements.get(e(r))){s()}break;case"vertex-viewer-toolbar":if(!customElements.get(e(r))){n()}break;case"vertex-viewer-toolbar-group":if(!customElements.get(e(r))){l()}break}}))}v();const b=c;const u=v;export{b as VertexViewerDefaultToolbar,u as defineCustomElement};
//# sourceMappingURL=vertex-viewer-default-toolbar.js.map