PageSourceSearch

https://kiku.listen.org/2748.a6d217c4632ae5c5.bundle.js

js listen.org collected 2026-09-24 20:16:47 UTC 9,735 bytes, 1 lines download raw bytes

1"use strict";(self["webpackChunkclient"]=self["webpackChunkclient"]||[]).push([[2748],{17090:function(e,t,n){n.d(t,{A:function(){return p}});var a=n(20641),o=n(90033);const r=["id"],i={class:"o-wb-shell"};function l(e,t,n,l,s,c){const u=(0,a.g2)("WebsiteSectionHead");return(0,a.uX)(),(0,a.CE)("section",{id:n.id,class:(0,o.C4)(["o-w-section",{"o-wb-surface-alt":n.alt}])},[(0,a.Lk)("div",i,[(0,a.bF)(u,{eyebrow:n.eyebrow,"show-eyebrow":n.showEyebrow,icon:n.icon,title:n.title,subtitle:n.subtitle,editing:n.editing,onUpdate:t[0]||(t[0]=t=>e.$emit("update",t))},null,8,["eyebrow","show-eyebrow","icon","title","subtitle","editing"]),(0,a.RG)(e.$slots,"default",{},void 0,!0)])],10,r)}var s=n(92736),c={name:"WebsiteSection",components:{WebsiteSectionHead:s.A},props:{id:{type:String,default:null},eyebrow:{type:String,default:null},showEyebrow:{type:Boolean,default:!0},icon:{type:String,default:null},title:{type:String,default:null},subtitle:{type:String,default:null},alt:{type:Boolean,default:!1},editing:{type:Boolean,default:!1}},emits:["update"]},u=n(66262);const d=(0,u.A)(c,[["render",l],["__scopeId","data-v-7a3f38c8"]]);var p=d},45456:function(e,t,n){n.d(t,{A:function(){return u}});var a=n(20641),o=n(90033),r=n(53751);function i(e,t,n,i,l,s){return(0,a.uX)(),(0,a.Wv)((0,a.$y)(n.tag),{class:(0,o.C4)([e.$attrs.class,{"o-we-editable":n.editing,"is-empty":n.editing&&!n.modelValue}]),contenteditable:n.editing?"plaintext-only":null,"data-placeholder":n.placeholder,spellcheck:n.editing?"true":null,onInput:s.onInput,onBlur:s.onBlur,onKeydown:[(0,r.jR)((0,r.D$)(s.onEnter,["prevent"]),["enter"]),(0,r.jR)((0,r.D$)(s.onEscape,["prevent"]),["esc"])],onPaste:s.onPaste},{default:(0,a.k6)(()=>[(0,a.eW)((0,o.v_)(n.modelValue),1)]),_:1},40,["class","contenteditable","data-placeholder","spellcheck","onInput","onBlur","onKeydown","onPaste"])}var l={name:"WebsiteEditable",inheritAttrs:!1,props:{modelValue:{type:String,default:""},tag:{type:String,default:"span"},editing:{type:Boolean,default:!1},placeholder:{type:String,default:""}},emits:["update:modelValue"],methods:{onInput(e){this.$emit("update:modelValue",e.target.innerText.trim())},onBlur(e){this.$emit("update:modelValue",e.target.innerText.trim())},onEnter(e){e.target.blur()},onEscape(e){e.target.innerText=this.modelValue,e.target.blur()},onPaste(e){e.preventDefault();const t=(e.clipboardData||window.clipboardData).getData("text/plain");document.execCommand("insertText",!1,t.replace(/\s+/g," "))}}},s=n(66262);const c=(0,s.A)(l,[["render",i],["__scopeId","data-v-464dcad8"]]);var u=c},78166:function(e,t,n){n.d(t,{B9:function(){return c},Jm:function(){return h},L5:function(){return g},O_:function(){return d},UF:function(){return i},Vi:function(){return u},er:function(){return p}});n(18111),n(22489),n(20116);var a=n(28782);const o="orgo.website.chapters.",r=18e5,i=10;function l(){try{return"undefined"!==typeof window&&window.localStorage?window.localStorage:null}catch{return null}}function s(e){return`${o}${e}`}function c(e,t){const n=l();if(n&&e&&Array.isArray(t))try{n.setItem(s(e),JSON.stringify({savedAt:Date.now(),chapters:t}))}catch{try{n.removeItem(s(e))}catch{}}}function u(e){const t=l();if(!t||!e)return null;try{const n=t.getItem(s(e));if(!n)return null;const a=JSON.parse(n);return a&&Array.isArray(a.chapters)&&a.savedAt?Math.abs(Date.now()-a.savedAt)>r?(t.removeItem(s(e)),null):a.chapters:null}catch{return null}}function d(e,t){const n=u(e);return n&&n.find(e=>String(e.id)===String(t))||null}function p(e){const t=e?.logo;return t&&"string"===typeof t?/^https?:\/\//i.test(t)?t:`${a.hd}${a.DJ}localCenter/${t}`:null}function h(e){const t=e?.town?.name||("string"===typeof e?.town?e.town:null),n=e?.region?.name||("string"===typeof e?.region?e.region:null);return[t,n].filter(Boolean).join(", ")}function g(e,t){const n=Array.isArray(e)?e:[],a=y(t);return a?n.filter(e=>y(`${e?.name||""} ${h(e)}`).includes(a)):n}function y(e){return String(e||"").normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase().trim()}},80367:function(e,t,n){n.r(t),n.d(t,{default:function(){return A}});var a=n(20641),o=n(53751),r=n(90033);const i={key:0,class:"o-w-chapters__search"},l=["placeholder","aria-label"],s={key:1,class:"o-w-chapters__grid"},c={key:2,class:"o-w-chapters__empty"},u={key:3,class:"o-w-chapters__empty"},d={key:4,class:"o-w-chapters__grid"},p={class:"o-w-chapter__head"},h=["src","alt"],g={key:1,class:"o-w-chapter__avatar"},y={class:"o-w-chapter__name"},w={key:0,class:"o-w-chapter__location"},b={key:0,class:"o-w-chapter__desc"},m={class:"o-w-chapter__cta"};function f(e,t,n,f,v,_){const S=(0,a.g2)("WebsiteIcon"),k=(0,a.g2)("router-link"),C=(0,a.g2)("WebsiteSection");return(0,a.uX)(),(0,a.Wv)(C,{eyebrow:e.$t("Our chapters"),icon:"map-location-dot",title:e.$t("All chapters"),subtitle:e.$t("Browse every local group and find the one closest to you.")},{default:(0,a.k6)(()=>[_.showsSearch?((0,a.uX)(),(0,a.CE)("div",i,[(0,a.bF)(S,{name:"compass",class:"o-w-chapters__search-icon"}),(0,a.bo)((0,a.Lk)("input",{"onUpdate:modelValue":t[0]||(t[0]=e=>v.search=e),type:"search",class:"o-w-chapters__search-input",placeholder:e.$t("Search by name or town"),"aria-label":e.$t("Search by name or town")},null,8,l),[[o.Jo,v.search]])])):(0,a.Q3)("",!0),v.isLoading?((0,a.uX)(),(0,a.CE)("div",s,[((0,a.uX)(),(0,a.CE)(a.FK,null,(0,a.pI)(6,e=>(0,a.Lk)("div",{key:e,class:"o-w-chapter is-skeleton"})),64))])):v.chapters.length?_.visibleChapters.length?((0,a.uX)(),(0,a.CE)("div",d,[((0,a.uX)(!0),(0,a.CE)(a.FK,null,(0,a.pI)(_.visibleChapters,t=>((0,a.uX)(),(0,a.Wv)(k,{key:t.id,class:"o-w-chapter",to:{name:"ChapterPublic",params:{id:t.id}}},{default:(0,a.k6)(()=>[(0,a.Lk)("div",p,[_.chapterLogo(t)?((0,a.uX)(),(0,a.CE)("img",{key:0,src:_.chapterLogo(t),alt:t.name,class:"o-w-chapter__logo"},null,8,h)):((0,a.uX)(),(0,a.CE)("span",g,[(0,a.bF)(S,{name:"people-group"})])),(0,a.Lk)("div",null,[(0,a.Lk)("h3",y,(0,r.v_)(t.name),1),_.chapterLocation(t)?((0,a.uX)(),(0,a.CE)("span",w,[(0,a.bF)(S,{name:"location-dot"}),(0,a.eW)(" "+(0,r.v_)(_.chapterLocation(t)),1)])):(0,a.Q3)("",!0)])]),t.mapDescription?((0,a.uX)(),(0,a.CE)("p",b,(0,r.v_)(_.stripHtml(t.mapDescription)),1)):(0,a.Q3)("",!0),(0,a.Lk)("span",m,[(0,a.eW)((0,r.v_)(e.$t("View chapter"))+" ",1),(0,a.bF)(S,{name:"arrow-right"})])]),_:2},1032,["to"]))),128))])):((0,a.uX)(),(0,a.CE)("p",u,(0,r.v_)(e.$t("No chapters match your search.")),1)):((0,a.uX)(),(0,a.CE)("p",c,(0,r.v_)(e.$t("No chapters published yet. Check back soon.")),1))]),_:1},8,["eyebrow","title","subtitle"])}var v=n(40834),_=n(17090),S=n(19318),k=n(78166),C={name:"ChaptersList",components:{WebsiteSection:_.A,WebsiteIcon:S.A},inject:{website:{default:null}},data(){return{chapters:[],search:"",isLoading:!1}},computed:{...(0,v.L8)(["tenant"]),tenantSlug(){return this.website?.site?.tenant?.slug||this.tenant?.slug||this.$route.query.workspace||null},showsSearch(){return this.chapters.length>k.UF},visibleChapters(){return this.showsSearch?(0,k.L5)(this.chapters,this.search):this.chapters}},watch:{tenantSlug(e){e&&!this.chapters.length&&this.loadChapter
1s()}},created(){this.tenantSlug&&this.loadChapters()},methods:{loadChapters(){const e=(0,k.Vi)(this.tenantSlug);e&&(this.chapters=e),this.fetchChapters(!e)},fetchChapters(e){this.isLoading=e,this.$http.plain.get(`/local-centers-public?tenantSlug=${this.tenantSlug}&isActive=1&itemsPerPage=1000`).then(e=>{this.chapters=e.data["hydra:member"]||[],(0,k.B9)(this.tenantSlug,this.chapters)}).catch(e=>console.error(e)).finally(()=>{this.isLoading=!1})},chapterLogo(e){return(0,k.er)(e)},chapterLocation(e){return(0,k.Jm)(e)},stripHtml(e){const t=(e||"").replace(/<[^>]*>/g," ").replace(/\s+/g," ").trim();return t.length>140?`${t.slice(0,140)}…`:t}}},$=n(66262);const E=(0,$.A)(C,[["render",f],["__scopeId","data-v-f882696a"]]);var A=E},92736:function(e,t,n){n.d(t,{A:function(){return p}});var a=n(20641),o=n(90033);const r={key:0,class:"o-wh__eyebrow"};function i(e,t,n,i,l,s){const c=(0,a.g2)("WebsiteIcon"),u=(0,a.g2)("WebsiteEditable");return s.hasContent?((0,a.uX)(),(0,a.CE)("header",{key:0,class:(0,o.C4)(["o-wh",`is-${n.align}`])},[n.showEyebrow&&(n.eyebrow||n.editing)?((0,a.uX)(),(0,a.CE)("span",r,[n.icon?((0,a.uX)(),(0,a.Wv)(c,{key:0,name:n.icon,class:"o-wh__eyebrow-icon"},null,8,["name"])):(0,a.Q3)("",!0),(0,a.bF)(u,{"model-value":n.eyebrow,editing:n.editing,placeholder:e.$t("Eyebrow"),"onUpdate:modelValue":t[0]||(t[0]=t=>e.$emit("update",{eyebrow:t}))},null,8,["model-value","editing","placeholder"])])):(0,a.Q3)("",!0),n.showTitle&&(n.title||n.editing)?((0,a.uX)(),(0,a.Wv)(u,{key:1,tag:"h2",class:"o-wh__title","model-value":n.title,editing:n.editing,placeholder:e.$t("Section title"),"onUpdate:modelValue":t[1]||(t[1]=t=>e.$emit("update",{title:t}))},null,8,["model-value","editing","placeholder"])):(0,a.Q3)("",!0),n.subtitle||n.editing?((0,a.uX)(),(0,a.Wv)(u,{key:2,tag:"p",class:"o-wh__subtitle","model-value":n.subtitle,editing:n.editing,placeholder:e.$t("Short intro"),"onUpdate:modelValue":t[2]||(t[2]=t=>e.$emit("update",{subtitle:t}))},null,8,["model-value","editing","placeholder"])):(0,a.Q3)("",!0)],2)):(0,a.Q3)("",!0)}var l=n(45456),s=n(19318),c={name:"WebsiteSectionHead",components:{WebsiteEditable:l.A,WebsiteIcon:s.A},props:{eyebrow:{type:String,default:null},showEyebrow:{type:Boolean,default:!0},icon:{type:String,default:null},title:{type:String,default:null},showTitle:{type:Boolean,default:!0},subtitle:{type:String,default:null},align:{type:String,default:"center"},editing:{type:Boolean,default:!1}},emits:["update"],computed:{hasContent(){return this.editing||!!(this.showEyebrow&&this.eyebrow||this.title||this.subtitle)}}},u=n(66262);const d=(0,u.A)(c,[["render",i],["__scopeId","data-v-20e9e71d"]]);var p=d}}]);

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.