@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
@@ -1 +0,0 @@
1
- import{b as a}from"./chunk.SLQC3DLQ.js";var t=a;customElements.define("hot-tracking",a);export{t as a};
@@ -1 +0,0 @@
1
- import{f as e}from"./chunk.2LYFUHTS.js";var r=e;customElements.define("hot-header",e);export{r as a};
@@ -1,25 +0,0 @@
1
- import{b as d,c as m}from"./chunk.WSMXFTSE.js";import{a as l,b as p}from"./chunk.N2W26RCT.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
- @lit/reactive-element/decorators/state.js:
6
- @lit/reactive-element/decorators/custom-element.js:
7
- @lit/reactive-element/decorators/event-options.js:
8
- @lit/reactive-element/decorators/base.js:
9
- @lit/reactive-element/decorators/query.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 +0,0 @@
1
- import{b as o}from"./chunk.SHZIJ2ZS.js";var t=o;customElements.define("hot-logo",o);export{t as a};
@@ -1,28 +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,r)=>s+(n=>{if(n._$cssResult$===!0)return n.cssText;if(typeof n=="number")return n;throw Error("Value passed to 'css' function must be a 'css' function result: "+n+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+o[r+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}},rt=(o,t)=>!St(o,t),st={attribute:!0,type:String,converter:z,reflect:!1,useDefault:!1,hasChanged:rt},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 n;let{get:i,set:r}=(n=bt(this.prototype,t))!=null?n:{get(){return this[e]},set(a){this[e]=a}};return{get:i,set(a){let h=i==null?void 0:i.call(this);r==null||r.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 r;let s=this.constructor.elementProperties.get(t),i=this.constructor._$Eu(t,s);if(i!==void 0&&s.reflect===!0){let n=(((r=s.converter)==null?void 0:r.toAttribute)!==void 0?s.converter:z).toAttribute(e,s.type);this._$Em=t,n==null?this.removeAttribute(i):this.setAttribute(i,n),this._$Em=null}}_$AK(t,e){var r,n,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}:((r=h.converter)==null?void 0:r.fromAttribute)!==void 0?h.converter:z;this._$Em=i;let c=l.fromAttribute(e,h.type);this[i]=(a=c!=null?c:(n=this._$Ej)==null?void 0:n.get(i))!=null?a:c,this._$Em=null}}requestUpdate(t,e,s){var i,r;if(t!==void 0){let n=this.constructor,a=this[t];if(s!=null||(s=n.getPropertyOptions(t)),!(((i=s.hasChanged)!=null?i:rt)(a,e)||s.useDefault&&s.reflect&&a===((r=this._$Ej)==null?void 0:r.get(t))&&!this.hasAttribute(n._$Eu(t,s))))return;this.C(t,e,s)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(t,e,{useDefault:s,reflect:i,wrapped:r},n){var a,h,l;s&&!((a=this._$Ej)!=null?a:this._$Ej=new Map).has(t)&&(this._$Ej.set(t,(h=n!=null?n:e)!=null?h:this[t]),r!==!0||n!==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[n,a]of this._$Ep)this[n]=a;this._$Ep=void 0}let r=this.constructor.elementProperties;if(r.size>0)for(let[n,a]of r){let{wrapped:h}=a,l=this[n];h!==!0||this._$AL.has(n)||l===void 0||this.C(n,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(r=>{var n;return(n=r.hostUpdate)==null?void 0:n.call(r)}),this.update(e)):this._$EM()}catch(r){throw t=!1,this._$EM(),r}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){}},nt;$.elementStyles=[],$.shadowRootOptions={mode:"open"},$[x("elementProperties")]=new Map,$[x("finalized")]=new Map,j==null||j({ReactiveElement:$}),((nt=f.reactiveElementVersions)!=null?nt:f.reactiveElementVersions=[]).push("2.1.1");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,r=t===2?"<svg>":t===3?"<math>":"",n=P;for(let a=0;a<e;a++){let h=o[a],l,c,d=-1,u=0;for(;u<h.length&&(n.lastIndex=u,c=n.exec(h),c!==null);)u=n.lastIndex,n===P?c[1]==="!--"?n=at:c[1]!==void 0?n=lt:c[2]!==void 0?(ft.test(c[2])&&(i=RegExp("</"+c[2],"g")),n=m):c[3]!==void 0&&(n=m):n===m?c[0]===">"?(n=i!=null?i:P,d=-1):c[1]===void 0?d=-2:(d=n.lastIndex-c[2].length,l=c[1],n=c[3]===void 0?m:c[3]==='"'?dt:ct):n===dt||n===ct?n=m:n===at||n===lt?n=P:(n=m,i=void 0);let _=n===m&&o[a+1].startsWith("/>")?" ":"";r+=n===P?h+Ut:d>=0?(s.push(l),h.slice(0,d)+$t+h.slice(d)+A+_):h+A+(d===-2?a:_)}return[At(o,r+(o[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),s]},R=class o{constructor({strings:t,_$litType$:e},s){let i;this.parts=[];let r=0,n=0,a=t.length-1,h=this.parts,[l,c]=Ht(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[n++],_=i.getAttribute(d).split(A),M=/([.?@])?(.*)/.exec(u);h.push({type:1,index:r,name:M[2],strings:_,ctor:M[1]==="."?q:M[1]==="?"?K:M[1]==="@"?Z:b}),i.removeAttribute(d)}else d.startsWith(A)&&(h.push({type:6,index:r}),i.removeAttribute(d));if(ft.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:++r});i.append(d[u],O())}}}else if(i.nodeType===8)if(i.data===_t)h.push({type:2,index:r});else{let d=-1;for(;(d=i.data.indexOf(A,d+1))!==-1;)h.push({type:7,index:r}),d+=A.length-1}r++}}static createElement(t,e){let s=y.createElement("template");return s.innerHTML=t,s}};function E(o,t,e=o,s){var n,a,h;if(t===v)return t;let i=s!==void 0?(n=e._$Co)==null?void 0:n[s]:e._$Cl,r=H(t)?void 0:t._$litDirective$;return(i==null?void 0:i.constructor)!==r&&((a=i==null?void 0:i._$AO)==null||a.call(i,!1),r===void 0?i=void 0:(i=new r(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 r=g.nextNode(),n=0,a=0,h=s[0];for(;h!==void 0;){if(n===h.index){let c;h.type===2?c=new T(r,r.nextSibling,this,t):h.type===1?c=new h.ctor(r,h.name,h.strings,this,t):h.type===6&&(c=new F(r,this,t)),this._$AV.push(c),h=s[++a]}n!==(h==null?void 0:h.index)&&(r=g.nextNode(),n++)}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 r;this.type=2,this._$AH=p,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=s,this.options=i,this._$Cv=(r=i==null?void 0:i.isConnected)!=null?r:!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 r;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(((r=this._$AH)==null?void 0:r._$AD)===i)this._$AH.p(e);else{let n=new W(i,this),a=n.u(this.options);n.p(e),this.T(a),this._$AH=n}}_$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 r of t)i===e.length?e.push(s=new o(this.O(O()),this.O(O()),this,this.options)):s=e[i],s._$AI(r),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=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,r){this.type=1,this._$AH=p,this._$AN=void 0,this.element=t,this.name=e,this._$AM=i,this.options=r,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 r=this.strings,n=!1;if(r===void 0)t=E(this,t,e,0),n=!H(t)||t!==this._$AH&&t!==v,n&&(this._$AH=t);else{let a=t,h,l;for(t=r[0],h=0;h<r.length-1;h++)l=E(this,a[s+h],e,h),l===v&&(l=this._$AH[h]),n||(n=!H(l)||l!==this._$AH[h]),l===p?t=p:t!==p&&(t+=(l!=null?l:"")+r[h+1]),this._$AH[h]=l}n&&!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,r){super(t,e,s,i,r),this.type=5}_$AI(t,e=this){var n;if((t=(n=E(this,t,e,0))!=null?n:p)===v)return;let s=this._$AH,i=t===p&&s!==p||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,r=t!==p&&(s===p||i);i&&this.element.removeEventListener(this.name,this,s),r&&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.1");var mt=(o,t,e)=>{var r,n;let s=(r=e==null?void 0:e.renderBefore)!=null?r:t,i=s._$litPart$;if(i===void 0){let a=(n=e==null?void 0:e.renderBefore)!=null?n: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.1");export{vt as a,z as b,rt 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
- 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
- */
@@ -1 +0,0 @@
1
- import{b as e}from"./chunk.NA3GD2QI.js";var n=e;customElements.define("hot-consent",e);export{n as a};
@@ -1,246 +0,0 @@
1
- /* HOT Button Component Override using CSS Parts */
2
- /* This file specifically targets wa-button components to ensure hot-red-color is used as primary */
3
-
4
- /* Import the HOT theme variables */
5
- @import 'hot.css';
6
-
7
- /* CSS Parts override for wa-button component */
8
- wa-button {
9
- /* Ensure the component uses HOT theme variables */
10
- --wa-color-brand-95: var(--hot-color-red-50);
11
- --wa-color-brand-90: var(--hot-color-red-100);
12
- --wa-color-brand-80: var(--hot-color-red-200);
13
- --wa-color-brand-70: var(--hot-color-red-300);
14
- --wa-color-brand-60: var(--hot-color-red-400);
15
- --wa-color-brand-50: var(--hot-color-red-500);
16
- --wa-color-brand-40: var(--hot-color-red-600);
17
- --wa-color-brand-30: var(--hot-color-red-700);
18
- --wa-color-brand-20: var(--hot-color-red-800);
19
- --wa-color-brand-10: var(--hot-color-red-900);
20
- --wa-color-brand-05: var(--hot-color-red-950);
21
- --wa-color-brand: var(--hot-color-red-500);
22
- --wa-color-brand-key: 50;
23
- }
24
-
25
- /* Primary button variant using CSS parts */
26
- wa-button[variant="primary"]::part(base) {
27
- background: linear-gradient(135deg, var(--hot-color-red-500), var(--hot-color-red-600));
28
- border: 1px solid var(--hot-color-red-600);
29
- color: white;
30
- box-shadow: 0 2px 4px rgba(211, 63, 63, 0.3);
31
- transition: all 0.2s ease;
32
- }
33
-
34
- wa-button[variant="primary"]::part(base):hover {
35
- background: linear-gradient(135deg, var(--hot-color-red-600), var(--hot-color-red-700));
36
- border-color: var(--hot-color-red-700);
37
- box-shadow: 0 4px 8px rgba(211, 63, 63, 0.4);
38
- transform: translateY(-1px);
39
- }
40
-
41
- wa-button[variant="primary"]::part(base):active {
42
- background: linear-gradient(135deg, var(--hot-color-red-700), var(--hot-color-red-800));
43
- border-color: var(--hot-color-red-800);
44
- box-shadow: 0 1px 3px rgba(211, 63, 63, 0.3);
45
- transform: translateY(0);
46
- }
47
-
48
- wa-button[variant="primary"]::part(base):focus-visible {
49
- outline: 2px solid var(--hot-color-red-400);
50
- outline-offset: 2px;
51
- }
52
-
53
- /* Brand variant (alternative to primary) */
54
- wa-button[variant="brand"]::part(base) {
55
- background: linear-gradient(135deg, var(--hot-color-red-500), var(--hot-color-red-600));
56
- border: 1px solid var(--hot-color-red-600);
57
- color: white;
58
- box-shadow: 0 2px 4px rgba(211, 63, 63, 0.3);
59
- transition: all 0.2s ease;
60
- }
61
-
62
- wa-button[variant="brand"]::part(base):hover {
63
- background: linear-gradient(135deg, var(--hot-color-red-600), var(--hot-color-red-700));
64
- border-color: var(--hot-color-red-700);
65
- box-shadow: 0 4px 8px rgba(211, 63, 63, 0.4);
66
- transform: translateY(-1px);
67
- }
68
-
69
- wa-button[variant="brand"]::part(base):active {
70
- background: linear-gradient(135deg, var(--hot-color-red-700), var(--hot-color-red-800));
71
- border-color: var(--hot-color-red-800);
72
- box-shadow: 0 1px 3px rgba(211, 63, 63, 0.3);
73
- transform: translateY(0);
74
- }
75
-
76
- /* Outline variant with hot-red-color */
77
- wa-button[variant="outline"]::part(base) {
78
- background: transparent;
79
- border: 2px solid var(--hot-color-red-500);
80
- color: var(--hot-color-red-500);
81
- transition: all 0.2s ease;
82
- }
83
-
84
- wa-button[variant="outline"]::part(base):hover {
85
- background: var(--hot-color-red-50);
86
- border-color: var(--hot-color-red-600);
87
- color: var(--hot-color-red-600);
88
- box-shadow: 0 2px 4px rgba(211, 63, 63, 0.2);
89
- }
90
-
91
- wa-button[variant="outline"]::part(base):active {
92
- background: var(--hot-color-red-100);
93
- border-color: var(--hot-color-red-700);
94
- color: var(--hot-color-red-700);
95
- }
96
-
97
- /* Text variant with hot-red-color */
98
- wa-button[variant="text"]::part(base) {
99
- background: transparent;
100
- border: none;
101
- color: var(--hot-color-red-500);
102
- transition: all 0.2s ease;
103
- }
104
-
105
- wa-button[variant="text"]::part(base):hover {
106
- background: var(--hot-color-red-50);
107
- color: var(--hot-color-red-600);
108
- }
109
-
110
- wa-button[variant="text"]::part(base):active {
111
- background: var(--hot-color-red-100);
112
- color: var(--hot-color-red-700);
113
- }
114
-
115
- /* Custom HOT red button class */
116
- wa-button.hot-red::part(base) {
117
- background: linear-gradient(135deg, var(--hot-color-red-500), var(--hot-color-red-600));
118
- border: 1px solid var(--hot-color-red-600);
119
- color: white;
120
- font-weight: 600;
121
- box-shadow: 0 2px 4px rgba(211, 63, 63, 0.3);
122
- transition: all 0.2s ease;
123
- }
124
-
125
- wa-button.hot-red::part(base):hover {
126
- background: linear-gradient(135deg, var(--hot-color-red-600), var(--hot-color-red-700));
127
- border-color: var(--hot-color-red-700);
128
- box-shadow: 0 4px 12px rgba(211, 63, 63, 0.4);
129
- transform: translateY(-2px);
130
- }
131
-
132
- wa-button.hot-red::part(base):active {
133
- background: linear-gradient(135deg, var(--hot-color-red-700), var(--hot-color-red-800));
134
- border-color: var(--hot-color-red-800);
135
- box-shadow: 0 1px 3px rgba(211, 63, 63, 0.3);
136
- transform: translateY(0);
137
- }
138
-
139
- /* Enhanced button label styling */
140
- wa-button::part(label) {
141
- font-family: var(--hot-font-sans);
142
- font-weight: 500;
143
- letter-spacing: 0.025em;
144
- }
145
-
146
- /* Button states */
147
- wa-button:state(disabled)::part(base) {
148
- opacity: 0.5;
149
- cursor: not-allowed;
150
- transform: none;
151
- box-shadow: none;
152
- background: var(--hot-color-gray-200);
153
- border-color: var(--hot-color-gray-300);
154
- color: var(--hot-color-gray-500);
155
- }
156
-
157
- wa-button:state(loading)::part(base) {
158
- cursor: wait;
159
- position: relative;
160
- }
161
-
162
- /* Size variants with hot-red-color */
163
- wa-button[size="small"]::part(base) {
164
- padding: 0.5rem 1rem;
165
- font-size: 0.875rem;
166
- border-radius: 0.25rem;
167
- }
168
-
169
- wa-button[size="large"]::part(base) {
170
- padding: 0.875rem 1.75rem;
171
- font-size: 1.125rem;
172
- border-radius: 0.5rem;
173
- }
174
-
175
- /* Icon button with hot-red-color */
176
- wa-button[appearance="icon"]::part(base) {
177
- border-radius: 50%;
178
- padding: 0.75rem;
179
- min-width: 2.5rem;
180
- min-height: 2.5rem;
181
- display: flex;
182
- align-items: center;
183
- justify-content: center;
184
- }
185
-
186
- wa-button[appearance="icon"][variant="primary"]::part(base) {
187
- background: var(--hot-color-red-500);
188
- border-color: var(--hot-color-red-600);
189
- color: white;
190
- }
191
-
192
- wa-button[appearance="icon"][variant="primary"]::part(base):hover {
193
- background: var(--hot-color-red-600);
194
- border-color: var(--hot-color-red-700);
195
- }
196
-
197
- /* Focus styles for accessibility */
198
- wa-button::part(base):focus-visible {
199
- outline: 2px solid var(--hot-color-red-400);
200
- outline-offset: 2px;
201
- }
202
-
203
- /* Custom animation for hot-red buttons */
204
- @keyframes hot-red-pulse {
205
- 0% {
206
- box-shadow: 0 2px 4px rgba(211, 63, 63, 0.3);
207
- }
208
- 50% {
209
- box-shadow: 0 4px 8px rgba(211, 63, 63, 0.5);
210
- }
211
- 100% {
212
- box-shadow: 0 2px 4px rgba(211, 63, 63, 0.3);
213
- }
214
- }
215
-
216
- wa-button.hot-red-pulse::part(base) {
217
- animation: hot-red-pulse 2s infinite;
218
- }
219
-
220
- /* High contrast mode support */
221
- @media (prefers-contrast: high) {
222
- wa-button[variant="primary"]::part(base) {
223
- border: 2px solid var(--hot-color-red-900);
224
- background: var(--hot-color-red-700);
225
- }
226
-
227
- wa-button[variant="outline"]::part(base) {
228
- border: 2px solid var(--hot-color-red-700);
229
- color: var(--hot-color-red-700);
230
- }
231
- }
232
-
233
- /* Reduced motion support */
234
- @media (prefers-reduced-motion: reduce) {
235
- wa-button::part(base) {
236
- transition: none;
237
- }
238
-
239
- wa-button::part(base):hover {
240
- transform: none;
241
- }
242
-
243
- wa-button.hot-red-pulse::part(base) {
244
- animation: none;
245
- }
246
- }