PageSourceSearch

https://id.movevn.com/assets/UpdatePost-D3rDRV1G.js

js movevn.com collected 2026-09-24 13:59:39 UTC 2,217 bytes, 1 lines download raw bytes

1import{j as a,B as y}from"./vendor-mui-DFXKyM2E.js";import{D as P}from"./DynamicForm-BxgY4B9n.js";import{N as T}from"./NavHeader-BROh2czj.js";import{u as w,a as L,P as N}from"./index-DGSpuRBj.js";import{m as i}from"./message-ClwATxdx.js";import{a as U}from"./ErrorHandler-D0uxaT5w.js";import{b as E,u as I}from"./Trainers-_ThWE0L6.js";import{l as S,a as n,u as v}from"./vendor-react-CrXZvyk_.js";import{s as D}from"./schema-CkxepYwj.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"./Promotions-CUdrRC69.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 pr=()=>{const{id:m}=S(),{t:r}=w(),{showMessage:s,startProgress:d,completeProgress:l}=L(),[f,p]=n.useState(!1),[u,h]=n.useState(!1),g=v();async function b(){try{if(m){const t=await E(Number(m));if(!t.error){const{data:e}=t;e&&h(e)}}}catch{s("error",r(i.response.error))}}async function x(t,e){try{if(p(!0),d(),t){const o=await I(Number(t),{...e,thumbnail:e?.thumbnail?.id,user_id:e?.user?.id});if(o.error)U(o.data,s,r);else{const{data:c}=o;s("success",r(i.response.update_successful)),c?.id&&g("/admin/trainers/"+c.id)}}else s("error",r(i.response.error))}catch{s("error",r(i.response.error))}finally{p(!1),l(!0)}}const j=t=>{x(m,t)};return n.useEffect(()=>{b()},[]),u?a.jsx(n.Fragment,{children:a.jsxs(y,{sx:{width:"100%"},children:[a.jsx(T,{title:r("Update Instructor"),breadcrumb:[{title:r("Instructors"),url:"/admin/trainers/"},{title:r("Update Instructor")}],backLink:"/admin/trainers"}),a.jsx(P,{schema:D,onSubmit:j,defaultValues:u,isLoading:f,submitLabel:r("Update"),showTitle:!1})]})}):a.jsx(N,{height:500})};export{pr 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.