PageSourceSearch

https://miboard.co.kr/_nuxt/JtSJ_w7F.js

js miboard.co.kr collected 2026-10-09 00:07:06 UTC 64,942 bytes, 1 lines download raw bytes

1import{d as ce,c as s,e as n,g as e,_ as fe,l as qe,B as Fe,o as Le,C as ao,D as qo,b as o,E as Oo,G as eo,f as C,j as d,s as oe,T as be,x as F,P as ho,K as Ne,u as we,h as se,q as R,Q as io,F as re,r as Te,t as S,i as T,p as oo,a as $e,H as Ge,J as Ce,y as Je,n as U,m as J,w as Ie,z as to,k as ro,v as fo,A as Ao}from"./CQraYyRC.js";import{u as Oe,b as Ho,d as go,e as Uo}from"./CRYAWNm7.js";import{u as vo}from"./MS1Mh-yM.js";import{a as Wo,_ as Ko}from"./sx4MuiGZ.js";import{u as Fo}from"./BHrFmJo8.js";const Jo=ce({__name:"SearchBox",emits:["on_search"],setup(O,{emit:V}){const c=V,r=()=>{c("on_search",!0)};return($,t)=>(s(),n("div",{class:"search-box",onClick:r},[...t[0]||(t[0]=[e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.2","stroke-linecap":"round","stroke-linejoin":"round"},[e("circle",{cx:"11",cy:"11",r:"8"}),e("line",{x1:"21",y1:"21",x2:"16.65",y2:"16.65"})],-1)])]))}}),Xo=fe(Jo,[["__scopeId","data-v-e2698374"]]),Qo={class:"search-container"},Go={class:"search-field"},Yo=ce({__name:"SearchBox3",emits:["close"],setup(O,{expose:V,emit:c}){const r=qe(),$=Fe(),t=c,b=d(),i=d("");Le(()=>{$.query.q&&(i.value=$.query.q.trim())});const h=()=>{i.value.trim()&&(r.push({path:"/shop/search",query:{q:i.value.trim()}}),t("close"))},u=()=>{var _;i.value="",(_=b.value)==null||_.focus()},g=()=>{t("close")};return V({opened:()=>{setTimeout(()=>{var _;(_=b.value)==null||_.focus()},300)}}),(_,j)=>(s(),n("div",Qo,[e("div",Go,[j[1]||(j[1]=e("i",{class:"fas fa-search icon-search"},null,-1)),ao(e("input",{ref_key:"inputRef",ref:b,"onUpdate:modelValue":j[0]||(j[0]=A=>eo(i)?i.value=A:null),type:"text",placeholder:"검색어를 입력하세요",autocomplete:"off",autocorrect:"off",autocapitalize:"off",spellcheck:"false",onKeyup:Oo(h,["enter"])},null,544),[[qo,o(i)]]),o(i)?(s(),n("i",{key:0,class:"fas fa-times-circle icon-clear",onClick:u})):C("",!0)]),e("button",{class:"btn-close",onClick:g}," 닫기 ")]))}}),yo=fe(Yo,[["__scopeId","data-v-3da1b893"]]),Zo={class:"slide-up-down"},et=ce({__name:"MySlideUpDown",props:{active:{type:Boolean},duration:{default:300}},emits:["open-end","close-end"],setup(O,{emit:V}){const c=O,r=V,$=i=>{i.style.height="0",i.style.overflow="hidden",i.style.transition=`height ${c.duration}ms ease`,i.offsetHeight,i.style.height=i.scrollHeight+"px"},t=i=>{i.style.height="",i.style.overflow="",i.style.transition="",r("open-end")},b=i=>{i.style.height=i.scrollHeight+"px",i.style.overflow="hidden",i.style.transition=`height ${c.duration}ms ease`,i.offsetHeight,i.style.height="0",setTimeout(()=>{r("close-end")},c.duration)};return(i,h)=>(s(),oe(be,{name:"slide",onEnter:$,onAfterEnter:t,onLeave:b},{default:F(()=>[ao(e("div",Zo,[Ne(i.$slots,"default",{},void 0,!0)],512),[[ho,O.active]])]),_:3}))}}),_o=fe(et,[["__scopeId","data-v-018fcfc6"]]),ko=window.setInterval,ot={class:"notice-wrapper"},tt={class:"notice-content"},st=["onClick"],nt=ce({__name:"NoticeContainer",emits:["load"],setup(O,{emit:V}){const c=V,r=we(),$=qe(),t=d([]),b=d(0),i=T(()=>{var g;return((g=r.info)==null?void 0:g.weight_color)||"#000"});Le(async()=>{await h(),c("load"),t.value.length>1&&ko(()=>{b.value=(b.value+1)%t.value.length},5e3)});const h=async()=>{try{const g=r.info.shopid;if(!g)return;const M=await $fetch("/api/myshp/get/notice/weight",{params:{shopid:g}});t.value=M||[]}catch(g){console.error("Load notices failed:",g)}},u=g=>{g&&$.push(`/shop/notice-view?id=${g.id}`)};return(g,M)=>o(t).length>0?(s(),n("div",{key:0,class:"notice-container",style:se({backgroundColor:o(i)})},[e("div",ot,[e("div",tt,[R(io,{name:"notice",tag:"div",class:"notice-slider"},{default:F(()=>[(s(!0),n(re,null,Te(o(t),(_,j)=>ao((s(),n("div",{key:_.id,class:"notice-item",onClick:A=>u(_)},S(_.title),9,st)),[[ho,o(b)===j]])),128))]),_:1})])])],4)):C("",!0)}}),bo=fe(nt,[["__scopeId","data-v-a5e53812"]]),wo=oo("/img/kakao_link.png"),lt={class:"menu-header"},at={class:"shop-info"},it=["src"],rt={key:1,class:"shop-logo-placeholder"},ct={class:"shop-name"},dt={class:"menu-content"},ut={class:"user-section"},pt={class:"quick-links"},mt=["href"],ht=["href"],ft=["href"],gt={key:1,class:"guest-section"},vt={class:"menu-nav"},yt={class:"menu-nav"},_t=["href"],kt={class:"menu-footer"},bt={class:"footer-links"},wt={class:"copyright"},xt=ce({__name:"MobMenu",emits:["showed","closed"],setup(O,{expose:V,emit:c}){const r=qe(),$=Fe(),t=$e(),b=we(),{$eventBus:i}=Ge(),{goToLogin:h}=Oe(),u=d(!1),g=d(!1),M=T(()=>b.info),_=T(()=>t.login===1),j=T(()=>{var m;return`https://my.${((m=t.api_info)==null?void 0:m.domain)||"shockping.com"}`}),A=c,B=()=>{u.value=!0,document.body.style.overflow="hidden",A("showed"),N()},N=async()=>
1{if(t.login!==1){g.value=!1;return}try{const L=await $fetch("/api/myshp/ismember",{params:{shopid:M.value.shopid}});g.value=!!(L!=null&&L.id)}catch{g.value=!1}},E=()=>{g.value?i==null||i.emit("cancel_member"):i==null||i.emit("join_member"),K()},K=()=>{u.value=!1,document.body.style.overflow="",A("closed")},D=L=>{K(),r.push(L)},p=()=>{K(),h()},z=L=>L==="/"?$.path==="/":$.path.startsWith(L);return V({showMenu:B,close:K}),(L,m)=>(s(),oe(Ce,{to:"body"},[R(be,{name:"slide-left"},{default:F(()=>[o(u)?(s(),n("div",{key:0,class:"menu-overlay",onClick:K},[e("div",{class:"menu-drawer",onClick:m[7]||(m[7]=Je(()=>{},["stop"]))},[e("div",lt,[e("div",at,[o(M).profile?(s(),n("img",{key:0,src:o(M).profile,class:"shop-logo"},null,8,it)):(s(),n("div",rt,[...m[8]||(m[8]=[e("i",{class:"fas fa-store"},null,-1)])])),e("span",ct,S(o(M).name),1)]),e("button",{class:"close-btn",onClick:K},[...m[9]||(m[9]=[e("i",{class:"fas fa-times"},null,-1)])])]),e("div",dt,[e("div",ut,[o(_)?(s(),n(re,{key:0},[m[14]||(m[14]=e("div",{class:"user-profile"},[e("div",{class:"avatar"},[e("i",{class:"fas fa-user"})]),e("div",{class:"user-info"},[e("p",{class:"welcome"},"환영합니다!"),e("p",{class:"user-desc"},"쇼핑을 즐겨보세요")])],-1)),e("div",pt,[e("a",{href:o(j)+"/myshop/order",class:"quick-link"},[...m[10]||(m[10]=[e("div",{class:"quick-icon"},[e("i",{class:"fas fa-box"})],-1),e("span",null,"주문내역",-1)])],8,mt),e("a",{class:"quick-link",onClick:m[0]||(m[0]=X=>D("/shop/member_point"))},[...m[11]||(m[11]=[e("div",{class:"quick-icon"},[e("i",{class:"fas fa-coins"})],-1),e("span",null,"적립금",-1)])]),e("a",{href:o(j)+"/user/info",class:"quick-link"},[...m[12]||(m[12]=[e("div",{class:"quick-icon"},[e("i",{class:"fas fa-user-cog"})],-1),e("span",null,"내정보",-1)])],8,ht),e("a",{href:o(j)+"/myshop",class:"quick-link"},[...m[13]||(m[13]=[e("div",{class:"quick-icon"},[e("i",{class:"fas fa-th-large"})],-1),e("span",null,"마이페이지",-1)])],8,ft)]),e("button",{class:U(["member-toggle-btn",{liked:o(g)}]),onClick:E},[e("i",{class:U(o(g)?"fas fa-heart":"fal fa-heart")},null,2),e("span",null,S(o(g)?"이 상점 찜 해제":"이 상점 찜하기"),1)],2)],64)):(s(),n("div",gt,[m[16]||(m[16]=e("div",{class:"guest-icon"},[e("i",{class:"fas fa-user-circle"})],-1)),m[17]||(m[17]=e("p",{class:"guest-text"},"로그인하고 다양한 혜택을 누려보세요",-1)),e("button",{class:"login-btn",onClick:p},[...m[15]||(m[15]=[e("i",{class:"fas fa-sign-in-alt"},null,-1),J(" 로그인 / 회원가입 ",-1)])])]))]),e("nav",vt,[m[21]||(m[21]=e("div",{class:"nav-section-title"},"쇼핑",-1)),e("a",{class:U(["nav-item",{active:z("/")}]),onClick:m[1]||(m[1]=X=>D("/"))},[...m[18]||(m[18]=[e("i",{class:"fas fa-home"},null,-1),e("span",null,"홈",-1),e("i",{class:"fas fa-chevron-right arrow"},null,-1)])],2),e("a",{class:U(["nav-item",{active:z("/shop/list")||z("/shop/view")}]),onClick:m[2]||(m[2]=X=>D("/shop/list"))},[...m[19]||(m[19]=[e("i",{class:"fas fa-th-large"},null,-1),e("span",null,"전체상품",-1),e("i",{class:"fas fa-chevron-right arrow"},null,-1)])],2),e("a",{class:U(["nav-item",{active:z("/shop/review")}]),onClick:m[3]||(m[3]=X=>D("/shop/review/list?all=true"))},[...m[20]||(m[20]=[e("i",{class:"fas fa-camera"},null,-1),e("span",null,"사진리뷰",-1),e("i",{class:"fas fa-chevron-right arrow"},null,-1)])],2)]),e("nav",yt,[m[24]||(m[24]=e("div",{class:"nav-section-title"},"고객센터",-1)),e("a",{class:"nav-item",onClick:m[4]||(m[4]=X=>D("/shop/notice-list"))},[...m[22]||(m[22]=[e("i",{class:"fas fa-bullhorn"},null,-1),e("span",null,"공지사항",-1),e("i",{class:"fas fa-chevron-right arrow"},null,-1)])]),o(M).kakao_link?(s(),n("a",{key:0,class:"nav-item",href:o(M).kakao_link,target:"_blank"},[...m[23]||(m[23]=[e("img",{src:wo,class:"kakao-icon"},null,-1),e("span",null,"카카오톡 상담",-1),e("i",{class:"fas fa-chevron-right arrow"},null,-1)])],8,_t)):C("",!0)]),e("div",kt,[e("div",bt,[e("a",{onClick:m[5]||(m[5]=X=>D("/shop/agreement"))},"이용약관"),m[25]||(m[25]=e("span",{class:"divider"},"|",-1)),e("a",{onClick:m[6]||(m[6]=X=>D("/shop/privacy"))},"개인정보처리방침")]),e("p",wt,"© "+S(o(M).name),1)])])])])):C("",!0)]),_:1})]))}}),Ct=fe(xt,[["__scopeId","data-v-4445a751"]]),$t={class:"cart-content"},Mt={key:0,class:"empty-cart"},Vt={key:1,class:"cart-groups"},St={class:"shop-name"},It={key:0,class:"current-badge"},Nt={class:"cart-items"},Tt=["src","alt","onClick"],Lt={class:"item-info"},Pt=["onClick"],Bt={key:0,class:"item-option"},jt={key:1,class:"item-error"},Et={class:"item-price"},Rt={class:"price"},Dt={class:"qty-control"},zt=["onClick","disabled"],qt={class:"qty"},Ot=["onClick"],At=["onClick"],Ht={key:0,class:"cart-footer"},Ut={class:"total"},Wt={class:"total-price"},Kt=ce({__name:"Cart",setup(O,{expose:V}){const c=qe(),r=we(),$=$e(),{toBridgeMyShockping:t}=Oe(),{get:b}
1=Ho(),{saveCart:i}=vo(),h=d(!1),u=d(!1);let g=null;const M=T(()=>r.cart),_=T(()=>{var v,y;return((v=r.info)==null?void 0:v.xshopid)||((y=r.info)==null?void 0:y.uid)}),j=T(()=>{const v={};return M.value.forEach((y,H)=>{const I=y.origin_uid&&y.origin_uid!==y.uid?`${y.origin_uid}x${y.uid}`:String(y.uid);v[I]||(v[I]={xshopid:I,shop_name:y.shop_name||"상점",isCurrent:I===String(_.value),items:[]}),v[I].items.push({...y,cartIndex:H})}),Object.values(v).forEach(y=>{y.items.sort((H,I)=>(I.sort||0)-(H.sort||0))}),Object.values(v).sort((y,H)=>{if(y.isCurrent&&!H.isCurrent)return-1;if(!y.isCurrent&&H.isCurrent)return 1;const I=Math.max(...y.items.map(pe=>pe.sort||0));return Math.max(...H.items.map(pe=>pe.sort||0))-I})}),A=T(()=>M.value.reduce((v,y)=>v+(y.price||0)*(y.qty||1),0)),B=()=>{h.value=!0,document.body.style.overflow="hidden"},N=()=>{g&&(clearTimeout(g),g=null,u.value&&(i(M.value),u.value=!1)),h.value=!1,document.body.style.overflow=""},E=v=>{N(),c.push(`/shop/view/${v.sid}`)},K=v=>v?v.startsWith("http")||v.startsWith("//")?v:`//cdnpxy0.mocoplex.com/resize_w/100/${v}`:"/img/no-image.png",D=v=>(v==null?void 0:v.toLocaleString("ko-KR"))||"0",p=v=>{if(v.error==="qty")return`재고가 부족합니다. (주문 가능: ${v.error_data||0}개)`;if(v.error==="sold_out")return"판매가 중단된 상품입니다.";if(v.available_qty!==void 0&&v.available_qty!==null){if(v.available_qty<=0)return"품절된 상품입니다.";if(v.qty>v.available_qty)return`재고가 부족합니다. (주문 가능: ${v.available_qty}개)`}return null},z=async v=>{r.removeFromCart(v),L()},L=()=>{u.value=!0,g&&clearTimeout(g),g=setTimeout(()=>{i(M.value),u.value=!1,g=null},1500)},m=v=>{const y=M.value[v];y&&(r.updateCartQty(v,(y.qty||1)+1),L())},X=v=>{const y=M.value[v];y&&y.qty>1&&(r.updateCartQty(v,y.qty-1),L())},de=async()=>{var H;g&&(clearTimeout(g),g=null),u.value&&(await i(M.value),u.value=!1);const y=`https://my.${((H=$.api_info)==null?void 0:H.domain)||"shockping.com"}`;if($.login!==1){const I=`${y}/user/checkout?uuid_value=${b()}`;t(I)}else{const I=`${y}/user/checkout`;t(I)}};return V({showMenu:B,close:N}),(v,y)=>(s(),oe(Ce,{to:"body"},[R(be,{name:"slide-right"},{default:F(()=>[o(h)?(s(),n("div",{key:0,class:"cart-overlay",onClick:N},[e("div",{class:"cart-drawer",onClick:y[0]||(y[0]=Je(()=>{},["stop"]))},[e("div",{class:"cart-header"},[y[2]||(y[2]=e("h3",null,"장바구니",-1)),e("button",{class:"close-btn",onClick:N},[...y[1]||(y[1]=[e("i",{class:"fas fa-times"},null,-1)])])]),e("div",$t,[o(M).length===0?(s(),n("div",Mt,[...y[3]||(y[3]=[e("i",{class:"fas fa-shopping-cart"},null,-1),e("p",null,"장바구니가 비어있습니다.",-1)])])):(s(),n("div",Vt,[(s(!0),n(re,null,Te(o(j),H=>(s(),n("div",{key:H.xshopid,class:"shop-group"},[o(j).length>1?(s(),n("div",{key:0,class:U(["shop-header",{current:H.isCurrent}])},[e("span",St,S(H.shop_name),1),H.isCurrent?(s(),n("span",It,"현재 상점")):C("",!0)],2)):C("",!0),e("div",Nt,[(s(!0),n(re,null,Te(H.items,I=>(s(),n("div",{key:I.cartIndex,class:U(["cart-item",{"has-error":p(I)}])},[e("img",{src:K(I.image),alt:I.name,class:"item-image",onClick:Y=>E(I)},null,8,Tt),e("div",Lt,[e("p",{class:"item-name",onClick:Y=>E(I)},S(I.name),9,Pt),I.opt_name?(s(),n("p",Bt,S(I.opt_name),1)):C("",!0),p(I)?(s(),n("div",jt,[y[4]||(y[4]=e("i",{class:"fas fa-exclamation-triangle"},null,-1)),e("span",null,S(p(I)),1)])):C("",!0),e("div",Et,[e("span",Rt,S(D(I.price))+"원",1)]),e("div",Dt,[e("button",{class:"qty-btn",onClick:Y=>X(I.cartIndex),disabled:I.qty<=1},[...y[5]||(y[5]=[e("i",{class:"fas fa-minus"},null,-1)])],8,zt),e("span",qt,S(I.qty),1),e("button",{class:"qty-btn",onClick:Y=>m(I.cartIndex)},[...y[6]||(y[6]=[e("i",{class:"fas fa-plus"},null,-1)])],8,Ot)])]),e("button",{class:"remove-btn",onClick:Y=>z(I.cartIndex)},[...y[7]||(y[7]=[e("i",{class:"fas fa-trash"},null,-1)])],8,At)],2))),128))])]))),128))]))]),o(M).length>0?(s(),n("div",Ht,[e("div",Ut,[y[8]||(y[8]=e("span",null,"총 결제금액",-1)),e("span",Wt,S(D(o(A)))+"원",1)]),e("button",{class:"order-btn",onClick:de},"주문하기")])):C("",!0)])])):C("",!0)]),_:1})]))}}),xo=fe(Kt,[["__scopeId","data-v-d5b7e634"]]),Ft={class:"conn-module",style:{display:"none"}},Co=ce({__name:"ConnModule",emits:["mounted","event"],setup(O,{emit:V}){const c=V;return Le(()=>{c("mounted")}),(r,$)=>(s(),n("div",Ft))}}),Jt=oo("/img/myshop_gray.png"),Xt=oo("/img/kcp.png"),Qt={class:"my-footer"},Gt={class:"footer-content"},Yt={class:"footer-links"},Zt={class:"shop-info"},es={key:0,class:"corp-name"},os={key:0,class:"ceo"},ts={key:0,class:"corp-name"},ss={class:"info-grid"},ns={key:0,class:"info-item"},ls={class:"value"},as={key:1,class:"info-item"},is={class:"value"},rs={key:2,class:"info-item address-item"},cs={class:"value"},ds={key:3,class:"info-item"},us={class:"value"}
1,ps={key:4,class:"info-item"},ms={class:"value"},hs={key:0,class:"kcp-badge"},fs={class:"copyright"},gs=ce({__name:"MyFooter",setup(O){const V=we(),c=T(()=>V.info),r=T(()=>{var i;const b=(i=c.value)==null?void 0:i.idnum_singo;if(!b)return!0;for(let h=0;h<b.length;h++){const u=b[h];if(u!=="1"&&u!=="-"&&u!==" ")return!1}return!0}),$=()=>{var b;(b=c.value)!=null&&b.idnum&&window.open(`http://www.ftc.go.kr/bizCommPop.do?wrkr_no=${c.value.idnum}`)},t=()=>{window.open("https://www.kcp.co.kr/alpa.escrow.cpsearch.do","kcp_pop")};return(b,i)=>{const h=Wo;return s(),n("footer",Qt,[e("div",Gt,[e("div",Yt,[R(h,{to:"/shop/agreement"},{default:F(()=>[...i[0]||(i[0]=[J("이용약관",-1)])]),_:1}),i[3]||(i[3]=e("span",{class:"divider"},"|",-1)),R(h,{to:"/shop/privacy",class:"privacy"},{default:F(()=>[...i[1]||(i[1]=[J("개인정보처리방침",-1)])]),_:1}),o(c).idnum&&!o(r)?(s(),n(re,{key:0},[i[2]||(i[2]=e("span",{class:"divider"},"|",-1)),e("a",{onClick:$,class:"biz-check"},"사업자정보확인")],64)):C("",!0)]),e("div",Zt,[o(c).corp?(s(),n("p",es,[J(S(o(c).corpname||o(c).name)+" ",1),o(c).ceo?(s(),n("span",os,"(대표 : "+S(o(c).ceo)+")",1)):C("",!0)])):(s(),n(re,{key:1},[o(c).ceo?(s(),n("p",ts,"대표 : "+S(o(c).ceo),1)):C("",!0)],64)),e("div",ss,[o(c).idnum?(s(),n("p",ns,[i[4]||(i[4]=e("span",{class:"label"},"사업자등록번호",-1)),e("span",ls,S(o(c).idnum),1)])):C("",!0),o(c).idnum_singo&&!o(r)?(s(),n("p",as,[i[5]||(i[5]=e("span",{class:"label"},"통신판매업번호",-1)),e("span",is,S(o(c).idnum_singo),1)])):C("",!0),o(c).address?(s(),n("p",rs,[i[6]||(i[6]=e("span",{class:"label"},"사업장소재지",-1)),e("span",cs,[o(c).zipcode?(s(),n(re,{key:0},[J("("+S(o(c).zipcode)+") ",1)],64)):C("",!0),J(" "+S(o(c).address),1)])])):C("",!0),o(c).tel?(s(),n("p",ds,[i[7]||(i[7]=e("span",{class:"label"},"고객센터",-1)),e("span",us,S(o(c).tel),1)])):C("",!0),o(c).email?(s(),n("p",ps,[i[8]||(i[8]=e("span",{class:"label"},"이메일",-1)),e("span",ms,S(o(c).email),1)])):C("",!0)]),i[9]||(i[9]=e("p",{class:"hosting"},[J(" 호스팅 제공 : "),e("a",{href:"https://myshop.do",target:"_blank",rel:"noopener"},[e("img",{src:Jt,alt:"마이샵",class:"myshop-logo"})])],-1))]),o(c).kcp_code?(s(),n("div",hs,[e("img",{src:Xt,alt:"KCP 에스크로",onClick:t})])):C("",!0),e("div",fs,[e("p",null,"Copyright © "+S(o(c).corpname||o(c).name)+". All rights reserved.",1)])])])}}}),$o=fe(gs,[["__scopeId","data-v-c4671f3c"]]),vs={class:"dialog-header"},ys={class:"dialog-content"},_s=ce({__name:"MyDialog",props:{modelValue:{type:Boolean},title:{default:""},persistent:{type:Boolean,default:!1}},emits:["update:modelValue","cancel"],setup(O,{emit:V}){const c=O,r=V,$=()=>{r("update:modelValue",!1),r("cancel")},t=()=>{c.persistent||$()};return Ie(()=>c.modelValue,b=>{b?document.body.style.overflow="hidden":document.body.style.overflow=""}),(b,i)=>(s(),oe(Ce,{to:"body"},[R(be,{name:"modal"},{default:F(()=>[O.modelValue?(s(),n("div",{key:0,class:"my-dialog-overlay",onClick:t},[e("div",{class:"my-dialog",onClick:i[0]||(i[0]=Je(()=>{},["stop"]))},[e("div",vs,[Ne(b.$slots,"title",{},()=>[e("span",null,S(O.title),1)],!0),e("button",{class:"close-btn",onClick:$},[...i[1]||(i[1]=[e("i",{class:"fas fa-times"},null,-1)])])]),e("div",ys,[Ne(b.$slots,"default",{},void 0,!0)])])])):C("",!0)]),_:3})]))}}),co=fe(_s,[["__scopeId","data-v-9d70b61c"]]),ks=["src"],bs=ce({__name:"ImageViewer",setup(O,{expose:V}){const c=d(!1),r=d(""),$=b=>{r.value=b,c.value=!0},t=()=>{c.value=!1};return V({full:$,close:t}),(b,i)=>(s(),oe(Ce,{to:"body"},[R(be,{name:"fade"},{default:F(()=>[o(c)?(s(),n("div",{key:0,class:"image-viewer",onClick:t},[e("img",{src:o(r),onClick:i[0]||(i[0]=Je(()=>{},["stop"]))},null,8,ks),i[1]||(i[1]=e("button",{class:"close-btn"},[e("i",{class:"fas fa-times"})],-1))])):C("",!0)]),_:1})]))}}),Mo=fe(bs,[["__scopeId","data-v-ab9d0b7e"]]),ws={style:{"min-width":"280px","padding-top":"10px"}},xs=["innerHTML"],Cs={class:"d-flex",style:{"padding-top":"20px"}},Vo=ce({__name:"JoinCancelComponent",setup(O){const V=$e(),c=we(),{$eventBus:r}=Ge(),{goToLogin:$}=Oe(),t=d(!1),b=d(""),i=d(""),h=d(null),u=T(()=>c.info),g=T(()=>V.login===1);Le(()=>{r==null||r.on("join_member",M),r==null||r.on("cancel_member",_)}),to(()=>{r==null||r.off("join_member",M),r==null||r.off("cancel_member",_)});const M=()=>
1{if(!g.value){$();return}if(h.value="join",u.value.member_type==="APPROVE_CORP"){b.value="회원 가입 요청";let N="이 상점은 <strong>사업자 인증</strong>이 필요한 상점입니다.<br><br>가입 요청 후 상점 관리자의 승인이 필요합니다.";u.value.point&&u.value.join_point>0&&(N+=`<br><br>승인 시 <strong>${u.value.join_point.toLocaleString()}원</strong> 적립금이 지급됩니다.`),i.value=N}else if(u.value.member_type==="APPROVE"){b.value="회원 가입 요청";let N="이 상점은 가입 승인이 필요한 상점입니다.<br><br>가입 요청 후 상점 관리자의 승인이 필요합니다.";u.value.point&&u.value.join_point>0&&(N+=`<br><br>승인 시 <strong>${u.value.join_point.toLocaleString()}원</strong> 적립금이 지급됩니다.`),i.value=N}else{b.value="상점 찜하기";let N="이 상점을 찜하시겠습니까?";u.value.point&&u.value.join_point>0&&(N+=`<br><br>가입 시 <strong>${u.value.join_point.toLocaleString()}원</strong> 적립금이 지급됩니다.`),i.value=N}t.value=!0},_=()=>{g.value&&(h.value="cancel",b.value="찜 해제",i.value="이 상점의 찜을 해제하시겠습니까?",t.value=!0)},j=async()=>{t.value=!1,h.value==="join"?await A():h.value==="cancel"&&await B()},A=async()=>{var N;try{u.value.member_type==="APPROVE_CORP"?(await $fetch("/api/myshp/v2/request/join/corp",{method:"POST",body:{shopid:u.value.xshopid||u.value.shopid}}),r==null||r.emit("info","회원 가입을 요청했습니다. 상점 관리자의 승인을 기다려주세요.")):u.value.member_type==="APPROVE"?(await $fetch("/api/myshp/v2/request/join",{method:"POST",body:{shopid:u.value.xshopid||u.value.shopid}}),r==null||r.emit("info","회원 가입을 요청했습니다. 상점 관리자의 승인을 기다려주세요.")):(await $fetch(`/api/myshp/join?shopid=${u.value.shopid}`),r==null||r.emit("info","상점을 찜했습니다.")),r==null||r.emit("refresh_member_status")}catch(E){const K=((N=E==null?void 0:E.data)==null?void 0:N.msg)||"가입에 실패했습니다.";r==null||r.emit("alert",K)}},B=async()=>{var N;try{await $fetch(`/api/myshp/cancel?shopid=${u.value.shopid}`),r==null||r.emit("info","찜을 해제했습니다."),r==null||r.emit("refresh_member_status")}catch(E){const K=((N=E==null?void 0:E.data)==null?void 0:N.msg)||"해제에 실패했습니다.";r==null||r.emit("alert",K)}};return(N,E)=>{const K=co;return s(),oe(K,{modelValue:o(t),"onUpdate:modelValue":E[1]||(E[1]=D=>eo(t)?t.value=D:null),onCancel:E[2]||(E[2]=D=>t.value=!1)},{title:F(()=>[J(S(o(b)),1)]),default:F(()=>[e("div",ws,[e("div",{class:"pa-4",style:{"font-size":"15px"},innerHTML:o(i)},null,8,xs)]),e("div",Cs,[e("div",{class:"btn2 btn-black",onClick:j},"확인"),e("div",{class:"btn2 btn-outline",onClick:E[0]||(E[0]=D=>t.value=!1)},"취소")])]),_:1},8,["modelValue"])}}}),$s={class:"carousel-inner"},Ms={key:0,class:"carousel-pagination"},Vs=["onClick"],Ss=ce({__name:"MyCarousel",props:{options:{default:()=>({})}},setup(O,{expose:V}){const c=O,r=d(),$=d(0),t=d(0),b=d(0),i=d(!1),h=T(()=>{var p;return((p=c.options)==null?void 0:p.pagination)!==!1}),u=T(()=>{var p;return((p=c.options)==null?void 0:p.navigation)===!0}),g=T(()=>({transform:`translateX(-${$.value*100}%)`}));Le(()=>{var z,L;const p=(z=r.value)==null?void 0:z.querySelectorAll(".carousel-wrapper > *");if(t.value=(p==null?void 0:p.length)||0,(L=c.options)!=null&&L.autoplay){const m=typeof c.options.autoplay=="object"?c.options.autoplay.delay:3e3;ko(M,m)}});const M=()=>{$.value<t.value-1?$.value++:$.value=0},_=()=>{$.value>0?$.value--:$.value=t.value-1},j=p=>{$.value=p},A=p=>{b.value=p.touches[0].clientX,i.value=!0},B=p=>{i.value},N=p=>{if(!i.value)return;const z=p.changedTouches[0].clientX,L=b.value-z;Math.abs(L)>50&&(L>0?M():_()),i.value=!1},E=p=>{b.value=p.clientX,i.value=!0},K=p=>{i.value},D=p=>{if(!i.value)return;const z=b.value-p.clientX;Math.abs(z)>50&&(z>0?M():_()),i.value=!1};return V({next:M,prev:_,goToSlide:j}),(p,z)=>(s(),n("div",{class:"my-carousel",ref_key:"containerRef",ref:r,onTouchstart:A,onTouchmove:B,onTouchend:N,onMousedown:E,onMousemove:K,onMouseup:D,onMouseleave:D},[e("div",$s,[e("div",{class:"carousel-wrapper",style:se(o(g))},[Ne(p.$slots,"default",{},void 0,!0)],4),o(h)?(s(),n("div",Ms,[(s(!0),n(re,null,Te(o(t),(L,m)=>(s(),n("span",{key:m,class:U(["dot",{active:o($)===m}]),onClick:X=>j(m)},null,10,Vs))),128))])):C("",!0),o(u)?(s(),n("button",{key:1,class:"nav-btn prev",onClick:_},[...z[0]||(z[0]=[e("i",{class:"fas fa-chevron-left"},null,-1)])])):C("",!0),o(u)?(s(),n("button",{key:2,class:"nav-btn next",onClick:M},[...z[1]||(z[1]=[e("i",{class:"fas fa-chevron-right"},null,-1)])])):C("",!0)])],544))}}),Is=fe(Ss,[["__scopeId","data-v-b57421cc"]]),Ns={key:0,class:"popup-overlay"},Ts={class:"popup-inner"},Ls=ce({__name:"Popup",setup(O,{expose:V}){const c=$e(),{getCookie:r,setCookie:$}=go(),t=d(!1),b=d(!1),i=d([]),h=d(1),u=d(10),g=d(10),M=d(0),_=d(0),j=d(0),A=T(()=>c.mobile),B=T(()=>c.mainpopup),N=T(()=>({pagination:!1,navigation:!A.value})),E=()=>{const p=new Date().toISOString().split("T")[0];if(r("popup_today")===p||sessionStorage.getItem("popup_shown"))return;b.value=!1,j.value=0;const L=A.value?"mobile":"pc";if(B.value&&B.value[L]){if(i.value=B.value[L].value||[],h.value=B.value[L].ratio||1,i.value.length===0)return;const m=window.innerHeight,X=window.innerWidth,de=A.value?.7:.6,v=parseInt(String(X*de)),y=parseInt(String(m*de)),H=v>y?1:0;let I=0,Y=0;h.value<1,H===0?(I=v,Y=I*h.value):(Y=y,I=Y/h.value),u.value=parseInt(String(I)),g.value=parseInt(String(Y)),M.value=(X-u.value)/2,_.value=(m-g.value)/2,t.value=!0,sessionStorage.setItem("popup_shown","1"),ro(()=>{b.value=!0})}},K=()=>{t.value=!1;const p=new Date().toISOString().split("T")[0];$("popup_today",p,1440)},D=()=>{t.value=!1};return V({open:E,close:D}),(p,z)=>{const L=Ko,m=Is;return s(),oe(Ce,{to:"body"},[R(be,{name:"fade"},{default:F(()=>[o(t)?(s(),n("div",Ns,[e("div",Ts,[e("div",{style:se(`position: absolute; left: ${o(M)}px; top: ${o(_)}px`)},[o(i)&&o(i).length>0?(s(),n("div",{key:0,style:se(`width: ${o(u)}px; position: relative`)},[e("div",{class:"popup-frame",style:se(`width: ${o(u)}px; height: ${o(g)}px`)},[R(be,{name:"nested"},{default:F(()=>[o(b)?(s(),oe(m,{key:0,options:o(N),style:se(`width: ${o(u)}px; height: ${o(g)}px`),class:"popup-carousel"},{default:F(()=>[(s(!0),n(re,null,Te(o(i),(X,de)=>(s(),n("div",{key:de,style:se(`width: ${o(u)}px; height: ${o(g)}px; overflow: hidden`)},[R(L,{"force-ratio":o(h),item:X,"no-radius":!0,style:{height:"100%"}},null,8,["force-ratio","item"])],4))),128))]),_:1},8,["options","style"])):C("",!0)]),_:1})],4),e("div",{class:"popup-footer"},[e("span",{class:"close-today",onClick:K}," 오늘 하루동안 보지 않기 "),e("span",{class:"close-btn",onClick:D}," 닫기 ")])],4)):C("",!0)],4)])])):C("",!0)]),_:1})])}}}),So=fe(Ls,[["__scopeId","data-v-32a68e90"]]),Io=oo("/img/kakao.png"),No=()=>{$e();const O=we(),{checkLogin:V}=Oe(),{syncCart:c}=vo(),{get:r}=Uo(),{setCookie:$}=go(),t=Fe(),b=d(!1),i=async()=>{t.query.fbclid&&$("_fbc",t.query.fbclid,1440*30),await V()?await Promise.all([c(),h()]):await c(),b.value=!0},h=async()=>{try{const[u,g]=await Promise.all([r("/myshp/get/my/summary"),r("/myshp/get/order/summary")]);O.setSummary(u||{}),O.setOrderSummary(g||{})}catch(u){console.error("Load summary failed:",u)}};return{initedContainer:b,onInit:i,loadSummary:h}},Ps={key:0,id:"common_script"},Bs={key:1,id:"container",class:"container"};const js={class:"header",id:"header"},Es={class:"mob-header-left"},Rs={key:0,xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 24 24",fill:"
1currentColor"},Ds={key:1,xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 24 24",fill:"currentColor"},zs=["src"],qs={key:1,class:"mob-logo-text"},Os={class:"mob-header-right"},As={key:0,class:"mob-cart-badge"},Hs={class:"mob-header-left"},Us=["src"],Ws={key:1,class:"mob-logo-text"},Ks={class:"mob-header-right"},Fs={key:0,class:"mob-cart-badge"},Js={class:"mob-header-left"},Xs=["src"],Qs={key:1,class:"mob-logo-text"},Gs={class:"mob-header-right"},Ys={key:0,class:"mob-cart-badge"},Zs={class:"mob-search-expand"},en={class:"expiration-text"},on={key:5,class:"detail-nav-bar"},tn={style:{"min-width":"250px","padding-top":"10px"}},sn=["innerHTML"],nn={class:"d-flex",style:{"padding-top":"30px"}},ln={key:0,style:{"margin-bottom":"10px"}},an=ce({__name:"MobLayout",setup(O){const V=$e(),c=we(),r=Fe(),$=qe(),{$eventBus:t}=Ge(),{goToLogin:b}=Oe(),i=d(""),h=d(0),u=d(!1),g=d(!0),M=d(!1),_=d(0),j=d(!1),A=d({title:"",msg:""}),B=d([]);let N=0;const E=d(!1),K=d(!0),D=d(!1),p=d(!1),z=d(null),L=d(null),m=d(),X=d(),de=d(),v=d(),y=d(),H=d(),I=d(),Y=d(),pe=d(),q=T(()=>c.info),ge=T(()=>c.cart),xe=T(()=>V.mscript),Ae=T(()=>V.listing_type),ye=T(()=>r.path.startsWith("/shop/list")),He=T(()=>r.path.startsWith("/shop/view")),Pe=T(()=>V.login===1),Be=T(()=>c.header_type||"v1"),{onInit:Xe}=No(),ue=x=>{if(!x||!x.startsWith("#"))return 0;const l=x.replace("#",""),Q=parseInt(l.substring(0,2),16)||0,G=parseInt(l.substring(2,4),16)||0,Se=parseInt(l.substring(4,6),16)||0;return(Q*299+G*587+Se*114)/1e3},ne=()=>{const x=c.custom_skin;let l=(x==null?void 0:x.mcolor)||"#10B981";const Q=(x==null?void 0:x.mcolor2)||"#34D399",G=(x==null?void 0:x.scolor)||"#F59E0B",Se=(x==null?void 0:x.btn_color)||"#10B981";ue(l)>200&&(l="#10B981"),document.body.style.setProperty("--primary-color",l),document.body.style.setProperty("--secondary-color",G),document.body.style.setProperty("--mcolor",l),document.body.style.setProperty("--mcolor2",Q),document.body.style.setProperty("--scolor",G),document.body.style.setProperty("--btn-color",Se)};Ie(()=>c.custom_skin,ne,{deep:!0}),Le(async()=>{ne(),localStorage.getItem("listing_type")==="text"?V.setListingType("text"):V.setListingType("gallery");let l=location.href;if(l.indexOf(".shockping.com")<=0){const Q=l.indexOf("//");l=l.substring(Q+2);let G=l.indexOf("/");G>0&&(l=l.substring(0,G)),G=l.indexOf(":"),G>0&&(l=l.substring(0,G)),V.setDom2(l)}t==null||t.on("search",_e),t==null||t.on("alert",W),t==null||t.on("info",Ee),t==null||t.on("confirm",he),t==null||t.on("showcart",De),t==null||t.on("loading",le),t==null||t.on("full-img",ee),t==null||t.on("refresh_member_status",w),window.addEventListener("resize",te),window.addEventListener("scroll",Z),document.body.addEventListener("touchstart",()=>{}),document.body.addEventListener("touchend",()=>{}),document.body.addEventListener("touchcancel",()=>{}),document.body.addEventListener("touchmove",()=>{}),i.value=`width:${window.innerWidth}px;overflow-x:hidden`,E.value=!!q.value.kakao,await Xe(),g.value=!0,je(),w()}),to(()=>{t==null||t.off("search",_e),t==null||t.off("alert",W),t==null||t.off("info",Ee),t==null||t.off("confirm",he),t==null||t.off("showcart",De),t==null||t.off("loading",le),t==null||t.off("full-img",ee),t==null||t.off("refresh_member_status",w),window.removeEventListener("resize",te),window.removeEventListener("scroll",Z)}),Ie(()=>r.name,()=>{f()}),Ie(u,()=>{f()}),Ie(g,()=>{f()});const Qe=()=>{localStorage.getItem("listing_type")==="text"?(localStorage.setItem("listing_type","gallery"),V.setListingType("gallery")):(localStorage.setItem("listing_type","text"),V.setListingType("text"))},je=()=>{var G,Se;const x=V.mobile,l=V.mainpage;let Q=!1;if(x){const ze=l==null?void 0:l.mobile;ze&&ze.length>0&&(Q=!0)}else{const ze=l==null?void 0:l.pc;ze&&ze.length>0&&(Q=!0)}Q?r.path==="/"&&((G=I.value)==null||G.open()):(r.path==="/"||r.path==="/shop/list")&&((Se=I.value)==null||Se.open())},Ue=()=>{var x,l;(x=Y.value)==null||x.opened(),(l=pe.value)==null||l.opened()},Me=()=>{M.value=!1},_e=x=>{M.value=x},f=()=>{g.value&&ro(()=>{})},a=()=>{window.scrollTo(0,0)},P=()=>{q.value.kakao_link&&(location.href=q.value.kakao_link)},Z=()=>{_.value=window.scrollY},te=()=>{i.value=`width:${window.innerWidth}px;overflow-x:hidden`},ee=x=>{var l;(l=H.value)==null||l.full(x)},le=x=>{},W=x=>{const l=++N;B.value.push({id:l,msg:x}),setTimeout(()=>{const Q=B.value.findIndex(G=>G.id===l);Q!==-1&&B.value.splice(Q,1)},3e3)},ae=()=>{A.value.func&&A.value.func(),j.value=!1},he=x=>{const[l,Q,G]=x;A.value={title:l,msg:Q,func:G},j.value=!0},Ee=x=>{const l=++N;B.value.push({id:l,msg:x}),setTimeout(()=>{const Q=B.value.findIndex(G=>G.id===l);Q!==-1&&B.value.splice(Q,1)},3e3)},w=async()=>
1{if(V.login!==1){D.value=!1,z.value=null;return}try{const x=await $fetch("/api/myshp/ismember",{params:{shopid:q.value.shopid}});x!=null&&x.id?(D.value=!0,k()):(D.value=!1,z.value=null)}catch{D.value=!1,z.value=null}},k=async()=>{try{const x=await $fetch("/api/myshp/get/member/point",{params:{shopid:q.value.shopid}});z.value=x;const l=await $fetch("/api/myshp/get/member/point/expiration",{params:{shopid:q.value.shopid}});l&&l.length>0?L.value=l[0]:L.value=null}catch{z.value=null,L.value=null}},me=()=>{$.push("/shop/member_point")},ie=()=>{Pe.value?t==null||t.emit("join_member"):b()},ve=x=>(x==null?void 0:x.toLocaleString("ko-KR"))||"0",so=x=>{if(!x)return"";try{const l=new Date(x),Q=l.getMonth()+1,G=l.getDate();return`${Q}/${G}`}catch{return""}},uo=()=>{V.login===1&&D.value?Re():p.value=!0},Ye=x=>{p.value=!1,x==="like"?t==null||t.emit("join_member"):Re()},Re=()=>{var x;(x=X.value)==null||x.showMenu()},De=()=>{var x;(x=de.value)==null||x.showMenu()},no=()=>{},lo=()=>{},We=()=>{},Ke=()=>{$.push({path:"/"})},Ze=()=>{$.push({path:"/shop/list"})},Ve=()=>{},To=x=>{};return(x,l)=>{var po,mo;const Q=Xo,G=yo,Se=_o,ze=bo,Lo=Ct,Po=xo,Bo=Co,jo=$o,Eo=co,Ro=Mo,Do=Vo,zo=So;return s(),n("div",{class:U(["root",`mob-header-${o(Be)}`]),style:se(o(i))},[(mo=(po=o(xe))==null?void 0:po.mobile)!=null&&mo.common?(s(),n("div",Ps,[(s(),oe(fo("script"),{innerHTML:o(xe).mobile.common},null,8,["innerHTML"]))])):C("",!0),o(g)?(s(),n("div",Bs,[R(be,{name:"fade"},{default:F(()=>[C("",!0)]),_:1}),e("div",js,[R(ze,{ref_key:"noticeRef",ref:m,id:"notice",onLoad:We},null,512)]),R(Lo,{ref_key:"menuRef",ref:X,onShowed:no,onClosed:lo},null,512),R(Po,{ref_key:"cartRef",ref:de},null,512),e("div",{id:"content",ref_key:"contentRef",ref:v,class:"content"},[o(Be)==="v1"?(s(),n("div",{key:0,id:"main_logo_header",class:U(["mob-header-bar mob-header-main",{"no-border":o(M)}])},[e("div",Es,[e("button",{class:"mob-icon-btn",onClick:Re,"aria-label":"메뉴"},[...l[29]||(l[29]=[e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},[e("line",{x1:"3",y1:"6",x2:"21",y2:"6"}),e("line",{x1:"3",y1:"12",x2:"21",y2:"12"}),e("line",{x1:"3",y1:"18",x2:"21",y2:"18"})],-1)])]),e("button",{class:U(["mob-icon-btn view-toggle",{invisible:!o(ye)}]),onClick:Qe,"aria-label":"보기 방식 변경"},[o(Ae)==="gallery"?(s(),n("svg",Rs,[...l[30]||(l[30]=[e("rect",{x:"3",y:"3",width:"8",height:"8",rx:"1"},null,-1),e("rect",{x:"13",y:"3",width:"8",height:"8",rx:"1"},null,-1),e("rect",{x:"3",y:"13",width:"8",height:"8",rx:"1"},null,-1),e("rect",{x:"13",y:"13",width:"8",height:"8",rx:"1"},null,-1)])])):(s(),n("svg",Ds,[...l[31]||(l[31]=[Ao('<rect x="3" y="4" width="4" height="4" rx="1" data-v-c85904ca></rect><rect x="10" y="5" width="11" height="2" rx="1" data-v-c85904ca></rect><rect x="3" y="10" width="4" height="4" rx="1" data-v-c85904ca></rect><rect x="10" y="11" width="11" height="2" rx="1" data-v-c85904ca></rect><rect x="3" y="16" width="4" height="4" rx="1" data-v-c85904ca></rect><rect x="10" y="17" width="11" height="2" rx="1" data-v-c85904ca></rect>',6)])]))],2)]),e("div",{class:"mob-header-center",onClick:Ke},[o(q).use_logo&&o(q).logo?(s(),n("img",{key:0,src:o(q).logo,style:se(`height:${o(q).logo_height||32}px`),class:"mob-logo-img",onLoad:We},null,44,zs)):(s(),n("span",qs,S(o(q).name),1))]),e("div",Os,[o(M)?(s(),n("button",{key:0,class:"mob-icon-btn",onClick:Me,"aria-label":"닫기"},[...l[32]||(l[32]=[e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.2","stroke-linecap":"round","stroke-linejoin":"round"},[e("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),e("line",{x1:"6",y1:"6",x2:"18",y2:"18"})],-1)])])):(s(),oe(Q,{key:1,onOn_search:_e})),e("button",{class:"mob-icon-btn mob-cart-btn",onClick:De,"aria-label":"장바구니"},[l[33]||(l[33]=e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.2","stroke-linecap":"round","stroke-linejoin":"round"},[e("path",{d:"M6 2L3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4z"}),e("line",{x1:"3",y1:"6",x2:"21",y2:"6"}),e("path",{d:"M16 10a4 4 0 0 1-8 0"})],-1)),o(ge).length>0?(s(),n("span",As,S(o(ge).length),1)):C("",!0)])])],2)):o(Be)==="v2"?(s(),n("div",{key:1,id:"main_logo_header",class:U(["mob-header-bar mob-header-main v2",{"no-border":o(M)}])},[e("div",Hs,[e("div",{class:"mob-logo-area",onClick:Ke},[o(q).use_logo&&o(q).logo?(s(),n("img",{key:0,src:o(q).logo,style:se(`he
1ight:${o(q).logo_height||28}px`),class:"mob-logo-img",onLoad:We},null,44,Us)):(s(),n("span",Ws,S(o(q).name),1))])]),e("div",Ks,[o(M)?(s(),n("button",{key:0,class:"mob-icon-btn",onClick:Me,"aria-label":"닫기"},[...l[34]||(l[34]=[e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.2","stroke-linecap":"round","stroke-linejoin":"round"},[e("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),e("line",{x1:"6",y1:"6",x2:"18",y2:"18"})],-1)])])):(s(),oe(Q,{key:1,onOn_search:_e})),e("button",{class:"mob-icon-btn mob-cart-btn",onClick:De,"aria-label":"장바구니"},[l[35]||(l[35]=e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.2","stroke-linecap":"round","stroke-linejoin":"round"},[e("path",{d:"M6 2L3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4z"}),e("line",{x1:"3",y1:"6",x2:"21",y2:"6"}),e("path",{d:"M16 10a4 4 0 0 1-8 0"})],-1)),o(ge).length>0?(s(),n("span",Fs,S(o(ge).length),1)):C("",!0)]),e("button",{class:"mob-icon-btn",onClick:Re,"aria-label":"메뉴"},[...l[36]||(l[36]=[e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},[e("line",{x1:"3",y1:"6",x2:"21",y2:"6"}),e("line",{x1:"3",y1:"12",x2:"21",y2:"12"}),e("line",{x1:"3",y1:"18",x2:"21",y2:"18"})],-1)])])])],2)):(s(),n("div",{key:2,id:"main_logo_header",class:U(["mob-header-bar mob-header-main v3",{"no-border":o(M)}])},[e("div",Js,[e("div",{class:"mob-logo-area",onClick:Ke},[o(q).use_logo&&o(q).logo?(s(),n("img",{key:0,src:o(q).logo,style:se(`height:${o(q).logo_height||28}px`),class:"mob-logo-img",onLoad:We},null,44,Xs)):(s(),n("span",Qs,S(o(q).name),1))])]),e("div",Gs,[o(M)?(s(),n("button",{key:0,class:"mob-icon-btn",onClick:Me,"aria-label":"닫기"},[...l[37]||(l[37]=[e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.2","stroke-linecap":"round","stroke-linejoin":"round"},[e("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),e("line",{x1:"6",y1:"6",x2:"18",y2:"18"})],-1)])])):(s(),oe(Q,{key:1,onOn_search:_e})),e("button",{class:"mob-icon-btn mob-cart-btn",onClick:De,"aria-label":"장바구니"},[l[38]||(l[38]=e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.2","stroke-linecap":"round","stroke-linejoin":"round"},[e("path",{d:"M6 2L3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4z"}),e("line",{x1:"3",y1:"6",x2:"21",y2:"6"}),e("path",{d:"M16 10a4 4 0 0 1-8 0"})],-1)),o(ge).length>0?(s(),n("span",Ys,S(o(ge).length),1)):C("",!0)]),e("button",{class:"mob-icon-btn",onClick:Re,"aria-label":"메뉴"},[...l[39]||(l[39]=[e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},[e("line",{x1:"3",y1:"6",x2:"21",y2:"6"}),e("line",{x1:"3",y1:"12",x2:"21",y2:"12"}),e("line",{x1:"3",y1:"18",x2:"21",y2:"18"})],-1)])])]),l[40]||(l[40]=e("div",{class:"v3-accent-bar"},null,-1))],2)),R(Se,{active:o(M),duration:300,onOpenEnd:Ue},{default:F(()=>[e("div",Zs,[R(G,{ref_key:"searchBox2Ref",ref:pe,onClose:Me},null,512)])]),_:1},8,["active"]),o(z)&&o(z).point>0?(s(),n("div",{key:3,class:"point-alert-bar main-bar",onClick:me},[l[44]||(l[44]=e("i",{class:"fas fa-coins"},null,-1)),e("span",null,[l[42]||(l[42]=J(" 적립금 ",-1)),e("strong",null,S(ve(o(z).point))+"원",1),l[43]||(l[43]=J(" 보유중",-1)),o(L)?(s(),n(re,{key:0},[l[41]||(l[41]=J(" ",-1)),e("span",en,"("+S(so(o(L).expiration))+" 소멸예정)",1)],64)):C("",!0)]),l[45]||(l[45]=e("i",{class:"fas fa-chevron-right"},null,-1))])):(!o(Pe)||!o(D))&&o(q).point&&o(q).join_point>0?(s(),n("div",{key:4,class:"point-alert-bar join-point main-bar",onClick:ie},[l[48]||(l[48]=e("i",{class:"fas fa-gift"},null,-1)),e("span",null,[l[46]||(l[46]=J("지금 가입하면 ",-1)),e("strong",null,S(ve(o(q).join_point))+"원",1),l[47]||(l[47]=J(" 적립!",-1))]),l[49]||(l[49]=e("i",{class:"fas fa-chevron-right"},null,-1))])):C("",!0),o(He)?(s(),n("div",on,[e("a",{class:"detail-nav-link",onClick:Ze},[...l[50]||(l[50]=[e("i",{class:"fas fa-th-large"},null,-1),e("span",null,"전체상품 보기",-1),e("i",{class:"fas fa-chevron-right"},null,-1)])])])):C("",!0),Ne(x.$slots,"default",{},void 0,!0)],512),o(Pe)?(s(),oe(Bo,{key:0,ref_key:"connRef",ref:y,onMounted:Ve,onEvent:To},null,512)):C("",!0)])):C("",!0),R(jo),R(Eo,{modelValue:o(j),"onUpdate:modelValue":l[1]||(l[1]=ke=>eo(j)?j.value=ke:null),onCancel:l[2]||(l[2]=ke=>j.value=!1)},{title:F(()=>[J(S(o(A).title),1)]),default:F(()=>[e("div",tn,[e("div",{class:"pa-4",style:{"font-size":"15px"},innerHTML:o(A).msg},null,8,sn)]),e("div",nn,[e("div",{class:"btn2 btn-black",onClick:ae},"확인"),e("div",{class:"btn2 btn-outline",onClick:l[0]||(l[0]=ke=>j.value=!1)},"취소")])]),_:1},8,["modelValue"]),R(Ro,{ref_key:"imgRef",ref:H},null,512),(s(),oe(Ce,{to:"body"},[R(io,{name:"toast",tag:"div",class:"toast-container"},{default:F(()=>[(s(!0),n(re,null,Te(o(B),ke=>(s(),n("div",{key:ke.id,class:"toast-item"},[l[51]||(l[51]=e("i",{class:"fas fa-exclamation-circle"},null,-1)),e("span",null,S(ke.msg),1)]))),128))]),_:1})])),o(K)&&o(_)>200?(s(),n("div",{key:2,style:se(o(E)?"position: fixed;right:8px;z-index:4;opacity:0.9;bottom:85px":"position: fixed;right:8px;bottom:85px;z-index:4;opacity:0.9")},[o(E)?(s(),n("div",ln,[e("div",{style:{opacity:"0.8","background-color":"white",padding:"5px",width:"55px",height:"55px","border-radius":"55px"}},[e("div",{onClick:P,style:{color:"#fff",width:"45px",height:"45px","border-radius":"100%","justify-content":"center"},class:"d-flex"},[...l[52]||(l[52]=[e("img",{src:Io,style:{width:"30px",color:"#212121","align-self":"center"}},null,-1)])])])])):C("",!0),e("div",{style:{opacity:"0.8","background-color":"white",padding:"5px",width:"55px",height:"55px","border-radius":"55px"}},[e("div",{onClick:a,style:{color:"#fff",width:"45px",height:"45px","border-radius":"100%","justify-content":"center"},class:"d-flex"},[...l[53]||(l[53]=[e("i",{style:{"font-size":"30px",color:"#212121","align-self":"center"},class:"fas fa-arrow-up"},null,-1)])])])],4)):C("",!0),R(Do),R(zo,{ref_key:"popRef",ref:I},null,512),(s(),oe(Ce,{to:"body"},[R(be,{name:"action-sheet"},{default:F(()=>[o(p)?(s(),n("div",{key:0,class:"action-sheet-overlay",onClick:l[7]||(l[7]=ke=>p.value=!1)},[e("div",{class:"action-sheet",onClick:l[6]||(l[6]=Je(()=>{},["stop"]))},[l[56]||(l[56]=e("div",{class:"action-sheet-header"},[e("span",null,"선택해주세요")],-1)),e("div",{class:"action-sheet-item",onClick:l[3]||(l[3]=ke=>Ye("like"))},[...l[54]||(l[54]=[e("i",{class:"fal fa-heart"},null,-1),e("span",null,"상점 찜하기",-1)])]),e("div",{class:"action-sheet-item",onClick:l[4]||(l[4]=ke=>Ye("menu"))},[...l[55]||(l[55]=[e("i",{class:"fal fa-bars"},null,-1),e("span",null,"메뉴 열기",-1)])]),e("div",{class:"action-sheet-cancel",onClick:l[5]||(l[5]=ke=>p.value=!1)}," 취소 ")])])):C("",!0)]),_:1})]))],6)}}}),rn=fe(an,[["__scopeId","data-v-c85904ca"]]),cn={class:"header-top v1"},dn={class:"header-left"}
1,un=["title"],pn={key:0,class:"fal fa-th-large"},mn={key:1,class:"fal fa-list"},hn={class:"header-center"},fn=["src"],gn={key:1,class:"shop-name"},vn={class:"header-right"},yn={key:0,class:"cart-badge"},_n={class:"nav-bar v1"},kn={class:"menu-items"},bn={key:1,class:"header-top v2"},wn={class:"header-left"},xn=["src"],Cn={key:1,class:"shop-name"},$n={class:"header-center"},Mn={class:"header-right"},Vn={key:0,class:"cart-badge"},Sn={key:2,class:"header-top v3"},In={class:"header-left"},Nn=["src"],Tn={key:1,class:"shop-name"},Ln={class:"header-center"},Pn={class:"nav-pill"},Bn={class:"header-right"},jn={key:0,class:"cart-badge"},En={class:"dropdown-content"},Rn={key:0,class:"user-info-section"},Dn={class:"user-row"},zn={class:"user-name"},qn={class:"name"},On={key:0,class:"user-point"},An={key:0,class:"join-point"},Hn={class:"order-summary"},Un={class:"action-buttons"},Wn={key:0},Kn={key:1},Fn={key:2},Jn={key:1,class:"user-info-section"},Xn={class:"user-row"},Qn={key:0,class:"join-point"},Gn={class:"my-menu-section"},Yn={key:0},Zn={key:1},el=["href"],ol={class:"recent-section"},tl={key:0,class:"recent-empty"},sl={key:1,class:"recent-list"},nl=["onClick"],ll=ce({__name:"PcMenu",props:{isMember:{type:Boolean}},emits:["toggle-member","toggle-display","toggle-search","show-cart"],setup(O,{expose:V}){const c=qe(),r=Fe(),$=$e(),t=we(),b=T(()=>t.header_type||"v1"),i=T(()=>$.listing_type),h=T(()=>r.path.startsWith("/shop/list")),u=T(()=>{var f;return((f=t.cart)==null?void 0:f.length)||0}),{goToLogin:g,toBridgeMyShockping:M}=Oe(),{$eventBus:_}=Ge(),j=d(!1),A=d(null),B=d(null),N=d([]),E=d([]),K=d(0),D=d(null),p=T(()=>t.info),z=T(()=>t.summary),L=T(()=>t.order_summary),m=T(()=>$.login===1),X=T(()=>$.muid),de=T(()=>$.recent||[]),v=d(!1),y=T(()=>{var f;return((f=$.api_info)==null?void 0:f.domain)||"shockping.com"}),H=T(()=>`https://myshop.${y.value}/admin`),I=async()=>{if($.login!==1){v.value=!1;return}try{const f=await $fetch("/api/myshp/ismember",{params:{shopid:p.value.shopid}});v.value=!!(f!=null&&f.id)}catch{v.value=!1}};Le(()=>{_==null||_.on("request_join_member",xe),_==null||_.on("check_member_status",q),_==null||_.on("refresh_member_status",I),q(),I();const f=r.query.category;f?B.value=parseInt(f):B.value=0,Ue(),ge()}),to(()=>{_==null||_.off("request_join_member",xe),_==null||_.off("check_member_status",q),_==null||_.off("refresh_member_status",I)}),Ie(()=>$.login,()=>{q(),I()}),Ie(()=>[r.path,r.query.category],([f,a])=>{if(f.startsWith("/shop/list")){const Z=a?parseInt(a):0;B.value=Z,Z&&N.value.length>0&&(K.value=0,_e())}else{const Z=te=>{var ee;for(const le of te)le.expanded=!1,(ee=le.children)!=null&&ee.length&&Z(le.children)};Z(N.value)}});const Y=()=>{j.value=!j.value},pe=()=>{j.value=!1},q=async()=>{if(!(p.value.member_type!=="APPROVE_CORP"&&p.value.member_type!=="APPROVE")&&$.login===1)try{const f=await $fetch("/api/myshp/v2/request/join_status",{params:{xshopid:p.value.xshopid}});A.value=f}catch(f){console.error("Check status failed:",f)}},ge=async()=>{if($.login===1)try{const f=await $fetch("/api/myshp/get/member/point",{params:{shopid:p.value.shopid}});D.value=f}catch{}},xe=()=>{_==null||_.emit("join_member")},Ae=()=>{g()},ye=f=>{pe();const a=`https://my.${y.value}${f}`;M(a)},He=()=>{c.push("/shop/member_point"),pe()},Pe=()=>{p.value.kakao_link&&window.open(p.value.kakao_link),pe()},Be=()=>{c.push("/shop/notice-list"),pe()},Xe=async f=>{try{const a=await $fetch("/api/myshp/get/product/url",{params:{sid:f.sid}});location.href="//"+a}catch{c.push(`/shop/view/${f.sid}`)}pe()},ue=f=>{c.push(f)},ne=f=>f==="/"?r.path==="/":r.path.startsWith(f),Qe=f=>({backgroundImage:`url(${f.image?`//cdnpxy0.mocoplex.com/resize_w/100/${f.image}`:"/img/no-image.png"})`,backgroundPosition:"center center",backgroundSize:"cover"}),je=f=>(f==null?void 0:f.toLocaleString("ko-KR"))||"0",Ue=async()=>{try{const f=await $fetch("/api/myshp/v2/get/category",{params:{shopid:p.value.shopid}});E.value=f||[],Me((f==null?void 0:f.slice())||[]),ro(()=>{_e()})}catch(f){console.error("Load category failed:",f)}},Me=f=>{N.value=[],N.value.push({id:0,name:"전체보기",children:[],expanded:!1}),f.sort((W,ae)=>(ae.weight||0)-(W.weight||0));const a=W=>f.some(ae=>ae.cid===W),P=f.filter(W=>{const ae=W.parent;return!ae||a(ae)}),Z=W=>({id:W.cid,name:W.name,children:[],expanded:!1}),te=(W,ae)=>{for(const he of W){if(parseInt(he.id)===parseInt(ae.parent)){const Ee=Z(ae);return Ee.parent=he,he.children.push(Ee),!0}if(he.children.length>0&&te(he.children,ae))return!0}return!1},ee=[];for(const W of P)W.parent?ee.push(W):N.value.push(Z(W));let le=100;for(;ee.length>0&&le>0;){let W=0;const ae=[];for(const he of ee)he.parent&&te(N.value,he)?W++:ae.push(he);
1if(ee.length=0,ee.push(...ae),W===0)break;le--}},_e=()=>{if(!B.value||B.value===0||K.value===B.value)return;K.value=B.value;const f=Z=>{var te;for(const ee of Z)ee.expanded=!1,(te=ee.children)!=null&&te.length&&f(ee.children)};f(N.value);const a=(Z,te)=>{var ee;for(const le of Z){if(le.id===te)return le;if((ee=le.children)!=null&&ee.length){const W=a(le.children,te);if(W)return W}}return null},P=a(N.value,B.value);if(P){const Z=te=>{te.expanded=!0,te.parent&&Z(te.parent)};Z(P)}};return V({toggleUserMenu:Y}),(f,a)=>(s(),n("div",{class:U(["pc-menu",`header-${o(b)}`])},[o(b)==="v1"?(s(),n(re,{key:0},[e("div",cn,[e("div",dn,[e("button",{class:"icon-btn",onClick:a[0]||(a[0]=P=>f.$emit("toggle-member")),title:O.isMember?"찜 해제":"찜하기"},[e("i",{class:U(O.isMember?"fas fa-heart":"fal fa-heart"),style:se(O.isMember?"color: #f91d65":"")},null,6)],8,un),e("button",{class:U(["icon-btn view-toggle",{invisible:!o(h)}]),onClick:a[1]||(a[1]=P=>f.$emit("toggle-display"))},[o(i)==="gallery"?(s(),n("i",pn)):(s(),n("i",mn))],2)]),e("div",hn,[e("div",{class:"logo-area",onClick:a[2]||(a[2]=P=>ue("/"))},[o(p).use_logo&&o(p).logo?(s(),n("img",{key:0,src:o(p).logo,style:se(`height: ${o(p).logo_height||40}px`),class:"logo-img"},null,12,fn)):(s(),n("h1",gn,S(o(p).name),1))])]),e("div",vn,[e("button",{class:"icon-btn",onClick:a[3]||(a[3]=P=>f.$emit("toggle-search"))},[...a[26]||(a[26]=[e("i",{class:"fal fa-search"},null,-1)])]),e("button",{class:"icon-btn cart-btn",onClick:a[4]||(a[4]=P=>f.$emit("show-cart"))},[a[27]||(a[27]=e("i",{class:"fal fa-shopping-bag"},null,-1)),o(u)>0?(s(),n("span",yn,S(o(u)),1)):C("",!0)])])]),e("nav",_n,[e("div",kn,[e("a",{class:U(["menu-item",{active:ne("/")}]),onClick:a[5]||(a[5]=P=>ue("/"))},"홈",2),e("a",{class:U(["menu-item",{active:ne("/shop/list")||ne("/shop/view")}]),onClick:a[6]||(a[6]=P=>ue("/shop/list"))},"전체상품",2),e("a",{class:U(["menu-item",{active:ne("/shop/review")}]),onClick:a[7]||(a[7]=P=>ue("/shop/review/list?all=true"))},"사진리뷰",2)]),e("div",{class:"user-menu-toggle"},[e("button",{class:"menu-btn",onClick:Y},[...a[28]||(a[28]=[e("i",{class:"fas fa-bars"},null,-1),e("span",null,"메뉴",-1)])])])])],64)):o(b)==="v2"?(s(),n("div",bn,[e("div",wn,[e("div",{class:"logo-area",onClick:a[8]||(a[8]=P=>ue("/"))},[o(p).use_logo&&o(p).logo?(s(),n("img",{key:0,src:o(p).logo,style:se(`height: ${o(p).logo_height||32}px`),class:"logo-img"},null,12,xn)):(s(),n("h1",Cn,S(o(p).name),1))])]),e("div",$n,[e("a",{class:U(["menu-item",{active:ne("/")}]),onClick:a[9]||(a[9]=P=>ue("/"))},"홈",2),e("a",{class:U(["menu-item",{active:ne("/shop/list")||ne("/shop/view")}]),onClick:a[10]||(a[10]=P=>ue("/shop/list"))},"상품",2),e("a",{class:U(["menu-item",{active:ne("/shop/review")}]),onClick:a[11]||(a[11]=P=>ue("/shop/review/list?all=true"))},"리뷰",2)]),e("div",Mn,[e("button",{class:"icon-btn",onClick:a[12]||(a[12]=P=>f.$emit("toggle-search"))},[...a[29]||(a[29]=[e("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M21 21l-5.197-5.197m0 0A7.5 7.5 0 105.196 5.196a7.5 7.5 0 0010.607 10.607z"})],-1)])]),e("button",{class:"icon-btn cart-btn",onClick:a[13]||(a[13]=P=>f.$emit("show-cart"))},[a[30]||(a[30]=e("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15.75 10.5V6a3.75 3.75 0 10-7.5 0v4.5m11.356-1.993l1.263 12c.07.665-.45 1.243-1.119 1.243H4.25a1.125 1.125 0 01-1.12-1.243l1.264-12A1.125 1.125 0 015.513 7.5h12.974c.576 0 1.059.435 1.119 1.007zM8.625 10.5a.375.375 0 11-.75 0 .375.375 0 01.75 0zm7.5 0a.375.375 0 11-.75 0 .375.375 0 01.75 0z"})],-1)),o(u)>0?(s(),n("span",Vn,S(o(u)),1)):C("",!0)]),e("button",{class:"icon-btn",onClick:Y},[...a[31]||(a[31]=[e("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3.75 6.75h16.5M3.75 12h16.5m-16.5 5.25h16.5"})],-1)])])])])):(s(),n("div",Sn,[e("div",In,[e("div",{class:"logo-area",onClick:a[14]||(a[14]=P=>ue("/"))},[o(p).use_logo&&o(p).logo?(s(),n("img",{key:0,src:o(p).logo,style:se(`he
1ight: ${o(p).logo_height||32}px`),class:"logo-img"},null,12,Nn)):(s(),n("h1",Tn,S(o(p).name),1))])]),e("div",Ln,[e("div",Pn,[e("a",{class:U(["pill-item",{active:ne("/")}]),onClick:a[15]||(a[15]=P=>ue("/"))},"홈",2),e("a",{class:U(["pill-item",{active:ne("/shop/list")||ne("/shop/view")}]),onClick:a[16]||(a[16]=P=>ue("/shop/list"))},"상품",2),e("a",{class:U(["pill-item",{active:ne("/shop/review")}]),onClick:a[17]||(a[17]=P=>ue("/shop/review/list?all=true"))},"리뷰",2)])]),e("div",Bn,[e("button",{class:"icon-btn",onClick:a[18]||(a[18]=P=>f.$emit("toggle-search"))},[...a[32]||(a[32]=[e("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M21 21l-5.197-5.197m0 0A7.5 7.5 0 105.196 5.196a7.5 7.5 0 0010.607 10.607z"})],-1)])]),e("button",{class:"icon-btn cart-btn",onClick:a[19]||(a[19]=P=>f.$emit("show-cart"))},[a[33]||(a[33]=e("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15.75 10.5V6a3.75 3.75 0 10-7.5 0v4.5m11.356-1.993l1.263 12c.07.665-.45 1.243-1.119 1.243H4.25a1.125 1.125 0 01-1.12-1.243l1.264-12A1.125 1.125 0 015.513 7.5h12.974c.576 0 1.059.435 1.119 1.007zM8.625 10.5a.375.375 0 11-.75 0 .375.375 0 01.75 0zm7.5 0a.375.375 0 11-.75 0 .375.375 0 01.75 0z"})],-1)),o(u)>0?(s(),n("span",jn,S(o(u)),1)):C("",!0)]),e("button",{class:"icon-btn menu-icon",onClick:Y},[...a[34]||(a[34]=[e("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3.75 6.75h16.5M3.75 12h16.5m-16.5 5.25h16.5"})],-1)])])])])),C("",!0),(s(),oe(Ce,{to:"body"},[R(be,{name:"fade"},{default:F(()=>[o(j)?(s(),n("div",{key:0,class:U(["user-menu-dropdown",`dropdown-${o(b)}`]),onClick:Je(pe,["self"])},[e("div",En,[o(m)?(s(),n("div",Rn,[e("div",Dn,[e("div",zn,[e("span",qn,S(o(z).name||"회원"),1),a[35]||(a[35]=J("님 ",-1))]),o(D)&&o(D).point?(s(),n("div",On,[a[36]||(a[36]=J(" 적립금 ",-1)),e("em",null,S(je(o(D).point))+"원",1)])):C("",!0)]),!o(v)&&o(p).point&&o(p).join_point>0?(s(),n("div",An,[a[37]||(a[37]=J(" 가입 감사 적립금 ",-1)),e("em",null,S(je(o(p).join_point))+"원",1)])):C("",!0),e("ul",Hn,[e("li",null,[e("a",{onClick:a[20]||(a[20]=P=>ye("/myshop/order_ready"))},[e("em",null,S(o(L).ready||0),1),a[38]||(a[38]=e("span",null,"결제 대기",-1))])]),e("li",null,[e("a",{onClick:a[21]||(a[21]=P=>ye("/myshop/order_delivery"))},[e("em",null,S(o(L).delivery||0),1),a[39]||(a[39]=e("span",null,"배송 확인",-1))])]),e("li",null,[e("a",{onClick:a[22]||(a[22]=P=>ye("/myshop/order_confirm"))},[e("em",null,S(o(L).confirm||0),1),a[40]||(a[40]=e("span",null,"구매 확정",-1))])]),e("li",null,[e("a",{onClick:a[23]||(a[23]=P=>ye("/myshop/order_refund"))},[e("em",null,S(o(L).refund||0),1),a[41]||(a[41]=e("span",null,"교환/환불",-1))])])]),e("div",Un,[o(v)?(s(),n(re,{key:1},[e("button",{class:"btn btn-outline",onClick:He},"적립금 정보"),e("button",{class:"btn btn-outline light",onClick:a[24]||(a[24]=P=>ye("/myshop"))},"마이 페이지")],64)):(s(),n(re,{key:0},[o(p).member_type==="APPROVE"||o(p).member_type==="APPROVE_CORP"?(s(),n("button",{key:0,class:"btn btn-outline",onClick:xe},[o(A)==="REQUEST"?(s(),n("span",Wn,"회원 가입 (요청중)")):o(A)==="REJECTED"?(s(),n("span",Kn,"(가입 거부됨) 가입 재요청")):(s(),n("span",Fn,"회원 가입"))])):(s(),n("button",{key:1,class:"btn btn-outline",onClick:xe},"회원 가입"))],64))])])):(s(),n("div",Jn,[e("div",Xn,[a[43]||(a[43]=e("div",{class:"user-name"},"환영합니다!",-1)),o(p).point&&o(p).join_point>0?(s(),n("div",Qn,[a[42]||(a[42]=J(" 가입 감사 적립금 ",-1)),e("em",null,S(je(o(p).join_point))+"원",1)])):C("",!0)]),e("div",{class:"action-buttons"},[e("button",{class:"btn btn-outline",onClick:Ae},"회원 가입"),e("button",{class:"btn btn-outline light",onClick:Ae},"로그인")])])),e("div",Gn,[a[45]||(a[45]=e("h3",null,"나의 메뉴",-1)),e("ul",null,[e("li",null,[e("a",{onClick:a[25]||
1(a[25]=P=>ye("/myshop"))},"마이 페이지")]),o(p).kakao_link?(s(),n("li",Yn,[e("a",{onClick:Pe},[...a[44]||(a[44]=[J(" 카카오톡 상담 채널 ",-1),e("img",{src:wo,class:"kakao-icon"},null,-1)])])])):C("",!0),e("li",null,[e("a",{onClick:Be},"공지사항")]),o(X)===o(p).uid?(s(),n("li",Zn,[e("a",{href:o(H),target:"_blank"},"판매자 페이지",8,el)])):C("",!0)])]),e("div",ol,[a[46]||(a[46]=e("h3",null,"최근 본 상품",-1)),!o(de)||o(de).length===0?(s(),n("div",tl," 최근 본 상품 정보가 없습니다. ")):(s(),n("div",sl,[(s(!0),n(re,null,Te(o(de),P=>(s(),n("div",{key:P.sid,class:"recent-item",onClick:Z=>Xe(P)},[e("div",{class:"recent-image",style:se(Qe(P))},null,4)],8,nl))),128))]))])])],2)):C("",!0)]),_:1})]))],2))}}),al=fe(ll,[["__scopeId","data-v-c0ff529b"]]),il={class:"root pc-layout"},rl={key:0,id:"common_script"},cl={key:1,id:"container",class:"container"},dl={class:"search-expand"},ul={class:"expiration-text"},pl={style:{"min-width":"300px","padding-top":"10px"}},ml=["innerHTML"],hl={class:"d-flex",style:{"padding-top":"30px"}},fl={key:2,class:"floating-btn"},gl=ce({__name:"PcLayout",setup(O){const V=$e(),c=we(),r=Fe(),$=qe(),{$eventBus:t}=Ge(),{goToLogin:b}=Oe(),i=d(!0),h=d(!1),u=d(0),g=d(!1),M=d({title:"",msg:""}),_=d([]);let j=0;const A=d(!1),B=d(!1),N=d(null),E=d(null),K=d(),D=d(),p=d(),z=d(),L=d(),m=d(),X=d(),de=d(),v=T(()=>c.info),y=T(()=>V.mscript),H=T(()=>V.login===1),I=T(()=>V.listing_type),{onInit:Y}=No(),pe=w=>{if(!w||!w.startsWith("#"))return 0;const k=w.replace("#",""),me=parseInt(k.substring(0,2),16)||0,ie=parseInt(k.substring(2,4),16)||0,ve=parseInt(k.substring(4,6),16)||0;return(me*299+ie*587+ve*114)/1e3},q=()=>{const w=c.custom_skin;let k=(w==null?void 0:w.mcolor)||"#10B981";const me=(w==null?void 0:w.mcolor2)||"#34D399",ie=(w==null?void 0:w.scolor)||"#F59E0B",ve=(w==null?void 0:w.btn_color)||"#10B981";pe(k)>200&&(k="#10B981"),document.body.style.setProperty("--primary-color",k),document.body.style.setProperty("--secondary-color",ie),document.body.style.setProperty("--mcolor",k),document.body.style.setProperty("--mcolor2",me),document.body.style.setProperty("--scolor",ie),document.body.style.setProperty("--btn-color",ve)};Ie(()=>c.custom_skin,q,{deep:!0}),Le(async()=>{q(),t==null||t.on("search",Ue),t==null||t.on("alert",Z),t==null||t.on("info",le),t==null||t.on("confirm",ee),t==null||t.on("showcart",W),t==null||t.on("loading",P),t==null||t.on("full-img",a),t==null||t.on("refresh_member_status",ge),window.addEventListener("scroll",f),A.value=!!v.value.kakao,await Y(),i.value=!0,ne(),ge(),localStorage.getItem("listing_type")==="text"?V.setListingType("text"):V.setListingType("gallery")}),to(()=>{t==null||t.off("search",Ue),t==null||t.off("alert",Z),t==null||t.off("info",le),t==null||t.off("confirm",ee),t==null||t.off("showcart",W),t==null||t.off("loading",P),t==null||t.off("full-img",a),t==null||t.off("refresh_member_status",ge),window.removeEventListener("scroll",f)});const ge=async()=>{if(V.login!==1){N.value=null;return}try{const w=await $fetch("/api/myshp/ismember",{params:{shopid:v.value.shopid}});w!=null&&w.id?(B.value=!0,xe()):(B.value=!1,N.value=null)}catch{B.value=!1,N.value=null}},xe=async()=>{try{const w=await $fetch("/api/myshp/get/member/point",{params:{shopid:v.value.shopid}});N.value=w;const k=await $fetch("/api/myshp/get/member/point/expiration",{params:{shopid:v.value.shopid}});k&&k.length>0?E.value=k[0]:E.value=null}catch{N.value=null,E.value=null}},Ae=()=>{$.push("/shop/member_point")},ye=()=>{H.value?t==null||t.emit("join_member"):b()},He=w=>(w==null?void 0:w.toLocaleString("ko-KR"))||"0",Pe=w=>{if(!w)return"";try{const k=new Date(w),me=k.getMonth()+1,ie=k.getDate();return`${me}/${ie}`}catch{return""}},Be=()=>{B.value?t==null||t.emit("cancel_member"):t==null||t.emit("join_member")},Xe=()=>{I.value==="text"?(localStorage.setItem("listing_type","gallery"),V.setListingType("gallery")):(localStorage.setItem("listing_type","text"),V.setListingType("text"))},ue=()=>{h.value=!h.value},ne=()=>{var ie,ve;const w=V.mainpage,k=w==null?void 0:w.pc;k&&k.length>0?r.path==="/"&&((ie=X.value)==null||ie.open()):(r.path==="/"||r.path==="/shop/list")&&((ve=X.value)==null||ve.open())},Qe=()=>{var w;(w=de.value)==null||w.opened()},je=()=>{h.value=!1},Ue=w=>{h.value=w},Me=()=>{window.scrollTo({top:0,behavior:"smooth"})},_e=()=>{v.value.kakao_link&&(location.href=v.value.kakao_link)},f=()=>{u.value=window.scrollY},a=w=>{var k;(k=m.value)==null||k.full(w)},P=w=>{},Z=w=>{const k=++j;_.value.push({id:k,msg:w}),setTimeout(()=>{const me=_.value.findIndex(ie=>ie.id===k);me!==-1&&_.value.splice(me,1)},3e3)},te=()=>{M.value.func&&M.value.func(),g.value=!1},ee=w=>{const[k,me,ie]=w;M.value={title:k,msg:me,func:ie},g.value=!0},le=w=>{console.log("Info:",w)},W=()=>{var w;(w=p.value)==null||w.showMenu()},ae=()=>{},he=()=>{},Ee=w=>{};return(w,k)=>{var Ke,Ze;const me=al,ie=yo,ve=_o,so=bo,uo=xo,Ye=Co,Re=$o,De=co,no=Mo,lo=Vo,We=So;return s(),n("div",il,[(Ze=(Ke=o(y))==null?void 0:Ke.pc)!=null&&Ze.common?(s(),n("div",rl,[(s(),oe(fo("script"),{innerHTML:o(y).pc.common},null,8,["innerHTML"]))])):C("",!0),o(i)?(s(),n("div",cl,[e("header",{class:U(["header",{scrolled:o(u)>10}]),id:"header"},[R(me,{ref_key:"menuRef",ref:D,"is-member":o(B),onToggleMember:Be,onToggleDisplay:Xe,onToggleSearch:ue,onShowCart:W},null,8,["is-member"]),R(ve,{active:o(h),duration:300,onOpenEnd:Qe},{default:F(()=>[e("div",dl,[R(ie,{ref_key:"searchBoxRef",ref:de,onClose:je},null,512)])]),_:1},8,["active"]),R(so,{ref_key:"noticeRef",ref:K,onLoad:ae},null,512)],2),R(uo,{ref_key:"cartRef",ref:p},null,512),e("main",{id:"content",ref_key:"contentRef",ref:z,class:"content"},[o(N)&&o(N).point>0?(s(),n("div",{key:0,class:"point-alert-bar",onClick:Ae},[k[6]||(k[6]=e("i",{class:"fas fa-coins"},null,-1)),e("span",null,[k[4]||(k[4]=J(" 적립금 ",-1)),e("strong",null,S(He(o(N).point))+"원",1),k[5]||(k[5]=J(" 보유중",-1)),o(E)?(s(),n(re,{key:0},[k[3]||(k[3]=J(" ",-1)),e("span",ul,"("+S(Pe(o(E).expiration))+" 소멸예정)",1)],64)):C("",!0)]),k[7
1]||(k[7]=e("i",{class:"fas fa-chevron-right"},null,-1))])):(!o(H)||!o(B))&&o(v).point&&o(v).join_point>0?(s(),n("div",{key:1,class:"point-alert-bar join-point",onClick:ye},[k[10]||(k[10]=e("i",{class:"fas fa-gift"},null,-1)),e("span",null,[k[8]||(k[8]=J("지금 가입하면 ",-1)),e("strong",null,S(He(o(v).join_point))+"원",1),k[9]||(k[9]=J(" 적립!",-1))]),k[11]||(k[11]=e("i",{class:"fas fa-chevron-right"},null,-1))])):C("",!0),Ne(w.$slots,"default",{},void 0,!0)],512),o(H)?(s(),oe(Ye,{key:0,ref_key:"connRef",ref:L,onMounted:he,onEvent:Ee},null,512)):C("",!0)])):C("",!0),R(Re),R(De,{modelValue:o(g),"onUpdate:modelValue":k[1]||(k[1]=Ve=>eo(g)?g.value=Ve:null),onCancel:k[2]||(k[2]=Ve=>g.value=!1)},{title:F(()=>[J(S(o(M).title),1)]),default:F(()=>[e("div",pl,[e("div",{class:"pa-4",style:{"font-size":"15px"},innerHTML:o(M).msg},null,8,ml)]),e("div",hl,[e("div",{class:"btn2 btn-black",onClick:te},"확인"),e("div",{class:"btn2 btn-outline",onClick:k[0]||(k[0]=Ve=>g.value=!1)},"취소")])]),_:1},8,["modelValue"]),R(no,{ref_key:"imgRef",ref:m},null,512),(s(),oe(Ce,{to:"body"},[R(io,{name:"toast",tag:"div",class:"toast-container"},{default:F(()=>[(s(!0),n(re,null,Te(o(_),Ve=>(s(),n("div",{key:Ve.id,class:"toast-item"},[k[12]||(k[12]=e("i",{class:"fas fa-exclamation-circle"},null,-1)),e("span",null,S(Ve.msg),1)]))),128))]),_:1})])),o(u)>200?(s(),n("div",fl,[o(A)?(s(),n("div",{key:0,class:"kakao-btn",onClick:_e},[...k[13]||(k[13]=[e("img",{src:Io},null,-1)])])):C("",!0),e("div",{class:"scroll-top-btn",onClick:Me},[...k[14]||(k[14]=[e("i",{class:"fas fa-arrow-up"},null,-1)])])])):C("",!0),R(lo),R(We,{ref_key:"popRef",ref:X},null,512)])}}}),vl=fe(gl,[["__scopeId","data-v-b40d63e7"]]),xl=ce({__name:"default",setup(O){const V=$e(),c=we(),r=T(()=>V.mobile),$=T(()=>{const h=[];return c.skin_type==="v4"&&h.push("skin-v4"),c.header_type==="v4"&&h.push("header-v4"),h}),t=T(()=>$.value.join(" "));Fo({bodyAttrs:{class:t}});const b=h=>{if(!h||!h.startsWith("#"))return 0;const u=h.replace("#",""),g=parseInt(u.substring(0,2),16)||0,M=parseInt(u.substring(2,4),16)||0,_=parseInt(u.substring(4,6),16)||0;return(g*299+M*587+_*114)/1e3},i=T(()=>{const h=c.custom_skin;let u=(h==null?void 0:h.mcolor)||"#10B981";const g=(h==null?void 0:h.mcolor2)||"#34D399",M=(h==null?void 0:h.scolor)||"#F59E0B",_=(h==null?void 0:h.btn_color)||"#10B981";return b(u)>200&&(u=(h==null?void 0:h.theme_color)||"#10B981"),{"--primary-color":u,"--secondary-color":M,"--theme-color":u,"--mcolor":u,"--mcolor2":g,"--scolor":M,"--btn-color":_}});
1return(h,u)=>(s(),n("div",{style:se(o(i)),class:U(o($))},[o(r)?(s(),oe(rn,{key:0},{default:F(()=>[Ne(h.$slots,"default")]),_:3})):(s(),oe(vl,{key:1},{default:F(()=>[Ne(h.$slots,"default")]),_:3}))],6))}});export{xl 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.