1import{q as r,u as e}from"./2c1ab0fe.XVnTovwp.js";import{D as t}from"./9f57d2aa.D2OcdBXp.js";import{a as i}from"./f67abd2c.DYpmk7mw.js";import{m as a,F as o}from"./164ad2e3.hrg71Gqs.js";import"./8574876b.DO_JQrVo.js";import"./app.Bke-0Cv3.js";import"./064f6ac1.CIMGQtoa.js";import"./d0bb51ec.Bel_y502.js";import"./60a453ce.Al5ISuVm.js";import"./e12db40c.D-IRYT_x.js";import"./9dba8418.C8BcPjk_.js";function s({field:s}){const d=function({required:e,requiredErrorMessage:t}){const{i18n:a}=i();return r(r=>{if(""===r.trim()){if(!e.value)return;return t.value?.trim()||a.translate("field_errors.custom_field.cart_metafield_value_required")}if(!function(r){const e=new Date(`${r}T00:00`);return!Number.isNaN(e.getTime())&&`${e.getFullYear()}-${String(e.getMonth()+1).padStart(2,"0")}-${String(e.getDate()).padStart(2,"0")}`===r}(r))return a.translate("field_errors.custom_field.cart_metafield_invalid_date")},[a,e,t])}(s),{validatedInput:n,fieldProps:f,persist:m}=a(s,{type:"date",validate:d}),{error:p,...l}=n;return e(o,{field:s,children:e(t,{...l,...f,error:"string"==typeof p?p:void 0,onBlur:m,onPickerHide:m})})}export{s as DateField};
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.