@digital-blueprint/formalize-app
Version:
[GitHub Repository](https://github.com/digital-blueprint/formalize-app) | [npmjs package](https://www.npmjs.com/package/@digital-blueprint/formalize-app) | [Unpkg CDN](https://unpkg.com/browse/@digital-blueprint/formalize-app/) | [Formalize Bundle](https:
35 lines (34 loc) • 1.67 kB
JavaScript
/*!
* License: LGPL-2.1-or-later
* Dependencies:
*
* @webcomponents/scoped-custom-element-registry: BSD-3-Clause
* @dbp-toolkit/app-shell: LGPL-2.1-or-later
* @dbp-toolkit/language-select: LGPL-2.1-or-later
* @dbp-toolkit/auth: LGPL-2.1-or-later
* @dbp-toolkit/theme-switcher: LGPL-2.1-or-later
* universal-router: MIT
* @dbp-toolkit/matomo: LGPL-2.1-or-later
* @dbp-toolkit/tabulator-table: LGPL-2.1-or-later
* xlsx: Apache-2.0
* jspdf-autotable: MIT
* xss: MIT
* cssfilter: MIT
* @dbp-toolkit/common: LGPL-2.1-or-later
* lit-html: BSD-3-Clause
* @dbp-toolkit/file-handling: LGPL-2.1-or-later
* webdav: MIT
* jose: MIT
* file-saver: MIT
* @dbp-toolkit/grant-permission-dialog: LGPL-2.1-or-later
* @dbp-toolkit/pdf-viewer: LGPL-2.1-or-later
* pdfjs-dist: Apache-2.0
* html2pdf.js: MIT
* jspdf: MIT
* @dbp-toolkit/notification: LGPL-2.1-or-later
* tabulator-tables: MIT
* @babel/runtime: MIT
* fflate: MIT
*/
const e=e=>e.replace(/([A-Z])/g,"-$1").toLowerCase(),t=e=>{const t=new URL(window.location.href);return`${t.origin}${t.pathname.replace(/^(.*\/[de][en]).*$/,"$1")}/render-form/${e}`},n=e=>{const t=new URL(window.location.href);return`${t.origin}${t.pathname.replace(/^(.*\/[de][en]).*$/,"$1")}/show-registrations/${e}`},r=1,i=4;function a(e){if(!e)return"";const t=new Date(e);return isNaN(t.getTime())?e:t.toLocaleDateString("de-DE",{second:"2-digit",minute:"2-digit",hour:"2-digit",day:"2-digit",month:"2-digit",year:"numeric"})}async function o(e,t){return await fetch(e,t).then((e=>{if(!e.ok)throw e;return e})).catch((e=>e))}export{i as S,t as a,r as b,a as f,n as g,o as h,e as p};
//# sourceMappingURL=utils.BRAAprrM.es.js.map