PageSourceSearch

https://wiapy.com/_nuxt/YzmhWyCQ.js

js wiapy.com collected 2026-09-24 11:59:29 UTC 14,484 bytes, 1 lines download raw bytes

1import{_ as x}from"./DbI-w4KA.js";import{_ as v}from"./CJoQO5Rt.js";import{_ as w}from"./C8qfhTZu.js";import{d as C}from"./zlMw6e1O.js";import{o as b,bc as u,a_ as $,aA as i,n as r,x as g,v as p,aS as n,ap as y,q as a,p as l,F as c,aJ as k}from"./DY9uiTjd.js";import"./CO3jJX8u.js";import"./wzCOPK40.js";const L={class:"flex flex-col"},A={class:"flex justify-between items-center mb-4"},M={type:"button",class:"px-6 py-2 bg-white dark:bg-primary-900 border border-gray-300 dark:border-primary-800 rounded-lg hover:bg-gray-50 dark:hover:bg-primary-950 text-primary dark:text-primary-200 transition-colors uppercase text-sm font-medium flex items-center gap-2"},j={class:"flex flex-col lg:flex-row gap-4"},B={class:"flex flex-col lg:w-64 gap-2"},S={class:"flex flex-col w-full"},T={key:0,class:"overflow-x-auto"},V={class:"w-full"},D={class:"bg-gray-200 dark:bg-primary-950 text-gray-600 dark:text-primary-300 text-xs uppercase"},G={key:0,class:"py-3 px-4 text-left border-0"},R={key:1,class:"py-3 px-4 text-center border-0"},U={key:0,class:"py-3 px-4 align-middle"},q={key:1,class:"py-3 px-4 align-middle"},N={key:1,class:"overflow-x-auto"},P={class:"w-full"},F={class:"bg-gray-200 dark:bg-primary-950 text-gray-600 dark:text-primary-300 text-xs uppercase"},H={key:0,class:"py-3 px-4 text-left border-0"},O={key:1,class:"py-3 px-4 text-center border-0"},z={class:"py-3 px-4 align-middle text-gray-700 dark:text-primary-300"},J={class:"py-3 px-4 align-middle text-gray-700 dark:text-primary-300"},W={class:"py-3 px-4 align-middle text-gray-700 dark:text-primary-300"},E={key:0,class:"py-3 px-4 align-middle"},I={key:0,class:"inline-block px-2 py-1 text-xs font-medium bg-green-100 text-green-800 dark:bg-green-500/20 dark:text-green-300 rounded"},Q={key:1,class:"inline-block px-2 py-1 text-xs font-medium bg-yellow-100 text-yellow-800 dark:bg-yellow-500/20 dark:text-yellow-300 rounded"},K={key:1,class:"py-3 px-4 align-middle text-center"},X=["data-clipboard-text"],Y=["data-clipboard-text"],Z=["onClick"],_=["onClick"],tt=["onClick"],et=["onClick"],rt={class:"flex flex-col items-center justify-center gap-4"},ot={class:"text-lg font-semibold text-primary dark:text-primary-200"},it={class:"text-gray-600 dark:text-primary-300"},st={type:"button",class:"px-6 py-2 bg-white dark:bg-primary-900 border border-gray-300 dark:border-primary-800 rounded-lg hover:bg-gray-50 dark:hover:bg-primary-950 text-primary dark:text-primary-200 transition-colors uppercase text-sm font-medium flex items-center gap-2"},at=C({data(){return{env:"https://pay.wiapy.com/",title:"Wiapy",list:[],limit:200,page:1,filter:"my",listLoading:!0,skeletonRows:6}},created(){$(()=>({title:(typeof this.title=="string"&&this.title.trim()&&!["undefined","null"].includes(this.title.trim().toLowerCase())?this.title.trim():"Wiapy")+" - Checkout",script:[{src:"https://cdn.jsdelivr.net/npm/[email protected]/dist/clipboard.min.js",body:!0}]}))},mounted(){if(!this.cookieGet("auth-token"))return this.$router.push("/login");this.cookieGet("site-title")&&(this.title=this.cookieGet("site-title")),this.getCheckouts()},methods:{editAffiliate(o){return this.$router.push("/producer/checkout/affiliate?id="+o)},editOrderbump(o){return this.$router.push("/producer/checkout/orderbump?id="+o)},editUpsell(o){return this.$router.push("/producer/checkout/upsell?id="+o)},edit(o){return o?this.$router.push("/producer/checkout/create?id="+o):this.$router.push("/producer/checkout/create")},currency(o){let t="0,00";return o&&(t=o.toString(),t=t.replace(/([0-9]{2})$/g,",$1"),t.length>6&&(t=t.replace(/([0-9]{3}),([0-9]{2}$)/g,".$1,$2")),t.length<4&&(t="0"+t.replace(/([0-9]{3}),([0-9]{2}$)/g,".$1,$2")),t.length<3&&(t="0,"+t.replace(/([0-9]{3}),([0-9]{2}$)/g,".$1,$2"))),t},changeCheckout(o){return this.filter=o,this.list=[],this.filter==="my"?this.getCheckouts("checkout"):this.filter==="orderbump"?this.getCheckouts("orderbump"):this.filter==="upsell"?this.getCheckouts("upsell"):this.getAffiliates()},getCheckouts(o){let t="checkout";return o&&(t=o),this.listLoading=!0,this.httpGet(this.$config.public.baseURL+"/producer/checkout?page="+this.page+"&limit="+this.limit+"&checkout_type="+t,{headers:{Authorization:this.cookieGet("auth-token")}}).then(e=>{this.list=e.body,setTimeout(function(){new ClipboardJS(".code-payment")},500)}).catch(e=>(this.list=[],console.log(e),notification("Tente novamente mais tarde","danger",null))).finally(()=>{this.listLoading=!1})},copy(o){return window.notification("URL do Checkout copiada com sucesso!","success",null)},getAffiliates(){return this.listLoading=!0,this.httpGet(this.$config.public.baseURL+"/producer/checkout/affiliates",{headers:{Authorization:this.cookieGet("auth-token")}}).then(o=>{this.list=o.body,new ClipboardJS(".code-payment")}).catch(o=>o.status===422?notification(o.body.msg,"danger",null):(console.log(o),notification("Tente novamente mais tarde","danger",null))).finally(()=>{this.listLoading=!1})}}},"$VQV27UrvIu"),mt=Object.assign(at,{__name:"index",setup(o){return(t,e)=>{const m=x,f=v,h=w;return i(),b(h,{"padding-bottom":"pb-4"},{default:u(()=>[e[32]||(e[32]=r("div",{class:"flex flex-col mb-2"},[r("h4",{class:"text-2xl font-semibold text-primary dark:text-primary-200"}," Checkouts "),r("div",{class:"h-px bg-gray-200 dark:bg-primary-800 mb-4 mt-2"})],-1)),r("div",L,[r("div",A,[e[7]||(e[7]=r("div",null,null,-1)),g(m,{to:t.filter==="my"||t.filter==="affiliate"?"/producer/checkout/create":"/producer/checkout/"+t.filter},{default:u(()=>[r("button",M,[e[6]||(e[6]=r("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[r("rect",{width:"16",height:"16",rx:"8",fill:"#1DDF75"}),r("path",{d:"M7.99984 11.3327V4.66602M4.6665 7.99935H11.3332",stroke:"white","stroke-width":"1.5","stroke-linecap":"round"})],-1)),p(" Criar "+n(t.filter==="my"||t.filter==="affiliate"?"checkout":t.filter=="upsell"?"upsell/downsell":t.filter),1)])]),_:1},8,["to"])]),r("div",j,[r("div",B,[r("button",{type:"button",class:y(["flex items-center gap-3 px-4 py-3 text-sm font-medium text-gray-600 dark:text-primary-300 bg-white dark:bg-primary-900 border border-gray-300 dark:border-primary-800 rounded-lg hover:bg-gray-50 dark:hover:bg-primary-950 transition-colors w-full text-left",t.filter==="my"?"text-black bg-secondary border-secondary-600 hover:bg-gray-50 dark:border-secondary":"text-gray-700 dark:text-primary-300 "]),onClick:e[0]||(e[0]=s=>t.changeCheckout("my"))},[...e[8]||(e[8]=[r("i",{class:"fa-regular fa-user w-4 h-4"},null,-1),p(" Meus checkouts ",-1)])],2),r("button",{type:"button",class:y(["flex items-center gap-3 px-4 py-3 text-sm font-medium text-gray-600 dark:text-primary-300 bg-white dark:bg-primary-900 border border-gray-300 dark:border-primary-800 rounded-lg hover:bg-gray-50 dark:hover:bg-primary-950 transition-colors w-full text-left",t.filter==="orderbump"?"text-black bg-secondary border-secondary-600 hover:bg-gray-50 dark:border-secondary":"text-gray-700 dark:text-primary-300"]),onClick:e[1]||(e[1]=s=>t.changeCheckout("orderbump"))},[...e[9]||(e[9]=[r("i",{class:"fa-solid fa-cart-plus w-4 h-4"},null,-1),p(" Meus Orderbumps ",-1)])],2),r("button",{type:"button",class:y(["flex items-center gap-3 px-4 py-3 text-sm font-medium text-gray-600 dark:text-primary-300 bg-white dark:bg-primary-900 border border-gray-300 dark:border-primary-800 rounded-lg hover:bg-gray-50 dark:hover:bg-primary-950 transition-colors w-full text-left",t.filter==="upsell"?"text-black bg-secondary border-secondary-600 hover:bg-gray-50 dark:border-secondary":"text-gray-700 dark:text-primary-300"]),onClick:e[2]||(e[2]=s=>t.changeCheckout("upsell"))},[...e[10]||(e[10]=[r("i",{class:"fa-solid fa-arrow-up-right-dots w-4 h-4"},null,-1),p(" Meus Upsell/Downsell ",-1)])],2),r("button",{type:"button",class:y(["flex items-center gap-3 px-4 py-3 text-sm font-medium text-gray-600 dark:text-primary-300 bg-white dark:bg-primary-900 border border-gray-300 dark:border-primary-800 rounded-lg hover:bg-gray-50 dark:hover:bg-primary-950 transition-colors w-full text-left",t.filter==="affiliate"?"text-black bg-secondary border-secondary-600 hover:bg-gray-50 dark:border-secondary":"text-gray-700 dark:text-primary-300"]),onClick:e[3]||(e[3]=s=>t.changeCheckout("affiliate"))},[...e[11]||(e[11]=[r("i",{class:"fa-solid fa-people-group w-4 h-4"},null,-1),p(" Checkouts Afiliados ",-1)])],2)]),r("div",S,[g(f,{class:"mb-3 p-0 overflow-hidden"},{default:u(()=>[t.listLoading?(i(),a("div",T,[r("table",V,[r("thead",null,[r("tr",D,[e[12]||(e[12]=r("th",{class:"py-3 px-4 text-left border-0"}," Título ",-1)),e[13]||(e[13]=r("th",{class:"py-3 px-4 text-left border-0"}," Preço ",-1)),e[14]||(e[14]=r("th",{class:"py-3 px-4 text-left border-0"}," Tipo de pagamento ",-1)),t.filter==="my"?(i(),a("th",G," Status ")):l("",!0),t.filter==="my"?(i(),a("th",R," Link Checkout ")):l("",!0),e[15]||(e[15]=r("th",{class:"py-3 px-4 text-left border-0"}," Configurar ",-1))])]),r("tbody",null,[(i(!0),a(c,null,k(t.skeletonRows,s=>(i(),a("tr",{key:`checkout-skeleton-${s}`,class:"border-b border-gray-100 dark:border-primary-800"},[e[18]||(e[18]=r("td",{class:"py-3 px-4 align-middle"},[r("div",{class:"h-4 w-44 animate-pulse rounded bg-gray-200 dark:bg-primary-800"})],-1)),e[19]||(e[19]=r("td",{class:"py-3 px-4 align-middle"},[r("div",{class:"h-4 w-20 animate-pulse rounded bg-gray-200 dark:bg-primary-800"})],-1)),e[20]||(e[20]=r("td",{class:"py-3 px-4 align-middle"},[r("div",{class:"h-4 w-28 animate-pulse rounded bg-gray-200 dark:bg-primary-800"})],-1)),t.filter==="my"?(i(),a("td",U,[...e[16]||(e[16]=[r("div",{class:"h-4 w-24 animate-pulse rounded bg-gray-200 dark:bg-primary-800"},null,-1)])])):l("",!0),t.filter==="my"?(i(),a("td",q,[...e[17]||(e[17]=[r("div",{class:"h-9 w-28 animate-pulse rounded-lg bg-gray-200 dark:bg-primary-800"},null,-1)])])):l("",!0),e[21]||(e[21]=r("td",{class:"py-3 px-4 align-middle"},[r("div",{class:"h-4 w-4 animate-pulse rounded bg-gray-200 dark:bg-primary-800"})],-1))]))),128))])])])):t.list.length>0?(i(),a("div",N,[r("table",P,[r("thead",null,[r("tr",F,[e[22]||(e[22]=r
1("th",{class:"py-3 px-4 text-left border-0"}," Título ",-1)),e[23]||(e[23]=r("th",{class:"py-3 px-4 text-left border-0"}," Preço ",-1)),e[24]||(e[24]=r("th",{class:"py-3 px-4 text-left border-0"}," Tipo de pagamento ",-1)),t.filter==="my"?(i(),a("th",H," Status ")):l("",!0),t.filter==="my"?(i(),a("th",O," Link Checkout ")):l("",!0),e[25]||(e[25]=r("th",{class:"py-3 px-4 text-left border-0"}," Configurar ",-1))])]),r("tbody",null,[(i(!0),a(c,null,k(t.list,s=>(i(),a("tr",{key:s._id,class:"border-b border-gray-100 dark:border-primary-800 hover:bg-gray-50 dark:hover:bg-primary-950 transition-colors"},[r("td",z,n(s.title),1),r("td",J," R$ "+n(t.currency(s.amount)),1),r("td",W,n(s.type==="payment"?"Pagamento único":"Recorrência"),1),t.filter==="my"?(i(),a("td",E,[s.author_verified?(i(),a("span",I," Ativo ")):(i(),a("span",Q," Aguardando código "))])):l("",!0),t.filter==="my"?(i(),a("td",K,[t.filter==="my"?(i(),a("button",{key:0,class:"code-payment inline-flex items-center justify-center px-4 py-2 bg-white dark:bg-primary-900 border border-gray-300 dark:border-primary-800 rounded-lg hover:border-secondary dark:hover:border-secondary hover:bg-gray-50 dark:hover:bg-primary-950 text-primary dark:text-primary-200 transition-colors uppercase text-sm font-medium text-center",type:"button","data-clipboard-text":s.url?t.env+s.url:t.env+s._id,onClick:e[4]||(e[4]=(...d)=>t.copy&&t.copy(...d))}," Copiar Link ",8,X)):l("",!0),t.filter==="affiliate"?(i(),a("button",{key:1,class:"code-payment px-4 py-2 justify-center bg-white dark:bg-primary-900 border border-gray-300 dark:border-primary-800 rounded-lg hover:border-secondary dark:hover:border-secondary hover:bg-gray-50 dark:hover:bg-primary-950 text-primary dark:text-primary-200 transition-colors uppercase text-sm font-medium flex items-center gap-2 text-center",type:"button","data-clipboard-text":s.url?t.env+s.url:t.env+s._id+"?affiliate="+s.id_login,onClick:e[5]||(e[5]=(...d)=>t.copy&&t.copy(...d))}," Copiar Link ",8,Y)):l("",!0)])):l("",!0),t.filter==="my"?(i(),a("td",{key:2,class:"py-3 px-4 align-middle text-gray-700 dark:text-primary-300 cursor-pointer hover:text-primary transition-colors",onClick:d=>t.edit(s._id)},[...e[26]||(e[26]=[r("i",{class:"fa-solid fa-pen-to-square"},null,-1)])],8,Z)):l("",!0),t.filter==="affiliate"?(i(),a("td",{key:3,class:"py-3 px-4 align-middle text-gray-700 dark:text-primary-300 cursor-pointer hover:text-primary transition-colors",onClick:d=>t.editAffiliate(s._id)},[...e[27]||(e[27]=[r("i",{class:"fa-solid fa-pen-to-square"},null,-1)])],8,_)):l("",!0),t.filter==="orderbump"?(i(),a("td",{key:4,class:"py-3 px-4 align-middle text-gray-700 dark:text-primary-300 cursor-pointer hover:text-primary transition-colors",onClick:d=>t.editOrderbump(s._id)},[...e[28]||(e[28]=[r("i",{class:"fa-solid fa-pen-to-square"},null,-1)])],8,tt)):l("",!0),t.filter==="upsell"?(i(),a("td",{key:5,class:"py-3 px-4 align-middle text-gray-700 dark:text-primary-300 cursor-pointer hover:text-primary transition-colors",onClick:d=>t.editUpsell(s._id)},[...e[29]||(e[29]=[r("i",{class:"fa-solid fa-pen-to-square"},null,-1)])],8,et)):l("",!0)]))),128))])])])):l("",!0)]),_:1}),!t.listLoading&&t.list.length<1?(i(),b(f,{key:0,class:"p-8 text-center"},{default:u(()=>[r("div",rt,[e[31]||(e[31]=r("svg",{xmlns:"http://www.w3.org/2000/svg",width:"64",height:"64",viewBox:"0 0 24 24",fill:"none",stroke:"#C3CCD2","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[r("circle",{cx:"8",cy:"21",r:"1"}),r("circle",{cx:"19",cy:"21",r:"1"}),r("path",{d:"M2.05 2.05h2l2.66 12.42a2 2 0 0 0 2 1.58h9.78a2 2 0 0 0 1.95-1.57l1.65-7.43H5.12"})],-1)),r("h3",ot," Sem "+n(t.filter==="my"||t.filter==="affiliate"?"checkouts":t.filter),1),r("p",it," Para criar um novo "+n(t.filter)+", clique abaixo! ",1),g(m,{to:t.filter==="my"||t.filter==="affiliate"?"/producer/checkout/create":"/producer/checkout/"+t.filter},{default:u(()=>[r("button",st,[e[30]||(e[30]=r("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[r("rect",{width:"16",height:"16",rx:"8",fill:"#1DDF75"}),r("path",{d:"M7.99984 11.3327V4.66602M4.6665 7.99935H11.3332",stroke:"white","stroke-width":"1.5","stroke-linecap":"round"})],-1)),p(" Criar "+n(t.filter==="my"||t.filter==="affiliate"?"checkout":t.filter=="upsell"?"upsell/downsell":t.filter),1)])]),_:1},8,["to"])])]),_:1})):l("",!0)])])])]),_:1})}}});
1export{mt 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.