"use strict";(globalThis.webpackChunkacadlix=globalThis.webpackChunkacadlix||[]).push([["admin_course_settings_general_end_date"],{"./src/free/admin/course_settings/EndDate.js":(e,t,a)=>{a.r(t),a.d(t,{default:()=>m}),a("react");var r=a("./node_modules/@mui/material/esm/Grid/Grid.js"),s=a("./node_modules/@mui/material/esm/Typography/Typography.js"),i=a("./node_modules/@mui/x-date-pickers/internals/demo/DemoContainer.js"),o=a("./node_modules/@mui/x-date-pickers/DateTimePicker/DateTimePicker.js"),n=a("./src/helpers/util.js"),d=(a("@wordpress/i18n"),a("react/jsx-runtime"));const m=e=>(0,d.jsxs)(r.A,{size:{xs:12,sm:12},children:[(0,d.jsx)(i.j,{components:["DateTimePicker"],children:(0,d.jsx)(o.K,{format:"DD/MM/YYYY hh:mm:a",timeSteps:{minutes:1},sx:{".MuiInputBase-input":{padding:"8px 14px !important",border:"0 !important",boxShadow:"none !important"},".MuiInputBase-input:focus":{padding:"8px 14px !important",border:"0 !important",boxShadow:"none !important"},".MuiFormLabel-root":{top:"-7px !important"},".MuiInputLabel-shrink":{top:"0px !important"}},disabled:!0,onChange:t=>{e?.setValue("meta.end_date",(0,n.VH)(t),{shouldDirty:!0})}})}),e?.formState?.errors?.meta?.end_date&&(0,d.jsx)(s.A,{component:"p",color:"error",children:e?.formState?.errors?.meta?.end_date?.message})]})}}]);