import{b as t,n as a,i as u,dJ as m,t as g}from"./index-6Jqoo2rk.js";import{I as s}from"./emailSetup-CFcJlzt-.js";import{aF as o,p as I,bt as d}from"./appDialogsManager-DnVhdlim.js";import{I as h}from"./iconTsx-Cr8T7ZIv.js";const C="_Icon_17ee9_1",T={Icon:C},b=g("<span>"),k=10,w=n=>{const r=()=>{const e=new Date;e.setMinutes(e.getMinutes()+k);const i=new Date(e);i.setHours(0,0,0,0),d({initDate:new Date(e),minDate:i,minTimeDate:e,withTime:!0,onPick:l=>{n.onChange(l)}})},c=e=>{e.stopPropagation(),n.onChange(void 0)};return t(o,{clickable:!0,get withEndButtonIcon(){return!!n.value},onClick:r,get children(){return[t(o.InputStub,{get children(){return a(()=>!!n.value)()?(()=>{const e=b();return u(e,()=>m(n.value)),e})():t(s,{get key(){return n.noTimeLangKey}})}}),t(o.Label,{active:!0,get children(){return t(s,{key:"SuggestedPosts.PublishingTime.Label"})}}),t(o.SideContent,{last:!0,get children(){return a(()=>!!n.value)()?t(I,{icon:"cross",tabIndex:-1,onClick:c}):t(h,{get class(){return T.Icon},icon:"down"})}})]}})};export{w as P,T as c};
//# sourceMappingURL=publishTimeField-BiPo2OJk.js.map
