(function(l,b){typeof exports=="object"&&typeof module<"u"?b(exports):typeof define=="function"&&define.amd?define(["exports"],b):(l=typeof globalThis<"u"?globalThis:l||self,b(l.hiContact={}))})(this,function(l){"use strict";/** * @license * Copyright 2019 Google LLC * SPDX-License-Identifier: BSD-3-Clause */var dt;const b=globalThis,L=b.ShadowRoot&&(b.ShadyCSS===void 0||b.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,B=Symbol(),K=new WeakMap;let Y=class{constructor(t,e,o){if(this._$cssResult$=!0,o!==B)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(L&&t===void 0){const o=e!==void 0&&e.length===1;o&&(t=K.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),o&&K.set(e,t))}return t}toString(){return this.cssText}};const ut=i=>new Y(typeof i=="string"?i:i+"",void 0,B),Z=(i,...t)=>{const e=i.length===1?i[0]:t.reduce((o,r,s)=>o+(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.")})(r)+i[s+1],i[0]);return new Y(e,i,B)},mt=(i,t)=>{if(L)i.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(const e of t){const o=document.createElement("style"),r=b.litNonce;r!==void 0&&o.setAttribute("nonce",r),o.textContent=e.cssText,i.appendChild(o)}},X=L?i=>i:i=>i instanceof CSSStyleSheet?(t=>{let e="";for(const o of t.cssRules)e+=o.cssText;return ut(e)})(i):i;/** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause */const{is:ft,defineProperty:gt,getOwnPropertyDescriptor:bt,getOwnPropertyNames:$t,getOwnPropertySymbols:vt,getPrototypeOf:yt}=Object,$=globalThis,G=$.trustedTypes,_t=G?G.emptyScript:"",D=$.reactiveElementPolyfillSupport,P=(i,t)=>i,j={toAttribute(i,t){switch(t){case Boolean:i=i?_t:null;break;case Object:case Array:i=i==null?i:JSON.stringify(i)}return i},fromAttribute(i,t){let e=i;switch(t){case Boolean:e=i!==null;break;case Number:e=i===null?null:Number(i);break;case Object:case Array:try{e=JSON.parse(i)}catch{e=null}}return e}},I=(i,t)=>!ft(i,t),Q={attribute:!0,type:String,converter:j,reflect:!1,hasChanged:I};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),$.litPropertyMetadata??($.litPropertyMetadata=new WeakMap);class A extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??(this.l=[])).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=Q){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){const o=Symbol(),r=this.getPropertyDescriptor(t,o,e);r!==void 0&>(this.prototype,t,r)}}static getPropertyDescriptor(t,e,o){const{get:r,set:s}=bt(this.prototype,t)??{get(){return this[e]},set(n){this[e]=n}};return{get(){return r==null?void 0:r.call(this)},set(n){const h=r==null?void 0:r.call(this);s.call(this,n),this.requestUpdate(t,h,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??Q}static _$Ei(){if(this.hasOwnProperty(P("elementProperties")))return;const t=yt(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"))){const e=this.properties,o=[...$t(e),...vt(e)];for(const r of o)this.createProperty(r,e[r])}const t=this[Symbol.metadata];if(t!==null){const e=litPropertyMetadata.get(t);if(e!==void 0)for(const[o,r]of e)this.elementProperties.set(o,r)}this._$Eh=new Map;for(const[e,o]of this.elementProperties){const r=this._$Eu(e,o);r!==void 0&&this._$Eh.set(r,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const o=new Set(t.flat(1/0).reverse());for(const r of o)e.unshift(X(r))}else t!==void 0&&e.push(X(t));return e}static _$Eu(t,e){const o=e.attribute;return o===!1?void 0:typeof o=="string"?o: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;(this._$EO??(this._$EO=new Set)).add(t),this.renderRoot!==void 0&&this.isConnected&&((e=t.hostConnected)==null||e.call(t))}removeController(t){var e;(e=this._$EO)==null||e.delete(t)}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const o of e.keys())this.hasOwnProperty(o)&&(t.set(o,this[o]),delete this[o]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return mt(t,this.constructor.elementStyles),t}connectedCallback(){var t;this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$EO)==null||t.forEach(e=>{var o;return(o=e.hostConnected)==null?void 0:o.call(e)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$EO)==null||t.forEach(e=>{var o;return(o=e.hostDisconnected)==null?void 0:o.call(e)})}attributeChangedCallback(t,e,o){this._$AK(t,o)}_$EC(t,e){var s;const o=this.constructor.elementProperties.get(t),r=this.constructor._$Eu(t,o);if(r!==void 0&&o.reflect===!0){const n=(((s=o.converter)==null?void 0:s.toAttribute)!==void 0?o.converter:j).toAttribute(e,o.type);this._$Em=t,n==null?this.removeAttribute(r):this.setAttribute(r,n),this._$Em=null}}_$AK(t,e){var s;const o=this.constructor,r=o._$Eh.get(t);if(r!==void 0&&this._$Em!==r){const n=o.getPropertyOptions(r),h=typeof n.converter=="function"?{fromAttribute:n.converter}:((s=n.converter)==null?void 0:s.fromAttribute)!==void 0?n.converter:j;this._$Em=r,this[r]=h.fromAttribute(e,n.type),this._$Em=null}}requestUpdate(t,e,o){if(t!==void 0){if(o??(o=this.constructor.getPropertyOptions(t)),!(o.hasChanged??I)(this[t],e))return;this.P(t,e,o)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(t,e,o){this._$AL.has(t)||this._$AL.set(t,e),o.reflect===!0&&this._$Em!==t&&(this._$Ej??(this._$Ej=new Set)).add(t)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}const t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var o;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[s,n]of this._$Ep)this[s]=n;this._$Ep=void 0}const r=this.constructor.elementProperties;if(r.size>0)for(const[s,n]of r)n.wrapped!==!0||this._$AL.has(s)||this[s]===void 0||this.P(s,this[s],n)}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),(o=this._$EO)==null||o.forEach(r=>{var s;return(s=r.hostUpdate)==null?void 0:s.call(r)}),this.update(e)):this._$EU()}catch(r){throw t=!1,this._$EU(),r}t&&this._$AE(e)}willUpdate(t){}_$AE(t){var e;(e=this._$EO)==null||e.forEach(o=>{var r;return(r=o.hostUpdated)==null?void 0:r.call(o)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Ej&&(this._$Ej=this._$Ej.forEach(e=>this._$EC(e,this[e]))),this._$EU()}updated(t){}firstUpdated(t){}}A.elementStyles=[],A.shadowRootOptions={mode:"open"},A[P("elementProperties")]=new Map,A[P("finalized")]=new Map,D==null||D({ReactiveElement:A}),($.reactiveElementVersions??($.reactiveElementVersions=[])).push("2.0.4");/** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause */const k=globalThis,M=k.trustedTypes,tt=M?M.createPolicy("lit-html",{createHTML:i=>i}):void 0,et="$lit$",v=`lit$${Math.random().toFixed(9).slice(2)}$`,ot="?"+v,xt=`<${ot}>`,_=document,H=()=>_.createComment(""),U=i=>i===null||typeof i!="object"&&typeof i!="function",rt=Array.isArray,wt=i=>rt(i)||typeof(i==null?void 0:i[Symbol.iterator])=="function",q=`[ \f\r]`,O=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,it=/-->/g,nt=/>/g,x=RegExp(`>|${q}(?:([^\\s"'>=/]+)(${q}*=${q}*(?:[^ \f\r"'\`<>=]|("|')|))|$)`,"g"),st=/'/g,at=/"/g,lt=/^(?:script|style|textarea|title)$/i,At=i=>(t,...e)=>({_$litType$:i,strings:t,values:e}),F=At(1),S=Symbol.for("lit-noChange"),c=Symbol.for("lit-nothing"),ht=new WeakMap,w=_.createTreeWalker(_,129);function pt(i,t){if(!Array.isArray(i)||!i.hasOwnProperty("raw"))throw Error("invalid template strings array");return tt!==void 0?tt.createHTML(t):t}const St=(i,t)=>{const e=i.length-1,o=[];let r,s=t===2?"":"",n=O;for(let h=0;h"?(n=r??O,p=-1):u[1]===void 0?p=-2:(p=n.lastIndex-u[2].length,d=u[1],n=u[3]===void 0?x:u[3]==='"'?at:st):n===at||n===st?n=x:n===it||n===nt?n=O:(n=x,r=void 0);const y=n===x&&i[h+1].startsWith("/>")?" ":"";s+=n===O?a+xt:p>=0?(o.push(d),a.slice(0,p)+et+a.slice(p)+v+y):a+v+(p===-2?h:y)}return[pt(i,s+(i[e]||"")+(t===2?"":"")),o]};class T{constructor({strings:t,_$litType$:e},o){let r;this.parts=[];let s=0,n=0;const h=t.length-1,a=this.parts,[d,u]=St(t,e);if(this.el=T.createElement(d,o),w.currentNode=this.el.content,e===2){const p=this.el.content.firstChild;p.replaceWith(...p.childNodes)}for(;(r=w.nextNode())!==null&&a.length0){r.textContent=M?M.emptyScript:"";for(let y=0;y2||o[0]!==""||o[1]!==""?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=c}_$AI(t,e=this,o,r){const s=this.strings;let n=!1;if(s===void 0)t=E(this,t,e,0),n=!U(t)||t!==this._$AH&&t!==S,n&&(this._$AH=t);else{const h=t;let a,d;for(t=s[0],a=0;a{const o=(e==null?void 0:e.renderBefore)??t;let r=o._$litPart$;if(r===void 0){const s=(e==null?void 0:e.renderBefore)??null;o._$litPart$=r=new R(t.insertBefore(H(),s),s,void 0,e??{})}return r._$AI(i),r};/** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause */class C extends A{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e;const t=super.createRenderRoot();return(e=this.renderOptions).renderBefore??(e.renderBefore=t.firstChild),t}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=Ut(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 S}}C._$litElement$=!0,C.finalized=!0,(dt=globalThis.litElementHydrateSupport)==null||dt.call(globalThis,{LitElement:C});const V=globalThis.litElementPolyfillSupport;V==null||V({LitElement:C}),(globalThis.litElementVersions??(globalThis.litElementVersions=[])).push("4.0.6");/** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause */const ct=i=>(t,e)=>{e!==void 0?e.addInitializer(()=>{customElements.define(i,t)}):customElements.define(i,t)};/** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause */const Ot={attribute:!0,type:String,converter:j,reflect:!1,hasChanged:I},Tt=(i=Ot,t,e)=>{const{kind:o,metadata:r}=e;let s=globalThis.litPropertyMetadata.get(r);if(s===void 0&&globalThis.litPropertyMetadata.set(r,s=new Map),s.set(e.name,i),o==="accessor"){const{name:n}=e;return{set(h){const a=t.get.call(this);t.set.call(this,h),this.requestUpdate(n,a,i)},init(h){return h!==void 0&&this.P(n,void 0,i),h}}}if(o==="setter"){const{name:n}=e;return function(h){const a=this[n];t.call(this,h),this.requestUpdate(n,a,i)}}throw Error("Unsupported decorator location: "+o)};function m(i){return(t,e)=>typeof e=="object"?Tt(i,t,e):((o,r,s)=>{const n=r.hasOwnProperty(s);return r.constructor.createProperty(s,n?{...o,wrapped:!0}:o),n?Object.getOwnPropertyDescriptor(r,s):void 0})(i,t,e)}/** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause */const Rt=(i,t,e)=>(e.configurable=!0,e.enumerable=!0,Reflect.decorate&&typeof t!="object"&&Object.defineProperty(i,t,e),e);/** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause */function jt(i,t){return(e,o,r)=>{const s=n=>{var h;return((h=n.renderRoot)==null?void 0:h.querySelector(i))??null};return Rt(e,o,{get(){return s(this)}})}}var Mt=Object.defineProperty,Nt=Object.getOwnPropertyDescriptor,f=(i,t,e,o)=>{for(var r=o>1?void 0:o?Nt(t,e):t,s=i.length-1,n;s>=0;s--)(n=i[s])&&(r=(o?n(t,e,r):n(r))||r);return o&&r&&Mt(t,e,r),r};l.HiContact=class extends C{constructor(){super(...arguments),this.username="",this.asButton=!1,this.label="Contact me",this.sent=!1,this.otp=!1,this.theme="dark",this.corners=""}render(){return F`
Powered by
hi.new
`}async _handleSubmit(t){t.preventDefault(),await this.sendData(this.otp)}async toggleOtp(t){const e=this.renderRoot.querySelector("#contact"),o=this.renderRoot.querySelector("#otp"),r=this.renderRoot.querySelector("#sending");try{const s=await fetch(`${l.HiContact.otpEndpoint}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:t,name:t})}),{status:n}=await s.json();n==="success"?(e==null||e.setAttribute("hidden","true"),o==null||o.removeAttribute("hidden"),o==null||o.classList.replace("hidden","flex"),r==null||r.classList.replace("flex","hidden"),r==null||r.setAttribute("hidden","true"),this.ButtonStatus("send-btn",!0),this.otp=!1):alert("Failed to send message.")}catch(s){alert("Error: "+s.message)}}ButtonStatus(t,e){const o=this.renderRoot.querySelector(`#${t}`);e&&(o==null||o.setAttribute("disabled",`${e}`),t==="confirm-btn"?o==null||o.setHTMLUnsafe("Confirming..."):o==null||o.setHTMLUnsafe("Sending..."))}async sendData(t){const e=new FormData(this.form),o={from:e.get("email"),subject:e.get("subject"),message:e.get("message"),otp:e.get("otp")};if(t&&o.from){this.ButtonStatus("send-btn",!0),await this.toggleOtp(o.from);return}try{this.ButtonStatus("confirm-btn",!0),this.ButtonStatus("send-btn",!0);const r=await fetch(`${l.HiContact.sendingEndpoint}/${this.username}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(o)}),{status:s}=await r.json();if(s==="success"){const n=this.renderRoot.querySelector("#form-wrapper");n==null||n.setHTMLUnsafe(`

Your message was sent successfully!

Powered by
hi.new
`)}else console.error("Failed to send message.")}catch(r){console.error("Error: "+r.message)}}},l.HiContact.apiEndpoint="https://api.hi.new",l.HiContact.sendingEndpoint=`${l.HiContact.apiEndpoint}/email/form`,l.HiContact.otpEndpoint=`${l.HiContact.apiEndpoint}/otp/request`,l.HiContact.styles=Z` :host { --hi-bg-color: var(--hi-bg-color, rgb(0 0 0)); --hi-text-color: var(--hi-text-color, rgb(255 255 255)); --hi-border-color: var(--hi-border-color, rgb(243 244 246 / 0.1)); --hi-button-color: var(--hi-button-color, rgb(52 211 153)); --hi-button-hover-color: var(--hi-button-hover-color, rgb(16 185 129)); --hi-button-text-color: var(--hi-button-text-color, rgb(255 255 255)); --hi-button-text-hover: var(--hi-button-text-hover, rgb(255 255 255)); --hi-placeholder-text: var(--hi-placeholder-text, rgb(255 255 255)); --hi-placeholder-color: var(--hi-placeholder-color, rgb(255 255 255)); } *, ::before, ::after { box-sizing: border-box; /* 1 */ border-width: 0; /* 2 */ border-style: solid; /* 2 */ border-color: #1f3051; /* 2 */ } ::before, ::after { --tw-content: ''; } html, :host { line-height: 1.5; /* 1 */ -webkit-text-size-adjust: 100%; /* 2 */ -moz-tab-size: 4; /* 3 */ tab-size: 4; /* 3 */ font-family: Inter var, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji; letter-spacing: 0.6px; font-weight: normal; /* 4 */ font-feature-settings: normal; /* 5 */ font-variation-settings: normal; /* 6 */ -webkit-tap-highlight-color: transparent; /* 7 */ } body { margin: 0; /* 1 */ line-height: inherit; /* 2 */ } /* Add the correct font size in all browsers. */ small { font-size: 80%; } /* 1. Change the font styles in all browsers. 2. Remove the margin in Firefox and Safari. 3. Remove default padding in all browsers. */ button, .button, input, optgroup, select, textarea { font-family: inherit; /* 1 */ font-feature-settings: inherit; /* 1 */ font-variation-settings: inherit; /* 1 */ font-size: 100%; /* 1 */ font-weight: inherit; /* 1 */ line-height: inherit; /* 1 */ letter-spacing: inherit; /* 1 */ color: inherit; /* 1 */ margin: 0; /* 2 */ padding: 0; /* 3 */ } /* Remove the inheritance of text transform in Edge and Firefox. */ button, .button, select { text-transform: none; } /* 1. Correct the inability to style clickable types in iOS and Safari. 2. Remove default button styles. */ button, .button, input:where([type='button']), input:where([type='reset']), input:where([type='submit']) { -webkit-appearance: button; background-color: transparent; background-image: none; } :-moz-focusring { outline: auto; } :-moz-ui-invalid { box-shadow: none; } /* Correct the cursor style of increment and decrement buttons in Safari. */ ::-webkit-inner-spin-button, ::-webkit-outer-spin-button { height: auto; } /* 1. Correct the odd appearance in Chrome and Safari. 2. Correct the outline style in Safari. */ [type='search'] { -webkit-appearance: textfield; outline-offset: -2px; } /* Remove the inner padding in Chrome and Safari on macOS. */ ::-webkit-search-decoration { -webkit-appearance: none; } ::-webkit-file-upload-button { -webkit-appearance: button; font: inherit; } button, .button, [role="button"] { cursor: pointer; } [hidden] { display: none; } .hi-form-wrapper { position: relative; margin-left: -1px; margin-bottom: -1px; height: 100%; width: 100%; border-width: 1px; min-height:15rem; } .hi-form-wrapper.dark { background-color: var(--hi-bg-color, #0d0d0d); border-color: var(--hi-border-color, rgb(243 244 246 / 0.1)); } .hi-form-wrapper.light { background-color: var(--hi-bg-color, rgb(255 255 255)); border-color: var(--hi-border-color, rgb(229, 231, 235)); } .hi-form-wrapper.rounded-corners .plus-icon-wrapper{ display:none; } .hi-form-wrapper.rounded-corners{ border-radius: 0.375rem; } .dark .hi-form-content { color: var(--hi-text-color, rgb(255 255 255)); } .light .hi-form-content { color: var(--hi-text-color, rgb(0 0 0)) } .plus-icon { z-index: 1; position: absolute; height: 1px; width: 1px; } .plus-icon:before { content: ""; width: 1px; height: 9px; position: absolute; top: -4px; } .plus-icon:after { background-color: var(--hi-text-color, rgb(255 255 255)); content: ""; width: 9px; height: 1px; position: absolute; left: -4px; } .hi-form-wrapper.dark .plus-icon:before, .hi-form-wrapper.dark .plus-icon:after{ background-color: var(--hi-text-color, rgb(255 255 255)); } .hi-form-wrapper.light .plus-icon:before, .hi-form-wrapper.light .plus-icon:after{ background-color: var(--hi-text-color, rgb(52 211 153));; } .hi-form-input, .hi-form-otp-form input { padding-left: 0.75rem; padding-right: 0.75rem; border-radius: 0.375rem; width: 100%; display: block; padding-top: 0.575rem; padding-bottom: 0.575rem; line-height: 1.5rem; border-width: 1px; } .dark .hi-form-input, .dark .hi-form-otp-form input { background-color: rgb(255 255 255 / 0.05); border-color: var(--hi-border-color, rgb(243 244 246 / 0.05)); color: var(--hi-text-color, rgb(255 255 255)); } .light .hi-form-input, .light .hi-form-otp-form input { border-color: var(--hi-border-color, rgb(229, 231, 235)); background-color: var(--hi-bg-color, rgb(243 244 246)); color: var(--hi-text-color, #000); } .hi-form-input:focus { outline: 2px solid transparent; outline-offset: 2px; } .hi-form-input::placeholder { color: var(--hi-placeholder-text, rgb(156 163 175 / 0.5)); } .hi-form-label { display: block; font-weight: 500; margin-bottom: 0.5rem; line-height: 1.5rem; } .dark .hi-form-label, .dark .hi-form-otp-text h1 { color: var(--hi-text-color, rgb(255 255 255)); } .light .hi-form-label, .light .hi-form-otp-text h1 { color: var(--hi-text-color, black); } .hi-powered-by { position: absolute; top: 0; display: flex; flex-direction: row; text-decoration: none; font-weight: 700; text-align: left; border-width: 1px; left: 1.8px; transform: rotate(-90deg) translateX(-10rem); transform-origin: bottom left; border-radius: 0.375rem; border-bottom-width: 0px; border-bottom-right-radius: 0px; border-bottom-left-radius: 0px; margin-left: -0.125rem; gap: 0.25rem; align-items: center; justify-content: flex-start; padding-left: 0.75rem; padding-right: 0.75rem; padding-top: 0.375rem; padding-bottom: 0.375rem; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; border-width: 1px; } .dark .hi-powered-by { border-color: var(--hi-border-color, rgb(243 244 246 / 0.1)); background-color: var(--hi-bg-color, #0d0d0d); } .light .hi-powered-by { background-color: var(--hi-bg-color, rgb(255 255 255)); border-color: var(--hi-border-color, rgb(229, 231, 235)); } .hi-powered-text { font-size: 10px; } .hi-powered-text-new { font-size: 0.75rem; line-height: 1rem; color: var(--hi-text-logo-color, rgb(16 185 129)); } .hi-form-otp-wrapper, .hi-form-content { display:flex; flex-direction: column; align-items: center; justify-content: center; padding-top: 4rem; padding-bottom: 4rem; } .hi-form-content p { margin-top: 10px; text-align: center; } .hidden { display:none; } .hi-form-otp-text { color: var(--hi-text-color, rgb(255 255 255)); line-height: 1.5rem; text-align: center; letter-spacing: 0; } .hi-form-otp-text h1 { font-size: 25px; font-weight: 500; margin-bottom: 10px; } .hi-form-otp-text p { font-size: 0.8rem; color: var(--hi-text-color, #888F96); } .hi-form-otp-form input { display:block; background-color: transparent; font-size: 25px; text-align: center; margin-bottom: 20px; margin-top: 20px; width: 155px; letter-spacing: 5px; } .hi-form-otp-form input:focus { outline: 2px solid transparent; outline-offset: 2px; } .hi-form-otp-form input::placeholder { color: var(--hi-placeholder-text, rgb(156 163 175 / 0.5)); } .dark .hi-powered-text, .dark .hi-form-otp-form input { color: var(--hi-placeholder-text, rgb(255 255 255)); } .light .hi-powered-text, .light .hi-form-otp-form input { color: var(--hi-placeholder-text, rgb(0 0 0 )); } .hi-send-wrapper { display: flex; justify-content: flex-end; align-items: center; } .hi-send-wrapper button, .hi-form-otp-form button { display: flex; justify-content: center; align-items: center; padding-left: 0.75rem; padding-right: 0.75rem; border-radius: 0.375rem; padding-top: 0.375rem; padding-bottom: 0.375rem; line-height: 1.5rem; color: var(--hi-button-text-color, rgb(255 255 255)); font-weight: 500; } .hi-form-otp-form button { margin: 0 auto; } .bottom-1px { bottom: -1px; } .top-1px { top: -1px; } .right-1px { right: -1px; } .left-1px { left: -1px; } .mt-4 { margin-top: 1rem; } .hi-button-content { display: flex; align-items: center; } .bg-emerald-400 { background-color: var(--hi-button-color, rgb(52 211 153)); } .px-6 { padding-left: 1.5rem; padding-right: 1.5rem; } .py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; } .text-sm { font-size: 0.875rem; line-height: 1.25rem; } .text-xs { font-size: 0.75rem; line-height: 1rem; } .leading-6 { line-height: 1.5rem; } @media (min-width: 640px) { .leading-6 { line-height: 1.5rem; } } @media (min-width: 640px) { .text-sm { font-size: 0.875rem; line-height: 1.25rem; } } `,f([m({type:String})],l.HiContact.prototype,"username",2),f([m({type:Boolean})],l.HiContact.prototype,"asButton",2),f([m({type:String})],l.HiContact.prototype,"label",2),f([m({type:Boolean})],l.HiContact.prototype,"sent",2),f([m({type:Boolean})],l.HiContact.prototype,"otp",2),f([m({type:String})],l.HiContact.prototype,"theme",2),f([m({type:String})],l.HiContact.prototype,"corners",2),f([jt("form")],l.HiContact.prototype,"form",2),l.HiContact=f([ct("hi-contact")],l.HiContact);var zt=Object.defineProperty,Lt=Object.getOwnPropertyDescriptor,J=(i,t,e,o)=>{for(var r=o>1?void 0:o?Lt(t,e):t,s=i.length-1,n;s>=0;s--)(n=i[s])&&(r=(o?n(t,e,r):n(r))||r);return o&&r&&zt(t,e,r),r};l.Popover=class extends C{constructor(){super(...arguments),this.text="Contact",this.asButton=!1}render(){return this.asButton?F`
`:F` `}},l.Popover.styles=Z` button, .button, [role="button"] { cursor: pointer; } button, .button, input:where([type='button']), input:where([type='reset']), input:where([type='submit']) { -webkit-appearance: button; background-color: transparent; background-image: none; } button, .button, select { text-transform: none; } button, .button, input, optgroup, select, textarea { font-family: inherit; font-feature-settings: inherit; font-variation-settings: inherit; font-size: 100%; font-weight: inherit; line-height: inherit; letter-spacing: inherit; color: inherit; margin: 0; padding: 0; } #hi-popover::backdrop { background-color: rgb(0 0 0 / 0.8); } #hi-popover { width: 30rem; padding: 32px; border: none; background-color: transparent; color: transparent; } @media(max-width: 480px){ #hi-popover { width: 20rem; } } button { border: 1px solid; border-color: transparent; display: flex; justify-content: center; padding-left: 0.75rem; padding-right: 0.75rem; border-radius: 0.375rem; padding-top: 0.375rem; padding-bottom: 0.375rem; line-height: 1.5rem; color: rgb(255 255 255); font-weight: 500; border-radius: 0.375rem; cursor: pointer; } .bg-emerald-400 { background-color: rgb(52 211 153); } .text-sm { font-size: 0.875rem; line-height: 1.25rem; } @media (min-width: 640px) { .text-sm { font-size: 0.875rem; line-height: 1.25rem; } } .popover-btn { all: unset; } `,J([m({type:String})],l.Popover.prototype,"text",2),J([m({type:Boolean})],l.Popover.prototype,"asButton",2),l.Popover=J([ct("hi-popover")],l.Popover),Object.defineProperty(l,Symbol.toStringTag,{value:"Module"})});