PageSourceSearch

https://oklac.org/build/assets/Show-BqaCemkg.js

js oklac.org collected 2026-10-06 03:15:52 UTC 4,013 bytes, 1 lines download raw bytes

1import{k as h,r as s,c as n,o as l,w as a,b as o,a as c,t as y,g as v,m as A}from"./app-wblxUiz-.js";import{A as C}from"./AdminMenu-XpAYKw5W.js";import{A as S}from"./AdminCard-Bg7MqhJY.js";import{A as L}from"./AppLayout-CHtUBq5M.js";import{R as O}from"./RootAppLayout-DfM-BhqW.js";import{u as b}from"./use-roles-C-whPvy2.js";import w from"./UpdateGeneral-DXz_WQLG.js";import x from"./UpdateInterests-DcYCKTF7.js";import k from"./UpdateProducts-P6WrrNMw.js";import $ from"./UpdateRoles-CE-rHhjV.js";import U from"./UpdateTopics-Dup_Umim.js";import{_ as R}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./FeedbackForm-Cc1NAGe3.js";import"./Banner-BiAtq3U7.js";import"./Head.vue_vue_type_script_setup_true_lang-BHiLkhz-.js";import"./StatefulButton-BNta5oNU.js";import"./RootOLACLogo-DBXe4pD_.js";import"./ONIELogo-BFmxi-Sk.js";import"./InfoCard-Ctovs11m.js";import"./CTextInput-DuE85pGO.js";import"./index-CXaCvYeG.js";import"./inertia-form-set-error-C9nLwfgO.js";import"./map-errors-BikZX27s.js";import"./validators-CSAGzc2J.js";import"./CSelect-BPrQNUcp.js";import"./CCheckboxGroup-Cxz5c8lm.js";import"./ActionMessage-C55WT3N1.js";import"./CTelInput-GjU0delS.js";const D={name:"Show",components:{Link:h,UpdateTopics:U,UpdateRoles:$,UpdateProducts:k,UpdateInterests:x,UpdateGeneral:w,RootAppLayout:O,AppLayout:L,AdminCard:S,AdminMenu:C},props:{affiliate:{type:Object,required:!0}},setup(){return b()},computed:{layoutComponent(){return this.isAffiliate?"RootAppLayout":"AppLayout"},regions(){var e;return(e=this.$page.props)!=null&&e.regions?this.$page.props.regions.map(r=>({value:r.id,label:r.name.replace("_"," ").replace(/\b[a-z]/g,i=>i.toUpperCase())})):[]},experienceLevels(){var e;return(e=this.$page.props)!=null&&e.affiliate_experience_levels?this.getSelectOptions(this.$page.props.affiliate_experience_levels):[]},ages(){var e;return(e=this.$page.props)!=null&&e.ages?this.getSelectOptions(this.$page.props.ages):[]},genders(){var e;return(e=this.$page.props)!=null&&e.genders?this.getSelectOptions(this.$page.props.genders):[]},ethnicities(){var e;return(e=this.$page.props)!=null&&e.ethnicities?this.getSelectOptions(this.$page.props.ethnicities):[]},interests(){var e;return(e=this.$page.props)!=null&&e.olac_interests?this.getSelectOptions(this.$page.props.olac_interests):[]},roles(){var e;return(e=this.$page.props)!=null&&e.affiliate_roles?this.getSelectOptions(this.$page.props.affiliate_roles):[]},topics(){var e;return(e=this.$page.props)!=null&&e.olac_topics?this.getSelectOptions(this.$page.props.olac_topics):[]},productCategoryList(){var e;return((e=this.$page.props)==null?void 0:e.product_categories)||[]},showsInDirectory(){var r;const e=(r=this.affiliate)==null?void 0:r.show_in_directory;return e===!0||e==="true"||e===1||e==="1"}},methods:{getSelectOptions(e){return e.map(r=>({value:r.id.toString(),label:r.name}))}}},B={class:"mb-8"},I={class:"py-12"};function M(e,r,i,N,P,t){const p=s("admin-menu"),m=s("update-general"),u=s("update-products"),f=s("update-interests"),d=s("update-roles"),g=s("update-topics"),_=s("admin-card");return l(),n(A(t.layoutComponent),{title:e.$t("OLAC Member Preferences")},{"user-menu":a(()=>[o(p,{"link-class":"nav-bar__dropdown-link"})]),default:a(()=>[o(_,null,{menu:a(()=>[o(p)]),default:a(()=>[c("h1",B,y(e.$t("OLAC Member Preferences")),1),c("div",I,[o(m,{affiliate:i.affiliate,regions:t.regions,"experience-levels":t.experienceLevels,ages:t.ages,genders:t.genders,ethnicities:t.ethnicities}
1,null,8,["affiliate","regions","experience-levels","ages","genders","ethnicities"]),t.showsInDirectory?(l(),n(u,{key:0,affiliate:i.affiliate,"product-categories":t.productCategoryList},null,8,["affiliate","product-categories"])):v("",!0),o(f,{affiliate:i.affiliate,interests:t.interests},null,8,["affiliate","interests"]),o(d,{affiliate:i.affiliate,roles:t.roles},null,8,["affiliate","roles"]),o(g,{affiliate:i.affiliate,topics:t.topics},null,8,["affiliate","topics"])])]),_:1})]),_:1},8,["title"])}const ue=R(D,[["render",M]]);export{ue 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.