PageSourceSearch

https://forum.ircam.fr/static/bundler/assets/ArticleCreate.ce.2f8101bf.js

js ircam.fr collected 2026-09-24 07:33:58 UTC 2,172 bytes, 2 lines download raw bytes

1import{u as A,c as V,_ as p}from"../main.ae189850.js";import{s as x}from"./topic.275244d7.js";import"./preload-helper.ae39bab8.js";import{d as C,k as n,b as k,f as b,g as t,m as l,u as e,a as u,w as y,o as f,s as E}from"./vendor.ab282fad.js";import{c as I}from"./article.0ddde522.js";import{_ as B}from"./ArticleForm.739c3908.js";import"./SelectTags.a643d8ef.js";import"./VueSelect.009fb8a9.js";import"./vue.runtime.esm-bundler.9766f916.js";import"./HTMLEditor.ac739006.js";import"./main.8db00f82.js";const H={class:"c-container c-container--centered"},N={class:"c-banner u-mbm"},S={class:"c-banner__title"},T={key:0,class:"c-loading__container"},q=["disabled"],R={class:"c-button__label"},$={class:"u-mts c-form__links"},P=C({setup(j){const{t:a}=A({messages:{en:{createAnArticle:"Create an article",createArticle:"Create the article",submitHint:"It will be saved as a draft. You will have to submit it for review before publication."},fr:{createAnArticle:"Cr\xE9er un article",createArticle:"Cr\xE9er l'article",submitHint:"Il sera sauvegard\xE9 en tant que brouillon. Vous devrez le soumettre pour revue avant sa publication."}}}),s=n({title:"",description:"",topics:[],content:""}),m=n(),d=n(!1),i=V(async()=>{const{title:_,description:o,topics:c,content:v}=s.value,h={title:_,description:o,topics:c.map(w=>x(w)),content:v,submitted:!1},g=await I(h);window.location.href=g.object_url,d.value=!0},{error(){m.value&&m.value.scrollIntoView({behavior:"smooth"})}}),r=k(()=>i.loading||d.value);return(_,o)=>(f(),b("div",H,[t("div",N,[t("h1",S,l(e(a)("createAnArticle")),1)]),u(B,{modelValue:s.value,"onUpdate:modelValue":o[0]||(o[0]=c=>s.value=c),error:e(i).err,loading:e(r),onSubmit:e(i).exec},{actions:y(()=>[e(r)?(f(),b("div",T,[u(p,{class:"loading-icon u-mbs",width:"40",height:"40",name:"loading"})])):E("",!0),t("button",{type:"submit",class:"c-form__action c-button",disabled:e(r)},[u(p,{class:"c-button__icon u-color-invert",name:"arrow-right-white"}),t("span",R,l(e(a)("createArticle")),1)],8,q),t("p",$,l(e(a)("submitHint")),1)]),_:1},8,["modelValue","error","loading","onSubmit"])]))}});export{P as default};
2//# sourceMappingURL=ArticleCreate.ce.2f8101bf.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.