import{u as c}from"./icons.99afd58c.js";import{d,J as u,H as i,a as p,b as _,c as l,e as f,z as m,S as b,q as y}from"./registerWidgets.fce18b61.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="59d1b3fe-2dc3-4a6e-80aa-6456276e7835",e._sentryDebugIdIdentifier="sentry-dbid-59d1b3fe-2dc3-4a6e-80aa-6456276e7835")}catch{}})();const v=d({__name:"PreviewButton",props:{model:null},setup(e){const t=e,o=u(),s=i(),a=()=>{const n=o.query;s.push({path:`/_editor/${t.model.routeName}/${encodeURIComponent(t.model.path)}/preview`,query:n})};return(n,w)=>{const r=p("icon");return _(),l("button",{class:"preview-button",onClick:a},[f(r,{class:"icon",path:m(c),width:"20",height:"20",fill:"#5A677A"},null,8,["path"]),b(" Preview ")])}}});const I=y(v,[["__scopeId","data-v-4b4c109d"]]);export{I as P};
//# sourceMappingURL=PreviewButton.db4d4119.js.map
