@mezereon/bigcommerce-stencil
Version:
BigCommerce UI components for Mezereon Xperience
8 lines • 21.3 kB
JavaScript
(function(t,e){"object"===typeof exports&&"object"===typeof module?module.exports=e():"function"===typeof define&&define.amd?define([],e):"object"===typeof exports?exports["ui-components"]=e():t["ui-components"]=e()})("undefined"!==typeof self?self:this,(function(){return function(){var t={679:function(t,e){var r,n,i;(function(o,a){n=[],r=a,i="function"===typeof r?r.apply(e,n):r,void 0===i||(t.exports=i)})("undefined"!==typeof self&&self,(function(){function t(){var e=Object.getOwnPropertyDescriptor(document,"currentScript");if(!e&&"currentScript"in document&&document.currentScript)return document.currentScript;if(e&&e.get!==t&&document.currentScript)return document.currentScript;try{throw new Error}catch(d){var r,n,i,o=/.*at [^(]*\((.*):(.+):(.+)\)$/gi,a=/@([^@]*):(\d+):(\d+)\s*$/gi,c=o.exec(d.stack)||a.exec(d.stack),s=c&&c[1]||!1,u=c&&c[2]||!1,p=document.location.href.replace(document.location.hash,""),l=document.getElementsByTagName("script");s===p&&(r=document.documentElement.outerHTML,n=new RegExp("(?:[^\\n]+?\\n){0,"+(u-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),i=r.replace(n,"$1").trim());for(var f=0;f<l.length;f++){if("interactive"===l[f].readyState)return l[f];if(l[f].src===s)return l[f];if(s===p&&l[f].innerHTML&&l[f].innerHTML.trim()===i)return l[f]}return null}}return t}))}},e={};function r(n){var i=e[n];if(void 0!==i)return i.exports;var o=e[n]={exports:{}};return t[n].call(o.exports,o,o.exports,r),o.exports}!function(){r.d=function(t,e){for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})}}(),function(){r.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"===typeof window)return window}}()}(),function(){r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)}}(),function(){r.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}}(),function(){r.p=""}();var n={};return function(){"use strict";if(r.r(n),r.d(n,{MzHitGridItem:function(){return nt},default:function(){return st}}),"undefined"!==typeof window){var t=window.document.currentScript,e=r(679);t=e(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:e});var i=t&&t.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);i&&(r.p=i[1])}var o=function(){var t=this,e=t._self._c;return e("div",{staticClass:"product"},[t._t("default",(function(){return[e("article",{staticClass:"card"},[e("figure",{staticClass:"card-figure"},[t.isOnSale?["sash"===t.context.productSaleBadges?[t._m(0)]:t._e(),"topleft"===t.context.productSaleBadges?[t._m(1)]:t._e(),"burst"===t.context.productSaleBadges?[t._m(2)]:t._e()]:t._e(),e("a",{attrs:{href:t.item.custom_url.url},on:{click:function(e){return t.trackEvent(t.item,t.index,"click")}}},[e("div",{staticClass:"card-img-container"},[e("img",{directives:[{name:"lazy",rawName:"v-lazy",value:{src:t.item.image,error:"https://via.placeholder.com/220/eee"},expression:"{\n src: item.image,\n error: 'https://via.placeholder.com/220/eee'\n }"}],staticClass:"card-image"})])]),e("figcaption",{staticClass:"card-figcaption"},[e("div",{staticClass:"card-figcaption-body"},[t.context.showProductQuickView?e("a",{staticClass:"button button--small card-figcaption-button quickview",attrs:{"data-product-id":t.item.id}},[t._v(" "+t._s(t.context.langQuickView)+" ")]):t._e(),t.context.showCompare?e("label",{staticClass:"button button--small card-figcaption-button",attrs:{for:"compare-"+t.item.id}},[t._v(" "+t._s(t.context.langCompare)+" "),e("input",{staticClass:"compare",attrs:{id:"compare-"+t.item.id,type:"checkbox",name:"products[]","data-compare-id":t.item.id},domProps:{value:t.item.id}})]):t._e(),t.context.customer||!t.context.restrictToLogin?[t.item.option_set_id?e("a",{staticClass:"button button--small card-figcaption-button",attrs:{href:t.item.custom_url.url,"data-event-type":"product-click","data-product-id":t.item.id}},[t._v(" "+t._s(t.context.langChooseOptions)+" ")]):"preorder"===t.item.availability?e("a",{staticClass:"button button--small card-figcaption-button",attrs:{href:"/cart.php?action=add&product_id="+t.item.id,"data-event-type":"product-click","data-product-id":t.item.id},on:{click:function(e){return t.trackEvent(t.item,t.index,"add2cart")}}},[e("span",[t._v(t._s(t.context.langPreOrder))])]):t.item.out_of_stock_message?e("a",{staticClass:"button button--small card-figcaption-button",attrs:{href:t.item.custom_url.url,"data-event-type":"product-click","data-product-id":t.item.id},on:{click:function(e){return t.trackEvent(t.item,t.index,"click")}}},[e("span",[t._v(t._s(t.item.out_of_stock_message))])]):"product"===t.item.inventory_tracking&&0===t.item.inventory_level?e("span"):e("a",{staticClass:"button button--small card-figcaption-button",attrs:{href:"/cart.php?action=add&product_id="+t.item.id,"data-event-type":"product-click"},on:{click:function(e){return t.trackEvent(t.item,t.index,"add2cart")}}},[t._v(" "+t._s(t.context.langAddToCart)+" ")])]:t._e()],2)])],2),e("div",{staticClass:"card-body"},[e("p",{staticClass:"card-text",attrs:{"data-test-info-type":"productRating"}},[e("span",{staticClass:"rating--small"},[e("rating",{attrs:{rating:t.item.reviews_rating_sum}})],1)]),e("p",{staticClass:"card-text",attrs:{"data-test-info-type":"brandName"}},[t._v(" "+t._s(t._f("value")(t.item.brand))+" ")]),e("h4",{staticClass:"card-title"},[e("a",{attrs:{href:t.item.custom_url.url},on:{click:function(e){return t.trackEvent(t.item,t.index,"click")}}},[e("span",{domProps:{innerHTML:t._s(t.item.name)}})])]),e("div",{staticClass:"card-text",attrs:{"data-test-info-type":"price"}},[!t.context.customer&&t.context.restrictToLogin?e("p",[t._v(" Log in for pricing ")]):t.item.retail_price?e("div",{staticClass:"price-section price-section--withoutTax rrp-price--withoutTax"},[t._v(" "+t._s(t.context.pdpRetailPriceLabel)+" "),e("span",{staticClass:"price price--rrp",attrs:{"data-product-rrp-price-without-tax":""}},[t._v(" "+t._s(t._f("currency")(t.item.retail_price))+" ")])]):t._e(),t.isOnSale?e("div",{staticClass:"price-section price-section--withoutTax non-sale-price--withoutTax",attrs:{"data-test-info-type":"price"}},[t._v(" "+t._s(t.context.pdpNonSalePriceLabel)+" "),e("span",{staticClass:"price price--non-sale",attrs:{"data-product-non-sale-price-without-tax":""}},[t._v(" "+t._s(t._f("currency")(t.item.price))+" ")])]):t._e(),e("div",{staticClass:"price-section price-section--withoutTax"},[t.isOnSale?e("span",{staticClass:"price-now-label"},[t._v(" "+t._s(t.context.pdpSalePriceLabel)+" ")]):e("span",{staticClass:"price-label"},[t._v(" "+t._s(t.context.pdpPriceLabel)+" ")]),e("span",{staticClass:"price price--withoutTax",attrs:{"data-product-price-without-tax":""}},[t._v(" "+t._s(t._f("currency")(t.item.calculated_price))+" ")])])])])])]}))],2)},a=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"sale-flag-sash"},[e("span",{staticClass:"sale-text"},[t._v("On Sale!")])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"sale-flag-side"},[e("span",{staticClass:"sale-text"},[t._v("On Sale!")])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"starwrap"},[e("div",{staticClass:"sale-text-burst"},[t._v("On Sale!")]),e("div",{staticClass:"sale-flag-star"})])}];function c(t){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},c(t)}function s(t,e){if("object"!==c(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==c(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}function u(t){var e=s(t,"string");return"symbol"===c(e)?e:String(e)}function p(t,e,r){return e=u(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}
/*!
* vuex v3.6.2
* (c) 2021 Evan You
* @license MIT
*/
function l(t){var e=Number(t.version.split(".")[0]);if(e>=2)t.mixin({beforeCreate:n});else{var r=t.prototype._init;t.prototype._init=function(t){void 0===t&&(t={}),t.init=t.init?[n].concat(t.init):n,r.call(this,t)}}function n(){var t=this.$options;t.store?this.$store="function"===typeof t.store?t.store():t.store:t.parent&&t.parent.$store&&(this.$store=t.parent.$store)}}var f="undefined"!==typeof window?window:"undefined"!==typeof r.g?r.g:{},d=f.__VUE_DEVTOOLS_GLOBAL_HOOK__;function h(t){d&&(t._devtoolHook=d,d.emit("vuex:init",t),d.on("vuex:travel-to-state",(function(e){t.replaceState(e)})),t.subscribe((function(t,e){d.emit("vuex:mutation",t,e)}),{prepend:!0}),t.subscribeAction((function(t,e){d.emit("vuex:action",t,e)}),{prepend:!0}))}function m(t,e){Object.keys(t).forEach((function(r){return e(t[r],r)}))}function v(t){return null!==t&&"object"===typeof t}function _(t){return t&&"function"===typeof t.then}function y(t,e){return function(){return t(e)}}var g=function(t,e){this.runtime=e,this._children=Object.create(null),this._rawModule=t;var r=t.state;this.state=("function"===typeof r?r():r)||{}},b={namespaced:{configurable:!0}};b.namespaced.get=function(){return!!this._rawModule.namespaced},g.prototype.addChild=function(t,e){this._children[t]=e},g.prototype.removeChild=function(t){delete this._children[t]},g.prototype.getChild=function(t){return this._children[t]},g.prototype.hasChild=function(t){return t in this._children},g.prototype.update=function(t){this._rawModule.namespaced=t.namespaced,t.actions&&(this._rawModule.actions=t.actions),t.mutations&&(this._rawModule.mutations=t.mutations),t.getters&&(this._rawModule.getters=t.getters)},g.prototype.forEachChild=function(t){m(this._children,t)},g.prototype.forEachGetter=function(t){this._rawModule.getters&&m(this._rawModule.getters,t)},g.prototype.forEachAction=function(t){this._rawModule.actions&&m(this._rawModule.actions,t)},g.prototype.forEachMutation=function(t){this._rawModule.mutations&&m(this._rawModule.mutations,t)},Object.defineProperties(g.prototype,b);var w=function(t){this.register([],t,!1)};function x(t,e,r){if(e.update(r),r.modules)for(var n in r.modules){if(!e.getChild(n))return void 0;x(t.concat(n),e.getChild(n),r.modules[n])}}w.prototype.get=function(t){return t.reduce((function(t,e){return t.getChild(e)}),this.root)},w.prototype.getNamespace=function(t){var e=this.root;return t.reduce((function(t,r){return e=e.getChild(r),t+(e.namespaced?r+"/":"")}),"")},w.prototype.update=function(t){x([],this.root,t)},w.prototype.register=function(t,e,r){var n=this;void 0===r&&(r=!0);var i=new g(e,r);if(0===t.length)this.root=i;else{var o=this.get(t.slice(0,-1));o.addChild(t[t.length-1],i)}e.modules&&m(e.modules,(function(e,i){n.register(t.concat(i),e,r)}))},w.prototype.unregister=function(t){var e=this.get(t.slice(0,-1)),r=t[t.length-1],n=e.getChild(r);n&&n.runtime&&e.removeChild(r)},w.prototype.isRegistered=function(t){var e=this.get(t.slice(0,-1)),r=t[t.length-1];return!!e&&e.hasChild(r)};var C;var O=function(t){var e=this;void 0===t&&(t={}),!C&&"undefined"!==typeof window&&window.Vue&&R(window.Vue);var r=t.plugins;void 0===r&&(r=[]);var n=t.strict;void 0===n&&(n=!1),this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new w(t),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._watcherVM=new C,this._makeLocalGettersCache=Object.create(null);var i=this,o=this,a=o.dispatch,c=o.commit;this.dispatch=function(t,e){return a.call(i,t,e)},this.commit=function(t,e,r){return c.call(i,t,e,r)},this.strict=n;var s=this._modules.root.state;$(this,s,[],this._modules.root),E(this,s),r.forEach((function(t){return t(e)}));var u=void 0!==t.devtools?t.devtools:C.config.devtools;u&&h(this)},k={state:{configurable:!0}};function S(t,e,r){return e.indexOf(t)<0&&(r&&r.prepend?e.unshift(t):e.push(t)),function(){var r=e.indexOf(t);r>-1&&e.splice(r,1)}}function j(t,e){t._actions=Object.create(null),t._mutations=Object.create(null),t._wrappedGetters=Object.create(null),t._modulesNamespaceMap=Object.create(null);var r=t.state;$(t,r,[],t._modules.root,!0),E(t,r,e)}function E(t,e,r){var n=t._vm;t.getters={},t._makeLocalGettersCache=Object.create(null);var i=t._wrappedGetters,o={};m(i,(function(e,r){o[r]=y(e,t),Object.defineProperty(t.getters,r,{get:function(){return t._vm[r]},enumerable:!0})}));var a=C.config.silent;C.config.silent=!0,t._vm=new C({data:{$$state:e},computed:o}),C.config.silent=a,t.strict&&G(t),n&&(r&&t._withCommit((function(){n._data.$$state=null})),C.nextTick((function(){return n.$destroy()})))}function $(t,e,r,n,i){var o=!r.length,a=t._modules.getNamespace(r);if(n.namespaced&&(t._modulesNamespaceMap[a],t._modulesNamespaceMap[a]=n),!o&&!i){var c=A(e,r.slice(0,-1)),s=r[r.length-1];t._withCommit((function(){C.set(c,s,n.state)}))}var u=n.context=P(t,a,r);n.forEachMutation((function(e,r){var n=a+r;T(t,n,e,u)})),n.forEachAction((function(e,r){var n=e.root?r:a+r,i=e.handler||e;L(t,n,i,u)})),n.forEachGetter((function(e,r){var n=a+r;N(t,n,e,u)})),n.forEachChild((function(n,o){$(t,e,r.concat(o),n,i)}))}function P(t,e,r){var n=""===e,i={dispatch:n?t.dispatch:function(r,n,i){var o=V(r,n,i),a=o.payload,c=o.options,s=o.type;return c&&c.root||(s=e+s),t.dispatch(s,a)},commit:n?t.commit:function(r,n,i){var o=V(r,n,i),a=o.payload,c=o.options,s=o.type;c&&c.root||(s=e+s),t.commit(s,a,c)}};return Object.defineProperties(i,{getters:{get:n?function(){return t.getters}:function(){return M(t,e)}},state:{get:function(){return A(t.state,r)}}}),i}function M(t,e){if(!t._makeLocalGettersCache[e]){var r={},n=e.length;Object.keys(t.getters).forEach((function(i){if(i.slice(0,n)===e){var o=i.slice(n);Object.defineProperty(r,o,{get:function(){return t.getters[i]},enumerable:!0})}})),t._makeLocalGettersCache[e]=r}return t._makeLocalGettersCache[e]}function T(t,e,r,n){var i=t._mutations[e]||(t._mutations[e]=[]);i.push((function(e){r.call(t,n.state,e)}))}function L(t,e,r,n){var i=t._actions[e]||(t._actions[e]=[]);i.push((function(e){var i=r.call(t,{dispatch:n.dispatch,commit:n.commit,getters:n.getters,state:n.state,rootGetters:t.getters,rootState:t.state},e);return _(i)||(i=Promise.resolve(i)),t._devtoolHook?i.catch((function(e){throw t._devtoolHook.emit("vuex:error",e),e})):i}))}function N(t,e,r,n){t._wrappedGetters[e]||(t._wrappedGetters[e]=function(t){return r(n.state,n.getters,t.state,t.getters)})}function G(t){t._vm.$watch((function(){return this._data.$$state}),(function(){0}),{deep:!0,sync:!0})}function A(t,e){return e.reduce((function(t,e){return t[e]}),t)}function V(t,e,r){return v(t)&&t.type&&(r=e,e=t,t=t.type),{type:t,payload:e,options:r}}function R(t){C&&t===C||(C=t,l(C))}k.state.get=function(){return this._vm._data.$$state},k.state.set=function(t){0},O.prototype.commit=function(t,e,r){var n=this,i=V(t,e,r),o=i.type,a=i.payload,c=(i.options,{type:o,payload:a}),s=this._mutations[o];s&&(this._withCommit((function(){s.forEach((function(t){t(a)}))})),this._subscribers.slice().forEach((function(t){return t(c,n.state)})))},O.prototype.dispatch=function(t,e){var r=this,n=V(t,e),i=n.type,o=n.payload,a={type:i,payload:o},c=this._actions[i];if(c){try{this._actionSubscribers.slice().filter((function(t){return t.before})).forEach((function(t){return t.before(a,r.state)}))}catch(u){0}var s=c.length>1?Promise.all(c.map((function(t){return t(o)}))):c[0](o);return new Promise((function(t,e){s.then((function(e){try{r._actionSubscribers.filter((function(t){return t.after})).forEach((function(t){return t.after(a,r.state)}))}catch(u){0}t(e)}),(function(t){try{r._actionSubscribers.filter((function(t){return t.error})).forEach((function(e){return e.error(a,r.state,t)}))}catch(u){0}e(t)}))}))}},O.prototype.subscribe=function(t,e){return S(t,this._subscribers,e)},O.prototype.subscribeAction=function(t,e){var r="function"===typeof t?{before:t}:t;return S(r,this._actionSubscribers,e)},O.prototype.watch=function(t,e,r){var n=this;return this._watcherVM.$watch((function(){return t(n.state,n.getters)}),e,r)},O.prototype.replaceState=function(t){var e=this;this._withCommit((function(){e._vm._data.$$state=t}))},O.prototype.registerModule=function(t,e,r){void 0===r&&(r={}),"string"===typeof t&&(t=[t]),this._modules.register(t,e),$(this,this.state,t,this._modules.get(t),r.preserveState),E(this,this.state)},O.prototype.unregisterModule=function(t){var e=this;"string"===typeof t&&(t=[t]),this._modules.unregister(t),this._withCommit((function(){var r=A(e.state,t.slice(0,-1));C.delete(r,t[t.length-1])})),j(this)},O.prototype.hasModule=function(t){return"string"===typeof t&&(t=[t]),this._modules.isRegistered(t)},O.prototype.hotUpdate=function(t){this._modules.update(t),j(this,!0)},O.prototype._withCommit=function(t){var e=this._committing;this._committing=!0,t(),this._committing=e},Object.defineProperties(O.prototype,k);var H=D((function(t,e){var r={};return z(e).forEach((function(e){var n=e.key,i=e.val;r[n]=function(){var e=this.$store.state,r=this.$store.getters;if(t){var n=B(this.$store,"mapState",t);if(!n)return;e=n.context.state,r=n.context.getters}return"function"===typeof i?i.call(this,e,r):e[i]},r[n].vuex=!0})),r}));D((function(t,e){var r={};return z(e).forEach((function(e){var n=e.key,i=e.val;r[n]=function(){var e=[],r=arguments.length;while(r--)e[r]=arguments[r];var n=this.$store.commit;if(t){var o=B(this.$store,"mapMutations",t);if(!o)return;n=o.context.commit}return"function"===typeof i?i.apply(this,[n].concat(e)):n.apply(this.$store,[i].concat(e))}})),r})),D((function(t,e){var r={};return z(e).forEach((function(e){var n=e.key,i=e.val;i=t+i,r[n]=function(){if(!t||B(this.$store,"mapGetters",t))return this.$store.getters[i]},r[n].vuex=!0})),r})),D((function(t,e){var r={};return z(e).forEach((function(e){var n=e.key,i=e.val;r[n]=function(){var e=[],r=arguments.length;while(r--)e[r]=arguments[r];var n=this.$store.dispatch;if(t){var o=B(this.$store,"mapActions",t);if(!o)return;n=o.context.dispatch}return"function"===typeof i?i.apply(this,[n].concat(e)):n.apply(this.$store,[i].concat(e))}})),r}));function z(t){return q(t)?Array.isArray(t)?t.map((function(t){return{key:t,val:t}})):Object.keys(t).map((function(e){return{key:e,val:t[e]}})):[]}function q(t){return Array.isArray(t)||v(t)}function D(t){return function(e,r){return"string"!==typeof e?(r=e,e=""):"/"!==e.charAt(e.length-1)&&(e+="/"),t(e,r)}}function B(t,e,r){var n=t._modulesNamespaceMap[r];return n}function I(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function U(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?I(Object(r),!0).forEach((function(e){p(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):I(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var F={name:"Hits",computed:U({},H("search",["primaryKey","hits","queryId","page","pageSize","layout","toggleLayout","context"])),methods:{trackEvent:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"click";mz&&mz.track&&mz.track(r,{queryId:this.queryId,uid:t[this.primaryKey]+"",pos:(this.page-1)*this.pageSize+e+1})},trackClick:function(t,e){this.trackEvent(t,e,"click")}}},K=function(){var t=this,e=t._self._c;return e("div",[t._l(5,(function(r){return[t.rating>=r?e("span",{key:r,staticClass:"icon icon--ratingFull"},[e("svg",[e("use",{attrs:{"xlink:href":"#icon-star"}})])]):e("span",{key:r,staticClass:"icon icon--ratingEmpty"},[e("svg",[e("use",{attrs:{"xlink:href":"#icon-star"}})])])]}))],2)},Q=[],X={props:{rating:{type:Number,required:!0}}},J=X;function W(t,e,r,n,i,o,a,c){var s,u="function"===typeof t?t.options:t;if(e&&(u.render=e,u.staticRenderFns=r,u._compiled=!0),n&&(u.functional=!0),o&&(u._scopeId="data-v-"+o),a?(s=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},u._ssrRegister=s):i&&(s=c?function(){i.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:i),s)if(u.functional){u._injectStyles=s;var p=u.render;u.render=function(t,e){return s.call(e),p(t,e)}}else{var l=u.beforeCreate;u.beforeCreate=l?[].concat(l,s):[s]}return{exports:t,options:u}}var Y=W(J,K,Q,!1,null,null,null),Z=Y.exports,tt={components:{Rating:Z},mixins:[F],props:{item:{type:Object,required:!0},score:{type:Number,required:!0},index:{type:Number,required:!0}},computed:{isOnSale:function(){return this.item.price!==this.item.calculated_price}}},et=tt,rt=W(et,o,a,!1,null,null,null),nt=rt.exports;function it(t){t.component("mz-hit-grid-item",nt)}var ot={install:it},at=null;"undefined"!==typeof window?at=window.Vue:"undefined"!==typeof r.g&&(at=r.g.Vue),at&&at.use(ot);var ct=ot,st=ct}(),n}()}));
//# sourceMappingURL=ui-components.umd.min.js.map