1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{};e.SENTRY_RELEASE={id:"d550ef807d0377358caaeb96b27eda673de86179"};var t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="0f5f203c-3b85-4172-9b74-99b256ae9a55",e._sentryDebugIdIdentifier="sentry-dbid-0f5f203c-3b85-4172-9b74-99b256ae9a55")}catch(i){}}();import{V as e,r as t,H as i,n as s,aS as n,N as o,_ as a}from"./client-B_OO2n2q.js";import{S as r}from"./Searchfield-D0_G3pl4.js";var u=(e=>(e.Title="title",e.NotFound="not-found",e.Item="item",e))(u||{});const d=s(e.extend({name:"SearchfieldWithAutoComplete",data:()=>({is_active:!1,active_index:void 0}),props:{placeholder:{type:String,required:!1,default:""},suggestions:{type:Array,required:!1,default:void 0},aria_label:{type:String,required:!1,default:void 0},search_icon_name:{type:String,required:!1,default:void 0},use_dark_mode:{type:Boolean,required:!1,default:!1}},watch:{suggestions(e){this.active_index=void 0,null!=e&&this.announce_suggestions(e)}},computed:{active_descendant_id(){return null==this.active_index?void 0:this.id+this.active_index},first_item_index(){if(this.suggestions.length>0)return this.suggestions.findIndex(e=>"item"===e.type)},id(){return i.instance.getId(this.$options.name)},input_id(){return this.id+"_input"},is_showing_suggestions(){return this.is_active&&null!=this.suggestions}},methods:{on_blur(){setTimeout(()=>{this.is_active=!1,this.active_index=void 0,this.$emit("blur")},200)},on_down_arrow_key(){if(null==this.suggestions)return;if(null==this.active_index)return void(this.active_index=this.suggestions.findIndex(e=>"item"===e.type));const e=this.suggestions.findIndex((e,t)=>"item"===e.type&&null!=this.active_index&&t>this.active_index);e>-1&&(this.active_index=e)},on_focus(){this.is_active=!0,this.$emit("focus")},on_submit(e){if(null==this.active_index)return this.$emit("submit",e),void this.on_blur();this.on_suggestion_selected(this.suggestions[this.active_index])},on_suggestion_selected(e){this.$emit("suggestion_selected",e)},on_up_arrow_key(){if(null!=this.active_index&&null!=this.suggestions)for(;this.active_index>(this.first_item_index??0);)if("item"===this.suggestions[--this.active_index].type)return},on_value_update(e){this.is_active=!0,this.$emit("update_value",e)},announce_suggestions(e){const i=e.filter(e=>"item"===e.type).length;let s="";s=0===i?e.find(e=>"title"===e.type)?.item??e.find(e=>"not-found"===e.type)?.item??"No results found".localized():"{count} results available".localized({count:i},i),this.$nuxt.$emit(t.LiveRegionUpdate,{text:s})}},components:{Searchfield:r}}),function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{staticClass:"autocomplete-container",class:{dark:e.use_dark_mode},on:{keyup:[function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"down",40,t.key,["Down","ArrowDown"])?null:e.on_down_arrow_key.apply(null,arguments)},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"up",38,t.key,["Up","ArrowUp"])?null:e.on_up_arrow_key.apply(null,arguments)}]}},[t("searchfield",{staticClass:"searchfield",attrs:{id:e.input_id,placeholder:e.placeholder,aria_label:e.aria_label,active_descendant_id:e.active_descendant_id,autocomplete_id:e.id,aria_expanded:e.is_showing_suggestions,show_search_input_buttons:!0,search_icon_name:e.search_icon_name,use_dark_mode:e.use_dark_mode},on:{update_value:e.on_value_update,submit:e.on_submit,focus:e.on_focus,blur:e.on_blur}}),e.is_showing_suggestions?t("div",{staticClass:"suggestions-container"},[t("div",{staticClass:"scroll-container"},[t("ul",{staticClass:"suggestions-list",attrs:{id:e.id,role:"listbox","aria-labelledby":e.input_id}},e._l(e.suggestions,function(i,s){return t("li",{key:s,attrs:{id:e.id+s,role:"item"===i.type?"option":void 0,"aria-selected":"item"===i.type&&e.active_index==s}},["title"===i.type?t("div",{staticClass:"section-title",class:{separator:s>0}},[e._v(" "+e._s(i.item)+" ")]):"not-found"===i.type?t("p",{staticClass:"not-found-item"},[e._v(e._s(i.item))]):"item"===i.type?t("button",{staticClass:"suggestion-item",class:{active:e.active_index==s},on:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.on_suggestion_selected(i)},click:function(t){return e.on_suggestion_selected(i)}}}
1,[e._v(" "+e._s(i.item)+" ")]):e._e()])}),0)])]):e._e()],1)},[],!1,null,"abd2d33c").exports;const l=s(e.extend({name:"ConsortiumSearch",data:()=>({search_query:""}),computed:{institutions_matching_query(){return(this.$kuistore.state.onboarding.wayf_group?.list??[]).filter(e=>e.name.toLowerCase().includes(this.search_query))},institution_suggestions(){const e=this.institutions_matching_query.map(e=>({item:e.name,type:u.Item}));return e.length>0?e:void 0}},methods:{on_search_update(e){this.search_query=e.toLowerCase()},on_institution_selected(e){const t=this.institutions_matching_query[e.original_index??0];o.navigate(this.$router,`/${t.subdomain}`)}},components:{ContentSection:n,SearchfieldWithAutoComplete:d}}),function(){var e=this,t=e._self._c;return e._self._setupProxy,t("content-section",{staticClass:"search-content",attrs:{"data-clarity-mask":"true"}},[t("searchfield-with-auto-complete",{attrs:{placeholder:"Search for your Library or Select your Library from the list".localized(),search_icon_name:"angle-down",suggestions:e.institution_suggestions,use_dark_mode:!0},on:{update_value:e.on_search_update,suggestion_selected:e.on_institution_selected}})],1)},[],!1,null,"341b23bf").exports;const c=s(e.extend({name:"Group",layout:"onboarding-default",middleware(e){const t=e.params.stem;return a.isEmpty(t)?(o.redirect(e,"/signup"),Promise.resolve()):e.$kuistore.dispatch("onboarding/fetch_wayf_group",t).catch(t=>404===t.httpCode?o.redirect(e,"/signup"):e.error({statusCode:t.httpCode,message:t.userMessaging?.message}))},head:()=>({title:`${"Welcome to".localized()}... | Kanopy`}),computed:{group_name(){return this.$kuistore.state.onboarding.wayf_group?.name??""}},components:{ConsortiumSearch:l}}),function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{staticClass:"container"},[t("div",{staticClass:"content-container"},[t("h3",{staticClass:"welcome-to-kanopy"},[e._v(e._s("Welcome to Kanopy!".localized()))]),t("h6",{staticClass:"group-name"},[e._v(e._s(e.group_name))]),t("consortium-search",{staticClass:"search-content"})],1)])},[],!1,null,"2029351b").exports;export{c as default}; 2//# sourceMappingURL=_stem-K9hcJR4Y.js.map
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.