PageSourceSearch

https://www.sssd.co.kr/m/assets/ClassCard-DlvuA6TN.js

js sssd.co.kr collected 2026-09-24 09:52:36 UTC 5,941 bytes, 1 lines download raw bytes

1import{t as e}from"./useTranslation-DE3ry3nA.js";import{n as t,t as n}from"./jsx-runtime-Buw2Cz_g.js";import{t as r}from"./LazyImage-Bt_uBNSy.js";import{t as i}from"./BookmarkHeart--ggAgIp_.js";import{t as a}from"./QuickBadge-BOcp-tD3.js";import{r as o}from"./price-CXby_89N.js";import{r as s}from"./classLabel-DjQ4fc7H.js";var c=n();function l({item:n,variant:a=`vertical`,hideCoupon:l=!1,hideSatisfaction:p=!1,hidePrice:m=!1,hideBookmark:_=!1,onCardClick:v,bookmarkAnalytics:y}){let{t:b}=e(),x=n.lowestPrice??n.price??0,S=n.priceInfo||o(x),C=f(n),w=n.basePrice>0&&x>0&&x<n.basePrice?Math.floor((n.basePrice-x)/n.basePrice*100):0,T=n.saleLabel||(w>0?`${w}%`:``),E=d(n),D=(0,c.jsx)(t,{to:`/class/detail/${n.idx}`,onClick:v,"aria-label":n.title,className:`absolute inset-0 z-10`});return a===`horizontal`?(0,c.jsxs)(`div`,{className:`relative isolate flex cursor-pointer pt-[0px] pb-[0px]`,children:[D,(0,c.jsxs)(`div`,{className:`relative h-[75px] w-[116px] flex-shrink-0 self-start`,children:[(0,c.jsx)(r,{src:n.thumbUrl,alt:n.title,className:`h-full w-full rounded-[5px]`}),E&&(0,c.jsx)(`div`,{className:`absolute inset-0 flex items-center justify-center rounded-[4px] bg-[#555555]/50`,children:(0,c.jsx)(`span`,{className:`text-[13px] font-bold leading-[16px] text-white`,children:b(E)})}),!E&&(0,c.jsx)(h,{item:n}),!_&&(0,c.jsx)(i,{kind:`class`,idx:n.idx,initialBookmarked:u(n.bookMarked),analytics:y})]}),(0,c.jsxs)(`div`,{className:`flex-1 min-w-0 flex flex-col gap-[3px] pl-[10px] pt-[0px]`,children:[(0,c.jsx)(`p`,{className:`text-[10px] text-[#A8A8A8] truncate tracking-[-0.3px]`,children:s(n)}),(0,c.jsx)(`p`,{className:`text-[12px] text-[#252525] line-clamp-2 leading-normal tracking-[-0.08px]`,children:n.title}),C&&(0,c.jsx)(`p`,{className:`text-[11px] text-[#6A82EC] tracking-[-0.08px] font-bold`,children:b(C.key,C.params)}),!m&&(0,c.jsxs)(`div`,{className:`flex items-center gap-[4px]`,children:[T&&(0,c.jsx)(`span`,{className:`text-[14px] font-bold text-[#FF5862] tracking-[-0.08px]`,children:T}),(0,c.jsx)(`span`,{className:`text-[14px] font-bold text-[#252525] tracking-[-0.08px]`,children:S})]}),!l&&(0,c.jsx)(g,{item:n})]})]}):(0,c.jsxs)(`div`,{className:`relative isolate cursor-pointer`,children:[D,(0,c.jsxs)(`div`,{className:`relative`,children:[(0,c.jsx)(r,{src:n.thumbUrl,alt:n.title,className:`w-full rounded-[5px]`,aspectRatio:`162/150`}),E&&(0,c.jsx)(`div`,{className:`absolute inset-0 flex items-center justify-center rounded-[5px] bg-[#555555]/50`,children:(0,c.jsx)(`span`,{className:`text-[13px] font-bold text-white`,children:b(E)})}),!E&&(0,c.jsx)(h,{item:n}),!_&&(0,c.jsx)(i,{kind:`class`,idx:n.idx,initialBookmarked:u(n.bookMarked),analytics:y})]}),(0,c.jsxs)(`div`,{className:`flex flex-col mt-[7px] gap-[0px]`,children:[(0,c.jsxs)(`div`,{className:`flex flex-col gap-[0px]`,children:[(0,c.jsx)(`p`,{className:`text-[#A8A8A8] truncate tracking-[-0.08px] text-[11px]`,children:s(n)}),(0,c.jsx)(`p`,{className:`text-[#252525] line-clamp-2 tracking-[-0.08px] text-[12px]`,children:n.title}),C&&!p&&(0,c.jsxs)(`div`,{className:`flex h-[18px] items-center gap-[4px]`,children:[u(n.isPremiumAuthor)&&(0,c.jsx)(`img`,{src:`/icons/class/[email protected]`,alt:`TOP30`,className:`h-[18px] w-[18px] shrink-0 object-contain`}),(0,c.jsx)(`span`,{className:`truncate font-bold text-[#6A82EC] tracking-[-0.08px] text-[12px]`,children:b(C.key,C.params)})]})]}),(0,c.jsxs)(`div`,{className:`flex flex-col gap-[0px]`,children:[!m&&(0,c.jsxs)(`div`,{className:`flex items-center gap-[2px]`,children:[T&&(0,c.jsx)(`span`,{className:`text-[14px] font-bold text-[#FF5862] tracking-[-0.08px]`,children:T}),(0,c.jsx)(`span`,{className:`text-[14px] font-bold text-[#252525] tracking-[-0.08px]`,children:S})]}),!l&&(0,c.jsx)(g,{item:n})]})]})]})}function u(e){return e===!0||e===`Y`||e===`y`||e===`true`}function d(e){return u(e.isSoldOut)?`SALES_COMPLETE`:u(e.isWillOpen)?`OPENING_SOON`:e.classState!=null&&String(e.classState)!==`0`?`SALES_COMPLETE`:null}function f(e){let t=Number(e.satisfaction);if(!Number.isFinite(t))return null;let n=Math.round(t),r=Number(e.replyCount);return Number.isFinite(r)&&r>0?{key:`card.satisfactionCount`,params:{rate:n,count:r>=1e3?`999+`:String(r)}}:{key:`card.satisfaction`,params:{rate:n}}}function p(e,t){return e?e.startsWith(`#`)?e:`#${e}`:t}function m(e){let t=e.labelInfos;return t?.length?t.find(e=>!!e?.title?.trim())??null:null}function h({item:t}){let{t:n}=e(),r=`absolute top-[6px] left-[6px] text-white text-[10px] font-bold px-[6px] py-[4px] rounded-[2px] leading-none tracking-[-0.08px]`;if(t.hitCount!=null&&t.hitCount>0)return(0,c.jsx)(`span`,{className:`${r} bg-[#252525]`,children:n(`card.viewing`,{count:t.hitCount>=999?`999+`:t.hitCount})});if(u(t.isOnlyssdc))return(0,c.jsx)(`span`,{className:r,style:{background:`linear-gradient(90deg, #ff5862 18.75%, #968ae4 85.99%, #8
1094ff 100%)`},children:n(`ONLY_SOMSSIDANG`)});if(u(t.isQuickReserve))return(0,c.jsx)(a,{className:`absolute top-[6px] left-[6px]`});let i=m(t);return i?(0,c.jsx)(`span`,{className:r,style:{color:p(i.textColorCode||i.fontColor,`#ffffff`),backgroundColor:p(i.bgColorCode||i.colorCode,`#8094FF`)},children:i.title}):t.isNewClass?(0,c.jsx)(`span`,{className:`${r} bg-[#8094FF]`,children:n(`card.new`)}):null}function g({item:e}){let t=e.couponLabelList;return!t||t.length===0?null:(0,c.jsx)(`div`,{className:`flex gap-[4px] flex-wrap`,children:t.map((e,t)=>{if(typeof e==`string`)return e?(0,c.jsx)(`span`,{className:`text-[10px] font-bold text-[#FF5862] bg-[#FFF0F1] px-[6px] py-[4px] rounded-[2px] leading-none tracking-[-0.08px]`,children:e},t):null;let n=e;return n.title?(0,c.jsx)(`span`,{className:`text-[10px] font-bold px-[6px] py-[4px] rounded-[2px] leading-none tracking-[-0.08px] bg-[color:var(--color-primary-light)] text-[color:var(--color-primary)]`,style:{color:n.textColorCode||n.fontColor||`#FF5862`,backgroundColor:n.bgColorCode||`#FFF0F1`},children:n.title},t):null})})}export{l as t};

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.