@hotosm/ui 0.3.1-b1 → 0.3.1-b2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/{chunk.XYLRVYKD.js → chunk.3Y46BCZT.js} +1 -1
- package/dist/chunks/{chunk.DQ7UCE7O.js → chunk.4YLAIDAG.js} +1 -1
- package/dist/chunks/chunk.54RIFX2M.js +669 -0
- package/dist/chunks/chunk.6ZDEZIWM.js +73 -0
- package/dist/chunks/{chunk.N5L63ITD.js → chunk.IG27I42A.js} +1 -1
- package/dist/chunks/chunk.NI7UJOOZ.js +1 -0
- package/dist/chunks/chunk.PE4OKGWW.js +700 -0
- package/dist/chunks/chunk.PQUDDU4D.js +69 -0
- package/dist/chunks/{chunk.277I73JI.js → chunk.T4GALJJA.js} +1 -1
- package/dist/chunks/chunk.U4P7XQR4.js +40 -0
- package/dist/chunks/{chunk.TVZQJVLS.js → chunk.UTSKEKTV.js} +1 -1
- package/dist/chunks/{chunk.TJK2P3MY.js → chunk.WBE5WRYN.js} +1 -1
- package/dist/components/consent/consent.component.d.ts +3 -3
- package/dist/components/consent/consent.component.js +1 -1
- package/dist/components/consent/consent.js +1 -1
- package/dist/components/consent/consent.styles.js +1 -1
- package/dist/components/header/header.component.d.ts +3 -3
- package/dist/components/header/header.component.js +1 -1
- package/dist/components/header/header.js +1 -1
- package/dist/components/header/header.styles.js +1 -1
- package/dist/components/icons.js +1 -1
- package/dist/components/logo/logo.component.js +1 -1
- package/dist/components/logo/logo.js +1 -1
- package/dist/components/logo/logo.styles.js +1 -1
- package/dist/components/tracking/tracking.component.d.ts +3 -3
- package/dist/components/tracking/tracking.component.js +1 -1
- package/dist/components/tracking/tracking.js +1 -1
- package/dist/hotosm-ui.js +1 -1
- package/package.json +4 -3
- package/dist/chunks/chunk.2C7KHCNI.js +0 -40
- package/dist/chunks/chunk.3BMRK6RX.js +0 -94
- package/dist/chunks/chunk.6QXNTVCU.js +0 -1
- package/dist/chunks/chunk.7P5E5KMI.js +0 -73
- package/dist/chunks/chunk.BLTVEIFI.js +0 -1
- package/dist/chunks/chunk.GRD7DOAE.js +0 -14
- package/dist/chunks/chunk.GTA7FK6E.js +0 -1
- package/dist/chunks/chunk.H27BHZTL.js +0 -1
- package/dist/chunks/chunk.NK4IZUTO.js +0 -1
- package/dist/chunks/chunk.PICS5Z5K.js +0 -1
- package/dist/chunks/chunk.RGDK5VTE.js +0 -1
- package/dist/chunks/chunk.V76UU3GK.js +0 -1
- package/dist/chunks/chunk.W5TPMQK4.js +0 -1
- package/dist/react/consent/index.js +0 -1
- package/dist/react/header/index.js +0 -1
- package/dist/react/index.js +0 -1
- package/dist/react/logo/index.js +0 -1
- package/dist/react/tracking/index.js +0 -1
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import{c as o,d as t,g as l,h as i}from"./chunk.PE4OKGWW.js";import{a as e,b as a}from"./chunk.6ZDEZIWM.js";import{e as n}from"./chunk.U4P7XQR4.js";var d=`:host {
|
|
2
|
+
display: flex;
|
|
3
|
+
position: relative;
|
|
4
|
+
align-items: stretch;
|
|
5
|
+
border-radius: var(--wa-panel-border-radius);
|
|
6
|
+
background-color: var(--wa-color-fill-quiet, var(--wa-color-brand-fill-quiet));
|
|
7
|
+
border-color: var(--wa-color-border-quiet, var(--wa-color-brand-border-quiet));
|
|
8
|
+
border-style: var(--wa-panel-border-style);
|
|
9
|
+
border-width: var(--wa-panel-border-width);
|
|
10
|
+
color: var(--wa-color-text-normal);
|
|
11
|
+
padding: 1em;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
/* Appearance modifiers */
|
|
15
|
+
:host([appearance~='plain']) {
|
|
16
|
+
background-color: transparent;
|
|
17
|
+
border-color: transparent;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
:host([appearance~='outlined']) {
|
|
21
|
+
background-color: transparent;
|
|
22
|
+
border-color: var(--wa-color-border-loud, var(--wa-color-brand-border-loud));
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
:host([appearance~='filled']) {
|
|
26
|
+
background-color: var(--wa-color-fill-quiet, var(--wa-color-brand-fill-quiet));
|
|
27
|
+
border-color: transparent;
|
|
28
|
+
|
|
29
|
+
&:host([appearance~='outlined']) {
|
|
30
|
+
border-color: var(--wa-color-border-quiet, var(--wa-color-brand-border-quiet));
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
:host([appearance~='accent']) {
|
|
35
|
+
color: var(--wa-color-on-loud, var(--wa-color-brand-on-loud));
|
|
36
|
+
background-color: var(--wa-color-fill-loud, var(--wa-color-brand-fill-loud));
|
|
37
|
+
border-color: transparent;
|
|
38
|
+
|
|
39
|
+
[part~='icon'] {
|
|
40
|
+
color: currentColor;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
[part~='icon'] {
|
|
45
|
+
flex: 0 0 auto;
|
|
46
|
+
display: flex;
|
|
47
|
+
align-items: center;
|
|
48
|
+
color: var(--wa-color-on-quiet);
|
|
49
|
+
font-size: 1.25em;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
::slotted([slot='icon']) {
|
|
53
|
+
margin-inline-end: var(--wa-form-control-padding-inline);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
[part~='message'] {
|
|
57
|
+
flex: 1 1 auto;
|
|
58
|
+
display: block;
|
|
59
|
+
overflow: hidden;
|
|
60
|
+
}
|
|
61
|
+
`,r=class extends t{constructor(){super(...arguments),this.variant="brand",this.appearance="outlined filled",this.size="medium"}render(){return n`
|
|
62
|
+
<div part="icon">
|
|
63
|
+
<slot name="icon"></slot>
|
|
64
|
+
</div>
|
|
65
|
+
|
|
66
|
+
<div part="message">
|
|
67
|
+
<slot></slot>
|
|
68
|
+
</div>
|
|
69
|
+
`}};r.css=[d,i,l];o([a({reflect:!0})],r.prototype,"variant",2);o([a({reflect:!0})],r.prototype,"appearance",2);o([a({reflect:!0})],r.prototype,"size",2);r=o([e("wa-callout")],r);
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
var N=globalThis,L=N.ShadowRoot&&(N.ShadyCSS===void 0||N.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,V=Symbol(),tt=new WeakMap,x=class{constructor(t,e,s){if(this._$cssResult$=!0,s!==V)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=tt.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),s&&tt.set(e,t))}return t}toString(){return this.cssText}},et=o=>new x(typeof o=="string"?o:o+"",void 0,V),Et=(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 x(e,o,V)},st=(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=N.litNonce;i!==void 0&&s.setAttribute("nonce",i),s.textContent=e.cssText,o.appendChild(s)}},W=L?o=>o:o=>o instanceof CSSStyleSheet?(t=>{let e="";for(let s of t.cssRules)e+=s.cssText;return et(e)})(o):o;var{is:bt,defineProperty:Ct,getOwnPropertyDescriptor:wt,getOwnPropertyNames:xt,getOwnPropertySymbols:Pt,getPrototypeOf:Ut}=Object,A=globalThis,it=A.trustedTypes,Ot=it?it.emptyScript:"",q=A.reactiveElementPolyfillSupport,P=(o,t)=>o,K={toAttribute(o,t){switch(t){case Boolean:o=o?Ot: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}},at=(o,t)=>!bt(o,t),ot={attribute:!0,type:String,converter:K,reflect:!1,useDefault:!1,hasChanged:at},rt,nt;(rt=Symbol.metadata)!=null||(Symbol.metadata=Symbol("metadata")),(nt=A.litPropertyMetadata)!=null||(A.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=ot){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&&Ct(this.prototype,t,i)}}static getPropertyDescriptor(t,e,s){var r;let{get:i,set:n}=(r=wt(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:ot}static _$Ei(){if(this.hasOwnProperty(P("elementProperties")))return;let t=Ut(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(P("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(P("properties"))){let e=this.properties,s=[...xt(e),...Pt(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(W(i))}else t!==void 0&&e.push(W(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 st(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:K).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,h;let s=this.constructor,i=s._$Eh.get(t);if(i!==void 0&&this._$Em!==i){let l=s.getPropertyOptions(i),d=typeof l.converter=="function"?{fromAttribute:l.converter}:((n=l.converter)==null?void 0:n.fromAttribute)!==void 0?l.converter:K;this._$Em=i,this[i]=(h=(a=d.fromAttribute(e,l.type))!=null?a:(r=this._$Ej)==null?void 0:r.get(i))!=null?h:null,this._$Em=null}}requestUpdate(t,e,s){var i,n;if(t!==void 0){let r=this.constructor,a=this[t];if(s!=null||(s=r.getPropertyOptions(t)),!(((i=s.hasChanged)!=null?i:at)(a,e)||s.useDefault&&s.reflect&&a===((n=this._$Ej)==null?void 0:n.get(t))&&!this.hasAttribute(r._$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){}},ht;$.elementStyles=[],$.shadowRootOptions={mode:"open"},$[P("elementProperties")]=new Map,$[P("finalized")]=new Map,q==null||q({ReactiveElement:$}),((ht=A.reactiveElementVersions)!=null?ht:A.reactiveElementVersions=[]).push("2.1.0");var O=globalThis,k=O.trustedTypes,lt=k?k.createPolicy("lit-html",{createHTML:o=>o}):void 0,J="$lit$",_=`lit$${Math.random().toFixed(9).slice(2)}$`,G="?"+_,Ht=`<${G}>`,y=document,H=()=>y.createComment(""),R=o=>o===null||typeof o!="object"&&typeof o!="function",Q=Array.isArray,ft=o=>Q(o)||typeof(o==null?void 0:o[Symbol.iterator])=="function",Z=`[
|
|
2
|
+
\f\r]`,U=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,ct=/-->/g,dt=/>/g,m=RegExp(`>|${Z}(?:([^\\s"'>=/]+)(${Z}*=${Z}*(?:[^
|
|
3
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),pt=/'/g,ut=/"/g,At=/^(?:script|style|textarea|title)$/i,X=o=>(t,...e)=>({_$litType$:o,strings:t,values:e}),Lt=X(1),kt=X(2),Dt=X(3),v=Symbol.for("lit-noChange"),p=Symbol.for("lit-nothing"),$t=new WeakMap,g=y.createTreeWalker(y,129);function mt(o,t){if(!Q(o)||!o.hasOwnProperty("raw"))throw Error("invalid template strings array");return lt!==void 0?lt.createHTML(t):t}var gt=(o,t)=>{let e=o.length-1,s=[],i,n=t===2?"<svg>":t===3?"<math>":"",r=U;for(let a=0;a<e;a++){let h=o[a],l,d,c=-1,u=0;for(;u<h.length&&(r.lastIndex=u,d=r.exec(h),d!==null);)u=r.lastIndex,r===U?d[1]==="!--"?r=ct:d[1]!==void 0?r=dt:d[2]!==void 0?(At.test(d[2])&&(i=RegExp("</"+d[2],"g")),r=m):d[3]!==void 0&&(r=m):r===m?d[0]===">"?(r=i!=null?i:U,c=-1):d[1]===void 0?c=-2:(c=r.lastIndex-d[2].length,l=d[1],r=d[3]===void 0?m:d[3]==='"'?ut:pt):r===ut||r===pt?r=m:r===ct||r===dt?r=U:(r=m,i=void 0);let f=r===m&&o[a+1].startsWith("/>")?" ":"";n+=r===U?h+Ht:c>=0?(s.push(l),h.slice(0,c)+J+h.slice(c)+_+f):h+_+(c===-2?a:f)}return[mt(o,n+(o[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),s]},T=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,d]=gt(t,e);if(this.el=o.createElement(l,s),g.currentNode=this.el.content,e===2||e===3){let c=this.el.content.firstChild;c.replaceWith(...c.childNodes)}for(;(i=g.nextNode())!==null&&h.length<a;){if(i.nodeType===1){if(i.hasAttributes())for(let c of i.getAttributeNames())if(c.endsWith(J)){let u=d[r++],f=i.getAttribute(c).split(_),M=/([.?@])?(.*)/.exec(u);h.push({type:1,index:n,name:M[2],strings:f,ctor:M[1]==="."?B:M[1]==="?"?j:M[1]==="@"?z:E}),i.removeAttribute(c)}else c.startsWith(_)&&(h.push({type:6,index:n}),i.removeAttribute(c));if(At.test(i.tagName)){let c=i.textContent.split(_),u=c.length-1;if(u>0){i.textContent=k?k.emptyScript:"";for(let f=0;f<u;f++)i.append(c[f],H()),g.nextNode(),h.push({type:2,index:++n});i.append(c[u],H())}}}else if(i.nodeType===8)if(i.data===G)h.push({type:2,index:n});else{let c=-1;for(;(c=i.data.indexOf(_,c+1))!==-1;)h.push({type:7,index:n}),c+=_.length-1}n++}}static createElement(t,e){let s=y.createElement("template");return s.innerHTML=t,s}};function S(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=R(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=S(o,i._$AS(o,t.values),i,s)),t}var D=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 d;h.type===2?d=new C(n,n.nextSibling,this,t):h.type===1?d=new h.ctor(n,h.name,h.strings,this,t):h.type===6&&(d=new I(n,this,t)),this._$AV.push(d),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++}},C=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=S(this,t,e),R(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):ft(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&&R(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=T.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 D(i,this),a=r.u(this.options);r.p(e),this.T(a),this._$AH=r}}_$AC(t){let e=$t.get(t.strings);return e===void 0&&$t.set(t.strings,e=new T(t)),e}k(t){Q(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(H()),this.O(H()),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&&t!==this._$AB;){let i=t.nextSibling;t.remove(),t=i}}setConnected(t){var e;this._$AM===void 0&&(this._$Cv=t,(e=this._$AP)==null||e.call(this,t))}},E=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=S(this,t,e,0),r=!R(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=S(this,a[s+h],e,h),l===v&&(l=this._$AH[h]),r||(r=!R(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:"")}},B=class extends E{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===p?void 0:t}},j=class extends E{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==p)}},z=class extends E{constructor(t,e,s,i,n){super(t,e,s,i,n),this.type=5}_$AI(t,e=this){var r;if((t=(r=S(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)}},I=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){S(this,t)}},Bt={M:J,P:_,A:G,C:1,L:gt,R:D,D:ft,V:S,I:C,H:E,N:j,U:z,B,F:I},F=O.litHtmlPolyfillSupport,_t;F==null||F(T,C),((_t=O.litHtmlVersions)!=null?_t:O.litHtmlVersions=[]).push("3.3.0");var yt=(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 C(t.insertBefore(H(),a),a,void 0,e!=null?e:{})}return i._$AI(o),i};var b=globalThis,w=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=yt(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}},vt;w._$litElement$=!0,w.finalized=!0,(vt=b.litElementHydrateSupport)==null||vt.call(b,{LitElement:w});var Y=b.litElementPolyfillSupport;Y==null||Y({LitElement:w});var St;((St=b.litElementVersions)!=null?St:b.litElementVersions=[]).push("4.2.0");export{et as a,Et as b,K as c,at as d,Lt as e,kt as f,Dt as g,v as h,p as i,Bt as j,w as k};
|
|
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
|
+
(**
|
|
15
|
+
* @license
|
|
16
|
+
* Copyright 2017 Google LLC
|
|
17
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
18
|
+
*)
|
|
19
|
+
|
|
20
|
+
lit-html/lit-html.js:
|
|
21
|
+
(**
|
|
22
|
+
* @license
|
|
23
|
+
* Copyright 2017 Google LLC
|
|
24
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
25
|
+
*)
|
|
26
|
+
|
|
27
|
+
lit-element/lit-element.js:
|
|
28
|
+
(**
|
|
29
|
+
* @license
|
|
30
|
+
* Copyright 2017 Google LLC
|
|
31
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
32
|
+
*)
|
|
33
|
+
|
|
34
|
+
lit-html/is-server.js:
|
|
35
|
+
(**
|
|
36
|
+
* @license
|
|
37
|
+
* Copyright 2022 Google LLC
|
|
38
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
39
|
+
*)
|
|
40
|
+
*/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{b as c,c as r}from"./chunk.6ZDEZIWM.js";import{b,e as l,k as u}from"./chunk.U4P7XQR4.js";import{d as a,e as n,f as s,g as i}from"./chunk.NI7UJOOZ.js";var w,m,f,x,v,t=class extends u{constructor(){super(...arguments);this.name="hot-tracking";s(this,w,"");s(this,m,"");s(this,f,"https://matomo.hotosm.org");s(this,x,!0);s(this,v,"We use cookies and similar technologies to help personalize content, tailor and measure ads, and provide a better experience. By clicking 'Accept', you consent to our use of cookies and tracking technologies.");this.consentGiven=!1;this.consentShown=!1;this.errorMessage="";this.showError=!1;this.successMessage="";this.showSuccess=!1;this.infoMessage="";this.showInfo=!1}get siteId(){return n(this,w)}set siteId(e){i(this,w,e)}get domain(){return n(this,m)}set domain(e){i(this,m,e)}get matomoURL(){return n(this,f)}set matomoURL(e){i(this,f,e)}get showConsent(){return n(this,x)}set showConsent(e){i(this,x,e)}get consentMessage(){return n(this,v)}set consentMessage(e){i(this,v,e)}agree(){this.consentGiven=!0,this.consentShown=!1;let e=window._paq=window._paq||[];e.length!==0&&(e.push(["rememberConsentGiven"]),e.push(["trackPageView"]),this.showSuccessCallout("Tracking consent granted. Thank you!"))}disagree(){this.consentGiven=!1,this.consentShown=!1;let e=window._paq=window._paq||[];e.length!==0&&(e.push(["forgetConsentGiven"]),this.showInfoCallout("Tracking disabled. You can change this preference later."))}showConsentBanner(){this.showConsent&&!this.consentGiven&&!this.consentShown&&(this.consentShown=!0)}showErrorCallout(e){this.errorMessage=e,this.showError=!0,setTimeout(()=>{this.showError=!1},1e4)}showSuccessCallout(e){this.successMessage=e,this.showSuccess=!0,setTimeout(()=>{this.showSuccess=!1},5e3)}showInfoCallout(e){this.infoMessage=e,this.showInfo=!0,setTimeout(()=>{this.showInfo=!1},5e3)}render(){return l`
|
|
2
2
|
${this.showError?l`
|
|
3
3
|
<div class="error-banner">
|
|
4
4
|
<wa-callout style="padding: 1rem;" variant="danger" appearance="outlined filled" size="large">
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import '
|
|
2
|
-
import '
|
|
3
|
-
import '
|
|
1
|
+
import '@awesome.me/webawesome/dist/components/callout/callout.js';
|
|
2
|
+
import '@awesome.me/webawesome/dist/components/icon/icon.js';
|
|
3
|
+
import '@awesome.me/webawesome/dist/components/button/button.js';
|
|
4
4
|
import { LitElement } from "lit";
|
|
5
5
|
import type { CSSResultGroup } from 'lit';
|
|
6
6
|
export declare class Consent extends LitElement {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a,b}from"../../chunks/chunk.
|
|
1
|
+
import{a,b}from"../../chunks/chunk.3Y46BCZT.js";import"../../chunks/chunk.PQUDDU4D.js";import"../../chunks/chunk.T4GALJJA.js";import"../../chunks/chunk.PE4OKGWW.js";import"../../chunks/chunk.6ZDEZIWM.js";import"../../chunks/chunk.KO4EOD3I.js";import"../../chunks/chunk.U4P7XQR4.js";import"../../chunks/chunk.NI7UJOOZ.js";export{a as Consent,b as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as b}from"../../chunks/chunk.
|
|
1
|
+
import{a as o,b as e}from"../../chunks/chunk.3Y46BCZT.js";import"../../chunks/chunk.PQUDDU4D.js";import"../../chunks/chunk.T4GALJJA.js";import"../../chunks/chunk.PE4OKGWW.js";import"../../chunks/chunk.6ZDEZIWM.js";import"../../chunks/chunk.KO4EOD3I.js";import"../../chunks/chunk.U4P7XQR4.js";import"../../chunks/chunk.NI7UJOOZ.js";var n=e;export{o as Consent,n as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../../chunks/chunk.
|
|
1
|
+
import{a}from"../../chunks/chunk.T4GALJJA.js";import"../../chunks/chunk.U4P7XQR4.js";import"../../chunks/chunk.NI7UJOOZ.js";export{a as default};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import '
|
|
2
|
-
import '
|
|
3
|
-
import '
|
|
1
|
+
import '@awesome.me/webawesome/dist/components/tab-group/tab-group.js';
|
|
2
|
+
import '@awesome.me/webawesome/dist/components/dialog/dialog.js';
|
|
3
|
+
import '@awesome.me/webawesome/dist/components/button/button.js';
|
|
4
4
|
import { LitElement } from "lit";
|
|
5
5
|
import { type sizes } from './header.styles.js';
|
|
6
6
|
import type { CSSResultGroup } from 'lit';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a,b}from"../../chunks/chunk.
|
|
1
|
+
import{a,b}from"../../chunks/chunk.54RIFX2M.js";import"../../chunks/chunk.PE4OKGWW.js";import"../../chunks/chunk.6ZDEZIWM.js";import"../../chunks/chunk.KO4EOD3I.js";import"../../chunks/chunk.IG27I42A.js";import"../../chunks/chunk.U4P7XQR4.js";import"../../chunks/chunk.NI7UJOOZ.js";export{a as Header,b as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as
|
|
1
|
+
import{a,b as e}from"../../chunks/chunk.54RIFX2M.js";import"../../chunks/chunk.PE4OKGWW.js";import"../../chunks/chunk.6ZDEZIWM.js";import"../../chunks/chunk.KO4EOD3I.js";import"../../chunks/chunk.IG27I42A.js";import"../../chunks/chunk.U4P7XQR4.js";import"../../chunks/chunk.NI7UJOOZ.js";var o=e;export{a as Header,o as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a,b}from"../../chunks/chunk.
|
|
1
|
+
import{a,b}from"../../chunks/chunk.IG27I42A.js";import"../../chunks/chunk.U4P7XQR4.js";import"../../chunks/chunk.NI7UJOOZ.js";export{a as headerVariants,b as styles};
|
package/dist/components/icons.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../chunks/chunk.KO4EOD3I.js";import"../chunks/chunk.
|
|
1
|
+
import{a}from"../chunks/chunk.KO4EOD3I.js";import"../chunks/chunk.NI7UJOOZ.js";export{a as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a,b}from"../../chunks/chunk.
|
|
1
|
+
import{a,b}from"../../chunks/chunk.4YLAIDAG.js";import"../../chunks/chunk.UTSKEKTV.js";import"../../chunks/chunk.6ZDEZIWM.js";import"../../chunks/chunk.U4P7XQR4.js";import"../../chunks/chunk.NI7UJOOZ.js";export{a as Logo,b as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as b}from"../../chunks/chunk.
|
|
1
|
+
import{a as e,b as o}from"../../chunks/chunk.4YLAIDAG.js";import"../../chunks/chunk.UTSKEKTV.js";import"../../chunks/chunk.6ZDEZIWM.js";import"../../chunks/chunk.U4P7XQR4.js";import"../../chunks/chunk.NI7UJOOZ.js";var r=o;export{e as Logo,r as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../../chunks/chunk.
|
|
1
|
+
import{a}from"../../chunks/chunk.UTSKEKTV.js";import"../../chunks/chunk.U4P7XQR4.js";import"../../chunks/chunk.NI7UJOOZ.js";export{a as default};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import '
|
|
2
|
-
import '
|
|
3
|
-
import '
|
|
1
|
+
import '@awesome.me/webawesome/dist/components/callout/callout.js';
|
|
2
|
+
import '@awesome.me/webawesome/dist/components/button/button.js';
|
|
3
|
+
import '@awesome.me/webawesome/dist/components/icon/icon.js';
|
|
4
4
|
import { LitElement } from "lit";
|
|
5
5
|
declare global {
|
|
6
6
|
interface Window {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a,b}from"../../chunks/chunk.
|
|
1
|
+
import{a,b}from"../../chunks/chunk.WBE5WRYN.js";import"../../chunks/chunk.PQUDDU4D.js";import"../../chunks/chunk.PE4OKGWW.js";import"../../chunks/chunk.6ZDEZIWM.js";import"../../chunks/chunk.U4P7XQR4.js";import"../../chunks/chunk.NI7UJOOZ.js";export{a as MatomoTracking,b as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as b}from"../../chunks/chunk.
|
|
1
|
+
import{a as o,b as a}from"../../chunks/chunk.WBE5WRYN.js";import"../../chunks/chunk.PQUDDU4D.js";import"../../chunks/chunk.PE4OKGWW.js";import"../../chunks/chunk.6ZDEZIWM.js";import"../../chunks/chunk.U4P7XQR4.js";import"../../chunks/chunk.NI7UJOOZ.js";var r=a;export{o as MatomoTracking,r as default};
|
package/dist/hotosm-ui.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as t}from"./chunks/chunk.
|
|
1
|
+
import{b as t}from"./chunks/chunk.4YLAIDAG.js";import"./chunks/chunk.UTSKEKTV.js";import{b as e}from"./chunks/chunk.WBE5WRYN.js";import{b as r}from"./chunks/chunk.3Y46BCZT.js";import"./chunks/chunk.PQUDDU4D.js";import"./chunks/chunk.T4GALJJA.js";import{b as o}from"./chunks/chunk.54RIFX2M.js";import"./chunks/chunk.PE4OKGWW.js";import"./chunks/chunk.6ZDEZIWM.js";import"./chunks/chunk.KO4EOD3I.js";import"./chunks/chunk.IG27I42A.js";import"./chunks/chunk.U4P7XQR4.js";import"./chunks/chunk.NI7UJOOZ.js";export{r as Consent,o as Header,t as Logo,e as Tracking};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hotosm/ui",
|
|
3
|
-
"version": "0.3.1-
|
|
3
|
+
"version": "0.3.1-b2",
|
|
4
4
|
"description": "Shared UI components with HOT theming.",
|
|
5
5
|
"homepage": "https://github.com/hotosm/ui#readme",
|
|
6
6
|
"author": {
|
|
@@ -49,18 +49,19 @@
|
|
|
49
49
|
"node": ">=14.17.0"
|
|
50
50
|
},
|
|
51
51
|
"dependencies": {
|
|
52
|
+
"@awesome.me/webawesome": "3.0.0-beta.1",
|
|
52
53
|
"class-variance-authority": "^0.7.0",
|
|
53
54
|
"lit": "^3.0.0"
|
|
54
55
|
},
|
|
55
56
|
"devDependencies": {
|
|
56
|
-
"@storybook/blocks": "^8.3.5",
|
|
57
57
|
"@storybook/addon-essentials": "^8.3.5",
|
|
58
58
|
"@storybook/addon-links": "^8.3.5",
|
|
59
|
+
"@storybook/blocks": "^8.3.5",
|
|
59
60
|
"@storybook/web-components": "^8.2.9",
|
|
60
61
|
"@storybook/web-components-vite": "^8.2.9",
|
|
61
|
-
"globby": "^14.0.2",
|
|
62
62
|
"del": "^7.1.0",
|
|
63
63
|
"esbuild": "^0.19.4",
|
|
64
|
+
"globby": "^14.0.2",
|
|
64
65
|
"storybook": "^8.2.9",
|
|
65
66
|
"typescript": "^5.2.2",
|
|
66
67
|
"user-agent-data-types": "^0.3.1"
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
var N=globalThis,L=N.ShadowRoot&&(N.ShadyCSS===void 0||N.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),vt=(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=N.litNonce;i!==void 0&&s.setAttribute("nonce",i),s.textContent=e.cssText,o.appendChild(s)}},B=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:St,defineProperty:Et,getOwnPropertyDescriptor:bt,getOwnPropertyNames:Ct,getOwnPropertySymbols:wt,getPrototypeOf:xt}=Object,f=globalThis,et=f.trustedTypes,Pt=et?et.emptyScript:"",j=f.reactiveElementPolyfillSupport,x=(o,t)=>o,z={toAttribute(o,t){switch(t){case Boolean:o=o?Pt: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)=>!St(o,t),st={attribute:!0,type:String,converter:z,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&&Et(this.prototype,t,i)}}static getPropertyDescriptor(t,e,s){var r;let{get:i,set:n}=(r=bt(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=xt(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=[...Ct(e),...wt(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(B(i))}else t!==void 0&&e.push(B(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:z).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,h;let s=this.constructor,i=s._$Eh.get(t);if(i!==void 0&&this._$Em!==i){let l=s.getPropertyOptions(i),d=typeof l.converter=="function"?{fromAttribute:l.converter}:((n=l.converter)==null?void 0:n.fromAttribute)!==void 0?l.converter:z;this._$Em=i,this[i]=(h=(a=d.fromAttribute(e,l.type))!=null?a:(r=this._$Ej)==null?void 0:r.get(i))!=null?h:null,this._$Em=null}}requestUpdate(t,e,s){var i,n;if(t!==void 0){let r=this.constructor,a=this[t];if(s!=null||(s=r.getPropertyOptions(t)),!(((i=s.hasChanged)!=null?i:nt)(a,e)||s.useDefault&&s.reflect&&a===((n=this._$Ej)==null?void 0:n.get(t))&&!this.hasAttribute(r._$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,j==null||j({ReactiveElement:$}),((rt=f.reactiveElementVersions)!=null?rt:f.reactiveElementVersions=[]).push("2.1.0");var U=globalThis,k=U.trustedTypes,ht=k?k.createPolicy("lit-html",{createHTML:o=>o}):void 0,$t="$lit$",A=`lit$${Math.random().toFixed(9).slice(2)}$`,_t="?"+A,Ut=`<${_t}>`,y=document,O=()=>y.createComment(""),H=o=>o===null||typeof o!="object"&&typeof o!="function",J=Array.isArray,Ot=o=>J(o)||typeof(o==null?void 0:o[Symbol.iterator])=="function",I=`[
|
|
2
|
-
\f\r]`,P=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,at=/-->/g,lt=/>/g,m=RegExp(`>|${I}(?:([^\\s"'>=/]+)(${I}*=${I}*(?:[^
|
|
3
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),ct=/'/g,dt=/"/g,ft=/^(?:script|style|textarea|title)$/i,G=o=>(t,...e)=>({_$litType$:o,strings:t,values:e}),Lt=G(1),kt=G(2),Dt=G(3),v=Symbol.for("lit-noChange"),p=Symbol.for("lit-nothing"),pt=new WeakMap,g=y.createTreeWalker(y,129);function At(o,t){if(!J(o)||!o.hasOwnProperty("raw"))throw Error("invalid template strings array");return ht!==void 0?ht.createHTML(t):t}var Ht=(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,d,c=-1,u=0;for(;u<h.length&&(r.lastIndex=u,d=r.exec(h),d!==null);)u=r.lastIndex,r===P?d[1]==="!--"?r=at:d[1]!==void 0?r=lt:d[2]!==void 0?(ft.test(d[2])&&(i=RegExp("</"+d[2],"g")),r=m):d[3]!==void 0&&(r=m):r===m?d[0]===">"?(r=i!=null?i:P,c=-1):d[1]===void 0?c=-2:(c=r.lastIndex-d[2].length,l=d[1],r=d[3]===void 0?m:d[3]==='"'?dt:ct):r===dt||r===ct?r=m:r===at||r===lt?r=P:(r=m,i=void 0);let _=r===m&&o[a+1].startsWith("/>")?" ":"";n+=r===P?h+Ut:c>=0?(s.push(l),h.slice(0,c)+$t+h.slice(c)+A+_):h+A+(c===-2?a:_)}return[At(o,n+(o[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),s]},R=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,d]=Ht(t,e);if(this.el=o.createElement(l,s),g.currentNode=this.el.content,e===2||e===3){let c=this.el.content.firstChild;c.replaceWith(...c.childNodes)}for(;(i=g.nextNode())!==null&&h.length<a;){if(i.nodeType===1){if(i.hasAttributes())for(let c of i.getAttributeNames())if(c.endsWith($t)){let u=d[r++],_=i.getAttribute(c).split(A),M=/([.?@])?(.*)/.exec(u);h.push({type:1,index:n,name:M[2],strings:_,ctor:M[1]==="."?q:M[1]==="?"?K:M[1]==="@"?Z:b}),i.removeAttribute(c)}else c.startsWith(A)&&(h.push({type:6,index:n}),i.removeAttribute(c));if(ft.test(i.tagName)){let c=i.textContent.split(A),u=c.length-1;if(u>0){i.textContent=k?k.emptyScript:"";for(let _=0;_<u;_++)i.append(c[_],O()),g.nextNode(),h.push({type:2,index:++n});i.append(c[u],O())}}}else if(i.nodeType===8)if(i.data===_t)h.push({type:2,index:n});else{let c=-1;for(;(c=i.data.indexOf(A,c+1))!==-1;)h.push({type:7,index:n}),c+=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 d;h.type===2?d=new T(n,n.nextSibling,this,t):h.type===1?d=new h.ctor(n,h.name,h.strings,this,t):h.type===6&&(d=new F(n,this,t)),this._$AV.push(d),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++}},T=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):Ot(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=R.createElement(At(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=pt.get(t.strings);return e===void 0&&pt.set(t.strings,e=new R(t)),e}k(t){J(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&&t!==this._$AB;){let i=t.nextSibling;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)}},Z=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)}},F=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,ut;V==null||V(R,T),((ut=U.litHtmlVersions)!=null?ut:U.litHtmlVersions=[]).push("3.3.0");var mt=(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 T(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=mt(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}},gt;C._$litElement$=!0,C.finalized=!0,(gt=S.litElementHydrateSupport)==null||gt.call(S,{LitElement:C});var Q=S.litElementPolyfillSupport;Q==null||Q({LitElement:C});var yt;((yt=S.litElementVersions)!=null?yt:S.litElementVersions=[]).push("4.2.0");export{vt as a,z as b,nt as c,Lt as d,C as e};
|
|
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
|
-
(**
|
|
15
|
-
* @license
|
|
16
|
-
* Copyright 2017 Google LLC
|
|
17
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
18
|
-
*)
|
|
19
|
-
|
|
20
|
-
lit-html/lit-html.js:
|
|
21
|
-
(**
|
|
22
|
-
* @license
|
|
23
|
-
* Copyright 2017 Google LLC
|
|
24
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
25
|
-
*)
|
|
26
|
-
|
|
27
|
-
lit-element/lit-element.js:
|
|
28
|
-
(**
|
|
29
|
-
* @license
|
|
30
|
-
* Copyright 2017 Google LLC
|
|
31
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
32
|
-
*)
|
|
33
|
-
|
|
34
|
-
lit-html/is-server.js:
|
|
35
|
-
(**
|
|
36
|
-
* @license
|
|
37
|
-
* Copyright 2022 Google LLC
|
|
38
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
39
|
-
*)
|
|
40
|
-
*/
|
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
import{a as r}from"./chunk.7P5E5KMI.js";import{a as p}from"./chunk.KO4EOD3I.js";import{a as u,b as f}from"./chunk.N5L63ITD.js";import{d as l,e as m}from"./chunk.2C7KHCNI.js";import{a as g,f as s,g as n,h as o,i as a}from"./chunk.RGDK5VTE.js";import"https://early.webawesome.com/webawesome@3.0.0-alpha.13/dist/components/tab-group/tab-group.js";import"https://early.webawesome.com/webawesome@3.0.0-alpha.13/dist/components/dialog/dialog.js";import"https://early.webawesome.com/webawesome@3.0.0-alpha.13/dist/components/button/button.js";var v="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAACH5SURBVHhe1XtpkFzXdd55W/frvaenZ58BMIN9JwhQACmREBjKtC2WbIY0acu0XLLkyK7YLlmWIqdKVU5VnIpjSXGkyFYUc4koruBmriLBRSJAggCxEQRI7NsMZp/pvfu9fmu+c1/3YBZQVkrRD53Gnbffe88539nue5CoQQcnnrjNl91rJF8yPUnOSZ43LknKuXK29ewOaYfTuO0Xor2Dj0dM1fvTkfLltGfbE3atfrKtteX0Z5Z+ebBxyy9MJ3O7N5Ds3SOR/1u+TB9fldwx1bh0VZoRwIHJx3ZIkvRG41CQ74s/hk/SPvK9lzxPfmpb190Xgqs/H/m+L50s/nRzoV76bM0y/8D3vex0eYIqVoFUPSTu8Swn79rOW6qi7epoyT71G0v+ZFRc+DnpRPH1lZIr30WydBcYWtc4TZ7vf211y45vNQ6vSjMCYDow9fibOHET7wvmZxNOeOgRO2/5kvTP6v7SU1s+86Va4+oM7dy5U9n4qbb1uOcGWZJuxCM3y0Tt02aRSrUyQcjkKR6NlYfIrltiAmpII0VRqDWSokw4aUmk/FiS/Qfl9uXPb5G22EHPV+hk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iqe6QY/gT02NWcWjoxGzm/3/TL6NPQVdDABOHfG3NmjUxJRpNq66UcSUpiXlojABoH0W7m7clqXhydLRGly83s61f2kR/WfRRAuDz3NTWlSvDPZlMxLXtMGxeQfhzNV03jclJ89SpU7MzrV855pk+SgBMTSFwU3p7exXwjggQ8i5dusTanu11f2XpZwmgSc17Zt/bZPpXmnkiov8L+68Txp5jyyMAAAAASUVORK5CYII=";p();var O,b,y,L,w,$,P,I,B,U,S,q,M,C,t=class extends m{constructor(){super(...arguments);this.name="hot-header";o(this,O,"");o(this,b,"");o(this,y,!0);o(this,L,[]);o(this,w,"small");o(this,$,!0);o(this,P,0);o(this,I,!1);o(this,B,!1);o(this,U,{});o(this,S,"user");o(this,q,"https://www.openstreetmap.org/oauth2/authorize");o(this,M,"");o(this,C,"")}get title(){return n(this,O)}set title(i){a(this,O,i)}get logo(){return n(this,b)}set logo(i){a(this,b,i)}get drawer(){return n(this,y)}set drawer(i){a(this,y,i)}get tabs(){return n(this,L)}set tabs(i){a(this,L,i)}get size(){return n(this,w)}set size(i){a(this,w,i)}get borderBottom(){return n(this,$)}set borderBottom(i){a(this,$,i)}get selectedTab(){return n(this,P)}set selectedTab(i){a(this,P,i)}get showLogin(){return n(this,I)}set showLogin(i){a(this,I,i)}get loginModalOpen(){return n(this,B)}set loginModalOpen(i){a(this,B,i)}get loginProviders(){return n(this,U)}set loginProviders(i){a(this,U,i)}get defaultLoginIcon(){return n(this,S)}set defaultLoginIcon(i){a(this,S,i)}get osmOauthUrl(){return n(this,q)}set osmOauthUrl(i){a(this,q,i)}get OsmOauthClientId(){return n(this,M)}set OsmOauthClientId(i){a(this,M,i)}get OsmOauthRedirectUri(){return n(this,C)}set OsmOauthRedirectUri(i){a(this,C,i)}get loginOptions(){return Object.keys(this.loginProviders).length===0&&this.OsmOauthClientId&&this.OsmOauthRedirectUri?[{id:"osm",name:"Personal OSM Account",image:v}]:Object.entries(this.loginProviders).map(([i,e])=>({id:i,name:e.name||this.formatProviderName(i),icon:e.icon?void 0:this.defaultLoginIcon,image:e.icon}))}formatProviderName(i){return i.split("_").map(e=>e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()).join(" ")}selectTab(i){console.log(i),this.tabs=[...this.tabs],this.selectedTab=i}performLogin(i){let e=this.loginProviders[i];if(!e){if(i==="osm"){this.legacyOsmLoginRedirect();return}console.error(`Login provider '${i}' not found`);return}if(!e.clientId){window.location.href=e.loginUrl;return}let c=window.location.pathname+window.location.search;sessionStorage.setItem("requestedPath",c);let d=new URLSearchParams(g({client_id:e.clientId,redirect_uri:e.redirectUrl,response_type:"code"},e.scope&&{scope:e.scope})),h=`${e.loginUrl}?${d.toString()}`;window.location.href=h}legacyOsmLoginRedirect(){if(!this.OsmOauthClientId||!this.OsmOauthRedirectUri){console.error("OSM OAuth client ID and redirect URI must be provided");return}let i=window.location.pathname+window.location.search;sessionStorage.setItem("requestedPath",i);let e=new URLSearchParams({client_id:this.OsmOauthClientId,redirect_uri:this.OsmOauthRedirectUri,response_type:"code",scope:"read_prefs"}),c=`${this.osmOauthUrl}?${e.toString()}`;window.location.href=c}handleSignIn(i){this.performLogin(i),this.loginModalOpen=!1}render(){let i=typeof this.logo=="string"||this.logo instanceof URL?typeof this.logo=="string"?this.logo:this.logo.href:"";return l`
|
|
2
|
-
<header class=${u({size:this.size,borderBottom:this.borderBottom})}>
|
|
3
|
-
<a href="/" class="header--link">
|
|
4
|
-
${i.length>0?l`
|
|
5
|
-
<img
|
|
6
|
-
id="logo"
|
|
7
|
-
src="${this.logo}"
|
|
8
|
-
alt="Logo"
|
|
9
|
-
class="header--logo-img"
|
|
10
|
-
/>
|
|
11
|
-
`:l`
|
|
12
|
-
<hot-logo
|
|
13
|
-
?iconOnly="${this.title.length>0}"
|
|
14
|
-
>
|
|
15
|
-
</hot-logo>
|
|
16
|
-
`}
|
|
17
|
-
${this.title.length>0?l`
|
|
18
|
-
<h1 class="header--title">
|
|
19
|
-
${this.title}
|
|
20
|
-
</h1>
|
|
21
|
-
`:null}
|
|
22
|
-
</a>
|
|
23
|
-
|
|
24
|
-
${""}
|
|
25
|
-
<nav
|
|
26
|
-
class="header--nav"
|
|
27
|
-
>
|
|
28
|
-
<wa-tab-group class="header--tab-group">
|
|
29
|
-
${this.tabs.map((e,c)=>{let h=this.selectedTab===c?"header--tab header--tab-active":"header--tab";return l`
|
|
30
|
-
<wa-tab
|
|
31
|
-
panel="${e.label}"
|
|
32
|
-
class="${h}"
|
|
33
|
-
slot="nav"
|
|
34
|
-
@click=${A=>this._tabClick(A,e.clickEvent,c)}
|
|
35
|
-
>
|
|
36
|
-
${e.label}
|
|
37
|
-
</wa-tab>
|
|
38
|
-
`})}
|
|
39
|
-
</wa-tab-group>
|
|
40
|
-
</nav>
|
|
41
|
-
|
|
42
|
-
${""}
|
|
43
|
-
${""}
|
|
44
|
-
<nav
|
|
45
|
-
class="header--nav-mobile"
|
|
46
|
-
></nav>
|
|
47
|
-
|
|
48
|
-
<div id="right-section" class="header--right-section">
|
|
49
|
-
${this.showLogin?l`
|
|
50
|
-
<wa-button
|
|
51
|
-
variant="brand"
|
|
52
|
-
class="header--login-button"
|
|
53
|
-
@click=${()=>this._handleLogin()}
|
|
54
|
-
>
|
|
55
|
-
Login
|
|
56
|
-
</wa-button>
|
|
57
|
-
`:null}
|
|
58
|
-
${this.drawer?l`
|
|
59
|
-
<wa-icon-button
|
|
60
|
-
library="hot-icons"
|
|
61
|
-
class="header--drawer"
|
|
62
|
-
name="list"
|
|
63
|
-
label="drawer-open"
|
|
64
|
-
></wa-icon-button>
|
|
65
|
-
`:null}
|
|
66
|
-
</div>
|
|
67
|
-
|
|
68
|
-
<!-- Login Modal -->
|
|
69
|
-
${this.showLogin?l`
|
|
70
|
-
<wa-dialog
|
|
71
|
-
class="login-modal"
|
|
72
|
-
?open=${this.loginModalOpen}
|
|
73
|
-
@wa-hide=${()=>this._handleModalClose()}
|
|
74
|
-
label="Sign In"
|
|
75
|
-
>
|
|
76
|
-
<div class="login-content">
|
|
77
|
-
<div class="login-options">
|
|
78
|
-
${this.loginOptions.map(e=>l`
|
|
79
|
-
<div
|
|
80
|
-
class="login-option"
|
|
81
|
-
@click=${()=>this.handleSignIn(e.id)}
|
|
82
|
-
>
|
|
83
|
-
<div class="login-option-icon">
|
|
84
|
-
${e.image?l`<img src="${e.image}" alt="${e.name}" />`:e.icon?l`<wa-icon name="${e.icon}"></wa-icon>`:null}
|
|
85
|
-
</div>
|
|
86
|
-
<div class="login-option-text">${e.name}</div>
|
|
87
|
-
</div>
|
|
88
|
-
`)}
|
|
89
|
-
</div>
|
|
90
|
-
</div>
|
|
91
|
-
</wa-dialog>
|
|
92
|
-
`:null}
|
|
93
|
-
</header>
|
|
94
|
-
`}_tabClick(i,e,c){this.selectTab(c),e()}_handleLogin(){this.loginModalOpen=!0,this.dispatchEvent(new Event("login"))}_handleModalClose(){this.loginModalOpen=!1}};O=new WeakMap,b=new WeakMap,y=new WeakMap,L=new WeakMap,w=new WeakMap,$=new WeakMap,P=new WeakMap,I=new WeakMap,B=new WeakMap,U=new WeakMap,S=new WeakMap,q=new WeakMap,M=new WeakMap,C=new WeakMap,t.styles=[f],s([r({type:String})],t.prototype,"title",1),s([r({type:String})],t.prototype,"logo",1),s([r({type:Boolean})],t.prototype,"drawer",1),s([r({type:Array})],t.prototype,"tabs",1),s([r({type:String})],t.prototype,"size",1),s([r({type:Boolean})],t.prototype,"borderBottom",1),s([r({type:Number})],t.prototype,"selectedTab",1),s([r({type:Boolean})],t.prototype,"showLogin",1),s([r({type:Boolean})],t.prototype,"loginModalOpen",1),s([r({type:Object,attribute:"login-providers"})],t.prototype,"loginProviders",1),s([r({type:String,attribute:"default-login-icon"})],t.prototype,"defaultLoginIcon",1),s([r({type:String,attribute:"osm-oauth-url"})],t.prototype,"osmOauthUrl",1),s([r({type:String,attribute:"osm-oauth-client-id"})],t.prototype,"OsmOauthClientId",1),s([r({type:String,attribute:"osm-oauth-redirect-uri"})],t.prototype,"OsmOauthRedirectUri",1);var W=t;customElements.define("hot-header",t);export{t as a,W as b};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{b as o}from"./chunk.DQ7UCE7O.js";var a=o;export{a};
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
import{b as d,c as m}from"./chunk.2C7KHCNI.js";import{a as l,b as p}from"./chunk.RGDK5VTE.js";var h={attribute:!0,type:String,converter:d,reflect:!1,hasChanged:m},y=(t=h,n,e)=>{let{kind:a,metadata:c}=e,r=globalThis.litPropertyMetadata.get(c);if(r===void 0&&globalThis.litPropertyMetadata.set(c,r=new Map),a==="setter"&&((t=Object.create(t)).wrapped=!0),r.set(e.name,t),a==="accessor"){let{name:o}=e;return{set(s){let u=n.get.call(this);n.set.call(this,s),this.requestUpdate(o,u,t)},init(s){return s!==void 0&&this.C(o,void 0,t,s),s}}}if(a==="setter"){let{name:o}=e;return function(s){let u=this[o];n.call(this,s),this.requestUpdate(o,u,t)}}throw Error("Unsupported decorator location: "+a)};function f(t){return(n,e)=>typeof e=="object"?y(t,n,e):((a,c,r)=>{let o=c.hasOwnProperty(r);return c.constructor.createProperty(r,a),o?Object.getOwnPropertyDescriptor(c,r):void 0})(t,n,e)}function q(t){return f(p(l({},t),{state:!0,attribute:!1}))}export{f as a,q as b};
|
|
2
|
-
/*! Bundled license information:
|
|
3
|
-
|
|
4
|
-
@lit/reactive-element/decorators/property.js:
|
|
5
|
-
(**
|
|
6
|
-
* @license
|
|
7
|
-
* Copyright 2017 Google LLC
|
|
8
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
9
|
-
*)
|
|
10
|
-
|
|
11
|
-
@lit/reactive-element/decorators/state.js:
|
|
12
|
-
(**
|
|
13
|
-
* @license
|
|
14
|
-
* Copyright 2017 Google LLC
|
|
15
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
16
|
-
*)
|
|
17
|
-
|
|
18
|
-
@lit/reactive-element/decorators/custom-element.js:
|
|
19
|
-
(**
|
|
20
|
-
* @license
|
|
21
|
-
* Copyright 2017 Google LLC
|
|
22
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
23
|
-
*)
|
|
24
|
-
|
|
25
|
-
@lit/reactive-element/decorators/event-options.js:
|
|
26
|
-
(**
|
|
27
|
-
* @license
|
|
28
|
-
* Copyright 2017 Google LLC
|
|
29
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
30
|
-
*)
|
|
31
|
-
|
|
32
|
-
@lit/reactive-element/decorators/base.js:
|
|
33
|
-
(**
|
|
34
|
-
* @license
|
|
35
|
-
* Copyright 2017 Google LLC
|
|
36
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
37
|
-
*)
|
|
38
|
-
|
|
39
|
-
@lit/reactive-element/decorators/query.js:
|
|
40
|
-
(**
|
|
41
|
-
* @license
|
|
42
|
-
* Copyright 2017 Google LLC
|
|
43
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
44
|
-
*)
|
|
45
|
-
|
|
46
|
-
@lit/reactive-element/decorators/query-all.js:
|
|
47
|
-
(**
|
|
48
|
-
* @license
|
|
49
|
-
* Copyright 2017 Google LLC
|
|
50
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
51
|
-
*)
|
|
52
|
-
|
|
53
|
-
@lit/reactive-element/decorators/query-async.js:
|
|
54
|
-
(**
|
|
55
|
-
* @license
|
|
56
|
-
* Copyright 2017 Google LLC
|
|
57
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
58
|
-
*)
|
|
59
|
-
|
|
60
|
-
@lit/reactive-element/decorators/query-assigned-elements.js:
|
|
61
|
-
(**
|
|
62
|
-
* @license
|
|
63
|
-
* Copyright 2021 Google LLC
|
|
64
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
65
|
-
*)
|
|
66
|
-
|
|
67
|
-
@lit/reactive-element/decorators/query-assigned-nodes.js:
|
|
68
|
-
(**
|
|
69
|
-
* @license
|
|
70
|
-
* Copyright 2017 Google LLC
|
|
71
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
72
|
-
*)
|
|
73
|
-
*/
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{b as e}from"./chunk.XYLRVYKD.js";var t=e;export{t as a};
|