PageSourceSearch

https://app.yayforms.com/_nuxt/CoOVH5N_.js

js yayforms.com collected 2026-09-25 18:20:25 UTC 7,001 bytes, 1 lines download raw bytes

1import{_ as Z}from"./Kzn2dbQp.js";import{_ as j,a as H}from"./D5VtYP6x.js";import{u as M,k as q,j as J,I as K,J as y,K as U,e as u,f as m,s as c,w as d,v as W,q as e,x as s,t as n,L as Y,y as i,M as I,r as N,z as v,N as O,G as P,E as Q,A as X,d as ee}from"./B2Xx8lZV.js";import{u as oe}from"./UnY8XsZ-.js";import"./jOLkH1kV.js";import"./Wiz_QZ6g.js";import"./L1L8Kwm7.js";import"./BVrS7U6Z.js";import"./rjyKbEpf.js";const te={class:"container lg:w-4/5 xl:w-3/4 2xl:w-3/5 mx-auto bg-white p-5"},se={key:0},ne={class:"flex flex-col gap-4 w-full mt-6"},le={class:"card card--xl w-full p-10 flex flex-col gap-2"},re={class:"subheading"},ie={class:"flex flex-col gap-4"},ae={class:"text-neutral text-sm"},ce={class:"flex items-center gap-4 mt-2"},ue=["disabled"],de={class:"subheading"},me={key:0,class:"flex flex-col items-start gap-2 text-sm text-neutral-dark w-full"},pe={class:"text-neutral text-sm mb-6"},fe={class:"hidden sm:block ml-2"},ve={key:1,class:"flex flex-col items-start gap-2 w-full"},be={class:"subheading"},_e={key:2,class:"flex flex-col items-start gap-2 text-sm text-neutral-dark w-full"},ke={class:"text-neutral text-sm"},ge={class:"hidden sm:block ml-2"},ye={key:3,class:"flex flex-col items-start gap-2 w-full"},xe={class:"subheading"},we={class:"flex flex-col items-start gap-2 text-sm text-neutral-dark w-full"},Ae={class:"text-neutral text-sm"},Fe={__name:"security",setup(he){const p=M(),$=ee(),F=q(),a=J(),{t:o}=K(),{gotoHome:h}=oe(),b=X(!1),r=P(()=>p.user),_=P(()=>F.isLoading);function T(l){navigator.clipboard.writeText(l),a.success(o("me.notification.copySuccess"))}async function z(){try{await p.createApiToken(),a.success(o("me.notification.apiTokenGeneratedSuccess"))}catch(l){console.error("Failed to create API token",l),a.error(o("me.notification.apiTokenGeneratedError"))}}async function B(){try{await p.deleteApiToken(),a.success(o("me.notification.apiTokenRevokedSuccess"))}catch(l){console.error("Failed to revoke API token",l),a.error(o("me.notification.apiTokenRevokedError"))}}async function G(){try{await p.enableSupportAccess(),a.success(o("me.notification.supportAccessGrantedSuccess"))}catch(l){console.error("Failed to enable support access",l),a.error(o("me.notification.supportAccessGrantedError"))}}async function L(){try{await p.revokeSupportAccess(),a.success(o("me.notification.supportAccessRevokedSuccess"))}catch(l){console.error("Failed to revoke support access",l),a.error(o("me.notification.supportAccessRevokedError"))}}async function V(){try{b.value=!0,await Q().sendPasswordResetEmail(r.value.email),a.success(o("me.password.resetSuccess"))}catch(l){console.error("Error sending password reset email:",l),a.error(o("me.password.resetError"))}finally{b.value=!1}}function D(){const l=$.public,t={en:l.cancellationFormIdEN,pt:l.cancellationFormIdPT,es:l.cancellationFormIdES},x=r.value.language||"en",w="https://yayforms.link/"+(t[x]??t.en),k=r.value.name.split(" "),A=k[0],g=k.slice(1).join(" ");window.location.href=`${w}?firstname=${A}&lastname=${g}&email=${r.value.email}`}return(l,t)=>{const x=Z,w=y("o-loading"),k=j,A=H,g=y("o-input"),S=y("o-button"),C=y("o-field"),E=O,R=U("tooltip");return u(),m("div",te,[c(w,{active:e(_),"onUpdate:active":t[0]||(t[0]=f=>W(_)?_.value=f:null),"full-page":!0,"can-cancel":!1},{default:d(()=>[c(x)]),_:1},8,["active"]),e(_)?v("",!0):(u(),m("div",se,[s("div",{class:"btn btn-secondary btn-md rounded-full px-3 absolute right-5 top-5",onClick:t[1]||(t[1]=(...f)=>e(h)&&e(h)(...f))},[...t[4]||(t[4]=[s("i",{class:"oi oi-times oi-20"},null,-1)])]),c(k,{user:e(r)},null,8,["user"]),c(A),s("div",ne,[s("div",le,[s("div",re,n(e(o)("me.password.title")),1),s("div",ie,[s("div",ae,n(e(o)("me.password.description")),1),s("div",ce,[s("button",{class:Y(["btn btn-primary",{"is-loading":e(b)}]),disabled:e(b),onClick:V},[t[5]||(t[5]=s("i",{class:"oi oi-send-email oi-14 mr-2"}
1,null,-1)),i(" "+n(e(o)("me.password.resetButton")),1)],10,ue)])]),t[15]||(t[15]=s("div",{class:"h-1 border-t-2 border-neutral-lightest my-5"},null,-1)),s("div",de,n(e(o)("me.integrations")),1),e(r).apiToken?(u(),m("div",me,[s("div",pe,n(e(o)("me.apiTokenMessage")),1),c(C,{addons:"",label:e(o)("common.field.apiToken"),class:"w-full"},{default:d(()=>[c(g,{size:"md",variant:"primary",value:e(r).apiToken,"input-class":"border-neutral-lighter font-bold shadow-none hover:border-primary !rounded-r-none",readonly:"",expanded:""},null,8,["value"]),I((u(),N(S,{size:"md",variant:"secondary",onClick:t[2]||(t[2]=f=>T(e(r).apiToken))},{default:d(()=>[t[6]||(t[6]=s("i",{class:"oi oi-copy-paste"},null,-1)),s("div",fe,n(e(o)("me.copy")),1)]),_:1})),[[R,e(o)("me.copy")]])]),_:1},8,["label"]),s("button",{class:"btn btn-danger mt-4",onClick:B},[t[7]||(t[7]=s("i",{class:"oi oi-lock-2 oi-14 mr-2"},null,-1)),i(" "+n(e(o)("me.revokeApiToken")),1)])])):v("",!0),e(r).apiToken?v("",!0):(u(),m("div",ve,[c(E,{class:"w-full"},{default:d(()=>[i(n(e(o)("me.someIntegrations"))+" ",1),t[8]||(t[8]=s("br",null,null,-1)),i(" "+n(e(o)("me.ifYouWant")),1)]),_:1}),s("button",{class:"btn btn-primary",onClick:z},[t[9]||(t[9]=s("i",{class:"oi oi-login-key oi-14 mr-2"},null,-1)),i(" "+n(e(o)("me.generateApiToken")),1)])])),t[16]||(t[16]=s("div",{class:"h-1 border-t-2 border-neutral-lightest my-5"},null,-1)),s("div",be,n(e(o)("me.supportAccess")),1),e(r).supportAccess?(u(),m("div",_e,[s("div",ke,[i(n(e(o)("me.youAreCurrently"))+" ",1),s("strong",null,n(e(o)("me.allowing")),1),i(" "+n(e(o)("me.ourSupport")),1)]),c(C,{addons:"",label:e(o)("me.loginLink"),class:"w-full"},{default:d(()=>[c(g,{size:"md",variant:"primary",value:e(r).loginLink,"input-class":"border-neutral-lighter font-bold shadow-none hover:border-primary !rounded-r-none",readonly:"",expanded:""},null,8,["value"]),I((u(),N(S,{size:"md",variant:"secondary",onClick:t[3]||(t[3]=f=>T(e(r).loginLink))},{default:d(()=>[t[10]||(t[10]=s("i",{class:"oi oi-copy-paste"},null,-1)),s("div",ge,n(e(o)("me.copy")),1)]),_:1})),[[R,e(o)("me.tooltipCopy")]])]),_:1},8,["label"]),s("button",{class:"btn btn-danger mt-4",onClick:L},[t[11]||(t[11]=s("i",{class:"oi oi-lock-2 oi-14 mr-2"},null,-1)),i(" "+n(e(o)("me.revokeSupportAccess")),1)])])):v("",!0),e(r).supportAccess?v("",!0):(u(),m("div",ye,[c(E,{class:"w-full"},{default:d(()=>[i(n(e(o)("me.youAreCurrently"))+" ",1),s("strong",null,n(e(o)("me.not"))+n(e(o)("me.allowing")),1),i(" "+n(e(o)("me.ourSupport"))+" ",1),t[12]||(t[12]=s("br",null,null,-1)),i(" "+n(e(o)("me.clickTheButton")),1
1)]),_:1}),s("button",{class:"btn btn-primary",onClick:G},[t[13]||(t[13]=s("i",{class:"oi oi-help-wheel oi-14 mr-2"},null,-1)),i(n(e(o)("me.enableSupportAccess")),1)])])),t[17]||(t[17]=s("div",{class:"h-1 border-t-2 border-neutral-lightest my-5"},null,-1)),s("div",xe,n(e(o)("me.dangerZone.title")),1),s("div",we,[s("div",Ae,n(e(o)("me.dangerZone.subtitle")),1),s("button",{class:"btn btn-danger mt-4",onClick:D},[t[14]||(t[14]=s("i",{class:"oi oi-bin oi-14 mr-2"},null,-1)),i(" "+n(e(o)("me.dangerZone.cancelAccount")),1)])])])])]))])}}};export{Fe 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.