PageSourceSearch

https://aquadevita.ru/_nuxt/BTDbu0uQ.js

js aquadevita.ru collected 2026-10-09 21:34:16 UTC 9,799 bytes, 1 lines download raw bytes

1import{e as K,b as P,f as E,_ as J}from"./C_VRLBnz.js";import{_ as O}from"./DOaOhO2r.js";import{d as R,a0 as L,c as T,J as i,L as r,u as n,a3 as X,a8 as G,U as e,M as f,N as Q,V as v,X as g,W as a}from"./ttsv_MrL.js";import{u as S}from"./CG_vieMf.js";const Y={class:"py-2 border-b border-gray-200"},Z={key:0,class:"flex"},tt={class:"w-24 h-24"},et={class:"w-full px-2"},st={class:"sm:flex flex-row gsp-2 justify-between"},nt={class:"text-gray-500 text-sm pt-2"},ot={class:"sm:block hidden text-sm justify-between text-right"},lt={key:0,class:"text-aqua-accent-green whitespace-nowrap"},it={class:"text-aqua-accent-green whitespace-nowrap"},rt={class:"text-base"},at={key:0,class:"font-normal text-xs"},ct={key:1,class:"text-gray-500 text-sm"},ut={key:0,class:"font-normal text-xs"},dt={class:"block sm:hidden text-sm justify-between"},pt={key:0,class:"text-aqua-accent-green whitespace-nowrap"},xt={class:"text-aqua-accent-green"},mt={class:"text-base"},gt={key:0,class:"font-normal text-xs"},wt={key:1,class:"text-gray-500 text-sm"},ft={key:0,class:"font-normal text-xs"},vt={class:"col-span-1 sm:flex hidden justify-between mt-2"},bt={class:"flex"},_t={class:"flex"},ht=["value"],kt={key:1,class:"w-full flex sm:hidden justify-between mt-2"},yt={class:"flex"},Ct=["value"],zt={key:2,id:"deleteAlert"},qt={class:"bg-white p-4 rounded-lg shadow-lg"},Mt={class:"flex justify-between mt-4"},Ft=R({__name:"Item",props:{vc:String,isWater:Boolean,favorites:Array},emits:["remCountItem","addCountItem","setCountItem","deleteItem","selectedItem","addFavorite","deleteFavorite"],async setup(A,{emit:N}){let w,b;const{refresh:V}=([w,b]=L(()=>K()),w=await w,b(),w),D=A,{vc:c,isWater:u,favorites:H}=D;[w,b]=L(()=>V()),await w,b();const p=N,x=T(!1);let _;_=P();const m=S(),s=()=>{var o,t;return u?(o=m==null?void 0:m.cart)==null?void 0:o.waters[c]:(t=m==null?void 0:m.cart)==null?void 0:t.products[c]},q=function(o,t){if(s().count>1){p("remCountItem",o,t);return}x.value=!0},M=function(o,t){p("addCountItem",o,t)},I=function(o,t,d){p("setCountItem",o,t,d)},U=function(o,t){p("deleteItem",o,t)},W=function(o,t,d){p("selectedItem",o,t,d)},$=function(o){const t={...o};t.id=t.product_id,p("addFavorite",t)},h=function(o){var d;const t=((d=_==null?void 0:_.user)==null?void 0:d.favorites)??[];return console.log(t),t==null?void 0:t.some(z=>z===o.product_id)},k=function(){return s().item.is_spec_price&&m.cart.total_water_count>=s().item.spec_price[1].count||s().item.old_price>0},B=function(){return s().item.is_spec_price,s().price},y=function(){return s().item.count},j=function(){return s().item.is_spec_price?s().item.spec_price[0].value*s().count:s().item.old_price*s().count},F=function(o){p("deleteFavorite",o)};return(o,t)=>{const d=E,z=J,C=O;return i(),r("li",Y,[n(x)?a("",!0):(i(),r("div",Z,[X(e("input",{"onUpdate:modelValue":t[0]||(t[0]=l=>s().selected=l),onClick:t[1]||(t[1]=l=>W(n(c),l,n(u))),id:"selectAll",name:"selectAll",type:"checkbox",class:"m-2 sm:text-base text-2xl sm:p-0 p-2 sm:right-auto right-2 absolute accent-aqua-accent-green text-aqua-accent-green focus:ring-0 focus:ring-offset-0"},null,512),[[G,s().selected]]),e("div",tt,[f(d,{format:"webp",height:"150",src:s().img,alt:s().title,class:"max-h-full mr-auto ml-auto"},null,8,["src","alt"])]),e("div",et,[e("div",st,[e("div",null,[f(z,{to:"/catalog/"+s().item.category.url_name+"/"+n(c),class:"underline sm:pr-0 pr-4 line-clamp-2 text-sm font-bold hover:underline"},{default:Q(()=>[v(g(s().title),1)]),_:1},8,["to"]),e("p",nt,"Арт.: "+g(n(c)),1)]),e("div",ot,[k()?(i(),r("p",lt," cо скидкой ")):a("",!0),e("p",it,[e("b",rt,[v(g(B()),1),f(C,{size:"xxs"}),y()>1?(i(),r("span",at)):a("",!0)])]),k()?(i(),r("p",ct,[v(" без: "+g(j()),1),f(C,{size:"xxs"}),y()>1?(i(),r("span",ut)):a("",!0)])):a("",!0)]),e("div",dt,[k()?(i(),r("p",pt," cо скидкой ")):a("",!0),e("p",xt,[e("b",mt,[v(g(B()),1),f(C,{size:"xxs"})]),y()>1?(i(),r("span",gt)):a("",!0),k()?(i(),r("span",wt,[v(" / без: "+g(j()),1),f(C,{size:"xxs"}),y()>1?(i(),r("span",ft)):a("",!0)])):a("",!0)])])]),e("div",vt,[e("div",bt,[e("button",{onClick:t[2]||(t[2]=l=>x.value=!0),class:"text-gray-700 block"},t[16]||(t[16]=[e("svg",{width:"30",height:"30",viewBox:"0 0 32 32",version:"1.1",xmlns:"https://www.w3.org/2000/svg","xmlns:xlink":"https://www.w3.org/1999/xlink"},[e("g",{id:"icomoon-ignore"}),e("path",{d:"M6.576 6.576c-5.205 5.205-5.205 13.643 0 18.849s13.643 5.205 18.849-0c5.206-5.206 5.206-13.643 0-18.849s-13.643-5.205-18.849 0zM24.67 24.67c-4.781 4.781-12.56 4.781-17.341 0s-4.781-12.56 0-17.341c4.781-4.781 12.56-4.781 17.341 0s4.78 12.56-0 17.341z",fill:"#000000"}),e("path",{d:"M10.722 9.969l-0.754 0.754 5.278 5.278-5.253 5.253 0.754 0.754 5.253-5.253 5.253 5.253 0.754-0.754-5.253-5.253 5.278-5.278-0.754-0.754-5.278 5.278z",fill:"#000000"})],-1)])),t[19]||(t[19]=e("br",null,null,-1)),h(s().item)?a("",!0):(i(),r("button",{key:0,onClick:t[3]||(t[3]=l=>$(s().item)),class:"ml-3 text-gray-700 block"},t[17]||(t[17]=[e("svg",{width:"30px",height:"30px",viewBox:"0 0 24 24",xmlns:"https://www.w3.org/2000/svg"},[e("path",{d:"M12 22.59l-9.2-9.12C.43 11.09.43 7.21 2.8 4.83a6.03 6.03 0 0 1 4.29-1.79c1.62 0 3.14.63 4.29 1.79l.62.62.62-.62a6.014 6.014 0 0 1 4.29-1.79c1.62 0 3.14.63 4.29 1.79 2.37 2.38 2.37 6.26 0 8.64L12 22.59zM7.09 4c-1.37 0-2.65.54-3.61 1.51-2 2.01-2 5.28 0 7.29L12 21.25l8.53-8.45c2-2.01 2-5.28 0-7.29A5.079 5.079 0 0 0 16.92 4c-1.37 0-2.65.54-3.61 1.51l-1.3 1.3-1.3-1.3C9.75 4.54 8.46 4.01 7.1 4z"}),e("path",{fill:"none",d:"M0 0h24v24H0z"})],-1)]))),h(s().item)?(i(),r("button",{key:1,onClick:t[4]||(t[4]=l=>F(s().item.product_id)),class:"ml-3 text-gray-700 block"},t[18]||(t[18]=[e("svg",{width:"30px",height:"30px",viewBox:"0 0 24 24",xmlns:"https://www.w3.org/2000/svg"},[e("path",{fill:"#f43f5e",d:"M12 22.59l-9.2-9.12C.43 11.09.43 7.21 2.8 4.83a6.03 6.03 0 0 1 4.29-1.79c1.62 0 3.14.63 4.29 1.79l.62.62.62-.62a6.014 6.014 0 0 1 4.29-1.79c1.62 0 3.14.63 4.29 1.79 2.37 2.38 2.37 6.26 0 8.64L12 22.59z"}),e("path",{fill:"none",d:"M0 0h24v24H0z"})],-1)]))):a("",!0),v(" "+g(n(H)),1)]),e("div",null,[e("div",_t,[e("button",{onClick:t[5]||(t[5]=l=>q(n(c),n(u))),class:"block w-[80px] bg-white rounded-l-lg text-aqua-accent-green border border-aqua-accent-green border-r-0 p-2 text-lg"}," - "),e("input",{value:s().count,onKeyup:t[6]||(t[6]=l=>I(l,n(c),n(u))),class:"block w-[80px] px-0 text-center text-aqua-accent-green border border-aqua-accent-green",type:"number"},null,40,ht),e("button",{onClick:t[7]||(t[7]=l=>M(n(c),n(u))),class:"block w-[80px] bg-white rounded-r-lg text-aqua-accent-green border border-aqua-accent-green border-l-0 p-2 text-lg"}," + ")])])])])])),n(x)?a("",!0):(i(),r("div",kt,[h(s().item)?a("",!0):(i(),r("button",{key:0,onClick:t[8]||(t[8]=l
1=>$(s().item)),class:"ml-3 text-gray-700 block"},t[20]||(t[20]=[e("svg",{width:"30px",height:"30px",viewBox:"0 0 24 24",xmlns:"https://www.w3.org/2000/svg"},[e("path",{d:"M12 22.59l-9.2-9.12C.43 11.09.43 7.21 2.8 4.83a6.03 6.03 0 0 1 4.29-1.79c1.62 0 3.14.63 4.29 1.79l.62.62.62-.62a6.014 6.014 0 0 1 4.29-1.79c1.62 0 3.14.63 4.29 1.79 2.37 2.38 2.37 6.26 0 8.64L12 22.59zM7.09 4c-1.37 0-2.65.54-3.61 1.51-2 2.01-2 5.28 0 7.29L12 21.25l8.53-8.45c2-2.01 2-5.28 0-7.29A5.079 5.079 0 0 0 16.92 4c-1.37 0-2.65.54-3.61 1.51l-1.3 1.3-1.3-1.3C9.75 4.54 8.46 4.01 7.1 4z"}),e("path",{fill:"none",d:"M0 0h24v24H0z"})],-1)]))),h(s().item)?(i(),r("button",{key:1,onClick:t[9]||(t[9]=l=>F(s().item.product_id)),class:"ml-3 text-gray-700 block"},t[21]||(t[21]=[e("svg",{width:"30px",height:"30px",viewBox:"0 0 24 24",xmlns:"https://www.w3.org/2000/svg"},[e("path",{fill:"#f43f5e",d:"M12 22.59l-9.2-9.12C.43 11.09.43 7.21 2.8 4.83a6.03 6.03 0 0 1 4.29-1.79c1.62 0 3.14.63 4.29 1.79l.62.62.62-.62a6.014 6.014 0 0 1 4.29-1.79c1.62 0 3.14.63 4.29 1.79 2.37 2.38 2.37 6.26 0 8.64L12 22.59z"}),e("path",{fill:"none",d:"M0 0h24v24H0z"})],-1)]))):a("",!0),e("div",null,[e("div",yt,[e("button",{onClick:t[10]||(t[10]=l=>q(n(c),n(u))),class:"block w-[80px] bg-white rounded-l-lg text-aqua-accent-green border border-aqua-accent-green border-r-0 p-2 text-lg"}," - "),e("input",{value:s().count,onKeyup:t[11]||(t[11]=l=>I(l,n(c),n(u))),class:"block w-[80px] px-0 text-center text-aqua-accent-green border border-aqua-accent-green",type:"number"},null,40,Ct),e("button",{onClick:t[12]||(t[12]=l=>M(n(c),n(u))),class:"block w-[80px] bg-white rounded-r-lg text-aqua-accent-green border border-aqua-accent-green border-l-0 p-2 text-lg"}," + ")])]),e("button",{onClick:t[13]||(t[13]=l=>x.value=!0),class:"text-gray-700 block"},t[22]||(t[22]=[e("svg",{width:"30",height:"30",viewBox:"0 0 32 32",version:"1.1",xmlns:"https://www.w3.org/2000/svg","xmlns:xlink":"https://www.w3.org/1999/xlink"},[e("g",{id:"icomoon-ignore"}),e("path",{d:"M6.576 6.576c-5.205 5.205-5.205 13.643 0 18.849s13.643 5.205 18.849-0c5.206-5.206 5.206-13.643 0-18.849s-13.643-5.205-18.849 0zM24.67 24.67c-4.781 4.781-12.56 4.781-17.341 0s-4.781-12.56 0-17.341c4.781-4.781 12.56-4.781 17.341 0s4.78 12.56-0 17.341z",fill:"#000000"}),e("path",{d:"M10.722 9.969l-0.754 0.754 5.278 5.278-5.253 5.253 0.754 0.754 5.253-5.253 5.253 5.253 0.754-0.754-5.253-5.253 5.278-5.278-0.754-0.754-5.278 5.278z",fill:"#000000"})],-1)]))])),n(x)?(i(),r("div",zt,[e("div",qt,[t[23]||(t[23]=e("div",{class:"flex justify-between"},[e("h2",{class:"text-xl font-bold"},"Удалить товар?")],-1)),t[24]||(t[24]=e("p",{class:"text-gray-500"},"Вы уверены, что хотите удалить этот товар из корзины?",-1)),e("div",Mt,[e("button",{onClick:t[14]||(t[14]=l=>U(n(c),n(u))),class:"bg-aqua-accent-green text-white px-4 py-2 rounded-lg"},"Да"),e("button",{onClick:t[15]||(t[15]=l=>x.value=!1),class:"bg-gray-200 text-gray-700 px-4 py-2 rounded-lg"},"Нет")])])])):a("",!0)])}}});export{Ft as _};

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.