/**
 * This file is part of the NocoBase (R) project.
 * Copyright (c) 2020-2024 NocoBase Co., Ltd.
 * Authors: NocoBase Team.
 *
 * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
 * For more information, please refer to: https://www.nocobase.com/agreement.
 */

"use strict";(self.webpackChunk_nocobase_plugin_workflow=self.webpackChunk_nocobase_plugin_workflow||[]).push([["394"],{4137:function(e,l,r){r.r(l),r.d(l,{TriggerScheduleConfig:function(){return s}});var n=r(2059),t=r(9185),a=r.n(t),o=r(9155),i=r.n(o),u=r(2235),d=r(8198),c=r(9488),h=r(4869),f=r(1993);function m(e){var l=e.value,r=e.onChange,t=e.placeholder;return i().createElement(n.DatePicker,{showTime:!0,value:l?a()(l):null,placeholder:t,style:{width:"100%"},onChange:function(e){return null==r?void 0:r(e?e.toDate():null)}})}function s(){var e,l=(0,u.Zt)(),r=(0,c.kj)();if((null==l||null==(e=l.config)?void 0:e.mode)===f.a.DATE_FIELD){var t=h.th[f.a.DATE_FIELD].data;return i().createElement(n.Form.Item,{name:"data",label:r(t.title),extra:t.description?r(t.description):void 0,rules:t.required?[{required:!0}]:void 0},i().createElement(d.g4,null))}var a=h.th[f.a.STATIC].date;return i().createElement(n.Form.Item,{name:"date",label:r(a.title),initialValue:new Date,rules:a.required?[{required:!0}]:void 0},i().createElement(m,{placeholder:a.placeholder?r(a.placeholder):void 0}))}l.default=s}}]);