PageSourceSearch

https://www.langleyorchestra.org/wp-content/plugins/jquery-archive…/build/view.js?ver=bafb3b9e73055f3d9f87

js langleyorchestra.org collected 2026-10-02 02:04:54 UTC 11,585 bytes, 1 lines download raw bytes

1(()=>{"use strict";var e={n:t=>{var o=t&&t.__esModule?()=>t.default:()=>t;return e.d(o,{a:o}),o},d:(t,o)=>{for(var n in o)e.o(o,n)&&!e.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:o[n]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)};const t=window.wp.domReady;var o=e.n(t);const n=window.wp.element;const s=window.ReactJSXRuntime,r={title:"",symbol:"0",effect:"none",month_format:"full",expand:"none",type:"post",post_type:"post",taxonomy:"category",showcount:!1,showpost:!1,sortpost:"id_asc",show_post_date:!1,show_day_archive:!1,hide_from_year:null,onlycategory:null,only_sym_link:!1,open_links_new_tab:!1,accordion:!1,include_or_exclude:"include",categories:[],currentPost:null},a=(0,n.createContext)(r),i=({attributes:e,children:t})=>{const o={...r,...e},[i,l]=(0,n.useState)(o),d=e=>{const t={...e};"undefined"!=typeof jalwCurrentPost&&(t.currentPost=jalwCurrentPost),t.accordion=!!Number(t.accordion),t.showcount=!!Number(t.showcount),t.showpost=!!Number(t.showpost),t.show_post_date=!!Number(t.show_post_date),t.only_sym_link=!!Number(t.only_sym_link),t.open_links_new_tab=!!Number(t.open_links_new_tab),t.show_day_archive=!!Number(t.show_day_archive),l(e=>({...e,...t}))},{animationFunction:c,hideOpenedLists:p}=function(e){const t="function"==typeof window.requestAnimationFrame,o=(e,o=500)=>"none"===window.getComputedStyle(e).display?(e.classList.remove("jal-hide"),((e,o=500)=>{e.style.removeProperty("display");let n=window.getComputedStyle(e).display;"none"===n&&(n="block"),e.style.display=n,e.style.opacity=0;let s=+new Date;const r=function(){e.style.opacity=+e.style.opacity+(new Date-s)/o,s=+new Date,+e.style.opacity<1&&(t?window.requestAnimationFrame(r):setTimeout(r,16))};r()})(e,o)):((e,o=500)=>{e.style.display="",e.style.opacity=1;let n=+new Date;const s=function(){e.style.opacity=Number(+e.style.opacity-(new Date-n)/o).toFixed(4),n=+new Date,-e.style.opacity<=0?t?window.requestAnimationFrame(s):setTimeout(s,16):e.style.display="none"};s()})(e,o),s=(e,t=500)=>"none"===window.getComputedStyle(e).display?((e,t=500)=>{e.style.removeProperty("display");let o=window.getComputedStyle(e).display;"none"===o&&(o="block"),e.style.display=o;const n=e.offsetHeight;e.style.overflow="hidden",e.style.height=0,e.style.paddingTop=0,e.style.paddingBottom=0,e.style.marginTop=0,e.style.marginBottom=0,e.style.boxSizing="border-box",e.style.transitionProperty="height, margin, padding",e.style.transitionDuration=t+"ms",e.style.height=n+"px",e.style.removeProperty("padding-top"),e.style.removeProperty("padding-bottom"),e.style.removeProperty("margin-top"),e.style.removeProperty("margin-bottom"),window.setTimeout(()=>{e.style.removeProperty("height"),e.style.removeProperty("overflow"),e.style.removeProperty("transition-duration"),e.style.removeProperty("transition-property")},t)})(e,t):((e,t=500)=>{e.style.transitionProperty="height, margin, padding",e.style.transitionDuration=t+"ms",e.style.boxSizing="border-box",e.style.height=e.offsetHeight+"px",e.style.overflow="hidden",e.style.height=0,e.style.paddingTop=0,e.style.paddingBottom=0,e.style.marginTop=0,e.style.marginBottom=0,window.setTimeout(()=>{e.style.display="none",e.style.removeProperty("height"),e.style.removeProperty("padding-top"),e.style.removeProperty("padding-bottom"),e.style.removeProperty("margin-top"),e.style.removeProperty("margin-bottom"),e.style.removeProperty("overflow"),e.style.removeProperty("transition-duration"),e.style.removeProperty("transition-property")},t)})(e,t),r=e=>{"none"===window.getComputedStyle(e).display?(e.style.removeProperty("display"),e.classList.remove("jal-hide")):e.style.display="none"},[a,i]=(0,n.useState)(null);return(0,n.useEffect)(()=>{i(()=>{let t;switch(e){case"fade":t=o;break;case"slide":t=s;break;default:t=r}return t})},[e]),{animationFunction:a,hideOpenedLists:e=>{void 0!==e&&e.classList.contains("expanded")&&[...e.parentElement.children].filter(t=>e!==t&&"li"===t.nodeName.toLowerCase()&&t.classList.contains("expanded")).forEach(t=>{t!==e&&t.querySelectorAll(":scope > .jaw_symbol").forEach(e=>e.click())})}}}(i.effect);return(0,n.useEffect)(()=>{d(e)},[e]),(0,s.jsx)(a.Provider,{value:{config:i,setConfig:d,animationFunction:c,hideOpenedLists:p},children:t})},l=window.wp.i18n,d=window.wp.apiFetch;var c=e.n(d);
1function p(e){const[t,o]=(0,n.useState)(null),[s,r]=(0,n.useState)(null),[a,i]=(0,n.useState)(!1);return{apiClient:async function(t){i(!0);const n=new URLSearchParams({monthFormat:t.month_format,expand:t.expand,type:t.post_type||t.type||"post"});return t.taxonomy&&n.append("taxonomy",t.taxonomy),"undefined"!=typeof jalwCurrentTerm&&t.onlycategory>0&&n.append("onlyterms",jalwCurrentTerm),t.categories&&String(t.categories).length>0&&(n.append("exclusionType",t.include_or_exclude),n.append("cats",t.categories)),"undefined"!=typeof jalwCurrentPost&&(jalwCurrentPost.month&&n.append("postMonth",jalwCurrentPost.month),jalwCurrentPost.year&&n.append("postYear",jalwCurrentPost.year)),!0===t.showpost&&/\/archive\/\d+\/\d+/.test(e)&&n.append("sort",t.sortpost),c()({path:`${e}?${n.toString()}`}).then(e=>(o(e),i(!1),!0)).catch(e=>(r(e),i(!1),!1))},data:t,error:s,loading:a,setLoading:i}}const y=({expanded:e,expandSubLevel:t,title:o,permalink:r,onToggle:i})=>{const{config:l}=(0,n.useContext)(a),{expandSymbol:d,collapseSymbol:c}=function(e){let t="",o="";switch(e.toString()){case"1":t="▼",o="►";break;case"2":t="(–)",o="(+)";break;case"3":t="[–]",o="[+]"}return{collapseSymbol:t,expandSymbol:o}}(l.symbol),p=e&&t?"expanded":"",y=e?c:d;return"0"===l.symbol.toString()?"":r?(0,s.jsx)("a",{href:r,title:o,target:l.open_links_new_tab?"_blank":void 0,rel:l.open_links_new_tab?"n
1oopener noreferrer":void 0,className:`${p} jaw_symbol`,onClick:i,children:y}):(0,s.jsx)("button",{type:"button",title:o,className:`${p} jaw_symbol`,onClick:i,children:y})},u=({loading:e})=>e?(0,s.jsx)("div",{className:"loading",role:"progressbar",children:(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",x:"0",y:"0",version:"1.1",viewBox:"0 0 100 100",xmlSpace:"preserve",children:(0,s.jsx)("path",{fill:"#000",d:"M73 50c0-12.7-10.3-23-23-23S27 37.3 27 50m3.9 0c0-10.5 8.5-19.1 19.1-19.1S69.1 39.5 69.1 50",children:(0,s.jsx)("animateTransform",{attributeName:"transform",attributeType:"XML",dur:"1s",from:"0 50 50",repeatCount:"indefinite",to:"360 50 50",type:"rotate"})})})}):"",m=({children:e,items:t,expand:o,initialExpand:r,link:i,loading:l,rootLink:d,showToggleSymbol:c,subListCustomClass:p})=>{const{animationFunction:m,config:h}=(0,n.useContext)(a),w=(0,n.useRef)(null),[g,f]=(0,n.useState)(o),_=(0,n.useCallback)(()=>{const e=[...w.current.children].filter(e=>"ul"===e.nodeName.toLowerCase());e.length>0&&m(e[0])},[w,m]),x=o?"expanded":"",b=Array.isArray(t)||!t?t:[],j=b&&b.length&&b.length>0,v=!!i.href;return(0,n.useEffect)(()=>{w&&r&&c&&w.current.children[0]&&w.current.children[0].click()},[]),(0,n.useEffect)(()=>{o!==g&&(f(o),_())},[o,_,g]),(0,s.jsxs)("li",{ref:w,className:x,children:[c||t.length>0?(0,s.jsx)(y,{expanded:g,expandSubLevel:d.expand,title:d.title,permalink:i.href,onToggle:d.onClick}):"",v?(0,s.jsxs)("a",{href:i.href,title:i.title,target:h.open_links_new_tab?"_blank":void 0,rel:h.open_links_new_tab?"n
1oopener noreferrer":void 0,onClick:i.onClick,children:[i.content,(0,s.jsx)(u,{loading:l})]}):(0,s.jsxs)("span",{children:[i.content,(0,s.jsx)(u,{loading:l})]}),j?(0,s.jsx)("ul",{className:p+" jal-hide",children:b.map((t,o)=>e(t,o))}):""]})},h=window.wp.date,w=({post:e})=>{const{config:t}=(0,n.useContext)(a),o=(0,h.getSettings)();return(0,s.jsxs)("a",{href:e.permalink,title:e.post_title,target:t.open_links_new_tab?"_blank":void 0,rel:t.open_links_new_tab?"noopener noreferrer":void 0,children:[e.post_title,t.show_post_date?(0,s.jsx)("span",{className:"post-date",children:(0,h.dateI18n)(o?.formats?.date,e.post_date)}):""]})},g=({dayObj:e})=>{const[t,o]=(0,n.useState)(!1),r=async e=>{e.preventDefault(),o(!t)};return(0,s.jsx)(m,{items:e.posts,link:{content:e.title,href:"#",title:e.title,onClick:r},expand:t,initialExpand:e.expand,loading:!1,rootLink:{...e,title:e.title,onClick:r},showToggleSymbol:!0,subListCustomClass:"posts",children:e=>(0,s.jsx)("li",{children:(0,s.jsx)(w,{post:e})},e.ID)})},f=({monthObj:e,year:t})=>{const{config:o}=(0,n.useContext)(a),{loading:r,data:i,apiClient:l}=p(`/jalw/v1/archive/${t}/${e.month}`),[d,c]=(0,n.useState)(!1),y=async e=>{if(e.preventDefault(),i&&Array.isArray(i.posts))c(!d);else{const e=await l(o);c(e)}},u=o.only_sym_link||!o.showpost?()=>!0:y;let f=e.title;!0===o.showcount&&(f=`${e.title} (${e.posts})`),(0,n.useEffect)(()=>{!d||r||i&&Array.isArray(i.posts)||l(o)},[d]);const _=o.show_day_archive?"jawl_days":"jaw_posts";let x;return x=i&&i.posts?o.show_day_archive?((e,t)=>{if(!t)return[];const o=t.reduce((t,o)=>{const n=(0,h.dateI18n)("d",o.post_date);return t[n]||(t[n]={ID:n,title:n,permalink:"",expand:"all"===e.expand,posts:[],onClick:()=>!1}),t[n].posts.push(o),t},{}),n=Object.keys(o).sort((e,t)=>e-t),s={};return n.forEach(e=>{s[e]=o[e]}),Object.values(s)})(o,i.posts):i.posts:[],(0,s.jsx)(m,{items:x,link:{content:f,href:e.permalink,title:e.title,onClick:u},expand:d,initialExpand:e.expand,loading:r,rootLink:{...e,onClick:y},showToggleSymbol:o.showpost,subListCustomClass:_,children:e=>o.show_day_archive?(0,s.jsx)(g,{dayObj:e},e.ID):(0,s.jsx)("li",{children:(0,s.jsx)(w,{post:e})},e.ID)})},_=({yearObj:e})=>{const{config:t}=(0,n.useContext)(a),{loading:o,data:r,apiClient:i}=p(`/jalw/v1/archive/${e.year}`),[l,d]=(0,n.useState)(!1),c=async e=>{if(e.preventDefault(),r&&Array.isArray(r.months))d(!l);else{const e=await i(t);d(e)}},y=t.only_sym_link?()=>!0:c;let u=e.year;return!0===t.showcount&&(u=`${e.year} (${e.posts})`),(0,n.useEffect)(()=>{!l||o||r&&Array.isArray(r.months)||i(t)},[l]),(0,s.jsx)(m,{items:r?r.months:[],link:{content:u,href:e.permalink,title:e.title,onClick:y},expand:l,initialExpand:e.expand,loading:o,rootLink:{...e,onClick:c},showToggleSymbol:!0,subListCustomClass:"jaw_months",children:t=>(0,s.jsx)(f,{year:e.year,monthObj:t},e.year+t.month)})},x=({years:e})=>{const[t,o]=(0,n.useState)(!1);return(0,s.jsx)(s.Fragment,{children:t?e.map(e=>(0,s.jsx)(_,{yearObj:e},e.year)):(0,s.jsx)("li",{children:(0,s.jsx)("a",{href:"#show",onClick:e=>{e.preventDefault(),o(!t)},children:"Show Older Years"})})})},b=()=>{const{config:e}=(0,n.useContext)(a),[t,o]=(0,n.useState)(!1),{loading:r,data:i,error:d,apiClient:c}=p("/jalw/v1/archive"),y=(0,n.useMemo)(()=>{const t=i?i.years:[];return e.hide_from_year&&!isNaN(e.hide_from_year)?{current:t.filter(t=>t.year>=e.hide_from_year),olders:t.filter(t=>t.year<e.hide_from_year)}:{current:t,olders:[]}},[i,e]);return(0,n.useEffect)(()=>{o(!1);const t=c(e);t&&"function"==typeof t.then?t.then(e=>{!1!==e&&o(!0)}):!1!==t&&o(!0)},[e]),(0,n.useEffect)(()=>{!t&&d&&o(!0)},[t,d]),(0,s.jsxs)("div",{className:"js-archive-list dynamic",children:[(0,s.jsx)("h2",{children:e.title}),r?(0,s.jsxs)("div",{children:[(0,s.jsx)(u,{loading:r}),(0,l.__)("Loading…","jquery-archive-list-widget")]}):"",i&&i.years?(0,s.jsxs)("ul",{className:"jaw_widget",children:[0===y.current.length?(0,s.jsx)("li",{children:(0,l.__)("There are no post to show.","jquery-archive-list-widget")}):y.current.map(e=>(0,s.jsx)(_,{yearObj:e},e.year)),y.olders.length>0?(0,s.jsx)(x,{years:y.olders}):""]}):"",!t&&!d||i?"":(0,l.__)("Cannot load posts.","jquery-archive-list-widget")]})},j=({attributes:e})=>(0,s.jsx)(i,{attributes:e,children:(0,s.jsx)(b,{})});o()(function(){document.querySelectorAll(".jalw-archive-list").forEach(e
1=>{const t={...e.dataset};(0,n.render)((0,s.jsx)(j,{attributes:t}),e)})})})();

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.