/*! For license information please see 4045.ec4c143648ab2280.js.LICENSE.txt */
export const __webpack_ids__=["4045"];export const __webpack_modules__={90811:function(t,e,n){n.r(e),n.d(e,{MDNObservatoryRescanButton:()=>MDNObservatoryRescanButton});var i=n(14703);n(50272);var a=n(69535),r=n(29892);let MDNObservatoryRescanButton=class MDNObservatoryRescanButton extends(0,a.q)(i.oi){static styles=r.Z;static properties={from:{type:Object},duration:{type:Number},_remainingTime:{state:!0}};constructor(){super(),this.from=new Date,this.duration=60,this._remainingTime=0,this._interval=null}connectedCallback(){super.connectedCallback(),this._remainingTime=this._calculateRemainingTime(),this._interval=setInterval(()=>{this._remainingTime=this._calculateRemainingTime()},1e3)}disconnectedCallback(){super.disconnectedCallback(),this._interval&&(clearInterval(this._interval),this._interval=null)}_calculateRemainingTime(){return Math.max(0,this.from.getTime()+1e3*this.duration-Date.now())}_icon(t){return(0,i.dy)`<span
      class="progress"
      style="  display: inline-block; width: 0.9rem; height: 0.9rem; border-radius: 50%; background: conic-gradient(light-dark(var(--color-gray-40), var(--color-gray-60)) 0grad, ${t}%, rgba(0,0,0,0) ${t}% 100%)"
    ></span>`}render(){let t=this._remainingTime<=0,e=Math.floor(this._remainingTime/1e3)+1;return t?(0,i.dy)`<mdn-button>${this.l10n`Rescan`}</mdn-button>`:(0,i.dy)` <mdn-button disabled .icon=${this._icon(100*e/60)}
          >${this.l10n`Wait a minute to rescan`}</mdn-button
        >`}};customElements.define("mdn-observatory-rescan-button",MDNObservatoryRescanButton)},13566:function(t,e,n){n.d(e,{o:()=>a});var i=n(32529);let a=t=>t??i.Ld},29892:function(t,e,n){n.d(e,{Z:()=>d});var i=n(14703),a=n(8081),r=n.n(a),s=n(23645),o=n.n(s),c=n(54681),l=o()(r());l.i(c.Z),l.push([t.id,"",""]);let d=(0,i.iv)([l.toString()])}};
//# sourceMappingURL=4045.ec4c143648ab2280.js.map