import{r as s,h as i,F as e}from"./p-e97fde0a.js";import{a as l}from"./p-401e165e.js";const t=":host{display:block;position:relative}.customer-details{display:grid;gap:0.75em}";const d=t;const o=class{constructor(i){s(this,i);this.heading=undefined;this.user=undefined}renderContent(){var s,l,t,d,o,n,a,r;if(!this.user){return this.renderEmpty()}return i(e,null,!!((s=this===null||this===void 0?void 0:this.user)===null||s===void 0?void 0:s.display_name)&&i("sc-stacked-list-row",{style:{"--columns":"3"},mobileSize:480},i("div",null,i("strong",null,wp.i18n.__("Display Name","surecart"))),i("div",null,(l=this.user)===null||l===void 0?void 0:l.display_name),i("div",null)),!!((t=this===null||this===void 0?void 0:this.user)===null||t===void 0?void 0:t.email)&&i("sc-stacked-list-row",{style:{"--columns":"3"},mobileSize:480},i("div",null,i("strong",null,wp.i18n.__("Account Email","surecart"))),i("div",null,(d=this.user)===null||d===void 0?void 0:d.email),i("div",null)),!!((o=this===null||this===void 0?void 0:this.user)===null||o===void 0?void 0:o.first_name)&&i("sc-stacked-list-row",{style:{"--columns":"3"},mobileSize:480},i("div",null,i("strong",null,wp.i18n.__("First Name","surecart"))),i("div",null,(n=this.user)===null||n===void 0?void 0:n.first_name),i("div",null)),!!((a=this===null||this===void 0?void 0:this.user)===null||a===void 0?void 0:a.last_name)&&i("sc-stacked-list-row",{style:{"--columns":"3"},mobileSize:480},i("div",null,i("strong",null,wp.i18n.__("Last Name","surecart"))),i("div",null,(r=this.user)===null||r===void 0?void 0:r.last_name),i("div",null)))}renderEmpty(){return i("slot",{name:"empty"},wp.i18n.__("User not found.","surecart"))}render(){return i("sc-dashboard-module",{key:"ec578e6adced7d6aa7fab00432446513650ab22e",class:"customer-details"},i("span",{key:"e1bc637dc78a59ffabdff188c2aa178319572245",slot:"heading"},this.heading||wp.i18n.__("Account Details","surecart")," "),i("sc-button",{key:"16dead36c41f85fa33d47039ab27a0e68daad00e",type:"link",href:l(window.location.href,{action:"edit",model:"user"}),slot:"end"},i("sc-icon",{key:"6d3f5e03808b6ca5a97ed7c4f3e17e0d1c9b64ee",name:"edit-3",slot:"prefix"}),wp.i18n.__("Update","surecart")),i("sc-card",{key:"9117815ab876e897dd1d227f316f07765e2a5155","no-padding":true},i("sc-stacked-list",{key:"6e369740915663061d8027789f8a625484527050"},this.renderContent())))}};o.style=d;export{o as sc_wordpress_user};
//# sourceMappingURL=p-bf85dcae.entry.js.map