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,a;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,(a=this.user)===null||a===void 0?void 0:a.last_name),i("div",null)))}renderEmpty(){return i("slot",{name:"empty"},wp.i18n.__("User not found.","surecart"))}render(){return i("sc-dashboard-module",{key:"4c133f2802ce2021ae1242caa0c1770029d7ebc8",class:"customer-details"},i("span",{key:"b859fd54e44515e370bfcb0128f855cae28c5573",slot:"heading"},this.heading||wp.i18n.__("Account Details","surecart")," "),i("sc-button",{key:"ff569cbca6554e06b9f87dbe91a342f6b8f118aa",type:"link",href:l(window.location.href,{action:"edit",model:"user"}),slot:"end"},i("sc-icon",{key:"079f1aa35d80940718a9f726bb9e4b6df2f81bbb",name:"edit-3",slot:"prefix"}),wp.i18n.__("Update","surecart")),i("sc-card",{key:"98057f2e46db8249c8b42fe2c1cd1051d91404e8","no-padding":true},i("sc-stacked-list",{key:"cb7996b4e2ca3afb7b303f78a6b3a94162d9e5e4"},this.renderContent())))}};o.style=d;export{o as sc_wordpress_user};
//# sourceMappingURL=p-3fcb8429.entry.js.map