1import{L as o,a as i}from"./index-e3a5a1c2.js";import{L as l}from"./ProductPriceMini-1e9e88f5.js";import{L as d}from"./RatingStars-1b7d358e.js";import{L as u}from"./LazyImage-b08e977d.js";import{n}from"./vendor-splide-d9a079dc.js";import _ from"./Notification-ad0dfeac.js";import"./vendor-a9303273.js";import"./vendor-vue-15488850.js";import"./vendor-pswp-a811abc6.js";import"./storage-cbd59dc5.js";import"./integrations-segmentstream-d01b6c8e.js";import"./locales-ru-bba83fc0.js";import"./locales-cn-79b85608.js";import"./config-mapping-47fd6e48.js";import"./vendor-lodash-59d95206.js";import"./vendor-date-fns-8fd1b05b.js";import"./svg-icons-1599cbf9.js";import"./Picture-5cc49175.js";const s=Object.freeze({DIV:"div",A:"a"}),p={name:"ProductTileBundle",components:{LeProductPriceMini:l,LeRatingStars:d,LeLazyImage:u,LeButton:o,LeIcon:i},props:{product:{type:Object,required:!0}},computed:{containerTag(){return this.product.noLongerAvailable?s.DIV:s.A},containerHref(){return this.containerTag===s.A?this.product.url:null},containerClass(){return{"product-tile-bundle__container--link":this.containerTag===s.A}},productTileClasses(){return{"product-tile-bundle--out-of-stock":this.product.isOutOfStock}},markers(){var t;const a=[];return(t=this.product.appliedMarkers)==null||t.forEach(r=>{a.push({key:`${this.productId}-${r.ui_name}`,src:r.imageUrl,class:["product-tile-bundle__marker-image",{"product-tile-bundle__marker-image--special":r.isSpecial}],ui_name:r.ui_name})}),a},rating(){return{stars:this.product.rating}},isPriceVisible(){return this.product.price&&!this.product.isOutOfStock},localCurrency(){return this.product.localCurrency||{}}}};var m=function(){var t=this,r=t._self._c;return r("div",{staticClass:"product-tile-bundle",class:t.productTileClasses},[r(t.containerTag,{tag:"component",staticClass:"product-tile-bundle__container",class:t.containerClass,attrs:{href:t.containerHref}},[t.markers.length?r("span",{staticClass:"product-tile-bundle__marker-wrapper"},t._l(t.markers,function(e){return r("img",{key:e.key,class:e.class,attrs:{alt:e.ui_name,title:e.ui_name,src:e.src}})}),0):t._e(),t._v(" "),r("div",{staticClass:"product-tile-bundle__image"},[r("LeLazyImage",{attrs:{src:t.product.imageUrl,alt:t.product.displayName,fallback:t.product.fallbackImageUrl,imgAutoHeight:""}})],1),t._v(" "),r("div",{staticClass:"product-tile-bundle__description"},[r("div",{staticClass:"product-tile-bundle__brand"},[t._v(t._s(t.product.brand))]),t._v(" "),r("div",{staticClass:"product-tile-bundle__title"},[t._v(` 2 `+t._s(t.product.displayName)+` 3 `)]),t._v(" "),r("div",{staticClass:"product-tile-bundle__title"},[t._v(` 4 `+t._s(t.product.skuDisplayName)+` 5 `)]),t._v(" "),r("div",{staticClass:"product-tile-bundle__rating"},[r("LeRatingStars",{attrs:{rating:t.rating}})],1),t._v(" "),t.product.noLongerAvailable?t._e():r("div",{staticClass:"product-tile-bundle__price-container"},[t.isPriceVisible?r("LeProductPriceMini",{staticClass:"product-tile-bundle__price",attrs:{price:t.product.price,priceAsString:t.product.priceAsString,priceOld:t.product.rawPrice,priceOldAsString:t.product.rawPriceAsString,discountPercent:t.product.discountPercent,showPrefix:!t.product.isOnePriceForAllSkus,localCurrency:t.localCurrency}}):t._e(),t._v(" "),t.product.isOutOfStock?r("div",{staticClass:"product-tile-bundle__price"},[t._v(` 6 `+t._s(t.$t("base:text.outOfStock"))+` 7 `)]):t._e()],1)])])],1)},v=[],b=n(p,m,v,!1,null,null,null,null);const C=b.exports;const f={name:"AddBundleToCartModal",components:{LeButton:o,LeIcon:i,ProductTileBundle:C,LeNotification:_},props:{payload:{type:Object,required:!0}},computed:{hasErrors(){return!!this.payload.hasErrors},goToCartButtonTitle(){return this.hasError?this.$t("base:button.goToCart"):this.$t("base:text.checkoutOrder")},errors(){return this.payload.errors||[]},products(){return this.payload.products||[]},total(){return this.payload.total||0}},mounted(){this.$emit("modalContentLoaded")}};var h=function(){var t=this,r=t._self._c;return r("div",{staticClass:"letu-modal add-bundle-to-cart"},[r("div",{staticClass:"letu-modal__title"},[t.hasErrors?[t._v(` 8 `+t._s(t.$t("base:text.addedProductToCartError"))+` 9 `)]:[t._v(t._s(t.$t("base:text.bundleAddedToCart")))]],2),t._v(" "),r("div",{staticClass:"letu-modal__body"},[r("div",{staticClass:"row"},[r("div",{staticClass:"col-xs-12 add-bundle-to-cart__container"},[t.hasErrors?t._l(t.errors,function(e,c){return r("LeNotification",{key:`errorMessage-${c}`,attrs:{type:"error"}},[t._v(` 10 `+t._s(e.message)+` 11 `)])}):[r("div",{staticClass:"add-bundle-to-cart__products"},t._l(t.products,function(e){return r("ProductTileBundle",{key:e.id,staticClass:"add-bundle-to-cart__product",attrs:{product:e}})}),1),t._v(" "),r("div",{staticClass:"add-bundle-to-cart__total-container"},[r("LeIcon",{attrs:{iconClass:"add-bundle-to-cart__icon-equal",name:"equal"}}),t._v(" "),r("div",{staticClass:"add-bundle-to-cart__total",domProps:{innerHTML:t._s(t.total)}})],1)],t._v(" "),r("div",{staticClass:"add-bundle-to-cart__buttons"},[r("LeButton",{staticClass:"add-bundle-to-cart__button",attrs:{isFluid:"",href:"/cart"}},[t._v(` 12 `+t._s(t.goToCartButtonTitle)+` 13 `)]),t._v(" "),r("LeButton",{staticClass:"add-bundle-to-cart__button",attrs:{isFluid:"",theme:"secondary"},on:{click:t.$modal.close}},[t._v(` 14 `+t._s(t.$t("base:text.continueBuy"))+` 15 `)])],1)],2)])])])},g=[],y=n(f,h,g,!1,null,null,null,null);const z=y.exports;export{z as default}; 16//# sourceMappingURL=AddBundleToCartModal-279e08e8.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.