1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3275,1450],{83275:function(e,t,a){"use strict";a.r(t),a.d(t,{AyniContentDateStateWrapper:function(){return y}});var n=a(11527),l=a(50959),r=a(91728),i=a(83763),o=a(7462),s=a.n(o),d=a(95903),u=a(16483),m=a.n(u),c=a(12212),h=a.n(c);let p=s()(()=>a.e(3122).then(a.bind(a,63122)).then(e=>e.DateTimePicker),{loadableGenerated:{webpack:()=>[63122]}}),f=e=>{let{value:t,onChange:a}=e,r=(e,n)=>{a({...t,[e]:n})},i=(0,l.useRef)();return(0,n.jsxs)("div",{className:h().datesGroup,children:[(0,n.jsx)(p,{inputRef:i,label:"Inicio (d\xeda y hora)",defaultValue:t.from?m()(t.from):null,ampm:!1,format:"DD/MM/YYYY HH:mm",disablePast:!0,viewRenderers:{hours:d.M6,minutes:d.M6},onAccept:e=>r("from",e.toDate()),onChange:e=>r("from",e.toDate())}),(0,n.jsx)(p,{label:"Fin (d\xeda y hora)",defaultValue:t.to?m()(t.to):null,ampm:!1,format:"DD/MM/YYYY HH:mm",minDateTime:m()(t.from),viewRenderers:{hours:d.M6,minutes:d.M6},onAccept:e=>r("to",e.toDate()),onChange:e=>r("to",e.toDate())})]})};var D=a(57163),b=a(17931),x=a(95221),j=a(98425),_=a(43766);let y=l.forwardRef((e,t)=>{let{value:a,onChange:o}=e,s=(0,r.t)(t),[d,u]=(0,l.useState)(!1);(0,l.useEffect)(()=>{null===a[0].from&&u(!0)},[a]);let m=(e,t)=>{o((0,i.uQ)(a,t,e))},c=e=>{o((0,i.As)(a,e))},p=()=>{o([...a,{from:null,to:null}])};return void 0===a[0]&&a.push({from:null,to:null}),(0,n.jsxs)("div",{ref:s,children:[(0,n.jsxs)("div",{className:h().header,children:[(0,n.jsx)(b.E,{onClick:()=>{u(!1),o([])},size:"sm",icon:"DELETE",children:"Eliminar todas las fechas"}),(0,n.jsx)(j.j,{icon:"TIME_RANGE",size:"small",children:(0,n.jsxs)(x.x,{htmlTag:"span",size:"sm",weight:"extrabold",children:["Duraci\xf3n total:"," ",(0,n.jsx)(x.x,{htmlTag:"span",size:"sm",children:(0,_.Mj)(a)>0?"".concat((0,_.Mj)(a)," horas"):"â horas"})]})})]}),a.map((e,t)=>{let l=t+"de"+a.length+d.toString();return(0,n.jsxs)("div",{className:h().itemWrapper,"aria-label":"ayni date ".concat(t),children:[(0,n.jsx)(f,{value:e,onChange:e=>{m(e,t)}}),a.length>1&&(0,n.jsx)(D.h,{buttonStyle:"default",icon:"DELETE",label:"Delete",onClick:()=>{c(t)},size:"medium","aria-label":"remove ayni date ".concat(t)}),t+1===a.length&&(0,n.jsx)(D.h,{buttonStyle:"default",icon:"ADD",label:"Add",onClick:p,size:"medium","aria-label":"add new date"})]},l)})]})});y.displayName="AyniContentDateStateWrapper"},12212:function(e){e.exports={header:"AyniContentDate_header__y_brJ",datesGroup:"AyniContentDate_datesGroup__L6Mav",itemWrapper:"AyniContentDate_itemWrapper__u2YH_"}}}]);
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.