1import{_ as k,r as b,o as v,c as r,b as a,h as N,F as y,f as T,i as p,u as P,j as S,g as c,t as _}from"./index-GRB8Jcml.js";import{S as B}from"./ContentsService-DKa2qyOq.js";import{T as C}from"./top-DaACZfYm.js";const G={name:"GiftBrowse",components:{TOP:C},setup(){const f=P(),n=b([]),l=b(!0),e=t=>{var s,i,d;return((i=(s=t.tags)==null?void 0:s[0])==null?void 0:i.product_name)||((d=t.products)==null?void 0:d.title)||t.product_name||""},u=t=>{var s;return((s=t.products)==null?void 0:s.product_photo)||t.photo},g=t=>{var d,h;const s=(h=(d=t.tags)==null?void 0:d[0])==null?void 0:h.price;if(!s)return"";const i=Number(String(s).replace(/[^0-9]/g,""));return i?i.toLocaleString("ko-KR")+"ì":""},m=t=>Number(t||0).toLocaleString("ko-KR"),o=t=>{f.push("/?gid="+t.id)};return v(()=>{B.giftList().then(t=>{n.value=t.data||[]}).catch(t=>console.log(t)).finally(()=>{l.value=!1})}),{gifts:n,loading:l,cardTitle:e,giftImage:u,cardPrice:g,formatNum:m,openGift:o}}},L={class:"header gift-fit-header",id:"main_header"},w={class:"gb_page"},x={class:"gb_grid"},I=["onClick"],O={class:"gb_thumb"},R=["src","alt"],V={key:0,class:"gb_dday"},D={class:"gb_name"},F={key:0,class:"gb_price"},K={class:"gb_apply"},j={key:0,class:"gb_empty"};function E(f,n,l,e,u,g){const m=S("TOP");return c(),r(y,null,[a("div",L,[N(m)]),a("div",w,[n[0]||(n[0]=a("h1",{class:"gb_title"},"ì²´íë¨ ëë¬ë³´ê¸°",-1)),a("div",x,[(c(!0),r(y,null,T(e.gifts,o=>(c(),r("button",{type:"button",class:"gb_card",key:o.id,onClick:t=>e.openGift(o)},[a("div",O,[a("img",{src:e.giftImage(o),alt:e.cardTitle(o)},null,8,R),o.dday?(c(),r("span",V,"D-"+_(o.dday),1)):p("",!0)]),a("p",D,_(e.cardTitle(o)),1),e.cardPrice(o)?(c(),r("p",F,_(e.cardPrice(o)),1)):p("",!0),a("p",K,_(e.formatNum(o.gift_apply_count||0))+"ëª
ì ì²",1)],8,I))),128))]),!e.loading&&e.gifts.length===0?(c(),r("p",j," ì§í ì¤ì¸ ì²´íë¨ì´ ììµëë¤. ")):p("",!0)])],64)}const A=k(G,[["render",E],["__scopeId","data-v-5104b1fd"]]);export{A 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.