@stackshift-ui/blog 6.0.6 → 6.0.7-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- "use strict";var $f=Object.create;var K=Object.defineProperty;var Lf=Object.getOwnPropertyDescriptor;var zf=Object.getOwnPropertyNames;var Rf=Object.getPrototypeOf,Af=Object.prototype.hasOwnProperty;var a=(e,t)=>()=>(e&&(t=e(e=0)),t);var B=(e,t)=>{for(var r in t)K(e,r,{get:t[r],enumerable:!0})},Ze=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of zf(t))!Af.call(e,o)&&o!==r&&K(e,o,{get:()=>t[o],enumerable:!(n=Lf(t,o))||n.enumerable});return e};var xe=(e,t,r)=>(r=e!=null?$f(Rf(e)):{},Ze(t||!e||!e.__esModule?K(r,"default",{value:e,enumerable:!0}):r,e)),Qf=e=>Ze(K({},"__esModule",{value:!0}),e);var Bf,Zu,ee,Ke,qf,et,Ku,jf,Xf,em,he,q=a(()=>{"use strict";Bf=Math.pow(10,8)*24*60*60*1e3,Zu=-Bf,ee=6048e5,Ke=864e5,qf=3600,et=qf*24,Ku=et*7,jf=et*365.2425,Xf=jf/12,em=Xf*3,he=Symbol.for("constructDateFrom")});function p(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&he in e?e[he](t):e instanceof Date?new e.constructor(t):new Date(t)}var F=a(()=>{"use strict";q()});function b(e,t){return p(t||e,e)}var I=a(()=>{"use strict";F()});var tt=a(()=>{"use strict"});var rt=a(()=>{"use strict"});var at=a(()=>{"use strict"});var nt=a(()=>{"use strict"});var ot=a(()=>{"use strict"});var ft=a(()=>{"use strict"});var ut=a(()=>{"use strict"});var mt=a(()=>{"use strict"});var ct=a(()=>{"use strict"});function W(){return Uf}var Uf,j=a(()=>{"use strict";Uf={}});function N(e,t){var i,l,D,h,w,y,O,S;let r=W(),n=(S=(O=(h=(D=t==null?void 0:t.weekStartsOn)!=null?D:(l=(i=t==null?void 0:t.locale)==null?void 0:i.options)==null?void 0:l.weekStartsOn)!=null?h:r.weekStartsOn)!=null?O:(y=(w=r.locale)==null?void 0:w.options)==null?void 0:y.weekStartsOn)!=null?S:0,o=b(e,t==null?void 0:t.in),f=o.getDay(),u=(f<n?7:0)+f-n;return o.setDate(o.getDate()-u),o.setHours(0,0,0,0),o}var L=a(()=>{"use strict";j();I()});function H(e,t){return N(e,{...t,weekStartsOn:1})}var X=a(()=>{"use strict";L()});function te(e,t){let r=b(e,t==null?void 0:t.in),n=r.getFullYear(),o=p(r,0);o.setFullYear(n+1,0,4),o.setHours(0,0,0,0);let f=H(o),u=p(r,0);u.setFullYear(n,0,4),u.setHours(0,0,0,0);let i=H(u);return r.getTime()>=f.getTime()?n+1:r.getTime()>=i.getTime()?n:n-1}var re=a(()=>{"use strict";F();X();I()});function ge(e){let t=b(e),r=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return r.setUTCFullYear(t.getFullYear()),+e-+r}var it=a(()=>{"use strict";I()});function lt(e,...t){let r=p.bind(null,e||t.find(n=>typeof n=="object"));return t.map(r)}var dt=a(()=>{"use strict";F()});function De(e,t){let r=b(e,t==null?void 0:t.in);return r.setHours(0,0,0,0),r}var ye=a(()=>{"use strict";I()});function st(e,t,r){let[n,o]=lt(r==null?void 0:r.in,e,t),f=De(n),u=De(o),i=+f-ge(f),l=+u-ge(u);return Math.round((i-l)/Ke)}var we=a(()=>{"use strict";it();dt();q();ye()});function xt(e,t){let r=te(e,t),n=p((t==null?void 0:t.in)||e,0);return n.setFullYear(r,0,4),n.setHours(0,0,0,0),H(n)}var be=a(()=>{"use strict";F();re();X()});var ht=a(()=>{"use strict"});var gt=a(()=>{"use strict"});var Dt=a(()=>{"use strict"});var yt=a(()=>{"use strict"});var wt=a(()=>{"use strict"});var bt=a(()=>{"use strict"});var Mt=a(()=>{"use strict"});var Ot=a(()=>{"use strict"});var kt=a(()=>{"use strict"});var pt=a(()=>{"use strict"});var St=a(()=>{"use strict"});var vt=a(()=>{"use strict"});var It=a(()=>{"use strict"});var Tt=a(()=>{"use strict"});var Nt=a(()=>{"use strict"});var Yt=a(()=>{"use strict"});var Ft=a(()=>{"use strict"});var Wt=a(()=>{"use strict"});function Pt(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}var Me=a(()=>{"use strict"});function _t(e){return!(!Pt(e)&&typeof e!="number"||isNaN(+b(e)))}var Oe=a(()=>{"use strict";Me();I()});var Ct=a(()=>{"use strict"});var Ht=a(()=>{"use strict"});var Et=a(()=>{"use strict"});var $t=a(()=>{"use strict"});var Lt=a(()=>{"use strict"});var zt=a(()=>{"use strict"});var Rt=a(()=>{"use strict"});var At=a(()=>{"use strict"});var Qt=a(()=>{"use strict"});var Bt=a(()=>{"use strict"});var qt=a(()=>{"use strict"});var jt=a(()=>{"use strict"});var Xt=a(()=>{"use strict"});var Ut=a(()=>{"use strict"});var Vt=a(()=>{"use strict"});var Gt=a(()=>{"use strict"});var Jt=a(()=>{"use strict"});var Zt=a(()=>{"use strict"});var Kt=a(()=>{"use strict"});var er=a(()=>{"use strict"});var tr=a(()=>{"use strict"});var rr=a(()=>{"use strict"});var ar=a(()=>{"use strict"});var nr=a(()=>{"use strict"});var or=a(()=>{"use strict"});var fr=a(()=>{"use strict"});var ur=a(()=>{"use strict"});var mr=a(()=>{"use strict"});var cr=a(()=>{"use strict"});var ir=a(()=>{"use strict"});var lr=a(()=>{"use strict"});var dr=a(()=>{"use strict"});var sr=a(()=>{"use strict"});function xr(e,t){let r=b(e,t==null?void 0:t.in);return r.setFullYear(r.getFullYear(),0,1),r.setHours(0,0,0,0),r}var ke=a(()=>{"use strict";I()});var hr=a(()=>{"use strict"});var gr=a(()=>{"use strict"});var Dr=a(()=>{"use strict"});var yr=a(()=>{"use strict"});var wr=a(()=>{"use strict"});var br=a(()=>{"use strict"});var Mr=a(()=>{"use strict"});var Or=a(()=>{"use strict"});var kr=a(()=>{"use strict"});var pr=a(()=>{"use strict"});var Sr=a(()=>{"use strict"});var vr=a(()=>{"use strict"});var Ir=a(()=>{"use strict"});var Vf,Tr,Nr=a(()=>{"use strict";Vf={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},Tr=(e,t,r)=>{let n,o=Vf[e];return typeof o=="string"?n=o:t===1?n=o.one:n=o.other.replace("{{count}}",t.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+n:n+" ago":n}});function ae(e){return(t={})=>{let r=t.width?String(t.width):e.defaultWidth;return e.formats[r]||e.formats[e.defaultWidth]}}var Yr=a(()=>{"use strict"});var Gf,Jf,Zf,Fr,Wr=a(()=>{"use strict";Yr();Gf={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Jf={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Zf={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Fr={date:ae({formats:Gf,defaultWidth:"full"}),time:ae({formats:Jf,defaultWidth:"full"}),dateTime:ae({formats:Zf,defaultWidth:"full"})}});var Kf,Pr,_r=a(()=>{"use strict";Kf={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Pr=(e,t,r,n)=>Kf[e]});function z(e){return(t,r)=>{let n=r!=null&&r.context?String(r.context):"standalone",o;if(n==="formatting"&&e.formattingValues){let u=e.defaultFormattingWidth||e.defaultWidth,i=r!=null&&r.width?String(r.width):u;o=e.formattingValues[i]||e.formattingValues[u]}else{let u=e.defaultWidth,i=r!=null&&r.width?String(r.width):e.defaultWidth;o=e.values[i]||e.values[u]}let f=e.argumentCallback?e.argumentCallback(t):t;return o[f]}}var Cr=a(()=>{"use strict"});var eu,tu,ru,au,nu,ou,fu,Hr,Er=a(()=>{"use strict";Cr();eu={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},tu={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},ru={narrow:["cf","F","M","A","M","cf","cf","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},au={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},nu={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},ou={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},fu=(e,t)=>{let r=Number(e),n=r%100;if(n>20||n<10)switch(n%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},Hr={ordinalNumber:fu,era:z({values:eu,defaultWidth:"wide"}),quarter:z({values:tu,defaultWidth:"wide",argumentCallback:e=>e-1}),month:z({values:ru,defaultWidth:"wide"}),day:z({values:au,defaultWidth:"wide"}),dayPeriod:z({values:nu,defaultWidth:"wide",formattingValues:ou,defaultFormattingWidth:"wide"})}});function R(e){return(t,r={})=>{let n=r.width,o=n&&e.matchPatterns[n]||e.matchPatterns[e.defaultMatchWidth],f=t.match(o);if(!f)return null;let u=f[0],i=n&&e.parsePatterns[n]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(i)?mu(i,w=>w.test(u)):uu(i,w=>w.test(u)),D;D=e.valueCallback?e.valueCallback(l):l,D=r.valueCallback?r.valueCallback(D):D;let h=t.slice(u.length);return{value:D,rest:h}}}function uu(e,t){for(let r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&t(e[r]))return r}function mu(e,t){for(let r=0;r<e.length;r++)if(t(e[r]))return r}var $r=a(()=>{"use strict"});function Lr(e){return(t,r={})=>{let n=t.match(e.matchPattern);if(!n)return null;let o=n[0],f=t.match(e.parsePattern);if(!f)return null;let u=e.valueCallback?e.valueCallback(f[0]):f[0];u=r.valueCallback?r.valueCallback(u):u;let i=t.slice(o.length);return{value:u,rest:i}}}var zr=a(()=>{"use strict"});var cu,iu,lu,du,su,xu,hu,gu,Du,yu,wu,bu,Rr,Ar=a(()=>{"use strict";$r();zr();cu=/^(\d+)(th|st|nd|rd)?/i,iu=/\d+/i,lu={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},du={any:[/^b/i,/^(a|c)/i]},su={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},xu={any:[/1/i,/2/i,/3/i,/4/i]},hu={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},gu={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},Du={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},yu={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},wu={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},bu={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},Rr={ordinalNumber:Lr({matchPattern:cu,parsePattern:iu,valueCallback:e=>parseInt(e,10)}),era:R({matchPatterns:lu,defaultMatchWidth:"wide",parsePatterns:du,defaultParseWidth:"any"}),quarter:R({matchPatterns:su,defaultMatchWidth:"wide",parsePatterns:xu,defaultParseWidth:"any",valueCallback:e=>e+1}),month:R({matchPatterns:hu,defaultMatchWidth:"wide",parsePatterns:gu,defaultParseWidth:"any"}),day:R({matchPatterns:Du,defaultMatchWidth:"wide",parsePatterns:yu,defaultParseWidth:"any"}),dayPeriod:R({matchPatterns:wu,defaultMatchWidth:"any",parsePatterns:bu,defaultParseWidth:"any"})}});var pe,Qr=a(()=>{"use strict";Nr();Wr();_r();Er();Ar();pe={code:"en-US",formatDistance:Tr,formatLong:Fr,formatRelative:Pr,localize:Hr,match:Rr,options:{weekStartsOn:0,firstWeekContainsDate:1}}});var Br=a(()=>{"use strict";Qr()});function qr(e,t){let r=b(e,t==null?void 0:t.in);return st(r,xr(r))+1}var Se=a(()=>{"use strict";we();ke();I()});function jr(e,t){let r=b(e,t==null?void 0:t.in),n=+H(r)-+xt(r);return Math.round(n/ee)+1}var ve=a(()=>{"use strict";q();X();be();I()});function ne(e,t){var h,w,y,O,S,_,C,$;let r=b(e,t==null?void 0:t.in),n=r.getFullYear(),o=W(),f=($=(C=(O=(y=t==null?void 0:t.firstWeekContainsDate)!=null?y:(w=(h=t==null?void 0:t.locale)==null?void 0:h.options)==null?void 0:w.firstWeekContainsDate)!=null?O:o.firstWeekContainsDate)!=null?C:(_=(S=o.locale)==null?void 0:S.options)==null?void 0:_.firstWeekContainsDate)!=null?$:1,u=p((t==null?void 0:t.in)||e,0);u.setFullYear(n+1,0,f),u.setHours(0,0,0,0);let i=N(u,t),l=p((t==null?void 0:t.in)||e,0);l.setFullYear(n,0,f),l.setHours(0,0,0,0);let D=N(l,t);return+r>=+i?n+1:+r>=+D?n:n-1}var oe=a(()=>{"use strict";j();F();L();I()});function Xr(e,t){var i,l,D,h,w,y,O,S;let r=W(),n=(S=(O=(h=(D=t==null?void 0:t.firstWeekContainsDate)!=null?D:(l=(i=t==null?void 0:t.locale)==null?void 0:i.options)==null?void 0:l.firstWeekContainsDate)!=null?h:r.firstWeekContainsDate)!=null?O:(y=(w=r.locale)==null?void 0:w.options)==null?void 0:y.firstWeekContainsDate)!=null?S:1,o=ne(e,t),f=p((t==null?void 0:t.in)||e,0);return f.setFullYear(o,0,n),f.setHours(0,0,0,0),N(f,t)}var Ie=a(()=>{"use strict";j();F();oe();L()});function Ur(e,t){let r=b(e,t==null?void 0:t.in),n=+N(r,t)-+Xr(r,t);return Math.round(n/ee)+1}var Te=a(()=>{"use strict";q();L();Ie();I()});function x(e,t){let r=e<0?"-":"",n=Math.abs(e).toString().padStart(t,"0");return r+n}var Ne=a(()=>{"use strict"});var Y,Vr=a(()=>{"use strict";Ne();Y={y(e,t){let r=e.getFullYear(),n=r>0?r:1-r;return x(t==="yy"?n%100:n,t.length)},M(e,t){let r=e.getMonth();return t==="M"?String(r+1):x(r+1,2)},d(e,t){return x(e.getDate(),t.length)},a(e,t){let r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h(e,t){return x(e.getHours()%12||12,t.length)},H(e,t){return x(e.getHours(),t.length)},m(e,t){return x(e.getMinutes(),t.length)},s(e,t){return x(e.getSeconds(),t.length)},S(e,t){let r=t.length,n=e.getMilliseconds(),o=Math.trunc(n*Math.pow(10,r-3));return x(o,t.length)}}});function Gr(e,t=""){let r=e>0?"-":"+",n=Math.abs(e),o=Math.trunc(n/60),f=n%60;return f===0?r+String(o):r+String(o)+t+x(f,2)}function Jr(e,t){return e%60===0?(e>0?"-":"+")+x(Math.abs(e)/60,2):E(e,t)}function E(e,t=""){let r=e>0?"-":"+",n=Math.abs(e),o=x(Math.trunc(n/60),2),f=x(n%60,2);return r+o+t+f}var A,Ye,Zr=a(()=>{"use strict";Se();ve();re();Te();oe();Ne();Vr();A={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Ye={ue:function(e,t,r){let n=e.getFullYear()>0?1:0;switch(t){case"ue":case"GG":case"GGG":return r.era(n,{width:"abbreviated"});case"GGGGG":return r.era(n,{width:"narrow"});case"GGGG":default:return r.era(n,{width:"wide"})}},y:function(e,t,r){if(t==="yo"){let n=e.getFullYear(),o=n>0?n:1-n;return r.ordinalNumber(o,{unit:"year"})}return Y.y(e,t)},Y:function(e,t,r,n){let o=ne(e,n),f=o>0?o:1-o;if(t==="YY"){let u=f%100;return x(u,2)}return t==="Yo"?r.ordinalNumber(f,{unit:"year"}):x(f,t.length)},R:function(e,t){let r=te(e);return x(r,t.length)},u:function(e,t){let r=e.getFullYear();return x(r,t.length)},Q:function(e,t,r){let n=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(n);case"QQ":return x(n,2);case"Qo":return r.ordinalNumber(n,{unit:"quarter"});case"QQQ":return r.quarter(n,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(n,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(n,{width:"wide",context:"formatting"})}},q:function(e,t,r){let n=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(n);case"qq":return x(n,2);case"qo":return r.ordinalNumber(n,{unit:"quarter"});case"qqq":return r.quarter(n,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(n,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(n,{width:"wide",context:"standalone"})}},M:function(e,t,r){let n=e.getMonth();switch(t){case"M":case"MM":return Y.M(e,t);case"Mo":return r.ordinalNumber(n+1,{unit:"month"});case"MMM":return r.month(n,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(n,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(n,{width:"wide",context:"formatting"})}},L:function(e,t,r){let n=e.getMonth();switch(t){case"L":return String(n+1);case"LL":return x(n+1,2);case"Lo":return r.ordinalNumber(n+1,{unit:"month"});case"LLL":return r.month(n,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(n,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(n,{width:"wide",context:"standalone"})}},w:function(e,t,r,n){let o=Ur(e,n);return t==="wo"?r.ordinalNumber(o,{unit:"week"}):x(o,t.length)},I:function(e,t,r){let n=jr(e);return t==="Io"?r.ordinalNumber(n,{unit:"week"}):x(n,t.length)},d:function(e,t,r){return t==="do"?r.ordinalNumber(e.getDate(),{unit:"date"}):Y.d(e,t)},D:function(e,t,r){let n=qr(e);return t==="Do"?r.ordinalNumber(n,{unit:"dayOfYear"}):x(n,t.length)},E:function(e,t,r){let n=e.getDay();switch(t){case"E":case"EE":case"EEE":return r.day(n,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(n,{width:"short",context:"formatting"});case"EEEE":default:return r.day(n,{width:"wide",context:"formatting"})}},e:function(e,t,r,n){let o=e.getDay(),f=(o-n.weekStartsOn+8)%7||7;switch(t){case"e":return String(f);case"ee":return x(f,2);case"eo":return r.ordinalNumber(f,{unit:"day"});case"eee":return r.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(o,{width:"short",context:"formatting"});case"eeee":default:return r.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,r,n){let o=e.getDay(),f=(o-n.weekStartsOn+8)%7||7;switch(t){case"c":return String(f);case"cc":return x(f,t.length);case"co":return r.ordinalNumber(f,{unit:"day"});case"ccc":return r.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(o,{width:"narrow",context:"standalone"});case"cccccc":return r.day(o,{width:"short",context:"standalone"});case"cccc":default:return r.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,r){let n=e.getDay(),o=n===0?7:n;switch(t){case"i":return String(o);case"ii":return x(o,t.length);case"io":return r.ordinalNumber(o,{unit:"day"});case"iii":return r.day(n,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(n,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(n,{width:"short",context:"formatting"});case"iiii":default:return r.day(n,{width:"wide",context:"formatting"})}},a:function(e,t,r){let o=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(e,t,r){let n=e.getHours(),o;switch(n===12?o=A.noon:n===0?o=A.midnight:o=n/12>=1?"pm":"am",t){case"b":case"bb":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,t,r){let n=e.getHours(),o;switch(n>=17?o=A.evening:n>=12?o=A.afternoon:n>=4?o=A.morning:o=A.night,t){case"B":case"BB":case"BBB":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,t,r){if(t==="ho"){let n=e.getHours()%12;return n===0&&(n=12),r.ordinalNumber(n,{unit:"hour"})}return Y.h(e,t)},H:function(e,t,r){return t==="Ho"?r.ordinalNumber(e.getHours(),{unit:"hour"}):Y.H(e,t)},K:function(e,t,r){let n=e.getHours()%12;return t==="Ko"?r.ordinalNumber(n,{unit:"hour"}):x(n,t.length)},k:function(e,t,r){let n=e.getHours();return n===0&&(n=24),t==="ko"?r.ordinalNumber(n,{unit:"hour"}):x(n,t.length)},m:function(e,t,r){return t==="mo"?r.ordinalNumber(e.getMinutes(),{unit:"minute"}):Y.m(e,t)},s:function(e,t,r){return t==="so"?r.ordinalNumber(e.getSeconds(),{unit:"second"}):Y.s(e,t)},S:function(e,t){return Y.S(e,t)},X:function(e,t,r){let n=e.getTimezoneOffset();if(n===0)return"Z";switch(t){case"X":return Jr(n);case"XXXX":case"XX":return E(n);case"XXXXX":case"XXX":default:return E(n,":")}},x:function(e,t,r){let n=e.getTimezoneOffset();switch(t){case"x":return Jr(n);case"xxxx":case"xx":return E(n);case"xxxxx":case"xxx":default:return E(n,":")}},O:function(e,t,r){let n=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+Gr(n,":");case"OOOO":default:return"GMT"+E(n,":")}},z:function(e,t,r){let n=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+Gr(n,":");case"zzzz":default:return"GMT"+E(n,":")}},t:function(e,t,r){let n=Math.trunc(+e/1e3);return x(n,t.length)},T:function(e,t,r){return x(+e,t.length)}}});var Kr,ea,Mu,ta,ra=a(()=>{"use strict";Kr=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},ea=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},Mu=(e,t)=>{let r=e.match(/(P+)(p+)?/)||[],n=r[1],o=r[2];if(!o)return Kr(e,t);let f;switch(n){case"P":f=t.dateTime({width:"short"});break;case"PP":f=t.dateTime({width:"medium"});break;case"PPP":f=t.dateTime({width:"long"});break;case"PPPP":default:f=t.dateTime({width:"full"});break}return f.replace("{{date}}",Kr(n,t)).replace("{{time}}",ea(o,t))},ta={p:ea,P:Mu}});function aa(e){return Ou.test(e)}function na(e){return ku.test(e)}function oa(e,t,r){let n=Su(e,t,r);if(console.warn(n),pu.includes(e))throw new RangeError(n)}function Su(e,t,r){let n=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${n} to the input \`${r}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}var Ou,ku,pu,fa=a(()=>{"use strict";Ou=/^D+$/,ku=/^Y+$/,pu=["D","DD","YY","YYYY"]});function P(e,t,r){var h,w,y,O,S,_,C,$,c,M,T,qe,je,Xe,Ue,Ve,Ge,Je;let n=W(),o=(w=(h=r==null?void 0:r.locale)!=null?h:n.locale)!=null?w:pe,f=(M=(c=(_=(S=r==null?void 0:r.firstWeekContainsDate)!=null?S:(O=(y=r==null?void 0:r.locale)==null?void 0:y.options)==null?void 0:O.firstWeekContainsDate)!=null?_:n.firstWeekContainsDate)!=null?c:($=(C=n.locale)==null?void 0:C.options)==null?void 0:$.firstWeekContainsDate)!=null?M:1,u=(Je=(Ge=(Xe=(je=r==null?void 0:r.weekStartsOn)!=null?je:(qe=(T=r==null?void 0:r.locale)==null?void 0:T.options)==null?void 0:qe.weekStartsOn)!=null?Xe:n.weekStartsOn)!=null?Ge:(Ve=(Ue=n.locale)==null?void 0:Ue.options)==null?void 0:Ve.weekStartsOn)!=null?Je:0,i=b(e,r==null?void 0:r.in);if(!_t(i))throw new RangeError("Invalid time value");let l=t.match(Iu).map(v=>{let k=v[0];if(k==="p"||k==="P"){let se=ta[k];return se(v,o.formatLong)}return v}).join("").match(vu).map(v=>{if(v==="''")return{isToken:!1,value:"'"};let k=v[0];if(k==="'")return{isToken:!1,value:Fu(v)};if(Ye[k])return{isToken:!0,value:v};if(k.match(Yu))throw new RangeError("Format string contains an unescaped latin alphabet character `"+k+"`");return{isToken:!1,value:v}});o.localize.preprocessor&&(l=o.localize.preprocessor(i,l));let D={firstWeekContainsDate:f,weekStartsOn:u,locale:o};return l.map(v=>{if(!v.isToken)return v.value;let k=v.value;(!(r!=null&&r.useAdditionalWeekYearTokens)&&na(k)||!(r!=null&&r.useAdditionalDayOfYearTokens)&&aa(k))&&oa(k,t,String(e));let se=Ye[k[0]];return se(i,k,o.localize,D)}).join("")}function Fu(e){let t=e.match(Tu);return t?t[1].replace(Nu,"'"):e}var vu,Iu,Tu,Nu,Yu,ua=a(()=>{"use strict";Br();j();Zr();ra();fa();Oe();I();vu=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Iu=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Tu=/^'([^]*?)'?$/,Nu=/''/g,Yu=/[a-zA-Z]/});var ma=a(()=>{"use strict"});var ca=a(()=>{"use strict"});var ia=a(()=>{"use strict"});var la=a(()=>{"use strict"});var da=a(()=>{"use strict"});var sa=a(()=>{"use strict"});var xa=a(()=>{"use strict"});var ha=a(()=>{"use strict"});var ga=a(()=>{"use strict"});var Da=a(()=>{"use strict"});var ya=a(()=>{"use strict"});var wa=a(()=>{"use strict"});var ba=a(()=>{"use strict"});var Ma=a(()=>{"use strict"});var Oa=a(()=>{"use strict"});var ka=a(()=>{"use strict"});var pa=a(()=>{"use strict"});var Sa=a(()=>{"use strict"});var va=a(()=>{"use strict"});var Ia=a(()=>{"use strict"});var Ta=a(()=>{"use strict"});var Na=a(()=>{"use strict"});var Ya=a(()=>{"use strict"});var Fa=a(()=>{"use strict"});var Wa=a(()=>{"use strict"});var Pa=a(()=>{"use strict"});var _a=a(()=>{"use strict"});var Ca=a(()=>{"use strict"});var Ha=a(()=>{"use strict"});var Ea=a(()=>{"use strict"});var $a=a(()=>{"use strict"});var La=a(()=>{"use strict"});var za=a(()=>{"use strict"});var Ra=a(()=>{"use strict"});var Aa=a(()=>{"use strict"});var Qa=a(()=>{"use strict"});var Ba=a(()=>{"use strict"});var qa=a(()=>{"use strict"});var ja=a(()=>{"use strict"});var Xa=a(()=>{"use strict"});var Ua=a(()=>{"use strict"});var Va=a(()=>{"use strict"});var Ga=a(()=>{"use strict"});var Ja=a(()=>{"use strict"});var Za=a(()=>{"use strict"});var Ka=a(()=>{"use strict"});var en=a(()=>{"use strict"});var tn=a(()=>{"use strict"});var rn=a(()=>{"use strict"});var an=a(()=>{"use strict"});var nn=a(()=>{"use strict"});var on=a(()=>{"use strict"});var fn=a(()=>{"use strict"});var un=a(()=>{"use strict"});var mn=a(()=>{"use strict"});var cn=a(()=>{"use strict"});var ln=a(()=>{"use strict"});var dn=a(()=>{"use strict"});var sn=a(()=>{"use strict"});var xn=a(()=>{"use strict"});var hn=a(()=>{"use strict"});var gn=a(()=>{"use strict"});var Dn=a(()=>{"use strict"});var yn=a(()=>{"use strict"});var wn=a(()=>{"use strict"});var bn=a(()=>{"use strict"});var Mn=a(()=>{"use strict"});var On=a(()=>{"use strict"});var kn=a(()=>{"use strict"});var pn=a(()=>{"use strict"});var Sn=a(()=>{"use strict"});var vn=a(()=>{"use strict"});var In=a(()=>{"use strict"});var Tn=a(()=>{"use strict"});var Nn=a(()=>{"use strict"});var Yn=a(()=>{"use strict"});var Fn=a(()=>{"use strict"});var Wn=a(()=>{"use strict"});var Pn=a(()=>{"use strict"});var _n=a(()=>{"use strict"});var Cn=a(()=>{"use strict"});var Hn=a(()=>{"use strict"});var En=a(()=>{"use strict"});var $n=a(()=>{"use strict"});var Ln=a(()=>{"use strict"});var zn=a(()=>{"use strict"});var Rn=a(()=>{"use strict"});var An=a(()=>{"use strict"});var Qn=a(()=>{"use strict"});var Bn=a(()=>{"use strict"});var qn=a(()=>{"use strict"});var jn=a(()=>{"use strict"});var Xn=a(()=>{"use strict"});var Un=a(()=>{"use strict"});var Vn=a(()=>{"use strict"});var Gn=a(()=>{"use strict"});var Jn=a(()=>{"use strict"});var Zn=a(()=>{"use strict"});var Kn=a(()=>{"use strict"});var eo=a(()=>{"use strict"});var to=a(()=>{"use strict"});var ro=a(()=>{"use strict"});var ao=a(()=>{"use strict"});var no=a(()=>{"use strict"});var oo=a(()=>{"use strict"});var fo=a(()=>{"use strict"});var uo=a(()=>{"use strict"});var mo=a(()=>{"use strict"});var co=a(()=>{"use strict"});var io=a(()=>{"use strict"});var lo=a(()=>{"use strict"});var so=a(()=>{"use strict"});var xo=a(()=>{"use strict"});var ho=a(()=>{"use strict"});var go=a(()=>{"use strict"});var Do=a(()=>{"use strict"});var yo=a(()=>{"use strict"});var wo=a(()=>{"use strict"});var bo=a(()=>{"use strict"});var Mo=a(()=>{"use strict"});var Oo=a(()=>{"use strict"});var ko=a(()=>{"use strict"});var po=a(()=>{"use strict"});var So=a(()=>{"use strict"});var vo=a(()=>{"use strict"});var Io=a(()=>{"use strict"});var To=a(()=>{"use strict"});var No=a(()=>{"use strict"});var Yo=a(()=>{"use strict"});var Fo=a(()=>{"use strict"});var Wo=a(()=>{"use strict"});var Po=a(()=>{"use strict"});var _o=a(()=>{"use strict"});var Co=a(()=>{"use strict"});var Ho=a(()=>{"use strict"});var Eo=a(()=>{"use strict"});var $o=a(()=>{"use strict"});var Lo=a(()=>{"use strict"});var zo=a(()=>{"use strict"});var Ro=a(()=>{"use strict"});var Ao=a(()=>{"use strict"});var Qo=a(()=>{"use strict"});var Bo=a(()=>{"use strict"});var qo=a(()=>{"use strict"});var jo=a(()=>{"use strict"});var Xo=a(()=>{"use strict"});var Uo=a(()=>{"use strict"});var Vo=a(()=>{"use strict"});var Go=a(()=>{"use strict"});var Jo=a(()=>{"use strict"});var Zo=a(()=>{"use strict"});var Ko=a(()=>{"use strict"});var ef=a(()=>{"use strict"});var tf=a(()=>{"use strict"});var rf=a(()=>{"use strict"});var U=a(()=>{"use strict";at();ut();tt();ct();gt();mt();Dt();rt();yt();wt();bt();Mt();Ot();St();vt();It();Tt();Nt();F();Yt();Ft();Ct();we();Ht();Et();$t();zt();Rt();At();Qt();Bt();jt();Xt();Ut();Zt();Kt();er();tr();rr();ar();nr();or();fr();mr();cr();ir();dr();hr();gr();Vt();Dr();yr();br();Mr();Or();Gt();kr();pr();Sr();vr();wr();sr();Ir();ua();ma();ca();ia();la();da();sa();xa();ha();ga();Da();ya();wa();ba();Ma();Se();Oa();pa();Sa();va();Ia();Ta();ve();re();Na();Ya();Fa();Wa();Pa();Lt();_a();Ca();Ha();Te();Ea();oe();La();za();Ra();Aa();Qa();Ba();qa();ja();Xa();Ua();Va();Me();Ga();Ja();Za();Ka();en();Jt();ka();un();mn();cn();Wt();dn();xn();hn();Dn();yn();wn();Mn();sn();On();nt();ot();kn();pn();Sn();vn();In();Tn();Nn();Yn();Fn();Wn();Pn();_n();Oe();Cn();ft();Hn();$n();Ln();Rn();An();$a();Qn();zn();Bn();qn();kt();jn();Xn();Un();Vn();pt();Gn();Jn();Zn();Kn();eo();to();ro();ao();no();oo();fo();uo();mo();fn();co();io();lo();so();xo();ho();go();Do();yo();wo();bo();Mo();Oo();ko();po();So();vo();To();No();nn();Yo();Fo();Wo();on();an();ht();Po();_o();Io();Co();Ho();rn();Eo();$o();ye();Lo();ln();X();be();gn();lr();ur();bn();zo();Ro();L();Ie();ke();Ao();Bo();qo();En();jo();qt();Xo();Uo();Qo();Vo();Go();Jo();Zo();I();tn();Ko();ef();tf();rf()});var lf={};B(lf,{Blog_A:()=>Fe,default:()=>Fe});function Fe({subtitle:e,title:t,posts:r,primaryButton:n}){return(0,g.jsx)(mf.Section,{className:"py-20 bg-background",children:(0,g.jsxs)(nf.Container,{maxWidth:1280,children:[(0,g.jsx)(Wu,{subtitle:e,title:t}),(0,g.jsx)(Pu,{posts:r}),(0,g.jsx)(_u,{primaryButton:n})]})})}function Wu({subtitle:e,title:t}){return(0,g.jsxs)("div",{className:"mb-16 text-center",children:[e?(0,g.jsx)(cf.Text,{weight:"bold",className:"text-secondary",children:e}):null,t?(0,g.jsx)(of.Heading,{fontSize:"3xl",children:t}):null]})}function Pu({posts:e}){var n,o,f,u;if(!e)return null;let t=6,r=0;return(0,g.jsxs)(ue.Flex,{gap:4,className:"flex-col lg:flex-row",children:[(0,g.jsxs)("div",{className:"w-full space-y-5 lg:w-1/2",children:[(n=e==null?void 0:e.slice(r,r+1))==null?void 0:n.map((i,l)=>(0,g.jsx)(fe,{post:i},l)),(0,g.jsx)(ue.Flex,{gap:4,className:"flex-col lg:flex-row",children:(o=e==null?void 0:e.slice(r+1,r+3))==null?void 0:o.map((i,l)=>(0,g.jsx)(fe,{post:i},l))})]}),(0,g.jsxs)("div",{className:"w-full space-y-5 lg:w-1/2",children:[(0,g.jsx)(ue.Flex,{gap:4,className:"flex-col lg:flex-row",children:(f=e==null?void 0:e.slice(r+3,r+5))==null?void 0:f.map((i,l)=>(0,g.jsx)(fe,{post:i},l))}),(u=e==null?void 0:e.slice(r+5,t))==null?void 0:u.map((i,l)=>(0,g.jsx)(fe,{post:i},l))]})]})}function fe({post:e}){var t,r;return(0,g.jsxs)("div",{className:"relative w-full h-64 rounded",children:[e!=null&&e.mainImage?(0,g.jsx)(ff.Image,{className:"relative object-cover w-full h-full overflow-hidden rounded-global",src:`${e==null?void 0:e.mainImage}`,alt:"blog-variantA-image",sizes:"(min-width: 1540px) 740px, (min-width: 1280px) 612px, (min-width: 1040px) 484px, (min-width: 780px) 736px, (min-width: 680px) 608px, calc(94.44vw - 15px)"}):null,(0,g.jsx)("div",{className:"absolute inset-0 bg-gray-900 rounded-global opacity-75"}),(0,g.jsxs)("div",{className:"absolute inset-0 flex flex-col items-start p-6",children:[e!=null&&e.categories?(0,g.jsx)("div",{className:"absolute flex left-5 top-5",children:(t=e==null?void 0:e.categories)==null?void 0:t.map((n,o)=>(0,g.jsx)("span",{className:"px-3 py-1 mb-auto mr-3 text-sm font-bold uppercase bg-white rounded-full text-primary",children:n==null?void 0:n.title},o))}):null,(0,g.jsx)("span",{className:"mt-auto text-sm text-gray-500",children:e!=null&&e.publishedAt?P(new Date(e==null?void 0:e.publishedAt),"dd MMM, yyyy"):""}),e!=null&&e.title?(0,g.jsx)(uf.Link,{className:"text-lg font-bold text-white transform hover:scale-110 hover:text-secondary motion-reduce:transform-none",href:`/${e==null?void 0:e.link}`,children:((r=e==null?void 0:e.title)==null?void 0:r.length)>40?(e==null?void 0:e.title.substring(0,40))+"...":e==null?void 0:e.title}):null]})]})}function _u({primaryButton:e}){return e!=null&&e.label?(0,g.jsx)("div",{className:"mt-10 text-center",children:(0,g.jsx)(af.Button,{as:"link",link:e,ariaLabel:e==null?void 0:e.label,children:e==null?void 0:e.label})}):null}var af,nf,ue,of,ff,uf,mf,cf,g,We=a(()=>{"use strict";af=require("@stackshift-ui/button"),nf=require("@stackshift-ui/container"),ue=require("@stackshift-ui/flex"),of=require("@stackshift-ui/heading"),ff=require("@stackshift-ui/image"),uf=require("@stackshift-ui/link"),mf=require("@stackshift-ui/section"),cf=require("@stackshift-ui/text");U();g=require("react/jsx-runtime")});var me,ce,Pe=a(()=>{"use strict";me=xe(require("react")),ce=e=>{let[t,r]=me.default.useState(!1),n=me.default.useCallback(o=>{o.matches?r(!0):r(!1)},[]);return me.default.useEffect(()=>{let o=window.matchMedia(`(max-width: ${e}px)`);return o.addEventListener("change",n),o.matches&&r(!0),()=>o.removeEventListener("change",n)},[]),t}});var Df={};B(Df,{Blog_B:()=>Ee,default:()=>Ee});function Ee({subtitle:e,title:t,posts:r,primaryButton:n}){return(0,s.jsx)(mf.Section,{className:"py-20 bg-background",children:(0,s.jsxs)(nf.Container,{maxWidth:1280,children:[(0,s.jsx)(Cu,{subtitle:e,title:t}),(0,s.jsx)(Hu,{posts:r,count:0,blogsPerPage:5}),(0,s.jsx)($u,{primaryButton:n})]})})}function Cu({subtitle:e,title:t}){return(0,s.jsxs)("div",{className:"w-full mb-16 text-center",children:[e?(0,s.jsx)(cf.Text,{weight:"bold",className:"text-secondary",children:e}):null,t?(0,s.jsx)(of.Heading,{fontSize:"3xl",children:t}):null]})}function Hu({posts:e,count:t,blogsPerPage:r}){return(0,s.jsxs)(ue.Flex,{wrap:!0,justify:"center",className:"mb-16",gap:4,children:[(0,s.jsx)("div",{className:"w-full lg:w-[45%]",children:e==null?void 0:e.slice(t,t+1).map((n,o)=>(0,s.jsx)(df,{size:"lg",post:n},o))}),(0,s.jsx)(ue.Flex,{wrap:!0,className:"w-full lg:w-[45%]",gap:4,children:e==null?void 0:e.slice(t+1,r).map((n,o)=>(0,s.jsx)("div",{className:"w-full lg:basis-[45%]",children:(0,s.jsx)(df,{post:n,size:"sm"})},o))})]})}function df({post:e,size:t}){let r=ce("1024");return(0,s.jsxs)("div",{className:"overflow-hidden rounded-global shadow",children:[e!=null&&e.mainImage?(0,s.jsx)(Eu,{post:e,size:t,breakpoints:r}):null,(0,s.jsxs)("div",{className:"p-6 bg-white flex flex-col justify-between",style:{height:"295px"},children:[(0,s.jsxs)("div",{children:[e!=null&&e.publishedAt?(0,s.jsx)(cf.Text,{muted:!0,className:"text-sm",children:P(new Date(e.publishedAt)," dd MMM, yyyy")}):null,e!=null&&e.title?(0,s.jsx)(of.Heading,{type:"h4",className:"my-2",children:e.title.length>25?`${e.title.substring(0,25)}...`:e.title}):null,e!=null&&e.excerpt?(0,s.jsx)(cf.Text,{muted:!0,className:"mb-6 text-justify",children:e.excerpt.length>41?`${e.excerpt.substring(0,41)}...`:e.excerpt}):null]}),e!=null&&e.link?(0,s.jsx)(uf.Link,{"aria-label":"View Blog Post",className:"font-bold text-primary hover:text-secondary",href:`/${e==null?void 0:e.link}`,children:"View Blog Post"}):null]})]})}function Eu({post:e,size:t,breakpoints:r}){return(0,s.jsx)(s.Fragment,{children:r?(0,s.jsx)(ff.Image,{className:"object-cover w-full overflow-hidden",src:`${e.mainImage}`,sizes:"100vw",style:{width:"100%",height:"auto",objectFit:"cover"},width:271,height:248,alt:`blog-variantB-image-${e.title}`}):(0,s.jsx)("div",{className:`${t==="lg"?"h-[44.5rem]":"h-[12.5rem]"}`,children:(0,s.jsx)(ff.Image,{className:"object-cover w-full overflow-hidden rounded-t-global",src:`${e.mainImage}`,sizes:"100vw",style:{width:"100%",height:"100%",objectFit:"cover"},width:271,height:248,alt:`blog-variantB-image-${e.title}`})})})}function $u({primaryButton:e}){return e!=null&&e.label?(0,s.jsx)("div",{className:"text-center",children:(0,s.jsx)(sf.Button,{as:"link",link:e,ariaLabel:e==null?void 0:e.label,children:e==null?void 0:e.label})}):null}var sf,nf,ue,of,ff,uf,mf,cf,s,$e=a(()=>{"use strict";sf=require("@stackshift-ui/button");U();Pe();s=require("react/jsx-runtime")});var vf={};B(vf,{Blog_C:()=>ze,default:()=>ze});function ze({subtitle:e,title:t,posts:r,primaryButton:n}){return(0,d.jsx)(mf.Section,{className:"py-20 bg-background",children:(0,d.jsxs)(nf.Container,{maxWidth:1280,children:[(0,d.jsxs)(ue.Flex,{align:"center",justify:"between",className:"flex-col mb-16 md:flex-row",gap:4,children:[(0,d.jsx)(Lu,{subtitle:e,title:t}),(0,d.jsx)(yf,{primaryButton:n})]}),(0,d.jsx)(zu,{posts:r,blogsPerPage:3}),(0,d.jsx)(yf,{primaryButton:n})]})})}function Lu({subtitle:e,title:t}){return(0,d.jsxs)("div",{className:"text-center md:text-left",children:[e?(0,d.jsx)(cf.Text,{weight:"bold",className:"text-primary",children:e}):null,t?(0,d.jsx)(of.Heading,{fontSize:"3xl",children:t}):null]})}function zu({posts:e,blogsPerPage:t}){var r;return e?(0,d.jsx)("div",{children:(r=e==null?void 0:e.slice(0,t))==null?void 0:r.map((n,o)=>(0,d.jsx)("div",{className:"flex flex-wrap mb-8 overflow-hidden rounded-global shadow",children:(0,d.jsx)(Ru,{post:n,className:`${o%2===0?"flex-row":"flex-row-reverse"}`},o)},o))}):null}function Ru({post:e,className:t}){var o,f,u,i,l,D;let n=ce("1100")?70:200;return(0,d.jsxs)(ue.Flex,{wrap:!0,className:`bg-white overflow-hidden rounded-lg shadow w-full ${t}`,children:[(e==null?void 0:e.mainImage)&&(0,d.jsx)(ff.Image,{className:"object-cover w-full h-auto rounded-l lg:w-1/2",src:`${e==null?void 0:e.mainImage}`,sizes:"100vw",width:554,height:416,alt:"blog-variantC-image-"}),(0,d.jsxs)("div",{className:"w-full px-6 py-6 rounded-r lg:w-1/2 lg:pt-10",children:[(0,d.jsx)(ue.Flex,{gap:2,children:(e==null?void 0:e.categories)&&((o=e==null?void 0:e.categories)==null?void 0:o.map((h,w)=>(0,d.jsx)(wf.Badge,{className:" bg-secondary-foreground text-primary",children:h==null?void 0:h.title},w)))}),(e==null?void 0:e.publishedAt)&&(0,d.jsx)(cf.Text,{muted:!0,className:"m-1",children:P(new Date(e==null?void 0:e.publishedAt)," dd MMM, yyyy")}),(e==null?void 0:e.title)&&(0,d.jsx)(of.Heading,{className:"my-4",type:"h3",children:((f=e==null?void 0:e.title)==null?void 0:f.length)>40?((u=e==null?void 0:e.title)==null?void 0:u.substring(0,40))+"...":e==null?void 0:e.title}),(e==null?void 0:e.authors)&&(0,d.jsxs)("div",{className:"flex mb-10 flex-wrap",children:[(0,d.jsx)("span",{className:"italic text-primary",children:"By\xA0"}),(i=e==null?void 0:e.authors)==null?void 0:i.map((h,w,{length:y})=>(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(cf.Text,{className:"italic text-primary",children:h==null?void 0:h.name}),w+1!==y?(0,d.jsx)("span",{children:"\xA0,\xA0"}):null]}))]}),(e==null?void 0:e.excerpt)&&(0,d.jsx)(cf.Text,{muted:!0,className:"mb-6 leading-loose text-justify",children:((l=e==null?void 0:e.excerpt)==null?void 0:l.length)>n?((D=e==null?void 0:e.excerpt)==null?void 0:D.substring(0,n))+"...":e==null?void 0:e.excerpt}),(e==null?void 0:e.link)&&(0,d.jsx)(uf.Link,{"aria-label":"View Blog Post",className:"font-bold text-primary hover:text-primary-foreground",href:`/${e==null?void 0:e.link}`,children:"View Blog Post"})]})]})}function yf({primaryButton:e}){return e!=null&&e.label?(0,d.jsx)(Sf.default.Fragment,{children:(0,d.jsx)(bf.Button,{as:"link",link:e,ariaLabel:e==null?void 0:e.label,children:e==null?void 0:e.label})}):null}var wf,bf,nf,ue,of,ff,uf,mf,cf,Sf,d,Re=a(()=>{"use strict";wf=require("@stackshift-ui/badge"),bf=require("@stackshift-ui/button");U();Sf=xe(require("react"));Pe();d=require("react/jsx-runtime")});var Cf={};B(Cf,{Blog_D:()=>Qe,default:()=>Qe});function Qe({subtitle:e,title:t,posts:r}){let[n,o]=Q.default.useState("All"),[f,u]=Q.default.useState(1),[i,l]=Q.default.useState(""),D=6;Q.default.useEffect(()=>{u(1)},[n]);let h=(r!=null?r:[]).flatMap(c=>{var M;return((M=c==null?void 0:c.categories)!=null?M:[]).map(T=>({category:T==null?void 0:T.title,title:c==null?void 0:c.title,slug:c==null?void 0:c.slug,excerpt:c==null?void 0:c.excerpt,publishedAt:c==null?void 0:c.publishedAt,mainImage:c==null?void 0:c.mainImage,authors:c==null?void 0:c.authors}))}),w=h==null?void 0:h.reduce((c,M)=>{let T=M==null?void 0:M.category;return c.indexOf(T)===-1&&c.push(T),c},[]),y=n==="All"?r==null?void 0:r.filter(c=>{var M;return(M=c==null?void 0:c.title)==null?void 0:M.toLowerCase().includes(i.toLowerCase())}):h.filter(c=>{var M;return(c==null?void 0:c.category)===n&&((M=c==null?void 0:c.title)==null?void 0:M.toLowerCase().includes(i.toLowerCase()))}),O=f*D,S=O-D,_=y==null?void 0:y.slice(S,O),C=c=>u(c);return(0,m.jsx)(mf.Section,{className:"py-20 bg-background",children:(0,m.jsxs)(nf.Container,{maxWidth:1280,children:[(0,m.jsx)(Qu,{subtitle:e,title:t}),(0,m.jsx)(Bu,{handleSearchChange:c=>{l(c.target.value),o("All"),u(1)}}),(0,m.jsxs)(ue.Flex,{wrap:!0,children:[(0,m.jsx)(qu,{categories:w,activeTab:n,setActiveTab:o}),(y==null?void 0:y.length)===0?(0,m.jsx)(Au,{}):(0,m.jsx)(ju,{currentPosts:_,activeTab:n,blogsPerPage:D})]}),(0,m.jsx)(Xu,{blogsPerPage:D,totalBlogs:y==null?void 0:y.length,paginate:C,currentPage:f})]})})}function Au({message:e="No post available."}){return(0,m.jsx)("div",{className:"w-full px-3 lg:w-3/4 font-medium text-lg",children:e})}function Qu({subtitle:e,title:t}){return(0,m.jsxs)("div",{className:"w-full mb-16",children:[e?(0,m.jsx)(cf.Text,{weight:"bold",className:"text-secondary",children:e}):null,t?(0,m.jsx)(of.Heading,{fontSize:"3xl",children:t}):null]})}function Bu({handleSearchChange:e}){return(0,m.jsxs)("div",{className:"relative mb-5 w-full lg:w-1/4",children:[(0,m.jsx)(Wf.Input,{type:"text","aria-label":"Search, find any question you want to ask...",className:"w-full bg-white rounded-global font-heading focus:border-gray-500 focus:outline-none",placeholder:"Search posts...",onChange:e}),(0,m.jsx)(de.Button,{as:"button",variant:"unstyled",ariaLabel:"Search button",className:"absolute right-0 top-0 h-full px-3 bg-white rounded-global text-primary flex items-center",children:(0,m.jsx)("svg",{className:"w-6 h-6",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,m.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"})})})]})}function qu({categories:e,activeTab:t,setActiveTab:r}){return(0,m.jsx)(Nf.Card,{className:"w-full px-3 mb-8 bg-white lg:mb-0 lg:w-1/4",borderRadius:"global",children:e&&(0,m.jsxs)(Q.default.Fragment,{children:[(0,m.jsx)(of.Heading,{type:"h3",muted:!0,weight:"bold",className:"mb-4 text-base uppercase lg:text-base",children:"Topics"}),(0,m.jsxs)("ul",{children:[(e==null?void 0:e.length)>1&&(0,m.jsx)(If,{activeTab:t,setActiveTab:r,category:"All"}),e==null?void 0:e.map((n,o)=>(0,m.jsx)(If,{activeTab:t,setActiveTab:r,category:n},o))]})]})})}function If({key:e,activeTab:t,setActiveTab:r,category:n}){return(0,m.jsx)("li",{children:(0,m.jsx)(de.Button,{as:"button",variant:"unstyled",ariaLabel:"Show all blog posts",className:`mb-4 block ${n?"block":"hidden"} px-3 py-2 hover:bg-secondary-foreground focus:outline-none w-full text-left rounded ${t===n?"font-bold text-primary focus:outline-none bg-secondary-foreground":null}`,onClick:()=>r(n),children:n})},e)}function ju({currentPosts:e,activeTab:t,blogsPerPage:r}){var n;return e?(0,m.jsx)("div",{className:"w-full px-3 lg:w-3/4",children:t==="All"?e==null?void 0:e.map((o,f)=>(0,m.jsx)(Tf,{post:o},f)):(n=e==null?void 0:e.slice(0,r))==null?void 0:n.map((o,f)=>(0,m.jsx)(Tf,{post:o},f))}):null}function Tf({post:e}){var t,r,n;return e?(0,m.jsxs)(ue.Flex,{wrap:!0,className:"mb-8 lg:mb-6 bg-white shadow rounded-lg",children:[(0,m.jsx)("div",{className:"w-full h-full mb-4 lg:mb-0 lg:w-1/4",children:(0,m.jsx)(ff.Image,{className:"object-cover w-full h-full overflow-hidden rounded",src:`${e==null?void 0:e.mainImage}`,sizes:"100vw",width:188,height:129,alt:"blog-variantD-image-"})}),(0,m.jsxs)("div",{className:"w-full px-3 py-2 lg:w-3/4",children:[(e==null?void 0:e.title)&&(0,m.jsx)(uf.Link,{"aria-label":e==null?void 0:e.title,className:"mb-1 text-2xl font-bold hover:text-secondary font-heading",href:`/${(t=e==null?void 0:e.link)!=null?t:"page-not-added"}`,children:(e==null?void 0:e.title.length)>25?((r=e==null?void 0:e.title)==null?void 0:r.substring(0,25))+"...":e==null?void 0:e.title}),(0,m.jsxs)(ue.Flex,{wrap:!0,align:"center",gap:1,className:"mb-2 text-sm",children:[e!=null&&e.authors?(n=e==null?void 0:e.authors)==null?void 0:n.map((o,f,{length:u})=>(0,m.jsxs)(ue.Flex,{children:[(0,m.jsx)(cf.Text,{className:"text-primary",children:o==null?void 0:o.name}),f+1!==u?(0,m.jsx)("span",{children:"\xA0,\xA0"}):null]},f)):null,e!=null&&e.publishedAt&&(e!=null&&e.authors)?(0,m.jsx)("span",{className:"mx-2 text-gray-500",children:"\u2022"}):null,e!=null&&e.publishedAt?(0,m.jsx)(cf.Text,{muted:!0,children:P(new Date(e==null?void 0:e.publishedAt)," dd MMM, yyyy")}):null]}),e!=null&&e.excerpt?(0,m.jsx)(cf.Text,{muted:!0,children:(e==null?void 0:e.excerpt.length)>60?(e==null?void 0:e.excerpt.substring(0,60))+"...":e==null?void 0:e.excerpt}):null]})]}):null}function Xu({blogsPerPage:e,totalBlogs:t,paginate:r,currentPage:n}){if(!e)return null;let o=[];for(let f=1;f<=Math.ceil(t/e);f++)o.push(f);return(0,m.jsx)("nav",{className:"mt-4","aria-label":"Pagination",children:(0,m.jsx)("ul",{className:"flex space-x-2 justify-end mr-5",children:o.map(f=>(0,m.jsx)(de.Button,{variant:"unstyled",as:"button",ariaLabel:`Page ${f}`,className:`${n===f?"bg-secondary-foreground text-gray-500":"bg-white hover:bg-secondary-foreground hover:text-gray-500"} text-primary font-medium py-2 px-4 border border-primary rounded focus:outline-none`,onClick:()=>r(f),children:f},f))})})}var de,Nf,nf,ue,of,ff,Wf,uf,mf,cf,Q,m,Be=a(()=>{"use strict";de=require("@stackshift-ui/button"),Nf=require("@stackshift-ui/card"),Wf=require("@stackshift-ui/input");U();Q=xe(require("react")),m=require("react/jsx-runtime")});var Gu={};B(Gu,{Blog:()=>Hf,Blog_A:()=>Fe,Blog_B:()=>Ee,Blog_C:()=>ze,Blog_D:()=>Qe});module.exports=Qf(Gu);var Z=require("react"),Uu={variant_a:(0,Z.lazy)(()=>Promise.resolve().then(()=>(We(),lf))),variant_b:(0,Z.lazy)(()=>Promise.resolve().then(()=>($e(),Df))),variant_c:(0,Z.lazy)(()=>Promise.resolve().then(()=>(Re(),vf))),variant_d:(0,Z.lazy)(()=>Promise.resolve().then(()=>(Be(),Cf)))},Vu="Blog",Hf=({data:e})=>{var o,f,u,i,l,D,h,w,y;let t=e==null?void 0:e.variant,r=t&&Uu[t],n={subtitle:(f=(o=e==null?void 0:e.variants)==null?void 0:o.subtitle)!=null?f:void 0,title:(i=(u=e==null?void 0:e.variants)==null?void 0:u.title)!=null?i:void 0,posts:(h=((l=e==null?void 0:e.variants)==null?void 0:l.posts)||((D=e==null?void 0:e.variants)==null?void 0:D.blogPosts))!=null?h:void 0,primaryButton:(y=(w=e==null?void 0:e.variants)==null?void 0:w.primaryButton)!=null?y:void 0};return r?(0,m.jsx)(r,{...n}):null};Hf.displayName=Vu;We();$e();Re();Be();0&&(module.exports={Blog,Blog_A,Blog_B,Blog_C,Blog_D});
2
+ "use strict";var Ef=Object.create;var K=Object.defineProperty;var Lf=Object.getOwnPropertyDescriptor;var zf=Object.getOwnPropertyNames;var Rf=Object.getPrototypeOf,Af=Object.prototype.hasOwnProperty;var a=(e,t)=>()=>(e&&(t=e(e=0)),t);var B=(e,t)=>{for(var r in t)K(e,r,{get:t[r],enumerable:!0})},Ze=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of zf(t))!Af.call(e,o)&&o!==r&&K(e,o,{get:()=>t[o],enumerable:!(n=Lf(t,o))||n.enumerable});return e};var xe=(e,t,r)=>(r=e!=null?Ef(Rf(e)):{},Ze(t||!e||!e.__esModule?K(r,"default",{value:e,enumerable:!0}):r,e)),Qf=e=>Ze(K({},"__esModule",{value:!0}),e);var Bf,Zu,ee,Ke,qf,et,Ku,jf,Xf,em,he,q=a(()=>{"use strict";Bf=Math.pow(10,8)*24*60*60*1e3,Zu=-Bf,ee=6048e5,Ke=864e5,qf=3600,et=qf*24,Ku=et*7,jf=et*365.2425,Xf=jf/12,em=Xf*3,he=Symbol.for("constructDateFrom")});function S(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&he in e?e[he](t):e instanceof Date?new e.constructor(t):new Date(t)}var F=a(()=>{"use strict";q()});function b(e,t){return S(t||e,e)}var I=a(()=>{"use strict";F()});var tt=a(()=>{"use strict"});var rt=a(()=>{"use strict"});var at=a(()=>{"use strict"});var nt=a(()=>{"use strict"});var ot=a(()=>{"use strict"});var ft=a(()=>{"use strict"});var ut=a(()=>{"use strict"});var mt=a(()=>{"use strict"});var ct=a(()=>{"use strict"});function W(){return Uf}var Uf,j=a(()=>{"use strict";Uf={}});function N(e,t){var c,l,D,y,w,h,M,O;let r=W(),n=(O=(M=(y=(D=t==null?void 0:t.weekStartsOn)!=null?D:(l=(c=t==null?void 0:t.locale)==null?void 0:c.options)==null?void 0:l.weekStartsOn)!=null?y:r.weekStartsOn)!=null?M:(h=(w=r.locale)==null?void 0:w.options)==null?void 0:h.weekStartsOn)!=null?O:0,o=b(e,t==null?void 0:t.in),f=o.getDay(),u=(f<n?7:0)+f-n;return o.setDate(o.getDate()-u),o.setHours(0,0,0,0),o}var L=a(()=>{"use strict";j();I()});function H(e,t){return N(e,{...t,weekStartsOn:1})}var X=a(()=>{"use strict";L()});function te(e,t){let r=b(e,t==null?void 0:t.in),n=r.getFullYear(),o=S(r,0);o.setFullYear(n+1,0,4),o.setHours(0,0,0,0);let f=H(o),u=S(r,0);u.setFullYear(n,0,4),u.setHours(0,0,0,0);let c=H(u);return r.getTime()>=f.getTime()?n+1:r.getTime()>=c.getTime()?n:n-1}var re=a(()=>{"use strict";F();X();I()});function ge(e){let t=b(e),r=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return r.setUTCFullYear(t.getFullYear()),+e-+r}var it=a(()=>{"use strict";I()});function lt(e,...t){let r=S.bind(null,e||t.find(n=>typeof n=="object"));return t.map(r)}var dt=a(()=>{"use strict";F()});function De(e,t){let r=b(e,t==null?void 0:t.in);return r.setHours(0,0,0,0),r}var ye=a(()=>{"use strict";I()});function st(e,t,r){let[n,o]=lt(r==null?void 0:r.in,e,t),f=De(n),u=De(o),c=+f-ge(f),l=+u-ge(u);return Math.round((c-l)/Ke)}var we=a(()=>{"use strict";it();dt();q();ye()});function xt(e,t){let r=te(e,t),n=S((t==null?void 0:t.in)||e,0);return n.setFullYear(r,0,4),n.setHours(0,0,0,0),H(n)}var be=a(()=>{"use strict";F();re();X()});var ht=a(()=>{"use strict"});var gt=a(()=>{"use strict"});var Dt=a(()=>{"use strict"});var yt=a(()=>{"use strict"});var wt=a(()=>{"use strict"});var bt=a(()=>{"use strict"});var Mt=a(()=>{"use strict"});var Ot=a(()=>{"use strict"});var kt=a(()=>{"use strict"});var pt=a(()=>{"use strict"});var St=a(()=>{"use strict"});var vt=a(()=>{"use strict"});var It=a(()=>{"use strict"});var Tt=a(()=>{"use strict"});var Nt=a(()=>{"use strict"});var Yt=a(()=>{"use strict"});var Ft=a(()=>{"use strict"});var Wt=a(()=>{"use strict"});function Pt(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}var Me=a(()=>{"use strict"});function _t(e){return!(!Pt(e)&&typeof e!="number"||isNaN(+b(e)))}var Oe=a(()=>{"use strict";Me();I()});var Ct=a(()=>{"use strict"});var Ht=a(()=>{"use strict"});var $t=a(()=>{"use strict"});var Et=a(()=>{"use strict"});var Lt=a(()=>{"use strict"});var zt=a(()=>{"use strict"});var Rt=a(()=>{"use strict"});var At=a(()=>{"use strict"});var Qt=a(()=>{"use strict"});var Bt=a(()=>{"use strict"});var qt=a(()=>{"use strict"});var jt=a(()=>{"use strict"});var Xt=a(()=>{"use strict"});var Ut=a(()=>{"use strict"});var Vt=a(()=>{"use strict"});var Gt=a(()=>{"use strict"});var Jt=a(()=>{"use strict"});var Zt=a(()=>{"use strict"});var Kt=a(()=>{"use strict"});var er=a(()=>{"use strict"});var tr=a(()=>{"use strict"});var rr=a(()=>{"use strict"});var ar=a(()=>{"use strict"});var nr=a(()=>{"use strict"});var or=a(()=>{"use strict"});var fr=a(()=>{"use strict"});var ur=a(()=>{"use strict"});var mr=a(()=>{"use strict"});var cr=a(()=>{"use strict"});var ir=a(()=>{"use strict"});var lr=a(()=>{"use strict"});var dr=a(()=>{"use strict"});var sr=a(()=>{"use strict"});function xr(e,t){let r=b(e,t==null?void 0:t.in);return r.setFullYear(r.getFullYear(),0,1),r.setHours(0,0,0,0),r}var ke=a(()=>{"use strict";I()});var hr=a(()=>{"use strict"});var gr=a(()=>{"use strict"});var Dr=a(()=>{"use strict"});var yr=a(()=>{"use strict"});var wr=a(()=>{"use strict"});var br=a(()=>{"use strict"});var Mr=a(()=>{"use strict"});var Or=a(()=>{"use strict"});var kr=a(()=>{"use strict"});var pr=a(()=>{"use strict"});var Sr=a(()=>{"use strict"});var vr=a(()=>{"use strict"});var Ir=a(()=>{"use strict"});var Vf,Tr,Nr=a(()=>{"use strict";Vf={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},Tr=(e,t,r)=>{let n,o=Vf[e];return typeof o=="string"?n=o:t===1?n=o.one:n=o.other.replace("{{count}}",t.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+n:n+" ago":n}});function ae(e){return(t={})=>{let r=t.width?String(t.width):e.defaultWidth;return e.formats[r]||e.formats[e.defaultWidth]}}var Yr=a(()=>{"use strict"});var Gf,Jf,Zf,Fr,Wr=a(()=>{"use strict";Yr();Gf={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Jf={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Zf={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Fr={date:ae({formats:Gf,defaultWidth:"full"}),time:ae({formats:Jf,defaultWidth:"full"}),dateTime:ae({formats:Zf,defaultWidth:"full"})}});var Kf,Pr,_r=a(()=>{"use strict";Kf={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Pr=(e,t,r,n)=>Kf[e]});function z(e){return(t,r)=>{let n=r!=null&&r.context?String(r.context):"standalone",o;if(n==="formatting"&&e.formattingValues){let u=e.defaultFormattingWidth||e.defaultWidth,c=r!=null&&r.width?String(r.width):u;o=e.formattingValues[c]||e.formattingValues[u]}else{let u=e.defaultWidth,c=r!=null&&r.width?String(r.width):e.defaultWidth;o=e.values[c]||e.values[u]}let f=e.argumentCallback?e.argumentCallback(t):t;return o[f]}}var Cr=a(()=>{"use strict"});var eu,tu,ru,au,nu,ou,fu,Hr,$r=a(()=>{"use strict";Cr();eu={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},tu={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},ru={narrow:["cf","F","M","A","M","cf","cf","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},au={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},nu={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},ou={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},fu=(e,t)=>{let r=Number(e),n=r%100;if(n>20||n<10)switch(n%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},Hr={ordinalNumber:fu,era:z({values:eu,defaultWidth:"wide"}),quarter:z({values:tu,defaultWidth:"wide",argumentCallback:e=>e-1}),month:z({values:ru,defaultWidth:"wide"}),day:z({values:au,defaultWidth:"wide"}),dayPeriod:z({values:nu,defaultWidth:"wide",formattingValues:ou,defaultFormattingWidth:"wide"})}});function R(e){return(t,r={})=>{let n=r.width,o=n&&e.matchPatterns[n]||e.matchPatterns[e.defaultMatchWidth],f=t.match(o);if(!f)return null;let u=f[0],c=n&&e.parsePatterns[n]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(c)?mu(c,w=>w.test(u)):uu(c,w=>w.test(u)),D;D=e.valueCallback?e.valueCallback(l):l,D=r.valueCallback?r.valueCallback(D):D;let y=t.slice(u.length);return{value:D,rest:y}}}function uu(e,t){for(let r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&t(e[r]))return r}function mu(e,t){for(let r=0;r<e.length;r++)if(t(e[r]))return r}var Er=a(()=>{"use strict"});function Lr(e){return(t,r={})=>{let n=t.match(e.matchPattern);if(!n)return null;let o=n[0],f=t.match(e.parsePattern);if(!f)return null;let u=e.valueCallback?e.valueCallback(f[0]):f[0];u=r.valueCallback?r.valueCallback(u):u;let c=t.slice(o.length);return{value:u,rest:c}}}var zr=a(()=>{"use strict"});var cu,iu,lu,du,su,xu,hu,gu,Du,yu,wu,bu,Rr,Ar=a(()=>{"use strict";Er();zr();cu=/^(\d+)(th|st|nd|rd)?/i,iu=/\d+/i,lu={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},du={any:[/^b/i,/^(a|c)/i]},su={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},xu={any:[/1/i,/2/i,/3/i,/4/i]},hu={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},gu={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},Du={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},yu={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},wu={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},bu={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},Rr={ordinalNumber:Lr({matchPattern:cu,parsePattern:iu,valueCallback:e=>parseInt(e,10)}),era:R({matchPatterns:lu,defaultMatchWidth:"wide",parsePatterns:du,defaultParseWidth:"any"}),quarter:R({matchPatterns:su,defaultMatchWidth:"wide",parsePatterns:xu,defaultParseWidth:"any",valueCallback:e=>e+1}),month:R({matchPatterns:hu,defaultMatchWidth:"wide",parsePatterns:gu,defaultParseWidth:"any"}),day:R({matchPatterns:Du,defaultMatchWidth:"wide",parsePatterns:yu,defaultParseWidth:"any"}),dayPeriod:R({matchPatterns:wu,defaultMatchWidth:"any",parsePatterns:bu,defaultParseWidth:"any"})}});var pe,Qr=a(()=>{"use strict";Nr();Wr();_r();$r();Ar();pe={code:"en-US",formatDistance:Tr,formatLong:Fr,formatRelative:Pr,localize:Hr,match:Rr,options:{weekStartsOn:0,firstWeekContainsDate:1}}});var Br=a(()=>{"use strict";Qr()});function qr(e,t){let r=b(e,t==null?void 0:t.in);return st(r,xr(r))+1}var Se=a(()=>{"use strict";we();ke();I()});function jr(e,t){let r=b(e,t==null?void 0:t.in),n=+H(r)-+xt(r);return Math.round(n/ee)+1}var ve=a(()=>{"use strict";q();X();be();I()});function ne(e,t){var y,w,h,M,O,_,C,E;let r=b(e,t==null?void 0:t.in),n=r.getFullYear(),o=W(),f=(E=(C=(M=(h=t==null?void 0:t.firstWeekContainsDate)!=null?h:(w=(y=t==null?void 0:t.locale)==null?void 0:y.options)==null?void 0:w.firstWeekContainsDate)!=null?M:o.firstWeekContainsDate)!=null?C:(_=(O=o.locale)==null?void 0:O.options)==null?void 0:_.firstWeekContainsDate)!=null?E:1,u=S((t==null?void 0:t.in)||e,0);u.setFullYear(n+1,0,f),u.setHours(0,0,0,0);let c=N(u,t),l=S((t==null?void 0:t.in)||e,0);l.setFullYear(n,0,f),l.setHours(0,0,0,0);let D=N(l,t);return+r>=+c?n+1:+r>=+D?n:n-1}var oe=a(()=>{"use strict";j();F();L();I()});function Xr(e,t){var c,l,D,y,w,h,M,O;let r=W(),n=(O=(M=(y=(D=t==null?void 0:t.firstWeekContainsDate)!=null?D:(l=(c=t==null?void 0:t.locale)==null?void 0:c.options)==null?void 0:l.firstWeekContainsDate)!=null?y:r.firstWeekContainsDate)!=null?M:(h=(w=r.locale)==null?void 0:w.options)==null?void 0:h.firstWeekContainsDate)!=null?O:1,o=ne(e,t),f=S((t==null?void 0:t.in)||e,0);return f.setFullYear(o,0,n),f.setHours(0,0,0,0),N(f,t)}var Ie=a(()=>{"use strict";j();F();oe();L()});function Ur(e,t){let r=b(e,t==null?void 0:t.in),n=+N(r,t)-+Xr(r,t);return Math.round(n/ee)+1}var Te=a(()=>{"use strict";q();L();Ie();I()});function x(e,t){let r=e<0?"-":"",n=Math.abs(e).toString().padStart(t,"0");return r+n}var Ne=a(()=>{"use strict"});var Y,Vr=a(()=>{"use strict";Ne();Y={y(e,t){let r=e.getFullYear(),n=r>0?r:1-r;return x(t==="yy"?n%100:n,t.length)},M(e,t){let r=e.getMonth();return t==="M"?String(r+1):x(r+1,2)},d(e,t){return x(e.getDate(),t.length)},a(e,t){let r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h(e,t){return x(e.getHours()%12||12,t.length)},H(e,t){return x(e.getHours(),t.length)},m(e,t){return x(e.getMinutes(),t.length)},s(e,t){return x(e.getSeconds(),t.length)},S(e,t){let r=t.length,n=e.getMilliseconds(),o=Math.trunc(n*Math.pow(10,r-3));return x(o,t.length)}}});function Gr(e,t=""){let r=e>0?"-":"+",n=Math.abs(e),o=Math.trunc(n/60),f=n%60;return f===0?r+String(o):r+String(o)+t+x(f,2)}function Jr(e,t){return e%60===0?(e>0?"-":"+")+x(Math.abs(e)/60,2):$(e,t)}function $(e,t=""){let r=e>0?"-":"+",n=Math.abs(e),o=x(Math.trunc(n/60),2),f=x(n%60,2);return r+o+t+f}var A,Ye,Zr=a(()=>{"use strict";Se();ve();re();Te();oe();Ne();Vr();A={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Ye={ue:function(e,t,r){let n=e.getFullYear()>0?1:0;switch(t){case"ue":case"GG":case"GGG":return r.era(n,{width:"abbreviated"});case"GGGGG":return r.era(n,{width:"narrow"});case"GGGG":default:return r.era(n,{width:"wide"})}},y:function(e,t,r){if(t==="yo"){let n=e.getFullYear(),o=n>0?n:1-n;return r.ordinalNumber(o,{unit:"year"})}return Y.y(e,t)},Y:function(e,t,r,n){let o=ne(e,n),f=o>0?o:1-o;if(t==="YY"){let u=f%100;return x(u,2)}return t==="Yo"?r.ordinalNumber(f,{unit:"year"}):x(f,t.length)},R:function(e,t){let r=te(e);return x(r,t.length)},u:function(e,t){let r=e.getFullYear();return x(r,t.length)},Q:function(e,t,r){let n=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(n);case"QQ":return x(n,2);case"Qo":return r.ordinalNumber(n,{unit:"quarter"});case"QQQ":return r.quarter(n,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(n,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(n,{width:"wide",context:"formatting"})}},q:function(e,t,r){let n=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(n);case"qq":return x(n,2);case"qo":return r.ordinalNumber(n,{unit:"quarter"});case"qqq":return r.quarter(n,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(n,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(n,{width:"wide",context:"standalone"})}},M:function(e,t,r){let n=e.getMonth();switch(t){case"M":case"MM":return Y.M(e,t);case"Mo":return r.ordinalNumber(n+1,{unit:"month"});case"MMM":return r.month(n,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(n,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(n,{width:"wide",context:"formatting"})}},L:function(e,t,r){let n=e.getMonth();switch(t){case"L":return String(n+1);case"LL":return x(n+1,2);case"Lo":return r.ordinalNumber(n+1,{unit:"month"});case"LLL":return r.month(n,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(n,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(n,{width:"wide",context:"standalone"})}},w:function(e,t,r,n){let o=Ur(e,n);return t==="wo"?r.ordinalNumber(o,{unit:"week"}):x(o,t.length)},I:function(e,t,r){let n=jr(e);return t==="Io"?r.ordinalNumber(n,{unit:"week"}):x(n,t.length)},d:function(e,t,r){return t==="do"?r.ordinalNumber(e.getDate(),{unit:"date"}):Y.d(e,t)},D:function(e,t,r){let n=qr(e);return t==="Do"?r.ordinalNumber(n,{unit:"dayOfYear"}):x(n,t.length)},E:function(e,t,r){let n=e.getDay();switch(t){case"E":case"EE":case"EEE":return r.day(n,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(n,{width:"short",context:"formatting"});case"EEEE":default:return r.day(n,{width:"wide",context:"formatting"})}},e:function(e,t,r,n){let o=e.getDay(),f=(o-n.weekStartsOn+8)%7||7;switch(t){case"e":return String(f);case"ee":return x(f,2);case"eo":return r.ordinalNumber(f,{unit:"day"});case"eee":return r.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(o,{width:"short",context:"formatting"});case"eeee":default:return r.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,r,n){let o=e.getDay(),f=(o-n.weekStartsOn+8)%7||7;switch(t){case"c":return String(f);case"cc":return x(f,t.length);case"co":return r.ordinalNumber(f,{unit:"day"});case"ccc":return r.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(o,{width:"narrow",context:"standalone"});case"cccccc":return r.day(o,{width:"short",context:"standalone"});case"cccc":default:return r.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,r){let n=e.getDay(),o=n===0?7:n;switch(t){case"i":return String(o);case"ii":return x(o,t.length);case"io":return r.ordinalNumber(o,{unit:"day"});case"iii":return r.day(n,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(n,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(n,{width:"short",context:"formatting"});case"iiii":default:return r.day(n,{width:"wide",context:"formatting"})}},a:function(e,t,r){let o=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(e,t,r){let n=e.getHours(),o;switch(n===12?o=A.noon:n===0?o=A.midnight:o=n/12>=1?"pm":"am",t){case"b":case"bb":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,t,r){let n=e.getHours(),o;switch(n>=17?o=A.evening:n>=12?o=A.afternoon:n>=4?o=A.morning:o=A.night,t){case"B":case"BB":case"BBB":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,t,r){if(t==="ho"){let n=e.getHours()%12;return n===0&&(n=12),r.ordinalNumber(n,{unit:"hour"})}return Y.h(e,t)},H:function(e,t,r){return t==="Ho"?r.ordinalNumber(e.getHours(),{unit:"hour"}):Y.H(e,t)},K:function(e,t,r){let n=e.getHours()%12;return t==="Ko"?r.ordinalNumber(n,{unit:"hour"}):x(n,t.length)},k:function(e,t,r){let n=e.getHours();return n===0&&(n=24),t==="ko"?r.ordinalNumber(n,{unit:"hour"}):x(n,t.length)},m:function(e,t,r){return t==="mo"?r.ordinalNumber(e.getMinutes(),{unit:"minute"}):Y.m(e,t)},s:function(e,t,r){return t==="so"?r.ordinalNumber(e.getSeconds(),{unit:"second"}):Y.s(e,t)},S:function(e,t){return Y.S(e,t)},X:function(e,t,r){let n=e.getTimezoneOffset();if(n===0)return"Z";switch(t){case"X":return Jr(n);case"XXXX":case"XX":return $(n);case"XXXXX":case"XXX":default:return $(n,":")}},x:function(e,t,r){let n=e.getTimezoneOffset();switch(t){case"x":return Jr(n);case"xxxx":case"xx":return $(n);case"xxxxx":case"xxx":default:return $(n,":")}},O:function(e,t,r){let n=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+Gr(n,":");case"OOOO":default:return"GMT"+$(n,":")}},z:function(e,t,r){let n=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+Gr(n,":");case"zzzz":default:return"GMT"+$(n,":")}},t:function(e,t,r){let n=Math.trunc(+e/1e3);return x(n,t.length)},T:function(e,t,r){return x(+e,t.length)}}});var Kr,ea,Mu,ta,ra=a(()=>{"use strict";Kr=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},ea=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},Mu=(e,t)=>{let r=e.match(/(P+)(p+)?/)||[],n=r[1],o=r[2];if(!o)return Kr(e,t);let f;switch(n){case"P":f=t.dateTime({width:"short"});break;case"PP":f=t.dateTime({width:"medium"});break;case"PPP":f=t.dateTime({width:"long"});break;case"PPPP":default:f=t.dateTime({width:"full"});break}return f.replace("{{date}}",Kr(n,t)).replace("{{time}}",ea(o,t))},ta={p:ea,P:Mu}});function aa(e){return Ou.test(e)}function na(e){return ku.test(e)}function oa(e,t,r){let n=Su(e,t,r);if(console.warn(n),pu.includes(e))throw new RangeError(n)}function Su(e,t,r){let n=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${n} to the input \`${r}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}var Ou,ku,pu,fa=a(()=>{"use strict";Ou=/^D+$/,ku=/^Y+$/,pu=["D","DD","YY","YYYY"]});function P(e,t,r){var y,w,h,M,O,_,C,E,i,k,T,qe,je,Xe,Ue,Ve,Ge,Je;let n=W(),o=(w=(y=r==null?void 0:r.locale)!=null?y:n.locale)!=null?w:pe,f=(k=(i=(_=(O=r==null?void 0:r.firstWeekContainsDate)!=null?O:(M=(h=r==null?void 0:r.locale)==null?void 0:h.options)==null?void 0:M.firstWeekContainsDate)!=null?_:n.firstWeekContainsDate)!=null?i:(E=(C=n.locale)==null?void 0:C.options)==null?void 0:E.firstWeekContainsDate)!=null?k:1,u=(Je=(Ge=(Xe=(je=r==null?void 0:r.weekStartsOn)!=null?je:(qe=(T=r==null?void 0:r.locale)==null?void 0:T.options)==null?void 0:qe.weekStartsOn)!=null?Xe:n.weekStartsOn)!=null?Ge:(Ve=(Ue=n.locale)==null?void 0:Ue.options)==null?void 0:Ve.weekStartsOn)!=null?Je:0,c=b(e,r==null?void 0:r.in);if(!_t(c))throw new RangeError("Invalid time value");let l=t.match(Iu).map(v=>{let p=v[0];if(p==="p"||p==="P"){let se=ta[p];return se(v,o.formatLong)}return v}).join("").match(vu).map(v=>{if(v==="''")return{isToken:!1,value:"'"};let p=v[0];if(p==="'")return{isToken:!1,value:Fu(v)};if(Ye[p])return{isToken:!0,value:v};if(p.match(Yu))throw new RangeError("Format string contains an unescaped latin alphabet character `"+p+"`");return{isToken:!1,value:v}});o.localize.preprocessor&&(l=o.localize.preprocessor(c,l));let D={firstWeekContainsDate:f,weekStartsOn:u,locale:o};return l.map(v=>{if(!v.isToken)return v.value;let p=v.value;(!(r!=null&&r.useAdditionalWeekYearTokens)&&na(p)||!(r!=null&&r.useAdditionalDayOfYearTokens)&&aa(p))&&oa(p,t,String(e));let se=Ye[p[0]];return se(c,p,o.localize,D)}).join("")}function Fu(e){let t=e.match(Tu);return t?t[1].replace(Nu,"'"):e}var vu,Iu,Tu,Nu,Yu,ua=a(()=>{"use strict";Br();j();Zr();ra();fa();Oe();I();vu=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Iu=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Tu=/^'([^]*?)'?$/,Nu=/''/g,Yu=/[a-zA-Z]/});var ma=a(()=>{"use strict"});var ca=a(()=>{"use strict"});var ia=a(()=>{"use strict"});var la=a(()=>{"use strict"});var da=a(()=>{"use strict"});var sa=a(()=>{"use strict"});var xa=a(()=>{"use strict"});var ha=a(()=>{"use strict"});var ga=a(()=>{"use strict"});var Da=a(()=>{"use strict"});var ya=a(()=>{"use strict"});var wa=a(()=>{"use strict"});var ba=a(()=>{"use strict"});var Ma=a(()=>{"use strict"});var Oa=a(()=>{"use strict"});var ka=a(()=>{"use strict"});var pa=a(()=>{"use strict"});var Sa=a(()=>{"use strict"});var va=a(()=>{"use strict"});var Ia=a(()=>{"use strict"});var Ta=a(()=>{"use strict"});var Na=a(()=>{"use strict"});var Ya=a(()=>{"use strict"});var Fa=a(()=>{"use strict"});var Wa=a(()=>{"use strict"});var Pa=a(()=>{"use strict"});var _a=a(()=>{"use strict"});var Ca=a(()=>{"use strict"});var Ha=a(()=>{"use strict"});var $a=a(()=>{"use strict"});var Ea=a(()=>{"use strict"});var La=a(()=>{"use strict"});var za=a(()=>{"use strict"});var Ra=a(()=>{"use strict"});var Aa=a(()=>{"use strict"});var Qa=a(()=>{"use strict"});var Ba=a(()=>{"use strict"});var qa=a(()=>{"use strict"});var ja=a(()=>{"use strict"});var Xa=a(()=>{"use strict"});var Ua=a(()=>{"use strict"});var Va=a(()=>{"use strict"});var Ga=a(()=>{"use strict"});var Ja=a(()=>{"use strict"});var Za=a(()=>{"use strict"});var Ka=a(()=>{"use strict"});var en=a(()=>{"use strict"});var tn=a(()=>{"use strict"});var rn=a(()=>{"use strict"});var an=a(()=>{"use strict"});var nn=a(()=>{"use strict"});var on=a(()=>{"use strict"});var fn=a(()=>{"use strict"});var un=a(()=>{"use strict"});var mn=a(()=>{"use strict"});var cn=a(()=>{"use strict"});var ln=a(()=>{"use strict"});var dn=a(()=>{"use strict"});var sn=a(()=>{"use strict"});var xn=a(()=>{"use strict"});var hn=a(()=>{"use strict"});var gn=a(()=>{"use strict"});var Dn=a(()=>{"use strict"});var yn=a(()=>{"use strict"});var wn=a(()=>{"use strict"});var bn=a(()=>{"use strict"});var Mn=a(()=>{"use strict"});var On=a(()=>{"use strict"});var kn=a(()=>{"use strict"});var pn=a(()=>{"use strict"});var Sn=a(()=>{"use strict"});var vn=a(()=>{"use strict"});var In=a(()=>{"use strict"});var Tn=a(()=>{"use strict"});var Nn=a(()=>{"use strict"});var Yn=a(()=>{"use strict"});var Fn=a(()=>{"use strict"});var Wn=a(()=>{"use strict"});var Pn=a(()=>{"use strict"});var _n=a(()=>{"use strict"});var Cn=a(()=>{"use strict"});var Hn=a(()=>{"use strict"});var $n=a(()=>{"use strict"});var En=a(()=>{"use strict"});var Ln=a(()=>{"use strict"});var zn=a(()=>{"use strict"});var Rn=a(()=>{"use strict"});var An=a(()=>{"use strict"});var Qn=a(()=>{"use strict"});var Bn=a(()=>{"use strict"});var qn=a(()=>{"use strict"});var jn=a(()=>{"use strict"});var Xn=a(()=>{"use strict"});var Un=a(()=>{"use strict"});var Vn=a(()=>{"use strict"});var Gn=a(()=>{"use strict"});var Jn=a(()=>{"use strict"});var Zn=a(()=>{"use strict"});var Kn=a(()=>{"use strict"});var eo=a(()=>{"use strict"});var to=a(()=>{"use strict"});var ro=a(()=>{"use strict"});var ao=a(()=>{"use strict"});var no=a(()=>{"use strict"});var oo=a(()=>{"use strict"});var fo=a(()=>{"use strict"});var uo=a(()=>{"use strict"});var mo=a(()=>{"use strict"});var co=a(()=>{"use strict"});var io=a(()=>{"use strict"});var lo=a(()=>{"use strict"});var so=a(()=>{"use strict"});var xo=a(()=>{"use strict"});var ho=a(()=>{"use strict"});var go=a(()=>{"use strict"});var Do=a(()=>{"use strict"});var yo=a(()=>{"use strict"});var wo=a(()=>{"use strict"});var bo=a(()=>{"use strict"});var Mo=a(()=>{"use strict"});var Oo=a(()=>{"use strict"});var ko=a(()=>{"use strict"});var po=a(()=>{"use strict"});var So=a(()=>{"use strict"});var vo=a(()=>{"use strict"});var Io=a(()=>{"use strict"});var To=a(()=>{"use strict"});var No=a(()=>{"use strict"});var Yo=a(()=>{"use strict"});var Fo=a(()=>{"use strict"});var Wo=a(()=>{"use strict"});var Po=a(()=>{"use strict"});var _o=a(()=>{"use strict"});var Co=a(()=>{"use strict"});var Ho=a(()=>{"use strict"});var $o=a(()=>{"use strict"});var Eo=a(()=>{"use strict"});var Lo=a(()=>{"use strict"});var zo=a(()=>{"use strict"});var Ro=a(()=>{"use strict"});var Ao=a(()=>{"use strict"});var Qo=a(()=>{"use strict"});var Bo=a(()=>{"use strict"});var qo=a(()=>{"use strict"});var jo=a(()=>{"use strict"});var Xo=a(()=>{"use strict"});var Uo=a(()=>{"use strict"});var Vo=a(()=>{"use strict"});var Go=a(()=>{"use strict"});var Jo=a(()=>{"use strict"});var Zo=a(()=>{"use strict"});var Ko=a(()=>{"use strict"});var ef=a(()=>{"use strict"});var tf=a(()=>{"use strict"});var rf=a(()=>{"use strict"});var U=a(()=>{"use strict";at();ut();tt();ct();gt();mt();Dt();rt();yt();wt();bt();Mt();Ot();St();vt();It();Tt();Nt();F();Yt();Ft();Ct();we();Ht();$t();Et();zt();Rt();At();Qt();Bt();jt();Xt();Ut();Zt();Kt();er();tr();rr();ar();nr();or();fr();mr();cr();ir();dr();hr();gr();Vt();Dr();yr();br();Mr();Or();Gt();kr();pr();Sr();vr();wr();sr();Ir();ua();ma();ca();ia();la();da();sa();xa();ha();ga();Da();ya();wa();ba();Ma();Se();Oa();pa();Sa();va();Ia();Ta();ve();re();Na();Ya();Fa();Wa();Pa();Lt();_a();Ca();Ha();Te();$a();oe();La();za();Ra();Aa();Qa();Ba();qa();ja();Xa();Ua();Va();Me();Ga();Ja();Za();Ka();en();Jt();ka();un();mn();cn();Wt();dn();xn();hn();Dn();yn();wn();Mn();sn();On();nt();ot();kn();pn();Sn();vn();In();Tn();Nn();Yn();Fn();Wn();Pn();_n();Oe();Cn();ft();Hn();En();Ln();Rn();An();Ea();Qn();zn();Bn();qn();kt();jn();Xn();Un();Vn();pt();Gn();Jn();Zn();Kn();eo();to();ro();ao();no();oo();fo();uo();mo();fn();co();io();lo();so();xo();ho();go();Do();yo();wo();bo();Mo();Oo();ko();po();So();vo();To();No();nn();Yo();Fo();Wo();on();an();ht();Po();_o();Io();Co();Ho();rn();$o();Eo();ye();Lo();ln();X();be();gn();lr();ur();bn();zo();Ro();L();Ie();ke();Ao();Bo();qo();$n();jo();qt();Xo();Uo();Qo();Vo();Go();Jo();Zo();I();tn();Ko();ef();tf();rf()});var lf={};B(lf,{Blog_A:()=>Fe,default:()=>Fe});function Fe({subtitle:e,title:t,posts:r,primaryButton:n}){return(0,g.jsx)(mf.Section,{className:"py-20 bg-background",children:(0,g.jsxs)(nf.Container,{maxWidth:1280,children:[(0,g.jsx)(Wu,{subtitle:e,title:t}),(0,g.jsx)(Pu,{posts:r}),(0,g.jsx)(_u,{primaryButton:n})]})})}function Wu({subtitle:e,title:t}){return(0,g.jsxs)("div",{className:"mb-16 text-center",children:[e?(0,g.jsx)(cf.Text,{weight:"bold",className:"text-secondary",children:e}):null,t?(0,g.jsx)(of.Heading,{fontSize:"3xl",children:t}):null]})}function Pu({posts:e}){var n,o,f,u;if(!e)return null;let t=6,r=0;return(0,g.jsxs)(ue.Flex,{gap:4,className:"flex-col lg:flex-row",children:[(0,g.jsxs)("div",{className:"w-full space-y-5 lg:w-1/2",children:[(n=e==null?void 0:e.slice(r,r+1))==null?void 0:n.map((c,l)=>(0,g.jsx)(fe,{post:c},l)),(0,g.jsx)(ue.Flex,{gap:4,className:"flex-col lg:flex-row",children:(o=e==null?void 0:e.slice(r+1,r+3))==null?void 0:o.map((c,l)=>(0,g.jsx)(fe,{post:c},l))})]}),(0,g.jsxs)("div",{className:"w-full space-y-5 lg:w-1/2",children:[(0,g.jsx)(ue.Flex,{gap:4,className:"flex-col lg:flex-row",children:(f=e==null?void 0:e.slice(r+3,r+5))==null?void 0:f.map((c,l)=>(0,g.jsx)(fe,{post:c},l))}),(u=e==null?void 0:e.slice(r+5,t))==null?void 0:u.map((c,l)=>(0,g.jsx)(fe,{post:c},l))]})]})}function fe({post:e,key:t}){var r,n,o;return(0,g.jsxs)("div",{className:"relative w-full h-64 rounded",children:[e!=null&&e.mainImage?(0,g.jsx)(ff.Image,{className:"relative object-cover w-full h-full overflow-hidden rounded-md",src:`${e==null?void 0:e.mainImage}`,alt:(r=e==null?void 0:e.alt)!=null?r:`blog-variantA-image-${t}`,sizes:"(min-width: 1540px) 740px, (min-width: 1280px) 612px, (min-width: 1040px) 484px, (min-width: 780px) 736px, (min-width: 680px) 608px, calc(94.44vw - 15px)"}):null,(0,g.jsx)("div",{className:"absolute inset-0 bg-gray-900 rounded-md opacity-75"}),(0,g.jsxs)("div",{className:"absolute inset-0 flex flex-col items-start p-6",children:[e!=null&&e.categories?(0,g.jsx)("div",{className:"absolute flex left-5 top-5",children:(n=e==null?void 0:e.categories)==null?void 0:n.map((f,u)=>(0,g.jsx)("span",{className:"px-3 py-1 mb-auto mr-3 text-sm font-bold uppercase bg-white rounded-full text-primary",children:f==null?void 0:f.title},u))}):null,(0,g.jsx)("span",{className:"mt-auto text-sm text-gray-500",children:e!=null&&e.publishedAt?P(new Date(e==null?void 0:e.publishedAt),"dd MMM, yyyy"):""}),e!=null&&e.title?(0,g.jsx)(uf.Link,{className:"text-lg font-bold text-white transform hover:scale-110 hover:text-secondary motion-reduce:transform-none",href:`/${e==null?void 0:e.link}`,children:((o=e==null?void 0:e.title)==null?void 0:o.length)>40?(e==null?void 0:e.title.substring(0,40))+"...":e==null?void 0:e.title}):null]})]})}function _u({primaryButton:e}){return e!=null&&e.label?(0,g.jsx)("div",{className:"mt-10 text-center",children:(0,g.jsx)(af.Button,{as:"link",link:e,ariaLabel:e==null?void 0:e.label,children:e==null?void 0:e.label})}):null}var af,nf,ue,of,ff,uf,mf,cf,g,We=a(()=>{"use strict";af=require("@stackshift-ui/button"),nf=require("@stackshift-ui/container"),ue=require("@stackshift-ui/flex"),of=require("@stackshift-ui/heading"),ff=require("@stackshift-ui/image"),uf=require("@stackshift-ui/link"),mf=require("@stackshift-ui/section"),cf=require("@stackshift-ui/text");U();g=require("react/jsx-runtime")});var me,ce,Pe=a(()=>{"use strict";me=xe(require("react")),ce=e=>{let[t,r]=me.default.useState(!1),n=me.default.useCallback(o=>{o.matches?r(!0):r(!1)},[]);return me.default.useEffect(()=>{let o=window.matchMedia(`(max-width: ${e}px)`);return o.addEventListener("change",n),o.matches&&r(!0),()=>o.removeEventListener("change",n)},[]),t}});var Df={};B(Df,{Blog_B:()=>$e,default:()=>$e});function $e({subtitle:e,title:t,posts:r,primaryButton:n}){return(0,s.jsx)(mf.Section,{className:"py-20 bg-background",children:(0,s.jsxs)(nf.Container,{maxWidth:1280,children:[(0,s.jsx)(Cu,{subtitle:e,title:t}),(0,s.jsx)(Hu,{posts:r,count:0,blogsPerPage:5}),(0,s.jsx)(Eu,{primaryButton:n})]})})}function Cu({subtitle:e,title:t}){return(0,s.jsxs)("div",{className:"w-full mb-16 text-center",children:[e?(0,s.jsx)(cf.Text,{weight:"bold",className:"text-secondary",children:e}):null,t?(0,s.jsx)(of.Heading,{fontSize:"3xl",children:t}):null]})}function Hu({posts:e,count:t,blogsPerPage:r}){return(0,s.jsxs)(ue.Flex,{wrap:!0,justify:"center",className:"mb-16",gap:4,children:[(0,s.jsx)("div",{className:"w-full lg:w-[45%]",children:e==null?void 0:e.slice(t,t+1).map((n,o)=>(0,s.jsx)(df,{size:"lg",post:n},o))}),(0,s.jsx)(ue.Flex,{wrap:!0,className:"w-full lg:w-[45%]",gap:4,children:e==null?void 0:e.slice(t+1,r).map((n,o)=>(0,s.jsx)("div",{className:"w-full lg:basis-[45%]",children:(0,s.jsx)(df,{post:n,size:"sm"},o)},o))})]})}function df({post:e,size:t,key:r}){let n=ce("1024");return(0,s.jsxs)("div",{className:"overflow-hidden rounded-md shadow",children:[e!=null&&e.mainImage?(0,s.jsx)($u,{post:e,size:t,breakpoints:n},r):null,(0,s.jsxs)("div",{className:"p-6 bg-white flex flex-col justify-between",style:{height:"295px"},children:[(0,s.jsxs)("div",{children:[e!=null&&e.publishedAt?(0,s.jsx)(cf.Text,{muted:!0,className:"text-sm",children:P(new Date(e.publishedAt)," dd MMM, yyyy")}):null,e!=null&&e.title?(0,s.jsx)(of.Heading,{type:"h4",className:"my-2",children:e.title.length>25?`${e.title.substring(0,25)}...`:e.title}):null,e!=null&&e.excerpt?(0,s.jsx)(cf.Text,{muted:!0,className:"mb-6 text-justify",children:e.excerpt.length>41?`${e.excerpt.substring(0,41)}...`:e.excerpt}):null]}),e!=null&&e.link?(0,s.jsx)(uf.Link,{"aria-label":"View Blog Post",className:"font-bold text-primary hover:text-secondary",href:`/${e==null?void 0:e.link}`,children:"View Blog Post"}):null]})]})}function $u({post:e,size:t,breakpoints:r,key:n}){var o;return(0,s.jsx)(s.Fragment,{children:r?(0,s.jsx)(ff.Image,{className:"object-cover w-full overflow-hidden",src:`${e.mainImage}`,sizes:"100vw",style:{width:"100%",height:"auto",objectFit:"cover"},width:271,height:248,alt:(o=e==null?void 0:e.mainImage)!=null?o:`blog-variantB-image-${n}`}):(0,s.jsx)("div",{className:`${t==="lg"?"h-[44.5rem]":"h-[12.5rem]"}`,children:(0,s.jsx)(ff.Image,{className:"object-cover w-full overflow-hidden rounded-t-md",src:`${e.mainImage}`,sizes:"100vw",style:{width:"100%",height:"100%",objectFit:"cover"},width:271,height:248,alt:`blog-variantB-image-${e.title}`})})})}function Eu({primaryButton:e}){return e!=null&&e.label?(0,s.jsx)("div",{className:"text-center",children:(0,s.jsx)(sf.Button,{as:"link",link:e,ariaLabel:e==null?void 0:e.label,children:e==null?void 0:e.label})}):null}var sf,nf,ue,of,ff,uf,mf,cf,s,Ee=a(()=>{"use strict";sf=require("@stackshift-ui/button");U();Pe();s=require("react/jsx-runtime")});var vf={};B(vf,{Blog_C:()=>ze,default:()=>ze});function ze({subtitle:e,title:t,posts:r,primaryButton:n}){return(0,d.jsx)(mf.Section,{className:"py-20 bg-background",children:(0,d.jsxs)(nf.Container,{maxWidth:1280,children:[(0,d.jsxs)(ue.Flex,{align:"center",justify:"between",className:"flex-col mb-16 md:flex-row",gap:4,children:[(0,d.jsx)(Lu,{subtitle:e,title:t}),(0,d.jsx)(yf,{primaryButton:n})]}),(0,d.jsx)(zu,{posts:r,blogsPerPage:3}),(0,d.jsx)(yf,{primaryButton:n})]})})}function Lu({subtitle:e,title:t}){return(0,d.jsxs)("div",{className:"text-center md:text-left",children:[e?(0,d.jsx)(cf.Text,{weight:"bold",className:"text-primary",children:e}):null,t?(0,d.jsx)(of.Heading,{fontSize:"3xl",children:t}):null]})}function zu({posts:e,blogsPerPage:t}){var r;return e?(0,d.jsx)("div",{children:(r=e==null?void 0:e.slice(0,t))==null?void 0:r.map((n,o)=>(0,d.jsx)("div",{className:"flex flex-wrap mb-8 overflow-hidden rounded-md shadow",children:(0,d.jsx)(Ru,{post:n,className:`${o%2===0?"flex-row":"flex-row-reverse"}`},o)},o))}):null}function Ru({post:e,className:t,key:r}){var f,u,c,l,D,y,w;let o=ce("1100")?70:200;return(0,d.jsxs)(ue.Flex,{wrap:!0,className:`bg-white overflow-hidden rounded-lg shadow w-full ${t}`,children:[(e==null?void 0:e.mainImage)&&(0,d.jsx)(ff.Image,{className:"object-cover w-full h-auto rounded-l lg:w-1/2",src:`${e==null?void 0:e.mainImage}`,sizes:"100vw",width:554,height:416,alt:(f=e==null?void 0:e.alt)!=null?f:`blog-variantC-image-${r}`}),(0,d.jsxs)("div",{className:"w-full px-6 py-6 rounded-r lg:w-1/2 lg:pt-10",children:[(0,d.jsx)(ue.Flex,{gap:2,children:(e==null?void 0:e.categories)&&((u=e==null?void 0:e.categories)==null?void 0:u.map((h,M)=>(0,d.jsx)(wf.Badge,{className:" bg-secondary-foreground text-primary",children:h==null?void 0:h.title},M)))}),(e==null?void 0:e.publishedAt)&&(0,d.jsx)(cf.Text,{muted:!0,className:"m-1",children:P(new Date(e==null?void 0:e.publishedAt)," dd MMM, yyyy")}),(e==null?void 0:e.title)&&(0,d.jsx)(of.Heading,{className:"my-4",type:"h3",children:((c=e==null?void 0:e.title)==null?void 0:c.length)>40?((l=e==null?void 0:e.title)==null?void 0:l.substring(0,40))+"...":e==null?void 0:e.title}),(e==null?void 0:e.authors)&&(0,d.jsxs)("div",{className:"flex mb-10 flex-wrap",children:[(0,d.jsx)("span",{className:"italic text-primary",children:"By\xA0"}),(D=e==null?void 0:e.authors)==null?void 0:D.map((h,M,{length:O})=>(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(cf.Text,{className:"italic text-primary",children:h==null?void 0:h.name}),M+1!==O?(0,d.jsx)("span",{children:"\xA0,\xA0"}):null]}))]}),(e==null?void 0:e.excerpt)&&(0,d.jsx)(cf.Text,{muted:!0,className:"mb-6 leading-loose text-justify",children:((y=e==null?void 0:e.excerpt)==null?void 0:y.length)>o?((w=e==null?void 0:e.excerpt)==null?void 0:w.substring(0,o))+"...":e==null?void 0:e.excerpt}),(e==null?void 0:e.link)&&(0,d.jsx)(uf.Link,{"aria-label":"View Blog Post",className:"font-bold text-primary hover:text-primary-foreground",href:`/${e==null?void 0:e.link}`,children:"View Blog Post"})]})]})}function yf({primaryButton:e}){return e!=null&&e.label?(0,d.jsx)(Sf.default.Fragment,{children:(0,d.jsx)(bf.Button,{as:"link",link:e,ariaLabel:e==null?void 0:e.label,children:e==null?void 0:e.label})}):null}var wf,bf,nf,ue,of,ff,uf,mf,cf,Sf,d,Re=a(()=>{"use strict";wf=require("@stackshift-ui/badge"),bf=require("@stackshift-ui/button");U();Sf=xe(require("react"));Pe();d=require("react/jsx-runtime")});var Cf={};B(Cf,{Blog_D:()=>Qe,default:()=>Qe});function Qe({subtitle:e,title:t,posts:r}){let[n,o]=Q.default.useState("All"),[f,u]=Q.default.useState(1),[c,l]=Q.default.useState(""),D=6;Q.default.useEffect(()=>{u(1)},[n]);let y=(r!=null?r:[]).flatMap(i=>{var k;return((k=i==null?void 0:i.categories)!=null?k:[]).map(T=>({category:T==null?void 0:T.title,title:i==null?void 0:i.title,slug:i==null?void 0:i.slug,excerpt:i==null?void 0:i.excerpt,publishedAt:i==null?void 0:i.publishedAt,mainImage:i==null?void 0:i.mainImage,authors:i==null?void 0:i.authors}))}),w=y==null?void 0:y.reduce((i,k)=>{let T=k==null?void 0:k.category;return i.indexOf(T)===-1&&i.push(T),i},[]),h=n==="All"?r==null?void 0:r.filter(i=>{var k;return(k=i==null?void 0:i.title)==null?void 0:k.toLowerCase().includes(c.toLowerCase())}):y.filter(i=>{var k;return(i==null?void 0:i.category)===n&&((k=i==null?void 0:i.title)==null?void 0:k.toLowerCase().includes(c.toLowerCase()))}),M=f*D,O=M-D,_=h==null?void 0:h.slice(O,M),C=i=>u(i);return(0,m.jsx)(mf.Section,{className:"py-20 bg-background",children:(0,m.jsxs)(nf.Container,{maxWidth:1280,children:[(0,m.jsx)(Qu,{subtitle:e,title:t}),(0,m.jsx)(Bu,{handleSearchChange:i=>{l(i.target.value),o("All"),u(1)}}),(0,m.jsxs)(ue.Flex,{wrap:!0,children:[(0,m.jsx)(qu,{categories:w,activeTab:n,setActiveTab:o}),(h==null?void 0:h.length)===0?(0,m.jsx)(Au,{}):(0,m.jsx)(ju,{currentPosts:_,activeTab:n,blogsPerPage:D})]}),(0,m.jsx)(Xu,{blogsPerPage:D,totalBlogs:h==null?void 0:h.length,paginate:C,currentPage:f})]})})}function Au({message:e="No post available."}){return(0,m.jsx)("div",{className:"w-full px-3 lg:w-3/4 font-medium text-lg",children:e})}function Qu({subtitle:e,title:t}){return(0,m.jsxs)("div",{className:"w-full mb-16",children:[e?(0,m.jsx)(cf.Text,{weight:"bold",className:"text-secondary",children:e}):null,t?(0,m.jsx)(of.Heading,{fontSize:"3xl",children:t}):null]})}function Bu({handleSearchChange:e}){return(0,m.jsxs)("div",{className:"relative mb-5 w-full lg:w-1/4",children:[(0,m.jsx)(Wf.Input,{type:"text","aria-label":"Search, find any question you want to ask...",className:"w-full bg-white border rounded-global font-heading focus:border-gray-500 focus:outline-none",placeholder:"Search posts...",onChange:e}),(0,m.jsx)(de.Button,{as:"button",variant:"unstyled",ariaLabel:"Search button",className:"absolute right-0 top-0 h-full px-3 bg-white border-r rounded-global text-primary flex items-center",children:(0,m.jsx)("svg",{className:"w-6 h-6",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,m.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"})})})]})}function qu({categories:e,activeTab:t,setActiveTab:r}){return(0,m.jsx)(Nf.Card,{className:"w-full px-3 mb-8 bg-white lg:mb-0 lg:w-1/4",borderRadius:"md",children:e&&(0,m.jsxs)(Q.default.Fragment,{children:[(0,m.jsx)(of.Heading,{type:"h3",muted:!0,weight:"bold",className:"mb-4 text-base uppercase lg:text-base",children:"Topics"}),(0,m.jsxs)("ul",{children:[(e==null?void 0:e.length)>1&&(0,m.jsx)(If,{activeTab:t,setActiveTab:r,category:"All"}),e==null?void 0:e.map((n,o)=>(0,m.jsx)(If,{activeTab:t,setActiveTab:r,category:n},o))]})]})})}function If({key:e,activeTab:t,setActiveTab:r,category:n}){return(0,m.jsx)("li",{children:(0,m.jsx)(de.Button,{as:"button",variant:"unstyled",ariaLabel:"Show all blog posts",className:`mb-4 block ${n?"block":"hidden"} px-3 py-2 hover:bg-secondary-foreground focus:outline-none w-full text-left rounded ${t===n?"font-bold text-primary focus:outline-none bg-secondary-foreground":null}`,onClick:()=>r(n),children:n})},e)}function ju({currentPosts:e,activeTab:t,blogsPerPage:r}){var n;return e?(0,m.jsx)("div",{className:"w-full px-3 lg:w-3/4",children:t==="All"?e==null?void 0:e.map((o,f)=>(0,m.jsx)(Tf,{post:o},f)):(n=e==null?void 0:e.slice(0,r))==null?void 0:n.map((o,f)=>(0,m.jsx)(Tf,{post:o},f))}):null}function Tf({post:e}){var t,r,n,o;return e?(0,m.jsxs)(ue.Flex,{wrap:!0,className:"mb-8 lg:mb-6 bg-white shadow rounded-lg",children:[(0,m.jsx)("div",{className:"w-full h-full mb-4 lg:mb-0 lg:w-1/4",children:(0,m.jsx)(ff.Image,{className:"object-cover w-full h-full overflow-hidden rounded",src:`${e==null?void 0:e.mainImage}`,sizes:"100vw",width:188,height:129,alt:(t=e==null?void 0:e.alt)!=null?t:`blog-variantD-image-${e==null?void 0:e.title}`})}),(0,m.jsxs)("div",{className:"w-full px-3 py-2 lg:w-3/4",children:[(e==null?void 0:e.title)&&(0,m.jsx)(uf.Link,{"aria-label":e==null?void 0:e.title,className:"mb-1 text-2xl font-bold hover:text-secondary font-heading",href:`/${(r=e==null?void 0:e.link)!=null?r:"page-not-added"}`,children:(e==null?void 0:e.title.length)>25?((n=e==null?void 0:e.title)==null?void 0:n.substring(0,25))+"...":e==null?void 0:e.title}),(0,m.jsxs)(ue.Flex,{wrap:!0,align:"center",gap:1,className:"mb-2 text-sm",children:[e!=null&&e.authors?(o=e==null?void 0:e.authors)==null?void 0:o.map((f,u,{length:c})=>(0,m.jsxs)(ue.Flex,{children:[(0,m.jsx)(cf.Text,{className:"text-primary",children:f==null?void 0:f.name}),u+1!==c?(0,m.jsx)("span",{children:"\xA0,\xA0"}):null]},u)):null,e!=null&&e.publishedAt&&(e!=null&&e.authors)?(0,m.jsx)("span",{className:"mx-2 text-gray-500",children:"\u2022"}):null,e!=null&&e.publishedAt?(0,m.jsx)(cf.Text,{muted:!0,children:P(new Date(e==null?void 0:e.publishedAt)," dd MMM, yyyy")}):null]}),e!=null&&e.excerpt?(0,m.jsx)(cf.Text,{muted:!0,children:(e==null?void 0:e.excerpt.length)>60?(e==null?void 0:e.excerpt.substring(0,60))+"...":e==null?void 0:e.excerpt}):null]})]}):null}function Xu({blogsPerPage:e,totalBlogs:t,paginate:r,currentPage:n}){if(!e)return null;let o=[];for(let f=1;f<=Math.ceil(t/e);f++)o.push(f);return(0,m.jsx)("nav",{className:"mt-4","aria-label":"Pagination",children:(0,m.jsx)("ul",{className:"flex space-x-2 justify-end mr-5",children:o.map(f=>(0,m.jsx)(de.Button,{variant:"unstyled",as:"button",ariaLabel:`Page ${f}`,className:`${n===f?"bg-secondary-foreground text-gray-500":"bg-white hover:bg-secondary-foreground hover:text-gray-500"} text-primary font-medium py-2 px-4 border border-primary rounded-global focus:outline-none`,onClick:()=>r(f),children:f},f))})})}var de,Nf,nf,ue,of,ff,Wf,uf,mf,cf,Q,m,Be=a(()=>{"use strict";de=require("@stackshift-ui/button"),Nf=require("@stackshift-ui/card"),Wf=require("@stackshift-ui/input");U();Q=xe(require("react")),m=require("react/jsx-runtime")});var Gu={};B(Gu,{Blog:()=>Hf,Blog_A:()=>Fe,Blog_B:()=>$e,Blog_C:()=>ze,Blog_D:()=>Qe});module.exports=Qf(Gu);var Z=require("react"),Uu={variant_a:(0,Z.lazy)(()=>Promise.resolve().then(()=>(We(),lf))),variant_b:(0,Z.lazy)(()=>Promise.resolve().then(()=>(Ee(),Df))),variant_c:(0,Z.lazy)(()=>Promise.resolve().then(()=>(Re(),vf))),variant_d:(0,Z.lazy)(()=>Promise.resolve().then(()=>(Be(),Cf)))},Vu="Blog",Hf=({data:e})=>{var o,f,u,c,l,D,y,w;let t=e==null?void 0:e.variant,r=t&&Uu[t],n={subtitle:(f=(o=e==null?void 0:e.variants)==null?void 0:o.subtitle)!=null?f:void 0,title:(c=(u=e==null?void 0:e.variants)==null?void 0:u.title)!=null?c:void 0,posts:(D=(l=e==null?void 0:e.variants)==null?void 0:l.posts)!=null?D:void 0,primaryButton:(w=(y=e==null?void 0:e.variants)==null?void 0:y.primaryButton)!=null?w:void 0};return r?(0,$f.jsx)(r,{...n}):null};Hf.displayName=Vu;We();Ee();Re();Be();0&&(module.exports={Blog,Blog_A,Blog_B,Blog_C,Blog_D});
package/dist/index.mjs CHANGED
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- "use strict";import{a as f}from"./chunk-25V6I4CL.mjs";import{a as o}from"./chunk-XEJIKOLC.mjs";import{a as r}from"./chunk-2USNC6WZ.mjs";import{a as e}from"./chunk-OV72XAML.mjs";import"./chunk-TMLYY2AQ.mjs";import{a as t}from"./chunk-YM6QOMEL.mjs";import"./chunk-PC6NMI3O.mjs";export{f as Blog,o as Blog_A,r as Blog_B,e as Blog_C,t as Blog_D};
2
+ "use strict";import{a as f}from"./chunk-N5BQFWOH.mjs";import{a as o}from"./chunk-4JEFLTN2.mjs";import{a as r}from"./chunk-HRT2UV7A.mjs";import{a as e}from"./chunk-BYE6WLYT.mjs";import"./chunk-TMLYY2AQ.mjs";import{a as t}from"./chunk-7K4AC7BM.mjs";import"./chunk-PC6NMI3O.mjs";export{f as Blog,o as Blog_A,r as Blog_B,e as Blog_C,t as Blog_D};
package/dist/types.d.ts CHANGED
@@ -85,6 +85,7 @@ export interface BlogPost extends SanityBody {
85
85
  excerpt?: string | null;
86
86
  link?: string | null;
87
87
  mainImage?: string | null;
88
+ alt?: string | null;
88
89
  publishedAt?: string;
89
90
  seo?: Seo | null;
90
91
  slug?: SanitySlug | null;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stackshift-ui/blog",
3
3
  "description": "",
4
- "version": "6.0.6",
4
+ "version": "6.0.7-beta.0",
5
5
  "private": false,
6
6
  "sideEffects": false,
7
7
  "main": "./dist/index.js",
@@ -35,19 +35,19 @@
35
35
  },
36
36
  "dependencies": {
37
37
  "classnames": "^2.5.1",
38
- "@stackshift-ui/container": "6.0.3",
38
+ "@stackshift-ui/badge": "6.0.3",
39
39
  "@stackshift-ui/button": "6.0.3",
40
+ "@stackshift-ui/card": "6.0.3",
41
+ "@stackshift-ui/container": "6.0.3",
40
42
  "@stackshift-ui/flex": "6.0.3",
41
- "@stackshift-ui/link": "6.0.3",
42
43
  "@stackshift-ui/heading": "6.0.3",
43
- "@stackshift-ui/scripts": "6.0.2",
44
- "@stackshift-ui/section": "6.0.3",
44
+ "@stackshift-ui/image": "6.0.3",
45
45
  "@stackshift-ui/input": "6.0.4",
46
+ "@stackshift-ui/link": "6.0.3",
47
+ "@stackshift-ui/section": "6.0.3",
46
48
  "@stackshift-ui/system": "6.0.3",
47
- "@stackshift-ui/text": "6.0.3",
48
- "@stackshift-ui/image": "6.0.3",
49
- "@stackshift-ui/badge": "6.0.3",
50
- "@stackshift-ui/card": "6.0.3"
49
+ "@stackshift-ui/scripts": "6.0.2",
50
+ "@stackshift-ui/text": "6.0.3"
51
51
  },
52
52
  "peerDependencies": {
53
53
  "@stackshift-ui/system": ">=0.0.0",
package/src/blog.tsx CHANGED
@@ -23,7 +23,7 @@ export const Blog: React.FC<SectionsProps> = ({ data }) => {
23
23
  const props = {
24
24
  subtitle: data?.variants?.subtitle ?? undefined,
25
25
  title: data?.variants?.title ?? undefined,
26
- posts: (data?.variants?.posts || data?.variants?.blogPosts) ?? undefined,
26
+ posts: data?.variants?.posts ?? undefined,
27
27
  primaryButton: data?.variants?.primaryButton ?? undefined,
28
28
  };
29
29
  return Variant ? <Variant {...props} /> : null;
package/src/blog_a.tsx CHANGED
@@ -67,18 +67,18 @@ function BlogPosts({ posts }: { posts?: BlogPost[] }) {
67
67
  );
68
68
  }
69
69
 
70
- function BlogItem({ post }: { post?: BlogPost }) {
70
+ function BlogItem({ post, key }: { post?: BlogPost; key: number }) {
71
71
  return (
72
72
  <div className="relative w-full h-64 rounded">
73
73
  {post?.mainImage ? (
74
74
  <Image
75
- className="relative object-cover w-full h-full overflow-hidden rounded-global"
75
+ className="relative object-cover w-full h-full overflow-hidden rounded-md"
76
76
  src={`${post?.mainImage}`}
77
- alt={`blog-variantA-image`}
77
+ alt={post?.alt ?? `blog-variantA-image-${key}`}
78
78
  sizes="(min-width: 1540px) 740px, (min-width: 1280px) 612px, (min-width: 1040px) 484px, (min-width: 780px) 736px, (min-width: 680px) 608px, calc(94.44vw - 15px)"
79
79
  />
80
80
  ) : null}
81
- <div className="absolute inset-0 bg-gray-900 rounded-global opacity-75" />
81
+ <div className="absolute inset-0 bg-gray-900 rounded-md opacity-75" />
82
82
  <div className="absolute inset-0 flex flex-col items-start p-6">
83
83
  {post?.categories ? (
84
84
  <div className="absolute flex left-5 top-5">
package/src/blog_b.tsx CHANGED
@@ -58,7 +58,7 @@ function BlogPosts({
58
58
  <Flex wrap className="w-full lg:w-[45%]" gap={4}>
59
59
  {posts?.slice(count + 1, blogsPerPage).map((post, key) => (
60
60
  <div className="w-full lg:basis-[45%]" key={key}>
61
- <BlogItem post={post} size="sm" />
61
+ <BlogItem post={post} size="sm" key={key} />
62
62
  </div>
63
63
  ))}
64
64
  </Flex>
@@ -66,13 +66,13 @@ function BlogPosts({
66
66
  );
67
67
  }
68
68
 
69
- function BlogItem({ post, size }: { post: BlogPost; size?: string }) {
69
+ function BlogItem({ post, size, key }: { post: BlogPost; size?: string; key: number }) {
70
70
  const breakpoints = useMediaQuery("1024");
71
71
 
72
72
  return (
73
- <div className="overflow-hidden rounded-global shadow">
73
+ <div className="overflow-hidden rounded-md shadow">
74
74
  {post?.mainImage ? (
75
- <ImageContainer post={post} size={size} breakpoints={breakpoints} />
75
+ <ImageContainer post={post} size={size} breakpoints={breakpoints} key={key} />
76
76
  ) : null}
77
77
  <div className="p-6 bg-white flex flex-col justify-between" style={{ height: "295px" }}>
78
78
  <div>
@@ -109,10 +109,12 @@ function ImageContainer({
109
109
  post,
110
110
  size,
111
111
  breakpoints,
112
+ key,
112
113
  }: {
113
114
  post: BlogPost;
114
115
  size?: string;
115
116
  breakpoints: boolean;
117
+ key: number;
116
118
  }) {
117
119
  return (
118
120
  <>
@@ -124,12 +126,12 @@ function ImageContainer({
124
126
  style={{ width: "100%", height: "auto", objectFit: "cover" }}
125
127
  width={271}
126
128
  height={248}
127
- alt={`blog-variantB-image-${post.title}`}
129
+ alt={post?.mainImage ?? `blog-variantB-image-${key}`}
128
130
  />
129
131
  ) : (
130
132
  <div className={`${size === "lg" ? "h-[44.5rem]" : "h-[12.5rem]"}`}>
131
133
  <Image
132
- className="object-cover w-full overflow-hidden rounded-t-global"
134
+ className="object-cover w-full overflow-hidden rounded-t-md"
133
135
  src={`${post.mainImage}`}
134
136
  sizes="100vw"
135
137
  style={{ width: "100%", height: "100%", objectFit: "cover" }}
package/src/blog_c.tsx CHANGED
@@ -48,7 +48,7 @@ function BlogPosts({ posts, blogsPerPage }: { posts?: BlogPost[]; blogsPerPage?:
48
48
  return (
49
49
  <div>
50
50
  {posts?.slice(0, blogsPerPage)?.map((post, key) => (
51
- <div className="flex flex-wrap mb-8 overflow-hidden rounded-global shadow" key={key}>
51
+ <div className="flex flex-wrap mb-8 overflow-hidden rounded-md shadow" key={key}>
52
52
  <BlogItem
53
53
  post={post}
54
54
  className={`${key % 2 === 0 ? "flex-row" : "flex-row-reverse"}`}
@@ -60,7 +60,7 @@ function BlogPosts({ posts, blogsPerPage }: { posts?: BlogPost[]; blogsPerPage?:
60
60
  );
61
61
  }
62
62
 
63
- function BlogItem({ post, className }: { post: BlogPost; className?: string }) {
63
+ function BlogItem({ post, className, key }: { key: number; post: BlogPost; className?: string }) {
64
64
  const breakpoints = useMediaQuery("1100");
65
65
  const maxExcerptLength = breakpoints ? 70 : 200;
66
66
 
@@ -73,7 +73,7 @@ function BlogItem({ post, className }: { post: BlogPost; className?: string }) {
73
73
  sizes="100vw"
74
74
  width={554}
75
75
  height={416}
76
- alt={`blog-variantC-image-`}
76
+ alt={post?.alt ?? `blog-variantC-image-${key}`}
77
77
  />
78
78
  )}
79
79
  <div className="w-full px-6 py-6 rounded-r lg:w-1/2 lg:pt-10">
package/src/blog_d.tsx CHANGED
@@ -140,7 +140,7 @@ function SearchInput({
140
140
  <Input
141
141
  type="text"
142
142
  aria-label="Search, find any question you want to ask..."
143
- className="w-full bg-white rounded-global font-heading focus:border-gray-500 focus:outline-none"
143
+ className="w-full bg-white border rounded-global font-heading focus:border-gray-500 focus:outline-none"
144
144
  placeholder="Search posts..."
145
145
  onChange={handleSearchChange}
146
146
  />
@@ -148,7 +148,7 @@ function SearchInput({
148
148
  as="button"
149
149
  variant="unstyled"
150
150
  ariaLabel="Search button"
151
- className="absolute right-0 top-0 h-full px-3 bg-white rounded-global text-primary flex items-center">
151
+ className="absolute right-0 top-0 h-full px-3 bg-white border-r rounded-global text-primary flex items-center">
152
152
  <svg
153
153
  className="w-6 h-6"
154
154
  fill="none"
@@ -177,7 +177,7 @@ function CategoryTab({
177
177
  setActiveTab: (category: string) => void;
178
178
  }) {
179
179
  return (
180
- <Card className="w-full px-3 mb-8 bg-white lg:mb-0 lg:w-1/4" borderRadius="global">
180
+ <Card className="w-full px-3 mb-8 bg-white lg:mb-0 lg:w-1/4" borderRadius="md">
181
181
  {categories && (
182
182
  <React.Fragment>
183
183
  <Heading
@@ -261,6 +261,7 @@ function PostItems({
261
261
 
262
262
  function PostItem({ post }: { post?: BlogPost }) {
263
263
  if (!post) return null;
264
+
264
265
  return (
265
266
  <Flex wrap className="mb-8 lg:mb-6 bg-white shadow rounded-lg">
266
267
  <div className="w-full h-full mb-4 lg:mb-0 lg:w-1/4">
@@ -270,7 +271,7 @@ function PostItem({ post }: { post?: BlogPost }) {
270
271
  sizes="100vw"
271
272
  width={188}
272
273
  height={129}
273
- alt={`blog-variantD-image-`}
274
+ alt={post?.alt ?? `blog-variantD-image-${post?.title}`}
274
275
  />
275
276
  </div>
276
277
  <div className="w-full px-3 py-2 lg:w-3/4">
@@ -336,7 +337,7 @@ function Pagination({ blogsPerPage, totalBlogs, paginate, currentPage }: Paginat
336
337
  currentPage === number
337
338
  ? "bg-secondary-foreground text-gray-500"
338
339
  : "bg-white hover:bg-secondary-foreground hover:text-gray-500"
339
- } text-primary font-medium py-2 px-4 border border-primary rounded focus:outline-none`}
340
+ } text-primary font-medium py-2 px-4 border border-primary rounded-global focus:outline-none`}
340
341
  onClick={() => paginate(number)}>
341
342
  {number}
342
343
  </Button>
package/src/types.ts CHANGED
@@ -97,6 +97,7 @@ export interface BlogPost extends SanityBody {
97
97
  excerpt?: string | null;
98
98
  link?: string | null;
99
99
  mainImage?: string | null;
100
+ alt?: string | null;
100
101
  publishedAt?: string;
101
102
  seo?: Seo | null;
102
103
  slug?: SanitySlug | null;
@@ -1 +0,0 @@
1
- import{lazy as i}from"react";import{jsx as b}from"react/jsx-runtime";var g={variant_a:i(()=>import("./blog_a.mjs")),variant_b:i(()=>import("./blog_b.mjs")),variant_c:i(()=>import("./blog_c.mjs")),variant_d:i(()=>import("./blog_d.mjs"))},y="Blog",B=({data:o})=>{var s,t,e,p,l,u,m,v,c;let n=o==null?void 0:o.variant,r=n&&g[n],f={subtitle:(t=(s=o==null?void 0:o.variants)==null?void 0:s.subtitle)!=null?t:void 0,title:(p=(e=o==null?void 0:o.variants)==null?void 0:e.title)!=null?p:void 0,posts:(m=((l=o==null?void 0:o.variants)==null?void 0:l.posts)||((u=o==null?void 0:o.variants)==null?void 0:u.blogPosts))!=null?m:void 0,primaryButton:(c=(v=o==null?void 0:o.variants)==null?void 0:v.primaryButton)!=null?c:void 0};return r?b(r,{...f}):null};B.displayName=y;export{B as a};
@@ -1 +0,0 @@
1
- import{a as o}from"./chunk-TMLYY2AQ.mjs";import{a as m}from"./chunk-PC6NMI3O.mjs";import{Button as u}from"@stackshift-ui/button";import{Container as f}from"@stackshift-ui/container";import{Flex as c}from"@stackshift-ui/flex";import{Heading as b}from"@stackshift-ui/heading";import{Image as d}from"@stackshift-ui/image";import{Link as h}from"@stackshift-ui/link";import{Section as v}from"@stackshift-ui/section";import{Text as g}from"@stackshift-ui/text";import{Fragment as z,jsx as l,jsxs as t}from"react/jsx-runtime";function w({subtitle:e,title:i,posts:a,primaryButton:n}){return l(v,{className:"py-20 bg-background",children:t(f,{maxWidth:1280,children:[l(x,{subtitle:e,title:i}),l(P,{posts:a,count:0,blogsPerPage:5}),l(k,{primaryButton:n})]})})}function x({subtitle:e,title:i}){return t("div",{className:"w-full mb-16 text-center",children:[e?l(g,{weight:"bold",className:"text-secondary",children:e}):null,i?l(b,{fontSize:"3xl",children:i}):null]})}function P({posts:e,count:i,blogsPerPage:a}){return t(c,{wrap:!0,justify:"center",className:"mb-16",gap:4,children:[l("div",{className:"w-full lg:w-[45%]",children:e==null?void 0:e.slice(i,i+1).map((n,r)=>l(s,{size:"lg",post:n},r))}),l(c,{wrap:!0,className:"w-full lg:w-[45%]",gap:4,children:e==null?void 0:e.slice(i+1,a).map((n,r)=>l("div",{className:"w-full lg:basis-[45%]",children:l(s,{post:n,size:"sm"})},r))})]})}function s({post:e,size:i}){let a=o("1024");return t("div",{className:"overflow-hidden rounded-global shadow",children:[e!=null&&e.mainImage?l(N,{post:e,size:i,breakpoints:a}):null,t("div",{className:"p-6 bg-white flex flex-col justify-between",style:{height:"295px"},children:[t("div",{children:[e!=null&&e.publishedAt?l(g,{muted:!0,className:"text-sm",children:m(new Date(e.publishedAt)," dd MMM, yyyy")}):null,e!=null&&e.title?l(b,{type:"h4",className:"my-2",children:e.title.length>25?`${e.title.substring(0,25)}...`:e.title}):null,e!=null&&e.excerpt?l(g,{muted:!0,className:"mb-6 text-justify",children:e.excerpt.length>41?`${e.excerpt.substring(0,41)}...`:e.excerpt}):null]}),e!=null&&e.link?l(h,{"aria-label":"View Blog Post",className:"font-bold text-primary hover:text-secondary",href:`/${e==null?void 0:e.link}`,children:"View Blog Post"}):null]})]})}function N({post:e,size:i,breakpoints:a}){return l(z,{children:a?l(d,{className:"object-cover w-full overflow-hidden",src:`${e.mainImage}`,sizes:"100vw",style:{width:"100%",height:"auto",objectFit:"cover"},width:271,height:248,alt:`blog-variantB-image-${e.title}`}):l("div",{className:`${i==="lg"?"h-[44.5rem]":"h-[12.5rem]"}`,children:l(d,{className:"object-cover w-full overflow-hidden rounded-t-global",src:`${e.mainImage}`,sizes:"100vw",style:{width:"100%",height:"100%",objectFit:"cover"},width:271,height:248,alt:`blog-variantB-image-${e.title}`})})})}function k({primaryButton:e}){return e!=null&&e.label?l("div",{className:"text-center",children:l(u,{as:"link",link:e,ariaLabel:e==null?void 0:e.label,children:e==null?void 0:e.label})}):null}export{w as a};
@@ -1 +0,0 @@
1
- import{a as v}from"./chunk-TMLYY2AQ.mjs";import{a as h}from"./chunk-PC6NMI3O.mjs";import{Badge as T}from"@stackshift-ui/badge";import{Button as F}from"@stackshift-ui/button";import{Container as L}from"@stackshift-ui/container";import{Flex as c}from"@stackshift-ui/flex";import{Heading as t}from"@stackshift-ui/heading";import{Image as y}from"@stackshift-ui/image";import{Link as C}from"@stackshift-ui/link";import{Section as I}from"@stackshift-ui/section";import{Text as d}from"@stackshift-ui/text";import M from"react";import{Fragment as B,jsx as l,jsxs as m}from"react/jsx-runtime";function R({subtitle:e,title:a,posts:g,primaryButton:i}){return l(I,{className:"py-20 bg-background",children:m(L,{maxWidth:1280,children:[m(c,{align:"center",justify:"between",className:"flex-col mb-16 md:flex-row",gap:4,children:[l(S,{subtitle:e,title:a}),l(P,{primaryButton:i})]}),l($,{posts:g,blogsPerPage:3}),l(P,{primaryButton:i})]})})}function S({subtitle:e,title:a}){return m("div",{className:"text-center md:text-left",children:[e?l(d,{weight:"bold",className:"text-primary",children:e}):null,a?l(t,{fontSize:"3xl",children:a}):null]})}function $({posts:e,blogsPerPage:a}){var g;return e?l("div",{children:(g=e==null?void 0:e.slice(0,a))==null?void 0:g.map((i,r)=>l("div",{className:"flex flex-wrap mb-8 overflow-hidden rounded-global shadow",children:l(A,{post:i,className:`${r%2===0?"flex-row":"flex-row-reverse"}`},r)},r))}):null}function A({post:e,className:a}){var r,b,x,u,w,N;let i=v("1100")?70:200;return m(c,{wrap:!0,className:`bg-white overflow-hidden rounded-lg shadow w-full ${a}`,children:[(e==null?void 0:e.mainImage)&&l(y,{className:"object-cover w-full h-auto rounded-l lg:w-1/2",src:`${e==null?void 0:e.mainImage}`,sizes:"100vw",width:554,height:416,alt:"blog-variantC-image-"}),m("div",{className:"w-full px-6 py-6 rounded-r lg:w-1/2 lg:pt-10",children:[l(c,{gap:2,children:(e==null?void 0:e.categories)&&((r=e==null?void 0:e.categories)==null?void 0:r.map((n,f)=>l(T,{className:" bg-secondary-foreground text-primary",children:n==null?void 0:n.title},f)))}),(e==null?void 0:e.publishedAt)&&l(d,{muted:!0,className:"m-1",children:h(new Date(e==null?void 0:e.publishedAt)," dd MMM, yyyy")}),(e==null?void 0:e.title)&&l(t,{className:"my-4",type:"h3",children:((b=e==null?void 0:e.title)==null?void 0:b.length)>40?((x=e==null?void 0:e.title)==null?void 0:x.substring(0,40))+"...":e==null?void 0:e.title}),(e==null?void 0:e.authors)&&m("div",{className:"flex mb-10 flex-wrap",children:[l("span",{className:"italic text-primary",children:"By\xA0"}),(u=e==null?void 0:e.authors)==null?void 0:u.map((n,f,{length:k})=>m(B,{children:[l(d,{className:"italic text-primary",children:n==null?void 0:n.name}),f+1!==k?l("span",{children:"\xA0,\xA0"}):null]}))]}),(e==null?void 0:e.excerpt)&&l(d,{muted:!0,className:"mb-6 leading-loose text-justify",children:((w=e==null?void 0:e.excerpt)==null?void 0:w.length)>i?((N=e==null?void 0:e.excerpt)==null?void 0:N.substring(0,i))+"...":e==null?void 0:e.excerpt}),(e==null?void 0:e.link)&&l(C,{"aria-label":"View Blog Post",className:"font-bold text-primary hover:text-primary-foreground",href:`/${e==null?void 0:e.link}`,children:"View Blog Post"})]})]})}function P({primaryButton:e}){return e!=null&&e.label?l(M.Fragment,{children:l(F,{as:"link",link:e,ariaLabel:e==null?void 0:e.label,children:e==null?void 0:e.label})}):null}export{R as a};
@@ -1 +0,0 @@
1
- import{a as t}from"./chunk-PC6NMI3O.mjs";import{Button as b}from"@stackshift-ui/button";import{Container as v}from"@stackshift-ui/container";import{Flex as x}from"@stackshift-ui/flex";import{Heading as w}from"@stackshift-ui/heading";import{Image as h}from"@stackshift-ui/image";import{Link as N}from"@stackshift-ui/link";import{Section as o}from"@stackshift-ui/section";import{Text as k}from"@stackshift-ui/text";import{jsx as l,jsxs as d}from"react/jsx-runtime";function P({subtitle:e,title:i,posts:a,primaryButton:n}){return l(o,{className:"py-20 bg-background",children:d(v,{maxWidth:1280,children:[l(y,{subtitle:e,title:i}),l(A,{posts:a}),l(L,{primaryButton:n})]})})}function y({subtitle:e,title:i}){return d("div",{className:"mb-16 text-center",children:[e?l(k,{weight:"bold",className:"text-secondary",children:e}):null,i?l(w,{fontSize:"3xl",children:i}):null]})}function A({posts:e}){var n,c,g,u;if(!e)return null;let i=6,a=0;return d(x,{gap:4,className:"flex-col lg:flex-row",children:[d("div",{className:"w-full space-y-5 lg:w-1/2",children:[(n=e==null?void 0:e.slice(a,a+1))==null?void 0:n.map((m,r)=>l(f,{post:m},r)),l(x,{gap:4,className:"flex-col lg:flex-row",children:(c=e==null?void 0:e.slice(a+1,a+3))==null?void 0:c.map((m,r)=>l(f,{post:m},r))})]}),d("div",{className:"w-full space-y-5 lg:w-1/2",children:[l(x,{gap:4,className:"flex-col lg:flex-row",children:(g=e==null?void 0:e.slice(a+3,a+5))==null?void 0:g.map((m,r)=>l(f,{post:m},r))}),(u=e==null?void 0:e.slice(a+5,i))==null?void 0:u.map((m,r)=>l(f,{post:m},r))]})]})}function f({post:e}){var i,a;return d("div",{className:"relative w-full h-64 rounded",children:[e!=null&&e.mainImage?l(h,{className:"relative object-cover w-full h-full overflow-hidden rounded-global",src:`${e==null?void 0:e.mainImage}`,alt:"blog-variantA-image",sizes:"(min-width: 1540px) 740px, (min-width: 1280px) 612px, (min-width: 1040px) 484px, (min-width: 780px) 736px, (min-width: 680px) 608px, calc(94.44vw - 15px)"}):null,l("div",{className:"absolute inset-0 bg-gray-900 rounded-global opacity-75"}),d("div",{className:"absolute inset-0 flex flex-col items-start p-6",children:[e!=null&&e.categories?l("div",{className:"absolute flex left-5 top-5",children:(i=e==null?void 0:e.categories)==null?void 0:i.map((n,c)=>l("span",{className:"px-3 py-1 mb-auto mr-3 text-sm font-bold uppercase bg-white rounded-full text-primary",children:n==null?void 0:n.title},c))}):null,l("span",{className:"mt-auto text-sm text-gray-500",children:e!=null&&e.publishedAt?t(new Date(e==null?void 0:e.publishedAt),"dd MMM, yyyy"):""}),e!=null&&e.title?l(N,{className:"text-lg font-bold text-white transform hover:scale-110 hover:text-secondary motion-reduce:transform-none",href:`/${e==null?void 0:e.link}`,children:((a=e==null?void 0:e.title)==null?void 0:a.length)>40?(e==null?void 0:e.title.substring(0,40))+"...":e==null?void 0:e.title}):null]})]})}function L({primaryButton:e}){return e!=null&&e.label?l("div",{className:"mt-10 text-center",children:l(b,{as:"link",link:e,ariaLabel:e==null?void 0:e.label,children:e==null?void 0:e.label})}):null}export{P as a};
@@ -1 +0,0 @@
1
- import{a as N}from"./chunk-PC6NMI3O.mjs";import{Button as y}from"@stackshift-ui/button";import{Card as I}from"@stackshift-ui/card";import{Container as M}from"@stackshift-ui/container";import{Flex as x}from"@stackshift-ui/flex";import{Heading as C}from"@stackshift-ui/heading";import{Image as F}from"@stackshift-ui/image";import{Input as $}from"@stackshift-ui/input";import{Link as E}from"@stackshift-ui/link";import{Section as H}from"@stackshift-ui/section";import{Text as v}from"@stackshift-ui/text";import o from"react";import{jsx as n,jsxs as c}from"react/jsx-runtime";function R({subtitle:e,title:t,posts:i}){let[l,u]=o.useState("All"),[r,b]=o.useState(1),[w,k]=o.useState(""),f=6;o.useEffect(()=>{b(1)},[l]);let h=(i!=null?i:[]).flatMap(a=>{var g;return((g=a==null?void 0:a.categories)!=null?g:[]).map(d=>({category:d==null?void 0:d.title,title:a==null?void 0:a.title,slug:a==null?void 0:a.slug,excerpt:a==null?void 0:a.excerpt,publishedAt:a==null?void 0:a.publishedAt,mainImage:a==null?void 0:a.mainImage,authors:a==null?void 0:a.authors}))}),B=h==null?void 0:h.reduce((a,g)=>{let d=g==null?void 0:g.category;return a.indexOf(d)===-1&&a.push(d),a},[]),m=l==="All"?i==null?void 0:i.filter(a=>{var g;return(g=a==null?void 0:a.title)==null?void 0:g.toLowerCase().includes(w.toLowerCase())}):h.filter(a=>{var g;return(a==null?void 0:a.category)===l&&((g=a==null?void 0:a.title)==null?void 0:g.toLowerCase().includes(w.toLowerCase()))}),s=r*f,S=s-f,A=m==null?void 0:m.slice(S,s),L=a=>b(a);return n(H,{className:"py-20 bg-background",children:c(M,{maxWidth:1280,children:[n(D,{subtitle:e,title:t}),n(O,{handleSearchChange:a=>{k(a.target.value),u("All"),b(1)}}),c(x,{wrap:!0,children:[n(j,{categories:B,activeTab:l,setActiveTab:u}),(m==null?void 0:m.length)===0?n(z,{}):n(Q,{currentPosts:A,activeTab:l,blogsPerPage:f})]}),n(W,{blogsPerPage:f,totalBlogs:m==null?void 0:m.length,paginate:L,currentPage:r})]})})}function z({message:e="No post available."}){return n("div",{className:"w-full px-3 lg:w-3/4 font-medium text-lg",children:e})}function D({subtitle:e,title:t}){return c("div",{className:"w-full mb-16",children:[e?n(v,{weight:"bold",className:"text-secondary",children:e}):null,t?n(C,{fontSize:"3xl",children:t}):null]})}function O({handleSearchChange:e}){return c("div",{className:"relative mb-5 w-full lg:w-1/4",children:[n($,{type:"text","aria-label":"Search, find any question you want to ask...",className:"w-full bg-white rounded-global font-heading focus:border-gray-500 focus:outline-none",placeholder:"Search posts...",onChange:e}),n(y,{as:"button",variant:"unstyled",ariaLabel:"Search button",className:"absolute right-0 top-0 h-full px-3 bg-white rounded-global text-primary flex items-center",children:n("svg",{className:"w-6 h-6",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:n("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"})})})]})}function j({categories:e,activeTab:t,setActiveTab:i}){return n(I,{className:"w-full px-3 mb-8 bg-white lg:mb-0 lg:w-1/4",borderRadius:"global",children:e&&c(o.Fragment,{children:[n(C,{type:"h3",muted:!0,weight:"bold",className:"mb-4 text-base uppercase lg:text-base",children:"Topics"}),c("ul",{children:[(e==null?void 0:e.length)>1&&n(P,{activeTab:t,setActiveTab:i,category:"All"}),e==null?void 0:e.map((l,u)=>n(P,{activeTab:t,setActiveTab:i,category:l},u))]})]})})}function P({key:e,activeTab:t,setActiveTab:i,category:l}){return n("li",{children:n(y,{as:"button",variant:"unstyled",ariaLabel:"Show all blog posts",className:`mb-4 block ${l?"block":"hidden"} px-3 py-2 hover:bg-secondary-foreground focus:outline-none w-full text-left rounded ${t===l?"font-bold text-primary focus:outline-none bg-secondary-foreground":null}`,onClick:()=>i(l),children:l})},e)}function Q({currentPosts:e,activeTab:t,blogsPerPage:i}){var l;return e?n("div",{className:"w-full px-3 lg:w-3/4",children:t==="All"?e==null?void 0:e.map((u,r)=>n(T,{post:u},r)):(l=e==null?void 0:e.slice(0,i))==null?void 0:l.map((u,r)=>n(T,{post:u},r))}):null}function T({post:e}){var t,i,l;return e?c(x,{wrap:!0,className:"mb-8 lg:mb-6 bg-white shadow rounded-lg",children:[n("div",{className:"w-full h-full mb-4 lg:mb-0 lg:w-1/4",children:n(F,{className:"object-cover w-full h-full overflow-hidden rounded",src:`${e==null?void 0:e.mainImage}`,sizes:"100vw",width:188,height:129,alt:"blog-variantD-image-"})}),c("div",{className:"w-full px-3 py-2 lg:w-3/4",children:[(e==null?void 0:e.title)&&n(E,{"aria-label":e==null?void 0:e.title,className:"mb-1 text-2xl font-bold hover:text-secondary font-heading",href:`/${(t=e==null?void 0:e.link)!=null?t:"page-not-added"}`,children:(e==null?void 0:e.title.length)>25?((i=e==null?void 0:e.title)==null?void 0:i.substring(0,25))+"...":e==null?void 0:e.title}),c(x,{wrap:!0,align:"center",gap:1,className:"mb-2 text-sm",children:[e!=null&&e.authors?(l=e==null?void 0:e.authors)==null?void 0:l.map((u,r,{length:b})=>c(x,{children:[n(v,{className:"text-primary",children:u==null?void 0:u.name}),r+1!==b?n("span",{children:"\xA0,\xA0"}):null]},r)):null,e!=null&&e.publishedAt&&(e!=null&&e.authors)?n("span",{className:"mx-2 text-gray-500",children:"\u2022"}):null,e!=null&&e.publishedAt?n(v,{muted:!0,children:N(new Date(e==null?void 0:e.publishedAt)," dd MMM, yyyy")}):null]}),e!=null&&e.excerpt?n(v,{muted:!0,children:(e==null?void 0:e.excerpt.length)>60?(e==null?void 0:e.excerpt.substring(0,60))+"...":e==null?void 0:e.excerpt}):null]})]}):null}function W({blogsPerPage:e,totalBlogs:t,paginate:i,currentPage:l}){if(!e)return null;let u=[];for(let r=1;r<=Math.ceil(t/e);r++)u.push(r);return n("nav",{className:"mt-4","aria-label":"Pagination",children:n("ul",{className:"flex space-x-2 justify-end mr-5",children:u.map(r=>n(y,{variant:"unstyled",as:"button",ariaLabel:`Page ${r}`,className:`${l===r?"bg-secondary-foreground text-gray-500":"bg-white hover:bg-secondary-foreground hover:text-gray-500"} text-primary font-medium py-2 px-4 border border-primary rounded focus:outline-none`,onClick:()=>i(r),children:r},r))})})}export{R as a};