@hotosm/ui 0.3.4-b3 → 0.5.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 (68) hide show
  1. package/README.md +18 -7
  2. package/dist/chunks/chunk.3RPYDHJV.js +1 -0
  3. package/dist/chunks/chunk.5NFC3HMD.js +1 -0
  4. package/dist/chunks/chunk.7BVHA4G6.js +71 -0
  5. package/dist/chunks/{chunk.SLQC3DLQ.js → chunk.7G6VEQ2R.js} +2 -2
  6. package/dist/chunks/chunk.ARF626EG.js +59 -0
  7. package/dist/chunks/{chunk.SHZIJ2ZS.js → chunk.BD4Q32VT.js} +1 -1
  8. package/dist/chunks/chunk.CQO3GWTI.js +32 -0
  9. package/dist/chunks/chunk.EB2T3VFE.js +122 -0
  10. package/dist/chunks/chunk.GEAU3JJH.js +187 -0
  11. package/dist/chunks/{chunk.NA3GD2QI.js → chunk.GLN7KYWH.js} +1 -1
  12. package/dist/chunks/{chunk.CY4WTDL2.js → chunk.LHZ7Q2M3.js} +1 -1
  13. package/dist/chunks/{chunk.SVLPRECX.js → chunk.PBBH42B6.js} +1 -1
  14. package/dist/chunks/chunk.PLECT4NZ.js +20 -0
  15. package/dist/chunks/chunk.QABMDRWR.js +28 -0
  16. package/dist/chunks/chunk.SLA5IPJG.js +1 -0
  17. package/dist/chunks/chunk.TMMJP2DW.js +1 -0
  18. package/dist/chunks/chunk.VXTJYHK5.js +1 -0
  19. package/dist/chunks/chunk.W372S2KG.js +1 -0
  20. package/dist/chunks/chunk.WTTPHBL3.js +105 -0
  21. package/dist/chunks/chunk.XDXYJBLZ.js +1 -0
  22. package/dist/chunks/{chunk.TYOVPHVD.js → chunk.XNZFLEXO.js} +1 -1
  23. package/dist/chunks/chunk.ZETV7TDG.js +25 -0
  24. package/dist/components/consent/consent.component.js +1 -1
  25. package/dist/components/consent/consent.js +1 -1
  26. package/dist/components/consent/consent.styles.js +1 -1
  27. package/dist/components/file-input-dropzone/file-input-dropzone.component.d.ts +39 -0
  28. package/dist/components/file-input-dropzone/file-input-dropzone.component.js +1 -0
  29. package/dist/components/file-input-dropzone/file-input-dropzone.d.ts +8 -0
  30. package/dist/components/file-input-dropzone/file-input-dropzone.js +1 -0
  31. package/dist/components/file-input-dropzone/file-input-dropzone.styles.d.ts +2 -0
  32. package/dist/components/file-input-dropzone/file-input-dropzone.styles.js +1 -0
  33. package/dist/components/header/header.component.d.ts +0 -2
  34. package/dist/components/header/header.component.js +1 -1
  35. package/dist/components/header/header.js +1 -1
  36. package/dist/components/header/header.styles.js +1 -1
  37. package/dist/components/list-card/list-card.component.d.ts +16 -0
  38. package/dist/components/list-card/list-card.component.js +1 -0
  39. package/dist/components/list-card/list-card.d.ts +7 -0
  40. package/dist/components/list-card/list-card.js +1 -0
  41. package/dist/components/list-card/list-card.styles.d.ts +2 -0
  42. package/dist/components/list-card/list-card.styles.js +1 -0
  43. package/dist/components/logo/logo.component.js +1 -1
  44. package/dist/components/logo/logo.js +1 -1
  45. package/dist/components/logo/logo.styles.js +1 -1
  46. package/dist/components/tool-menu/tool-menu.component.d.ts +13 -0
  47. package/dist/components/tool-menu/tool-menu.component.js +1 -0
  48. package/dist/components/tool-menu/tool-menu.d.ts +7 -0
  49. package/dist/components/tool-menu/tool-menu.js +1 -0
  50. package/dist/components/tool-menu/tool-menu.styles.d.ts +1 -0
  51. package/dist/components/tool-menu/tool-menu.styles.js +1 -0
  52. package/dist/components/tracking/tracking.component.js +1 -1
  53. package/dist/components/tracking/tracking.js +1 -1
  54. package/dist/hotosm-ui.d.ts +9 -6
  55. package/dist/hotosm-ui.js +1 -1
  56. package/dist/style.css +4 -3
  57. package/dist/themes/{hot-wa-override.css → hot-wa.css} +122 -323
  58. package/dist/themes/hot.css +15 -15
  59. package/dist/utils/shadow-dom-css.d.ts +3 -17
  60. package/package.json +21 -6
  61. package/dist/chunks/chunk.2LYFUHTS.js +0 -633
  62. package/dist/chunks/chunk.5EPWWJMT.js +0 -1
  63. package/dist/chunks/chunk.7M3AMUDU.js +0 -1
  64. package/dist/chunks/chunk.FT6RSQVB.js +0 -25
  65. package/dist/chunks/chunk.JHIEUZ7A.js +0 -1
  66. package/dist/chunks/chunk.WSMXFTSE.js +0 -28
  67. package/dist/chunks/chunk.XB4PECPF.js +0 -1
  68. package/dist/themes/hot-button-override.css +0 -246
