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