import{v as w,J as y,A as E,c6 as j,y as A,g as k,aE as U,_ as N}from"./page-activity-ActivityDetail-346b11b6.js";import{U as O,$ as V,a0 as H,r as d,O as b,V as M,m as c,Z as m,p as t,Y as o,am as S,M as s,an as u,ac as p,aO as D,o as v,W as F,X as W,aK as q,aL as J}from"./common.modules-219f1756.js";import"./native/index-a8a2a0fc.js";import"./en-43c55ab8.js";window.getBuildInfo=function(){return{buildTime:"3/15/2025, 9:01:28 PM",branch:" commitId:c8ca98fce6fc864cab311715d288030620d0dc9f"}};const z={class:"promotionShare__container"},G={class:"promotionShare__container-tips"},K=["id"],X={class:"sContent"},Y=["src"],Z={class:"head1"},Q=["innerHTML"],x={class:"head3"},ee=["src"],te=["src"],ne=["innerHTML"],oe=["id"],ae={class:"promotionShare__container-slogan"},se={class:"promotionShare__container-buttons"},ie=O({__name:"index",setup($){const _=V();H();const h=d(0),g=d(""),f=d(!1);let r=d("");const I=e=>{},L=e=>{h.value=e.activeIndex},C=()=>{_.back()},P=b(()=>w().getProjectLogo);b(()=>w().getProjectName);const T=()=>{y(r.value.toString())};async function B(){const e=await E(j());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++)D.toCanvas(document.getElementById("qr-code"+n),r.value,i=>{i&&console.error(i)})}}B();const R=async e=>{var n=document.getElementById(e);(await A(()=>import("./chunk.html2-7cb604a3.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=M("NavBar");return v(),c("div",z,[m(i,{title:e.$t("titleInvite"),"left-arrow":"",onClickLeft:C},null,8,["title"]),t("div",G,[t("p",null,o(e.$t("tipSwipeToPickBrochure")),1)]),m(s(J),{class:"my-swipe",slidesPerView:"auto",centeredSlides:!0,"space-between":20,onSwiper:I,onSlideChange:L},{default:S(()=>[(v(),c(F,null,W(3,a=>m(s(q),{key:a},{default:S(()=>[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,Q),t("div",x,[t("div",null,[t("img",{class:"logo",src:s(k)("promotion","bank"),alt:""},null,8,ee),u(" "+o(e.$t("financialSecurity")),1)]),t("div",null,[t("img",{class:"logo",src:s(k)("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,K)]),_: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(U)()?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(y)(g.value))},o(e.$t("clanding")),1)):p("v-if",!0),p(" <div>{{ $t('copyInvitationLink') }}</div> ")])])}}});const ue=N(ie,[["__scopeId","data-v-3b74cce6"],["__file","/usr/local/jenkins-prod/workspace/ar077-india-jalwa/src/views/promotion/PromotionShare/index.vue"]]);export{ue as default};
//# sourceMappingURL=page-promotion-PromotionShare-a4b81601.js.map
