import{u as C,n as v,i as K,w as b,g as D,A as N}from"./index-BRMV7KFd.js";import B from"./ButtonPlayVideo-B5Mt6R4e.js";import T from"./ButtonFavorite-C2GbfENc.js";import k from"./ButtonState-CyOwBnne.js";import j from"./BaseDiscountBubble-CWBuz4Zd.js";import{g as S}from"./propertiesSvgs-DIjf9FvC.js";import{y as F,i as L,A as V,M as E,o as r,e as i,f as n,g as a,l as d,k as u,C as f,t as l,r as x,m as c,v as _,F as I,B as $,J as A}from"./vendor-CI5NvTnj.js";function y(o){const s=o;s.__i18n=s.__i18n||[],s.__i18n.push({locale:"",resource:{cs:{good_deeds_succeed:e=>{const{normalize:t}=e;return t(["Podařilo se"])},link_to_club:e=>{const{normalize:t}=e;return t(["Pouze pro Mixit Klub"])},link_to_club_phone:e=>{const{normalize:t}=e;return t(["Pro Klub"])},look_after:e=>{const{normalize:t}=e;return t(["Pohlídat"])},mix_me:e=>{const{normalize:t}=e;return t(["Namixuj si mě"])},play_video:e=>{const{normalize:t}=e;return t(["Shlédnout video"])},revive_me:e=>{const{normalize:t}=e;return t(["Oživ mě"])},selected_chocolate_products:e=>{const{normalize:t}=e;return t(["Jsem u ledu! Z důvodu vysokých teplot mě poslali do chládku."])},want_to_see:e=>{const{normalize:t}=e;return t(["Chci se kouknout"])}},sk:{good_deeds_succeed:e=>{const{normalize:t}=e;return t(["Podarilo sa"])},link_to_club:e=>{const{normalize:t}=e;return t(["Iba pre Mixit klub"])},link_to_club_phone:e=>{const{normalize:t}=e;return t(["Pre Klub"])},look_after:e=>{const{normalize:t}=e;return t(["Postrážiť"])},mix_me:e=>{const{normalize:t}=e;return t(["Namixuj si ma"])},play_video:e=>{const{normalize:t}=e;return t(["Pozrieť video"])},revive_me:e=>{const{normalize:t}=e;return t(["Oživ ma"])},selected_chocolate_products:e=>{const{normalize:t}=e;return t(["Som v chládku! :( Čokoláda má kvôli vysokým teplotám dovolenku."])},want_to_see:e=>{const{normalize:t}=e;return t(["Chcem sa pozrieť"])}},pl:{good_deeds_succeed:e=>{const{normalize:t}=e;return t(["Udało się"])},link_to_club:e=>{const{normalize:t}=e;return t(["Tylko w Klubie Mixit"])},link_to_club_phone:e=>{const{normalize:t}=e;return t(["Dla Klubu"])},look_after:e=>{const{normalize:t}=e;return t(["Obserwuj"])},mix_me:e=>{const{normalize:t}=e;return t(["Namixuj"])},play_video:e=>{const{normalize:t}=e;return t(["Zobacz wideo"])},revive_me:e=>{const{normalize:t}=e;return t(["Wskrześ mnie"])},selected_chocolate_products:e=>{const{normalize:t}=e;return t(["Czekam w chłodzie! :( Ze względu na upały, czekolada została wysłana na przymusowy urlop."])},want_to_see:e=>{const{normalize:t}=e;return t(["Chcę zobaczyć"])}},hu:{good_deeds_succeed:e=>{const{normalize:t}=e;return t(["Sikeres volt"])},link_to_club:e=>{const{normalize:t}=e;return t(["Csak a Mixit Klub tagjainak"])},link_to_club_phone:e=>{const{normalize:t}=e;return t(["Klub számára"])},look_after:e=>{const{normalize:t}=e;return t(["Figyel"])},mix_me:e=>{const{normalize:t}=e;return t(["Keverj össze"])},play_video:e=>{const{normalize:t}=e;return t(["Nézd meg a videót"])},revive_me:e=>{const{normalize:t}=e;return t(["Támassz fel"])},selected_chocolate_products:e=>{const{normalize:t}=e;return t(["Hidegre helyezve! :( A magas hőmérsékletek miatt a csokoládés termékek szabadságon vannak."])},want_to_see:e=>{const{normalize:t}=e;return t(["Megnézem"])}},de:{good_deeds_succeed:e=>{const{normalize:t}=e;return t(["Es hat geklappt"])},link_to_club:e=>{const{normalize:t}=e;return t(["Nur für den Mixit Klub"])},link_to_club_phone:e=>{const{normalize:t}=e;return t(["Für den Klub"])},look_after:e=>{const{normalize:t}=e;return t(["Beobachten"])},mix_me:e=>{const{normalize:t}=e;return t(["Mix mich"])},play_video:e=>{const{normalize:t}=e;return t(["Video ansehen"])},revive_me:e=>{const{normalize:t}=e;return t(["Erwecke mich"])},selected_chocolate_products:e=>{const{normalize:t}=e;return t(["Ich liege auf Eis! :( Wegen der hohen Temperaturen haben sie mich in die Kältekammer geschickt."])},want_to_see:e=>{const{normalize:t}=e;return t(["Jetzt entdecken!"])}},at:{good_deeds_succeed:e=>{const{normalize:t}=e;return t(["Es hat geklappt"])},link_to_club:e=>{const{normalize:t}=e;return t(["Nur für den Mixit Klub"])},link_to_club_phone:e=>{const{normalize:t}=e;return t(["Für den Klub"])},look_after:e=>{const{normalize:t}=e;return t(["Beobachten"])},mix_me:e=>{const{normalize:t}=e;return t(["Mix mich"])},play_video:e=>{const{normalize:t}=e;return t(["Video ansehen"])},revive_me:e=>{const{normalize:t}=e;return t(["Erwecke mich"])},selected_chocolate_products:e=>{const{normalize:t}=e;return t(["Ich liege auf Eis! :( Wegen der hohen Temperaturen haben sie mich in die Kältekammer geschickt."])},want_to_see:e=>{const{normalize:t}=e;return t(["Jetzt entdecken!"])}},ro:{good_deeds_succeed:e=>{const{normalize:t}=e;return t(["Reușită"])},link_to_club:e=>{const{normalize:t}=e;return t(["Doar pentru Clubul Mixit"])},link_to_club_phone:e=>{const{normalize:t}=e;return t(["Pentru Club"])},look_after:e=>{const{normalize:t}=e;return t(["Notifică"])},mix_me:e=>{const{normalize:t}=e;return t(["Amestecă-mă"])},play_video:e=>{const{normalize:t}=e;return t(["Urmărește clipul"])},revive_me:e=>{const{normalize:t}=e;return t(["Învie-mă"])},selected_chocolate_products:e=>{const{normalize:t}=e;return t(["La rece! :( Din cauza temperaturilor înalte produsele cu ciocolată sunt în concediu."])},want_to_see:e=>{const{normalize:t}=e;return t(["Vreau să văd"])}}}})}const R={class:"product-item relative d-flex flex-col flex-grow-1 p-4"},U={class:"row"},W={class:"col-6 col-sm-7 pl-xl-6 d-flex flex-col static order-1"},J={class:"order-0 pb-1 pb-sm-2 mb-auto mb-lg-1"},O={class:"text-sm d-none d-lg-block relative zindex-2 order-2"},H={key:0,class:"text-info"},Z=["innerHTML"],q={class:"row items-center mt-n1 mb-lg-4 order-1"},G={class:"col-12 col-sm-7 col-md d-flex flex-col justify-center pt-1"},Q={class:"mb-0 d-flex text-lg"},X={class:"text-nowrap mr-3 mr-lg-5 mr-lg-6"},Y={class:"text-nowrap text-muted"},ee={class:"mb-0 d-flex text-lg"},te={key:0,class:"line-through text-danger text-nowrap mr-2 mr-sm-1 mr-md-2 mr-xl-3 mr-xxl-4"},oe={class:"small mb-0 d-none d-sm-block text-muted"},ne={key:0,class:"col-auto pt-lg-1 product-item__favourite"},re={class:"col-sm-auto pt-1 d-none d-md-block"},ie=n("i",{class:"mi-info icon-16px"},null,-1),le=[ie],ae={class:"col-12 col-sm-5 col-md-auto pt-1 d-flex flex-col"},ce={key:3,class:"d-flex flex-col"},se=n("i",{class:"mi-mix icon-18px mr-3 mr-sm-2 d-none d-lg-block"},null,-1),me={class:"d-inline"},de={key:4,class:"d-flex flex-col"},ue={class:"d-inline px-4"},_e={class:"d-none d-sm-flex items-center justify-between mt-3 mt-lg-auto order-3"},ze={class:"form-row list-unstyled"},he={class:"stretched-link"},pe={class:"col-6 col-sm-5 pr-xl-0 order-0"},ke=["src","alt"],ge={__name:"LandingPageListProduct",props:{product:{type:Object,required:!0},hLevel:{type:String,default:"h2",validator:o=>["h1","h2","h3","h4","h5","h6"].includes(o)},isRetro:{type:Boolean,default:!1}},setup(o){const{openModal:s}=C(),{t:e}=F(),t=o,w=L(()=>t.product?t.product.properties.filter(z=>z.propertyType==="marketing"):[]),P=async z=>{const{data:{product:m}}=await N.get(`products/${z}`);s({id:"product-detail-modal",title:m.name,params:{product:m}})};return(z,m)=>{var g;const h=V("router-link"),M=E("tooltip");return r(),i("article",R,[n("div",U,[n("div",W,[n("div",J,[(r(),a(x(o.hLevel),{class:"product-item__title h3 mb-0 font-weight-medium font-family-base"},{default:d(()=>[u(h,{to:{name:"productPath",params:{permalink:o.product.permalink}},class:"stretched-link text-primary"},{default:d(()=>[f(l(o.product.name),1)]),_:1},8,["to"])]),_:1}))]),n("div",O,[o.product.state==="weather_too_hot"?(r(),i("span",H,l(c(e)("selected_chocolate_products"))+" ",1)):_("",!0),n("span",{innerHTML:o.product.description},null,8,Z)]),n("div",q,[n("div",G,[n("p",Q,[n("strong",X,l(c(v)(o.product.price,o.product.currency)),1),n("span",Y,l(o.product.weight)+" g",1)]),n("p",ee,[o.product.hasDiscount?(r(),i("strong",te,l(c(v)(o.product.priceWithoutDiscount,o.product.currency)),1)):_("",!0)]),n("p",oe," ("+l((o.product.price/o.product.weight*100).toFixed(2))+" "+l(o.product.currency)+" / 100 g) ",1)]),o.product.isIngredient?_("",!0):(r(),i("div",ne,[u(T,{id:o.product.id,"btn-class":"stretched-link bg-white border-0"},null,8,["id"])])),n("div",re,[n("button",{type:"button",class:"btn btn-outline-warning p-1 stretched-link rounded-circle","data-toggle":"product-detail-modal","aria-label":"product info",onClick:m[0]||(m[0]=p=>P(o.product.permalink))},le)]),n("div",ae,[!o.product.isIngredient&&o.product.state==="available"?(r(),a(K,{key:0,product:o.product},null,8,["product"])):o.product.isIngredient&&o.product.state==="available"?(r(),a(h,{key:1,to:{name:"productPath",params:{permalink:o.product.permalink}},class:"btn btn-gradient btn-success py-3 px-2 p-sm-2 font-weight-medium stretched-link rounded-pill"},{default:d(()=>[f(l(c(e)("want_to_see")),1)]),_:1},8,["to"])):o.product.state==="succeed"||o.product.state==="only_for_club"||o.product.state==="weather_too_hot"?(r(),a(k,{key:2,product:o.product,state:o.product.state},null,8,["product","state"])):o.product.state==="hidden"&&!o.isRetro?(r(),i("div",ce,[u(k,{product:o.product,"added-class":"zindex-1 relative mb-2",state:"revive_me",stretched:!1},null,8,["product"]),u(h,{to:{name:"mixesPath",params:{permalink:c(b)("path.own_musli")}},class:"btn btn-gradient btn-warning py-3 px-2 p-sm-2 font-weight-medium zindex-1 text-white rounded-pill"},{default:d(()=>[se,n("span",me,l(c(e)("mix_me")),1)]),_:1},8,["to"])])):o.product.state==="hidden"&&o.isRetro?(r(),i("div",de,[u(h,{to:{name:"mixesPath",params:{permalink:c(b)("path.own_musli")}},class:"btn btn-gradient btn-retro-2 py-3 px-2 p-sm-2 font-weight-medium zindex-1 text-white rounded-pill"},{default:d(()=>[n("span",ue,l(c(e)("mix_me")),1)]),_:1},8,["to"])])):(r(),a(k,{key:5,product:o.product,state:"look_after"},null,8,["product"]))])]),n("footer",_e,[n("ul",ze,[(r(!0),i(I,null,$(w.value,p=>(r(),i("li",{key:p.id,class:"col-auto pt-1"},[A((r(),i("div",he,[(r(),a(x(c(S)(p.systemName)),{class:"icon",width:"30",height:"30"}))])),[[M,{content:p.name,theme:"baseTooltip"}]])]))),128))])])]),n("div",pe,[o.product.images.length>0?(r(),a(D,{key:0,"product-image-data":(g=o.product.images[0])==null?void 0:g.data,"img-class":"catalog__list-img mb-0 flex-grow-1",alt:o.product.name,sizes:"(min-width: 1200px) 25vw, (min-width: 600px) 30vw, (min-width: 500px) 30vw, 50vw"},null,8,["product-image-data","alt"])):(r(),i("img",{key:1,src:o.product.imageUrl,alt:o.product.name,class:"embed-responsive-item image-cover",loading:"lazy"},null,8,ke)),o.product.hasDiscount?(r(),a(j,{key:2,"price-with-discount":parseFloat(o.product.price),"price-without-discount":parseFloat(o.product.priceWithoutDiscount),currency:o.product.currency},null,8,["price-with-discount","price-without-discount","currency"])):_("",!0)])]),o.product.videoUrl?(r(),a(B,{key:0,class:"absolute position-left position-top m-2 m-md-3 m-lg-4","video-url":o.product.videoUrl},null,8,["video-url"])):_("",!0)])}}};typeof y=="function"&&y(ge);export{ge as _};