solid-ui 5.0.2-9 → 5.1.1-0

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.
Files changed (71) hide show
  1. package/dist/chunks/{ResourceActionsMenu-mLMf4fAa.js → ResourceActionsMenu-BXFfVlEI.js} +3 -3
  2. package/dist/chunks/{ResourceActionsMenu-mLMf4fAa.js.map → ResourceActionsMenu-BXFfVlEI.js.map} +1 -1
  3. package/dist/chunks/{access-control-modal-BR7HhqpN.js → access-control-modal-Dc7teQ7m.js} +5 -5
  4. package/dist/chunks/{access-control-modal-BR7HhqpN.js.map → access-control-modal-Dc7teQ7m.js.map} +1 -1
  5. package/dist/chunks/{account-Dtv8-QEH.js → account-B0rddIGd.js} +7 -7
  6. package/dist/chunks/{account-Dtv8-QEH.js.map → account-B0rddIGd.js.map} +1 -1
  7. package/dist/chunks/{auth-Cj-J-3Nf.js → auth-CE4MdHmg.js} +4 -4
  8. package/dist/chunks/{auth-Cj-J-3Nf.js.map → auth-CE4MdHmg.js.map} +1 -1
  9. package/dist/chunks/{avatar-D_bHMV5F.js → avatar-DJ0yjBNf.js} +2 -2
  10. package/dist/chunks/{avatar-D_bHMV5F.js.map → avatar-DJ0yjBNf.js.map} +1 -1
  11. package/dist/chunks/{chunk.UEBQI7VV-CrSDe9uN.js → chunk.DC6YZU3I-XnZ8rvNJ.js} +113 -4
  12. package/dist/chunks/chunk.DC6YZU3I-XnZ8rvNJ.js.map +1 -0
  13. package/dist/chunks/{combobox-CHli5LVO.js → combobox-DAasRNdu.js} +2 -2
  14. package/dist/chunks/{combobox-CHli5LVO.js.map → combobox-DAasRNdu.js.map} +1 -1
  15. package/dist/chunks/{file-explorer-header-DGcG6Agk.js → file-explorer-header-CPPQimEm.js} +5 -5
  16. package/dist/chunks/{file-explorer-header-DGcG6Agk.js.map → file-explorer-header-CPPQimEm.js.map} +1 -1
  17. package/dist/chunks/{guard-53kvhglh.js → guard-BKBhwRSC.js} +2 -2
  18. package/dist/chunks/{guard-53kvhglh.js.map → guard-BKBhwRSC.js.map} +1 -1
  19. package/dist/chunks/{index.esm-BYrQu5rV.js → index.esm-ZV3baq4Z.js} +2 -2
  20. package/dist/chunks/{index.esm-BYrQu5rV.js.map → index.esm-ZV3baq4Z.js.map} +1 -1
  21. package/dist/chunks/{jsonld-lAxnRr2L.js → jsonld-CUuNWlXa.js} +2 -2
  22. package/dist/chunks/{jsonld-lAxnRr2L.js.map → jsonld-CUuNWlXa.js.map} +1 -1
  23. package/dist/chunks/{login-button-Dx58UUyH.js → login-button-tjnpCTqK.js} +2 -2
  24. package/dist/chunks/{login-button-Dx58UUyH.js.map → login-button-tjnpCTqK.js.map} +1 -1
  25. package/dist/chunks/{logout-button-Vrn0nLVQ.js → logout-button-G92QDuWR.js} +2 -2
  26. package/dist/chunks/{logout-button-Vrn0nLVQ.js.map → logout-button-G92QDuWR.js.map} +1 -1
  27. package/dist/chunks/{menu-pe4NxtfD.js → menu-DWJrFxb2.js} +242 -188
  28. package/dist/chunks/menu-DWJrFxb2.js.map +1 -0
  29. package/dist/chunks/{provider-CnOHE-B-.js → provider-CgiPPN8X.js} +2 -2
  30. package/dist/chunks/{provider-CnOHE-B-.js.map → provider-CgiPPN8X.js.map} +1 -1
  31. package/dist/chunks/{rdf-form-CtskuSp2.js → rdf-form-tOYpKAjG.js} +3 -3
  32. package/dist/chunks/{rdf-form-CtskuSp2.js.map → rdf-form-tOYpKAjG.js.map} +1 -1
  33. package/dist/chunks/{rdf-input-DfTBeaCB.js → rdf-input-DRkRluNN.js} +3 -3
  34. package/dist/chunks/{rdf-input-DfTBeaCB.js.map → rdf-input-DRkRluNN.js.map} +1 -1
  35. package/dist/chunks/{signup-button-C-dLsqr8.js → signup-button-Bjnf3fNW.js} +2 -2
  36. package/dist/chunks/{signup-button-C-dLsqr8.js.map → signup-button-Bjnf3fNW.js.map} +1 -1
  37. package/dist/chunks/{solidLogicSingleton.esm-CKYdvLzf.js → solidLogicSingleton.esm-B3YqaDQ6.js} +3 -3
  38. package/dist/chunks/solidLogicSingleton.esm-B3YqaDQ6.js.map +1 -0
  39. package/dist/chunks/{src-BGSmDsh3.js → src-iJvLWQaT.js} +2610 -2602
  40. package/dist/chunks/src-iJvLWQaT.js.map +1 -0
  41. package/dist/chunks/{style-Du-nyh8u.js → style-F5sQg8HH.js} +3 -3
  42. package/dist/chunks/{style-Du-nyh8u.js.map → style-F5sQg8HH.js.map} +1 -1
  43. package/dist/chunks/{widgets-CTH3oXJI.js → widgets-C3bLyBKj.js} +4 -4
  44. package/dist/chunks/{widgets-CTH3oXJI.js.map → widgets-C3bLyBKj.js.map} +1 -1
  45. package/dist/components/access-control-modal.js +1 -1
  46. package/dist/components/account.js +1 -1
  47. package/dist/components/avatar.js +1 -1
  48. package/dist/components/combobox.js +1 -1
  49. package/dist/components/file-explorer-header.js +1 -1
  50. package/dist/components/guard.js +1 -1
  51. package/dist/components/login-button.js +1 -1
  52. package/dist/components/login-modal.js +1 -1
  53. package/dist/components/logout-button.js +1 -1
  54. package/dist/components/menu.js +1 -1
  55. package/dist/components/provider.js +1 -1
  56. package/dist/components/rdf-form.js +1 -1
  57. package/dist/components/rdf-input.js +1 -1
  58. package/dist/components/resource-actions-menu.js +1 -1
  59. package/dist/components/signup-button.js +1 -1
  60. package/dist/components.js +14 -14
  61. package/dist/index.js +5 -5
  62. package/dist/loader.js +5 -5
  63. package/dist/solid-ui.js +67 -65
  64. package/dist/solid-ui.min.js +67 -65
  65. package/dist/solid-ui.min.js.map +1 -1
  66. package/dist/theme.css +1 -1
  67. package/package.json +3 -3
  68. package/dist/chunks/chunk.UEBQI7VV-CrSDe9uN.js.map +0 -1
  69. package/dist/chunks/menu-pe4NxtfD.js.map +0 -1
  70. package/dist/chunks/solidLogicSingleton.esm-CKYdvLzf.js.map +0 -1
  71. package/dist/chunks/src-BGSmDsh3.js.map +0 -1
@@ -1,12 +1,12 @@
1
1
  import { b as e, c as t, g as n, i as r, o as i, p as a, u as o } from "./components-CVuqsI0R.js";
2
- import { a as s, o as c } from "./auth-Cj-J-3Nf.js";
3
- import "./avatar-D_bHMV5F.js";
2
+ import { a as s, o as c } from "./auth-CE4MdHmg.js";
3
+ import "./avatar-DJ0yjBNf.js";
4
4
  import "./button-D7XurXfj.js";
5
- import "./login-button-Dx58UUyH.js";
6
- import "./logout-button-Vrn0nLVQ.js";
5
+ import "./login-button-tjnpCTqK.js";
6
+ import "./logout-button-G92QDuWR.js";
7
7
  import "./menu-item-EARrOY8C.js";
8
- import "./menu-pe4NxtfD.js";
9
- import "./signup-button-C-dLsqr8.js";
8
+ import "./menu-DWJrFxb2.js";
9
+ import "./signup-button-Bjnf3fNW.js";
10
10
  import "./chevron-down-CqUEolao.js";
11
11
  // ~icons/lucide/log-in
