1var ye=Object.defineProperty,Me=Object.defineProperties;var Ne=Object.getOwnPropertyDescriptors;var re=Object.getOwnPropertySymbols;var be=Object.prototype.hasOwnProperty,Re=Object.prototype.propertyIsEnumerable;var ue=(o,t,e)=>t in o?ye(o,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):o[t]=e,j=(o,t)=>{for(var e in t||(t={}))be.call(t,e)&&ue(o,e,t[e]);if(re)for(var e of re(t))Re.call(t,e)&&ue(o,e,t[e]);return o},X=(o,t)=>Me(o,Ne(t));var x=(o,t,e)=>new Promise((v,_)=>{var s=a=>{try{c(e.next(a))}catch(p){_(p)}},n=a=>{try{c(e.throw(a))}catch(p){_(p)}},c=a=>a.done?v(a.value):Promise.resolve(a.value).then(s,n);c((e=e.apply(o,t)).next())});import{C as P,m as T,d as O,n as W,z as J,a4 as ee,a5 as te,Y as m,K as f,R as i,M as Z,a3 as D,F as U,Z as q,S as M,u as w,i as oe,f as Ie,O as F,N as L,h as _e,L as ke,U as Oe,a8 as Ae,p as ne}from"./C-X-zbxt.js";import{f as V,k as ae,A as ie,v as Se,b as Le,W as Ce,B as $e}from"./e70eX59T.js";import{_ as pe}from"./ChaKNw7s.js";import"./BW8XdN5T.js";import"./DVw6L2IV.js";import"./DpkZH7g2.js";import"./CPCfUMhX.js";import"./IUTbEgma.js";import"./Dtecwpyw.js";import"./3UDwCCWS.js";import"./DbhodJ3I.js";import"./B2TcdqVY.js";import"./DLEk_ywu.js";import"./BaEdSPx5.js";(function(){try{var o=typeof window!="undefined"?window:typeof global!="undefined"?global:typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:{};o.SENTRY_RELEASE={id:"f9b0ef460ef6f95b1d7f321428c950242b680c25"};var t=new o.Error().stack;t&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[t]="e8c50c05-7cc0-4793-a223-3eeff37c0d49",o._sentryDebugIdIdentifier="sentry-dbid-e8c50c05-7cc0-4793-a223-3eeff37c0d49")}catch(e){}})();const Ue={id:"review",class:"section-1 lazy-bg"},Pe="https://resource.xp-pen.com/img/active_list/comment/section01_banner.webp",qe="https://resource.xp-pen.com/img/active_list/comment/section01_banner_m.webp",Ve="https://resource.xp-pen.com/img/active_list/comment/section01_header.webp",Be=P({__name:"InviteBanner",setup(o){const t=T(!1),e=()=>{typeof window!="undefined"&&(t.value=window.innerWidth<=768)},v=O(()=>t.value?qe:Pe);return W(()=>{e(),window.addEventListener("resize",e)}),J(()=>{window.removeEventListener("resize",e)}),(_,s)=>{const n=ee("lazy");return te((f(),m("section",Ue,[i("img",{class:"hero-title",src:Ve,alt:"Type It, Post It"})])),[[n,v.value,"background-image"]])}}}),xe=["onClick"],Fe=P({__name:"InviteNavbar",setup(o){const{t}=V(),{$track:e}=ae(),v=[{target:"#review",labelKey:"PRODUCT_REVIEWS",clickName:"review",clickType:"è¯è®ºä»ç»"},{target:"#guide",labelKey:"PARTICIPATING_GUIDE",clickName:"guide",clickType:"è¯è®ºè§å"},{target:"#faqs",labelKey:"BUY_FAQ",clickName:"faq",clickType:"è¯è®ºfaq"},{target:"#attentions",labelKey:"COMMENT_ATTENTION",clickName:"attention",clickType:"è¯è®ºæ³¨æäºé¡¹"}],_=["review","guide","faqs","attentions"],s=T(null),n=T(!1),c=T("#review"),a=T(0),p=T(0),r=()=>{var d;const R=document.querySelector("#navbar_header_height");return(d=R==null?void 0:R.offsetHeight)!=null?d:0},N=O(()=>({top:n.value?`${a.value}px`:"0"})),g=()=>{if(!s.value)return;a.value=r();const R=window.scrollY||document.documentElement.scrollTop;n.value=R>=p.value-a.value;const d=a.value+s.value.offsetHeight+10;let y=`#${_[0]}`;_.forEach(E=>{const h=document.getElementById(E);h&&h.getBoundingClientRect().top<=d&&(y=`#${E}`)}),c.value=y};let I=null;const C=()=>{I&&clearTimeout(I),I=setTimeout(g,50)},K=R=>{const d=document.querySelector(R.target);if(!d||!s.value)return;const y=r()+s.value.offsetHeight,E=d.getBoundingClientRect().top+window.scrollY-y;window.scrollTo({top:E,behavior:"smooth"}),c.value=R.target,e("main_icon_click",{click_name:R.clickName,click_type:R.clickType,element_type:"OBS-MktReg-ReviewPro-1",element_id:"OBS-MktReg-ReviewPro-1_1",element_name:"è¯è®ºæ´»å¨é¡µtab"})},z=()=>{s.value&&(p.value=s.value.offsetTop),g()};return W(()=>{s.value&&(p.value=s.value.offsetTop),g(),window.addEventListener("scroll",g,{passive:!0}),window.addEventListener("scroll",C,{passive:!0}),window.addEventListener("resize",z)}),J(()=>{window.removeEventListener("scroll",g),window.removeEventListener("scroll",C),window.removeEventListener("resize",z),I&&
1clearTimeout(I)}),(R,d)=>(f(),m("nav",{ref_key:"navbarRef",ref:s,class:D(["comment-navbar",{fixed:n.value}]),style:Z(N.value)},[(f(),m(U,null,q(v,y=>i("button",{key:y.target,type:"button",class:D(["nav-item",{active:c.value===y.target}]),onClick:E=>K(y)},M(w(t)(y.labelKey)),11,xe)),64))],6))}}),se=["yellow","red","orange"],Ke=()=>{const o=T([]),t=T(!1),e=()=>x(void 0,null,function*(){var n,c;t.value=!0;try{const a=yield ie.getFeaturedCommentList();(a==null?void 0:a.code)===200&&((c=(n=a.data)==null?void 0:n.list)!=null&&c.length)&&(o.value=a.data.list)}finally{t.value=!1}}),v=O(()=>{const n=o.value.length;if(!n)return[[],[],[]];const c=Math.ceil(n/3);return[o.value.slice(0,c),o.value.slice(c,c*2),o.value.slice(c*2)]});return{list:o,rows:v,loading:t,fetchList:e,getPillStyle:n=>se[n%se.length],truncateContent:(n,c=30)=>{const a=(n||"").trim();return a.length>c?`${a.substring(0,c)}...`:a},PILL_STYLES:se}},de=Symbol("inviteReviewPopup"),ve=Symbol("inviteMarqueeResume"),me=Symbol("inviteMarqueeRegister"),ze={class:"section-2"},De={class:"section-title"},Qe={class:"section-subtitle"},Ge=["data-comment-id"],We={alt:"avatar"},Ye={class:"review-sub"},He="https://resource.xp-pen.com/img/active_list/comment/icon01.webp",je=P({__name:"InviteMarquee",setup(o){const{t}=V(),{rows:e,fetchList:v,getPillStyle:_,truncateContent:s}=Ke(),n=oe(de,T(null)),c=oe(me,()=>{}),a=T(null),p=T([[],[],[]]),r=T(!1),N=(d,y)=>{const E=d.length?d:y;if(!E.length)return[];let h=[...E];const A=Math.max(8,E.length*2);for(;h.length<A;)h=h.concat(E);return h.concat(h)},g=()=>{const[d,y,E]=e.value,h=e.value.flat();p.value=[N(d,h),N(y,h),N(E,h)]};Ie(e,g,{deep:!0});const I=()=>{r.value=!0},C=()=>{r.value=!1},K=d=>{var y;(y=n.value)==null||y.onMarqueeMove(d.clientX,d.clientY)},z=d=>{var h;const y=d.target.closest(".review-pill");if(!y)return;I();const E=y.getAttribute("data-comment-id");E&&((h=n.value)==null||h.onPillEnter(E,d.clientX,d.clientY))},R=d=>{var h;if(!d.target.closest(".review-pill"))return;const E=d.relatedTarget;E!=null&&E.closest(".review-pill")||E!=null&&E.closest(".review-popup")||((h=n.value)==null||h.onPillLeave(),C())};return W(()=>x(this,null,function*(){c(C),yield v(),g()})),(d,y)=>{const E=ee("lazy");return f(),m("section",ze,[i("h2",De,M(w(t)("SCROLLING_MESSAGES")),1),i("p",Qe,M(w(t)("SCROLLING_MESSAGES_SUBTITLE")),1),i("div",{ref_key:"marqueeWrapperRef",ref:a,class:"marquee-wrapper",onMousemove:K,onMouseover:z,onMouseout:R},[(f(!0),m(U,null,q(p.value,(h,A)=>(f(),m("div",{key:A,class:D(["marquee-track",`track-${A+1}`])},[i("div",{class:"marquee-content",style:Z({animationPlayState:r.value?"paused":"running"})},[(f(!0),m(U,null,q(h,($,Y)=>(f(),m("div",{key:`${A}-${Y}-${$.id}`,class:D(["review-pill",w(_)(Y+A*h.length)]),"data-comment-id":$.id},[i("i",null,[te(i("img",We,null,512),[[E,$.avatar||He]])]),i("div",null,[i("span",null,M(w(s)($.content)),1),i("span",Ye,M($.username||"Anonymous"),1)])],10,Ge))),128))],4)],2))),128))],544)])}}}),Xe={key:0,class:"popup-body"},Ze={class:"review-popup-header"},Je=["src"],et={class:"review-popup-user"},tt={class:"review-popup-stars"},nt={key:0,class:"review-popup-title"},st={class:"review-popup-content"},ot={key:1,class:"review-popup-thumbs"},at=["src"],it=["src"],lt={class:"review-popup-goods-name"},ct={key:1,class:"review-popup-goods-price"},rt="https://resource.xp-pen.com/img/active_list/comment/icon01.webp",ut=P({__name:"InviteReviewPopup",setup(o,{expose:t}){const e=T(null),v=oe(ve,()=>{}),_=T(!1),s=T(!1),n=T(null),c=T({left:"0",top:"0"}),a=new Map;let p=null,r=null,N=null,g=0;const I=O(()=>{var l,u;return((u=(l=n.value)==null?void 0:l.comment)==null?void 0:u.user_avatar)||rt}),C=O(()=>{var l,u;return((u=(l=n.value)==null?void 0:l.comment)==null?void 0:u.goods_rank)||5}),K=O(()=>{var u,b;return(((b=(u=n.value)==null?void 0:u.comment)==null?void 0:b.thumbs)||[]).map(k=>
1typeof k=="string"?k:k.thumb).filter(Boolean)}),z=O(()=>{var l,u;return!!((u=(l=n.value)==null?void 0:l.goods)!=null&&u.goods_name)}),R=O(()=>{var u;const l=(u=n.value)==null?void 0:u.goods;return(l==null?void 0:l.goods_price)||(l==null?void 0:l.shop_price)||""}),d=O(()=>{var u;const l=(u=n.value)==null?void 0:u.goods;return(l==null?void 0:l.buy_url)||""}),y=O(()=>({cursor:d.value?"pointer":"default"})),E=(l,u)=>{var le,ce;const k=window.innerWidth,H=window.innerHeight,Q=((le=e.value)==null?void 0:le.offsetWidth)||320,G=((ce=e.value)==null?void 0:ce.offsetHeight)||200;let S=l+14,B=u+14;S+Q>k-8&&(S=l-Q-14),S<8&&(S=8),B+G>H-8&&(B=u-G-14),B<8&&(B=8),c.value={left:`${S}px`,top:`${B}px`}},h=(l,u)=>{E(l,u),_.value=!0},A=()=>{_.value=!1,s.value=!1,n.value=null,r&&clearTimeout(r),N=null,g+=1},$=l=>{n.value=l,s.value=!1},Y=l=>x(this,null,function*(){if(a.has(l)){s.value=!1,$(a.get(l));return}const u=++g;s.value=!0;try{const b=yield ie.getCommentPopupData({comment_id:l});if(u!==g||N!==l)return;if((b==null?void 0:b.code)===200&&b.data){a.set(l,b.data),$(b.data);return}A()}catch(b){u===g&&A()}}),fe=(l,u,b)=>{const k=String(l);if(p&&clearTimeout(p),!(k===N&&_.value)){if(r&&clearTimeout(r),N=k,a.has(k)){s.value=!1,h(u,b),$(a.get(k));return}r=setTimeout(()=>{h(u,b),Y(k)},250)}},Ee=()=>{r&&clearTimeout(r),p=setTimeout(A,120)},ge=(l,u)=>{_.value||E(l,u)},he=()=>{p&&clearTimeout(p),r&&clearTimeout(r)},we=()=>{p=setTimeout(()=>{A(),v()},120)},Te=()=>{d.value&&window.open(d.value,"_blank")};return t({onPillEnter:fe,onPillLeave:Ee,onMarqueeMove:ge}),(l,u)=>{var b,k,H,Q,G;return f(),m("div",{ref_key:"popupRef",ref:e,class:D(["review-popup",{visible:_.value,loading:s.value}]),style:Z(c.value),onMouseenter:he,onMouseleave:we},[u[1]||(u[1]=i("div",{class:"popup-loading"},[i("div",{class:"popup-loading-dot"}),i("div",{class:"popup-loading-dot"}),i("div",{class:"popup-loading-dot"})],-1)),n.value?(f(),m("div",Xe,[i("div",Ze,[i("img",{class:"review-popup-avatar",src:I.value,alt:"avatar"},null,8,Je),i("div",null,[i("div",et,M(((b=n.value.comment)==null?void 0:b.username)||"Anonymous"),1),i("div",tt,[(f(),m(U,null,q(5,S=>i("span",{key:S},M(S<=C.value?"â
":"â"),1)),64))])])]),(k=n.value.comment)!=null&&k.title?(f(),m("div",nt,M(n.value.comment.title),1)):F("",!0),i("div",st,M(((H=n.value.comment)==null?void 0:H.content)||""),1),K.value.length?(f(),m("div",ot,[(f(!0),m(U,null,q(K.value,(S,B)=>(f(),m("img",{key:`${S}-${B}`,src:S,alt:"thumb"},null,8,at))),128))])):F("",!0),z.value?(f(),m(U,{key:2},[u[0]||(u[0]=i("hr",{class:"review-popup-divider"},null,-1)),i("div",{class:D(["review-popup-goods",{"is-clickable":!!d.value}]),style:Z(y.value),onClick:Te},[(Q=n.value.goods)!=null&&Q.thumb?(f(),m("img",{key:0,class:"review-popup-goods-img",src:n.value.goods.thumb,alt:"goods"},null,8,it)):F("",!0),i("span",lt,M((G=n.value.goods)==null?void 0:G.goods_name),1),R.value?(f(),m("span",ct,M(R.value),1)):F("",!0)],6)],64)):F("",!0)])):F("",!0)],38)}}}),_t=/^[^\s@]+@[^\s@]+\.[^\s@]+$/,pt=()=>{const{$message:o,$track:t}=ae(),{t:e}=V(),v=T(""),_=T(""),s=T(!1),n=()=>v.value.trim()?_.value.trim()?_t.test(_.value.trim())?!0:(o.warning(e("MAILBOX_FORMAT_ERROR")),!1):(o.warning(e("ENTER_EMAIL")),!1):(o.warning(e("ENTER_YOUR_ACCOUNT_NUMBER")),!1),c=(p,r="")=>{t("order_review_verify",{verify_type:"both",verify_value:[`email:${_.value.trim()}`,`order:${v.value.trim()}`],verify_result:p,verify_error:r,order_id:v.value.trim()})};return{orderSn:v,email:_,submitting:s,submit:()=>x(void 0,null,function*(){var p;if(!n())return!1;s.value=!0;try{const r=yield ie.checkOrderAllowComment({order_sn:v.value.trim(),email:_.value.trim()});if((r==null?void 0:r.code)===200&&((p=r.data)!=null&&p.comment_page_url))return c("success"),window.xpstoreNavigateTo(r.data.comment_page_url),!0;const N=(r==null?void 0:r.msg)||(r==null?void 0:r.message)||e("OPERATION_FAILED");return c("fail",N),o.error(N),!1}catch(r){return c("fail",e("OPERATION_FAILED")),o.error(e("OPERATION_FAILED")),!1}finally{s.value=!1}})}},dt={class:"form-group"},vt=P({__name:"InviteVerifyForm",setup(o){const{t}=V(),{$track:e}=ae(),{orderSn:v,email:_,submitting:s,submit:n}=pt(),c={element_type:"OBS-MktReg-ReviewPro-1",element_id:"OBS-MktReg-ReviewPro-1_2",element_name:"è¯è®ºè¾å
¥åæäº¤"},a=()=>{v.value.trim()&&e("main_icon_click",X(j({},c),{click_name:"enter_order.no",click_type:"è¾å
¥è®¢åå·"}))},p=()=>{_.value.trim()&&e("main_icon_click",X(j({},c),{click_name:"enter_order.emali",click_type:"è¾å
¥è®¢åé®ç®±"}))},r=()=>x(this,null,function*(){e("main_icon_click",X(j({},c),{click_name:"submit",click_type:"æäº¤"})),yield n()});return(N,g)=>(f(),m("div",dt,[L(w(pe),{modelValue:w(v),"onUpdate:modelValue":g[0]||(g[0]=I=>
1_e(v)?v.value=I:null),class:"form-input",placeholder:w(t)("ENTER_ORDER_NUMBER"),onClick:a},null,8,["modelValue","placeholder"]),g[2]||(g[2]=i("span",{class:"form-and"},"&",-1)),L(w(pe),{modelValue:w(_),"onUpdate:modelValue":g[1]||(g[1]=I=>_e(_)?_.value=I:null),class:"form-input",type:"email",placeholder:w(t)("ENTER_EMAIL"),onClick:p},null,8,["modelValue","placeholder"]),L(w(Se),{type:"button",class:"btn-submit",loading:w(s),disabled:w(s),onClick:r},{default:ke(()=>[Oe(M(w(t)("SUBMIT")),1)]),_:1},8,["loading","disabled"])]))}}),mt={class:"rules-container lazy-bg"},ft={class:"rules-title"},Et={class:"rules-list"},gt="https://resource.xp-pen.com/img/active_list/comment/section03_dialog.webp",ht="https://resource.xp-pen.com/img/active_list/comment/section03_dialog_m.webp",wt=P({__name:"InviteRules",setup(o){const t=["COMMENT_EVENT_RULE_1","COMMENT_EVENT_RULE_2","COMMENT_EVENT_RULE_3","COMMENT_EVENT_RULE_4","COMMENT_EVENT_RULE_5","COMMENT_EVENT_RULE_6"],{t:e}=V(),v=T(!1),_=()=>{typeof window!="undefined"&&(v.value=window.innerWidth<=768)},s=O(()=>v.value?ht:gt);return W(()=>{_(),window.addEventListener("resize",_)}),J(()=>{window.removeEventListener("resize",_)}),(n,c)=>{const a=ee("lazy");return te((f(),m("div",mt,[i("h3",ft,M(w(e)("RULES_AND_REGULATIONS")),1),i("ul",Et,[(f(),m(U,null,q(t,p=>i("li",{key:p},M(w(e)(p)),1)),64))])])),[[a,s.value,"background-image"]])}}}),Tt={id:"faqs",class:"section-4"},yt={class:"section-title"},Mt={class:"faq-container"},Nt={class:"faq-q"},bt={class:"faq-a"},Rt={key:0,class:"faq-note"},It=P({__name:"InviteFaq",setup(o){const{t}=V(),e=[{questionKey:"COMMENT_FAQ_QUESTION_1",answerKey:"COMMENT_FAQ_ANSWER_1",noteKey:"COMMENT_FAQ_NOTE_1"},{questionKey:"COMMENT_FAQ_QUESTION_2",answerKey:"COMMENT_FAQ_ANSWER_2"},{questionKey:"COMMENT_FAQ_QUESTION_3",answerKey:"COMMENT_FAQ_ANSWER_3"},{questionKey:"COMMENT_FAQ_QUESTION_4",answerKey:"COMMENT_FAQ_ANSWER_4"}];return(v,_)=>(f(),m("section",Tt,[i("h2",yt,M(w(t)("BUY_FAQ")),1),i("div",Mt,[(f(),m(U,null,q(e,s=>i("div",{key:s.questionKey,class:"faq-item"},[i("div",Nt,M(w(t)(s.questionKey)),1),i("div",bt,M(w(t)(s.answerKey)),1),s.noteKey?(f(),m("span",Rt,M(w(t)(s.noteKey)),1)):F("",!0)])),64))])]))}}),kt={id:"attentions",class:"section-5"},Ot={class:"attentions-content"},At={class:"attentions-title"},St={class:"attentions-list"},Lt=P({__name:"InviteAttentions",setup(o){const{t}=V(),e=["COMMENT_ATTENTION_1","COMMENT_ATTENTION_2","COMMENT_ATTENTION_3","COMMENT_ATTENTION_4","COMMENT_ATTENTION_5","COMMENT_ATTENTION_6"];return(v,_)=>(f(),m("section",kt,[i("div",Ot,[i("div",At,M(w(t)("COMMENT_ATTENTION")),1),i("ol",St,[(f(),m(U,null,q(e,s=>i("li",{key:s},M(w(t)(s)),1)),64))])])]))}}),Ct={class:"invite-comment-page"},$t={id:"guide",class:"section-3 lazy-bg"},Ut={class:"section-title"},Pt="https://resource.xp-pen.com/img/active_list/comment/section03.webp",qt="https://resource.xp-pen.com/img/active_list/comment/section03_m.webp",Jt=P({__name:"invite_comment",setup(o){return x(this,null,function*(){var N;let t,e;const _=((N=Le().siteInfo)==null?void 0:N.lang)||"";Ce.inviteCommentSites.includes(_)||([t,e]=Ae(()=>$e("/")),yield t,e());const{t:s}=V(),n=T(null),c=T(!1),a=T(null);ne(de,n),ne(ve,()=>{var g;return(g=a.value)==null?void 0:g.call(a)}),ne(me,g=>{a.value=g});const p=()=>{typeof window!="undefined"&&(c.value=window.innerWidth<=768)},r=O(()=>c.value?qt:Pt);return W(()=>{p(),window.addEventListener("resize",p)}),J(()=>{window.removeEventListener("resize",p)}),(g,I)=>{const C=ee("lazy");return f(),m("div",Ct,[L(ut,{ref_key:"reviewPopupRef",ref:n},null,512),L(Be),L(Fe),L(je),te((f(),m("section",$t,[i("h2",Ut,M(w(s)("PARTICIPATING_GUIDE_TIPS")),1),L(vt),L(wt)])),[[C,r.value,"background-image"]]),L(It),L(Lt)])}})}});export{Jt 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.