PageSourceSearch

https://www.studya.ai/_nuxt/Dfyu39TE.js

js studya.ai collected 2026-10-05 12:42:41 UTC 7,650 bytes, 1 lines download raw bytes

1import e from"./C8U0btqv.js";import{aK as t,bK as r,cP as l,cQ as a,a_ as s,be as o,aW as n,bL as i,aS as u,b3 as d,aZ as c,aO as p,a$ as m,aX as f,bm as g,bb as b,aM as h,bo as v,b9 as y,aP as x,b7 as w,b8 as k,aJ as _,bq as $,aY as j}from"./CL-6WCz_.js";import{_ as T}from"./E1YhPXh_.js";import{_ as M}from"./xnA7c1Zc.js";import{u as I}from"./DFpQAv9N.js";import{_ as S}from"./BCo6x5W8.js";import"./BAO1_uDO.js";import"./lGe4XDVY.js";const L=t({__name:"GuideMenu",async setup(e){let t,c;const{data:p,error:m}=([t,c]=r(()=>i("guide-nav",()=>$fetch("/_front/collection/guide/list"))),t=await t,c(),t);m.value&&l().warn(a("[guide] nav error:",m.value));const f=d(()=>[{label:"사용자 가이드",icon:"hugeicons:book-open-02",items:(p.value??[]).filter(e=>!!e.frontmatter.title).map(e=>({label:e.frontmatter.title,route:{path:e.path}}))}]);return(e,t)=>(u(),s("div",null,[o(e.$slots,"default",{items:n(f)})]))}}),H=t({__name:"MsgBox",props:{type:{type:String,default:"info"},icon:{type:String,default:void 0}},setup(t){const r=t,l={info:"info bg-blue-50 border-blue-200 text-blue-700",success:"success bg-green-50 border-green-200 text-green-700",warning:"warning bg-amber-50 border-amber-200 text-yellow-700",error:"error bg-red-50 border-red-200 text-red-700",secondary:"secondary bg-slate-50 border-slate-200 text-slate-700",contrast:"contrast bg-slate-900 border-slate-900 text-slate-50"},a={info:"lucide:info",success:"lucide:circle-check",warning:"lucide:triangle-alert",error:"lucide:circle-x",secondary:"lucide:info",contrast:"lucide:info"},i=d(()=>""===r.icon?"":r.icon||a[r.type]);return(r,a)=>{const d=e;return u(),s("div",{class:c(["relative msg-box w-full p-3 rounded-md border",l[t.type]])},[n(i)?(u(),p(d,{key:0,name:n(i),class:"absolute top-[1em] left-3"},null,8,["name"])):m("",!0),f("div",{class:c(["content",[n(i)?"indent":""]])},[o(r.$slots,"default")],2)],2)}}}),Y={class:"relative w-full aspect-video overflow-hidden rounded-lg"},A=["src","title"],z={key:1,class:"text-sm text-gray-500"},B=t({__name:"YouTube",props:{url:{default:""},id:{default:""},start:{default:0},autoplay:{type:Boolean,default:!1},title:{default:"YouTube video"}},setup(e){const t=e;const r=d(()=>t.id||function(e){if(!e)return"";if(/^[\w-]{11}$/.test(e))return e;const t=e.match(/[?&]v=([\w-]{11})/)??e.match(/youtu\.be\/([\w-]{11})/)??e.match(/shorts\/([\w-]{11})/)??e.match(/embed\/([\w-]{11})/);return t?.[1]??""}(t.url)),l=d(()=>{const e=new URLSearchParams({rel:"0",modestbranding:"1",playsinline:"1",start:String(t.start||0),autoplay:t.autoplay?"1":"0"});return`https://www.youtube-nocookie.com/embed/${r.value}?${e.toString()}`});return(t,a)=>(u(),s("div",Y,[n(r)?(u(),s("iframe",{key:0,src:n(l),title:e.title,loading:"lazy",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",allowfullscreen:"",referrerpolicy:"strict-origin-when-cross-origin",class:"absolute inset-0 h-full w-full border-0"},null,8,A)):(u(),s("div",z," 잘못된 YouTube 링크/ID 입니다. "))]))}}),D={class:"@container relative flex-1 h-full"},K={class:"safe-page-scroll h-full w-full static @4xl:flex @4xl:flex-row sm:px-4 gap-4 overflow-y-auto"},P={class:"flex-1 sm:px-2"},R={class:"prose prose-slate prose-table:rounded-md prose-table:border prose-th:bg-surface-100 prose-th:font-sans prose-th:p-2 prose-td:p-2 prose-base prose-a:underline prose-a:underline-offset-4 mx-auto py-10 md:py-20 px-4 md:px-0"},C=["innerHTML"],O=["innerHTML"],U={class:"prose-a:no-underline grid grid-cols-1 md:grid-cols-2 gap-8 mt-10"},W={class:"rounded-full bg-surface-100 w-8 h-8 flex items-center justify-center mb-2 border border-surface-200 group-hover:bg-brand-pale group-hover:border-brand"},q={class:"text-sm text-muted-color !no-underline"},G={key:1,class:"hidden md:block"},J={class:"rounded-full bg-surface-100 w-8 h-8 flex items-center justify-center mb-2 border border-surface-200 group-hover:bg-brand-pale group-hover:border-brand"},Q={class:"text-sm text-muted-color !no-underline"},X={key:3,class:"hidden md:block"},Z=S(t({__name:"[...slug]",async setup(t){let o,c;const S=/^::YouTube\{url=["']([^"']+)["']\}\s*$/,Y=/^::MsgBox(?:\{[^}]*\})?\s*$/,A=/^::\s*$/,z=g(),Z=b("pageTitle",()=>""),{renderMarkdown:E}=I(),F=d(()=>{const e=z.params.slug;return(Array.isArray(e)?e[0]:e)||"index"}),{data:N,error:V}=([o,c]=r(()=>i(()=>`guide-doc-${F.value}`,async()=>{const e="index"===F.value?"/_front/collection/guide":`/_front/collection/guide/${encodeURIComponent(F.value)}`;return $fetch(e)},"$S9I40Kv3u-")),o=await o,c(),o);V.value&&l().error(a("[guide] doc load error:",V.value));const ee=d(()=>function(e,t){const r=[],l=e.split(/\r?\n/),a=[],s=()=>{const e=a.join("\n").trim();
1a.length=0,e&&r.push({type:"markdown",html:t(e)})};for(let o=0;o<l.length;o+=1){const e=l[o]??"",n=e.trim(),i=n.match(S);if(i){for(s(),r.push({type:"youtube",url:i[1]??""});o+1<l.length&&!A.test(l[o+1]?.trim()??"");)o+=1;o+1<l.length&&(o+=1)}else{if(Y.test(n)){s();const e=[];for(;o+1<l.length&&!A.test(l[o+1]?.trim()??"");)o+=1,e.push(l[o]??"");o+1<l.length&&(o+=1),r.push({type:"msgbox",html:t(e.join("\n"))});continue}a.push(e)}}return s(),r}(N.value?.markdown??"",E)),te=d(()=>N.value?.frontmatter.title||"사용자 가이드"),re=d(()=>ue(N.value?.surround.prev?.frontmatter,N.value?.surround.prev?.path)),le=d(()=>ue(N.value?.surround.next?.frontmatter,N.value?.surround.next?.path));h(()=>{Z.value=N.value?.frontmatter.title?`사용자 가이드 / ${N.value.frontmatter.title}`:"사용자 가이드"});const ae=_(),se=ae.public.uris?.client||"",oe=d(()=>`${te.value} - 사용자 가이드 | studyA(스터디에이)`),ne=d(()=>`studyA 사용자 가이드. '${te.value}'에 대해 설명합니다.`),ie=`${se}/image/seo/og-default.png`;function ue(e,t){return e?.title&&t?{title:e.title,description:e.description??"",path:t}:null}return v({title:()=>oe.value,description:()=>ne.value,ogTitle:()=>oe.value,ogDescription:()=>ne.value,ogImage:ie,ogImageWidth:1200,ogImageHeight:630,twitterCard:"summary_large_image",twitterTitle:()=>oe.value,twitterDescription:()=>ne.value,twitterImage:ie}),(t,r)=>{const l=e,a=$;return u(),s("div",D,[f("div",K,[y(L,{class:"px-4 md:px-0 block @4xl:hidden w-full pt-(--size-header-height) max-w-[65ch] mx-auto"},{default:x(({items:e})=>[e?.length&&e[0]?(u(),p(M,{key:0,item:e[0]},null,8,["item"])):m("",!0)]),_:1}),f("div",P,[f("div",R,[(u(!0),s(w,null,k(n(ee),(e,t)=>(u(),s(w,{key:t},["markdown"===e.type?(u(),s("div",{key:0,innerHTML:e.html},null,8,C)):"msgbox"===e.type?(u(),p(H,{key:1,class:"my-6"},{default:x(()=>[f("div",{innerHTML:e.html},null,8,O)]),_:2},1024)):"youtube"===e.type?(u(),p(B,{key:2,url:e.url,class:"my-6"},null,8,["url"])):m("",!0)],64))),128)),r[0]||(r[0]=f("hr",{class:"my-10"},null,-1)),f("div",U,[n(re)?(u(),p(a,{key:0,to:n(re).path,class:"group border p-4 md:p-6 rounded-lg flex flex-col items-start hover:bg-surface-50"},{default:x(()=>[f("div",W,[y(l,{name:"hugeicons:arrow-left-02",class:"text-xl group-hover:text-brand"})]),f("div",null,j(n(re).title),1),f("div",q,j(n(re).description),1)]),_:1},8,["to"])):(u(),s("div",G)),n(le)?(u(),p(a,{key:2,to:n(le).path,class:"group border p-4 md:p-6 rounded-lg flex flex-col items-end hover:bg-surface-50"},{default:x(()=>[f("div",J,[y(l,{name:"hugeicons:arrow-right-02",class:"text-xl group-hover:text-brand"})]),f("div",null,j(n(le).title),1),f("div",Q,j(n(le).description),1)]),_:1},8,["to"])):(u(),s("div",X))])])]),y(L,{class:"hidden @4xl:block w-64 sticky top-0 pt-(--size-header-height)"},{default:x(({items:e})=>[y(T,{items:e,class:"w-full"},null,8,["items"])]),_:1})])])}}}),[["__scopeId","data-v-1720a9e8"]]);export{Z 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.