import{t as c}from"./icons.8dbdad3c.js";import{d,J as u,H as i,a as f,b as p,c as _,e as l,z as b,U as m,q as y}from"./registerWidgets.240bf3ff.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]="62940074-3f1c-4fb4-ab9a-f2edaf18c8fb",e._sentryDebugIdIdentifier="sentry-dbid-62940074-3f1c-4fb4-ab9a-f2edaf18c8fb")}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=f("icon");return p(),_("button",{class:"preview-button",onClick:a},[l(r,{class:"icon",path:b(c),width:"20",height:"20",fill:"#5A677A"},null,8,["path"]),m(" Preview ")])}}});const I=y(v,[["__scopeId","data-v-4b4c109d"]]);export{I as P};
//# sourceMappingURL=PreviewButton.ed3cfe73.js.map
