UNPKG

@empathyco/x-components

Version:
25 lines (22 loc) 1.08 kB
import _sfc_main from './base-result-previous-price.vue2.js'; import { resolveComponent, openBlock, createElementBlock, renderSlot, createVNode, createCommentVNode } from 'vue'; import _export_sfc from '../../_virtual/_plugin-vue_export-helper.js'; const _hoisted_1 = { key: 0, class: "x-result-previous-price", "data-test": "result-previous-price" }; function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) { const _component_BaseCurrency = resolveComponent("BaseCurrency"); return _ctx.result.price.hasDiscount ? (openBlock(), createElementBlock("div", _hoisted_1, [ renderSlot(_ctx.$slots, "default", { result: _ctx.result }, () => [ createVNode(_component_BaseCurrency, { value: _ctx.result.price.originalValue, format: _ctx.format }, null, 8, ["value", "format"]) ]) ])) : createCommentVNode("v-if", true); } var baseResultPreviousPrice = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]); export { baseResultPreviousPrice as default }; //# sourceMappingURL=base-result-previous-price.vue.js.map