@stackshift-ui/blog 1.0.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/LICENSE ADDED
@@ -0,0 +1,373 @@
1
+ Mozilla Public License Version 2.0
2
+ ==================================
3
+
4
+ 1. Definitions
5
+ --------------
6
+
7
+ 1.1. "Contributor"
8
+ means each individual or legal entity that creates, contributes to
9
+ the creation of, or owns Covered Software.
10
+
11
+ 1.2. "Contributor Version"
12
+ means the combination of the Contributions of others (if any) used
13
+ by a Contributor and that particular Contributor's Contribution.
14
+
15
+ 1.3. "Contribution"
16
+ means Covered Software of a particular Contributor.
17
+
18
+ 1.4. "Covered Software"
19
+ means Source Code Form to which the initial Contributor has attached
20
+ the notice in Exhibit A, the Executable Form of such Source Code
21
+ Form, and Modifications of such Source Code Form, in each case
22
+ including portions thereof.
23
+
24
+ 1.5. "Incompatible With Secondary Licenses"
25
+ means
26
+
27
+ (a) that the initial Contributor has attached the notice described
28
+ in Exhibit B to the Covered Software; or
29
+
30
+ (b) that the Covered Software was made available under the terms of
31
+ version 1.1 or earlier of the License, but not also under the
32
+ terms of a Secondary License.
33
+
34
+ 1.6. "Executable Form"
35
+ means any form of the work other than Source Code Form.
36
+
37
+ 1.7. "Larger Work"
38
+ means a work that combines Covered Software with other material, in
39
+ a separate file or files, that is not Covered Software.
40
+
41
+ 1.8. "License"
42
+ means this document.
43
+
44
+ 1.9. "Licensable"
45
+ means having the right to grant, to the maximum extent possible,
46
+ whether at the time of the initial grant or subsequently, any and
47
+ all of the rights conveyed by this License.
48
+
49
+ 1.10. "Modifications"
50
+ means any of the following:
51
+
52
+ (a) any file in Source Code Form that results from an addition to,
53
+ deletion from, or modification of the contents of Covered
54
+ Software; or
55
+
56
+ (b) any new file in Source Code Form that contains any Covered
57
+ Software.
58
+
59
+ 1.11. "Patent Claims" of a Contributor
60
+ means any patent claim(s), including without limitation, method,
61
+ process, and apparatus claims, in any patent Licensable by such
62
+ Contributor that would be infringed, but for the grant of the
63
+ License, by the making, using, selling, offering for sale, having
64
+ made, import, or transfer of either its Contributions or its
65
+ Contributor Version.
66
+
67
+ 1.12. "Secondary License"
68
+ means either the GNU General Public License, Version 2.0, the GNU
69
+ Lesser General Public License, Version 2.1, the GNU Affero General
70
+ Public License, Version 3.0, or any later versions of those
71
+ licenses.
72
+
73
+ 1.13. "Source Code Form"
74
+ means the form of the work preferred for making modifications.
75
+
76
+ 1.14. "You" (or "Your")
77
+ means an individual or a legal entity exercising rights under this
78
+ License. For legal entities, "You" includes any entity that
79
+ controls, is controlled by, or is under common control with You. For
80
+ purposes of this definition, "control" means (a) the power, direct
81
+ or indirect, to cause the direction or management of such entity,
82
+ whether by contract or otherwise, or (b) ownership of more than
83
+ fifty percent (50%) of the outstanding shares or beneficial
84
+ ownership of such entity.
85
+
86
+ 2. License Grants and Conditions
87
+ --------------------------------
88
+
89
+ 2.1. Grants
90
+
91
+ Each Contributor hereby grants You a world-wide, royalty-free,
92
+ non-exclusive license:
93
+
94
+ (a) under intellectual property rights (other than patent or trademark)
95
+ Licensable by such Contributor to use, reproduce, make available,
96
+ modify, display, perform, distribute, and otherwise exploit its
97
+ Contributions, either on an unmodified basis, with Modifications, or
98
+ as part of a Larger Work; and
99
+
100
+ (b) under Patent Claims of such Contributor to make, use, sell, offer
101
+ for sale, have made, import, and otherwise transfer either its
102
+ Contributions or its Contributor Version.
103
+
104
+ 2.2. Effective Date
105
+
106
+ The licenses granted in Section 2.1 with respect to any Contribution
107
+ become effective for each Contribution on the date the Contributor first
108
+ distributes such Contribution.
109
+
110
+ 2.3. Limitations on Grant Scope
111
+
112
+ The licenses granted in this Section 2 are the only rights granted under
113
+ this License. No additional rights or licenses will be implied from the
114
+ distribution or licensing of Covered Software under this License.
115
+ Notwithstanding Section 2.1(b) above, no patent license is granted by a
116
+ Contributor:
117
+
118
+ (a) for any code that a Contributor has removed from Covered Software;
119
+ or
120
+
121
+ (b) for infringements caused by: (i) Your and any other third party's
122
+ modifications of Covered Software, or (ii) the combination of its
123
+ Contributions with other software (except as part of its Contributor
124
+ Version); or
125
+
126
+ (c) under Patent Claims infringed by Covered Software in the absence of
127
+ its Contributions.
128
+
129
+ This License does not grant any rights in the trademarks, service marks,
130
+ or logos of any Contributor (except as may be necessary to comply with
131
+ the notice requirements in Section 3.4).
132
+
133
+ 2.4. Subsequent Licenses
134
+
135
+ No Contributor makes additional grants as a result of Your choice to
136
+ distribute the Covered Software under a subsequent version of this
137
+ License (see Section 10.2) or under the terms of a Secondary License (if
138
+ permitted under the terms of Section 3.3).
139
+
140
+ 2.5. Representation
141
+
142
+ Each Contributor represents that the Contributor believes its
143
+ Contributions are its original creation(s) or it has sufficient rights
144
+ to grant the rights to its Contributions conveyed by this License.
145
+
146
+ 2.6. Fair Use
147
+
148
+ This License is not intended to limit any rights You have under
149
+ applicable copyright doctrines of fair use, fair dealing, or other
150
+ equivalents.
151
+
152
+ 2.7. Conditions
153
+
154
+ Sections 3.1, 3.2, 3.3, and 3.4 are conditions of the licenses granted
155
+ in Section 2.1.
156
+
157
+ 3. Responsibilities
158
+ -------------------
159
+
160
+ 3.1. Distribution of Source Form
161
+
162
+ All distribution of Covered Software in Source Code Form, including any
163
+ Modifications that You create or to which You contribute, must be under
164
+ the terms of this License. You must inform recipients that the Source
165
+ Code Form of the Covered Software is governed by the terms of this
166
+ License, and how they can obtain a copy of this License. You may not
167
+ attempt to alter or restrict the recipients' rights in the Source Code
168
+ Form.
169
+
170
+ 3.2. Distribution of Executable Form
171
+
172
+ If You distribute Covered Software in Executable Form then:
173
+
174
+ (a) such Covered Software must also be made available in Source Code
175
+ Form, as described in Section 3.1, and You must inform recipients of
176
+ the Executable Form how they can obtain a copy of such Source Code
177
+ Form by reasonable means in a timely manner, at a charge no more
178
+ than the cost of distribution to the recipient; and
179
+
180
+ (b) You may distribute such Executable Form under the terms of this
181
+ License, or sublicense it under different terms, provided that the
182
+ license for the Executable Form does not attempt to limit or alter
183
+ the recipients' rights in the Source Code Form under this License.
184
+
185
+ 3.3. Distribution of a Larger Work
186
+
187
+ You may create and distribute a Larger Work under terms of Your choice,
188
+ provided that You also comply with the requirements of this License for
189
+ the Covered Software. If the Larger Work is a combination of Covered
190
+ Software with a work governed by one or more Secondary Licenses, and the
191
+ Covered Software is not Incompatible With Secondary Licenses, this
192
+ License permits You to additionally distribute such Covered Software
193
+ under the terms of such Secondary License(s), so that the recipient of
194
+ the Larger Work may, at their option, further distribute the Covered
195
+ Software under the terms of either this License or such Secondary
196
+ License(s).
197
+
198
+ 3.4. Notices
199
+
200
+ You may not remove or alter the substance of any license notices
201
+ (including copyright notices, patent notices, disclaimers of warranty,
202
+ or limitations of liability) contained within the Source Code Form of
203
+ the Covered Software, except that You may alter any license notices to
204
+ the extent required to remedy known factual inaccuracies.
205
+
206
+ 3.5. Application of Additional Terms
207
+
208
+ You may choose to offer, and to charge a fee for, warranty, support,
209
+ indemnity or liability obligations to one or more recipients of Covered
210
+ Software. However, You may do so only on Your own behalf, and not on
211
+ behalf of any Contributor. You must make it absolutely clear that any
212
+ such warranty, support, indemnity, or liability obligation is offered by
213
+ You alone, and You hereby agree to indemnify every Contributor for any
214
+ liability incurred by such Contributor as a result of warranty, support,
215
+ indemnity or liability terms You offer. You may include additional
216
+ disclaimers of warranty and limitations of liability specific to any
217
+ jurisdiction.
218
+
219
+ 4. Inability to Comply Due to Statute or Regulation
220
+ ---------------------------------------------------
221
+
222
+ If it is impossible for You to comply with any of the terms of this
223
+ License with respect to some or all of the Covered Software due to
224
+ statute, judicial order, or regulation then You must: (a) comply with
225
+ the terms of this License to the maximum extent possible; and (b)
226
+ describe the limitations and the code they affect. Such description must
227
+ be placed in a text file included with all distributions of the Covered
228
+ Software under this License. Except to the extent prohibited by statute
229
+ or regulation, such description must be sufficiently detailed for a
230
+ recipient of ordinary skill to be able to understand it.
231
+
232
+ 5. Termination
233
+ --------------
234
+
235
+ 5.1. The rights granted under this License will terminate automatically
236
+ if You fail to comply with any of its terms. However, if You become
237
+ compliant, then the rights granted under this License from a particular
238
+ Contributor are reinstated (a) provisionally, unless and until such
239
+ Contributor explicitly and finally terminates Your grants, and (b) on an
240
+ ongoing basis, if such Contributor fails to notify You of the
241
+ non-compliance by some reasonable means prior to 60 days after You have
242
+ come back into compliance. Moreover, Your grants from a particular
243
+ Contributor are reinstated on an ongoing basis if such Contributor
244
+ notifies You of the non-compliance by some reasonable means, this is the
245
+ first time You have received notice of non-compliance with this License
246
+ from such Contributor, and You become compliant prior to 30 days after
247
+ Your receipt of the notice.
248
+
249
+ 5.2. If You initiate litigation against any entity by asserting a patent
250
+ infringement claim (excluding declaratory judgment actions,
251
+ counter-claims, and cross-claims) alleging that a Contributor Version
252
+ directly or indirectly infringes any patent, then the rights granted to
253
+ You by any and all Contributors for the Covered Software under Section
254
+ 2.1 of this License shall terminate.
255
+
256
+ 5.3. In the event of termination under Sections 5.1 or 5.2 above, all
257
+ end user license agreements (excluding distributors and resellers) which
258
+ have been validly granted by You or Your distributors under this License
259
+ prior to termination shall survive termination.
260
+
261
+ ************************************************************************
262
+ * *
263
+ * 6. Disclaimer of Warranty *
264
+ * ------------------------- *
265
+ * *
266
+ * Covered Software is provided under this License on an "as is" *
267
+ * basis, without warranty of any kind, either expressed, implied, or *
268
+ * statutory, including, without limitation, warranties that the *
269
+ * Covered Software is free of defects, merchantable, fit for a *
270
+ * particular purpose or non-infringing. The entire risk as to the *
271
+ * quality and performance of the Covered Software is with You. *
272
+ * Should any Covered Software prove defective in any respect, You *
273
+ * (not any Contributor) assume the cost of any necessary servicing, *
274
+ * repair, or correction. This disclaimer of warranty constitutes an *
275
+ * essential part of this License. No use of any Covered Software is *
276
+ * authorized under this License except under this disclaimer. *
277
+ * *
278
+ ************************************************************************
279
+
280
+ ************************************************************************
281
+ * *
282
+ * 7. Limitation of Liability *
283
+ * -------------------------- *
284
+ * *
285
+ * Under no circumstances and under no legal theory, whether tort *
286
+ * (including negligence), contract, or otherwise, shall any *
287
+ * Contributor, or anyone who distributes Covered Software as *
288
+ * permitted above, be liable to You for any direct, indirect, *
289
+ * special, incidental, or consequential damages of any character *
290
+ * including, without limitation, damages for lost profits, loss of *
291
+ * goodwill, work stoppage, computer failure or malfunction, or any *
292
+ * and all other commercial damages or losses, even if such party *
293
+ * shall have been informed of the possibility of such damages. This *
294
+ * limitation of liability shall not apply to liability for death or *
295
+ * personal injury resulting from such party's negligence to the *
296
+ * extent applicable law prohibits such limitation. Some *
297
+ * jurisdictions do not allow the exclusion or limitation of *
298
+ * incidental or consequential damages, so this exclusion and *
299
+ * limitation may not apply to You. *
300
+ * *
301
+ ************************************************************************
302
+
303
+ 8. Litigation
304
+ -------------
305
+
306
+ Any litigation relating to this License may be brought only in the
307
+ courts of a jurisdiction where the defendant maintains its principal
308
+ place of business and such litigation shall be governed by laws of that
309
+ jurisdiction, without reference to its conflict-of-law provisions.
310
+ Nothing in this Section shall prevent a party's ability to bring
311
+ cross-claims or counter-claims.
312
+
313
+ 9. Miscellaneous
314
+ ----------------
315
+
316
+ This License represents the complete agreement concerning the subject
317
+ matter hereof. If any provision of this License is held to be
318
+ unenforceable, such provision shall be reformed only to the extent
319
+ necessary to make it enforceable. Any law or regulation which provides
320
+ that the language of a contract shall be construed against the drafter
321
+ shall not be used to construe this License against a Contributor.
322
+
323
+ 10. Versions of the License
324
+ ---------------------------
325
+
326
+ 10.1. New Versions
327
+
328
+ Mozilla Foundation is the license steward. Except as provided in Section
329
+ 10.3, no one other than the license steward has the right to modify or
330
+ publish new versions of this License. Each version will be given a
331
+ distinguishing version number.
332
+
333
+ 10.2. Effect of New Versions
334
+
335
+ You may distribute the Covered Software under the terms of the version
336
+ of the License under which You originally received the Covered Software,
337
+ or under the terms of any subsequent version published by the license
338
+ steward.
339
+
340
+ 10.3. Modified Versions
341
+
342
+ If you create software not governed by this License, and you want to
343
+ create a new license for such software, you may create and use a
344
+ modified version of this License if you rename the license and remove
345
+ any references to the name of the license steward (except to note that
346
+ such modified license differs from this License).
347
+
348
+ 10.4. Distributing Source Code Form that is Incompatible With Secondary
349
+ Licenses
350
+
351
+ If You choose to distribute Source Code Form that is Incompatible With
352
+ Secondary Licenses under the terms of this version of the License, the
353
+ notice described in Exhibit B of this License must be attached.
354
+
355
+ Exhibit A - Source Code Form License Notice
356
+ -------------------------------------------
357
+
358
+ This Source Code Form is subject to the terms of the Mozilla Public
359
+ License, v. 2.0. If a copy of the MPL was not distributed with this
360
+ file, You can obtain one at http://mozilla.org/MPL/2.0/.
361
+
362
+ If it is not possible or desirable to put the notice in a particular
363
+ file, then You may include the notice in a location (such as a LICENSE
364
+ file in a relevant directory) where a recipient would be likely to look
365
+ for such a notice.
366
+
367
+ You may add additional accurate notices of copyright ownership.
368
+
369
+ Exhibit B - "Incompatible With Secondary Licenses" Notice
370
+ ---------------------------------------------------------
371
+
372
+ This Source Code Form is "Incompatible With Secondary Licenses", as
373
+ defined by the Mozilla Public License, v. 2.0.
package/README.md ADDED
@@ -0,0 +1,22 @@
1
+ # @stackshift-ui/blog
2
+
3
+ Please refer to the [documentation](https://stackshift-ui.webriq.com/docs/components/blog) for more information.
4
+
5
+ ## Installation
6
+
7
+ ```sh
8
+ yarn add @stackshift-ui/blog
9
+ # or
10
+ npm i @stackshift-ui/blog
11
+ ```
12
+
13
+ ## Contribution
14
+
15
+ Yes please! See the
16
+ [contributing guidelines](https://github.com/stackshift-ui/components/master/CONTRIBUTING.md)
17
+ for details.
18
+
19
+ ## License
20
+
21
+ This project is licensed under the terms of the
22
+ [MIT license](https://github.com/stackshift-ui/components/master/LICENSE).
package/dist/blog.d.ts ADDED
@@ -0,0 +1,8 @@
1
+ import { SectionsProps, BlogPost, LabeledRoute } from "./types";
2
+ export interface BlogProps {
3
+ subtitle?: string;
4
+ title?: string;
5
+ posts?: BlogPost[];
6
+ primaryButton?: LabeledRoute;
7
+ }
8
+ export declare const Blog: React.FC<SectionsProps>;
package/dist/blog.js ADDED
@@ -0,0 +1 @@
1
+ "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})},Be=(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)):{},Be(t||!e||!e.__esModule?K(r,"default",{value:e,enumerable:!0}):r,e)),Qf=e=>Be(K({},"__esModule",{value:!0}),e);var Bf,Zu,ee,qe,qf,je,Ku,jf,Xf,em,he,q=a(()=>{"use strict";Bf=Math.pow(10,8)*24*60*60*1e3,Zu=-Bf,ee=6048e5,qe=864e5,qf=3600,je=qf*24,Ku=je*7,jf=je*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 Xe=a(()=>{"use strict"});var Ue=a(()=>{"use strict"});var Ve=a(()=>{"use strict"});var Ge=a(()=>{"use strict"});var Je=a(()=>{"use strict"});var Ze=a(()=>{"use strict"});var Ke=a(()=>{"use strict"});var et=a(()=>{"use strict"});var tt=a(()=>{"use strict"});function W(){return Uf}var Uf,j=a(()=>{"use strict";Uf={}});function N(e,t){var i,l,D,h,y,w,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:(w=(y=r.locale)==null?void 0:y.options)==null?void 0:w.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 rt=a(()=>{"use strict";I()});function at(e,...t){let r=p.bind(null,e||t.find(n=>typeof n=="object"));return t.map(r)}var nt=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 ot(e,t,r){let[n,o]=at(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)/qe)}var we=a(()=>{"use strict";rt();nt();q();ye()});function ft(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 ut=a(()=>{"use strict"});var mt=a(()=>{"use strict"});var ct=a(()=>{"use strict"});var it=a(()=>{"use strict"});var lt=a(()=>{"use strict"});var dt=a(()=>{"use strict"});var st=a(()=>{"use strict"});var xt=a(()=>{"use strict"});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"});function St(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}var Me=a(()=>{"use strict"});function vt(e){return!(!St(e)&&typeof e!="number"||isNaN(+b(e)))}var Oe=a(()=>{"use strict";Me();I()});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"});var Pt=a(()=>{"use strict"});var _t=a(()=>{"use strict"});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"});function fr(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 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"});var xr=a(()=>{"use strict"});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 Vf,br,Mr=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"}},br=(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 Or=a(()=>{"use strict"});var Gf,Jf,Zf,kr,pr=a(()=>{"use strict";Or();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}}"},kr={date:ae({formats:Gf,defaultWidth:"full"}),time:ae({formats:Jf,defaultWidth:"full"}),dateTime:ae({formats:Zf,defaultWidth:"full"})}});var Kf,Sr,vr=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"},Sr=(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 Ir=a(()=>{"use strict"});var eu,tu,ru,au,nu,ou,fu,Tr,Nr=a(()=>{"use strict";Ir();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:["ue","F","M","A","M","ue","ue","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","Zo","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"},Tr={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,y=>y.test(u)):uu(i,y=>y.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 Yr=a(()=>{"use strict"});function Fr(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 Wr=a(()=>{"use strict"});var cu,iu,lu,du,su,xu,hu,gu,Du,yu,wu,bu,Pr,_r=a(()=>{"use strict";Yr();Wr();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}},Pr={ordinalNumber:Fr({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,Cr=a(()=>{"use strict";Mr();pr();vr();Nr();_r();pe={code:"en-US",formatDistance:br,formatLong:kr,formatRelative:Sr,localize:Tr,match:Pr,options:{weekStartsOn:0,firstWeekContainsDate:1}}});var Hr=a(()=>{"use strict";Cr()});function Er(e,t){let r=b(e,t==null?void 0:t.in);return ot(r,fr(r))+1}var Se=a(()=>{"use strict";we();ke();I()});function $r(e,t){let r=b(e,t==null?void 0:t.in),n=+H(r)-+ft(r);return Math.round(n/ee)+1}var ve=a(()=>{"use strict";q();X();be();I()});function ne(e,t){var h,y,w,O,S,_,C,$;let r=b(e,t==null?void 0:t.in),n=r.getFullYear(),o=W(),f=($=(C=(O=(w=t==null?void 0:t.firstWeekContainsDate)!=null?w:(y=(h=t==null?void 0:t.locale)==null?void 0:h.options)==null?void 0:y.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 Lr(e,t){var i,l,D,h,y,w,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:(w=(y=r.locale)==null?void 0:y.options)==null?void 0:w.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 zr(e,t){let r=b(e,t==null?void 0:t.in),n=+N(r,t)-+Lr(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,Rr=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 Ar(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 Qr(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,Br=a(()=>{"use strict";Se();ve();re();Te();oe();Ne();Rr();A={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Ye={G:function(e,t,r){let n=e.getFullYear()>0?1:0;switch(t){case"G":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=zr(e,n);return t==="wo"?r.ordinalNumber(o,{unit:"week"}):x(o,t.length)},I:function(e,t,r){let n=$r(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=Er(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 Qr(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 Qr(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"+Ar(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"+Ar(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 qr,jr,Mu,Xr,Ur=a(()=>{"use strict";qr=(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"})}},jr=(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 qr(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}}",qr(n,t)).replace("{{time}}",jr(o,t))},Xr={p:jr,P:Mu}});function Vr(e){return Ou.test(e)}function Gr(e){return ku.test(e)}function Jr(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,Zr=a(()=>{"use strict";Ou=/^D+$/,ku=/^Y+$/,pu=["D","DD","YY","YYYY"]});function P(e,t,r){var h,y,w,O,S,_,C,$,c,M,T,Ee,$e,Le,ze,Re,Ae,Qe;let n=W(),o=(y=(h=r==null?void 0:r.locale)!=null?h:n.locale)!=null?y:pe,f=(M=(c=(_=(S=r==null?void 0:r.firstWeekContainsDate)!=null?S:(O=(w=r==null?void 0:r.locale)==null?void 0:w.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=(Qe=(Ae=(Le=($e=r==null?void 0:r.weekStartsOn)!=null?$e:(Ee=(T=r==null?void 0:r.locale)==null?void 0:T.options)==null?void 0:Ee.weekStartsOn)!=null?Le:n.weekStartsOn)!=null?Ae:(Re=(ze=n.locale)==null?void 0:ze.options)==null?void 0:Re.weekStartsOn)!=null?Qe:0,i=b(e,r==null?void 0:r.in);if(!vt(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=Xr[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)&&Gr(k)||!(r!=null&&r.useAdditionalDayOfYearTokens)&&Vr(k))&&Jr(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,Kr=a(()=>{"use strict";Hr();j();Br();Ur();Zr();Oe();I();vu=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Iu=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Tu=/^'([^]*?)'?$/,Nu=/''/g,Yu=/[a-zA-Z]/});var ea=a(()=>{"use strict"});var ta=a(()=>{"use strict"});var ra=a(()=>{"use strict"});var aa=a(()=>{"use strict"});var na=a(()=>{"use strict"});var oa=a(()=>{"use strict"});var fa=a(()=>{"use strict"});var ua=a(()=>{"use strict"});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 U=a(()=>{"use strict";Ve();Ke();Xe();tt();mt();et();ct();Ue();it();lt();dt();st();xt();Dt();yt();wt();bt();Mt();F();Ot();kt();It();we();Tt();Nt();Yt();Wt();Pt();_t();Ct();Ht();$t();Lt();zt();Bt();qt();jt();Xt();Ut();Vt();Gt();Jt();Zt();er();tr();rr();nr();ur();mr();Rt();cr();ir();dr();sr();xr();At();hr();gr();Dr();yr();lr();or();wr();Kr();ea();ta();ra();aa();na();oa();fa();ua();ma();ca();ia();la();da();sa();Se();xa();ga();Da();ya();wa();ba();ve();re();Ma();Oa();ka();pa();Sa();Ft();va();Ia();Ta();Te();Na();oe();Fa();Wa();Pa();_a();Ca();Ha();Ea();$a();La();za();Ra();Me();Aa();Qa();Ba();qa();ja();Qt();ha();Ka();en();tn();pt();an();on();fn();mn();cn();ln();sn();nn();xn();Ge();Je();hn();gn();Dn();yn();wn();bn();Mn();On();kn();pn();Sn();vn();Oe();In();Ze();Tn();Yn();Fn();Pn();_n();Ya();Cn();Wn();Hn();En();ht();$n();Ln();zn();Rn();gt();An();Qn();Bn();qn();jn();Xn();Un();Vn();Gn();Jn();Zn();Kn();eo();Za();to();ro();ao();no();oo();fo();uo();mo();co();io();lo();so();xo();ho();go();Do();yo();bo();Mo();Ga();Oo();ko();po();Ja();Va();ut();So();vo();wo();Io();To();Ua();No();Yo();ye();Fo();rn();X();be();un();ar();Kt();dn();Wo();Po();L();Ie();ke();_o();Ho();Eo();Nn();$o();Et();Lo();zo();Co();Ro();Ao();Qo();Bo();I();Xa();qo();jo();Xo();Uo()});var af={};B(af,{Blog_A:()=>rf,default:()=>rf});function rf({subtitle:e,title:t,posts:r,primaryButton:n}){return(0,g.jsx)(ef.Section,{className:"py-20 bg-background",children:(0,g.jsxs)(tf.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)(Jo.Text,{weight:"bold",className:"text-secondary",children:e}):null,t?(0,g.jsx)(Go.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)(Zo.Image,{className:"relative object-cover w-full h-full overflow-hidden rounded",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 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)(Ko.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)(Vo.Button,{as:"link",link:e,ariaLabel:e==null?void 0:e.label,children:e==null?void 0:e.label})}):null}var Vo,Go,Jo,Zo,Ko,ef,tf,ue,g,nf=a(()=>{"use strict";Vo=require("@stackshift-ui/button"),Go=require("@stackshift-ui/heading"),Jo=require("@stackshift-ui/text"),Zo=require("@stackshift-ui/image"),Ko=require("@stackshift-ui/link"),ef=require("@stackshift-ui/section"),tf=require("@stackshift-ui/container"),ue=require("@stackshift-ui/flex");U();g=require("react/jsx-runtime")});var me,ce,Fe=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:()=>lf,default:()=>lf});function lf({subtitle:e,title:t,posts:r,primaryButton:n}){return(0,s.jsx)(ef.Section,{className:"py-20 bg-background",children:(0,s.jsxs)(tf.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)(Jo.Text,{weight:"bold",className:"text-secondary",children:e}):null,t?(0,s.jsx)(Go.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)(of,{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)(of,{post:n,size:"sm"})},o))})]})}function of({post:e,size:t}){let r=ce("1024");return(0,s.jsxs)("div",{className:"overflow-hidden rounded 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)(Jo.Text,{muted:!0,className:"text-sm",children:P(new Date(e.publishedAt)," dd MMM, yyyy")}):null,e!=null&&e.title?(0,s.jsx)(Go.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)(Jo.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)(Ko.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)(Zo.Image,{className:"object-cover w-full overflow-hidden rounded-t",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)(Zo.Image,{className:"object-cover w-full overflow-hidden rounded-t",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)(ff.Button,{as:"link",link:e,ariaLabel:e==null?void 0:e.label,children:e==null?void 0:e.label})}):null}var ff,Go,Jo,Zo,Ko,ef,tf,ue,s,sf=a(()=>{"use strict";ff=require("@stackshift-ui/button");U();Fe();s=require("react/jsx-runtime")});var kf={};B(kf,{Blog_C:()=>Of,default:()=>Of});function Of({subtitle:e,title:t,posts:r,primaryButton:n}){return(0,d.jsx)(ef.Section,{className:"py-20 bg-background",children:(0,d.jsxs)(tf.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)(xf,{primaryButton:n})]}),(0,d.jsx)(zu,{posts:r,blogsPerPage:3}),(0,d.jsx)(xf,{primaryButton:n})]})})}function Lu({subtitle:e,title:t}){return(0,d.jsxs)("div",{className:"text-center md:text-left",children:[e?(0,d.jsx)(Jo.Text,{weight:"bold",className:"text-primary",children:e}):null,t?(0,d.jsx)(Go.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-lg 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)(Zo.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,y)=>(0,d.jsx)(gf.Badge,{className:" bg-secondary-foreground text-primary",children:h==null?void 0:h.title},y)))}),(e==null?void 0:e.publishedAt)&&(0,d.jsx)(Jo.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)(Go.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,y,{length:w})=>(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(Jo.Text,{className:"italic text-primary",children:h==null?void 0:h.name}),y+1!==w?(0,d.jsx)("span",{children:"\xA0,\xA0"}):null]}))]}),(e==null?void 0:e.excerpt)&&(0,d.jsx)(Jo.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)(Ko.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 xf({primaryButton:e}){return e!=null&&e.label?(0,d.jsx)(hf.default.Fragment,{children:(0,d.jsx)(Df.Button,{as:"link",link:e,ariaLabel:e==null?void 0:e.label,children:e==null?void 0:e.label})}):null}var hf,gf,Df,Go,Jo,Zo,Ko,ef,tf,ue,d,pf=a(()=>{"use strict";hf=xe(require("react"));U();gf=require("@stackshift-ui/badge"),Df=require("@stackshift-ui/button");Fe();d=require("react/jsx-runtime")});var _f={};B(_f,{Blog_D:()=>Pf,default:()=>Pf});function Pf({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}))}),y=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},[]),w=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,_=w==null?void 0:w.slice(S,O),C=c=>u(c);return(0,m.jsx)(ef.Section,{className:"py-20 bg-background",children:(0,m.jsxs)(tf.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:y,activeTab:n,setActiveTab:o}),(w==null?void 0:w.length)===0?(0,m.jsx)(Au,{}):(0,m.jsx)(ju,{currentPosts:_,activeTab:n,blogsPerPage:D})]}),(0,m.jsx)(Xu,{blogsPerPage:D,totalBlogs:w==null?void 0:w.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)(G.Text,{weight:"bold",className:"text-secondary",children:e}):null,t?(0,m.jsx)(Go.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)(Tf.Input,{type:"text","aria-label":"Search, find any question you want to ask...",className:"w-full bg-white rounded-l-lg font-heading focus:border-gray-500 focus:outline-none",placeholder:"Search posts...",onChange:e}),(0,m.jsx)(Df.Button,{as:"button",variant:"unstyled",ariaLabel:"Search button",className:"absolute right-0 top-0 h-full px-3 bg-white rounded-r-lg 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)(If.Card,{className:"w-full px-3 mb-8 bg-white lg:mb-0 lg:w-1/4",borderRadius:"lg",children:e&&(0,m.jsxs)(Q.default.Fragment,{children:[(0,m.jsx)(Go.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)(Sf,{activeTab:t,setActiveTab:r,category:"All"}),e==null?void 0:e.map((n,o)=>(0,m.jsx)(Sf,{activeTab:t,setActiveTab:r,category:n},o))]})]})})}function Sf({key:e,activeTab:t,setActiveTab:r,category:n}){return(0,m.jsx)("li",{children:(0,m.jsx)(Df.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)(vf,{post:o},f)):(n=e==null?void 0:e.slice(0,r))==null?void 0:n.map((o,f)=>(0,m.jsx)(vf,{post:o},f))}):null}function vf({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-fullmb-4 lg:mb-0 lg:w-1/4",children:(0,m.jsx)(Zo.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)(Ko.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)(G.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)(G.Text,{muted:!0,children:P(new Date(e==null?void 0:e.publishedAt)," dd MMM, yyyy")}):null]}),e!=null&&e.excerpt?(0,m.jsx)(G.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)(Df.Button,{variant:"unstyled",as:"button",ariaLabel:`Page ${f}`,className:`${n===f?"bg-secondary-foreground text-white":"bg-white hover:bg-secondary-foreground hover:text-white"} text-primary font-medium py-2 px-4 border border-primary rounded focus:outline-none`,onClick:()=>r(f),children:f},f))})})}var Q,G,Go,If,Df,Tf,Zo,Ko,ef,tf,ue,m,Cf=a(()=>{"use strict";Q=xe(require("react"));U();G=require("@stackshift-ui/text"),If=require("@stackshift-ui/card"),Tf=require("@stackshift-ui/input"),m=require("react/jsx-runtime")});var Gu={};B(Gu,{Blog:()=>Hf});module.exports=Qf(Gu);var Z=require("react"),Uu={variant_a:(0,Z.lazy)(()=>Promise.resolve().then(()=>(nf(),af))),variant_b:(0,Z.lazy)(()=>Promise.resolve().then(()=>(sf(),df))),variant_c:(0,Z.lazy)(()=>Promise.resolve().then(()=>(pf(),kf))),variant_d:(0,Z.lazy)(()=>Promise.resolve().then(()=>(Cf(),_f)))},Vu="Blog",Hf=({data:e})=>{var o,f,u,i,l,D,h,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:(D=(l=e==null?void 0:e.variants)==null?void 0:l.posts)!=null?D:void 0,primaryButton:(y=(h=e==null?void 0:e.variants)==null?void 0:h.primaryButton)!=null?y:void 0};return r?(0,m.jsx)(r,{...n}):null};Hf.displayName=Vu;0&&(module.exports={Blog});
package/dist/blog.mjs ADDED
@@ -0,0 +1 @@
1
+ import{a}from"./chunk-2T6RV7FA.mjs";export{a as Blog};
@@ -0,0 +1,3 @@
1
+ import { BlogProps } from ".";
2
+ export default function Blog_A({ subtitle, title, posts, primaryButton }: BlogProps): import("react/jsx-runtime").JSX.Element;
3
+ export { Blog_A };
package/dist/blog_a.js ADDED
@@ -0,0 +1 @@
1
+ "use strict";var Q=Object.defineProperty;var qe=Object.getOwnPropertyDescriptor;var Le=Object.getOwnPropertyNames;var He=Object.prototype.hasOwnProperty;var Qe=(e,t)=>{for(var r in t)Q(e,r,{get:t[r],enumerable:!0})},_e=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of Le(t))!He.call(e,a)&&a!==r&&Q(e,a,{get:()=>t[a],enumerable:!(n=qe(t,a))||n.enumerable});return e};var Xe=e=>_e(Q({},"__esModule",{value:!0}),e);var Nt={};Qe(Nt,{Blog_A:()=>Ee,default:()=>Ee});module.exports=Xe(Nt);var Se=require("@stackshift-ui/button"),Ye=require("@stackshift-ui/heading"),Te=require("@stackshift-ui/text"),Fe=require("@stackshift-ui/image"),Ie=require("@stackshift-ui/link"),Ne=require("@stackshift-ui/section"),Ce=require("@stackshift-ui/container"),L=require("@stackshift-ui/flex");var Ae=Math.pow(10,8)*24*60*60*1e3,Et=-Ae,I=6048e5,te=864e5;var Re=3600;var re=Re*24,qt=re*7,je=re*365.2425,Ge=je/12,Lt=Ge*3,_=Symbol.for("constructDateFrom");function g(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&_ in e?e[_](t):e instanceof Date?new e.constructor(t):new Date(t)}function m(e,t){return g(t||e,e)}var Be={};function M(){return Be}function O(e,t){var c,d,f,w,l,b,y,k;let r=M(),n=(k=(y=(w=(f=t==null?void 0:t.weekStartsOn)!=null?f:(d=(c=t==null?void 0:t.locale)==null?void 0:c.options)==null?void 0:d.weekStartsOn)!=null?w:r.weekStartsOn)!=null?y:(b=(l=r.locale)==null?void 0:l.options)==null?void 0:b.weekStartsOn)!=null?k:0,a=m(e,t==null?void 0:t.in),o=a.getDay(),i=(o<n?7:0)+o-n;return a.setDate(a.getDate()-i),a.setHours(0,0,0,0),a}function D(e,t){return O(e,{...t,weekStartsOn:1})}function N(e,t){let r=m(e,t==null?void 0:t.in),n=r.getFullYear(),a=g(r,0);a.setFullYear(n+1,0,4),a.setHours(0,0,0,0);let o=D(a),i=g(r,0);i.setFullYear(n,0,4),i.setHours(0,0,0,0);let c=D(i);return r.getTime()>=o.getTime()?n+1:r.getTime()>=c.getTime()?n:n-1}function X(e){let t=m(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}function ne(e,...t){let r=g.bind(null,e||t.find(n=>typeof n=="object"));return t.map(r)}function A(e,t){let r=m(e,t==null?void 0:t.in);return r.setHours(0,0,0,0),r}function ae(e,t,r){let[n,a]=ne(r==null?void 0:r.in,e,t),o=A(n),i=A(a),c=+o-X(o),d=+i-X(i);return Math.round((c-d)/te)}function oe(e,t){let r=N(e,t),n=g((t==null?void 0:t.in)||e,0);return n.setFullYear(r,0,4),n.setHours(0,0,0,0),D(n)}function ie(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function ce(e){return!(!ie(e)&&typeof e!="number"||isNaN(+m(e)))}function ue(e,t){let r=m(e,t==null?void 0:t.in);return r.setFullYear(r.getFullYear(),0,1),r.setHours(0,0,0,0),r}var Ve={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"}},se=(e,t,r)=>{let n,a=Ve[e];return typeof a=="string"?n=a:t===1?n=a.one:n=a.other.replace("{{count}}",t.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+n:n+" ago":n};function C(e){return(t={})=>{let r=t.width?String(t.width):e.defaultWidth;return e.formats[r]||e.formats[e.defaultWidth]}}var ze={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Je={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},$e={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},de={date:C({formats:ze,defaultWidth:"full"}),time:C({formats:Je,defaultWidth:"full"}),dateTime:C({formats:$e,defaultWidth:"full"})};var Ue={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},me=(e,t,r,n)=>Ue[e];function W(e){return(t,r)=>{let n=r!=null&&r.context?String(r.context):"standalone",a;if(n==="formatting"&&e.formattingValues){let i=e.defaultFormattingWidth||e.defaultWidth,c=r!=null&&r.width?String(r.width):i;a=e.formattingValues[c]||e.formattingValues[i]}else{let i=e.defaultWidth,c=r!=null&&r.width?String(r.width):e.defaultWidth;a=e.values[c]||e.values[i]}let o=e.argumentCallback?e.argumentCallback(t):t;return a[o]}}var Ze={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Ke={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},et={narrow:["J","F","M","A","M","J","J","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"]},tt={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"]},rt={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"}},nt={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"}},at=(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"},fe={ordinalNumber:at,era:W({values:Ze,defaultWidth:"wide"}),quarter:W({values:Ke,defaultWidth:"wide",argumentCallback:e=>e-1}),month:W({values:et,defaultWidth:"wide"}),day:W({values:tt,defaultWidth:"wide"}),dayPeriod:W({values:rt,defaultWidth:"wide",formattingValues:nt,defaultFormattingWidth:"wide"})};function p(e){return(t,r={})=>{let n=r.width,a=n&&e.matchPatterns[n]||e.matchPatterns[e.defaultMatchWidth],o=t.match(a);if(!o)return null;let i=o[0],c=n&&e.parsePatterns[n]||e.parsePatterns[e.defaultParseWidth],d=Array.isArray(c)?it(c,l=>l.test(i)):ot(c,l=>l.test(i)),f;f=e.valueCallback?e.valueCallback(d):d,f=r.valueCallback?r.valueCallback(f):f;let w=t.slice(i.length);return{value:f,rest:w}}}function ot(e,t){for(let r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&t(e[r]))return r}function it(e,t){for(let r=0;r<e.length;r++)if(t(e[r]))return r}function le(e){return(t,r={})=>{let n=t.match(e.matchPattern);if(!n)return null;let a=n[0],o=t.match(e.parsePattern);if(!o)return null;let i=e.valueCallback?e.valueCallback(o[0]):o[0];i=r.valueCallback?r.valueCallback(i):i;let c=t.slice(a.length);return{value:i,rest:c}}}var ct=/^(\d+)(th|st|nd|rd)?/i,ut=/\d+/i,st={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},dt={any:[/^b/i,/^(a|c)/i]},mt={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},ft={any:[/1/i,/2/i,/3/i,/4/i]},lt={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},ht={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]},gt={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},wt={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]},xt={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},bt={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}},he={ordinalNumber:le({matchPattern:ct,parsePattern:ut,valueCallback:e=>parseInt(e,10)}),era:p({matchPatterns:st,defaultMatchWidth:"wide",parsePatterns:dt,defaultParseWidth:"any"}),quarter:p({matchPatterns:mt,defaultMatchWidth:"wide",parsePatterns:ft,defaultParseWidth:"any",valueCallback:e=>e+1}),month:p({matchPatterns:lt,defaultMatchWidth:"wide",parsePatterns:ht,defaultParseWidth:"any"}),day:p({matchPatterns:gt,defaultMatchWidth:"wide",parsePatterns:wt,defaultParseWidth:"any"}),dayPeriod:p({matchPatterns:xt,defaultMatchWidth:"any",parsePatterns:bt,defaultParseWidth:"any"})};var R={code:"en-US",formatDistance:se,formatLong:de,formatRelative:me,localize:fe,match:he,options:{weekStartsOn:0,firstWeekContainsDate:1}};function ge(e,t){let r=m(e,t==null?void 0:t.in);return ae(r,ue(r))+1}function we(e,t){let r=m(e,t==null?void 0:t.in),n=+D(r)-+oe(r);return Math.round(n/I)+1}function E(e,t){var w,l,b,y,k,Y,T,F;let r=m(e,t==null?void 0:t.in),n=r.getFullYear(),a=M(),o=(F=(T=(y=(b=t==null?void 0:t.firstWeekContainsDate)!=null?b:(l=(w=t==null?void 0:t.locale)==null?void 0:w.options)==null?void 0:l.firstWeekContainsDate)!=null?y:a.firstWeekContainsDate)!=null?T:(Y=(k=a.locale)==null?void 0:k.options)==null?void 0:Y.firstWeekContainsDate)!=null?F:1,i=g((t==null?void 0:t.in)||e,0);i.setFullYear(n+1,0,o),i.setHours(0,0,0,0);let c=O(i,t),d=g((t==null?void 0:t.in)||e,0);d.setFullYear(n,0,o),d.setHours(0,0,0,0);let f=O(d,t);return+r>=+c?n+1:+r>=+f?n:n-1}function xe(e,t){var c,d,f,w,l,b,y,k;let r=M(),n=(k=(y=(w=(f=t==null?void 0:t.firstWeekContainsDate)!=null?f:(d=(c=t==null?void 0:t.locale)==null?void 0:c.options)==null?void 0:d.firstWeekContainsDate)!=null?w:r.firstWeekContainsDate)!=null?y:(b=(l=r.locale)==null?void 0:l.options)==null?void 0:b.firstWeekContainsDate)!=null?k:1,a=E(e,t),o=g((t==null?void 0:t.in)||e,0);return o.setFullYear(a,0,n),o.setHours(0,0,0,0),O(o,t)}function be(e,t){let r=m(e,t==null?void 0:t.in),n=+O(r,t)-+xe(r,t);return Math.round(n/I)+1}function u(e,t){let r=e<0?"-":"",n=Math.abs(e).toString().padStart(t,"0");return r+n}var P={y(e,t){let r=e.getFullYear(),n=r>0?r:1-r;return u(t==="yy"?n%100:n,t.length)},M(e,t){let r=e.getMonth();return t==="M"?String(r+1):u(r+1,2)},d(e,t){return u(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 u(e.getHours()%12||12,t.length)},H(e,t){return u(e.getHours(),t.length)},m(e,t){return u(e.getMinutes(),t.length)},s(e,t){return u(e.getSeconds(),t.length)},S(e,t){let r=t.length,n=e.getMilliseconds(),a=Math.trunc(n*Math.pow(10,r-3));return u(a,t.length)}};var S={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},j={G:function(e,t,r){let n=e.getFullYear()>0?1:0;switch(t){case"G":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(),a=n>0?n:1-n;return r.ordinalNumber(a,{unit:"year"})}return P.y(e,t)},Y:function(e,t,r,n){let a=E(e,n),o=a>0?a:1-a;if(t==="YY"){let i=o%100;return u(i,2)}return t==="Yo"?r.ordinalNumber(o,{unit:"year"}):u(o,t.length)},R:function(e,t){let r=N(e);return u(r,t.length)},u:function(e,t){let r=e.getFullYear();return u(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 u(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 u(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 P.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 u(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 a=be(e,n);return t==="wo"?r.ordinalNumber(a,{unit:"week"}):u(a,t.length)},I:function(e,t,r){let n=we(e);return t==="Io"?r.ordinalNumber(n,{unit:"week"}):u(n,t.length)},d:function(e,t,r){return t==="do"?r.ordinalNumber(e.getDate(),{unit:"date"}):P.d(e,t)},D:function(e,t,r){let n=ge(e);return t==="Do"?r.ordinalNumber(n,{unit:"dayOfYear"}):u(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 a=e.getDay(),o=(a-n.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return u(o,2);case"eo":return r.ordinalNumber(o,{unit:"day"});case"eee":return r.day(a,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(a,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(a,{width:"short",context:"formatting"});case"eeee":default:return r.day(a,{width:"wide",context:"formatting"})}},c:function(e,t,r,n){let a=e.getDay(),o=(a-n.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return u(o,t.length);case"co":return r.ordinalNumber(o,{unit:"day"});case"ccc":return r.day(a,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(a,{width:"narrow",context:"standalone"});case"cccccc":return r.day(a,{width:"short",context:"standalone"});case"cccc":default:return r.day(a,{width:"wide",context:"standalone"})}},i:function(e,t,r){let n=e.getDay(),a=n===0?7:n;switch(t){case"i":return String(a);case"ii":return u(a,t.length);case"io":return r.ordinalNumber(a,{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 a=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(a,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(a,{width:"wide",context:"formatting"})}},b:function(e,t,r){let n=e.getHours(),a;switch(n===12?a=S.noon:n===0?a=S.midnight:a=n/12>=1?"pm":"am",t){case"b":case"bb":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(a,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(a,{width:"wide",context:"formatting"})}},B:function(e,t,r){let n=e.getHours(),a;switch(n>=17?a=S.evening:n>=12?a=S.afternoon:n>=4?a=S.morning:a=S.night,t){case"B":case"BB":case"BBB":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(a,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(a,{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 P.h(e,t)},H:function(e,t,r){return t==="Ho"?r.ordinalNumber(e.getHours(),{unit:"hour"}):P.H(e,t)},K:function(e,t,r){let n=e.getHours()%12;return t==="Ko"?r.ordinalNumber(n,{unit:"hour"}):u(n,t.length)},k:function(e,t,r){let n=e.getHours();return n===0&&(n=24),t==="ko"?r.ordinalNumber(n,{unit:"hour"}):u(n,t.length)},m:function(e,t,r){return t==="mo"?r.ordinalNumber(e.getMinutes(),{unit:"minute"}):P.m(e,t)},s:function(e,t,r){return t==="so"?r.ordinalNumber(e.getSeconds(),{unit:"second"}):P.s(e,t)},S:function(e,t){return P.S(e,t)},X:function(e,t,r){let n=e.getTimezoneOffset();if(n===0)return"Z";switch(t){case"X":return ke(n);case"XXXX":case"XX":return v(n);case"XXXXX":case"XXX":default:return v(n,":")}},x:function(e,t,r){let n=e.getTimezoneOffset();switch(t){case"x":return ke(n);case"xxxx":case"xx":return v(n);case"xxxxx":case"xxx":default:return v(n,":")}},O:function(e,t,r){let n=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+ye(n,":");case"OOOO":default:return"GMT"+v(n,":")}},z:function(e,t,r){let n=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+ye(n,":");case"zzzz":default:return"GMT"+v(n,":")}},t:function(e,t,r){let n=Math.trunc(+e/1e3);return u(n,t.length)},T:function(e,t,r){return u(+e,t.length)}};function ye(e,t=""){let r=e>0?"-":"+",n=Math.abs(e),a=Math.trunc(n/60),o=n%60;return o===0?r+String(a):r+String(a)+t+u(o,2)}function ke(e,t){return e%60===0?(e>0?"-":"+")+u(Math.abs(e)/60,2):v(e,t)}function v(e,t=""){let r=e>0?"-":"+",n=Math.abs(e),a=u(Math.trunc(n/60),2),o=u(n%60,2);return r+a+t+o}var Oe=(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"})}},Pe=(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"})}},yt=(e,t)=>{let r=e.match(/(P+)(p+)?/)||[],n=r[1],a=r[2];if(!a)return Oe(e,t);let o;switch(n){case"P":o=t.dateTime({width:"short"});break;case"PP":o=t.dateTime({width:"medium"});break;case"PPP":o=t.dateTime({width:"long"});break;case"PPPP":default:o=t.dateTime({width:"full"});break}return o.replace("{{date}}",Oe(n,t)).replace("{{time}}",Pe(a,t))},Me={p:Pe,P:yt};var kt=/^D+$/,Ot=/^Y+$/,Pt=["D","DD","YY","YYYY"];function De(e){return kt.test(e)}function ve(e){return Ot.test(e)}function We(e,t,r){let n=Mt(e,t,r);if(console.warn(n),Pt.includes(e))throw new RangeError(n)}function Mt(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 Dt=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,vt=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Wt=/^'([^]*?)'?$/,pt=/''/g,St=/[a-zA-Z]/;function pe(e,t,r){var w,l,b,y,k,Y,T,F,G,B,V,z,J,$,U,Z,K,ee;let n=M(),a=(l=(w=r==null?void 0:r.locale)!=null?w:n.locale)!=null?l:R,o=(B=(G=(Y=(k=r==null?void 0:r.firstWeekContainsDate)!=null?k:(y=(b=r==null?void 0:r.locale)==null?void 0:b.options)==null?void 0:y.firstWeekContainsDate)!=null?Y:n.firstWeekContainsDate)!=null?G:(F=(T=n.locale)==null?void 0:T.options)==null?void 0:F.firstWeekContainsDate)!=null?B:1,i=(ee=(K=($=(J=r==null?void 0:r.weekStartsOn)!=null?J:(z=(V=r==null?void 0:r.locale)==null?void 0:V.options)==null?void 0:z.weekStartsOn)!=null?$:n.weekStartsOn)!=null?K:(Z=(U=n.locale)==null?void 0:U.options)==null?void 0:Z.weekStartsOn)!=null?ee:0,c=m(e,r==null?void 0:r.in);if(!ce(c))throw new RangeError("Invalid time value");let d=t.match(vt).map(x=>{let h=x[0];if(h==="p"||h==="P"){let H=Me[h];return H(x,a.formatLong)}return x}).join("").match(Dt).map(x=>{if(x==="''")return{isToken:!1,value:"'"};let h=x[0];if(h==="'")return{isToken:!1,value:Yt(x)};if(j[h])return{isToken:!0,value:x};if(h.match(St))throw new RangeError("Format string contains an unescaped latin alphabet character `"+h+"`");return{isToken:!1,value:x}});a.localize.preprocessor&&(d=a.localize.preprocessor(c,d));let f={firstWeekContainsDate:o,weekStartsOn:i,locale:a};return d.map(x=>{if(!x.isToken)return x.value;let h=x.value;(!(r!=null&&r.useAdditionalWeekYearTokens)&&ve(h)||!(r!=null&&r.useAdditionalDayOfYearTokens)&&De(h))&&We(h,t,String(e));let H=j[h[0]];return H(c,h,a.localize,f)}).join("")}function Yt(e){let t=e.match(Wt);return t?t[1].replace(pt,"'"):e}var s=require("react/jsx-runtime");function Ee({subtitle:e,title:t,posts:r,primaryButton:n}){return(0,s.jsx)(Ne.Section,{className:"py-20 bg-background",children:(0,s.jsxs)(Ce.Container,{maxWidth:1280,children:[(0,s.jsx)(Tt,{subtitle:e,title:t}),(0,s.jsx)(Ft,{posts:r}),(0,s.jsx)(It,{primaryButton:n})]})})}function Tt({subtitle:e,title:t}){return(0,s.jsxs)("div",{className:"mb-16 text-center",children:[e?(0,s.jsx)(Te.Text,{weight:"bold",className:"text-secondary",children:e}):null,t?(0,s.jsx)(Ye.Heading,{fontSize:"3xl",children:t}):null]})}function Ft({posts:e}){var n,a,o,i;if(!e)return null;let t=6,r=0;return(0,s.jsxs)(L.Flex,{gap:4,className:"flex-col lg:flex-row",children:[(0,s.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,d)=>(0,s.jsx)(q,{post:c},d)),(0,s.jsx)(L.Flex,{gap:4,className:"flex-col lg:flex-row",children:(a=e==null?void 0:e.slice(r+1,r+3))==null?void 0:a.map((c,d)=>(0,s.jsx)(q,{post:c},d))})]}),(0,s.jsxs)("div",{className:"w-full space-y-5 lg:w-1/2",children:[(0,s.jsx)(L.Flex,{gap:4,className:"flex-col lg:flex-row",children:(o=e==null?void 0:e.slice(r+3,r+5))==null?void 0:o.map((c,d)=>(0,s.jsx)(q,{post:c},d))}),(i=e==null?void 0:e.slice(r+5,t))==null?void 0:i.map((c,d)=>(0,s.jsx)(q,{post:c},d))]})]})}function q({post:e}){var t,r;return(0,s.jsxs)("div",{className:"relative w-full h-64 rounded",children:[e!=null&&e.mainImage?(0,s.jsx)(Fe.Image,{className:"relative object-cover w-full h-full overflow-hidden rounded",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,s.jsx)("div",{className:"absolute inset-0 bg-gray-900 rounded opacity-75"}),(0,s.jsxs)("div",{className:"absolute inset-0 flex flex-col items-start p-6",children:[e!=null&&e.categories?(0,s.jsx)("div",{className:"absolute flex left-5 top-5",children:(t=e==null?void 0:e.categories)==null?void 0:t.map((n,a)=>(0,s.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},a))}):null,(0,s.jsx)("span",{className:"mt-auto text-sm text-gray-500",children:e!=null&&e.publishedAt?pe(new Date(e==null?void 0:e.publishedAt),"dd MMM, yyyy"):""}),e!=null&&e.title?(0,s.jsx)(Ie.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 It({primaryButton:e}){return e!=null&&e.label?(0,s.jsx)("div",{className:"mt-10 text-center",children:(0,s.jsx)(Se.Button,{as:"link",link:e,ariaLabel:e==null?void 0:e.label,children:e==null?void 0:e.label})}):null}0&&(module.exports={Blog_A});
@@ -0,0 +1 @@
1
+ import{a}from"./chunk-X7LLXGCW.mjs";import"./chunk-PC6NMI3O.mjs";export{a as Blog_A,a as default};
@@ -0,0 +1,3 @@
1
+ import { BlogProps } from ".";
2
+ export default function Blog_B({ subtitle, title, posts, primaryButton }: BlogProps): import("react/jsx-runtime").JSX.Element;
3
+ export { Blog_B };