PageSourceSearch

https://www.xp-pen.com/store/_nuxt/pFhEo5n5.js

js xp-pen.com collected 2026-10-02 03:00:17 UTC 12,529 bytes, 1 lines download raw bytes

1var we=Object.defineProperty;var de=Object.getOwnPropertySymbols;var xe=Object.prototype.hasOwnProperty,ke=Object.prototype.propertyIsEnumerable;var _e=(t,o,a)=>o in t?we(t,o,{enumerable:!0,configurable:!0,writable:!0,value:a}):t[o]=a,T=(t,o)=>{for(var a in o||(o={}))xe.call(o,a)&&_e(t,a,o[a]);if(de)for(var a of de(o))ke.call(o,a)&&_e(t,a,o[a]);return t};var N=(t,o,a)=>new Promise((y,n)=>{var c=s=>{try{_(a.next(s))}catch(v){n(v)}},p=s=>{try{_(a.throw(s))}catch(v){n(v)}},_=s=>s.done?y(s.value):Promise.resolve(s.value).then(c,p);_((a=a.apply(t,o)).next())});import{u as Se,d as $e}from"./BeJEu_AV.js";import{k as Ce,b as fe,s as Ie,_ as Z,h as ge}from"./CI4INhXw.js";import{p as pe}from"./DqT21RLE.js";import{m as S,C as H,d as X,f as me,n as Be,z as Ee,Y as g,K as d,R as r,N as K,u as C,q as Le,a4 as ve,O as $,S as w,F as G,Z as Y,J as V,L as z,a5 as W,B as Me,a3 as De,_ as Ne}from"./t3VSzEK3.js";import{F as Oe,S as je,a as Te}from"./BPlhCd-a.js";import{P as ze}from"./DJUB8rcY.js";import{g as Ae,r as Ue}from"./B2JnC6tr.js";(function(){try{var t=typeof window!="undefined"?window:typeof global!="undefined"?global:typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:{};t.SENTRY_RELEASE={id:"b468470909019417df7bb10f17c79e1e98ad4215"};var o=new t.Error().stack;o&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[o]="37372f39-27eb-4fdb-895b-5cd00b13abe6",t._sentryDebugIdIdentifier="sentry-dbid-37372f39-27eb-4fdb-895b-5cd00b13abe6")}catch(a){}})();function qe(){const{$message:t}=Ce(),o=Se(),a=fe(),{isFailedPay:y,failedPayMessage:n,orderInfo:c}=Ie(o),p=S(!1),_=S(!1),s=S(null),v=S(!0),e=S(null),i=S(null),h=S(null),O=m=>{e.value=m},l=m=>{e.value&&(e.value.extraParams=m)},E=()=>({layout:"vertical",color:"gold",shape:"rect",label:"checkout",size:"small",tagline:!1}),Q=()=>N(this,null,function*(){try{if(_.value=!0,!e.value)throw new Error("支付配置未提供");const m=e.value.currency,A=e.value.locale,U=e.value.clientId;return new Promise((x,q)=>{const te=document.querySelector('script[src*="paypal.com/sdk/js"]');te&&(document.head.removeChild(te),p.value=!1);const I=document.createElement("script");I.src=`https://www.paypal.com/sdk/js?client-id=${U}&currency=${m}&commit=false&components=buttons,messages&locale=${A}&disable-funding=card`,I.async=!0,I.onload=()=>{p.value=!0,_.value=!1,x(!0)},I.onerror=R=>{s.value="加载PayPal SDK失败",_.value=!1,q(R)},document.head.appendChild(I)})}catch(m){throw s.value=m.message||"初始化PayPal快捷支付失败",_.value=!1,m}});return{isInitialized:p,isLoading:_,error:s,showPayButton:v,paymentConfig:e,lastShippingInfo:i,setPaymentConfig:O,updatePaymentParams:l,renderPayPalButton:te=>N(this,[te],function*({containerId:m,onClick:A,onSuccess:U,onError:x,onCancel:q}){var I,R,ae,ne,oe,se,ie,re,le,ce;if(!e.value)return Promise.reject(new Error("支付配置未提供"));try{if(yield Q(),!((I=window.paypal)!=null&&I.Buttons))throw new Error("PayPal Buttons API不可用");const B=document.getElementById(m);if(!B){const u=document.createElement("div");return u.id=m,u.style.width="100%",document.body.appendChild(u),Promise.reject(new Error(`找不到容器: ${m},已创建临时容器,请重试`))}B.innerHTML="";const ue=window.paypal.Buttons({style:E(),onClick:()=>{A&&A()},createOrder:(u,L)=>N(this,null,function*(){var k;try{const b=T({},((k=e.value)==null?void 0:k.extraParams)||{}),P=yield pe.createPayNowOrder(b);if(P.code===200)return P.data.order_id;throw y.value=!0,n.value=P.msg||"创建PayPal订单失败",t.error(P.msg||"创建PayPal订单失败",6e3,"filled"),new Error(P.msg||"创建PayPal订单失败")}catch(b){throw x&&x(b),b}}),onApprove:(u,L)=>N(this,null,function*(){var k,b,P,j;try{const M=$e(),f=T({},((k=e.value)==null?void 0:k.extraParams)||{}),F=f.bundle_goods.length>0?`${f.goods_id}_${f.sku_id}|${f.bundle_goods.map(D=>`${D.replace("|","_")}`).join("|")}`:"";if(yield M.addCart(T({goodsId:f.goods_id,goodsNum:f.goods_number,skuId:f.sku_id,bundleInfo:f.bundle_goods.join(":::"),bundleUniqueId:btoa(F),dataAction:1},Array.isArray(f.virtualgoodsids)&&f.virtualgoodsids.length?{virtualgoodsids:f.virtualgoodsids}:{}))){const D=u.orderID,he=i.value||{},be=encodeURI(JSON.stringify({address_info:he,payment_info:u,country:(b=h.value)==null?void 0:b.country_id,province:(P=h.value)==null?void 0:P.province_id,province_name:(j=h.value)==null?void 0:j.province_name})),Pe={lastShippingInfo:i.value};U&&U(u),window.xpstoreNavigateTo(`/Order/add?paypal_order_id=${D}&address_info=${window.btoa(encodeURI(JSON.stringify(Pe)))}&payment_info=${window.btoa(be)}`)}}catch(M){throw x&&x(M),M}}),onShippingChange:(u,L)=>N(this,null,function*(){var k,b,P,j,M,f,F,J;i.value=u;try{const D=yield pe.checkGoodsAddress({goods_id:(b=(k=e.value)==null?void 0:k.extraParams)==null?void 0:b.goods_id,sku_id:(j=(P=e.value)==null?void 0:P.extraParams)==null?void 0:j.sku_id,shipping_info:u,goods_price:(f=(M=e.value)==null?void 0:M.extraParams)==null?void 0:f.goods_price,goods_number:(J=(F=e.value)==null?void 0:F.extraParams)==null?void 0:J.goods_number});return D.code===200?(h.value=D.data,L.resolve()):L.reject()}catch(D){return L.reject()}}),onCancel:()=>{q&&q()},onError:u=>{x&&x(u)}});if((R=window.paypal)!=null&&R.Messages&&((ne=(ae=a.siteInfo)==null?void 0:ae.paypal_config)!=null&&ne.buy_page_installment))try{const u=document.createElement("div");u.id=`${m}-message`,(oe=B.parentNode)==null||oe.insertBefore(u,B.nextSibling);
1const L=((ie=(se=e.value)==null?void 0:se.extraParams)==null?void 0:ie.goods_price)||0,k=((re=e.value)==null?void 0:re.currency)||"USD",b=((ce=(le=e.value)==null?void 0:le.extraParams)==null?void 0:ce.buyer_country)||"IT";window.paypal.Messages({amount:L,currency:k,placement:"product",buyerCountry:b,style:{layout:"text",logo:{type:"primary"}}}).render(`#${m}-message`)}catch(u){}if(!ue.isEligible())throw new Error("当前环境不支持PayPal按钮渲染");return yield ue.render(`#${m}`),!0}catch(B){return s.value=B.message||"渲染PayPal快捷支付按钮失败",x&&x(B),Promise.reject(B)}})}}const Re=H({__name:"PaypalQuickPay",props:{disabled:{type:Boolean,default:!1},paymentIcons:{type:Array,default:()=>[]},containerId:{type:String,default:()=>{var t;return`paypal-button-container-${Date.now()}-${(t=Math.random())==null?void 0:t.toString(36).substring(2,8)}`}},currency:{type:String,default:"USD"},locale:{type:String,default:"en_US"},clientId:{type:String,default:""},extraParams:{type:Object,default:()=>({})},showPayNow:{type:Boolean,default:!0}},emits:["payment-click","payment-success","payment-error","payment-cancel"],setup(t,{emit:o}){const a=fe(),y=X(()=>a.payList),n=t,c=o,p=S(null),_=S(!1),s=qe(),v=()=>N(this,null,function*(){if(!n.disabled)try{p.value=null,yield Le(),s.setPaymentConfig({code:"Paypal",currency:n.currency,locale:n.locale,clientId:n.clientId,extraParams:n.extraParams});let e=document.getElementById(n.containerId);if(!e){const i=document.createElement("div");i.id=n.containerId,i.className="w-full";const h=document.querySelector(".paypal-quick-pay");if(h)h.appendChild(i),e=i;else{p.value="无法创建PayPal按钮容器,请检查DOM结构",c("payment-error",new Error(p.value));return}}e.innerHTML!==""&&(e.innerHTML=""),yield s.renderPayPalButton({containerId:n.containerId,onClick:()=>{c("payment-click")},onSuccess:i=>{c("payment-success",i)},onError:i=>{p.value=i.message||"支付处理失败",c("payment-error",i)},onCancel:()=>{c("payment-cancel")}}),_.value=!0}catch(e){p.value=e.message||"初始化PayPal按钮失败",c("payment-error",e)}});return me(()=>n.extraParams,e=>{_.value&&s.updatePaymentParams(e)},{deep:!0}),me([()=>n.currency,()=>n.clientId,()=>n.locale,()=>n.disabled],([e,i,h,O],[l,E,Q,ee])=>{(e!==l||i!==E||h!==Q||ee&&!O)&&v()}),Be(()=>{n.disabled||setTimeout(()=>{var e,i;(i=(e=a.siteInfo)==null?void 0:e.paypal_config)!=null&&i.buy_page_pay_now&&n.showPayNow&&v()},0)}),Ee(()=>{const e=document.getElementById(n.containerId);e&&(e.innerHTML="")}),(e,i)=>(d(),g("div",null,[i[0]||(i[0]=r("div",{class:"paypal-quick-pay"},null,-1)),i[1]||(i[1]=r("div",{id:"paypal-message-container"},null,-1)),K(Oe,{payList:C(y)},null,8,["payList"])]))}}),Fe=Z(Re,[["__scopeId","data-v-0179cc24"]]),St=Object.freeze(Object.defineProperty({__proto__:null,default:Fe},Symbol.toStringTag,{value:"Module"})),Ve={key:0,class:"uiux2026-application uiux2026-module-gap"},He={class:"uiux2026-content"},Qe={key:0,class:"uiux2026-module-head"},Je={class:"uiux2026-module-title"},Ke={class:"application"},Ge={class:"text"},Ye={class:"ac_introduce"},We={key:0,class:"uiux2026-application__btn"},Ze={class:"img_div"},Xe={alt:"image"},et=H({__name:"style1",props:{module_info:{},module_items:{default:()=>[]}},setup(t){const o=t,{module_info:a,module_items:y}=o;return(n,c)=>{const p=ge,_=ve("lazy");return C(y).length?(d(),g("div",Ve,[r("div",He,[C(a).cms_module_title?(d(),g("div",Qe,[r("h2",Je,w(C(a).cms_module_title),1)])):$("",!0),r("div",Ke,[(d(!0),g(G,null,Y(C(y),(s,v)=>(d(),V(p,{key:v,class:"application-item","aria-label":"link",href:s.image_button_href},{default:z(()=>[r("div",Ge,[r("h3",null,w(s.module_item_title||""),1),r("div",Ye,w(s.module_item_desc||""),1),s.image_button_text?(d(),g("div",We,w(s.image_button_text||""),1)):$("",!0)]),r("div",Ze,[W(r("img",Xe,null,512),[[_,s.image_url||""]])])]),_:2},1032,["href"]))),128))])])])):$("",!0)}}}),ye=Z(et,[["__scopeId","data-v-e673b9ef"]]),tt={key:0,class:"uiux2026-application uiux2026-application--style2 uiux2026-module-gap"},at={key:0,class:"uiux2026-module-head uiux2026-content-inset"},nt={class:"uiux2026-module-title"},ot={class:"uiux2026-application__grid uiux2026-content-inset"},st={alt:"image",class:"uiux2026-application__card-bg"},it={class:"uiux2026-application__card-text"},rt={key:0,class:"uiux2026-application__card-desc"},lt={key:1,class:"uiux2026-application__btn"},ct={class:"uiux2026-application__carousel uiux2026-content-inset uiux2026-content-bleed-right"},ut={alt:"image",class:"uiux2026-application__card-bg"},dt={class:"uiux2026-application__card-text"},_t={key:0,class:"uiux2026-application__card-desc"},pt={key:1,class:"uiux2026-application__btn"},mt=H({__name:"style2",props:{module_info:{},module_items:{default:()=>[]}},setup(t){const o=t,{module_info:a}=o,y=X(()=>o.module_items||[]),n=[ze],c=`uiux2026-application__pagination-${Me().replace(/\W/g,"")}`,p=T({},Ae(`.${c}`)),_={768:{slidesPerView:2.3,spaceBetween:16},1024:{slidesPerView:3.1,spaceBetween:16}},s=e=>(e||"").replace(/<[^>]*>/g," ").replace(/\s+/g," ").trim(),v=e=>{Ue(e)};return(e,i)=>{const h=ge,O=ve("lazy");return y.value.length?(d(),g("section",tt,[C(a).cms_module_title?(d(),g("div",at,[r("h2",nt,w(C(a).cms_module_title),1)])):$("",!0),r("div",ot,[(d(!0),g(G,null,Y(y.value,(l,E)=>(d(),V(h,{key:`grid-${E}`,class:"uiux2026-application__card","aria-label":"link",href:l.image_button_href},{default:z(()=>[W(r("img",st,null,512),[[O,l.image_url||""]]),r("div",it,[r("h3",null,w(l.module_item_title||""),1),l.module_item_desc?(d(),g("p",rt,w(s(l.module_item_desc)),1)):$("",!0),l.image_button_text?(d(),g("span",lt,w(l.image_button_text),1)):$("",!0)])]),_:2},1032,["href"]))),128))]),r("div",ct,[K(C(Te),{modules:n,"slides-per-view":1.3,"slides-per-group":1,"space-between":16,breakpoints:_,observer:!0,"observe-parents":!0,"resize-observer":!0,"update-on-window-resize":!0,pagination:p,class:"uiux2026-application__swiper",onSwiper:v},{default:z(()=>
1[(d(!0),g(G,null,Y(y.value,(l,E)=>(d(),V(C(je),{key:`slide-${E}`,class:"uiux2026-application__slide"},{default:z(()=>[K(h,{class:"uiux2026-application__card","aria-label":"link",href:l.image_button_href},{default:z(()=>[W(r("img",ut,null,512),[[O,l.image_url||""]]),r("div",dt,[r("h3",null,w(l.module_item_title||""),1),l.module_item_desc?(d(),g("p",_t,w(s(l.module_item_desc)),1)):$("",!0),l.image_button_text?(d(),g("span",pt,w(l.image_button_text),1)):$("",!0)])]),_:2},1032,["href"])]),_:2},1024))),128))]),_:1}),r("div",{class:De(["uiux2026-pagination-line uiux2026-application__pagination",c])})])])):$("",!0)}}}),yt=Z(mt,[["__scopeId","data-v-b5b10ce3"]]),ft=H({__name:"index",props:{module_info:{},module_items:{default:()=>[]}},setup(t){const o=t,a={1:ye,2:yt},y=X(()=>{var c;const n=((c=o.module_info)==null?void 0:c.module_style_mode)||"1";return a[n]||ye});return(n,c)=>(d(),V(Ne(y.value),{module_info:n.module_info,module_items:n.module_items},null,8,["module_info","module_items"]))}}),$t=Object.freeze(Object.defineProperty({__proto__:null,default:ft},Symbol.toStringTag,{value:"Module"}));export{St as P,$t as i};

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.