import{t as d}from"./icons.ec70ef26.js";import{d as c,J as u,H as i,a as p,b as _,c as l,e as f,z as m,U as y,q as b}from"./registerWidgets.36cee80e.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]="1ef457df-5d5e-437d-a059-481f43ed3e9a",e._sentryDebugIdIdentifier="sentry-dbid-1ef457df-5d5e-437d-a059-481f43ed3e9a")}catch{}})();const v=c({__name:"PreviewButton",props:{model:null},setup(e){const t=e,o=u(),s=i(),r=()=>{const n=o.query;s.push({path:`/_editor/${t.model.routeName}/${encodeURIComponent(t.model.path)}/preview`,query:n})};return(n,w)=>{const a=p("icon");return _(),l("button",{class:"preview-button",onClick:r},[f(a,{class:"icon",path:m(d),width:"20",height:"20",fill:"#5A677A"},null,8,["path"]),y(" Preview ")])}}});const I=b(v,[["__scopeId","data-v-4b4c109d"]]);export{I as P};
//# sourceMappingURL=PreviewButton.12ef8643.js.map
