const i=e=>`${window.origin}/online-menu/${e}`,s=e=>e||"data:image/svg+xml;base64,"+btoa(`
    <svg width="300" height="200" xmlns="http://www.w3.org/2000/svg">
      <rect width="300" height="200" fill="#e0e0e0"/>
      <text x="50%" y="50%" font-size="20" text-anchor="middle" fill="#9e9e9e" dy=".3em">No Image</text>
    </svg>
  `);function g({prefix:e="",length:r=6,includeYear:l=!1}={}){const o="ABCDEFGHJKMNPQRSTUVWXYZ23456789";let n="";for(let t=0;t<r;t++)n+=o.charAt(Math.floor(Math.random()*o.length));let a=e?`${e.toUpperCase()}-${n}`:n;if(l){const t=new Date().getFullYear();a=`${a}${t}`}return a}export{i as a,g as b,s as g};
