profile-pane 3.2.2 → 3.2.3-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 (76) hide show
  1. package/lib/profile-pane.js +1231 -2597
  2. package/lib/profile-pane.js.map +1 -1
  3. package/lib/profile-pane.min.js +418 -540
  4. package/lib/profile-pane.min.js.map +1 -1
  5. package/lib/sections/bio/BioSection.d.ts +1 -1
  6. package/lib/sections/bio/BioSection.d.ts.map +1 -1
  7. package/lib/sections/bio/BioSection.js +1 -1
  8. package/lib/sections/contactInfo/ContactInfoEditDialog.d.ts +2 -2
  9. package/lib/sections/contactInfo/ContactInfoEditDialog.d.ts.map +1 -1
  10. package/lib/sections/contactInfo/ContactInfoEditDialog.js +2 -2
  11. package/lib/sections/contactInfo/ContactInfoSection.d.ts +1 -1
  12. package/lib/sections/contactInfo/ContactInfoSection.d.ts.map +1 -1
  13. package/lib/sections/contactInfo/ContactInfoSection.js +1 -1
  14. package/lib/sections/education/EducationEditDialog.d.ts +2 -2
  15. package/lib/sections/education/EducationEditDialog.d.ts.map +1 -1
  16. package/lib/sections/education/EducationEditDialog.js +2 -2
  17. package/lib/sections/education/EducationSection.d.ts +1 -1
  18. package/lib/sections/education/EducationSection.d.ts.map +1 -1
  19. package/lib/sections/education/EducationSection.js +1 -1
  20. package/lib/sections/heading/HeadingEditDialog.d.ts +3 -3
  21. package/lib/sections/heading/HeadingEditDialog.d.ts.map +1 -1
  22. package/lib/sections/heading/HeadingEditDialog.js +26 -27
  23. package/lib/sections/heading/HeadingSection.d.ts +1 -1
  24. package/lib/sections/heading/HeadingSection.d.ts.map +1 -1
  25. package/lib/sections/heading/HeadingSection.js +1 -1
  26. package/lib/sections/heading/imageHelpers.d.ts +1 -1
  27. package/lib/sections/heading/imageHelpers.d.ts.map +1 -1
  28. package/lib/sections/heading/imageHelpers.js +10 -12
  29. package/lib/sections/languages/LanguageEditDialog.d.ts +2 -2
  30. package/lib/sections/languages/LanguageEditDialog.d.ts.map +1 -1
  31. package/lib/sections/languages/LanguageEditDialog.js +2 -2
  32. package/lib/sections/languages/LanguageSection.d.ts +1 -1
  33. package/lib/sections/languages/LanguageSection.d.ts.map +1 -1
  34. package/lib/sections/languages/LanguageSection.js +1 -1
  35. package/lib/sections/projects/ProjectEditDialog.d.ts +1 -1
  36. package/lib/sections/projects/ProjectEditDialog.d.ts.map +1 -1
  37. package/lib/sections/projects/ProjectEditDialog.js +1 -1
  38. package/lib/sections/projects/ProjectSection.d.ts +1 -1
  39. package/lib/sections/projects/ProjectSection.d.ts.map +1 -1
  40. package/lib/sections/projects/ProjectSection.js +1 -1
  41. package/lib/sections/qrcode/QRCodeCard.d.ts.map +1 -1
  42. package/lib/sections/qrcode/QRCodeCard.js +3 -1
  43. package/lib/sections/qrcode/QRCodeSection.css +2 -9
  44. package/lib/sections/resume/ResumeEditDialog.d.ts +3 -3
  45. package/lib/sections/resume/ResumeEditDialog.d.ts.map +1 -1
  46. package/lib/sections/resume/ResumeEditDialog.js +14 -4
  47. package/lib/sections/resume/ResumeSection.d.ts +1 -1
  48. package/lib/sections/resume/ResumeSection.d.ts.map +1 -1
  49. package/lib/sections/resume/ResumeSection.js +1 -1
  50. package/lib/sections/shared/rdfMutationHelpers.d.ts +6 -6
  51. package/lib/sections/shared/rdfMutationHelpers.d.ts.map +1 -1
  52. package/lib/sections/skills/SkillsEditDialog.d.ts +2 -2
  53. package/lib/sections/skills/SkillsEditDialog.d.ts.map +1 -1
  54. package/lib/sections/skills/SkillsEditDialog.js +2 -2
  55. package/lib/sections/skills/SkillsSection.d.ts +1 -1
  56. package/lib/sections/skills/SkillsSection.d.ts.map +1 -1
  57. package/lib/sections/skills/SkillsSection.js +1 -1
  58. package/lib/sections/social/SocialEditDialog.d.ts +2 -2
  59. package/lib/sections/social/SocialEditDialog.d.ts.map +1 -1
  60. package/lib/sections/social/SocialEditDialog.js +2 -2
  61. package/lib/sections/social/SocialSection.d.ts +1 -1
  62. package/lib/sections/social/SocialSection.d.ts.map +1 -1
  63. package/lib/sections/social/SocialSection.js +1 -1
  64. package/lib/specialButtons/addContact/ContactCreationDialog.d.ts +1 -1
  65. package/lib/specialButtons/addContact/ContactCreationDialog.d.ts.map +1 -1
  66. package/lib/specialButtons/addContact/ContactCreationDialog.js +1 -1
  67. package/lib/specialButtons/addContact/addMeToYourContacts.d.ts +2 -2
  68. package/lib/specialButtons/addContact/addMeToYourContacts.d.ts.map +1 -1
  69. package/lib/specialButtons/addContact/addMeToYourContacts.js +1 -1
  70. package/lib/specialButtons/addMeToYourFriends.d.ts +2 -2
  71. package/lib/specialButtons/addMeToYourFriends.d.ts.map +1 -1
  72. package/lib/specialButtons/addMeToYourFriends.js +1 -1
  73. package/lib/ui/dialog.d.ts +1 -1
  74. package/lib/ui/dialog.d.ts.map +1 -1
  75. package/lib/ui/dialog.js +1 -1
  76. package/package.json +14 -10
