/*!
 * Built by ShiftSoftware
 * Copyright (c)
 */
import{y as l}from"./p-BuurMgGN.js";import{g as o}from"./p-D0IHkGuC.js";const i=(i,d,v)=>{var n,u,e,a,s,t,r,m,M,$,g,p,x,D,b,c,f;const[j,w]=null===(n=null==i?void 0:i.form)||void 0===n?void 0:n.getFormLocale(),G=(null===(e=null===(u=null==i?void 0:i.localization)||void 0===u?void 0:u[w])||void 0===e?void 0:e.label)||o(j,null==d?void 0:d.label)||(null==d?void 0:d.label),h=(null===(s=null===(a=null==i?void 0:i.localization)||void 0===a?void 0:a[w])||void 0===s?void 0:s.placeholder)||o(j,null==d?void 0:d.placeholder)||(null==d?void 0:d.placeholder);let k="";return(null==v?void 0:v.endsWith(l.format("")))&&(k=null===(r=null===(t=null==i?void 0:i.localization)||void 0===t?void 0:t[w])||void 0===r?void 0:r.format),(null==v?void 0:v.endsWith(l.size("")))?k=null===(M=null===(m=null==i?void 0:i.localization)||void 0===m?void 0:m[w])||void 0===M?void 0:M.size:(null==v?void 0:v.endsWith(l.require("")))?k=null===(g=null===($=null==i?void 0:i.localization)||void 0===$?void 0:$[w])||void 0===g?void 0:g.require:"minMessage"===v?k=null==i?void 0:i.withSlots((null===(x=null===(p=null==i?void 0:i.localization)||void 0===p?void 0:p[w])||void 0===x?void 0:x.minMessage)||"Min date is $minDate$"):"maxMessage"===v?k=null==i?void 0:i.withSlots((null===(b=null===(D=null==i?void 0:i.localization)||void 0===D?void 0:D[w])||void 0===b?void 0:b.maxMessage)||"Max date is $maxDate$"):"betweenMessage"===v&&(k=null==i?void 0:i.withSlots((null===(f=null===(c=null==i?void 0:i.localization)||void 0===c?void 0:c[w])||void 0===f?void 0:f.betweenMessage)||"Must be between $minDate$ and $maxDate$")),{label:G,placeholder:h,errorTextMessage:k||j[v]||v}};export{i as g}