1import{_ as jt,m as Dt,r as ct,B as z,o as Mt,L as It,b7 as pt,p as At,c,y as $e,i as y,b as t,h as qt,K as et,x as tt,w as O,v as N,t as f,e as C,k as M,d as Rt,F as b,f as w,n as Pt,q as Nt,z as Ht,u as Kt,V as ot,A as j,j as it,bf as Ft,g as a}from"./index-GRB8Jcml.js";import{S as ut}from"./ContentsService-DKa2qyOq.js";import{S as nt}from"./ShoppingService-C2Pshse4.js";import{T as Vt}from"./top-DaACZfYm.js";import{K as Ut,_ as Bt,a as Xt,b as Gt,c as Jt,d as Wt,e as Yt,f as Zt,g as Qt,h as $t,i as st}from"./icon_share2-qkl2g-qk.js";const eo={name:"ShoppingView",components:{TOP:Vt,KAKAO_CHANNEL_BTN:Ut},setup(){const e=Dt({current_product:0,sale_round:null,sale_state:"always",sale_tick:0,products:[],option_modal:!1,product_options:[],product_price:0,product_categories:[],selected_options:[],selected_options_price:0,selected_options_quantity:0,checked_wish:!1,wishes:[],no_option_product:{quantity:1,amount:0,discount_price:0},content_views:0,is_hidden:0,loginModal:!1,reviewModal:!1,user_id:"",password:"",user_profile:"",show_full_info:!1,toggle_seller_info:!1,toggle_exchange_info:!1,toggle_product_info:!1,coupon_id:"",coupon_applied:!0,coupon_price:0,coupon_type:"",couponPopupModal:!1,is_bundle:!1,bundle_items:[],bundle_components_options:[],banners:[],activeBanners:[],currentBannerIndex:0,main_review:[],reviews:[],isReviewExpanded:!1,selected_review:null,touchStartX:0,isDragging:!1,sales_count:0,currentSlideIndex:0}),i=Ht();let u=i.params.item_id,rt=0;const U=ct(null),lt=3e3,se=z(()=>{const o=e.products[e.current_product];return!o||e.is_hidden===1||!o.has_fee_rate});let P=o=>(o==null?void 0:o.mobile_discount_price)||(o==null?void 0:o.pc_discount_price)||(o==null?void 0:o.price),dt=o=>{const r=(o==null?void 0:o.mobile_discount_price)||(o==null?void 0:o.pc_discount_price);return r&&r!=(o==null?void 0:o.price)||(o==null?void 0:o.retail_price)&&(o==null?void 0:o.retail_price)!=(o==null?void 0:o.price)},q=o=>Number((o==null?void 0:o.discount_rate)??0),D=o=>q(o)>0;const X=z(()=>{if(e.selected_options.length>0)return e.selected_options.reduce((r,l)=>r+l.amount*l.quantity,0);const o=e.products[e.current_product];return o?P(o):0}),G=z(()=>{if(e.selected_options.length>0)return e.selected_options.reduce((l,p)=>l+p.discount_price*p.quantity,0);const o=e.products[e.current_product];if(!o)return 0;const r=q(o);return Math.round(P(o)*(r/100))}),J=z(()=>{var l;const o=e.products[e.current_product],r=Number((o==null?void 0:o.delivery_fee)||0);if(r<=0)return 0;if((o==null?void 0:o.free_shipping_enabled)==="T"){const p=Number((o==null?void 0:o.free_shipping_threshold)||0);let s=X.value-G.value;if(e.selected_options.length===0&&(s=s*(Number((l=e.no_option_product)==null?void 0:l.quantity)||1)),p>0&&s>=p)return 0}return r});let re=o=>{o&&(e.loginModal=!0)};const le=o=>{e.touchStartX=o.touches[0].clientX,e.isDragging=!0},de=o=>{e.isDragging&&o.preventDefault()},ae=o=>{if(!e.isDragging)return;const r=o.changedTouches[0].clientX,l=e.touchStartX-r;Math.abs(l)>=50&&(l>0?I():W()),e.isDragging=!1},I=()=>{e.activeBanners.length>1&&(e.currentBannerIndex=(e.currentBannerIndex+1)%e.activeBanners.length)},W=()=>{e.activeBanners.length>1&&(e.currentBannerIndex=e.currentBannerIndex===0?e.activeBanners.length-1:e.currentBannerIndex-1)},ce=()=>{!e.activeBanners||e.activeBanners.length<=1||(Y(),I(),U.value=setInterval(()=>{I()},lt))},Y=()=>{U.value&&(clearInterval(U.value),U.value=null)},pe=()=>{Y()},ue=()=>{ce()},_e=o=>{const r=o.link;window.open(r,"_blank")};let B=ct([]),ge=ct([]);const fe=Kt();let T=i.params.content_id;i.params.item_id;let H=i.params.link_id,A=()=>{let o={url:"/shop/"+H+"/"+u+"/"+T};ot.setCookie("login_to","shopping_view",{expire:"12h"}),ot.setCookie("login_to_item",o,{expire:"12h"}),e.loginModal=!0,document.body.style.overflow="hidden"};const he=z(()=>e.selected_options_price);let ye=()=>{};const ve=z(()=>{const o=e.products[e.current_product];return D(o)?q(o)+"%":""}),me=()=>{e.coupon_applied=!0,e.couponPopupModal=!1};let be=()=>{let o={url:"/shop/"+H+"/"+u+"/"+T};ot.setCookie("login_to","shopping_view",{expire:"12h"}),ot.setCookie("login_to_item",o,{expire:"12h"}),j.setJoinIntent("buyer"),window.Kakao.Auth.authorize({redirectUri:"https://snapbox.ai/kakao/auth"})},ke=()=>{j.setJoinIntent("buyer"),location.href="https://api.snapbox.ai/v2/login/google"},we=()=>{e.loginModal=!1,document.body.style.overflow="auto"},xe=()=>{if(j.getAccessToken()==null)return A(),!1;{if(e.selected_options.length==0&&e.product_categories.length>0)return alert("ìµì
ì ì íí´ì£¼ì¸ì."),!1;if(e.is_bundle&&e.selected_options.length==0)return alert("ì¸í¸ êµ¬ì± ìµì
ì 모ë ì íí´ì£¼ì¸ì."),!1;if(e.products[e.current_product]==null)return!1;let r=[];if(e.selected_options.length>0)e.selected_options.forEach(p=>{let s={};s.options=JSON.stringify({...p});let _={detail_image:e.products[e.current_product].detail_image};s.cafe24product=_,s.price=p.amount,s.name=e.products[e.current_product].product_name,s.quantity=p.quantity,s.cafe24product_id=e.products[e.current_product].id,s.item_options=p.item_options,s.content_id=T,p.bundle&&(s.bundle=!0);const g=e.products[e.current_product],d=q(g);if(D(g)&&d>0){let h={discount_rate:d,discount_price:Math.round((g.mobile_discount_price||g.pc_discount_price||g.price)*(d/100))};s.sale=h}r.push(s)});else{let p={};p.price=e.products[e.current_product].mobile_discount_price||e.products[e.current_product].pc_discount_price||e.products[e.current_product].price,p.name=e.products[e.current_product].product_name,p.quantity=e.no_option_product.quantity,p.product_id=e.products[e.current_product].id,p.cafe24product_id=e.products[e.current_product].id;let s={detail_image:e.products[e.current_product].detail_image};p.cafe24product=s,p.content_id=T;const _=e.products[e.current_product],g=q(_);if(D(_)&&g>0){let d={discount_rate:g,discount_price:Math.round((_.mobile_discount_price||_.pc_discount_price||_.price)*(g/100))};p.sale=d}r.push(p)}let l={order_items:r,delivery_fee:J.value,type:"order"};localStorage.removeItem("snapbox-order-items"),localStorage.setItem("snapbox-order-items",JSON.stringify(l)),fe.push("/shopping-order")}},Se=()=>{if(!e.user_id)return alert("ì´ë©ì¼ í¹ì ì íë²í¸ë¥¼ ì
ë ¥í´ì£¼ì¸ì."),!1;if(!e.password)return alert("ë¹ë°ë²í¸ë¥¼ ì
ë ¥í´ì£¼ì¸ì."),!1;j.login(e.user_id,e.password)},Te=()=>{if(j.getAccessToken()==null||j.type()==null)return A(),!1;if(e.sale_state==="ended")return alert("í매 기ê°ì´ ì¢
ë£ë ìíì
ëë¤."),!1;if(e.sale_state==="scheduled")return alert("ìì§ íë§¤ê° ììëì§ ìììµëë¤."),!1;if(e.products[e.current_product].use_inventory==="T"&&e.products[e.current_product].sold_out==="T"&&e.products[e.current_product].stock==0)return alert("íì ë ìíì
ëë¤."),!1;e.product_categories=[],e.selected_options=[],e.selected_options_price=0,e.selected_options_quantity=0,e.option_modal=!0,document.body.style.overflow="hidden";let o=e.products[e.current_product];
1if(o==null)return!1;if(e.product_price=o.mobile_discount_price||o.pc_discount_price||o.price,o.set_product_type==="C"&&o.bundle_items){e.is_bundle=!0,e.bundle_items=o.bundle_items,e.bundle_components_options=[],o.bundle_items.forEach(l=>{let p=JSON.parse(l.options);if(!p){e.bundle_components_options.push({product_name:l.product_name,product_categories:[],product_options:[],selected_variant:{id:null,price:0}});return}let s=[];p.forEach(g=>{Object.keys(g).forEach(d=>{!["id","variant_code","price","stock","display","selling","use_inventory","display_soldout"].includes(d)&&!s.includes(d)&&s.push(d)})});let _=s.map(g=>{let d=[];return p.forEach(h=>{h.display!=="F"&&h[g]&&!d.includes(h[g])&&d.push(h[g])}),{category:g,checked_text:"",options:d,allOptions:[...d]}});e.bundle_components_options.push({product_name:l.product_name,product_categories:_,product_options:p,selected_variant:null})}),e.bundle_components_options.length>0&&e.bundle_components_options.every(l=>l.selected_variant!==null)&&K();return}e.is_bundle=!1;let r=JSON.parse(o.options);if(r){let l=[];r.forEach(s=>{Object.keys(s).forEach(g=>{g!="id"&&g!="variant_code"&&g!="price"&&g!="stock"&&g!="display"&&g!="selling"&&g!="use_inventory"&&g!="display_soldout"&&l.push(g)})}),l=l.filter((s,_)=>l.indexOf(s)===_);let p=[];l.forEach((s,_)=>{let g={category:s,checked_text:s,options:[],checked:!1};_==0&&(g.checked=!0),r.forEach(d=>{d.display!=="F"&&Object.keys(d).forEach(v=>{v==s&&g.options.push(d[v])})}),p.push(g)}),p.forEach(s=>{s.options=s.options.filter((_,g)=>s.options.indexOf(_)===g)}),e.product_categories=p,e.product_options=r,console.log("----------------"),console.log(e.product_categories),console.log("----------------"),console.log(e.product_options)}else{let l=e.products[e.current_product],p=l.mobile_discount_price||l.pc_discount_price||l.price;e.no_option_product.amount=p,e.no_option_product.discount_price=Math.round((l.mobile_discount_price||l.pc_discount_price||l.price)*(q(l)/100)),e.selected_options_quantity=e.no_option_product.quantity,e.selected_options_price=(e.no_option_product.amount-e.no_option_product.discount_price)*e.no_option_product.quantity}},Z=(o,r,l)=>{let p=e.bundle_components_options[o];if(!p)return!1;let s={};for(let d=0;d<r;d++)p.product_categories[d].checked_text&&(s[p.product_categories[d].category]=p.product_categories[d].checked_text);if(s[p.product_categories[r].category]=l,r===p.product_categories.length-1){const d=p.product_options.find(h=>p.product_categories.every(v=>h[v.category]===(s[v.category]||"")));return!d||d.display==="F"||d.selling==="F"||d.use_inventory==="T"&&d.display_soldout==="T"&&(d.stock??0)<=0}return!p.product_options.filter(d=>d.display==="F"?!1:Object.keys(s).every(h=>d[h]===s[h])).some(d=>!(d.selling==="F"||d.use_inventory==="T"&&d.display_soldout==="T"&&(d.stock??0)<=0))},Ce=(o,r,l)=>{let p=l.target.value,s=e.bundle_components_options[o];if(p&&Z(o,r,p)){alert("ì¬ê³ ê° ë¶ì¡±í©ëë¤."),l.target.value=s.product_categories[r].checked_text||"";return}s.product_categories[r].checked_text=p;for(let d=r+1;d<s.product_categories.length;d++){s.product_categories[d].checked_text="";let h=s.product_options.filter(k=>{if(k.display==="F")return!1;for(let x=0;x<=r;x++)if(k[s.product_categories[x].category]!==s.product_categories[x].checked_text)return!1;return!0}),v=[];h.forEach(k=>{k[s.product_categories[d].category]&&!v.includes(k[s.product_categories[d].category])&&v.push(k[s.product_categories[d].category])}),s.product_categories[d].options=v}if(s.product_categories.every(d=>d.checked_text!=="")){let d=s.product_options.find(h=>s.product_categories.every(v=>h[v.category]===v.checked_text));s.selected_variant=d||null}else s.selected_variant=null;e.bundle_components_options.every(d=>d.selected_variant!==null)&&K()},K=()=>{const o=e.products[e.current_product];let r=e.bundle_components_options.map((s,_)=>{let g=s.selected_variant,d=s.product_categories.map(h=>h.checked_text);return{component_product_name:s.product_name,component_product_id:e.bundle_items[_].id,component_option_id:g.id,item_options:d,price:g.price}}),l=r.reduce((s,_)=>s+_.price,0),p={id:Date.now(),bundle:!0,components:r,amount:e.product_price+l,discount_price:Math.round(e.product_price*(q(o)/100)),quantity:1,item_options:r.map(s=>s.component_product_name+": "+s.item_options.join(", "))};e.selected_options.push(p),e.selected_options_price=0,e.selected_options.forEach(s=>{e.selected_options_price+=(s.amount-s.discount_price)*s.quantity}),e.selected_options_quantity=0,e.selected_options.forEach(s=>{e.selected_options_quantity+=s.quantity}),e.bundle_components_options.forEach(s=>
1{s.product_categories.forEach((_,g)=>{_.checked_text="",g>0&&(_.options=[..._.allOptions])}),s.selected_variant=null})},Q=(o,r)=>{let l={};if(e.product_categories.forEach(s=>{s.checked_text!==s.category&&(l[s.category]=s.checked_text)}),l[o]=r,Object.keys(l).length===e.product_categories.length){const s=e.product_options.find(_=>Object.keys(l).every(g=>_[g]===l[g]));return s?s.display==="F"?!1:s.selling===void 0||s.selling==="T":!0}else return e.product_options.filter(_=>(_.display===void 0||_.display==="T")&&Object.keys(l).every(g=>_[g]===l[g])).some(_=>_.selling===void 0||_.selling==="T")},Ee=o=>{o.target.className=="layer_bg"&&(e.option_modal=!1,document.body.style.overflow="auto")},ze=o=>{if(o==-1){let r=e.products[e.current_product].stock;if(e.products[e.current_product].use_inventory==="T"&&e.products[e.current_product].sold_out==="T"&&e.no_option_product.quantity>=r)return alert("ì¬ê³ ê° ë¶ì¡±í©ëë¤."),!1;e.no_option_product.quantity+=1,e.selected_options_quantity=e.no_option_product.quantity,e.selected_options_price=(e.no_option_product.amount-e.no_option_product.discount_price)*e.no_option_product.quantity}else{let r=e.selected_options[o].stock;if(e.selected_options[o].use_inventory==="T"&&e.selected_options[o].display_soldout==="T"&&e.selected_options[o].quantity>=r)return alert("ì¬ê³ ê° ë¶ì¡±í©ëë¤."),!1;e.selected_options[o].quantity+=1,e.selected_options_price=0,e.selected_options.forEach(l=>{e.selected_options_price+=(l.amount-l.discount_price)*l.quantity}),e.selected_options_quantity=0,e.selected_options.forEach(l=>{e.selected_options_quantity+=l.quantity})}},Oe=o=>{if(o==-1){if(e.no_option_product.quantity==1)return!1;e.no_option_product.quantity-=1,e.selected_options_quantity=e.no_option_product.quantity,e.selected_options_price=(e.no_option_product.amount-e.no_option_product.discount_price)*e.no_option_product.quantity}else{if(e.selected_options[o].quantity==1)return!1;e.selected_options[o].quantity-=1,e.selected_options_price=0,e.selected_options.forEach(r=>{e.selected_options_price+=(r.amount-r.discount_price)*r.quantity}),e.selected_options_quantity=0,e.selected_options.forEach(r=>{e.selected_options_quantity+=r.quantity})}},Me=o=>{e.selected_options.splice(o,1),e.selected_options_price=0,e.selected_options.forEach(r=>{e.selected_options_price+=(r.amount-r.discount_price)*r.quantity}),e.selected_options_quantity=0,e.selected_options.forEach(r=>{e.selected_options_quantity+=r.quantity})},qe=o=>{var r;if(e.current_product==o)return!1;e.current_product=o,e.selected_options=[],e.selected_options_price=0,e.selected_options_quantity=0,e.checked_wish=(r=e.wishes[o])==null?void 0:r.checked},Re=()=>{var o;if(j.getAccessToken()==null)return A(),!1;if(e.selected_options.length==0&&e.product_categories.length>0)return alert("ìµì
ì ì íí´ì£¼ì¸ì."),!1;if(confirm("ì¥ë°êµ¬ëì ë´ì¼ìê² ìµëê¹?")){let r=[];e.selected_options.forEach(s=>{r.push(s)});let p={product_id:(o=e.products[e.current_product])==null?void 0:o.id,content_id:T,cart_items:JSON.stringify(r),coupon_id:null};nt.cart(p).then(s=>{console.log(s.data),s.data.code=="S"&&(alert("ì¥ë°êµ¬ëì ì¶ê°íìµëë¤."),e.option_modal=!1,document.body.style.overflow="auto")}).catch(s=>{console.log(s)})}},Ne=(o,r,l)=>{if(!Q(r,l))return alert("í매 ì¤ì§ë ìµì
ì
ëë¤."),!1;if($(r,l)<=0)return alert("ì¬ê³ ê° ë¶ì¡±í©ëë¤."),!1;let s=r+o,_=document.getElementById(s);_.checked=!1,e.product_categories[o].checked_text=l;let g=!1;if(e.product_categories.forEach(d=>{d.category===d.checked_text&&(g=!0)}),g==!1){let d={};e.product_categories.forEach(k=>{d[k.category]=k.checked_text});let h=Object.keys(d);const v=e.product_options.find(k=>h.every(x=>k[x]===d[x]));if(v){if(v.display==="F"||v.selling==="F")return alert("í매 ì¤ì§ë ìµì
ì
ëë¤."),!1;let k=!1;if(e.selected_options.forEach(x=>{x.id==v.id&&(k=!0)}),k==!1){const x=e.products[e.current_product];v.amount=e.product_price+v.price,v.discount_price=Math.round(e.product_price*(q(x)/100));let ne=[];e.product_categories.forEach(L=>{ne.push(v[L.category])}),v.item_options=ne,v.quantity=1,e.selected_options.push(v),e.selected_options_price=0,e.selected_options.forEach(L=>{e.selected_options_price+=(L.amount-L.discount_price)*L.quantity})}else alert("ì´ë¯¸ ì¶ê°í ìµì
ì
ëë¤.");
1e.product_categories.forEach(x=>{x.checked_text=x.category}),e.selected_options_quantity=0,e.selected_options.forEach(x=>{e.selected_options_quantity+=x.quantity})}console.log(e.product_categories),e.product_categories.forEach((k,x)=>{x==0?k.checked=!0:k.checked=!1})}else{for(let d=o;d<e.product_categories.length;d++)d==o?e.product_categories[d].checked=!0:(e.product_categories[d].checked=!1,e.product_categories[d].checked_text=e.product_categories[d].category);if(e.product_categories[o+1]){e.product_categories[o+1].checked=!0;let d=[];e.product_options.forEach(h=>{h.display!=="F"&&(o==0&&(console.log(e.product_categories[o].category),console.log(e.product_categories[o].checked_text),h[e.product_categories[o].category]==e.product_categories[o].checked_text&&d.push(h[e.product_categories[o+1].category])),o==1&&h[e.product_categories[o].category]==e.product_categories[o].checked_text&&h[e.product_categories[o-1].category]==e.product_categories[o-1].checked_text&&d.push(h[e.product_categories[o+1].category]),o==2&&h[e.product_categories[o].category]==e.product_categories[o].checked_text&&h[e.product_categories[o-1].category]==e.product_categories[o-1].checked_text&&h[e.product_categories[o-2].category]==e.product_categories[o-2].checked_text&&d.push(h[e.product_categories[o+1].category]),o==3&&h[e.product_categories[o].category]==e.product_categories[o].checked_text&&h[e.product_categories[o-1].category]==e.product_categories[o-1].checked_text&&h[e.product_categories[o-2].category]==e.product_categories[o-2].checked_text&&h[e.product_categories[o-3].category]==e.product_categories[o-3].checked_text&&d.push(h[e.product_categories[o+1].category]))}),d=d.filter((h,v)=>d.indexOf(h)===v),e.product_categories[o+1].options=d}}},Be=()=>{var o;if(j.getAccessToken()==null)return A(),!1;{let l={product_id:(o=e.products[e.current_product])==null?void 0:o.id,content_id:T,checked:!1};e.checked_wish==!0?l.checked=!0:l.checked=!1,nt.updateWish(l).then(p=>{console.log(p.data),p.data.code=="S"&&(l.checked==!0?e.wishes[e.current_product].checked=!0:e.wishes[e.current_product].checked=!1)}).catch(p=>{console.log(p)})}},$=(o,r)=>{let l={};if(e.product_categories.forEach(s=>{s.checked_text!==s.category&&(l[s.category]=s.checked_text)}),l[o]=r,Object.keys(l).length===e.product_categories.length){const s=e.product_options.find(h=>Object.keys(l).every(v=>h[v]===l[v]));if(!s)return 0;const _=s.use_inventory??null,g=s.display_soldout??null,d=s.stock??null;return _!==null&&_=="T"&&g=="T"&&d!==null?d:1}else return e.product_options.filter(g=>(g.display===void 0||g.display==="T")&&Object.keys(l).every(d=>g[d]===l[d])).some(g=>{if(g.selling==="F")return!1;const d=g.use_inventory??null,h=g.display_soldout??null,v=g.stock??null;return d!==null&&d=="T"&&h=="T"&&v!==null?v>0:!0})?1:0},Le=(o,r)=>{if(e.product_categories.findIndex(_=>_.category===o)<e.product_categories.length-1)return"";let p={};e.product_categories.forEach(_=>{_.checked_text!==_.category&&(p[_.category]=_.checked_text)}),p[o]=r;const s=e.product_options.find(_=>Object.keys(p).every(g=>_[g]===p[g]));if(s){const _=s.price;return _===0?"":_>0?`(+${_.toLocaleString("ko-KR")}ì)`:`(${_.toLocaleString("ko-KR")}ì)`}return""},je=()=>{const o=new Date;let r=new Date(o);r.setDate(o.getDate()+2),r.getDay()===6?r.setDate(r.getDate()+2):r.getDay()===0&&r.setDate(r.getDate()+1);const l=String(r.getMonth()+1).padStart(2,"0"),p=String(r.getDate()).padStart(2,"0"),_=["ì¼","ì","í","ì","목","ê¸","í "][r.getDay()];return`${l}.${p} (${_})`},De=o=>{switch(o){case"5":return"**ì주 ì¢ìì**";case"4":return"ë§ì ë¤ì´ì";case"3":return"ë³´íµì´ìì";case"2":return"ê·¸ë¥ ê·¸ëì";case"1":return"ë³ë¡ìì"}},Ie=()=>{e.isReviewExpanded=!e.isReviewExpanded},Ae=()=>{e.reviewModal=!1,e.isReviewExpanded=!1,document.body.style.overflow="auto"},Pe=o=>{(o&&o.photo&&o.photo.length>0||o)&&(e.selected_review=o,e.reviewModal=!0,document.body.style.overflow="hidden")},He=()=>{ut.updateContents(T).then(o=>{console.log(o)}).catch(o=>{console.log(o)})};const E=o=>{if(!o)return null;const r=new Date(String(o).replace(" ","T"));return isNaN(r.getTime())?null:r},Ke=o=>{const r=(o==null?void 0:o.sale_rounds)||null;if(!e.sale_round){if(!r||r.length===0){e.sale_state="always";return}const _=Date.now(),g=r.filter(d=>{var h;return(((h=E(d.started_at))==null?void 0:h.getTime())||0)>_}).sort((d,h)=>E(d.started_at)-E(h.started_at));g.length>0?(e.sale_round=g[0],e.sale_state="scheduled"):e.sale_state="ended";return}const l=Date.now(),p=E(e.sale_round.started_at),s=E(e.sale_round.ended_at);p&&p.getTime()>l?e.sale_state="scheduled":s&&s.getTime()<l?e.sale_state="ended":e.s
1ale_state="active"},ee=o=>{e.sale_tick;const r=E(o);if(!r)return"";let l=Math.floor((r.getTime()-Date.now())/1e3);if(l<=0)return"00:00:00";const p=Math.floor(l/86400);l-=p*86400;const s=Math.floor(l/3600);l-=s*3600;const _=Math.floor(l/60),g=l-_*60,d=h=>String(h).padStart(2,"0");return p>0?p+"ì¼ "+d(s)+":"+d(_)+":"+d(g):d(s)+":"+d(_)+":"+d(g)},Fe=z(()=>e.sale_round),Ve=z(()=>e.sale_state),Ue=z(()=>{var o;return ee((o=e.sale_round)==null?void 0:o.ended_at)}),Xe=z(()=>{var o;return ee((o=e.sale_round)==null?void 0:o.started_at)}),Ge=z(()=>{var h,v;e.sale_tick;const o=e.sale_state==="scheduled"?(h=e.sale_round)==null?void 0:h.started_at:(v=e.sale_round)==null?void 0:v.ended_at,r=E(o);if(!r)return[];let l=Math.floor((r.getTime()-Date.now())/1e3);l<0&&(l=0);const p=Math.floor(l/86400);l-=p*86400;const s=Math.floor(l/3600);l-=s*3600;const _=Math.floor(l/60),g=l-_*60,d=k=>String(k).padStart(2,"0");return p>0?[{key:"d",value:String(p),label:"ì¼"},{key:"h",value:d(s),label:"ìê°"},{key:"m",value:d(_),label:"ë¶"},{key:"s",value:d(g),label:"ì´"}]:[{key:"h",value:d(s),label:"ìê°"},{key:"m",value:d(_),label:"ë¶"},{key:"s",value:d(g),label:"ì´"}]});let F=null;Mt(()=>{F=setInterval(()=>{if(e.sale_tick++,!e.sale_round)return;const o=Date.now(),r=E(e.sale_round.started_at),l=E(e.sale_round.ended_at);l&&l.getTime()<o?e.sale_state="ended":r&&r.getTime()<=o&&e.sale_state==="scheduled"&&(e.sale_state="active")},1e3)}),It(()=>{F&&clearInterval(F)}),Mt(()=>{console.log("mounted!"),window.scrollTo(0,0),te(),oe(),ie(),Je(),He()});async function te(){ut.contents(T).then(o=>{rt=o.data.is_main,B.value=o.data.photo,e.is_hidden=o.data.is_hidden,B.value.forEach(r=>{if(r==null||r.tags.forEach(l=>{ge.value.push(l)}),r.disk=="cf"&&r.is_video===1){let p=r.media_url+"/manifest/video.m3u8"+"/thumbnails/thumbnail.jpg";p=p.replace("manifest/video.m3u8/",""),r.poster=p}}),B.value.forEach(r=>{r.click=!1})}).catch(o=>{console.log(o),o.response.status==404&&alert("ê²ìê¸ì´ ì¡´ì¬íì§ ììµëë¤.")})}async function oe(){nt.view(T).then(o=>{var p;console.log(o.data);let r=o.data;e.content_views=o.data.views||0,r.tags.forEach(s=>{if(s.cafe24products)if(s.store&&(s.cafe24products.store=s.store),e.products.push(s.cafe24products),e.products.length===1&&(e.sale_round=s.cafe24products.active_sale_round||null,Ke(s.cafe24products)),s.wish){let _={product_id:s.cafe24products.id,wish_id:s.wish.id,checked:!0};e.wishes.push(_)}else{let _={product_id:s.cafe24products.id,checked:!1};e.wishes.push(_)}e.sales_count=s.sales_count}),e.checked_wish=(p=e.wishes[0])==null?void 0:p.checked,e.user_profile=r.user.profile,console.log(e.products)}).catch(o=>{console.log(o),o.response.status==404&&alert("ê²ìê¸ì´ ì¡´ì¬íì§ ììµëë¤.")})}async function ie(){try{const r=(await ut.dropshippingBanner()).data;e.activeBanners=r.filter(l=>l.is_active===1||l.is_active===!0)}catch(o){return console.error("ë°°ë ë¡ë ì¤í¨:",o),[]}}async function Je(){try{let o={content_id:T};const r=await nt.reviews(u,o);e.main_review=r.data.main_review||[],e.reviews=r.data.reviews||[],console.log("ë©ì¸ë¦¬ë·°:",e.main_review),console.log("리뷰ë¤:",e.reviews)}catch(o){console.error("리뷰 ë¡ë ì¤í¨:",o),e.main_review=[],e.reviews=[]}}const We=o=>{const r=o.activeIndex,l=e.currentSlideIndex;document.querySelectorAll("video[data-video-index]").forEach(s=>{var g;const _=parseInt(s.getAttribute("data-video-index"));_===l&&_!==r?s.pause():_===r&&((g=B.value[r])==null?void 0:g.is_video)===1&&setTimeout(()=>{s.play().catch(d=>{console.log("Auto-play failed:",d)})},100)}),e.currentSlideIndex=r},Ye=async()=>{try{await navigator.clipboard.writeText(window.location.href),alert("ë§í¬ê° ë³µì¬ëììµëë¤!")}catch(o){console.error("ë§í¬ ë³µì¬ ì¤í¨:",o),alert("ë§í¬ ë³µì¬ì ì¤í¨íìµëë¤.")}};let Ze=()=>{var r,l,p;const o=(p=(l=(r=e.products[e.current_product])==null?void 0:r.store)==null?void 0:l.drop_setting)==null?void 0:p.kakao_channel_url;o?window.open(o,"_blank"):alert("ì¹´ì¹´ì¤í¡ ì±ë ì ë³´ê° ììµëë¤.")};return pt("userProfile",z(()=>e.user_profile)),pt("is_main",rt),pt("content_id",T),{...At(e),saleRound:Fe,saleState:Ve,saleRemainText:Ue,saleOpenText:Xe,saleCountdown:Ge,photos:B,buy:xe,toCart:Re,openOptionModal:Te,clickOutside:Ee,checkOption:Ne,addNumber:ze,reduceNumber:Oe,removeOption:Me,clickProduct:qe,checkWish:Be,login:Se,kakaoLogin:be,googleLogin:ke,closeLoginModal:we,getOptionStock:$,getShippingDate:je,fetcShopping:oe,fetchBanners:ie,fetchContent:te,link_id:H,toggleCoupon:ye,coupon_applied_price:he,couponPopupDiscountText:ve,applyCouponPopup:me,toLink:_e,copyLink:Ye,review:De,openReviewModal:Pe,closeReviewModal:Ae,toggleReviewExpand:Ie,handleTouchStart:le,handleTouchMove:de,handleTouchEnd:ae,nextBanner:I,prevBanner:W,pauseAutoSlide:pe,resumeAutoSlide:ue,emitLogin:re,openKakaoChannel:Ze,getOptionPrice:Le,formatPrice:P,hasCafe24Discount:dt,getOptionSelling:Q,onSlideChange:We,getDiscountEnabled:D,getDiscountRate:q,selected_options_original_price:X,selected_options_discount_amount:G,effective_delivery_fee:J,isProductBlocked:se,getBundleOptionSoldOut:Z,onBundleOptionSelect:Ce,addBundleToSelected:K}}},to={class:"header header_color shop-fit-header",id:"main_header"},oo={class:"shop-view-section"},io={class:"feed_view_area"},no={class:"feed_view_slide"},so={style:{display:"flex"}},ro=["id"],lo=["for"],ao=["src"],co=["src"],po=["poster"],uo=["src"],_o=["poster","data-vi
1deo-index"],go={class:"ai_shopping"},fo={class:"brand_share_area",style:{padding:"10px 20px",display:"flex","justify-content":"space-between","align-items":"center","border-bottom":"1px solid #eee"}},ho={class:"brand_name",style:{"font-size":"15px",color:"#8a8a8a","font-weight":"500"}},yo={class:"product_info_section",style:{padding:"15px",background:"#fff","border-bottom":"1px solid #eee"}},vo={class:"product_name",style:{"font-size":"18px","font-weight":"400","margin-bottom":"8px","line-height":"1.4"}},mo={class:"price_section",style:{"margin-bottom":"15px"}},bo={style:{display:"flex","justify-content":"space-between"}},ko={style:{flex:"1"}},wo={key:0,style:{display:"flex","align-items":"center","line-height":"1.2",color:"#ff4444","font-weight":"bold","font-size":"14px"}},xo={style:{color:"#999","text-decoration":"line-through","font-size":"17px","font-weight":"300"}},So={style:{"font-size":"22px","font-weight":"bold","line-height":"1.2"}},To={key:1,style:{color:"#ff4444","font-size":"22px","font-weight":"bold","line-height":"1.2",display:"flex","align-items":"center"}},Co={style:{"font-size":"12px",color:"#ff4444",margin:"0 6px","font-weight":"600"}},Eo={key:0,style:{display:"flex","align-items":"center"}},zo={style:{width:"20px",display:"flex","align-items":"center","margin-right":"6px"}},Oo={key:0,src:Yt,alt:"ì¿ í°ë°ê¸°",style:{width:"14px",height:"14px"}},Mo={key:1,style:{color:"#fff","font-size":"14px"}},qo={key:0,style:{background:"#000",color:"#fff",padding:"12px","border-radius":"8px",display:"flex","justify-content":"space-between","align-items":"center",cursor:"pointer","font-weight":"600"}},Ro={style:{color:"#fff"}},No={style:{color:"#ff4444"}},Bo={class:"service_info_section",style:{padding:"15px","padding-bottom":"20px",background:"#fff"}},Lo={key:0,style:{display:"flex","margin-bottom":"12px"}},jo={key:1,style:{height:"1px",background:"#eee",margin:"13px 0"}},Do={style:{display:"flex"}},Io={style:{flex:"1","font-size":"14px"}},Ao={style:{display:"flex","align-items":"center","margin-bottom":"4px"}},Po={style:{"font-weight":"600"}},Ho={key:0},Ko={key:0},Fo={style:{"font-weight":"600"}},Vo={key:1},Uo={style:{"font-weight":"600"}},Xo={key:0,class:"ad_section",style:{background:"#ddd",width:"100%",height:"90px","border-top":"8px solid #f6f6f6","border-bottom":"8px solid #f6f6f6",position:"relative",overflow:"hidden"}},Go={key:0,class:"preload-images"},Jo=["src"],Wo={key:1,class:"banner-page-indicator",style:{position:"absolute",bottom:"10px",right:"15px",background:"rgba(180, 180, 180, 0.95)",color:"white",padding:"3px 11px","border-radius":"15px","font-size":"10px","font-weight":"600"}},Yo={style:{color:"#ddd","font-size":"10px","font-weight":"600"}},Zo={key:1,class:"ad_review_section",style:{padding:"15px",background:"#fff","border-bottom":"10px solid #fbfbfb"}},Qo={key:0,style:{display:"flex","align-items":"center"}},$o={style:{color:"#ff9800","font-size":"14px"}},ei={style:{"margin-left":"4px","font-weight":"600"}},ti={style:{color:"#666","font-size":"12px","margin-bottom":"12px"}},oi=["src"],ii={style:{flex:"1","font-size":"14px",color:"#666","line-height":"1.4","text-align":"left",padding:"5px 15px","word-wrap":"break-word","word-break":"break-word","white-space":"pre-wrap"}},ni={class:"paylist"},si={for:"paylist01"},ri={class:"paylist00"},li={style:{padding:"15px"}},di={style:{position:"relative"},class:"shop_detail_page"},ai=["innerHTML"],ci={key:0,style:{position:"absolute",bottom:"0",left:"0",right:"0",height:"20px",background:`linear-gradient(\r 2 transparent,\r 3 white\r 4 )`}},pi={style:{padding:"15px 15px 0 15px"}},ui={key:0,style:{"margin-bottom":"20px"}},_i=["innerHTML"],gi={key:1,style:{"margin-bottom":"20px"}},fi=["innerHTML"],hi={key:2},yi=["innerHTML"],vi={key:3,style:{padding:"20px","text-align":"center",color:"#666","font-size":"14px"}},mi={style:{padding:"15px 15px 0 15px"}},bi={key:0,style:{"margin-bottom":"20px"}},ki=["innerHTML"],wi={key:1,style:{"margin-bottom":"20px"}},xi=["innerHTML"],Si={key:2},Ti=["innerHTML"],Ci={key:3,style:{padding:"20px","text-align":"center",color:"#666","font-size":"14px"}},Ei={style:{padding:"15px 15px 0 15px"}},zi={class:"grid"},Oi={class:"grid"},Mi={class:"grid"},qi={class:"grid"},Ri={class:"grid"},Ni={class:"grid"},Bi={class:"grid"},Li={class:"paylist01"},ji=["onClick"],Di={style:{display:"flex","align-items":"center","margin-bottom":"8px"}},Ii={style:{color:"#ff9800"}},Ai={style:{"margin-left":"4px","font-weight":"600","font-size":"14px"}},Pi={key:0,style:{display:"flex",gap:"10px","margin-bottom":"8px"}},Hi=["src"],Ki={style:{"font-size":"14px",color:"#666","line-height":"1.4","word-wrap":"break-word","word-break":"break-word","white-space":"pre-wrap"}},Fi={class:"paylist02"},Vi={key:0,style:{padding:"30px"}},Ui={style:{display:"flex","align-items":"center","justify-content":"space-between",padding:"12px 15px",background:"#fff","border-radius":"8px"}},Xi={style:{display:"flex","align-items":"center",gap:"12px"}},Gi={style:{width:"45px",height:"45px","border-radius":"40%",background:"#fff",overflow:"hidden"}},Ji=["src"],Wi={style:{"font-size":"15px","font-weight":"700",color:"#000",display:"flex","align-items":"center",gap:"4px","margin-bottom":"2px"}},Yi={style:{display:"flex","align-items":"center",gap:"8px"}},Zi={class:"shopping_btn_area",style:{"z-index":"999"}},Qi={class:"sale_round_left"},$i={class:"sale_round_chip"},en={class:"sale_round_title"},tn={key:0,class:"sale_round_right"},on={class:"sale_round_caption"},nn={class:"sale_round_clock"},sn={key:0,class:"sale_round_sep"},rn={class:"sale_round_unit"},ln={class:"sale_round_num"},dn={class:"sale_round_suffix"},an={key:1,class:"sale_round_right"},cn={style:{display:"flex","flex-direction":"column","align-items":"center"}},pn={key:0,style:{cursor:"pointer"}},un={key:1,style:{cursor:"default"}},_n={key:2,style:{cursor:"default"}},gn={class:"layer_bg"},fn={class:"shopping_option_area",id:"option_box"},hn={class:"scroll_area"},yn={key:0,style:{padding:"0 16px"}},vn={style:{display:"flex","align-items":"center",gap:"10px","margin-bottom":"12px"}},mn=["src"],bn={style:{"font-size":"13px",color:"#333","font-weight":"500"}},kn={style:{color:"#999","font-weight":"400","font-size":"12px"}},wn={style:{"font-size":"14px",color:"#333","font-weight":"600","margin-top":"2px"}},xn={style:{"font-size":"13px",color:"#666","margin-bottom":"4px"}},Sn=["value","onChange"],Tn={value:""},Cn=["value"],En={key:0,style:{padding:"6px 0","font-size":"13px",color:"#2563eb","font-weight":"500"}},zn={class:"shopping_select_area"},On=["name","id"],Mn=["for"],qn={class:"shopping_option_box",id:"option_brand"},Rn=["onClick"],Nn={class:"shopping_selected_area"},Bn={class:"selected_title"},Ln=["onClick"],jn={class:"selected_price"},Dn={class:"ai_product_q"},In=["onClick"],An=["onUpdate:modelValue"],Pn=["onClick"],Hn={class:"price",style:{"font-size":"14px"}},Kn={class:"shopping_selected_area"},Fn={class:"shopping_option_selected"},Vn={class:"selected_price"},Un={class:"ai_product_q"},Xn={class:"price",style:{"font-size":"14px"}},Gn={class:"option_area_button"},Jn={class:"option_price_total"},Wn={class:"txtright"},Yn={class:"txtright"}
4,Zn={key:0,style:{color:"#e74c3c"}},Qn={class:"txtright"},$n={style:{"font-weight":"700"}},es={class:"txtright"},ts={style:{display:"flex"}},os={class:"popup_layer",id:"popup_login",style:{"max-width":"800px",position:"fixed",left:"0",right:"0",margin:"0 auto"}},is={class:"snapboxai_login",style:{padding:"30px 20px","z-index":"99999999"}},ns={class:"popup_box_header",style:{"text-align":"left","margin-bottom":"40px"}},ss={class:"snapboxai_login_inner",style:{"text-align":"center","padding-top":"100px"}},rs={key:0,style:{position:"absolute",top:"15%",left:"0",right:"0",bottom:"200px",display:"flex","align-items":"center","justify-content":"center"}},ls=["src"],ds={key:0},as={style:{display:"flex","align-items":"center","margin-bottom":"12px"}},cs=["src"],ps={style:{color:"white","font-weight":"bold","font-size":"16px","margin-bottom":"4px"}},us={style:{display:"flex","align-items":"center"}},_s={style:{color:"#ffd700","margin-right":"8px"}},gs={style:{color:"#ccc","font-size":"12px","margin-left":"12px"}},fs={key:0,style:{color:"#fff","font-size":"15px","font-weight":"700","margin-bottom":"8px"}},hs={style:{"font-size":"13px",color:"#fff"}},ys={key:1},vs={style:{display:"flex","align-items":"center","margin-bottom":"8px"}},ms={style:{color:"white","font-weight":"bold","font-size":"16px","margin-bottom":"4px","margin-right":"12px"}},bs={style:{color:"#ffd700","margin-right":"8px"}},ks={style:{color:"#ccc","font-size":"12px"}},ws={key:0,style:{color:"#fff","font-size":"15px","font-weight":"700","margin-bottom":"8px"}},xs={style:{"font-size":"13px",color:"#fff"}},Ss={key:1,style:{color:"#ddd","font-size":"13px",position:"absolute",bottom:"0",right:"0",background:"rgba(0, 0, 0, 0.8)","padding-left":"10px"}};function Ts(e,i,Lt,u,rt,U){var D,X,G,J,re,le,de,ae,I,W,ce,Y,pe,ue,_e,B,ge,fe,T,H,A,he,ye,ve,me,be,ke,we,xe,Se,Te,Z,Ce,K,Q,Ee,ze,Oe,Me,qe,Re,Ne,Be,$,Le,je,De,Ie,Ae,Pe,He,E,Ke,ee,Fe,Ve,Ue,Xe,Ge,F,te,oe,ie,Je,We,Ye,Ze,o,r,l,p,s,_,g,d,h,v,k,x,ne,L,_t,gt,ft,ht,yt,vt,mt,bt,kt,wt,xt,St,Tt;const lt=it("TOP"),se=it("swiper-slide"),P=it("swiper"),dt=it("KAKAO_CHANNEL_BTN"),q=Ft("hls");return a(),c(b,null,[e.products.length>0&&(((D=e.products[e.current_product])==null?void 0:D.drop_status)!="T"&&!((X=e.products[e.current_product])!=null&&X.is_drop_user)||e.is_hidden==1)?(a(),c("div",{key:0,style:{position:"fixed",top:"0",left:"0",width:"100%",height:"100vh","background-color":"rgba(128, 128, 128, 0.5)","z-index":"99999","pointer-events":"auto"},onClick:i[0]||(i[0]=$e(()=>{},["prevent"])),onScroll:i[1]||(i[1]=$e(()=>{},["prevent"])),onTouchmove:i[2]||(i[2]=$e(()=>{},["prevent"]))},null,32)):y("",!0),t("div",to,[qt(lt,{onEmitLogin:u.emitLogin},null,8,["onEmitLogin"])]),t("section",oo,[t("div",{class:"inner",onClick:i[33]||(i[33]=(...n)=>u.clickOutside&&u.clickOutside(...n))},[t("div",io,[t("div",no,[t("div",so,[(a(),et(P,{key:u.photos.length,spaceBetween:0,pagination:{clickable:!0},navigation:"",speed:400,style:{width:"100%"},autoHeight:!0,onSlideChange:u.onSlideChange},{default:tt(()=>[(a(!0),c(b,null,w(this.photos,(n,m)=>(a(),et(se,{key:m},{default:tt(()=>[n.tags.length?(a(),c("input",{key:0,type:"checkbox",id:"check_tag"+m,class:"btn_Tag"},null,8,ro)):y("",!0),n.tags.length?(a(),c("label",{key:1,for:"check_tag"+m},null,8,lo)):y("",!0),(a(!0),c(b,null,w(n.tags,(S,R)=>(a(),c("button",{type:"button",class:"btn_imgTag",style:M({position:"absolute",top:S.top,left
4:S.left}),key:R},null,4))),128)),n.is_video===0?(a(),c(b,{key:2},[n.disk=="aws"?(a(),c("img",{key:0,src:n.photo,style:{"object-fit":"cover"}},null,8,ao)):y("",!0),n.disk=="cf"?(a(),c("img",{key:1,src:n.media_url,style:{"object-fit":"cover"}},null,8,co)):y("",!0)],64)):y("",!0),n.is_video===1?(a(),c(b,{key:3},[n.disk=="aws"?(a(),c("video",{key:0,loop:"",autoplay:"",muted:"",playsinline:"","webkit-playsinline":"",style:{"object-fit":"cover",width:"100%",height:"100%",cursor:"pointer","pointer-events":"auto"},poster:n.thumbnail||null},[t("source",{src:n.photo,type:"video/mp4"},null,8,uo),i[34]||(i[34]=C(" íì¬ ë¸ë¼ì°ì ìì ì§ìëì§ ìë íìì
ëë¤. "))],8,po)):y("",!0),n.disk=="cf"?O((a(),c("video",{key:1,autoplay:"",muted:"",playsinline:"","webkit-playsinline":"",style:{"object-fit":"cover",width:"100%",height:"100%",cursor:"pointer","pointer-events":"auto"},poster:n.poster||null,"data-video-index":m},null,8,_o)),[[q,n.media_url]]):y("",!0)],64)):y("",!0)]),_:2},1024))),128))]),_:1},8,["onSlideChange"]))])])]),t("div",go,[O(t("div",fo,[t("div",ho,f((J=(G=e.products[e.current_product])==null?void 0:G.store)!=null&&J.brand_ko?(le=(re=e.products[e.current_product])==null?void 0:re.store)==null?void 0:le.brand_ko:(ae=(de=e.products[e.current_product])==null?void 0:de.store)==null?void 0:ae.shop_name),1)],512),[[N,e.products.length>0]]),t("div",yo,[i[38]||(i[38]=t("div",{class:"product_tags",style:{"margin-bottom":"10px"}},[t("span",{style:{background:"#333",color:"#fff",padding:"4px 8px","border-radius":"2px","font-size":"12px"}},"구매ìì¶ì²"),t("span",{style:{background:"#eee",color:"#000",padding:"4px 8px","border-radius":"2px","font-size":"12px"}},"ë² ì¤í¸í½ TOP10")],-1)),t("div",vo,f((I=e.products[e.current_product])==null?void 0:I.product_name),1),t("div",mo,[t("div",bo,[t("div",ko,[u.hasCafe24Discount(e.products[e.current_product])?(a(),c("div",wo,[t("span",xo,f((Y=((W=e.products[e.current_product])==null?void 0:W.retail_price)||((ce=e.products[e.current_product])==null?void 0:ce.price))==null?void 0:Y.toLocaleString("ko-KR"))+"ì ",1)])):y("",!0),t("div",So,f((pe=u.formatPrice(e.products[e.current_product]))==null?void 0:pe.toLocaleString("ko-KR"))+"ì ",1),u.getDiscountEnabled(e.products[e.current_product])?(a(),c("div",To,[C(f((ue=Math.round(u.formatPrice(e.products[e.current_product])*(1-u.getDiscountRate(e.products[e.current_product])/100)))==null?void 0:ue.toLocaleString("ko-KR"))+"ì ",1),t("span",Co,f(e.coupon_applied?"ì¿ í°ì ì©ìë£":"ì¿ í°ì ì©ì"),1),i[35]||(i[35]=t("img",{src:Bt,alt:"ì¿ í°í ì¸ê°",style:{width:"16px",height:"16px"}},null,-1))])):y("",!0)]),u.getDiscountEnabled(e.products[e.current_product])?(a(),c("div",Eo,[t("button",{style:M({border:"1px solid #333",borderRadius:"100px",padding:"8px 16px",background:e.coupon_applied?"#333":"#fff",color:e.coupon_applied?"#fff":"#333",cursor:"pointer",fontSize:"14px",display:"flex",alignItems:"center",fontWeight:"600"}),onClick:i[3]||(i[3]=(...n)=>u.toggleCoupon&&u.toggleCoupon(...n))},[t("span",zo,[e.coupon_applied?(a(),c("span",Mo,"â")):(a(),c("img",Oo))]),C(" "+f(e.coupon_applied?"ì¿ í° ì ì©":"ì¿ í° ë°ê¸°"),1)],4)])):y("",!0)])]),u.getDiscountEnabled(e.products[e.current_product])?(a(),c("div",qo,[t("span",null,[t("span",Ro,"@"+f(u.link_id),1),i[36]||(i[36]=t("span",{style:{color:"#fff"}},"ëì´ ë°íí ",-1)),t("span",No,f(u.getDiscountRate(e.products[e.current_product]))+"%",1),i[37]||(i[37]=t("span",{style:{color:"#fff"}}," í ì¸ì¿ í°",-1))]),t("span",{style:{color:"#ff4444"},onClick:i[4]||(i[4]=n=>u.toggleCoupon())},f(e.coupon_applied?"ì ì©ìë£":"ì ì©í기"),1)])):y("",!0)]),t("div",Bo,[u.getDiscountEnabled(e.products[e.current_product])?(a(),c("div",Lo,i[39]||(i[39]=[t("div",{style:{width:"60px",color:"#666","font-size":"14px"}}," í ì¸ ",-1),t("div",{style:{flex:"1","font-size":"14px",display:"flex","justify-content":"space-between","align-items":"center"}},[t("span",null,[C("ì¿ í° ì¬ì©ì "),t("span",{style:{"font-weight":"600"}},"í¹ê° ë³´ì¥")]),t("img",{src:Xt,alt:"í¹ê°ë³´ì¥",style:{width:"18px",height:"18px"}})],-1)]))):y("",!0),u.getDiscountEnabled(e.products[e.current_product])?(a(),c("div",jo)):y("",!0),i[44]||(i[44]=Rt('<div style="display:flex;margin-bottom:12px;" data-v-cf4c29d4><div style="width:60px;color:#666;font-size:14px;" data-v-cf4c29d4> ê²°ì </div><div style="flex:1;font-size:14px;" data-v-cf4c29d4><div style="display:flex;align-items:center;margin-bottom:2px;" data-v-cf4c29d4><img src="'+Zt+'" alt="ë¤ì´ë²íì´" style="width:16px;height:16px;margin-right:8px;" data-v-cf4c29d4><span style="font-weight:600;" data-v-cf4c29d4>ë¤ì´ë²íì´ </span>  ê°í¸ ê²°ì ê¸°ë¥ </div><div style="display:flex;align-items:center;margin-bottom:2px;" data-v-cf4c29d4><img src="'+Qt+'" alt="ì¹´ì¹´ì¤íì´" style="width:16px;height:16px;margin-right:8px;" data-v-cf4c29d4><span style="font-weight:600;" data-v-cf4c29d4>ì¹´ì¹´ì¤íì´</span>  ê°í¸ ê²°ì ê¸°ë¥ </div><div style="display:flex;align-items:center;margin-bottom:4px;" data-v-cf4c29d4><img src="'+$t+'" alt="í ì¤íì´" style="width:16px;height:16px;margin-right:8px;" data-v-cf4c29d4><span style="font-weight:600;" data-v-cf4c29d4>í ì¤íì´</span>  ê°í¸ ê²°ì ê¸°ë¥ </div><div style="color:#666;margin-top:4px;" data-v-cf4c29d4> 무ì´ì íí보기 </div></div></div><div style="height:1px;background:#eee;margin:13px 0;" data-v-cf4c29d4></div>',2)),t("div",Do,[i[43]||(i[43]=t("div",{style:{width:"60px",color:"#666","font-size":"14px"}}," ë°°ì¡ ",-1)),t("div",Io,[t("div",Ao,[t("span",null,[t("span",Po,f(Number(((_e=e.products[e.current_product])==null?void 0:_e.delivery_fee)||0)>0?"ë°°ì¡ë¹ "+Number(e.products[e.current_product].delivery_fee).toLocaleStr
4ing()+"ì":"무ë£ë°°ì¡"),1),((B=e.products[e.current_product])==null?void 0:B.free_shipping_enabled)==="T"&&Number((ge=e.products[e.current_product])==null?void 0:ge.free_shipping_threshold)>0?(a(),c("span",Ho," | "+f(Number(e.products[e.current_product].free_shipping_threshold).toLocaleString())+"ì ì´ì 구매 ì 무ë£ë°°ì¡ ",1)):y("",!0)]),i[40]||(i[40]=t("img",{src:Bt,alt:"ë°°ì¡ì ë³´",style:{width:"15px",height:"15px","margin-left":"8px"}},null,-1))]),(fe=e.products[e.current_product])!=null&&fe.delivery_text?(a(),c("div",Ko,[t("span",Fo,f(e.products[e.current_product].delivery_text),1)])):(a(),c("div",Vo,[i[41]||(i[41]=C(" ìì
ì¼ ê¸°ì¤ ")),t("span",Uo,f(((T=e.products[e.current_product])==null?void 0:T.delivery_min_days)||2)+"-"+f(((H=e.products[e.current_product])==null?void 0:H.delivery_max_days)||3)+"ì¼ ",1),i[42]||(i[42]=C("ìì "))]))])])]),e.activeBanners.length>0?(a(),c("div",Xo,[t("div",{class:"banner-container",onTouchstart:i[6]||(i[6]=(...n)=>u.handleTouchStart&&u.handleTouchStart(...n)),onTouchmove:i[7]||(i[7]=(...n)=>u.handleTouchMove&&u.handleTouchMove(...n)),onTouchend:i[8]||(i[8]=(...n)=>u.handleTouchEnd&&u.handleTouchEnd(...n))},[(a(),c("div",{key:e.currentBannerIndex,class:"ad_banner",style:M({"background-image":`url(${e.activeBanners[e.currentBannerIndex].image_url})`,cursor:"pointer"}),onClick:i[5]||(i[5]=n=>u.toLink(e.activeBanners[e.currentBannerIndex]))},null,4)),e.activeBanners.length>1?(a(),c("div",Go,[(a(!0),c(b,null,w(e.activeBanners,(n,m)=>(a(),c("img",{key:"preload-"+m,class:"preload-image",src:n.image_url,alt:"Preload Banner"},null,8,Jo))),128))])):y("",!0),e.activeBanners.length>1?(a(),c("div",Wo,[C(f(e.currentBannerIndex+1)+" ",1),t("span",Yo,"| "+f(e.activeBanners.length),1)])):y("",!0)],32)])):y("",!0),e.main_review.length>0?(a(),c("div",Zo,[i[46]||(i[46]=t("div",{style:{display:"flex","justify-content":"space-between","align-items":"center","margin-bottom":"12px"}},[t("span",{style:{"font-size":"16px","font-weight":"600"}},"ì¶ì²ë¦¬ë·° ")],-1)),e.main_review&&e.main_review.length>0?(a(),c("div",Qo,[t("span",$o,[(a(!0),c(b,null,w(parseInt(e.main_review[0].rating),n=>(a(),c("img",{key:n,src:st,alt:"ë³",style:{width:"14px",height:"14px","margin-right":"4px"}}))),128))]),t("span",ei,f(e.main_review[0].rating),1),i[45]||(i[45]=t("span",{style:{color:"#666","margin-left":"4px"}},"/ 5",-1))])):y("",!0),t("div",ti,f(u.review(e.main_review[0].rating)),1),e.main_review&&e.main_review.length>0?(a(),c("div",{key:1,style:{display:"flex",gap:"10px",background:"#fcfcfc"},onClick:i[9]||(i[9]=n=>u.openReviewModal(e.main_review[0]))},[t("img",{src:e.main_review[0].photo&&e.main_review[0].photo.length>0?e.main_review[0].photo[0].photo:"/review_image.jpg",alt:"리뷰 ì´ë¯¸ì§",style:{width:"70px",height:"70px",background:"#f0f0f0","object-fit":"cover","border-radius":"4px"}},null,8,oi),t("div",ii,f(e.main_review[0].content),1)])):y("",!0)])):y("",!0),t("div",ni,[t("input",{type:"radio",name:"paylist",id:"paylist00",checked:"",onChange:i[10]||(i[10]=n=>e.clickTab("ì ì²´"))},null,32),i[70]||(i[70]=t("label",{for:"paylist00"},"ìíì¤ëª
",-1)),t("input",{type:"radio",name:"paylist",id:"paylist01",onChange:i[11]||(i[11]=n=>e.clickTab("리뷰"))},null,32),t("label",si," 리뷰"+f(e.reviews.length>0?`[${e.reviews.length}]`:""),1),t("input",{type:"radio",name:"paylist",id:"paylist02",onChange:i[12]||(i[12]=n=>e.clickTab("문ì"))},null,32),i[71]||(i[71]=t("label",{for:"paylist02"},"문ì",-1)),t("div",ri,[O(t("div",li,[t("div",di,[t("div",{innerHTML:((A=e.products[e.current_product])==null?void 0:A.info)??((he=e.products[e.current_product])==null?void 0:he.description),style:M({height:e.show_full_info?"auto":"2700px",overflow:"hidden"})},null,12,ai),e.show_full_info?y("",!0):(a(),c("div",ci))]),t("div",{class:"ingo_btn",style:{"margin-top":"5px",padding:"8px","font-weight":"600","font-size":"13px",cursor:"pointer",height:"30px",border:"1px solid #000","border-radius":"3px",display:"flex","align-items":"center","justify-content":"center"},onClick:i[13]||(i[13]=n=>e.show_full_info=!e.show_full_info)},[C(f(e.show_full_info?"ìí ì ë³´ ì 기":"ìí ì ë³´ ë보기")+" ",1),t("img",{src:Gt,alt:"",style:M({width:"10px",marginLeft:"5px",transform:e.show_full_info?"rotate(180deg)":"rotate(0deg)",transition:"transform 0.3s ease"})},null,4)])],512),[[N,e.products.length>0]]),i[65]||(i[65]=Rt('<div style="padding:15px 15px 0 15px;" data-v-cf4c29d4><div style="display:flex;justify-content:space-between;align-items:center;padding-bottom:15px;" data-v-cf4c29d4><span style="font-size:16px;font-weight:700;" data-v-cf4c29d4>ìí ì¬ì´ì¦ ì ë³´</span><span style="color:#000;font-size:14px;cursor:pointer;font-weight:400;" data-v-cf4c29d4>SIZE GUIDE</span></div><div style="height:1px;background:#eee;" data-v-cf4c29d4></div></div>',1)),t("div",pi,[t("div",{style:{display:"flex","justify-content":"space-between","align-items":"center","padding-bottom":"15px",cursor:"pointer"},onClick:i[14]||(i[14]=n=>e.toggle_exchange_info=!e.toggle_exchange_info)}
4,[i[47]||(i[47]=t("span",{style:{"font-size":"16px","font-weight":"700"}},"êµí/íë¶ ë°°ì¡ ì ë³´",-1)),t("span",{style:M([{"font-size":"20px",color:"#000","font-weight":"700",transition:"transform 0.3s ease"},{transform:e.toggle_exchange_info?"rotate(45deg)":"rotate(0deg)"}])},"+",4)]),t("div",{style:M({maxHeight:e.toggle_exchange_info?"1000px":"0px",overflow:"hidden",transition:"max-height 0.3s ease",paddingBottom:e.toggle_exchange_info?"15px":"0px"})},[((me=(ve=(ye=e.products[e.current_product])==null?void 0:ye.store)==null?void 0:ve.information)==null?void 0:me.filter(n=>n.type==="EXCHANGE").length)>0?(a(),c("div",ui,[i[48]||(i[48]=t("div",{style:{"font-size":"15px","font-weight":"600",color:"#2563eb","margin-bottom":"10px","padding-bottom":"5px","border-bottom":"2px solid #e0e7ff"}}," ð êµí ì ë³´ ",-1)),(a(!0),c(b,null,w((we=(ke=(be=e.products[e.current_product])==null?void 0:be.store)==null?void 0:ke.information)==null?void 0:we.filter(n=>n.type==="EXCHANGE"),n=>(a(),c("div",{key:n.id,style:{"margin-bottom":"12px","font-size":"14px","line-height":"1.6",color:"#333","padding-left":"10px"},innerHTML:n.content},null,8,_i))),128))])):y("",!0),((Te=(Se=(xe=e.products[e.current_product])==null?void 0:xe.store)==null?void 0:Se.information)==null?void 0:Te.filter(n=>n.type==="REFUND").length)>0?(a(),c("div",gi,[i[49]||(i[49]=t("div",{style:{"font-size":"15px","font-weight":"600",color:"#dc2626","margin-bottom":"10px","padding-bottom":"5px","border-bottom":"2px solid #fee2e2"}}," ð° íë¶ ì ë³´ ",-1)),(a(!0),c(b,null,w((K=(Ce=(Z=e.products[e.current_product])==null?void 0:Z.store)==null?void 0:Ce.information)==null?void 0:K.filter(n=>n.type==="REFUND"),n=>(a(),c("div",{key:n.id,style:{"margin-bottom":"12px","font-size":"14px","line-height":"1.6",color:"#333","padding-left":"10px"},innerHTML:n.content},null,8,fi))),128))])):y("",!0),((ze=(Ee=(Q=e.products[e.current_product])==null?void 0:Q.store)==null?void 0:Ee.information)==null?void 0:ze.filter(n=>n.type==="SHIPPING_INFORMATION").length)>0?(a(),c("div",hi,[i[50]||(i[50]=t("div",{style:{"font-size":"15px","font-weight":"600",color:"#059669","margin-bottom":"10px","padding-bottom":"5px","border-bottom":"2px solid #d1fae5"}}," ð ë°°ì¡ ì ë³´ ",-1)),(a(!0),c(b,null,w((qe=(Me=(Oe=e.products[e.current_product])==null?void 0:Oe.store)==null?void 0:Me.information)==null?void 0:qe.filter(n=>n.type==="SHIPPING_INFORMATION"),n=>(a(),c("div",{key:n.id,style:{"margin-bottom":"12px","font-size":"14px","line-height":"1.6",color:"#333","padding-left":"10px"},innerHTML:n.content},null,8,yi))),128))])):y("",!0),(Be=(Ne=(Re=e.products[e.current_product])==null?void 0:Re.store)==null?void 0:Ne.information)!=null&&Be.filter(n=>(n.type==="EXCHANGE"||n.type==="REFUND"||n.type==="SHIPPING_INFORMATION")&&n.content&&n.content.trim()!=="").length?y("",!0):(a(),c("div",vi," ìì¸íì´ì§ ì°¸ê³ "))],4),i[51]||(i[51]=t("div",{style:{height:"1px",background:"#eee"}},null,-1))]),t("div",mi,[t("div",{style:{display:"flex","justify-content":"space-between","align-items":"center","padding-bottom":"15px",cursor:"pointer"},onClick:i[15]||(i[15]=n=>e.toggle_product_info=!e.toggle_product_info)},[i[52]||(i[52]=t("span",{style:{"font-size":"16px","font-weight":"700"}},"ìí íì ì ë³´",-1)),t("span",{style:M([{"font-size":"20px",color:"#000","font-weight":"700",transition:"transform 0.3s ease"},{transform:e.toggle_product_info?"rotate(45deg)":"rotate(0deg)"}])},"+",4)]),t("div",{style:M({maxHeight:e.toggle_product_info?"1000px":"0px",overflow:"hidden",transition:"max-height 0.3s ease",paddingBottom:e.toggle_product_info?"15px":"0px"})},[((je=(Le=($=e.products[e.current_product])==null?void 0:$.store)==null?void 0:Le.information)==null?void 0:je.filter(n=>n.type==="ORDER").length)>0?(a(),c("div",bi,[i[53]||(i[53]=t("div",{style:{"font-size":"15px","font-weight":"600",color:"#0891b2","margin-bottom":"10px","padding-bottom":"5px","border-bottom":"2px solid #cffafe"}}," ð 주문 ì ë³´ ",-1)),(a(!0),c(b,null,w((Ae=(Ie=(De=e.products[e.current_product])==null?void 0:De.store)==null?void 0:Ie.information)==null?void 0:Ae.filter(n=>n.type==="ORDER"),n=>(a(),c("div",{key:n.id,style:{"margin-bottom":"12px","font-size":"14px","line-height":"1.6",color:"#333","padding-left":"10px"},innerHTML:n.content},null,8,ki))),128))])):y("",!0),((E=(He=(Pe=e.products[e.current_product])==null?void 0:Pe.store)==null?void 0:He.information)==null?void 0:E.filter(n=>n.type==="PAYMENT").length)>0?(a(),c("div",wi,[i[54]||(i[54]=t("div",{style:{"font-size":"15px","font-weight":"600",color:"#7c3aed","margin-bottom":"10px","padding-bottom":"5px","border-bottom":"2px s
4olid #ede9fe"}}," ð³ ê²°ì ì ë³´ ",-1)),(a(!0),c(b,null,w((Fe=(ee=(Ke=e.products[e.current_product])==null?void 0:Ke.store)==null?void 0:ee.information)==null?void 0:Fe.filter(n=>n.type==="PAYMENT"),n=>(a(),c("div",{key:n.id,style:{"margin-bottom":"12px","font-size":"14px","line-height":"1.6",color:"#333","padding-left":"10px"},innerHTML:n.content},null,8,xi))),128))])):y("",!0),((Xe=(Ue=(Ve=e.products[e.current_product])==null?void 0:Ve.store)==null?void 0:Ue.information)==null?void 0:Xe.filter(n=>n.type==="POINT").length)>0?(a(),c("div",Si,[i[55]||(i[55]=t("div",{style:{"font-size":"15px","font-weight":"600",color:"#ea580c","margin-bottom":"10px","padding-bottom":"5px","border-bottom":"2px solid #fed7aa"}}," ð¯ í¬ì¸í¸ ì ë³´ ",-1)),(a(!0),c(b,null,w((te=(F=(Ge=e.products[e.current_product])==null?void 0:Ge.store)==null?void 0:F.information)==null?void 0:te.filter(n=>n.type==="POINT"),n=>(a(),c("div",{key:n.id,style:{"margin-bottom":"12px","font-size":"14px","line-height":"1.6",color:"#333","padding-left":"10px"},innerHTML:n.content},null,8,Ti))),128))])):y("",!0),(Je=(ie=(oe=e.products[e.current_product])==null?void 0:oe.store)==null?void 0:ie.information)!=null&&Je.filter(n=>(n.type==="ORDER"||n.type==="PAYMENT"||n.type==="POINT")&&n.content&&n.content.trim()!=="").length?y("",!0):(a(),c("div",Ci," ìì¸íì´ì§ ì°¸ê³ "))],4),i[56]||(i[56]=t("div",{style:{height:"1px",background:"#eee"}},null,-1))]),t("div",Ei,[t("div",{style:{display:"flex","justify-content":"space-between","align-items":"center","padding-bottom":"15px",cursor:"pointer"},onClick:i[16]||(i[16]=n=>e.toggle_seller_info=!e.toggle_seller_info)},[i[57]||(i[57]=t("span",{style:{"font-size":"16px","font-weight":"700"}},"í매ì ì ë³´",-1)),t("span",{style:M([{"font-size":"20px",color:"#000","font-weight":"700",transition:"transform 0.3s ease"},{transform:e.toggle_seller_info?"rotate(45deg)":"rotate(0deg)"}])},"+",4)]),O(t("div",{class:"shop_detail_brand",style:M({maxHeight:e.toggle_seller_info?"500px":"0px",overflow:"hidden",transition:"max-height 0.3s ease",paddingBottom:e.toggle_seller_info?"15px":"0px"})},[t("div",zi,[i[58]||(i[58]=t("div",null,"ìí¸",-1)),t("div",null,f((Ye=(We=e.products[e.current_product])==null?void 0:We.store)==null?void 0:Ye.shop_name),1)]),t("div",Oi,[i[59]||(i[59]=t("div",null,"ëíì",-1)),t("div",null,f((o=(Ze=e.products[e.current_product])==null?void 0:Ze.store)==null?void 0:o.president_name),1)]),t("div",Mi,[i[60]||(i[60]=t("div",null,"주ì",-1)),t("div",null,f((l=(r=e.products[e.current_product])==null?void 0:r.store)==null?void 0:l.address1)+" "+f((s=(p=e.products[e.current_product])==null?void 0:p.store)==null?void 0:s.address2),1)]),t("div",qi,[i[61]||(i[61]=t("div",null,"ì¬ì
ìë±ë¡ë²í¸",-1)),t("div",null,f((g=(_=e.products[e.current_product])==null?void 0:_.store)==null?void 0:g.company_registration_no),1)]),t("div",Ri,[i[62]||(i[62]=t("div",null,"íµì í매ì
ì ê³ ë²í¸",-1)),t("div",null,f((h=(d=e.products[e.current_product])==null?void 0:d.store)==null?void 0:h.mail_order_sales_registration_number),1)]),t("div",Ni,[i[63]||(i[63]=t("div",null,"ì´ë©ì¼",-1)),t("div",null,f((k=(v=e.products[e.current_product])==null?void 0:v.store)==null?void 0:k.customer_service_email),1)]),t("div",Bi,[i[64]||(i[64]=t("div",null,"ì íë²í¸",-1)),t("div",null,f((ne=(x=e.products[e.current_product])==null?void 0:x.store)==null?void 0:ne.customer_service_phone),1)])],4),[[N,(L=e.products[e.current_product])==null?void 0:L.store]])])]),t("div",Li,[(a(!0),c(b,null,w(e.reviews,n=>(a(),c("div",{key:n.id,style:{padding:"15px","border-bottom":"1px solid #eee",cursor:"pointer"},onClick:m=>u.openReviewModal(n)},[t("div",Di,[t("span",Ii,[(a(!0),c(b,null,w(parseInt(n.rating),m=>(a(),c("img",{key:m,src:st,alt:"ë³",style:{width:"12px",height:"12px","margin-right":"2px"}}))),128))]),t("span",Ai,f(n.rating),1)]),n.photo&&n.photo.length>0?(a(),c("div",Pi,[t("img",{src:n.photo[0].photo,alt:"리뷰 ì´ë¯¸ì§",style:{width:"60px",height:"60px","object-fit":"cover","border-radius":"4px"}}
4,null,8,Hi)])):y("",!0),t("div",Ki,f(n.content),1)],8,ji))),128))]),t("div",Fi,[(ft=(gt=(_t=e.products[e.current_product])==null?void 0:_t.store)==null?void 0:gt.drop_setting)!=null&&ft.kakao_channel_url?(a(),c("div",Vi,[t("div",Ui,[t("div",Xi,[t("div",Gi,[t("img",{src:(yt=(ht=e.products[e.current_product])==null?void 0:ht.store)==null?void 0:yt.brand_profile,alt:"ë¸ëë ë¡ê³ ",style:{width:"100%",height:"100%","object-fit":"cover"}},null,8,Ji)]),t("div",null,[t("div",Wi,[C(f((mt=(vt=e.products[e.current_product])==null?void 0:vt.store)==null?void 0:mt.shop_name)+" ",1),i[66]||(i[66]=t("img",{src:Jt,alt:"ë¸ëë ë¡ê³ ",style:{width:"18px",height:"18px","object-fit":"cover"}},null,-1))]),i[67]||(i[67]=t("div",{style:{"font-size":"13px",color:"#999"}}," ê³µì ì¸ì¦ ë¸ëë ",-1))])]),t("div",Yi,[t("button",{type:"button",class:"btn_util_gray",title:"1:1 ì±í
í기",onClick:i[17]||(i[17]=n=>u.openKakaoChannel())},i[68]||(i[68]=[t("span",{class:"icon_comm icon_chatbot_16"},"ì±í
ë°©",-1)])),t("button",{type:"button",class:"btn_util_yellow",title:"ì±ë ì¶ê°í기",onClick:i[18]||(i[18]=(...n)=>u.openKakaoChannel&&u.openKakaoChannel(...n))},i[69]||(i[69]=[t("span",{class:"icon_comm icon_channel_check"},"ì±ëì¶ê°",-1)]))])])])):y("",!0)])]),i[75]||(i[75]=t("div",{style:{padding:"20px","margin-bottom":"25px"}},[t("div",{style:{"font-size":"14px",color:"#ddd","line-height":"1.4","text-align":"left"}}," 주ìíì¬ ì°ë¦¬ì¨ì ëë²ì¤ë íµì í매 ì¤ê°ìë¡, ì
ì²´ ë°°ì¡ ìíì ìí/ìíì ë³´/ê±°ë ë±ì ëí ì±
ìì ì°ë¦¬ì¨ì ëë²ì¤ê° ìë í매ììê² ììµëë¤. ")],-1)),t("div",Zi,[u.saleRound?(a(),c("div",{key:0,class:Pt(["sale_round_bar","sale_round_"+u.saleState])},[t("div",Qi,[t("span",$i,[i[72]||(i[72]=t("span",{class:"sale_round_pulse"},null,-1)),C(" "+f(u.saleState==="active"?"공구 ì§íì¤":u.saleState==="scheduled"?"ì¤í ìì ":"í매 ì¢
ë£"),1)]),t("span",en,f(u.saleRound.title||u.saleRound.round_no+"ì°¨ íì í매"),1)]),u.saleState!=="ended"?(a(),c("div",tn,[t("span",on,[i[73]||(i[73]=t("svg",{class:"sale_round_icon",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2.4","stroke-linecap":"round","stroke-linejoin":"round","aria-hidden":"true"},[t("circle",{cx:"12",cy:"12",r:"9"}),t("path",{d:"M12 7.2V12l3.4 2"})],-1)),C(" "+f(u.saleState==="active"?"ë§ê°ê¹ì§":"ì¤íê¹ì§"),1)]),t("span",nn,[(a(!0),c(b,null,w(u.saleCountdown,(n,m)=>(a(),c(b,{key:n.key},[m>0?(a(),c("span",sn,":")):y("",!0),t("span",rn,[t("span",ln,f(n.value),1),t("span",dn,f(n.label),1)])],64))),128))])])):(a(),c("div",an,i[74]||(i[74]=[t("span",{class:"sale_round_endtext"},"기ê°ì´ ì¢
ë£ëììµëë¤",-1)])))],2)):y("",!0),t("div",null,[t("div",cn,[t("img",{src:Wt,alt:"ê³µì í기",style:{width:"22px",cursor:"pointer"},onClick:i[19]||(i[19]=n=>u.copyLink())})]),u.isProductBlocked?(a(),c("div",pn," ìí ì¤ë¹ì¤ ")):u.saleState==="ended"?(a(),c("div",un," í매 ì¢
ë£ ")):u.saleState==="scheduled"?(a(),c("div",_n," ì¤í ìì ")):(a(),c("div",{key:3,onClick:i[20]||(i[20]=(...n)=>u.openOptionModal&&u.openOptionModal(...n)),style:{cursor:"pointer"}},f(((bt=e.products[e.current_product])==null?void 0:bt.use_inventory)==="T"&&((kt=e.products[e.current_product])==null?void 0:kt.sold_out)==="T"&&((wt=e.products[e.current_product])==null?void 0:wt.stock)<=0?"íì ":"구매í기"),1))])])]),O(t("div",gn,[t("div",fn,[t("div",hn,[e.is_bundle?(a(),c("div",yn,[i[76]||(i[76]=t("div",{style:{padding:"12px 0","font-size":"15px","font-weight":"600",color:"#333"}}," ì¸í¸ìí ",-1)),(a(!0),c(b,null,w(e.bundle_components_options,(n,m)=>{var S,R,Ct,Et,zt,Ot;return a(),c("div",{key:m,style:{border:"1px solid #eee","border-radius":"8px",padding:"15px","margin-bottom":"12px"}},[t("div",vn,[t("img",{src:((S=e.bundle_items[m])==null?void 0:S.detail_image)||((R=e.bundle_items[m])==null?void 0:R.list_image)||((Ct=e.bundle_items[m])==null?void 0:Ct.tiny_image),style:{width:"55px",height:"55px","object-fit":"cover","border-radius":"6px",background:"#f5f5f5"}},null,8,mn),t("div",null,[t("div",bn,[C(" (ì¸í¸ìµì
) "+f(n.product_name)+" ",1),t("span",kn,"("+f(((Et=e.bundle_items[m])==null?void 0:Et.purchase_quantity)||1)+"ê°ì© 구매ëë ìí)",1)]),t("div",wn,f((Ot=(zt=e.bundle_items[m])==null?void 0:zt.price)==null?void 0:Ot.toLocaleStr
4ing("ko-KR"))+"ì ",1)])]),(a(!0),c(b,null,w(n.product_categories,(Qe,at)=>(a(),c("div",{key:at,style:{"margin-bottom":"8px"}},[t("div",xn,f(Qe.category),1),t("select",{value:Qe.checked_text,onChange:V=>u.onBundleOptionSelect(m,at,V),style:{width:"100%",padding:"10px 12px",border:"1px solid #ddd","border-radius":"6px","font-size":"14px",color:"#333",background:"#fff"}},[t("option",Tn," - "+f(Qe.category)+" ì í - ",1),(a(!0),c(b,null,w(Qe.options,V=>(a(),c("option",{key:V,value:V},f(V)+f(u.getBundleOptionSoldOut(m,at,V)?" (íì )":""),9,Cn))),128))],40,Sn)]))),128)),n.selected_variant?(a(),c("div",En," â ì íìë£ ")):y("",!0)])}),128))])):y("",!0),O(t("div",zn,[(a(!0),c(b,null,w(e.product_categories,(n,m)=>O((a(),c("div",{class:"shopping_option_select",key:n},[t("input",{type:"checkbox",name:n.category,id:n.category+m,class:"shopping_option_title"},null,8,On),t("label",{for:n.category+m},[t("div",null,f(n.checked_text),1),i[77]||(i[77]=t("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"8",viewBox:"0 0 14 8",fill:"none"},[t("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M0.292893 0.292893C0.683417 -0.0976311 1.31658 -0.0976311 1.70711 0.292893L7 5.58579L12.2929 0.292893C12.6834 -0.0976311 13.3166 -0.0976311 13.7071 0.292893C14.0976 0.683417 14.0976 1.31658 13.7071 1.70711L7.70711 7.70711C7.31658 8.09763 6.68342 8.09763 6.29289 7.70711L0.292893 1.70711C-0.0976311 1.31658 -0.0976311 0.683417 0.292893 0.292893Z",fill:"#999"})],-1))],8,Mn),t("div",qn,[(a(!0),c(b,null,w(n.options,S=>(a(),c("div",{key:S.id,onClick:R=>u.checkOption(m,n.category,S)},f(S)+" "+f(u.getOptionSelling(n.category,S)===!1||u.getOptionStock(n.category,S)<=0?"(íì )":u.getOptionPrice(n.category,S)),9,Rn))),128))])])),[[N,n.checked]])),128))],512),[[N,!e.is_bundle&&e.product_categories.length>0]]),O(t("div",Nn,[(a(!0),c(b,null,w(e.selected_options,(n,m)=>{var S;return a(),c("div",{class:"shopping_option_selected",key:m},[t("div",Bn,[t("div",null,f((S=n.item_options.toString())==null?void 0:S.replace(",",", ")),1),t("div",{class:"option_delete",onClick:R=>u.removeOption(m),style:{cursor:"pointer",width:"24px",height:"24px","border-radius":"50%","background-color":"#fff",border:"1px solid #ddd",display:"flex","align-items":"center","justify-content":"center","font-size":"18px",color:"#999","font-weight":"300","line-height":"1",padding:"0"}}," à ",8,Ln)]),t("div",jn,[t("div",Dn,[t("div",null,[t("button",{type:"button",onClick:R=>u.reduceNumber(m)},i[78]||(i[78]=[t("span",{class:"material-symbols-outlined"},"remove",-1)]),8,In),O(t("input",{type:"text","onUpdate:modelValue":R=>n.quantity=R,readonly:""},null,8,An),[[Nt,n.quantity]]),t("button",{type:"button",onClick:R=>u.addNumber(m)},i[79]||(i[79]=[t("span",{class:"material-symbols-outlined"},"add",-1)]),8,Pn)])]),t("div",Hn,f(((n.amount-n.discount_price)*n.quantity).toLocaleString("ko-KR"))+"ì ",1)])])}),128))],512),[[N,e.selected_options.length>0]]),O(t("div",Kn,[t("div",Fn,[i[82]||(i[82]=t("div",{class:"selected_title"},[t("div",null,"ìë"),t("div",{class:"option_delete"})],-1)),t("div",Vn,[t("div",Un,[t("div",null,[t("button",{type:"button",onClick:i[21]||(i[21]=n=>u.reduceNumber(-1))},i[80]||(i[80]=[t("span",{class:"material-symbols-outlined"},"remove",-1)])),O(t("input",{type:"text","onUpdate:modelValue":i[22]||(i[22]=n=>e.no_option_product.quantity=n),readonly:""},null,512),[[Nt,e.no_option_product.quantity]]),t("button",{type:"button",onClick:i[23]||(i[23]=n=>u.addNumber(-1))},i[81]||(i[81]=[t("span",{class:"material-symbols-outlined"},"add",-1)]))])]),t("div",Xn,f(((e.no_option_product.amount-e.no_option_product.discount_price)*e.no_option_product.quantity).toLocaleString("ko-KR"))+"ì ",1)])])],512),[[N,!e.is_bundle&&e.product_categories.length==0]])]),t("div",Gn,[t("div",Jn,[t("div",null,[t("div",null,f(e.selected_options_quantity||1)+"ê° ìí ",1),t("div",Wn,f((xt=u.selected_options_original_price)==null?void 0:xt.toLocaleString("ko-Kr"))+"ì ",1)]),t("div",null,[i[83]||(i[83]=t("div",null,"ë°°ì¡ë¹",-1)),t("div",Yn,f(u.effective_delivery_fee.toLocaleString("ko-Kr"))+"ì ",1)]),u.selected_options_discount_amount>0?(a(),c("div",Zn,[i[84]||(i[84]=t("div",null,"í ì¸",-1)),t("div",Qn," -"+f((St=u.selected_options_discount_amount)==null?void 0:St.toLocaleStr
4ing("ko-Kr"))+"ì ",1)])):y("",!0),t("div",$n,[i[85]||(i[85]=t("div",null,"ì´ ê²°ì ê¸ì¡",-1)),t("div",es,f((u.selected_options_original_price-u.selected_options_discount_amount+u.effective_delivery_fee).toLocaleString("ko-Kr"))+"ì ",1)])]),t("div",ts,[t("button",{type:"button",onClick:i[24]||(i[24]=(...n)=>u.buy&&u.buy(...n)),style:{width:"100%",display:"flex","justify-content":"center","align-items":"center","background-color":"#000"}}," ë°ë¡ 주문 ")])])])],512),[[N,e.option_modal]]),O(t("div",os,[t("div",is,[t("div",ns,[t("button",{type:"button",onClick:i[25]||(i[25]=(...n)=>u.closeLoginModal&&u.closeLoginModal(...n)),style:{cursor:"pointer",background:"none",border:"none"}},i[86]||(i[86]=[t("span",{class:"material-symbols-outlined",style:{"font-size":"28px",color:"black !important"}},"arrow_back",-1)]))]),t("div",ss,[i[88]||(i[88]=t("h1",{style:{"font-size":"26px","font-weight":"500","margin-bottom":"60px",color:"#000"}}," 1ì´ë©´ êµ¬ë§¤ê° ëëì ",-1)),i[89]||(i[89]=t("h2",{style:{"font-size":"26px","font-weight":"800","margin-bottom":"20px",color:"#000"}}," ë¡ê·¸ì¸ ",-1)),i[90]||(i[90]=t("p",{style:{"font-size":"16px",color:"#666","margin-bottom":"8px","font-weight":"400"}}," ìì´ëì ë¹ë°ë²í¸ ì
ë ¥í기 ê·ì°®ì¼ìì£ ? ",-1)),i[91]||(i[91]=t("p",{style:{"font-size":"16px",color:"#666","margin-bottom":"40px","font-weight":"400"}}," 1ì´ íìê°ì
ì¼ë¡ ì
ë ¥ìì´ ê°í¸íê² ë¡ê·¸ì¸ íì¸ì. ",-1)),t("button",{type:"button",onClick:i[26]||(i[26]=(...n)=>u.kakaoLogin&&u.kakaoLogin(...n)),style:{width:"100%","background-color":"#fee500",border:"none","border-radius":"7px",padding:"16px","font-size":"18px","font-weight":"700",color:"#000",cursor:"pointer",display:"flex","align-items":"center","justify-content":"center",gap:"10px"}},i[87]||(i[87]=[t("img",{width:"24",height:"24",src:"https://img.icons8.com/color/48/kakaotalk.png",alt:"kakaotalk"},null,-1),C(" ì¹´ì¹´ì¤ 1ì´ ë¡ê·¸ì¸/íìê°ì
")]))])])],512),[[N,e.loginModal]]),e.reviewModal&&e.selected_review?(a(),c("div",{key:0,class:"review_layer",id:"popup_review",style:{position:"fixed",top:"0",left:"0",width:"100%",height:"100vh","background-color":"rgba(0, 0, 0, 0.9)","z-index":"99999"},onClick:i[32]||(i[32]=(...n)=>u.closeReviewModal&&u.closeReviewModal(...n))},[t("div",{style:{width:"100%",height:"100%",position:"relative"},onClick:i[31]||(i[31]=$e(()=>{},["stop"]))},[t("button",{type:"button",onClick:i[27]||(i[27]=(...n)=>u.closeReviewModal&&u.closeReviewModal(...n)),style:{position:"absolute",top:"20px",right:"20px",background:"rgba(0, 0, 0, 0.5)",border:"none",color:"white","font-size":"28px",cursor:"pointer","z-index":"100",width:"40px",height:"40px","border-radius":"50%",display:"flex","align-items":"center","justify-content":"center"}}," à "),e.selected_review.photo&&e.selected_review.photo.length>0?(a(),c("div",rs,[(a(),et(P,{key:e.selected_review.photo.length,spaceBetween:0,pagination:{clickable:!0},navigation:"",speed:400,style:{height:"100%"},autoHeight:!1},{default:tt(()=>[(a(!0),c(b,null,w(e.selected_review.photo,(n,m)=>(a(),et(se,{key:m,style:{display:"flex","align-items":"center","justify-content":"center"}},{default:tt(()=>[t("img",{src:n.photo,alt:"리뷰 ì¬ì§",style:{width:"auto",height:"100%","max-width":"100%","object-fit":"contain"}},null,8,ls)]),_:2},1024))),128))]),_:1}))])):y("",!0),t("div",{style:M({position:e.isReviewExpanded?"fixed":"absolute",top:e.isReviewExpanded?"0":"auto",bottom:"0",left:"0",right:"0",background:"rgba(0, 0, 0, 0.3)",padding:"20px",overflowY:"visible",zIndex:e.isReviewExpanded?"200":"10",display:e.isReviewExpanded?"flex":"block",flexDirection:e.isReviewExpanded?"column":"initial",justifyContent:e.isReviewExpanded?"flex-end":"initial"})},[e.isReviewExpanded?(a(),c("div",ds,[t("div",as,[t("img",{src:((Tt=e.selected_review.user)==null?void 0:Tt.profile)||"/default_profile.jpg",alt:"íë¡í",onError:i[28]||(i[28]=n=>n.target.src="/default_profile.jpg"),style:{width:"40px",height:"40px","border-radius":"50%","margin-right":"12px","object-fit":"cover"}},null,40,cs),t("div",null,[t("div",ps,f(e.selected_review.user.nickname),1),t("div",us,[t("span",_s,[(a(!0),c(b,null,w(parseInt(e.selected_review.rating),n=>(a(),c("img",{key:n,src:st,alt:"ë³",style:{width:"16px",height:"16px","margin-right":"2px"}}))),128))]),t("span",gs,f(e.selected_review.created_at.split("T")[0].replace(/-/g,".")),1)])])]),t("div",{onClick:i[29]||(i[29]=(...n)=>u.toggleReviewExpand&&u.toggleReviewExpand(...n)),style:{color:"white",fontSize:"14px",lineHeight:"1.5",wordWrap:"break-word",wordBreak:"break-word",whiteSpace:"pre-wrap",overflowY:"auto",maxHeight:"calc(100vh - 200px)",cursor:"pointer"}},[e.selected_review.title?(a(),c("div",fs,f(e.selected_review.title),1)):y("",!0),t("div",hs,f(e.selected_review.content),1),i[92]||(i[92]=t("span",{style:{color:"#ddd","font-size":"13px"}},"ì 기",-1))])])):(a(),c("div",ys,[t("div",vs,[t("div",ms,f(e.selected_review.user.nickname),1),t("span",bs,[(a(!0),c(b,null,w(parseInt(e.selected_review.rating),n=>(a(),c("img",{key:n,src:st,alt:"ë³",style:{width:"16px",height:"16px","margin-right":"2px"}}))),128))]),t("div",ks,f(e.selected_review.created_at.split("T")[0].replace(/-/g,".")),1)]),t("div",{onClick:i[30]||(i[30]=(...n)=>u.toggleReviewExpand&&u.toggleReviewExpand(...n)),style:{color:"white",lineHeight:"1.5",wordWrap:"break-word",wordBreak:"break-word",whiteSpace:"pre-wrap",cursor:"pointer",display:"-webkit-box",WebkitLineClamp:"4",WebkitBoxOrient:"vertical",overflow:"hidden",maxHeight:"84px",position:"relative"}}
4,[e.selected_review.title?(a(),c("div",ws,f(e.selected_review.title),1)):y("",!0),t("div",xs,f(e.selected_review.content),1),e.selected_review.content.length>100?(a(),c("span",Ss," ë보기")):y("",!0)])]))],4)])])):y("",!0)]),qt(dt,{bottom:u.saleRound?128:84},null,8,["bottom"])])],64)}const qs=jt(eo,[["render",Ts],["__scopeId","data-v-cf4c29d4"]]);export{qs as default};
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.