FileMaster
Search
Toggle Dark Mode
Home
/
.
/
wp-content
/
plugins
/
surecart
/
dist
/
components
/
esm
Edit File: sc-wordpress-user.entry.js
import { r as registerInstance, h, F as Fragment } from './index-745b6bec.js'; import { a as addQueryArgs } from './add-query-args-0e2a8393.js'; const scWordpressUserCss = ":host{display:block;position:relative}.customer-details{display:grid;gap:0.75em}"; const ScWordpressUserStyle0 = scWordpressUserCss; const ScWordPressUser = class { constructor(hostRef) { registerInstance(this, hostRef); this.heading = undefined; this.user = undefined; } renderContent() { var _a, _b, _c, _d, _e, _f, _g, _h; if (!this.user) { return this.renderEmpty(); } return (h(Fragment, null, !!((_a = this === null || this === void 0 ? void 0 : this.user) === null || _a === void 0 ? void 0 : _a.display_name) && (h("sc-stacked-list-row", { style: { '--columns': '3' }, mobileSize: 480 }, h("div", null, h("strong", null, wp.i18n.__('Display Name', 'surecart'))), h("div", null, (_b = this.user) === null || _b === void 0 ? void 0 : _b.display_name), h("div", null))), !!((_c = this === null || this === void 0 ? void 0 : this.user) === null || _c === void 0 ? void 0 : _c.email) && (h("sc-stacked-list-row", { style: { '--columns': '3' }, mobileSize: 480 }, h("div", null, h("strong", null, wp.i18n.__('Account Email', 'surecart'))), h("div", null, (_d = this.user) === null || _d === void 0 ? void 0 : _d.email), h("div", null))), !!((_e = this === null || this === void 0 ? void 0 : this.user) === null || _e === void 0 ? void 0 : _e.first_name) && (h("sc-stacked-list-row", { style: { '--columns': '3' }, mobileSize: 480 }, h("div", null, h("strong", null, wp.i18n.__('First Name', 'surecart'))), h("div", null, (_f = this.user) === null || _f === void 0 ? void 0 : _f.first_name), h("div", null))), !!((_g = this === null || this === void 0 ? void 0 : this.user) === null || _g === void 0 ? void 0 : _g.last_name) && (h("sc-stacked-list-row", { style: { '--columns': '3' }, mobileSize: 480 }, h("div", null, h("strong", null, wp.i18n.__('Last Name', 'surecart'))), h("div", null, (_h = this.user) === null || _h === void 0 ? void 0 : _h.last_name), h("div", null))))); } renderEmpty() { return h("slot", { name: "empty" }, wp.i18n.__('User not found.', 'surecart')); } render() { return (h("sc-dashboard-module", { key: 'b6c4379470ae52c4480a608670d43ee30ad5d97f', class: "customer-details" }, h("span", { key: 'ebeefa6dc968529dabd1be1a34ef300ceefba735', slot: "heading" }, this.heading || wp.i18n.__('Account Details', 'surecart'), " "), h("sc-button", { key: '005905e56d18ff178e5b638c16af6bce8f2d0951', type: "link", href: addQueryArgs(window.location.href, { action: 'edit', model: 'user', }), slot: "end" }, h("sc-icon", { key: 'f75fdf8f61c08648c29597b96a2f0a9ef1c0e38c', name: "edit-3", slot: "prefix" }), wp.i18n.__('Update', 'surecart')), h("sc-card", { key: 'd70ccb9d63fccc976913ee9cd3eb5d23286e9b31', "no-padding": true }, h("sc-stacked-list", { key: '83228a6d738a6d46fdbeac88d9f2dc6c1adda99d' }, this.renderContent())))); } }; ScWordPressUser.style = ScWordpressUserStyle0; export { ScWordPressUser as sc_wordpress_user }; //# sourceMappingURL=sc-wordpress-user.entry.js.map
Save
Back