import{r as s,h as i,F as e}from"./p-9add63ef.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,r,u;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)),!!((r=this===null||this===void 0?void 0:this.user)===null||r===void 0?void 0:r.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,(u=this.user)===null||u===void 0?void 0:u.last_name),i("div",null)))}renderEmpty(){return i("slot",{name:"empty"},wp.i18n.__("User not found.","surecart"))}render(){return i("sc-dashboard-module",{key:"aea6f8e5db352af05091cba07679d6ffb8060260",class:"customer-details"},i("span",{key:"c0a0f61a728654fce708399c5e59529d7a15ed7d",slot:"heading"},this.heading||wp.i18n.__("Account Details","surecart")," "),i("sc-button",{key:"92f8524191f0412e70327ce98d30689fdc196956",type:"link",href:l(window.location.href,{action:"edit",model:"user"}),slot:"end"},i("sc-icon",{key:"0f62e51c584f62b2b0d067b73f4cdef33ee31219",name:"edit-3",slot:"prefix"}),wp.i18n.__("Update","surecart")),i("sc-card",{key:"63834ded40385085314b8965b844b3f8a894cd3e","no-padding":true},i("sc-stacked-list",{key:"076ceb2365fc070cef6af35626f741181f07ef82"},this.renderContent())))}};o.style=d;export{o as sc_wordpress_user};
//# sourceMappingURL=p-dc82276d.entry.js.map