export const __webpack_ids__=["6681"];export const __webpack_modules__={55072:function(e,t,s){s.r(t),s.d(t,{MDNObservatoryHeaderLink:()=>MDNObservatoryHeaderLink});var r=s(35470),i=s(14703),a=s(28110),n=s(64643);let MDNObservatoryHeaderLink=class MDNObservatoryHeaderLink extends i.oi{static styles=n.Z;static properties={header:{type:String},_headerExists:{type:Boolean,state:!0},_isChecking:{type:Boolean,state:!0},_hasChecked:{type:Boolean,state:!0}};constructor(){super(),this.header="",this._headerExists=!1,this._isChecking=!1,this._hasChecked=!1}_checkHeaderTask=new r.iQ(this,{task:async([e])=>{if(!e)return{exists:!1};let t=(0,a.M2)(e),s=`/en-US/docs/Web/HTTP/Reference/Headers/${encodeURIComponent(t)}`;try{return{exists:(await fetch(`${s}/index.json`,{method:"HEAD"})).ok,displayHeaderName:t,headerPath:s}}catch{return{exists:!1,displayHeaderName:t,headerPath:s}}},args:()=>[this.header],onComplete:e=>{this._headerExists=e.exists,this._isChecking=!1,this._hasChecked=!0},onError:()=>{this._headerExists=!1,this._isChecking=!1,this._hasChecked=!0}});connectedCallback(){super.connectedCallback(),this.header&&!this._hasChecked&&(this._isChecking=!0,this._checkHeaderTask.run())}render(){let e=(0,a.M2)(this.header||"");if(this._isChecking||!this._hasChecked)return(0,i.dy)`${e}`;if(this._headerExists){let t=`/en-US/docs/Web/HTTP/Reference/Headers/${encodeURIComponent(e)}`;return(0,i.dy)`
        <a href=${t} target="_blank" rel="noreferrer">
          ${e}
        </a>
      `}return(0,i.dy)`${e}`}};customElements.define("mdn-observatory-header-link",MDNObservatoryHeaderLink)},64643:function(e,t,s){s.d(t,{Z:()=>o});var r=s(14703),i=s(8081),a=s.n(i),n=s(23645),h=s.n(n),d=s(54681),c=h()(a());c.i(d.Z),c.push([e.id,"",""]);let o=(0,r.iv)([c.toString()])}};
//# sourceMappingURL=6681.51b917ef9762ead2.js.map