1import{_ as y}from"./LayoutAuth-DBfbnUp2.js";import{_ as k}from"./OhButton.vue-BMERlDFt.js";import{_ as b}from"./OhFlashMessage.vue_vue_type_script_setup_true_lang-QnNfDhYN.js";import{h as x}from"./app-Cn6RsU_i.js";import{d as T,a8 as z,ab as A,K as i,S as n,A as a,O as l,X as t,a4 as o,P as u,F as r,a3 as B,L as C,a9 as d}from"./vendor-i18n-d5NYPexO.js";import"./useRedirectModal-C0hxTOyM.js";import"./OhDynamicModal.vue_vue_type_script_setup_true_lang-B5S5ljV_.js";import"./GvIcon.vue-XUvgv9OL.js";import"./OhAlert.vue-Og6d4iPZ.js";import"./HeaderUnauthenticatedBar-DkCk7vS6.js";import"./OhSelect.vue-40zUd3Sb.js";import"./useInput-BCzWqwFb.js";import"./Primitive-coUWhel5.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./useLayout-DGTwvQ8o.js";import"./useZendeskWidget-ZFOaLvLk.js";const E={class:"gv-text-center"},L={class:"gv-text-lg gv-font-semibold gv-mt-0"},N={class:"gv-my-lg"},O={key:0,class:"gv-text-center gv-my-lg"},V={class:"gv-button-group gv-vertical"},w=["value"],F=["value"],D=["value"],S=["value"],$=["value"],I=["value"],K=["value"],M=["value"],h="/oauth/authorize",ot=T({__name:"OAuthAuthorize",props:{client:{},name:{},csrfToken:{},state:{},scopes:{},authToken:{}},setup(e){const{t:s}=z();return(P,c)=>{const p=b,_=A("i18n-t"),m=k,v=y;return u(),i(r,null,[n(a(x),{title:a(s)("auth.oauth.authorize.title")},null,8,["title"]),n(v,null,{default:l(()=>[n(p,{closable:!1}),t("div",E,[t("h3",L,o(a(s)("auth.oauth.authorize.subtitle")),1),t("div",N,[n(_,{keypath:"auth.oauth.authorize.description",tag:"p",class:"gv-text-sm",scope:"global"},{name:l(()=>[t("strong",null,o(e.name),1)]),_:1})])]),e.scopes.length?(u(),i("div",O,[t("p",null,[t("strong",null,o(a(s)("auth.oauth.authorize.scope")),1)]),t("ul",null,[(u(!0),i(r,null,B(e.scopes,(g,f)=>(u(),i("li",{key:f},o(g.description),1))),128))])])):C("",!0),t("div",V,[t("form",{method:"post",action:h},[c[0]||(c[0]=t("input",{type:"hidden",name:"_method",value:"DELETE"},null,-1)),t("input",{type:"hidden",name:"_token",value:e.csrfToken},null,8,w),t("input",{type:"hidden",name:"state",value:e.state},null,8,F),t("input",{type:"hidden",name:"client_id",value:e.client},null,8,D),t("input",{type:"hidden",name:"auth_token",value:e.authToken},null,8,S),n(m,{variant:"cancel",type:"submit",class:"gv-w-full"},{default:l(()=>[d(o(a(s)("generic.actions.cancel")),1)]),_:1})]),t("form",{method:"post",action:h},[t("input",{type:"hidden",name:"_token",value:e.csrfToken},null,8,$),t("input",{type:"hidden",name:"state",value:e.state},null,8,I),t("input",{type:"hidden",name:"client_id",value:e.client},null,8,K),t("input",{type:"hidden",name:"auth_token",value:e.authToken},null,8,M),n(m,{type:"submit",variant:"primary",class:"gv-w-full"},{default:l(()=>[d(o(a(s)("generic.actions.authorize")),1)]),_:1})])])]),_:1})],64)}}});export{ot 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.