PageSourceSearch

https://app.aeroidx.com/build/assets/MlsBoardCredentials-B5BOZ9B4.js

js aeroidx.com collected 2026-10-07 02:49:09 UTC 5,594 bytes, 1 lines download raw bytes

1import{A as g}from"./AuthenticatedLayout-BJfSs0SQ.js";import{h as k,_ as f,l as _}from"./app-CIT4hbzU.js";import{k as o,l as r,B as x,C as y,A as h,n as t,v as s,p as l,y as c,F as m,t as b,z as w,e as v,g as A}from"./_plugin-vue_export-helper-D-DLBFXG.js";import"./Modal-CFNr_Hq7.js";import"./ToastMessage-DSYX9ovi.js";/* empty css                                                     */import"./useTheme-CQu7LMDX.js";import"./useJennaRestrictedSettingsNav-BIi3IGix.js";import"./index-P0QL1Peh.js";import"./index-Dh0--Pjx.js";/* empty css                                                                            */const C={class:"min-h-screen flex flex-col py-8 px-6 md:px-10 lg:px-12"},N={class:"max-w-5xl w-full mx-auto flex flex-col flex-1"},B={class:"mb-6 flex flex-wrap items-start justify-between gap-4"},V={class:"shrink-0 text-sm text-gray-500 dark:text-gray-400"},L={class:"font-semibold text-gray-900 dark:text-white"},M={class:"font-semibold text-gray-900 dark:text-white"},S={key:0,class:"mb-4"},F={key:1,class:"bg-white dark:bg-[hsla(220,20%,20%,.15)] border dark:border-[hsla(220,20%,40%,.2)] rounded-3xl shadow-sm px-6 py-12 text-center"},U={key:2,class:"bg-white dark:bg-[hsla(220,20%,20%,.15)] border dark:border-[hsla(220,20%,40%,.2)] rounded-3xl shadow-sm overflow-hidden"},q={class:"overflow-x-auto"},E={class:"w-full text-left"},P={class:"px-6 py-4 align-top"},$={class:"text-sm font-medium text-gray-900 dark:text-white flex items-center gap-2"},j=["title"],z={class:"mt-0.5 text-xs text-gray-500 dark:text-gray-400"},D={class:"px-6 py-4 align-top text-sm font-mono text-gray-700 dark:text-gray-300 whitespace-nowrap"},K={class:"px-6 py-4 align-top text-sm text-gray-500 dark:text-gray-400"},T=["title"],G={class:"px-6 py-4 align-top text-right whitespace-nowrap"},H={key:1,class:"text-sm text-gray-400 dark:text-gray-500"},I={key:0},J={colspan:"5",class:"px-6 py-10 text-center text-sm text-gray-500 dark:text-gray-400"},ot={__name:"MlsBoardCredentials",props:{credentials:{type:Array,default:()=>[]},accountCount:{type:Number,default:0}},setup(n){const u=n,d=v(""),p=A(()=>{const i=d.value.trim().toLowerCase();return i?u.credentials.filter(a=>[a.user_name,a.user_email,a.company_name,a.board_abbreviation,a.board_name,a.label].filter(Boolean).some(e=>String(e).toLowerCase().includes(i))):u.credentials});return(i,a)=>(o(),r(m,null,[x(y(k),{title:"Per-account MLS keys"}),x(g,null,{default:h(()=>[t("div",C,[t("div",N,[t("div",B,[a[1]||(a[1]=t("div",null,[t("h1",{class:"text-2xl font-bold font-clash text-[#111827] dark:text-white"}," Per-account MLS keys "),t("p",{class:"mt-1 text-sm text-gray-500 dark:text-gray-400"}," Accounts running on their own key instead of the shared one. Add or rotate a key from the user's page. ")],-1)),t("p",V,[t("span",L,s(n.credentials.length),1),l(" "+s(n.credentials.length===1?"key":"keys")+" across ",1),t("span",M,s(n.accountCount),1),l(" "+s(n.accountCount===1?"account":"accounts"),1)])]),n.credentials.length?(o(),r("div",S,[x(f,{modelValue:d.value,"onUpdate:modelValue":a[0]||(a[0]=e=>d.value=e),type:"text",placeholder:"Filter by user, company, board or note…",autocomplete:"off",class:"w-full"},null,8,["modelValue"])])):c("",!0),n.credentials.length?(o(),r("div",U,[t("div",q,[t("table",E,[a[4]||(a[4]=t("thead",null,[t("tr",{class:"border-b border-gray-200 dark:border-[hsla(220,20%,40%,.2)]"},[t("th",{class:"px-6 py-3 text-xs font-semibold uppercase tracking-wide text-gray-400 dark:text-gray-500"}," Account "),t("th",{class:"px-6 py-3 text-xs font-semibold uppercase tracking-wide text-gray-400 dark:text-gray-500"}," Key "),t("th",{class:"px-6 py-3 text-xs font-semibold uppercase tracking-wide text-gray-400 dark:text-gray-500"}," Note "),t("th",{class:"px-6 py-3 text-xs font-semibold uppercase tracking-wide text-gray-400 dark:text-gray-500"}," Updated "),t("th",{class:"px-6 py-3"},[t("span",{class:"sr-only"},"Manage")])])],-1)),t("tbody",null,[(o(!0),r(m,null,b(p.value,e=>(o(),r("tr",{key:e.id,class:"border-b last:border-0 border-gray-100 dark:border-[hsla(220,20%,40%,.12)]"},[t("td",P,[t("p",$,[l(s(e.user_name||"Unknown user")+" ",1),e.is_wildcard?c("",!0):(o(),r("span",{key:0,class:"inline-flex items-center px-2 py-0.5 rounded-lg text-[10px] font-semibold bg-amber-100 text-amber-700 dark:bg-amber-900/40 dark:text-amber-300",title:`Applies only to ${e.board_name}, overriding this account's key for that board.`},s(e.board_abbreviation)+" only ",9,j))]),t("p",z,[e.company_name?(o(),r(m,{key:0},[l(s(e.company_name)+" · ",1)],64)):c("",!0),l(" account #"+s(e.account_settings_id),1)])]),t("td",D,s(e.masked_key),1),t("td",K,s(e.label||"—"),1),t("td",{class:"px-6 py-4 align-top text-sm text-gray-500 dark:text-gray-400 whitespace-nowrap",title:e.updated_at},s(e.updated_at_human||"—"),9,T),t("td",G,[e.user_id?(o(),w(y(_),{key:0,href:i.route("admin.users.show",e.user_id),class:"text-sm font-medium text-violet-600 dar
1k:text-violet-400 hover:underline"},{default:h(()=>[...a[3]||(a[3]=[l(" Manage ",-1)])]),_:1},8,["href"])):(o(),r("span",H," No user "))])]))),128)),p.value.length?c("",!0):(o(),r("tr",I,[t("td",J," No keys match “"+s(d.value)+"”. ",1)]))])])])])):(o(),r("div",F,[...a[2]||(a[2]=[t("p",{class:"text-sm font-medium text-gray-900 dark:text-white"}," No per-account keys yet ",-1),t("p",{class:"mt-1 text-sm text-gray-500 dark:text-gray-400 max-w-md mx-auto"}," Every account is using the shared key for its boards. Attach one from a user's page when a client may not share a key, or holds one covering several feeds. ",-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.