PageSourceSearch

https://www.littlerosecambridge.com/dist/gk-jss-app/js/EventListing.d4a61d30.js

js littlerosecambridge.com collected 2026-10-07 16:12:39 UTC 9,413 bytes, 2 lines download raw bytes

1(globalThis["webpackChunkgk_jss_app"]=globalThis["webpackChunkgk_jss_app"]||[]).push([[1833,4275],{44539:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var i=n(20641),r=n(90033);const s=(0,i.pM)({__name:"ErrorText",props:{text:{default:"Error"},inGrid:{type:Boolean,default:!1}},setup(e){return(t,n)=>((0,i.uX)(),(0,i.CE)("p",{class:(0,r.C4)(["error-text",e.inGrid&&"container"]),role:"alert","aria-live":"assertive"},(0,r.v_)(e.text),3))}}),a=s,o=a},51706:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>v});var i=n(20641),r=n(90033),s=n(50953),a=n(50258),o=n(66130),d=n(68032),u=n(34958);const f={class:"event-listing-card"},l={class:"event-listing-card__date"},c={class:"event-listing-card__time"},h=(0,i.pM)({__name:"EventListingCard",props:{fields:{default:()=>({})},index:{}},setup(e){const{trackLinkState:t}=(0,u.k)({componentName:"event_listing_card"}),{t:n}=(0,a.s9)(),h=e,m=(0,i.EW)((()=>h.fields.startDate?.value&&h.fields.endDate?.value?(0,d.od)(h.fields.startDate.value,h.fields.endDate.value):"")),v=(0,i.EW)((()=>{if(!h.fields.startTime?.value||!h.fields.endTime?.value)return"";let e="";return h.fields.startDate?.value!==h.fields.endDate?.value&&(e+=n("event-listing-every-day")+" "),e+(0,d.sH)(h.fields.startTime.value,h.fields.endTime.value)})),g=(0,i.EW)((()=>({heading:h.fields.heading,subheading:h.fields.subheading,imageDesktop:h.fields.imageDesktop,imageTablet:h.fields.imageTablet,imageMobile:h.fields.imageMobile,firstLink:h.fields.firstLink,secondLink:h.fields.secondLink}))),p=(0,i.EW)((()=>({fullWidth:"1",backgroundOverlay:"0",marginBottom:"0",topSubheading:"0",backgroundType:"split",mobileTextPosition:"bottom",textPosition:h.index%2?"left":"right"}))),M=e=>{t(e)};return(e,t)=>((0,i.uX)(),(0,i.CE)("section",f,[(0,i.bF)(o.A,{fields:g.value,params:p.value,"data-layer-fn":M},{description:(0,i.k6)((()=>[(0,i.Lk)("div",l,[(0,i.Lk)("span",null,(0,r.v_)((0,s.R1)(n)("event-listing-date"))+": ",1),(0,i.eW)((0,r.v_)(m.value),1)]),(0,i.Lk)("div",c,[(0,i.Lk)("span",null,(0,r.v_)((0,s.R1)(n)("event-listing-time"))+": ",1),(0,i.eW)((0,r.v_)(v.value),1)])])),_:1},8,["fields","params"])]))}}),m=h,v=m},67145:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var i=n(20641),r=n(90033),s=n(50953),a=n(50258),o=n(44539),d=n(51706);const u=(0,i.pM)({__name:"EventListing",props:{fields:{default:()=>({})},rendering:{},params:{default:()=>({})}},setup(e){const{t}=(0,a.s9)(),n=e,u=(0,i.EW)((()=>0===n.fields.eventCards?.length));return(n,a)=>((0,i.uX)(),(0,i.CE)("section",{class:(0,r.C4)(["event-listing",u.value&&"event-listing--empty"])},[((0,i.uX)(!0),(0,i.CE)(i.FK,null,(0,i.pI)(e.fields.eventCards,((e,t)=>((0,i.uX)(),(0,i.Wv)(d["default"],{key:e?.id,fields:e?.fields,index:t},null,8,["fields","index"])))),128)),u.value?((0,i.uX)(),(0,i.Wv)(o.A,{key:0,text:(0,s.R1)(t)("event-listing-no-events"),"in-grid":!0},null,8,["text"])):(0,i.Q3)("",!0)],2))}}),f=u,l=f},68032:(e,t,n)=>{"use strict";n.d(t,{Kl:()=>m,Ls:()=>h,od:()=>v,sH:()=>g});var i=n(74353),r=n.n(i),s=n(68313),a=n.n(s),o=n(97375),d=n.n(o),u=n(90445),f=n.n(u);r().extend(a()),r().extend(d()),r().extend(f());const l="MM/DD/YYYY h:mm:ss A",c="Do MMMM YYYY",h=e=>{const t=r()(e.startAt,l),n=r()(e.endAt,l),i=t.isValid()?t:r()(e.startAt),s=n.isValid()?n:r()(e.endAt);return r()().endOf("isoWeek")>i&&r()()<=s},m=(e,t)=>r()().add(t,"month").endOf("month")>r()(e.startAt)&&r()().add(t,"month").startOf("month")<r()(e.endAt)&&(r()(e.endAt).subtract(1,"day").get("month")!==r()().add(t-1,"month").get("month")||r()(e.startAt).format("MM")===r()(e.endAt).format("MM")),v=(e,t)=>e===t?r()(e).format(c):r()(e).format("MM-YYYY")===r()(t).format("MM-YYYY")?`${r()(e).format("Do")} - ${r()(t).format(c)}`:r()(e).format("YYYY")===r()(t).format("YYYY")?`${r()(e).format("Do MMMM")} - ${r()(t).format(c)}`:`${r()(e).format(c)} - ${r()(t).format(c)}`,g=(e,t)=>{const n="HH:mm:ss",i="h:mma";return`${r()(e,n).format(i)} - ${r()(t,n).format(i)}`}},68313:function(e){!function(t,n){e.exports=n()}(0,(function(){"use strict";var e="day";return function(t,n,i){var r=function(t){return t.add(4-t.isoWeekday(),e)},s=n.prototype;s.isoWeekYear=function(){return r(this).year()},s.isoWeek=function(t){if(!this.$utils().u(t))return this.add(7*(t-this.isoWeek()),e);var n,s,a,o,d=r(this),u=(n=this.isoWeekYear(),s=this.$u,a=(s?i.utc:i)().year(n).startOf("year"),o=4-a.isoWeekday(),a.isoWeekday()>4&&(o+=7),a.add(o,e));return d.diff(u,"week")+1},s.isoWeekday=function(e){return this.$utils().u(e)?this.day()||7:this.day(this.day()%7?e:e-7)};var a=s.startOf;s.startOf=function(e,t){var n=this.$utils(),i=!!n.u(t)||t;return"isoweek"===n.p(e)?i?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):a.bind(this)(e,t)}}}))},90445:function(e){!function(t,n){e.exports=n()}(0,(function(){"use strict";var e={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},t=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d/,i=/\d\d/,r=/\d\d?/,s=/\d*[^-_:/,()\s\d]+/,a={},o=function(e){return(e=+e)+(e>68?1900:2e3)},d=function(e){return function(t){this[e]=+t}},u=[/[+-]\d\d:?(\d\d)?|Z/,function(e){(this.zone||(this.zone={})).offset=function(e){if(!e)return 0;if("Z"===e)return 0;var t=e.match(/([+-]|\d\d)/g),n=60*t[1]+(+t[2]||0);return 0===n?0:"+"===t[0]?-n:n}(e)}],f=function(e){var t=a[e];return t&&(t.indexOf?t:t.s.concat(t.f))},l=function(e,t){var n,i=a.meridiem;if(i){for(var r=1;r<=24;r+=1)if(e.indexOf(i(r,0,t))>-1){n=r>12;break}}else n=e===(t?"pm":"PM");return n},c={A:[s,function(e){this.afternoon=l(e,!1)}],a:[s,function(e){this.afternoon=l(e,!0)}],Q:[n,function(e){this.month=3*(e-1)+1}],S:[n,function(e){this.milliseconds=100*+e}],SS:[i,function(e){this.milliseconds=10*+e}],SSS:[/\d{3}/,function(e){this.milliseconds=+e}],s:[r,d("seconds")],ss:[r,d("seconds")],m:[r,d("minutes")],mm:[r,d("minutes")],H:[r,d("hours")],h:[r,d("hours")],HH:[r,d("hours")],hh:[r,d("hours")],D:[r,d("day")],DD:[i,d("day")],Do:[s,function(e){var t=a.ordinal,n=e.match(/\d+/);if(this.day=n[0],t)for(var i=1;i<=31;i+=1)t(i).replace(/\[|\]/g,"")===e&&(this.day=i)}],w:[r,d("week")],ww:[i,d("week")],M:[r,d("month")],MM:[i,d("month")],MM
vendor: 3,162 bytes, lines 1-2
1M:[s,function(e){var t=f("months"),n=(f("monthsShort")||t.map((function(e){return e.slice(0,3)}))).indexOf(e)+1;if(n<1)throw new Error;this.month=n%12||n}],MMMM:[s,function(e){var t=f("months").indexOf(e)+1;if(t<1)throw new Error;this.month=t%12||t}],Y:[/[+-]?\d+/,d("year")],YY:[i,function(e){this.year=o(e)}],YYYY:[/\d{4}/,d("year")],Z:u,ZZ:u};function h(n){var i,r;i=n,r=a&&a.formats;for(var s=(n=i.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,n,i){var s=i&&i.toUpperCase();return n||r[i]||e[i]||r[s].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}))).match(t),o=s.length,d=0;d<o;d+=1){var u=s[d],f=c[u],l=f&&f[0],h=f&&f[1];s[d]=h?{regex:l,parser:h}:u.replace(/^\[|\]$/g,"")}return function(e){for(var t={},n=0,i=0;n<o;n+=1){var r=s[n];if("string"==typeof r)i+=r.length;else{var a=r.regex,d=r.parser,u=e.slice(i),f=a.exec(u)[0];d.call(t,f),e=e.replace(f,"")}}return function(e){var t=e.afternoon;if(void 0!==t){var n=e.hours;t?n<12&&(e.hours+=12):12===n&&(e.hours=0),delete e.afternoon}}(t),t}}return function(e,t,n){n.p.customParseFormat=!0,e&&e.parseTwoDigitYear&&(o=e.parseTwoDigitYear);var i=t.prototype,r=i.parse;i.parse=function(e){var t=e.date,i=e.utc,s=e.args;this.$u=i;var o=s[1];if("string"==typeof o){var d=!0===s[2],u=!0===s[3],f=d||u,l=s[2];u&&(l=s[2]),a=this.$locale(),!d&&l&&(a=n.Ls[l]),this.$d=function(e,t,n,i){try{if(["x","X"].indexOf(t)>-1)return new Date(("X"===t?1e3:1)*e);var r=h(t)(e),s=r.year,a=r.month,o=r.day,d=r.hours,u=r.minutes,f=r.seconds,l=r.milliseconds,c=r.zone,m=r.week,v=new Date,g=o||(s||a?1:v.getDate()),p=s||v.getFullYear(),M=0;s&&!a||(M=a>0?a-1:v.getMonth());var Y,k=d||0,D=u||0,y=f||0,w=l||0;return c?new Date(Date.UTC(p,M,g,k,D,y,w+60*c.offset*1e3)):n?new Date(Date.UTC(p,M,g,k,D,y,w)):(Y=new Date(p,M,g,k,D,y,w),m&&(Y=i(Y).week(m).toDate()),Y)}catch(e){return new Date("")}}(t,o,i,n),this.init(),l&&!0!==l&&(this.$L=this.locale(l).$L),f&&t!=this.format(o)&&(this.$d=new Date("")),a={}}else if(o instanceof Array)for(var c=o.length,m=1;m<=c;m+=1){s[1]=o[m-1];var v=n.apply(this,s);if(v.isValid()){this.$d=v.$d,this.$L=v.$L,this.init();break}m===c&&(this.$d=new Date(""))}else r.call(this,e)}}}))},97375:function(e){!function(t,n){e.exports=n()}(0,(function(){"use strict";return function(e,t){var n=t.prototype,i=n.format;n.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return i.bind(this)(e);var r=this.$utils(),s=(e||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,(function(e){switch(e){case"Q":return Math.ceil((t.$M+1)/3);case"Do":return n.ordinal(t.$D);case"gggg":return t.weekYear();case"GGGG":return t.isoWeekYear();case"wo":return n.ordinal(t.week(),"W");case"w":case"ww":return r.s(t.week(),"w"===e?1:2,"0");case"W":case"WW":return r.s(t.isoWeek(),"W"===e?1:2,"0");case"k":case"kk":return r.s(String(0===t.$H?24:t.$H),"k"===e?1:2,"0");case"X":return Math.floor(t.$d.getTime()/1e3);case"x":return t.$d.getTime();case"z":return"["+t.offsetName()+"]";case"zzz":return"["+t.offsetName("long")+"]";default:return e}}));return i.bind(this)(s)}}}))}}]);
2//# sourceMappingURL=EventListing.d4a61d30.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.