1import{_ as je}from"./pqzkP1CQ.js";import{d as P,h as i,f as t,e as r,g as e,i as G,b as C,j as g,c as $,D as te,r as R,x as k,o as n,_ as me,E as De,y as Se,A as ke,F as D,v as E,t as I,G as _e,l as K,B as Y,H as Fe,u as Ce,w as Ge,I as Oe,J as re,m as Ie,a as Te,K as Ee}from"./CWoPGWPY.js";import{N as Pe,_ as ze,a as Le}from"./pPAik5Mw.js";import{_ as de}from"./BUm9MBH5.js";import{u as Me,_ as Be}from"./DxnGXnK7.js";import{_ as Ve}from"./C8gK0VkS.js";import{g as Ae,a as ee,b as Ke,c as Ne,d as he,V as be}from"./C29XrcW9.js";import{u as He}from"./DQkFxDAU.js";import{_ as Re}from"./DkSnwlcq.js";import{a as pe,_ as Qe}from"./CZqCHNJ9.js";import{_ as qe}from"./CNb9eZgB.js";import{u as Je,t as Xe,o as We,s as Q,b as Ye,n as ue,a as L,_ as Ze}from"./D9a9RC2v.js";import{_ as et}from"./ezhUuHml.js";import{_ as tt}from"./C9XvdDUk.js";import{_ as nt}from"./NoeOmWcP.js";const ot={class:"overflow-hidden"},st=["src"],lt=["onClick"],it=["src"],at={class:"mt-6"},ct={class:"hidden md:flex absolute z-10 top-1/2 -left-6 -translate-y-1/2 w-[calc(100%+48px)] invisible"},rt={class:"relative cursor-pointer pt-[57.8947%]"},ut=["src"],dt={key:0,class:"absolute bottom-0 h-1 bg-main-red w-full z-[32]"},mt=P({__name:"Gallery",props:{images:{},aspectRatio:{},videoUrl:{}},setup(o){const a=o,s=R(0),c=R(!1),l=R(0),v=k(()=>a.videoUrl?[a.images[0],{src:a.videoUrl},...a.images.slice(1)]:a.images),m=k(()=>a.images.map(x=>x.source)),d=x=>{l.value=x,c.value=!0};return(x,b)=>{const f=je,V=te;return n(),i("div",null,[t("div",ot,[r(f,{modelValue:e(s),"onUpdate:modelValue":b[0]||(b[0]=y=>G(s)?s.value=y:null),items:e(v),breakpoints:{},"space-between":0,"auto-height":!1,"no-header":"","no-negative-margin":""},{item:C(({item:y,index:_})=>[o.videoUrl&&_===1?(n(),i("iframe",{key:0,src:y.src,class:"w-full h-full",width:"100%",height:"100%",allowfullscreen:""},null,8,st)):(n(),i("div",{key:1,class:"min-h-[200px] cursor-zoom-in",onClick:p=>d(o.videoUrl?_>1?_-1:0:_)},[t("img",{"data-not-lazy":"",src:y.source,alt:""},null,8,it)],8,lt))]),_:1},8,["modelValue","items"])]),t("div",at,[r(f,{modelValue:e(s),"onUpdate:modelValue":b[1]||(b[1]=y=>G(s)?s.value=y:null),items:e(v),breakpoints:{0:{spaceBetween:8,slidesPerView:4}},"no-header":"",freemode:"","free-mode":"","hide-nav":"","no-negative-margin":"",class:"relative"},{navigation:C(({prev:y,next:_,isBegin:p,isEnd:w})=>[t("div",ct,[p?g("",!0):(n(),$(de,{key:0,icon:"chevron-left",class:"bg-main-red text-white visible",small:"",onClick:y},null,8,["onClick"])),b[3]||(b[3]=t("div",{class:"flex-1"},null,-1)),w?g("",!0):(n(),$(de,{key:1,icon:"chevron-right",class:"bg-main-red text-white visible",small:"",onClick:_},null,8,["onClick"]))])]),item:C(({item:y,isActive:_,index:p})=>[t("div",rt,[t("img",{src:o.videoUrl&&p===1?e(v)[0]?.previewSource:y.previewSource,alt:"",class:"absolute inset-0 z-[30] w-full h-full object-cover"},null,8,ut),p===e(s)?(n(),i("div",dt)):g("",!0),o.videoUrl&&p===1?(n(),$(V,{key:1,name:"play-circle",class:"text-white absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 z-[33] text-[24px] sm:text-[48px]"})):g("",!0)])]),_:1},8,["modelValue","items"])]),r(e(Pe),{visible:e(c),imgs:e(m),index:e(l),onHide:b[2]||(b[2]=y=>c.value=!1)},null,8,["visible","imgs","index"])])}}}),_t=Object.assign(mt,{__name:"ProductGallery"}),pt={class:"flex"},vt=P({__name:"ActionButtons",props:{product:{}},setup(o){const a=o,{toggleFavorite:s,productInFavorites:c}=Me(),l=k(()=>c(a.product));return(v,m)=>{const d=me,x=de,b=De;return n(),i("div",pt,[r(d,{label:"ÐаÑаÑÑ ÑоÑÑÑдниÑеÑÑво",to:"/cooperation/wholesale",class:"w-full flex-1 md:flex-none md:w-auto"}),r(b,null,{default:C(()=>[r(x,{icon:e(l)?"heart-filled":"heart",class:"bg-grey-1 ml-4 text-main-red","icon-size":"24px",onClick:m[0]||(m[0]=f=>e(s)(o.product))},null,8,["icon"])]),_:1})])}}}),ft=Object.assign(vt,{__name:"ProductActionButtons"}),gt={},xt={class:"flex items-center bg-grey-1 p-4 rounded cursor-pointer"},ht={class:"flex-1 text-body lg:text-h5 font-bold"};function bt(o,a){const s=te;return n(),i("div",xt,[t("div",ht,[ke(o.$slots,"default")]),r(s,{name:"chevron-right",size:"20px",class:"text-main-red"})])}const yt=Object.assign(Se(gt,[["render",bt]]),{__name:"ProductDetailsButton"}),wt={class:"flex flex-col gap-3 bg-grey-1 px-4 pt-2 pb-4 rounded-b"},$t={class:"flex gap-4"},kt={class:"w-20 h-16 flex items-center justify-center bg-white rounded"},Ct=["src"],Pt={class:"flex-1"},Vt=["textContent"],Rt=P({__name:"PackageGoods",props:{items:{}},setup(o){return(a,s)=>{const c=Ve;return n(),i("div",wt,[(n(!0),i(D,null,E(o.items,(l,v)=>(n(),i(D,{key:l.id},[t("div",null,[t("div",$t,[t("div",kt,[t("img",{src:e(Ae)(l),alt:"",class:"max-h-full"},null,8,Ct)]),t("div",Pt,[t("p",{textContent:I(e(ee)(l)),class:"mb-1 font-light text-body2"},null,8,Vt)])])]),v<o.items.length-1?(n(),$(c,{key:0})):g("",!0)],64))),128))])}}}),Ut=Object.assign(Rt,{__name:"ProductPackageGoods"}),ye=_e({elements:[]});function ve(){function o(a){ye.elements=a}return{setElements:o,elements:k(()=>ye.elements)}}const we=_e({readyKitchenSolutions:[]});function fe(){function o(a){we.readyKitchenSolutions=a}return{setReadyKitchenSolutions:o,readyKitchenSolutions:k(()=>we.readyKitchenSolutions)}}const jt={class:"flex flex-col gap-2"},Dt={key:0},St=P({__name:"Details",props:{productPackageGoods:{}},emits:["showSpecs"],setup(o,{emit:a}){const{readyKitchenSolutions:s}=fe(),{elements:c}=ve(),{scrollTo:l}=He(),v=a;function m(){v("showSpecs")}function d(){l("#reviews")}function x(){l("#elements")}function b(){l("#ready-solutions")}const f=R(!0);function V(){f.value=!f.value}return(y,_)=>{const p=yt,w=Ut;return n(),i("div",jt,[r(p,{onClick:m},{default:C(()=>[..._[0]||(_[0]=[K(" ХаÑакÑеÑиÑÑики и Ðко инÑоÑмаÑÐ¸Ñ ",-1)])]),_:1}),o.productPackageGoods.length?(n(),i("div",Dt,[e(c).length?(n(),$(p,{key:0,onClick:V},{default:C(()=>[..._[1]||(_[1]=[K(" Ð ÑÐµÐ½Ñ ÐºÐ¾Ð¼Ð¿Ð»ÐµÐºÑа вÑ
Ð¾Ð´Ð¸Ñ ",-1)])]),_:1})):g("",!0),e(f)?(n(),$(w,{key:1,items:o.productPackageGoods},null,8,["items"])):g("",!0)])):g("",!0),e(c).length?(n(),$(p,{key:1,onClick:x},{default:C(()=>[..._[2]||(_[2]=[K(" ÐÑе ÑлеменÑÑ ÑиÑÑÐµÐ¼Ñ ",-1)])]),_:1})):g("",!0),e(c).length?(n(),$(p,{key:2,onClick:d},{default:C(()=>[..._[3]||(_[3]=[K(" ÐÑзÑÐ²Ñ ",-1)])]),_:1})):g("",!0),e(s).length?(n(),$(p,{key:3,onClick:b},{default:C(()=>[..._[4]||(_[4]=[K(" ÐоÑовÑе ÑеÑÐµÐ½Ð¸Ñ ",-1)])]),_:1})):g("",!0)])}}}),Ft=Object.assign(St,{__name:"ProductDetails"}),Gt={key:0,class:"pt-16",id:"elements"},Ot=P({__name:"Elements",setup(o){const{elements:a}=ve();return(s,c)=>{const l=Re;return e(a)?.length?(n(),i("div",Gt,[c[0]||(c[0]=t("h3",{class:"text-h4 font-bold mb-6 lg:mb-8",textContent:"ÐÑе ÑлеменÑÑ ÑиÑÑемÑ"},null,-1)),r(l,{"init-colum-count":3,items:e(a),class:"flex-1"},null,8,["items"])])):g("",!0)}}}),It=Object.assign(Ot,{__name:"ProductElements"}),Tt={class:"one-col"},Et={class:"px-4 py-6 md:p-10 relative min-h-[400px]"},zt=["src"],Lt={class:"relative max-w-[505px] one-col__content"},Mt=["innerHTML"],Bt=["innerHTML"],At=P({__name:"GraphicDescriptionOneCol",props:{content:{}},setup(o){return(a,s)=>(n(),i("div",Tt,[t("div",Et,[t("img",{src:o.content.image,alt:"",class:"absolute top-0 left-0 w-full h-full object-cover"},null,8,zt),t("div",Lt,[t("p",{class:"text-h4 3xl:text-h3 font-bold mb-4 3xl:mb-6",innerHTML:o.content.title},null,8,Mt),t("div",{innerHTML:o.content.content},null,8,Bt)])])]))}}),Kt=Object.assign(At,{__name:"ProductGraphicDescriptionOneCol"}),Nt={class:"two-cols xl:flex mb-6 3xl:mb-8"},Ht={class:"w-full md:max-w-[342px] 3xl:max-w-[428px] mr-0 md:mr-4"},Qt=["src"],qt={class:"flex-1 flex items-center"},Jt=["textContent"],Xt=["innerHTML"],Wt=P({__name:"GraphicDescriptionTwoCols",props:{content:{}},setup(o){return(a,s)=>
1(n(),i("div",Nt,[t("div",Ht,[t("img",{class:Y([[o.content.fixedImageHeight&&"aspect-[428/320]"],"object-cover w-full"]),src:o.content.image,alt:""},null,10,Qt)]),t("div",qt,[t("div",null,[t("p",{textContent:I(o.content.title),class:"text-h4 3xl:text-h3 font-bold mb-4 3xl:mb-6 mt-6"},null,8,Jt),t("div",{innerHTML:o.content.content},null,8,Xt)])])]))}}),Yt=Object.assign(Wt,{__name:"ProductGraphicDescriptionTwoCols"}),Zt=["src"],en=P({__name:"GraphicDescriptionVideo",props:{content:{}},setup(o){const a=o,s=k(()=>{const c=a.content.content.split("/video/")?.[1]?.replace("/","");return c?`https://rutube.ru/play/embed/${c}`:null});return(c,l)=>(n(),i("div",null,[e(s)?(n(),i("iframe",{key:0,src:e(s),class:"w-full aspect-video",width:"100%",height:"100%",allowfullscreen:""},null,8,Zt)):g("",!0)]))}}),tn=Object.assign(en,{__name:"ProductGraphicDescriptionVideo"}),nn={class:"pt-8"},on=P({__name:"GraphicDescriptionLayout",props:{component:{}},setup(o){const a={"one-col":Kt,"two-cols":Yt,video:tn};return(s,c)=>(n(),i("div",nn,[(n(),$(Fe(a[o.component.type]),{content:o.component},null,8,["content"]))]))}}),sn=Object.assign(on,{__name:"ProductGraphicDescriptionLayout"}),ln={class:"product-advantages pt-8"},an=P({__name:"GraphicDescription",props:{advantages:{default:()=>({})}},setup(o){return(a,s)=>{const c=sn;return n(),i("div",ln,[(n(!0),i(D,null,E(o.advantages.blocks,(l,v)=>(n(),$(c,{component:l,key:v},null,8,["component"]))),128))])}}}),cn=Object.assign(an,{__name:"ProductGraphicDescription"}),W=_e({reviews:[],reviewFormPosition:!1});function ge(){function o(){W.reviewFormPosition=!1}function a(){W.reviewFormPosition=!0}function s(c){W.reviews=c}return{reviewFormPosition:k(()=>W.reviewFormPosition),closeReviewForm:o,openReviewForm:a,setReviews:s,reviews:k(()=>W.reviews)}}const rn=3;function un(o,a=rn){const{$api:s}=Ce(),{openReviewForm:c,setReviews:l,reviews:v}=ge(),m=R(1),d=R(!1),x=R(!1);async function b(){try{x.value=!0,l(await s.product.getReviews(o,{perPage:a})),m.value++}finally{x.value=!1}v.value.length<a&&(d.value=!0)}async function f(){const V=await s.product.getReviews(o,{page:m.value,perPage:a});if(l([...v.value,...V]),V.length<a){d.value=!0;return}m.value++}return{allLoaded:d,fetchReviews:b,loadMore:f,loading:x,openReviewForm:c,reviews:v}}const dn={class:"pt-14",id:"reviews"},mn={class:"flex justify-between items-center mb-12"},_n={key:0,class:"flex gap-4 md:gap-8 h-[150px]"},pn={class:"flex-1 flex flex-col gap-4"},vn={key:0},fn={key:1},gn={class:"flex flex-col gap-4"},xn={key:0,class:"flex justify-center mt-10"},hn=P({__name:"Reviews",props:{productId:{}},async setup(o){let a,s;const{allLoaded:c,fetchReviews:l,loadMore:v,loading:m,openReviewForm:d,reviews:x}=un(o.productId);[a,s]=Ge(()=>l()),await a,s();function b(f){return f.children[0]}return(f,V)=>{const y=Ve,_=me,p=Be,w=ze;return n(),i("div",dn,[r(y,{class:"mb-10"}),t("div",mn,[V[0]||(V[0]=t("h3",{class:"text-h4 font-bold mr-8",textContent:"ÐÑзÑвÑ"},null,-1)),r(_,{label:"ÐÑÑавиÑÑ Ð¾ÑзÑв",onClick:e(d)},null,8,["onClick"])]),e(m)?(n(),i("div",_n,[t("div",pn,[r(p,{class:"h-7"}),r(p,{class:"h-20"})])])):g("",!0),e(m)?g("",!0):(n(),i(D,{key:1},[e(x).length?(n(),i("div",fn,[t("div",gn,[(n(!0),i(D,null,E(e(x),U=>(n(),$(w,{key:U.id,review:U,"hide-product":""},Oe({_:2},[U?.children?.length?{name:"answer",fn:C(()=>[r(w,{review:b(U),"is-answer":""},null,8,["review"])]),key:"0"}:void 0]),1032,["review"]))),128))]),e(c)?g("",!0):(n(),i("div",xn,[r(_,{label:"ÐоказаÑÑ ÐµÑе",class:"!text-dark",outline:"",onClick:e(v)},null,8,["onClick"])]))])):(n(),i("div",vn," ÐÑзÑвов еÑе Ð½ÐµÑ "))],64))])}}}),bn=Object.assign(hn,{__name:"ProductReviews"}),yn={key:0,class:"pt-8 md:pt-12"},wn={class:"flex flex-wrap gap-2"},$n=["onClick"],kn=["src"],Cn=P({__name:"ClientPhotos",setup(o){const{reviews:a}=ge(),s=k(()=>a.value.flatMap(m=>m.images)),c=R(!1),l=R(0);function v(m){l.value=m,c.value=!0}return(m,d)=>e(s).length?(n(),i("div",yn,[d[1]||(d[1]=t("div",{class:"text-h5 font-bold mb-6"}," ФоÑо клиенÑов ",-1)),t("div",wn,[(n(!0),i(D,null,E(e(s),(x,b)=>
1(n(),i("div",{key:b,class:"w-[160px] h-[94px] cursor-pointer",onClick:f=>v(b)},[t("img",{src:x.url,alt:"",class:"h-full w-full object-cover"},null,8,kn)],8,$n))),128))]),r(e(Pe),{visible:e(c),imgs:e(s).map(x=>x.url),index:e(l),onHide:d[0]||(d[0]=x=>c.value=!1)},null,8,["visible","imgs","index"])])):g("",!0)}}),Pn=Object.assign(Cn,{__name:"ProductClientPhotos"}),Vn={class:"pl-2 flex flex-wrap gap-6"},Rn=["src"],Un={key:1,class:"h-6 w-6 rounded-full bg-dark"},jn=P({__name:"ColorVariations",props:{variations:{}},setup(o){return(a,s)=>{const c=pe;return n(),i("div",Vn,[(n(!0),i(D,null,E(o.variations,l=>(n(),$(c,{key:l.slug,to:`/catalog/${l.slug}`,class:Y([[l.isActive&&"ring-1 ring-offset-7 ring-grey-2"],"rounded-full"])},{default:C(()=>[l.image?(n(),i("img",{key:0,src:l.image,class:"h-6 w-6 rounded-full"},null,8,Rn)):(n(),i("div",Un))]),_:2},1032,["to","class"]))),128))])}}}),Dn=Object.assign(jn,{__name:"ProductColorVariations"}),Sn={class:""},Fn={class:"flex flex-wrap gap-2"},Gn=P({__name:"SleepingPlaceVariations",props:{variations:{}},setup(o){return(a,s)=>{const c=pe;return n(),i("div",Sn,[s[0]||(s[0]=t("p",{class:"mb-3 font-semibold"},"СпалÑное меÑÑо",-1)),t("div",Fn,[(n(!0),i(D,null,E(o.variations,l=>(n(),$(c,{key:l.slug,to:`/catalog/${l.slug}`,class:Y([[l.isActive?"border-main-red":"border-grey-3"],"rounded border px-3 h-8 flex items-center text-small font-medium"])},{default:C(()=>[K(I(l.title),1)]),_:2},1032,["to","class"]))),128))])])}}}),On=Object.assign(Gn,{__name:"ProductSleepingPlaceVariations"}),In={class:"flex flex-col gap-4"},Tn={key:0},En=["textContent"],zn={class:"flex"},Ln=["textContent"],Mn=["textContent"],Bn=P({__name:"Dimensions",props:{dimensions:{}},setup(o){return(a,s)=>{const c=te;return n(),i("div",In,[(n(!0),i(D,null,E(o.dimensions,(l,v)=>(n(),i(D,{key:v},[l.title?(n(),i("div",Tn,[t("div",{class:"mb-2 font-semibold",textContent:I(l.title)},null,8,En),t("div",zn,[(n(!0),i(D,null,E(l.items,(m,d)=>(n(),i(D,null,[t("div",null,[t("div",{textContent:I(m.title),class:"text-body2 text-grey-3 mb-1"},null,8,Ln),t("div",{textContent:I(m.textValue)},null,8,Mn)]),d<l.items.length-1?(n(),$(c,{key:0,name:"close",class:"mx-4 self-center",size:"16px"})):g("",!0)],64))),256))])])):g("",!0)],64))),128))])}}}),An=Object.assign(Bn,{__name:"ProductDimensions"}),Kn={key:0,class:"pt-16",id:"ready-solutions"},Nn=P({__name:"ReadyKitchenSolutions",setup(o){const{readyKitchenSolutions:a}=fe();return(s,c)=>{const l=Re;return e(a).length?(n(),i("div",Kn,[c[0]||(c[0]=t("h3",{class:"text-h4 font-bold mb-6 lg:mb-8",textContent:"ÐоÑовÑе ÑеÑениÑ"},null,-1)),r(l,{"init-colum-count":4,items:e(a),class:"flex-1"},null,8,["items"])])):g("",!0)}}}),Hn=Object.assign(Nn,{__name:"ProductReadyKitchenSolutions"}),Qn=["multiple"],qn=P({__name:"FileInput",props:{fileMaxSize:{default:10},multiple:{type:Boolean,default:!1},extensions:{default:()=>["pdf","jpg","jpeg","png","svg","webp"]}},emits:["dragover","dragleave","drop","before-load","loaded","error"],setup(o,{emit:a}){const s=a,c=o,l=R(null),v=R([]),m=p=>p<=c.fileMaxSize,d=p=>c.extensions.includes(p),x=async p=>{s("before-load"),v.value=[];const w=Array.from(p).map(T=>{const z=T.name.split("."),S=(z.pop()||"").toLowerCase(),j=z.join("."),H=Math.round(T.size/1024/1024*100)/100;return d(S)?m(H)?new Promise(B=>{const A=new FileReader;A.onload=()=>{B({name:j,size:H,extension:S,isImage:["jpg","jpeg","png","gif","svg","webp"].includes(S),original:T,src:A.result})},A.readAsDataURL(T)}):(s("error",{type:"size",size:c.fileMaxSize}),null):(s("error",{type:"extension",extensions:c.extensions}),null)}),U=(await Promise.all(w)).filter(Boolean);v.value=U,s("loaded",U)},b=()=>{const p=l.value?.files;p?.length&&x(p)},f=p=>{const w=p.dataTransfer?.files;w?.length&&(s("drop"),x(w))},V=()=>s("dragover"),y=()=>s("dragleave"),_=()=>l.value?.click();return(p,w)=>(n(),i("div",null,[t("div",{style:{height:"100%"},onDragover:re(V,["prevent"]),onDragleave:re(y,["prevent"]),onDrop:re(f,["prevent"])},[ke(p.$slots,"default",{open:_})],32),t("input",{ref_key:"inputRef",ref:l,multiple:o.multiple,type:"file",onChange:b,style:{display:"none"}},null,40,Qn)]))}}),Jn=Object.assign(qn,{__name:"UiFileInput"});var Ue=(o=>(o.Review="review",o))(Ue||{});function Xn(){const{$api:o}=Ce(),a=R(!1);async function s(l,v){try{a.value=!0;const m=await o.review.send(l);return m.data?.id&&v.length>0&&await c(m.data.id,v),m}finally{a.value=!1}}async function c(l,v){const m=new FormData;return v.forEach(d=>{m.append("files",d)}
1),await o.file.upload(m,Ue.Review,l)}return{loading:a,submitReview:s}}const Wn={class:"flex flex-col gap-4"},Yn={class:"flex flex-col md:flex-row gap-4"},Zn={class:"flex flex-col gap-4 mt-8"},eo={class:"flex justify-between"},to={class:"flex justify-between"},no={class:"flex justify-between"},oo={key:0,class:"mt-2 text-small text-main-red"},so={class:"mt-8"},lo={class:"mt-6 mb-10"},io={key:0,class:"flex flex-wrap mb-4 gap-3"},ao=["src"],co={class:"inline-flex items-center justify-center w-6 h-6 rounded-full bg-white/[0.29] backdrop-blur-10 absolute top-1 right-1 cursor-pointer text-white"},ro=["onClick"],uo=["textContent"],mo={class:"mt-10 mb-8 flex justify-end"},M="Ðоле обÑзаÑелÑное Ð´Ð»Ñ Ð·Ð°Ð¿Ð¾Ð»Ð½ÐµÐ½Ð¸Ñ",_o="ÐевеÑнÑй ÑоÑÐ¼Ð°Ñ ÑлекÑÑонной поÑÑÑ",$e=5,po=P({__name:"ReviewForm",props:{product:{}},emits:["close"],setup(o,{emit:a}){const s=a,{loading:c,submitReview:l}=Xn(),{showSuccessPopup:v}=Ie(),m=R([]),{errors:d,validate:x,resetForm:b,meta:f}=Je({validationSchema:Xe(We({name:Q().min(1,M),city:Q().min(1,M),text:Q().min(1,M),ratingDesign:ue().min(1,M),ratingQuality:ue().min(1,M),ratingComfort:ue().min(1,M),policy:Ye().refine(O=>O,M),purchasePlace:Q().min(1,M),email:Q().min(1,M).email(_o),phone:Q().min(1,M)}))}),{value:V}=L("name",void 0,{initialValue:""}),{value:y}=L("city",void 0,{initialValue:""}),{value:_}=L("text",void 0,{initialValue:""}),{value:p}=L("ratingDesign",void 0,{initialValue:0}),{value:w}=L("ratingQuality",void 0,{initialValue:0}),{value:U}=L("ratingComfort",void 0,{initialValue:0}),{value:T}=L("policy",void 0,{initialValue:!1}),{value:z}=L("purchasePlace",void 0,{initialValue:""}),{value:S}=L("email",void 0,{initialValue:""}),{value:j}=L("phone",void 0,{initialValue:"+7 ("}),H=k(()=>ee(o.product)),B=R(!1);function A(O){m.value=[...m.value,...O].slice(0,$e)}function ne(O){m.value=m.value.filter((u,F)=>F!==O)}async function oe(){const{valid:O}=await x();if(!O)return;const u={clientName:V.value,city:y.value,text:_.value,productId:o.product.id,designRating:p.value,convenienceRating:U.value,qualityRating:w.value,recommended:B.value,purchasePlace:z.value,email:S.value,phone:j.value};try{await l(u,m.value.map(F=>F.original)),b(),s("close"),v({title:"ÐÑзÑв ÑÑпеÑно оÑпÑавлен"})}catch(F){console.error(F)}}const q=R(""),se={size:"СлиÑком болÑÑой ÑÐ°Ð·Ð¼ÐµÑ Ñайла",extension:"ÐевеÑнÑй ÑоÑÐ¼Ð°Ñ Ñайла"};function le(O){q.value=se[O.type]}return(O,u)=>{const F=Ze,J=Le,X=et,ie=tt,ae=te,N=Jn,ce=pe,Z=me;return n(),i("div",null,[u[19]||(u[19]=t("h4",{class:"text-h4 font-bold mb-10",textContent:"РазмеÑÑиÑÑ Ð¾ÑзÑв"},null,-1)),t("div",Wn,[r(F,{modelValue:e(V),"onUpdate:modelValue":u[0]||(u[0]=h=>G(V)?V.value=h:null),placeholder:"ÐмÑ*",error:!!e(d).name,"error-message":e(d).name},null,8,["modelValue","error","error-message"]),r(F,{modelValue:e(y),"onUpdate:modelValue":u[1]||(u[1]=h=>G(y)?y.value=h:null),placeholder:"ÐоÑод*",error:!!e(d).city,"error-message":e(d).city},null,8,["modelValue","error","error-message"]),r(F,{"model-value":e(H),placeholder:"ТоваÑ",readonly:""},null,8,["model-value"]),u[11]||(u[11]=t("p",{class:"text-x-small text-grey-2"}," ÐÐ»Ñ Ñого ÑÑÐ¾Ð±Ñ Ð¼Ñ Ð¼Ð¾Ð³Ð»Ð¸ повлиÑÑÑ Ð½Ð° ÑеÑение вопÑоÑа, ÑкажиÑе пожалÑйÑÑа меÑÑо покÑпки (название магазина (диллеÑа) или наименование ÑÑидиÑеÑкого лиÑа пÑодавÑа) и конÑакÑнÑе даннÑе (ÑелеÑон, e-mail). ÐонÑакÑнÑе даннÑе не пÑбликÑÑÑÑÑ, нÑÐ¶Ð½Ñ ÑолÑко ÑÑÐ¾Ð±Ñ Ð¼Ñ Ð¼Ð¾Ð³Ð»Ð¸ ÑвÑзаÑÑÑÑ Ð²Ð°Ð¼Ð¸ Ð´Ð»Ñ Ð¸Ð´ÐµÐ½ÑиÑикаÑии и далÑнейÑего ÑеÑÐµÐ½Ð¸Ñ Ð²Ð¾Ð¿ÑоÑа ",-1)),r(F,{modelValue:e(z),"onUpdate:modelValue":u[2]||(u[2]=h=>G(z)?z.value=h:null),placeholder:"ÐеÑÑо покÑпки*",error:!!e(d).purchasePlace,"error-message":e(d).purchasePlace},null,8,["modelValue","error","error-message"]),t("div",Yn,[r(F,{modelValue:e(S),"onUpdate:modelValue":u[3]||(u[3]=h=>G(S)?S.value=h:null),placeholder:"Email*",error:!!e(d).email,"error-message":e(d).email,class:"flex-1"},null,8,["modelValue","error","error-message"]),r(F,{modelValue:e(j),"onUpdate:modelValue":u[4]||(u[4]=h=>G(j)?j.value=h:null),placeholder:"ТелеÑон*",error:!!e(d).phone,"error-message":e(d).phone,phone:"",class:"flex-1"},null,8,["modelValue","error","error-message"])])]),t("div",Zn,[t("div",eo,[u[12]||(u[12]=t("p",null,"Ðизайн мебели",-1)),r(J,{modelValue:e(p),"onUpdate:modelValue":u[5]||(u[5]=h=>G(p)?p.value=h:null)},null,8,["modelValue"])]),t("div",to,[u[13]||(u[13]=t("p",null,"ÐаÑеÑÑво мебели",-1)),r(J,{modelValue:e(w),"onUpdate:modelValue":u[6]||(u[6]=h=>G(w)?w.value=h:null)},null,8,["modelValue"])]),t("div",no,[u[14]||(u[14]=t("p",null,"УдобÑÑво мебели",-1)),r(J,{modelValue:e(U),"onUpdate:modelValue":u[7]||(u[7]=h=>G(U)?U.value=h:null)},null,8,["modelValue"])])]),e(d).ratingDesign?(n(),i("div",oo," ÐоÑÑавÑÑе вÑе оÑенки ")):g("",!0),t("div",so,[r(X,{modelValue:e(B),"onUpdate:modelValue":u[8]||(u[8]=h=>G(B)?B.value=h:null),label:"Я ÑекомендÑÑ ÑоваÑ"},null,8,["modelValue"])]),r(ie,{modelValue:e(_),"onUpdate:modelValue":u[9]||(u[9]=h=>G(_)?_.value=h:null),class:"my-6",label:"",placeholder:"ТекÑÑ Ð¾ÑзÑва",error:!!e(d).text,"error-message":e(d).text},null,8,["modelValue","error","error-message"]),t("div",lo,[u[16]||(u[16]=t("p",{class:"mb-3"}," ФоÑо мебели ",-1)),e(m)?.length?(n(),i("div",io,[(n(!0),i(D,null,E(e(m),(h,xe)=>(n(),i("div",{key:xe,class:"w-[115px] h-[70px] relative"},[t("img",{src:typeof h.src=="string"?h.src:void 0,class:"h-full w-full object-cover",alt:""},null,8,ao),t("div",co,[r(ae,{name:"close",size:"18px",onClick:Fo=>ne(xe)},null,8,["onClick"])])]))),128))])):g("",!0),e(m).length<$e?(n(),$(N,{key:1,extensions:["jpg","jpeg","png"],multiple:"",onLoaded:A,onError:le},{default:C(({open:h})=>[t("div",{class:"flex items-center rounded-7 border border-dotted border-grey-3 py-4 cursor-pointer",onClick:h},[...u[15]||(u[15]=[t("div",{class:"text-grey-3 px-6"},[t("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"30"},[t("g",{fill:"currentColor","fill-rule":"evenodd"},[t("path",{d:"M25.988 7.853a9.398 9.398 0 00-2.885-5.366 9.157 9.157 0 00-11.262-.96 9.293 9.293 0 00-3.003 3.206 5.228 5.228 0 00-.973-.093C5.073 4.64 2.8 6.947 2.8 9.78c0 .367.04.72.105 1.067A7.186 7.186 0 000 16.613a7.71 7.71 0 001.912 5.06c1.268 1.454 2.944 2.314 4.731 2.414h5.703a.89.89 0 00.888-.9c0-.5-.395-.9-.887-.9H6.722c-2.688-.167-4.948-2.76-4.948-5.68 0-1.887.999-3.647 2.609-4.6a.914.914 0 00.387-1.094 3.309 3.309 0 01-.197-1.146c0-1.84 1.479-3.34 3.292-3.34.388 0 .77.066 1.124.2a.886.886 0 001.11-.46c1.23-2.647 3.884-4.354 6.768-4.354 3.877 0 7.077 2.947 7.445 6.854.04.406.342.733.736.8 2.924.506 5.132 3.246 5.132 6.373 0 3.313-2.57 6.193-5.736 6.44H19.6a.89.89 0 00-.887.9c0 .5.394.9.887.9h4.941c2.004-.147 3.877-1.08 5.27-2.64a8.37 8.37 0 002.142-5.6c-.007-3.74-2.523-7.067-5.966-7.987z"}),t("path",{d:"M21.303 17.467a.907.907 0 000-1.274l-4.698-4.766a.864.864 0 00-1.248 0l-4.7 4.766a.907.907 0 000 1.274.892.892 0 00.625.266.86.86 0 00.624-.266l3.187-3.234v14.86c0 .5.394.9.887.9a.89.89 0 00.887-.9v-14.86l3.187 3.234c.342.353.9.353 1.249 0z"})])])],-1),t("div",{class:"flex-1 pr-4 text-body2"},[t("div",{class:"mb-1"}," ÐажмиÑе, ÑÑÐ¾Ð±Ñ Ð²ÑбÑаÑÑ Ñайл "),t("div",{class:"text-grey-3"}," ÐакÑ. ÑазмеÑ: 10MB. ФоÑмаÑ: jpg, jpeg, png ")],-1)])],8,ro)]),_:1})):g("",!0),e(q)?(n(),i("div",{key:2,class:"mt-1 text-main-red text-small",textContent:I(e(q))},null,8,uo)):g("",!0)]),r(X,{modelValue:e(T),"onUpdate:modelValue":u[10]||(u[10]=h=>G(T)?T.value=h:null)},{labelText:C(()=>[u[18]||(u[18]=K(" СÑÐ°Ð²Ñ Ð¾ÑмеÑкÑ, Ñ Ð¿Ð¾Ð´ÑвеÑÐ¶Ð´Ð°Ñ ÑоглаÑие на обÑабоÑÐºÑ Ð¼Ð¾Ð¸Ñ
пеÑÑоналÑнÑÑ
даннÑÑ
в ÑооÑвеÑÑÑвии Ñ ",-1)),r(ce,{to:"/files/ÐолиÑика%20обÑабоÑки%20Ð
1¿ÐµÑ.даннÑÑ
%20ÐÐÐ%20Ñ%20пеÑаÑÑÑ.pdf",target:"_blank",class:"underline underline-offset-4"},{default:C(()=>[...u[17]||(u[17]=[K(" полиÑикой конÑиденÑиалÑноÑÑи ",-1)])]),_:1})]),_:1},8,["modelValue"]),t("div",mo,[r(Z,{disabled:Object.keys(e(d)).length>0||!e(f).valid||e(c),label:"ÐÑпÑавиÑÑ",class:"w-full md:w-[230px]",onClick:oe},null,8,["disabled"])])])}}}),vo=Object.assign(po,{__name:"ProductReviewForm"}),fo={class:"flex flex-col lg:flex-row -mx-2"},go={class:"px-2 min-w-0 lg:pr-4"},xo=["textContent"],ho={class:"lg:pr-6"},bo={class:"lg:hidden mt-8 3xl:mt-10"},yo={class:"lg:hidden mt-6"},wo={class:"mt-8 lg:mt-16 3xl:mt-20"},$o=["textContent"],ko={class:"px-2"},Co={class:"lg:w-[460px] 3xl:w-[576px] sticky top-3"},Po=["textContent"],Vo={class:"hidden lg:block mt-7"},Ro={class:"mt-8 hidden lg:block"},Uo={class:"flex justify-between font-thin mb-2"},jo=["textContent"],Do=["textContent"],So=P({__name:"PageView",props:{data:{}},setup(o){const s=Ee(o,"data"),{reviewFormPosition:c,closeReviewForm:l}=ge(),{setReadyKitchenSolutions:v}=fe(),{setElements:m}=ve(),d=R(!1);function x(){d.value=!0}function b(S){d.value=S}const f=k(()=>s.value?.product||{});Te(s,S=>{v(S.readyKitchenSolutions||[]),m(S.allElements||[]),l(),d.value=!1},{immediate:!0});const V=k(()=>s.value?.advantages?.[0]),y=k(()=>s.value?.specifications?.characteristics||[]),_=k(()=>f.value.siteCategory),p=k(()=>[..._.value?.parent?[{name:_.value.parent.pluralName,url:_.value.parent.path}]:[],..._.value?[{name:_.value.pluralName,url:_.value.path}]:[],{name:ee(f.value)}]),w=k(()=>Ne(f.value,s.value?.specifications?.dimensions)),U=k(()=>s.value?.packageGoods||[]),T=k(()=>he(s.value?.variations??[],be.color)),z=k(()=>he(s.value?.variations??[],be.sleepingPlace));return(S,j)=>{const H=_t,B=ft,A=Ft,ne=It,oe=cn,q=bn,se=Pn,le=Dn,O=On,u=An,F=Hn,J=Qe,X=qe,ie=vo,ae=nt;return e(s)?(n(),$(ae,{key:0,breadcrumbs:e(p)},{default:C(()=>[r(J,null,{default:C(()=>[t("div",fo,[t("div",go,[t("h1",{class:"lg:hidden text-h5 md:text-h3 3xl:w-text-h2 font-bold mb-3",textContent:I(e(ee)(e(f)))},null,8,xo),t("div",ho,[r(H,{images:e(f).images,"video-url":e(Ke)(e(f))},null,8,["images","video-url"])]),t("div",bo,[r(B,{product:e(f)},null,8,["product"])]),t("div",yo,[r(A,{"product-package-goods":e(U),onShowSpecs:x},null,8,["product-package-goods"])]),t("div",wo,[j[1]||(j[1]=t("h3",{class:"text-h4 3xl:text-h3 font-bold mb-6"},"ÐÑеимÑÑеÑÑва",-1)),e(f).description?(n(),i("p",{key:0,textContent:I(e(f).description),class:"text-body1 3xl:text-h5"},null,8,$o)):g("",!0),j[2]||(j[2]=t("p",{class:"mt-4 text-grey-3 text-body2"}," РеалÑнÑй ÑÐ²ÐµÑ ÑоваÑа Ð¼Ð¾Ð¶ÐµÑ Ð½ÐµÐ·Ð½Ð°ÑиÑелÑно оÑлиÑаÑÑÑÑ Ð¾Ñ Ð¸Ð·Ð¾Ð±ÑÐ°Ð¶ÐµÐ½Ð¸Ñ Ð½Ð° ÑкÑане. ",-1))]),r(ne),r(oe,{advantages:e(V)},null,8,["advantages"]),r(q,{"product-id":e(f).id},null,8,["product-id"]),r(se)]),t("div",ko,[t("div",Co,[t("h1",{class:"hidden lg:block text-h5 md:text-h3 3xl:w-text-h2 font-bold",textContent:I(e(f).name+" "+e(f).subName)},null,8,Po),t("div",Vo,[r(B,{product:e(f)},null,8,["product"])]),e(T)?.length?(n(),$(le,{key:0,variations:e(T),class:"mt-8 mb-10"},null,8,["variations"])):g("",!0),e(z)?.length?(n(),$(O,{key:1,variations:e(z),class:"mt-8 mb-10"},null,8,["variations"])):g("",!0),e(w).length?(n(),$(u,{key:2,dimensions:e(w),class:"mt-6"},null,8,["dimensions"])):g("",!0),t("div",Ro,[r(A,{"product-package-goods":e(U),onShowSpecs:x},null,8,["product-package-goods"])])])])]),r(F)]),_:1}),r(X,{"model-value":e(d),"onUpdate:modelValue":j[0]||(j[0]=N=>b(N))},{default:C(()=>[j[3]||(j[3]=t("div",{class:"flex mb-5"},[t("h4",{class:"text-h4 font-bold mr-4 flex-1",textContent:"ХаÑакÑеÑиÑÑики и Ðко инÑоÑмаÑиÑ"})],-1)),t("div",null,[(n(!0),i(D,null,E(e(y),N=>(n(),i("div",{key:N.id,class:"mb-4"},[(n(!0),i(D,null,E(N.items,(ce,Z)=>(n(),i("div",Uo,[t("div",{class:Y([{"text-transparent":Z>0},"mr-12"]),textContent:I(N.name)},null,10,jo),t("div",{class:Y([{invisible:Z>0},"border-b border-dotted flex-1 self-start mt-[14px] -ml-11"])},null,2),t("div",{class:"text-right ml-1",textContent:I(ce.name)},null,8,Do)]))),256))]))),128))])]),_:1},8,["model-value"]),r(X,{"model-value":e(c),onClose:e(l)},{default:C(()=>[r(ie,{product:e(f),onClose:e(l)},null,8,["product","onClose"])]),_:1},8,["model-value","onClose"])]),_:1},8,["breadcrumbs"])):g("",!0)}}}),Jo=Object.assign(So,{__name:"ProductPageView"});export{Jo 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.