@@ -10046,10 +10046,7 @@ ___CSS_LOADER_EXPORT___.push([module.id, `/* QR code section styles. */
10046
10046
  --qrcode-card-caption-size: var(--font-size-md, 1rem);
10047
10047
  --qrcode-card-caption-size-compact: var(--font-size-sm, 0.875rem);
10048
10048
  --qrcode-card-caption-weight: var(--font-weight-md, 500);
10049
- --qrcode-card-image-padding-top: 1rem;
10050
- --qrcode-card-image-padding-right: 1rem;
10051
- --qrcode-card-image-padding-bottom: 1.0625rem;
10052
- --qrcode-card-image-padding-left: 1.0625rem;
10049
+ --qrcode-card-image-padding: 1.0625rem;
10053
10050
  --qrcode-card-frame-border: var(--border-width-thin, 0.1rem) solid var(--color-border, var(--gray-200, #E5E7EB));
10054
10051
  --qrcode-card-frame-background: var(--color-surface-framed-content, #F3F4F6);
10055
10052
  --qrcode-section-padding-compact: var(--spacing-sm, 0.938rem);
@@ -10079,11 +10076,7 @@ ___CSS_LOADER_EXPORT___.push([module.id, `/* QR code section styles. */
10079
10076
 
10080
10077
  .qrcode-card__frame {
10081
10078
  margin: 0;
10082
- padding:
10083
- var(--qrcode-card-image-padding-top)
10084
- var(--qrcode-card-image-padding-right)
10085
- var(--qrcode-card-image-padding-bottom)
10086
- var(--qrcode-card-image-padding-left);
10079
+ padding: var(--qrcode-card-image-padding);
10087
10080
  border-radius: var(--border-radius-base, 0.3125rem);
10088
10081
  border: var(--qrcode-card-frame-border);
10089
10082
  background: var(--qrcode-card-frame-background);
@@ -10145,7 +10138,7 @@ ___CSS_LOADER_EXPORT___.push([module.id, `/* QR code section styles. */
10145
10138
  .qrcode-card__caption {
10146
10139
  font-size: var(--qrcode-card-caption-size-compact);
10147
10140
  }
10148
- }`, "",{"version":3,"sources":["webpack://./src/sections/qrcode/QRCodeSection.css"],"names":[],"mappings":"AAAA,4BAA4B;;AAE5B;EACE,6CAA6C;EAC7C,yFAAyF;EACzF,qDAAqD;EACrD,iEAAiE;EACjE,wDAAwD;EACxD,qCAAqC;EACrC,uCAAuC;EACvC,6CAA6C;EAC7C,2CAA2C;EAC3C,gHAAgH;EAChH,4EAA4E;EAC5E,6DAA6D;EAC7D,0DAA0D;EAC1D,mDAAmD;EACnD,oDAAoD;EACpD,mFAAmF;AACrF;;AAEA,YAAY;AACZ;EACE,kBAAkB;EAClB,SAAS;EACT,uCAAuC;EACvC,0CAA0C;EAC1C,8CAA8C;AAChD;;AAEA,mBAAmB;AACnB;EACE,aAAa;EACb,sBAAsB;EACtB,mBAAmB;EACnB,2BAA2B;EAC3B,mBAAmB;AACrB;;AAEA;EACE,SAAS;EACT;;;;yCAIuC;EACvC,mDAAmD;EACnD,uCAAuC;EACvC,+CAA+C;AACjD;;AAEA,aAAa;AACb;EACE,cAAc;EACd,iBAAiB;AACnB;;AAEA;EACE,WAAW;EACX,YAAY;EACZ,cAAc;AAChB;;AAEA,mBAAmB;AACnB;EACE,aAAa;EACb,sBAAsB;EACtB,uBAAuB;EACvB,mBAAmB;EACnB,8CAA8C;EAC9C,sCAAsC;AACxC;;AAEA;EACE;IACE,aAAa;IACb,sBAAsB;IACtB,uBAAuB;IACvB,mBAAmB;IACnB,8CAA8C;IAC9C,sCAAsC;EACxC;AACF;;AAEA;EACE,kDAAkD;AACpD;;AAEA;EACE;IACE,aAAa;IACb,sBAAsB;IACtB,uBAAuB;IACvB,mBAAmB;IACnB,8CAA8C;IAC9C,sCAAsC;EACxC;;EAEA;IACE,kDAAkD;EACpD;AACF;;AAEA;EACE;IACE,kDAAkD;EACpD;AACF","sourcesContent":["/* QR code section styles. */\n\n.profile__qr-code {\n --qrcode-card-gap: var(--spacing-md, 1.25rem);\n --qrcode-card-caption-color: var(--color-text-strong-secondary, var(--gray-800, #1E2939));\n --qrcode-card-caption-size: var(--font-size-md, 1rem);\n --qrcode-card-caption-size-compact: var(--font-size-sm, 0.875rem);\n --qrcode-card-caption-weight: var(--font-weight-md, 500);\n --qrcode-card-image-padding-top: 1rem;\n --qrcode-card-image-padding-right: 1rem;\n --qrcode-card-image-padding-bottom: 1.0625rem;\n --qrcode-card-image-padding-left: 1.0625rem;\n --qrcode-card-frame-border: var(--border-width-thin, 0.1rem) solid var(--color-border, var(--gray-200, #E5E7EB));\n --qrcode-card-frame-background: var(--color-surface-framed-content, #F3F4F6);\n --qrcode-section-padding-compact: var(--spacing-sm, 0.938rem);\n --qrcode-section-gap-compact: var(--spacing-2xs, 0.625rem);\n border-radius: var(--border-radius-base, 0.3125rem);\n background: var(--color-card-bg, var(--white, #FFF));\n border: var(--border-width-thin, 0.1rem) solid var(--color-border-lighter, #E2E8F0);\n}\n\n/* Caption */\n.qrcode-card__caption {\n text-align: center;\n margin: 0;\n color: var(--qrcode-card-caption-color);\n font-size: var(--qrcode-card-caption-size);\n font-weight: var(--qrcode-card-caption-weight);\n}\n\n/* Card and frame */\n.qrcode-card {\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: var(--qrcode-card-gap);\n align-self: stretch;\n}\n\n.qrcode-card__frame {\n margin: 0;\n padding:\n var(--qrcode-card-image-padding-top)\n var(--qrcode-card-image-padding-right)\n var(--qrcode-card-image-padding-bottom)\n var(--qrcode-card-image-padding-left);\n border-radius: var(--border-radius-base, 0.3125rem);\n border: var(--qrcode-card-frame-border);\n background: var(--qrcode-card-frame-background);\n}\n\n/* QR image */\n.qrcode-card__image {\n flex-shrink: 0;\n aspect-ratio: 1/1;\n}\n\n.qrcode-card__image svg {\n width: 100%;\n height: 100%;\n display: block;\n}\n\n/* Compact layout */\n:is(.profile-pane-host, .profile-pane-root)[data-layout='mobile'] .profile__qr-code {\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n align-self: stretch;\n padding: var(--qrcode-section-padding-compact);\n gap: var(--qrcode-section-gap-compact);\n}\n\n@container profile-pane (max-width: 576px) {\n .profile__qr-code {\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n align-self: stretch;\n padding: var(--qrcode-section-padding-compact);\n gap: var(--qrcode-section-gap-compact);\n }\n}\n\n:is(.profile-pane-host, .profile-pane-root)[data-layout='mobile'] .qrcode-card__caption {\n font-size: var(--qrcode-card-caption-size-compact);\n}\n\n@media (max-width: 576px) {\n .profile__qr-code {\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n align-self: stretch;\n padding: var(--qrcode-section-padding-compact);\n gap: var(--qrcode-section-gap-compact);\n }\n\n .qrcode-card__caption {\n font-size: var(--qrcode-card-caption-size-compact);\n }\n}\n\n@container profile-pane (max-width: 576px) {\n .qrcode-card__caption {\n font-size: var(--qrcode-card-caption-size-compact);\n }\n}"],"sourceRoot":""}]);
10141
+ }`, "",{"version":3,"sources":["webpack://./src/sections/qrcode/QRCodeSection.css"],"names":[],"mappings":"AAAA,4BAA4B;;AAE5B;EACE,6CAA6C;EAC7C,yFAAyF;EACzF,qDAAqD;EACrD,iEAAiE;EACjE,wDAAwD;EACxD,sCAAsC;EACtC,gHAAgH;EAChH,4EAA4E;EAC5E,6DAA6D;EAC7D,0DAA0D;EAC1D,mDAAmD;EACnD,oDAAoD;EACpD,mFAAmF;AACrF;;AAEA,YAAY;AACZ;EACE,kBAAkB;EAClB,SAAS;EACT,uCAAuC;EACvC,0CAA0C;EAC1C,8CAA8C;AAChD;;AAEA,mBAAmB;AACnB;EACE,aAAa;EACb,sBAAsB;EACtB,mBAAmB;EACnB,2BAA2B;EAC3B,mBAAmB;AACrB;;AAEA;EACE,SAAS;EACT,yCAAyC;EACzC,mDAAmD;EACnD,uCAAuC;EACvC,+CAA+C;AACjD;;AAEA,aAAa;AACb;EACE,cAAc;EACd,iBAAiB;AACnB;;AAEA;EACE,WAAW;EACX,YAAY;EACZ,cAAc;AAChB;;AAEA,mBAAmB;AACnB;EACE,aAAa;EACb,sBAAsB;EACtB,uBAAuB;EACvB,mBAAmB;EACnB,8CAA8C;EAC9C,sCAAsC;AACxC;;AAEA;EACE;IACE,aAAa;IACb,sBAAsB;IACtB,uBAAuB;IACvB,mBAAmB;IACnB,8CAA8C;IAC9C,sCAAsC;EACxC;AACF;;AAEA;EACE,kDAAkD;AACpD;;AAEA;EACE;IACE,aAAa;IACb,sBAAsB;IACtB,uBAAuB;IACvB,mBAAmB;IACnB,8CAA8C;IAC9C,sCAAsC;EACxC;;EAEA;IACE,kDAAkD;EACpD;AACF;;AAEA;EACE;IACE,kDAAkD;EACpD;AACF","sourcesContent":["/* QR code section styles. */\n\n.profile__qr-code {\n --qrcode-card-gap: var(--spacing-md, 1.25rem);\n --qrcode-card-caption-color: var(--color-text-strong-secondary, var(--gray-800, #1E2939));\n --qrcode-card-caption-size: var(--font-size-md, 1rem);\n --qrcode-card-caption-size-compact: var(--font-size-sm, 0.875rem);\n --qrcode-card-caption-weight: var(--font-weight-md, 500);\n --qrcode-card-image-padding: 1.0625rem;\n --qrcode-card-frame-border: var(--border-width-thin, 0.1rem) solid var(--color-border, var(--gray-200, #E5E7EB));\n --qrcode-card-frame-background: var(--color-surface-framed-content, #F3F4F6);\n --qrcode-section-padding-compact: var(--spacing-sm, 0.938rem);\n --qrcode-section-gap-compact: var(--spacing-2xs, 0.625rem);\n border-radius: var(--border-radius-base, 0.3125rem);\n background: var(--color-card-bg, var(--white, #FFF));\n border: var(--border-width-thin, 0.1rem) solid var(--color-border-lighter, #E2E8F0);\n}\n\n/* Caption */\n.qrcode-card__caption {\n text-align: center;\n margin: 0;\n color: var(--qrcode-card-caption-color);\n font-size: var(--qrcode-card-caption-size);\n font-weight: var(--qrcode-card-caption-weight);\n}\n\n/* Card and frame */\n.qrcode-card {\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: var(--qrcode-card-gap);\n align-self: stretch;\n}\n\n.qrcode-card__frame {\n margin: 0;\n padding: var(--qrcode-card-image-padding);\n border-radius: var(--border-radius-base, 0.3125rem);\n border: var(--qrcode-card-frame-border);\n background: var(--qrcode-card-frame-background);\n}\n\n/* QR image */\n.qrcode-card__image {\n flex-shrink: 0;\n aspect-ratio: 1/1;\n}\n\n.qrcode-card__image svg {\n width: 100%;\n height: 100%;\n display: block;\n}\n\n/* Compact layout */\n:is(.profile-pane-host, .profile-pane-root)[data-layout='mobile'] .profile__qr-code {\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n align-self: stretch;\n padding: var(--qrcode-section-padding-compact);\n gap: var(--qrcode-section-gap-compact);\n}\n\n@container profile-pane (max-width: 576px) {\n .profile__qr-code {\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n align-self: stretch;\n padding: var(--qrcode-section-padding-compact);\n gap: var(--qrcode-section-gap-compact);\n }\n}\n\n:is(.profile-pane-host, .profile-pane-root)[data-layout='mobile'] .qrcode-card__caption {\n font-size: var(--qrcode-card-caption-size-compact);\n}\n\n@media (max-width: 576px) {\n .profile__qr-code {\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n align-self: stretch;\n padding: var(--qrcode-section-padding-compact);\n gap: var(--qrcode-section-gap-compact);\n }\n\n .qrcode-card__caption {\n font-size: var(--qrcode-card-caption-size-compact);\n }\n}\n\n@container profile-pane (max-width: 576px) {\n .qrcode-card__caption {\n font-size: var(--qrcode-card-caption-size-compact);\n }\n}"],"sourceRoot":""}]);
10149
10142
  // Exports
10150
10143
  /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (___CSS_LOADER_EXPORT___);
10151
10144
 
@@ -16018,6 +16011,7 @@ exports.getEncodedBits = function getEncodedBits (errorCorrectionLevel, mask) {
16018
16011
  /***/ 2731
16019
16012
  (__unused_webpack_module, exports) {
16020
16013
 
16014
+ var __webpack_unused_export__;
16021
16015
  const EXP_TABLE = new Uint8Array(512)
16022
16016
  const LOG_TABLE = new Uint8Array(256)
16023
16017
  /**
@@ -16058,7 +16052,7 @@ const LOG_TABLE = new Uint8Array(256)
16058
16052
  * @param {Number} n
16059
16053
  * @return {Number}
16060
16054
  */
16061
- exports.log = function log (n) {
16055
+ __webpack_unused_export__ = function log (n) {
16062
16056
  if (n < 1) throw new Error('log(' + n + ')')
16063
16057
  return LOG_TABLE[n]
16064
16058
  }
@@ -18700,7 +18694,7 @@ __webpack_require__.d(__webpack_exports__, {
18700
18694
  * Copyright 2017 Google LLC
18701
18695
  * SPDX-License-Identifier: BSD-3-Clause
18702
18696
  */
18703
- const t=globalThis,i=t=>t,s=t.trustedTypes,e=s?s.createPolicy("lit-html",{createHTML:t=>t}):void 0,h="$lit$",o=`lit$${Math.random().toFixed(9).slice(2)}$`,n="?"+o,r=`<${n}>`,l=document,c=()=>l.createComment(""),a=t=>null===t||"object"!=typeof t&&"function"!=typeof t,u=Array.isArray,d=t=>u(t)||"function"==typeof t?.[Symbol.iterator],f="[ \t\n\f\r]",v=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,_=/-->/g,m=/>/g,p=RegExp(`>|${f}(?:([^\\s"'>=/]+)(${f}*=${f}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),g=/'/g,$=/"/g,y=/^(?:script|style|textarea|title)$/i,x=t=>(i,...s)=>({_$litType$:t,strings:i,values:s}),b=x(1),w=x(2),T=x(3),E=Symbol.for("lit-noChange"),A=Symbol.for("lit-nothing"),C=new WeakMap,P=l.createTreeWalker(l,129);function V(t,i){if(!u(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==e?e.createHTML(i):i}const N=(t,i)=>{const s=t.length-1,e=[];let n,l=2===i?"<svg>":3===i?"<math>":"",c=v;for(let i=0;i<s;i++){const s=t[i];let a,u,d=-1,f=0;for(;f<s.length&&(c.lastIndex=f,u=c.exec(s),null!==u);)f=c.lastIndex,c===v?"!--"===u[1]?c=_:void 0!==u[1]?c=m:void 0!==u[2]?(y.test(u[2])&&(n=RegExp("</"+u[2],"g")),c=p):void 0!==u[3]&&(c=p):c===p?">"===u[0]?(c=n??v,d=-1):void 0===u[1]?d=-2:(d=c.lastIndex-u[2].length,a=u[1],c=void 0===u[3]?p:'"'===u[3]?$:g):c===$||c===g?c=p:c===_||c===m?c=v:(c=p,n=void 0);const x=c===p&&t[i+1].startsWith("/>")?" ":"";l+=c===v?s+r:d>=0?(e.push(a),s.slice(0,d)+h+s.slice(d)+o+x):s+o+(-2===d?i:x)}return[V(t,l+(t[s]||"<?>")+(2===i?"</svg>":3===i?"</math>":"")),e]};class S{constructor({strings:t,_$litType$:i},e){let r;this.parts=[];let l=0,a=0;const u=t.length-1,d=this.parts,[f,v]=N(t,i);if(this.el=S.createElement(f,e),P.currentNode=this.el.content,2===i||3===i){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(r=P.nextNode())&&d.length<u;){if(1===r.nodeType){if(r.hasAttributes())for(const t of r.getAttributeNames())if(t.endsWith(h)){const i=v[a++],s=r.getAttribute(t).split(o),e=/([.?@])?(.*)/.exec(i);d.push({type:1,index:l,name:e[2],strings:s,ctor:"."===e[1]?I:"?"===e[1]?L:"@"===e[1]?z:H}),r.removeAttribute(t)}else t.startsWith(o)&&(d.push({type:6,index:l}),r.removeAttribute(t));if(y.test(r.tagName)){const t=r.textContent.split(o),i=t.length-1;if(i>0){r.textContent=s?s.emptyScript:"";for(let s=0;s<i;s++)r.append(t[s],c()),P.nextNode(),d.push({type:2,index:++l});r.append(t[i],c())}}}else if(8===r.nodeType)if(r.data===n)d.push({type:2,index:l});else{let t=-1;for(;-1!==(t=r.data.indexOf(o,t+1));)d.push({type:7,index:l}),t+=o.length-1}l++}}static createElement(t,i){const s=l.createElement("template");return s.innerHTML=t,s}}function M(t,i,s=t,e){if(i===E)return i;let h=void 0!==e?s._$Co?.[e]:s._$Cl;const o=a(i)?void 0:i._$litDirective$;return h?.constructor!==o&&(h?._$AO?.(!1),void 0===o?h=void 0:(h=new o(t),h._$AT(t,s,e)),void 0!==e?(s._$Co??=[])[e]=h:s._$Cl=h),void 0!==h&&(i=M(t,h._$AS(t,i.values),h,e)),i}class R{constructor(t,i){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:i},parts:s}=this._$AD,e=(t?.creationScope??l).importNode(i,!0);P.currentNode=e;let h=P.nextNode(),o=0,n=0,r=s[0];for(;void 0!==r;){if(o===r.index){let i;2===r.type?i=new k(h,h.nextSibling,this,t):1===r.type?i=new r.ctor(h,r.name,r.strings,this,t):6===r.type&&(i=new Z(h,this,t)),this._$AV.push(i),r=s[++n]}o!==r?.index&&(h=P.nextNode(),o++)}return P.currentNode=l,e}p(t){let i=0;for(const s of this._$AV)void 0!==s&&(void 0!==s.strings?(s._$AI(t,s,i),i+=s.strings.length-2):s._$AI(t[i])),i++}}class k{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,i,s,e){this.type=2,this._$AH=A,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=s,this.options=e,this._$Cv=e?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const i=this._$AM;return void 0!==i&&11===t?.nodeType&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=M(this,t,i),a(t)?t===A||null==t||""===t?(this._$AH!==A&&this._$AR(),this._$AH=A):t!==this._$AH&&t!==E&&this._(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):d(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==A&&a(this._$AH)?this._$AA.nextSibling.data=t:this.T(l.createTextNode(t)),this._$AH=t}$(t){const{values:i,_$litType$:s}=t,e="number"==typeof s?this._$AC(t):(void 0===s.el&&(s.el=S.createElement(V(s.h,s.h[0]),this.options)),s);if(this._$AH?._$AD===e)this._$AH.p(i);else{const t=new R(e,this),s=t.u(this.options);t.p(i),this.T(s),this._$AH=t}}_$AC(t){let i=C.get(t.strings);return void 0===i&&C.set(t.strings,i=new S(t)),i}k(t){u(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let s,e=0;for(const h of t)e===i.length?i.push(s=new k(this.O(c()),this.O(c()),this,this.options)):s=i[e],s._$AI(h),e++;e<i.length&&(this._$AR(s&&s._$AB.nextSibling,e),i.length=e)}_$AR(t=this._$AA.nextSibling,s){for(this._$AP?.(!1,!0,s);t!==this._$AB;){const s=i(t).nextSibling;i(t).remove(),t=s}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t))}}class H{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,i,s,e,h){this.type=1,this._$AH=A,this._$AN=void 0,this.element=t,this.name=i,this._$AM=e,this.options=h,s.length>2||""!==s[0]||""!==s[1]?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=A}_$AI(t,i=this,s,e){const h=this.strings;let o=!1;if(void 0===h)t=M(this,t,i,0),o=!a(t)||t!==this._$AH&&t!==E,o&&(this._$AH=t);else{const e=t;let n,r;for(t=h[0],n=0;n<h.length-1;n++)r=M(this,e[s+n],i,n),r===E&&(r=this._$AH[n]),o||=!a(r)||r!==this._$AH[n],r===A?t=A:t!==A&&(t+=(r??"")+h[n+1]),this._$AH[n]=r}o&&!e&&this.j(t)}j(t){t===A?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class I extends H{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===A?void 0:t}}class L extends H{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==A)}}class z extends H{constructor(t,i,s,e,h){super(t,i,s,e,h),this.type=5}_$AI(t,i=this){if((t=M(this,t,i,0)??A)===E)return;const s=this._$AH,e=t===A&&s!==A||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,h=t!==A&&(s===A||e);e&&this.element.removeEventListener(this.name,this,s),h&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}}class Z{constructor(t,i,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=i,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(t){M(this,t)}}const j={M:h,P:o,A:n,C:1,L:N,R,D:d,V:M,I:k,H,N:L,U:z,B:I,F:Z},B=t.litHtmlPolyfillSupport;B?.(S,k),(t.litHtmlVersions??=[]).push("3.3.3");const D=(t,i,s)=>{const e=s?.renderBefore??i;let h=e._$litPart$;if(void 0===h){const t=s?.renderBefore??null;e._$litPart$=h=new k(i.insertBefore(c(),t),t,void 0,s??{})}return h._$AI(t),h};
18697
+ const t=globalThis,i=t=>t,s=t.trustedTypes,e=s?s.createPolicy("lit-html",{createHTML:t=>t}):void 0,h="$lit$",o=`lit$${Math.random().toFixed(9).slice(2)}$`,n="?"+o,r=`<${n}>`,l=document,c=()=>l.createComment(""),a=t=>null===t||"object"!=typeof t&&"function"!=typeof t,u=Array.isArray,d=t=>u(t)||"function"==typeof t?.[Symbol.iterator],f="[ \t\n\f\r]",v=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,_=/-->/g,m=/>/g,p=RegExp(`>|${f}(?:([^\\s"'>=/]+)(${f}*=${f}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),g=/'/g,$=/"/g,y=/^(?:script|style|textarea|title)$/i,x=t=>(i,...s)=>({_$litType$:t,strings:i,values:s}),b=x(1),w=x(2),T=x(3),E=Symbol.for("lit-noChange"),A=Symbol.for("lit-nothing"),C=new WeakMap,P=l.createTreeWalker(l,129);function V(t,i){if(!u(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==e?e.createHTML(i):i}const N=(t,i)=>{const s=t.length-1,e=[];let n,l=2===i?"<svg>":3===i?"<math>":"",c=v;for(let i=0;i<s;i++){const s=t[i];let a,u,d=-1,f=0;for(;f<s.length&&(c.lastIndex=f,u=c.exec(s),null!==u);)f=c.lastIndex,c===v?"!--"===u[1]?c=_:void 0!==u[1]?c=m:void 0!==u[2]?(y.test(u[2])&&(n=RegExp("</"+u[2],"g")),c=p):void 0!==u[3]&&(c=p):c===p?">"===u[0]?(c=n??v,d=-1):void 0===u[1]?d=-2:(d=c.lastIndex-u[2].length,a=u[1],c=void 0===u[3]?p:'"'===u[3]?$:g):c===$||c===g?c=p:c===_||c===m?c=v:(c=p,n=void 0);const x=c===p&&t[i+1].startsWith("/>")?" ":"";l+=c===v?s+r:d>=0?(e.push(a),s.slice(0,d)+h+s.slice(d)+o+x):s+o+(-2===d?i:x)}return[V(t,l+(t[s]||"<?>")+(2===i?"</svg>":3===i?"</math>":"")),e]};class S{constructor({strings:t,_$litType$:i},e){let r;this.parts=[];let l=0,a=0;const u=t.length-1,d=this.parts,[f,v]=N(t,i);if(this.el=S.createElement(f,e),P.currentNode=this.el.content,2===i||3===i){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(r=P.nextNode())&&d.length<u;){if(1===r.nodeType){if(r.hasAttributes())for(const t of r.getAttributeNames())if(t.endsWith(h)){const i=v[a++],s=r.getAttribute(t).split(o),e=/([.?@])?(.*)/.exec(i);d.push({type:1,index:l,name:e[2],strings:s,ctor:"."===e[1]?I:"?"===e[1]?L:"@"===e[1]?z:H}),r.removeAttribute(t)}else t.startsWith(o)&&(d.push({type:6,index:l}),r.removeAttribute(t));if(y.test(r.tagName)){const t=r.textContent.split(o),i=t.length-1;if(i>0){r.textContent=s?s.emptyScript:"";for(let s=0;s<i;s++)r.append(t[s],c()),P.nextNode(),d.push({type:2,index:++l});r.append(t[i],c())}}}else if(8===r.nodeType)if(r.data===n)d.push({type:2,index:l});else{let t=-1;for(;-1!==(t=r.data.indexOf(o,t+1));)d.push({type:7,index:l}),t+=o.length-1}l++}}static createElement(t,i){const s=l.createElement("template");return s.innerHTML=t,s}}function M(t,i,s=t,e){if(i===E)return i;let h=void 0!==e?s._$Co?.[e]:s._$Cl;const o=a(i)?void 0:i._$litDirective$;return h?.constructor!==o&&(h?._$AO?.(!1),void 0===o?h=void 0:(h=new o(t),h._$AT(t,s,e)),void 0!==e?(s._$Co??=[])[e]=h:s._$Cl=h),void 0!==h&&(i=M(t,h._$AS(t,i.values),h,e)),i}class R{constructor(t,i){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:i},parts:s}=this._$AD,e=(t?.creationScope??l).importNode(i,!0);P.currentNode=e;let h=P.nextNode(),o=0,n=0,r=s[0];for(;void 0!==r;){if(o===r.index){let i;2===r.type?i=new k(h,h.nextSibling,this,t):1===r.type?i=new r.ctor(h,r.name,r.strings,this,t):6===r.type&&(i=new Z(h,this,t)),this._$AV.push(i),r=s[++n]}o!==r?.index&&(h=P.nextNode(),o++)}return P.currentNode=l,e}p(t){let i=0;for(const s of this._$AV)void 0!==s&&(void 0!==s.strings?(s._$AI(t,s,i),i+=s.strings.length-2):s._$AI(t[i])),i++}}class k{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,i,s,e){this.type=2,this._$AH=A,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=s,this.options=e,this._$Cv=e?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const i=this._$AM;return void 0!==i&&11===t?.nodeType&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=M(this,t,i),a(t)?t===A||null==t||""===t?(this._$AH!==A&&this._$AR(),this._$AH=A):t!==this._$AH&&t!==E&&this._(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):d(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==A&&a(this._$AH)?this._$AA.nextSibling.data=t:this.T(l.createTextNode(t)),this._$AH=t}$(t){const{values:i,_$litType$:s}=t,e="number"==typeof s?this._$AC(t):(void 0===s.el&&(s.el=S.createElement(V(s.h,s.h[0]),this.options)),s);if(this._$AH?._$AD===e)this._$AH.p(i);else{const t=new R(e,this),s=t.u(this.options);t.p(i),this.T(s),this._$AH=t}}_$AC(t){let i=C.get(t.strings);return void 0===i&&C.set(t.strings,i=new S(t)),i}k(t){u(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let s,e=0;for(const h of t)e===i.length?i.push(s=new k(this.O(c()),this.O(c()),this,this.options)):s=i[e],s._$AI(h),e++;e<i.length&&(this._$AR(s&&s._$AB.nextSibling,e),i.length=e)}_$AR(t=this._$AA.nextSibling,s){for(this._$AP?.(!1,!0,s);t!==this._$AB;){const s=i(t).nextSibling;i(t).remove(),t=s}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t))}}class H{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,i,s,e,h){this.type=1,this._$AH=A,this._$AN=void 0,this.element=t,this.name=i,this._$AM=e,this.options=h,s.length>2||""!==s[0]||""!==s[1]?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=A}_$AI(t,i=this,s,e){const h=this.strings;let o=!1;if(void 0===h)t=M(this,t,i,0),o=!a(t)||t!==this._$AH&&t!==E,o&&(this._$AH=t);else{const e=t;let n,r;for(t=h[0],n=0;n<h.length-1;n++)r=M(this,e[s+n],i,n),r===E&&(r=this._$AH[n]),o||=!a(r)||r!==this._$AH[n],r===A?t=A:t!==A&&(t+=(r??"")+h[n+1]),this._$AH[n]=r}o&&!e&&this.j(t)}j(t){t===A?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class I extends H{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===A?void 0:t}}class L extends H{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==A)}}class z extends H{constructor(t,i,s,e,h){super(t,i,s,e,h),this.type=5}_$AI(t,i=this){if((t=M(this,t,i,0)??A)===E)return;const s=this._$AH,e=t===A&&s!==A||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,h=t!==A&&(s===A||e);e&&this.element.removeEventListener(this.name,this,s),h&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}}class Z{constructor(t,i,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=i,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(t){M(this,t)}}const j=(/* unused pure expression or super */ null && ({M:h,P:o,A:n,C:1,L:N,R,D:d,V:M,I:k,H,N:L,U:z,B:I,F:Z})),B=t.litHtmlPolyfillSupport;B?.(S,k),(t.litHtmlVersions??=[]).push("3.3.3");const D=(t,i,s)=>{const e=s?.renderBefore??i;let h=e._$litPart$;if(void 0===h){const t=s?.renderBefore??null;e._$litPart$=h=new k(i.insertBefore(c(),t),t,void 0,s??{})}return h._$AI(t),h};
18704
18698
  //# sourceMappingURL=lit-html.js.map
18705
18699
 
18706
18700
  // EXTERNAL MODULE: external "SolidLogic"
@@ -20589,86 +20583,105 @@ async function presentProfileViewModel(subject, store) {
20589
20583
  };
20590
20584
  }
20591
20585
 
20592
- ;// ./node_modules/solid-ui/dist/components/button/index.esm.js
20593
- /******/ var __webpack_modules__ = ({
20586
+ ;// ./node_modules/@lit/reactive-element/css-tag.js
20587
+ /**
20588
+ * @license
20589
+ * Copyright 2019 Google LLC
20590
+ * SPDX-License-Identifier: BSD-3-Clause
20591
+ */
20592
+ const css_tag_t=globalThis,css_tag_e=css_tag_t.ShadowRoot&&(void 0===css_tag_t.ShadyCSS||css_tag_t.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,css_tag_s=Symbol(),css_tag_o=new WeakMap;class css_tag_n{constructor(t,e,o){if(this._$cssResult$=!0,o!==css_tag_s)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const s=this.t;if(css_tag_e&&void 0===t){const e=void 0!==s&&1===s.length;e&&(t=css_tag_o.get(s)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),e&&css_tag_o.set(s,t))}return t}toString(){return this.cssText}}const css_tag_r=t=>new css_tag_n("string"==typeof t?t:t+"",void 0,css_tag_s),css_tag_i=(t,...e)=>{const o=1===t.length?t[0]:e.reduce((e,s,o)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+t[o+1],t[0]);return new css_tag_n(o,t,css_tag_s)},css_tag_S=(s,o)=>{if(css_tag_e)s.adoptedStyleSheets=o.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(const e of o){const o=document.createElement("style"),n=css_tag_t.litNonce;void 0!==n&&o.setAttribute("nonce",n),o.textContent=e.cssText,s.appendChild(o)}},css_tag_c=css_tag_e?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const s of t.cssRules)e+=s.cssText;return css_tag_r(e)})(t):t;
20593
+ //# sourceMappingURL=css-tag.js.map
20594
20594
 
20595
- /***/ 8415
20596
- (__unused_webpack_module, __nested_webpack_exports__, __nested_webpack_require_97__) {
20595
+ ;// ./node_modules/@lit/reactive-element/reactive-element.js
20597
20596
 
20598
- /* harmony export */ __nested_webpack_require_97__.d(__nested_webpack_exports__, {
20599
- /* harmony export */ $: () => (/* binding */ Button)
20600
- /* harmony export */ });
20601
- /* harmony import */ var lit__WEBPACK_IMPORTED_MODULE_0__ = __nested_webpack_require_97__(6161);
20597
+ /**
20598
+ * @license
20599
+ * Copyright 2017 Google LLC
20600
+ * SPDX-License-Identifier: BSD-3-Clause
20601
+ */const{is:reactive_element_i,defineProperty:reactive_element_e,getOwnPropertyDescriptor:reactive_element_h,getOwnPropertyNames:reactive_element_r,getOwnPropertySymbols:reactive_element_o,getPrototypeOf:reactive_element_n}=Object,reactive_element_a=globalThis,reactive_element_c=reactive_element_a.trustedTypes,reactive_element_l=reactive_element_c?reactive_element_c.emptyScript:"",reactive_element_p=reactive_element_a.reactiveElementPolyfillSupport,reactive_element_d=(t,s)=>t,reactive_element_u={toAttribute(t,s){switch(s){case Boolean:t=t?reactive_element_l:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,s){let i=t;switch(s){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t)}catch(t){i=null}}return i}},reactive_element_f=(t,s)=>!reactive_element_i(t,s),reactive_element_b={attribute:!0,type:String,converter:reactive_element_u,reflect:!1,useDefault:!1,hasChanged:reactive_element_f};Symbol.metadata??=Symbol("metadata"),reactive_element_a.litPropertyMetadata??=new WeakMap;class reactive_element_y extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,s=reactive_element_b){if(s.state&&(s.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((s=Object.create(s)).wrapped=!0),this.elementProperties.set(t,s),!s.noAccessor){const i=Symbol(),h=this.getPropertyDescriptor(t,i,s);void 0!==h&&reactive_element_e(this.prototype,t,h)}}static getPropertyDescriptor(t,s,i){const{get:e,set:r}=reactive_element_h(this.prototype,t)??{get(){return this[s]},set(t){this[s]=t}};return{get:e,set(s){const h=e?.call(this);r?.call(this,s),this.requestUpdate(t,h,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??reactive_element_b}static _$Ei(){if(this.hasOwnProperty(reactive_element_d("elementProperties")))return;const t=reactive_element_n(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(reactive_element_d("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(reactive_element_d("properties"))){const t=this.properties,s=[...reactive_element_r(t),...reactive_element_o(t)];for(const i of s)this.createProperty(i,t[i])}const t=this[Symbol.metadata];if(null!==t){const s=litPropertyMetadata.get(t);if(void 0!==s)for(const[t,i]of s)this.elementProperties.set(t,i)}this._$Eh=new Map;for(const[t,s]of this.elementProperties){const i=this._$Eu(t,s);void 0!==i&&this._$Eh.set(i,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(s){const i=[];if(Array.isArray(s)){const e=new Set(s.flat(1/0).reverse());for(const s of e)i.unshift(css_tag_c(s))}else void 0!==s&&i.push(css_tag_c(s));return i}static _$Eu(t,s){const i=s.attribute;return!1===i?void 0:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(t=>t(this))}addController(t){(this._$EO??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){const t=new Map,s=this.constructor.elementProperties;for(const i of s.keys())this.hasOwnProperty(i)&&(t.set(i,this[i]),delete this[i]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return css_tag_S(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(t=>t.hostConnected?.())}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach(t=>t.hostDisconnected?.())}attributeChangedCallback(t,s,i){this._$AK(t,i)}_$ET(t,s){const i=this.constructor.elementProperties.get(t),e=this.constructor._$Eu(t,i);if(void 0!==e&&!0===i.reflect){const h=(void 0!==i.converter?.toAttribute?i.converter:reactive_element_u).toAttribute(s,i.type);this._$Em=t,null==h?this.removeAttribute(e):this.setAttribute(e,h),this._$Em=null}}_$AK(t,s){const i=this.constructor,e=i._$Eh.get(t);if(void 0!==e&&this._$Em!==e){const t=i.getPropertyOptions(e),h="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:reactive_element_u;this._$Em=e;const r=h.fromAttribute(s,t.type);this[e]=r??this._$Ej?.get(e)??r,this._$Em=null}}requestUpdate(t,s,i,e=!1,h){if(void 0!==t){const r=this.constructor;if(!1===e&&(h=this[t]),i??=r.getPropertyOptions(t),!((i.hasChanged??reactive_element_f)(h,s)||i.useDefault&&i.reflect&&h===this._$Ej?.get(t)&&!this.hasAttribute(r._$Eu(t,i))))return;this.C(t,s,i)}!1===this.isUpdatePending&&(this._$ES=this._$EP())}C(t,s,{useDefault:i,reflect:e,wrapped:h},r){i&&!(this._$Ej??=new Map).has(t)&&(this._$Ej.set(t,r??s??this[t]),!0!==h||void 0!==r)||(this._$AL.has(t)||(this.hasUpdated||i||(s=void 0),this._$AL.set(t,s)),!0===e&&this._$Em!==t&&(this._$Eq??=new Set).add(t))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,s]of this._$Ep)this[t]=s;this._$Ep=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[s,i]of t){const{wrapped:t}=i,e=this[s];!0!==t||this._$AL.has(s)||void 0===e||this.C(s,void 0,i,e)}}let t=!1;const s=this._$AL;try{t=this.shouldUpdate(s),t?(this.willUpdate(s),this._$EO?.forEach(t=>t.hostUpdate?.()),this.update(s)):this._$EM()}catch(s){throw t=!1,this._$EM(),s}t&&this._$AE(s)}willUpdate(t){}_$AE(t){this._$EO?.forEach(t=>t.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&=this._$Eq.forEach(t=>this._$ET(t,this[t])),this._$EM()}updated(t){}firstUpdated(t){}}reactive_element_y.elementStyles=[],reactive_element_y.shadowRootOptions={mode:"open"},reactive_element_y[reactive_element_d("elementProperties")]=new Map,reactive_element_y[reactive_element_d("finalized")]=new Map,reactive_element_p?.({ReactiveElement:reactive_element_y}),(reactive_element_a.reactiveElementVersions??=[]).push("2.1.2");
20602
+ //# sourceMappingURL=reactive-element.js.map
20602
20603
 
20603
- class Button extends lit__WEBPACK_IMPORTED_MODULE_0__/* .LitElement */ .WF {
20604
- static properties = {
20605
- label: {
20606
- type: String,
20607
- reflect: true
20608
- },
20609
- type: {
20610
- type: String,
20611
- reflect: true
20612
- },
20613
- disabled: {
20614
- type: Boolean,
20615
- reflect: true
20616
- },
20617
- selected: {
20618
- type: Boolean,
20619
- reflect: true
20620
- },
20621
- ariaLabel: {
20622
- type: String,
20623
- attribute: 'aria-label'
20624
- },
20625
- name: {
20626
- type: String,
20627
- reflect: true
20628
- },
20629
- value: {
20630
- type: String,
20631
- reflect: true
20632
- },
20633
- variant: {
20634
- type: String,
20635
- reflect: true
20636
- },
20637
- size: {
20638
- type: String,
20639
- reflect: true
20640
- },
20641
- theme: {
20642
- type: String,
20643
- reflect: true
20644
- },
20645
- fullWidth: {
20646
- type: Boolean,
20647
- attribute: 'full-width',
20648
- reflect: true
20649
- },
20650
- icon: {
20651
- type: String,
20652
- reflect: true
20653
- },
20654
- iconPosition: {
20655
- type: String,
20656
- attribute: 'icon-position',
20657
- reflect: true
20658
- },
20659
- contentAlign: {
20660
- type: String,
20661
- attribute: 'content-align',
20662
- reflect: true
20663
- },
20664
- handleClick: {
20665
- attribute: false
20666
- },
20667
- _hasSlottedIcon: {
20668
- state: true
20669
- }
20670
- };
20671
- static styles = (0,lit__WEBPACK_IMPORTED_MODULE_0__/* .css */ .AH)`
20604
+ ;// ./node_modules/lit-element/lit-element.js
20605
+
20606
+ /**
20607
+ * @license
20608
+ * Copyright 2017 Google LLC
20609
+ * SPDX-License-Identifier: BSD-3-Clause
20610
+ */const lit_element_s=globalThis;class lit_element_i extends reactive_element_y{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){const t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){const r=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=D(r,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return E}}lit_element_i._$litElement$=!0,lit_element_i["finalized"]=!0,lit_element_s.litElementHydrateSupport?.({LitElement:lit_element_i});const lit_element_o=lit_element_s.litElementPolyfillSupport;lit_element_o?.({LitElement:lit_element_i});const lit_element_n=(/* unused pure expression or super */ null && ({_$AK:(t,e,r)=>{t._$AK(e,r)},_$AL:t=>t._$AL}));(lit_element_s.litElementVersions??=[]).push("4.2.2");
20611
+ //# sourceMappingURL=lit-element.js.map
20612
+
20613
+ ;// ./node_modules/lit/index.js
20614
+
20615
+ //# sourceMappingURL=index.js.map
20616
+
20617
+ ;// ./node_modules/solid-ui/dist/v2/components/actions/button/Button.esm.js
20618
+
20619
+ //#region src/v2/components/actions/button/Button.ts
20620
+ var Button_esm_i = class extends lit_element_i {
20621
+ static properties = {
20622
+ label: {
20623
+ type: String,
20624
+ reflect: !0
20625
+ },
20626
+ type: {
20627
+ type: String,
20628
+ reflect: !0
20629
+ },
20630
+ disabled: {
20631
+ type: Boolean,
20632
+ reflect: !0
20633
+ },
20634
+ selected: {
20635
+ type: Boolean,
20636
+ reflect: !0
20637
+ },
20638
+ ariaLabel: {
20639
+ type: String,
20640
+ attribute: "aria-label"
20641
+ },
20642
+ name: {
20643
+ type: String,
20644
+ reflect: !0
20645
+ },
20646
+ value: {
20647
+ type: String,
20648
+ reflect: !0
20649
+ },
20650
+ variant: {
20651
+ type: String,
20652
+ reflect: !0
20653
+ },
20654
+ size: {
20655
+ type: String,
20656
+ reflect: !0
20657
+ },
20658
+ theme: {
20659
+ type: String,
20660
+ reflect: !0
20661
+ },
20662
+ fullWidth: {
20663
+ type: Boolean,
20664
+ attribute: "full-width",
20665
+ reflect: !0
20666
+ },
20667
+ icon: {
20668
+ type: String,
20669
+ reflect: !0
20670
+ },
20671
+ iconPosition: {
20672
+ type: String,
20673
+ attribute: "icon-position",
20674
+ reflect: !0
20675
+ },
20676
+ contentAlign: {
20677
+ type: String,
20678
+ attribute: "content-align",
20679
+ reflect: !0
20680
+ },
20681
+ handleClick: { attribute: !1 },
20682
+ _hasSlottedIcon: { state: !0 }
20683
+ };
20684
+ static styles = css_tag_i`
20672
20685
  :host {
20673
20686
  display: inline-flex;
20674
20687
  align-items: center;
@@ -20889,75 +20902,49 @@ class Button extends lit__WEBPACK_IMPORTED_MODULE_0__/* .LitElement */ .WF {
20889
20902
  box-shadow: var(--button-active-box-shadow, var(--button-hover-box-shadow, var(--button-box-shadow)));
20890
20903
  }
20891
20904
  `;
20892
- _iconSlotObserver;
20893
- constructor() {
20894
- super();
20895
- this.label = '';
20896
- this.type = 'button';
20897
- this.disabled = false;
20898
- this.selected = false;
20899
- this.ariaLabel = '';
20900
- this.name = '';
20901
- this.value = '';
20902
- this.variant = 'secondary';
20903
- this.size = 'md';
20904
- this.theme = 'light';
20905
- this.fullWidth = false;
20906
- this.icon = '';
20907
- this.iconPosition = 'start';
20908
- this.contentAlign = 'center';
20909
- this.handleClick = undefined;
20910
- this._hasSlottedIcon = false;
20911
- }
20912
- connectedCallback() {
20913
- super.connectedCallback();
20914
- this._syncSlottedIconPresence();
20915
- this._iconSlotObserver = new MutationObserver(() => {
20916
- this._syncSlottedIconPresence();
20917
- });
20918
- this._iconSlotObserver.observe(this, {
20919
- childList: true,
20920
- attributes: true,
20921
- attributeFilter: ['slot']
20922
- });
20923
- }
20924
- disconnectedCallback() {
20925
- this._iconSlotObserver?.disconnect();
20926
- this._iconSlotObserver = undefined;
20927
- super.disconnectedCallback();
20928
- }
20929
- _handleButtonClick(event) {
20930
- this.handleClick?.(event);
20931
- }
20932
- _handleIconSlotChange(event) {
20933
- const slot = event.target;
20934
- this._hasSlottedIcon = slot.assignedNodes({
20935
- flatten: true
20936
- }).length > 0;
20937
- }
20938
- _syncSlottedIconPresence() {
20939
- this._hasSlottedIcon = this.querySelector('[slot="icon"]') !== null;
20940
- }
20941
- _renderIcon() {
20942
- if (!this._hasSlottedIcon && !this.icon) {
20943
- return lit__WEBPACK_IMPORTED_MODULE_0__/* .nothing */ .s6;
20944
- }
20945
- return (0,lit__WEBPACK_IMPORTED_MODULE_0__/* .html */ .qy)`
20905
+ _iconSlotObserver;
20906
+ constructor() {
20907
+ super(), this.label = "", this.type = "button", this.disabled = !1, this.selected = !1, this.ariaLabel = "", this.name = "", this.value = "", this.variant = "secondary", this.size = "md", this.theme = "light", this.fullWidth = !1, this.icon = "", this.iconPosition = "start", this.contentAlign = "center", this.handleClick = void 0, this._hasSlottedIcon = !1;
20908
+ }
20909
+ connectedCallback() {
20910
+ super.connectedCallback(), this._syncSlottedIconPresence(), this._iconSlotObserver = new MutationObserver(() => {
20911
+ this._syncSlottedIconPresence();
20912
+ }), this._iconSlotObserver.observe(this, {
20913
+ childList: !0,
20914
+ attributes: !0,
20915
+ attributeFilter: ["slot"]
20916
+ });
20917
+ }
20918
+ disconnectedCallback() {
20919
+ this._iconSlotObserver?.disconnect(), this._iconSlotObserver = void 0, super.disconnectedCallback();
20920
+ }
20921
+ _handleButtonClick(e) {
20922
+ this.handleClick?.(e);
20923
+ }
20924
+ _handleIconSlotChange(e) {
20925
+ let t = e.target;
20926
+ this._hasSlottedIcon = t.assignedNodes({ flatten: !0 }).length > 0;
20927
+ }
20928
+ _syncSlottedIconPresence() {
20929
+ this._hasSlottedIcon = this.querySelector("[slot=\"icon\"]") !== null;
20930
+ }
20931
+ _renderIcon() {
20932
+ return !this._hasSlottedIcon && !this.icon ? A : b`
20946
20933
  <span class="button__icon" part="icon">
20947
20934
  <slot name="icon" @slotchange=${this._handleIconSlotChange}></slot>
20948
- ${!this._hasSlottedIcon && this.icon ? (0,lit__WEBPACK_IMPORTED_MODULE_0__/* .html */ .qy)`<img class="button__icon-image" src=${this.icon} alt="" aria-hidden="true" />` : lit__WEBPACK_IMPORTED_MODULE_0__/* .nothing */ .s6}
20935
+ ${!this._hasSlottedIcon && this.icon ? b`<img class="button__icon-image" src=${this.icon} alt="" aria-hidden="true" />` : A}
20949
20936
  </span>
20950
20937
  `;
20951
- }
20952
- render() {
20953
- return (0,lit__WEBPACK_IMPORTED_MODULE_0__/* .html */ .qy)`
20938
+ }
20939
+ render() {
20940
+ return b`
20954
20941
  <button
20955
20942
  class="button"
20956
20943
  type=${this.type}
20957
20944
  ?disabled=${this.disabled}
20958
- aria-label=${this.ariaLabel || lit__WEBPACK_IMPORTED_MODULE_0__/* .nothing */ .s6}
20959
- name=${this.name || lit__WEBPACK_IMPORTED_MODULE_0__/* .nothing */ .s6}
20960
- value=${this.value || lit__WEBPACK_IMPORTED_MODULE_0__/* .nothing */ .s6}
20945
+ aria-label=${this.ariaLabel || A}
20946
+ name=${this.name || A}
20947
+ value=${this.value || A}
20961
20948
  part="button"
20962
20949
  @click=${this._handleButtonClick}
20963
20950
  >
@@ -20969,173 +20956,25 @@ class Button extends lit__WEBPACK_IMPORTED_MODULE_0__/* .LitElement */ .WF {
20969
20956
  </span>
20970
20957
  </button>
20971
20958
  `;
20972
- }
20973
- }
20974
-
20975
- /***/ },
20976
-
20977
- /***/ 3826
20978
- (__unused_webpack___webpack_module__, __nested_webpack_exports__, __nested_webpack_require_12199__) {
20979
-
20980
- /* harmony export */ __nested_webpack_require_12199__.d(__nested_webpack_exports__, {
20981
- /* harmony export */ AH: () => (/* binding */ i),
20982
- /* harmony export */ Rf: () => (/* binding */ S),
20983
- /* harmony export */ sk: () => (/* binding */ c)
20984
- /* harmony export */ });
20985
- /* unused harmony exports CSSResult, supportsAdoptingStyleSheets, unsafeCSS */
20986
- /**
20987
- * @license
20988
- * Copyright 2019 Google LLC
20989
- * SPDX-License-Identifier: BSD-3-Clause
20990
- */
20991
- const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,s=Symbol(),o=new WeakMap;class n{constructor(t,e,o){if(this._$cssResult$=!0,o!==s)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const s=this.t;if(e&&void 0===t){const e=void 0!==s&&1===s.length;e&&(t=o.get(s)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),e&&o.set(s,t))}return t}toString(){return this.cssText}}const r=t=>new n("string"==typeof t?t:t+"",void 0,s),i=(t,...e)=>{const o=1===t.length?t[0]:e.reduce((e,s,o)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+t[o+1],t[0]);return new n(o,t,s)},S=(s,o)=>{if(e)s.adoptedStyleSheets=o.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(const e of o){const o=document.createElement("style"),n=t.litNonce;void 0!==n&&o.setAttribute("nonce",n),o.textContent=e.cssText,s.appendChild(o)}},c=e?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const s of t.cssRules)e+=s.cssText;return r(e)})(t):t;
20992
- //# sourceMappingURL=css-tag.js.map
20993
-
20994
-
20995
- /***/ },
20996
-
20997
- /***/ 8760
20998
- (__unused_webpack___webpack_module__, __nested_webpack_exports__, __nested_webpack_require_14094__) {
20999
-
21000
- /* harmony export */ __nested_webpack_require_14094__.d(__nested_webpack_exports__, {
21001
- /* harmony export */ AH: () => (/* reexport safe */ _css_tag_js__WEBPACK_IMPORTED_MODULE_0__.AH),
21002
- /* harmony export */ mN: () => (/* binding */ y)
21003
- /* harmony export */ });
21004
- /* unused harmony exports defaultConverter, notEqual */
21005
- /* harmony import */ var _css_tag_js__WEBPACK_IMPORTED_MODULE_0__ = __nested_webpack_require_14094__(3826);
21006
-
21007
- /**
21008
- * @license
21009
- * Copyright 2017 Google LLC
21010
- * SPDX-License-Identifier: BSD-3-Clause
21011
- */const{is:i,defineProperty:e,getOwnPropertyDescriptor:h,getOwnPropertyNames:r,getOwnPropertySymbols:o,getPrototypeOf:n}=Object,a=globalThis,c=a.trustedTypes,l=c?c.emptyScript:"",p=a.reactiveElementPolyfillSupport,d=(t,s)=>t,u={toAttribute(t,s){switch(s){case Boolean:t=t?l:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,s){let i=t;switch(s){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t)}catch(t){i=null}}return i}},f=(t,s)=>!i(t,s),b={attribute:!0,type:String,converter:u,reflect:!1,useDefault:!1,hasChanged:f};Symbol.metadata??=Symbol("metadata"),a.litPropertyMetadata??=new WeakMap;class y extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,s=b){if(s.state&&(s.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((s=Object.create(s)).wrapped=!0),this.elementProperties.set(t,s),!s.noAccessor){const i=Symbol(),h=this.getPropertyDescriptor(t,i,s);void 0!==h&&e(this.prototype,t,h)}}static getPropertyDescriptor(t,s,i){const{get:e,set:r}=h(this.prototype,t)??{get(){return this[s]},set(t){this[s]=t}};return{get:e,set(s){const h=e?.call(this);r?.call(this,s),this.requestUpdate(t,h,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??b}static _$Ei(){if(this.hasOwnProperty(d("elementProperties")))return;const t=n(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(d("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(d("properties"))){const t=this.properties,s=[...r(t),...o(t)];for(const i of s)this.createProperty(i,t[i])}const t=this[Symbol.metadata];if(null!==t){const s=litPropertyMetadata.get(t);if(void 0!==s)for(const[t,i]of s)this.elementProperties.set(t,i)}this._$Eh=new Map;for(const[t,s]of this.elementProperties){const i=this._$Eu(t,s);void 0!==i&&this._$Eh.set(i,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(s){const i=[];if(Array.isArray(s)){const e=new Set(s.flat(1/0).reverse());for(const s of e)i.unshift((0,_css_tag_js__WEBPACK_IMPORTED_MODULE_0__/* .getCompatibleStyle */ .sk)(s))}else void 0!==s&&i.push((0,_css_tag_js__WEBPACK_IMPORTED_MODULE_0__/* .getCompatibleStyle */ .sk)(s));return i}static _$Eu(t,s){const i=s.attribute;return!1===i?void 0:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(t=>t(this))}addController(t){(this._$EO??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){const t=new Map,s=this.constructor.elementProperties;for(const i of s.keys())this.hasOwnProperty(i)&&(t.set(i,this[i]),delete this[i]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return (0,_css_tag_js__WEBPACK_IMPORTED_MODULE_0__/* .adoptStyles */ .Rf)(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(t=>t.hostConnected?.())}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach(t=>t.hostDisconnected?.())}attributeChangedCallback(t,s,i){this._$AK(t,i)}_$ET(t,s){const i=this.constructor.elementProperties.get(t),e=this.constructor._$Eu(t,i);if(void 0!==e&&!0===i.reflect){const h=(void 0!==i.converter?.toAttribute?i.converter:u).toAttribute(s,i.type);this._$Em=t,null==h?this.removeAttribute(e):this.setAttribute(e,h),this._$Em=null}}_$AK(t,s){const i=this.constructor,e=i._$Eh.get(t);if(void 0!==e&&this._$Em!==e){const t=i.getPropertyOptions(e),h="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:u;this._$Em=e;const r=h.fromAttribute(s,t.type);this[e]=r??this._$Ej?.get(e)??r,this._$Em=null}}requestUpdate(t,s,i,e=!1,h){if(void 0!==t){const r=this.constructor;if(!1===e&&(h=this[t]),i??=r.getPropertyOptions(t),!((i.hasChanged??f)(h,s)||i.useDefault&&i.reflect&&h===this._$Ej?.get(t)&&!this.hasAttribute(r._$Eu(t,i))))return;this.C(t,s,i)}!1===this.isUpdatePending&&(this._$ES=this._$EP())}C(t,s,{useDefault:i,reflect:e,wrapped:h},r){i&&!(this._$Ej??=new Map).has(t)&&(this._$Ej.set(t,r??s??this[t]),!0!==h||void 0!==r)||(this._$AL.has(t)||(this.hasUpdated||i||(s=void 0),this._$AL.set(t,s)),!0===e&&this._$Em!==t&&(this._$Eq??=new Set).add(t))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,s]of this._$Ep)this[t]=s;this._$Ep=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[s,i]of t){const{wrapped:t}=i,e=this[s];!0!==t||this._$AL.has(s)||void 0===e||this.C(s,void 0,i,e)}}let t=!1;const s=this._$AL;try{t=this.shouldUpdate(s),t?(this.willUpdate(s),this._$EO?.forEach(t=>t.hostUpdate?.()),this.update(s)):this._$EM()}catch(s){throw t=!1,this._$EM(),s}t&&this._$AE(s)}willUpdate(t){}_$AE(t){this._$EO?.forEach(t=>t.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&=this._$Eq.forEach(t=>this._$ET(t,this[t])),this._$EM()}updated(t){}firstUpdated(t){}}y.elementStyles=[],y.shadowRootOptions={mode:"open"},y[d("elementProperties")]=new Map,y[d("finalized")]=new Map,p?.({ReactiveElement:y}),(a.reactiveElementVersions??=[]).push("2.1.2");
21012
- //# sourceMappingURL=reactive-element.js.map
21013
-
21014
-
21015
- /***/ },
21016
-
21017
- /***/ 5228
21018
- (__unused_webpack___webpack_module__, __nested_webpack_exports__, __nested_webpack_require_20857__) {
21019
-
21020
- /* harmony export */ __nested_webpack_require_20857__.d(__nested_webpack_exports__, {
21021
- /* harmony export */ AH: () => (/* reexport safe */ _lit_reactive_element__WEBPACK_IMPORTED_MODULE_0__.AH),
21022
- /* harmony export */ WF: () => (/* binding */ i),
21023
- /* harmony export */ qy: () => (/* reexport safe */ lit_html__WEBPACK_IMPORTED_MODULE_1__.qy),
21024
- /* harmony export */ s6: () => (/* reexport safe */ lit_html__WEBPACK_IMPORTED_MODULE_1__.s6)
21025
- /* harmony export */ });
21026
- /* unused harmony export _$LE */
21027
- /* harmony import */ var _lit_reactive_element__WEBPACK_IMPORTED_MODULE_0__ = __nested_webpack_require_20857__(8760);
21028
- /* harmony import */ var lit_html__WEBPACK_IMPORTED_MODULE_1__ = __nested_webpack_require_20857__(6752);
21029
-
21030
- /**
21031
- * @license
21032
- * Copyright 2017 Google LLC
21033
- * SPDX-License-Identifier: BSD-3-Clause
21034
- */const s=globalThis;class i extends _lit_reactive_element__WEBPACK_IMPORTED_MODULE_0__/* .ReactiveElement */ .mN{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){const t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){const r=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=(0,lit_html__WEBPACK_IMPORTED_MODULE_1__/* .render */ .XX)(r,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return lit_html__WEBPACK_IMPORTED_MODULE_1__/* .noChange */ .c0}}i._$litElement$=!0,i["finalized"]=!0,s.litElementHydrateSupport?.({LitElement:i});const o=s.litElementPolyfillSupport;o?.({LitElement:i});const n={_$AK:(t,e,r)=>{t._$AK(e,r)},_$AL:t=>t._$AL};(s.litElementVersions??=[]).push("4.2.2");
21035
- //# sourceMappingURL=lit-element.js.map
21036
-
21037
-
21038
- /***/ },
21039
-
21040
- /***/ 6752
21041
- (__unused_webpack___webpack_module__, __nested_webpack_exports__, __nested_webpack_require_22755__) {
21042
-
21043
- /* harmony export */ __nested_webpack_require_22755__.d(__nested_webpack_exports__, {
21044
- /* harmony export */ XX: () => (/* binding */ D),
21045
- /* harmony export */ c0: () => (/* binding */ E),
21046
- /* harmony export */ qy: () => (/* binding */ b),
21047
- /* harmony export */ s6: () => (/* binding */ A)
21048
- /* harmony export */ });
21049
- /* unused harmony exports _$LH, mathml, svg */
21050
- /**
21051
- * @license
21052
- * Copyright 2017 Google LLC
21053
- * SPDX-License-Identifier: BSD-3-Clause
21054
- */
21055
- const t=globalThis,i=t=>t,s=t.trustedTypes,e=s?s.createPolicy("lit-html",{createHTML:t=>t}):void 0,h="$lit$",o=`lit$${Math.random().toFixed(9).slice(2)}$`,n="?"+o,r=`<${n}>`,l=document,c=()=>l.createComment(""),a=t=>null===t||"object"!=typeof t&&"function"!=typeof t,u=Array.isArray,d=t=>u(t)||"function"==typeof t?.[Symbol.iterator],f="[ \t\n\f\r]",v=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,_=/-->/g,m=/>/g,p=RegExp(`>|${f}(?:([^\\s"'>=/]+)(${f}*=${f}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),g=/'/g,$=/"/g,y=/^(?:script|style|textarea|title)$/i,x=t=>(i,...s)=>({_$litType$:t,strings:i,values:s}),b=x(1),w=x(2),T=x(3),E=Symbol.for("lit-noChange"),A=Symbol.for("lit-nothing"),C=new WeakMap,P=l.createTreeWalker(l,129);function V(t,i){if(!u(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==e?e.createHTML(i):i}const N=(t,i)=>{const s=t.length-1,e=[];let n,l=2===i?"<svg>":3===i?"<math>":"",c=v;for(let i=0;i<s;i++){const s=t[i];let a,u,d=-1,f=0;for(;f<s.length&&(c.lastIndex=f,u=c.exec(s),null!==u);)f=c.lastIndex,c===v?"!--"===u[1]?c=_:void 0!==u[1]?c=m:void 0!==u[2]?(y.test(u[2])&&(n=RegExp("</"+u[2],"g")),c=p):void 0!==u[3]&&(c=p):c===p?">"===u[0]?(c=n??v,d=-1):void 0===u[1]?d=-2:(d=c.lastIndex-u[2].length,a=u[1],c=void 0===u[3]?p:'"'===u[3]?$:g):c===$||c===g?c=p:c===_||c===m?c=v:(c=p,n=void 0);const x=c===p&&t[i+1].startsWith("/>")?" ":"";l+=c===v?s+r:d>=0?(e.push(a),s.slice(0,d)+h+s.slice(d)+o+x):s+o+(-2===d?i:x)}return[V(t,l+(t[s]||"<?>")+(2===i?"</svg>":3===i?"</math>":"")),e]};class S{constructor({strings:t,_$litType$:i},e){let r;this.parts=[];let l=0,a=0;const u=t.length-1,d=this.parts,[f,v]=N(t,i);if(this.el=S.createElement(f,e),P.currentNode=this.el.content,2===i||3===i){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(r=P.nextNode())&&d.length<u;){if(1===r.nodeType){if(r.hasAttributes())for(const t of r.getAttributeNames())if(t.endsWith(h)){const i=v[a++],s=r.getAttribute(t).split(o),e=/([.?@])?(.*)/.exec(i);d.push({type:1,index:l,name:e[2],strings:s,ctor:"."===e[1]?I:"?"===e[1]?L:"@"===e[1]?z:H}),r.removeAttribute(t)}else t.startsWith(o)&&(d.push({type:6,index:l}),r.removeAttribute(t));if(y.test(r.tagName)){const t=r.textContent.split(o),i=t.length-1;if(i>0){r.textContent=s?s.emptyScript:"";for(let s=0;s<i;s++)r.append(t[s],c()),P.nextNode(),d.push({type:2,index:++l});r.append(t[i],c())}}}else if(8===r.nodeType)if(r.data===n)d.push({type:2,index:l});else{let t=-1;for(;-1!==(t=r.data.indexOf(o,t+1));)d.push({type:7,index:l}),t+=o.length-1}l++}}static createElement(t,i){const s=l.createElement("template");return s.innerHTML=t,s}}function M(t,i,s=t,e){if(i===E)return i;let h=void 0!==e?s._$Co?.[e]:s._$Cl;const o=a(i)?void 0:i._$litDirective$;return h?.constructor!==o&&(h?._$AO?.(!1),void 0===o?h=void 0:(h=new o(t),h._$AT(t,s,e)),void 0!==e?(s._$Co??=[])[e]=h:s._$Cl=h),void 0!==h&&(i=M(t,h._$AS(t,i.values),h,e)),i}class R{constructor(t,i){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:i},parts:s}=this._$AD,e=(t?.creationScope??l).importNode(i,!0);P.currentNode=e;let h=P.nextNode(),o=0,n=0,r=s[0];for(;void 0!==r;){if(o===r.index){let i;2===r.type?i=new k(h,h.nextSibling,this,t):1===r.type?i=new r.ctor(h,r.name,r.strings,this,t):6===r.type&&(i=new Z(h,this,t)),this._$AV.push(i),r=s[++n]}o!==r?.index&&(h=P.nextNode(),o++)}return P.currentNode=l,e}p(t){let i=0;for(const s of this._$AV)void 0!==s&&(void 0!==s.strings?(s._$AI(t,s,i),i+=s.strings.length-2):s._$AI(t[i])),i++}}class k{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,i,s,e){this.type=2,this._$AH=A,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=s,this.options=e,this._$Cv=e?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const i=this._$AM;return void 0!==i&&11===t?.nodeType&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=M(this,t,i),a(t)?t===A||null==t||""===t?(this._$AH!==A&&this._$AR(),this._$AH=A):t!==this._$AH&&t!==E&&this._(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):d(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==A&&a(this._$AH)?this._$AA.nextSibling.data=t:this.T(l.createTextNode(t)),this._$AH=t}$(t){const{values:i,_$litType$:s}=t,e="number"==typeof s?this._$AC(t):(void 0===s.el&&(s.el=S.createElement(V(s.h,s.h[0]),this.options)),s);if(this._$AH?._$AD===e)this._$AH.p(i);else{const t=new R(e,this),s=t.u(this.options);t.p(i),this.T(s),this._$AH=t}}_$AC(t){let i=C.get(t.strings);return void 0===i&&C.set(t.strings,i=new S(t)),i}k(t){u(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let s,e=0;for(const h of t)e===i.length?i.push(s=new k(this.O(c()),this.O(c()),this,this.options)):s=i[e],s._$AI(h),e++;e<i.length&&(this._$AR(s&&s._$AB.nextSibling,e),i.length=e)}_$AR(t=this._$AA.nextSibling,s){for(this._$AP?.(!1,!0,s);t!==this._$AB;){const s=i(t).nextSibling;i(t).remove(),t=s}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t))}}class H{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,i,s,e,h){this.type=1,this._$AH=A,this._$AN=void 0,this.element=t,this.name=i,this._$AM=e,this.options=h,s.length>2||""!==s[0]||""!==s[1]?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=A}_$AI(t,i=this,s,e){const h=this.strings;let o=!1;if(void 0===h)t=M(this,t,i,0),o=!a(t)||t!==this._$AH&&t!==E,o&&(this._$AH=t);else{const e=t;let n,r;for(t=h[0],n=0;n<h.length-1;n++)r=M(this,e[s+n],i,n),r===E&&(r=this._$AH[n]),o||=!a(r)||r!==this._$AH[n],r===A?t=A:t!==A&&(t+=(r??"")+h[n+1]),this._$AH[n]=r}o&&!e&&this.j(t)}j(t){t===A?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class I extends H{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===A?void 0:t}}class L extends H{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==A)}}class z extends H{constructor(t,i,s,e,h){super(t,i,s,e,h),this.type=5}_$AI(t,i=this){if((t=M(this,t,i,0)??A)===E)return;const s=this._$AH,e=t===A&&s!==A||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,h=t!==A&&(s===A||e);e&&this.element.removeEventListener(this.name,this,s),h&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}}class Z{constructor(t,i,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=i,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(t){M(this,t)}}const j={M:h,P:o,A:n,C:1,L:N,R,D:d,V:M,I:k,H,N:L,U:z,B:I,F:Z},B=t.litHtmlPolyfillSupport;B?.(S,k),(t.litHtmlVersions??=[]).push("3.3.2");const D=(t,i,s)=>{const e=s?.renderBefore??i;let h=e._$litPart$;if(void 0===h){const t=s?.renderBefore??null;e._$litPart$=h=new k(i.insertBefore(c(),t),t,void 0,s??{})}return h._$AI(t),h};
21056
- //# sourceMappingURL=lit-html.js.map
21057
-
21058
-
21059
- /***/ },
21060
-
21061
- /***/ 6161
21062
- (__unused_webpack___webpack_module__, __nested_webpack_exports__, __nested_webpack_require_30427__) {
21063
-
21064
- /* harmony export */ __nested_webpack_require_30427__.d(__nested_webpack_exports__, {
21065
- /* harmony export */ AH: () => (/* reexport safe */ lit_element_lit_element_js__WEBPACK_IMPORTED_MODULE_2__.AH),
21066
- /* harmony export */ WF: () => (/* reexport safe */ lit_element_lit_element_js__WEBPACK_IMPORTED_MODULE_2__.WF),
21067
- /* harmony export */ qy: () => (/* reexport safe */ lit_element_lit_element_js__WEBPACK_IMPORTED_MODULE_2__.qy),
21068
- /* harmony export */ s6: () => (/* reexport safe */ lit_element_lit_element_js__WEBPACK_IMPORTED_MODULE_2__.s6)
21069
- /* harmony export */ });
21070
- /* harmony import */ var _lit_reactive_element__WEBPACK_IMPORTED_MODULE_0__ = __nested_webpack_require_30427__(8760);
21071
- /* harmony import */ var lit_html__WEBPACK_IMPORTED_MODULE_1__ = __nested_webpack_require_30427__(6752);
21072
- /* harmony import */ var lit_element_lit_element_js__WEBPACK_IMPORTED_MODULE_2__ = __nested_webpack_require_30427__(5228);
20959
+ }
20960
+ };
20961
+ //#endregion
21073
20962
 
21074
- //# sourceMappingURL=index.js.map
21075
20963
 
20964
+ //# sourceMappingURL=Button.esm.js.map
20965
+ ;// ./node_modules/solid-ui/dist/v2/components/actions/button/index.esm.js
21076
20966
 
21077
- /***/ }
20967
+ //#region src/v2/components/actions/button/index.ts
20968
+ var index_esm_t = "solid-ui-button";
20969
+ customElements.get(index_esm_t) || customElements.define(index_esm_t, Button_esm_i);
20970
+ //#endregion
21078
20971
 
21079
- /******/ });
21080
- /************************************************************************/
21081
- /******/ // The module cache
21082
- /******/ var __webpack_module_cache__ = {};
21083
- /******/
21084
- /******/ // The require function
21085
- /******/ function __nested_webpack_require_31567__(moduleId) {
21086
- /******/ // Check if module is in cache
21087
- /******/ var cachedModule = __webpack_module_cache__[moduleId];
21088
- /******/ if (cachedModule !== undefined) {
21089
- /******/ return cachedModule.exports;
21090
- /******/ }
21091
- /******/ // Create a new module (and put it into the cache)
21092
- /******/ var module = __webpack_module_cache__[moduleId] = {
21093
- /******/ // no module.id needed
21094
- /******/ // no module.loaded needed
21095
- /******/ exports: {}
21096
- /******/ };
21097
- /******/
21098
- /******/ // Execute the module function
21099
- /******/ __webpack_modules__[moduleId](module, module.exports, __nested_webpack_require_31567__);
21100
- /******/
21101
- /******/ // Return the exports of the module
21102
- /******/ return module.exports;
21103
- /******/ }
21104
- /******/
21105
- /************************************************************************/
21106
- /******/ /* webpack/runtime/define property getters */
21107
- /******/ (() => {
21108
- /******/ // define getter functions for harmony exports
21109
- /******/ __nested_webpack_require_31567__.d = (exports, definition) => {
21110
- /******/ for(var key in definition) {
21111
- /******/ if(__nested_webpack_require_31567__.o(definition, key) && !__nested_webpack_require_31567__.o(exports, key)) {
21112
- /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
21113
- /******/ }
21114
- /******/ }
21115
- /******/ };
21116
- /******/ })();
21117
- /******/
21118
- /******/ /* webpack/runtime/hasOwnProperty shorthand */
21119
- /******/ (() => {
21120
- /******/ __nested_webpack_require_31567__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
21121
- /******/ })();
21122
- /******/
21123
- /************************************************************************/
21124
- var __nested_webpack_exports__ = {};
21125
- /* harmony export */ __nested_webpack_require_31567__.d(__nested_webpack_exports__, {
21126
- /* harmony export */ $: () => (/* reexport safe */ _Button__WEBPACK_IMPORTED_MODULE_0__.$)
21127
- /* harmony export */ });
21128
- /* harmony import */ var _Button__WEBPACK_IMPORTED_MODULE_0__ = __nested_webpack_require_31567__(8415);
20972
+ //# sourceMappingURL=index.esm.js.map
20973
+ ;// ./node_modules/solid-ui/dist/components/button/index.esm.js
21129
20974
 
21130
20975
 
21131
- const BUTTON_TAG_NAME = 'solid-ui-button';
21132
- if (!customElements.get(BUTTON_TAG_NAME)) {
21133
- customElements.define(BUTTON_TAG_NAME, _Button__WEBPACK_IMPORTED_MODULE_0__/* .Button */ .$);
21134
- }
21135
- const __webpack_exports__Button = __nested_webpack_exports__.$;
21136
20976
 
21137
20977
 
21138
- //# sourceMappingURL=index.esm.js.map
21139
20978
  // EXTERNAL MODULE: ./node_modules/css-loader/dist/cjs.js!./src/ui/dialog.css
21140
20979
  var dialog = __webpack_require__(5250);
21141
20980
  ;// ./src/ui/dialog.css
@@ -21674,85 +21513,246 @@ function openInputDialog(options) {
21674
21513
  });
21675
21514
  }
21676
21515
 
21677
- ;// ./node_modules/solid-ui/dist/components/select/index.esm.js
21678
- /******/ var index_esm_webpack_modules_ = ({
21516
+ ;// ./node_modules/solid-ui/dist/v2/components/forms/shared/downArrow.esm.js
21679
21517
 
21680
- /***/ 6451
21681
- (__unused_webpack_module, __nested_webpack_exports__, __nested_webpack_require_97__) {
21518
+ //#region src/v2/components/forms/shared/downArrow.ts
21519
+ var downArrow_esm_t = b`
21520
+ <svg xmlns="http://www.w3.org/2000/svg"
21521
+ viewBox="0 0 12 7"
21522
+ fill="none"
21523
+ >
21524
+ <path d="M0.679688 0.678955L5.50729 5.50656L10.3349 0.678955" stroke="#6A7282" stroke-width="1.35776" stroke-linecap="round" stroke-linejoin="round"/>
21525
+ </svg>
21526
+ `;
21527
+ //#endregion
21682
21528
 
21683
- /* harmony export */ __nested_webpack_require_97__.d(__nested_webpack_exports__, {
21684
- /* harmony export */ l: () => (/* binding */ Select)
21685
- /* harmony export */ });
21686
- /* harmony import */ var lit__WEBPACK_IMPORTED_MODULE_0__ = __nested_webpack_require_97__(6161);
21687
- /* harmony import */ var lit_html_js__WEBPACK_IMPORTED_MODULE_1__ = __nested_webpack_require_97__(3380);
21688
- /* harmony import */ var _shared_downArrow__WEBPACK_IMPORTED_MODULE_2__ = __nested_webpack_require_97__(9239);
21689
- /* harmony import */ var _shared_listboxTemplate__WEBPACK_IMPORTED_MODULE_3__ = __nested_webpack_require_97__(3337);
21690
- /* harmony import */ var _shared_listboxStyles__WEBPACK_IMPORTED_MODULE_4__ = __nested_webpack_require_97__(6457);
21691
- /* harmony import */ var _shared_keyboard__WEBPACK_IMPORTED_MODULE_5__ = __nested_webpack_require_97__(9757);
21692
21529
 
21530
+ //# sourceMappingURL=downArrow.esm.js.map
21531
+ ;// ./node_modules/solid-ui/dist/v2/components/forms/shared/listboxStyles.esm.js
21693
21532
 
21533
+ //#region src/v2/components/forms/shared/listboxStyles.ts
21534
+ var listboxStyles_esm_t = css_tag_i`
21535
+ :host { /* default theme */
21536
+ --input-background: var(--color-background, #F8F9FB);
21537
+ --item-text: var(--color-text-heading, #000000);
21538
+ --item-selected-text: var(--color-primary, #7c4dff);
21539
+ --item-hover-background: var(--color-header-menu-item-hover, #e6dcff);
21540
+ --item-selected-background: var(--color-header-menu-item-selected, #cbb9ff);
21541
+ --listbox-z-index: 1;
21542
+ }
21694
21543
 
21544
+ :host([theme='dark']) {
21545
+ --input-background: var(--color-background, #1A1A1A);
21546
+ --item-text: var(--color-text-heading, #F8F9FB);
21547
+ --item-selected-text: var(--color-primary, #7c4dff);
21548
+ --item-hover-background: var(--color-header-menu-item-hover, #e6dcff);
21549
+ --item-selected-background: var(--color-header-menu-item-selected, #cbb9ff);
21550
+ --listbox-z-index: 1;
21551
+ }
21695
21552
 
21553
+ .listbox {
21554
+ position: relative;
21555
+ top: 0;
21556
+ left: 0;
21557
+ right: 0;
21558
+ display: flex;
21559
+ flex-direction: column;
21560
+ gap: 0.0625rem;
21561
+ margin: 0;
21562
+ padding: 0;
21563
+ list-style: none;
21564
+ border: none;
21565
+ border-radius: inherit;
21566
+ background: var(--input-background);
21567
+ background-color: var(--input-background);
21568
+ opacity: 1;
21569
+ overflow: hidden;
21570
+ padding: 0.25rem;
21571
+ z-index: var(--listbox-z-index);
21572
+ box-shadow: 0 4px 12px rgba(124, 77, 255, 0.12);
21573
+ }
21696
21574
 
21575
+ .listbox-item {
21576
+ display: flex;
21577
+ align-items: center;
21578
+ gap: var(--spacing-2xs, 0.625rem);
21579
+ width: 100%;
21580
+ min-height: calc(var(--font-size-sm, 0.875rem) + 1rem);
21581
+ padding: 0.5rem var(--spacing-xs, 0.75rem);
21582
+ border: none;
21583
+ border-radius: var(--border-radius-sm, 0.2rem);
21584
+ background: transparent;
21585
+ color: var(--item-text);
21586
+ cursor: pointer;
21587
+ font: inherit;
21588
+ font-size: var(--font-size-sm, 0.875rem);
21589
+ font-weight: var(--font-weight-normal, 400);
21590
+ line-height: normal;
21591
+ text-align: left;
21592
+ text-decoration: none;
21593
+ box-sizing: border-box;
21594
+ }
21697
21595
 
21596
+ .listbox-item:hover {
21597
+ background: var(--item-hover-background);
21598
+ border-radius: var(--border-radius-sm, 0.2rem);
21599
+ }
21698
21600
 
21699
- /* The following keyboard navigation and ARIA support for Select
21700
- were generated by AI Model: GPT-5.4 */
21701
- /* Prompt: can you wire up the keyboard interactions and aria attributes for Select */
21702
- class Select extends lit__WEBPACK_IMPORTED_MODULE_0__/* .LitElement */ .WF {
21703
- static _nextId = 0;
21704
- _popupPortalHost = null;
21705
- _popupPortalRoot = null;
21706
- _popupPortalContainer = null;
21707
- _handleDocumentPointerDown = event => {
21708
- const eventTarget = event.target;
21709
- if (!this._popupOpen || !(eventTarget instanceof Node)) {
21710
- return;
21601
+ .listbox-item:focus {
21602
+ background: var(--item-hover-background);
21603
+ border-radius: var(--border-radius-sm, 0.2rem);
21711
21604
  }
21712
- const eventPath = 'composedPath' in event ? event.composedPath() : [];
21713
- if (eventPath.includes(this)) {
21714
- return;
21605
+
21606
+ .listbox-item-active {
21607
+ background: var(--item-selected-background);
21608
+ color: var(--item-selected-text);
21609
+ border-radius: var(--border-radius-sm, 0.2rem);
21610
+ outline: none;
21715
21611
  }
21716
- if (this._popupPortalHost && eventPath.includes(this._popupPortalHost) || this._popupPortalRoot && eventPath.includes(this._popupPortalRoot)) {
21717
- return;
21612
+
21613
+ .listbox-item-active:hover,
21614
+ .listbox-item-active:focus {
21615
+ color: var(--item-text);
21718
21616
  }
21719
- if (!this.contains(eventTarget)) {
21720
- this._closePopup();
21617
+
21618
+ .listbox-item-disabled {
21619
+ opacity: 0.55;
21620
+ cursor: not-allowed;
21721
21621
  }
21722
- };
21723
- _handleViewportChange = () => {
21724
- if (!this._popupOpen) return;
21725
- this._updatePopupPosition();
21726
- };
21727
- static properties = {
21728
- label: {
21729
- type: String,
21730
- reflect: true
21731
- },
21732
- theme: {
21733
- type: String,
21734
- reflect: true
21735
- },
21736
- options: {
21737
- type: Array,
21738
- attribute: false
21739
- },
21740
- layout: {
21741
- type: String,
21742
- reflect: true
21743
- },
21744
- value: {
21745
- type: String,
21746
- reflect: true
21747
- },
21748
- _popupOpen: {
21749
- state: true
21750
- },
21751
- _activeIndex: {
21752
- state: true
21622
+
21623
+ .listbox-item-disabled:hover {
21624
+ background: transparent;
21625
+ border-radius: 0;
21753
21626
  }
21754
- };
21755
- static styles = [_shared_listboxStyles__WEBPACK_IMPORTED_MODULE_4__/* .listboxStyles */ .S, (0,lit__WEBPACK_IMPORTED_MODULE_0__/* .css */ .AH)`
21627
+ `;
21628
+ //#endregion
21629
+
21630
+
21631
+ //# sourceMappingURL=listboxStyles.esm.js.map
21632
+ ;// ./node_modules/solid-ui/dist/v2/components/forms/shared/keyboard.esm.js
21633
+ //#region src/v2/components/forms/shared/keyboard.ts
21634
+ function keyboard_esm_e(e, t, n) {
21635
+ if (!t.length || t.every((e) => e.disabled)) return -1;
21636
+ let r = t.length, i = e;
21637
+ do
21638
+ i = (i + n + r) % r;
21639
+ while (t[i].disabled);
21640
+ return i;
21641
+ }
21642
+ function keyboard_esm_t(t) {
21643
+ return t.length ? keyboard_esm_e(-1, t, 1) : -1;
21644
+ }
21645
+ function keyboard_esm_n(t) {
21646
+ return t.length ? keyboard_esm_e(t.length, t, -1) : -1;
21647
+ }
21648
+ function keyboard_esm_r(e, t) {
21649
+ return t === void 0 ? -1 : e.findIndex((e) => e.value === t);
21650
+ }
21651
+ function keyboard_esm_i(e) {
21652
+ switch (e) {
21653
+ case "ArrowDown": return "next";
21654
+ case "ArrowUp": return "previous";
21655
+ case "Home": return "first";
21656
+ case "End": return "last";
21657
+ case "Enter":
21658
+ case " ": return "select";
21659
+ case "Escape": return "close";
21660
+ default: return "none";
21661
+ }
21662
+ }
21663
+ //#endregion
21664
+
21665
+
21666
+ //# sourceMappingURL=keyboard.esm.js.map
21667
+ ;// ./node_modules/solid-ui/dist/v2/components/forms/shared/listboxTemplate.esm.js
21668
+
21669
+ //#region src/v2/components/forms/shared/listboxTemplate.ts
21670
+ function listboxTemplate_esm_t(t) {
21671
+ let { options: n, selectedOption: r, activeOption: i, listboxId: a, getOptionId: o, onOptionSelect: s } = t;
21672
+ return b`
21673
+ <ul
21674
+ class="listbox"
21675
+ id="${a ?? ""}"
21676
+ part="listbox"
21677
+ role="listbox"
21678
+ aria-orientation="vertical"
21679
+ >
21680
+ ${n.map((t, n) => {
21681
+ let a = t.value === r?.value, c = t.value === i?.value;
21682
+ return b`
21683
+ <li
21684
+ id="${o?.(t, n) ?? ""}"
21685
+ class="listbox-item${a ? " listbox-item-selected" : ""}${c ? " listbox-item-active" : ""}${t.disabled ? " listbox-item-disabled" : ""}"
21686
+ part="option${a ? " selected-option" : ""}${c ? " active-option" : ""}${t.disabled ? " disabled-option" : ""}"
21687
+ role="option"
21688
+ aria-selected="${a}"
21689
+ aria-disabled="${t.disabled ? "true" : "false"}"
21690
+ @click="${() => {
21691
+ t.disabled || s(t);
21692
+ }}"
21693
+ >
21694
+ ${t.label}
21695
+ </li>
21696
+ `;
21697
+ })}
21698
+ </ul>
21699
+ `;
21700
+ }
21701
+ //#endregion
21702
+
21703
+
21704
+ //# sourceMappingURL=listboxTemplate.esm.js.map
21705
+ ;// ./node_modules/lit/html.js
21706
+
21707
+ //# sourceMappingURL=html.js.map
21708
+
21709
+ ;// ./node_modules/solid-ui/dist/v2/components/forms/select/Select.esm.js
21710
+
21711
+
21712
+
21713
+
21714
+
21715
+
21716
+ //#region src/v2/components/forms/select/Select.ts
21717
+ var Select_esm_f = class f extends lit_element_i {
21718
+ static _nextId = 0;
21719
+ _popupPortalHost = null;
21720
+ _popupPortalRoot = null;
21721
+ _popupPortalContainer = null;
21722
+ _handleDocumentPointerDown = (e) => {
21723
+ let t = e.target;
21724
+ if (!this._popupOpen || !(t instanceof Node)) return;
21725
+ let n = "composedPath" in e ? e.composedPath() : [];
21726
+ n.includes(this) || this._popupPortalHost && n.includes(this._popupPortalHost) || this._popupPortalRoot && n.includes(this._popupPortalRoot) || this.contains(t) || this._closePopup();
21727
+ };
21728
+ _handleViewportChange = () => {
21729
+ this._popupOpen && this._updatePopupPosition();
21730
+ };
21731
+ static properties = {
21732
+ label: {
21733
+ type: String,
21734
+ reflect: !0
21735
+ },
21736
+ theme: {
21737
+ type: String,
21738
+ reflect: !0
21739
+ },
21740
+ options: {
21741
+ type: Array,
21742
+ attribute: !1
21743
+ },
21744
+ layout: {
21745
+ type: String,
21746
+ reflect: !0
21747
+ },
21748
+ value: {
21749
+ type: String,
21750
+ reflect: !0
21751
+ },
21752
+ _popupOpen: { state: !0 },
21753
+ _activeIndex: { state: !0 }
21754
+ };
21755
+ static styles = [listboxStyles_esm_t, css_tag_i`
21756
21756
  :host {
21757
21757
  /* default theme */
21758
21758
  display: block;
@@ -21941,223 +21941,129 @@ class Select extends lit__WEBPACK_IMPORTED_MODULE_0__/* .LitElement */ .WF {
21941
21941
  z-index: var(--select-popup-z-index);
21942
21942
  }
21943
21943
  `];
21944
- _listboxId = `solid-ui-select-listbox-${Select._nextId++}`;
21945
- constructor() {
21946
- super();
21947
- this.label = 'Select an option';
21948
- this.theme = 'light';
21949
- this.options = [];
21950
- this.layout = 'desktop';
21951
- this.value = '';
21952
- this._popupOpen = false;
21953
- this._activeIndex = -1;
21954
- }
21955
- connectedCallback() {
21956
- super.connectedCallback();
21957
- document.addEventListener('pointerdown', this._handleDocumentPointerDown);
21958
- window.addEventListener('resize', this._handleViewportChange);
21959
- window.addEventListener('scroll', this._handleViewportChange, true);
21960
- }
21961
- disconnectedCallback() {
21962
- this._detachPopupPortal();
21963
- document.removeEventListener('pointerdown', this._handleDocumentPointerDown);
21964
- window.removeEventListener('resize', this._handleViewportChange);
21965
- window.removeEventListener('scroll', this._handleViewportChange, true);
21966
- super.disconnectedCallback();
21967
- }
21968
- updated() {
21969
- this.toggleAttribute('popup-open', this._popupOpen);
21970
- if (this._popupOpen) {
21971
- this._updatePopupPosition();
21972
- if (this._popupPortalRoot) {
21973
- (0,lit_html_js__WEBPACK_IMPORTED_MODULE_1__/* .render */ .XX)(this._renderPopup(), this._popupPortalRoot);
21974
- }
21975
- } else if (this._popupPortalRoot) {
21976
- (0,lit_html_js__WEBPACK_IMPORTED_MODULE_1__/* .render */ .XX)(null, this._popupPortalRoot);
21977
- }
21978
- }
21979
- _getPopupPortalContainer() {
21980
- return this.closest('dialog[open]') || document.body;
21981
- }
21982
- _ensurePopupPortal() {
21983
- const nextContainer = this._getPopupPortalContainer();
21984
- if (this._popupPortalHost && this._popupPortalRoot && this._popupPortalContainer === nextContainer) {
21985
- return;
21986
- }
21987
- this._detachPopupPortal();
21988
- this._popupPortalHost = document.createElement('div');
21989
- this._popupPortalHost.setAttribute('data-solid-ui-select-portal', '');
21990
- this._popupPortalHost.style.position = 'fixed';
21991
- this._popupPortalHost.style.inset = '0 auto auto 0';
21992
- this._popupPortalHost.style.zIndex = '2147483647';
21993
- this._popupPortalHost.style.pointerEvents = 'none';
21994
- this._popupPortalHost.style.boxSizing = 'border-box';
21995
- this._popupPortalRoot = this._popupPortalHost.attachShadow({
21996
- mode: 'open'
21997
- });
21998
- const styleSheets = (Array.isArray(Select.styles) ? Select.styles : [Select.styles]).map(style => style?.styleSheet).filter(styleSheet => Boolean(styleSheet));
21999
- if (styleSheets.length > 0) {
22000
- this._popupPortalRoot.adoptedStyleSheets = styleSheets;
22001
- }
22002
- nextContainer.appendChild(this._popupPortalHost);
22003
- this._popupPortalContainer = nextContainer;
22004
- }
22005
- _detachPopupPortal() {
22006
- if (this._popupPortalRoot) {
22007
- (0,lit_html_js__WEBPACK_IMPORTED_MODULE_1__/* .render */ .XX)(null, this._popupPortalRoot);
22008
- }
22009
- if (this._popupPortalHost?.parentNode) {
22010
- this._popupPortalHost.parentNode.removeChild(this._popupPortalHost);
22011
- }
22012
- this._popupPortalHost = null;
22013
- this._popupPortalRoot = null;
22014
- this._popupPortalContainer = null;
22015
- }
22016
- _updatePopupPosition() {
22017
- this._ensurePopupPortal();
22018
- const rect = this.getBoundingClientRect();
22019
- const maxHeight = Math.min(288, Math.max(120, window.innerHeight - rect.bottom - 12));
22020
- if (this._popupPortalHost) {
22021
- this._popupPortalHost.style.top = `${Math.round(rect.bottom + 2)}px`;
22022
- this._popupPortalHost.style.left = `${Math.round(rect.left)}px`;
22023
- this._popupPortalHost.style.width = `${Math.round(rect.width)}px`;
22024
- this._popupPortalHost.style.maxHeight = `${Math.round(maxHeight)}px`;
22025
- this._popupPortalHost.style.height = '0px';
22026
- }
22027
- }
22028
- _closePopup() {
22029
- this._popupOpen = false;
22030
- this._activeIndex = -1;
22031
- if (this._popupPortalRoot) {
22032
- (0,lit_html_js__WEBPACK_IMPORTED_MODULE_1__/* .render */ .XX)(null, this._popupPortalRoot);
22033
- }
22034
- }
22035
- _getSelectedIndex() {
22036
- return (0,_shared_keyboard__WEBPACK_IMPORTED_MODULE_5__/* .findOptionIndexByValue */ .Dh)(this.options, this.value);
22037
- }
22038
- _getSelectedOption() {
22039
- const selectedIndex = this._getSelectedIndex();
22040
- if (selectedIndex >= 0) {
22041
- return this.options[selectedIndex];
22042
- }
22043
- return this.options[0];
22044
- }
22045
- _getDisplayedOptions() {
22046
- const selectedOption = this._getSelectedOption();
22047
- if (!selectedOption) {
22048
- return this.options;
22049
- }
22050
- return [selectedOption, ...this.options.filter(option => option.value !== selectedOption.value)];
22051
- }
22052
- _getActiveOption() {
22053
- const popupOptions = this._getDisplayedOptions();
22054
- if (this._activeIndex < 0) {
22055
- return undefined;
22056
- }
22057
- return popupOptions[this._activeIndex];
22058
- }
22059
- _selectValueFromDropdown(uri) {
22060
- this.value = uri;
22061
- this.dispatchEvent(new CustomEvent('change', {
22062
- detail: {
22063
- value: uri
22064
- },
22065
- bubbles: true,
22066
- composed: true
22067
- }));
22068
- this._closePopup();
22069
- }
22070
- _selectActiveOption() {
22071
- const activeOption = this._getActiveOption();
22072
- if (activeOption && !activeOption.disabled) {
22073
- this._selectValueFromDropdown(activeOption.value);
22074
- }
22075
- }
22076
- _openPopup() {
22077
- const popupOptions = this._getDisplayedOptions();
22078
- this._popupOpen = true;
22079
- this._updatePopupPosition();
22080
- this._activeIndex = (0,_shared_keyboard__WEBPACK_IMPORTED_MODULE_5__/* .findOptionIndexByValue */ .Dh)(popupOptions, this.value);
22081
- if (this._activeIndex < 0) {
22082
- this._activeIndex = (0,_shared_keyboard__WEBPACK_IMPORTED_MODULE_5__/* .getFirstEnabledIndex */ .AZ)(popupOptions);
22083
- }
22084
- }
22085
- _handleTriggerKeydown(event) {
22086
- const popupOptions = this._getDisplayedOptions();
22087
- const action = (0,_shared_keyboard__WEBPACK_IMPORTED_MODULE_5__/* .getListboxActionFromKey */ .Hf)(event.key);
22088
- if (action === 'none') {
22089
- return;
22090
- }
22091
- event.preventDefault();
22092
- switch (action) {
22093
- case 'close':
22094
- this._closePopup();
22095
- break;
22096
- case 'first':
22097
- if (!this._popupOpen) {
22098
- this._openPopup();
22099
- }
22100
- this._activeIndex = (0,_shared_keyboard__WEBPACK_IMPORTED_MODULE_5__/* .getFirstEnabledIndex */ .AZ)(popupOptions);
22101
- break;
22102
- case 'last':
22103
- if (!this._popupOpen) {
22104
- this._openPopup();
22105
- }
22106
- this._activeIndex = (0,_shared_keyboard__WEBPACK_IMPORTED_MODULE_5__/* .getLastEnabledIndex */ .mY)(popupOptions);
22107
- break;
22108
- case 'next':
22109
- if (!this._popupOpen) {
22110
- this._openPopup();
22111
- break;
22112
- }
22113
- this._activeIndex = (0,_shared_keyboard__WEBPACK_IMPORTED_MODULE_5__/* .getNextEnabledIndex */ .Xx)(this._activeIndex, popupOptions, 1);
22114
- break;
22115
- case 'previous':
22116
- if (!this._popupOpen) {
22117
- this._openPopup();
22118
- break;
22119
- }
22120
- this._activeIndex = (0,_shared_keyboard__WEBPACK_IMPORTED_MODULE_5__/* .getNextEnabledIndex */ .Xx)(this._activeIndex, popupOptions, -1);
22121
- break;
22122
- case 'select':
22123
- if (!this._popupOpen) {
22124
- this._openPopup();
22125
- break;
22126
- }
22127
- this._selectActiveOption();
22128
- break;
22129
- default:
22130
- break;
22131
- }
22132
- }
22133
- _getOptionId(option, index) {
22134
- return `${this._listboxId}-option-${index}-${option.value}`;
22135
- }
22136
- _renderPopup() {
22137
- const popupOptions = this._getDisplayedOptions();
22138
- const selectedOption = this._getSelectedOption();
22139
- const activeOption = this._getActiveOption();
22140
- return (0,lit__WEBPACK_IMPORTED_MODULE_0__/* .html */ .qy)`
21944
+ _listboxId = `solid-ui-select-listbox-${f._nextId++}`;
21945
+ constructor() {
21946
+ super(), this.label = "Select an option", this.theme = "light", this.options = [], this.layout = "desktop", this.value = "", this._popupOpen = !1, this._activeIndex = -1;
21947
+ }
21948
+ connectedCallback() {
21949
+ super.connectedCallback(), document.addEventListener("pointerdown", this._handleDocumentPointerDown), window.addEventListener("resize", this._handleViewportChange), window.addEventListener("scroll", this._handleViewportChange, !0);
21950
+ }
21951
+ disconnectedCallback() {
21952
+ this._detachPopupPortal(), document.removeEventListener("pointerdown", this._handleDocumentPointerDown), window.removeEventListener("resize", this._handleViewportChange), window.removeEventListener("scroll", this._handleViewportChange, !0), super.disconnectedCallback();
21953
+ }
21954
+ updated() {
21955
+ this.toggleAttribute("popup-open", this._popupOpen), this._popupOpen ? (this._updatePopupPosition(), this._popupPortalRoot && D(this._renderPopup(), this._popupPortalRoot)) : this._popupPortalRoot && D(null, this._popupPortalRoot);
21956
+ }
21957
+ _getPopupPortalContainer() {
21958
+ return this.closest("dialog[open]") || document.body;
21959
+ }
21960
+ _ensurePopupPortal() {
21961
+ let e = this._getPopupPortalContainer();
21962
+ if (this._popupPortalHost && this._popupPortalRoot && this._popupPortalContainer === e) return;
21963
+ this._detachPopupPortal(), this._popupPortalHost = document.createElement("div"), this._popupPortalHost.setAttribute("data-solid-ui-select-portal", ""), this._popupPortalHost.style.position = "fixed", this._popupPortalHost.style.inset = "0 auto auto 0", this._popupPortalHost.style.zIndex = "2147483647", this._popupPortalHost.style.pointerEvents = "none", this._popupPortalHost.style.boxSizing = "border-box", this._popupPortalRoot = this._popupPortalHost.attachShadow({ mode: "open" });
21964
+ let t = (Array.isArray(f.styles) ? f.styles : [f.styles]).map((e) => e?.styleSheet).filter((e) => !!e);
21965
+ t.length > 0 && (this._popupPortalRoot.adoptedStyleSheets = t), e.appendChild(this._popupPortalHost), this._popupPortalContainer = e;
21966
+ }
21967
+ _detachPopupPortal() {
21968
+ this._popupPortalRoot && D(null, this._popupPortalRoot), this._popupPortalHost?.parentNode && this._popupPortalHost.parentNode.removeChild(this._popupPortalHost), this._popupPortalHost = null, this._popupPortalRoot = null, this._popupPortalContainer = null;
21969
+ }
21970
+ _updatePopupPosition() {
21971
+ this._ensurePopupPortal();
21972
+ let e = this.getBoundingClientRect(), t = Math.min(288, Math.max(120, window.innerHeight - e.bottom - 12));
21973
+ this._popupPortalHost && (this._popupPortalHost.style.top = `${Math.round(e.bottom + 2)}px`, this._popupPortalHost.style.left = `${Math.round(e.left)}px`, this._popupPortalHost.style.width = `${Math.round(e.width)}px`, this._popupPortalHost.style.maxHeight = `${Math.round(t)}px`, this._popupPortalHost.style.height = "0px");
21974
+ }
21975
+ _closePopup() {
21976
+ this._popupOpen = !1, this._activeIndex = -1, this._popupPortalRoot && D(null, this._popupPortalRoot);
21977
+ }
21978
+ _getSelectedIndex() {
21979
+ return keyboard_esm_r(this.options, this.value);
21980
+ }
21981
+ _getSelectedOption() {
21982
+ let e = this._getSelectedIndex();
21983
+ return e >= 0 ? this.options[e] : this.options[0];
21984
+ }
21985
+ _getDisplayedOptions() {
21986
+ let e = this._getSelectedOption();
21987
+ return e ? [e, ...this.options.filter((t) => t.value !== e.value)] : this.options;
21988
+ }
21989
+ _getActiveOption() {
21990
+ let e = this._getDisplayedOptions();
21991
+ if (!(this._activeIndex < 0)) return e[this._activeIndex];
21992
+ }
21993
+ _selectValueFromDropdown(e) {
21994
+ this.value = e, this.dispatchEvent(new CustomEvent("change", {
21995
+ detail: { value: e },
21996
+ bubbles: !0,
21997
+ composed: !0
21998
+ })), this._closePopup();
21999
+ }
22000
+ _selectActiveOption() {
22001
+ let e = this._getActiveOption();
22002
+ e && !e.disabled && this._selectValueFromDropdown(e.value);
22003
+ }
22004
+ _openPopup() {
22005
+ let e = this._getDisplayedOptions();
22006
+ this._popupOpen = !0, this._updatePopupPosition(), this._activeIndex = keyboard_esm_r(e, this.value), this._activeIndex < 0 && (this._activeIndex = keyboard_esm_t(e));
22007
+ }
22008
+ _handleTriggerKeydown(e) {
22009
+ let t = this._getDisplayedOptions(), n = keyboard_esm_i(e.key);
22010
+ if (n !== "none") switch (e.preventDefault(), n) {
22011
+ case "close":
22012
+ this._closePopup();
22013
+ break;
22014
+ case "first":
22015
+ this._popupOpen || this._openPopup(), this._activeIndex = keyboard_esm_t(t);
22016
+ break;
22017
+ case "last":
22018
+ this._popupOpen || this._openPopup(), this._activeIndex = keyboard_esm_n(t);
22019
+ break;
22020
+ case "next":
22021
+ if (!this._popupOpen) {
22022
+ this._openPopup();
22023
+ break;
22024
+ }
22025
+ this._activeIndex = keyboard_esm_e(this._activeIndex, t, 1);
22026
+ break;
22027
+ case "previous":
22028
+ if (!this._popupOpen) {
22029
+ this._openPopup();
22030
+ break;
22031
+ }
22032
+ this._activeIndex = keyboard_esm_e(this._activeIndex, t, -1);
22033
+ break;
22034
+ case "select":
22035
+ if (!this._popupOpen) {
22036
+ this._openPopup();
22037
+ break;
22038
+ }
22039
+ this._selectActiveOption();
22040
+ break;
22041
+ default: break;
22042
+ }
22043
+ }
22044
+ _getOptionId(e, t) {
22045
+ return `${this._listboxId}-option-${t}-${e.value}`;
22046
+ }
22047
+ _renderPopup() {
22048
+ let e = this._getDisplayedOptions();
22049
+ return b`
22141
22050
  <div class="popup-box" part="popup-box" style="pointer-events: auto; max-height: inherit; overflow: auto;">
22142
22051
  <div class="select-options-section">
22143
- ${(0,_shared_listboxTemplate__WEBPACK_IMPORTED_MODULE_3__/* .renderListbox */ .M)({
22144
- selectedOption,
22145
- activeOption,
22146
- options: popupOptions,
22147
- listboxId: this._listboxId,
22148
- getOptionId: (option, index) => this._getOptionId(option, index),
22149
- onOptionSelect: option => this._selectValueFromDropdown(option.value)
22150
- })}
22052
+ ${listboxTemplate_esm_t({
22053
+ selectedOption: this._getSelectedOption(),
22054
+ activeOption: this._getActiveOption(),
22055
+ options: e,
22056
+ listboxId: this._listboxId,
22057
+ getOptionId: (e, t) => this._getOptionId(e, t),
22058
+ onOptionSelect: (e) => this._selectValueFromDropdown(e.value)
22059
+ })}
22151
22060
  </div>
22152
22061
  </div>
22153
22062
  `;
22154
- }
22155
- render() {
22156
- const selectedOption = this._getSelectedOption();
22157
- const activeOption = this._getActiveOption();
22158
- const triggerLabel = selectedOption?.label ?? this.label;
22159
- const activeDescendant = this._popupOpen && activeOption ? this._getOptionId(activeOption, this._activeIndex) : undefined;
22160
- return (0,lit__WEBPACK_IMPORTED_MODULE_0__/* .html */ .qy)`
22063
+ }
22064
+ render() {
22065
+ let t = this._getSelectedOption(), n = this._getActiveOption(), r = t?.label ?? this.label, i = this._popupOpen && n ? this._getOptionId(n, this._activeIndex) : void 0;
22066
+ return b`
22161
22067
  <div class="select-field-row">
22162
22068
  <button
22163
22069
  class="select-trigger"
@@ -22165,17 +22071,17 @@ class Select extends lit__WEBPACK_IMPORTED_MODULE_0__/* .LitElement */ .WF {
22165
22071
  aria-haspopup="listbox"
22166
22072
  aria-expanded="${this._popupOpen}"
22167
22073
  aria-controls="${this._listboxId}"
22168
- aria-activedescendant="${activeDescendant ?? ''}"
22074
+ aria-activedescendant="${i ?? ""}"
22169
22075
  part="select-trigger"
22170
22076
  @click="${() => this._popupOpen ? this._closePopup() : this._openPopup()}"
22171
22077
  @keydown="${this._handleTriggerKeydown}"
22172
22078
  >
22173
22079
  <span class="select-trigger-label" part="trigger-label"
22174
- >${triggerLabel}</span
22080
+ >${r}</span
22175
22081
  >
22176
22082
  <span class="select-trigger-toggle" part="trigger-toggle">
22177
22083
  <span class="select-trigger-icon" part="trigger-icon" aria-hidden="true"
22178
- >${_shared_downArrow__WEBPACK_IMPORTED_MODULE_2__/* .downArrowIcon */ .n}</span
22084
+ >${downArrow_esm_t}</span
22179
22085
  >
22180
22086
  </span>
22181
22087
  </button>
@@ -22184,536 +22090,130 @@ class Select extends lit__WEBPACK_IMPORTED_MODULE_0__/* .LitElement */ .WF {
22184
22090
  <div
22185
22091
  class="select-root"
22186
22092
  aria-label="Select a value"
22187
- @click="${e => {
22188
- if (e.target === e.currentTarget) this._closePopup();
22189
- }}"
22093
+ @click="${(e) => {
22094
+ e.target === e.currentTarget && this._closePopup();
22095
+ }}"
22190
22096
  ></div>
22191
22097
  `;
22192
- }
22193
- }
22098
+ }
22099
+ };
22100
+ //#endregion
22194
22101
 
22195
- /***/ },
22196
22102
 
22197
- /***/ 9239
22198
- (__unused_webpack_module, __nested_webpack_exports__, __nested_webpack_require_17816__) {
22103
+ //# sourceMappingURL=Select.esm.js.map
22104
+ ;// ./node_modules/solid-ui/dist/v2/components/forms/select/index.esm.js
22199
22105
 
22200
- /* harmony export */ __nested_webpack_require_17816__.d(__nested_webpack_exports__, {
22201
- /* harmony export */ n: () => (/* binding */ downArrowIcon)
22202
- /* harmony export */ });
22203
- /* harmony import */ var lit_html__WEBPACK_IMPORTED_MODULE_0__ = __nested_webpack_require_17816__(6752);
22106
+ //#region src/v2/components/forms/select/index.ts
22107
+ var select_index_esm_t = "solid-ui-select";
22108
+ customElements.get(select_index_esm_t) || customElements.define(select_index_esm_t, Select_esm_f);
22109
+ //#endregion
22204
22110
 
22205
- const downArrowIcon = (0,lit_html__WEBPACK_IMPORTED_MODULE_0__/* .html */ .qy)`
22206
- <svg xmlns="http://www.w3.org/2000/svg"
22207
- viewBox="0 0 12 7"
22208
- fill="none"
22209
- >
22210
- <path d="M0.679688 0.678955L5.50729 5.50656L10.3349 0.678955" stroke="#6A7282" stroke-width="1.35776" stroke-linecap="round" stroke-linejoin="round"/>
22211
- </svg>
22212
- `;
22111
+ //# sourceMappingURL=index.esm.js.map
22112
+ ;// ./node_modules/solid-ui/dist/components/select/index.esm.js
22213
22113
 
22214
- /***/ },
22215
22114
 
22216
- /***/ 9757
22217
- (__unused_webpack_module, __nested_webpack_exports__, __nested_webpack_require_18487__) {
22218
22115
 
22219
- /* harmony export */ __nested_webpack_require_18487__.d(__nested_webpack_exports__, {
22220
- /* harmony export */ AZ: () => (/* binding */ getFirstEnabledIndex),
22221
- /* harmony export */ Dh: () => (/* binding */ findOptionIndexByValue),
22222
- /* harmony export */ Hf: () => (/* binding */ getListboxActionFromKey),
22223
- /* harmony export */ Xx: () => (/* binding */ getNextEnabledIndex),
22224
- /* harmony export */ mY: () => (/* binding */ getLastEnabledIndex)
22225
- /* harmony export */ });
22226
- /* Move up or down, skip disabled options */
22227
- function getNextEnabledIndex(currentIndex, options, direction) {
22228
- if (!options.length) {
22229
- return -1;
22230
- }
22231
- if (options.every(option => option.disabled)) {
22232
- return -1;
22233
- }
22234
- const optionsCount = options.length;
22235
- let nextIndex = currentIndex;
22236
- do {
22237
- nextIndex = (nextIndex + direction + optionsCount) % optionsCount;
22238
- } while (options[nextIndex].disabled);
22239
- return nextIndex;
22240
- }
22241
-
22242
- /* Handle 'Home' and 'End' keys and initial highlight */
22243
- function getFirstEnabledIndex(options) {
22244
- if (!options.length) {
22245
- return -1;
22246
- }
22247
- return getNextEnabledIndex(-1, options, 1);
22248
- }
22249
- function getLastEnabledIndex(options) {
22250
- if (!options.length) {
22251
- return -1;
22252
- }
22253
- return getNextEnabledIndex(options.length, options, -1);
22254
- }
22255
-
22256
- /* Sync current value to active index */
22257
- function findOptionIndexByValue(options, value) {
22258
- if (value === undefined) {
22259
- return -1;
22260
- }
22261
- return options.findIndex(option => option.value === value);
22262
- }
22263
-
22264
- /* Map keyboard events to actions */
22265
- function getListboxActionFromKey(key) {
22266
- switch (key) {
22267
- case 'ArrowDown':
22268
- return 'next';
22269
- case 'ArrowUp':
22270
- return 'previous';
22271
- case 'Home':
22272
- return 'first';
22273
- case 'End':
22274
- return 'last';
22275
- case 'Enter':
22276
- case ' ':
22277
- return 'select';
22278
- case 'Escape':
22279
- return 'close';
22280
- default:
22281
- return 'none';
22282
- }
22283
- }
22284
22116
 
22285
- /***/ },
22117
+ // EXTERNAL MODULE: ./node_modules/css-loader/dist/cjs.js!./src/styles/EditDialogs.css
22118
+ var EditDialogs = __webpack_require__(5203);
22119
+ ;// ./src/styles/EditDialogs.css
22286
22120
 
22287
- /***/ 6457
22288
- (__unused_webpack_module, __nested_webpack_exports__, __nested_webpack_require_20398__) {
22121
+
22122
+
22123
+
22124
+
22125
+
22126
+
22127
+
22128
+
22129
+
22289
22130
 
22290
- /* harmony export */ __nested_webpack_require_20398__.d(__nested_webpack_exports__, {
22291
- /* harmony export */ S: () => (/* binding */ listboxStyles)
22292
- /* harmony export */ });
22293
- /* harmony import */ var lit__WEBPACK_IMPORTED_MODULE_0__ = __nested_webpack_require_20398__(6161);
22131
+ var EditDialogs_options = {};
22294
22132
 
22295
- const listboxStyles = (0,lit__WEBPACK_IMPORTED_MODULE_0__/* .css */ .AH)`
22296
- :host { /* default theme */
22297
- --input-background: var(--color-background, #F8F9FB);
22298
- --item-text: var(--color-text-heading, #000000);
22299
- --item-selected-text: var(--color-primary, #7c4dff);
22300
- --item-hover-background: var(--color-header-menu-item-hover, #e6dcff);
22301
- --item-selected-background: var(--color-header-menu-item-selected, #cbb9ff);
22302
- --listbox-z-index: 1;
22303
- }
22133
+ EditDialogs_options.styleTagTransform = (styleTagTransform_default());
22134
+ EditDialogs_options.setAttributes = (setAttributesWithoutAttributes_default());
22135
+ EditDialogs_options.insert = insertBySelector_default().bind(null, "head");
22136
+ EditDialogs_options.domAPI = (styleDomAPI_default());
22137
+ EditDialogs_options.insertStyleElement = (insertStyleElement_default());
22304
22138
 
22305
- :host([theme='dark']) {
22306
- --input-background: var(--color-background, #1A1A1A);
22307
- --item-text: var(--color-text-heading, #F8F9FB);
22308
- --item-selected-text: var(--color-primary, #7c4dff);
22309
- --item-hover-background: var(--color-header-menu-item-hover, #e6dcff);
22310
- --item-selected-background: var(--color-header-menu-item-selected, #cbb9ff);
22311
- --listbox-z-index: 1;
22312
- }
22139
+ var EditDialogs_update = injectStylesIntoStyleTag_default()(EditDialogs/* default */.A, EditDialogs_options);
22313
22140
 
22314
- .listbox {
22315
- position: relative;
22316
- top: 0;
22317
- left: 0;
22318
- right: 0;
22319
- display: flex;
22320
- flex-direction: column;
22321
- gap: 0.0625rem;
22322
- margin: 0;
22323
- padding: 0;
22324
- list-style: none;
22325
- border: none;
22326
- border-radius: inherit;
22327
- background: var(--input-background);
22328
- background-color: var(--input-background);
22329
- opacity: 1;
22330
- overflow: hidden;
22331
- padding: 0.25rem;
22332
- z-index: var(--listbox-z-index);
22333
- box-shadow: 0 4px 12px rgba(124, 77, 255, 0.12);
22334
- }
22335
22141
 
22336
- .listbox-item {
22337
- display: flex;
22338
- align-items: center;
22339
- gap: var(--spacing-2xs, 0.625rem);
22340
- width: 100%;
22341
- min-height: calc(var(--font-size-sm, 0.875rem) + 1rem);
22342
- padding: 0.5rem var(--spacing-xs, 0.75rem);
22343
- border: none;
22344
- border-radius: var(--border-radius-sm, 0.2rem);
22345
- background: transparent;
22346
- color: var(--item-text);
22347
- cursor: pointer;
22348
- font: inherit;
22349
- font-size: var(--font-size-sm, 0.875rem);
22350
- font-weight: var(--font-weight-normal, 400);
22351
- line-height: normal;
22352
- text-align: left;
22353
- text-decoration: none;
22354
- box-sizing: border-box;
22355
- }
22356
22142
 
22357
- .listbox-item:hover {
22358
- background: var(--item-hover-background);
22359
- border-radius: var(--border-radius-sm, 0.2rem);
22360
- }
22361
22143
 
22362
- .listbox-item:focus {
22363
- background: var(--item-hover-background);
22364
- border-radius: var(--border-radius-sm, 0.2rem);
22365
- }
22144
+ /* harmony default export */ const styles_EditDialogs = (EditDialogs/* default */.A && EditDialogs/* default */.A.locals ? EditDialogs/* default */.A.locals : undefined);
22366
22145
 
22367
- .listbox-item-active {
22368
- background: var(--item-selected-background);
22369
- color: var(--item-selected-text);
22370
- border-radius: var(--border-radius-sm, 0.2rem);
22371
- outline: none;
22372
- }
22146
+ // EXTERNAL MODULE: ./node_modules/css-loader/dist/cjs.js!./src/sections/contactInfo/ContactInfoEditDialog.css
22147
+ var ContactInfoEditDialog = __webpack_require__(7743);
22148
+ ;// ./src/sections/contactInfo/ContactInfoEditDialog.css
22373
22149
 
22374
- .listbox-item-active:hover,
22375
- .listbox-item-active:focus {
22376
- color: var(--item-text);
22377
- }
22150
+
22151
+
22152
+
22153
+
22154
+
22155
+
22156
+
22157
+
22158
+
22378
22159
 
22379
- .listbox-item-disabled {
22380
- opacity: 0.55;
22381
- cursor: not-allowed;
22382
- }
22160
+ var ContactInfoEditDialog_options = {};
22383
22161
 
22384
- .listbox-item-disabled:hover {
22385
- background: transparent;
22386
- border-radius: 0;
22387
- }
22388
- `;
22162
+ ContactInfoEditDialog_options.styleTagTransform = (styleTagTransform_default());
22163
+ ContactInfoEditDialog_options.setAttributes = (setAttributesWithoutAttributes_default());
22164
+ ContactInfoEditDialog_options.insert = insertBySelector_default().bind(null, "head");
22165
+ ContactInfoEditDialog_options.domAPI = (styleDomAPI_default());
22166
+ ContactInfoEditDialog_options.insertStyleElement = (insertStyleElement_default());
22389
22167
 
22390
- /***/ },
22168
+ var ContactInfoEditDialog_update = injectStylesIntoStyleTag_default()(ContactInfoEditDialog/* default */.A, ContactInfoEditDialog_options);
22391
22169
 
22392
- /***/ 3337
22393
- (__unused_webpack_module, __nested_webpack_exports__, __nested_webpack_require_23521__) {
22394
22170
 
22395
- /* harmony export */ __nested_webpack_require_23521__.d(__nested_webpack_exports__, {
22396
- /* harmony export */ M: () => (/* binding */ renderListbox)
22397
- /* harmony export */ });
22398
- /* harmony import */ var lit__WEBPACK_IMPORTED_MODULE_0__ = __nested_webpack_require_23521__(6161);
22399
22171
 
22400
- function renderListbox(args) {
22401
- const {
22402
- options,
22403
- selectedOption,
22404
- activeOption,
22405
- listboxId,
22406
- getOptionId,
22407
- onOptionSelect
22408
- } = args;
22409
- return (0,lit__WEBPACK_IMPORTED_MODULE_0__/* .html */ .qy)`
22410
- <ul
22411
- class="listbox"
22412
- id="${listboxId ?? ''}"
22413
- part="listbox"
22414
- role="listbox"
22415
- aria-orientation="vertical"
22416
- >
22417
- ${options.map((option, index) => {
22418
- const isSelected = option.value === selectedOption?.value;
22419
- const isActive = option.value === activeOption?.value;
22420
- const optionId = getOptionId?.(option, index);
22421
- return (0,lit__WEBPACK_IMPORTED_MODULE_0__/* .html */ .qy)`
22422
- <li
22423
- id="${optionId ?? ''}"
22424
- class="listbox-item${isSelected ? ' listbox-item-selected' : ''}${isActive ? ' listbox-item-active' : ''}${option.disabled ? ' listbox-item-disabled' : ''}"
22425
- part="option${isSelected ? ' selected-option' : ''}${isActive ? ' active-option' : ''}${option.disabled ? ' disabled-option' : ''}"
22426
- role="option"
22427
- aria-selected="${isSelected}"
22428
- aria-disabled="${option.disabled ? 'true' : 'false'}"
22429
- @click="${() => {
22430
- if (!option.disabled) {
22431
- onOptionSelect(option);
22432
- }
22433
- }}"
22434
- >
22435
- ${option.label}
22436
- </li>
22437
- `;
22438
- })}
22439
- </ul>
22440
- `;
22441
- }
22442
22172
 
22443
- /***/ },
22173
+ /* harmony default export */ const contactInfo_ContactInfoEditDialog = (ContactInfoEditDialog/* default */.A && ContactInfoEditDialog/* default */.A.locals ? ContactInfoEditDialog/* default */.A.locals : undefined);
22444
22174
 
22445
- /***/ 3826
22446
- (__unused_webpack___webpack_module__, __nested_webpack_exports__, __nested_webpack_require_25198__) {
22447
-
22448
- /* harmony export */ __nested_webpack_require_25198__.d(__nested_webpack_exports__, {
22449
- /* harmony export */ AH: () => (/* binding */ i),
22450
- /* harmony export */ Rf: () => (/* binding */ S),
22451
- /* harmony export */ sk: () => (/* binding */ c)
22452
- /* harmony export */ });
22453
- /* unused harmony exports CSSResult, supportsAdoptingStyleSheets, unsafeCSS */
22454
- /**
22455
- * @license
22456
- * Copyright 2019 Google LLC
22457
- * SPDX-License-Identifier: BSD-3-Clause
22458
- */
22459
- const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,s=Symbol(),o=new WeakMap;class n{constructor(t,e,o){if(this._$cssResult$=!0,o!==s)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const s=this.t;if(e&&void 0===t){const e=void 0!==s&&1===s.length;e&&(t=o.get(s)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),e&&o.set(s,t))}return t}toString(){return this.cssText}}const r=t=>new n("string"==typeof t?t:t+"",void 0,s),i=(t,...e)=>{const o=1===t.length?t[0]:e.reduce((e,s,o)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+t[o+1],t[0]);return new n(o,t,s)},S=(s,o)=>{if(e)s.adoptedStyleSheets=o.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(const e of o){const o=document.createElement("style"),n=t.litNonce;void 0!==n&&o.setAttribute("nonce",n),o.textContent=e.cssText,s.appendChild(o)}},c=e?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const s of t.cssRules)e+=s.cssText;return r(e)})(t):t;
22460
- //# sourceMappingURL=css-tag.js.map
22461
-
22462
-
22463
- /***/ },
22464
-
22465
- /***/ 8760
22466
- (__unused_webpack___webpack_module__, __nested_webpack_exports__, __nested_webpack_require_27093__) {
22467
-
22468
- /* harmony export */ __nested_webpack_require_27093__.d(__nested_webpack_exports__, {
22469
- /* harmony export */ AH: () => (/* reexport safe */ _css_tag_js__WEBPACK_IMPORTED_MODULE_0__.AH),
22470
- /* harmony export */ mN: () => (/* binding */ y)
22471
- /* harmony export */ });
22472
- /* unused harmony exports defaultConverter, notEqual */
22473
- /* harmony import */ var _css_tag_js__WEBPACK_IMPORTED_MODULE_0__ = __nested_webpack_require_27093__(3826);
22474
-
22475
- /**
22476
- * @license
22477
- * Copyright 2017 Google LLC
22478
- * SPDX-License-Identifier: BSD-3-Clause
22479
- */const{is:i,defineProperty:e,getOwnPropertyDescriptor:h,getOwnPropertyNames:r,getOwnPropertySymbols:o,getPrototypeOf:n}=Object,a=globalThis,c=a.trustedTypes,l=c?c.emptyScript:"",p=a.reactiveElementPolyfillSupport,d=(t,s)=>t,u={toAttribute(t,s){switch(s){case Boolean:t=t?l:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,s){let i=t;switch(s){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t)}catch(t){i=null}}return i}},f=(t,s)=>!i(t,s),b={attribute:!0,type:String,converter:u,reflect:!1,useDefault:!1,hasChanged:f};Symbol.metadata??=Symbol("metadata"),a.litPropertyMetadata??=new WeakMap;class y extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,s=b){if(s.state&&(s.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((s=Object.create(s)).wrapped=!0),this.elementProperties.set(t,s),!s.noAccessor){const i=Symbol(),h=this.getPropertyDescriptor(t,i,s);void 0!==h&&e(this.prototype,t,h)}}static getPropertyDescriptor(t,s,i){const{get:e,set:r}=h(this.prototype,t)??{get(){return this[s]},set(t){this[s]=t}};return{get:e,set(s){const h=e?.call(this);r?.call(this,s),this.requestUpdate(t,h,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??b}static _$Ei(){if(this.hasOwnProperty(d("elementProperties")))return;const t=n(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(d("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(d("properties"))){const t=this.properties,s=[...r(t),...o(t)];for(const i of s)this.createProperty(i,t[i])}const t=this[Symbol.metadata];if(null!==t){const s=litPropertyMetadata.get(t);if(void 0!==s)for(const[t,i]of s)this.elementProperties.set(t,i)}this._$Eh=new Map;for(const[t,s]of this.elementProperties){const i=this._$Eu(t,s);void 0!==i&&this._$Eh.set(i,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(s){const i=[];if(Array.isArray(s)){const e=new Set(s.flat(1/0).reverse());for(const s of e)i.unshift((0,_css_tag_js__WEBPACK_IMPORTED_MODULE_0__/* .getCompatibleStyle */ .sk)(s))}else void 0!==s&&i.push((0,_css_tag_js__WEBPACK_IMPORTED_MODULE_0__/* .getCompatibleStyle */ .sk)(s));return i}static _$Eu(t,s){const i=s.attribute;return!1===i?void 0:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(t=>t(this))}addController(t){(this._$EO??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){const t=new Map,s=this.constructor.elementProperties;for(const i of s.keys())this.hasOwnProperty(i)&&(t.set(i,this[i]),delete this[i]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return (0,_css_tag_js__WEBPACK_IMPORTED_MODULE_0__/* .adoptStyles */ .Rf)(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(t=>t.hostConnected?.())}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach(t=>t.hostDisconnected?.())}attributeChangedCallback(t,s,i){this._$AK(t,i)}_$ET(t,s){const i=this.constructor.elementProperties.get(t),e=this.constructor._$Eu(t,i);if(void 0!==e&&!0===i.reflect){const h=(void 0!==i.converter?.toAttribute?i.converter:u).toAttribute(s,i.type);this._$Em=t,null==h?this.removeAttribute(e):this.setAttribute(e,h),this._$Em=null}}_$AK(t,s){const i=this.constructor,e=i._$Eh.get(t);if(void 0!==e&&this._$Em!==e){const t=i.getPropertyOptions(e),h="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:u;this._$Em=e;const r=h.fromAttribute(s,t.type);this[e]=r??this._$Ej?.get(e)??r,this._$Em=null}}requestUpdate(t,s,i,e=!1,h){if(void 0!==t){const r=this.constructor;if(!1===e&&(h=this[t]),i??=r.getPropertyOptions(t),!((i.hasChanged??f)(h,s)||i.useDefault&&i.reflect&&h===this._$Ej?.get(t)&&!this.hasAttribute(r._$Eu(t,i))))return;this.C(t,s,i)}!1===this.isUpdatePending&&(this._$ES=this._$EP())}C(t,s,{useDefault:i,reflect:e,wrapped:h},r){i&&!(this._$Ej??=new Map).has(t)&&(this._$Ej.set(t,r??s??this[t]),!0!==h||void 0!==r)||(this._$AL.has(t)||(this.hasUpdated||i||(s=void 0),this._$AL.set(t,s)),!0===e&&this._$Em!==t&&(this._$Eq??=new Set).add(t))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,s]of this._$Ep)this[t]=s;this._$Ep=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[s,i]of t){const{wrapped:t}=i,e=this[s];!0!==t||this._$AL.has(s)||void 0===e||this.C(s,void 0,i,e)}}let t=!1;const s=this._$AL;try{t=this.shouldUpdate(s),t?(this.willUpdate(s),this._$EO?.forEach(t=>t.hostUpdate?.()),this.update(s)):this._$EM()}catch(s){throw t=!1,this._$EM(),s}t&&this._$AE(s)}willUpdate(t){}_$AE(t){this._$EO?.forEach(t=>t.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&=this._$Eq.forEach(t=>this._$ET(t,this[t])),this._$EM()}updated(t){}firstUpdated(t){}}y.elementStyles=[],y.shadowRootOptions={mode:"open"},y[d("elementProperties")]=new Map,y[d("finalized")]=new Map,p?.({ReactiveElement:y}),(a.reactiveElementVersions??=[]).push("2.1.2");
22480
- //# sourceMappingURL=reactive-element.js.map
22481
-
22482
-
22483
- /***/ },
22484
-
22485
- /***/ 5228
22486
- (__unused_webpack___webpack_module__, __nested_webpack_exports__, __nested_webpack_require_33856__) {
22487
-
22488
- /* harmony export */ __nested_webpack_require_33856__.d(__nested_webpack_exports__, {
22489
- /* harmony export */ AH: () => (/* reexport safe */ _lit_reactive_element__WEBPACK_IMPORTED_MODULE_0__.AH),
22490
- /* harmony export */ WF: () => (/* binding */ i),
22491
- /* harmony export */ qy: () => (/* reexport safe */ lit_html__WEBPACK_IMPORTED_MODULE_1__.qy)
22492
- /* harmony export */ });
22493
- /* unused harmony export _$LE */
22494
- /* harmony import */ var _lit_reactive_element__WEBPACK_IMPORTED_MODULE_0__ = __nested_webpack_require_33856__(8760);
22495
- /* harmony import */ var lit_html__WEBPACK_IMPORTED_MODULE_1__ = __nested_webpack_require_33856__(6752);
22496
-
22497
- /**
22498
- * @license
22499
- * Copyright 2017 Google LLC
22500
- * SPDX-License-Identifier: BSD-3-Clause
22501
- */const s=globalThis;class i extends _lit_reactive_element__WEBPACK_IMPORTED_MODULE_0__/* .ReactiveElement */ .mN{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){const t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){const r=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=(0,lit_html__WEBPACK_IMPORTED_MODULE_1__/* .render */ .XX)(r,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return lit_html__WEBPACK_IMPORTED_MODULE_1__/* .noChange */ .c0}}i._$litElement$=!0,i["finalized"]=!0,s.litElementHydrateSupport?.({LitElement:i});const o=s.litElementPolyfillSupport;o?.({LitElement:i});const n={_$AK:(t,e,r)=>{t._$AK(e,r)},_$AL:t=>t._$AL};(s.litElementVersions??=[]).push("4.2.2");
22502
- //# sourceMappingURL=lit-element.js.map
22503
-
22504
-
22505
- /***/ },
22506
-
22507
- /***/ 6752
22508
- (__unused_webpack___webpack_module__, __nested_webpack_exports__, __nested_webpack_require_35657__) {
22509
-
22510
- /* harmony export */ __nested_webpack_require_35657__.d(__nested_webpack_exports__, {
22511
- /* harmony export */ XX: () => (/* binding */ D),
22512
- /* harmony export */ c0: () => (/* binding */ E),
22513
- /* harmony export */ qy: () => (/* binding */ b)
22514
- /* harmony export */ });
22515
- /* unused harmony exports _$LH, mathml, nothing, svg */
22516
- /**
22517
- * @license
22518
- * Copyright 2017 Google LLC
22519
- * SPDX-License-Identifier: BSD-3-Clause
22520
- */
22521
- const t=globalThis,i=t=>t,s=t.trustedTypes,e=s?s.createPolicy("lit-html",{createHTML:t=>t}):void 0,h="$lit$",o=`lit$${Math.random().toFixed(9).slice(2)}$`,n="?"+o,r=`<${n}>`,l=document,c=()=>l.createComment(""),a=t=>null===t||"object"!=typeof t&&"function"!=typeof t,u=Array.isArray,d=t=>u(t)||"function"==typeof t?.[Symbol.iterator],f="[ \t\n\f\r]",v=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,_=/-->/g,m=/>/g,p=RegExp(`>|${f}(?:([^\\s"'>=/]+)(${f}*=${f}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),g=/'/g,$=/"/g,y=/^(?:script|style|textarea|title)$/i,x=t=>(i,...s)=>({_$litType$:t,strings:i,values:s}),b=x(1),w=x(2),T=x(3),E=Symbol.for("lit-noChange"),A=Symbol.for("lit-nothing"),C=new WeakMap,P=l.createTreeWalker(l,129);function V(t,i){if(!u(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==e?e.createHTML(i):i}const N=(t,i)=>{const s=t.length-1,e=[];let n,l=2===i?"<svg>":3===i?"<math>":"",c=v;for(let i=0;i<s;i++){const s=t[i];let a,u,d=-1,f=0;for(;f<s.length&&(c.lastIndex=f,u=c.exec(s),null!==u);)f=c.lastIndex,c===v?"!--"===u[1]?c=_:void 0!==u[1]?c=m:void 0!==u[2]?(y.test(u[2])&&(n=RegExp("</"+u[2],"g")),c=p):void 0!==u[3]&&(c=p):c===p?">"===u[0]?(c=n??v,d=-1):void 0===u[1]?d=-2:(d=c.lastIndex-u[2].length,a=u[1],c=void 0===u[3]?p:'"'===u[3]?$:g):c===$||c===g?c=p:c===_||c===m?c=v:(c=p,n=void 0);const x=c===p&&t[i+1].startsWith("/>")?" ":"";l+=c===v?s+r:d>=0?(e.push(a),s.slice(0,d)+h+s.slice(d)+o+x):s+o+(-2===d?i:x)}return[V(t,l+(t[s]||"<?>")+(2===i?"</svg>":3===i?"</math>":"")),e]};class S{constructor({strings:t,_$litType$:i},e){let r;this.parts=[];let l=0,a=0;const u=t.length-1,d=this.parts,[f,v]=N(t,i);if(this.el=S.createElement(f,e),P.currentNode=this.el.content,2===i||3===i){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(r=P.nextNode())&&d.length<u;){if(1===r.nodeType){if(r.hasAttributes())for(const t of r.getAttributeNames())if(t.endsWith(h)){const i=v[a++],s=r.getAttribute(t).split(o),e=/([.?@])?(.*)/.exec(i);d.push({type:1,index:l,name:e[2],strings:s,ctor:"."===e[1]?I:"?"===e[1]?L:"@"===e[1]?z:H}),r.removeAttribute(t)}else t.startsWith(o)&&(d.push({type:6,index:l}),r.removeAttribute(t));if(y.test(r.tagName)){const t=r.textContent.split(o),i=t.length-1;if(i>0){r.textContent=s?s.emptyScript:"";for(let s=0;s<i;s++)r.append(t[s],c()),P.nextNode(),d.push({type:2,index:++l});r.append(t[i],c())}}}else if(8===r.nodeType)if(r.data===n)d.push({type:2,index:l});else{let t=-1;for(;-1!==(t=r.data.indexOf(o,t+1));)d.push({type:7,index:l}),t+=o.length-1}l++}}static createElement(t,i){const s=l.createElement("template");return s.innerHTML=t,s}}function M(t,i,s=t,e){if(i===E)return i;let h=void 0!==e?s._$Co?.[e]:s._$Cl;const o=a(i)?void 0:i._$litDirective$;return h?.constructor!==o&&(h?._$AO?.(!1),void 0===o?h=void 0:(h=new o(t),h._$AT(t,s,e)),void 0!==e?(s._$Co??=[])[e]=h:s._$Cl=h),void 0!==h&&(i=M(t,h._$AS(t,i.values),h,e)),i}class R{constructor(t,i){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:i},parts:s}=this._$AD,e=(t?.creationScope??l).importNode(i,!0);P.currentNode=e;let h=P.nextNode(),o=0,n=0,r=s[0];for(;void 0!==r;){if(o===r.index){let i;2===r.type?i=new k(h,h.nextSibling,this,t):1===r.type?i=new r.ctor(h,r.name,r.strings,this,t):6===r.type&&(i=new Z(h,this,t)),this._$AV.push(i),r=s[++n]}o!==r?.index&&(h=P.nextNode(),o++)}return P.currentNode=l,e}p(t){let i=0;for(const s of this._$AV)void 0!==s&&(void 0!==s.strings?(s._$AI(t,s,i),i+=s.strings.length-2):s._$AI(t[i])),i++}}class k{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,i,s,e){this.type=2,this._$AH=A,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=s,this.options=e,this._$Cv=e?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const i=this._$AM;return void 0!==i&&11===t?.nodeType&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=M(this,t,i),a(t)?t===A||null==t||""===t?(this._$AH!==A&&this._$AR(),this._$AH=A):t!==this._$AH&&t!==E&&this._(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):d(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==A&&a(this._$AH)?this._$AA.nextSibling.data=t:this.T(l.createTextNode(t)),this._$AH=t}$(t){const{values:i,_$litType$:s}=t,e="number"==typeof s?this._$AC(t):(void 0===s.el&&(s.el=S.createElement(V(s.h,s.h[0]),this.options)),s);if(this._$AH?._$AD===e)this._$AH.p(i);else{const t=new R(e,this),s=t.u(this.options);t.p(i),this.T(s),this._$AH=t}}_$AC(t){let i=C.get(t.strings);return void 0===i&&C.set(t.strings,i=new S(t)),i}k(t){u(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let s,e=0;for(const h of t)e===i.length?i.push(s=new k(this.O(c()),this.O(c()),this,this.options)):s=i[e],s._$AI(h),e++;e<i.length&&(this._$AR(s&&s._$AB.nextSibling,e),i.length=e)}_$AR(t=this._$AA.nextSibling,s){for(this._$AP?.(!1,!0,s);t!==this._$AB;){const s=i(t).nextSibling;i(t).remove(),t=s}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t))}}class H{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,i,s,e,h){this.type=1,this._$AH=A,this._$AN=void 0,this.element=t,this.name=i,this._$AM=e,this.options=h,s.length>2||""!==s[0]||""!==s[1]?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=A}_$AI(t,i=this,s,e){const h=this.strings;let o=!1;if(void 0===h)t=M(this,t,i,0),o=!a(t)||t!==this._$AH&&t!==E,o&&(this._$AH=t);else{const e=t;let n,r;for(t=h[0],n=0;n<h.length-1;n++)r=M(this,e[s+n],i,n),r===E&&(r=this._$AH[n]),o||=!a(r)||r!==this._$AH[n],r===A?t=A:t!==A&&(t+=(r??"")+h[n+1]),this._$AH[n]=r}o&&!e&&this.j(t)}j(t){t===A?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class I extends H{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===A?void 0:t}}class L extends H{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==A)}}class z extends H{constructor(t,i,s,e,h){super(t,i,s,e,h),this.type=5}_$AI(t,i=this){if((t=M(this,t,i,0)??A)===E)return;const s=this._$AH,e=t===A&&s!==A||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,h=t!==A&&(s===A||e);e&&this.element.removeEventListener(this.name,this,s),h&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}}class Z{constructor(t,i,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=i,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(t){M(this,t)}}const j={M:h,P:o,A:n,C:1,L:N,R,D:d,V:M,I:k,H,N:L,U:z,B:I,F:Z},B=t.litHtmlPolyfillSupport;B?.(S,k),(t.litHtmlVersions??=[]).push("3.3.2");const D=(t,i,s)=>{const e=s?.renderBefore??i;let h=e._$litPart$;if(void 0===h){const t=s?.renderBefore??null;e._$litPart$=h=new k(i.insertBefore(c(),t),t,void 0,s??{})}return h._$AI(t),h};
22522
- //# sourceMappingURL=lit-html.js.map
22523
-
22524
-
22525
- /***/ },
22526
-
22527
- /***/ 3380
22528
- (__unused_webpack___webpack_module__, __nested_webpack_exports__, __nested_webpack_require_43286__) {
22529
-
22530
- /* harmony export */ __nested_webpack_require_43286__.d(__nested_webpack_exports__, {
22531
- /* harmony export */ XX: () => (/* reexport safe */ lit_html__WEBPACK_IMPORTED_MODULE_0__.XX)
22532
- /* harmony export */ });
22533
- /* harmony import */ var lit_html__WEBPACK_IMPORTED_MODULE_0__ = __nested_webpack_require_43286__(6752);
22534
-
22535
- //# sourceMappingURL=html.js.map
22536
-
22537
-
22538
- /***/ },
22539
-
22540
- /***/ 6161
22541
- (__unused_webpack___webpack_module__, __nested_webpack_exports__, __nested_webpack_require_43705__) {
22542
-
22543
- /* harmony export */ __nested_webpack_require_43705__.d(__nested_webpack_exports__, {
22544
- /* harmony export */ AH: () => (/* reexport safe */ lit_element_lit_element_js__WEBPACK_IMPORTED_MODULE_2__.AH),
22545
- /* harmony export */ WF: () => (/* reexport safe */ lit_element_lit_element_js__WEBPACK_IMPORTED_MODULE_2__.WF),
22546
- /* harmony export */ qy: () => (/* reexport safe */ lit_element_lit_element_js__WEBPACK_IMPORTED_MODULE_2__.qy)
22547
- /* harmony export */ });
22548
- /* harmony import */ var _lit_reactive_element__WEBPACK_IMPORTED_MODULE_0__ = __nested_webpack_require_43705__(8760);
22549
- /* harmony import */ var lit_html__WEBPACK_IMPORTED_MODULE_1__ = __nested_webpack_require_43705__(6752);
22550
- /* harmony import */ var lit_element_lit_element_js__WEBPACK_IMPORTED_MODULE_2__ = __nested_webpack_require_43705__(5228);
22551
-
22552
- //# sourceMappingURL=index.js.map
22553
-
22554
-
22555
- /***/ }
22556
-
22557
- /******/ });
22558
- /************************************************************************/
22559
- /******/ // The module cache
22560
- /******/ var index_esm_webpack_module_cache_ = {};
22561
- /******/
22562
- /******/ // The require function
22563
- /******/ function __nested_webpack_require_44730__(moduleId) {
22564
- /******/ // Check if module is in cache
22565
- /******/ var cachedModule = index_esm_webpack_module_cache_[moduleId];
22566
- /******/ if (cachedModule !== undefined) {
22567
- /******/ return cachedModule.exports;
22568
- /******/ }
22569
- /******/ // Create a new module (and put it into the cache)
22570
- /******/ var module = index_esm_webpack_module_cache_[moduleId] = {
22571
- /******/ // no module.id needed
22572
- /******/ // no module.loaded needed
22573
- /******/ exports: {}
22574
- /******/ };
22575
- /******/
22576
- /******/ // Execute the module function
22577
- /******/ index_esm_webpack_modules_[moduleId](module, module.exports, __nested_webpack_require_44730__);
22578
- /******/
22579
- /******/ // Return the exports of the module
22580
- /******/ return module.exports;
22581
- /******/ }
22582
- /******/
22583
- /************************************************************************/
22584
- /******/ /* webpack/runtime/define property getters */
22585
- /******/ (() => {
22586
- /******/ // define getter functions for harmony exports
22587
- /******/ __nested_webpack_require_44730__.d = (exports, definition) => {
22588
- /******/ for(var key in definition) {
22589
- /******/ if(__nested_webpack_require_44730__.o(definition, key) && !__nested_webpack_require_44730__.o(exports, key)) {
22590
- /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
22591
- /******/ }
22592
- /******/ }
22593
- /******/ };
22594
- /******/ })();
22595
- /******/
22596
- /******/ /* webpack/runtime/hasOwnProperty shorthand */
22597
- /******/ (() => {
22598
- /******/ __nested_webpack_require_44730__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
22599
- /******/ })();
22600
- /******/
22601
- /************************************************************************/
22602
- var index_esm_nested_webpack_exports_ = {};
22603
- /* harmony export */ __nested_webpack_require_44730__.d(index_esm_nested_webpack_exports_, {
22604
- /* harmony export */ l: () => (/* reexport safe */ _Select__WEBPACK_IMPORTED_MODULE_0__.l)
22605
- /* harmony export */ });
22606
- /* harmony import */ var _Select__WEBPACK_IMPORTED_MODULE_0__ = __nested_webpack_require_44730__(6451);
22607
-
22608
-
22609
- const SELECT_TAG_NAME = 'solid-ui-select';
22610
- if (!customElements.get(SELECT_TAG_NAME)) {
22611
- customElements.define(SELECT_TAG_NAME, _Select__WEBPACK_IMPORTED_MODULE_0__/* .Select */ .l);
22612
- }
22613
- const __webpack_exports__Select = index_esm_nested_webpack_exports_.l;
22614
-
22615
-
22616
- //# sourceMappingURL=index.esm.js.map
22617
- // EXTERNAL MODULE: ./node_modules/css-loader/dist/cjs.js!./src/styles/EditDialogs.css
22618
- var EditDialogs = __webpack_require__(5203);
22619
- ;// ./src/styles/EditDialogs.css
22620
-
22621
-
22622
-
22623
-
22624
-
22625
-
22626
-
22627
-
22628
-
22629
-
22630
-
22631
- var EditDialogs_options = {};
22632
-
22633
- EditDialogs_options.styleTagTransform = (styleTagTransform_default());
22634
- EditDialogs_options.setAttributes = (setAttributesWithoutAttributes_default());
22635
- EditDialogs_options.insert = insertBySelector_default().bind(null, "head");
22636
- EditDialogs_options.domAPI = (styleDomAPI_default());
22637
- EditDialogs_options.insertStyleElement = (insertStyleElement_default());
22638
-
22639
- var EditDialogs_update = injectStylesIntoStyleTag_default()(EditDialogs/* default */.A, EditDialogs_options);
22640
-
22641
-
22642
-
22643
-
22644
- /* harmony default export */ const styles_EditDialogs = (EditDialogs/* default */.A && EditDialogs/* default */.A.locals ? EditDialogs/* default */.A.locals : undefined);
22645
-
22646
- // EXTERNAL MODULE: ./node_modules/css-loader/dist/cjs.js!./src/sections/contactInfo/ContactInfoEditDialog.css
22647
- var ContactInfoEditDialog = __webpack_require__(7743);
22648
- ;// ./src/sections/contactInfo/ContactInfoEditDialog.css
22649
-
22650
-
22651
-
22652
-
22653
-
22654
-
22655
-
22656
-
22657
-
22658
-
22659
-
22660
- var ContactInfoEditDialog_options = {};
22661
-
22662
- ContactInfoEditDialog_options.styleTagTransform = (styleTagTransform_default());
22663
- ContactInfoEditDialog_options.setAttributes = (setAttributesWithoutAttributes_default());
22664
- ContactInfoEditDialog_options.insert = insertBySelector_default().bind(null, "head");
22665
- ContactInfoEditDialog_options.domAPI = (styleDomAPI_default());
22666
- ContactInfoEditDialog_options.insertStyleElement = (insertStyleElement_default());
22667
-
22668
- var ContactInfoEditDialog_update = injectStylesIntoStyleTag_default()(ContactInfoEditDialog/* default */.A, ContactInfoEditDialog_options);
22669
-
22670
-
22671
-
22672
-
22673
- /* harmony default export */ const contactInfo_ContactInfoEditDialog = (ContactInfoEditDialog/* default */.A && ContactInfoEditDialog/* default */.A.locals ? ContactInfoEditDialog/* default */.A.locals : undefined);
22674
-
22675
- ;// ./src/texts/messageTexts.ts
22676
- const userNotLoggedInErrorMessage = 'Current user not found! Not logged in?';
22677
- const friendWasAddedSuccesMessage = 'Friend was added!';
22678
- const contactWasAddedSuccesMessage = 'Contact was added!';
22679
- const friendExistsMessage = 'Friend already exists';
22680
- const contactExistsMessage = 'Contact already exists';
22681
- const loadingMessage = 'Loading...';
22682
- const groupIsRequired = 'You need to either pick a group or enter one.';
22683
- const errorGroupCreation = 'Unable to create the group.';
22684
- const errorContactCreation = 'Unable to add the contact.';
22685
- const errorAddressBookCreation = 'Unable to create your address book.';
22686
- const errorReadingAddressBook = 'There was an error reading your address book.';
22687
- const errorLoadingContact = 'There was an error loading the contact: ';
22688
- const errorGettingAddressBooks = 'There was an error getting your address books.';
22689
- const errorNotExistsAddressBookUri = 'Please enter an address book URI.';
22690
- const errorProcessingUriAddressBook = 'Unable to add your address book.';
22691
- const errorUnableToDetermineUserWorkspace = 'Unable to determine user workspace for new address book.';
22692
- const errorAddingContactWebIDToAddressBook = 'Contact webID was not saved.';
22693
- const ownerLoginRequiredDialogMessageText = 'You need to log in as the profile owner to save contact updates.';
22694
- const saveContactUpdatesFailedMessageText = 'Unable to save your contact information.';
22695
- const saveHeadingUpdatesFailedMessageText = 'Unable to save your heading information.';
22696
- const saveLanguageUpdatesFailedMessageText = 'Unable to save your languages.';
22697
- const saveSkillsUpdatesFailedMessageText = 'Unable to save your skills.';
22698
- const saveResumeUpdatesFailedMessageText = 'Unable to save your resume.';
22699
- const saveEducationUpdatesFailedMessageText = 'Unable to save your education history.';
22700
- const saveProjectsUpdatesFailedMessageText = 'Unable to save your project data.';
22701
- const unfollowProjectFailedMessageText = 'Unable to unfollow the project.';
22702
- const saveSocialUpdatesFailedMessageText = 'Unable to save your social accounts.';
22703
- const saveBioUpdatesFailedMessageText = 'Unable to save your bio.';
22704
- const bioMutationSaveFailedDebugText = 'Bio mutation save failed';
22705
- const addContactWebIdSaveFailedDebugText = 'Add contact WebID save failed';
22706
- const contactInfoMutationSaveFailedDebugText = 'Contact info mutation save failed';
22707
- const educationMutationSaveFailedDebugText = 'Education mutation save failed';
22708
- const headingMutationSaveFailedDebugText = 'Heading mutation save failed';
22709
- const languageMutationSaveFailedDebugText = 'Language mutation save failed';
22710
- const projectsMutationSaveFailedDebugText = 'Projects mutation save failed';
22711
- const resumeMutationSaveFailedDebugText = 'Resume mutation save failed';
22712
- const skillsMutationSaveFailedDebugText = 'Skills mutation save failed';
22713
- const socialMutationSaveFailedDebugText = 'Social mutation save failed';
22714
- const resumeUpdateEntryNotFoundErrorMessageText = 'Could not find existing resume entry for update. Please reload profile data and try again.';
22715
- const updaterUnsupportedStoreErrorMessageText = 'Store does not support updates';
22716
- const fallbackSaveUpdatesErrorMessageText = 'Failed to save updates';
22175
+ ;// ./src/texts/messageTexts.ts
22176
+ const userNotLoggedInErrorMessage = 'Current user not found! Not logged in?';
22177
+ const friendWasAddedSuccesMessage = 'Friend was added!';
22178
+ const contactWasAddedSuccesMessage = 'Contact was added!';
22179
+ const friendExistsMessage = 'Friend already exists';
22180
+ const contactExistsMessage = 'Contact already exists';
22181
+ const loadingMessage = 'Loading...';
22182
+ const groupIsRequired = 'You need to either pick a group or enter one.';
22183
+ const errorGroupCreation = 'Unable to create the group.';
22184
+ const errorContactCreation = 'Unable to add the contact.';
22185
+ const errorAddressBookCreation = 'Unable to create your address book.';
22186
+ const errorReadingAddressBook = 'There was an error reading your address book.';
22187
+ const errorLoadingContact = 'There was an error loading the contact: ';
22188
+ const errorGettingAddressBooks = 'There was an error getting your address books.';
22189
+ const errorNotExistsAddressBookUri = 'Please enter an address book URI.';
22190
+ const errorProcessingUriAddressBook = 'Unable to add your address book.';
22191
+ const errorUnableToDetermineUserWorkspace = 'Unable to determine user workspace for new address book.';
22192
+ const errorAddingContactWebIDToAddressBook = 'Contact webID was not saved.';
22193
+ const ownerLoginRequiredDialogMessageText = 'You need to log in as the profile owner to save contact updates.';
22194
+ const saveContactUpdatesFailedMessageText = 'Unable to save your contact information.';
22195
+ const saveHeadingUpdatesFailedMessageText = 'Unable to save your heading information.';
22196
+ const saveLanguageUpdatesFailedMessageText = 'Unable to save your languages.';
22197
+ const saveSkillsUpdatesFailedMessageText = 'Unable to save your skills.';
22198
+ const saveResumeUpdatesFailedMessageText = 'Unable to save your resume.';
22199
+ const saveEducationUpdatesFailedMessageText = 'Unable to save your education history.';
22200
+ const saveProjectsUpdatesFailedMessageText = 'Unable to save your project data.';
22201
+ const unfollowProjectFailedMessageText = 'Unable to unfollow the project.';
22202
+ const saveSocialUpdatesFailedMessageText = 'Unable to save your social accounts.';
22203
+ const saveBioUpdatesFailedMessageText = 'Unable to save your bio.';
22204
+ const bioMutationSaveFailedDebugText = 'Bio mutation save failed';
22205
+ const addContactWebIdSaveFailedDebugText = 'Add contact WebID save failed';
22206
+ const contactInfoMutationSaveFailedDebugText = 'Contact info mutation save failed';
22207
+ const educationMutationSaveFailedDebugText = 'Education mutation save failed';
22208
+ const headingMutationSaveFailedDebugText = 'Heading mutation save failed';
22209
+ const languageMutationSaveFailedDebugText = 'Language mutation save failed';
22210
+ const projectsMutationSaveFailedDebugText = 'Projects mutation save failed';
22211
+ const resumeMutationSaveFailedDebugText = 'Resume mutation save failed';
22212
+ const skillsMutationSaveFailedDebugText = 'Skills mutation save failed';
22213
+ const socialMutationSaveFailedDebugText = 'Social mutation save failed';
22214
+ const resumeUpdateEntryNotFoundErrorMessageText = 'Could not find existing resume entry for update. Please reload profile data and try again.';
22215
+ const updaterUnsupportedStoreErrorMessageText = 'Store does not support updates';
22216
+ const fallbackSaveUpdatesErrorMessageText = 'Failed to save updates';
22717
22217
 
22718
22218
  ;// ./src/sections/shared/rdfMutationHelpers.ts
22719
22219
  /* unused harmony import specifier */ var rdfMutationHelpers_updaterUnsupportedStoreErrorMessageText;
@@ -25051,89 +24551,59 @@ var LanguageSection_update = injectStylesIntoStyleTag_default()(LanguageSection/
25051
24551
 
25052
24552
  /* harmony default export */ const languages_LanguageSection = (LanguageSection/* default */.A && LanguageSection/* default */.A.locals ? LanguageSection/* default */.A.locals : undefined);
25053
24553
 
25054
- ;// ./node_modules/solid-ui/dist/components/combobox/index.esm.js
25055
- /******/ var combobox_index_esm_webpack_modules_ = ({
25056
-
25057
- /***/ 1865
25058
- (__unused_webpack_module, __nested_webpack_exports__, __nested_webpack_require_97__) {
25059
-
25060
- /* harmony export */ __nested_webpack_require_97__.d(__nested_webpack_exports__, {
25061
- /* harmony export */ G: () => (/* binding */ Combobox)
25062
- /* harmony export */ });
25063
- /* harmony import */ var lit__WEBPACK_IMPORTED_MODULE_0__ = __nested_webpack_require_97__(6161);
25064
- /* harmony import */ var lit_html_js__WEBPACK_IMPORTED_MODULE_1__ = __nested_webpack_require_97__(3380);
25065
- /* harmony import */ var _shared_downArrow__WEBPACK_IMPORTED_MODULE_2__ = __nested_webpack_require_97__(9239);
25066
- /* harmony import */ var _shared_listboxStyles__WEBPACK_IMPORTED_MODULE_3__ = __nested_webpack_require_97__(6457);
25067
- /* harmony import */ var _shared_keyboard__WEBPACK_IMPORTED_MODULE_4__ = __nested_webpack_require_97__(9757);
25068
- /* harmony import */ var _shared_listboxTemplate__WEBPACK_IMPORTED_MODULE_5__ = __nested_webpack_require_97__(3337);
25069
-
25070
-
25071
-
25072
-
25073
-
25074
-
25075
- class Combobox extends lit__WEBPACK_IMPORTED_MODULE_0__/* .LitElement */ .WF {
25076
- static _nextId = 0;
25077
- _popupPortalHost = null;
25078
- _popupPortalRoot = null;
25079
- _popupPortalContainer = null;
25080
- _handleDocumentPointerDown = event => {
25081
- const eventTarget = event.target;
25082
- if (!this._popupOpen || !(eventTarget instanceof Node)) {
25083
- return;
25084
- }
25085
- const eventPath = 'composedPath' in event ? event.composedPath() : [];
25086
- if (eventPath.includes(this)) {
25087
- return;
25088
- }
25089
- if (this._popupPortalHost && eventPath.includes(this._popupPortalHost) || this._popupPortalRoot && eventPath.includes(this._popupPortalRoot)) {
25090
- return;
25091
- }
25092
- if (!this.contains(eventTarget)) {
25093
- this._closePopup();
25094
- }
25095
- };
25096
- _handleViewportChange = () => {
25097
- if (!this._popupOpen) return;
25098
- this._updatePopupPosition();
25099
- };
25100
- suggestionProvider;
25101
- static properties = {
25102
- label: {
25103
- type: String,
25104
- reflect: true
25105
- },
25106
- placeholder: {
25107
- type: String,
25108
- reflect: true
25109
- },
25110
- theme: {
25111
- type: String,
25112
- reflect: true
25113
- },
25114
- layout: {
25115
- type: String,
25116
- reflect: true
25117
- },
25118
- value: {
25119
- type: String,
25120
- reflect: true
25121
- },
25122
- inputValue: {
25123
- type: String
25124
- },
25125
- options: {
25126
- type: Array,
25127
- attribute: false
25128
- },
25129
- _popupOpen: {
25130
- state: true
25131
- },
25132
- _activeIndex: {
25133
- state: true
25134
- }
25135
- };
25136
- static styles = [_shared_listboxStyles__WEBPACK_IMPORTED_MODULE_3__/* .listboxStyles */ .S, (0,lit__WEBPACK_IMPORTED_MODULE_0__/* .css */ .AH)`
24554
+ ;// ./node_modules/solid-ui/dist/v2/components/forms/combobox/Combobox.esm.js
24555
+
24556
+
24557
+
24558
+
24559
+
24560
+
24561
+ //#region src/v2/components/forms/combobox/Combobox.ts
24562
+ var Combobox_esm_p = class p extends lit_element_i {
24563
+ static _nextId = 0;
24564
+ _popupPortalHost = null;
24565
+ _popupPortalRoot = null;
24566
+ _popupPortalContainer = null;
24567
+ _handleDocumentPointerDown = (e) => {
24568
+ let t = e.target;
24569
+ if (!this._popupOpen || !(t instanceof Node)) return;
24570
+ let n = "composedPath" in e ? e.composedPath() : [];
24571
+ n.includes(this) || this._popupPortalHost && n.includes(this._popupPortalHost) || this._popupPortalRoot && n.includes(this._popupPortalRoot) || this.contains(t) || this._closePopup();
24572
+ };
24573
+ _handleViewportChange = () => {
24574
+ this._popupOpen && this._updatePopupPosition();
24575
+ };
24576
+ suggestionProvider;
24577
+ static properties = {
24578
+ label: {
24579
+ type: String,
24580
+ reflect: !0
24581
+ },
24582
+ placeholder: {
24583
+ type: String,
24584
+ reflect: !0
24585
+ },
24586
+ theme: {
24587
+ type: String,
24588
+ reflect: !0
24589
+ },
24590
+ layout: {
24591
+ type: String,
24592
+ reflect: !0
24593
+ },
24594
+ value: {
24595
+ type: String,
24596
+ reflect: !0
24597
+ },
24598
+ inputValue: { type: String },
24599
+ options: {
24600
+ type: Array,
24601
+ attribute: !1
24602
+ },
24603
+ _popupOpen: { state: !0 },
24604
+ _activeIndex: { state: !0 }
24605
+ };
24606
+ static styles = [listboxStyles_esm_t, css_tag_i`
25137
24607
  :host {
25138
24608
  /* default theme */
25139
24609
  display: block;
@@ -25288,265 +24758,158 @@ class Combobox extends lit__WEBPACK_IMPORTED_MODULE_0__/* .LitElement */ .WF {
25288
24758
  }
25289
24759
  }
25290
24760
  `];
25291
- _inputId = `solid-ui-combobox-input-${Combobox._nextId++}`;
25292
- _listboxId = `solid-ui-combobox-listbox-${Combobox._nextId++}`;
25293
- _suggestionRequestId = 0;
25294
- constructor() {
25295
- super();
25296
- this.label = 'Select an option';
25297
- this.placeholder = 'Type to search';
25298
- this.theme = 'light';
25299
- this.layout = 'desktop';
25300
- this.options = [];
25301
- this.value = '';
25302
- this.inputValue = '';
25303
- this._popupOpen = false;
25304
- this._activeIndex = -1;
25305
- }
25306
- connectedCallback() {
25307
- super.connectedCallback();
25308
- document.addEventListener('pointerdown', this._handleDocumentPointerDown);
25309
- window.addEventListener('resize', this._handleViewportChange);
25310
- window.addEventListener('scroll', this._handleViewportChange, true);
25311
- }
25312
- disconnectedCallback() {
25313
- this._detachPopupPortal();
25314
- document.removeEventListener('pointerdown', this._handleDocumentPointerDown);
25315
- window.removeEventListener('resize', this._handleViewportChange);
25316
- window.removeEventListener('scroll', this._handleViewportChange, true);
25317
- super.disconnectedCallback();
25318
- }
25319
- _getPopupPortalContainer() {
25320
- return this.closest('dialog[open]') || document.body;
25321
- }
25322
- _ensurePopupPortal() {
25323
- const nextContainer = this._getPopupPortalContainer();
25324
- if (this._popupPortalHost && this._popupPortalRoot && this._popupPortalContainer === nextContainer) {
25325
- return;
25326
- }
25327
- this._detachPopupPortal();
25328
- this._popupPortalHost = document.createElement('div');
25329
- this._popupPortalHost.setAttribute('data-solid-ui-combobox-portal', '');
25330
- this._popupPortalHost.style.position = 'fixed';
25331
- this._popupPortalHost.style.inset = '0 auto auto 0';
25332
- this._popupPortalHost.style.zIndex = '2147483647';
25333
- this._popupPortalHost.style.pointerEvents = 'none';
25334
- this._popupPortalHost.style.boxSizing = 'border-box';
25335
- this._popupPortalRoot = this._popupPortalHost.attachShadow({
25336
- mode: 'open'
25337
- });
25338
- const styleSheets = (Array.isArray(Combobox.styles) ? Combobox.styles : [Combobox.styles]).map(style => style?.styleSheet).filter(styleSheet => Boolean(styleSheet));
25339
- if (styleSheets.length > 0) {
25340
- this._popupPortalRoot.adoptedStyleSheets = styleSheets;
25341
- }
25342
- nextContainer.appendChild(this._popupPortalHost);
25343
- this._popupPortalContainer = nextContainer;
25344
- }
25345
- _detachPopupPortal() {
25346
- if (this._popupPortalRoot) {
25347
- (0,lit_html_js__WEBPACK_IMPORTED_MODULE_1__/* .render */ .XX)(null, this._popupPortalRoot);
25348
- }
25349
- if (this._popupPortalHost?.parentNode) {
25350
- this._popupPortalHost.parentNode.removeChild(this._popupPortalHost);
25351
- }
25352
- this._popupPortalHost = null;
25353
- this._popupPortalRoot = null;
25354
- this._popupPortalContainer = null;
25355
- }
25356
- _updatePopupPosition() {
25357
- this._ensurePopupPortal();
25358
- const rect = this.getBoundingClientRect();
25359
- const maxHeight = Math.min(288, Math.max(120, window.innerHeight - rect.bottom - 12));
25360
- if (this._popupPortalHost) {
25361
- this._popupPortalHost.style.top = `${Math.round(rect.bottom + 2)}px`;
25362
- this._popupPortalHost.style.left = `${Math.round(rect.left)}px`;
25363
- this._popupPortalHost.style.width = `${Math.round(rect.width)}px`;
25364
- this._popupPortalHost.style.maxHeight = `${Math.round(maxHeight)}px`;
25365
- this._popupPortalHost.style.height = '0px';
25366
- }
25367
- }
25368
- _openPopup() {
25369
- const popupOptions = this._getDisplayedOptions();
25370
- this._popupOpen = true;
25371
- this._updatePopupPosition();
25372
- this._activeIndex = (0,_shared_keyboard__WEBPACK_IMPORTED_MODULE_4__/* .findOptionIndexByValue */ .Dh)(popupOptions, this.value);
25373
- if (this._activeIndex < 0) {
25374
- this._activeIndex = (0,_shared_keyboard__WEBPACK_IMPORTED_MODULE_4__/* .getFirstEnabledIndex */ .AZ)(popupOptions);
25375
- }
25376
- }
25377
- _closePopup() {
25378
- this._popupOpen = false;
25379
- if (this._popupPortalRoot) {
25380
- (0,lit_html_js__WEBPACK_IMPORTED_MODULE_1__/* .render */ .XX)(null, this._popupPortalRoot);
25381
- }
25382
- }
25383
- updated(changedProperties) {
25384
- if (this._popupOpen) {
25385
- this._updatePopupPosition();
25386
- if (this._popupPortalRoot) {
25387
- (0,lit_html_js__WEBPACK_IMPORTED_MODULE_1__/* .render */ .XX)(this._renderPopup(), this._popupPortalRoot);
25388
- }
25389
- } else if (this._popupPortalRoot) {
25390
- (0,lit_html_js__WEBPACK_IMPORTED_MODULE_1__/* .render */ .XX)(null, this._popupPortalRoot);
25391
- }
25392
- if ((changedProperties.has('value') || changedProperties.has('options')) && this.value) {
25393
- const selectedOption = this.options.find(option => option.value === this.value);
25394
- if (selectedOption && this.inputValue !== selectedOption.label) {
25395
- this.inputValue = selectedOption.label;
25396
- }
25397
- }
25398
- }
25399
- _getSelectedIndex() {
25400
- return (0,_shared_keyboard__WEBPACK_IMPORTED_MODULE_4__/* .findOptionIndexByValue */ .Dh)(this.options, this.value);
25401
- }
25402
- _getSelectedOption() {
25403
- const selectedIndex = this._getSelectedIndex();
25404
- if (selectedIndex >= 0) {
25405
- return this.options[selectedIndex];
25406
- }
25407
- return this.options[0];
25408
- }
25409
- _getDisplayedOptions() {
25410
- const selectedOption = this._getSelectedOption();
25411
- if (!selectedOption) {
25412
- return this.options;
25413
- }
25414
- return [selectedOption, ...this.options.filter(option => option.value !== selectedOption.value)];
25415
- }
25416
- _getActiveOption() {
25417
- const popupOptions = this._getDisplayedOptions();
25418
- if (this._activeIndex < 0) {
25419
- return undefined;
25420
- }
25421
- return popupOptions[this._activeIndex];
25422
- }
25423
- async _loadSuggestions(query) {
25424
- if (!this.suggestionProvider) {
25425
- this._openPopup();
25426
- return;
25427
- }
25428
- const requestId = ++this._suggestionRequestId;
25429
- const suggestions = await this.suggestionProvider(query);
25430
- if (requestId !== this._suggestionRequestId) {
25431
- return;
25432
- }
25433
- this.options = suggestions;
25434
- this._openPopup();
25435
- }
25436
- async _handleInputChange(e) {
25437
- const query = e.target.value;
25438
- this.inputValue = query;
25439
- this.value = '';
25440
- this.dispatchEvent(new CustomEvent('input', {
25441
- detail: {
25442
- value: query
25443
- },
25444
- bubbles: true,
25445
- composed: true
25446
- }));
25447
- await this._loadSuggestions(query);
25448
- }
25449
- _handleInputKeydown(e) {
25450
- if (e.key === ' ' || e.key === 'Spacebar') {
25451
- return;
25452
- }
25453
- const popupOptions = this._getDisplayedOptions();
25454
- const action = (0,_shared_keyboard__WEBPACK_IMPORTED_MODULE_4__/* .getListboxActionFromKey */ .Hf)(e.key);
25455
- if (action === 'none') {
25456
- return;
25457
- }
25458
- e.preventDefault();
25459
- switch (action) {
25460
- case 'close':
25461
- this._closePopup();
25462
- break;
25463
- case 'first':
25464
- if (!this._popupOpen) {
25465
- this._openPopup();
25466
- }
25467
- this._activeIndex = (0,_shared_keyboard__WEBPACK_IMPORTED_MODULE_4__/* .getFirstEnabledIndex */ .AZ)(popupOptions);
25468
- break;
25469
- case 'last':
25470
- if (!this._popupOpen) {
25471
- this._openPopup();
25472
- }
25473
- this._activeIndex = (0,_shared_keyboard__WEBPACK_IMPORTED_MODULE_4__/* .getLastEnabledIndex */ .mY)(popupOptions);
25474
- break;
25475
- case 'next':
25476
- if (!this._popupOpen) {
25477
- this._openPopup();
25478
- break;
25479
- }
25480
- this._activeIndex = (0,_shared_keyboard__WEBPACK_IMPORTED_MODULE_4__/* .getNextEnabledIndex */ .Xx)(this._activeIndex, popupOptions, 1);
25481
- break;
25482
- case 'previous':
25483
- if (!this._popupOpen) {
25484
- this._openPopup();
25485
- break;
25486
- }
25487
- this._activeIndex = (0,_shared_keyboard__WEBPACK_IMPORTED_MODULE_4__/* .getNextEnabledIndex */ .Xx)(this._activeIndex, popupOptions, -1);
25488
- break;
25489
- case 'select':
25490
- if (!this._popupOpen) {
25491
- this._openPopup();
25492
- break;
25493
- }
25494
- this._selectActiveOption();
25495
- break;
25496
- default:
25497
- break;
25498
- }
25499
- }
25500
- _getOptionId(option, index) {
25501
- return `${this._listboxId}-option-${index}-${option.value}`;
25502
- }
25503
- _selectValueFromDropdown(value) {
25504
- const selectedOption = this.options.find(option => option.value === value);
25505
- this.value = value;
25506
- this.inputValue = selectedOption?.label ?? value;
25507
- this.dispatchEvent(new CustomEvent('change', {
25508
- detail: {
25509
- value,
25510
- label: this.inputValue,
25511
- option: selectedOption
25512
- },
25513
- bubbles: true,
25514
- composed: true
25515
- }));
25516
- this._closePopup();
25517
- }
25518
- _selectActiveOption() {
25519
- const activeOption = this._getActiveOption();
25520
- if (activeOption && !activeOption.disabled) {
25521
- this._selectValueFromDropdown(activeOption.value);
25522
- }
25523
- }
25524
- _renderPopup() {
25525
- const popupOptions = this._getDisplayedOptions();
25526
- const selectedOption = this._getSelectedOption();
25527
- const activeOption = this._activeIndex >= 0 ? popupOptions[this._activeIndex] : undefined;
25528
- return (0,lit__WEBPACK_IMPORTED_MODULE_0__/* .html */ .qy)`
24761
+ _inputId = `solid-ui-combobox-input-${p._nextId++}`;
24762
+ _listboxId = `solid-ui-combobox-listbox-${p._nextId++}`;
24763
+ _suggestionRequestId = 0;
24764
+ constructor() {
24765
+ super(), this.label = "Select an option", this.placeholder = "Type to search", this.theme = "light", this.layout = "desktop", this.options = [], this.value = "", this.inputValue = "", this._popupOpen = !1, this._activeIndex = -1;
24766
+ }
24767
+ connectedCallback() {
24768
+ super.connectedCallback(), document.addEventListener("pointerdown", this._handleDocumentPointerDown), window.addEventListener("resize", this._handleViewportChange), window.addEventListener("scroll", this._handleViewportChange, !0);
24769
+ }
24770
+ disconnectedCallback() {
24771
+ this._detachPopupPortal(), document.removeEventListener("pointerdown", this._handleDocumentPointerDown), window.removeEventListener("resize", this._handleViewportChange), window.removeEventListener("scroll", this._handleViewportChange, !0), super.disconnectedCallback();
24772
+ }
24773
+ _getPopupPortalContainer() {
24774
+ return this.closest("dialog[open]") || document.body;
24775
+ }
24776
+ _ensurePopupPortal() {
24777
+ let e = this._getPopupPortalContainer();
24778
+ if (this._popupPortalHost && this._popupPortalRoot && this._popupPortalContainer === e) return;
24779
+ this._detachPopupPortal(), this._popupPortalHost = document.createElement("div"), this._popupPortalHost.setAttribute("data-solid-ui-combobox-portal", ""), this._popupPortalHost.style.position = "fixed", this._popupPortalHost.style.inset = "0 auto auto 0", this._popupPortalHost.style.zIndex = "2147483647", this._popupPortalHost.style.pointerEvents = "none", this._popupPortalHost.style.boxSizing = "border-box", this._popupPortalRoot = this._popupPortalHost.attachShadow({ mode: "open" });
24780
+ let t = (Array.isArray(p.styles) ? p.styles : [p.styles]).map((e) => e?.styleSheet).filter((e) => !!e);
24781
+ t.length > 0 && (this._popupPortalRoot.adoptedStyleSheets = t), e.appendChild(this._popupPortalHost), this._popupPortalContainer = e;
24782
+ }
24783
+ _detachPopupPortal() {
24784
+ this._popupPortalRoot && D(null, this._popupPortalRoot), this._popupPortalHost?.parentNode && this._popupPortalHost.parentNode.removeChild(this._popupPortalHost), this._popupPortalHost = null, this._popupPortalRoot = null, this._popupPortalContainer = null;
24785
+ }
24786
+ _updatePopupPosition() {
24787
+ this._ensurePopupPortal();
24788
+ let e = this.getBoundingClientRect(), t = Math.min(288, Math.max(120, window.innerHeight - e.bottom - 12));
24789
+ this._popupPortalHost && (this._popupPortalHost.style.top = `${Math.round(e.bottom + 2)}px`, this._popupPortalHost.style.left = `${Math.round(e.left)}px`, this._popupPortalHost.style.width = `${Math.round(e.width)}px`, this._popupPortalHost.style.maxHeight = `${Math.round(t)}px`, this._popupPortalHost.style.height = "0px");
24790
+ }
24791
+ _openPopup() {
24792
+ let e = this._getDisplayedOptions();
24793
+ this._popupOpen = !0, this._updatePopupPosition(), this._activeIndex = keyboard_esm_r(e, this.value), this._activeIndex < 0 && (this._activeIndex = keyboard_esm_t(e));
24794
+ }
24795
+ _closePopup() {
24796
+ this._popupOpen = !1, this._popupPortalRoot && D(null, this._popupPortalRoot);
24797
+ }
24798
+ updated(e) {
24799
+ if (this._popupOpen ? (this._updatePopupPosition(), this._popupPortalRoot && D(this._renderPopup(), this._popupPortalRoot)) : this._popupPortalRoot && D(null, this._popupPortalRoot), (e.has("value") || e.has("options")) && this.value) {
24800
+ let e = this.options.find((e) => e.value === this.value);
24801
+ e && this.inputValue !== e.label && (this.inputValue = e.label);
24802
+ }
24803
+ }
24804
+ _getSelectedIndex() {
24805
+ return keyboard_esm_r(this.options, this.value);
24806
+ }
24807
+ _getSelectedOption() {
24808
+ let e = this._getSelectedIndex();
24809
+ return e >= 0 ? this.options[e] : this.options[0];
24810
+ }
24811
+ _getDisplayedOptions() {
24812
+ let e = this._getSelectedOption();
24813
+ return e ? [e, ...this.options.filter((t) => t.value !== e.value)] : this.options;
24814
+ }
24815
+ _getActiveOption() {
24816
+ let e = this._getDisplayedOptions();
24817
+ if (!(this._activeIndex < 0)) return e[this._activeIndex];
24818
+ }
24819
+ async _loadSuggestions(e) {
24820
+ if (!this.suggestionProvider) {
24821
+ this._openPopup();
24822
+ return;
24823
+ }
24824
+ let t = ++this._suggestionRequestId, n = await this.suggestionProvider(e);
24825
+ t === this._suggestionRequestId && (this.options = n, this._openPopup());
24826
+ }
24827
+ async _handleInputChange(e) {
24828
+ let t = e.target.value;
24829
+ this.inputValue = t, this.value = "", this.dispatchEvent(new CustomEvent("input", {
24830
+ detail: { value: t },
24831
+ bubbles: !0,
24832
+ composed: !0
24833
+ })), await this._loadSuggestions(t);
24834
+ }
24835
+ _handleInputKeydown(e) {
24836
+ if (e.key === " " || e.key === "Spacebar") return;
24837
+ let t = this._getDisplayedOptions(), n = keyboard_esm_i(e.key);
24838
+ if (n !== "none") switch (e.preventDefault(), n) {
24839
+ case "close":
24840
+ this._closePopup();
24841
+ break;
24842
+ case "first":
24843
+ this._popupOpen || this._openPopup(), this._activeIndex = keyboard_esm_t(t);
24844
+ break;
24845
+ case "last":
24846
+ this._popupOpen || this._openPopup(), this._activeIndex = keyboard_esm_n(t);
24847
+ break;
24848
+ case "next":
24849
+ if (!this._popupOpen) {
24850
+ this._openPopup();
24851
+ break;
24852
+ }
24853
+ this._activeIndex = keyboard_esm_e(this._activeIndex, t, 1);
24854
+ break;
24855
+ case "previous":
24856
+ if (!this._popupOpen) {
24857
+ this._openPopup();
24858
+ break;
24859
+ }
24860
+ this._activeIndex = keyboard_esm_e(this._activeIndex, t, -1);
24861
+ break;
24862
+ case "select":
24863
+ if (!this._popupOpen) {
24864
+ this._openPopup();
24865
+ break;
24866
+ }
24867
+ this._selectActiveOption();
24868
+ break;
24869
+ default: break;
24870
+ }
24871
+ }
24872
+ _getOptionId(e, t) {
24873
+ return `${this._listboxId}-option-${t}-${e.value}`;
24874
+ }
24875
+ _selectValueFromDropdown(e) {
24876
+ let t = this.options.find((t) => t.value === e);
24877
+ this.value = e, this.inputValue = t?.label ?? e, this.dispatchEvent(new CustomEvent("change", {
24878
+ detail: {
24879
+ value: e,
24880
+ label: this.inputValue,
24881
+ option: t
24882
+ },
24883
+ bubbles: !0,
24884
+ composed: !0
24885
+ })), this._closePopup();
24886
+ }
24887
+ _selectActiveOption() {
24888
+ let e = this._getActiveOption();
24889
+ e && !e.disabled && this._selectValueFromDropdown(e.value);
24890
+ }
24891
+ _renderPopup() {
24892
+ let e = this._getDisplayedOptions();
24893
+ return b`
25529
24894
  <div class="popup-box" style="pointer-events: auto; max-height: inherit; overflow: auto;">
25530
24895
  <div class="select-options-section">
25531
- ${(0,_shared_listboxTemplate__WEBPACK_IMPORTED_MODULE_5__/* .renderListbox */ .M)({
25532
- selectedOption,
25533
- activeOption,
25534
- options: popupOptions,
25535
- listboxId: this._listboxId,
25536
- getOptionId: (option, index) => this._getOptionId(option, index),
25537
- onOptionSelect: option => this._selectValueFromDropdown(option.value)
25538
- })}
24896
+ ${listboxTemplate_esm_t({
24897
+ selectedOption: this._getSelectedOption(),
24898
+ activeOption: this._activeIndex >= 0 ? e[this._activeIndex] : void 0,
24899
+ options: e,
24900
+ listboxId: this._listboxId,
24901
+ getOptionId: (e, t) => this._getOptionId(e, t),
24902
+ onOptionSelect: (e) => this._selectValueFromDropdown(e.value)
24903
+ })}
25539
24904
  </div>
25540
24905
  </div>
25541
24906
  `;
25542
- }
25543
- render() {
25544
- const activeOption = this._getActiveOption();
25545
- const activeDescendant = this._popupOpen && activeOption ? this._getOptionId(activeOption, this._activeIndex) : undefined;
25546
- const ariaLabel = this.label ? lit__WEBPACK_IMPORTED_MODULE_0__/* .nothing */ .s6 : this.getAttribute('aria-label') || this.placeholder || 'Combobox';
25547
- return (0,lit__WEBPACK_IMPORTED_MODULE_0__/* .html */ .qy)`
24907
+ }
24908
+ render() {
24909
+ let t = this._getActiveOption(), n = this._popupOpen && t ? this._getOptionId(t, this._activeIndex) : void 0, r = this.label ? A : this.getAttribute("aria-label") || this.placeholder || "Combobox";
24910
+ return b`
25548
24911
  <div class="combobox-root">
25549
- ${this.label ? (0,lit__WEBPACK_IMPORTED_MODULE_0__/* .html */ .qy)`<label class="text-label" for="${this._inputId}">${this.label}</label>` : null}
24912
+ ${this.label ? b`<label class="text-label" for="${this._inputId}">${this.label}</label>` : null}
25550
24913
  <div class="input-field-row">
25551
24914
  <input
25552
24915
  id="${this._inputId}"
@@ -25555,456 +24918,47 @@ class Combobox extends lit__WEBPACK_IMPORTED_MODULE_0__/* .LitElement */ .WF {
25555
24918
  type="text"
25556
24919
  role="combobox"
25557
24920
  aria-autocomplete="list"
25558
- aria-label="${ariaLabel}"
24921
+ aria-label="${r}"
25559
24922
  aria-expanded="${this._popupOpen}"
25560
24923
  aria-controls="${this._listboxId}"
25561
- aria-activedescendant="${activeDescendant ?? ''}"
24924
+ aria-activedescendant="${n ?? ""}"
25562
24925
  placeholder="${this.placeholder}"
25563
24926
  .value="${this.inputValue}"
25564
24927
  @focus="${() => this._openPopup()}"
25565
24928
  @input="${this._handleInputChange}"
25566
- @keydown="${this._handleInputKeydown}"
25567
- />
25568
- <button
25569
- class="dropdown-toggle"
25570
- type="button"
25571
- aria-label="Show options"
25572
- aria-expanded="${this._popupOpen}"
25573
- @click="${() => this._popupOpen ? this._closePopup() : this._openPopup()}"
25574
- >
25575
- ${_shared_downArrow__WEBPACK_IMPORTED_MODULE_2__/* .downArrowIcon */ .n}
25576
- </button>
25577
- </div>
25578
- </div>
25579
- `;
25580
- }
25581
- }
25582
-
25583
- /***/ },
25584
-
25585
- /***/ 9239
25586
- (__unused_webpack_module, __nested_webpack_exports__, __nested_webpack_require_18181__) {
25587
-
25588
- /* harmony export */ __nested_webpack_require_18181__.d(__nested_webpack_exports__, {
25589
- /* harmony export */ n: () => (/* binding */ downArrowIcon)
25590
- /* harmony export */ });
25591
- /* harmony import */ var lit_html__WEBPACK_IMPORTED_MODULE_0__ = __nested_webpack_require_18181__(6752);
25592
-
25593
- const downArrowIcon = (0,lit_html__WEBPACK_IMPORTED_MODULE_0__/* .html */ .qy)`
25594
- <svg xmlns="http://www.w3.org/2000/svg"
25595
- viewBox="0 0 12 7"
25596
- fill="none"
25597
- >
25598
- <path d="M0.679688 0.678955L5.50729 5.50656L10.3349 0.678955" stroke="#6A7282" stroke-width="1.35776" stroke-linecap="round" stroke-linejoin="round"/>
25599
- </svg>
25600
- `;
25601
-
25602
- /***/ },
25603
-
25604
- /***/ 9757
25605
- (__unused_webpack_module, __nested_webpack_exports__, __nested_webpack_require_18852__) {
25606
-
25607
- /* harmony export */ __nested_webpack_require_18852__.d(__nested_webpack_exports__, {
25608
- /* harmony export */ AZ: () => (/* binding */ getFirstEnabledIndex),
25609
- /* harmony export */ Dh: () => (/* binding */ findOptionIndexByValue),
25610
- /* harmony export */ Hf: () => (/* binding */ getListboxActionFromKey),
25611
- /* harmony export */ Xx: () => (/* binding */ getNextEnabledIndex),
25612
- /* harmony export */ mY: () => (/* binding */ getLastEnabledIndex)
25613
- /* harmony export */ });
25614
- /* Move up or down, skip disabled options */
25615
- function getNextEnabledIndex(currentIndex, options, direction) {
25616
- if (!options.length) {
25617
- return -1;
25618
- }
25619
- if (options.every(option => option.disabled)) {
25620
- return -1;
25621
- }
25622
- const optionsCount = options.length;
25623
- let nextIndex = currentIndex;
25624
- do {
25625
- nextIndex = (nextIndex + direction + optionsCount) % optionsCount;
25626
- } while (options[nextIndex].disabled);
25627
- return nextIndex;
25628
- }
25629
-
25630
- /* Handle 'Home' and 'End' keys and initial highlight */
25631
- function getFirstEnabledIndex(options) {
25632
- if (!options.length) {
25633
- return -1;
25634
- }
25635
- return getNextEnabledIndex(-1, options, 1);
25636
- }
25637
- function getLastEnabledIndex(options) {
25638
- if (!options.length) {
25639
- return -1;
25640
- }
25641
- return getNextEnabledIndex(options.length, options, -1);
25642
- }
25643
-
25644
- /* Sync current value to active index */
25645
- function findOptionIndexByValue(options, value) {
25646
- if (value === undefined) {
25647
- return -1;
25648
- }
25649
- return options.findIndex(option => option.value === value);
25650
- }
25651
-
25652
- /* Map keyboard events to actions */
25653
- function getListboxActionFromKey(key) {
25654
- switch (key) {
25655
- case 'ArrowDown':
25656
- return 'next';
25657
- case 'ArrowUp':
25658
- return 'previous';
25659
- case 'Home':
25660
- return 'first';
25661
- case 'End':
25662
- return 'last';
25663
- case 'Enter':
25664
- case ' ':
25665
- return 'select';
25666
- case 'Escape':
25667
- return 'close';
25668
- default:
25669
- return 'none';
25670
- }
25671
- }
25672
-
25673
- /***/ },
25674
-
25675
- /***/ 6457
25676
- (__unused_webpack_module, __nested_webpack_exports__, __nested_webpack_require_20763__) {
25677
-
25678
- /* harmony export */ __nested_webpack_require_20763__.d(__nested_webpack_exports__, {
25679
- /* harmony export */ S: () => (/* binding */ listboxStyles)
25680
- /* harmony export */ });
25681
- /* harmony import */ var lit__WEBPACK_IMPORTED_MODULE_0__ = __nested_webpack_require_20763__(6161);
25682
-
25683
- const listboxStyles = (0,lit__WEBPACK_IMPORTED_MODULE_0__/* .css */ .AH)`
25684
- :host { /* default theme */
25685
- --input-background: var(--color-background, #F8F9FB);
25686
- --item-text: var(--color-text-heading, #000000);
25687
- --item-selected-text: var(--color-primary, #7c4dff);
25688
- --item-hover-background: var(--color-header-menu-item-hover, #e6dcff);
25689
- --item-selected-background: var(--color-header-menu-item-selected, #cbb9ff);
25690
- --listbox-z-index: 1;
25691
- }
25692
-
25693
- :host([theme='dark']) {
25694
- --input-background: var(--color-background, #1A1A1A);
25695
- --item-text: var(--color-text-heading, #F8F9FB);
25696
- --item-selected-text: var(--color-primary, #7c4dff);
25697
- --item-hover-background: var(--color-header-menu-item-hover, #e6dcff);
25698
- --item-selected-background: var(--color-header-menu-item-selected, #cbb9ff);
25699
- --listbox-z-index: 1;
25700
- }
25701
-
25702
- .listbox {
25703
- position: relative;
25704
- top: 0;
25705
- left: 0;
25706
- right: 0;
25707
- display: flex;
25708
- flex-direction: column;
25709
- gap: 0.0625rem;
25710
- margin: 0;
25711
- padding: 0;
25712
- list-style: none;
25713
- border: none;
25714
- border-radius: inherit;
25715
- background: var(--input-background);
25716
- background-color: var(--input-background);
25717
- opacity: 1;
25718
- overflow: hidden;
25719
- padding: 0.25rem;
25720
- z-index: var(--listbox-z-index);
25721
- box-shadow: 0 4px 12px rgba(124, 77, 255, 0.12);
25722
- }
25723
-
25724
- .listbox-item {
25725
- display: flex;
25726
- align-items: center;
25727
- gap: var(--spacing-2xs, 0.625rem);
25728
- width: 100%;
25729
- min-height: calc(var(--font-size-sm, 0.875rem) + 1rem);
25730
- padding: 0.5rem var(--spacing-xs, 0.75rem);
25731
- border: none;
25732
- border-radius: var(--border-radius-sm, 0.2rem);
25733
- background: transparent;
25734
- color: var(--item-text);
25735
- cursor: pointer;
25736
- font: inherit;
25737
- font-size: var(--font-size-sm, 0.875rem);
25738
- font-weight: var(--font-weight-normal, 400);
25739
- line-height: normal;
25740
- text-align: left;
25741
- text-decoration: none;
25742
- box-sizing: border-box;
25743
- }
25744
-
25745
- .listbox-item:hover {
25746
- background: var(--item-hover-background);
25747
- border-radius: var(--border-radius-sm, 0.2rem);
25748
- }
25749
-
25750
- .listbox-item:focus {
25751
- background: var(--item-hover-background);
25752
- border-radius: var(--border-radius-sm, 0.2rem);
25753
- }
25754
-
25755
- .listbox-item-active {
25756
- background: var(--item-selected-background);
25757
- color: var(--item-selected-text);
25758
- border-radius: var(--border-radius-sm, 0.2rem);
25759
- outline: none;
25760
- }
25761
-
25762
- .listbox-item-active:hover,
25763
- .listbox-item-active:focus {
25764
- color: var(--item-text);
25765
- }
25766
-
25767
- .listbox-item-disabled {
25768
- opacity: 0.55;
25769
- cursor: not-allowed;
25770
- }
25771
-
25772
- .listbox-item-disabled:hover {
25773
- background: transparent;
25774
- border-radius: 0;
25775
- }
25776
- `;
25777
-
25778
- /***/ },
25779
-
25780
- /***/ 3337
25781
- (__unused_webpack_module, __nested_webpack_exports__, __nested_webpack_require_23886__) {
25782
-
25783
- /* harmony export */ __nested_webpack_require_23886__.d(__nested_webpack_exports__, {
25784
- /* harmony export */ M: () => (/* binding */ renderListbox)
25785
- /* harmony export */ });
25786
- /* harmony import */ var lit__WEBPACK_IMPORTED_MODULE_0__ = __nested_webpack_require_23886__(6161);
25787
-
25788
- function renderListbox(args) {
25789
- const {
25790
- options,
25791
- selectedOption,
25792
- activeOption,
25793
- listboxId,
25794
- getOptionId,
25795
- onOptionSelect
25796
- } = args;
25797
- return (0,lit__WEBPACK_IMPORTED_MODULE_0__/* .html */ .qy)`
25798
- <ul
25799
- class="listbox"
25800
- id="${listboxId ?? ''}"
25801
- part="listbox"
25802
- role="listbox"
25803
- aria-orientation="vertical"
25804
- >
25805
- ${options.map((option, index) => {
25806
- const isSelected = option.value === selectedOption?.value;
25807
- const isActive = option.value === activeOption?.value;
25808
- const optionId = getOptionId?.(option, index);
25809
- return (0,lit__WEBPACK_IMPORTED_MODULE_0__/* .html */ .qy)`
25810
- <li
25811
- id="${optionId ?? ''}"
25812
- class="listbox-item${isSelected ? ' listbox-item-selected' : ''}${isActive ? ' listbox-item-active' : ''}${option.disabled ? ' listbox-item-disabled' : ''}"
25813
- part="option${isSelected ? ' selected-option' : ''}${isActive ? ' active-option' : ''}${option.disabled ? ' disabled-option' : ''}"
25814
- role="option"
25815
- aria-selected="${isSelected}"
25816
- aria-disabled="${option.disabled ? 'true' : 'false'}"
25817
- @click="${() => {
25818
- if (!option.disabled) {
25819
- onOptionSelect(option);
25820
- }
25821
- }}"
25822
- >
25823
- ${option.label}
25824
- </li>
25825
- `;
25826
- })}
25827
- </ul>
25828
- `;
25829
- }
25830
-
25831
- /***/ },
25832
-
25833
- /***/ 3826
25834
- (__unused_webpack___webpack_module__, __nested_webpack_exports__, __nested_webpack_require_25563__) {
25835
-
25836
- /* harmony export */ __nested_webpack_require_25563__.d(__nested_webpack_exports__, {
25837
- /* harmony export */ AH: () => (/* binding */ i),
25838
- /* harmony export */ Rf: () => (/* binding */ S),
25839
- /* harmony export */ sk: () => (/* binding */ c)
25840
- /* harmony export */ });
25841
- /* unused harmony exports CSSResult, supportsAdoptingStyleSheets, unsafeCSS */
25842
- /**
25843
- * @license
25844
- * Copyright 2019 Google LLC
25845
- * SPDX-License-Identifier: BSD-3-Clause
25846
- */
25847
- const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,s=Symbol(),o=new WeakMap;class n{constructor(t,e,o){if(this._$cssResult$=!0,o!==s)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const s=this.t;if(e&&void 0===t){const e=void 0!==s&&1===s.length;e&&(t=o.get(s)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),e&&o.set(s,t))}return t}toString(){return this.cssText}}const r=t=>new n("string"==typeof t?t:t+"",void 0,s),i=(t,...e)=>{const o=1===t.length?t[0]:e.reduce((e,s,o)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+t[o+1],t[0]);return new n(o,t,s)},S=(s,o)=>{if(e)s.adoptedStyleSheets=o.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(const e of o){const o=document.createElement("style"),n=t.litNonce;void 0!==n&&o.setAttribute("nonce",n),o.textContent=e.cssText,s.appendChild(o)}},c=e?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const s of t.cssRules)e+=s.cssText;return r(e)})(t):t;
25848
- //# sourceMappingURL=css-tag.js.map
25849
-
25850
-
25851
- /***/ },
25852
-
25853
- /***/ 8760
25854
- (__unused_webpack___webpack_module__, __nested_webpack_exports__, __nested_webpack_require_27458__) {
25855
-
25856
- /* harmony export */ __nested_webpack_require_27458__.d(__nested_webpack_exports__, {
25857
- /* harmony export */ AH: () => (/* reexport safe */ _css_tag_js__WEBPACK_IMPORTED_MODULE_0__.AH),
25858
- /* harmony export */ mN: () => (/* binding */ y)
25859
- /* harmony export */ });
25860
- /* unused harmony exports defaultConverter, notEqual */
25861
- /* harmony import */ var _css_tag_js__WEBPACK_IMPORTED_MODULE_0__ = __nested_webpack_require_27458__(3826);
25862
-
25863
- /**
25864
- * @license
25865
- * Copyright 2017 Google LLC
25866
- * SPDX-License-Identifier: BSD-3-Clause
25867
- */const{is:i,defineProperty:e,getOwnPropertyDescriptor:h,getOwnPropertyNames:r,getOwnPropertySymbols:o,getPrototypeOf:n}=Object,a=globalThis,c=a.trustedTypes,l=c?c.emptyScript:"",p=a.reactiveElementPolyfillSupport,d=(t,s)=>t,u={toAttribute(t,s){switch(s){case Boolean:t=t?l:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,s){let i=t;switch(s){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t)}catch(t){i=null}}return i}},f=(t,s)=>!i(t,s),b={attribute:!0,type:String,converter:u,reflect:!1,useDefault:!1,hasChanged:f};Symbol.metadata??=Symbol("metadata"),a.litPropertyMetadata??=new WeakMap;class y extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,s=b){if(s.state&&(s.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((s=Object.create(s)).wrapped=!0),this.elementProperties.set(t,s),!s.noAccessor){const i=Symbol(),h=this.getPropertyDescriptor(t,i,s);void 0!==h&&e(this.prototype,t,h)}}static getPropertyDescriptor(t,s,i){const{get:e,set:r}=h(this.prototype,t)??{get(){return this[s]},set(t){this[s]=t}};return{get:e,set(s){const h=e?.call(this);r?.call(this,s),this.requestUpdate(t,h,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??b}static _$Ei(){if(this.hasOwnProperty(d("elementProperties")))return;const t=n(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(d("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(d("properties"))){const t=this.properties,s=[...r(t),...o(t)];for(const i of s)this.createProperty(i,t[i])}const t=this[Symbol.metadata];if(null!==t){const s=litPropertyMetadata.get(t);if(void 0!==s)for(const[t,i]of s)this.elementProperties.set(t,i)}this._$Eh=new Map;for(const[t,s]of this.elementProperties){const i=this._$Eu(t,s);void 0!==i&&this._$Eh.set(i,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(s){const i=[];if(Array.isArray(s)){const e=new Set(s.flat(1/0).reverse());for(const s of e)i.unshift((0,_css_tag_js__WEBPACK_IMPORTED_MODULE_0__/* .getCompatibleStyle */ .sk)(s))}else void 0!==s&&i.push((0,_css_tag_js__WEBPACK_IMPORTED_MODULE_0__/* .getCompatibleStyle */ .sk)(s));return i}static _$Eu(t,s){const i=s.attribute;return!1===i?void 0:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(t=>t(this))}addController(t){(this._$EO??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){const t=new Map,s=this.constructor.elementProperties;for(const i of s.keys())this.hasOwnProperty(i)&&(t.set(i,this[i]),delete this[i]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return (0,_css_tag_js__WEBPACK_IMPORTED_MODULE_0__/* .adoptStyles */ .Rf)(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(t=>t.hostConnected?.())}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach(t=>t.hostDisconnected?.())}attributeChangedCallback(t,s,i){this._$AK(t,i)}_$ET(t,s){const i=this.constructor.elementProperties.get(t),e=this.constructor._$Eu(t,i);if(void 0!==e&&!0===i.reflect){const h=(void 0!==i.converter?.toAttribute?i.converter:u).toAttribute(s,i.type);this._$Em=t,null==h?this.removeAttribute(e):this.setAttribute(e,h),this._$Em=null}}_$AK(t,s){const i=this.constructor,e=i._$Eh.get(t);if(void 0!==e&&this._$Em!==e){const t=i.getPropertyOptions(e),h="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:u;this._$Em=e;const r=h.fromAttribute(s,t.type);this[e]=r??this._$Ej?.get(e)??r,this._$Em=null}}requestUpdate(t,s,i,e=!1,h){if(void 0!==t){const r=this.constructor;if(!1===e&&(h=this[t]),i??=r.getPropertyOptions(t),!((i.hasChanged??f)(h,s)||i.useDefault&&i.reflect&&h===this._$Ej?.get(t)&&!this.hasAttribute(r._$Eu(t,i))))return;this.C(t,s,i)}!1===this.isUpdatePending&&(this._$ES=this._$EP())}C(t,s,{useDefault:i,reflect:e,wrapped:h},r){i&&!(this._$Ej??=new Map).has(t)&&(this._$Ej.set(t,r??s??this[t]),!0!==h||void 0!==r)||(this._$AL.has(t)||(this.hasUpdated||i||(s=void 0),this._$AL.set(t,s)),!0===e&&this._$Em!==t&&(this._$Eq??=new Set).add(t))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,s]of this._$Ep)this[t]=s;this._$Ep=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[s,i]of t){const{wrapped:t}=i,e=this[s];!0!==t||this._$AL.has(s)||void 0===e||this.C(s,void 0,i,e)}}let t=!1;const s=this._$AL;try{t=this.shouldUpdate(s),t?(this.willUpdate(s),this._$EO?.forEach(t=>t.hostUpdate?.()),this.update(s)):this._$EM()}catch(s){throw t=!1,this._$EM(),s}t&&this._$AE(s)}willUpdate(t){}_$AE(t){this._$EO?.forEach(t=>t.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&=this._$Eq.forEach(t=>this._$ET(t,this[t])),this._$EM()}updated(t){}firstUpdated(t){}}y.elementStyles=[],y.shadowRootOptions={mode:"open"},y[d("elementProperties")]=new Map,y[d("finalized")]=new Map,p?.({ReactiveElement:y}),(a.reactiveElementVersions??=[]).push("2.1.2");
25868
- //# sourceMappingURL=reactive-element.js.map
25869
-
25870
-
25871
- /***/ },
25872
-
25873
- /***/ 5228
25874
- (__unused_webpack___webpack_module__, __nested_webpack_exports__, __nested_webpack_require_34221__) {
25875
-
25876
- /* harmony export */ __nested_webpack_require_34221__.d(__nested_webpack_exports__, {
25877
- /* harmony export */ AH: () => (/* reexport safe */ _lit_reactive_element__WEBPACK_IMPORTED_MODULE_0__.AH),
25878
- /* harmony export */ WF: () => (/* binding */ i),
25879
- /* harmony export */ qy: () => (/* reexport safe */ lit_html__WEBPACK_IMPORTED_MODULE_1__.qy),
25880
- /* harmony export */ s6: () => (/* reexport safe */ lit_html__WEBPACK_IMPORTED_MODULE_1__.s6)
25881
- /* harmony export */ });
25882
- /* unused harmony export _$LE */
25883
- /* harmony import */ var _lit_reactive_element__WEBPACK_IMPORTED_MODULE_0__ = __nested_webpack_require_34221__(8760);
25884
- /* harmony import */ var lit_html__WEBPACK_IMPORTED_MODULE_1__ = __nested_webpack_require_34221__(6752);
25885
-
25886
- /**
25887
- * @license
25888
- * Copyright 2017 Google LLC
25889
- * SPDX-License-Identifier: BSD-3-Clause
25890
- */const s=globalThis;class i extends _lit_reactive_element__WEBPACK_IMPORTED_MODULE_0__/* .ReactiveElement */ .mN{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){const t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){const r=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=(0,lit_html__WEBPACK_IMPORTED_MODULE_1__/* .render */ .XX)(r,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return lit_html__WEBPACK_IMPORTED_MODULE_1__/* .noChange */ .c0}}i._$litElement$=!0,i["finalized"]=!0,s.litElementHydrateSupport?.({LitElement:i});const o=s.litElementPolyfillSupport;o?.({LitElement:i});const n={_$AK:(t,e,r)=>{t._$AK(e,r)},_$AL:t=>t._$AL};(s.litElementVersions??=[]).push("4.2.2");
25891
- //# sourceMappingURL=lit-element.js.map
25892
-
25893
-
25894
- /***/ },
25895
-
25896
- /***/ 6752
25897
- (__unused_webpack___webpack_module__, __nested_webpack_exports__, __nested_webpack_require_36119__) {
25898
-
25899
- /* harmony export */ __nested_webpack_require_36119__.d(__nested_webpack_exports__, {
25900
- /* harmony export */ XX: () => (/* binding */ D),
25901
- /* harmony export */ c0: () => (/* binding */ E),
25902
- /* harmony export */ qy: () => (/* binding */ b),
25903
- /* harmony export */ s6: () => (/* binding */ A)
25904
- /* harmony export */ });
25905
- /* unused harmony exports _$LH, mathml, svg */
25906
- /**
25907
- * @license
25908
- * Copyright 2017 Google LLC
25909
- * SPDX-License-Identifier: BSD-3-Clause
25910
- */
25911
- const t=globalThis,i=t=>t,s=t.trustedTypes,e=s?s.createPolicy("lit-html",{createHTML:t=>t}):void 0,h="$lit$",o=`lit$${Math.random().toFixed(9).slice(2)}$`,n="?"+o,r=`<${n}>`,l=document,c=()=>l.createComment(""),a=t=>null===t||"object"!=typeof t&&"function"!=typeof t,u=Array.isArray,d=t=>u(t)||"function"==typeof t?.[Symbol.iterator],f="[ \t\n\f\r]",v=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,_=/-->/g,m=/>/g,p=RegExp(`>|${f}(?:([^\\s"'>=/]+)(${f}*=${f}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),g=/'/g,$=/"/g,y=/^(?:script|style|textarea|title)$/i,x=t=>(i,...s)=>({_$litType$:t,strings:i,values:s}),b=x(1),w=x(2),T=x(3),E=Symbol.for("lit-noChange"),A=Symbol.for("lit-nothing"),C=new WeakMap,P=l.createTreeWalker(l,129);function V(t,i){if(!u(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==e?e.createHTML(i):i}const N=(t,i)=>{const s=t.length-1,e=[];let n,l=2===i?"<svg>":3===i?"<math>":"",c=v;for(let i=0;i<s;i++){const s=t[i];let a,u,d=-1,f=0;for(;f<s.length&&(c.lastIndex=f,u=c.exec(s),null!==u);)f=c.lastIndex,c===v?"!--"===u[1]?c=_:void 0!==u[1]?c=m:void 0!==u[2]?(y.test(u[2])&&(n=RegExp("</"+u[2],"g")),c=p):void 0!==u[3]&&(c=p):c===p?">"===u[0]?(c=n??v,d=-1):void 0===u[1]?d=-2:(d=c.lastIndex-u[2].length,a=u[1],c=void 0===u[3]?p:'"'===u[3]?$:g):c===$||c===g?c=p:c===_||c===m?c=v:(c=p,n=void 0);const x=c===p&&t[i+1].startsWith("/>")?" ":"";l+=c===v?s+r:d>=0?(e.push(a),s.slice(0,d)+h+s.slice(d)+o+x):s+o+(-2===d?i:x)}return[V(t,l+(t[s]||"<?>")+(2===i?"</svg>":3===i?"</math>":"")),e]};class S{constructor({strings:t,_$litType$:i},e){let r;this.parts=[];let l=0,a=0;const u=t.length-1,d=this.parts,[f,v]=N(t,i);if(this.el=S.createElement(f,e),P.currentNode=this.el.content,2===i||3===i){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(r=P.nextNode())&&d.length<u;){if(1===r.nodeType){if(r.hasAttributes())for(const t of r.getAttributeNames())if(t.endsWith(h)){const i=v[a++],s=r.getAttribute(t).split(o),e=/([.?@])?(.*)/.exec(i);d.push({type:1,index:l,name:e[2],strings:s,ctor:"."===e[1]?I:"?"===e[1]?L:"@"===e[1]?z:H}),r.removeAttribute(t)}else t.startsWith(o)&&(d.push({type:6,index:l}),r.removeAttribute(t));if(y.test(r.tagName)){const t=r.textContent.split(o),i=t.length-1;if(i>0){r.textContent=s?s.emptyScript:"";for(let s=0;s<i;s++)r.append(t[s],c()),P.nextNode(),d.push({type:2,index:++l});r.append(t[i],c())}}}else if(8===r.nodeType)if(r.data===n)d.push({type:2,index:l});else{let t=-1;for(;-1!==(t=r.data.indexOf(o,t+1));)d.push({type:7,index:l}),t+=o.length-1}l++}}static createElement(t,i){const s=l.createElement("template");return s.innerHTML=t,s}}function M(t,i,s=t,e){if(i===E)return i;let h=void 0!==e?s._$Co?.[e]:s._$Cl;const o=a(i)?void 0:i._$litDirective$;return h?.constructor!==o&&(h?._$AO?.(!1),void 0===o?h=void 0:(h=new o(t),h._$AT(t,s,e)),void 0!==e?(s._$Co??=[])[e]=h:s._$Cl=h),void 0!==h&&(i=M(t,h._$AS(t,i.values),h,e)),i}class R{constructor(t,i){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:i},parts:s}=this._$AD,e=(t?.creationScope??l).importNode(i,!0);P.currentNode=e;let h=P.nextNode(),o=0,n=0,r=s[0];for(;void 0!==r;){if(o===r.index){let i;2===r.type?i=new k(h,h.nextSibling,this,t):1===r.type?i=new r.ctor(h,r.name,r.strings,this,t):6===r.type&&(i=new Z(h,this,t)),this._$AV.push(i),r=s[++n]}o!==r?.index&&(h=P.nextNode(),o++)}return P.currentNode=l,e}p(t){let i=0;for(const s of this._$AV)void 0!==s&&(void 0!==s.strings?(s._$AI(t,s,i),i+=s.strings.length-2):s._$AI(t[i])),i++}}class k{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,i,s,e){this.type=2,this._$AH=A,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=s,this.options=e,this._$Cv=e?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const i=this._$AM;return void 0!==i&&11===t?.nodeType&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=M(this,t,i),a(t)?t===A||null==t||""===t?(this._$AH!==A&&this._$AR(),this._$AH=A):t!==this._$AH&&t!==E&&this._(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):d(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==A&&a(this._$AH)?this._$AA.nextSibling.data=t:this.T(l.createTextNode(t)),this._$AH=t}$(t){const{values:i,_$litType$:s}=t,e="number"==typeof s?this._$AC(t):(void 0===s.el&&(s.el=S.createElement(V(s.h,s.h[0]),this.options)),s);if(this._$AH?._$AD===e)this._$AH.p(i);else{const t=new R(e,this),s=t.u(this.options);t.p(i),this.T(s),this._$AH=t}}_$AC(t){let i=C.get(t.strings);return void 0===i&&C.set(t.strings,i=new S(t)),i}k(t){u(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let s,e=0;for(const h of t)e===i.length?i.push(s=new k(this.O(c()),this.O(c()),this,this.options)):s=i[e],s._$AI(h),e++;e<i.length&&(this._$AR(s&&s._$AB.nextSibling,e),i.length=e)}_$AR(t=this._$AA.nextSibling,s){for(this._$AP?.(!1,!0,s);t!==this._$AB;){const s=i(t).nextSibling;i(t).remove(),t=s}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t))}}class H{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,i,s,e,h){this.type=1,this._$AH=A,this._$AN=void 0,this.element=t,this.name=i,this._$AM=e,this.options=h,s.length>2||""!==s[0]||""!==s[1]?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=A}_$AI(t,i=this,s,e){const h=this.strings;let o=!1;if(void 0===h)t=M(this,t,i,0),o=!a(t)||t!==this._$AH&&t!==E,o&&(this._$AH=t);else{const e=t;let n,r;for(t=h[0],n=0;n<h.length-1;n++)r=M(this,e[s+n],i,n),r===E&&(r=this._$AH[n]),o||=!a(r)||r!==this._$AH[n],r===A?t=A:t!==A&&(t+=(r??"")+h[n+1]),this._$AH[n]=r}o&&!e&&this.j(t)}j(t){t===A?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class I extends H{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===A?void 0:t}}class L extends H{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==A)}}class z extends H{constructor(t,i,s,e,h){super(t,i,s,e,h),this.type=5}_$AI(t,i=this){if((t=M(this,t,i,0)??A)===E)return;const s=this._$AH,e=t===A&&s!==A||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,h=t!==A&&(s===A||e);e&&this.element.removeEventListener(this.name,this,s),h&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}}class Z{constructor(t,i,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=i,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(t){M(this,t)}}const j={M:h,P:o,A:n,C:1,L:N,R,D:d,V:M,I:k,H,N:L,U:z,B:I,F:Z},B=t.litHtmlPolyfillSupport;B?.(S,k),(t.litHtmlVersions??=[]).push("3.3.2");const D=(t,i,s)=>{const e=s?.renderBefore??i;let h=e._$litPart$;if(void 0===h){const t=s?.renderBefore??null;e._$litPart$=h=new k(i.insertBefore(c(),t),t,void 0,s??{})}return h._$AI(t),h};
25912
- //# sourceMappingURL=lit-html.js.map
25913
-
25914
-
25915
- /***/ },
25916
-
25917
- /***/ 3380
25918
- (__unused_webpack___webpack_module__, __nested_webpack_exports__, __nested_webpack_require_43791__) {
25919
-
25920
- /* harmony export */ __nested_webpack_require_43791__.d(__nested_webpack_exports__, {
25921
- /* harmony export */ XX: () => (/* reexport safe */ lit_html__WEBPACK_IMPORTED_MODULE_0__.XX)
25922
- /* harmony export */ });
25923
- /* harmony import */ var lit_html__WEBPACK_IMPORTED_MODULE_0__ = __nested_webpack_require_43791__(6752);
25924
-
25925
- //# sourceMappingURL=html.js.map
25926
-
25927
-
25928
- /***/ },
25929
-
25930
- /***/ 6161
25931
- (__unused_webpack___webpack_module__, __nested_webpack_exports__, __nested_webpack_require_44210__) {
25932
-
25933
- /* harmony export */ __nested_webpack_require_44210__.d(__nested_webpack_exports__, {
25934
- /* harmony export */ AH: () => (/* reexport safe */ lit_element_lit_element_js__WEBPACK_IMPORTED_MODULE_2__.AH),
25935
- /* harmony export */ WF: () => (/* reexport safe */ lit_element_lit_element_js__WEBPACK_IMPORTED_MODULE_2__.WF),
25936
- /* harmony export */ qy: () => (/* reexport safe */ lit_element_lit_element_js__WEBPACK_IMPORTED_MODULE_2__.qy),
25937
- /* harmony export */ s6: () => (/* reexport safe */ lit_element_lit_element_js__WEBPACK_IMPORTED_MODULE_2__.s6)
25938
- /* harmony export */ });
25939
- /* harmony import */ var _lit_reactive_element__WEBPACK_IMPORTED_MODULE_0__ = __nested_webpack_require_44210__(8760);
25940
- /* harmony import */ var lit_html__WEBPACK_IMPORTED_MODULE_1__ = __nested_webpack_require_44210__(6752);
25941
- /* harmony import */ var lit_element_lit_element_js__WEBPACK_IMPORTED_MODULE_2__ = __nested_webpack_require_44210__(5228);
24929
+ @keydown="${this._handleInputKeydown}"
24930
+ />
24931
+ <button
24932
+ class="dropdown-toggle"
24933
+ type="button"
24934
+ aria-label="Show options"
24935
+ aria-expanded="${this._popupOpen}"
24936
+ @click="${() => this._popupOpen ? this._closePopup() : this._openPopup()}"
24937
+ >
24938
+ ${downArrow_esm_t}
24939
+ </button>
24940
+ </div>
24941
+ </div>
24942
+ `;
24943
+ }
24944
+ };
24945
+ //#endregion
25942
24946
 
25943
- //# sourceMappingURL=index.js.map
25944
24947
 
24948
+ //# sourceMappingURL=Combobox.esm.js.map
24949
+ ;// ./node_modules/solid-ui/dist/v2/components/forms/combobox/index.esm.js
25945
24950
 
25946
- /***/ }
24951
+ //#region src/v2/components/forms/combobox/index.ts
24952
+ var combobox_index_esm_t = "solid-ui-combobox";
24953
+ customElements.get(combobox_index_esm_t) || customElements.define(combobox_index_esm_t, Combobox_esm_p);
24954
+ //#endregion
25947
24955
 
25948
- /******/ });
25949
- /************************************************************************/
25950
- /******/ // The module cache
25951
- /******/ var combobox_index_esm_webpack_module_cache_ = {};
25952
- /******/
25953
- /******/ // The require function
25954
- /******/ function __nested_webpack_require_45350__(moduleId) {
25955
- /******/ // Check if module is in cache
25956
- /******/ var cachedModule = combobox_index_esm_webpack_module_cache_[moduleId];
25957
- /******/ if (cachedModule !== undefined) {
25958
- /******/ return cachedModule.exports;
25959
- /******/ }
25960
- /******/ // Create a new module (and put it into the cache)
25961
- /******/ var module = combobox_index_esm_webpack_module_cache_[moduleId] = {
25962
- /******/ // no module.id needed
25963
- /******/ // no module.loaded needed
25964
- /******/ exports: {}
25965
- /******/ };
25966
- /******/
25967
- /******/ // Execute the module function
25968
- /******/ combobox_index_esm_webpack_modules_[moduleId](module, module.exports, __nested_webpack_require_45350__);
25969
- /******/
25970
- /******/ // Return the exports of the module
25971
- /******/ return module.exports;
25972
- /******/ }
25973
- /******/
25974
- /************************************************************************/
25975
- /******/ /* webpack/runtime/define property getters */
25976
- /******/ (() => {
25977
- /******/ // define getter functions for harmony exports
25978
- /******/ __nested_webpack_require_45350__.d = (exports, definition) => {
25979
- /******/ for(var key in definition) {
25980
- /******/ if(__nested_webpack_require_45350__.o(definition, key) && !__nested_webpack_require_45350__.o(exports, key)) {
25981
- /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
25982
- /******/ }
25983
- /******/ }
25984
- /******/ };
25985
- /******/ })();
25986
- /******/
25987
- /******/ /* webpack/runtime/hasOwnProperty shorthand */
25988
- /******/ (() => {
25989
- /******/ __nested_webpack_require_45350__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
25990
- /******/ })();
25991
- /******/
25992
- /************************************************************************/
25993
- var combobox_index_esm_nested_webpack_exports_ = {};
25994
- /* harmony export */ __nested_webpack_require_45350__.d(combobox_index_esm_nested_webpack_exports_, {
25995
- /* harmony export */ G: () => (/* reexport safe */ _Combobox__WEBPACK_IMPORTED_MODULE_0__.G)
25996
- /* harmony export */ });
25997
- /* harmony import */ var _Combobox__WEBPACK_IMPORTED_MODULE_0__ = __nested_webpack_require_45350__(1865);
24956
+ //# sourceMappingURL=index.esm.js.map
24957
+ ;// ./node_modules/solid-ui/dist/components/combobox/index.esm.js
25998
24958
 
25999
24959
 
26000
- const COMBOBOX_TAG_NAME = 'solid-ui-combobox';
26001
- if (!customElements.get(COMBOBOX_TAG_NAME)) {
26002
- customElements.define(COMBOBOX_TAG_NAME, _Combobox__WEBPACK_IMPORTED_MODULE_0__/* .Combobox */ .G);
26003
- }
26004
- const __webpack_exports__Combobox = combobox_index_esm_nested_webpack_exports_.G;
26005
24960
 
26006
24961
 
26007
- //# sourceMappingURL=index.esm.js.map
26008
24962
  ;// ./src/sections/languages/mutations.ts
26009
24963
 
26010
24964
 
@@ -27939,7 +26893,19 @@ function sanitizeResumeFieldValue(value) {
27939
26893
  return sanitizeTextValue(value);
27940
26894
  }
27941
26895
  function normalizeResumeOrganizationPublicId(value) {
27942
- return sanitizeResumeFieldValue(value);
26896
+ const cleaned = sanitizeResumeFieldValue(value);
26897
+ return isAbsoluteUri(cleaned) ? cleaned : '';
26898
+ }
26899
+ function isAbsoluteUri(value) {
26900
+ if (!value)
26901
+ return false;
26902
+ try {
26903
+ new URL(value);
26904
+ return true;
26905
+ }
26906
+ catch {
26907
+ return false;
26908
+ }
27943
26909
  }
27944
26910
  function buildWikidataOrganizationSearchUrl(name) {
27945
26911
  return WIKIDATA_ORGANIZATION_SEARCH_URI
@@ -29791,133 +28757,108 @@ var HeadingSection_update = injectStylesIntoStyleTag_default()(HeadingSection/*
29791
28757
 
29792
28758
  /* harmony default export */ const heading_HeadingSection = (HeadingSection/* default */.A && HeadingSection/* default */.A.locals ? HeadingSection/* default */.A.locals : undefined);
29793
28759
 
29794
- ;// ./node_modules/solid-ui/dist/components/photoCapture/index.esm.js
29795
- /******/ var photoCapture_index_esm_webpack_modules_ = ({
29796
-
29797
- /***/ 3604
29798
- (__unused_webpack_module, __nested_webpack_exports__, __nested_webpack_require_97__) {
29799
-
29800
- /* harmony export */ __nested_webpack_require_97__.d(__nested_webpack_exports__, {
29801
- /* harmony export */ v: () => (/* binding */ PhotoCapture)
29802
- /* harmony export */ });
29803
- /* harmony import */ var lit__WEBPACK_IMPORTED_MODULE_0__ = __nested_webpack_require_97__(6161);
29804
-
29805
- /* The original code was written by Sir Tim Berners-Lee. It was made into a
29806
- web component by AI Model GPT-5.4
29807
- Prompt: Take the code from src/media/media-capture.ts and make it a
29808
- web component. Make it work in forms as well as not. Make it
29809
- configurable and follow LoginButton. */
29810
-
29811
- const DEFAULT_CAPTURE_FORMAT = 'image/png';
29812
- class PhotoCapture extends lit__WEBPACK_IMPORTED_MODULE_0__/* .LitElement */ .WF {
29813
- static formAssociated = true;
29814
- static properties = {
29815
- label: {
29816
- type: String,
29817
- reflect: true
29818
- },
29819
- heading: {
29820
- type: String,
29821
- reflect: true
29822
- },
29823
- captureLabel: {
29824
- type: String,
29825
- attribute: 'capture-label',
29826
- reflect: true
29827
- },
29828
- confirmLabel: {
29829
- type: String,
29830
- attribute: 'confirm-label',
29831
- reflect: true
29832
- },
29833
- retakeLabel: {
29834
- type: String,
29835
- attribute: 'retake-label',
29836
- reflect: true
29837
- },
29838
- cancelLabel: {
29839
- type: String,
29840
- attribute: 'cancel-label',
29841
- reflect: true
29842
- },
29843
- presentation: {
29844
- type: String,
29845
- reflect: true
29846
- },
29847
- theme: {
29848
- type: String,
29849
- reflect: true
29850
- },
29851
- facingMode: {
29852
- type: String,
29853
- attribute: 'facing-mode',
29854
- reflect: true
29855
- },
29856
- constraints: {
29857
- type: String,
29858
- reflect: true
29859
- },
29860
- captureFormat: {
29861
- type: String,
29862
- attribute: 'capture-format',
29863
- reflect: true
29864
- },
29865
- captureQuality: {
29866
- type: Number,
29867
- attribute: 'capture-quality'
29868
- },
29869
- open: {
29870
- type: Boolean,
29871
- reflect: true
29872
- },
29873
- disabled: {
29874
- type: Boolean,
29875
- reflect: true
29876
- },
29877
- name: {
29878
- type: String,
29879
- reflect: true
29880
- },
29881
- required: {
29882
- type: Boolean,
29883
- reflect: true
29884
- },
29885
- showTrigger: {
29886
- type: Boolean,
29887
- attribute: 'show-trigger',
29888
- reflect: true
29889
- },
29890
- showCancelButton: {
29891
- type: Boolean,
29892
- attribute: 'show-cancel-button',
29893
- reflect: true
29894
- },
29895
- autoCloseOnCapture: {
29896
- type: Boolean,
29897
- attribute: 'auto-close-on-capture'
29898
- },
29899
- fileNamePrefix: {
29900
- type: String,
29901
- attribute: 'file-name-prefix',
29902
- reflect: true
29903
- },
29904
- value: {
29905
- attribute: false
29906
- },
29907
- mediaConstraints: {
29908
- attribute: false
29909
- },
29910
- _errorMessage: {
29911
- state: true
29912
- },
29913
- _previewUrl: {
29914
- state: true
29915
- },
29916
- _startingPreview: {
29917
- state: true
29918
- }
29919
- };
29920
- static styles = (0,lit__WEBPACK_IMPORTED_MODULE_0__/* .css */ .AH)`
28760
+ ;// ./node_modules/solid-ui/dist/v2/components/media/photoCapture/PhotoCapture.esm.js
28761
+
28762
+ //#region src/v2/components/media/photoCapture/PhotoCapture.ts
28763
+ var PhotoCapture_esm_i = "image/png", PhotoCapture_esm_a = class extends lit_element_i {
28764
+ static formAssociated = !0;
28765
+ static properties = {
28766
+ label: {
28767
+ type: String,
28768
+ reflect: !0
28769
+ },
28770
+ heading: {
28771
+ type: String,
28772
+ reflect: !0
28773
+ },
28774
+ captureLabel: {
28775
+ type: String,
28776
+ attribute: "capture-label",
28777
+ reflect: !0
28778
+ },
28779
+ confirmLabel: {
28780
+ type: String,
28781
+ attribute: "confirm-label",
28782
+ reflect: !0
28783
+ },
28784
+ retakeLabel: {
28785
+ type: String,
28786
+ attribute: "retake-label",
28787
+ reflect: !0
28788
+ },
28789
+ cancelLabel: {
28790
+ type: String,
28791
+ attribute: "cancel-label",
28792
+ reflect: !0
28793
+ },
28794
+ presentation: {
28795
+ type: String,
28796
+ reflect: !0
28797
+ },
28798
+ theme: {
28799
+ type: String,
28800
+ reflect: !0
28801
+ },
28802
+ facingMode: {
28803
+ type: String,
28804
+ attribute: "facing-mode",
28805
+ reflect: !0
28806
+ },
28807
+ constraints: {
28808
+ type: String,
28809
+ reflect: !0
28810
+ },
28811
+ captureFormat: {
28812
+ type: String,
28813
+ attribute: "capture-format",
28814
+ reflect: !0
28815
+ },
28816
+ captureQuality: {
28817
+ type: Number,
28818
+ attribute: "capture-quality"
28819
+ },
28820
+ open: {
28821
+ type: Boolean,
28822
+ reflect: !0
28823
+ },
28824
+ disabled: {
28825
+ type: Boolean,
28826
+ reflect: !0
28827
+ },
28828
+ name: {
28829
+ type: String,
28830
+ reflect: !0
28831
+ },
28832
+ required: {
28833
+ type: Boolean,
28834
+ reflect: !0
28835
+ },
28836
+ showTrigger: {
28837
+ type: Boolean,
28838
+ attribute: "show-trigger",
28839
+ reflect: !0
28840
+ },
28841
+ showCancelButton: {
28842
+ type: Boolean,
28843
+ attribute: "show-cancel-button",
28844
+ reflect: !0
28845
+ },
28846
+ autoCloseOnCapture: {
28847
+ type: Boolean,
28848
+ attribute: "auto-close-on-capture"
28849
+ },
28850
+ fileNamePrefix: {
28851
+ type: String,
28852
+ attribute: "file-name-prefix",
28853
+ reflect: !0
28854
+ },
28855
+ value: { attribute: !1 },
28856
+ mediaConstraints: { attribute: !1 },
28857
+ _errorMessage: { state: !0 },
28858
+ _previewUrl: { state: !0 },
28859
+ _startingPreview: { state: !0 }
28860
+ };
28861
+ static styles = css_tag_i`
29921
28862
  :host {
29922
28863
  display: block;
29923
28864
  --photo-capture-trigger-background: var(--lavender-900, #7c4cff);
@@ -30118,397 +29059,244 @@ class PhotoCapture extends lit__WEBPACK_IMPORTED_MODULE_0__/* .LitElement */ .WF
30118
29059
  border-color: transparent;
30119
29060
  }
30120
29061
  `;
30121
- _value = null;
30122
- _stream = null;
30123
- _internals;
30124
- _associatedForm = null;
30125
- _handleFormData = event => {
30126
- const formData = event.formData;
30127
- if (!formData || !this.name || !this.value || this.disabled) return;
30128
- formData.append(this.name, this.value, this.value.name);
30129
- };
30130
- _handleFormReset = () => {
30131
- this._clearValue({
30132
- emitEvents: false
30133
- });
30134
- if (this.open) {
30135
- this._queuePreviewStart();
30136
- }
30137
- };
30138
- get _supportsFormInternals() {
30139
- return !!this._internals && typeof this._internals.setFormValue === 'function';
30140
- }
30141
- constructor() {
30142
- super();
30143
- this.label = 'Take Photo';
30144
- this.heading = 'Take a photo';
30145
- this.captureLabel = 'Take Photo';
30146
- this.confirmLabel = 'Use Photo';
30147
- this.retakeLabel = 'Retake';
30148
- this.cancelLabel = 'Cancel';
30149
- this.presentation = 'inline';
30150
- this.theme = 'light';
30151
- this.facingMode = 'user';
30152
- this.constraints = '';
30153
- this.captureFormat = DEFAULT_CAPTURE_FORMAT;
30154
- this.captureQuality = undefined;
30155
- this.open = false;
30156
- this.disabled = false;
30157
- this.name = '';
30158
- this.required = false;
30159
- this.showTrigger = false;
30160
- this.showCancelButton = true;
30161
- this.autoCloseOnCapture = false;
30162
- this.fileNamePrefix = '';
30163
- this.mediaConstraints = undefined;
30164
- this._errorMessage = '';
30165
- this._previewUrl = '';
30166
- this._startingPreview = false;
30167
- this._internals = typeof this.attachInternals === 'function' ? this.attachInternals() : null;
30168
- }
30169
- get value() {
30170
- return this._value;
30171
- }
30172
- set value(nextValue) {
30173
- const normalizedValue = nextValue instanceof File ? nextValue : null;
30174
- const previousValue = this._value;
30175
- if (previousValue === normalizedValue) return;
30176
- this._value = normalizedValue;
30177
- this._syncPreviewFromValue(normalizedValue);
30178
- this._syncFormValue();
30179
- this._syncValidity();
30180
- this.requestUpdate('value', previousValue);
30181
- }
30182
- get form() {
30183
- return (this._supportsFormInternals ? this._internals?.form : null) ?? this._associatedForm;
30184
- }
30185
- get validationMessage() {
30186
- return (typeof this._internals?.validationMessage === 'string' ? this._internals.validationMessage : '') || (this.required && !this.value ? 'Please capture a photo.' : '');
30187
- }
30188
- get willValidate() {
30189
- return typeof this._internals?.willValidate === 'boolean' ? this._internals.willValidate : !this.disabled;
30190
- }
30191
- checkValidity() {
30192
- if (this._internals && typeof this._internals.checkValidity === 'function') {
30193
- return this._internals.checkValidity();
30194
- }
30195
- return !(this.required && !this.value);
30196
- }
30197
- reportValidity() {
30198
- if (this._internals && typeof this._internals.reportValidity === 'function') {
30199
- return this._internals.reportValidity();
30200
- }
30201
- return this.checkValidity();
30202
- }
30203
- connectedCallback() {
30204
- super.connectedCallback();
30205
- this._syncAssociatedForm();
30206
- this._syncFormValue();
30207
- this._syncValidity();
30208
- }
30209
- disconnectedCallback() {
30210
- this._syncAssociatedForm(null);
30211
- this._stopStream();
30212
- this._revokePreviewUrl();
30213
- super.disconnectedCallback();
30214
- }
30215
- formResetCallback() {
30216
- this._handleFormReset();
30217
- }
30218
- formDisabledCallback(disabled) {
30219
- this.disabled = disabled;
30220
- }
30221
- updated(changed) {
30222
- this._syncAssociatedForm();
30223
- if (this.presentation === 'dialog') {
30224
- const dialog = this.shadowRoot?.querySelector('dialog');
30225
- if (dialog) {
30226
- if (this.open && !dialog.open) {
30227
- dialog.showModal();
30228
- } else if (!this.open && dialog.open) {
30229
- dialog.close();
30230
- }
30231
- }
30232
- }
30233
- if (changed.has('open') && !this.open) {
30234
- this._stopStream();
30235
- }
30236
- if (this.open && !this.value && !this._stream && !this._startingPreview && (changed.has('open') || changed.has('presentation') || changed.has('_previewUrl') || changed.has('value'))) {
30237
- this._queuePreviewStart();
30238
- }
30239
- if (changed.has('name') || changed.has('disabled') || changed.has('value')) {
30240
- this._syncFormValue();
30241
- }
30242
- if (changed.has('required') || changed.has('disabled') || changed.has('value')) {
30243
- this._syncValidity();
30244
- }
30245
- if (this._stream) {
30246
- const video = this.shadowRoot?.querySelector('video.capture-preview');
30247
- if (video && video.srcObject !== this._stream) {
30248
- video.srcObject = this._stream;
30249
- }
30250
- }
30251
- }
30252
- _setOpen(open) {
30253
- if (this.open === open) return;
30254
- this.open = open;
30255
- this.dispatchEvent(new CustomEvent('open-change', {
30256
- detail: {
30257
- open
30258
- },
30259
- bubbles: true,
30260
- composed: true
30261
- }));
30262
- }
30263
- _emitError(error, message = 'Unable to access the camera') {
30264
- this._errorMessage = message;
30265
- this.dispatchEvent(new CustomEvent('error', {
30266
- detail: {
30267
- error,
30268
- message
30269
- },
30270
- bubbles: true,
30271
- composed: true
30272
- }));
30273
- }
30274
- _syncAssociatedForm(nextForm = this.closest('form')) {
30275
- if (this._associatedForm === nextForm) return;
30276
- if (this._associatedForm) {
30277
- this._associatedForm.removeEventListener('formdata', this._handleFormData);
30278
- this._associatedForm.removeEventListener('reset', this._handleFormReset);
30279
- }
30280
- this._associatedForm = nextForm;
30281
- if (this._associatedForm && !this._supportsFormInternals) {
30282
- this._associatedForm.addEventListener('formdata', this._handleFormData);
30283
- this._associatedForm.addEventListener('reset', this._handleFormReset);
30284
- }
30285
- }
30286
- _syncFormValue() {
30287
- if (!this._supportsFormInternals) return;
30288
- const internals = this._internals;
30289
- if (!internals) return;
30290
- if (this.disabled || !this.name || !this.value) {
30291
- internals.setFormValue(null);
30292
- return;
30293
- }
30294
- internals.setFormValue(this.value);
30295
- }
30296
- _syncValidity() {
30297
- if (!this._internals || !this._supportsFormInternals || typeof this._internals.setValidity !== 'function') return;
30298
- if (this.disabled || !this.required || this.value) {
30299
- this._internals.setValidity({});
30300
- return;
30301
- }
30302
- this._internals.setValidity({
30303
- valueMissing: true
30304
- }, 'Please capture a photo.');
30305
- }
30306
- _syncPreviewFromValue(file) {
30307
- this._revokePreviewUrl();
30308
- if (!file) return;
30309
- this._stopStream();
30310
- this._previewUrl = URL.createObjectURL(file);
30311
- }
30312
- _clearValue(options) {
30313
- this.value = null;
30314
- this._errorMessage = '';
30315
- if (options.emitEvents) {
30316
- this._dispatchValueEvents();
30317
- }
30318
- }
30319
- _dispatchValueEvents() {
30320
- const detail = {
30321
- value: this.value
30322
- };
30323
- this.dispatchEvent(new CustomEvent('input', {
30324
- detail,
30325
- bubbles: true,
30326
- composed: true
30327
- }));
30328
- this.dispatchEvent(new CustomEvent('change', {
30329
- detail,
30330
- bubbles: true,
30331
- composed: true
30332
- }));
30333
- }
30334
- _fileExtensionForMimeType(mimeType) {
30335
- switch (mimeType) {
30336
- case 'image/jpeg':
30337
- return 'jpg';
30338
- case 'image/webp':
30339
- return 'webp';
30340
- case 'image/gif':
30341
- return 'gif';
30342
- default:
30343
- return 'png';
30344
- }
30345
- }
30346
- _createFileFromBlob(blob) {
30347
- const contentType = blob.type || this.captureFormat || DEFAULT_CAPTURE_FORMAT;
30348
- const extension = this._fileExtensionForMimeType(contentType);
30349
- const safePrefix = (this.fileNamePrefix || this.name || 'photo').trim() || 'photo';
30350
- return new File([blob], `${safePrefix}-${Date.now()}.${extension}`, {
30351
- type: contentType
30352
- });
30353
- }
30354
- _queuePreviewStart() {
30355
- this._startPreview().catch(() => undefined);
30356
- }
30357
- _resolveMediaConstraints() {
30358
- if (this.mediaConstraints) {
30359
- return this.mediaConstraints;
30360
- }
30361
- if (this.constraints) {
30362
- try {
30363
- return JSON.parse(this.constraints);
30364
- } catch (error) {
30365
- throw new Error(`Invalid constraints JSON: ${error.message}`);
30366
- }
30367
- }
30368
- return {
30369
- video: this.facingMode ? {
30370
- facingMode: {
30371
- ideal: this.facingMode
30372
- }
30373
- } : true
30374
- };
30375
- }
30376
- async _startPreview() {
30377
- if (!this.open || this.value || this._startingPreview) return;
30378
- if (!navigator.mediaDevices?.getUserMedia) {
30379
- this._emitError(new Error('navigator.mediaDevices.getUserMedia not available'), 'Camera access is not available in this browser');
30380
- return;
30381
- }
30382
- this._startingPreview = true;
30383
- this._errorMessage = '';
30384
- try {
30385
- const stream = await navigator.mediaDevices.getUserMedia(this._resolveMediaConstraints());
30386
- if (!this.open) {
30387
- stream.getTracks().forEach(track => track.stop());
30388
- return;
30389
- }
30390
- this._stream = stream;
30391
- this.requestUpdate();
30392
- await this.updateComplete;
30393
- const video = this.shadowRoot?.querySelector('video.capture-preview');
30394
- if (video) {
30395
- video.srcObject = stream;
30396
- await video.play?.().catch(() => undefined);
30397
- }
30398
- } catch (error) {
30399
- this._emitError(error, error?.message || 'Unable to start the camera preview');
30400
- } finally {
30401
- this._startingPreview = false;
30402
- }
30403
- }
30404
- _stopStream() {
30405
- if (!this._stream) return;
30406
- this._stream.getTracks().forEach(track => track.stop());
30407
- this._stream = null;
30408
- const video = this.shadowRoot?.querySelector('video.capture-preview');
30409
- if (video) {
30410
- video.srcObject = null;
30411
- }
30412
- }
30413
- _revokePreviewUrl() {
30414
- if (this._previewUrl) {
30415
- URL.revokeObjectURL(this._previewUrl);
30416
- }
30417
- this._previewUrl = '';
30418
- }
30419
- async _captureSnapshot() {
30420
- const video = this.shadowRoot?.querySelector('video.capture-preview');
30421
- if (!video) return;
30422
- const width = video.videoWidth || video.clientWidth || 640;
30423
- const height = video.videoHeight || video.clientHeight || 480;
30424
- const canvas = document.createElement('canvas');
30425
- canvas.width = width;
30426
- canvas.height = height;
30427
- const context = canvas.getContext('2d');
30428
- if (!context) {
30429
- this._emitError(new Error('Canvas 2D context unavailable'), 'Unable to capture a photo in this browser');
30430
- return;
30431
- }
30432
- context.drawImage(video, 0, 0, width, height);
30433
- const blob = await new Promise(resolve => {
30434
- canvas.toBlob(resolve, this.captureFormat || DEFAULT_CAPTURE_FORMAT, this.captureQuality);
30435
- });
30436
- if (!blob) {
30437
- this._emitError(new Error('Camera snapshot failed'), 'Unable to create an image from the current camera frame');
30438
- return;
30439
- }
30440
- this.value = this._createFileFromBlob(blob);
30441
- this._errorMessage = '';
30442
- }
30443
- async _retakePhoto() {
30444
- this._clearValue({
30445
- emitEvents: true
30446
- });
30447
- await this._startPreview();
30448
- }
30449
- _confirmPhoto() {
30450
- if (!this.value || !this._previewUrl) return;
30451
- this._dispatchValueEvents();
30452
- this.dispatchEvent(new CustomEvent('photo-captured', {
30453
- detail: {
30454
- file: this.value,
30455
- blob: this.value,
30456
- objectUrl: this._previewUrl,
30457
- contentType: this.value.type || this.captureFormat || DEFAULT_CAPTURE_FORMAT
30458
- },
30459
- bubbles: true,
30460
- composed: true
30461
- }));
30462
- if (this.autoCloseOnCapture) {
30463
- this._setOpen(false);
30464
- }
30465
- }
30466
- _handleCancel() {
30467
- this._stopStream();
30468
- this._clearValue({
30469
- emitEvents: false
30470
- });
30471
- this._setOpen(false);
30472
- this.dispatchEvent(new CustomEvent('cancel', {
30473
- bubbles: true,
30474
- composed: true
30475
- }));
30476
- }
30477
- _openCapture() {
30478
- if (this.disabled) return;
30479
- this._setOpen(true);
30480
- }
30481
- _renderViewport() {
30482
- if (this._previewUrl) {
30483
- return (0,lit__WEBPACK_IMPORTED_MODULE_0__/* .html */ .qy)`<img class="capture-preview" part="preview-image" src="${this._previewUrl}" alt="Captured photo preview" />`;
30484
- }
30485
- return (0,lit__WEBPACK_IMPORTED_MODULE_0__/* .html */ .qy)`<video class="capture-preview" part="preview-video" autoplay playsinline muted></video>`;
30486
- }
30487
- _renderStatus() {
30488
- if (this._errorMessage) {
30489
- return (0,lit__WEBPACK_IMPORTED_MODULE_0__/* .html */ .qy)`<div class="status error" part="error-message">${this._errorMessage}</div>`;
30490
- }
30491
- if (this._startingPreview) {
30492
- return (0,lit__WEBPACK_IMPORTED_MODULE_0__/* .html */ .qy)`<div class="status" part="status-message">Opening camera…</div>`;
30493
- }
30494
- if (!this.value) {
30495
- return (0,lit__WEBPACK_IMPORTED_MODULE_0__/* .html */ .qy)`<div class="status" part="status-message">Preview the camera and take a photo when ready.</div>`;
30496
- }
30497
- return (0,lit__WEBPACK_IMPORTED_MODULE_0__/* .html */ .qy)`<div class="status" part="status-message">Review the photo before confirming it.</div>`;
30498
- }
30499
- _renderActions() {
30500
- return (0,lit__WEBPACK_IMPORTED_MODULE_0__/* .html */ .qy)`
29062
+ _value = null;
29063
+ _stream = null;
29064
+ _internals;
29065
+ _associatedForm = null;
29066
+ _handleFormData = (e) => {
29067
+ let t = e.formData;
29068
+ !t || !this.name || !this.value || this.disabled || t.append(this.name, this.value, this.value.name);
29069
+ };
29070
+ _handleFormReset = () => {
29071
+ this._clearValue({ emitEvents: !1 }), this.open && this._queuePreviewStart();
29072
+ };
29073
+ get _supportsFormInternals() {
29074
+ return !!this._internals && typeof this._internals.setFormValue == "function";
29075
+ }
29076
+ constructor() {
29077
+ super(), this.label = "Take Photo", this.heading = "Take a photo", this.captureLabel = "Take Photo", this.confirmLabel = "Use Photo", this.retakeLabel = "Retake", this.cancelLabel = "Cancel", this.presentation = "inline", this.theme = "light", this.facingMode = "user", this.constraints = "", this.captureFormat = PhotoCapture_esm_i, this.captureQuality = void 0, this.open = !1, this.disabled = !1, this.name = "", this.required = !1, this.showTrigger = !1, this.showCancelButton = !0, this.autoCloseOnCapture = !1, this.fileNamePrefix = "", this.mediaConstraints = void 0, this._errorMessage = "", this._previewUrl = "", this._startingPreview = !1, this._internals = typeof this.attachInternals == "function" ? this.attachInternals() : null;
29078
+ }
29079
+ get value() {
29080
+ return this._value;
29081
+ }
29082
+ set value(e) {
29083
+ let t = e instanceof File ? e : null, n = this._value;
29084
+ n !== t && (this._value = t, this._syncPreviewFromValue(t), this._syncFormValue(), this._syncValidity(), this.requestUpdate("value", n));
29085
+ }
29086
+ get form() {
29087
+ return (this._supportsFormInternals ? this._internals?.form : null) ?? this._associatedForm;
29088
+ }
29089
+ get validationMessage() {
29090
+ return (typeof this._internals?.validationMessage == "string" ? this._internals.validationMessage : "") || (this.required && !this.value ? "Please capture a photo." : "");
29091
+ }
29092
+ get willValidate() {
29093
+ return typeof this._internals?.willValidate == "boolean" ? this._internals.willValidate : !this.disabled;
29094
+ }
29095
+ checkValidity() {
29096
+ return this._internals && typeof this._internals.checkValidity == "function" ? this._internals.checkValidity() : !(this.required && !this.value);
29097
+ }
29098
+ reportValidity() {
29099
+ return this._internals && typeof this._internals.reportValidity == "function" ? this._internals.reportValidity() : this.checkValidity();
29100
+ }
29101
+ connectedCallback() {
29102
+ super.connectedCallback(), this._syncAssociatedForm(), this._syncFormValue(), this._syncValidity();
29103
+ }
29104
+ disconnectedCallback() {
29105
+ this._syncAssociatedForm(null), this._stopStream(), this._revokePreviewUrl(), super.disconnectedCallback();
29106
+ }
29107
+ formResetCallback() {
29108
+ this._handleFormReset();
29109
+ }
29110
+ formDisabledCallback(e) {
29111
+ this.disabled = e;
29112
+ }
29113
+ updated(e) {
29114
+ if (this._syncAssociatedForm(), this.presentation === "dialog") {
29115
+ let e = this.shadowRoot?.querySelector("dialog");
29116
+ e && (this.open && !e.open ? e.showModal() : !this.open && e.open && e.close());
29117
+ }
29118
+ if (e.has("open") && !this.open && this._stopStream(), this.open && !this.value && !this._stream && !this._startingPreview && (e.has("open") || e.has("presentation") || e.has("_previewUrl") || e.has("value")) && this._queuePreviewStart(), (e.has("name") || e.has("disabled") || e.has("value")) && this._syncFormValue(), (e.has("required") || e.has("disabled") || e.has("value")) && this._syncValidity(), this._stream) {
29119
+ let e = this.shadowRoot?.querySelector("video.capture-preview");
29120
+ e && e.srcObject !== this._stream && (e.srcObject = this._stream);
29121
+ }
29122
+ }
29123
+ _setOpen(e) {
29124
+ this.open !== e && (this.open = e, this.dispatchEvent(new CustomEvent("open-change", {
29125
+ detail: { open: e },
29126
+ bubbles: !0,
29127
+ composed: !0
29128
+ })));
29129
+ }
29130
+ _emitError(e, t = "Unable to access the camera") {
29131
+ this._errorMessage = t, this.dispatchEvent(new CustomEvent("error", {
29132
+ detail: {
29133
+ error: e,
29134
+ message: t
29135
+ },
29136
+ bubbles: !0,
29137
+ composed: !0
29138
+ }));
29139
+ }
29140
+ _syncAssociatedForm(e = this.closest("form")) {
29141
+ this._associatedForm !== e && (this._associatedForm && (this._associatedForm.removeEventListener("formdata", this._handleFormData), this._associatedForm.removeEventListener("reset", this._handleFormReset)), this._associatedForm = e, this._associatedForm && !this._supportsFormInternals && (this._associatedForm.addEventListener("formdata", this._handleFormData), this._associatedForm.addEventListener("reset", this._handleFormReset)));
29142
+ }
29143
+ _syncFormValue() {
29144
+ if (!this._supportsFormInternals) return;
29145
+ let e = this._internals;
29146
+ if (e) {
29147
+ if (this.disabled || !this.name || !this.value) {
29148
+ e.setFormValue(null);
29149
+ return;
29150
+ }
29151
+ e.setFormValue(this.value);
29152
+ }
29153
+ }
29154
+ _syncValidity() {
29155
+ if (!(!this._internals || !this._supportsFormInternals || typeof this._internals.setValidity != "function")) {
29156
+ if (this.disabled || !this.required || this.value) {
29157
+ this._internals.setValidity({});
29158
+ return;
29159
+ }
29160
+ this._internals.setValidity({ valueMissing: !0 }, "Please capture a photo.");
29161
+ }
29162
+ }
29163
+ _syncPreviewFromValue(e) {
29164
+ this._revokePreviewUrl(), e && (this._stopStream(), this._previewUrl = URL.createObjectURL(e));
29165
+ }
29166
+ _clearValue(e) {
29167
+ this.value = null, this._errorMessage = "", e.emitEvents && this._dispatchValueEvents();
29168
+ }
29169
+ _dispatchValueEvents() {
29170
+ let e = { value: this.value };
29171
+ this.dispatchEvent(new CustomEvent("input", {
29172
+ detail: e,
29173
+ bubbles: !0,
29174
+ composed: !0
29175
+ })), this.dispatchEvent(new CustomEvent("change", {
29176
+ detail: e,
29177
+ bubbles: !0,
29178
+ composed: !0
29179
+ }));
29180
+ }
29181
+ _fileExtensionForMimeType(e) {
29182
+ switch (e) {
29183
+ case "image/jpeg": return "jpg";
29184
+ case "image/webp": return "webp";
29185
+ case "image/gif": return "gif";
29186
+ default: return "png";
29187
+ }
29188
+ }
29189
+ _createFileFromBlob(e) {
29190
+ let t = e.type || this.captureFormat || PhotoCapture_esm_i, n = this._fileExtensionForMimeType(t), r = (this.fileNamePrefix || this.name || "photo").trim() || "photo";
29191
+ return new File([e], `${r}-${Date.now()}.${n}`, { type: t });
29192
+ }
29193
+ _queuePreviewStart() {
29194
+ this._startPreview().catch(() => void 0);
29195
+ }
29196
+ _resolveMediaConstraints() {
29197
+ if (this.mediaConstraints) return this.mediaConstraints;
29198
+ if (this.constraints) try {
29199
+ return JSON.parse(this.constraints);
29200
+ } catch (e) {
29201
+ throw Error(`Invalid constraints JSON: ${e.message}`);
29202
+ }
29203
+ return { video: this.facingMode ? { facingMode: { ideal: this.facingMode } } : !0 };
29204
+ }
29205
+ async _startPreview() {
29206
+ if (!(!this.open || this.value || this._startingPreview)) {
29207
+ if (!navigator.mediaDevices?.getUserMedia) {
29208
+ this._emitError(/* @__PURE__ */ Error("navigator.mediaDevices.getUserMedia not available"), "Camera access is not available in this browser");
29209
+ return;
29210
+ }
29211
+ this._startingPreview = !0, this._errorMessage = "";
29212
+ try {
29213
+ let e = await navigator.mediaDevices.getUserMedia(this._resolveMediaConstraints());
29214
+ if (!this.open) {
29215
+ e.getTracks().forEach((e) => e.stop());
29216
+ return;
29217
+ }
29218
+ this._stream = e, this.requestUpdate(), await this.updateComplete;
29219
+ let t = this.shadowRoot?.querySelector("video.capture-preview");
29220
+ t && (t.srcObject = e, await t.play?.().catch(() => void 0));
29221
+ } catch (e) {
29222
+ this._emitError(e, e?.message || "Unable to start the camera preview");
29223
+ } finally {
29224
+ this._startingPreview = !1;
29225
+ }
29226
+ }
29227
+ }
29228
+ _stopStream() {
29229
+ if (!this._stream) return;
29230
+ this._stream.getTracks().forEach((e) => e.stop()), this._stream = null;
29231
+ let e = this.shadowRoot?.querySelector("video.capture-preview");
29232
+ e && (e.srcObject = null);
29233
+ }
29234
+ _revokePreviewUrl() {
29235
+ this._previewUrl && URL.revokeObjectURL(this._previewUrl), this._previewUrl = "";
29236
+ }
29237
+ async _captureSnapshot() {
29238
+ let e = this.shadowRoot?.querySelector("video.capture-preview");
29239
+ if (!e) return;
29240
+ let t = e.videoWidth || e.clientWidth || 640, n = e.videoHeight || e.clientHeight || 480, r = document.createElement("canvas");
29241
+ r.width = t, r.height = n;
29242
+ let a = r.getContext("2d");
29243
+ if (!a) {
29244
+ this._emitError(/* @__PURE__ */ Error("Canvas 2D context unavailable"), "Unable to capture a photo in this browser");
29245
+ return;
29246
+ }
29247
+ a.drawImage(e, 0, 0, t, n);
29248
+ let o = await new Promise((e) => {
29249
+ r.toBlob(e, this.captureFormat || PhotoCapture_esm_i, this.captureQuality);
29250
+ });
29251
+ if (!o) {
29252
+ this._emitError(/* @__PURE__ */ Error("Camera snapshot failed"), "Unable to create an image from the current camera frame");
29253
+ return;
29254
+ }
29255
+ this.value = this._createFileFromBlob(o), this._errorMessage = "";
29256
+ }
29257
+ async _retakePhoto() {
29258
+ this._clearValue({ emitEvents: !0 }), await this._startPreview();
29259
+ }
29260
+ _confirmPhoto() {
29261
+ !this.value || !this._previewUrl || (this._dispatchValueEvents(), this.dispatchEvent(new CustomEvent("photo-captured", {
29262
+ detail: {
29263
+ file: this.value,
29264
+ blob: this.value,
29265
+ objectUrl: this._previewUrl,
29266
+ contentType: this.value.type || this.captureFormat || PhotoCapture_esm_i
29267
+ },
29268
+ bubbles: !0,
29269
+ composed: !0
29270
+ })), this.autoCloseOnCapture && this._setOpen(!1));
29271
+ }
29272
+ _handleCancel() {
29273
+ this._stopStream(), this._clearValue({ emitEvents: !1 }), this._setOpen(!1), this.dispatchEvent(new CustomEvent("cancel", {
29274
+ bubbles: !0,
29275
+ composed: !0
29276
+ }));
29277
+ }
29278
+ _openCapture() {
29279
+ this.disabled || this._setOpen(!0);
29280
+ }
29281
+ _renderViewport() {
29282
+ return this._previewUrl ? b`<img class="capture-preview" part="preview-image" src="${this._previewUrl}" alt="Captured photo preview" />` : b`<video class="capture-preview" part="preview-video" autoplay playsinline muted></video>`;
29283
+ }
29284
+ _renderStatus() {
29285
+ return this._errorMessage ? b`<div class="status error" part="error-message">${this._errorMessage}</div>` : this._startingPreview ? b`<div class="status" part="status-message">Opening camera…</div>` : this.value ? b`<div class="status" part="status-message">Review the photo before confirming it.</div>` : b`<div class="status" part="status-message">Preview the camera and take a photo when ready.</div>`;
29286
+ }
29287
+ _renderActions() {
29288
+ return b`
30501
29289
  <div class="actions" part="actions">
30502
- ${this.showCancelButton ? (0,lit__WEBPACK_IMPORTED_MODULE_0__/* .html */ .qy)`
29290
+ ${this.showCancelButton ? b`
30503
29291
  <button
30504
29292
  class="cancel-button"
30505
29293
  part="cancel-button"
30506
29294
  type="button"
30507
29295
  @click="${this._handleCancel}"
30508
29296
  >${this.cancelLabel}</button>
30509
- ` : lit__WEBPACK_IMPORTED_MODULE_0__/* .nothing */ .s6}
29297
+ ` : A}
30510
29298
 
30511
- ${this.value ? (0,lit__WEBPACK_IMPORTED_MODULE_0__/* .html */ .qy)`
29299
+ ${this.value ? b`
30512
29300
  <button
30513
29301
  class="action-button"
30514
29302
  part="retake-button"
@@ -30521,7 +29309,7 @@ class PhotoCapture extends lit__WEBPACK_IMPORTED_MODULE_0__/* .LitElement */ .WF
30521
29309
  type="button"
30522
29310
  @click="${this._confirmPhoto}"
30523
29311
  >${this.confirmLabel}</button>
30524
- ` : (0,lit__WEBPACK_IMPORTED_MODULE_0__/* .html */ .qy)`
29312
+ ` : b`
30525
29313
  <button
30526
29314
  class="action-button action-button--primary"
30527
29315
  part="capture-button"
@@ -30532,13 +29320,13 @@ class PhotoCapture extends lit__WEBPACK_IMPORTED_MODULE_0__/* .LitElement */ .WF
30532
29320
  `}
30533
29321
  </div>
30534
29322
  `;
30535
- }
30536
- _renderPanel() {
30537
- return (0,lit__WEBPACK_IMPORTED_MODULE_0__/* .html */ .qy)`
29323
+ }
29324
+ _renderPanel() {
29325
+ return b`
30538
29326
  <div class="panel" part="panel">
30539
29327
  <div class="panel-header" part="header">
30540
29328
  <h2 class="panel-heading" part="heading"><slot name="heading">${this.heading}</slot></h2>
30541
- ${this.showCancelButton ? (0,lit__WEBPACK_IMPORTED_MODULE_0__/* .html */ .qy)`
29329
+ ${this.showCancelButton ? b`
30542
29330
  <button
30543
29331
  class="close-button"
30544
29332
  part="close-button"
@@ -30546,18 +29334,17 @@ class PhotoCapture extends lit__WEBPACK_IMPORTED_MODULE_0__/* .LitElement */ .WF
30546
29334
  aria-label="${this.cancelLabel}"
30547
29335
  @click="${this._handleCancel}"
30548
29336
  >&times;</button>
30549
- ` : lit__WEBPACK_IMPORTED_MODULE_0__/* .nothing */ .s6}
29337
+ ` : A}
30550
29338
  </div>
30551
29339
  <div class="viewport" part="viewport">${this._renderViewport()}</div>
30552
29340
  ${this._renderStatus()}
30553
29341
  ${this._renderActions()}
30554
29342
  </div>
30555
29343
  `;
30556
- }
30557
- render() {
30558
- const trigger = this.showTrigger || this.presentation === 'dialog';
30559
- return (0,lit__WEBPACK_IMPORTED_MODULE_0__/* .html */ .qy)`
30560
- ${trigger ? (0,lit__WEBPACK_IMPORTED_MODULE_0__/* .html */ .qy)`
29344
+ }
29345
+ render() {
29346
+ return b`
29347
+ ${this.showTrigger || this.presentation === "dialog" ? b`
30561
29348
  <button
30562
29349
  class="trigger-button"
30563
29350
  part="trigger-button"
@@ -30565,199 +29352,48 @@ class PhotoCapture extends lit__WEBPACK_IMPORTED_MODULE_0__/* .LitElement */ .WF
30565
29352
  ?disabled="${this.disabled}"
30566
29353
  @click="${this._openCapture}"
30567
29354
  ><slot>${this.label}</slot></button>
30568
- ` : lit__WEBPACK_IMPORTED_MODULE_0__/* .nothing */ .s6}
29355
+ ` : A}
30569
29356
 
30570
- ${this.presentation === 'dialog' ? (0,lit__WEBPACK_IMPORTED_MODULE_0__/* .html */ .qy)`
29357
+ ${this.presentation === "dialog" ? b`
30571
29358
  <dialog
30572
29359
  class="dialog"
30573
29360
  part="dialog"
30574
29361
  aria-modal="true"
30575
29362
  aria-label="${this.heading}"
30576
- @cancel="${event => {
30577
- event.preventDefault();
30578
- this._handleCancel();
30579
- }}"
30580
- @click="${event => {
30581
- if (event.target === event.currentTarget) {
30582
- this._handleCancel();
30583
- }
30584
- }}"
29363
+ @cancel="${(e) => {
29364
+ e.preventDefault(), this._handleCancel();
29365
+ }}"
29366
+ @click="${(e) => {
29367
+ e.target === e.currentTarget && this._handleCancel();
29368
+ }}"
30585
29369
  >
30586
- ${this.open ? this._renderPanel() : lit__WEBPACK_IMPORTED_MODULE_0__/* .nothing */ .s6}
29370
+ ${this.open ? this._renderPanel() : A}
30587
29371
  </dialog>
30588
- ` : (0,lit__WEBPACK_IMPORTED_MODULE_0__/* .html */ .qy)`
29372
+ ` : b`
30589
29373
  <div class="inline-root" part="inline-root" ?hidden="${!this.open}">
30590
- ${this.open ? this._renderPanel() : lit__WEBPACK_IMPORTED_MODULE_0__/* .nothing */ .s6}
29374
+ ${this.open ? this._renderPanel() : A}
30591
29375
  </div>
30592
29376
  `}
30593
29377
  `;
30594
- }
30595
- }
30596
-
30597
- /***/ },
30598
-
30599
- /***/ 3826
30600
- (__unused_webpack___webpack_module__, __nested_webpack_exports__, __nested_webpack_require_24028__) {
30601
-
30602
- /* harmony export */ __nested_webpack_require_24028__.d(__nested_webpack_exports__, {
30603
- /* harmony export */ AH: () => (/* binding */ i),
30604
- /* harmony export */ Rf: () => (/* binding */ S),
30605
- /* harmony export */ sk: () => (/* binding */ c)
30606
- /* harmony export */ });
30607
- /* unused harmony exports CSSResult, supportsAdoptingStyleSheets, unsafeCSS */
30608
- /**
30609
- * @license
30610
- * Copyright 2019 Google LLC
30611
- * SPDX-License-Identifier: BSD-3-Clause
30612
- */
30613
- const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,s=Symbol(),o=new WeakMap;class n{constructor(t,e,o){if(this._$cssResult$=!0,o!==s)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const s=this.t;if(e&&void 0===t){const e=void 0!==s&&1===s.length;e&&(t=o.get(s)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),e&&o.set(s,t))}return t}toString(){return this.cssText}}const r=t=>new n("string"==typeof t?t:t+"",void 0,s),i=(t,...e)=>{const o=1===t.length?t[0]:e.reduce((e,s,o)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+t[o+1],t[0]);return new n(o,t,s)},S=(s,o)=>{if(e)s.adoptedStyleSheets=o.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(const e of o){const o=document.createElement("style"),n=t.litNonce;void 0!==n&&o.setAttribute("nonce",n),o.textContent=e.cssText,s.appendChild(o)}},c=e?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const s of t.cssRules)e+=s.cssText;return r(e)})(t):t;
30614
- //# sourceMappingURL=css-tag.js.map
30615
-
30616
-
30617
- /***/ },
30618
-
30619
- /***/ 8760
30620
- (__unused_webpack___webpack_module__, __nested_webpack_exports__, __nested_webpack_require_25923__) {
30621
-
30622
- /* harmony export */ __nested_webpack_require_25923__.d(__nested_webpack_exports__, {
30623
- /* harmony export */ AH: () => (/* reexport safe */ _css_tag_js__WEBPACK_IMPORTED_MODULE_0__.AH),
30624
- /* harmony export */ mN: () => (/* binding */ y)
30625
- /* harmony export */ });
30626
- /* unused harmony exports defaultConverter, notEqual */
30627
- /* harmony import */ var _css_tag_js__WEBPACK_IMPORTED_MODULE_0__ = __nested_webpack_require_25923__(3826);
30628
-
30629
- /**
30630
- * @license
30631
- * Copyright 2017 Google LLC
30632
- * SPDX-License-Identifier: BSD-3-Clause
30633
- */const{is:i,defineProperty:e,getOwnPropertyDescriptor:h,getOwnPropertyNames:r,getOwnPropertySymbols:o,getPrototypeOf:n}=Object,a=globalThis,c=a.trustedTypes,l=c?c.emptyScript:"",p=a.reactiveElementPolyfillSupport,d=(t,s)=>t,u={toAttribute(t,s){switch(s){case Boolean:t=t?l:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,s){let i=t;switch(s){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t)}catch(t){i=null}}return i}},f=(t,s)=>!i(t,s),b={attribute:!0,type:String,converter:u,reflect:!1,useDefault:!1,hasChanged:f};Symbol.metadata??=Symbol("metadata"),a.litPropertyMetadata??=new WeakMap;class y extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,s=b){if(s.state&&(s.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((s=Object.create(s)).wrapped=!0),this.elementProperties.set(t,s),!s.noAccessor){const i=Symbol(),h=this.getPropertyDescriptor(t,i,s);void 0!==h&&e(this.prototype,t,h)}}static getPropertyDescriptor(t,s,i){const{get:e,set:r}=h(this.prototype,t)??{get(){return this[s]},set(t){this[s]=t}};return{get:e,set(s){const h=e?.call(this);r?.call(this,s),this.requestUpdate(t,h,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??b}static _$Ei(){if(this.hasOwnProperty(d("elementProperties")))return;const t=n(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(d("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(d("properties"))){const t=this.properties,s=[...r(t),...o(t)];for(const i of s)this.createProperty(i,t[i])}const t=this[Symbol.metadata];if(null!==t){const s=litPropertyMetadata.get(t);if(void 0!==s)for(const[t,i]of s)this.elementProperties.set(t,i)}this._$Eh=new Map;for(const[t,s]of this.elementProperties){const i=this._$Eu(t,s);void 0!==i&&this._$Eh.set(i,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(s){const i=[];if(Array.isArray(s)){const e=new Set(s.flat(1/0).reverse());for(const s of e)i.unshift((0,_css_tag_js__WEBPACK_IMPORTED_MODULE_0__/* .getCompatibleStyle */ .sk)(s))}else void 0!==s&&i.push((0,_css_tag_js__WEBPACK_IMPORTED_MODULE_0__/* .getCompatibleStyle */ .sk)(s));return i}static _$Eu(t,s){const i=s.attribute;return!1===i?void 0:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(t=>t(this))}addController(t){(this._$EO??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){const t=new Map,s=this.constructor.elementProperties;for(const i of s.keys())this.hasOwnProperty(i)&&(t.set(i,this[i]),delete this[i]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return (0,_css_tag_js__WEBPACK_IMPORTED_MODULE_0__/* .adoptStyles */ .Rf)(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(t=>t.hostConnected?.())}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach(t=>t.hostDisconnected?.())}attributeChangedCallback(t,s,i){this._$AK(t,i)}_$ET(t,s){const i=this.constructor.elementProperties.get(t),e=this.constructor._$Eu(t,i);if(void 0!==e&&!0===i.reflect){const h=(void 0!==i.converter?.toAttribute?i.converter:u).toAttribute(s,i.type);this._$Em=t,null==h?this.removeAttribute(e):this.setAttribute(e,h),this._$Em=null}}_$AK(t,s){const i=this.constructor,e=i._$Eh.get(t);if(void 0!==e&&this._$Em!==e){const t=i.getPropertyOptions(e),h="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:u;this._$Em=e;const r=h.fromAttribute(s,t.type);this[e]=r??this._$Ej?.get(e)??r,this._$Em=null}}requestUpdate(t,s,i,e=!1,h){if(void 0!==t){const r=this.constructor;if(!1===e&&(h=this[t]),i??=r.getPropertyOptions(t),!((i.hasChanged??f)(h,s)||i.useDefault&&i.reflect&&h===this._$Ej?.get(t)&&!this.hasAttribute(r._$Eu(t,i))))return;this.C(t,s,i)}!1===this.isUpdatePending&&(this._$ES=this._$EP())}C(t,s,{useDefault:i,reflect:e,wrapped:h},r){i&&!(this._$Ej??=new Map).has(t)&&(this._$Ej.set(t,r??s??this[t]),!0!==h||void 0!==r)||(this._$AL.has(t)||(this.hasUpdated||i||(s=void 0),this._$AL.set(t,s)),!0===e&&this._$Em!==t&&(this._$Eq??=new Set).add(t))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,s]of this._$Ep)this[t]=s;this._$Ep=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[s,i]of t){const{wrapped:t}=i,e=this[s];!0!==t||this._$AL.has(s)||void 0===e||this.C(s,void 0,i,e)}}let t=!1;const s=this._$AL;try{t=this.shouldUpdate(s),t?(this.willUpdate(s),this._$EO?.forEach(t=>t.hostUpdate?.()),this.update(s)):this._$EM()}catch(s){throw t=!1,this._$EM(),s}t&&this._$AE(s)}willUpdate(t){}_$AE(t){this._$EO?.forEach(t=>t.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&=this._$Eq.forEach(t=>this._$ET(t,this[t])),this._$EM()}updated(t){}firstUpdated(t){}}y.elementStyles=[],y.shadowRootOptions={mode:"open"},y[d("elementProperties")]=new Map,y[d("finalized")]=new Map,p?.({ReactiveElement:y}),(a.reactiveElementVersions??=[]).push("2.1.2");
30634
- //# sourceMappingURL=reactive-element.js.map
30635
-
30636
-
30637
- /***/ },
30638
-
30639
- /***/ 5228
30640
- (__unused_webpack___webpack_module__, __nested_webpack_exports__, __nested_webpack_require_32686__) {
30641
-
30642
- /* harmony export */ __nested_webpack_require_32686__.d(__nested_webpack_exports__, {
30643
- /* harmony export */ AH: () => (/* reexport safe */ _lit_reactive_element__WEBPACK_IMPORTED_MODULE_0__.AH),
30644
- /* harmony export */ WF: () => (/* binding */ i),
30645
- /* harmony export */ qy: () => (/* reexport safe */ lit_html__WEBPACK_IMPORTED_MODULE_1__.qy),
30646
- /* harmony export */ s6: () => (/* reexport safe */ lit_html__WEBPACK_IMPORTED_MODULE_1__.s6)
30647
- /* harmony export */ });
30648
- /* unused harmony export _$LE */
30649
- /* harmony import */ var _lit_reactive_element__WEBPACK_IMPORTED_MODULE_0__ = __nested_webpack_require_32686__(8760);
30650
- /* harmony import */ var lit_html__WEBPACK_IMPORTED_MODULE_1__ = __nested_webpack_require_32686__(6752);
30651
-
30652
- /**
30653
- * @license
30654
- * Copyright 2017 Google LLC
30655
- * SPDX-License-Identifier: BSD-3-Clause
30656
- */const s=globalThis;class i extends _lit_reactive_element__WEBPACK_IMPORTED_MODULE_0__/* .ReactiveElement */ .mN{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){const t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){const r=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=(0,lit_html__WEBPACK_IMPORTED_MODULE_1__/* .render */ .XX)(r,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return lit_html__WEBPACK_IMPORTED_MODULE_1__/* .noChange */ .c0}}i._$litElement$=!0,i["finalized"]=!0,s.litElementHydrateSupport?.({LitElement:i});const o=s.litElementPolyfillSupport;o?.({LitElement:i});const n={_$AK:(t,e,r)=>{t._$AK(e,r)},_$AL:t=>t._$AL};(s.litElementVersions??=[]).push("4.2.2");
30657
- //# sourceMappingURL=lit-element.js.map
30658
-
30659
-
30660
- /***/ },
30661
-
30662
- /***/ 6752
30663
- (__unused_webpack___webpack_module__, __nested_webpack_exports__, __nested_webpack_require_34584__) {
30664
-
30665
- /* harmony export */ __nested_webpack_require_34584__.d(__nested_webpack_exports__, {
30666
- /* harmony export */ XX: () => (/* binding */ D),
30667
- /* harmony export */ c0: () => (/* binding */ E),
30668
- /* harmony export */ qy: () => (/* binding */ b),
30669
- /* harmony export */ s6: () => (/* binding */ A)
30670
- /* harmony export */ });
30671
- /* unused harmony exports _$LH, mathml, svg */
30672
- /**
30673
- * @license
30674
- * Copyright 2017 Google LLC
30675
- * SPDX-License-Identifier: BSD-3-Clause
30676
- */
30677
- const t=globalThis,i=t=>t,s=t.trustedTypes,e=s?s.createPolicy("lit-html",{createHTML:t=>t}):void 0,h="$lit$",o=`lit$${Math.random().toFixed(9).slice(2)}$`,n="?"+o,r=`<${n}>`,l=document,c=()=>l.createComment(""),a=t=>null===t||"object"!=typeof t&&"function"!=typeof t,u=Array.isArray,d=t=>u(t)||"function"==typeof t?.[Symbol.iterator],f="[ \t\n\f\r]",v=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,_=/-->/g,m=/>/g,p=RegExp(`>|${f}(?:([^\\s"'>=/]+)(${f}*=${f}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),g=/'/g,$=/"/g,y=/^(?:script|style|textarea|title)$/i,x=t=>(i,...s)=>({_$litType$:t,strings:i,values:s}),b=x(1),w=x(2),T=x(3),E=Symbol.for("lit-noChange"),A=Symbol.for("lit-nothing"),C=new WeakMap,P=l.createTreeWalker(l,129);function V(t,i){if(!u(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==e?e.createHTML(i):i}const N=(t,i)=>{const s=t.length-1,e=[];let n,l=2===i?"<svg>":3===i?"<math>":"",c=v;for(let i=0;i<s;i++){const s=t[i];let a,u,d=-1,f=0;for(;f<s.length&&(c.lastIndex=f,u=c.exec(s),null!==u);)f=c.lastIndex,c===v?"!--"===u[1]?c=_:void 0!==u[1]?c=m:void 0!==u[2]?(y.test(u[2])&&(n=RegExp("</"+u[2],"g")),c=p):void 0!==u[3]&&(c=p):c===p?">"===u[0]?(c=n??v,d=-1):void 0===u[1]?d=-2:(d=c.lastIndex-u[2].length,a=u[1],c=void 0===u[3]?p:'"'===u[3]?$:g):c===$||c===g?c=p:c===_||c===m?c=v:(c=p,n=void 0);const x=c===p&&t[i+1].startsWith("/>")?" ":"";l+=c===v?s+r:d>=0?(e.push(a),s.slice(0,d)+h+s.slice(d)+o+x):s+o+(-2===d?i:x)}return[V(t,l+(t[s]||"<?>")+(2===i?"</svg>":3===i?"</math>":"")),e]};class S{constructor({strings:t,_$litType$:i},e){let r;this.parts=[];let l=0,a=0;const u=t.length-1,d=this.parts,[f,v]=N(t,i);if(this.el=S.createElement(f,e),P.currentNode=this.el.content,2===i||3===i){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(r=P.nextNode())&&d.length<u;){if(1===r.nodeType){if(r.hasAttributes())for(const t of r.getAttributeNames())if(t.endsWith(h)){const i=v[a++],s=r.getAttribute(t).split(o),e=/([.?@])?(.*)/.exec(i);d.push({type:1,index:l,name:e[2],strings:s,ctor:"."===e[1]?I:"?"===e[1]?L:"@"===e[1]?z:H}),r.removeAttribute(t)}else t.startsWith(o)&&(d.push({type:6,index:l}),r.removeAttribute(t));if(y.test(r.tagName)){const t=r.textContent.split(o),i=t.length-1;if(i>0){r.textContent=s?s.emptyScript:"";for(let s=0;s<i;s++)r.append(t[s],c()),P.nextNode(),d.push({type:2,index:++l});r.append(t[i],c())}}}else if(8===r.nodeType)if(r.data===n)d.push({type:2,index:l});else{let t=-1;for(;-1!==(t=r.data.indexOf(o,t+1));)d.push({type:7,index:l}),t+=o.length-1}l++}}static createElement(t,i){const s=l.createElement("template");return s.innerHTML=t,s}}function M(t,i,s=t,e){if(i===E)return i;let h=void 0!==e?s._$Co?.[e]:s._$Cl;const o=a(i)?void 0:i._$litDirective$;return h?.constructor!==o&&(h?._$AO?.(!1),void 0===o?h=void 0:(h=new o(t),h._$AT(t,s,e)),void 0!==e?(s._$Co??=[])[e]=h:s._$Cl=h),void 0!==h&&(i=M(t,h._$AS(t,i.values),h,e)),i}class R{constructor(t,i){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:i},parts:s}=this._$AD,e=(t?.creationScope??l).importNode(i,!0);P.currentNode=e;let h=P.nextNode(),o=0,n=0,r=s[0];for(;void 0!==r;){if(o===r.index){let i;2===r.type?i=new k(h,h.nextSibling,this,t):1===r.type?i=new r.ctor(h,r.name,r.strings,this,t):6===r.type&&(i=new Z(h,this,t)),this._$AV.push(i),r=s[++n]}o!==r?.index&&(h=P.nextNode(),o++)}return P.currentNode=l,e}p(t){let i=0;for(const s of this._$AV)void 0!==s&&(void 0!==s.strings?(s._$AI(t,s,i),i+=s.strings.length-2):s._$AI(t[i])),i++}}class k{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,i,s,e){this.type=2,this._$AH=A,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=s,this.options=e,this._$Cv=e?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const i=this._$AM;return void 0!==i&&11===t?.nodeType&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=M(this,t,i),a(t)?t===A||null==t||""===t?(this._$AH!==A&&this._$AR(),this._$AH=A):t!==this._$AH&&t!==E&&this._(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):d(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==A&&a(this._$AH)?this._$AA.nextSibling.data=t:this.T(l.createTextNode(t)),this._$AH=t}$(t){const{values:i,_$litType$:s}=t,e="number"==typeof s?this._$AC(t):(void 0===s.el&&(s.el=S.createElement(V(s.h,s.h[0]),this.options)),s);if(this._$AH?._$AD===e)this._$AH.p(i);else{const t=new R(e,this),s=t.u(this.options);t.p(i),this.T(s),this._$AH=t}}_$AC(t){let i=C.get(t.strings);return void 0===i&&C.set(t.strings,i=new S(t)),i}k(t){u(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let s,e=0;for(const h of t)e===i.length?i.push(s=new k(this.O(c()),this.O(c()),this,this.options)):s=i[e],s._$AI(h),e++;e<i.length&&(this._$AR(s&&s._$AB.nextSibling,e),i.length=e)}_$AR(t=this._$AA.nextSibling,s){for(this._$AP?.(!1,!0,s);t!==this._$AB;){const s=i(t).nextSibling;i(t).remove(),t=s}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t))}}class H{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,i,s,e,h){this.type=1,this._$AH=A,this._$AN=void 0,this.element=t,this.name=i,this._$AM=e,this.options=h,s.length>2||""!==s[0]||""!==s[1]?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=A}_$AI(t,i=this,s,e){const h=this.strings;let o=!1;if(void 0===h)t=M(this,t,i,0),o=!a(t)||t!==this._$AH&&t!==E,o&&(this._$AH=t);else{const e=t;let n,r;for(t=h[0],n=0;n<h.length-1;n++)r=M(this,e[s+n],i,n),r===E&&(r=this._$AH[n]),o||=!a(r)||r!==this._$AH[n],r===A?t=A:t!==A&&(t+=(r??"")+h[n+1]),this._$AH[n]=r}o&&!e&&this.j(t)}j(t){t===A?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class I extends H{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===A?void 0:t}}class L extends H{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==A)}}class z extends H{constructor(t,i,s,e,h){super(t,i,s,e,h),this.type=5}_$AI(t,i=this){if((t=M(this,t,i,0)??A)===E)return;const s=this._$AH,e=t===A&&s!==A||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,h=t!==A&&(s===A||e);e&&this.element.removeEventListener(this.name,this,s),h&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}}class Z{constructor(t,i,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=i,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(t){M(this,t)}}const j={M:h,P:o,A:n,C:1,L:N,R,D:d,V:M,I:k,H,N:L,U:z,B:I,F:Z},B=t.litHtmlPolyfillSupport;B?.(S,k),(t.litHtmlVersions??=[]).push("3.3.2");const D=(t,i,s)=>{const e=s?.renderBefore??i;let h=e._$litPart$;if(void 0===h){const t=s?.renderBefore??null;e._$litPart$=h=new k(i.insertBefore(c(),t),t,void 0,s??{})}return h._$AI(t),h};
30678
- //# sourceMappingURL=lit-html.js.map
30679
-
30680
-
30681
- /***/ },
30682
-
30683
- /***/ 6161
30684
- (__unused_webpack___webpack_module__, __nested_webpack_exports__, __nested_webpack_require_42256__) {
30685
-
30686
- /* harmony export */ __nested_webpack_require_42256__.d(__nested_webpack_exports__, {
30687
- /* harmony export */ AH: () => (/* reexport safe */ lit_element_lit_element_js__WEBPACK_IMPORTED_MODULE_2__.AH),
30688
- /* harmony export */ WF: () => (/* reexport safe */ lit_element_lit_element_js__WEBPACK_IMPORTED_MODULE_2__.WF),
30689
- /* harmony export */ qy: () => (/* reexport safe */ lit_element_lit_element_js__WEBPACK_IMPORTED_MODULE_2__.qy),
30690
- /* harmony export */ s6: () => (/* reexport safe */ lit_element_lit_element_js__WEBPACK_IMPORTED_MODULE_2__.s6)
30691
- /* harmony export */ });
30692
- /* harmony import */ var _lit_reactive_element__WEBPACK_IMPORTED_MODULE_0__ = __nested_webpack_require_42256__(8760);
30693
- /* harmony import */ var lit_html__WEBPACK_IMPORTED_MODULE_1__ = __nested_webpack_require_42256__(6752);
30694
- /* harmony import */ var lit_element_lit_element_js__WEBPACK_IMPORTED_MODULE_2__ = __nested_webpack_require_42256__(5228);
29378
+ }
29379
+ };
29380
+ //#endregion
30695
29381
 
30696
- //# sourceMappingURL=index.js.map
30697
29382
 
29383
+ //# sourceMappingURL=PhotoCapture.esm.js.map
29384
+ ;// ./node_modules/solid-ui/dist/v2/components/media/photoCapture/index.esm.js
30698
29385
 
30699
- /***/ }
29386
+ //#region src/v2/components/media/photoCapture/index.ts
29387
+ var photoCapture_index_esm_t = "solid-ui-photo-capture";
29388
+ customElements.get(photoCapture_index_esm_t) || customElements.define(photoCapture_index_esm_t, PhotoCapture_esm_a);
29389
+ //#endregion
30700
29390
 
30701
- /******/ });
30702
- /************************************************************************/
30703
- /******/ // The module cache
30704
- /******/ var photoCapture_index_esm_webpack_module_cache_ = {};
30705
- /******/
30706
- /******/ // The require function
30707
- /******/ function __nested_webpack_require_43396__(moduleId) {
30708
- /******/ // Check if module is in cache
30709
- /******/ var cachedModule = photoCapture_index_esm_webpack_module_cache_[moduleId];
30710
- /******/ if (cachedModule !== undefined) {
30711
- /******/ return cachedModule.exports;
30712
- /******/ }
30713
- /******/ // Create a new module (and put it into the cache)
30714
- /******/ var module = photoCapture_index_esm_webpack_module_cache_[moduleId] = {
30715
- /******/ // no module.id needed
30716
- /******/ // no module.loaded needed
30717
- /******/ exports: {}
30718
- /******/ };
30719
- /******/
30720
- /******/ // Execute the module function
30721
- /******/ photoCapture_index_esm_webpack_modules_[moduleId](module, module.exports, __nested_webpack_require_43396__);
30722
- /******/
30723
- /******/ // Return the exports of the module
30724
- /******/ return module.exports;
30725
- /******/ }
30726
- /******/
30727
- /************************************************************************/
30728
- /******/ /* webpack/runtime/define property getters */
30729
- /******/ (() => {
30730
- /******/ // define getter functions for harmony exports
30731
- /******/ __nested_webpack_require_43396__.d = (exports, definition) => {
30732
- /******/ for(var key in definition) {
30733
- /******/ if(__nested_webpack_require_43396__.o(definition, key) && !__nested_webpack_require_43396__.o(exports, key)) {
30734
- /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
30735
- /******/ }
30736
- /******/ }
30737
- /******/ };
30738
- /******/ })();
30739
- /******/
30740
- /******/ /* webpack/runtime/hasOwnProperty shorthand */
30741
- /******/ (() => {
30742
- /******/ __nested_webpack_require_43396__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
30743
- /******/ })();
30744
- /******/
30745
- /************************************************************************/
30746
- var photoCapture_index_esm_nested_webpack_exports_ = {};
30747
- /* harmony export */ __nested_webpack_require_43396__.d(photoCapture_index_esm_nested_webpack_exports_, {
30748
- /* harmony export */ v: () => (/* reexport safe */ _PhotoCapture__WEBPACK_IMPORTED_MODULE_0__.v)
30749
- /* harmony export */ });
30750
- /* harmony import */ var _PhotoCapture__WEBPACK_IMPORTED_MODULE_0__ = __nested_webpack_require_43396__(3604);
29391
+ //# sourceMappingURL=index.esm.js.map
29392
+ ;// ./node_modules/solid-ui/dist/components/photo-capture/index.esm.js
30751
29393
 
30752
29394
 
30753
- const PHOTO_CAPTURE_TAG_NAME = 'solid-ui-photo-capture';
30754
- if (!customElements.get(PHOTO_CAPTURE_TAG_NAME)) {
30755
- customElements.define(PHOTO_CAPTURE_TAG_NAME, _PhotoCapture__WEBPACK_IMPORTED_MODULE_0__/* .PhotoCapture */ .v);
30756
- }
30757
- const __webpack_exports__PhotoCapture = photoCapture_index_esm_nested_webpack_exports_.v;
30758
29395
 
30759
29396
 
30760
- //# sourceMappingURL=index.esm.js.map
30761
29397
  ;// ./src/sections/heading/mutations.ts
30762
29398
 
30763
29399
 
@@ -31065,6 +29701,17 @@ function toStorageDateISO(value) {
31065
29701
 
31066
29702
 
31067
29703
  const resolvedHeadingImageCache = new Map();
29704
+ function invalidateResolvedPhotoDisplaySrc(imageSrc) {
29705
+ if (!imageSrc)
29706
+ return;
29707
+ const cachedImageSrc = resolvedHeadingImageCache.get(imageSrc);
29708
+ if (!cachedImageSrc)
29709
+ return;
29710
+ resolvedHeadingImageCache.delete(imageSrc);
29711
+ if (cachedImageSrc.startsWith('blob:') && typeof URL.revokeObjectURL === 'function') {
29712
+ URL.revokeObjectURL(cachedImageSrc);
29713
+ }
29714
+ }
31068
29715
  /* Code copied from contact-pane/src/mugshotGallery and modified to fit the needs of the new design */
31069
29716
  const mimeMap = {
31070
29717
  'image/png': 'png',
@@ -31165,19 +29812,6 @@ async function uploadPhotoFile(store, subject, file) {
31165
29812
  }
31166
29813
  return candidateUri;
31167
29814
  }
31168
- async function deletePhotoFile(store, subject, photoUri) {
31169
- void subject;
31170
- if (!photoUri)
31171
- return;
31172
- if (store.fetcher) {
31173
- try {
31174
- await store.fetcher.webOperation('DELETE', photoUri);
31175
- }
31176
- catch (error) {
31177
- debug_error(`Error deleting picture: ${error}`);
31178
- }
31179
- }
31180
- }
31181
29815
 
31182
29816
  ;// ./src/sections/heading/HeadingEditDialog.ts
31183
29817
 
@@ -31376,14 +30010,6 @@ function setResolvedHeadingPreview(formState, resolvedImageSrc) {
31376
30010
  return;
31377
30011
  }
31378
30012
  formState.imagePreviewSrc = resolvedImageSrc;
31379
- if (resolvedImageSrc.startsWith('blob:') && typeof URL.revokeObjectURL === 'function') {
31380
- formState.clearImagePreview = () => {
31381
- URL.revokeObjectURL(resolvedImageSrc);
31382
- formState.imagePreviewSrc = '';
31383
- formState.clearImagePreview = () => undefined;
31384
- };
31385
- return;
31386
- }
31387
30013
  formState.clearImagePreview = () => {
31388
30014
  formState.imagePreviewSrc = '';
31389
30015
  formState.clearImagePreview = () => undefined;
@@ -31645,7 +30271,7 @@ function renderContactAddressInput({ address }) {
31645
30271
  </div>
31646
30272
  `;
31647
30273
  }
31648
- function renderHeadingInfoInput(store, subject, formState, rerender) {
30274
+ function renderHeadingInfoInput(formState, rerender) {
31649
30275
  const { basicInfo, phone, email, imagePreviewSrc } = formState;
31650
30276
  const imageSrcLabel = 'Profile Photo';
31651
30277
  const recommendedImageToLoad = 'Recommended: Square JPG, PNG. Max 2MB.';
@@ -31690,9 +30316,9 @@ function renderHeadingInfoInput(store, subject, formState, rerender) {
31690
30316
  if (!file || !basicInfo)
31691
30317
  return;
31692
30318
  try {
31693
- const uploadedUri = await uploadPhotoFile(store, subject, file);
30319
+ formState.pendingImageFile = file;
31694
30320
  setHeadingImagePreview(formState, file);
31695
- applyRowFieldChange(basicInfo, 'imageSrc', uploadedUri, HeadingEditDialog_rowHasContent);
30321
+ basicInfo.status = basicInfo.entryNode ? 'modified' : 'new';
31696
30322
  rerender();
31697
30323
  }
31698
30324
  catch (error) {
@@ -31743,10 +30369,10 @@ function renderHeadingInfoInput(store, subject, formState, rerender) {
31743
30369
  if (!(detail === null || detail === void 0 ? void 0 : detail.file) || !basicInfo)
31744
30370
  return;
31745
30371
  try {
31746
- const uploadedUri = await uploadPhotoFile(store, subject, detail.file);
30372
+ formState.pendingImageFile = detail.file;
31747
30373
  closeCameraFrame();
31748
30374
  setHeadingImagePreview(formState, detail.file);
31749
- applyRowFieldChange(basicInfo, 'imageSrc', uploadedUri, HeadingEditDialog_rowHasContent);
30375
+ basicInfo.status = basicInfo.entryNode ? 'modified' : 'new';
31750
30376
  rerender();
31751
30377
  }
31752
30378
  catch (error) {
@@ -31760,9 +30386,10 @@ function renderHeadingInfoInput(store, subject, formState, rerender) {
31760
30386
  debug_error('Camera control failed to initialize', error);
31761
30387
  }
31762
30388
  };
31763
- const handleDelete = async (_e) => {
30389
+ const handleDelete = async () => {
31764
30390
  if (!basicInfo)
31765
30391
  return;
30392
+ formState.pendingImageFile = null;
31766
30393
  formState.clearImagePreview();
31767
30394
  applyRowFieldChange(basicInfo, 'imageSrc', '', HeadingEditDialog_rowHasContent);
31768
30395
  rerender();
@@ -31901,10 +30528,10 @@ function renderHeadingInfoInput(store, subject, formState, rerender) {
31901
30528
  </div>
31902
30529
  `;
31903
30530
  }
31904
- function renderHeadingEditTemplate(form, formState, store, subject, viewerMode) {
31905
- const rerender = () => renderHeadingEditTemplate(form, formState, store, subject, viewerMode);
30531
+ function renderHeadingEditTemplate(form, formState, viewerMode) {
30532
+ const rerender = () => renderHeadingEditTemplate(form, formState, viewerMode);
31906
30533
  D(b `
31907
- ${renderHeadingInfoInput(store, subject, formState, rerender)}
30534
+ ${renderHeadingInfoInput(formState, rerender)}
31908
30535
  ${renderContactAddressInput({ address: formState.address })}
31909
30536
  ${viewerMode !== 'owner'
31910
30537
  ? b `<p class="profile-edit-dialog__login-message">${ownerLoginRequiredDialogMessageText}</p>`
@@ -31913,7 +30540,7 @@ function renderHeadingEditTemplate(form, formState, store, subject, viewerMode)
31913
30540
  initializeHeadingContactTypeSelects(form, formState);
31914
30541
  initializeHeadingPronounsSelect(form, formState);
31915
30542
  }
31916
- function createHeadingEditForm(store, subject, profileData, viewerMode) {
30543
+ function createHeadingEditForm(profileData, viewerMode) {
31917
30544
  const form = document.createElement('form');
31918
30545
  form.classList.add('profile__edit-form', 'profile__edit-form--heading', 'profile-edit-dialog--heading');
31919
30546
  form.autocomplete = 'off';
@@ -31921,7 +30548,7 @@ function createHeadingEditForm(store, subject, profileData, viewerMode) {
31921
30548
  form.setAttribute('data-1p-ignore', 'true');
31922
30549
  form.setAttribute('data-bwignore', 'true');
31923
30550
  const formState = HeadingEditDialog_toFormState(profileData);
31924
- renderHeadingEditTemplate(form, formState, store, subject, viewerMode);
30551
+ renderHeadingEditTemplate(form, formState, viewerMode);
31925
30552
  return { form, formState };
31926
30553
  }
31927
30554
  function isValidHeadingEmailAddress(value) {
@@ -31944,12 +30571,12 @@ function validateHeadingDataBeforeSave(formState) {
31944
30571
  async function createHeadingEditDialog(_event, store, subject, profileData, viewerMode, onSaved) {
31945
30572
  const dom = document;
31946
30573
  const originalPhotoUri = sanitizeTextValue(toText(profileData.imageSrc || ''));
31947
- const { form, formState } = createHeadingEditForm(store, subject, profileData, viewerMode);
30574
+ const { form, formState } = createHeadingEditForm(profileData, viewerMode);
31948
30575
  if (formState.basicInfo.imageSrc) {
31949
30576
  const resolvedImageSrc = await resolvePhotoDisplaySrc(store, formState.basicInfo.imageSrc);
31950
30577
  if (resolvedImageSrc && resolvedImageSrc !== formState.basicInfo.imageSrc) {
31951
30578
  setResolvedHeadingPreview(formState, resolvedImageSrc);
31952
- renderHeadingEditTemplate(form, formState, store, subject, viewerMode);
30579
+ renderHeadingEditTemplate(form, formState, viewerMode);
31953
30580
  }
31954
30581
  }
31955
30582
  const result = await openInputDialog({
@@ -31976,6 +30603,10 @@ async function createHeadingEditDialog(_event, store, subject, profileData, view
31976
30603
  return validateHeadingDataBeforeSave(formState);
31977
30604
  },
31978
30605
  onSave: async () => {
30606
+ if (formState.pendingImageFile) {
30607
+ const uploadedUri = await uploadPhotoFile(store, subject, formState.pendingImageFile);
30608
+ applyRowFieldChange(formState.basicInfo, 'imageSrc', uploadedUri, HeadingEditDialog_rowHasContent);
30609
+ }
31979
30610
  const phoneOps = summarizeHeadingContactOps(formState.phone, 'phone', formState.phoneTypeWasMissing);
31980
30611
  const emailOps = summarizeHeadingContactOps(formState.email, 'email', formState.emailTypeWasMissing);
31981
30612
  const plan = {
@@ -31988,10 +30619,10 @@ async function createHeadingEditDialog(_event, store, subject, profileData, view
31988
30619
  const nextPhotoUri = sanitizeTextValue(formState.basicInfo.imageSrc || '');
31989
30620
  if (originalPhotoUri && originalPhotoUri !== nextPhotoUri) {
31990
30621
  try {
31991
- await deletePhotoFile(store, subject, originalPhotoUri);
30622
+ invalidateResolvedPhotoDisplaySrc(originalPhotoUri);
31992
30623
  }
31993
30624
  catch (error) {
31994
- warn('Profile image file delete failed', error);
30625
+ warn('Failed to invalidate resolved photo cache', error);
31995
30626
  }
31996
30627
  }
31997
30628
  },
@@ -31999,8 +30630,9 @@ async function createHeadingEditDialog(_event, store, subject, profileData, view
31999
30630
  return error instanceof Error ? error.message : saveHeadingUpdatesFailedMessageText;
32000
30631
  }
32001
30632
  });
32002
- if (!result)
30633
+ if (!result) {
32003
30634
  return;
30635
+ }
32004
30636
  if (onSaved) {
32005
30637
  await onSaved();
32006
30638
  }
@@ -35704,10 +34336,12 @@ function firstContactValue(store, subject, predicate, kind) {
35704
34336
  }
35705
34337
  const qrCodeRenderOptions = {
35706
34338
  type: 'svg',
34339
+ margin: 0,
34340
+ width: 151,
35707
34341
  color: {
35708
34342
  dark: '#000000',
35709
- light: '#ffffff'
35710
- }
34343
+ light: '#ffffff00',
34344
+ },
35711
34345
  };
35712
34346
  function renderQRCodeSvg(value) {
35713
34347
  return new Promise((resolve, reject) => {