import{V as N,a0 as A,a1 as E,r as d,P as w,W as j,m as c,$ as m,p as t,Z as o,ao as b,N as s,ap as u,ad as p,aQ as U,t as V,o as v,X as H,Y as M,aM as D,aN as O}from"./common.modules-adc6b33e.js";import{v as y,I as k,A as F,c9 as W,g as S,aF as q,_ as z}from"./page-activity-ActivityDetail-b9249b49.js";import"./native/index-0b5e3b14.js";import"./en-8e350547.js";window.getBuildInfo=function(){return{buildTime:"4/17/2025, 12:09:57 PM",branch:" commitId:8bf9f27a915f5dcd9b9436e446b585b05218b863"}};const G={class:"promotionShare__container"},J={class:"promotionShare__container-tips"},Q=["id"],X={class:"sContent"},Y=["src"],Z={class:"head1"},K=["innerHTML"],x={class:"head3"},ee=["src"],te=["src"],ne=["innerHTML"],oe=["id"],ae={class:"promotionShare__container-slogan"},se={class:"promotionShare__container-buttons"},ie=N({__name:"index",setup(I){const _=A();E();const h=d(0),g=d(""),f=d(!1);let r=d("");const $=e=>{},C=e=>{h.value=e.activeIndex},L=()=>{_.back()},P=w(()=>y().getProjectLogo);w(()=>y().getProjectName);const T=()=>{k(r.value.toString())};async function B(){const e=await F(W());if(e){g.value=e.data.landingPageUrl,f.value=e.data.isLandingPageEnabled,e.data.url.startsWith("http")?r.value=e.data.url:r.value=window.location.href.substring(0,window.location.href.lastIndexOf("/#/")+2)+"/"+e.data.url.substring(e.data.url.lastIndexOf("re"),e.data.url.length);for(let n=1;n<=3;n++)U.toCanvas(document.getElementById("qr-code"+n),r.value,i=>{i&&console.error(i)})}}B();const R=async e=>{var n=document.getElementById(e);(await V(()=>import("./chunk.html2-d07d15f7.js"),[]))(n,{useCORS:!0,x:0,y:0,width:n.offsetWidth,height:n.offsetHeight}).then(a=>{a.toDataURL("image/jpeg");const l=document.createElement("a");l.href=a.toDataURL("image/jpeg"),l.download="share.jpeg",document.body.appendChild(l),l.click()})};return(e,n)=>{const i=j("NavBar");return v(),c("div",G,[m(i,{title:e.$t("titleInvite"),"left-arrow":"",onClickLeft:L},null,8,["title"]),t("div",J,[t("p",null,o(e.$t("tipSwipeToPickBrochure")),1)]),m(s(O),{class:"my-swipe",slidesPerView:"auto",centeredSlides:!0,"space-between":20,onSwiper:$,onSlideChange:C},{default:b(()=>[(v(),c(H,null,M(3,a=>m(s(D),{key:a},{default:b(()=>[t("div",{class:"promotionShare__container-swiper",id:"share"+(a-1)},[p(` <img v-lazy="getIcons('promotion/promotionShare', 'poster')" /> `),t("div",X,[t("img",{class:"logo",src:P.value,alt:""},null,8,Y),t("div",Z,[t("div",null,o(e.$t("fairAndJust")),1),t("div",null,o(e.$t("openAndTransparent")),1)]),t("div",{class:"head2",innerHTML:e.$t("fullOddsReturnRate")},null,8,K),t("div",x,[t("div",null,[t("img",{class:"logo",src:s(S)("promotion","bank"),alt:""},null,8,ee),u(" "+o(e.$t("financialSecurity")),1)]),t("div",null,[t("img",{class:"logo",src:s(S)("promotion","trucktick"),alt:""},null,8,te),u(" "+o(e.$t("withdrawFast")),1)])]),t("div",{class:"head4",innerHTML:e.$t("highestRebate",[85])},null,8,ne)]),t("canvas",{id:"qr-code"+a},null,8,oe)],8,Q)]),_:2},1024)),64))]),_:1}),t("div",ae,[t("p",null,o(e.$t("inviteFriends")),1),t("p",null,[u(o(e.$t("divideBonus"))+" ",1),t("span",null,o(e.$t("tip10billion")),1),u(" "+o(e.$t("commission")),1)])]),t("div",se,[s(q)()?p("v-if",!0):(v(),c("div",{key:0,class:"share",onClick:n[0]||(n[0]=a=>R("share"+h.value))},o(e.$t("shareInvitationPoster")),1)),t("div",{class:"cpy",onClick:T},o(e.$t("copyInvitationLink")),1),f.value?(v(),c("div",{key:1,class:"cpy",onClick:n[1]||(n[1]=a=>s(k)(g.value))},o(e.$t("clanding")),1)):p("v-if",!0),p(" <div>{{ $t('copyInvitationLink') }}</div> ")])])}}});const ue=z(ie,[["__scopeId","data-v-3b74cce6"],["__file","/usr/local/jenkins-prod/workspace/ar079-india-tashanwin/src/views/promotion/PromotionShare/index.vue"]]);export{ue as default};
//# sourceMappingURL=page-promotion-PromotionShare-9f033417.js.map
