import{v as w,J as b,A,ca as E,y as U,g as y,aF as j,_ as N}from"./page-activity-ActivityDetail-6651511c.js";import{U as V,$ as H,a0 as M,r as d,O as k,V as O,m as c,Z as v,p as t,Y as o,an as S,M as s,ao as u,ad as p,o as m,W as D,X as F,aS as W,aT as q}from"./common.modules-7ef9f935.js";import{b as J}from"./page-arupi-index.vue_vue_type_script_setup_true_lang.ts-b4fa4bb0.js";import"./native/index-1870b44d.js";import"./en-fc63d25a.js";window.getBuildInfo=function(){return{buildTime:"3/28/2025, 7:06:51 PM",branch:"origin/masterBranch/main commitId:afb5d46f657248d3137decf21a49f44fbff20383"}};const z={class:"promotionShare__container"},G={class:"promotionShare__container-tips"},X=["id"],Y={class:"sContent"},Z=["src"],K={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=V({__name:"index",setup($){const _=H();M();const h=d(0),g=d(""),f=d(!1);let r=d("");const I=e=>{},C=e=>{h.value=e.activeIndex},L=()=>{_.back()},P=k(()=>w().getProjectLogo);k(()=>w().getProjectName);const T=()=>{b(r.value.toString())};async function B(){const e=await A(E());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++)J.toCanvas(document.getElementById("qr-code"+n),r.value,i=>{i&&console.error(i)})}}B();const R=async e=>{var n=document.getElementById(e);(await U(()=>import("./chunk.html2-3e1999ec.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=O("NavBar");return m(),c("div",z,[v(i,{title:e.$t("titleInvite"),"left-arrow":"",onClickLeft:L},null,8,["title"]),t("div",G,[t("p",null,o(e.$t("tipSwipeToPickBrochure")),1)]),v(s(q),{class:"my-swipe",slidesPerView:"auto",centeredSlides:!0,"space-between":20,onSwiper:I,onSlideChange:C},{default:S(()=>[(m(),c(D,null,F(3,a=>v(s(W),{key:a},{default:S(()=>[t("div",{class:"promotionShare__container-swiper",id:"share"+(a-1)},[p(` <img v-lazy="getIcons('promotion/promotionShare', 'poster')" /> `),t("div",Y,[t("img",{class:"logo",src:P.value,alt:""},null,8,Z),t("div",K,[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(y)("promotion","bank"),alt:""},null,8,ee),u(" "+o(e.$t("financialSecurity")),1)]),t("div",null,[t("img",{class:"logo",src:s(y)("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,X)]),_: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(j)()?p("v-if",!0):(m(),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?(m(),c("div",{key:1,class:"cpy",onClick:n[1]||(n[1]=a=>s(b)(g.value))},o(e.$t("clanding")),1)):p("v-if",!0),p(" <div>{{ $t('copyInvitationLink') }}</div> ")])])}}});const pe=N(ie,[["__scopeId","data-v-3b74cce6"],["__file","/var/lib/jenkins/workspace/web-印度-ar050-daman-01/src/views/promotion/PromotionShare/index.vue"]]);export{pe as default};
//# sourceMappingURL=page-promotion-PromotionShare-a0afe356.js.map
