shipfare_shipping_cutoff 0.1.13 → 0.1.15

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.
@@ -1616,6 +1616,7 @@ let ShipFareShippingCutoffWidget = class extends s {
1616
1616
  border: 1px solid var(--shipping-cutoff-primary-bg-color, #d1d5db);
1617
1617
  border-radius: 8px;
1618
1618
  overflow: hidden;
1619
+ cursor: pointer;
1619
1620
  }
1620
1621
 
1621
1622
  .top-section, .bottom-section {
@@ -1677,7 +1678,7 @@ let ShipFareShippingCutoffWidget = class extends s {
1677
1678
  width: 90%;
1678
1679
  position: relative;
1679
1680
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
1680
- color: var(--shipping-cutoff-primary-text-color, #000);
1681
+ color: #000;
1681
1682
  font-size: 14px;
1682
1683
  }
1683
1684
 
@@ -1715,20 +1716,20 @@ let ShipFareShippingCutoffWidget = class extends s {
1715
1716
  }
1716
1717
  }
1717
1718
  </style>
1718
- <div class="widget-body" style=${widgetStyle}>
1719
+ <div class="widget-body" style=${widgetStyle} @click=${this._togglePopup} >
1719
1720
  <div class="top-section ${this._isShippingWindow ? "is-timer" : ""}">
1720
1721
  ${topContent}
1721
1722
  </div>
1722
1723
  <div class="bottom-section">
1723
1724
  <span>${bottomContent}</span>
1724
- <svg id="info-icon" @click=${this._togglePopup} viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg">
1725
+ <svg id="info-icon" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg">
1725
1726
  <path d="M10 2a8 8 0 100 16 8 8 0 000-16zm0 14a6 6 0 110-12 6 6 0 010 12zm-1-5a1 1 0 112 0v3a1 1 0 11-2 0v-3zm1-4a1 1 0 010-2 1 1 0 010 2z"/>
1726
1727
  </svg>
1727
1728
  </div>
1728
1729
  </div>
1729
1730
 
1730
1731
  ${this._isPopupVisible ? x`
1731
- <div class="popup-overlay" style=${widgetStyle} @click=${this._togglePopup}>
1732
+ <div class="popup-overlay" @click=${this._togglePopup}>
1732
1733
  <div class="popup-content" @click=${(e2) => e2.stopPropagation()}>
1733
1734
  <button class="close-button" @click=${this._togglePopup}>&times;</button>
1734
1735
  <div style="margin-top: 20px">${o2((_b = this._store) == null ? void 0 : _b.cutoffPopupDescription)}</div>
@@ -8,13 +8,13 @@ var ShipFareShippingCutOffWidget=function(t){"use strict";
8
8
  * @license
9
9
  * Copyright 2017 Google LLC
10
10
  * SPDX-License-Identifier: BSD-3-Clause
11
- */;var a;const l=window,c=l.trustedTypes,u=c?c.emptyScript:"",h=l.reactiveElementPolyfillSupport,d={toAttribute(t,e){switch(e){case Boolean:t=t?u:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let i=t;switch(e){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t)}catch(n){i=null}}return i}},p=(t,e)=>e!==t&&(e==e||t==t),f={attribute:!0,type:String,converter:d,reflect:!1,hasChanged:p},g="finalized";let v=class extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this._$Eu()}static addInitializer(t){var e;this.finalize(),(null!==(e=this.h)&&void 0!==e?e:this.h=[]).push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach(((e,i)=>{const n=this._$Ep(i,e);void 0!==n&&(this._$Ev.set(n,i),t.push(n))})),t}static createProperty(t,e=f){if(e.state&&(e.attribute=!1),this.finalize(),this.elementProperties.set(t,e),!e.noAccessor&&!this.prototype.hasOwnProperty(t)){const i="symbol"==typeof t?Symbol():"__"+t,n=this.getPropertyDescriptor(t,i,e);void 0!==n&&Object.defineProperty(this.prototype,t,n)}}static getPropertyDescriptor(t,e,i){return{get(){return this[e]},set(n){const o=this[t];this[e]=n,this.requestUpdate(t,o,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||f}static finalize(){if(this.hasOwnProperty(g))return!1;this[g]=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),void 0!==t.h&&(this.h=[...t.h]),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const t=this.properties,e=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(const i of e)this.createProperty(i,t[i])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const t of i)e.unshift(r(t))}else void 0!==t&&e.push(r(t));return e}static _$Ep(t,e){const i=e.attribute;return!1===i?void 0:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():void 0}_$Eu(){var t;this._$E_=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null===(t=this.constructor.h)||void 0===t||t.forEach((t=>t(this)))}addController(t){var e,i;(null!==(e=this._$ES)&&void 0!==e?e:this._$ES=[]).push(t),void 0!==this.renderRoot&&this.isConnected&&(null===(i=t.hostConnected)||void 0===i||i.call(t))}removeController(t){var e;null===(e=this._$ES)||void 0===e||e.splice(this._$ES.indexOf(t)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach(((t,e)=>{this.hasOwnProperty(e)&&(this._$Ei.set(e,this[e]),delete this[e])}))}createRenderRoot(){var t;const n=null!==(t=this.shadowRoot)&&void 0!==t?t:this.attachShadow(this.constructor.shadowRootOptions);return((t,n)=>{i?t.adoptedStyleSheets=n.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):n.forEach((i=>{const n=document.createElement("style"),o=e.litNonce;void 0!==o&&n.setAttribute("nonce",o),n.textContent=i.cssText,t.appendChild(n)}))})(n,this.constructor.elementStyles),n}connectedCallback(){var t;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostConnected)||void 0===e?void 0:e.call(t)}))}enableUpdating(t){}disconnectedCallback(){var t;null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostDisconnected)||void 0===e?void 0:e.call(t)}))}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$EO(t,e,i=f){var n;const o=this.constructor._$Ep(t,i);if(void 0!==o&&!0===i.reflect){const s=(void 0!==(null===(n=i.converter)||void 0===n?void 0:n.toAttribute)?i.converter:d).toAttribute(e,i.type);this._$El=t,null==s?this.removeAttribute(o):this.setAttribute(o,s),this._$El=null}}_$AK(t,e){var i;const n=this.constructor,o=n._$Ev.get(t);if(void 0!==o&&this._$El!==o){const t=n.getPropertyOptions(o),s="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==(null===(i=t.converter)||void 0===i?void 0:i.fromAttribute)?t.converter:d;this._$El=o,this[o]=s.fromAttribute(e,t.type),this._$El=null}}requestUpdate(t,e,i){let n=!0;void 0!==t&&(((i=i||this.constructor.getPropertyOptions(t)).hasChanged||p)(this[t],e)?(this._$AL.has(t)||this._$AL.set(t,e),!0===i.reflect&&this._$El!==t&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(t,i))):n=!1),!this.isUpdatePending&&n&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(e){Promise.reject(e)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach(((t,e)=>this[e]=t)),this._$Ei=void 0);let e=!1;const i=this._$AL;try{e=this.shouldUpdate(i),e?(this.willUpdate(i),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostUpdate)||void 0===e?void 0:e.call(t)})),this.update(i)):this._$Ek()}catch(n){throw e=!1,this._$Ek(),n}e&&this._$AE(i)}willUpdate(t){}_$AE(t){var e;null===(e=this._$ES)||void 0===e||e.forEach((t=>{var e;return null===(e=t.hostUpdated)||void 0===e?void 0:e.call(t)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(t){return!0}update(t){void 0!==this._$EC&&(this._$EC.forEach(((t,e)=>this._$EO(e,this[e],t))),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}};
11
+ */;var a;const l=window,u=l.trustedTypes,c=u?u.emptyScript:"",h=l.reactiveElementPolyfillSupport,d={toAttribute(t,e){switch(e){case Boolean:t=t?c:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let i=t;switch(e){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t)}catch(n){i=null}}return i}},p=(t,e)=>e!==t&&(e==e||t==t),f={attribute:!0,type:String,converter:d,reflect:!1,hasChanged:p},g="finalized";let v=class extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this._$Eu()}static addInitializer(t){var e;this.finalize(),(null!==(e=this.h)&&void 0!==e?e:this.h=[]).push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach(((e,i)=>{const n=this._$Ep(i,e);void 0!==n&&(this._$Ev.set(n,i),t.push(n))})),t}static createProperty(t,e=f){if(e.state&&(e.attribute=!1),this.finalize(),this.elementProperties.set(t,e),!e.noAccessor&&!this.prototype.hasOwnProperty(t)){const i="symbol"==typeof t?Symbol():"__"+t,n=this.getPropertyDescriptor(t,i,e);void 0!==n&&Object.defineProperty(this.prototype,t,n)}}static getPropertyDescriptor(t,e,i){return{get(){return this[e]},set(n){const o=this[t];this[e]=n,this.requestUpdate(t,o,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||f}static finalize(){if(this.hasOwnProperty(g))return!1;this[g]=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),void 0!==t.h&&(this.h=[...t.h]),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const t=this.properties,e=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(const i of e)this.createProperty(i,t[i])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const t of i)e.unshift(r(t))}else void 0!==t&&e.push(r(t));return e}static _$Ep(t,e){const i=e.attribute;return!1===i?void 0:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():void 0}_$Eu(){var t;this._$E_=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null===(t=this.constructor.h)||void 0===t||t.forEach((t=>t(this)))}addController(t){var e,i;(null!==(e=this._$ES)&&void 0!==e?e:this._$ES=[]).push(t),void 0!==this.renderRoot&&this.isConnected&&(null===(i=t.hostConnected)||void 0===i||i.call(t))}removeController(t){var e;null===(e=this._$ES)||void 0===e||e.splice(this._$ES.indexOf(t)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach(((t,e)=>{this.hasOwnProperty(e)&&(this._$Ei.set(e,this[e]),delete this[e])}))}createRenderRoot(){var t;const n=null!==(t=this.shadowRoot)&&void 0!==t?t:this.attachShadow(this.constructor.shadowRootOptions);return((t,n)=>{i?t.adoptedStyleSheets=n.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):n.forEach((i=>{const n=document.createElement("style"),o=e.litNonce;void 0!==o&&n.setAttribute("nonce",o),n.textContent=i.cssText,t.appendChild(n)}))})(n,this.constructor.elementStyles),n}connectedCallback(){var t;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostConnected)||void 0===e?void 0:e.call(t)}))}enableUpdating(t){}disconnectedCallback(){var t;null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostDisconnected)||void 0===e?void 0:e.call(t)}))}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$EO(t,e,i=f){var n;const o=this.constructor._$Ep(t,i);if(void 0!==o&&!0===i.reflect){const s=(void 0!==(null===(n=i.converter)||void 0===n?void 0:n.toAttribute)?i.converter:d).toAttribute(e,i.type);this._$El=t,null==s?this.removeAttribute(o):this.setAttribute(o,s),this._$El=null}}_$AK(t,e){var i;const n=this.constructor,o=n._$Ev.get(t);if(void 0!==o&&this._$El!==o){const t=n.getPropertyOptions(o),s="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==(null===(i=t.converter)||void 0===i?void 0:i.fromAttribute)?t.converter:d;this._$El=o,this[o]=s.fromAttribute(e,t.type),this._$El=null}}requestUpdate(t,e,i){let n=!0;void 0!==t&&(((i=i||this.constructor.getPropertyOptions(t)).hasChanged||p)(this[t],e)?(this._$AL.has(t)||this._$AL.set(t,e),!0===i.reflect&&this._$El!==t&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(t,i))):n=!1),!this.isUpdatePending&&n&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(e){Promise.reject(e)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach(((t,e)=>this[e]=t)),this._$Ei=void 0);let e=!1;const i=this._$AL;try{e=this.shouldUpdate(i),e?(this.willUpdate(i),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostUpdate)||void 0===e?void 0:e.call(t)})),this.update(i)):this._$Ek()}catch(n){throw e=!1,this._$Ek(),n}e&&this._$AE(i)}willUpdate(t){}_$AE(t){var e;null===(e=this._$ES)||void 0===e||e.forEach((t=>{var e;return null===(e=t.hostUpdated)||void 0===e?void 0:e.call(t)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(t){return!0}update(t){void 0!==this._$EC&&(this._$EC.forEach(((t,e)=>this._$EO(e,this[e],t))),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}};
12
12
  /**
13
13
  * @license
14
14
  * Copyright 2017 Google LLC
15
15
  * SPDX-License-Identifier: BSD-3-Clause
16
16
  */
17
- var m;v[g]=!0,v.elementProperties=new Map,v.elementStyles=[],v.shadowRootOptions={mode:"open"},null==h||h({ReactiveElement:v}),(null!==(a=l.reactiveElementVersions)&&void 0!==a?a:l.reactiveElementVersions=[]).push("1.6.3");const _=window,$=_.trustedTypes,y=$?$.createPolicy("lit-html",{createHTML:t=>t}):void 0,w="$lit$",S=`lit$${(Math.random()+"").slice(9)}$`,b="?"+S,A=`<${b}>`,x=document,C=()=>x.createComment(""),D=t=>null===t||"object"!=typeof t&&"function"!=typeof t,E=Array.isArray,T="[ \t\n\f\r]",N=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,M=/-->/g,H=/>/g,U=RegExp(`>|${T}(?:([^\\s"'>=/]+)(${T}*=${T}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),P=/'/g,F=/"/g,O=/^(?:script|style|textarea|title)$/i,Y=(j=1,(t,...e)=>({_$litType$:j,strings:t,values:e})),k=Symbol.for("lit-noChange"),I=Symbol.for("lit-nothing"),W=new WeakMap,z=x.createTreeWalker(x,129,null,!1);var j;function R(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==y?y.createHTML(e):e}class Z{constructor({strings:t,_$litType$:e},i){let n;this.parts=[];let o=0,s=0;const r=t.length-1,a=this.parts,[l,c]=((t,e)=>{const i=t.length-1,n=[];let o,s=2===e?"<svg>":"",r=N;for(let a=0;a<i;a++){const e=t[a];let i,l,c=-1,u=0;for(;u<e.length&&(r.lastIndex=u,l=r.exec(e),null!==l);)u=r.lastIndex,r===N?"!--"===l[1]?r=M:void 0!==l[1]?r=H:void 0!==l[2]?(O.test(l[2])&&(o=RegExp("</"+l[2],"g")),r=U):void 0!==l[3]&&(r=U):r===U?">"===l[0]?(r=null!=o?o:N,c=-1):void 0===l[1]?c=-2:(c=r.lastIndex-l[2].length,i=l[1],r=void 0===l[3]?U:'"'===l[3]?F:P):r===F||r===P?r=U:r===M||r===H?r=N:(r=U,o=void 0);const h=r===U&&t[a+1].startsWith("/>")?" ":"";s+=r===N?e+A:c>=0?(n.push(i),e.slice(0,c)+w+e.slice(c)+S+h):e+S+(-2===c?(n.push(void 0),a):h)}return[R(t,s+(t[i]||"<?>")+(2===e?"</svg>":"")),n]})(t,e);if(this.el=Z.createElement(l,i),z.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(n=z.nextNode())&&a.length<r;){if(1===n.nodeType){if(n.hasAttributes()){const t=[];for(const e of n.getAttributeNames())if(e.endsWith(w)||e.startsWith(S)){const i=c[s++];if(t.push(e),void 0!==i){const t=n.getAttribute(i.toLowerCase()+w).split(S),e=/([.?@])?(.*)/.exec(i);a.push({type:1,index:o,name:e[2],strings:t,ctor:"."===e[1]?J:"?"===e[1]?G:"@"===e[1]?Q:q})}else a.push({type:6,index:o})}for(const e of t)n.removeAttribute(e)}if(O.test(n.tagName)){const t=n.textContent.split(S),e=t.length-1;if(e>0){n.textContent=$?$.emptyScript:"";for(let i=0;i<e;i++)n.append(t[i],C()),z.nextNode(),a.push({type:2,index:++o});n.append(t[e],C())}}}else if(8===n.nodeType)if(n.data===b)a.push({type:2,index:o});else{let t=-1;for(;-1!==(t=n.data.indexOf(S,t+1));)a.push({type:7,index:o}),t+=S.length-1}o++}}static createElement(t,e){const i=x.createElement("template");return i.innerHTML=t,i}}function L(t,e,i=t,n){var o,s,r,a;if(e===k)return e;let l=void 0!==n?null===(o=i._$Co)||void 0===o?void 0:o[n]:i._$Cl;const c=D(e)?void 0:e._$litDirective$;return(null==l?void 0:l.constructor)!==c&&(null===(s=null==l?void 0:l._$AO)||void 0===s||s.call(l,!1),void 0===c?l=void 0:(l=new c(t),l._$AT(t,i,n)),void 0!==n?(null!==(r=(a=i)._$Co)&&void 0!==r?r:a._$Co=[])[n]=l:i._$Cl=l),void 0!==l&&(e=L(t,l._$AS(t,e.values),l,n)),e}class B{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 e;const{el:{content:i},parts:n}=this._$AD,o=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:x).importNode(i,!0);z.currentNode=o;let s=z.nextNode(),r=0,a=0,l=n[0];for(;void 0!==l;){if(r===l.index){let e;2===l.type?e=new V(s,s.nextSibling,this,t):1===l.type?e=new l.ctor(s,l.name,l.strings,this,t):6===l.type&&(e=new X(s,this,t)),this._$AV.push(e),l=n[++a]}r!==(null==l?void 0:l.index)&&(s=z.nextNode(),r++)}return z.currentNode=x,o}v(t){let e=0;for(const i of this._$AV)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class V{constructor(t,e,i,n){var o;this.type=2,this._$AH=I,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=n,this._$Cp=null===(o=null==n?void 0:n.isConnected)||void 0===o||o}get _$AU(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$Cp}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===(null==t?void 0:t.nodeType)&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=L(this,t,e),D(t)?t===I||null==t||""===t?(this._$AH!==I&&this._$AR(),this._$AH=I):t!==this._$AH&&t!==k&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):(t=>E(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]))(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==I&&D(this._$AH)?this._$AA.nextSibling.data=t:this.$(x.createTextNode(t)),this._$AH=t}g(t){var e;const{values:i,_$litType$:n}=t,o="number"==typeof n?this._$AC(t):(void 0===n.el&&(n.el=Z.createElement(R(n.h,n.h[0]),this.options)),n);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===o)this._$AH.v(i);else{const t=new B(o,this),e=t.u(this.options);t.v(i),this.$(e),this._$AH=t}}_$AC(t){let e=W.get(t.strings);return void 0===e&&W.set(t.strings,e=new Z(t)),e}T(t){E(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,n=0;for(const o of t)n===e.length?e.push(i=new V(this.k(C()),this.k(C()),this,this.options)):i=e[n],i._$AI(o),n++;n<e.length&&(this._$AR(i&&i._$AB.nextSibling,n),e.length=n)}_$AR(t=this._$AA.nextSibling,e){var i;for(null===(i=this._$AP)||void 0===i||i.call(this,!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){var e;void 0===this._$AM&&(this._$Cp=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class q{constructor(t,e,i,n,o){this.type=1,this._$AH=I,this._$AN=void 0,this.element=t,this.name=e,this._$AM=n,this.options=o,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=I}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,n){const o=this.strings;let s=!1;if(void 0===o)t=L(this,t,e,0),s=!D(t)||t!==this._$AH&&t!==k,s&&(this._$AH=t);else{const n=t;let r,a;for(t=o[0],r=0;r<o.length-1;r++)a=L(this,n[i+r],e,r),a===k&&(a=this._$AH[r]),s||(s=!D(a)||a!==this._$AH[r]),a===I?t=I:t!==I&&(t+=(null!=a?a:"")+o[r+1]),this._$AH[r]=a}s&&!n&&this.j(t)}j(t){t===I?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class J extends q{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===I?void 0:t}}const K=$?$.emptyScript:"";class G extends q{constructor(){super(...arguments),this.type=4}j(t){t&&t!==I?this.element.setAttribute(this.name,K):this.element.removeAttribute(this.name)}}class Q extends q{constructor(t,e,i,n,o){super(t,e,i,n,o),this.type=5}_$AI(t,e=this){var i;if((t=null!==(i=L(this,t,e,0))&&void 0!==i?i:I)===k)return;const n=this._$AH,o=t===I&&n!==I||t.capture!==n.capture||t.once!==n.once||t.passive!==n.passive,s=t!==I&&(n===I||o);o&&this.element.removeEventListener(this.name,this,n),s&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,i;"function"==typeof this._$AH?this._$AH.call(null!==(i=null===(e=this.options)||void 0===e?void 0:e.host)&&void 0!==i?i:this.element,t):this._$AH.handleEvent(t)}}class X{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){L(this,t)}}const tt=_.litHtmlPolyfillSupport;null==tt||tt(Z,V),(null!==(m=_.litHtmlVersions)&&void 0!==m?m:_.litHtmlVersions=[]).push("2.8.0");
17
+ var m;v[g]=!0,v.elementProperties=new Map,v.elementStyles=[],v.shadowRootOptions={mode:"open"},null==h||h({ReactiveElement:v}),(null!==(a=l.reactiveElementVersions)&&void 0!==a?a:l.reactiveElementVersions=[]).push("1.6.3");const _=window,$=_.trustedTypes,y=$?$.createPolicy("lit-html",{createHTML:t=>t}):void 0,w="$lit$",S=`lit$${(Math.random()+"").slice(9)}$`,b="?"+S,A=`<${b}>`,x=document,C=()=>x.createComment(""),D=t=>null===t||"object"!=typeof t&&"function"!=typeof t,E=Array.isArray,T="[ \t\n\f\r]",N=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,M=/-->/g,H=/>/g,U=RegExp(`>|${T}(?:([^\\s"'>=/]+)(${T}*=${T}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),P=/'/g,F=/"/g,O=/^(?:script|style|textarea|title)$/i,Y=(j=1,(t,...e)=>({_$litType$:j,strings:t,values:e})),k=Symbol.for("lit-noChange"),I=Symbol.for("lit-nothing"),W=new WeakMap,z=x.createTreeWalker(x,129,null,!1);var j;function R(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==y?y.createHTML(e):e}class Z{constructor({strings:t,_$litType$:e},i){let n;this.parts=[];let o=0,s=0;const r=t.length-1,a=this.parts,[l,u]=((t,e)=>{const i=t.length-1,n=[];let o,s=2===e?"<svg>":"",r=N;for(let a=0;a<i;a++){const e=t[a];let i,l,u=-1,c=0;for(;c<e.length&&(r.lastIndex=c,l=r.exec(e),null!==l);)c=r.lastIndex,r===N?"!--"===l[1]?r=M:void 0!==l[1]?r=H:void 0!==l[2]?(O.test(l[2])&&(o=RegExp("</"+l[2],"g")),r=U):void 0!==l[3]&&(r=U):r===U?">"===l[0]?(r=null!=o?o:N,u=-1):void 0===l[1]?u=-2:(u=r.lastIndex-l[2].length,i=l[1],r=void 0===l[3]?U:'"'===l[3]?F:P):r===F||r===P?r=U:r===M||r===H?r=N:(r=U,o=void 0);const h=r===U&&t[a+1].startsWith("/>")?" ":"";s+=r===N?e+A:u>=0?(n.push(i),e.slice(0,u)+w+e.slice(u)+S+h):e+S+(-2===u?(n.push(void 0),a):h)}return[R(t,s+(t[i]||"<?>")+(2===e?"</svg>":"")),n]})(t,e);if(this.el=Z.createElement(l,i),z.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(n=z.nextNode())&&a.length<r;){if(1===n.nodeType){if(n.hasAttributes()){const t=[];for(const e of n.getAttributeNames())if(e.endsWith(w)||e.startsWith(S)){const i=u[s++];if(t.push(e),void 0!==i){const t=n.getAttribute(i.toLowerCase()+w).split(S),e=/([.?@])?(.*)/.exec(i);a.push({type:1,index:o,name:e[2],strings:t,ctor:"."===e[1]?J:"?"===e[1]?G:"@"===e[1]?Q:q})}else a.push({type:6,index:o})}for(const e of t)n.removeAttribute(e)}if(O.test(n.tagName)){const t=n.textContent.split(S),e=t.length-1;if(e>0){n.textContent=$?$.emptyScript:"";for(let i=0;i<e;i++)n.append(t[i],C()),z.nextNode(),a.push({type:2,index:++o});n.append(t[e],C())}}}else if(8===n.nodeType)if(n.data===b)a.push({type:2,index:o});else{let t=-1;for(;-1!==(t=n.data.indexOf(S,t+1));)a.push({type:7,index:o}),t+=S.length-1}o++}}static createElement(t,e){const i=x.createElement("template");return i.innerHTML=t,i}}function L(t,e,i=t,n){var o,s,r,a;if(e===k)return e;let l=void 0!==n?null===(o=i._$Co)||void 0===o?void 0:o[n]:i._$Cl;const u=D(e)?void 0:e._$litDirective$;return(null==l?void 0:l.constructor)!==u&&(null===(s=null==l?void 0:l._$AO)||void 0===s||s.call(l,!1),void 0===u?l=void 0:(l=new u(t),l._$AT(t,i,n)),void 0!==n?(null!==(r=(a=i)._$Co)&&void 0!==r?r:a._$Co=[])[n]=l:i._$Cl=l),void 0!==l&&(e=L(t,l._$AS(t,e.values),l,n)),e}class B{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 e;const{el:{content:i},parts:n}=this._$AD,o=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:x).importNode(i,!0);z.currentNode=o;let s=z.nextNode(),r=0,a=0,l=n[0];for(;void 0!==l;){if(r===l.index){let e;2===l.type?e=new V(s,s.nextSibling,this,t):1===l.type?e=new l.ctor(s,l.name,l.strings,this,t):6===l.type&&(e=new X(s,this,t)),this._$AV.push(e),l=n[++a]}r!==(null==l?void 0:l.index)&&(s=z.nextNode(),r++)}return z.currentNode=x,o}v(t){let e=0;for(const i of this._$AV)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class V{constructor(t,e,i,n){var o;this.type=2,this._$AH=I,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=n,this._$Cp=null===(o=null==n?void 0:n.isConnected)||void 0===o||o}get _$AU(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$Cp}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===(null==t?void 0:t.nodeType)&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=L(this,t,e),D(t)?t===I||null==t||""===t?(this._$AH!==I&&this._$AR(),this._$AH=I):t!==this._$AH&&t!==k&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):(t=>E(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]))(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==I&&D(this._$AH)?this._$AA.nextSibling.data=t:this.$(x.createTextNode(t)),this._$AH=t}g(t){var e;const{values:i,_$litType$:n}=t,o="number"==typeof n?this._$AC(t):(void 0===n.el&&(n.el=Z.createElement(R(n.h,n.h[0]),this.options)),n);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===o)this._$AH.v(i);else{const t=new B(o,this),e=t.u(this.options);t.v(i),this.$(e),this._$AH=t}}_$AC(t){let e=W.get(t.strings);return void 0===e&&W.set(t.strings,e=new Z(t)),e}T(t){E(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,n=0;for(const o of t)n===e.length?e.push(i=new V(this.k(C()),this.k(C()),this,this.options)):i=e[n],i._$AI(o),n++;n<e.length&&(this._$AR(i&&i._$AB.nextSibling,n),e.length=n)}_$AR(t=this._$AA.nextSibling,e){var i;for(null===(i=this._$AP)||void 0===i||i.call(this,!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){var e;void 0===this._$AM&&(this._$Cp=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class q{constructor(t,e,i,n,o){this.type=1,this._$AH=I,this._$AN=void 0,this.element=t,this.name=e,this._$AM=n,this.options=o,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=I}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,n){const o=this.strings;let s=!1;if(void 0===o)t=L(this,t,e,0),s=!D(t)||t!==this._$AH&&t!==k,s&&(this._$AH=t);else{const n=t;let r,a;for(t=o[0],r=0;r<o.length-1;r++)a=L(this,n[i+r],e,r),a===k&&(a=this._$AH[r]),s||(s=!D(a)||a!==this._$AH[r]),a===I?t=I:t!==I&&(t+=(null!=a?a:"")+o[r+1]),this._$AH[r]=a}s&&!n&&this.j(t)}j(t){t===I?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class J extends q{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===I?void 0:t}}const K=$?$.emptyScript:"";class G extends q{constructor(){super(...arguments),this.type=4}j(t){t&&t!==I?this.element.setAttribute(this.name,K):this.element.removeAttribute(this.name)}}class Q extends q{constructor(t,e,i,n,o){super(t,e,i,n,o),this.type=5}_$AI(t,e=this){var i;if((t=null!==(i=L(this,t,e,0))&&void 0!==i?i:I)===k)return;const n=this._$AH,o=t===I&&n!==I||t.capture!==n.capture||t.once!==n.once||t.passive!==n.passive,s=t!==I&&(n===I||o);o&&this.element.removeEventListener(this.name,this,n),s&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,i;"function"==typeof this._$AH?this._$AH.call(null!==(i=null===(e=this.options)||void 0===e?void 0:e.host)&&void 0!==i?i:this.element,t):this._$AH.handleEvent(t)}}class X{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){L(this,t)}}const tt=_.litHtmlPolyfillSupport;null==tt||tt(Z,V),(null!==(m=_.litHtmlVersions)&&void 0!==m?m:_.litHtmlVersions=[]).push("2.8.0");
18
18
  /**
19
19
  * @license
20
20
  * Copyright 2017 Google LLC
@@ -42,7 +42,7 @@ function at(t){return e={...t,state:!0},(t,i)=>void 0!==i?rt(e,t,i):st(e,t);var
42
42
  * @license
43
43
  * Copyright 2021 Google LLC
44
44
  * SPDX-License-Identifier: BSD-3-Clause
45
- */var lt;null===(lt=window.HTMLSlotElement)||void 0===lt||lt.prototype.assignedElements;const ct=864e5,ut=6e4,ht=36e5,dt=Symbol.for("constructDateFrom");function pt(t,e){return"function"==typeof t?t(e):t&&"object"==typeof t&&dt in t?t[dt](e):t instanceof Date?new t.constructor(e):new Date(e)}function ft(t,e){return pt(e||t,t)}function gt(t){const e=ft(t),i=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return i.setUTCFullYear(e.getFullYear()),+t-+i}function vt(t,...e){const i=pt.bind(null,t||e.find((t=>"object"==typeof t)));return e.map(i)}function mt(t,e){const i=ft(t,null==e?void 0:e.in);return i.setHours(0,0,0,0),i}function _t(t,e,i){const{years:n=0,months:o=0,weeks:s=0,days:r=0,hours:a=0,minutes:l=0,seconds:c=0}=e,u=ft(t,null==i?void 0:i.in),h=o||n?function(t,e,i){const n=ft(t,null==i?void 0:i.in);if(isNaN(e))return pt((null==i?void 0:i.in)||t,NaN);if(!e)return n;const o=n.getDate(),s=pt((null==i?void 0:i.in)||t,n.getTime());return s.setMonth(n.getMonth()+e+1,0),o>=s.getDate()?s:(n.setFullYear(s.getFullYear(),s.getMonth(),o),n)}(u,o+12*n):u,d=r||s?function(t,e,i){const n=ft(t,null==i?void 0:i.in);return isNaN(e)?pt((null==i?void 0:i.in)||t,NaN):e?(n.setDate(n.getDate()+e),n):n}(h,r+7*s):h,p=1e3*(c+60*(l+60*a));return pt((null==i?void 0:i.in)||t,+d+p)}function $t(t,e){const i=+ft(t)-+ft(e);return i<0?-1:i>0?1:i}function yt(t,e,i){const[n,o]=vt(null==i?void 0:i.in,t,e),s=wt(n,o),r=Math.abs(function(t,e,i){const[n,o]=vt(null==i?void 0:i.in,t,e),s=mt(n),r=mt(o),a=+s-gt(s),l=+r-gt(r);return Math.round((a-l)/ct)}(n,o));n.setDate(n.getDate()-s*r);const a=s*(r-Number(wt(n,o)===-s));return 0===a?0:a}function wt(t,e){const i=t.getFullYear()-e.getFullYear()||t.getMonth()-e.getMonth()||t.getDate()-e.getDate()||t.getHours()-e.getHours()||t.getMinutes()-e.getMinutes()||t.getSeconds()-e.getSeconds()||t.getMilliseconds()-e.getMilliseconds();return i<0?-1:i>0?1:i}function St(t){return e=>{const i=(t?Math[t]:Math.trunc)(e);return 0===i?0:i}}function bt(t,e){return+ft(t)-+ft(e)}function At(t,e){const i=ft(t,null==e?void 0:e.in);return+function(t,e){const i=ft(t,null==e?void 0:e.in);return i.setHours(23,59,59,999),i}(i,e)==+function(t,e){const i=ft(t,null==e?void 0:e.in),n=i.getMonth();return i.setFullYear(i.getFullYear(),n+1,0),i.setHours(23,59,59,999),i}(i,e)}function xt(t,e,i){const[n,o,s]=vt(null==i?void 0:i.in,t,t,e),r=$t(o,s),a=Math.abs(function(t,e,i){const[n,o]=vt(null==i?void 0:i.in,t,e);return 12*(n.getFullYear()-o.getFullYear())+(n.getMonth()-o.getMonth())}(o,s));if(a<1)return 0;1===o.getMonth()&&o.getDate()>27&&o.setDate(30),o.setMonth(o.getMonth()-r*a);let l=$t(o,s)===-r;At(n)&&1===a&&1===$t(n,s)&&(l=!1);const c=r*(a-+l);return 0===c?0:c}function Ct(t,e,i){const[n,o]=vt(null==i?void 0:i.in,t,e),s=$t(n,o),r=Math.abs(function(t,e,i){const[n,o]=vt(null==i?void 0:i.in,t,e);return n.getFullYear()-o.getFullYear()}(n,o));n.setFullYear(1584),o.setFullYear(1584);const a=s*(r-+($t(n,o)===-s));return 0===a?0:a}function Dt(t,e){const{start:i,end:n}=function(t,e){const[i,n]=vt(t,e.start,e.end);return{start:i,end:n}}(null==e?void 0:e.in,t),o={},s=Ct(n,i);s&&(o.years=s);const r=_t(i,{years:o.years}),a=xt(n,r);a&&(o.months=a);const l=_t(r,{months:o.months}),c=yt(n,l);c&&(o.days=c);const u=_t(l,{days:o.days}),h=function(t,e,i){const[n,o]=vt(null==i?void 0:i.in,t,e),s=(+n-+o)/ht;return St(null==i?void 0:i.roundingMethod)(s)}(n,u);h&&(o.hours=h);const d=_t(u,{hours:o.hours}),p=function(t,e,i){const n=bt(t,e)/ut;return St(null==i?void 0:i.roundingMethod)(n)}(n,d);p&&(o.minutes=p);const f=function(t,e,i){const n=bt(t,e)/1e3;return St(null==i?void 0:i.roundingMethod)(n)}(n,_t(d,{minutes:o.minutes}));return f&&(o.seconds=f),o}function Et(t,e){const i=function(t){Nt[t]||(Nt[t]=Ht?new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:t,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}):new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:t,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}));return Nt[t]}(e);return"formatToParts"in i?function(t,e){try{const i=t.formatToParts(e),n=[];for(let t=0;t<i.length;t++){const e=Tt[i[t].type];void 0!==e&&(n[e]=parseInt(i[t].value,10))}return n}catch(i){if(i instanceof RangeError)return[NaN];throw i}}(i,t):function(t,e){const i=t.format(e),n=/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(i);return[parseInt(n[3],10),parseInt(n[1],10),parseInt(n[2],10),parseInt(n[4],10),parseInt(n[5],10),parseInt(n[6],10)]}(i,t)}const Tt={year:0,month:1,day:2,hour:3,minute:4,second:5};const Nt={},Mt=new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:"America/New_York",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}).format(new Date("2014-06-25T04:00:00.123Z")),Ht="06/25/2014, 00:00:00"===Mt||"‎06‎/‎25‎/‎2014‎ ‎00‎:‎00‎:‎00"===Mt;function Ut(t,e,i,n,o,s,r){const a=new Date(0);return a.setUTCFullYear(t,e,i),a.setUTCHours(n,o,s,r),a}const Pt=36e5,Ft=6e4,Ot={timezone:/([Z+-].*)$/,timezoneZ:/^(Z)$/,timezoneHH:/^([+-]\d{2})$/,timezoneHHMM:/^([+-])(\d{2}):?(\d{2})$/};function Yt(t,e,i){if(!t)return 0;let n,o,s=Ot.timezoneZ.exec(t);if(s)return 0;if(s=Ot.timezoneHH.exec(t),s)return n=parseInt(s[1],10),It(n)?-n*Pt:NaN;if(s=Ot.timezoneHHMM.exec(t),s){n=parseInt(s[2],10);const t=parseInt(s[3],10);return It(n,t)?(o=Math.abs(n)*Pt+t*Ft,"+"===s[1]?-o:o):NaN}if(function(t){if(Wt[t])return!0;try{return new Intl.DateTimeFormat(void 0,{timeZone:t}),Wt[t]=!0,!0}catch(e){return!1}}(t)){e=new Date(e||Date.now());const n=i?e:function(t){return Ut(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds())}(e),o=kt(n,t),s=i?o:function(t,e,i){const n=t.getTime();let o=n-e;const s=kt(new Date(o),i);if(e===s)return e;o-=s-e;const r=kt(new Date(o),i);if(s===r)return s;return Math.max(s,r)}(e,o,t);return-s}return NaN}function kt(t,e){const i=Et(t,e),n=Ut(i[0],i[1]-1,i[2],i[3]%24,i[4],i[5],0).getTime();let o=t.getTime();const s=o%1e3;return o-=s>=0?s:1e3+s,n-o}function It(t,e){return-23<=t&&t<=23&&(null==e||0<=e&&e<=59)}const Wt={};function zt(t){const e=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return e.setUTCFullYear(t.getFullYear()),+t-+e}const jt=36e5,Rt=6e4,Zt=2,Lt={dateTimePattern:/^([0-9W+-]+)(T| )(.*)/,datePattern:/^([0-9W+-]+)(.*)/,plainTime:/:/,YY:/^(\d{2})$/,YYY:[/^([+-]\d{2})$/,/^([+-]\d{3})$/,/^([+-]\d{4})$/],YYYY:/^(\d{4})/,YYYYY:[/^([+-]\d{4})/,/^([+-]\d{5})/,/^([+-]\d{6})/],MM:/^-(\d{2})$/,DDD:/^-?(\d{3})$/,MMDD:/^-?(\d{2})-?(\d{2})$/,Www:/^-?W(\d{2})$/,WwwD:/^-?W(\d{2})-?(\d{1})$/,HH:/^(\d{2}([.,]\d*)?)$/,HHMM:/^(\d{2}):?(\d{2}([.,]\d*)?)$/,HHMMSS:/^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,timeZone:/(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/};function Bt(t,e={}){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");if(null===t)return new Date(NaN);const i=null==e.additionalDigits?Zt:Number(e.additionalDigits);if(2!==i&&1!==i&&0!==i)throw new RangeError("additionalDigits must be 0, 1 or 2");if(t instanceof Date||"object"==typeof t&&"[object Date]"===Object.prototype.toString.call(t))return new Date(t.getTime());if("number"==typeof t||"[object Number]"===Object.prototype.toString.call(t))return new Date(t);if("[object String]"!==Object.prototype.toString.call(t))return new Date(NaN);const n=function(t){const e={};let i,n=Lt.dateTimePattern.exec(t);n?(e.date=n[1],i=n[3]):(n=Lt.datePattern.exec(t),n?(e.date=n[1],i=n[2]):(e.date=null,i=t));if(i){const t=Lt.timeZone.exec(i);t?(e.time=i.replace(t[1],""),e.timeZone=t[1].trim()):e.time=i}return e}(t),{year:o,restDateString:s}=function(t,e){if(t){const i=Lt.YYY[e],n=Lt.YYYYY[e];let o=Lt.YYYY.exec(t)||n.exec(t);if(o){const e=o[1];return{year:parseInt(e,10),restDateString:t.slice(e.length)}}if(o=Lt.YY.exec(t)||i.exec(t),o){const e=o[1];return{year:100*parseInt(e,10),restDateString:t.slice(e.length)}}}return{year:null}}(n.date,i),r=function(t,e){if(null===e)return null;let i,n,o;if(!t||!t.length)return i=new Date(0),i.setUTCFullYear(e),i;let s=Lt.MM.exec(t);if(s)return i=new Date(0),n=parseInt(s[1],10)-1,Gt(e,n)?(i.setUTCFullYear(e,n),i):new Date(NaN);if(s=Lt.DDD.exec(t),s){i=new Date(0);const t=parseInt(s[1],10);return function(t,e){if(e<1)return!1;const i=Kt(t);if(i&&e>366)return!1;if(!i&&e>365)return!1;return!0}(e,t)?(i.setUTCFullYear(e,0,t),i):new Date(NaN)}if(s=Lt.MMDD.exec(t),s){i=new Date(0),n=parseInt(s[1],10)-1;const t=parseInt(s[2],10);return Gt(e,n,t)?(i.setUTCFullYear(e,n,t),i):new Date(NaN)}if(s=Lt.Www.exec(t),s)return o=parseInt(s[1],10)-1,Qt(o)?Vt(e,o):new Date(NaN);if(s=Lt.WwwD.exec(t),s){o=parseInt(s[1],10)-1;const t=parseInt(s[2],10)-1;return Qt(o,t)?Vt(e,o,t):new Date(NaN)}return null}(s,o);if(null===r||isNaN(r.getTime()))return new Date(NaN);if(r){const t=r.getTime();let i,o=0;if(n.time&&(o=function(t){let e,i,n=Lt.HH.exec(t);if(n)return e=parseFloat(n[1].replace(",",".")),Xt(e)?e%24*jt:NaN;if(n=Lt.HHMM.exec(t),n)return e=parseInt(n[1],10),i=parseFloat(n[2].replace(",",".")),Xt(e,i)?e%24*jt+i*Rt:NaN;if(n=Lt.HHMMSS.exec(t),n){e=parseInt(n[1],10),i=parseInt(n[2],10);const t=parseFloat(n[3].replace(",","."));return Xt(e,i,t)?e%24*jt+i*Rt+1e3*t:NaN}return null}(n.time),null===o||isNaN(o)))return new Date(NaN);if(n.timeZone||e.timeZone){if(i=Yt(n.timeZone||e.timeZone,new Date(t+o)),isNaN(i))return new Date(NaN)}else i=zt(new Date(t+o)),i=zt(new Date(t+o+i));return new Date(t+o+i)}return new Date(NaN)}function Vt(t,e,i){e=e||0,i=i||0;const n=new Date(0);n.setUTCFullYear(t,0,4);const o=7*e+i+1-(n.getUTCDay()||7);return n.setUTCDate(n.getUTCDate()+o),n}const qt=[31,28,31,30,31,30,31,31,30,31,30,31],Jt=[31,29,31,30,31,30,31,31,30,31,30,31];function Kt(t){return t%400==0||t%4==0&&t%100!=0}function Gt(t,e,i){if(e<0||e>11)return!1;if(null!=i){if(i<1)return!1;const n=Kt(t);if(n&&i>Jt[e])return!1;if(!n&&i>qt[e])return!1}return!0}function Qt(t,e){return!(t<0||t>52)&&(null==e||!(e<0||e>6))}function Xt(t,e,i){return!(t<0||t>=25)&&((null==e||!(e<0||e>=60))&&(null==i||!(i<0||i>=60)))}
45
+ */var lt;null===(lt=window.HTMLSlotElement)||void 0===lt||lt.prototype.assignedElements;const ut=864e5,ct=6e4,ht=36e5,dt=Symbol.for("constructDateFrom");function pt(t,e){return"function"==typeof t?t(e):t&&"object"==typeof t&&dt in t?t[dt](e):t instanceof Date?new t.constructor(e):new Date(e)}function ft(t,e){return pt(e||t,t)}function gt(t){const e=ft(t),i=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return i.setUTCFullYear(e.getFullYear()),+t-+i}function vt(t,...e){const i=pt.bind(null,t||e.find((t=>"object"==typeof t)));return e.map(i)}function mt(t,e){const i=ft(t,null==e?void 0:e.in);return i.setHours(0,0,0,0),i}function _t(t,e,i){const{years:n=0,months:o=0,weeks:s=0,days:r=0,hours:a=0,minutes:l=0,seconds:u=0}=e,c=ft(t,null==i?void 0:i.in),h=o||n?function(t,e,i){const n=ft(t,null==i?void 0:i.in);if(isNaN(e))return pt((null==i?void 0:i.in)||t,NaN);if(!e)return n;const o=n.getDate(),s=pt((null==i?void 0:i.in)||t,n.getTime());return s.setMonth(n.getMonth()+e+1,0),o>=s.getDate()?s:(n.setFullYear(s.getFullYear(),s.getMonth(),o),n)}(c,o+12*n):c,d=r||s?function(t,e,i){const n=ft(t,null==i?void 0:i.in);return isNaN(e)?pt((null==i?void 0:i.in)||t,NaN):e?(n.setDate(n.getDate()+e),n):n}(h,r+7*s):h,p=1e3*(u+60*(l+60*a));return pt((null==i?void 0:i.in)||t,+d+p)}function $t(t,e){const i=+ft(t)-+ft(e);return i<0?-1:i>0?1:i}function yt(t,e,i){const[n,o]=vt(null==i?void 0:i.in,t,e),s=wt(n,o),r=Math.abs(function(t,e,i){const[n,o]=vt(null==i?void 0:i.in,t,e),s=mt(n),r=mt(o),a=+s-gt(s),l=+r-gt(r);return Math.round((a-l)/ut)}(n,o));n.setDate(n.getDate()-s*r);const a=s*(r-Number(wt(n,o)===-s));return 0===a?0:a}function wt(t,e){const i=t.getFullYear()-e.getFullYear()||t.getMonth()-e.getMonth()||t.getDate()-e.getDate()||t.getHours()-e.getHours()||t.getMinutes()-e.getMinutes()||t.getSeconds()-e.getSeconds()||t.getMilliseconds()-e.getMilliseconds();return i<0?-1:i>0?1:i}function St(t){return e=>{const i=(t?Math[t]:Math.trunc)(e);return 0===i?0:i}}function bt(t,e){return+ft(t)-+ft(e)}function At(t,e){const i=ft(t,null==e?void 0:e.in);return+function(t,e){const i=ft(t,null==e?void 0:e.in);return i.setHours(23,59,59,999),i}(i,e)==+function(t,e){const i=ft(t,null==e?void 0:e.in),n=i.getMonth();return i.setFullYear(i.getFullYear(),n+1,0),i.setHours(23,59,59,999),i}(i,e)}function xt(t,e,i){const[n,o,s]=vt(null==i?void 0:i.in,t,t,e),r=$t(o,s),a=Math.abs(function(t,e,i){const[n,o]=vt(null==i?void 0:i.in,t,e);return 12*(n.getFullYear()-o.getFullYear())+(n.getMonth()-o.getMonth())}(o,s));if(a<1)return 0;1===o.getMonth()&&o.getDate()>27&&o.setDate(30),o.setMonth(o.getMonth()-r*a);let l=$t(o,s)===-r;At(n)&&1===a&&1===$t(n,s)&&(l=!1);const u=r*(a-+l);return 0===u?0:u}function Ct(t,e,i){const[n,o]=vt(null==i?void 0:i.in,t,e),s=$t(n,o),r=Math.abs(function(t,e,i){const[n,o]=vt(null==i?void 0:i.in,t,e);return n.getFullYear()-o.getFullYear()}(n,o));n.setFullYear(1584),o.setFullYear(1584);const a=s*(r-+($t(n,o)===-s));return 0===a?0:a}function Dt(t,e){const{start:i,end:n}=function(t,e){const[i,n]=vt(t,e.start,e.end);return{start:i,end:n}}(null==e?void 0:e.in,t),o={},s=Ct(n,i);s&&(o.years=s);const r=_t(i,{years:o.years}),a=xt(n,r);a&&(o.months=a);const l=_t(r,{months:o.months}),u=yt(n,l);u&&(o.days=u);const c=_t(l,{days:o.days}),h=function(t,e,i){const[n,o]=vt(null==i?void 0:i.in,t,e),s=(+n-+o)/ht;return St(null==i?void 0:i.roundingMethod)(s)}(n,c);h&&(o.hours=h);const d=_t(c,{hours:o.hours}),p=function(t,e,i){const n=bt(t,e)/ct;return St(null==i?void 0:i.roundingMethod)(n)}(n,d);p&&(o.minutes=p);const f=function(t,e,i){const n=bt(t,e)/1e3;return St(null==i?void 0:i.roundingMethod)(n)}(n,_t(d,{minutes:o.minutes}));return f&&(o.seconds=f),o}function Et(t,e){const i=function(t){Nt[t]||(Nt[t]=Ht?new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:t,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}):new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:t,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}));return Nt[t]}(e);return"formatToParts"in i?function(t,e){try{const i=t.formatToParts(e),n=[];for(let t=0;t<i.length;t++){const e=Tt[i[t].type];void 0!==e&&(n[e]=parseInt(i[t].value,10))}return n}catch(i){if(i instanceof RangeError)return[NaN];throw i}}(i,t):function(t,e){const i=t.format(e),n=/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(i);return[parseInt(n[3],10),parseInt(n[1],10),parseInt(n[2],10),parseInt(n[4],10),parseInt(n[5],10),parseInt(n[6],10)]}(i,t)}const Tt={year:0,month:1,day:2,hour:3,minute:4,second:5};const Nt={},Mt=new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:"America/New_York",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}).format(new Date("2014-06-25T04:00:00.123Z")),Ht="06/25/2014, 00:00:00"===Mt||"‎06‎/‎25‎/‎2014‎ ‎00‎:‎00‎:‎00"===Mt;function Ut(t,e,i,n,o,s,r){const a=new Date(0);return a.setUTCFullYear(t,e,i),a.setUTCHours(n,o,s,r),a}const Pt=36e5,Ft=6e4,Ot={timezone:/([Z+-].*)$/,timezoneZ:/^(Z)$/,timezoneHH:/^([+-]\d{2})$/,timezoneHHMM:/^([+-])(\d{2}):?(\d{2})$/};function Yt(t,e,i){if(!t)return 0;let n,o,s=Ot.timezoneZ.exec(t);if(s)return 0;if(s=Ot.timezoneHH.exec(t),s)return n=parseInt(s[1],10),It(n)?-n*Pt:NaN;if(s=Ot.timezoneHHMM.exec(t),s){n=parseInt(s[2],10);const t=parseInt(s[3],10);return It(n,t)?(o=Math.abs(n)*Pt+t*Ft,"+"===s[1]?-o:o):NaN}if(function(t){if(Wt[t])return!0;try{return new Intl.DateTimeFormat(void 0,{timeZone:t}),Wt[t]=!0,!0}catch(e){return!1}}(t)){e=new Date(e||Date.now());const n=i?e:function(t){return Ut(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds())}(e),o=kt(n,t),s=i?o:function(t,e,i){const n=t.getTime();let o=n-e;const s=kt(new Date(o),i);if(e===s)return e;o-=s-e;const r=kt(new Date(o),i);if(s===r)return s;return Math.max(s,r)}(e,o,t);return-s}return NaN}function kt(t,e){const i=Et(t,e),n=Ut(i[0],i[1]-1,i[2],i[3]%24,i[4],i[5],0).getTime();let o=t.getTime();const s=o%1e3;return o-=s>=0?s:1e3+s,n-o}function It(t,e){return-23<=t&&t<=23&&(null==e||0<=e&&e<=59)}const Wt={};function zt(t){const e=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return e.setUTCFullYear(t.getFullYear()),+t-+e}const jt=36e5,Rt=6e4,Zt=2,Lt={dateTimePattern:/^([0-9W+-]+)(T| )(.*)/,datePattern:/^([0-9W+-]+)(.*)/,plainTime:/:/,YY:/^(\d{2})$/,YYY:[/^([+-]\d{2})$/,/^([+-]\d{3})$/,/^([+-]\d{4})$/],YYYY:/^(\d{4})/,YYYYY:[/^([+-]\d{4})/,/^([+-]\d{5})/,/^([+-]\d{6})/],MM:/^-(\d{2})$/,DDD:/^-?(\d{3})$/,MMDD:/^-?(\d{2})-?(\d{2})$/,Www:/^-?W(\d{2})$/,WwwD:/^-?W(\d{2})-?(\d{1})$/,HH:/^(\d{2}([.,]\d*)?)$/,HHMM:/^(\d{2}):?(\d{2}([.,]\d*)?)$/,HHMMSS:/^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,timeZone:/(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/};function Bt(t,e={}){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");if(null===t)return new Date(NaN);const i=null==e.additionalDigits?Zt:Number(e.additionalDigits);if(2!==i&&1!==i&&0!==i)throw new RangeError("additionalDigits must be 0, 1 or 2");if(t instanceof Date||"object"==typeof t&&"[object Date]"===Object.prototype.toString.call(t))return new Date(t.getTime());if("number"==typeof t||"[object Number]"===Object.prototype.toString.call(t))return new Date(t);if("[object String]"!==Object.prototype.toString.call(t))return new Date(NaN);const n=function(t){const e={};let i,n=Lt.dateTimePattern.exec(t);n?(e.date=n[1],i=n[3]):(n=Lt.datePattern.exec(t),n?(e.date=n[1],i=n[2]):(e.date=null,i=t));if(i){const t=Lt.timeZone.exec(i);t?(e.time=i.replace(t[1],""),e.timeZone=t[1].trim()):e.time=i}return e}(t),{year:o,restDateString:s}=function(t,e){if(t){const i=Lt.YYY[e],n=Lt.YYYYY[e];let o=Lt.YYYY.exec(t)||n.exec(t);if(o){const e=o[1];return{year:parseInt(e,10),restDateString:t.slice(e.length)}}if(o=Lt.YY.exec(t)||i.exec(t),o){const e=o[1];return{year:100*parseInt(e,10),restDateString:t.slice(e.length)}}}return{year:null}}(n.date,i),r=function(t,e){if(null===e)return null;let i,n,o;if(!t||!t.length)return i=new Date(0),i.setUTCFullYear(e),i;let s=Lt.MM.exec(t);if(s)return i=new Date(0),n=parseInt(s[1],10)-1,Gt(e,n)?(i.setUTCFullYear(e,n),i):new Date(NaN);if(s=Lt.DDD.exec(t),s){i=new Date(0);const t=parseInt(s[1],10);return function(t,e){if(e<1)return!1;const i=Kt(t);if(i&&e>366)return!1;if(!i&&e>365)return!1;return!0}(e,t)?(i.setUTCFullYear(e,0,t),i):new Date(NaN)}if(s=Lt.MMDD.exec(t),s){i=new Date(0),n=parseInt(s[1],10)-1;const t=parseInt(s[2],10);return Gt(e,n,t)?(i.setUTCFullYear(e,n,t),i):new Date(NaN)}if(s=Lt.Www.exec(t),s)return o=parseInt(s[1],10)-1,Qt(o)?Vt(e,o):new Date(NaN);if(s=Lt.WwwD.exec(t),s){o=parseInt(s[1],10)-1;const t=parseInt(s[2],10)-1;return Qt(o,t)?Vt(e,o,t):new Date(NaN)}return null}(s,o);if(null===r||isNaN(r.getTime()))return new Date(NaN);if(r){const t=r.getTime();let i,o=0;if(n.time&&(o=function(t){let e,i,n=Lt.HH.exec(t);if(n)return e=parseFloat(n[1].replace(",",".")),Xt(e)?e%24*jt:NaN;if(n=Lt.HHMM.exec(t),n)return e=parseInt(n[1],10),i=parseFloat(n[2].replace(",",".")),Xt(e,i)?e%24*jt+i*Rt:NaN;if(n=Lt.HHMMSS.exec(t),n){e=parseInt(n[1],10),i=parseInt(n[2],10);const t=parseFloat(n[3].replace(",","."));return Xt(e,i,t)?e%24*jt+i*Rt+1e3*t:NaN}return null}(n.time),null===o||isNaN(o)))return new Date(NaN);if(n.timeZone||e.timeZone){if(i=Yt(n.timeZone||e.timeZone,new Date(t+o)),isNaN(i))return new Date(NaN)}else i=zt(new Date(t+o)),i=zt(new Date(t+o+i));return new Date(t+o+i)}return new Date(NaN)}function Vt(t,e,i){e=e||0,i=i||0;const n=new Date(0);n.setUTCFullYear(t,0,4);const o=7*e+i+1-(n.getUTCDay()||7);return n.setUTCDate(n.getUTCDate()+o),n}const qt=[31,28,31,30,31,30,31,31,30,31,30,31],Jt=[31,29,31,30,31,30,31,31,30,31,30,31];function Kt(t){return t%400==0||t%4==0&&t%100!=0}function Gt(t,e,i){if(e<0||e>11)return!1;if(null!=i){if(i<1)return!1;const n=Kt(t);if(n&&i>Jt[e])return!1;if(!n&&i>qt[e])return!1}return!0}function Qt(t,e){return!(t<0||t>52)&&(null==e||!(e<0||e>6))}function Xt(t,e,i){return!(t<0||t>=25)&&((null==e||!(e<0||e>=60))&&(null==i||!(i<0||i>=60)))}
46
46
  /**
47
47
  * @license
48
48
  * Copyright 2017 Google LLC
@@ -59,7 +59,7 @@ const te=2;class ee{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i)
59
59
  * Copyright 2021 Google LLC
60
60
  * SPDX-License-Identifier: BSD-3-Clause
61
61
  */
62
- function ae(t,e,i){return t?e():null==i?void 0:i()}var le=Object.defineProperty,ce=Object.getOwnPropertyDescriptor,ue=(t,e,i,n)=>{for(var o,s=n>1?void 0:n?ce(e,i):e,r=t.length-1;r>=0;r--)(o=t[r])&&(s=(n?o(e,i,s):o(s))||s);return n&&s&&le(e,i,s),s};const he=async(t,e)=>{try{const i=await fetch(t,e);if(!i.ok)throw new Error(await i.text());return await i.json()}catch(i){throw console.error(i),new Error("Failed to complete fetch request.")}},de=t=>console.error(`[ShipFare] ${t}`),pe="shipfare-shipping-cutoff-store",fe={sunday:0,monday:1,tuesday:2,wednesday:3,thursday:4,friday:5,saturday:6};var ge;return t.ShipFareShippingCutoffWidget=class extends nt{constructor(){var t,e,i;super(...arguments),this._isShippingWindow=!1,this._countdownText="",this._isPopupVisible=!1,this._apiEndpoint="/apps/shipfare",this._storeDomain=(null==(t=null==window?void 0:window.Shopify)?void 0:t.shop)??(null==(i=null==(e=null==window?void 0:window.Shopify)?void 0:e.Checkout)?void 0:i.apiHost),this._cutOffTime="",this._hasFinishedSetup=!1,this._shouldShowWidget=!0,this._fetch={get:t=>he(t),post:(t,e)=>he(t,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})}}_togglePopup(){this._isPopupVisible=!this._isPopupVisible}async _fetchShipFareData(){var t,e,i,n;const o=(null==(t=window.Shopify)?void 0:t.shop)??(null==(i=null==(e=window.Shopify)?void 0:e.Checkout)?void 0:i.apiHost);if(!o)throw new Error("No shop found in Shopify object.");try{const t=sessionStorage.getItem(pe);if(t)return JSON.parse(t);const e=new URL(window.location.href);e.pathname=this._apiEndpoint;const i={store:o,themeApp:"SHIPPING_CUTOFF"},s=await this._fetch.post(e.toString(),i);if(!s)throw new Error("Missing response for store query.");if(!(null==(n=s.data)?void 0:n.store))throw new Error("Missing store from response.");return sessionStorage.setItem(pe,JSON.stringify(s.data.store)),s.data.store}catch(s){throw console.error(s),new Error(`Could not find a store for ${this._storeDomain}`)}}async connectedCallback(){super.connectedCallback(),this.updateShippingStatus(),this._timerInterval=window.setInterval((()=>this.updateShippingStatus()),1e3)}async disconnectedCallback(){super.disconnectedCallback(),this._timerInterval&&clearInterval(this._timerInterval)}updateShippingStatus(){if(!this._store)return;const t=this._store.timeZone??Intl.DateTimeFormat().resolvedOptions().timeZone,e=function(t,e,i){const n=Yt(e,t=Bt(t,i),!0),o=new Date(t.getTime()-n),s=new Date(0);return s.setFullYear(o.getUTCFullYear(),o.getUTCMonth(),o.getUTCDate()),s.setHours(o.getUTCHours(),o.getUTCMinutes(),o.getUTCSeconds(),o.getUTCMilliseconds()),s}(new Date,t),i=e.getDay(),n=!this._store.disableDays.map((t=>fe[t.trim().toLowerCase()])).filter((t=>void 0!==t)).includes(i),o=this._store.cutOffMap[i];if(this._cutOffTime=o.cutOff,""===this._cutOffTime||!this._cutOffTime.includes(":"))return void(this._isShippingWindow=!1);const[s,r]=o.cutOff.split(":").map(Number),a=new Date(e);a.setHours(s,r,0,0);const l=this._store.startAt??3,c=new Date(a);if(c.setHours(a.getHours()-l),n&&e>=c&&e<a){this._isShippingWindow=!0;const t=Dt({start:e,end:a}),i=`${t.hours||0}`.padStart(2,"0"),n=`${t.minutes||0}`.padStart(2,"0"),o=`${t.seconds||0}`.padStart(2,"0");this._countdownText=`${i}:${n}:${o}`}else this._isShippingWindow=!1}widgetTemplate(){var t,e;const i=this._isShippingWindow?this._countdownText:this._store.cutoffTimeOutMessage;let n="";if(this._cutOffTime&&this._cutOffTime.includes(":")){const[t,e]=this._cutOffTime.split(":");n=Number(t)>12?`${Number(t)-12}:${e} PM`:12===Number(t)?`${t}:${e} PM`:`${t}:${e} AM`}const o=this._isShippingWindow?this._store.cutoffDescription.replace("{{cutOffTime}}",n):this._store.cutoffTimeOutDescription,s=(null==(t=this._store)?void 0:t.styling)??{},r=`--shipping-cutoff-primary-bg-color:${s.primaryBackgroundColor||"#d1d5db"};--shipping-cutoff-secondary-bg-color:${s.secondaryBackgroundColor||"#ffffff"};--shipping-cutoff-primary-text-color:${s.primaryTextColor||"#000"};--shipping-cutoff-secondary-text-color:${s.secondaryTextColor||"#000"};`;return Y`
62
+ function ae(t,e,i){return t?e():null==i?void 0:i()}var le=Object.defineProperty,ue=Object.getOwnPropertyDescriptor,ce=(t,e,i,n)=>{for(var o,s=n>1?void 0:n?ue(e,i):e,r=t.length-1;r>=0;r--)(o=t[r])&&(s=(n?o(e,i,s):o(s))||s);return n&&s&&le(e,i,s),s};const he=async(t,e)=>{try{const i=await fetch(t,e);if(!i.ok)throw new Error(await i.text());return await i.json()}catch(i){throw console.error(i),new Error("Failed to complete fetch request.")}},de=t=>console.error(`[ShipFare] ${t}`),pe="shipfare-shipping-cutoff-store",fe={sunday:0,monday:1,tuesday:2,wednesday:3,thursday:4,friday:5,saturday:6};var ge;return t.ShipFareShippingCutoffWidget=class extends nt{constructor(){var t,e,i;super(...arguments),this._isShippingWindow=!1,this._countdownText="",this._isPopupVisible=!1,this._apiEndpoint="/apps/shipfare",this._storeDomain=(null==(t=null==window?void 0:window.Shopify)?void 0:t.shop)??(null==(i=null==(e=null==window?void 0:window.Shopify)?void 0:e.Checkout)?void 0:i.apiHost),this._cutOffTime="",this._hasFinishedSetup=!1,this._shouldShowWidget=!0,this._fetch={get:t=>he(t),post:(t,e)=>he(t,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})}}_togglePopup(){this._isPopupVisible=!this._isPopupVisible}async _fetchShipFareData(){var t,e,i,n;const o=(null==(t=window.Shopify)?void 0:t.shop)??(null==(i=null==(e=window.Shopify)?void 0:e.Checkout)?void 0:i.apiHost);if(!o)throw new Error("No shop found in Shopify object.");try{const t=sessionStorage.getItem(pe);if(t)return JSON.parse(t);const e=new URL(window.location.href);e.pathname=this._apiEndpoint;const i={store:o,themeApp:"SHIPPING_CUTOFF"},s=await this._fetch.post(e.toString(),i);if(!s)throw new Error("Missing response for store query.");if(!(null==(n=s.data)?void 0:n.store))throw new Error("Missing store from response.");return sessionStorage.setItem(pe,JSON.stringify(s.data.store)),s.data.store}catch(s){throw console.error(s),new Error(`Could not find a store for ${this._storeDomain}`)}}async connectedCallback(){super.connectedCallback(),this.updateShippingStatus(),this._timerInterval=window.setInterval((()=>this.updateShippingStatus()),1e3)}async disconnectedCallback(){super.disconnectedCallback(),this._timerInterval&&clearInterval(this._timerInterval)}updateShippingStatus(){if(!this._store)return;const t=this._store.timeZone??Intl.DateTimeFormat().resolvedOptions().timeZone,e=function(t,e,i){const n=Yt(e,t=Bt(t,i),!0),o=new Date(t.getTime()-n),s=new Date(0);return s.setFullYear(o.getUTCFullYear(),o.getUTCMonth(),o.getUTCDate()),s.setHours(o.getUTCHours(),o.getUTCMinutes(),o.getUTCSeconds(),o.getUTCMilliseconds()),s}(new Date,t),i=e.getDay(),n=!this._store.disableDays.map((t=>fe[t.trim().toLowerCase()])).filter((t=>void 0!==t)).includes(i),o=this._store.cutOffMap[i];if(this._cutOffTime=o.cutOff,""===this._cutOffTime||!this._cutOffTime.includes(":"))return void(this._isShippingWindow=!1);const[s,r]=o.cutOff.split(":").map(Number),a=new Date(e);a.setHours(s,r,0,0);const l=this._store.startAt??3,u=new Date(a);if(u.setHours(a.getHours()-l),n&&e>=u&&e<a){this._isShippingWindow=!0;const t=Dt({start:e,end:a}),i=`${t.hours||0}`.padStart(2,"0"),n=`${t.minutes||0}`.padStart(2,"0"),o=`${t.seconds||0}`.padStart(2,"0");this._countdownText=`${i}:${n}:${o}`}else this._isShippingWindow=!1}widgetTemplate(){var t,e;const i=this._isShippingWindow?this._countdownText:this._store.cutoffTimeOutMessage;let n="";if(this._cutOffTime&&this._cutOffTime.includes(":")){const[t,e]=this._cutOffTime.split(":");n=Number(t)>12?`${Number(t)-12}:${e} PM`:12===Number(t)?`${t}:${e} PM`:`${t}:${e} AM`}const o=this._isShippingWindow?this._store.cutoffDescription.replace("{{cutOffTime}}",n):this._store.cutoffTimeOutDescription,s=(null==(t=this._store)?void 0:t.styling)??{},r=s.primaryBackgroundColor||"#d1d5db",a=s.secondaryBackgroundColor||"#ffffff",l=s.primaryTextColor||"#000",u=s.secondaryTextColor||"#000";return Y`
63
63
  <style>
64
64
 
65
65
  .widget-body {
@@ -70,6 +70,7 @@ function ae(t,e,i){return t?e():null==i?void 0:i()}var le=Object.defineProperty,
70
70
  border: 1px solid var(--shipping-cutoff-primary-bg-color, #d1d5db);
71
71
  border-radius: 8px;
72
72
  overflow: hidden;
73
+ cursor: pointer;
73
74
  }
74
75
 
75
76
  .top-section, .bottom-section {
@@ -131,7 +132,7 @@ function ae(t,e,i){return t?e():null==i?void 0:i()}var le=Object.defineProperty,
131
132
  width: 90%;
132
133
  position: relative;
133
134
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
134
- color: var(--shipping-cutoff-primary-text-color, #000);
135
+ color: #000;
135
136
  font-size: 14px;
136
137
  }
137
138
 
@@ -169,20 +170,20 @@ function ae(t,e,i){return t?e():null==i?void 0:i()}var le=Object.defineProperty,
169
170
  }
170
171
  }
171
172
  </style>
172
- <div class="widget-body" style=${r}>
173
+ <div class="widget-body" style=${`--shipping-cutoff-primary-bg-color:${r};--shipping-cutoff-secondary-bg-color:${a};--shipping-cutoff-primary-text-color:${l};--shipping-cutoff-secondary-text-color:${u};`} @click=${this._togglePopup} >
173
174
  <div class="top-section ${this._isShippingWindow?"is-timer":""}">
174
175
  ${i}
175
176
  </div>
176
177
  <div class="bottom-section">
177
178
  <span>${o}</span>
178
- <svg id="info-icon" @click=${this._togglePopup} viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg">
179
+ <svg id="info-icon" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg">
179
180
  <path d="M10 2a8 8 0 100 16 8 8 0 000-16zm0 14a6 6 0 110-12 6 6 0 010 12zm-1-5a1 1 0 112 0v3a1 1 0 11-2 0v-3zm1-4a1 1 0 010-2 1 1 0 010 2z"/>
180
181
  </svg>
181
182
  </div>
182
183
  </div>
183
184
 
184
185
  ${this._isPopupVisible?Y`
185
- <div class="popup-overlay" style=${r} @click=${this._togglePopup}>
186
+ <div class="popup-overlay" @click=${this._togglePopup}>
186
187
  <div class="popup-content" @click=${t=>t.stopPropagation()}>
187
188
  <button class="close-button" @click=${this._togglePopup}>&times;</button>
188
189
  <div style="margin-top: 20px">${ne(null==(e=this._store)?void 0:e.cutoffPopupDescription)}</div>
@@ -191,4 +192,4 @@ function ae(t,e,i){return t?e():null==i?void 0:i()}var le=Object.defineProperty,
191
192
  `:""}
192
193
  `}render(){return re(this,(async()=>{var t;try{this._store=await this._fetchShipFareData()}catch(e){return de(e.message),this._hasFinishedSetup=!0,void(this._shouldShowWidget=!1)}(null==(t=this._store)?void 0:t.active)?(this._hasFinishedSetup=!0,this._shouldShowWidget=!0):(this._hasFinishedSetup=!0,this._shouldShowWidget=!1)}),[]),ae(this._hasFinishedSetup,(()=>ae(this._shouldShowWidget,(()=>this.widgetTemplate()),(()=>I))),(()=>Y`<p>
193
194
  <slot name="loading" default>Loading...</slot>
194
- </p>`))}createRenderRoot(){return this}},ue([at()],t.ShipFareShippingCutoffWidget.prototype,"_isShippingWindow",2),ue([at()],t.ShipFareShippingCutoffWidget.prototype,"_countdownText",2),ue([at()],t.ShipFareShippingCutoffWidget.prototype,"_isPopupVisible",2),ue([at()],t.ShipFareShippingCutoffWidget.prototype,"_storeDomain",2),ue([at()],t.ShipFareShippingCutoffWidget.prototype,"_store",2),ue([at()],t.ShipFareShippingCutoffWidget.prototype,"_cutOffTime",2),ue([at()],t.ShipFareShippingCutoffWidget.prototype,"_hasFinishedSetup",2),ue([at()],t.ShipFareShippingCutoffWidget.prototype,"_shouldShowWidget",2),t.ShipFareShippingCutoffWidget=ue([(ge="shipfare-shipping-cutoff",t=>{return"function"==typeof t?(e=ge,i=t,customElements.define(e,i),i):((t,e)=>{const{kind:i,elements:n}=e;return{kind:i,elements:n,finisher(e){customElements.define(t,e)}}})(ge,t);var e,i})],t.ShipFareShippingCutoffWidget),Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t}({});
195
+ </p>`))}createRenderRoot(){return this}},ce([at()],t.ShipFareShippingCutoffWidget.prototype,"_isShippingWindow",2),ce([at()],t.ShipFareShippingCutoffWidget.prototype,"_countdownText",2),ce([at()],t.ShipFareShippingCutoffWidget.prototype,"_isPopupVisible",2),ce([at()],t.ShipFareShippingCutoffWidget.prototype,"_storeDomain",2),ce([at()],t.ShipFareShippingCutoffWidget.prototype,"_store",2),ce([at()],t.ShipFareShippingCutoffWidget.prototype,"_cutOffTime",2),ce([at()],t.ShipFareShippingCutoffWidget.prototype,"_hasFinishedSetup",2),ce([at()],t.ShipFareShippingCutoffWidget.prototype,"_shouldShowWidget",2),t.ShipFareShippingCutoffWidget=ce([(ge="shipfare-shipping-cutoff",t=>{return"function"==typeof t?(e=ge,i=t,customElements.define(e,i),i):((t,e)=>{const{kind:i,elements:n}=e;return{kind:i,elements:n,finisher(e){customElements.define(t,e)}}})(ge,t);var e,i})],t.ShipFareShippingCutoffWidget),Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t}({});
@@ -59,7 +59,7 @@ const te=2;class ee{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i)
59
59
  * Copyright 2021 Google LLC
60
60
  * SPDX-License-Identifier: BSD-3-Clause
61
61
  */
62
- function ae(t,e,i){return t?e():null==i?void 0:i()}var le=Object.defineProperty,ue=Object.getOwnPropertyDescriptor,ce=(t,e,i,n)=>{for(var o,s=n>1?void 0:n?ue(e,i):e,r=t.length-1;r>=0;r--)(o=t[r])&&(s=(n?o(e,i,s):o(s))||s);return n&&s&&le(e,i,s),s};const he=async(t,e)=>{try{const i=await fetch(t,e);if(!i.ok)throw new Error(await i.text());return await i.json()}catch(i){throw console.error(i),new Error("Failed to complete fetch request.")}},de=t=>console.error(`[ShipFare] ${t}`),pe="shipfare-shipping-cutoff-store",fe={sunday:0,monday:1,tuesday:2,wednesday:3,thursday:4,friday:5,saturday:6};var ge;t.ShipFareShippingCutoffWidget=class extends nt{constructor(){var t,e,i;super(...arguments),this._isShippingWindow=!1,this._countdownText="",this._isPopupVisible=!1,this._apiEndpoint="/apps/shipfare",this._storeDomain=(null==(t=null==window?void 0:window.Shopify)?void 0:t.shop)??(null==(i=null==(e=null==window?void 0:window.Shopify)?void 0:e.Checkout)?void 0:i.apiHost),this._cutOffTime="",this._hasFinishedSetup=!1,this._shouldShowWidget=!0,this._fetch={get:t=>he(t),post:(t,e)=>he(t,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})}}_togglePopup(){this._isPopupVisible=!this._isPopupVisible}async _fetchShipFareData(){var t,e,i,n;const o=(null==(t=window.Shopify)?void 0:t.shop)??(null==(i=null==(e=window.Shopify)?void 0:e.Checkout)?void 0:i.apiHost);if(!o)throw new Error("No shop found in Shopify object.");try{const t=sessionStorage.getItem(pe);if(t)return JSON.parse(t);const e=new URL(window.location.href);e.pathname=this._apiEndpoint;const i={store:o,themeApp:"SHIPPING_CUTOFF"},s=await this._fetch.post(e.toString(),i);if(!s)throw new Error("Missing response for store query.");if(!(null==(n=s.data)?void 0:n.store))throw new Error("Missing store from response.");return sessionStorage.setItem(pe,JSON.stringify(s.data.store)),s.data.store}catch(s){throw console.error(s),new Error(`Could not find a store for ${this._storeDomain}`)}}async connectedCallback(){super.connectedCallback(),this.updateShippingStatus(),this._timerInterval=window.setInterval((()=>this.updateShippingStatus()),1e3)}async disconnectedCallback(){super.disconnectedCallback(),this._timerInterval&&clearInterval(this._timerInterval)}updateShippingStatus(){if(!this._store)return;const t=this._store.timeZone??Intl.DateTimeFormat().resolvedOptions().timeZone,e=function(t,e,i){const n=Yt(e,t=Bt(t,i),!0),o=new Date(t.getTime()-n),s=new Date(0);return s.setFullYear(o.getUTCFullYear(),o.getUTCMonth(),o.getUTCDate()),s.setHours(o.getUTCHours(),o.getUTCMinutes(),o.getUTCSeconds(),o.getUTCMilliseconds()),s}(new Date,t),i=e.getDay(),n=!this._store.disableDays.map((t=>fe[t.trim().toLowerCase()])).filter((t=>void 0!==t)).includes(i),o=this._store.cutOffMap[i];if(this._cutOffTime=o.cutOff,""===this._cutOffTime||!this._cutOffTime.includes(":"))return void(this._isShippingWindow=!1);const[s,r]=o.cutOff.split(":").map(Number),a=new Date(e);a.setHours(s,r,0,0);const l=this._store.startAt??3,u=new Date(a);if(u.setHours(a.getHours()-l),n&&e>=u&&e<a){this._isShippingWindow=!0;const t=Dt({start:e,end:a}),i=`${t.hours||0}`.padStart(2,"0"),n=`${t.minutes||0}`.padStart(2,"0"),o=`${t.seconds||0}`.padStart(2,"0");this._countdownText=`${i}:${n}:${o}`}else this._isShippingWindow=!1}widgetTemplate(){var t,e;const i=this._isShippingWindow?this._countdownText:this._store.cutoffTimeOutMessage;let n="";if(this._cutOffTime&&this._cutOffTime.includes(":")){const[t,e]=this._cutOffTime.split(":");n=Number(t)>12?`${Number(t)-12}:${e} PM`:12===Number(t)?`${t}:${e} PM`:`${t}:${e} AM`}const o=this._isShippingWindow?this._store.cutoffDescription.replace("{{cutOffTime}}",n):this._store.cutoffTimeOutDescription,s=(null==(t=this._store)?void 0:t.styling)??{},r=`--shipping-cutoff-primary-bg-color:${s.primaryBackgroundColor||"#d1d5db"};--shipping-cutoff-secondary-bg-color:${s.secondaryBackgroundColor||"#ffffff"};--shipping-cutoff-primary-text-color:${s.primaryTextColor||"#000"};--shipping-cutoff-secondary-text-color:${s.secondaryTextColor||"#000"};`;return Y`
62
+ function ae(t,e,i){return t?e():null==i?void 0:i()}var le=Object.defineProperty,ue=Object.getOwnPropertyDescriptor,ce=(t,e,i,n)=>{for(var o,s=n>1?void 0:n?ue(e,i):e,r=t.length-1;r>=0;r--)(o=t[r])&&(s=(n?o(e,i,s):o(s))||s);return n&&s&&le(e,i,s),s};const he=async(t,e)=>{try{const i=await fetch(t,e);if(!i.ok)throw new Error(await i.text());return await i.json()}catch(i){throw console.error(i),new Error("Failed to complete fetch request.")}},de=t=>console.error(`[ShipFare] ${t}`),pe="shipfare-shipping-cutoff-store",fe={sunday:0,monday:1,tuesday:2,wednesday:3,thursday:4,friday:5,saturday:6};var ge;t.ShipFareShippingCutoffWidget=class extends nt{constructor(){var t,e,i;super(...arguments),this._isShippingWindow=!1,this._countdownText="",this._isPopupVisible=!1,this._apiEndpoint="/apps/shipfare",this._storeDomain=(null==(t=null==window?void 0:window.Shopify)?void 0:t.shop)??(null==(i=null==(e=null==window?void 0:window.Shopify)?void 0:e.Checkout)?void 0:i.apiHost),this._cutOffTime="",this._hasFinishedSetup=!1,this._shouldShowWidget=!0,this._fetch={get:t=>he(t),post:(t,e)=>he(t,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})}}_togglePopup(){this._isPopupVisible=!this._isPopupVisible}async _fetchShipFareData(){var t,e,i,n;const o=(null==(t=window.Shopify)?void 0:t.shop)??(null==(i=null==(e=window.Shopify)?void 0:e.Checkout)?void 0:i.apiHost);if(!o)throw new Error("No shop found in Shopify object.");try{const t=sessionStorage.getItem(pe);if(t)return JSON.parse(t);const e=new URL(window.location.href);e.pathname=this._apiEndpoint;const i={store:o,themeApp:"SHIPPING_CUTOFF"},s=await this._fetch.post(e.toString(),i);if(!s)throw new Error("Missing response for store query.");if(!(null==(n=s.data)?void 0:n.store))throw new Error("Missing store from response.");return sessionStorage.setItem(pe,JSON.stringify(s.data.store)),s.data.store}catch(s){throw console.error(s),new Error(`Could not find a store for ${this._storeDomain}`)}}async connectedCallback(){super.connectedCallback(),this.updateShippingStatus(),this._timerInterval=window.setInterval((()=>this.updateShippingStatus()),1e3)}async disconnectedCallback(){super.disconnectedCallback(),this._timerInterval&&clearInterval(this._timerInterval)}updateShippingStatus(){if(!this._store)return;const t=this._store.timeZone??Intl.DateTimeFormat().resolvedOptions().timeZone,e=function(t,e,i){const n=Yt(e,t=Bt(t,i),!0),o=new Date(t.getTime()-n),s=new Date(0);return s.setFullYear(o.getUTCFullYear(),o.getUTCMonth(),o.getUTCDate()),s.setHours(o.getUTCHours(),o.getUTCMinutes(),o.getUTCSeconds(),o.getUTCMilliseconds()),s}(new Date,t),i=e.getDay(),n=!this._store.disableDays.map((t=>fe[t.trim().toLowerCase()])).filter((t=>void 0!==t)).includes(i),o=this._store.cutOffMap[i];if(this._cutOffTime=o.cutOff,""===this._cutOffTime||!this._cutOffTime.includes(":"))return void(this._isShippingWindow=!1);const[s,r]=o.cutOff.split(":").map(Number),a=new Date(e);a.setHours(s,r,0,0);const l=this._store.startAt??3,u=new Date(a);if(u.setHours(a.getHours()-l),n&&e>=u&&e<a){this._isShippingWindow=!0;const t=Dt({start:e,end:a}),i=`${t.hours||0}`.padStart(2,"0"),n=`${t.minutes||0}`.padStart(2,"0"),o=`${t.seconds||0}`.padStart(2,"0");this._countdownText=`${i}:${n}:${o}`}else this._isShippingWindow=!1}widgetTemplate(){var t,e;const i=this._isShippingWindow?this._countdownText:this._store.cutoffTimeOutMessage;let n="";if(this._cutOffTime&&this._cutOffTime.includes(":")){const[t,e]=this._cutOffTime.split(":");n=Number(t)>12?`${Number(t)-12}:${e} PM`:12===Number(t)?`${t}:${e} PM`:`${t}:${e} AM`}const o=this._isShippingWindow?this._store.cutoffDescription.replace("{{cutOffTime}}",n):this._store.cutoffTimeOutDescription,s=(null==(t=this._store)?void 0:t.styling)??{},r=s.primaryBackgroundColor||"#d1d5db",a=s.secondaryBackgroundColor||"#ffffff",l=s.primaryTextColor||"#000",u=s.secondaryTextColor||"#000";return Y`
63
63
  <style>
64
64
 
65
65
  .widget-body {
@@ -70,6 +70,7 @@ function ae(t,e,i){return t?e():null==i?void 0:i()}var le=Object.defineProperty,
70
70
  border: 1px solid var(--shipping-cutoff-primary-bg-color, #d1d5db);
71
71
  border-radius: 8px;
72
72
  overflow: hidden;
73
+ cursor: pointer;
73
74
  }
74
75
 
75
76
  .top-section, .bottom-section {
@@ -131,7 +132,7 @@ function ae(t,e,i){return t?e():null==i?void 0:i()}var le=Object.defineProperty,
131
132
  width: 90%;
132
133
  position: relative;
133
134
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
134
- color: var(--shipping-cutoff-primary-text-color, #000);
135
+ color: #000;
135
136
  font-size: 14px;
136
137
  }
137
138
 
@@ -169,20 +170,20 @@ function ae(t,e,i){return t?e():null==i?void 0:i()}var le=Object.defineProperty,
169
170
  }
170
171
  }
171
172
  </style>
172
- <div class="widget-body" style=${r}>
173
+ <div class="widget-body" style=${`--shipping-cutoff-primary-bg-color:${r};--shipping-cutoff-secondary-bg-color:${a};--shipping-cutoff-primary-text-color:${l};--shipping-cutoff-secondary-text-color:${u};`} @click=${this._togglePopup} >
173
174
  <div class="top-section ${this._isShippingWindow?"is-timer":""}">
174
175
  ${i}
175
176
  </div>
176
177
  <div class="bottom-section">
177
178
  <span>${o}</span>
178
- <svg id="info-icon" @click=${this._togglePopup} viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg">
179
+ <svg id="info-icon" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg">
179
180
  <path d="M10 2a8 8 0 100 16 8 8 0 000-16zm0 14a6 6 0 110-12 6 6 0 010 12zm-1-5a1 1 0 112 0v3a1 1 0 11-2 0v-3zm1-4a1 1 0 010-2 1 1 0 010 2z"/>
180
181
  </svg>
181
182
  </div>
182
183
  </div>
183
184
 
184
185
  ${this._isPopupVisible?Y`
185
- <div class="popup-overlay" style=${r} @click=${this._togglePopup}>
186
+ <div class="popup-overlay" @click=${this._togglePopup}>
186
187
  <div class="popup-content" @click=${t=>t.stopPropagation()}>
187
188
  <button class="close-button" @click=${this._togglePopup}>&times;</button>
188
189
  <div style="margin-top: 20px">${ne(null==(e=this._store)?void 0:e.cutoffPopupDescription)}</div>
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "shipfare_shipping_cutoff",
3
3
  "private": false,
4
- "version": "0.1.13",
4
+ "version": "0.1.15",
5
5
  "type": "module",
6
6
  "main": "dist/shippingCutOffWidget.umd.js",
7
7
  "unpkg": "dist/shippingCutOffWidget.iife.js",