export const __webpack_ids__=["1916"];export const __webpack_modules__={27907:function(t,e,a){a.r(e),a.d(e,{MDNCompatTableLazy:()=>MDNCompatTableLazy});var o=a(35470),r=a(14703);a(50757);var i=a(69535),s=a(44148),n=a(8900);let MDNCompatTableLazy=class MDNCompatTableLazy extends(0,i.q)(r.oi){static properties={query:{},locale:{}};constructor(){super(),this.query="",this.locale=s.ZW}connectedCallback(){super.connectedCallback()}get _issueUrl(){let t=new URLSearchParams,e=s.gW.replaceAll("$DATE",new Date().toISOString()).replaceAll("$QUERY_ID",this.query).trim();return t.set("mdn-url",`https://developer.mozilla.org${globalThis.location.pathname}`),t.set("metadata",e),t.set("title",`${this.query} - Missing compatibility data`),t.set("template","data-problem.yml"),`https://github.com/mdn/browser-compat-data/issues/new?${t.toString()}`}get _issueLink(){let t=t=>{t.preventDefault(),window.open(this._issueUrl,"_blank","noopener,noreferrer")};return(0,r.dy)`<a
      class="bc-github-link external external-icon"
      href="#"
      @click=${t}
      target="_blank"
      rel="noopener noreferrer"
      title=${this.l10n("compat-link-report-missing-title")`Report missing compatibility data`}
      >${this.l10n("compat-link-report-missing")`Report this issue`}</a
    >`}_dataTask=new o.iQ(this,{args:()=>[this.query],task:async([t],{signal:e})=>{let a=await fetch(`${n.AJ}/bcd/api/v0/current/${t}.json`,{signal:e});if(!a.ok){if(console.error("Failed to fetch BCD data:",a),404===a.status)throw(0,r.dy)`No compatibility data found for <code>${t}</code>.
            (${this._issueLink})`;throw(0,r.dy)`Got HTTP ${a.status} when fetching browser
          compatibility data for <code>${t}</code>`}return a.json()}});render(){return this._dataTask.render({initial:()=>(0,r.dy)`<p>${this.l10n("compat-loading")`Loading…`}</p>`,pending:()=>(0,r.dy)`<p>${this.l10n("compat-loading")`Loading…`}</p>`,complete:t=>t?(0,r.dy)`<mdn-compat-table
                query=${this.query}
                locale=${this.locale}
                .data=${t.data}
                .browserInfo=${t.browsers}
              ></mdn-compat-table>`:(0,r.dy)`<p>No compatibility data found</p>`,error:t=>(0,r.dy)`<p>${t}</p>`})}};customElements.define("mdn-compat-table-lazy",MDNCompatTableLazy)}};
//# sourceMappingURL=1916.6be41c208ffb024b.js.map