Some checks failed
🚀 Deploy - Demo / deployment (push) Has been cancelled
- 웹훅 URL을 https://admin.youtooplay.com/webhook로 변경 - Nginx 리버스 프록시 설정 파일 추가 - 배포 가이드 업데이트
2 lines
5.5 KiB
JavaScript
2 lines
5.5 KiB
JavaScript
import{bt as S,R as j,r as q,ba as C,y as B,bI as E,bJ as T,aQ as U,bK as I,aN as w,aK as A,bL as F,bM as L,f as x,bN as k,bO as V,bP as D,bF as z,bQ as H,bR as M,bS as Q}from"./C0u2Lk3h.js";async function N(t,r=S()){const{path:f,matched:p}=r.resolve(t);if(!p.length||(r._routePreloaded||(r._routePreloaded=new Set),r._routePreloaded.has(f)))return;const e=r._preloadPromises=r._preloadPromises||[];if(e.length>4)return Promise.all(e).then(()=>N(t,r));r._routePreloaded.add(f);const a=p.map(s=>{var n;return(n=s.components)==null?void 0:n.default}).filter(s=>typeof s=="function");for(const s of a){const n=Promise.resolve(s()).catch(()=>{}).finally(()=>e.splice(e.indexOf(n)));e.push(n)}await Promise.all(e)}const K=(...t)=>t.find(r=>r!==void 0);function $(t){const r=t.componentName||"NuxtLink";function f(e,a){if(!e||t.trailingSlash!=="append"&&t.trailingSlash!=="remove")return e;if(typeof e=="string")return O(e,t.trailingSlash);const s="path"in e&&e.path!==void 0?e.path:a(e).path;return{...e,name:void 0,path:O(s,t.trailingSlash)}}function p(e){const a=S(),s=D(),n=x(()=>!!e.target&&e.target!=="_self"),v=x(()=>{const d=e.to||e.href||"";return typeof d=="string"&&k(d,{acceptRelative:!0})}),y=A("RouterLink"),b=y&&typeof y!="string"?y.useLink:void 0,g=x(()=>{if(e.external)return!0;const d=e.to||e.href||"";return typeof d=="object"?!1:d===""||v.value}),u=x(()=>{const d=e.to||e.href||"";return g.value?d:f(d,a.resolve)}),c=g.value||b==null?void 0:b({...e,to:u}),m=x(()=>{var d;if(!u.value||v.value)return u.value;if(g.value){const P=typeof u.value=="object"&&"path"in u.value?L(u.value):u.value,R=typeof P=="object"?a.resolve(P).href:P;return f(R,a.resolve)}return typeof u.value=="object"?((d=a.resolve(u.value))==null?void 0:d.href)??null:f(V(s.app.baseURL,u.value),a.resolve)});return{to:u,hasTarget:n,isAbsoluteUrl:v,isExternal:g,href:m,isActive:(c==null?void 0:c.isActive)??x(()=>u.value===a.currentRoute.value.path),isExactActive:(c==null?void 0:c.isExactActive)??x(()=>u.value===a.currentRoute.value.path),route:(c==null?void 0:c.route)??x(()=>a.resolve(u.value)),async navigate(){await z(m.value,{replace:e.replace,external:g.value||n.value})}}}return j({name:r,props:{to:{type:[String,Object],default:void 0,required:!1},href:{type:[String,Object],default:void 0,required:!1},target:{type:String,default:void 0,required:!1},rel:{type:String,default:void 0,required:!1},noRel:{type:Boolean,default:void 0,required:!1},prefetch:{type:Boolean,default:void 0,required:!1},prefetchOn:{type:[String,Object],default:void 0,required:!1},noPrefetch:{type:Boolean,default:void 0,required:!1},activeClass:{type:String,default:void 0,required:!1},exactActiveClass:{type:String,default:void 0,required:!1},prefetchedClass:{type:String,default:void 0,required:!1},replace:{type:Boolean,default:void 0,required:!1},ariaCurrentValue:{type:String,default:void 0,required:!1},external:{type:Boolean,default:void 0,required:!1},custom:{type:Boolean,default:void 0,required:!1}},useLink:p,setup(e,{slots:a}){const s=S(),{to:n,href:v,navigate:y,isExternal:b,hasTarget:g,isAbsoluteUrl:u}=p(e),c=q(!1),m=q(null),d=l=>{var o;m.value=e.custom?(o=l==null?void 0:l.$el)==null?void 0:o.nextElementSibling:l==null?void 0:l.$el};function P(l){var o,i;return!c.value&&(typeof e.prefetchOn=="string"?e.prefetchOn===l:((o=e.prefetchOn)==null?void 0:o[l])??((i=t.prefetchOn)==null?void 0:i[l]))&&(e.prefetch??t.prefetch)!==!1&&e.noPrefetch!==!0&&e.target!=="_blank"&&!W()}async function R(l=C()){if(c.value)return;c.value=!0;const o=typeof n.value=="string"?n.value:b.value?L(n.value):s.resolve(n.value).fullPath,i=b.value?new URL(o,window.location.href).href:o;await Promise.all([l.hooks.callHook("link:prefetch",i).catch(()=>{}),!b.value&&!g.value&&N(n.value,s).catch(()=>{})])}if(P("visibility")){const l=C();let o,i=null;B(()=>{const h=G();E(()=>{o=T(()=>{var _;(_=m==null?void 0:m.value)!=null&&_.tagName&&(i=h.observe(m.value,async()=>{i==null||i(),i=null,await R(l)}))})})}),U(()=>{o&&I(o),i==null||i(),i=null})}return()=>{var i;if(!b.value&&!g.value){const h={ref:d,to:n.value,activeClass:e.activeClass||t.activeClass,exactActiveClass:e.exactActiveClass||t.exactActiveClass,replace:e.replace,ariaCurrentValue:e.ariaCurrentValue,custom:e.custom};return e.custom||(P("interaction")&&(h.onPointerenter=R.bind(null,void 0),h.onFocus=R.bind(null,void 0)),c.value&&(h.class=e.prefetchedClass||t.prefetchedClass),h.rel=e.rel||void 0),w(A("RouterLink"),h,a.default)}const l=e.target||null,o=K(e.noRel?"":e.rel,t.externalRelAttribute,u.value||g.value?"noopener noreferrer":"")||null;return e.custom?a.default?a.default({href:v.value,navigate:y,prefetch:R,get route(){if(!v.value)return;const h=new URL(v.value,window.location.href);return{path:h.pathname,fullPath:h.pathname,get query(){return F(h.search)},hash:h.hash,params:{},name:void 0,matched:[],redirectedFrom:void 0,meta:{},href:v.value}},rel:o,target:l,isExternal:b.value||g.value,isActive:!1,isExactActive:!1}):null:w("a",{ref:m,href:v.value||null,rel:o,target:l},(i=a.default)==null?void 0:i.call(a))}}})}const Y=$(Q);function O(t,r){const f=r==="append"?H:M;return k(t)&&!t.startsWith("http")?t:f(t,!0)}function G(){const t=C();if(t._observer)return t._observer;let r=null;const f=new Map,p=(a,s)=>(r||(r=new IntersectionObserver(n=>{for(const v of n){const y=f.get(v.target);(v.isIntersecting||v.intersectionRatio>0)&&y&&y()}})),f.set(a,s),r.observe(a),()=>{f.delete(a),r.unobserve(a),f.size===0&&(r.disconnect(),r=null)});return t._observer={observe:p}}const J=/2g/;function W(){const t=navigator.connection;return!!(t&&(t.saveData||J.test(t.effectiveType)))}export{Y as _};
|