import{r as registerInstance,h,g as getElement}from"./index-08b73e9e.js";import{c as create}from"./index-86b46652.js";import"./index-a0a71287.js";import"./_commonjsHelpers-9943807e.js";var styleCss=".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}";var IntergiroAuthorizationHistoryError=function(){function r(r){registerInstance(this,r)}r.prototype.componentWillLoad=function(){this.t=create(this.element)};r.prototype.render=function(){return"error"in this.history&&[h("smoothly-display",null,this.t("error")),h("smoothly-display",null,this.history.error.status+" "+this.history.error.type),this.history.error.header&&h("smoothly-display",null,this.history.error.header),this.history.error.body&&h("smoothly-display",null,this.history.error.body),this.history.error.error&&h("smoothly-display",null,this.history.error.error),h("details",null,h("summary",null,this.t("details")),Object.entries(this.history.error).map((function(r){return[h("content",null,h("smoothly-display",{type:"text",value:r[0]+": "}),h("section",null,typeof r[1]=="object"?Object.entries(r[1]).map((function(r){return h("smoothly-display",{type:"text",value:r[0]+": "+r[1]})})):h("smoothly-display",{type:"text",value:r[1].toString()})))]})))]};Object.defineProperty(r.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});return r}();IntergiroAuthorizationHistoryError.style=styleCss;export{IntergiroAuthorizationHistoryError as ig_authorization_history_error};