PageSourceSearch

https://aligndesk.ai/vite/assets/PortalsArticlesNewPage-6CSe4WHi.js

js aligndesk.ai collected 2026-10-05 13:56:26 UTC 2,154 bytes, 2 lines download raw bytes

1import{r as o,c as y,o as C,a as T}from"./_plugin-vue_export-helper-BTQ8gHAs.js";import{u as h,a as P}from"./Validators-C343asNT.js";import{b as k,u as B,c as m}from"./useBranding-yWc3mekR.js";import{a as L,u as N}from"./index-c9pL3ec1.js";import{aQ as w}from"./DashboardIcon-BBNcaepx.js";import{A as x}from"./ArticleEditor-jTUY6Lrr.js";import"./index-DN3rM4CW.js";import"./_commonjsHelpers-BosuxZz1.js";import"./utils.esm-DwUqUVh5.js";import"./js.cookie-Cz0CWeBA.js";import"./index-CIZveAIQ.js";import"./Icon-DzbDd_Ew.js";import"./typing-Cf4468KD.js";import"./index-BGlv9yzy.js";import"./vue-dompurify-html-Bb1lQ-LC.js";import"./HelpCenterLayout-D4yAcKyd.js";import"./dashboard-JZz-yJdP.js";import"./useKeyboardNavigableList-DAKlsz7Y.js";import"./helper-BVTgYTlr.js";import"./module-BqxCsuv1.js";import"./BarChart-z9_G2kbT.js";import"./constants-lVAyZKq6.js";import"./IframeLoader-cPoZlwPe.js";const ot={__name:"PortalsArticlesNewPage",setup(G){const s=h(),i=P(),d=k(),{t:v}=B(),{portalSlug:u}=s.params,n=o(null),p=o(null),g=m("getCurrentUserID"),_=m("categories/allCategories"),f=y(()=>{var t;return((t=_.value[0])==null?void 0:t.id)||null}),a=o({}),c=o(!1),A=o(!1),I=t=>{n.value=t},E=t=>{p.value=t},R=async({title:t,content:r})=>{if(t&&(a.value.title=t),r&&(a.value.content=r),!(!a.value.title||!a.value.content)){c.value=!0;try{const{locale:e}=s.params,l=await d.dispatch("articles/create",{portalSlug:u,content:a.value.content,title:a.value.title,locale:e,authorId:n.value||g.value,categoryId:p.value||f.value});L(w.CREATE_ARTICLE,{locale:e}),i.replace({name:"portals_articles_edit",params:{articleSlug:l,portalSlug:u,locale:e}})}catch(e){const l=(e==null?void 0:e.message)||v("HELP_CENTER.EDIT_ARTICLE_PAGE.API.ERROR");N(l)}finally{c.value=!1}}},S=()=>{const{tab:t,categorySlug:r,locale:e}=s.params;i.push({name:"portals_articles_index",params:{tab:t,categorySlug:r,locale:e}})};return(t,r)=>(C(),T(x,{article:a.value,"is-updating":c.value,"is-saved":A.value,onSaveArticle:R,onGoBack:S,onSetAuthor:I,onSetCategory:E},null,8,["article","is-updating","is-saved"]))}};export{ot as default};
2//# sourceMappingURL=PortalsArticlesNewPage-6CSe4WHi.js.map

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.