PageSourceSearch

https://id.movevn.com/assets/CreatePost-BoXS-KPc.js

js movevn.com collected 2026-09-24 14:00:17 UTC 1,878 bytes, 1 lines download raw bytes

1import{j as s,B as h}from"./vendor-mui-DFXKyM2E.js";import{D as x}from"./DynamicForm-BxgY4B9n.js";import{N as g}from"./NavHeader-BROh2czj.js";import{u as b,a as j}from"./index-DGSpuRBj.js";import{a as C}from"./ErrorHandler-D0uxaT5w.js";import{c as P}from"./Promotions-CUdrRC69.js";import{m}from"./message-ClwATxdx.js";import{a as n,u as y}from"./vendor-react-CrXZvyk_.js";import{s as L}from"./schema-FBDwhAfz.js";import"./vendor-form-Df9-JY-v.js";import"./useToggleSelection-B5hv0vDo.js";import"./EnhancedTableHead-vPc_oX9J.js";import"./ImageCell-BHxxw0kn.js";import"./index-UEKncLtL.js";import"./Pagination-75_tvtre.js";import"./vendor-utils-BFUpClQh.js";import"./Classes-DucJq9lk.js";import"./Loyalty-BuB_asmz.js";import"./MembershipCategories-BR5zDRpV.js";import"./Memberships-bRzBLWWy.js";import"./Trainers-_ThWE0L6.js";import"./Users-B12Mx37p.js";import"./index-CEAOSh_Q.js";import"./useDebouncedValue-CkrckZR6.js";import"./ThumbnailPicker-C-i6Xtbh.js";import"./Media-B8vOuwcS.js";import"./NotFound-BzQfEcD3.js";import"./InputDragData-CvwuTNdd.js";import"./timezone-DGogyvEL.js";import"./Home-CqZgsyW_.js";import"./vendor-redux-Bi3kFs4E.js";const ro=()=>{const{t:o}=b(),{showMessage:i,startProgress:p,completeProgress:c}=j(),[u,e]=n.useState(!1),l=y();async function d(r){try{e(!0),p();const t=await P({...r,thumbnail:r?.thumbnail?.id});if(t.error)C(t.data,i,o);else{const{data:a}=t;i("success",o(m.response.create_successful)),a?.id&&l("/admin/promotions/"+a.id)}}catch{i("error",o(m.response.error))}finally{e(!1),c(!0)}}const f=r=>{d(r)};return s.jsx(n.Fragment,{children:s.jsxs(h,{sx:{width:"100%"},children:[s.jsx(g,{title:o("Create promotion"),breadcrumb:[{title:"Promotions",url:"/admin/promotions/"},{title:o("Create promotion")}],backLink:"/admin/promotions"}),s.jsx(x,{schema:L,onSubmit:f,isLoading:u,submitLabel:"Create promotion"})]})})};export{ro 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.