import{r as l,h as s,F as i}from"./p-b891c2f1.js";import{_ as t}from"./p-684c85b4.js";import"./p-aafd8ea4.js";import{a as o}from"./p-1c2e2695.js";import"./p-112455b1.js";const e=class{constructor(s){l(this,s)}renderContent(){var l,o,e,n,d,r,u,a;return this.user?s(i,null,!!(null===(l=null==this?void 0:this.user)||void 0===l?void 0:l.display_name)&&s("sc-stacked-list-row",{style:{"--columns":"3"},mobileSize:480},s("div",null,s("strong",null,t("Display Name","surecart"))),s("div",null,null===(o=this.user)||void 0===o?void 0:o.display_name),s("div",null)),!!(null===(e=null==this?void 0:this.user)||void 0===e?void 0:e.email)&&s("sc-stacked-list-row",{style:{"--columns":"3"},mobileSize:480},s("div",null,s("strong",null,t("Account Email","surecart"))),s("div",null,null===(n=this.user)||void 0===n?void 0:n.email),s("div",null)),!!(null===(d=null==this?void 0:this.user)||void 0===d?void 0:d.first_name)&&s("sc-stacked-list-row",{style:{"--columns":"3"},mobileSize:480},s("div",null,s("strong",null,t("First Name","surecart"))),s("div",null,null===(r=this.user)||void 0===r?void 0:r.first_name),s("div",null)),!!(null===(u=null==this?void 0:this.user)||void 0===u?void 0:u.last_name)&&s("sc-stacked-list-row",{style:{"--columns":"3"},mobileSize:480},s("div",null,s("strong",null,t("Last Name","surecart"))),s("div",null,null===(a=this.user)||void 0===a?void 0:a.last_name),s("div",null))):this.renderEmpty()}renderEmpty(){return s("slot",{name:"empty"},t("User not found.","surecart"))}render(){return s("sc-dashboard-module",{class:"customer-details"},s("span",{slot:"heading"},this.heading||t("Account Details","surecart")," "),s("sc-button",{type:"link",href:o(window.location.href,{action:"edit",model:"user"}),slot:"end"},s("sc-icon",{name:"edit-3",slot:"prefix"}),t("Update","surecart")),s("sc-card",{"no-padding":!0},s("sc-stacked-list",null,this.renderContent())))}};e.style=":host{display:block;position:relative}.customer-details{display:grid;gap:0.75em}";export{e as sc_wordpress_user}