const __vite__fileDeps=["shared/3j1fh/index-_04Sks9N.js","shared/3j1fh/vendor-wgE37vvX.js","shared/3j1fh/index-BSbFSSDG.css","shared/3j1fh/ButtonPushToMixButton-D6-Fett0.js","shared/3j1fh/ButtonState-m1cvswlN.js","shared/3j1fh/ButtonPlayVideo-Wx_df2su.js","shared/3j1fh/ButtonFavorite-C8VNNsFt.js","shared/3j1fh/ButtonFavorite-CYx4huGr.css","shared/3j1fh/BaseDiscountBubble-Bn_gyWLQ.js","shared/3j1fh/BaseDiscountBubble-BqJli_rl.css","shared/3j1fh/StampIconSvg-uWny6XRr.js","shared/3j1fh/StampItalyFlagSvg-B_XQh0Nt.js","shared/3j1fh/MixitPlusLogoSvg-BPLW94iE.js","shared/3j1fh/ProductStarsRating-DZ7CBfDR.js","shared/3j1fh/ProductStarsRating.vue_vue_type_style_index_0_lang-BbaOf1B0.js","shared/3j1fh/ProductStarsRating-Bw3hqSE6.css","shared/3j1fh/ProductItemToast-DZYIrMNb.js","shared/3j1fh/ProductItemToast-BIWq1ieD.css"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]); import{o as le,b as se,u as ce,h as ue,n as b,a as l,A as de}from"./index-_04Sks9N.js";import{o as n,e as a,q as me,s as pe,D as w,i as R,P as _e,y as he,I as ze,A as ge,M as B,k as c,m as i,f as r,g as _,v as m,t as d,l as M,C as fe,F as P,B as C,J as j,n as k,h as s}from"./vendor-wgE37vvX.js";import{s as xe}from"./striptags-BpeLwlJ7.js";import{p as ve}from"./propertiesSvgs-BfofcfUi.js";const ye={},ke={class:"placeholder relative overflow-hidden"};function be(o,h){return n(),a("div",ke,[me(o.$slots,"default",{},void 0,!0)])}const g=le(ye,[["render",be],["__scopeId","data-v-dc6d348c"]]);function q(o){const h=o;h.__i18n=h.__i18n||[],h.__i18n.push({locale:"",resource:{cs:{composition:t=>{const{normalize:e}=t;return e(["SloĹľenĂ"])},from:t=>{const{normalize:e}=t;return e(["Od"])},mixit_plus_price:t=>{const{normalize:e}=t;return e(["cena"])},own_piece_of_italy:t=>{const{normalize:e}=t;return e(["ZaĹľijte vlastnĂ kousek Itálie"])},play_video:t=>{const{normalize:e}=t;return e(["ShlĂ©dnout video"])},selected_chocolate_products:t=>{const{normalize:e}=t;return e(["Jsem u ledu! Z dĹŻvodu vysokĂ˝ch teplot mÄ› poslali do chládku."])},voucher_permalink:t=>{const{normalize:e}=t;return e(["mixit-plus-na-12-mesicu"])}},sk:{composition:t=>{const{normalize:e}=t;return e(["ZloĹľenie"])},from:t=>{const{normalize:e}=t;return e(["Od"])},mixit_plus_price:t=>{const{normalize:e}=t;return e(["cena"])},own_piece_of_italy:t=>{const{normalize:e}=t;return e(["ZaĹľite vlastnĂ˝ kĂşsok Talianska"])},play_video:t=>{const{normalize:e}=t;return e(["PozrieĹĄ video"])},selected_chocolate_products:t=>{const{normalize:e}=t;return e(["Som v chládku! :( ÄŚokoláda má kvĂ´li vysokĂ˝m teplotám dovolenku."])},voucher_permalink:t=>{const{normalize:e}=t;return e(["mixit-plus-na-12-mesiacov"])}},pl:{composition:t=>{const{normalize:e}=t;return e(["SkĹ‚ad"])},from:t=>{const{normalize:e}=t;return e(["Od"])},mixit_plus_price:t=>{const{normalize:e}=t;return e(["cena"])},own_piece_of_italy:t=>{const{normalize:e}=t;return e(["SprĂłbuj prawdziwie wĹ‚oskiego smaku"])},play_video:t=>{const{normalize:e}=t;return e(["Zobacz wideo"])},selected_chocolate_products:t=>{const{normalize:e}=t;return e(["Czekam w chĹ‚odzie! :( Ze wzglÄ™du na upaĹ‚y, czekolada zostaĹ‚a wysĹ‚ana na przymusowy urlop."])},voucher_permalink:t=>{const{normalize:e}=t;return e(["mixit-plus-na-12-miesiecy"])}},hu:{composition:t=>{const{normalize:e}=t;return e(["Ă–sszetevĹ‘k"])},from:t=>{const{normalize:e}=t;return e(["Ft-tĂłl"])},mixit_plus_price:t=>{const{normalize:e}=t;return e(["ár"])},own_piece_of_italy:t=>{const{normalize:e}=t;return e(["Egy falat Olaszország"])},play_video:t=>{const{normalize:e}=t;return e(["NĂ©zd meg a videĂłt"])},selected_chocolate_products:t=>{const{normalize:e}=t;return e(["Hidegre helyezve! :( A magas hĹ‘mĂ©rsĂ©kletek miatt a csokoládĂ©s termĂ©kek szabadságon vannak."])},voucher_permalink:t=>{const{normalize:e}=t;return e(["mixit-plusz-12-honapra"])}},de:{composition:t=>{const{normalize:e}=t;return e(["Zutaten"])},from:t=>{const{normalize:e}=t;return e(["Von"])},mixit_plus_price:t=>{const{normalize:e}=t;return e(["preis"])},own_piece_of_italy:t=>{const{normalize:e}=t;return e(["Erlebe Dein eigenes StĂĽck Italien"])},play_video:t=>{const{normalize:e}=t;return e(["Video ansehen"])},selected_chocolate_products:t=>{const{normalize:e}=t;return e(["Ich liege auf Eis! :( Wegen der hohen Temperaturen haben sie mich in die KĂĽhlung geschickt."])},voucher_permalink:t=>{const{normalize:e}=t;return e(["Mixit-plus Mitgliedschaft fĂĽr 12 Monate"])}},at:{composition:t=>{const{normalize:e}=t;return e(["Zutaten"])},from:t=>{const{normalize:e}=t;return e(["Von"])},mixit_plus_price:t=>{const{normalize:e}=t;return e(["preis"])},own_piece_of_italy:t=>{const{normalize:e}=t;return e(["Erlebe Dein eigenes StĂĽck Italien"])},play_video:t=>{const{normalize:e}=t;return e(["Video ansehen"])},selected_chocolate_products:t=>{const{normalize:e}=t;return e(["Ich liege auf Eis! :( Wegen der hohen Temperaturen haben sie mich in die KĂĽhlung geschickt."])},voucher_permalink:t=>{const{normalize:e}=t;return e(["Mixit-plus Mitgliedschaft fĂĽr 12 Monate"])}},ro:{composition:t=>{const{normalize:e}=t;return e(["Ingrediente"])},from:t=>{const{normalize:e}=t;return e(["De la"])},mixit_plus_price:t=>{const{normalize:e}=t;return e(["preČ›"])},own_piece_of_italy:t=>{const{normalize:e}=t;return e(["DescoperÄ o bucaČ›icÄ de Italia"])},play_video:t=>{const{normalize:e}=t;return e(["UrmÄreČ™te clipul"])},selected_chocolate_products:t=>{const{normalize:e}=t;return e(["La rece! :( Din cauza temperaturilor Ă®nalte produsele cu ciocolatÄ sunt Ă®n concediu."])},voucher_permalink:t=>{const{normalize:e}=t;return e(["mixit-plus-de-12-luni"])}}}})}const we={class:"product-item relative d-flex flex-col flex-grow-1 overflow-hidden"},Pe={class:"px-4 px-sm-3 px-md-4 pt-4 pt-sm-3 pt-md-4"},Ce={class:"catalog__grid-img mb-4"},De=["src"],Ie={key:1,class:"stamp-holder mx-4 mx-sm-3 mx-md-4"},Ee={class:"special-stamp stamp-grid pr-3 py-1 rounded-pill"},Se={class:"stamp-box"},Te={class:"flag-mask"},Le={class:"m-0 font-bold d-inline-block"},Ve={class:"px-4 px-sm-3 px-md-4 d-flex flex-col flex-fill"},Oe={key:0,class:"mb-2 d-md-block d-none",style:{height:"24px"}},Ae={class:"mb-2 text-lg font-weight-medium font-family-base"},Re={class:"product-item__description collapse text-sm text-muted show mb-n1"},Be={key:0,class:"text-info"},Me=["innerHTML"],je={class:"mt-xl-4 mt-3 d-flex flex-row items-center"},qe={key:0,class:"col-auto mt-1 ml-auto d-none d-md-block"},Fe=r("i",{class:"mi-info"},null,-1),$e=[Fe],Ze={class:"col-6 d-flex flex-col justify-center pt-2"},Ne={class:"mb-0 d-flex text-lg"},Ue={class:"text-nowrap mr-2 mr-sm-1 mr-md-2 mr-xl-3 mr-xxl-4"},We={key:1},Ge={key:2,class:"small text-nowrap text-muted"},He={key:0,class:"mb-0 d-flex text-lg"},Je={class:"line-through text-danger text-sm text-nowrap mr-2 mr-sm-1 mr-md-2 mr-xl-3 mr-xxl-4"},Ke={key:1,class:"small mb-0 text-muted"},Xe={key:2,class:"d-flex items-center pt-2 px-4 px-sm-3 px-md-4 flex-wrap bg-primary-450"},Ye={class:"mb-0 d-flex text-lg mb-1"},Qe={class:"text-nowrap mr-1"},et={class:"text-nowrap"},tt=r("span",{class:"d-flex border border-primary border-width-2 text-primary p-0 rounded-circle ml-2"},[r("i",{class:"mi-question icon-12px"})],-1),F={__name:"ProductsCatalogGridItem",props:{product:{type:Object,required:!0},infoClickBehaviour:{type:String,default:"modal"},lazyLoad:{type:Boolean,required:!1}},setup(o){const h=s(()=>l(()=>import("./index-_04Sks9N.js").then(u=>u.X),__vite__mapDeps([0,1,2]))),t=s(()=>l(()=>import("./ButtonPushToMixButton-D6-Fett0.js"),__vite__mapDeps([3,1,0,2]))),e=s(()=>l(()=>import("./ButtonState-m1cvswlN.js"),__vite__mapDeps([4,0,1,2]))),y=s(()=>l(()=>import("./ButtonPlayVideo-Wx_df2su.js"),__vite__mapDeps([5,1]))),$=s(()=>l(()=>import("./ButtonFavorite-C8VNNsFt.js"),__vite__mapDeps([6,1,0,2,7]))),Z=s(()=>l(()=>import("./BaseDiscountBubble-Bn_gyWLQ.js"),__vite__mapDeps([8,0,1,2,9]))),N=s(()=>l(()=>import("./index-_04Sks9N.js").then(u=>u.Y),__vite__mapDeps([0,1,2]))),U=s(()=>l(()=>import("./StampIconSvg-uWny6XRr.js"),__vite__mapDeps([10,0,1,2]))),W=s(()=>l(()=>import("./StampItalyFlagSvg-B_XQh0Nt.js"),__vite__mapDeps([11,0,1,2]))),G=s(()=>l(()=>import("./MixitPlusLogoSvg-BPLW94iE.js"),__vite__mapDeps([12,0,1,2]))),H=s(()=>l(()=>import("./ProductStarsRating-DZ7CBfDR.js"),__vite__mapDeps([13,14,0,1,2,15]))),J=s(()=>l(()=>import("./ProductItemToast-DZYIrMNb.js"),__vite__mapDeps([16,1,17]))),K=se(),{getCurrentCustomer:z}=pe(K),p=o,D=w(),X=R(()=>{var u;return p.product.quantityDiscounts&&(!p.product.plusClubPrice||!((u=z.value)!=null&&u.inPlusClub))}),Y=_e(),{openModal:Q}=ce(),{t:f}=he(),I=w(""),ee=w({name:"productPath",params:{permalink:p.product.permalink}}),te=R(()=>p.product?p.product.properties.filter(u=>u.propertyType==="marketing"):[]),oe=async u=>{const{data:{product:x}}=await de.get(`products/${u}`);Q({id:"product-detail-modal",title:x.name,params:{product:x}})},re=()=>{I.value=xe(p.product.description).slice(0,140)},ie=async()=>{await(p.infoClickBehaviour==="modal"?oe(p.product.permalink):Y.push({name:"productPath",params:{permalink:p.product.permalink}}))};return ze(()=>{re()}),(u,x)=>{var S,T,L,V,O,A;const E=ge("router-link"),ne=B("tooltip"),ae=B("close-popper");return n(),a("article",we,[c(i(J),{class:"pt-3 px-3","toast-operation":D.value},null,8,["toast-operation"]),r("div",Pe,[r("div",Ce,[o.product.images.length>0?(n(),_(i(N),{key:0,placeholder:!0,"placeholder-height":"75","product-image-data":(S=o.product.images[0])==null?void 0:S.data,"img-class":"w-100 h-100","lazy-load":o.lazyLoad,width:"600",height:"450",alt:o.product.images[0].alt||o.product.name,sizes:"(min-width: 1200px) 25vw, (min-width: 992px) 20vw, (min-width: 600px) 35vw, (min-width: 500px) 50vw, 70vw"},null,8,["product-image-data","lazy-load","alt"])):(n(),a("img",{key:1,src:o.product.imageUrl,class:"w-100 h-100",loading:"lazy"},null,8,De))])]),o.product.hasDiscount||o.product.plusClubPrice!==null&&((T=i(z))!=null&&T.inPlusClub)?(n(),_(i(Z),{key:0,"price-with-discount":parseFloat(o.product.plusClubPrice!==null&&((L=i(z))!=null&&L.inPlusClub)?o.product.plusClubPrice:o.product.price),"price-without-discount":parseFloat(o.product.priceWithoutDiscount),currency:o.product.currency},null,8,["price-with-discount","price-without-discount","currency"])):m("",!0),o.product.name.includes("Premium")||o.product.name.includes("PrĂ©mium")?(n(),a("div",Ie,[r("div",Ee,[r("div",Se,[c(i(U),{class:"icon stamp-icon",width:"62",height:"62"}),r("div",Te,[c(i(W),{class:"icon",width:"25",height:"23"})])]),r("span",Le,d(i(f)("own_piece_of_italy")),1)])])):m("",!0),r("div",Ve,[o.product.starRating?(n(),_(i(H),{key:1,rating:o.product.starRating,"rating-sum":o.product.starRatingCommentsSum,"show-origin":!0,"add-class":"justify-xxl-start mb-2",theme:"light"},null,8,["rating","rating-sum"])):(n(),a("div",Oe)),r("h2",Ae,[c(E,{to:ee.value,class:"text-primary no-decoration stretched-link zindex-1"},{default:M(()=>[fe(d(o.product.name),1)]),_:1},8,["to"])]),r("div",Re,[o.product.state==="weather_too_hot"?(n(),a("span",Be,d(i(f)("selected_chocolate_products"))+" ",1)):m("",!0),r("span",{innerHTML:I.value},null,8,Me)]),r("div",je,[(n(!0),a(P,null,C(te.value,v=>j((n(),a("div",{key:v.id,class:"col-auto pl-0 pr-0 mr-2 mt-1 relative zindex-2"},[r("i",{class:k(`mi-${i(ve)(v.systemName)} icon-property mi-no-mx mi-lh-1`)},null,2)])),[[ne,{content:v.name,theme:"baseTooltip"}]])),128)),o.product.isIngredient?(n(),a("div",qe,[r("button",{id:"btn-close",type:"button",class:"btn btn-outline-warning p-1 rounded-circle relative zindex-2","data-toggle":"product-detail-modal","aria-label":"product info",onClick:ie},$e)])):m("",!0)]),r("footer",{class:k(["form-row mt-auto",o.product.plusClubPrice?"mb-1":"mb-5"])},[r("div",Ze,[r("p",Ne,[r("strong",Ue,[o.product.quantityDiscounts?(n(),a("span",{key:0,class:k({"line-through text-danger":o.product.plusClubPrice!==null&&((V=i(z))==null?void 0:V.inPlusClub)})},d(i(ue)(X.value?i(f)("from"):"",o.product.plusClubPrice,(O=i(z))==null?void 0:O.inPlusClub,o.product.quantityDiscounts[0].price,o.product.quantityDiscounts[o.product.quantityDiscounts.length-1].price,o.product.currency)),3)):(n(),a("span",We,d(i(b)(o.product.price,o.product.currency)),1)),o.product.weight>0&&(!o.product.quantityDiscounts||!o.product.hasDiscount)?(n(),a("span",Ge," /"+d(o.product.weight)+" g",1)):m("",!0)])]),o.product.hasDiscount&&(o.product.plusClubPrice===null||!((A=i(z))!=null&&A.inPlusClub))?(n(),a("p",He,[r("strong",Je,d(i(b)(o.product.priceWithoutDiscount,o.product.currency)),1)])):m("",!0),o.product.pricePerPortion?(n(),a("p",Ke," ("+d(parseFloat(o.product.pricePerPortion).toFixed(2))+" "+d(o.product.currency)+" / 100 g) ",1)):m("",!0)]),r("div",{class:k(["col-6 d-flex flex-col px-0 justify-center pt-2 zindex-2",{"mt-auto":o.product.hasDiscount}])},[!o.product.isIngredient&&o.product.state==="available"?j((n(),_(i(h),{key:0,product:o.product,"show-decrement-button":!0,onCartOperation:x[0]||(x[0]=v=>{D.value=v})},null,8,["product"])),[[ae]]):o.product.isIngredient&&o.product.state==="available"?(n(),_(i(t),{key:1,product:o.product,"icon-size":"20"},null,8,["product"])):(n(),_(i(e),{key:2,product:o.product,state:o.product.state},null,8,["product","state"]))],2)],2)]),o.product.plusClubPrice?(n(),a("div",Xe,[r("p",Ye,[r("strong",Qe,d(i(b)(o.product.plusClubPrice,o.product.currency)),1)]),c(E,{to:{name:"productPath",params:{permalink:i(f)("voucher_permalink")}},class:"d-flex justify-start items-center mb-1 no-decoration relative zindex-2"},{default:M(()=>[c(i(G),{width:"106",class:"mr-1 relative mt-1","plus-color":"#ffffff"}),r("span",et,d(i(f)("mixit_plus_price")),1),tt]),_:1},8,["to"])])):m("",!0),o.product.videoUrl?(n(),_(i(y),{key:3,class:"absolute position-left position-top m-2 m-md-3 m-lg-4","video-url":o.product.videoUrl},null,8,["video-url"])):m("",!0),o.product.isIngredient?m("",!0):(n(),_(i($),{key:4,id:o.product.id,"btn-class":"icon bg-white",class:"absolute position-top position-right fav-right zindex-2"},null,8,["id"]))])}}};typeof q=="function"&&q(F);const ot={class:"products-grid no-gutters justify-sm-center justify-md-start flex-col mt-2 mt-md-3 mt-lg-4 catalog__grid"},rt={class:"mb-4"},it={class:"pt-3 pt-xl-4 pb-2"},nt={__name:"ProductsCatalogGrid",props:{products:{type:Array,required:!0},infoClickBehaviour:{type:String,default:"modal"},isLoaded:{type:Boolean,required:!0}},setup(o){return(h,t)=>(n(),a("section",ot,[o.isLoaded?(n(!0),a(P,{key:0},C(o.products,(e,y)=>(n(),_(F,{key:e.id,class:"products-grid-item",product_index:y,product:e,"lazy-load":y>2,"info-click-behaviour":o.infoClickBehaviour},null,8,["product_index","product","lazy-load","info-click-behaviour"]))),128)):(n(),a(P,{key:1},C(3,e=>r("article",{key:e,class:"products-grid-item product-item relative d-flex flex-col flex-grow-1 p-4 p-sm-3 p-md-4 w-100"},[r("div",rt,[c(g,{class:"d-block rounded",style:{"padding-bottom":"75%"}})]),c(g,{class:"mb-2 rounded",style:{height:"24px",width:"130px"}}),c(g,{class:"mb-2 rounded",style:{height:"22px",width:"70%"}}),c(g,{class:"rounded",style:{height:"63px",width:"70%"}}),r("div",it,[c(g,{class:"rounded",style:{height:"35px"}})]),c(g,{class:"form-row mt-auto rounded mx-0",style:{height:"66px"}})])),64))]))}},ut=Object.freeze(Object.defineProperty({__proto__:null,default:nt},Symbol.toStringTag,{value:"Module"}));export{g as P,nt as _,ut as a};