1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="f92274e6-8250-4651-a961-dca60b7bd44f",e._sentryDebugIdIdentifier="sentry-dbid-f92274e6-8250-4651-a961-dca60b7bd44f")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[95406],{46414:(e,t,s)=>{s.d(t,{createClient:()=>l});var a=s(99535),n=s(4030),r=s(95389);let i="__ssnim_supabase_client__";function l(){if(!function(){let e="https://qaclobradpzrapiofhag.supabase.co",t="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6InFhY2xvYnJhZHB6cmFwaW9maGFnIiwicm9sZSI6ImFub24iLCJpYXQiOjE3NjA3OTQ1MzMsImV4cCI6MjA3NjM3MDUzM30.ygAEaIYKu1KU4nb7VowJsgowfCBTXmjabu-ZWngrY4k";return!!(e&&t&&0!==e.length&&0!==t.length&&e.startsWith("https://")&&e.includes("supabase"))}()){if(function(){{let e=window.location.hostname;return e.includes("vusercontent.net")||e.includes("v0.dev")}}()){let e={data:null,error:null},t={data:{user:null,session:null},error:null};return{auth:{getUser:async()=>t,getSession:async()=>t,signInWithPassword:async()=>({...t,error:{message:"Preview mode - auth disabled"}}),signInWithOAuth:async()=>({data:{url:null,provider:null},error:{message:"Preview mode - auth disabled"}}),signUp:async()=>({...t,error:{message:"Preview mode - auth disabled"}}),signOut:async()=>e,onAuthStateChange:()=>({data:{subscription:{unsubscribe:()=>{}}}}),resetPasswordForEmail:async()=>e,updateUser:async()=>t},from:()=>({select:()=>({data:[],error:null,single:async()=>e,maybeSingle:async()=>e,eq:()=>({single:async()=>e,maybeSingle:async()=>e,data:[],error:null})}),insert:async()=>e,update:async()=>e,delete:async()=>e,upsert:async()=>e}),rpc:async()=>e}}throw Error("Missing Supabase environment variables. Please add NEXT_PUBLIC_SUPABASE_URL and NEXT_PUBLIC_SUPABASE_ANON_KEY to your environment variables.")}{let e="undefined"==typeof globalThis?null:globalThis[i];if(e)return e;let t=function(){let e="https://qaclobradpzrapiofhag.supabase.co",t="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6InFhY2xvYnJhZHB6cmFwaW9maGFnIiwicm9sZSI6ImFub24iLCJpYXQiOjE3NjA3OTQ1MzMsImV4cCI6MjA3NjM3MDUzM30.ygAEaIYKu1KU4nb7VowJsgowfCBTXmjabu-ZWngrY4k";if((0,r.JK)()||"m.seonsaengnim.com"===window.location.hostname)return(0,n.UU)(e,t,{auth:{storage:window.localStorage,persistSession:!0,autoRefreshToken:!0,detectSessionInUrl:!1}});let s=window.location.hostname,i="seonsaengnim.com"===s||s.endsWith(".seonsaengnim.com"),l="https:"===window.location.protocol,o=i&&l?"; domain=.seonsaengnim.com":"";return(0,a.createBrowserClient)(e,t,{cookies:{get(e){let t=document.cookie.split("; ").find(t=>t.startsWith("".concat(e,"=")));return null==t?void 0:t.split("=")[1]},set(e,t,s){let a=["".concat(e,"=").concat(t),"path=/"];o&&a.push(o.replace(/^; /,"")),(null==s?void 0:s.maxAge)&&a.push("max-age=".concat(s.maxAge)),a.push("samesite=".concat((null==s?void 0:s.sameSite)||"lax")),l&&a.push("secure"),document.cookie=a.join("; ")},remove(e){let t=["".concat(e,"="),"path=/","max-age=0"];o&&t.push(o.replace(/^; /,"")),document.cookie=t.join("; ")}}})}();return"undefined"!=typeof globalThis&&(globalThis[i]=t),t}}},47924:(e,t,s)=>{s.d(t,{A:()=>a});let a=(0,s(19946).A)("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]])},92657:(e,t,s)=>{s.d(t,{A:()=>a});let a=(0,s(19946).A)("Eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]])},95389:(e,t,s)=>{s.d(t,{IT:()=>i,JK:()=>n,Nc:()=>r,PQ:()=>c,cQ:()=>l,fY:()=>o});var a=s(6267);function n(){return a.Capacitor.isNativePlatform()}function r(){let e=a.Capacitor.getPlatform();return"ios"===e||"android"===e?e:"web"}function i(e){if(e instanceof Error)return[e.name,e.message,e.code,e.errorMessage].filter(Boolean).join(" | ");if(e&&"object"==typeof e){let t=[e.message,e.errorMessage,e.code,e.error].filter(e=>"string"==typeof e&&e.length>0);if(t.length)return t.join(" | ");try{return JSON.stringify(e)}catch(e){}}return String(e)}function l(e){return e?"https://www.seonsaengnim.com/en/legal/terms":"https://www.seonsaengnim.com/legal/terms"}function o(e){return e?"https://www.seonsaengnim.com/en/legal/privacy":"https://www.seonsaengnim.com/legal/privacy"}async function c(e){let t=e.startsWith("http://")||e.startsWith("https://")?e:"https://www.seonsaengnim.com".concat(e.startsWith("/")?e:"/".concat(e));if(n())try{let{Browser:e}=await s.e(63606).then(s.bind(s,63606));await e.open({url:t});return}catch(e){console.error("[native] Browser.open failed",i(e))}window.open(t,"_blank","noopener,noreferrer")||window.location.assign(t)}},95406:(e,t,s)=>{s.r(t),s.d(t,{default:()=>_});var a=s(95155),n=s(12115),r=s(6874),i=s.n(r),l=s(66766),o=s(58134),c=s(59890),d=s(59775),u=s(46414),m=s(26778),h=s(79697),x=s(42137),p=s(14186),g=s(92657),f=s(92138),b=s(5040),w=s(47924),v=s(5599);let y={grammar:"ã±ã´ã·",vocabulary:"ê°ëë¤",culture:"íêµ",kpop:"âªâ«",tips:"â¦",topik:"TOPIK",hangul:"ã
ã±"},j={hidden:{opacity:0,y:20},visible:{opacity:1,y:0,transition:{duration:.5,ease:"easeOut"}}};function N(e){let{post:t,locale:s,t:n,featured:r=!1}=e,o="en"===s?t.title_en:t.title_fr,d="en"===s?t.excerpt_en:t.excerpt_fr,u=n.categories[t.category]||t.category;return(0,a.jsx)(i(),{href:(0,c.UG)(s,t),className:"group block cursor-pointer",children:(0,a.jsxs)("article",{className:"bg-white/80 backdrop-blur-sm rounded-2xl border border-border/60 overflow-hidden shadow-sm transition-all duration-300 hover:shadow-[0_18px_40px_-24px_rgba(33,61,43,0.45)] hover:-translate-y-0.5 ".concat(r?"md:grid md:grid-cols-2":""),children:[(0,a.jsx)("div",{className:"relative overflow-hidden ".concat(r?"h-64 md:h-full min-h-[240px]":"h-48"),children:t.cover_image?(0,a.jsx)(l.default,{src:t.cover_image,alt:o,fill:!0,className:"object-cover transition-transform duration-500 group-hover:scale-105",sizes:r?"(max-width: 768px) 100vw, 50vw":"(max-width: 768px) 100vw, 33vw"}):(0,a.jsx)("div",{className:"absolute inset-0 homepage-dark-surface flex items-center justify-center",children:(0,a.jsx)("span",{className:"font-bold text-white/20 select-none ".concat(r?"text-7xl md:text-8xl":"text-6xl"),children:y[t.category]||"ê°"})})}),(0,a.jsxs)("div",{className:"p-6 ".concat(r?"flex flex-col justify-center":""),children:[(0,a.jsxs)("div",{className:"flex items-center gap-3 mb-3",children:[(0,a.jsx)("span",{className:"inline-flex items-center text-[11px] font-bold uppercase tracking-widest px-2.5 py-1 rounded-full bg-accent/10 text-accent",children:u}),(0,a.jsx)("span",{className:"text-xs text-muted-foreground",children:new Date(t.published_at).toLocaleDateString("fr"===s?"fr-FR":"en-US",{day:"numeric",month:"long",year:"numeric"})})]}),(0,a.jsx)("h2",{className:"font-bold tracking-tight text-foreground group-hover:text-accent transition-colors mb-2 ".concat(r?"text-2xl md:text-3xl":"text-lg"),children:o}),(0,a.jsx)("p",{className:"text-muted-foreground leading-relaxed mb-4 ".concat(r?"text-base":"text-sm line-clamp-2"),children:d}),(0,a.jsxs)("div",{className:"flex items-center justify-between",children:[(0,a.jsxs)("div",{className:"flex items-center gap-4 text-xs text-muted-foreground",children:[(0,a.jsxs)("span",{className:"flex items-center gap-1",children:[(0,a.jsx)(p.A,{className:"w-3.5 h-3.5"}),t.reading_time_minutes," ",n.listing.minRead]}),t.views>0&&(0,a.jsxs)("span",{className:"flex items-center gap-1",children:[(0,a.jsx)(g.A,{className:"w-3.5 h-3.5"}
1),t.views.toLocaleString()," ",n.listing.views]})]}),(0,a.jsxs)("span",{className:"text-sm font-medium text-accent flex items-center gap-1 opacity-0 group-hover:opacity-100 transition-opacity",children:[n.listing.readMore,(0,a.jsx)(f.A,{className:"w-3.5 h-3.5"})]})]})]})]})})}function _(){let{locale:e}=(0,o.DH)(),t=d.h[e],[s,r]=(0,n.useState)([]),[i,l]=(0,n.useState)(!0),[c,p]=(0,n.useState)(""),[g,f]=(0,n.useState)("all");(0,n.useEffect)(()=>{!async function(){let e=(0,u.createClient)(),{data:t}=await e.from("blog_posts").select("id, slug, title_fr, title_en, excerpt_fr, excerpt_en, cover_image, category, tags, author_name, author_avatar, reading_time_minutes, published_at, views").eq("is_published",!0).order("published_at",{ascending:!1});t&&r(t),l(!1)}()},[]);let y=(0,n.useMemo)(()=>{let t=s;if("all"!==g&&(t=t.filter(e=>e.category===g)),c.trim()){let s=c.toLowerCase();t=t.filter(t=>{let a="en"===e?t.title_en:t.title_fr,n="en"===e?t.excerpt_en:t.excerpt_fr;return a.toLowerCase().includes(s)||n.toLowerCase().includes(s)||t.tags.some(e=>e.toLowerCase().includes(s))})}return t},[s,g,c,e]),_=y[0],I=y.slice(1),[k,S]="en"===e?["The Korean","blog"]:["Le blog","cor\xe9en"];return(0,a.jsxs)("div",{className:x.MARKETING_PAGE_CLASS,children:[(0,a.jsx)(m.default,{}),(0,a.jsx)(x.b,{}),(0,a.jsx)("section",{className:"relative z-10 pt-28 pb-12 px-6",children:(0,a.jsx)("div",{className:"max-w-4xl mx-auto text-center",children:(0,a.jsxs)(v.P.div,{initial:"hidden",animate:"visible",variants:j,children:[(0,a.jsxs)("div",{className:"inline-flex items-center gap-2 px-3 py-1 rounded-full bg-accent/10 text-accent text-[11px] font-bold uppercase tracking-widest mb-6",children:[(0,a.jsx)(b.A,{className:"w-3.5 h-3.5"}),t.nav.blog]}),(0,a.jsxs)("h1",{className:"text-4xl md:text-6xl font-bold tracking-tighter text-foreground mb-4 leading-[1.15]",children:[k," ",(0,a.jsx)("span",{className:"highlight-word",children:S})]}),(0,a.jsx)("p",{className:"text-lg md:text-xl text-muted-foreground max-w-2xl mx-auto",children:t.hero.subtitle})]})})}),(0,a.jsx)("section",{className:"relative z-10 px-6 pb-8",children:(0,a.jsxs)("div",{className:"max-w-4xl mx-auto",children:[(0,a.jsxs)("div",{className:"relative mb-6",children:[(0,a.jsx)(w.A,{className:"absolute left-4 top-1/2 -translate-y-1/2 w-4.5 h-4.5 text-muted-foreground"}),(0,a.jsx)("input",{type:"text",value:c,onChange:e=>p(e.target.value),placeholder:t.listing.searchPlaceholder,className:"w-full pl-11 pr-4 py-3.5 rounded-2xl bg-white/80 backdrop-blur-sm border border-border/60 text-sm text-foreground placeholder:text-muted-foreground shadow-sm focus:outline-none focus:ring-2 focus:ring-accent/20 focus:border-accent/30 transition-all"})]}),(0,a.jsx)("div",{className:"flex flex-wrap gap-2",children:["all","grammar","vocabulary","culture","kpop","tips","topik","hangul"].map(e=>{let s=t.categories[e],n=g===e;return(0,a.jsx)("button",{onClick:()=>f(e),className:"cursor-pointer px-4 py-2 rounded-full text-sm font-medium transition-colors duration-200 ".concat(n?"bg-accent text-white shadow-sm":"bg-white/80 border border-border/60 text-muted-foreground hover:border-accent/30 hover:text-foreground"),children:s},e)})})]})}),(0,a.jsx)("section",{className:"relative z-10 px-6 pb-20",children:(0,a.jsx)("div",{className:"max-w-4xl mx-auto",children:i?(0,a.jsx)("div",{className:"space-y-6",children:[1,2,3].map(e=>(0,a.jsx)("div",{className:"bg-white/80 rounded-2xl border border-border/60 h-64 animate-pulse"},e))}):0===y.length?(0,a.jsxs)("div",{className:"text-center py-20",children:[(0,a.jsx)(b.A,{className:"w-10 h-10 mx-auto mb-4 text-accent/40"}),(0,a.jsx)("h3",{className:"text-lg font-semibold text-foreground mb-2",children:t.listing.noResults}),(0,a.jsx)("p",{className:"text-sm text-muted-foreground",children:t.listing.noResultsDesc})]}):(0,a.jsxs)(v.P.div,{initial:"hidden",animate:"visible",variants:{hidden:{opacity:0},visible:{opacity:1,transition:{staggerChildren:.1}}},children:[_&&(0,a.jsx)(v.P.div,{variants:j,className:"mb-8",children:(0,a.jsx)(N,{post:_,locale:e,t:t,featured:!0})}),I.length>0&&(0,a.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:I.map(s=>(0,a.jsx)(v.P.div,{variants:j,children:(0,a.jsx)(N,{post:s,locale:e,t:t})},s.id))})]})})}),(0,a.jsx)(h.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.