1import{_ as f}from"./DOFaYLI1.js";import{_ as x}from"./BfEFLWLx.js";import{b,c as v,d as g,e as h}from"./ByksiL8Q.js";import{j as N,a as m,y,F as l,z as B}from"./BqwoF_p2.js";import"./BRDH5o7q.js";import"./BFhqd1Sp.js";import"./O2Qdntuy.js";import"./CIM4hDSa.js";import"./NNFxq12j.js";import"./l0_Jq5_-.js";import"./BNijKLCl.js";import"./DGS4JSfm.js";import"./B5gCcEaL.js";import"./DpnjAp9E.js";import"./H3c4QRCL.js";import"./AZ_k5joF.js";import"./DqHshOog.js";import"./DDR0vaa-.js";import"./rleMDBGE.js";import"./bug8YeNk.js";import"./B5hj8PNj.js";const S={class:"px-4 pb-24 mx-auto lg:mx-0 sm:pb-32 sm:px-6 lg:max-w-7xl lg:px-8"},Q=N({__name:"news",setup(V){const{t}=b(),p=[{route:"/admin/news",title:t("news.title"),current:!1},{route:"/admin/new/news",title:t("news.new"),current:!0}],n=m({title:{en:void 0,hu:void 0},content:{en:"",hu:""},date:new Date().toISOString().slice(0,10),active:!0,resources:[],isNewsletter:!1,resendNewsletter:!1}),o=m(!1),{$localePath:r,$repository:u}=v(),a=g(),c=async i=>{o.value=!0,await u.news.store(i).then(e=>{e!==!1&&a.push(r(`/admin/news/${e.id}`))}).finally(()=>{o.value=!1})},d=()=>{a.push(r("/admin/news"))};return h({title:()=>t("news.new")}),(i,e)=>{const _=f,w=x;return B(),y("div",S,[l(_,{pages:p,"has-home":!1}),l(w,{modelValue:n.value,"onUpdate:modelValue":e[0]||(e[0]=s=>n.value=s),class:"pt-6","is-submitting":o.value,onSubmit:e[1]||(e[1]=s=>c(s)),onCancel:d},null,8,["modelValue","is-submitting"])])}}});export{Q as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.