PageSourceSearch

https://portal.igpublish.com.cn/assets/MyLibrary-MYfx6UU5.js

js igpublish.com.cn collected 2026-10-08 03:07:33 UTC 11,837 bytes, 1 lines download raw bytes

1import{z as E,A as t,B as i,J as A,ab as be,a8 as $,Q as k,P as S,C as e,N as M,O as b,aa as p,a1 as H,I as r,y as l,h as f,f as I,w as Q,v as pe,H as _e,M as z,a2 as he,n as F,K as ye}from"./vue-vendor-L-FQkbel.js";import{p as fe,e as ge,d as ke,g as P}from"./element-plus-Bywy5oHq.js";import{aC as K,aH as X,aG as U,I as xe,e as we}from"./vendor-C0Uurid2.js";import{S as g,_ as B,e as $e,b as ee,r as Z,aF as j,aE as q,w as te,aG as Me,aZ as L,a_ as Ce,a$ as Se,aY as V}from"./index-C5pP5APy.js";import J from"./SignIn-DCvK9Ee3.js";import"./utils-DEfGBLaJ.js";import"./auth-error-DGk7tTu_.js";import"./amplify-BzQRUzRt.js";const Te={class:"mobile-navigation-menu",role:"navigation","aria-label":"My Library menu"},De=["onClick","onKeydown"],Ge={class:"mobile-link"},Le={class:"link-left"},Ie=["src"],Ee={class:"label"},Be=E({__name:"NavigationMenu",setup(N){const{t:u}=K(),y=X(),d=U(),o=f(()=>[{id:"me",label:u("member-card.menu-me"),icon:"user",to:"/my-library/home"},{id:"bookshelf",label:u("member-card.menu-my-bookshelf"),icon:"bookshelf",to:"/my-library/bookshelf"}]),a=s=>!!s.to&&y.path===s.to,m=s=>{!s.to||s.disabled||d.push(s.to)};return(s,G)=>{const h=fe;return t(),i("div",Te,[(t(!0),i(A,null,be(o.value,c=>(t(),i("div",{key:c.id,class:S(["mobile-menu-item",{active:a(c),"is-group":c.type==="group",disabled:c.disabled}]),onClick:x=>m(c),tabindex:"0",onKeydown:[$(k(x=>m(c),["prevent"]),["enter"]),$(k(x=>m(c),["prevent"]),["space"])]},[e("div",Ge,[e("div",Le,[c.icon?(t(),M(g,{key:0,name:c.icon,class:"icon","aria-hidden":"true"},null,8,["name"])):c.imageIcon?(t(),i("img",{key:1,src:c.imageIcon,class:"icon image-icon",alt:""},null,8,Ie)):b("",!0),e("span",Ee,p(c.label),1)]),a(c)&&c.to?(t(),M(h,{key:0,class:"active-dot","aria-hidden":"true"},{default:H(()=>[r(l(xe))]),_:1})):b("",!0)])],42,De))),128))])}}}),Ne=B(Be,[["__scopeId","data-v-f4ea5023"]]),He={class:"header"},Ke={key:0,class:"desktop-header"},Re={class:"header-content"},ze={class:"left"},Fe={class:"title-secondary"},Pe={class:"right"},Ve={class:"actions"},Ae={key:1,class:"mobile-header"},Ue={class:"mobile-bar"},Ye=["aria-expanded"],Oe={class:"mobile-actions"},We={class:"mobile-menu-header"},Ze={key:0,class:"search-div"},je={class:"search-inner"},qe=E({__name:"Header",setup(N){const u=$e(),y=ee(),{t:d,locale:o}=K(),a=f(()=>Me({locale:o.value,user:u.user,defaultZh:"长煦书馆",defaultEn:"IG Publishing",fallbackTitle:d("header.title"),memberFallback:d("header.title"),enablePublicUser:!1})),m=I(!1),s=()=>{m.value=!m.value};return(G,h)=>{const c=ge,x=ke;return t(),i(A,null,[e("div",He,[l(y).isDesktopDevice?(t(),i("div",Ke,[e("div",Re,[e("div",ze,[e("button",{class:"text-button2 title text-lg link",onClick:h[0]||(h[0]=_=>l(Z).push("/"))},p(a.value),1),r(c,{direction:"vertical"}),e("span",Fe,p(l(d)("member-card.menu-my-library")),1)]),e("div",Pe,[e("div",Ve,[r(j),r(q),e("span",null,[r(J)])])])])])):(t(),i("div",Ae,[e("div",Ue,[e("button",{class:"mobile-menu-btn",onClick:s,"aria-expanded":m.value,"aria-label":"Menu"},[r(g,{name:"menu",class:"icon"})],8,Ye),e("button",{class:"text-button2 title text-lg link mobile-title",onClick:h[1]||(h[1]=_=>l(Z).push("/"))},p(a.value),1),e("div",Oe,[r(j),r(q),e("span",null,[r(J)])])]),e("div",{class:S(["mobile-menu",{active:m.value}])},[e("div",We,[r(g,{name:"my-library",style:{width:"116px",height:"22px"},"aria-label":"My Library"}),r(x,{circle:"",icon:l(we),size:"small",onClick:s,"aria-label":"Close menu"},null,8,["icon"])]),r(Ne)],2),m.value?(t(),i("div",{key:0,class:"mobile-overlay",onClick:s})):b("",!0)]))]),l(y).isDesktopDevice?(t(),i("div",Ze,[e("div",je,[r(te)])])):b("",!0)],64)}}}),Je=B(qe,[["__scopeId","data-v-4e2d0acb"]]),Qe={class:"footer-bg"},Xe={class:"footer-line copyright"},et=E({__name:"Footer",setup(N){const u=new Date().getFullYear();return(y,d)=>(t(),i("div",Qe,[e("div",Xe,"© "+p(l(u))+" iG Publishing, Inc. All Rights Reserved.",1)]))}}),tt=B(et,[["__scopeId","data-v-1bede60b"]]),ot={class:"sidemenu-container"},at=["aria-expanded","onKeydown"],st={role:"menu","aria-label":"Side Menu",style:{display:"flex","flex-direction":"column"}},nt=["aria-current","aria-label"],it={class:"icon-wrapper"},rt={key:0,class:"menu-title"},lt={key:1,class:"icon-wrapper"},ut={key:0,class:"menu-title"},ct=["aria-current","aria-label"],dt={class:"icon-wrapper"},mt={key:0,class:"menu-title"},vt={key:1,class:"icon-wrapper"},bt={key:0,class:"menu-title"},pt={class:"icon-wrapper"},_t={key:0,class:"menu-title"},ht={key:1,class:"icon-wrapper"},yt={key:0,class:"menu-title"},ft=E({__name:"SideMenu",setup(N){const{t:u}=K(),y=X(),d=U(),o=I(!1),a=I(0),m=I(!1);let s=null;const G=f(()=>L.value==="my-library-menu"&&y.path==="/my-library/home");Q(()=>y.path,T=>{switch(T){case"/my-library/home":a.value=0;break;case"/my-library/bookshelf":a.value=1;break;case"/my-library/notebook":a.value=2;break;case"/my-library/project":a.value=3;break;case"/my-library/community":a.value=4;break;case"/my-library/powernotes":a.value=5;break;case"/my-library/grammarly":a.value=6;break}},{immediate:!0});function h(){o.value=!o.value}function c(){s&&clearTimeout(s),s=setTimeout(()=>{o.value=!0,s=null},500)}function x(){s&&(clearTimeout(s),s=null),o.value=!1}function _(T){s&&(clearTimeout(s),s=null),o.value=!1,d.push(T)}return(T,n)=>(t(),i("div",ot,[e("div",{class:S(["sidemenu",o.value?"expand":"fold"]),onMouseenter:c,onMouseleave:x},[e("div",{onClick:h,class:"toggle-btn",role:"button",tabindex:"0","aria-expanded":o.value,"aria-label":"Toggle Side Menu",onKeydown:[$(k(h,["prevent"]),["enter"]),$(k(h,["prevent"]),["space"])]},[r(g,{name:"menu",class:"icon",style:{width:"18px",height:"18px"}}),o.value?(t(),M(g,{key:0,name:"my-library",class:"logo-icon"})):b("",!0)],40,at),e("div",st,[e("div",{class:S(["menu-item",[a.value===0?"active":"",G.value?"guide-highlight":""]]),"data-guide":"my-library-menu-me",onClick:n[0]||(n[0]=w=>_("/my-library/home")),role:"menuitem",tabindex:"0","aria-current":a.value===0?"page":void 0,"aria-label":l(u)("member-card.menu-me"),onKeydown:[n[1]||(n[1]=$(k(w=>_("/my-library/home"),["prevent"]),["enter"])),n[2]||(n[2]=$(k(w=>_("/my-library/home"),["prevent"]),["space"]))]},[m.value?(t(),M(l(P),{key:0,content:"Me",placement:"right",teleported:!0,disabled:o.value},{default:H(()=>[e("div",it,[r(g,{name:"user",class:"icon","aria-hidden":"true"}),o.value?(t(),i("span",rt,p(l(u)("member-card.menu-me")),1)):b("",!0)])]),_:1},8,["disabled"])):(t(),i("div",lt,[r(g,{name:"user",class:"icon","aria-hidden":"true"}),o.value?(t(),i("span",ut,p(l(u)("member-card.menu-me")),1)):b("",!0)]))],42,nt),e("div",{class:S(["menu-item",a.value===1?"active":""]),onClick:n[3]||(n[3]=w=>_("/my-library/bookshelf")),role:"menuitem",tabindex:"0","aria-current":a.value===1?"page":void 0,"aria-label":l(u)("member-card.menu-my-bookshelf"),onKeydown:[n[4]||(n[4]=$(k(w=>_("/my-library/bookshelf"),["prevent"]),["enter"])),n[5]||(n[5]=$(k(w=>_("/my-library/bookshelf"),["prevent"]),["space"]))]},[m.value?(t(),M(l(P),{key:0,content:"Bookshelf",placement:"right",teleported:!0,disabled:o.value},{default:H(()=>[e("div",dt,[r(g,{name:"bookshelf",class:"icon","aria-hidden":"true"}),o.value?(t(),i("span",mt,p(l(u)("member-card.menu-my-bookshelf")),1)):b("",!0)])]),_:1},8,["disabled"])):(t(),i("div",vt,[r(g,{name:"bookshelf",class:"icon","aria-hidden":"true"}),o.value?(t(),i("span",bt,p(l(u)("member-card.menu-my-bookshelf")),1)):b("",!0)]))],42,ct)]),a.value===2?(t(),i("div",{key:0,onClick:n[6]||(n[6]=w=>_("/my-library/notebook"))},[e("div",{class:S(["menu-item",a.value===2?"active":""])},[m.value?(t(),M(l(P),{key:0,content:"Notebooks",placement:"right",teleported:!0,disabled:o.value},{default:H(()=>[e("div",pt,[r(g,{name:"notebook",class:"icon"}),o.value?(t(),i("span",_t,p(l(u)("member-card.menu-my-notebook")),1
1)):b("",!0)])]),_:1},8,["disabled"])):(t(),i("div",ht,[r(g,{name:"notebook",class:"icon"}),o.value?(t(),i("span",yt,p(l(u)("member-card.menu-my-notebook")),1)):b("",!0)]))],2)])):b("",!0)],34)]))}}),gt=B(ft,[["__scopeId","data-v-3eda6f5c"]]),kt={key:0,class:"mobile-inline-search"},xt={style:{flex:"1",padding:"84px 10px 40px 10px",margin:"0 auto","min-width":"0"}},wt={class:"member-guide-note__title"},$t={class:"member-guide-note__desc"},Mt={class:"member-guide-note__actions"},Ct={class:"member-guide-note__progress"},St={class:"member-guide-note__buttons"},Tt=E({__name:"MyLibrary",setup(N){const u=ee(),y=U(),{t:d}=K(),o=f(()=>L.value==="my-library-menu"),a=f(()=>L.value==="my-library-content"),m=f(()=>L.value==="bookshelf-content"),s=f(()=>o.value||a.value||m.value),G=f(()=>o.value?d("member-guide.library-hub-title"):a.value?d("member-guide.library-history-title"):d("member-card.menu-my-bookshelf")),h=f(()=>o.value?d("member-guide.library-menu-desc"):a.value?d("member-guide.library-history-desc"):d("member-guide.bookshelf-desc")),c=f(()=>o.value?"2/8":a.value?"3/8":"4/8"),x=f(()=>d("message.next-step")),_=I({left:"16px",top:"16px",width:"280px"}),T=()=>o.value?"[data-guide='my-library-menu-me']":m.value?"[data-guide='bookshelf-panel']":"[data-guide='my-library-home-tabs-header']",n=()=>{if(u.isMobileDevice){_.value={left:"16px",right:"16px",bottom:"16px",width:"auto",top:"auto"};return}const C=document.querySelector(T());if(!C){_.value={left:"16px",top:"16px",width:"280px"};return}const v=C.getBoundingClientRect(),D=window.innerWidth,Y=window.innerHeight;if(o.value){const W=Math.min(280,D-32),ce=132,de=D-W-16,me=Math.max(16,Math.min(v.left+12,de)),ve=Math.max(16,Math.min(v.bottom+12,Y-ce-16));_.value={left:`${me}px`,top:`${ve}px`,width:`${W}px`};return}const R=Math.min(360,Math.max(280,v.width*.3),D-32),O=142,ae=D-R-16,se=a.value?v.left+216:v.right-R-16,ne=Math.max(16,Math.min(se,ae)),ie=v.bottom-O-16,re=Math.max(16,v.top+16),le=Y-O-16,ue=Math.max(re,Math.min(ie,le));_.value={left:`${ne}px`,top:`${ue}px`,width:`${R}px`}};Q(()=>s.value,C=>{C&&F(()=>{n(),window.setTimeout(n,260)})},{immediate:!0});const w=()=>{const C=L.value;Ce(),Se(C).catch(v=>console.error(v))},oe=()=>{if(o.value){V("my-library-content"),F(()=>{n(),window.setTimeout(n,120)});return}if(a.value){V("bookshelf-content"),y.push("/my-library/bookshelf"),F(()=>{window.setTimeout(n,300)});return}V("account-profile"),y.push("/my-account/profile")};return pe(()=>{window.addEventListener("resize",n),window.addEventListener("scroll",n,!0),n()}),_e(()=>{window.removeEventListener("resize",n),window.removeEventListener("scroll",n,!0)}),(C,v)=>{const D=ye("RouterView");return t(),i(A,null,[r(Je),l(u).isMobileDevice?(t(),i("div",kt,[r(te)])):b("",!0),e("div",{class:S(["main-content-main",{"guide-active":s.value,"guide-step-menu":o.value,"guide-step-content":a.value,"guide-step-bookshelf":m.value}]),style:z([{marginTop:l(u).isDesktopDevice?"50px":"0"},{display:"flex","align-items":"flex-start"}])},[l(u).isDesktopDevice?(t(),M(gt,{key:0})):b("",!0),e("div",xt,[r(D)])],6),s.value?(t(),i("div",{key:1,class:"member-guide-overlay","aria-hidden":"true",onClick:v[0]||(v[0]=k(()=>{},["stop","prevent"])),onMousedown:v[1]||(v[1]=k(()=>{},["stop","prevent"])),onMouseup:v[2]||(v[2]=k(()=>{},["stop","prevent"]))},null,32)):b("",!0),(t(),M(he,{to:"body"},[s.value?(t(),i("div",{key:0,class:"member-guide-note",style:z(_.value),"aria-live":"polite",role:"dialog","aria-label":"My Library guide"},[e("div",wt,p(G.value),1),e("div",$t,p(h.value),1),e("div",Mt,[e("div",Ct,p(c.value),1),e("div",St,[e("button",{type:"button",class:"member-guide-note__btn member-guide-note__btn--text",onClick:w},p(l(d)("sign-up.skip")),1),e("button",{type:"button",class:"member-guide-note__btn member-guide-note__btn--ghost",onClick:oe},p(x.value),1)])])],4)):b("",!0)])),r(tt,{style:z([{position:l(u).isDesktopDevice?"fixed":"static"},{"margin-top":"40px",bottom:"0",left:"0",right:"0"}])},null,8,["style"])],64)}}}),Kt=B(Tt,[["__scopeId","data-v-60c57f2f"]]);export{Kt 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.