@@ -0,0 +1,187 @@
1
+ import{a as o}from"./chunk.QABMDRWR.js";var e=o`
2
+ :host {
3
+ display: block;
4
+ }
5
+
6
+ .file-input-dropzone {
7
+ font-family: var(--hot-font-sans);
8
+ width: 100%;
9
+ }
10
+
11
+ .sr-only {
12
+ position: absolute;
13
+ width: 1px;
14
+ height: 1px;
15
+ padding: 0;
16
+ margin: -1px;
17
+ overflow: hidden;
18
+ clip: rect(0, 0, 0, 0);
19
+ white-space: nowrap;
20
+ border: 0;
21
+ }
22
+
23
+ .label {
24
+ display: block;
25
+ font-size: var(--hot-font-size-medium);
26
+ font-weight: var(--hot-font-weight-semibold);
27
+ color: var(--hot-color-primary-700);
28
+ margin-bottom: var(--hot-spacing-small);
29
+ }
30
+
31
+ .dropzone {
32
+ position: relative;
33
+ border: 1px dashed var(--hot-color-neutral-300);
34
+ border-radius: var(--hot-border-radius-large);
35
+ border-width: 4px;
36
+ padding: var(--hot-spacing-2x-large);
37
+ transition: all 0.2s ease;
38
+ cursor: pointer;
39
+ text-align: center;
40
+ }
41
+
42
+ .dropzone:hover:not(.dropzone--disabled) {
43
+ border-color: var(--hot-color-neutral-100);
44
+ background-color: var(--hot-color-neutral-50);
45
+ }
46
+
47
+ .dropzone:focus {
48
+ outline: 2px solid var(--hot-color-red-600);
49
+ outline-offset: 2px;
50
+ }
51
+
52
+ .dropzone:focus:not(:focus-visible) {
53
+ outline: none;
54
+ }
55
+
56
+ .dropzone:focus-visible {
57
+ outline: 2px solid var(--hot-color-red-600);
58
+ outline-offset: 2px;
59
+ }
60
+
61
+ .dropzone--dragging {
62
+ border-color: var(--hot-color-red-500);
63
+ background-color: var(--hot-color-red-100);
64
+ border-width: 3px;
65
+ }
66
+
67
+ .dropzone--disabled {
68
+ opacity: 0.5;
69
+ cursor: not-allowed;
70
+ background-color: var(--hot-color-neutral-100);
71
+ }
72
+
73
+ .dropzone input[type='file'] {
74
+ position: absolute;
75
+ width: 1px;
76
+ height: 1px;
77
+ padding: 0;
78
+ margin: -1px;
79
+ overflow: hidden;
80
+ clip: rect(0, 0, 0, 0);
81
+ white-space: nowrap;
82
+ border: 0;
83
+ }
84
+
85
+ .dropzone-content {
86
+ display: flex;
87
+ flex-direction: column;
88
+ align-items: center;
89
+ gap: var(--hot-spacing-medium);
90
+ }
91
+
92
+ .dropzone-icon {
93
+ font-size: 48px;
94
+ color: var(--hot-color-neutral-400);
95
+ transition: color 0.2s ease;
96
+ }
97
+
98
+ .dropzone:hover:not(.dropzone--disabled) .dropzone-icon {
99
+ color: var(--hot-color-red-500);
100
+ }
101
+
102
+ .dropzone--dragging .dropzone-icon {
103
+ color: var(--hot-color-red-600);
104
+ }
105
+
106
+ .dropzone-cta {
107
+ display: flex;
108
+ justify-content: center;
109
+ }
110
+
111
+ .dropzone-text {
112
+ font-size: var(--hot-font-size-small);
113
+ font-weight: 500;
114
+ color: var(--hot-color-neutral-700);
115
+ text-align: center;
116
+ }
117
+
118
+ .dropzone-text .browse {
119
+ color: var(--hot-color-primary-700);
120
+ }
121
+
122
+ .dropzone-accept,
123
+ .dropzone-maxsize {
124
+ font-size: var(--hot-font-size-x-small);
125
+ font-weight: var(--hot-font-weight-light);
126
+ color: var(--hot-color-neutral-500);
127
+ text-align: center;
128
+ }
129
+
130
+ /* Compact variant - horizontal layout with icon on left */
131
+ .dropzone--compact {
132
+ padding: var(--hot-spacing-large) var(--hot-spacing-x-large);
133
+ }
134
+
135
+ .dropzone--compact .dropzone-content {
136
+ flex-direction: row;
137
+ gap: var(--hot-spacing-medium);
138
+ }
139
+
140
+ .dropzone--compact .dropzone-icon {
141
+ font-size: 32px;
142
+ }
143
+
144
+ .dropzone--compact .compact-text {
145
+ font-size: var(--hot-font-size-large);
146
+ color: var(--hot-color-neutral-600);
147
+ }
148
+
149
+ .error-message {
150
+ display: flex;
151
+ align-items: center;
152
+ gap: var(--hot-spacing-x-small);
153
+ margin-top: var(--hot-spacing-small);
154
+ padding: var(--hot-spacing-small);
155
+ background-color: var(--hot-color-red-50);
156
+ border: 1px solid var(--hot-color-red-200);
157
+ border-radius: var(--hot-border-radius-small);
158
+ color: var(--hot-color-red-700);
159
+ font-size: var(--hot-font-size-small);
160
+ }
161
+
162
+ .error-message wa-icon {
163
+ color: var(--hot-color-red-600);
164
+ font-size: var(--hot-font-size-medium);
165
+ }
166
+
167
+ .file-preview-list {
168
+ display: flex;
169
+ flex-direction: column;
170
+ gap: var(--hot-spacing-small);
171
+ margin-top: var(--hot-spacing-large);
172
+ }
173
+
174
+ @media (max-width: 640px) {
175
+ .dropzone {
176
+ padding: var(--hot-spacing-large);
177
+ }
178
+
179
+ .dropzone-icon {
180
+ font-size: 36px;
181
+ }
182
+
183
+ .dropzone-text {
184
+ font-size: var(--hot-font-size-small);
185
+ }
186
+ }
187
+ `;export{e as a};
@@ -1,4 +1,4 @@
1
- import{a as d}from"./chunk.TYOVPHVD.js";import{a as r}from"./chunk.FT6RSQVB.js";import{a as l}from"./chunk.M3ZIZPKF.js";import{d as o,e as c}from"./chunk.WSMXFTSE.js";import{d as s,e as n,f as a,g as i}from"./chunk.N2W26RCT.js";import"@awesome.me/webawesome/dist/components/callout/callout.js";import"@awesome.me/webawesome/dist/components/icon/icon.js";import"@awesome.me/webawesome/dist/components/button/button.js";l();var u,g,p,b,h,m,e=class extends c{constructor(){super(...arguments);this.name="hot-consent";a(this,u,"");a(this,g,!0);a(this,p,"About the information we collect");a(this,b,"We use cookies and similar technologies to recognize and analyze your visits, and measure traffic usage and activity.");a(this,h,"I Agree");a(this,m,"I Do Not Agree")}get consentId(){return n(this,u)}set consentId(t){i(this,u,t)}get isOpen(){return n(this,g)}set isOpen(t){i(this,g,t)}get title(){return n(this,p)}set title(t){i(this,p,t)}get message(){return n(this,b)}set message(t){i(this,b,t)}get agreeLabel(){return n(this,h)}set agreeLabel(t){i(this,h,t)}get notAgreeLabel(){return n(this,m)}set notAgreeLabel(t){i(this,m,t)}render(){return this.isOpen?o`
1
+ import{a as l}from"./chunk.M3ZIZPKF.js";import{a as d}from"./chunk.XNZFLEXO.js";import{a as r}from"./chunk.ZETV7TDG.js";import{d as o,f as c}from"./chunk.QABMDRWR.js";import{d as s,e as n,f as a,g as i}from"./chunk.N2W26RCT.js";import"@awesome.me/webawesome/dist/components/callout/callout.js";import"@awesome.me/webawesome/dist/components/icon/icon.js";import"@awesome.me/webawesome/dist/components/button/button.js";l();var u,g,p,b,h,m,e=class extends c{constructor(){super(...arguments);this.name="hot-consent";a(this,u,"");a(this,g,!0);a(this,p,"About the information we collect");a(this,b,"We use cookies and similar technologies to recognize and analyze your visits, and measure traffic usage and activity.");a(this,h,"I Agree");a(this,m,"I Do Not Agree")}get consentId(){return n(this,u)}set consentId(t){i(this,u,t)}get isOpen(){return n(this,g)}set isOpen(t){i(this,g,t)}get title(){return n(this,p)}set title(t){i(this,p,t)}get message(){return n(this,b)}set message(t){i(this,b,t)}get agreeLabel(){return n(this,h)}set agreeLabel(t){i(this,h,t)}get notAgreeLabel(){return n(this,m)}set notAgreeLabel(t){i(this,m,t)}render(){return this.isOpen?o`
2
2
  <div class="consent-overlay">
3
3
  <div class="consent-container">
4
4
  <wa-callout variant="brand" appearance="outlined filled" size="large" class="consent-callout">
@@ -1,4 +1,4 @@
1
- import{a as f}from"./chunk.WSMXFTSE.js";import{a as h,c as v}from"./chunk.N2W26RCT.js";function p(t){var r,e,a="";if(typeof t=="string"||typeof t=="number")a+=t;else if(typeof t=="object")if(Array.isArray(t)){var n=t.length;for(r=0;r<n;r++)t[r]&&(e=p(t[r]))&&(a&&(a+=" "),a+=e)}else for(e in t)t[e]&&(a&&(a+=" "),a+=e);return a}function b(){for(var t,r,e=0,a="",n=arguments.length;e<n;e++)(t=arguments[e])&&(r=p(t))&&(a&&(a+=" "),a+=r);return a}var x=t=>typeof t=="boolean"?`${t}`:t===0?"0":t,y=b,w=(t,r)=>e=>{var a;if((r==null?void 0:r.variants)==null)return y(t,e==null?void 0:e.class,e==null?void 0:e.className);let{variants:n,defaultVariants:s}=r,z=Object.keys(n).map(o=>{let i=e==null?void 0:e[o],d=s==null?void 0:s[o];if(i===null)return null;let l=x(i)||x(d);return n[o][l]}),m=e&&Object.entries(e).reduce((o,i)=>{let[d,l]=i;return l===void 0||(o[d]=l),o},{}),j=r==null||(a=r.compoundVariants)===null||a===void 0?void 0:a.reduce((o,i)=>{let g=i,{class:d,className:l}=g,k=v(g,["class","className"]);return Object.entries(k).every(V=>{let[u,c]=V;return Array.isArray(c)?c.includes(h(h({},s),m)[u]):h(h({},s),m)[u]===c})?[...o,d,l]:o},[]);return y(t,z,j,e==null?void 0:e.class,e==null?void 0:e.className)};var S=w(`
1
+ import{a as f}from"./chunk.QABMDRWR.js";import{a as h,c as v}from"./chunk.N2W26RCT.js";function p(t){var r,e,a="";if(typeof t=="string"||typeof t=="number")a+=t;else if(typeof t=="object")if(Array.isArray(t)){var n=t.length;for(r=0;r<n;r++)t[r]&&(e=p(t[r]))&&(a&&(a+=" "),a+=e)}else for(e in t)t[e]&&(a&&(a+=" "),a+=e);return a}function b(){for(var t,r,e=0,a="",n=arguments.length;e<n;e++)(t=arguments[e])&&(r=p(t))&&(a&&(a+=" "),a+=r);return a}var x=t=>typeof t=="boolean"?`${t}`:t===0?"0":t,y=b,w=(t,r)=>e=>{var a;if((r==null?void 0:r.variants)==null)return y(t,e==null?void 0:e.class,e==null?void 0:e.className);let{variants:n,defaultVariants:s}=r,z=Object.keys(n).map(o=>{let i=e==null?void 0:e[o],d=s==null?void 0:s[o];if(i===null)return null;let l=x(i)||x(d);return n[o][l]}),m=e&&Object.entries(e).reduce((o,i)=>{let[d,l]=i;return l===void 0||(o[d]=l),o},{}),j=r==null||(a=r.compoundVariants)===null||a===void 0?void 0:a.reduce((o,i)=>{let g=i,{class:d,className:l}=g,k=v(g,["class","className"]);return Object.entries(k).every(V=>{let[u,c]=V;return Array.isArray(c)?c.includes(h(h({},s),m)[u]):h(h({},s),m)[u]===c})?[...o,d,l]:o},[]);return y(t,z,j,e==null?void 0:e.class,e==null?void 0:e.className)};var S=w(`
2
2
  header
3
3
  `,{variants:{size:{small:"header--size-small",medium:"header--size-medium",large:"header--size-large"},borderBottom:{true:"border-bottom"}}}),_=f`
4
4
  .header {
@@ -1,4 +1,4 @@
1
- import{a as e}from"./chunk.WSMXFTSE.js";var t=e`
1
+ import{a as e}from"./chunk.QABMDRWR.js";var t=e`
2
2
  .logo {
3
3
  line-height: 0;
4
4
  height: var(--hot-spacing-3x-large)
@@ -0,0 +1,20 @@
1
+ import{a as r}from"./chunk.7BVHA4G6.js";import{a as n}from"./chunk.ZETV7TDG.js";import{d as l,f as a}from"./chunk.QABMDRWR.js";import{d as t,e as s,f as o,g as i}from"./chunk.N2W26RCT.js";import"@awesome.me/webawesome/dist/components/icon/icon.js";var h,d,m,v,u,y,e=class extends a{constructor(){super(...arguments);this.name="hot-list-card";o(this,h,"");o(this,d,"");o(this,m,"");o(this,v,"");o(this,u,!0);o(this,y,!0)}get title(){return s(this,h)}set title(c){i(this,h,c)}get subtitle(){return s(this,d)}set subtitle(c){i(this,d,c)}get icon(){return s(this,m)}set icon(c){i(this,m,c)}get itemId(){return s(this,v)}set itemId(c){i(this,v,c)}get showRemove(){return s(this,u)}set showRemove(c){i(this,u,c)}get showIcon(){return s(this,y)}set showIcon(c){i(this,y,c)}_handleRemove(){this.dispatchEvent(new CustomEvent("hot-remove",{detail:{id:this.itemId},bubbles:!0,composed:!0}))}_handleKeyDown(c){(c.key==="Enter"||c.key===" ")&&(c.preventDefault(),this._handleRemove())}render(){let c=this.showIcon&&this.icon;return l`
2
+ <div class="list-item" role="listitem">
3
+ ${c?l`<wa-icon name=${this.icon} class="list-icon" aria-hidden="true"></wa-icon>`:""}
4
+ <div class="list-info">
5
+ <div class="list-title" id="title-${this.itemId}">${this.title}</div>
6
+ ${this.subtitle?l`<div class="list-subtitle">${this.subtitle}</div>`:""}
7
+ </div>
8
+ ${this.showRemove?l`
9
+ <button
10
+ type="button"
11
+ class="remove-button"
12
+ @click=${this._handleRemove}
13
+ @keydown=${this._handleKeyDown}
14
+ aria-label="Remove ${this.title}"
15
+ >
16
+ <wa-icon name="xmark" class="remove-icon" aria-hidden="true"></wa-icon>
17
+ </button>
18
+ `:""}
19
+ </div>
20
+ `}};h=new WeakMap,d=new WeakMap,m=new WeakMap,v=new WeakMap,u=new WeakMap,y=new WeakMap,e.styles=[r],t([n({type:String})],e.prototype,"title",1),t([n({type:String})],e.prototype,"subtitle",1),t([n({type:String})],e.prototype,"icon",1),t([n({type:String})],e.prototype,"itemId",1),t([n({type:Boolean})],e.prototype,"showRemove",1),t([n({type:Boolean})],e.prototype,"showIcon",1);var I=e;export{e as a,I as b};
@@ -0,0 +1,28 @@
1
+ var R=globalThis,L=R.ShadowRoot&&(R.ShadyCSS===void 0||R.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,D=Symbol(),X=new WeakMap,w=class{constructor(t,e,s){if(this._$cssResult$=!0,s!==D)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o,e=this.t;if(L&&t===void 0){let s=e!==void 0&&e.length===1;s&&(t=X.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),s&&X.set(e,t))}return t}toString(){return this.cssText}},Y=o=>new w(typeof o=="string"?o:o+"",void 0,D),St=(o,...t)=>{let e=o.length===1?o[0]:t.reduce((s,i,n)=>s+(r=>{if(r._$cssResult$===!0)return r.cssText;if(typeof r=="number")return r;throw Error("Value passed to 'css' function must be a 'css' function result: "+r+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+o[n+1],o[0]);return new w(e,o,D)},tt=(o,t)=>{if(L)o.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(let e of t){let s=document.createElement("style"),i=R.litNonce;i!==void 0&&s.setAttribute("nonce",i),s.textContent=e.cssText,o.appendChild(s)}},j=L?o=>o:o=>o instanceof CSSStyleSheet?(t=>{let e="";for(let s of t.cssRules)e+=s.cssText;return Y(e)})(o):o;var{is:Et,defineProperty:bt,getOwnPropertyDescriptor:Ct,getOwnPropertyNames:wt,getOwnPropertySymbols:xt,getPrototypeOf:Pt}=Object,f=globalThis,et=f.trustedTypes,Ut=et?et.emptyScript:"",z=f.reactiveElementPolyfillSupport,x=(o,t)=>o,B={toAttribute(o,t){switch(t){case Boolean:o=o?Ut:null;break;case Object:case Array:o=o==null?o:JSON.stringify(o)}return o},fromAttribute(o,t){let e=o;switch(t){case Boolean:e=o!==null;break;case Number:e=o===null?null:Number(o);break;case Object:case Array:try{e=JSON.parse(o)}catch(s){e=null}}return e}},nt=(o,t)=>!Et(o,t),st={attribute:!0,type:String,converter:B,reflect:!1,useDefault:!1,hasChanged:nt},it,ot;(it=Symbol.metadata)!=null||(Symbol.metadata=Symbol("metadata")),(ot=f.litPropertyMetadata)!=null||(f.litPropertyMetadata=new WeakMap);var $=class extends HTMLElement{static addInitializer(t){var e;this._$Ei(),((e=this.l)!=null?e:this.l=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=st){if(e.state&&(e.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((e=Object.create(e)).wrapped=!0),this.elementProperties.set(t,e),!e.noAccessor){let s=Symbol(),i=this.getPropertyDescriptor(t,s,e);i!==void 0&&bt(this.prototype,t,i)}}static getPropertyDescriptor(t,e,s){var r;let{get:i,set:n}=(r=Ct(this.prototype,t))!=null?r:{get(){return this[e]},set(a){this[e]=a}};return{get:i,set(a){let h=i==null?void 0:i.call(this);n==null||n.call(this,a),this.requestUpdate(t,h,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){var e;return(e=this.elementProperties.get(t))!=null?e:st}static _$Ei(){if(this.hasOwnProperty(x("elementProperties")))return;let t=Pt(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(x("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(x("properties"))){let e=this.properties,s=[...wt(e),...xt(e)];for(let i of s)this.createProperty(i,e[i])}let t=this[Symbol.metadata];if(t!==null){let e=litPropertyMetadata.get(t);if(e!==void 0)for(let[s,i]of e)this.elementProperties.set(s,i)}this._$Eh=new Map;for(let[e,s]of this.elementProperties){let i=this._$Eu(e,s);i!==void 0&&this._$Eh.set(i,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){let e=[];if(Array.isArray(t)){let s=new Set(t.flat(1/0).reverse());for(let i of s)e.unshift(j(i))}else t!==void 0&&e.push(j(t));return e}static _$Eu(t,e){let s=e.attribute;return s===!1?void 0:typeof s=="string"?s:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var t;this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),(t=this.constructor.l)==null||t.forEach(e=>e(this))}addController(t){var e,s;((e=this._$EO)!=null?e:this._$EO=new Set).add(t),this.renderRoot!==void 0&&this.isConnected&&((s=t.hostConnected)==null||s.call(t))}removeController(t){var e;(e=this._$EO)==null||e.delete(t)}_$E_(){let t=new Map,e=this.constructor.elementProperties;for(let s of e.keys())this.hasOwnProperty(s)&&(t.set(s,this[s]),delete this[s]);t.size>0&&(this._$Ep=t)}createRenderRoot(){var e;let t=(e=this.shadowRoot)!=null?e:this.attachShadow(this.constructor.shadowRootOptions);return tt(t,this.constructor.elementStyles),t}connectedCallback(){var t,e;(t=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(e=this._$EO)==null||e.forEach(s=>{var i;return(i=s.hostConnected)==null?void 0:i.call(s)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$EO)==null||t.forEach(e=>{var s;return(s=e.hostDisconnected)==null?void 0:s.call(e)})}attributeChangedCallback(t,e,s){this._$AK(t,s)}_$ET(t,e){var n;let s=this.constructor.elementProperties.get(t),i=this.constructor._$Eu(t,s);if(i!==void 0&&s.reflect===!0){let r=(((n=s.converter)==null?void 0:n.toAttribute)!==void 0?s.converter:B).toAttribute(e,s.type);this._$Em=t,r==null?this.removeAttribute(i):this.setAttribute(i,r),this._$Em=null}}_$AK(t,e){var n,r,a;let s=this.constructor,i=s._$Eh.get(t);if(i!==void 0&&this._$Em!==i){let h=s.getPropertyOptions(i),l=typeof h.converter=="function"?{fromAttribute:h.converter}:((n=h.converter)==null?void 0:n.fromAttribute)!==void 0?h.converter:B;this._$Em=i;let c=l.fromAttribute(e,h.type);this[i]=(a=c!=null?c:(r=this._$Ej)==null?void 0:r.get(i))!=null?a:c,this._$Em=null}}requestUpdate(t,e,s,i=!1,n){var r,a;if(t!==void 0){let h=this.constructor;if(i===!1&&(n=this[t]),s!=null||(s=h.getPropertyOptions(t)),!(((r=s.hasChanged)!=null?r:nt)(n,e)||s.useDefault&&s.reflect&&n===((a=this._$Ej)==null?void 0:a.get(t))&&!this.hasAttribute(h._$Eu(t,s))))return;this.C(t,e,s)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(t,e,{useDefault:s,reflect:i,wrapped:n},r){var a,h,l;s&&!((a=this._$Ej)!=null?a:this._$Ej=new Map).has(t)&&(this._$Ej.set(t,(h=r!=null?r:e)!=null?h:this[t]),n!==!0||r!==void 0)||(this._$AL.has(t)||(this.hasUpdated||s||(e=void 0),this._$AL.set(t,e)),i===!0&&this._$Em!==t&&((l=this._$Eq)!=null?l:this._$Eq=new Set).add(t))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}let t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var s,i;if(!this.isUpdatePending)return;if(!this.hasUpdated){if((s=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this._$Ep){for(let[r,a]of this._$Ep)this[r]=a;this._$Ep=void 0}let n=this.constructor.elementProperties;if(n.size>0)for(let[r,a]of n){let{wrapped:h}=a,l=this[r];h!==!0||this._$AL.has(r)||l===void 0||this.C(r,void 0,a,l)}}let t=!1,e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),(i=this._$EO)==null||i.forEach(n=>{var r;return(r=n.hostUpdate)==null?void 0:r.call(n)}),this.update(e)):this._$EM()}catch(n){throw t=!1,this._$EM(),n}t&&this._$AE(e)}willUpdate(t){}_$AE(t){var e;(e=this._$EO)==null||e.forEach(s=>{var i;return(i=s.hostUpdated)==null?void 0:i.call(s)}),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=this._$Eq.forEach(e=>this._$ET(e,this[e]))),this._$EM()}updated(t){}firstUpdated(t){}},rt;$.elementStyles=[],$.shadowRootOptions={mode:"open"},$[x("elementProperties")]=new Map,$[x("finalized")]=new Map,z==null||z({ReactiveElement:$}),((rt=f.reactiveElementVersions)!=null?rt:f.reactiveElementVersions=[]).push("2.1.2");var U=globalThis,ht=o=>o,k=U.trustedTypes,at=k?k.createPolicy("lit-html",{createHTML:o=>o}):void 0,_t="$lit$",A=`lit$${Math.random().toFixed(9).slice(2)}$`,ft="?"+A,Ot=`<${ft}>`,y=document,O=()=>y.createComment(""),H=o=>o===null||typeof o!="object"&&typeof o!="function",Z=Array.isArray,Ht=o=>Z(o)||typeof(o==null?void 0:o[Symbol.iterator])=="function",I=`[
2
+ \f\r]`,P=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,lt=/-->/g,ct=/>/g,m=RegExp(`>|${I}(?:([^\\s"'>=/]+)(${I}*=${I}*(?:[^
3
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),dt=/'/g,pt=/"/g,At=/^(?:script|style|textarea|title)$/i,G=o=>(t,...e)=>({_$litType$:o,strings:t,values:e}),kt=G(1),Dt=G(2),jt=G(3),v=Symbol.for("lit-noChange"),p=Symbol.for("lit-nothing"),ut=new WeakMap,g=y.createTreeWalker(y,129);function mt(o,t){if(!Z(o)||!o.hasOwnProperty("raw"))throw Error("invalid template strings array");return at!==void 0?at.createHTML(t):t}var Mt=(o,t)=>{let e=o.length-1,s=[],i,n=t===2?"<svg>":t===3?"<math>":"",r=P;for(let a=0;a<e;a++){let h=o[a],l,c,d=-1,u=0;for(;u<h.length&&(r.lastIndex=u,c=r.exec(h),c!==null);)u=r.lastIndex,r===P?c[1]==="!--"?r=lt:c[1]!==void 0?r=ct:c[2]!==void 0?(At.test(c[2])&&(i=RegExp("</"+c[2],"g")),r=m):c[3]!==void 0&&(r=m):r===m?c[0]===">"?(r=i!=null?i:P,d=-1):c[1]===void 0?d=-2:(d=r.lastIndex-c[2].length,l=c[1],r=c[3]===void 0?m:c[3]==='"'?pt:dt):r===pt||r===dt?r=m:r===lt||r===ct?r=P:(r=m,i=void 0);let _=r===m&&o[a+1].startsWith("/>")?" ":"";n+=r===P?h+Ot:d>=0?(s.push(l),h.slice(0,d)+_t+h.slice(d)+A+_):h+A+(d===-2?a:_)}return[mt(o,n+(o[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),s]},M=class o{constructor({strings:t,_$litType$:e},s){let i;this.parts=[];let n=0,r=0,a=t.length-1,h=this.parts,[l,c]=Mt(t,e);if(this.el=o.createElement(l,s),g.currentNode=this.el.content,e===2||e===3){let d=this.el.content.firstChild;d.replaceWith(...d.childNodes)}for(;(i=g.nextNode())!==null&&h.length<a;){if(i.nodeType===1){if(i.hasAttributes())for(let d of i.getAttributeNames())if(d.endsWith(_t)){let u=c[r++],_=i.getAttribute(d).split(A),T=/([.?@])?(.*)/.exec(u);h.push({type:1,index:n,name:T[2],strings:_,ctor:T[1]==="."?q:T[1]==="?"?K:T[1]==="@"?F:b}),i.removeAttribute(d)}else d.startsWith(A)&&(h.push({type:6,index:n}),i.removeAttribute(d));if(At.test(i.tagName)){let d=i.textContent.split(A),u=d.length-1;if(u>0){i.textContent=k?k.emptyScript:"";for(let _=0;_<u;_++)i.append(d[_],O()),g.nextNode(),h.push({type:2,index:++n});i.append(d[u],O())}}}else if(i.nodeType===8)if(i.data===ft)h.push({type:2,index:n});else{let d=-1;for(;(d=i.data.indexOf(A,d+1))!==-1;)h.push({type:7,index:n}),d+=A.length-1}n++}}static createElement(t,e){let s=y.createElement("template");return s.innerHTML=t,s}};function E(o,t,e=o,s){var r,a,h;if(t===v)return t;let i=s!==void 0?(r=e._$Co)==null?void 0:r[s]:e._$Cl,n=H(t)?void 0:t._$litDirective$;return(i==null?void 0:i.constructor)!==n&&((a=i==null?void 0:i._$AO)==null||a.call(i,!1),n===void 0?i=void 0:(i=new n(o),i._$AT(o,e,s)),s!==void 0?((h=e._$Co)!=null?h:e._$Co=[])[s]=i:e._$Cl=i),i!==void 0&&(t=E(o,i._$AS(o,t.values),i,s)),t}var W=class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var l;let{el:{content:e},parts:s}=this._$AD,i=((l=t==null?void 0:t.creationScope)!=null?l:y).importNode(e,!0);g.currentNode=i;let n=g.nextNode(),r=0,a=0,h=s[0];for(;h!==void 0;){if(r===h.index){let c;h.type===2?c=new N(n,n.nextSibling,this,t):h.type===1?c=new h.ctor(n,h.name,h.strings,this,t):h.type===6&&(c=new J(n,this,t)),this._$AV.push(c),h=s[++a]}r!==(h==null?void 0:h.index)&&(n=g.nextNode(),r++)}return g.currentNode=y,i}p(t){let e=0;for(let s of this._$AV)s!==void 0&&(s.strings!==void 0?(s._$AI(t,s,e),e+=s.strings.length-2):s._$AI(t[e])),e++}},N=class o{get _$AU(){var t,e;return(e=(t=this._$AM)==null?void 0:t._$AU)!=null?e:this._$Cv}constructor(t,e,s,i){var n;this.type=2,this._$AH=p,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=s,this.options=i,this._$Cv=(n=i==null?void 0:i.isConnected)!=null?n:!0}get parentNode(){let t=this._$AA.parentNode,e=this._$AM;return e!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=E(this,t,e),H(t)?t===p||t==null||t===""?(this._$AH!==p&&this._$AR(),this._$AH=p):t!==this._$AH&&t!==v&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):Ht(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!==p&&H(this._$AH)?this._$AA.nextSibling.data=t:this.T(y.createTextNode(t)),this._$AH=t}$(t){var n;let{values:e,_$litType$:s}=t,i=typeof s=="number"?this._$AC(t):(s.el===void 0&&(s.el=M.createElement(mt(s.h,s.h[0]),this.options)),s);if(((n=this._$AH)==null?void 0:n._$AD)===i)this._$AH.p(e);else{let r=new W(i,this),a=r.u(this.options);r.p(e),this.T(a),this._$AH=r}}_$AC(t){let e=ut.get(t.strings);return e===void 0&&ut.set(t.strings,e=new M(t)),e}k(t){Z(this._$AH)||(this._$AH=[],this._$AR());let e=this._$AH,s,i=0;for(let n of t)i===e.length?e.push(s=new o(this.O(O()),this.O(O()),this,this.options)):s=e[i],s._$AI(n),i++;i<e.length&&(this._$AR(s&&s._$AB.nextSibling,i),e.length=i)}_$AR(t=this._$AA.nextSibling,e){var s;for((s=this._$AP)==null?void 0:s.call(this,!1,!0,e);t!==this._$AB;){let i=ht(t).nextSibling;ht(t).remove(),t=i}}setConnected(t){var e;this._$AM===void 0&&(this._$Cv=t,(e=this._$AP)==null||e.call(this,t))}},b=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,s,i,n){this.type=1,this._$AH=p,this._$AN=void 0,this.element=t,this.name=e,this._$AM=i,this.options=n,s.length>2||s[0]!==""||s[1]!==""?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=p}_$AI(t,e=this,s,i){let n=this.strings,r=!1;if(n===void 0)t=E(this,t,e,0),r=!H(t)||t!==this._$AH&&t!==v,r&&(this._$AH=t);else{let a=t,h,l;for(t=n[0],h=0;h<n.length-1;h++)l=E(this,a[s+h],e,h),l===v&&(l=this._$AH[h]),r||(r=!H(l)||l!==this._$AH[h]),l===p?t=p:t!==p&&(t+=(l!=null?l:"")+n[h+1]),this._$AH[h]=l}r&&!i&&this.j(t)}j(t){t===p?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t!=null?t:"")}},q=class extends b{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===p?void 0:t}},K=class extends b{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==p)}},F=class extends b{constructor(t,e,s,i,n){super(t,e,s,i,n),this.type=5}_$AI(t,e=this){var r;if((t=(r=E(this,t,e,0))!=null?r:p)===v)return;let s=this._$AH,i=t===p&&s!==p||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,n=t!==p&&(s===p||i);i&&this.element.removeEventListener(this.name,this,s),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,s;typeof this._$AH=="function"?this._$AH.call((s=(e=this.options)==null?void 0:e.host)!=null?s:this.element,t):this._$AH.handleEvent(t)}},J=class{constructor(t,e,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(t){E(this,t)}};var V=U.litHtmlPolyfillSupport,$t;V==null||V(M,N),(($t=U.litHtmlVersions)!=null?$t:U.litHtmlVersions=[]).push("3.3.2");var gt=(o,t,e)=>{var n,r;let s=(n=e==null?void 0:e.renderBefore)!=null?n:t,i=s._$litPart$;if(i===void 0){let a=(r=e==null?void 0:e.renderBefore)!=null?r:null;s._$litPart$=i=new N(t.insertBefore(O(),a),a,void 0,e!=null?e:{})}return i._$AI(o),i};var S=globalThis,C=class extends ${constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e,s;let t=super.createRenderRoot();return(s=(e=this.renderOptions).renderBefore)!=null||(e.renderBefore=t.firstChild),t}update(t){let e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=gt(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),(t=this._$Do)==null||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this._$Do)==null||t.setConnected(!1)}render(){return v}},yt;C._$litElement$=!0,C.finalized=!0,(yt=S.litElementHydrateSupport)==null||yt.call(S,{LitElement:C});var Q=S.litElementPolyfillSupport;Q==null||Q({LitElement:C});var vt;((vt=S.litElementVersions)!=null?vt:S.litElementVersions=[]).push("4.2.2");export{St as a,B as b,nt as c,kt as d,v as e,C as f};
4
+ /*! Bundled license information:
5
+
6
+ @lit/reactive-element/css-tag.js:
7
+ (**
8
+ * @license
9
+ * Copyright 2019 Google LLC
10
+ * SPDX-License-Identifier: BSD-3-Clause
11
+ *)
12
+
13
+ @lit/reactive-element/reactive-element.js:
14
+ lit-html/lit-html.js:
15
+ lit-element/lit-element.js:
16
+ (**
17
+ * @license
18
+ * Copyright 2017 Google LLC
19
+ * SPDX-License-Identifier: BSD-3-Clause
20
+ *)
21
+
22
+ lit-html/is-server.js:
23
+ (**
24
+ * @license
25
+ * Copyright 2022 Google LLC
26
+ * SPDX-License-Identifier: BSD-3-Clause
27
+ *)
28
+ */
@@ -0,0 +1 @@
1
+ import{b as a}from"./chunk.7G6VEQ2R.js";var t=a;customElements.define("hot-tracking",a);export{t as a};
@@ -0,0 +1 @@
1
+ import{b as e}from"./chunk.PLECT4NZ.js";var a=e;customElements.define("hot-list-card",e);export{a};
@@ -0,0 +1 @@
1
+ import{b as e}from"./chunk.EB2T3VFE.js";var r=e;customElements.define("hot-header",e);export{r as a};
@@ -0,0 +1 @@
1
+ import{b as e}from"./chunk.WTTPHBL3.js";var t=e;customElements.define("hot-file-input-dropzone",e);export{t as a};
@@ -0,0 +1,105 @@
1
+ import{a as f,b as m,c as z}from"./chunk.ZETV7TDG.js";import{a as M}from"./chunk.GEAU3JJH.js";import{d as h,e as x,f as F}from"./chunk.QABMDRWR.js";import{d as n,e as o,f as d,g as c}from"./chunk.N2W26RCT.js";var E={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},y=l=>(...a)=>({_$litDirective$:l,values:a}),$=class{constructor(a){}get _$AU(){return this._$AM._$AU}_$AT(a,e,i){this._$Ct=a,this._$AM=e,this._$Ci=i}_$AS(a,e){return this.update(a,e)}update(a,e){return this.render(...e)}};var _=y(class extends ${constructor(l){var a;if(super(l),l.type!==E.ATTRIBUTE||l.name!=="class"||((a=l.strings)==null?void 0:a.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(l){return" "+Object.keys(l).filter(a=>l[a]).join(" ")+" "}update(l,[a]){var i,s;if(this.st===void 0){this.st=new Set,l.strings!==void 0&&(this.nt=new Set(l.strings.join(" ").split(/\s/).filter(t=>t!=="")));for(let t in a)a[t]&&!((i=this.nt)!=null&&i.has(t))&&this.st.add(t);return this.render(a)}let e=l.element.classList;for(let t of this.st)t in a||(e.remove(t),this.st.delete(t));for(let t in a){let p=!!a[t];p===this.st.has(t)||(s=this.nt)!=null&&s.has(t)||(p?(e.add(t),this.st.add(t)):(e.remove(t),this.st.delete(t)))}return x}});import"@awesome.me/webawesome/dist/components/icon/icon.js";import"@awesome.me/webawesome/dist/components/divider/divider.js";var S,T,C,D,A,B,L,P,k,W,I,O,r=class extends F{constructor(){super(...arguments);this.name="hot-file-input-dropzone";d(this,S,!1);d(this,T,"");d(this,C,0);d(this,D,!0);d(this,A,!1);d(this,B,"");d(this,L,"traditional");d(this,P,!1);d(this,k,[]);d(this,W,"");d(this,I,"");d(this,O)}get multiple(){return o(this,S)}set multiple(e){c(this,S,e)}get accept(){return o(this,T)}set accept(e){c(this,T,e)}get maxSize(){return o(this,C)}set maxSize(e){c(this,C,e)}get showPreview(){return o(this,D)}set showPreview(e){c(this,D,e)}get disabled(){return o(this,A)}set disabled(e){c(this,A,e)}get label(){return o(this,B)}set label(e){c(this,B,e)}get variant(){return o(this,L)}set variant(e){c(this,L,e)}get isDragging(){return o(this,P)}set isDragging(e){c(this,P,e)}get selectedFiles(){return o(this,k)}set selectedFiles(e){c(this,k,e)}get errorMessage(){return o(this,W)}set errorMessage(e){c(this,W,e)}get statusMessage(){return o(this,I)}set statusMessage(e){c(this,I,e)}get fileInput(){return o(this,O)}set fileInput(e){c(this,O,e)}_generateId(){return`file-${Date.now()}-${Math.random().toString(36).substring(2,11)}`}_handleDragOver(e){e.preventDefault(),e.stopPropagation(),this.disabled||(this.isDragging=!0)}_handleDragLeave(e){e.preventDefault(),e.stopPropagation(),this.isDragging=!1}_handleDrop(e){var s;if(e.preventDefault(),e.stopPropagation(),this.isDragging=!1,this.disabled)return;let i=Array.from(((s=e.dataTransfer)==null?void 0:s.files)||[]);this._processFiles(i)}_handleClick(){this.disabled||this.fileInput.click()}_handleKeyDown(e){!this.disabled&&(e.key==="Enter"||e.key===" ")&&(e.preventDefault(),this.fileInput.click())}_handleFileInputChange(e){let i=e.target,s=Array.from(i.files||[]);this._processFiles(s)}_processFiles(e){if(this.errorMessage="",!this.multiple&&e.length>1){this.errorMessage="Only one file can be selected";return}if(this.accept){let t=this.accept.split(",").map(u=>u.trim().toLowerCase()),p=e.filter(u=>{let b=u.name.toLowerCase(),g=u.type.toLowerCase();return!t.some(v=>{if(v.startsWith("."))return b.endsWith(v);if(v.endsWith("/*")){let w=v.split("/")[0];if(g)return g.startsWith(w+"/");let j=b.substring(b.lastIndexOf("."));return this._getFileIcon(j).includes(w)}return g?g===v:!1})});if(p.length>0){this.errorMessage=`Invalid file type(s): ${p.map(u=>u.name).join(", ")}`;return}}if(this.maxSize>0){let t=e.filter(p=>p.size>this.maxSize);if(t.length>0){this.errorMessage=`File(s) exceed maximum size of ${this._formatFileSize(this.maxSize)}: ${t.map(p=>p.name).join(", ")}`;return}}let i=e.map(t=>({file:t,id:this._generateId()}));this.multiple?this.selectedFiles=[...i,...this.selectedFiles]:this.selectedFiles=i,this.dispatchEvent(new CustomEvent("hot-file-change",{detail:{files:this.selectedFiles.map(t=>t.file)},bubbles:!0,composed:!0})),this.dispatchEvent(new CustomEvent("hot-files-selected",{detail:{files:i.map(t=>t.file),allFiles:this.selectedFiles.map(t=>t.file)},bubbles:!0,composed:!0}));let s=i.length;this.statusMessage=`${s} ${s===1?"file":"files"} selected: ${i.map(t=>t.file.name).join(", ")}`}_removeFile(e){let i=this.selectedFiles.find(s=>s.id===e);this.selectedFiles=this.selectedFiles.filter(s=>s.id!==e),this.fileInput&&(this.fileInput.value=""),this.dispatchEvent(new CustomEvent("hot-file-change",{detail:{files:this.selectedFiles.map(s=>s.file)},bubbles:!0,composed:!0})),i&&(this.statusMessage=`File removed: ${i.file.name}. ${this.selectedFiles.length} ${this.selectedFiles.length===1?"file":"files"} remaining.`)}_formatFileSize(e){if(e===0)return"0 Bytes";let i=1e3,s=["Bytes","KB","MB","GB"],t=Math.floor(Math.log(e)/Math.log(i)),p=e/Math.pow(i,t);return`${Math.round(p*10)/10} ${s[t]}`}_getFileIcon(e){return e.startsWith("image/")?"file-image":e.startsWith("video/")?"file-video":e.startsWith("audio/")?"file-audio":e==="application/pdf"?"file-pdf":e.includes("word")?"file-word":e.includes("sheet")||e.includes("excel")?"file-excel":e.includes("zip")||e.includes("rar")||e.includes("7z")?"file-archive":e.includes("text")?"file-text":"file"}clearFiles(){this.selectedFiles=[],this.errorMessage="",this.fileInput&&(this.fileInput.value="")}getFiles(){return this.selectedFiles.map(e=>e.file)}render(){let e={dropzone:!0,"dropzone--dragging":this.isDragging,"dropzone--disabled":this.disabled,"dropzone--has-files":this.selectedFiles.length>0,"dropzone--compact":this.variant==="compact"},i=this.variant==="compact";return h`
2
+ <div class="file-input-dropzone">
3
+ ${this.label&&this.variant==="traditional"?h`<label class="label" id="dropzone-label">${this.label}</label>`:""}
4
+ ${this.variant==="traditional"?h`<wa-divider></wa-divider>`:""}
5
+
6
+ <div
7
+ class=${_(e)}
8
+ role="button"
9
+ tabindex=${this.disabled?"-1":"0"}
10
+ aria-disabled=${this.disabled}
11
+ aria-label=${this.label||"File upload"}
12
+ aria-describedby="dropzone-description${this.accept||this.maxSize?" dropzone-hints":""}"
13
+ @dragover=${this._handleDragOver}
14
+ @dragleave=${this._handleDragLeave}
15
+ @drop=${this._handleDrop}
16
+ @click=${this._handleClick}
17
+ @keydown=${this._handleKeyDown}
18
+ >
19
+ <input
20
+ type="file"
21
+ class="file-uploader"
22
+ ?multiple=${this.multiple}
23
+ accept=${this.accept}
24
+ ?disabled=${this.disabled}
25
+ @change=${this._handleFileInputChange}
26
+ aria-hidden="true"
27
+ tabindex="-1"
28
+ />
29
+
30
+ <div class="dropzone-content">
31
+ <wa-icon
32
+ name="${i?"arrow-up-from-bracket":"cloud-arrow-up"}"
33
+ class="dropzone-icon"
34
+ aria-hidden="true"
35
+ ></wa-icon>
36
+ <div class="dropzone-text">
37
+ ${i?h`<div class="compact-text" id="dropzone-description">
38
+ ${this.label}
39
+ </div>`:this.isDragging?h`<div id="dropzone-description">
40
+ Drop ${this.multiple?"files":"file"} here
41
+ </div>`:h`
42
+ <div class="dropzone-cta" id="dropzone-description">
43
+ <div>
44
+ Drop ${this.multiple?"files":"file"} here or&nbsp;
45
+ </div>
46
+ <div class="browse">browse</div>
47
+ </div>
48
+ ${this.accept||this.maxSize?h`<div id="dropzone-hints">
49
+ ${this.accept?h`<div class="dropzone-accept">
50
+ ${this.accept.split(",").join(", ")} only
51
+ </div>`:""}
52
+ ${this.maxSize?h`<div class="dropzone-maxsize">
53
+ Max size: ${this._formatFileSize(this.maxSize)}
54
+ </div>`:""}
55
+ </div>`:""}
56
+ `}
57
+ </div>
58
+ </div>
59
+ </div>
60
+ ${this.errorMessage?h`
61
+ <div class="error-message" role="alert">
62
+ <wa-icon name="exclamation-circle"></wa-icon>
63
+ ${this.errorMessage}
64
+ </div>
65
+ `:""}
66
+ ${this.showPreview&&this.selectedFiles.length>0?h`
67
+ <div class="file-preview-list">
68
+ ${this.selectedFiles.map(({file:s,id:t})=>h`
69
+ <hot-list-card
70
+ title=${s.name}
71
+ subtitle=${this._formatFileSize(s.size)}
72
+ icon=${this._getFileIcon(s.type)}
73
+ itemId=${t}
74
+ @hot-remove=${()=>this._removeFile(t)}
75
+ ></hot-list-card>
76
+ `)}
77
+ </div>
78
+ `:""}
79
+
80
+ <div
81
+ class="sr-only"
82
+ role="status"
83
+ aria-live="polite"
84
+ aria-atomic="true"
85
+ >
86
+ ${this.statusMessage}
87
+ </div>
88
+ </div>
89
+ `}};S=new WeakMap,T=new WeakMap,C=new WeakMap,D=new WeakMap,A=new WeakMap,B=new WeakMap,L=new WeakMap,P=new WeakMap,k=new WeakMap,W=new WeakMap,I=new WeakMap,O=new WeakMap,r.styles=[M],n([f({type:Boolean})],r.prototype,"multiple",1),n([f({type:String})],r.prototype,"accept",1),n([f({type:Number})],r.prototype,"maxSize",1),n([f({type:Boolean})],r.prototype,"showPreview",1),n([f({type:Boolean})],r.prototype,"disabled",1),n([f({type:String})],r.prototype,"label",1),n([f({type:String})],r.prototype,"variant",1),n([m()],r.prototype,"isDragging",1),n([m()],r.prototype,"selectedFiles",1),n([m()],r.prototype,"errorMessage",1),n([m()],r.prototype,"statusMessage",1),n([z('input[type="file"]')],r.prototype,"fileInput",1);var te=r;export{r as a,te as b};
90
+ /*! Bundled license information:
91
+
92
+ lit-html/directive.js:
93
+ (**
94
+ * @license
95
+ * Copyright 2017 Google LLC
96
+ * SPDX-License-Identifier: BSD-3-Clause
97
+ *)
98
+
99
+ lit-html/directives/class-map.js:
100
+ (**
101
+ * @license
102
+ * Copyright 2018 Google LLC
103
+ * SPDX-License-Identifier: BSD-3-Clause
104
+ *)
105
+ */
@@ -0,0 +1 @@
1
+ import{b as o}from"./chunk.CQO3GWTI.js";var t=o;customElements.define("hotosm-tool-menu",o);export{t as a};
@@ -1,4 +1,4 @@
1
- import{a as o}from"./chunk.WSMXFTSE.js";var t=o`
1
+ import{a as o}from"./chunk.QABMDRWR.js";var t=o`
2
2
  :host {
3
3
  display: block;
4
4
  }
@@ -0,0 +1,25 @@
1
+ import{b as d,c as m}from"./chunk.QABMDRWR.js";import{a as l,b as p}from"./chunk.N2W26RCT.js";var y={attribute:!0,type:String,converter:d,reflect:!1,hasChanged:m},g=(e=y,s,t)=>{let{kind:a,metadata:c}=t,i=globalThis.litPropertyMetadata.get(c);if(i===void 0&&globalThis.litPropertyMetadata.set(c,i=new Map),a==="setter"&&((e=Object.create(e)).wrapped=!0),i.set(t.name,e),a==="accessor"){let{name:n}=t;return{set(o){let r=s.get.call(this);s.set.call(this,o),this.requestUpdate(n,r,e,!0,o)},init(o){return o!==void 0&&this.C(n,void 0,e,o),o}}}if(a==="setter"){let{name:n}=t;return function(o){let r=this[n];s.call(this,o),this.requestUpdate(n,r,e,!0,o)}}throw Error("Unsupported decorator location: "+a)};function f(e){return(s,t)=>typeof t=="object"?g(e,s,t):((a,c,i)=>{let n=c.hasOwnProperty(i);return c.constructor.createProperty(i,a),n?Object.getOwnPropertyDescriptor(c,i):void 0})(e,s,t)}function v(e){return f(p(l({},e),{state:!0,attribute:!1}))}var u=(e,s,t)=>(t.configurable=!0,t.enumerable=!0,Reflect.decorate&&typeof s!="object"&&Object.defineProperty(e,s,t),t);function S(e,s){return(t,a,c)=>{let i=n=>{var o,r;return(r=(o=n.renderRoot)==null?void 0:o.querySelector(e))!=null?r:null};if(s){let{get:n,set:o}=typeof a=="object"?t:c!=null?c:(()=>{let r=Symbol();return{get(){return this[r]},set(h){this[r]=h}}})();return u(t,a,{get(){let r=n.call(this);return r===void 0&&(r=i(this),(r!==null||this.hasUpdated)&&o.call(this,r)),r}})}return u(t,a,{get(){return i(this)}})}}export{f as a,v as b,S as c};
2
+ /*! Bundled license information:
3
+
4
+ @lit/reactive-element/decorators/property.js:
5
+ @lit/reactive-element/decorators/state.js:
6
+ @lit/reactive-element/decorators/base.js:
7
+ @lit/reactive-element/decorators/query.js:
8
+ @lit/reactive-element/decorators/custom-element.js:
9
+ @lit/reactive-element/decorators/event-options.js:
10
+ @lit/reactive-element/decorators/query-all.js:
11
+ @lit/reactive-element/decorators/query-async.js:
12
+ @lit/reactive-element/decorators/query-assigned-nodes.js:
13
+ (**
14
+ * @license
15
+ * Copyright 2017 Google LLC
16
+ * SPDX-License-Identifier: BSD-3-Clause
17
+ *)
18
+
19
+ @lit/reactive-element/decorators/query-assigned-elements.js:
20
+ (**
21
+ * @license
22
+ * Copyright 2021 Google LLC
23
+ * SPDX-License-Identifier: BSD-3-Clause
24
+ *)
25
+ */
@@ -1 +1 @@
1
- import{a,b}from"../../chunks/chunk.NA3GD2QI.js";import"../../chunks/chunk.TYOVPHVD.js";import"../../chunks/chunk.FT6RSQVB.js";import"../../chunks/chunk.M3ZIZPKF.js";import"../../chunks/chunk.WSMXFTSE.js";import"../../chunks/chunk.N2W26RCT.js";export{a as Consent,b as default};
1
+ import{a,b}from"../../chunks/chunk.GLN7KYWH.js";import"../../chunks/chunk.M3ZIZPKF.js";import"../../chunks/chunk.XNZFLEXO.js";import"../../chunks/chunk.ZETV7TDG.js";import"../../chunks/chunk.QABMDRWR.js";import"../../chunks/chunk.N2W26RCT.js";export{a as Consent,b as default};
@@ -1 +1 @@
1
- import{a}from"../../chunks/chunk.XB4PECPF.js";import"../../chunks/chunk.NA3GD2QI.js";import"../../chunks/chunk.TYOVPHVD.js";import"../../chunks/chunk.FT6RSQVB.js";import"../../chunks/chunk.M3ZIZPKF.js";import"../../chunks/chunk.WSMXFTSE.js";import"../../chunks/chunk.N2W26RCT.js";export{a as default};
1
+ import{a}from"../../chunks/chunk.3RPYDHJV.js";import"../../chunks/chunk.GLN7KYWH.js";import"../../chunks/chunk.M3ZIZPKF.js";import"../../chunks/chunk.XNZFLEXO.js";import"../../chunks/chunk.ZETV7TDG.js";import"../../chunks/chunk.QABMDRWR.js";import"../../chunks/chunk.N2W26RCT.js";export{a as default};
@@ -1 +1 @@
1
- import{a}from"../../chunks/chunk.TYOVPHVD.js";import"../../chunks/chunk.WSMXFTSE.js";import"../../chunks/chunk.N2W26RCT.js";export{a as default};
1
+ import{a}from"../../chunks/chunk.XNZFLEXO.js";import"../../chunks/chunk.QABMDRWR.js";import"../../chunks/chunk.N2W26RCT.js";export{a as default};
@@ -0,0 +1,39 @@
1
+ import { LitElement } from 'lit';
2
+ import '@awesome.me/webawesome/dist/components/icon/icon.js';
3
+ import '@awesome.me/webawesome/dist/components/divider/divider.js';
4
+ import '../list-card/list-card.js';
5
+ export interface FileWithPreview {
6
+ file: File;
7
+ id: string;
8
+ }
9
+ export declare class FileInputDropzone extends LitElement {
10
+ static styles: import("lit").CSSResult[];
11
+ name: string;
12
+ accessor multiple: boolean;
13
+ accessor accept: string;
14
+ accessor maxSize: number;
15
+ accessor showPreview: boolean;
16
+ accessor disabled: boolean;
17
+ accessor label: string;
18
+ accessor variant: 'traditional' | 'compact';
19
+ private accessor isDragging;
20
+ private accessor selectedFiles;
21
+ private accessor errorMessage;
22
+ private accessor statusMessage;
23
+ private accessor fileInput;
24
+ private _generateId;
25
+ private _handleDragOver;
26
+ private _handleDragLeave;
27
+ private _handleDrop;
28
+ private _handleClick;
29
+ private _handleKeyDown;
30
+ private _handleFileInputChange;
31
+ private _processFiles;
32
+ private _removeFile;
33
+ private _formatFileSize;
34
+ private _getFileIcon;
35
+ clearFiles(): void;
36
+ getFiles(): File[];
37
+ protected render(): import("lit").TemplateResult<1>;
38
+ }
39
+ export default FileInputDropzone;
@@ -0,0 +1 @@
1
+ import{a,b}from"../../chunks/chunk.WTTPHBL3.js";import"../../chunks/chunk.TMMJP2DW.js";import"../../chunks/chunk.PLECT4NZ.js";import"../../chunks/chunk.7BVHA4G6.js";import"../../chunks/chunk.ZETV7TDG.js";import"../../chunks/chunk.GEAU3JJH.js";import"../../chunks/chunk.QABMDRWR.js";import"../../chunks/chunk.N2W26RCT.js";export{a as FileInputDropzone,b as default};
@@ -0,0 +1,8 @@
1
+ import FileInputDropzone from './file-input-dropzone.component.js';
2
+ export default FileInputDropzone;
3
+ export type { FileWithPreview } from './file-input-dropzone.component.js';
4
+ declare global {
5
+ interface HTMLElementTagNameMap {
6
+ 'hot-file-input-dropzone': FileInputDropzone;
7
+ }
8
+ }
@@ -0,0 +1 @@
1
+ import{a}from"../../chunks/chunk.W372S2KG.js";import"../../chunks/chunk.WTTPHBL3.js";import"../../chunks/chunk.TMMJP2DW.js";import"../../chunks/chunk.PLECT4NZ.js";import"../../chunks/chunk.7BVHA4G6.js";import"../../chunks/chunk.ZETV7TDG.js";import"../../chunks/chunk.GEAU3JJH.js";import"../../chunks/chunk.QABMDRWR.js";import"../../chunks/chunk.N2W26RCT.js";export{a as default};
@@ -0,0 +1,2 @@
1
+ declare const _default: import("lit").CSSResult;
2
+ export default _default;
@@ -0,0 +1 @@
1
+ import{a}from"../../chunks/chunk.GEAU3JJH.js";import"../../chunks/chunk.QABMDRWR.js";import"../../chunks/chunk.N2W26RCT.js";export{a as default};
@@ -40,8 +40,6 @@ export declare class Header extends LitElement {
40
40
  /** Default fallback icon for providers without custom icons. */
41
41
  accessor defaultLoginIcon: string;
42
42
  connectedCallback(): Promise<void>;
43
- protected firstUpdated(): void;
44
- protected updated(): void;
45
43
  selectTab(index: number): void;
46
44
  protected render(): import("lit").TemplateResult<1>;
47
45
  private _tabClick;
@@ -1 +1 @@
1
- import{e as a,f as b}from"../../chunks/chunk.2LYFUHTS.js";import"../../chunks/chunk.FT6RSQVB.js";import"../../chunks/chunk.M3ZIZPKF.js";import"../../chunks/chunk.CY4WTDL2.js";import"../../chunks/chunk.WSMXFTSE.js";import"../../chunks/chunk.N2W26RCT.js";export{a as Header,b as default};
1
+ import{a,b}from"../../chunks/chunk.EB2T3VFE.js";import"../../chunks/chunk.LHZ7Q2M3.js";import"../../chunks/chunk.M3ZIZPKF.js";import"../../chunks/chunk.ZETV7TDG.js";import"../../chunks/chunk.QABMDRWR.js";import"../../chunks/chunk.N2W26RCT.js";export{a as Header,b as default};
@@ -1 +1 @@
1
- import{a}from"../../chunks/chunk.7M3AMUDU.js";import"../../chunks/chunk.2LYFUHTS.js";import"../../chunks/chunk.FT6RSQVB.js";import"../../chunks/chunk.M3ZIZPKF.js";import"../../chunks/chunk.CY4WTDL2.js";import"../../chunks/chunk.WSMXFTSE.js";import"../../chunks/chunk.N2W26RCT.js";export{a as default};
1
+ import{a}from"../../chunks/chunk.VXTJYHK5.js";import"../../chunks/chunk.EB2T3VFE.js";import"../../chunks/chunk.LHZ7Q2M3.js";import"../../chunks/chunk.M3ZIZPKF.js";import"../../chunks/chunk.ZETV7TDG.js";import"../../chunks/chunk.QABMDRWR.js";import"../../chunks/chunk.N2W26RCT.js";export{a as default};
@@ -1 +1 @@
1
- import{a,b}from"../../chunks/chunk.CY4WTDL2.js";import"../../chunks/chunk.WSMXFTSE.js";import"../../chunks/chunk.N2W26RCT.js";export{a as headerVariants,b as styles};
1
+ import{a,b}from"../../chunks/chunk.LHZ7Q2M3.js";import"../../chunks/chunk.QABMDRWR.js";import"../../chunks/chunk.N2W26RCT.js";export{a as headerVariants,b as styles};
@@ -0,0 +1,16 @@
1
+ import { LitElement } from 'lit';
2
+ import '@awesome.me/webawesome/dist/components/icon/icon.js';
3
+ export declare class ListCard extends LitElement {
4
+ static styles: import("lit").CSSResult[];
5
+ name: string;
6
+ accessor title: string;
7
+ accessor subtitle: string;
8
+ accessor icon: string;
9
+ accessor itemId: string;
10
+ accessor showRemove: boolean;
11
+ accessor showIcon: boolean;
12
+ private _handleRemove;
13
+ private _handleKeyDown;
14
+ protected render(): import("lit").TemplateResult<1>;
15
+ }
16
+ export default ListCard;
@@ -0,0 +1 @@
1
+ import{a,b}from"../../chunks/chunk.PLECT4NZ.js";import"../../chunks/chunk.7BVHA4G6.js";import"../../chunks/chunk.ZETV7TDG.js";import"../../chunks/chunk.QABMDRWR.js";import"../../chunks/chunk.N2W26RCT.js";export{a as ListCard,b as default};
@@ -0,0 +1,7 @@
1
+ import ListCard from './list-card.component.js';
2
+ export default ListCard;
3
+ declare global {
4
+ interface HTMLElementTagNameMap {
5
+ 'hot-list-card': ListCard;
6
+ }
7
+ }
@@ -0,0 +1 @@
1
+ import{a}from"../../chunks/chunk.TMMJP2DW.js";import"../../chunks/chunk.PLECT4NZ.js";import"../../chunks/chunk.7BVHA4G6.js";import"../../chunks/chunk.ZETV7TDG.js";import"../../chunks/chunk.QABMDRWR.js";import"../../chunks/chunk.N2W26RCT.js";export{a as default};
@@ -0,0 +1,2 @@
1
+ declare const _default: import("lit").CSSResult;
2
+ export default _default;
@@ -0,0 +1 @@
1
+ import{a}from"../../chunks/chunk.7BVHA4G6.js";import"../../chunks/chunk.QABMDRWR.js";import"../../chunks/chunk.N2W26RCT.js";export{a as default};
@@ -1 +1 @@
1
- import{a,b}from"../../chunks/chunk.SHZIJ2ZS.js";import"../../chunks/chunk.SVLPRECX.js";import"../../chunks/chunk.FT6RSQVB.js";import"../../chunks/chunk.WSMXFTSE.js";import"../../chunks/chunk.N2W26RCT.js";export{a as Logo,b as default};
1
+ import{a,b}from"../../chunks/chunk.BD4Q32VT.js";import"../../chunks/chunk.PBBH42B6.js";import"../../chunks/chunk.ZETV7TDG.js";import"../../chunks/chunk.QABMDRWR.js";import"../../chunks/chunk.N2W26RCT.js";export{a as Logo,b as default};