import{r as s,h as i,F as l}from"./p-e97fde0a.js";import{a as e}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,e,t,d,o,n,c,r;if(!this.user){return this.renderEmpty()}return i(l,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,(e=this.user)===null||e===void 0?void 0:e.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)),!!((c=this===null||this===void 0?void 0:this.user)===null||c===void 0?void 0:c.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:"9cf7d7aeee30a0be1d72ca2e20bdfd2b5285b370",class:"customer-details"},i("span",{key:"8d28975d9704a0470acaacce9bf38dc3dfa4895c",slot:"heading"},this.heading||wp.i18n.__("Account Details","surecart")," "),i("sc-button",{key:"cd983f32a7674015b7c96416da22352a554dcfa7",type:"link",href:e(window.location.href,{action:"edit",model:"user"}),slot:"end"},i("sc-icon",{key:"d956cb8d81189386622860075d2c5e326151a159",name:"edit-3",slot:"prefix"}),wp.i18n.__("Update","surecart")),i("sc-card",{key:"85215257135cbeb9f183ad0ee6601c6cd6f18918","no-padding":true},i("sc-stacked-list",{key:"6eb15920d0e416060c19003a17f0594c12cf0326"},this.renderContent())))}};o.style=d;export{o as sc_wordpress_user};
//# sourceMappingURL=p-437c5fb1.entry.js.map