1import{a1 as we,b as ge,j as y,l as Ce,i as be,b3 as ke,b4 as Te,r as Y,e as I,b5 as xe,a2 as Pe,b6 as De,b7 as Se,aG as Ie,b8 as Le,E as Ue,N as Ae,b9 as Ne,ba as $,bb as ee,bc as ae,bd as oe,be as te,o as ne,bf as Be,s as se,aL as Oe,bg as Ee,bh as Fe,bi as Re,_ as Ve,Q as f,I as d,K as u,R as m,a6 as v,U as a,V as t,ay as O,a4 as _,a7 as ie,a8 as re,aa as q,a5 as Me,a9 as qe,az as We,af as Ze,ag as ze}from"./index-DZlBn30x.js";import{u as je,a as He,p as Ke,b as Qe}from"./PhonePe-BkEX-_rj.js";import{u as Ge}from"./useArupiEvent.hook-BOwZwhGP.js";import"./browser-Dkrz8qGO.js";import"./___vite-browser-external_commonjs-proxy-xz0SO5I3.js";const Je=we({__name:"index",setup(n,{expose:i}){i();const{t:k}=ge(),e=y(!1),w=Ce(),E=be(),{handleOpen:F}=ke({type:3}),{startFun:g,stopFun:L,pageData:T}=Te(),{pageView:x,pageLeve:U,pageClick:P}=Ge(),D=y(!1),C=y(3),o=y(),p=Y({checked:-1,text:""}),A=y(!1),N=y([]),le=s=>{s.target.value&&(p.checked=-1)},ce=s=>{s>-1&&(p.text="")},de=async()=>{if(navigator.clipboard&&navigator.clipboard.readText)try{const s=await navigator.clipboard.readText();S.value=s||""}catch{S.value=document?.getSelection?.()?.toString()??""}else S.value=document?.getSelection?.()?.toString()??""},W=I(()=>[{name:"Paytm",icon:Ke,id:1,url:"paytmmp://cash_wallet",desc:"Wake up support"},{name:"PhonePe",icon:Qe,id:2,url:"phonepe://pay",desc:r.info.isPhonepeWakeUp===1?"Wake up support":"Pay for oneself"}]),Z=y(""),R=xe(""),me=je(R,{margin:0,width:185,errorCorrectionLevel:"H",quality:1}),r=Y({info:{merchantCode:"",merchantName:"",paymentExpireTime:0,amount:0,merchantOrder:"",platformOrder:"",buyOrderNo:"",sellOrderNo:"",chOrderNo:"",createTime:"",memberId:"",externalMemberId:"",returnUrl:"",orderStatus:"",upiId:"",utr:"",hideUpiCopyButton:1,randomCode:"",randomAmount:0},type:0}),z=I(()=>r.info.utr?r.info.utr:T.info.utr),pe=I(()=>!!(r.info.utr||T.info.utr)),S=y("");Pe(z,s=>{S.value=s});const{pause:j,resume:H}=De(()=>{r.info.paymentExpireTime<=0?(V(),L(),j()):r.info.paymentExpireTime-=1},1e3,{immediate:!1,immediateCallback:!1}),K=async()=>{const{code:s,data:l}=await Ne({});s==="1"&&(N.value=l)},B=I(()=>r.info.amount?r.info.amount-r.info.randomAmount:0),V=async()=>{const s=E.query.type,{code:l,data:h}=await Se();if(l==="1"){r.type=s?4:0;const c=He(h);r.info=c,c.orderStatus==="2"?w.replace("/Payment"):c.orderStatus==="3"&&w.replace("/Fail"),await Ie(),R.value="upi://pay?pa="+c.upiId+"&am="+B.value+"&cu=INR&tn="+c.tid+"¬es="+c.tid+"&transactionDescription="+c.tid+"&tid="+c.tid+"&tr="+c.tid,H(),g("",0),g("",1)}else r.type=1,e.value=!1},ue=()=>{r.type=0,A.value=!1};function Q(){const{upiId:s,tid:l}=r.info;try{const h={contact:{type:"VPA",vpa:s,cbsName:"",nickName:""},p2pPaymentCheckoutParams:{checkoutType:"DEFAULT",disableViewHistory:!1,initialAmount:B.value*100,isByDefaultKnownContact:!1,note:l,shouldShowMaskedNumber:!1,shouldShowUnsavedContactBanner:!0,showKeyboard:!1}},c=btoa(JSON.stringify(h));$({bankCode:"phonepe"});const M=`phonepe://native?data=${c}&id=p2ppayment`;ee()?ae(M):oe()?te("recharge",{url:M,recharegeName:"Arupi"}):window.location.href=M}catch(h){console.error("PhonePe Deeplink æµè¯åºé:",h)}}const G=s=>{let l=s.url;Z.value=s.name,s.url.startsWith("paytmmp://cash_wallet")?(l+=`?featuretype=money_transfer&pa=${r.info.upiId}&am=${B.value}&cu=INR&tn=${r.info?.tid||""}`,P(1),ee()?ae(l):oe()?te("recharge",{url:l,recharegeName:"Arupi"}):window.location.href=l,$({bankCode:"paytm"})):(r.info.isPhonepeWakeUp===1&&Q(),P(2))},fe=()=>{D.value=!0,clearInterval(o.value),o.value=null,C.value=3,o.value=setInterval(()=>{C.value-=1},1e3),setTimeout(()=>{clearInterval(o.value),o.value=null,D.value=!1,G(W.value[0])},3e3)},ve=Le(async()=>{const s=await Re({});s.code==="1"?(r.type=3,A.value=!1,se(k("SubmittedS")),setTimeout(()=>{J()},1e3)):ne(s.msg)},3e3),he=async()=>{const{checked:s,text:l}=p;if(s===-1&&!l)return ne(k("addCancelDes"));(await Be({reason:s>-1?N.value[s]?.reason:p.text,reasonId:s>-1?N.value[s]?.id:null})).code==="1"&&(e.value=!1,se(k("cancelSuccess")),setTimeout(()=>{w.push({name:"Recharge"})},1e3))},ye=s=>{const[l,h]=s.split("@");return"*".repeat(l.length)+"@"+h},_e=I(()=>r.info.amount<2e3?!1:r.info.hideUpiCopyButton==0);function J(){w.push({name:"Recharge"})}Ue(()=>{V(),K(),setTimeout(()=>{x("order")},1500)}),Ae(()=>{U("order")});
1const X={t:k,show:e,router:w,route:E,handleOpen:F,startFun:g,stopFun:L,orderData:T,pageView:x,pageLeve:U,pageClick:P,arupiTips:D,arupiTime:C,arupiTimer:o,from:p,confirmShow:A,reasonList:N,getText:le,getChecked:ce,onPaste:de,payList:W,handleToPayType:Z,text:R,qrcode:me,pageData:r,utr:z,isUtr:pe,utrVal:S,pause:j,resume:H,getCancellationReasonList:K,realAmount:B,getInfo:V,handleToInput:ue,testPhonePeNativeDeeplink:Q,handleToPay:G,handleToPaytmmp:fe,submit:ve,submitCancel:he,maskEmail:ye,showCopy:_e,onClick:J,get formatUpiTime(){return Fe},get getFormatAmount(){return Ee},get copy(){return Oe}};return Object.defineProperty(X,"__isScriptSetup",{enumerable:!1,value:!0}),X}}),b=n=>(Ze("data-v-9d88a288"),n=n(),ze(),n),Xe={class:"x-order pt10 pr15 pl15"},Ye={key:0},$e={class:"order_info"},ea={class:"item"},aa={class:"amount"},oa={class:"amount-copy"},ta={key:0,class:"discount"},na={class:"timeout"},sa={class:"x-title"},ia=b(()=>a("span",null,null,-1)),ra={class:"x-order-pay x-row x-flex-warp"},la=["onClick"],ca={class:"x-row x-row-middle-center"},da=["src"],ma={class:"name"},pa={class:"x-title"},ua=b(()=>a("span",null,null,-1)),fa={class:"qrcode mb8"},va={class:"qrimg"},ha={key:0,class:"utr-copy"},ya={class:"x-tc mt8"},_a={class:"x-tc mt8 mb16"},wa=b(()=>a("p",{class:"x-tc mt8 mb16"},"3. We support all upi",-1)),ga={class:"x-title mt8"},Ca=b(()=>a("span",null,null,-1)),ba={class:"transfro_tip"},ka={key:1,class:"x-order-food"},Ta={key:2,class:"x-row x-column x-row-middle x-tc expired"},xa=b(()=>a("svg",{xmlns:"http://www.w3.org/2000/svg",width:"72",height:"72",viewBox:"0 0 72 72",fill:"none"},[a("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M36 6.96774C19.9659 6.96774 6.96774 19.9659 6.96774 36C6.96774 52.0341 19.9659 65.0323 36 65.0323C52.0341 65.0323 65.0323 52.0341 65.0323 36C65.0323 19.9659 52.0341 6.96774 36 6.96774ZM0 36C0 16.1177 16.1177 0 36 0C55.8822 0 72 16.1177 72 36C72 55.8822 55.8822 72 36 72C16.1177 72 0 55.8822 0 36ZM36 40.9268L23.6834 53.2435L18.7564 48.3165L31.0731 35.9999L18.7565 23.6834L23.6835 18.7564L36 31.073L48.3165 18.7564L53.2435 23.6834L40.9269 35.9999L53.2436 48.3165L48.3166 53.2435L36 40.9268Z",fill:"var(--main-color)"})],-1)),Pa={class:"mt16 txt"},Da={key:3,class:"x-row x-column x-row-middle x-tc submit-complete"},Sa=b(()=>a("svg",{xmlns:"http://www.w3.org/2000/svg",width:"72",height:"72",viewBox:"0 0 72 72",fill:"none"},[a("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M36 6.96774C19.9659 6.96774 6.96774 19.9659 6.96774 36C6.96774 52.0341 19.9659 65.0323 36 65.0323C52.0341 65.0323 65.0323 52.0341 65.0323 36C65.0323 19.9659 52.0341 6.96774 36 6.96774ZM0 36C0 16.1177 16.1177 0 36 0C55.8822 0 72 16.1177 72 36C72 55.8822 55.8822 72 36 72C16.1177 72 0 55.8822 0 36Z",fill:"#F6B02C"}),a("path",{d:"M48.5108 48.7305L35.1348 37V16",stroke:"#F6B02C","stroke-width":"7"})],-1)),Ia={class:"weight"},La={class:"x-order-reason pr16 pb16 pl16 pt16"},Ua={class:"title mb16 x-row x-row-middle-center"},Aa={class:"pl25 mt10"},Na=["placeholder"],Ba={class:"arupi"},Oa={class:"title1"},Ea={class:"title2"},Fa={class:"arupi"},Ra={class:"title1"},Va={class:"title2"},Ma={class:"button"};function qa(n,i,k,e,w,E){const F=f("NavBar"),g=f("svg-icon"),L=f("van-loading"),T=f("van-image"),x=f("van-button"),U=f("van-radio"),P=f("van-radio-group"),D=f("van-popup"),C=f("van-dialog");return d(),u("div",Xe,[m(F,{title:"ArUpiPay",placeholder:!1,"left-arrow":"",onClickLeft:e.onClick},{right:v(()=>[a("div",{class:"sever x-row x-row-between x-row-middle-center",onClick:i[0]||(i[0]=(...o)=>e.handleOpen&&e.handleOpen(...o))},t(n.$t("customerService")),1)]),_:1}),e.pageData.type===0?(d(),u("div",Ye,[a("div",$e,[a("div",ea,[a("span",aa,[O(t(e.getFormatAmount((e.pageData.info.amount||0)-e.pageData.info.randomAmount))+" ",1),a("div",oa,[m(g,{onClick:i[1]||(i[1]=o=>e.copy(e.pageData.info.amount)),name:"copy"})]),e.pageData.info.randomAmount&&e.pageData.info.randomAmount>0?(d(),u("div",ta,t(n.$t("discountB"))+" "+t(e.getFormatAmount(e.pageData.info.randomAmount||0)),1)):_("v-if",!0)]),a("div",na,[a("span",null,t(e.formatUpiTime(e.pageData.info.paymentExpireTime||0)),1)])])]),a("div",null,[a("div",sa,[ia,a("p",null,t(n.$t("choosePay")),1)]),a("div",ra,[(d(!0),u(ie,null,re(e.payList,(o,p)=>(d(),u("div",{class:q(["item",{active:e.handleToPayType===o.name,[o.name]:!0}]),key:p,onClick:A=>o.name==="Paytm"?e.handleToPaytmmp():e.handleToPay(o)},[a("div",ca,[a("img",{class:"img",src:o.icon},null,8,da),a("p",ma,t(o.name),1)]),a("p",null,t(o.desc),1)],10,la))),128))])]),a("div",{class:q({order_active:e.handleToPayType==="PhonePe"})}
1,[a("div",null,[a("div",pa,[ua,a("p",null,t(n.$t("scanPay")),1)]),a("div",fa,[a("div",null,[a("div",va,[m(T,{src:e.qrcode,class:"qrc",id:"canvasDom"},{loading:v(()=>[m(L,{type:"spinner",size:"20"})]),_:1},8,["src"])]),e.showCopy?(d(),u("div",ha,[a("span",null,t(e.maskEmail(e.pageData.info.upiId)),1),m(g,{onClick:i[2]||(i[2]=o=>e.copy(e.pageData.info.upiId)),name:"copy",class:"copy-icon"})])):_("v-if",!0),a("h3",ya,"1."+t(n.$t("scanPayTip")),1),a("p",_a,"2."+t(n.$t("deviceQR"))+".",1),wa])])])],2),a("div",ga,[Ca,a("p",null,t(n.$t("importantReminder"))+"ï¼",1)]),a("div",ba,[a("p",null,"1."+t(n.$t("sameLink")),1),a("p",null,"2."+t(n.$t("paytmUp")),1)])])):_("v-if",!0),_(" åæ¶åæäº¤ "),[0,4].includes(e.pageData.type)&&!e.isUtr?(d(),u("div",ka,[a("div",{class:"cancel",onClick:i[3]||(i[3]=()=>{if(e.handleToPayType){e.handleToPayType="";return}e.confirmShow=!0})},t(e.handleToPayType==="Paytm"?n.$t("withdrawDialogDesc6"):n.$t("cancel")),1),a("div",{class:q(["submit",(e.isUtr,"active")]),onClick:i[4]||(i[4]=(...o)=>e.submit&&e.submit(...o))},t(n.$t("submit")),3)])):_("v-if",!0),e.pageData.type==1?(d(),u("div",Ta,[xa,a("p",Pa,t(n.$t("PaymentExpired")),1),m(x,{round:"",block:"",type:"primary",class:"x-btn btn mt40",onClick:e.onClick},{default:v(()=>[O(t(n.$t("returnMerchant")),1)]),_:1})])):_("v-if",!0),e.pageData.type==3?(d(),u("div",Da,[Sa,a("p",Ia,t(n.$t("submitSuccessfully")),1),a("p",null,t(n.$t("untilConfirm")),1),m(x,{round:"",block:"",type:"primary",class:"x-btn btn mt40",onClick:e.onClick},{default:v(()=>[O(t(n.$t("complete")),1)]),_:1})])):_("v-if",!0),m(D,{position:"bottom",show:e.show,"onUpdate:show":i[7]||(i[7]=o=>e.show=o)},{default:v(()=>[a("div",La,[a("div",Ua,t(n.$t("cancelOrder")),1),m(P,{"icon-size":"16px",modelValue:e.from.checked,"onUpdate:modelValue":i[5]||(i[5]=o=>e.from.checked=o),"checked-color":"#EE4D4D",onChange:e.getChecked},{default:v(()=>[(d(!0),u(ie,null,re(e.reasonList,(o,p)=>(d(),Me(U,{name:p,class:"item",key:p},{default:v(()=>[O(t(o.reason),1)]),_:2},1032,["name"]))),128)),_(` <van-radio name="2" class="item">UPIè´¦å·é误</van-radio> 2 <van-radio name="3" class="item">é¶è¡ç³»ç»ç»´æ¤</van-radio> 3 <van-radio name="4" class="item">å ¶ä»</van-radio> `)]),_:1},8,["modelValue"]),a("div",Aa,[qe(a("textarea",{class:"row","onUpdate:modelValue":i[6]||(i[6]=o=>e.from.text=o),rows:"4",placeholder:n.$t("sellTip18"),onInput:e.getText},null,40,Na),[[We,e.from.text]])]),a("div",{class:"btn x-row x-row-middle-center",onClick:e.submitCancel},t(n.$t("confirmCancel")),1)])]),_:1},8,["show"]),m(C,{class:"arupi-dialog",closeOnClickOverlay:!1,show:e.arupiTips,"onUpdate:show":i[8]||(i[8]=o=>e.arupiTips=o),"show-confirm-button":!1,width:327},{default:v(()=>[a("div",Ba,[a("div",Oa,t(n.$t("tips")),1),a("div",Ea,t(n.$t("safetyTip")),1),a("p",null,t(e.arupiTime)+"S",1)])]),_:1},8,["show"]),m(C,{class:"arupi-dialog",closeOnClickOverlay:!1,show:e.confirmShow,"onUpdate:show":i[11]||(i[11]=o=>e.confirmShow=o),"show-confirm-button":!1,width:327},{default:v(()=>[a("div",Fa,[a("div",Ra,t(n.$t("cancelDeal")),1),a("div",Va,t(n.$t("paymeConfirm")),1),a("div",Ma,[a("div",{class:"clance",onClick:i[9]||(i[9]=()=>{e.from.checked=-1,e.from.text="",e.show=!0,e.confirmShow=!1})},t(n.$t("confirmCancel")),1),a("div",{class:"goBuy",onClick:i[10]||(i[10]=(...o)=>e.submit&&e.submit(...o))},t(n.$t("payme")),1)])])]),_:1},8,["show"])])}const Ka=Ve(Je,[["render",qa],["__scopeId","data-v-9d88a288"],["__file","/home/jenkins/agent/workspace/AR051-Pages-india-tiranga/src/views/arupi/arupi_v2/index.vue"]]);export{Ka as default};
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.