12
12
  var l = class extends HTMLElement {
@@ -286,4 +286,4 @@ new (w = (h = /*#__PURE__*/ new WeakMap(), g = /*#__PURE__*/ new WeakMap(), T =
286
286
  var z = R;
287
287
  export { R as n, z as t };
288
288
 
289
- //# sourceMappingURL=account-Dtv8-QEH.js.map
289
+ //# sourceMappingURL=account-B0rddIGd.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"account-Dtv8-QEH.js","names":["consume","html","nothing","property","customElement","WebComponent","authContext","DEFAULT_AUTH_CONTEXT","styles","_classDecs","_Account","_Account2","_A","WeakMap","_B","_ref","_menuItemsDecs","type","Array","_authDecs","context","subscribe","_Account3","Account","constructor","args","_classPrivateFieldInitSpec","_initProto","_init_menuItems","_init_auth","_defineProperty","_classPrivateFieldGet","menuItems","v","_classPrivateFieldSet","auth","connectedCallback","unsubscribeSessionUpdated","onSessionUpdated","requestUpdate","disconnectedCallback","render","initialized","account","map","menuItem","href","selected","onSelected","label","e","c","_initClass","_applyDecs","_Class","_identity","initializing","component","loggedIn","Account","c","A","customElement","n","WebComponent","i","b","DEFAULT_AUTH_CONTEXT","authContext","iconlucidelogin","iconlucidelogout","iconlucideuser","Account_styles_default","_Class","_Account3","_A","_B","_initProto","_initClass","_classDecs","_menuItemsDecs","_init_menuItems","_authDecs","_init_auth","_Account2","_ref","_classPrivateFieldInitSpec","a","_checkPrivateRedeclaration","_classPrivateFieldSet","s","_assertClassBrand","r","_classPrivateFieldGet","_defineProperty","_toPropertyKey","t","_applyDecs","o","applyDec","m","h","y","v","g","u","w","S","d","p","_setFunctionName","P","j","D","I","F","l","f","N","_checkInRHS","_toPrimitive","e","_identity","_Account","args","menuItem","component","account_default"],"sources":["../../src/components/account/Account.ts","../../src/components/account/index.ts"],"sourcesContent":["import { consume } from '@lit/context'\nimport { html, nothing, TemplateResult } from 'lit'\nimport { property } from 'lit/decorators.js'\nimport { customElement, WebComponent } from '@/lib/components'\nimport { authContext, AuthContext, DEFAULT_AUTH_CONTEXT } from '@/lib/auth'\n\nimport '@/components/avatar'\nimport '@/components/button'\nimport '@/components/login-button'\nimport '@/components/logout-button'\nimport '@/components/menu-item'\nimport '@/components/menu'\nimport '@/components/signup-button'\nimport '~icons/lucide/chevron-down'\nimport '~icons/lucide/log-in'\nimport '~icons/lucide/log-out'\nimport '~icons/lucide/user'\nimport '~icons/svg-spinners/180-ring'\n\nimport styles from './Account.styles.css'\n\nexport interface AccountMenuItem {\n label: string | TemplateResult\n href?: string\n selected?: boolean\n onSelected?(): void\n}\n\n@customElement('solid-ui-account')\nexport default class Account extends WebComponent {\n static styles = styles\n static states = {\n initializing: (component: Account) => !component.auth.initialized,\n loggedIn: (component: Account) => !!component.auth.account,\n }\n\n @property({ type: Array })\n accessor menuItems: AccountMenuItem[] = []\n\n @consume({ context: authContext, subscribe: true })\n private accessor auth: AuthContext = DEFAULT_AUTH_CONTEXT\n\n private unsubscribeSessionUpdated?: () => void\n\n connectedCallback () {\n super.connectedCallback()\n\n this.unsubscribeSessionUpdated = this.auth.onSessionUpdated(() => this.requestUpdate())\n }\n\n disconnectedCallback () {\n super.disconnectedCallback()\n\n this.unsubscribeSessionUpdated?.()\n }\n\n protected render () {\n if (!this.auth.initialized) {\n return html`\n <icon-svg-spinners-180-ring></icon-svg-spinners-180-ring>\n `\n }\n\n if (!this.auth.account) {\n return html`\n <solid-ui-login-button>\n <solid-ui-button slot=\"trigger\">\n <icon-lucide-user slot=\"left-icon\"></icon-lucide-user>\n Log In\n </solid-ui-button>\n </solid-ui-login-button>\n <solid-ui-signup-button>\n <solid-ui-button slot=\"trigger\" variant=\"outline\">\n <icon-lucide-log-in slot=\"left-icon\"></icon-lucide-log-in>\n Sign Up\n </solid-ui-button>\n </solid-ui-signup-button>\n `\n }\n\n return html`\n <solid-ui-menu placement=\"bottom-end\">\n <button type=\"button\" slot=\"trigger\">\n <solid-ui-avatar></solid-ui-avatar>\n <icon-lucide-chevron-down slot=\"right-icon\"></icon-lucide-chevron-down>\n </button>\n\n ${this.menuItems.map(menuItem => html`\n <solid-ui-menu-item .href=${menuItem.href ?? nothing} ?selected=${menuItem.selected} @solid-ui-select=${() => menuItem.onSelected?.()}>\n ${menuItem.label}\n </solid-ui-menu-item>\n `)}\n <solid-ui-logout-button>\n <solid-ui-menu-item slot=\"trigger\">\n <icon-lucide-log-out slot=\"left-icon\"></icon-lucide-log-out>\n Sign out\n </solid-ui-menu-item>\n </solid-ui-logout-button>\n </solid-ui-menu>\n `\n }\n}\n","import Account, { type AccountMenuItem } from './Account'\n\nexport { Account, type AccountMenuItem }\nexport default Account\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAmByCS,IAAA,CASxCL,EAAc,kBAAkB,CAAC;AAAA,IAAAM;AAAA,KAAAC,KAAAC,kBAAA,IAAAC,QAAA,GAAAC,kBAAA,IAAAD,QAAA,GAAAE,KAAAC,IAQ/Bb,EAAS,EA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AA;CAAA;AAAA,GAAA;CAAAG;CAAA;CAAA;AAAA,CAAA,GAAAV,GAAA,GAAA,KAAA,GAxEoCJ,CAAY,GAAAiB,IAAAgC,IAAA,cAAAC,EAAA;CAAA/B,cAAA;EAAA,MAAAd,CAAA,GAAAoB,EAAA,MAAA,UAC/BtB,CAAM,GAAAsB,EAAA,MAAA,UACN;GACd0B,eAAeC,MAAuB,CAACA,EAAUtB,KAAKO;GACtDgB,WAAWD,MAAuB,CAAC,CAACA,EAAUtB,KAAKQ;EACrD,CAAC,GAAAS,EAAA;CAAA;AAAA,GAAAtB,EAAAwB,GAAA3C,GAAA,KAAA,CAAA,GAAA2C,GAAA;;AC/BH,IAAAyE,IAAepE"}
1
+ {"version":3,"file":"account-B0rddIGd.js","names":["consume","html","nothing","property","customElement","WebComponent","authContext","DEFAULT_AUTH_CONTEXT","styles","_classDecs","_Account","_Account2","_A","WeakMap","_B","_ref","_menuItemsDecs","type","Array","_authDecs","context","subscribe","_Account3","Account","constructor","args","_classPrivateFieldInitSpec","_initProto","_init_menuItems","_init_auth","_defineProperty","_classPrivateFieldGet","menuItems","v","_classPrivateFieldSet","auth","connectedCallback","unsubscribeSessionUpdated","onSessionUpdated","requestUpdate","disconnectedCallback","render","initialized","account","map","menuItem","href","selected","onSelected","label","e","c","_initClass","_applyDecs","_Class","_identity","initializing","component","loggedIn","Account","c","A","customElement","n","WebComponent","i","b","DEFAULT_AUTH_CONTEXT","authContext","iconlucidelogin","iconlucidelogout","iconlucideuser","Account_styles_default","_Class","_Account3","_A","_B","_initProto","_initClass","_classDecs","_menuItemsDecs","_init_menuItems","_authDecs","_init_auth","_Account2","_ref","_classPrivateFieldInitSpec","a","_checkPrivateRedeclaration","_classPrivateFieldSet","s","_assertClassBrand","r","_classPrivateFieldGet","_defineProperty","_toPropertyKey","t","_applyDecs","o","applyDec","m","h","y","v","g","u","w","S","d","p","_setFunctionName","P","j","D","I","F","l","f","N","_checkInRHS","_toPrimitive","e","_identity","_Account","args","menuItem","component","account_default"],"sources":["../../src/components/account/Account.ts","../../src/components/account/index.ts"],"sourcesContent":["import { consume } from '@lit/context'\nimport { html, nothing, TemplateResult } from 'lit'\nimport { property } from 'lit/decorators.js'\nimport { customElement, WebComponent } from '@/lib/components'\nimport { authContext, AuthContext, DEFAULT_AUTH_CONTEXT } from '@/lib/auth'\n\nimport '@/components/avatar'\nimport '@/components/button'\nimport '@/components/login-button'\nimport '@/components/logout-button'\nimport '@/components/menu-item'\nimport '@/components/menu'\nimport '@/components/signup-button'\nimport '~icons/lucide/chevron-down'\nimport '~icons/lucide/log-in'\nimport '~icons/lucide/log-out'\nimport '~icons/lucide/user'\nimport '~icons/svg-spinners/180-ring'\n\nimport styles from './Account.styles.css'\n\nexport interface AccountMenuItem {\n label: string | TemplateResult\n href?: string\n selected?: boolean\n onSelected?(): void\n}\n\n@customElement('solid-ui-account')\nexport default class Account extends WebComponent {\n static styles = styles\n static states = {\n initializing: (component: Account) => !component.auth.initialized,\n loggedIn: (component: Account) => !!component.auth.account,\n }\n\n @property({ type: Array })\n accessor menuItems: AccountMenuItem[] = []\n\n @consume({ context: authContext, subscribe: true })\n private accessor auth: AuthContext = DEFAULT_AUTH_CONTEXT\n\n private unsubscribeSessionUpdated?: () => void\n\n connectedCallback () {\n super.connectedCallback()\n\n this.unsubscribeSessionUpdated = this.auth.onSessionUpdated(() => this.requestUpdate())\n }\n\n disconnectedCallback () {\n super.disconnectedCallback()\n\n this.unsubscribeSessionUpdated?.()\n }\n\n protected render () {\n if (!this.auth.initialized) {\n return html`\n <icon-svg-spinners-180-ring></icon-svg-spinners-180-ring>\n `\n }\n\n if (!this.auth.account) {\n return html`\n <solid-ui-login-button>\n <solid-ui-button slot=\"trigger\">\n <icon-lucide-user slot=\"left-icon\"></icon-lucide-user>\n Log In\n </solid-ui-button>\n </solid-ui-login-button>\n <solid-ui-signup-button>\n <solid-ui-button slot=\"trigger\" variant=\"outline\">\n <icon-lucide-log-in slot=\"left-icon\"></icon-lucide-log-in>\n Sign Up\n </solid-ui-button>\n </solid-ui-signup-button>\n `\n }\n\n return html`\n <solid-ui-menu placement=\"bottom-end\">\n <button type=\"button\" slot=\"trigger\">\n <solid-ui-avatar></solid-ui-avatar>\n <icon-lucide-chevron-down slot=\"right-icon\"></icon-lucide-chevron-down>\n </button>\n\n ${this.menuItems.map(menuItem => html`\n <solid-ui-menu-item .href=${menuItem.href ?? nothing} ?selected=${menuItem.selected} @solid-ui-select=${() => menuItem.onSelected?.()}>\n ${menuItem.label}\n </solid-ui-menu-item>\n `)}\n <solid-ui-logout-button>\n <solid-ui-menu-item slot=\"trigger\">\n <icon-lucide-log-out slot=\"left-icon\"></icon-lucide-log-out>\n Sign out\n </solid-ui-menu-item>\n </solid-ui-logout-button>\n </solid-ui-menu>\n `\n }\n}\n","import Account, { type AccountMenuItem } from './Account'\n\nexport { Account, type AccountMenuItem }\nexport default Account\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAmByCS,IAAA,CASxCL,EAAc,kBAAkB,CAAC;AAAA,IAAAM;AAAA,KAAAC,KAAAC,kBAAA,IAAAC,QAAA,GAAAC,kBAAA,IAAAD,QAAA,GAAAE,KAAAC,IAQ/Bb,EAAS,EAAEc,MAAMC,MAAM,CAAC,GAACC,IAGzBnB,EAAQ;CAAEoB,SAASd;CAAae,WAAW;AAAK,CAAC,GAAC,cAAAC,IAXrD,cACqCjB,EAAa;CAAAmB,YAAA,GAAAC,GAAA;EAWSK,AAXT,MAAA,GAAAL,CAAA,GAAAC,EAAA,MAAAd,IAAAe,EAAA,IAAA,GAAAC,EAAA,MAQR,CAAA,CAAE,EAAA,GAAAF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AAKO;GACtDgB,WAAWD,MAAuB,CAAC,CAACA,EAAUtB,KAAKQ;EACrD,CAAC,GAAAS,EAAA;CAAA;AAAA,GAAAtB,EAAAwB,GAAA3C,GAAA,KAAA,CAAA,GAAA2C,GAAA;;AC/BH,IAAAyE,IAAepE"}
@@ -1,6 +1,6 @@
1
1
  import { b as e, c as t, g as n, i as r, o as i, p as a, r as o, u as s, x as c } from "./components-CVuqsI0R.js";
2
- import { b as l, t as u, y as d } from "./solidLogicSingleton.esm-CKYdvLzf.js";
3
- import { n as f, r as p } from "./index.esm-BYrQu5rV.js";
2
+ import { b as l, t as u, y as d } from "./solidLogicSingleton.esm-B3YqaDQ6.js";
3
+ import { n as f, r as p } from "./index.esm-ZV3baq4Z.js";
4
4
  import { t as m } from "./query-DjAOg-tk.js";
5
5
  import { t as h } from "./dialogs-gEIIeLi6.js";
6
6
  import "./chevron-down-CqUEolao.js";
@@ -8,7 +8,7 @@ import "./dialog-BTlq_YfO.js";
8
8
  import "./dialog-content-DHim135-.js";
9
9
  import "./dialog-footer-B8uRmp3J.js";
10
10
  import "./button-D7XurXfj.js";
11
- import "./combobox-CHli5LVO.js";
11
+ import "./combobox-DAasRNdu.js";
12
12
  import "./combobox-option-lOJdg5cD.js";
13
13
  // node_modules/solid-logic/dist/issuer/issuerLogic.esm.js
14
14
  var g = [
@@ -422,4 +422,4 @@ var ue = class {
422
422
  };
423
423
  export { b as a, v as c, $ as i, _ as l, ue as n, x as o, se as r, y as s, ce as t };
424
424
 
425
- //# sourceMappingURL=auth-Cj-J-3Nf.js.map
425
+ //# sourceMappingURL=auth-CE4MdHmg.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"auth-Cj-J-3Nf.js","names":["Account","webId","avatarUrl","constructor","NoopAuth","initialized","account","login","Error","signup","logout","onSessionUpdated","undefined","createContext","NoopAuth","DEFAULT_AUTH_CONTEXT","authContext","Symbol","customElement","WebComponent","html","nothing","consume","property","query","state","authContext","DEFAULT_AUTH_CONTEXT","getSuggestedIssuers","styles","_classDecs","_LoginModal","_LoginModal2","_A","WeakMap","_B","_C","_D","_E","_F","_ref","_issuerUrlDecs","type","String","reflect","_issuerInputValueDecs","_failedDecs","_submittingDecs","_authDecs","context","subscribe","_dialogDecs","_LoginModal3","LoginModal","constructor","args","_classPrivateFieldInitSpec","_initProto","_init_issuerUrl","_init_issuerInputValue","_init_failed","_init_submitting","_init_auth","_init_dialog","_classPrivateFieldGet","issuerUrl","v","_classPrivateFieldSet","issuerInputValue","failed","submitting","auth","dialog","connectedCallback","localStorage","getItem","uri","render","suggestedIssuers","onSubmit","onIssuerInputChange","map","issuer","name","close","e","target","value","preventDefault","login","error","console","c","_initClass","_applyDecs","_Class","_identity","_defineProperty","LoginModal","Account","ns","authn","authSession","reloadOnIdentityReplaced","solidLogicSingleton","showDialog","LoginModal","DEFAULT_SIGNUP_URL","findAccountImage","webId","store","me","sym","image","any","sioc","foaf","vcard","value","undefined","SolidAuth","_initialized","profileLoaded","listeners","constructor","signupUrl","initialize","events","on","updater","flagAuthorizationMetadata","info","isLoggedIn","window","location","reload","checkUser","forEach","listener","loadProfile","account","profile","loadMe","initialized","isActive","Boolean","avatarUrl","login","loginUrl","preLoginRedirectHash","URL","href","hash","localStorage","setItem","locationUrl","signup","open","logout","onSessionUpdated","callback","sessionEventTarget","push","addEventListener","filter","_listener","removeEventListener","off","c","A","customElement","n$1","WebComponent","i","b","n","ns_default","c$1","C","O","k","e$1","showDialog","e","t","r","Account","webId","avatarUrl","NoopAuth","DEFAULT_AUTH_CONTEXT","authContext","LoginModal_styles_default","_Class","_LoginModal3","_A","_B","_C","_D","_E","_F","_initProto","_initClass","_classDecs","_issuerUrlDecs","_init_issuerUrl","_issuerInputValueDecs","_init_issuerInputValue","_failedDecs","_init_failed","_submittingDecs","_init_submitting","_authDecs","_init_auth","_dialogDecs","_init_dialog","_LoginModal2","_ref","_classPrivateFieldInitSpec","a","_checkPrivateRedeclaration","_classPrivateFieldSet","s","_assertClassBrand","_classPrivateFieldGet","_defineProperty","_toPropertyKey","_applyDecs","o","applyDec","m","h","y","v","g","u","w","S","d","p","_setFunctionName","P","j","D","I","F","l","f","N","_checkInRHS","_toPrimitive","_identity","_LoginModal","args","suggestedIssuers","issuer","error","login_modal_default","DEFAULT_SIGNUP_URL","findAccountImage","store","me","image","SolidAuth","signupUrl","listener","loginUrl","preLoginRedirectHash","locationUrl","sessionEventTarget","_listener"],"sources":["../../node_modules/solid-logic/dist/issuer/issuerLogic.esm.js","../../src/lib/auth/Account.ts","../../src/lib/auth/NoopAuth.ts","../../src/lib/auth/context.ts","../../src/components/login-modal/LoginModal.ts","../../src/components/login-modal/index.ts","../../src/lib/auth/SolidAuth.ts"],"sourcesContent":["// src/issuer/issuerLogic.ts\nvar e = [\n\t{\n\t\tname: \"Solid Community\",\n\t\turi: \"https://solidcommunity.net\"\n\t},\n\t{\n\t\tname: \"Solid Web\",\n\t\turi: \"https://solidweb.org\"\n\t},\n\t{\n\t\tname: \"Solid Web ME\",\n\t\turi: \"https://solidweb.me\"\n\t},\n\t{\n\t\tname: \"Inrupt.com\",\n\t\turi: \"https://login.inrupt.com\"\n\t}\n];\nfunction t() {\n\tlet t = [...e], { host: n, origin: r } = new URL(location.href);\n\treturn t.map(({ uri: e }) => new URL(e).host).includes(n) || t.unshift({\n\t\tname: n,\n\t\turi: r\n\t}), t;\n}\nexport { t as getSuggestedIssuers };\n\n//# sourceMappingURL=issuerLogic.esm.js.map","export default class Account {\n public readonly webId: string\n public readonly avatarUrl?: string\n\n constructor (webId: string, avatarUrl?: string) {\n this.webId = webId\n this.avatarUrl = avatarUrl\n }\n}\n","import { AuthContext } from './context'\n\nexport default class NoopAuth implements AuthContext {\n public readonly initialized = false\n public readonly account = null\n\n async login () {\n throw new Error('Can\\'t use auth, missing context provider')\n }\n\n async signup () {\n throw new Error('Can\\'t use auth, missing context provider')\n }\n\n async logout () {\n throw new Error('Can\\'t use auth, missing context provider')\n }\n\n onSessionUpdated () {\n return () => undefined\n }\n}\n","import { createContext } from '@lit/context'\nimport NoopAuth from './NoopAuth'\nimport Account from './Account'\n\nexport interface AuthContext {\n initialized: boolean;\n account: Account | null;\n login(loginUrl?: string): Promise<void>;\n loadProfile?(): Promise<void>;\n signup(): Promise<void>;\n logout(): Promise<void>;\n onSessionUpdated(callback: () => unknown): () => void;\n}\n\nexport const DEFAULT_AUTH_CONTEXT = new NoopAuth()\nexport const authContext = createContext<AuthContext>(Symbol('auth'))\n","import { customElement, WebComponent } from '@/lib/components'\nimport { html, nothing } from 'lit'\nimport { consume } from '@lit/context'\nimport { property, query, state } from 'lit/decorators.js'\nimport { AuthContext, authContext, DEFAULT_AUTH_CONTEXT } from '@/lib/auth'\nimport { getSuggestedIssuers } from 'solid-logic'\nimport type Dialog from '@/components/dialog'\nimport type Combobox from '@/components/combobox'\n\nimport '~icons/lucide/chevron-down'\nimport '@/components/dialog'\nimport '@/components/dialog-content'\nimport '@/components/dialog-footer'\nimport '@/components/button'\nimport '@/components/combobox'\nimport '@/components/combobox-option'\n\nimport styles from './LoginModal.styles.css'\n\n@customElement('solid-ui-login-modal')\nexport default class LoginModal extends WebComponent {\n static styles = styles\n\n @property({ type: String, reflect: true })\n accessor issuerUrl = ''\n\n @state()\n private accessor issuerInputValue = ''\n\n @state()\n private accessor failed: boolean = false\n\n @state()\n private accessor submitting: boolean = false\n\n @consume({ context: authContext, subscribe: true })\n private accessor auth: AuthContext = DEFAULT_AUTH_CONTEXT\n\n @query('solid-ui-dialog')\n private accessor dialog: Dialog | null = null\n\n connectedCallback () {\n super.connectedCallback()\n\n this.issuerInputValue =\n (typeof localStorage !== 'undefined' && localStorage.getItem('loginIssuer')) ||\n this.issuerUrl ||\n getSuggestedIssuers()[0]?.uri ||\n ''\n }\n\n protected render () {\n const suggestedIssuers = getSuggestedIssuers()\n\n return html`\n <solid-ui-dialog title=\"Select an identity provider\">\n <form @submit=${this.onSubmit}>\n <solid-ui-dialog-content>\n <solid-ui-combobox label=\"Solid Identity Provider\" .value=${this.issuerInputValue} @input=${this.onIssuerInputChange}>\n ${suggestedIssuers.map(issuer => html`<solid-ui-combobox-option value=\"${issuer.uri}\">${issuer.name}</solid-ui-combobox-option>`)}\n </solid-ui-combobox>\n\n ${this.failed ? html`<p class=\"error-message\">Something went wrong</p>` : nothing}\n </solid-ui-dialog-content>\n\n <solid-ui-dialog-footer>\n <solid-ui-button\n variant=\"secondary\"\n @click=\"${() => this.dialog?.close()}\"\n >\n Cancel\n </solid-ui-button>\n <solid-ui-button\n ?disabled=${!this.issuerInputValue || this.submitting}\n ?loading=${this.submitting}\n type=\"submit\"\n >\n Login\n </solid-ui-button>\n </solid-ui-dialog-footer>\n </form>\n </solid-ui-dialog>\n `\n }\n\n private onIssuerInputChange (e: Event) {\n this.issuerInputValue = String((e.target as Combobox).value)\n }\n\n private async onSubmit (e: Event) {\n e.preventDefault()\n\n this.failed = false\n\n if (!this.issuerInputValue) {\n return\n }\n\n this.submitting = true\n\n try {\n await this.auth.login(this.issuerInputValue)\n } catch (error) {\n console.error(error)\n\n this.failed = true\n } finally {\n this.submitting = false\n }\n }\n}\n","import LoginModal from './LoginModal'\n\nexport { LoginModal }\nexport default LoginModal\n","import Account from '@/lib/auth/Account'\nimport ns from '@/lib/ns'\nimport { authn, authSession, reloadOnIdentityReplaced, solidLogicSingleton } from 'solid-logic'\nimport { AuthContext } from '@/lib/auth'\nimport { showDialog } from '@/lib/dialogs'\n\nimport LoginModal from '@/components/login-modal'\n\nexport const DEFAULT_SIGNUP_URL = 'https://solidproject.org/get_a_pod'\n\nfunction findAccountImage (webId: string): string | undefined {\n const store = solidLogicSingleton.store\n const me = store.sym(webId)\n const image =\n store.any(me, ns.sioc('avatar')) ||\n store.any(me, ns.foaf('img')) ||\n store.any(me, ns.vcard('logo')) ||\n store.any(me, ns.vcard('hasPhoto')) ||\n store.any(me, ns.vcard('photo')) ||\n store.any(me, ns.foaf('depiction'))\n\n return image ? (image as any).value : undefined\n}\n\nexport default class SolidAuth implements AuthContext {\n private _initialized = false\n private profileLoaded = false\n private listeners: (() => unknown)[] = []\n\n constructor (public signupUrl: string = DEFAULT_SIGNUP_URL) {}\n\n async initialize () {\n authSession.events.on('sessionRestore', () => {\n ;(solidLogicSingleton.store.updater as any).flagAuthorizationMetadata()\n })\n\n // An identity that was actively established was replaced while the session\n // stayed active (A -> B, e.g. from another tab): everything fetched under\n // the previous identity is stale, so the app reloads. A logout is not a\n // reload case here — the derived info already reports logged out and the\n // logout path runs its own cleanup and navigation.\n reloadOnIdentityReplaced(authSession.events, () => {\n if (authSession.info?.isLoggedIn) window.location.reload()\n })\n\n await authn.checkUser()\n\n this._initialized = true\n this.listeners.forEach(listener => listener())\n }\n\n async loadProfile () {\n if (this.profileLoaded || !this.account) {\n return\n }\n\n this.profileLoaded = true\n\n await solidLogicSingleton.profile.loadMe()\n\n this.listeners.forEach(listener => listener())\n }\n\n get initialized (): boolean {\n return this._initialized\n }\n\n get account (): Account | null {\n const webId: string | undefined = authSession.webId ?? authSession.info?.webId\n const isActive: boolean = authSession.isActive ?? authSession.info?.isLoggedIn ?? Boolean(webId)\n\n if (!isActive || !webId) {\n return null\n }\n\n const avatarUrl = findAccountImage(webId)\n\n return new Account(webId, avatarUrl)\n }\n\n async login (loginUrl?: string) {\n if (!loginUrl) {\n showDialog(LoginModal)\n\n return\n }\n\n // clear authorization metadata from store\n ;(solidLogicSingleton.store.updater as any).flagAuthorizationMetadata()\n\n const preLoginRedirectHash = new URL(window.location.href).hash\n if (preLoginRedirectHash) {\n window.localStorage.setItem('preLoginRedirectHash', preLoginRedirectHash)\n }\n window.localStorage.setItem('loginIssuer', loginUrl)\n\n const locationUrl = new URL(window.location.href)\n\n locationUrl.hash = ''\n\n await authSession.login(loginUrl, locationUrl.href)\n }\n\n async signup () {\n window.open(this.signupUrl, '_blank', 'noopener,noreferrer')\n }\n\n async logout () {\n await authSession.logout()\n }\n\n onSessionUpdated (callback: () => unknown) {\n const sessionEventTarget = authSession as unknown as EventTarget\n const listener = () => {\n callback()\n }\n\n this.listeners.push(listener)\n\n if (typeof sessionEventTarget.addEventListener === 'function') {\n sessionEventTarget.addEventListener('sessionStateChange', listener)\n } else {\n authSession.events.on('login', listener)\n authSession.events.on('logout', listener)\n authSession.events.on('sessionRestore', listener)\n }\n\n return () => {\n this.listeners = this.listeners.filter(_listener => _listener !== listener)\n\n if (typeof sessionEventTarget.removeEventListener === 'function') {\n sessionEventTarget.removeEventListener('sessionStateChange', listener)\n } else {\n authSession.events.off('login', listener)\n authSession.events.off('logout', listener)\n authSession.events.off('sessionRestore', listener)\n }\n }\n }\n}\n"],"ignoreList":[0],"mappings":";;;;;;;;;;;;;AACA,IAAIuL,IAAI;CACP;EACC,MAAM;EACN,KAAK;CACN;CACA;EACC,MAAM;EACN,KAAK;CACN;CACA;EACC,MAAM;EACN,KAAK;CACN;CACA;EACC,MAAM;EACN,KAAK;CACN;AACD;AACA,SAASC,IAAI;CACZ,IAAIA,IAAI,CAAC,GAAGD,CAAC,GAAG,EAAE,MAAMR,GAAG,QAAQU,MAAM,IAAI,IAAI,SAAS,IAAI;CAC9D,OAAOD,EAAE,KAAK,EAAE,KAAK,QAAQ,IAAI,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,SAAST,CAAC,KAAKS,EAAE,QAAQ;EACtE,MAAMT;EACN,KAAKU;CACN,CAAC,GAAGD;AACL;;ACzBA,IAAqBxL,IAArB,MAA6B;CACXC;CACAC;CAEhBC,YAAaF,GAAeC,GAAoB;EAE9C,AADA,KAAKD,QAAQA,GACb,KAAKC,YAAYA;CACnB;AACF,GCNqBE,IAArB,MAAqD;CACnCC,cAAc;CACdC,UAAU;CAE1B,MAAMC,QAAS;EACb,MAAUC,MAAM,0CAA2C;CAC7D;CAEA,MAAMC,SAAU;EACd,MAAUD,MAAM,0CAA2C;CAC7D;CAEA,MAAME,SAAU;EACd,MAAUF,MAAM,0CAA2C;CAC7D;CAEAG,mBAAoB;EAClB,aAAaC,KAAAA;CACf;AACF,GCPaG,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":"auth-CE4MdHmg.js","names":["Account","webId","avatarUrl","constructor","NoopAuth","initialized","account","login","Error","signup","logout","onSessionUpdated","undefined","createContext","NoopAuth","DEFAULT_AUTH_CONTEXT","authContext","Symbol","customElement","WebComponent","html","nothing","consume","property","query","state","authContext","DEFAULT_AUTH_CONTEXT","getSuggestedIssuers","styles","_classDecs","_LoginModal","_LoginModal2","_A","WeakMap","_B","_C","_D","_E","_F","_ref","_issuerUrlDecs","type","String","reflect","_issuerInputValueDecs","_failedDecs","_submittingDecs","_authDecs","context","subscribe","_dialogDecs","_LoginModal3","LoginModal","constructor","args","_classPrivateFieldInitSpec","_initProto","_init_issuerUrl","_init_issuerInputValue","_init_failed","_init_submitting","_init_auth","_init_dialog","_classPrivateFieldGet","issuerUrl","v","_classPrivateFieldSet","issuerInputValue","failed","submitting","auth","dialog","connectedCallback","localStorage","getItem","uri","render","suggestedIssuers","onSubmit","onIssuerInputChange","map","issuer","name","close","e","target","value","preventDefault","login","error","console","c","_initClass","_applyDecs","_Class","_identity","_defineProperty","LoginModal","Account","ns","authn","authSession","reloadOnIdentityReplaced","solidLogicSingleton","showDialog","LoginModal","DEFAULT_SIGNUP_URL","findAccountImage","webId","store","me","sym","image","any","sioc","foaf","vcard","value","undefined","SolidAuth","_initialized","profileLoaded","listeners","constructor","signupUrl","initialize","events","on","updater","flagAuthorizationMetadata","info","isLoggedIn","window","location","reload","checkUser","forEach","listener","loadProfile","account","profile","loadMe","initialized","isActive","Boolean","avatarUrl","login","loginUrl","preLoginRedirectHash","URL","href","hash","localStorage","setItem","locationUrl","signup","open","logout","onSessionUpdated","callback","sessionEventTarget","push","addEventListener","filter","_listener","removeEventListener","off","c","A","customElement","n$1","WebComponent","i","b","n","ns_default","c$1","C","O","k","e$1","showDialog","e","t","r","Account","webId","avatarUrl","NoopAuth","DEFAULT_AUTH_CONTEXT","authContext","LoginModal_styles_default","_Class","_LoginModal3","_A","_B","_C","_D","_E","_F","_initProto","_initClass","_classDecs","_issuerUrlDecs","_init_issuerUrl","_issuerInputValueDecs","_init_issuerInputValue","_failedDecs","_init_failed","_submittingDecs","_init_submitting","_authDecs","_init_auth","_dialogDecs","_init_dialog","_LoginModal2","_ref","_classPrivateFieldInitSpec","a","_checkPrivateRedeclaration","_classPrivateFieldSet","s","_assertClassBrand","_classPrivateFieldGet","_defineProperty","_toPropertyKey","_applyDecs","o","applyDec","m","h","y","v","g","u","w","S","d","p","_setFunctionName","P","j","D","I","F","l","f","N","_checkInRHS","_toPrimitive","_identity","_LoginModal","args","suggestedIssuers","issuer","error","login_modal_default","DEFAULT_SIGNUP_URL","findAccountImage","store","me","image","SolidAuth","signupUrl","listener","loginUrl","preLoginRedirectHash","locationUrl","sessionEventTarget","_listener"],"sources":["../../node_modules/solid-logic/dist/issuer/issuerLogic.esm.js","../../src/lib/auth/Account.ts","../../src/lib/auth/NoopAuth.ts","../../src/lib/auth/context.ts","../../src/components/login-modal/LoginModal.ts","../../src/components/login-modal/index.ts","../../src/lib/auth/SolidAuth.ts"],"sourcesContent":["// src/issuer/issuerLogic.ts\nvar e = [\n\t{\n\t\tname: \"Solid Community\",\n\t\turi: \"https://solidcommunity.net\"\n\t},\n\t{\n\t\tname: \"Solid Web\",\n\t\turi: \"https://solidweb.org\"\n\t},\n\t{\n\t\tname: \"Solid Web ME\",\n\t\turi: \"https://solidweb.me\"\n\t},\n\t{\n\t\tname: \"Inrupt.com\",\n\t\turi: \"https://login.inrupt.com\"\n\t}\n];\nfunction t() {\n\tlet t = [...e], { host: n, origin: r } = new URL(location.href);\n\treturn t.map(({ uri: e }) => new URL(e).host).includes(n) || t.unshift({\n\t\tname: n,\n\t\turi: r\n\t}), t;\n}\nexport { t as getSuggestedIssuers };\n\n//# sourceMappingURL=issuerLogic.esm.js.map","export default class Account {\n public readonly webId: string\n public readonly avatarUrl?: string\n\n constructor (webId: string, avatarUrl?: string) {\n this.webId = webId\n this.avatarUrl = avatarUrl\n }\n}\n","import { AuthContext } from './context'\n\nexport default class NoopAuth implements AuthContext {\n public readonly initialized = false\n public readonly account = null\n\n async login () {\n throw new Error('Can\\'t use auth, missing context provider')\n }\n\n async signup () {\n throw new Error('Can\\'t use auth, missing context provider')\n }\n\n async logout () {\n throw new Error('Can\\'t use auth, missing context provider')\n }\n\n onSessionUpdated () {\n return () => undefined\n }\n}\n","import { createContext } from '@lit/context'\nimport NoopAuth from './NoopAuth'\nimport Account from './Account'\n\nexport interface AuthContext {\n initialized: boolean;\n account: Account | null;\n login(loginUrl?: string): Promise<void>;\n loadProfile?(): Promise<void>;\n signup(): Promise<void>;\n logout(): Promise<void>;\n onSessionUpdated(callback: () => unknown): () => void;\n}\n\nexport const DEFAULT_AUTH_CONTEXT = new NoopAuth()\nexport const authContext = createContext<AuthContext>(Symbol('auth'))\n","import { customElement, WebComponent } from '@/lib/components'\nimport { html, nothing } from 'lit'\nimport { consume } from '@lit/context'\nimport { property, query, state } from 'lit/decorators.js'\nimport { AuthContext, authContext, DEFAULT_AUTH_CONTEXT } from '@/lib/auth'\nimport { getSuggestedIssuers } from 'solid-logic'\nimport type Dialog from '@/components/dialog'\nimport type Combobox from '@/components/combobox'\n\nimport '~icons/lucide/chevron-down'\nimport '@/components/dialog'\nimport '@/components/dialog-content'\nimport '@/components/dialog-footer'\nimport '@/components/button'\nimport '@/components/combobox'\nimport '@/components/combobox-option'\n\nimport styles from './LoginModal.styles.css'\n\n@customElement('solid-ui-login-modal')\nexport default class LoginModal extends WebComponent {\n static styles = styles\n\n @property({ type: String, reflect: true })\n accessor issuerUrl = ''\n\n @state()\n private accessor issuerInputValue = ''\n\n @state()\n private accessor failed: boolean = false\n\n @state()\n private accessor submitting: boolean = false\n\n @consume({ context: authContext, subscribe: true })\n private accessor auth: AuthContext = DEFAULT_AUTH_CONTEXT\n\n @query('solid-ui-dialog')\n private accessor dialog: Dialog | null = null\n\n connectedCallback () {\n super.connectedCallback()\n\n this.issuerInputValue =\n (typeof localStorage !== 'undefined' && localStorage.getItem('loginIssuer')) ||\n this.issuerUrl ||\n getSuggestedIssuers()[0]?.uri ||\n ''\n }\n\n protected render () {\n const suggestedIssuers = getSuggestedIssuers()\n\n return html`\n <solid-ui-dialog title=\"Select an identity provider\">\n <form @submit=${this.onSubmit}>\n <solid-ui-dialog-content>\n <solid-ui-combobox label=\"Solid Identity Provider\" .value=${this.issuerInputValue} @input=${this.onIssuerInputChange}>\n ${suggestedIssuers.map(issuer => html`<solid-ui-combobox-option value=\"${issuer.uri}\">${issuer.name}</solid-ui-combobox-option>`)}\n </solid-ui-combobox>\n\n ${this.failed ? html`<p class=\"error-message\">Something went wrong</p>` : nothing}\n </solid-ui-dialog-content>\n\n <solid-ui-dialog-footer>\n <solid-ui-button\n variant=\"secondary\"\n @click=\"${() => this.dialog?.close()}\"\n >\n Cancel\n </solid-ui-button>\n <solid-ui-button\n ?disabled=${!this.issuerInputValue || this.submitting}\n ?loading=${this.submitting}\n type=\"submit\"\n >\n Login\n </solid-ui-button>\n </solid-ui-dialog-footer>\n </form>\n </solid-ui-dialog>\n `\n }\n\n private onIssuerInputChange (e: Event) {\n this.issuerInputValue = String((e.target as Combobox).value)\n }\n\n private async onSubmit (e: Event) {\n e.preventDefault()\n\n this.failed = false\n\n if (!this.issuerInputValue) {\n return\n }\n\n this.submitting = true\n\n try {\n await this.auth.login(this.issuerInputValue)\n } catch (error) {\n console.error(error)\n\n this.failed = true\n } finally {\n this.submitting = false\n }\n }\n}\n","import LoginModal from './LoginModal'\n\nexport { LoginModal }\nexport default LoginModal\n","import Account from '@/lib/auth/Account'\nimport ns from '@/lib/ns'\nimport { authn, authSession, reloadOnIdentityReplaced, solidLogicSingleton } from 'solid-logic'\nimport { AuthContext } from '@/lib/auth'\nimport { showDialog } from '@/lib/dialogs'\n\nimport LoginModal from '@/components/login-modal'\n\nexport const DEFAULT_SIGNUP_URL = 'https://solidproject.org/get_a_pod'\n\nfunction findAccountImage (webId: string): string | undefined {\n const store = solidLogicSingleton.store\n const me = store.sym(webId)\n const image =\n store.any(me, ns.sioc('avatar')) ||\n store.any(me, ns.foaf('img')) ||\n store.any(me, ns.vcard('logo')) ||\n store.any(me, ns.vcard('hasPhoto')) ||\n store.any(me, ns.vcard('photo')) ||\n store.any(me, ns.foaf('depiction'))\n\n return image ? (image as any).value : undefined\n}\n\nexport default class SolidAuth implements AuthContext {\n private _initialized = false\n private profileLoaded = false\n private listeners: (() => unknown)[] = []\n\n constructor (public signupUrl: string = DEFAULT_SIGNUP_URL) {}\n\n async initialize () {\n authSession.events.on('sessionRestore', () => {\n ;(solidLogicSingleton.store.updater as any).flagAuthorizationMetadata()\n })\n\n // An identity that was actively established was replaced while the session\n // stayed active (A -> B, e.g. from another tab): everything fetched under\n // the previous identity is stale, so the app reloads. A logout is not a\n // reload case here — the derived info already reports logged out and the\n // logout path runs its own cleanup and navigation.\n reloadOnIdentityReplaced(authSession.events, () => {\n if (authSession.info?.isLoggedIn) window.location.reload()\n })\n\n await authn.checkUser()\n\n this._initialized = true\n this.listeners.forEach(listener => listener())\n }\n\n async loadProfile () {\n if (this.profileLoaded || !this.account) {\n return\n }\n\n this.profileLoaded = true\n\n await solidLogicSingleton.profile.loadMe()\n\n this.listeners.forEach(listener => listener())\n }\n\n get initialized (): boolean {\n return this._initialized\n }\n\n get account (): Account | null {\n const webId: string | undefined = authSession.webId ?? authSession.info?.webId\n const isActive: boolean = authSession.isActive ?? authSession.info?.isLoggedIn ?? Boolean(webId)\n\n if (!isActive || !webId) {\n return null\n }\n\n const avatarUrl = findAccountImage(webId)\n\n return new Account(webId, avatarUrl)\n }\n\n async login (loginUrl?: string) {\n if (!loginUrl) {\n showDialog(LoginModal)\n\n return\n }\n\n // clear authorization metadata from store\n ;(solidLogicSingleton.store.updater as any).flagAuthorizationMetadata()\n\n const preLoginRedirectHash = new URL(window.location.href).hash\n if (preLoginRedirectHash) {\n window.localStorage.setItem('preLoginRedirectHash', preLoginRedirectHash)\n }\n window.localStorage.setItem('loginIssuer', loginUrl)\n\n const locationUrl = new URL(window.location.href)\n\n locationUrl.hash = ''\n\n await authSession.login(loginUrl, locationUrl.href)\n }\n\n async signup () {\n window.open(this.signupUrl, '_blank', 'noopener,noreferrer')\n }\n\n async logout () {\n await authSession.logout()\n }\n\n onSessionUpdated (callback: () => unknown) {\n const sessionEventTarget = authSession as unknown as EventTarget\n const listener = () => {\n callback()\n }\n\n this.listeners.push(listener)\n\n if (typeof sessionEventTarget.addEventListener === 'function') {\n sessionEventTarget.addEventListener('sessionStateChange', listener)\n } else {\n authSession.events.on('login', listener)\n authSession.events.on('logout', listener)\n authSession.events.on('sessionRestore', listener)\n }\n\n return () => {\n this.listeners = this.listeners.filter(_listener => _listener !== listener)\n\n if (typeof sessionEventTarget.removeEventListener === 'function') {\n sessionEventTarget.removeEventListener('sessionStateChange', listener)\n } else {\n authSession.events.off('login', listener)\n authSession.events.off('logout', listener)\n authSession.events.off('sessionRestore', listener)\n }\n }\n }\n}\n"],"ignoreList":[0],"mappings":";;;;;;;;;;;;;AACA,IAAIuL,IAAI;CACP;EACC,MAAM;EACN,KAAK;CACN;CACA;EACC,MAAM;EACN,KAAK;CACN;CACA;EACC,MAAM;EACN,KAAK;CACN;CACA;EACC,MAAM;EACN,KAAK;CACN;AACD;AACA,SAASC,IAAI;CACZ,IAAIA,IAAI,CAAC,GAAGD,CAAC,GAAG,EAAE,MAAMR,GAAG,QAAQU,MAAM,IAAI,IAAI,SAAS,IAAI;CAC9D,OAAOD,EAAE,KAAK,EAAE,KAAK,QAAQ,IAAI,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,SAAST,CAAC,KAAKS,EAAE,QAAQ;EACtE,MAAMT;EACN,KAAKU;CACN,CAAC,GAAGD;AACL;;ACzBA,IAAqBxL,IAArB,MAA6B;CACXC;CACAC;CAEhBC,YAAaF,GAAeC,GAAoB;EAE9C,AADA,KAAKD,QAAQA,GACb,KAAKC,YAAYA;CACnB;AACF,GCNqBE,IAArB,MAAqD;CACnCC,cAAc;CACdC,UAAU;CAE1B,MAAMC,Q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B,sBAAsB5B,CAAQ,KAErEpC,EAAYyB,OAAOwC,IAAI,SAAS7B,CAAQ,GACxCpC,EAAYyB,OAAOwC,IAAI,UAAU7B,CAAQ,GACzCpC,EAAYyB,OAAOwC,IAAI,kBAAkB7B,CAAQ;EAErD;CACF;AACF"}
@@ -1,5 +1,5 @@
1
1
  import { b as e, g as t, o as n, p as r, u as i } from "./components-CVuqsI0R.js";
2
- import { a, o } from "./auth-Cj-J-3Nf.js";
2
+ import { a, o } from "./auth-CE4MdHmg.js";
3
3
  // ~icons/lucide/circle-user
4
4
  var s = class extends HTMLElement {
5
5
  constructor() {
@@ -223,4 +223,4 @@ new (_ = (d = /*#__PURE__*/ new WeakMap(), v = (h = e({
223
223
  var M = j;
224
224
  export { j as n, M as t };
225
225
 
226
- //# sourceMappingURL=avatar-D_bHMV5F.js.map
226
+ //# sourceMappingURL=avatar-DJ0yjBNf.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"avatar-D_bHMV5F.js","names":["customElement","WebComponent","consume","html","authContext","DEFAULT_AUTH_CONTEXT","styles","_classDecs","_Avatar","_Avatar2","_A","WeakMap","_ref","_authDecs","context","subscribe","_Avatar3","Avatar","constructor","args","_classPrivateFieldInitSpec","_initProto","_init_auth","_defineProperty","_classPrivateFieldGet","auth","v","_classPrivateFieldSet","connectedCallback","loadProfile","unsubscribeSessionUpdated","onSessionUpdated","requestUpdate","disconnectedCallback","render","account","avatarUrl","e","c","_initClass","_applyDecs","_Class","_identity","fallback","component","Avatar","c","customElement","WebComponent","i","b","iconlucidecircleuser","Avatar_styles_default","_Class","_Avatar3","_A","_initProto","_initClass","_classDecs","_authDecs","_init_auth","_Avatar2","_ref","_classPrivateFieldInitSpec","a","_checkPrivateRedeclaration","_classPrivateFieldSet","s","_assertClassBrand","r","_classPrivateFieldGet","_defineProperty","_toPropertyKey","t","_applyDecs","n","o","applyDec","m","h","y","v","g","u","w","S","A","d","p","_setFunctionName","P","j","D","I","O","k","F","l","f","N","_checkInRHS","_toPrimitive","e","_identity","_Avatar","authContext","args","DEFAULT_AUTH_CONTEXT","component","avatar_default"],"sources":["../../src/components/avatar/Avatar.ts","../../src/components/avatar/index.ts"],"sourcesContent":["import { customElement, WebComponent } from '@/lib/components'\nimport { consume } from '@lit/context'\nimport { html } from 'lit'\nimport { authContext, AuthContext, DEFAULT_AUTH_CONTEXT } from '@/lib/auth'\n\nimport '~icons/lucide/circle-user'\n\nimport styles from './Avatar.styles.css'\n\n@customElement('solid-ui-avatar')\nexport default class Avatar extends WebComponent {\n static styles = styles\n static states = {\n fallback: (component: Avatar) => !component.auth.account?.avatarUrl,\n }\n\n @consume({ context: authContext, subscribe: true })\n private accessor auth: AuthContext = DEFAULT_AUTH_CONTEXT\n\n private unsubscribeSessionUpdated?: () => void\n\n connectedCallback () {\n super.connectedCallback()\n\n this.auth.loadProfile?.()\n\n this.unsubscribeSessionUpdated = this.auth.onSessionUpdated(() => {\n this.auth.loadProfile?.()\n this.requestUpdate()\n })\n }\n\n disconnectedCallback () {\n super.disconnectedCallback()\n\n this.unsubscribeSessionUpdated?.()\n }\n\n protected render () {\n if (!this.auth.account?.avatarUrl) {\n return html`\n <icon-lucide-circle-user></icon-lucide-circle-user>\n `\n }\n\n return html`\n <img src=\"${this.auth.account?.avatarUrl}\" alt=\"\" />\n `\n }\n}\n","import Avatar from './Avatar'\n\nexport { Avatar }\nexport default Avatar\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAOwCO,IAAA,CAEvCP,EAAc,iBAAiB,CAAC;AAAA,IAAAQ;AAAA,KAAAC,KAAAC,kBAAA,IAAAC,QAAA,GAAAC,KAAAC,IAO9BX,EAAQ;CAAEY,SAASV;CA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ar-DJ0yjBNf.js","names":["customElement","WebComponent","consume","html","authContext","DEFAULT_AUTH_CONTEXT","styles","_classDecs","_Avatar","_Avatar2","_A","WeakMap","_ref","_authDecs","context","subscribe","_Avatar3","Avatar","constructor","args","_classPrivateFieldInitSpec","_initProto","_init_auth","_defineProperty","_classPrivateFieldGet","auth","v","_classPrivateFieldSet","connectedCallback","loadProfile","unsubscribeSessionUpdated","onSessionUpdated","requestUpdate","disconnectedCallback","render","account","avatarUrl","e","c","_initClass","_applyDecs","_Class","_identity","fallback","component","Avatar","c","customElement","WebComponent","i","b","iconlucidecircleuser","Avatar_styles_default","_Class","_Avatar3","_A","_initProto","_initClass","_classDecs","_authDecs","_init_auth","_Avatar2","_ref","_classPrivateFieldInitSpec","a","_checkPrivateRedeclaration","_classPrivateFieldSet","s","_assertClassBrand","r","_classPrivateFieldGet","_defineProperty","_toPropertyKey","t","_applyDecs","n","o","applyDec","m","h","y","v","g","u","w","S","A","d","p","_setFunctionName","P","j","D","I","O","k","F","l","f","N","_checkInRHS","_toPrimitive","e","_identity","_Avatar","authContext","args","DEFAULT_AUTH_CONTEXT","component","avatar_default"],"sources":["../../src/components/avatar/Avatar.ts","../../src/components/avatar/index.ts"],"sourcesContent":["import { customElement, WebComponent } from '@/lib/components'\nimport { consume } from '@lit/context'\nimport { html } from 'lit'\nimport { authContext, AuthContext, DEFAULT_AUTH_CONTEXT } from '@/lib/auth'\n\nimport '~icons/lucide/circle-user'\n\nimport styles from './Avatar.styles.css'\n\n@customElement('solid-ui-avatar')\nexport default class Avatar extends WebComponent {\n static styles = styles\n static states = {\n fallback: (component: Avatar) => !component.auth.account?.avatarUrl,\n }\n\n @consume({ context: authContext, subscribe: true })\n private accessor auth: AuthContext = DEFAULT_AUTH_CONTEXT\n\n private unsubscribeSessionUpdated?: () => void\n\n connectedCallback () {\n super.connectedCallback()\n\n this.auth.loadProfile?.()\n\n this.unsubscribeSessionUpdated = this.auth.onSessionUpdated(() => {\n this.auth.loadProfile?.()\n this.requestUpdate()\n })\n }\n\n disconnectedCallback () {\n super.disconnectedCallback()\n\n this.unsubscribeSessionUpdated?.()\n }\n\n protected render () {\n if (!this.auth.account?.avatarUrl) {\n return html`\n <icon-lucide-circle-user></icon-lucide-circle-user>\n `\n }\n\n return html`\n <img src=\"${this.auth.account?.avatarUrl}\" alt=\"\" />\n `\n }\n}\n","import Avatar from './Avatar'\n\nexport { Avatar }\nexport default Avatar\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAOwCO,IAAA,CAEvCP,EAAc,iBAAiB,CAAC;AAAA,IAAAQ;AAAA,KAAAC,KAAAC,kBAAA,IAAAC,QAAA,GAAAC,KAAAC,IAO9BX,EAAQ;CAAEY,SAASV;CAAaW,WAAW;AAAK,CAAC,GAAC,SAAAC,IAPrD,cACoCf,EAAa;CAAAiB,YAAA,GAAAC,GAAA;EAOUI,AAPV,MAAA,GAAAJ,CAAA,GAAAC,EAAA,MAAAV,IAAAW,EAAA,IAAA,GAAAC,EAAA,MAOVjB,CAAoB,EAAA,GAAAkB,EAAA,MAAA,6BAAA,KAAA,CAAA;CAAA;CAAA,KAAAX,KAAA;EAAA,OAAAY,EAAAd,GAAA,IAAA;CAAA;CAAA,IAAxCe,KAAIC,GAAA;EAAAC,EAAAjB,GAAA,MAAAgB,CAAA;CAAA;CAIrBE,oBAAqB;EAKnB,AAJA,MAAMA,kBAAkB,GAExB,KAAKH,KAAKI,cAAc,GAExB,KAAKC,4BAA4B,KAAKL,KAAKM,uBAAuB;GAEhE,AADA,KAAKN,KAAKI,cAAc,GACxB,KAAKG,cAAc;EACrB,CAAC;CACH;CAEAC,uBAAwB;EAGtB,AAFA,MAAMA,qBAAqB,GAE3B,KAAKH,4BAA4B;CACnC;CAEUI,SAAU;EAOlB,OANK,KAAKT,KAAKU,SAASC,YAMjBjC,CAAI;oBACK,KAAKsB,KAAKU,SAASC,UAAS;QANnCjC,CAAI;;;CAQf;AACF,GAAC,CAAAkC,GAAA,CAAAf,GAAAD,IAAAiB,GAAA,CAAA9B,GAAA+B,MAAAC,EAAAxB,GAAA,CAAA;CAAAH;CAAA;CAAA;AAAA,CAAA,GAAAN,GAAA,GAAA,KAAA,GAvCmCN,CAAY,GAAAe,IAAAyB,IAAA,cAAAC,EAAA;CAAAxB,cAAA;EAAA,MAAAV,CAAA,GAAAe,EAAA,MAAA,UAC9BjB,CAAM,GAAAiB,EAAA,MAAA,UACN,EACdoB,WAAWC,MAAsB,CAACA,EAAUnB,KAAKU,SAASC,UAC5D,CAAC,GAAAG,EAAA;CAAA;AAAA,GAAAhB,EAAAkB,GAAAhC,GAAA,KAAA,CAAA,GAAAgC,GAAA;;ACXH,IAAAoE,IAAehE"}
@@ -384,11 +384,23 @@ var A = class {
384
384
  $code: "en",
385
385
  $name: "English",
386
386
  $dir: "ltr",
387
+ alignCenter: "Align center",
388
+ alignEnd: "Align end",
389
+ alignJustify: "Justify",
390
+ alignment: "Alignment",
391
+ alignStart: "Align start",
387
392
  allTagsRemoved: "All tags removed",
393
+ alternativeText: "Alternative text",
388
394
  am: "AM",
395
+ apply: "Apply",
389
396
  autosizeColumn: "Autosize column",
397
+ blockquote: "Blockquote",
398
+ bold: "Bold",
399
+ bulletList: "Bulleted list",
400
+ caption: "Caption",
390
401
  captions: "Captions",
391
402
  carousel: "Carousel",
403
+ cell: "Cell",
392
404
  chooseDate: "Choose date",
393
405
  chooseDecade: "Choose decade",
394
406
  chooseMonth: "Choose month",
@@ -396,11 +408,23 @@ var A = class {
396
408
  chooseYear: "Choose year",
397
409
  clearEntry: "Clear entry",
398
410
  clearFilter: "Clear filter",
411
+ clearFormatting: "Clear formatting",
399
412
  clearSort: "Clear sort",
400
413
  close: "Close",
401
414
  closeCalendar: "Close calendar",
402
415
  closeTimeInput: "Close time picker",
416
+ code: "Code",
417
+ codeBlock: "Code block",
403
418
  collapseRow: "Collapse row",
419
+ colorBlue: "Blue",
420
+ colorGray: "Gray",
421
+ colorGreen: "Green",
422
+ colorOrange: "Orange",
423
+ colorPink: "Pink",
424
+ colorPurple: "Purple",
425
+ colorRed: "Red",
426
+ colorYellow: "Yellow",
427
+ column: "Column",
404
428
  columnMenu: "Column options",
405
429
  columnMovedToPosition: (e, t, n) => `${e} moved to position ${t} of ${n}`,
406
430
  columns: "Columns",
@@ -416,13 +440,25 @@ var A = class {
416
440
  day: "Day",
417
441
  dayPeriod: "AM/PM",
418
442
  decrement: "Decrement",
443
+ deleteColumn: "Delete column",
444
+ deleteRow: "Delete row",
445
+ deleteTable: "Delete table",
419
446
  deselectAllRows: "Deselect all rows",
420
447
  disabled: "Disabled",
421
448
  dropFileHere: "Drop file here or click to browse",
422
449
  dropFilesHere: "Drop files here or click to browse",
450
+ editEmbed: "Edit embed",
451
+ editImage: "Edit image",
452
+ editLink: "Edit link",
453
+ embed: "Embed",
454
+ embedPlaceholder: "Paste a URL or embed code",
455
+ embedRemoved: "Embed removed",
456
+ embedUrl: "Embed URL",
423
457
  empty: "Empty",
424
458
  endDate: "End date",
459
+ enterAtLeastNumCharacters: (e) => `Enter at least ${e} characters`,
425
460
  enterFullscreen: "Enter fullscreen",
461
+ enterUpToNumCharacters: (e) => `Enter up to ${e} characters`,
426
462
  error: "Error",
427
463
  exitFullscreen: "Exit fullscreen",
428
464
  expandRow: "Expand row",
@@ -432,20 +468,56 @@ var A = class {
432
468
  filterMin: "Min",
433
469
  filterTo: "To",
434
470
  firstPage: "First page",
471
+ formatMenu: "More formatting",
472
+ formatting: "Formatting",
435
473
  goToSlide: (e, t) => `Go to slide ${e} of ${t}`,
474
+ heading: "Heading",
475
+ headingLevel: (e) => `Heading ${e}`,
436
476
  hideColumn: "Hide column",
437
477
  hidePassword: "Hide password",
478
+ highlight: "Highlight",
479
+ highlightColor: "Highlight color",
480
+ horizontalRule: "Horizontal rule",
438
481
  hour: "Hour",
482
+ image: "Image",
483
+ imageRemoved: "Image removed",
484
+ imageUrl: "Image URL",
439
485
  incompleteDate: "Enter a valid date.",
440
486
  increment: "Increment",
487
+ indent: "Indent",
488
+ inlineWithText: "In line with text",
489
+ insertColumnAfter: "Insert column after",
490
+ insertColumnBefore: "Insert column before",
491
+ insertEmbed: "Insert embed",
492
+ insertImage: "Insert image",
493
+ insertLink: "Insert link",
494
+ insertRowAbove: "Insert row above",
495
+ insertRowBelow: "Insert row below",
496
+ insertTable: "Insert table",
497
+ insertTableOfSize: (e, t) => `Insert ${e} by ${t} table`,
498
+ italic: "Italic",
441
499
  jumpBackwardX: (e) => `Jump back ${e} pages`,
442
500
  jumpForwardX: (e) => `Jump forward ${e} pages`,
501
+ keyAlt: "Alt",
502
+ keyCtrl: "Ctrl",
503
+ keyShift: "Shift",
443
504
  lastPage: "Last page",
505
+ lightbox: "Lightbox",
506
+ link: "Link",
507
+ linkRemoved: "Link removed",
508
+ linkUrl: "Link URL",
509
+ lists: "Lists",
444
510
  loading: "Loading",
445
511
  locked: "Locked",
512
+ mediaLoadError: "Unable to load media",
513
+ mergeCells: "Merge cells",
446
514
  minute: "Minute",
447
515
  month: "Month",
448
516
  moreOptions: "More Options",
517
+ moveColumnAfter: "Move column after",
518
+ moveColumnBefore: "Move column before",
519
+ moveRowDown: "Move row down",
520
+ moveRowUp: "Move row up",
449
521
  mute: "Mute",
450
522
  nextDecade: "Next decade",
451
523
  nextMonth: "Next month",
@@ -453,9 +525,11 @@ var A = class {
453
525
  nextSlide: "Next slide",
454
526
  nextVideo: "Next Video",
455
527
  nextYear: "Next year",
528
+ noColor: "No color",
456
529
  noData: "No data",
457
530
  noOptions: "No options",
458
531
  noResults: "No matching results",
532
+ noSuggestions: "No suggestions",
459
533
  notCompleted: "Not completed",
460
534
  now: "Now",
461
535
  numCharacters: (e) => e === 1 ? "1 character" : `${e} characters`,
@@ -464,10 +538,16 @@ var A = class {
464
538
  numOptionsSelected: (e) => e === 0 ? "No options selected" : e === 1 ? "1 option selected" : `${e} options selected`,
465
539
  numRowsCopied: (e) => e === 1 ? "1 row copied" : `${e} rows copied`,
466
540
  numRowsSelected: (e) => e === 1 ? "1 row selected" : `${e} rows selected`,
541
+ openInNewTab: "Open in new tab",
542
+ openLink: "Open link",
467
543
  optionPosition: (e, t, n) => `${e}, ${t} of ${n}`,
468
544
  optionsLoadError: "Options could not be loaded",
545
+ orderedList: "Numbered list",
546
+ outdent: "Outdent",
469
547
  pageXOfY: (e, t) => `Page ${e} of ${t}`,
470
548
  pagination: "Pagination",
549
+ paragraph: "Paragraph",
550
+ pasteAsPlainText: "Paste as plain text",
471
551
  pause: "Pause",
472
552
  pauseAnimation: "Pause animation",
473
553
  pictureInPicture: "Picture in picture",
@@ -488,10 +568,14 @@ var A = class {
488
568
  rangeTooLong: (e) => e === 1 ? "Select a range no longer than 1 day" : `Select a range no longer than ${e} days`,
489
569
  rangeTooShort: (e) => e === 1 ? "Select a range at least 1 day long" : `Select a range at least ${e} days long`,
490
570
  readonly: "Read-only",
571
+ redo: "Redo",
491
572
  remove: "Remove",
573
+ removeLink: "Remove link",
492
574
  resetColumns: "Reset columns",
493
575
  resize: "Resize",
494
576
  resizeColumn: "Resize column",
577
+ row: "Row",
578
+ rowsAndColumns: (e, t) => `${e} rows, ${t} columns`,
495
579
  rowsPerPage: "Rows per page",
496
580
  scrollableRegion: "Scrollable region",
497
581
  scrollToEnd: "Scroll to end",
@@ -502,12 +586,14 @@ var A = class {
502
586
  seekProgress: (e, t) => `${e} of ${t}`,
503
587
  selectAColorFromTheScreen: "Select a color from the screen",
504
588
  selectAllRows: "Select all rows",
589
+ selectCell: "Select cell",
505
590
  selected: "Selected",
506
591
  selectedDateLabel: (e) => `Selected: ${e}`,
507
592
  selectedRangeLabel: (e) => `Selected range: ${e}`,
508
593
  selectGroup: "Select group",
509
594
  selectionCleared: "Selection cleared",
510
595
  selectRow: "Select row",
596
+ selectTable: "Select table",
511
597
  showingNofMRows: (e, t) => `Showing ${e} of ${t} rows`,
512
598
  showingXtoYofZ: (e, t, n) => `${e}\u2013${t} of ${n}`,
513
599
  showPassword: "Show password",
@@ -515,24 +601,44 @@ var A = class {
515
601
  sortAscending: "Sort ascending",
516
602
  sortColumn: "Sort column",
517
603
  sortDescending: "Sort descending",
604
+ splitCell: "Split cell",
518
605
  startDate: "Start date",
519
606
  steps: "Steps",
520
607
  stepXOfY: (e, t) => `Step ${e} of ${t}`,
608
+ strikethrough: "Strikethrough",
609
+ subscript: "Subscript",
610
+ suggestions: "Suggestions",
611
+ suggestionsAvailable: (e) => e === 1 ? "1 suggestion available" : `${e} suggestions available`,
612
+ suggestionsLoadError: "Suggestions could not be loaded",
613
+ superscript: "Superscript",
614
+ tableInserted: "Table inserted",
615
+ tableOptions: "Table options",
616
+ tableSize: "Table size",
521
617
  tagAdded: (e) => `${e} added`,
522
618
  tagAlreadyAdded: (e) => `${e} is already added`,
523
619
  tagInputKeyboardHelp: "Press Backspace or Delete to remove this tag.",
524
620
  tagRemoved: (e) => `${e} removed`,
621
+ textColor: "Text color",
622
+ textStyle: "Text style",
525
623
  time: "Time",
526
624
  timeInputKeyboardHelp: "Use arrow keys to change values; press Alt+Down Arrow to open the time picker.",
625
+ title: "Title",
527
626
  today: "Today",
528
627
  toggleColorFormat: "Toggle color format",
628
+ toggleHeaderColumn: "Header column",
629
+ toggleHeaderRow: "Header row",
529
630
  tooFewTags: (e) => e === 1 ? "Add at least 1 tag" : `Add at least ${e} tags`,
530
631
  tooManyTags: (e) => e === 1 ? "Add no more than 1 tag" : `Add no more than ${e} tags`,
632
+ underline: "Underline",
633
+ undo: "Undo",
531
634
  unmute: "Unmute",
532
635
  unpin: "Unpin",
533
636
  unpinColumn: "Unpin column",
637
+ url: "URL",
534
638
  videoPlayer: "Video player",
535
639
  volume: "Volume",
640
+ wrapTextEnd: "Image at end, text wraps",
641
+ wrapTextStart: "Image at start, text wraps",
536
642
  year: "Year",
537
643
  zoomIn: "Zoom in",
538
644
  zoomOut: "Zoom out"
@@ -1381,7 +1487,7 @@ var kt = {
1381
1487
  return t;
1382
1488
  }
1383
1489
  });
1384
- // node_modules/@awesome.me/webawesome/dist/chunks/chunk.UEBQI7VV.js
1490
+ // node_modules/@awesome.me/webawesome/dist/chunks/chunk.DC6YZU3I.js
1385
1491
  function Nt(e) {
1386
1492
  return typeof e == "object" && !!e && "getBoundingClientRect" in e && ("contextElement" in e ? e instanceof Element : !0);
1387
1493
  }
@@ -1411,9 +1517,12 @@ var Pt = !!globalThis?.HTMLElement?.prototype.hasOwnProperty("popover"), $ = cla
1411
1517
  this.anchorEl instanceof HTMLSlotElement && (this.anchorEl = this.anchorEl.assignedElements({ flatten: !0 })[0]), this.anchorEl && this.start();
1412
1518
  }
1413
1519
  start() {
1414
- this.anchorEl && this.active && this.isConnected && (this.popup?.showPopover?.(), this.cleanup = yt(this.anchorEl, this.popup, () => {
1520
+ if (!this.anchorEl || !this.active || !this.isConnected) return;
1521
+ this.cleanup?.(), this.cleanup = void 0, this.popup?.showPopover?.();
1522
+ let e = yt(this.anchorEl, this.popup, () => {
1415
1523
  this.reposition();
1416
- }));
1524
+ });
1525
+ !this.active || !this.isConnected ? e() : this.cleanup = e;
1417
1526
  }
1418
1527
  async stop() {
1419
1528
  return new Promise((e) => {
@@ -1545,4 +1654,4 @@ $.css = c, f([a(".popup")], $.prototype, "popup", 2), f([a(".arrow")], $.prototy
1545
1654
  })], $.prototype, "hoverBridge", 2), $ = f([o("wa-popup")], $);
1546
1655
  export { xt as a, f as c, bt as i, o as l, Tt as n, ne as o, St as r, S as s, yt as t };
1547
1656
 
1548
- //# sourceMappingURL=chunk.UEBQI7VV-CrSDe9uN.js.map
1657
+ //# sourceMappingURL=chunk.DC6YZU3I-XnZ8rvNJ.js.map