{"version":3,"file":"wishlist-page.js","sources":["../../dev/js/wishlist-page.js"],"sourcesContent":["import { html, repeat } from 'https://cdn.jsdelivr.net/gh/lit/dist@2.7.4/all/lit-all.min.js';\nimport { WishlistElement } from 'https://cdn.jsdelivr.net/npm/@appmate/wishlist@4.29.2/wishlist-element.js';\nimport { ProductFormController } from 'https://cdn.jsdelivr.net/npm/@appmate/wishlist@4.29.2/controllers.js';\nimport 'https://cdn.jsdelivr.net/npm/@appmate/wishlist@4.29.2/components/button.js';\nimport 'https://cdn.jsdelivr.net/npm/@appmate/wishlist@4.29.2/components/option-select.js';\nimport 'https://cdn.jsdelivr.net/npm/@appmate/wishlist@4.29.2/components/option-swatches.js';\n\nclass WishlistPage extends WishlistElement {\n static get properties() {\n return {\n moveToCart: { type: Boolean, attribute: 'move-to-cart' },\n loginCtaMode: { type: String, attribute: 'login-cta-mode' },\n variantAutoSelectMode: {\n type: String,\n attribute: 'variant-auto-select-mode',\n },\n showVendor: { type: Boolean, attribute: 'show-vendor' },\n showProductTitle: { type: Boolean, attribute: 'show-product-title' },\n showPrice: { type: Boolean, attribute: 'show-price' },\n showShareButton: { type: Boolean, attribute: 'show-share-button' },\n showBuyAllButton: { type: Boolean, attribute: 'show-buy-all-button' },\n showClearButton: { type: Boolean, attribute: 'show-clear-button' },\n ctaButton: { type: String, attribute: 'cta-button' },\n productOptions: { type: String, attribute: 'product-options' },\n wishlistEmptyLink: { type: String, attribute: 'wishlist-empty-link' },\n };\n }\n\n getStateConfig() {\n return {\n wishlist: true,\n };\n }\n\n render() {\n if (!this.wishlist) {\n return;\n }\n\n return html`\n
${this.getTranslation('wishlist_page.wishlist_empty_callout_html')}
\n \n ${this.getTranslation('wishlist_page.wishlist_empty_cta')}\n \n\n ${this.getTranslation('wishlist_page.login_callout_html', {\n login_url: this.app.routes.accountLoginUrl,\n register_url: this.app.routes.accountRegisterUrl,\n })}\n
\n