(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["LayoutHeaderNavBar~NewHomeHeaderNavBar","ProductBody"],{"277e":function(t,e,i){"use strict";var s=i("f977"),r=i("d9bd"),o=i("2b0e");e["a"]=o["a"].extend({name:"scrollable",directives:{Scroll:s["a"]},props:{scrollTarget:String,scrollThreshold:[String,Number]},data:()=>({currentScroll:0,currentThreshold:0,isActive:!1,isScrollingUp:!1,previousScroll:0,savedScroll:0,target:null}),computed:{canScroll(){return"undefined"!==typeof window},computedScrollThreshold(){return this.scrollThreshold?Number(this.scrollThreshold):300}},watch:{isScrollingUp(){this.savedScroll=this.savedScroll||this.currentScroll},isActive(){this.savedScroll=0}},mounted(){this.scrollTarget&&(this.target=document.querySelector(this.scrollTarget),this.target||Object(r["c"])("Unable to locate element with identifier "+this.scrollTarget,this))},methods:{onScroll(){this.canScroll&&(this.previousScroll=this.currentScroll,this.currentScroll=this.target?this.target.scrollTop:window.pageYOffset,this.isScrollingUp=this.currentScroll{Math.abs(this.currentScroll-this.savedScroll)>this.computedScrollThreshold&&this.thresholdMet()}))},thresholdMet(){}}})},"2a7f":function(t,e,i){"use strict";i.d(e,"a",(function(){return o}));var s=i("71d9"),r=i("80d2");const o=Object(r["j"])("v-toolbar__title"),a=Object(r["j"])("v-toolbar__items");s["a"]},"36a7":function(t,e,i){},"3a66":function(t,e,i){"use strict";i.d(e,"a",(function(){return o}));var s=i("fe6c"),r=i("58df");function o(t,e=[]){return Object(r["a"])(Object(s["b"])(["absolute","fixed"])).extend({name:"applicationable",props:{app:Boolean},computed:{applicationProperty(){return t}},watch:{app(t,e){e?this.removeApplication(!0):this.callUpdate()},applicationProperty(t,e){this.$vuetify.application.unregister(this._uid,e)}},activated(){this.callUpdate()},created(){for(let t=0,i=e.length;t0}})}},"40dc":function(t,e,i){"use strict";i("14d9"),i("8b0d");var s=i("71d9"),r=i("f977"),o=i("3a66"),a=i("277e"),n=i("d10f"),l=i("f2e7"),c=i("80d2"),d=i("58df");const h=Object(d["a"])(s["a"],a["a"],n["a"],l["a"],Object(o["a"])("top",["clippedLeft","clippedRight","computedHeight","invertedScroll","isExtended","isProminent","value"]));e["a"]=h.extend({name:"v-app-bar",directives:{Scroll:r["b"]},provide(){return{VAppBar:this}},props:{clippedLeft:Boolean,clippedRight:Boolean,collapseOnScroll:Boolean,elevateOnScroll:Boolean,fadeImgOnScroll:Boolean,hideOnScroll:Boolean,invertedScroll:Boolean,scrollOffScreen:Boolean,shrinkOnScroll:Boolean,value:{type:Boolean,default:!0}},data(){return{isActive:this.value}},computed:{applicationProperty(){return this.bottom?"bottom":"top"},canScroll(){return a["a"].options.computed.canScroll.call(this)&&(this.invertedScroll||this.elevateOnScroll||this.hideOnScroll||this.collapseOnScroll||this.isBooted||!this.value)},classes(){return{...s["a"].options.computed.classes.call(this),"v-toolbar--collapse":this.collapse||this.collapseOnScroll,"v-app-bar":!0,"v-app-bar--clipped":this.clippedLeft||this.clippedRight,"v-app-bar--fade-img-on-scroll":this.fadeImgOnScroll,"v-app-bar--elevate-on-scroll":this.elevateOnScroll,"v-app-bar--fixed":!this.absolute&&(this.app||this.fixed),"v-app-bar--hide-shadow":this.hideShadow,"v-app-bar--is-scrolled":this.currentScroll>0,"v-app-bar--shrink-on-scroll":this.shrinkOnScroll}},scrollRatio(){const t=this.computedScrollThreshold;return Math.max((t-this.currentScroll)/t,0)},computedContentHeight(){if(!this.shrinkOnScroll)return s["a"].options.computed.computedContentHeight.call(this);const t=this.dense?48:56,e=this.computedOriginalHeight;return t+(e-t)*this.scrollRatio},computedFontSize(){if(!this.isProminent)return;const t=1.25,e=1.5;return t+(e-t)*this.scrollRatio},computedLeft(){return!this.app||this.clippedLeft?0:this.$vuetify.application.left},computedMarginTop(){return this.app?this.$vuetify.application.bar:0},computedOpacity(){if(this.fadeImgOnScroll)return this.scrollRatio},computedOriginalHeight(){let t=s["a"].options.computed.computedContentHeight.call(this);return this.isExtended&&(t+=parseInt(this.extensionHeight)),t},computedRight(){return!this.app||this.clippedRight?0:this.$vuetify.application.right},computedScrollThreshold(){return this.scrollThreshold?Number(this.scrollThreshold):this.computedOriginalHeight-(this.dense?48:56)},computedTransform(){if(!this.canScroll||this.elevateOnScroll&&0===this.currentScroll&&this.isActive)return 0;if(this.isActive)return 0;const t=this.scrollOffScreen?this.computedHeight:this.computedContentHeight;return this.bottom?t:-t},hideShadow(){return this.elevateOnScroll&&this.isExtended?this.currentScroll0:s["a"].options.computed.isCollapsed.call(this)},isProminent(){return s["a"].options.computed.isProminent.call(this)||this.shrinkOnScroll},styles(){return{...s["a"].options.computed.styles.call(this),fontSize:Object(c["h"])(this.computedFontSize,"rem"),marginTop:Object(c["h"])(this.computedMarginTop),transform:`translateY(${Object(c["h"])(this.computedTransform)})`,left:Object(c["h"])(this.computedLeft),right:Object(c["h"])(this.computedRight)}}},watch:{canScroll:"onScroll",computedTransform(){this.canScroll&&(this.clippedLeft||this.clippedRight)&&this.callUpdate()},invertedScroll(t){this.isActive=!t||0!==this.currentScroll},hideOnScroll(t){this.isActive=!t||this.currentScrollthis.computedScrollThreshold:(this.hideOnScroll&&(this.isActive=this.isScrollingUp||this.currentScroll1&&(i=e.event)),e.content_home&&(i="click banner"),i&&this.handleEventTracking(i,t.url,e),this.handlePopupTopSort(e),t.url&&t.url.tipe&&this.handleUrlType(t.url,t.layout_type,t.target)},handleEventTracking(t,e,i){try{e&&("producto"===e.tipe&&(t+=".producto",i.product_supplier_id=e.param),"categoria"===e.tipe&&(t+=".subcategoria",i.subcategory_id=e.param)),r["a"].trackEventCluvi(i,t)}catch(s){n["c"](s)}},handlePopupTopSort(t){var e;(null===(e=t.content_popup)||void 0===e||null===(e=e.topsortWinner)||void 0===e||null===(e=e.resolvedBidId)||void 0===e?void 0:e.length)>1&&o["a"].trackBannerClick(t.content_popup)},handleUrlType(t,e,i){switch(t.tipe){case"producto":this.SetProductId(t.param);break;case"categoria":this.tipeCategorie(t);break;case"externo":this.tipeExternal(t,i);break;default:break}"banner"===e&&this.layoutTypeBanner(t,i)},tipeCategorie(t){const e={name:"SubCategories",params:{supplier_id:this.supplier.slug},query:{}};t.main_category_id&&(e.query.maincategory_id=t.main_category_id),t.param&&(e.query.category_id=t.param),this.$router.push(e)},layoutTypeBanner(t,e){let i=t.param;if("string"===typeof i){var s,r;const o=null===(s=i)||void 0===s?void 0:s.includes(".cluvi."),a=null===(r=i)||void 0===r?void 0:r.includes("form.typeform.com");o&&(i=`${i}${this.tableId?"?mesa="+this.tableId:""}`.trim()),a&&(i=`${i}#supplier_id=${this.supplier.id}&session_id=${this.session.id}&service=${this.service}`.trim()),(o||a)&&this.redirectionUrl(t,i,e)}},tipeExternal(t,e){let i=null,s=t.param.includes("qualification"),r=t.param.includes(this.$route.params.supplier_id);if(s){var o=t.param,a=/([^/]+)\/menu-digital/,n=o.match(a);if(n&&n.length>=2){var l=n[1];i=r?t.param:t.param.replace(l,this.$route.params.supplier_id)}}else i=t.param;this.redirectionUrl(t,i,e)},redirectionUrl(t,e,i){window.open(e,i)},back(){"Product"===this.$route.name?"on_table"===this.service?this.$router.push({name:"OnTableHome",params:{supplier_id:this.supplier.slug}}):this.$router.push({name:"Home",params:{supplier_id:this.supplier.slug}}):this.$router.go(-1)},async validateProfile(){try{this.profile.id||this.profile.token||await a["a"].init()}catch(t){console.error(t)}},async reloadGetSupplier(){try{this.$route.params.supplier_id!==this.supplier.slug?await this.GetSupplier(this.$route.params.supplier_id):this.GetSupplier(this.$route.params.supplier_id)}catch(t){console.error(t)}}}}},"5d81":function(t,e,i){"use strict";var s=i("4ca6"),r=i("8336"),o=i("132d"),a=function(){var t=this,e=t._self._c;return e("div",{staticClass:"header-cart-view"},[t.validateIconCart?e(r["a"],{staticClass:"pay-btn",attrs:{"x-small":"",fab:"",color:"cluvi2"},on:{click:function(e){return e.stopPropagation(),t.goToCart()}}},[t.showBadge?e(s["a"],{attrs:{transition:"slide-x-transition",content:t.countBadge}},[e(o["a"],{attrs:{medium:"",color:"white"}},[t._v(t._s(t.icon))])],1):e(o["a"],{attrs:{medium:"",color:"white"}},[t._v(t._s(t.icon))]),t.showTooltip?e("div",{staticClass:"tooltip"},[e("span",[t._v(t._s(t.$t("menu-digital.no_pending_payments")))])]):t._e()],1):t._e(),t.addOns&&t.showLangIconOrdered&&0===this.countProductsOrdered&&("MyOrder"!=this.$route.name||2!=this.navMyOrder)?e(r["a"],{staticClass:"pay-btn",attrs:{color:"cluvi2",fab:"","x-small":""},on:{click:function(e){return t.openShowLanguageSelectorModal()}}},[e(o["a"],{attrs:{color:"white"}},[t._v("fa-light fa-globe")])],1):t._e(),t.showLanguageSelector?e("locale-switcher",{attrs:{instance:t.instance,flatOpenModal:t.flatOpenModal},on:{showLanguageSelectorModal:t.showLanguageSelectorModal}}):t._e()],1)},n=[],l=(i("14d9"),i("2f62")),c=i("6018"),d={name:"HeaderCart",components:{LocaleSwitcher:()=>Promise.all([i.e("chunk-522f3db9"),i.e("chunk-537913c3")]).then(i.bind(null,"bf45"))},data(){return{showTooltip:!1,showLanguageSelector:!1,flatOpenModal:!1}},computed:{...Object(l["e"])("order",["service","otPurchaseId","purchaseId","taPurchaseId","countProductsList"]),...Object(l["e"])("customer",["supplier","instance"]),...Object(l["e"])("ontable",["countProductsOrdered","navMyOrder","productInCook"]),...Object(l["c"])("customer",["is_ontable_checkout","is_ontable_basic","has_cluvipay","is_colombian_customer","is_mexican_customer"]),...Object(l["c"])("order",["is_take_away_service","is_delivery_service","is_ontable_service","is_room_service"]),showLangIconOrdered:function(){var t,e,i,s;return(1!==(null===(t=this.instance.langs)||void 0===t?void 0:t.length)||(null===(e=this.instance)||void 0===e?void 0:e.langs[0])!==(null===(i=this.instance)||void 0===i?void 0:i.language))&&((null===(s=this.instance)||void 0===s||null===(s=s.langs)||void 0===s?void 0:s.length)>0&&0===this.countProductsOrdered)},validateIconCart:function(){return this.is_ontable_service&&(null!==this.otPurchaseId||this.showLangIcon)&&!this.has_cluvipay||(this.is_delivery_service||this.is_take_away_service)&&(null!==this.purchaseId||null!==this.taPurchaseId)},validateIconCallWaiter(){return null!==this.otPurchaseId&&this.is_ontable_checkout},icon(){return"on_table"===this.service?this.is_ontable_checkout?"fa-light fa-hand-holding-dollar":"fa-light fa-user-tie":this.is_delivery_service||this.is_take_away_service?"fa-light fa-cart-shopping":""},showBadge:function(){return!!((this.is_ontable_service||this.is_room_service||"delivery"===this.service)&&this.countProductsList>0)},countBadge:function(){return this.countProductsList},orderWithProducts:function(){return this.countProductsOrdered>0||this.countProductsList>0},can_pay:function(){return this.is_ontable_checkout&&this.orderWithProducts||this.is_ontable_basic&&this.has_cluvipay&&!("MyOrder"===this.$route.name&&2===this.navMyOrder)&&!this.is_delivery_service},addOns(){var t;return null===(t=this.instance.cluvi_add_ons)||void 0===t?void 0:t.includes("multilanguage")}},methods:{...Object(l["d"])("ontable",["SetNavigatorMyOrder"]),...Object(l["d"])("order",["setTip","SetOtPurchaseId"]),openShowLanguageSelectorModal(){this.flatOpenModal=!0,this.showLanguageSelector=!0},showLanguageSelectorModal(){this.showLanguageSelector=!1},goToCart(){"delivery"!==this.service&&"take_away"!==this.service||this.$router.push({name:"DeliveryCartInProgress",params:{supplier_id:this.supplier.slug}}),this.is_ontable_service&&(this.showBadge||this.has_cluvipay?(this.setTip({include:"YES",percent:10}),"MyOrder"!==this.$route.name&&(this.is_ontable_basic&&this.has_cluvipay&&!this.otPurchaseId?c["a"].createPurchaseByManualPayment(0).then(t=>{t.data&&(this.SetOtPurchaseId(t.data.id),this.goToMyOrder())}).catch(t=>console.error(t)):this.goToMyOrder())):this.showTooltip||!this.is_ontable_checkout&&!this.can_pay||(this.showTooltip=!0,setTimeout(()=>{this.showTooltip=!1},3e3)))},goToMyOrder(){this.$router.push({name:"MyOrder",params:{supplier_id:this.supplier.slug,purchase_id:this.otPurchaseId}})}}},h=d,p=(i("d656"),i("2877")),u=Object(p["a"])(h,a,n,!1,null,"43d72724",null);e["a"]=u.exports},"5e23":function(t,e,i){},6018:function(t,e,i){"use strict";i.d(e,"a",(function(){return n})),i.d(e,"b",(function(){return l}));var s=i("bc3a"),r=i.n(s),o=i("4360"),a=i("9225");const n={validateOrderOnTable(){if(o["a"].state.ontable.tableId.toString().length>0)return r()({method:"get",url:`https://exp2.cluvi.com/menudigital/init?supplier_id=${o["a"].state.customer.supplier.id}&table_code=${o["a"].state.ontable.tableId}`})},validateActiveOrder(){return r()({method:"get",url:`https://exp2.cluvi.com/menudigital/init/${o["a"].state.order.otPurchaseId}.json?customer_id=${o["a"].state.customer.instance.id}&supplier_id=${o["a"].state.customer.supplier.id}&service=${o["a"].state.order.service}&table_code=${o["a"].state.ontable.tableId}`,headers:{profileid:o["a"].state.profile.profile.id,token:o["a"].state.profile.profile.token}})},CookAddProductToCart(t){return r()({method:"post",url:"https://exp2.cluvi.com/menudigital/add_product_cart.json",headers:{profileid:o["a"].state.profile.profile.id,token:o["a"].state.profile.profile.token},data:{product:t.product,purchase_id:t.purchase_id,data_purchase:t.data_purchase}})},AddProductToCart(t,e,i){return r()({method:"post",url:"https://exp2.cluvi.com/menudigital/add_product_cart",headers:{profileid:o["a"].state.profile.profile.id,token:o["a"].state.profile.profile.token},data:{product:t,purchase_id:e,data_purchase:i}})},AddProductToMyList(t,e,i){return r()({method:"post",url:"https://exp2.cluvi.com/menudigital/add_product_cart",headers:{profileid:o["a"].state.profile.profile.id,token:o["a"].state.profile.profile.token},data:{product:t,purchase_id:e,data_purchase:i}})},getProductsCart(){return new Promise((t,e)=>{r()({method:"get",url:`https://exp2.cluvi.com/menudigital/cart/${o["a"].state.order.otPurchaseId}.json`,headers:{profileid:o["a"].state.profile.profile.id,token:o["a"].state.profile.profile.token}}).then(e=>{t(e.data)}).catch(t=>{e(t.message)})})},cookProducts(t,e){return new Promise((i,s)=>{const a=`https://exp2.cluvi.com/menudigital/cook_products/${e}.json`;r()({method:"put",url:a,headers:{profileid:o["a"].state.profile.profile.id,token:o["a"].state.profile.profile.token},data:t}).then(t=>{i(t.data)},t=>{s(t)})})},updateOrder(t){return r()({method:"put",url:"https://exp2.cluvi.com/menudigital/cart/"+o["a"].state.order.otPurchaseId,headers:{profileid:o["a"].state.profile.profile.id,token:o["a"].state.profile.profile.token},data:t})},callTheWaiter(){return r()({method:"put",url:"https://exp2.cluvi.com/menudigital/call_waiter/"+o["a"].state.order.otPurchaseId,headers:{profileid:o["a"].getters["profile/profile_id"],token:o["a"].getters["profile/profile_token"]}})},createPurchaseEmpty(t){return r()({method:"post",url:"https://exp2.cluvi.com/menudigital/init.json",headers:{profileid:o["a"].state.profile.profile.id,token:o["a"].state.profile.profile.token},data:{purchase:t}})},saveTip(t){return r()({method:"put",url:`https://exp2.cluvi.com/menudigital/add_tip/${o["a"].state.order.otPurchaseId}.json`,headers:{profileid:o["a"].state.profile.profile.id,token:o["a"].state.profile.profile.token},data:t})},sentService(t,e,i){return r()({method:"post",url:`https://exp2.cluvi.com/menudigital/rates.json?purchase_id=${t}&token=${e}`,data:{rate:i}})},getHistoryOrdersBySupplier(){return r()({method:"get",url:"https://exp2.cluvi.com/menudigital/my_orders.json?supplier_id="+o["a"].state.customer.supplier.id,headers:{profileid:o["a"].state.profile.profile.id,token:o["a"].state.profile.profile.token}})},createPurchaseByManualPayment(t){return r()({method:"post",url:"https://exp2.cluvi.com/menudigital/manual_payment.json",headers:{profileid:o["a"].state.profile.profile.id,token:o["a"].state.profile.profile.token},data:{supplier_id:o["a"].state.customer.supplier.id,amount:t}})},updatePurchaseByManualPayment(t){return r()({method:"put",url:`https://exp2.cluvi.com/menudigital/manual_payment/${o["a"].state.order.otPurchaseId}.json`,headers:{profileid:o["a"].state.profile.profile.id,token:o["a"].state.profile.profile.token},data:t})},formatValue(t){return a["a"].n(t,"currency",o["a"].state.customer.instance.locale)},deleteAllProductsInCart(){return r()({method:"DELETE",url:`https://exp2.cluvi.com/menudigital/clean_cart/${o["a"].state.order.otPurchaseId}.json`})},receiveOrder(t){return r()({method:"put",url:"https://exp2.cluvi.com/menudigital/receive_order/"+t,headers:{profileid:o["a"].getters["profile/profile_id"],token:o["a"].getters["profile/profile_token"]}})}},l={SendRateOnTable(t){return t.sesion_id=o["a"].getters["profile/session_id"],r()({method:"post",url:"https://exp2.cluvi.com/menudigital/rates_services.json",data:{rates_service:t}})}}},"71d9":function(t,e,i){"use strict";i("14d9"),i("5e23");var s=i("8dd9"),r=i("adda"),o=i("80d2"),a=i("d9bd");e["a"]=s["a"].extend({name:"v-toolbar",props:{absolute:Boolean,bottom:Boolean,collapse:Boolean,dense:Boolean,extended:Boolean,extensionHeight:{default:48,type:[Number,String]},flat:Boolean,floating:Boolean,prominent:Boolean,short:Boolean,src:{type:[String,Object],default:""},tag:{type:String,default:"header"}},data:()=>({isExtended:!1}),computed:{computedHeight(){const t=this.computedContentHeight;if(!this.isExtended)return t;const e=parseInt(this.extensionHeight);return this.isCollapsed?t:t+(isNaN(e)?0:e)},computedContentHeight(){return this.height?parseInt(this.height):this.isProminent&&this.dense?96:this.isProminent&&this.short?112:this.isProminent?128:this.dense?48:this.short||this.$vuetify.breakpoint.smAndDown?56:64},classes(){return{...s["a"].options.computed.classes.call(this),"v-toolbar":!0,"v-toolbar--absolute":this.absolute,"v-toolbar--bottom":this.bottom,"v-toolbar--collapse":this.collapse,"v-toolbar--collapsed":this.isCollapsed,"v-toolbar--dense":this.dense,"v-toolbar--extended":this.isExtended,"v-toolbar--flat":this.flat,"v-toolbar--floating":this.floating,"v-toolbar--prominent":this.isProminent}},isCollapsed(){return this.collapse},isProminent(){return this.prominent},styles(){return{...this.measurableStyles,height:Object(o["h"])(this.computedHeight)}}},created(){const t=[["app",""],["manual-scroll",''],["clipped-left",""],["clipped-right",""],["inverted-scroll",""],["scroll-off-screen",""],["scroll-target",""],["scroll-threshold",""],["card",""]];t.forEach(([t,e])=>{this.$attrs.hasOwnProperty(t)&&Object(a["a"])(t,e,this)})},methods:{genBackground(){const t={height:Object(o["h"])(this.computedHeight),src:this.src},e=this.$scopedSlots.img?this.$scopedSlots.img({props:t}):this.$createElement(r["a"],{props:t});return this.$createElement("div",{staticClass:"v-toolbar__image"},[e])},genContent(){return this.$createElement("div",{staticClass:"v-toolbar__content",style:{height:Object(o["h"])(this.computedContentHeight)}},Object(o["s"])(this))},genExtension(){return this.$createElement("div",{staticClass:"v-toolbar__extension",style:{height:Object(o["h"])(this.extensionHeight)}},Object(o["s"])(this,"extension"))}},render(t){this.isExtended=this.extended||!!this.$scopedSlots.extension;const e=[this.genContent()],i=this.setBackgroundColor(this.color,{class:this.classes,style:this.styles,on:this.$listeners});return this.isExtended&&e.push(this.genExtension()),(this.src||this.$scopedSlots.img)&&e.unshift(this.genBackground()),t(this.tag,i,e)}})},"8b0d":function(t,e,i){},"8c15":function(t,e,i){"use strict";i.d(e,"a",(function(){return n}));var s=i("4360"),r=i("bc3a"),o=i.n(r),a=i("a18c");const n={trackCluviBase(){let t={view_vue:a["a"].app._route.name};return t.table_code=s["a"].getters["ontable/tableId"],t.front_lang=s["a"].getters["shared/lang"],t.session_id=s["a"].getters["profile/session_id"],t.service=s["a"].getters["order/service"],t.customer_id=s["a"].getters["customer/instance_id"],t.supplier_id=s["a"].getters["customer/supplier_id"],t.profile_id=s["a"].getters["profile/profile_id"],t.acquisition_id=s["a"].getters["shared/acquisition_id"],t},trackBannerClick(t){let e={clicks:[{resolvedBidId:t.topsortWinner.resolvedBidId,occurredAt:this.getRFC3339Date(),opaqueUserId:s["a"].getters["profile/session_id"],id:`${s["a"].getters["shared/acquisition_id"]}_${this.generateUUIDv4()}`}]};this.sendEventToTopsort(e)},trackBannerView(t){let e={impressions:[{resolvedBidId:t.topsortWinner.resolvedBidId,occurredAt:this.getRFC3339Date(),opaqueUserId:s["a"].getters["profile/session_id"],id:`${s["a"].getters["shared/acquisition_id"]}_${this.generateUUIDv4()}`}]};this.sendEventToTopsort(e)},sendEventToTopsort(t){o()({method:"post",url:"https://api.topsort.com/v2/events",headers:{Authorization:"Bearer TSE_8EsMdd5czhxWTzThAzhHZLdiqqdayu1DnckX"},data:t}).then(t=>{}).catch(t=>{})},trackProductView(t){let e={impressions:[{resolvedBidId:t.topsortWinner.resolvedBidId,occurredAt:this.getRFC3339Date(),opaqueUserId:s["a"].getters["profile/session_id"],id:`${s["a"].getters["shared/acquisition_id"]}_${this.generateUUIDv4()}`}]};this.sendEventToTopsort(e)},trackProductClick(t){let e={clicks:[{resolvedBidId:t.topsortWinner.resolvedBidId,occurredAt:this.getRFC3339Date(),opaqueUserId:s["a"].getters["profile/session_id"],id:`${s["a"].getters["shared/acquisition_id"]}_${this.generateUUIDv4()}`}]};this.sendEventToTopsort(e);let i=Math.round(.43*t.price);i<=10&&(i=5600);let r={purchases:[{items:[{quantity:1,productId:t.topsortWinner.id,unitPrice:i}],resolvedBidId:t.topsortWinner.resolvedBidId,occurredAt:this.getRFC3339Date(),opaqueUserId:s["a"].getters["profile/session_id"],id:`${s["a"].getters["shared/acquisition_id"]}_${this.generateUUIDv4()}`}]};this.sendEventToTopsort(r)},getRFC3339Date(){const t=new Date,e=t.getUTCFullYear(),i=String(t.getUTCMonth()+1).padStart(2,"0"),s=String(t.getUTCDate()).padStart(2,"0"),r=String(t.getUTCHours()).padStart(2,"0"),o=String(t.getUTCMinutes()).padStart(2,"0"),a=String(t.getUTCSeconds()).padStart(2,"0"),n=String(t.getUTCMilliseconds()).padStart(3,"0");return`${e}-${i}-${s}T${r}:${o}:${a}.${n}Z`},generateUUIDv4(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){var e=16*Math.random()|0,i="x"==t?e:3&e|8;return i.toString(16)}))}}},"8efc":function(t,e,i){},adda:function(t,e,i){"use strict";i("14d9"),i("8efc");var s=i("90a2"),r=(i("36a7"),i("24b2")),o=i("58df"),a=i("80d2"),n=Object(o["a"])(r["a"]).extend({name:"v-responsive",props:{aspectRatio:[String,Number],contentClass:String},computed:{computedAspectRatio(){return Number(this.aspectRatio)},aspectStyle(){return this.computedAspectRatio?{paddingBottom:1/this.computedAspectRatio*100+"%"}:void 0},__cachedSizer(){return this.aspectStyle?this.$createElement("div",{style:this.aspectStyle,staticClass:"v-responsive__sizer"}):[]}},methods:{genContent(){return this.$createElement("div",{staticClass:"v-responsive__content",class:this.contentClass},Object(a["s"])(this))}},render(t){return t("div",{staticClass:"v-responsive",style:this.measurableStyles,on:this.$listeners},[this.__cachedSizer,this.genContent()])}}),l=n,c=i("7560"),d=i("d9f7"),h=i("d9bd");const p="undefined"!==typeof window&&"IntersectionObserver"in window;e["a"]=Object(o["a"])(l,c["a"]).extend({name:"v-img",directives:{intersect:s["a"]},props:{alt:String,contain:Boolean,eager:Boolean,gradient:String,lazySrc:String,options:{type:Object,default:()=>({root:void 0,rootMargin:void 0,threshold:void 0})},position:{type:String,default:"center center"},sizes:String,src:{type:[String,Object],default:""},srcset:String,transition:{type:[Boolean,String],default:"fade-transition"}},data(){return{currentSrc:"",image:null,isLoading:!0,calculatedAspectRatio:void 0,naturalWidth:void 0,hasError:!1}},computed:{computedAspectRatio(){return Number(this.normalisedSrc.aspect||this.calculatedAspectRatio)},normalisedSrc(){return this.src&&"object"===typeof this.src?{src:this.src.src,srcset:this.srcset||this.src.srcset,lazySrc:this.lazySrc||this.src.lazySrc,aspect:Number(this.aspectRatio||this.src.aspect)}:{src:this.src,srcset:this.srcset,lazySrc:this.lazySrc,aspect:Number(this.aspectRatio||0)}},__cachedImage(){if(!(this.normalisedSrc.src||this.normalisedSrc.lazySrc||this.gradient))return[];const t=[],e=this.isLoading?this.normalisedSrc.lazySrc:this.currentSrc;this.gradient&&t.push(`linear-gradient(${this.gradient})`),e&&t.push(`url("${e}")`);const i=this.$createElement("div",{staticClass:"v-image__image",class:{"v-image__image--preload":this.isLoading,"v-image__image--contain":this.contain,"v-image__image--cover":!this.contain},style:{backgroundImage:t.join(", "),backgroundPosition:this.position},key:+this.isLoading});return this.transition?this.$createElement("transition",{attrs:{name:this.transition,mode:"in-out"}},[i]):i}},watch:{src(){this.isLoading?this.loadImage():this.init(void 0,void 0,!0)},"$vuetify.breakpoint.width":"getSrc"},mounted(){this.init()},methods:{init(t,e,i){if(!p||i||this.eager){if(this.normalisedSrc.lazySrc){const t=new Image;t.src=this.normalisedSrc.lazySrc,this.pollForSize(t,null)}this.normalisedSrc.src&&this.loadImage()}},onLoad(){this.getSrc(),this.isLoading=!1,this.$emit("load",this.src),this.image&&(this.normalisedSrc.src.endsWith(".svg")||this.normalisedSrc.src.startsWith("data:image/svg+xml"))&&(this.image.naturalHeight&&this.image.naturalWidth?(this.naturalWidth=this.image.naturalWidth,this.calculatedAspectRatio=this.image.naturalWidth/this.image.naturalHeight):this.calculatedAspectRatio=1)},onError(){this.hasError=!0,this.$emit("error",this.src)},getSrc(){this.image&&(this.currentSrc=this.image.currentSrc||this.image.src)},loadImage(){const t=new Image;this.image=t,t.onload=()=>{t.decode?t.decode().catch(t=>{Object(h["c"])("Failed to decode image, trying to render anyway\n\nsrc: "+this.normalisedSrc.src+(t.message?"\nOriginal error: "+t.message:""),this)}).then(this.onLoad):this.onLoad()},t.onerror=this.onError,this.hasError=!1,this.sizes&&(t.sizes=this.sizes),this.normalisedSrc.srcset&&(t.srcset=this.normalisedSrc.srcset),t.src=this.normalisedSrc.src,this.$emit("loadstart",this.normalisedSrc.src),this.aspectRatio||this.pollForSize(t),this.getSrc()},pollForSize(t,e=100){const i=()=>{const{naturalHeight:s,naturalWidth:r}=t;s||r?(this.naturalWidth=r,this.calculatedAspectRatio=r/s):t.complete||!this.isLoading||this.hasError||null==e||setTimeout(i,e)};i()},genContent(){const t=l.options.methods.genContent.call(this);return this.naturalWidth&&this._b(t.data,"div",{style:{width:this.naturalWidth+"px"}}),t},__genPlaceholder(){const t=Object(a["s"])(this,"placeholder");if(t){const e=this.isLoading?[this.$createElement("div",{staticClass:"v-image__placeholder"},t)]:[];return this.transition?this.$createElement("transition",{props:{appear:!0,name:this.transition}},e):e[0]}}},render(t){const e=l.options.render.call(this,t),i=Object(d["a"])(e.data,{staticClass:"v-image",attrs:{"aria-label":this.alt,role:this.alt?"img":void 0},class:this.themeClasses,directives:p?[{name:"intersect",modifiers:{once:!0},value:{handler:this.init,options:this.options}}]:void 0});return e.children=[this.__cachedSizer,this.__cachedImage,this.__genPlaceholder(),this.genContent()],t(e.tag,i,e.children)}})},d656:function(t,e,i){"use strict";i("4417")},f40d:function(t,e,i){"use strict";var s=i("2b0e");e["a"]=s["a"].extend({name:"transitionable",props:{mode:String,origin:String,transition:String}})},f977:function(t,e,i){"use strict";function s(t,e,i){const{self:s=!1}=e.modifiers||{},r=e.value,o="object"===typeof r&&r.options||{passive:!0},a="function"===typeof r||"handleEvent"in r?r:r.handler,n=s?t:e.arg?document.querySelector(e.arg):window;n&&(n.addEventListener("scroll",a,o),t._onScroll=Object(t._onScroll),t._onScroll[i.context._uid]={handler:a,options:o,target:s?void 0:n})}function r(t,e,i){var s;if(!(null===(s=t._onScroll)||void 0===s?void 0:s[i.context._uid]))return;const{handler:r,options:o,target:a=t}=t._onScroll[i.context._uid];a.removeEventListener("scroll",r,o),delete t._onScroll[i.context._uid]}i.d(e,"a",(function(){return o}));const o={inserted:s,unbind:r};e["b"]=o},ff44:function(t,e,i){}}]); //# sourceMappingURL=LayoutHeaderNavBar~NewHomeHeaderNavBar.abf96873.js.map