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