1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/js/download-domain-selection.BIZAKez_.js","assets/js/index.Dv5Sry5W.js","assets/js/vendor.COY3MdS1.js","assets/js/react.Bv3hut0-.js","assets/js/react-dom.DXJIwbvq.js","assets/js/common.D5yFGvoB.js","assets/js/react-router.BEy_0y0-.js","assets/js/use-imperative-modal.DoP2kSTV.js","assets/js/antd.6TpjgyT1.js","assets/js/index.d2wMQvy7.js","assets/js/index.LJ61i_Py.js","assets/js/index.DmDGvcKj.js","assets/js/wordpress.nFTt1Xm5.js","assets/js/ocpc.60N5599d.js","assets/js/yandex.BY4vNS6v.js","assets/js/use-common-modal.B5Rh69hL.js","assets/css/use-common-modal.CHrwr02-.css","assets/js/use-report-bi.18Lw5SCw.js"])))=>i.map(i=>d[i]); 2import{j as o,r as x}from"./react.Bv3hut0-.js";import{u as P}from"./use-imperative-modal.DoP2kSTV.js";import{N,a as F}from"./react-router.BEy_0y0-.js";import{ai as U,aC as D,aD as B,am as $,aE as W,ad as T,ar as Y}from"./vendor.COY3MdS1.js";import{R as E}from"./index.d2wMQvy7.js";import{S as j}from"./index.LJ61i_Py.js";import{a as K,M as Z}from"./index.DmDGvcKj.js";import{W as q,M as V}from"./wordpress.nFTt1Xm5.js";import{aK as A,aQ as X}from"./react-dom.DXJIwbvq.js";import{r as G,h as v}from"./index.Dv5Sry5W.js";import{d as z}from"./ocpc.60N5599d.js";import{g as H,u as Q,a as J,s as e2}from"./yandex.BY4vNS6v.js";import{u as t2}from"./use-common-modal.B5Rh69hL.js";import{u as n2}from"./use-report-bi.18Lw5SCw.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._armsRumDebugIds=e._armsRumDebugIds||{},e._armsRumDebugIds[t]="65020634-894a-4720-9707-26a4549007e9",e._armsRumDebugIdIdentifier="armsRum-uuid-65020634-894a-4720-9707-26a4549007e9")}catch{}})();const o2="data:image/svg+xml,%3csvg%20width='19'%20height='15'%20viewBox='0%200%2019%2015'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Group%201597882292'%3e%3cpath%20id='Vector'%20d='M16.0846%201.1676C14.8497%200.6168%2013.5499%200.224766%2012.2164%200.000874877C12.2042%20-0.00123221%2012.1917%200.000488685%2012.1805%200.00580075C12.1693%200.0107315%2012.1599%200.0191121%2012.1538%200.0297264C11.9877%200.318242%2011.8019%200.695423%2011.6724%200.991679C10.2323%200.779152%208.76871%200.779152%207.32853%200.991679C7.18409%200.662392%207.02128%200.341471%206.84087%200.0304301C6.83458%200.0199351%206.82526%200.0115931%206.81413%200.00650444C6.80313%200.00150058%206.79091%20-0.000210219%206.77895%200.00157857C5.44547%200.224329%204.14582%200.616162%202.91144%201.1676C2.90103%201.17188%202.89218%201.17925%202.8861%201.18871C0.423167%204.7649%20-0.252381%208.25241%200.078356%2011.697C0.0793226%2011.7056%200.0820739%2011.714%200.0864351%2011.7215C0.0907963%2011.729%200.096672%2011.7355%200.103689%2011.7406C1.54428%2012.7765%203.14779%2013.5645%204.84801%2014.072C4.85996%2014.0752%204.87259%2014.0749%204.88435%2014.071C4.8961%2014.0671%204.90647%2014.0599%204.91415%2014.0502C5.28008%2013.5653%205.60589%2013.0537%205.88525%2012.5161C5.8913%2012.505%205.89347%2012.4922%205.89143%2012.4797C5.88939%2012.4672%205.88326%2012.4558%205.874%2012.4471C5.8679%2012.4415%205.86072%2012.4372%205.85288%2012.4345C5.3416%2012.2446%204.84588%2012.0152%204.3702%2011.7484C4.35733%2011.7411%204.34766%2011.7292%204.3431%2011.7152C4.33854%2011.7011%204.33942%2011.6858%204.34557%2011.6724C4.34973%2011.6635%204.35601%2011.6557%204.36386%2011.6499C4.46379%2011.5774%204.56371%2011.5021%204.65871%2011.4247C4.66728%2011.4183%204.67739%2011.4142%204.68802%2011.413C4.69865%2011.4117%204.70942%2011.4134%204.71923%2011.4176C7.82957%2012.7969%2011.1953%2012.7969%2014.2684%2011.4176C14.2784%2011.413%2014.2894%2011.4112%2014.3003%2011.4125C14.3113%2011.4137%2014.3216%2011.4179%2014.3303%2011.4247C14.4253%2011.5007%2014.5245%2011.5774%2014.6259%2011.6499C14.6329%2011.6555%2014.6399%2011.6632%2014.6435%2011.6717C14.6477%2011.6804%2014.6497%2011.6901%2014.6491%2011.6998C14.6487%2011.7096%2014.6459%2011.7191%2014.641%2011.7276C14.6361%2011.736%2014.6292%2011.7432%2014.6209%2011.7484C14.1463%2012.0172%2013.6501%2012.2462%2013.1375%2012.4331C13.1256%2012.4373%2013.1152%2012.4452%2013.108%2012.4556C13.102%2012.4644%2013.0985%2012.4748%2
2013.098%2012.4854C13.0975%2012.4961%2013.1%2012.5068%2013.1052%2012.5161C13.3902%2013.053%2013.7167%2013.5639%2014.0749%2014.0495C14.0825%2014.0594%2014.093%2014.0668%2014.105%2014.0705C14.1169%2014.0743%2014.1298%2014.0743%2014.1417%2014.0706C15.8447%2013.5648%2017.4508%2012.777%2018.8931%2011.7399C18.9001%2011.7351%2018.9059%2011.7288%2018.9103%2011.7215C18.9147%2011.7143%2018.9174%2011.7061%2018.9184%2011.6977C19.3139%207.71479%2018.2548%204.25542%2016.1085%201.18942C16.1037%201.17902%2016.0952%201.17076%2016.0846%201.1662V1.1676ZM6.34969%209.59929C5.41378%209.59929%204.64182%208.7647%204.64182%207.73801C4.64182%206.71273%205.399%205.87744%206.34969%205.87744C7.30742%205.87744%208.07234%206.72047%208.05686%207.73942C8.05686%208.7647%207.30039%209.59929%206.34969%209.59929ZM12.6625%209.59929C11.7266%209.59929%2010.9554%208.7647%2010.9554%207.73801C10.9554%206.71273%2011.7112%205.87744%2012.6625%205.87744C13.621%205.87744%2014.3852%206.72047%2014.3704%207.73942C14.3704%208.7647%2013.6217%209.59929%2012.6625%209.59929Z'%20fill='var(--fill-0,%20white)'/%3e%3c/g%3e%3c/svg%3e",a2="data:image/svg+xml,%3csvg%20width='60'%20height='60'%20viewBox='0%200%2060%2060'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M17.5016%2059.4662C16.2863%2060.2283%2014.7462%2060.1696%2013.5961%2059.3123C11.6239%2057.8422%208.55568%2055.4618%206.54658%2053.4527C4.53748%2051.4436%202.15699%2048.3754%200.686847%2046.4032C-0.170453%2045.2532%20-0.229168%2043.7131%200.532947%2042.4978C1.92586%2040.2768%204.38388%2036.4514%207.32218%2032.2869C8.3378%2043.0889%2016.4732%2051.7542%2026.8535%2053.2798C23.0264%2055.9504%2019.569%2058.1697%2017.5016%2059.4662Z'%20fill='%233CD1FF'/%3e%3cpath%20d='M33.19%2053.3108C37.0003%2055.9681%2040.4397%2058.1757%2042.499%2059.4671C43.7136%2060.2288%2045.2528%2060.1706%2046.4025%2059.314C48.3712%2057.8473%2051.4338%2055.4716%2053.4527%2053.4527C55.4716%2051.4339%2057.8473%2048.3713%2059.314%2046.4026C60.1706%2045.253%2060.2288%2043.7138%2059.4671%2042.4992C58.1108%2040.3365%2055.7439%2036.6516%2052.9069%2032.6134C51.7516%2043.3384%2043.5694%2051.8898%2033.19%2053.3108Z'%20fill='%233CD1FF'/%3e%3cpath%20d='M52.9069%2027.3865C55.7439%2023.3484%2058.1108%2019.6635%2059.4671%2017.5008C60.2288%2016.2862%2060.1705%2014.747%2059.3139%2013.5974C57.8472%2011.6287%2055.4715%208.56613%2053.4526%206.54725C51.4337%204.52837%2048.3711%202.15265%2046.4024%200.685968C45.2527%20-0.170551%2043.7135%20-0.228824%2042.499%200.532859C40.4396%201.82427%2037.0002%204.0319%2033.1899%206.68923C43.5692%208.11016%2051.7515%2016.6615%2052.9069%2027.3865Z'%20fill='%233CD1FF'/%3e%3cpath%20d='M26.8537%206.72023C23.0265%204.04967%2019.5691%201.8303%2017.5016%200.533766C16.2864%20-0.228342%2014.7463%20-0.16963%2013.5962%200.687662C11.624%202.15779%208.55575%204.53825%206.54665%206.54733C4.53755%208.5564%202.15706%2011.6246%200.686917%2013.5968C-0.170385%2014.7469%20-0.229101%2016.2869%200.533016%2017.5022C1.92591%2019.7232%204.38391%2023.5485%207.32219%2027.713C8.33789%2016.9111%2016.4733%208.24581%2026.8537%206.72023Z'%20fill='%233CD1FF'/%3e%3ccircle%20cx='30.5'%20cy='30.5'%20r='2.5'%20fill='%233CD1FF'/%3e%3ccircle%20cx='38.5'%20cy='30.5'%20r='2.5'%20fill='%233CD1FF'/%3e%3ccircle%20cx='22.5'%20cy='30.5'%20r='2.5'%20fill='%233CD1FF'/%3e%3c/svg%3e",r2=({className:e,onCancel:t})=>{const{t:n}=A(),a=()=>{t==null||t()};return o.jsxs("div",{className:U(e,"flex flex-col items-center p-[20px_16px]"),children:[o.jsxs("div",{className:"flex w-full flex-col items-center gap-[24px]",children:[o.jsx("div",{className:"relative size-[60px] shrink-0",children:o.jsx(j,{alt:"",width:60,height:60,loading:"eager",className:"block size-full",src:a2})}),o.jsx("div",{className:"flex w-full flex-col items-start gap-[8px] text-center",children:o.jsx("p",{className:"w-full text-[18px] font-semibold leading-[24px] tracking-[0.18px] text-white",children:n("download.prompt_title")})}),o.jsxs("div",{className:"flex w-full flex-col items-start gap-[8px] text-left",children:[o.jsx("p",{className:"w-full text-[14px] tracking-[0.14px] text-white",children:n("download.download_trouble_title")}),o.jsx("p",{className:"w-full text-[12px] tracking-[0.12px] text-[rgba(255,255,255,0.6)]",children:n("download.download_trouble_tip")})]}),o.jsxs("div",{className:"flex w-full flex-col items-start gap-[8px] text-left",children:[o.jsx("p",{className:"w-full text-[14px] tracking-[0.14px] text-white",children:n("download.trouble_title")}),o.jsxs("div",{className:"w-full text-[12px]",children:[o.jsx(N,{to:q,target:"_blank",className:"block",children:o.jsx("span",{className:"text-text-3 hover:text-text-1",children:o.jsx(E,{children:n("download.question_1")})})}),o.jsx(N,{to:V,target:"_blank",className:"block",children:o.jsx("span",{className:"text-text-3 hover:text-text-1",children:o.jsx(E,{children:n("download.question_2")})})})]})]})]}),o.jsx("p",{className:"mt-[32px] w-full text-center text-[12px] tracking-[0.12px] text-[rgba(255,255,255,0.85)]",children:n("download.contact_us")}),o.jsxs("div",{className:"mt-2 flex w-full flex-col gap-[12px]",children:[o.jsxs(N,{to:K,target:"_blank",className:"flex h-[48px] w-full items-center justify-center gap-[2px] rounded-[8px] bg-[#5765ff] px-[10px] py-[16px] hover:bg-[#737EFF] active:bg-[#5765ff]",children:[o.jsx(j,{alt:"",width:26,height:26,loading:"eager",className:"size-[26px]",src:o2}),o.jsx("span",{className:"text-[16px] font-semibold leading-[16
2px] tracking-[0.16px] text-white",children:n("download.modal_confirm")})]}),o.jsx("div",{className:"flex h-[48px] w-full cursor-pointer items-center justify-center rounded-[8px] bg-text-7 px-[10px] py-[16px] hover:bg-text-6",onClick:a,children:o.jsx("span",{className:"text-[16px] font-semibold leading-[16px] tracking-[0.16px] text-white",children:n("download.modal_cancel")})})]})]})};function l2(){const{showModal:e}=P({FC:r2,modalProps:{width:"30rem",centered:!0}});return[e]}const j2=({className:e,children:t})=>{const[n]=l2(),a=()=>{const s=n({onCancel:()=>{s.destroy()}})};return o.jsx("div",{className:e,onClick:a,children:t})};var l=(e=>(e.BAI_DU="baidu",e.QH_360="360",e.GOOGLE="google",e.BING="bing",e.YANDEX="yandex",e.REDDIT="reddit",e))(l||{});async function s2(){try{const e=await G.get("/api/common_bll/v1/download_url/newest/by_channel",{searchParams:{channel_key:"global_web"}});if(!e.ok)return null;const t=await e.json();if(typeof(t==null?void 0:t.channel_client_package_link)!="string")return null;const n=new URL(t.channel_client_package_link);return n.protocol==="https:"||n.protocol==="http:"?n.href:null}catch{return null}}const i2=["AW-17329470095/R-JOCKb98vAaEI_1qsdA","AW-16858706979/iHp4CP2HqfcaEKPo7eY-","AW-16858613387/rwMrCLqNrfcaEIuN6OY-"],L={COUNTER_ID:"102018162",DOWNLOAD_EVENT:"download_click"};function h(){let e="";return $&&(e=navigator.userAgent),e}const b={isAndroid:()=>D.isAndroid(h()),isIOS:()=>D.isIOS(h()),isMac:()=>D.isMac(h()),isWindows:()=>D.isWindows(h()),isMobile:()=>B.isMobile(h())};function c2(e,t){if(!e||!t)return e;try{const n=new URL(e);return!t.candidates.includes(n.origin)||n.username||n.password?e:e.replace(/^https?:\/\/[^/?#]+/i,t.origin)}catch{return e}}function L2(e){if(typeof e!="string"||!e.trim())return null;try{const t=new URL(e);return!["http:","https:"].includes(t.protocol)||t.username||t.password||t.pathname!=="/"||t.search||t.hash?null:t.origin}catch{return null}}const y="https://xmod-static.xhubplay.com/upload/20250512115546/app_version/xmodhubInstaller__20250509_100700_channel100142.exe",d2=e=>{if(!e||typeof e!="object"||!("channel_client_package_link"in e))return null;const t=e.channel_client_package_link;if(typeof t!="string"||!t.trim())return null;try{const n=new URL(t.trim());return n.protocol!=="http:"&&n.protocol!=="https:"?null:n.toString()}catch{return null}},u2=async e=>{try{const t=await e();return t.ok&&d2(await t.json())||y}catch{return y}},M=new Map,R=new Map;let S;const p2=e=>{let t=M.get(e);return t||(t=u2(()=>G.get("/api/common_bll/v1/download_url/xhub/by_channel",{searchParams:{channel_key:e}})),M.set(e,t)),t},m2=(e,t)=>{const n=`${e}:${t}`;let a=R.get(n);return a||(a=z(e,t).then(async s=>{if(!s.ok)return null;const c=await s.json();return{aid:c.aid,platform_id:c.platform_id}}).catch(()=>null),R.set(n,a)),a},M2=(e="default")=>{const[t,n]=x.useState(""),[a,s]=x.useState(null),c=c2(t,a),w=W(c),{lang:m}=F(),{t:g}=A("download"),[I]=t2(),{run:C}=n2();x.useEffect(()=>{let r=!0;return T(async()=>{const{getDownloadDomainSelection:d}=await import("./download-domain-selection.BIZAKez_.js");return{getDownloadDomainSelection:d}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17])).then(({getDownloadDomainSelection:d})=>d()).then(d=>{r&&s(d)}).catch(()=>{}),()=>{r=!1}},[]),x.useEffect(()=>{let r=!0;return(async()=>{if(n(""),e==="home"&&b.isMobile()){S??(S=s2());const p=await S;if(!r)return;n(p??"");return}if(e!=="channel"&&b.isMobile()){n(Z);return}const u=new URLSearchParams(window.location.search),_=v(),f=f2({gclid:u.get("gclid")??"",yclid:u.get("yclid")??"",msclkid:u.get("msclkid")??"",rdt_cid:u.get("rdt_cid")??""},_);let i=await p2(_);if(!r||(n(i),!f))return;const k=await m2(f.platformCode,f.clickSource);if(!(!r||!k)){try{const p=new URL(i);p.searchParams.set("name",`xmodhubInstaller_platformid${k.platform_id}_aid${k.aid}_win`),i=p.toString()}catch(p){console.error("è·åOCPCä¸è½½ä¿¡æ¯å¤±è´¥",p)}n(i)}})(),()=>{r=!1}},[e]);const O=x.useCallback((r,d)=>{if(!t)return r.preventDefault(),r.stopPropagation(),!1;const{clickName:u,bu:_,extraInfo:f}=d;if(e==="home"&&b.isMobile())return r.stopPropagation(),C({click_name:"download_click",action_extra_info:{device_kind:"Mobile",region:m||"",event_name:"é¦é¡µç§»å¨ç«¯ä¸è½½æé®ç¹å»"}}),!0;if(b.isMobile()){r.preventDefault(),r.stopPropagation();const i=I({text:g("mobile_download_modal_title"),confirm:!0,confirmText:g("mobile_download_copy"),cancel:!0,
2cancelText:g("mobile_download_close"),onConfirm:()=>{Y(w.current,{debug:!0}),X.open({content:"Copy successful"}),C({click_name:"web_mobile_copyLink_click",action_extra_info:{channel_id:v()}}),i.destroy()},onCancel:()=>{i.destroy()}},{width:"90%"});return!1}C({click_name:u,action_extra_info:{device_kind:"PC",channel_id:v(),region:m||"",...f}});for(const i of i2)H(i);return Q(),J(L.COUNTER_ID,L.DOWNLOAD_EVENT),_&&e2({action:u}),!0},[t,w,m,g,I,C,e]);return{downloadLink:c,isDownloadReady:!!t,handleDownload:O}},f2=(e,t)=>{const{gclid:n,yclid:a,msclkid:s,rdt_cid:c}=e,w={[l.GOOGLE]:{platformCode:`${l.GOOGLE}-${t}`,clickSource:n},[l.YANDEX]:{platformCode:`${l.YANDEX}-${t}`,clickSource:a},[l.BING]:{platformCode:`${l.BING}-${t}`,clickSource:s},[l.REDDIT]:{platformCode:`${l.REDDIT}-${t}`,clickSource:c},default:null};function m(){return n?l.GOOGLE:a?l.YANDEX:s?l.BING:c?l.REDDIT:"default"}return w[m()]};export{j2 as D,L2 as p,M2 as u}; 3//# sourceMappingURL=use-xmod-download.C4Nq6cb5.js.map
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.