@canton-network/core-wallet-ui-components 1.2.2 → 1.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -59,7 +59,7 @@
59
59
  background-color: rgba(var(--wg-success-rgb), 0.14);
60
60
  color: var(--wg-success);
61
61
  }
62
- `];let f=rr;const Ge=["/login","/parties/add","/parties","/wallets","/settings","/networks/add","/networks/review","/networks","/identity-providers/add","/identity-providers/review","/identity-providers","/activities","/approve","/","/404","/callback"];function La(e){return Ge.includes(e)}const Ua=Ge.filter(e=>e!=="/").sort((e,t)=>t.length-e.length);function Mr(e){if(!e||e==="/")return"/";if(e.length>1e3)throw new Error("Path is too long");const t=e.replace(/\/+$/,"")||"/";return t==="/index.html"?"/":t.endsWith("/index.html")?t.slice(0,-11)||"/":t}function Rr(e){const t=Mr(e);if(t==="/")return"/";for(const r of Ua)if(t===r||t.endsWith(`${r}`))return r;return null}function Ga(e){const t=Mr(e),r=Rr(t);return r===null||r==="/"?t==="/"?"":t:t.slice(0,-r.length)||""}function xt(e,t=window.location.pathname){const r=Ga(t),o=e.startsWith("/")?e:`/${e}`;return r?o==="/"?`${r}/`:`${r}${o}`:o}function Fa(e,t=window.location.pathname){return xt(e==="/"?"/":`${e}/`,t)}const Ha=l.html`
62
+ `];let f=rr;const Ge=["/login","/parties/add","/parties","/wallets","/settings","/networks/add","/networks/review","/networks","/identity-providers/add","/identity-providers/review","/identity-providers","/activities","/approve","/sign-message","/","/404","/callback"];function La(e){return Ge.includes(e)}const Ua=Ge.filter(e=>e!=="/").sort((e,t)=>t.length-e.length);function Mr(e){if(!e||e==="/")return"/";if(e.length>1e3)throw new Error("Path is too long");const t=e.replace(/\/+$/,"")||"/";return t==="/index.html"?"/":t.endsWith("/index.html")?t.slice(0,-11)||"/":t}function Rr(e){const t=Mr(e);if(t==="/")return"/";for(const r of Ua)if(t===r||t.endsWith(`${r}`))return r;return null}function Ga(e){const t=Mr(e),r=Rr(t);return r===null||r==="/"?t==="/"?"":t:t.slice(0,-r.length)||""}function xt(e,t=window.location.pathname){const r=Ga(t),o=e.startsWith("/")?e:`/${e}`;return r?o==="/"?`${r}/`:`${r}${o}`:o}function Fa(e,t=window.location.pathname){return xt(e==="/"?"/":`${e}/`,t)}const Ha=l.html`
63
63
  <svg
64
64
  xmlns="http://www.w3.org/2000/svg"
65
65
  width="16"