PageSourceSearch

https://id.movevn.com/assets/CreatePost-BgwIRf4Q.js

js movevn.com collected 2026-10-02 00:32:38 UTC 1,924 bytes, 1 lines download raw bytes

1import{j as o,B as g}from"./vendor-mui-1Pi3BFuh.js";import{D as h}from"./DynamicForm-DBUxfoyj.js";import{N as x}from"./NavHeader-D3CJrNLB.js";import{u as b,a as C,C as j}from"./index-BxBYWNob.js";import{a as y}from"./ErrorHandler-D0uxaT5w.js";import{m}from"./message-ClwATxdx.js";import{a as n,u as L}from"./vendor-react-CrXZvyk_.js";import{s as P}from"./schema-DULDzfuE.js";import"./vendor-form-Df9-JY-v.js";import"./useToggleSelection-B5hv0vDo.js";import"./EnhancedTableHead-BUFi7wgS.js";import"./ImageCell-CrraFrmp.js";import"./index-BLxIfDVv.js";import"./Pagination-BEr3PSlh.js";import"./vendor-utils-Bdq6QFHX.js";import"./Classes-DVJtYxLF.js";import"./Loyalty-CTlGB84x.js";import"./MembershipCategories-tcoj0K39.js";import"./Memberships-DYjZCDAu.js";import"./Promotions-0cO0aI2r.js";import"./Trainers-CQ2AxXPJ.js";import"./Users-Bul883N6.js";import"./index-BFvhg5Gd.js";import"./useDebouncedValue-CkrckZR6.js";import"./ThumbnailPicker-Ci9L3Ojx.js";import"./Media-Cs8_YsNr.js";import"./NotFound-yfX5vOmO.js";import"./InputDragData-BOWMbqkn.js";import"./timezone-COT_nWgr.js";import"./Home-CMDHSwXo.js";import"./vendor-redux-Bi3kFs4E.js";const rt=()=>{const{t}=b(),{showMessage:e,startProgress:p,completeProgress:l}=C(),[c,i]=n.useState(!1),u=L();async function d(r){try{i(!0),p();const a=await j({...r,thumbnail:r?.thumbnail?.id,categories:r?.categories?.map(s=>s.id)});if(a.error)y(a.data,e,t);else{const{data:s}=a;e("success",t(m.response.create_successful)),s?.id&&u("/admin/translations/"+s.id)}}catch{e("error",t(m.response.error))}finally{i(!1),l(!0)}}const f=r=>{d(r)};return o.jsx(n.Fragment,{children:o.jsxs(g,{sx:{width:"100%"},children:[o.jsx(x,{title:t("Create translation"),breadcrumb:[{title:"Translations",url:"/admin/translations/"},{title:t("Create translation")}],backLink:"/admin/translations"}),o.jsx(h,{schema:P,onSubmit:f,isLoading:c,submitLabel:"Create translation"})]})})};export{rt 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.