/*!
 * Copyright (c) 2026 Vertex Software LLC. All rights reserved.
 */
import{h as o}from"./p-DmsAWRoU.js";import{g as n}from"./p-Tvs4yxd5.js";import{c as t}from"./p-C6gMOKYg.js";import{R as r,r as a}from"./p-BYpxnN3u.js";const e=({bounds:e,offset:d,onTopLeftAnchorPointerDown:i,onLeftAnchorPointerDown:s,onTopRightAnchorPointerDown:c,onRightAnchorPointerDown:h,onBottomLeftAnchorPointerDown:b,onBottomAnchorPointerDown:u,onBottomRightAnchorPointerDown:m,onTopAnchorPointerDown:f,onCenterAnchorPointerDown:p})=>{const l=n.pad(e,6);const g=n.center(l);const w=d!=null?`translate(${d.x}px, ${d.y}px)`:undefined;return o("div",{class:"bounds-container"},o("div",{class:"bounds-outline",style:{top:`${l.y}px`,left:`${l.x}px`,width:`${l.width}px`,height:`${l.height}px`,transform:w}}),o(r,{transform:w,id:"bounding-box-2d-top-left-anchor",name:"top-left-anchor",point:a(l,"top-left"),onPointerDown:i},o("div",{class:t("bounds-default-anchor","bounds-edge-anchor")})),o(r,{transform:w,id:"bounding-box-2d-left-anchor",name:"left-anchor",point:a(l,"left"),onPointerDown:s},o("div",{class:t("bounds-default-anchor","bounds-edge-anchor")})),o(r,{transform:w,id:"bounding-box-2d-top-right-anchor",name:"top-right-anchor",point:a(l,"top-right"),onPointerDown:c},o("div",{class:t("bounds-default-anchor","bounds-edge-anchor")})),o(r,{transform:w,id:"bounding-box-2d-right-anchor",name:"right-anchor",point:a(l,"right"),onPointerDown:h},o("div",{class:t("bounds-default-anchor","bounds-edge-anchor")})),o(r,{transform:w,id:"bounding-box-2d-bottom-left-anchor",name:"bottom-left-anchor",point:a(l,"bottom-left"),onPointerDown:b},o("div",{class:t("bounds-default-anchor","bounds-edge-anchor")})),o(r,{transform:w,id:"bounding-box-2d-bottom-anchor",name:"bottom-anchor",point:a(l,"bottom"),onPointerDown:u},o("div",{class:t("bounds-default-anchor","bounds-edge-anchor")})),o(r,{transform:w,id:"bounding-box-2d-bottom-right-anchor",name:"bottom-right-anchor",point:a(l,"bottom-right"),onPointerDown:m},o("div",{class:t("bounds-default-anchor","bounds-edge-anchor")})),o(r,{transform:w,id:"bounding-box-2d-top-anchor",name:"top-anchor",point:a(l,"top"),onPointerDown:f},o("div",{class:t("bounds-default-anchor","bounds-edge-anchor")})),o(r,{transform:w,id:"bounding-box-2d-center-anchor",name:"center-anchor",point:g,onPointerDown:p},o("div",{class:t("bounds-default-anchor","bounds-center-anchor")})))};export{e as B};
//# sourceMappingURL=p-DTbVWNTc.js.map