You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1 line
539 B

function e(e,t){return`${typeof window<`u`?window.location.origin:``}${`/admin/`.replace(/\/$/,``)}/c/${encodeURIComponent(e)}/t/${encodeURIComponent(t)}`}function t(e,t){let n=`${typeof window<`u`?window.location.origin:``}${`/admin/`.replace(/\/$/,``)}/c/${encodeURIComponent(e)}/checkin`;return t?`${n}?session=${t}`:n}function n(e){let t=e.trim();return t?t.slice(-4).toUpperCase():``}function r(e){let t=e.trim();if(!t)return``;let n=t.match(/\/t\/([A-Za-z0-9_-]+)/i);return n?.[1]?n[1]:t.replace(/\s+/g,``)}export{n as i,e as n,r,t};