1import{_ as I}from"./DlAUqK2U.js";import{o as s,c as a,a2 as R,e as w,B as C,f as g,w as m,p as S,i as o,z as q,a3 as H,A as P,m as N,a4 as M,I as T,D as V,E as D,n as F,a5 as O,x as U,F as A,b as k,a as c,g as x,d as v,t as y,r as B}from"./DnapVn9c.js";import{_ as W}from"./_vUrA89D.js";import{_ as G}from"./DK-h6_cP.js";import J from"./iUGb1jfd.js";import{P as $,c as K,a as Q,_ as X}from"./CEbQ_rDg.js";import{u as z,c as Y,i as Z}from"./D8vZUihU.js";const ee={},te={xmlns:"http://www.w3.org/2000/svg",width:"1920",height:"1080",viewBox:"0 0 1920 1080",fill:"none",class:"-z-50 absolute hidden opacity-25 [mask-image:linear-gradient(to_right,white,transparent,transparent,white)] lg:block"};function se(e,t){return s(),a("svg",te,[...t[0]||(t[0]=[R('<g clip-path="url(#clip0_4_5)"><rect width="1920" height="1080"></rect><line y1="49.5" x2="1920" y2="49.5" class="stroke-muted-foreground"></line><line y1="99.5" x2="1920" y2="99.5" class="stroke-muted-foreground"></line><line y1="149.5" x2="1920" y2="149.5" class="stroke-muted-foreground"></line><line y1="199.5" x2="1920" y2="199.5" class="stroke-muted-foreground"></line><line y1="249.5" x2="1920" y2="249.5" class="stroke-muted-foreground"></line><line y1="299.5" x2="1920" y2="299.5" class="stroke-muted-foreground"></line><line y1="349.5" x2="1920" y2="349.5" class="stroke-muted-foreground"></line><line y1="399.5" x2="1920" y2="399.5" class="stroke-muted-foreground"></line><line y1="449.5" x2="1920" y2="449.5" class="stroke-muted-foreground"></line><line y1="499.5" x2="1920" y2="499.5" class="stroke-muted-foreground"></line><line y1="549.5" x2="1920" y2="549.5" class="stroke-muted-foreground"></line><line y1="599.5" x2="1920" y2="599.5" class="stroke-muted-foreground"></line><line y1="649.5" x2="1920" y2="649.5" class="stroke-muted-foreground"></line><line y1="699.5" x2="1920" y2="699.5" class="stroke-muted-foreground"></line><line y1="749.5" x2="1920" y2="749.5" class="stroke-muted-foreground"></line><line y1="799.5" x2="1920" y2="799.5" class="stroke-muted-foreground"></line><line y1="849.5" x2="1920" y2="849.5" class="stroke-muted-foreground"></line><line y1="899.5" x2="1920" y2="899.5" class="stroke-muted-foreground"></line><line y1="949.5" x2="1920" y2="949.5" class="stroke-muted-foreground"></line><line y1="999.5" x2="1920" y2="999.5" class="stroke-muted-foreground"></line><line y1="1049.5" x2="1920" y2="1049.5" class="stroke-muted-foreground"></line><g clip-path="url(#clip1_4_5)"><line x1="49.6133" y1="3.99995" x2="49.7268" y2="1084" class="stroke-muted-foreground"></line><line x1="99.7275" y1="3.99995" x2="99.8411" y2="1084" class="stroke-muted-foreground"></line><line x1="149.841" y1="3.99995" x2="149.954" y2="1084" class="stroke-muted-foreground"></line><line x1="199.954" y1="3.99995" x2="200.068" y2="1084" class="stroke-muted-foreground"></line><line x1="250.067" y1="3.99995" x2="250.181" y2="1084" class="stroke-muted-foreground"></line><line x1="300.182" y1="3.99995" x2="300.295" y2="1084" class="stroke-muted-foreground"></line><line x1="350.295" y1="3.99995" x2="350.408" y2="1084" class="stroke-muted-foreground"></line><line x1="400.408" y1="3.99995" x2="400.522" y2="1084" class="stroke-muted-foreground"></line><line x1="450.521" y1="3.99995" x2="450.635" y2="1084" class="stroke-muted-foreground"></line><line x1="500.636" y1="3.99995" x2="500.749" y2="1084" class="stroke-muted-foreground"></line><line x1="550.749" y1="3.99995" x2="550.863" y2="1084" class="stroke-muted-foreground"></line><line x1="600.862" y1="3.99995" x2="600.976" y2="1084" class="stroke-muted-foreground"></line><line x1="650.976" y1="3.99995" x2="651.089" y2="1084" class="stroke-muted-foreground"></line><line x1="701.09" y1="3.99995" x2="701.203" y2="1084" class="stroke-muted-foreground"></line><line x1="751.203" y1="3.99995" x2="751.317" y2="1084" class="stroke-muted-foreground"></line><line x1="801.316" y1="3.99995" x2="801.43" y2="1084" class="stroke-muted-foreground"></line><line x1="851.43" y1="3.99995" x2="851.543" y2="1084" class="stroke-muted-foreground"></line><line x1="901.544" y1="3.99995" x2="901.657" y2="1084" class="stroke-muted-foreground"></line>
1<line x1="951.657" y1="3.99995" x2="951.771" y2="1084" class="stroke-muted-foreground"></line><line x1="1001.77" y1="3.99995" x2="1001.88" y2="1084" class="stroke-muted-foreground"></line><line x1="1051.88" y1="3.99995" x2="1052" y2="1084" class="stroke-muted-foreground"></line><line x1="1102" y1="3.99995" x2="1102.11" y2="1084" class="stroke-muted-foreground"></line><line x1="1152.11" y1="3.99995" x2="1152.22" y2="1084" class="stroke-muted-foreground"></line><line x1="1202.22" y1="3.99995" x2="1202.34" y2="1084" class="stroke-muted-foreground"></line><line x1="1252.34" y1="3.99995" x2="1252.45" y2="1084" class="stroke-muted-foreground"></line><line x1="1302.45" y1="3.99995" x2="1302.57" y2="1084" class="stroke-muted-foreground"></line><line x1="1352.57" y1="3.99995" x2="1352.68" y2="1084" class="stroke-muted-foreground"></line><line x1="1402.68" y1="3.99995" x2="1402.79" y2="1084" class="stroke-muted-foreground"></line><line x1="1452.79" y1="3.99995" x2="1452.91" y2="1084" class="stroke-muted-foreground"></line><line x1="1502.91" y1="3.99995" x2="1503.02" y2="1084" class="stroke-muted-foreground"></line><line x1="1553.02" y1="3.99995" x2="1553.13" y2="1084" class="stroke-muted-foreground"></line><line x1="1603.13" y1="3.99995" x2="1603.25" y2="1084" class="stroke-muted-foreground"></line><line x1="1653.25" y1="3.99995" x2="1653.36" y2="1084" class="stroke-muted-foreground"></line><line x1="1703.36" y1="3.99995" x2="1703.47" y2="1084" class="stroke-muted-foreground"></line><line x1="1753.47" y1="3.99995" x2="1753.59" y2="1084" class="stroke-muted-foreground"></line><line x1="1803.59" y1="3.99995" x2="1803.7" y2="1084" class="stroke-muted-foreground"></line><line x1="1853.7" y1="3.99995" x2="1853.81" y2="1084" class="stroke-muted-foreground"></line><line x1="1903.81" y1="3.99995" x2="1903.93" y2="1084" class="stroke-muted-foreground"></line></g></g><defs><clipPath id="clip0_4_5"><rect width="1920" height="1080" fill="#000000"></rect></clipPath><clipPath id="clip1_4_5"><rect width="1920" height="1080" fill="#000000" transform="translate(-1 4)"></rect></clipPath></defs>',2)])])}const ne=Object.assign(I(ee,[["render",se]]),{__name:"HeroBg"}),[re,oe]=Y("AvatarRoot");var le=w({__name:"AvatarRoot",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"span"}},setup(e){return z(),oe({imageLoadingStatus:C("idle")}),(t,r)=>(s(),g(o($),{"as-child":t.asChild,as:t.as},{default:m(()=>[S(t.$slots,"default")]),_:3},8,["as-child","as"]))}}),ae=le;function L(e,t){return e?t?(e.src!==t&&(e.src=t),e.complete&&e.naturalWidth>0?"loaded":"loading"):"error":"idle"}function ie(e,{referrerPolicy:t,crossOrigin:r}={}){const l=C(!1),h=C(null),u=N(()=>l.value?(!h.value&&Z&&(h.value=new window.Image),h.value):null),f=C(L(u.value,e.value)),_=d=>()=>{l.value&&(f.value=d)};return q(()=>{l.value=!0,H(d=>{const n=u.value;if(!n)return;f.value=L(n,e.value);const p=_("loaded"),b=_("error");n.addEventListener("load",p),n.addEventListener("error",b),t!=null&&t.value&&(n.referrerPolicy=t.value),typeof(r==null?void 0:r.value)=="string"&&(n.crossOrigin=r.value),d(()=>{n.removeEventListener("load",p),n.removeEventListener("error",b)})})}),P(()=>{l.value=!1}),f}var ue=w({__name:"AvatarImage",props:{src:{type:String,required:!0},referrerPolicy:{type:null,required:!1},crossOrigin:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"img"}},emits:["loadingStatusChange"],setup(e,{emit:t}){const r=e,l=t,{src:h,referrerPolicy:u,crossOrigin:f}=M(r);z();const _=re(),d=ie(h,{referrerPolicy:u,crossOrigin:f});return T(d,n=>{l("loadingStatusChange",n),n!=="idle"&&(_.imageLoadingStatus.value=n)},{immediate:!0}),(n,p)=>V((s(),g(o($),{role:"img","as-child":n.asChild,as:n.as,src:o(h),referrerpolicy:o(u),crossorigin:o(f)},{default:m(()=>[S(n.$slots,"default")]),_:3},8,["as-child","as","src","referrerpolicy","crossorigin"])),[[D,o(d)==="loaded"]])}}),de=ue;const ce=w({__name:"Avatar",props:{class:{type:[Boolean,null,String,Object,Array]},size:{default:"sm"},shape:{default:"circle"}},setup(e){const t=e;return(r,l)=>(s(),g(o(ae),{class:F(o(K)(o(fe)({size:e.size,shape:e.shape}),t.class))},{default:m(()=>[S(r.$slots,"default")]),_:3},8,["class"]))}}),me=w({__name:"AvatarImage",props:{src:{},referrerPolicy:{},crossOrigin:{},asChild:{type:Boolean},as:{}},setup(e){const t=e;return(r,l)=>(s(),g(o(de),O(t,{class:"h-full w-full object-cover"}),{default:m(()=>[S(r.$slots,"default")]),_:3},16))}}),fe=Q("inline-flex items-center justify-center font-normal text-foreground select-none shrink-0 bg-secondary overflow-hidden",{variants:{size:{sm:"h-10 w-10 text-xs",base:"h-16 w-16 text-2xl",lg:"h-32 w-32 text-5xl"},shape:{circle:"rounded-full",square:"rounded-md"}}}),xe=U("/badges/phdaily.svg"),ye={key:0,class:"py-24"},ge={class:"container"},he={key:0,class:"flex items-center justify-center mb-8"},_e={class:"text-center"},pe={key:1,class:"mx-auto mb-3 mt-4 max-w-3xl text-balance text-4xl font-bold lg:mb-7 lg:text-7xl"},ke={class:"bg-gradient-to-r from-primary via-primary to-primary bg-clip-text text-transparent"},ve={key:2,class:"mx-auto mb-3 mt-4 max-w-3xl text-balance text-4xl font-bold lg:mb-7 lg:text-7xl"},we=["innerHTML"],be={key:3,class:"mt-8 flex flex-col justify-center gap-4 sm:flex-row"},Ae={key:4,class:"mt-8 text-md text-muted-foreground"},Ce={key:5,class:"mx-auto mt-8 flex w-fit flex-col items-center gap-2 sm:flex-row"},Se={class:"mx-4 inline-flex items-center -space-x-2"},Be={class:"flex flex-col items-center gap-1 md:items-start"},Le={class:"flex items-center gap-1"},$e=w({__name:"Hero",props:{hero:{}},setup(e){const t=e,r=t.hero.highlight_text;let l=null;return r&&t.hero.title&&(l=t.hero.title.split(r)),(h,u)=>{const f=ne,_=W,d=G,n=J,p=X,b=me,j=ce;return s(),a(A,null,[k(f),e.hero.disabled?x("",!0):(s(),a("section",ye,[c("div",ge,[e.hero.show_badge?(s(),a("div",he,[...u[0]||(u[0]=[c("img",{src:xe,alt:"phdaily",class:"h-10 object-cover"},null,-1)])])):x("",!0),c("div",_e,[e.hero.announcement?(s(),g(d,{key:0,to:e.hero.announcement.url||"",class:"mx-auto mb-3 inline-flex items-center gap-3 rounded-full border px-2 py-1 text-sm"},{default:m(()=>[e.hero.announcement.label?(s(),g(_,{key:0},{default:m(()=>[v(y(e.hero.announcement.label),1)]),_:1}
1)):x("",!0),v(" "+y(e.hero.announcement.title),1)]),_:1},8,["to"])):x("",!0),o(l)&&o(l).length>1?(s(),a("h1",pe,[v(y(o(l)[0])+" ",1),c("span",ke,y(o(r)),1),v(" "+y(o(l)[1]),1)])):(s(),a("h1",ve,y(e.hero.title),1)),c("p",{class:"mx-auto max-w-3xl text-muted-foreground lg:text-xl",innerHTML:e.hero.description||""},null,8,we),e.hero.buttons?(s(),a("div",be,[(s(!0),a(A,null,B(e.hero.buttons,(i,E)=>(s(),g(d,{key:E,to:i.url||"",target:i.target||"",class:"flex items-center"},{default:m(()=>[k(p,{class:"w-full",size:"lg",variant:i.variant||"default"},{default:m(()=>[v(y(i.title)+" ",1),i.icon?(s(),g(n,{key:0,name:i.icon,class:"ml-1"},null,8,["name"])):x("",!0)]),_:2},1032,["variant"])]),_:2},1032,["to","target"]))),128))])):x("",!0),e.hero.tip?(s(),a("p",Ae,y(e.hero.tip),1)):x("",!0),e.hero.show_happy_users?(s(),a("div",Ce,[c("span",Se,[(s(),a(A,null,B(5,i=>k(j,{key:i,class:"size-12 border"},{default:m(()=>[k(b,{src:`/imgs/users/${i+5}.webp`,alt:"placeholder",loading:"lazy",decoding:"async"},null,8,["src"])]),_:2},1024)),64))]),c("div",Be,[c("div",Le,[(s(),a(A,null,B(5,i=>k(n,{name:"lucide:star",key:i,class:"size-5 fill-yellow-400 text-yellow-400"})),64))]),u[1]||(u[1]=c("p",{class:"text-left font-medium text-muted-foreground"}," from 99+ happy users ",-1))])])):x("",!0)])])]))],64)}}}),Pe=Object.assign($e,{__name:"BlocksHero"});export{Pe as H,ce as _,me as a};
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.