import{r as t,h as r,g as i}from"./p-890a2f7e.js";import{c as o}from"./p-1dbd17cc.js";import"./p-9f421a09.js";import"./p-112455b1.js";const s=class{constructor(r){t(this,r)}componentWillLoad(){this.t=o(this.element)}render(){return"error"in this.history&&[r("smoothly-display",null,this.t("error")),r("smoothly-display",null,this.history.error.status+" "+this.history.error.type),this.history.error.header&&r("smoothly-display",null,this.history.error.header),this.history.error.body&&r("smoothly-display",null,this.history.error.body),this.history.error.error&&r("smoothly-display",null,this.history.error.error),r("details",null,r("summary",null,this.t("details")),Object.entries(this.history.error).map((t=>[r("content",null,r("smoothly-display",{type:"text",value:t[0]+": "}),r("section",null,"object"==typeof t[1]?Object.entries(t[1]).map((t=>r("smoothly-display",{type:"text",value:t[0]+": "+t[1]}))):r("smoothly-display",{type:"text",value:t[1].toString()})))])))]}get element(){return i(this)}};s.style=".sc-ig-authorization-history-error-h{width:100%}.sc-ig-authorization-history-error-h>smoothly-display.sc-ig-authorization-history-error:first-of-type,.sc-ig-authorization-history-error-h>details.sc-ig-authorization-history-error>content.sc-ig-authorization-history-error>smoothly-display.sc-ig-authorization-history-error:first-of-type{font-weight:bold;text-transform:capitalize}.sc-ig-authorization-history-error-h>details.sc-ig-authorization-history-error>summary.sc-ig-authorization-history-error{cursor:pointer}.sc-ig-authorization-history-error-h>details.sc-ig-authorization-history-error>summary.sc-ig-authorization-history-error,.sc-ig-authorization-history-error-h>smoothly-display.sc-ig-authorization-history-error{text-transform:capitalize}.sc-ig-authorization-history-error-h>section.sc-ig-authorization-history-error>*.sc-ig-authorization-history-error:last-child{white-space:normal}.sc-ig-authorization-history-error-h>details.sc-ig-authorization-history-error>content.sc-ig-authorization-history-error{display:-ms-flexbox;display:flex}.sc-ig-authorization-history-error-h>details.sc-ig-authorization-history-error>content.sc-ig-authorization-history-error>section.sc-ig-authorization-history-error{margin-left:0.5em}";export{s as ig_authorization_history_error}