@stackshift-ui/features 6.0.13 → 6.1.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.
Files changed (49) hide show
  1. package/dist/chunk-2ZMZT34T.mjs +1 -0
  2. package/dist/chunk-4EWXUBOB.mjs +1 -0
  3. package/dist/chunk-G6RGNQG4.mjs +1 -0
  4. package/dist/chunk-JHHJEWHR.mjs +1 -0
  5. package/dist/chunk-NAEAXHV6.mjs +1 -0
  6. package/dist/chunk-URBAFHHX.mjs +1 -0
  7. package/dist/chunk-VXWZJ5AL.mjs +1 -0
  8. package/dist/chunk-W24RHXVA.mjs +1 -0
  9. package/dist/chunk-W2ZOZPQE.mjs +1 -0
  10. package/dist/features.js +1 -1
  11. package/dist/features.mjs +1 -1
  12. package/dist/features_a.js +1 -1
  13. package/dist/features_a.mjs +1 -1
  14. package/dist/features_b.js +1 -1
  15. package/dist/features_b.mjs +1 -1
  16. package/dist/features_c.js +1 -1
  17. package/dist/features_c.mjs +1 -1
  18. package/dist/features_d.js +1 -1
  19. package/dist/features_d.mjs +1 -1
  20. package/dist/features_e.js +1 -1
  21. package/dist/features_e.mjs +1 -1
  22. package/dist/features_f.js +1 -1
  23. package/dist/features_f.mjs +1 -1
  24. package/dist/features_g.js +1 -1
  25. package/dist/features_g.mjs +1 -1
  26. package/dist/features_h.js +1 -1
  27. package/dist/features_h.mjs +1 -1
  28. package/dist/index.js +1 -1
  29. package/dist/index.mjs +1 -1
  30. package/package.json +13 -12
  31. package/src/features.test.tsx +2 -2
  32. package/src/features.tsx +22 -15
  33. package/src/features_a.tsx +2 -3
  34. package/src/features_b.tsx +7 -8
  35. package/src/features_c.tsx +8 -9
  36. package/src/features_d.tsx +7 -8
  37. package/src/features_e.tsx +9 -11
  38. package/src/features_f.tsx +8 -2
  39. package/src/features_g.tsx +3 -4
  40. package/src/features_h.tsx +2 -3
  41. package/dist/chunk-24O5VU3C.mjs +0 -1
  42. package/dist/chunk-3S2KSCPX.mjs +0 -1
  43. package/dist/chunk-5AMMO42A.mjs +0 -1
  44. package/dist/chunk-6BDXLZOT.mjs +0 -1
  45. package/dist/chunk-7B6FI3PR.mjs +0 -1
  46. package/dist/chunk-7ZZLNFYE.mjs +0 -1
  47. package/dist/chunk-M4ZCOWFN.mjs +0 -1
  48. package/dist/chunk-NMRXZVBL.mjs +0 -1
  49. package/dist/chunk-XY27OBDB.mjs +0 -1
@@ -0,0 +1 @@
1
+ import{Button as p}from"@stackshift-ui/button";import{Card as w,CardTitle as v}from"@stackshift-ui/card";import{Container as e}from"@stackshift-ui/container";import{Flex as N}from"@stackshift-ui/flex";import{Heading as b}from"@stackshift-ui/heading";import{Image as d}from"@stackshift-ui/image";import{Section as F}from"@stackshift-ui/section";import{Text as h}from"@stackshift-ui/text";import s from"react";import{jsx as l,jsxs as a}from"react/jsx-runtime";function C({featuredItems:o}){let[i,n]=s.useState(0);return l(F,{className:"py-20 overflow-x-auto bg-background",children:l(e,{maxWidth:1280,children:l(N,{className:"relative",children:l(z,{featuredItems:o,slider:t=>{o&&(t==="next"?i!==o.length-1?n(r=>r+1):n(0):i>=1?n(r=>r-1):n(o.length-1))},children:a("div",{className:"order-1 w-full ml-auto xl:w-4/5",children:[l(k,{featuredItems:o,item:i}),l(S,{featuredItems:o,item:i})]})})})})})}function k({featuredItems:o,item:i}){var n,x,t,r,m,c,g;return(x=(n=o==null?void 0:o[i])==null?void 0:n.mainImage)!=null&&x.image?l("div",{className:"mx-auto overflow-hidden rounded-md md:max-w-xl xl:max-w-4xl",children:l(d,{className:"relative object-cover rounded-md",src:`${(r=(t=o==null?void 0:o[i])==null?void 0:t.mainImage)==null?void 0:r.image}`,sizes:"100vw",width:896,height:575,alt:(g=(c=(m=o==null?void 0:o[i])==null?void 0:m.mainImage)==null?void 0:c.alt)!=null?g:`features-image-${i}`})}):null}function S({featuredItems:o,item:i}){var n,x,t,r,m,c;return o?a(w,{className:"top-0 left-0 max-w-xl p-6 mx-auto text-center bg-white md:mt-12 md:p-10 lg:mt-12 lg:p-10 xl:absolute xl:mx-0 xl:mt-20 xl:py-24 rounded-md",children:[l(h,{weight:"bold",className:"text-xs lg:text-md md:text-sm xl:text-lg text-secondary",children:((n=o==null?void 0:o[i])==null?void 0:n.subtitle)&&((x=o==null?void 0:o[i])==null?void 0:x.subtitle)}),l(v,{children:l(b,{fontSize:"3xl",children:((t=o==null?void 0:o[i])==null?void 0:t.title)&&((r=o==null?void 0:o[i])==null?void 0:r.title)})}),l(h,{muted:!0,className:"text-xs leading-loose text-center md:mt-5 md:text-sm lg:mt-5 lg:text-sm",children:((m=o==null?void 0:o[i])==null?void 0:m.description)&&((c=o==null?void 0:o[i])==null?void 0:c.description)})]}):null}function z({featuredItems:o,children:i,slider:n}){return o?a(s.Fragment,{children:[l("div",{className:"absolute left-0 z-40 items-center mt-20 -mx-3 order-0 md:mt-40 lg:mt-60 xl:-mx-6 xl:flex",children:(o==null?void 0:o.length)>=2&&l(p,{"aria-label":"Show Previous Feature",className:"z-10 p-4 text-white ",onClick:()=>n("prev"),children:l("svg",{className:"w-4 h-4",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:l("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M10 19l-7-7m0 0l7-7m-7 7h18"})})})}),i,l("div",{className:"absolute right-0 z-40 items-center order-2 mt-20 -mx-3 md:mt-40 lg:mt-60 xl:-mx-6 xl:flex",children:(o==null?void 0:o.length)>=2&&l(p,{"aria-label":"Show Next Feature",className:"p-4 text-white ",onClick:()=>n("next"),children:l("svg",{className:"w-4 h-4",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:l("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M14 5l7 7m0 0l-7 7m7-7H3"})})})})]}):null}export{C as a};
@@ -0,0 +1 @@
1
+ import{Container as g}from"@stackshift-ui/container";import{Flex as a}from"@stackshift-ui/flex";import{Heading as e}from"@stackshift-ui/heading";import{Image as c}from"@stackshift-ui/image";import{Section as d}from"@stackshift-ui/section";import{Text as o}from"@stackshift-ui/text";import{jsx as i,jsxs as s}from"react/jsx-runtime";function p({caption:n,title:t,description:m,features:l}){return i(d,{className:"py-20 bg-background",children:s(g,{maxWidth:1280,children:[i(g,{maxWidth:640,className:"mb-16 text-center",children:i(x,{caption:n,title:t,description:m})}),i(I,{features:l})]})})}function x({caption:n,title:t,description:m}){return s(a,{direction:"col",gap:3,align:"center",children:[n?i(o,{weight:"bold",className:"text-secondary",children:n}):null,t?i(e,{fontSize:"3xl",children:t}):null,m?i(o,{muted:!0,children:m}):null]})}function I({features:n}){return n?i("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-6",children:n==null?void 0:n.map(t=>i(T,{feature:t},t._key))}):null}function T({feature:n}){var t;return s("div",{className:"text-center sm:text-start p-3",children:[(t=n==null?void 0:n.mainImage)!=null&&t.image?i(b,{feature:n}):null,n!=null&&n.title?i(o,{weight:"bold",className:"mb-4 text-gray-500",fontSize:"xl",children:n==null?void 0:n.title}):null,n!=null&&n.plainText?i(o,{muted:!0,children:n==null?void 0:n.plainText}):null]})}function b({feature:n}){var t,m,l,r;return(t=n==null?void 0:n.mainImage)!=null&&t.image?i("span",{className:"inline-block p-3 mb-4 rounded bg-secondary/50 text-primary-foreground md:mb-6",children:i(c,{className:"object-scale-down",src:`${(m=n==null?void 0:n.mainImage)==null?void 0:m.image}`,width:40,height:40,alt:(r=(l=n==null?void 0:n.mainImage)==null?void 0:l.alt)!=null?r:"features-image-"})}):null}export{p as a};
@@ -0,0 +1 @@
1
+ import{Container as d}from"@stackshift-ui/container";import{Flex as o}from"@stackshift-ui/flex";import{Heading as x}from"@stackshift-ui/heading";import{Image as v}from"@stackshift-ui/image";import{Section as w}from"@stackshift-ui/section";import{Text as u}from"@stackshift-ui/text";import{jsx as l,jsxs as a}from"react/jsx-runtime";function h({caption:e,title:t,description:r,images:i,tags:n}){return l(w,{className:"py-20 bg-background",children:l(d,{maxWidth:1280,children:a(o,{wrap:!0,align:"center",children:[l("div",{className:"w-full px-4 mb-12 lg:mb-0 lg:w-1/2",children:a(d,{maxWidth:448,children:[l(b,{caption:e,title:t,description:r}),l(N,{tags:n})]})}),l(y,{images:i})]})})})}function b({caption:e,title:t,description:r}){return a(o,{direction:"col",gap:3,children:[e&&l(u,{weight:"bold",className:"text-secondary",children:e}),t&&l(x,{fontSize:"3xl",className:"mb-3",children:t}),r&&l(u,{muted:!0,className:"mb-6 leading-loose ",children:r})]})}function N({tags:e}){return e?l("ul",{className:"font-bold text-gray-500",children:e.map(t=>l(F,{item:t}))}):null}function F({item:e}){return e?a(o,{as:"li",align:"center",className:"mb-2 ",children:[l("svg",{className:"w-5 h-5 mr-2 text-primary",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",children:l("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z",clipRule:"evenodd"})}),l("span",{children:e})]}):null}function y({images:e}){var r,i,n,s;if(!e||(e==null?void 0:e.length)===0)return null;function t(c,m,g,f,p){return l("div",{className:`overflow-hidden rounded-md ${p}`,children:l(v,{className:"object-cover w-full h-full",src:c,sizes:"100vw",width:g,height:f,alt:m!=null?m:"feature-image"})})}return a("div",{className:"w-full lg:w-1/2",children:[a("div",{className:"items-end mb-4 lg:flex lg:flex-wrap",children:[l("div",{className:"h-full px-3 mb-4 lg:mb-0 lg:w-2/3",children:((r=e[0])==null?void 0:r.image)&&t(e[0].image,e[0].alt,356,192,"h-[269px]")}),l("div",{className:"h-full px-3 lg:w-1/3",children:((i=e[1])==null?void 0:i.image)&&t(e[1].image,e[1].alt,166,128,"")})]}),a("div",{className:"items-start mb-4 lg:flex lg:flex-wrap",children:[l("div",{className:"h-full px-3 mb-4 lg:mb-0 lg:w-1/3",children:((n=e[2])==null?void 0:n.image)&&t(e[2].image,e[2].alt,166,128,"h-[269px] lg:h-[126px]")}),l("div",{className:"h-full px-3 lg:w-2/3",children:((s=e[3])==null?void 0:s.image)&&t(e[3].image,e[3].alt,356,192,"")})]})]})}export{h as a};
@@ -0,0 +1 @@
1
+ import{Container as s}from"@stackshift-ui/container";import{Flex as c}from"@stackshift-ui/flex";import{Heading as N}from"@stackshift-ui/heading";import{Image as d}from"@stackshift-ui/image";import{Section as b}from"@stackshift-ui/section";import{Text as i}from"@stackshift-ui/text";import{jsx as r,jsxs as o}from"react/jsx-runtime";function T({caption:t,title:n,features:l,images:e}){return r(b,{className:"py-20 bg-background",children:r(s,{maxWidth:1280,children:o(c,{wrap:!0,align:"center",children:[r("div",{className:"w-full mb-12 lg:mb-0 lg:w-1/2",children:o(s,{maxWidth:448,children:[r(y,{caption:t,title:n}),r(F,{features:l})]})}),r(I,{images:e})]})})})}function y({caption:t,title:n}){return o(c,{gap:3,direction:"col",children:[t&&r(i,{weight:"bold",className:"text-secondary",children:t}),n&&r(N,{fontSize:"3xl",className:"mb-6",children:n})]})}function F({features:t}){return!t||(t==null?void 0:t.length)<=0?null:r("ul",{children:t.map(n=>r(k,{feature:n},n._key))})}function k({feature:t}){return t?o(c,{as:"li",className:"mb-5",children:[r(A,{}),o("div",{className:"max-w-xs",children:[r(i,{weight:"bold",className:"text-gray-500",children:t==null?void 0:t.title}),r(i,{muted:!0,className:"leading-loose",children:t==null?void 0:t.plainText})]})]}):null}function A(){return r("svg",{className:"w-8 h-8 mr-3 text-primary",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:r("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 6V4m0 2a2 2 0 100 4m0-4a2 2 0 110 4m-6 8a2 2 0 100-4m0 4a2 2 0 110-4m0 4v2m0-6V4m6 6v10m6-2a2 2 0 100-4m0 4a2 2 0 110-4m0 4v2m0-6V4"})})}function I({images:t}){var n,l,e,m,x,w,a,p,h,u,v,f;return!t||(t==null?void 0:t.length)===0?null:o("div",{className:"items-center w-full px-4 sm:flex md:px-0 lg:w-1/2",children:[o("div",{className:"mb-5 sm:mb-0 sm:w-1/2",children:[((n=t==null?void 0:t[0])==null?void 0:n.image)&&r(d,{className:"object-cover overflow-hidden rounded-md",src:`${(l=t==null?void 0:t[0])==null?void 0:l.image}`,width:640,height:800,sizes:"(max-width: 639px) 100vw, (min-width: 640px) 30vw",alt:(m=(e=t==null?void 0:t[0])==null?void 0:e.alt)!=null?m:"features-image-1"}),((x=t==null?void 0:t[1])==null?void 0:x.image)&&r(d,{className:"object-cover mt-6 overflow-hidden rounded-md",src:`${(w=t==null?void 0:t[1])==null?void 0:w.image}`,width:640,height:800,sizes:"(max-width: 639px) 100vw, (min-width: 640px) 30vw",alt:(p=(a=t==null?void 0:t[1])==null?void 0:a.alt)!=null?p:"features-image-2"})]}),((h=t==null?void 0:t[2])==null?void 0:h.image)&&r(d,{className:"object-cover overflow-hidden rounded-md sm:ml-6 sm:w-1/2",src:`${(u=t==null?void 0:t[2])==null?void 0:u.image}`,width:640,height:800,sizes:"(max-width: 639px) 100vw, (min-width: 640px) 30vw",alt:(f=(v=t==null?void 0:t[2])==null?void 0:v.alt)!=null?f:"features-image-3"})]})}export{T as a};
@@ -0,0 +1 @@
1
+ import{a as R}from"./chunk-G6RGNQG4.mjs";import{a as O}from"./chunk-JHHJEWHR.mjs";import{a as A}from"./chunk-4EWXUBOB.mjs";import{a as T}from"./chunk-VXWZJ5AL.mjs";import{a as _}from"./chunk-W24RHXVA.mjs";import{a as x}from"./chunk-URBAFHHX.mjs";import{a as b}from"./chunk-2ZMZT34T.mjs";import{a as B}from"./chunk-W2ZOZPQE.mjs";import{jsx as N}from"react/jsx-runtime";var L={variant_a:A,variant_b:T,variant_c:_,variant_d:x,variant_e:b,variant_f:B,variant_g:R,variant_h:O},V="Features",C=({data:e})=>{var t,n,s,o,m,u,f,p,g,c,v,F,l,a,I,y;let r=e==null?void 0:e.variant,i=r&&L[r],P={caption:(n=(t=e==null?void 0:e.variants)==null?void 0:t.subtitle)!=null?n:void 0,title:(o=(s=e==null?void 0:e.variants)==null?void 0:s.title)!=null?o:void 0,description:(u=(m=e==null?void 0:e.variants)==null?void 0:m.description)!=null?u:void 0,features:(p=(f=e==null?void 0:e.variants)==null?void 0:f.arrayOfImageTitleAndText)!=null?p:void 0,tags:(c=(g=e==null?void 0:e.variants)==null?void 0:g.tags)!=null?c:void 0,featuredItems:(F=(v=e==null?void 0:e.variants)==null?void 0:v.featuredItems)!=null?F:void 0,images:(a=(l=e==null?void 0:e.variants)==null?void 0:l.images)!=null?a:void 0,primaryButton:(y=(I=e==null?void 0:e.variants)==null?void 0:I.primaryButton)!=null?y:void 0};return i?N(i,{...P}):null};C.displayName=V;export{C as a};
@@ -0,0 +1 @@
1
+ import{Card as d,CardTitle as c}from"@stackshift-ui/card";import{Container as r}from"@stackshift-ui/container";import{Flex as s}from"@stackshift-ui/flex";import{Heading as g}from"@stackshift-ui/heading";import{Image as p}from"@stackshift-ui/image";import{Section as x}from"@stackshift-ui/section";import{Text as l}from"@stackshift-ui/text";import{jsx as i,jsxs as o}from"react/jsx-runtime";function T({caption:t,title:n,description:e,features:m}){return i(x,{className:"py-20 bg-background",children:o(r,{maxWidth:1280,children:[i(r,{maxWidth:640,className:"mb-8 text-center",children:i(b,{caption:t,title:n,description:e})}),i(y,{features:m})]})})}function b({caption:t,title:n,description:e}){return o(s,{direction:"col",gap:3,align:"center",children:[t?i(l,{weight:"bold",className:"text-secondary",children:t}):null,n?i(g,{fontSize:"3xl",children:n}):null,e?i(l,{muted:!0,className:"mb-6 leading-loose",children:e}):null]})}function y({features:t}){return t?i(s,{wrap:!0,justify:"center",align:"stretch",children:t.map(n=>i(h,{feature:n},n._key))}):null}function h({feature:t}){var n,e,m,a;return i("div",{className:"w-full px-4 mt-8 lg:mb-0 lg:w-1/3",children:o(d,{className:"h-full px-6 py-12 text-center bg-white rounded-md",children:[i("div",{className:"self-start inline-block p-3 mb-6 rounded-lg bg-secondary/50 md:p-5",children:((n=t==null?void 0:t.mainImage)==null?void 0:n.image)&&i(p,{className:"object-scale-down",src:`${(e=t==null?void 0:t.mainImage)==null?void 0:e.image}`,width:40,height:40,alt:(a=(m=t==null?void 0:t.mainImage)==null?void 0:m.alt)!=null?a:"features-image-"})}),i(c,{className:"px-8 mb-4 text-gray-500 font-bold text-xl",children:t==null?void 0:t.title}),i(l,{muted:!0,children:t==null?void 0:t.plainText})]})})}export{T as a};
@@ -0,0 +1 @@
1
+ import{Card as c}from"@stackshift-ui/card";import{Container as d}from"@stackshift-ui/container";import{Flex as e}from"@stackshift-ui/flex";import{Heading as p}from"@stackshift-ui/heading";import{Image as x}from"@stackshift-ui/image";import{Section as b}from"@stackshift-ui/section";import{Text as n}from"@stackshift-ui/text";import{jsx as m,jsxs as a}from"react/jsx-runtime";function w({caption:i,title:l,description:o,features:t,tags:s}){return m(b,{className:"py-20 bg-background",children:m(d,{maxWidth:1280,children:a(e,{wrap:!0,align:"center",children:[m("div",{className:"w-full px-4 mb-12 lg:mb-0 lg:w-1/2",children:a(d,{maxWidth:448,children:[m(h,{caption:i,title:l,description:o}),m(N,{tags:s})]})}),m(T,{features:t})]})})})}function h({caption:i,title:l,description:o}){return a(e,{direction:"col",gap:3,children:[i&&m(n,{weight:"bold",className:"text-secondary",children:i}),l&&m(p,{fontSize:"3xl",children:l}),o&&m(n,{muted:!0,className:"mb-6 leading-loose",children:o})]})}function N({tags:i}){return i?m("ul",{children:i&&i.map(l=>a(e,{as:"li",className:"mb-4",children:[m("svg",{className:"w-6 h-6 mr-2 text-secondary",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",children:m("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z",clipRule:"evenodd"})}),m(n,{muted:!0,weight:"bold",children:l})]},l))}):null}function T({features:i}){return i?m(e,{wrap:!0,align:"stretch",className:"w-full lg:w-1/2",children:i&&(i==null?void 0:i.map((l,o)=>{var t,s,r,g;return m("div",{className:`w-full px-4 mb-8 md:w-1/2 ${o%2===0?"lg:mb-0":"lg:mt-12"}`,children:a(c,{className:"py-6 pl-6 pr-4 mb-8 bg-white rounded-md",children:[((t=l==null?void 0:l.mainImage)==null?void 0:t.image)&&m("span",{className:"inline-block p-3 mb-4 rounded-lg bg-secondary/50",children:m(x,{className:"object-scale-down",src:`${(s=l==null?void 0:l.mainImage)==null?void 0:s.image}`,width:40,height:40,alt:(g=(r=l==null?void 0:l.mainImage)==null?void 0:r.alt)!=null?g:`features-image-${o}`})}),m(n,{weight:"bold",className:"text-xl md:text-2xl mb-2 text-gray-500 break-normal",children:l==null?void 0:l.title}),m(n,{muted:!0,className:"leading-loose break-normal",children:l==null?void 0:l.plainText})]})},o)}))}):null}export{w as a};
@@ -0,0 +1 @@
1
+ import{Card as d,CardTitle as c}from"@stackshift-ui/card";import{Container as r}from"@stackshift-ui/container";import{Flex as s}from"@stackshift-ui/flex";import{Heading as g}from"@stackshift-ui/heading";import{Image as p}from"@stackshift-ui/image";import{Section as x}from"@stackshift-ui/section";import{Text as a}from"@stackshift-ui/text";import{jsx as l,jsxs as e}from"react/jsx-runtime";function b({caption:i,title:t,description:n,features:m}){return l(x,{className:"py-20 bg-background",children:e(r,{maxWidth:1800,children:[l(r,{maxWidth:640,className:"mb-16 text-center",children:l(T,{caption:i,title:t,description:n})}),l(N,{features:m})]})})}function T({caption:i,title:t,description:n}){return e(s,{direction:"col",gap:3,align:"center",children:[i?l(a,{weight:"bold",className:"text-secondary",children:i}):null,t?l(g,{fontSize:"3xl",children:t}):null,n?l(a,{muted:!0,className:"mb-6 leading-loose",children:n}):null]})}function N({features:i}){return i?l("div",{className:"lg:grid lg:grid-cols-2 gap-3",children:i.map(t=>l(C,{feature:t},t._key))}):null}function C({feature:i}){var t,n,m,o;return l("div",{className:"w-full p-3",children:e(d,{className:"flex h-full p-6 bg-white rounded-md",children:[l("div",{className:"self-start inline-block p-3 mb-4 mr-6 rounded-lg bg-secondary/50 md:p-5 lg:mb-0",children:((t=i==null?void 0:i.mainImage)==null?void 0:t.image)&&l(p,{className:"object-scale-down",src:`${(n=i==null?void 0:i.mainImage)==null?void 0:n.image}`,width:40,height:40,alt:(o=(m=i==null?void 0:i.mainImage)==null?void 0:m.alt)!=null?o:"features-main-image"})}),e(s,{direction:"col",gap:2,className:"w-full",children:[l(c,{className:"text-xl md:text-2xl break-normal font-bold",children:i==null?void 0:i.title}),l(a,{muted:!0,className:"break-all",children:i==null?void 0:i.plainText})]})]})})}export{b as a};
@@ -0,0 +1 @@
1
+ import{Button as x}from"@stackshift-ui/button";import{Container as d}from"@stackshift-ui/container";import{Flex as s}from"@stackshift-ui/flex";import{Heading as h}from"@stackshift-ui/heading";import{Image as v}from"@stackshift-ui/image";import{Link as w}from"@stackshift-ui/link";import{Section as N}from"@stackshift-ui/section";import{buildSanityLink as p}from"@stackshift-ui/system";import{Text as f}from"@stackshift-ui/text";import{jsx as l,jsxs as a}from"react/jsx-runtime";function F({caption:e,title:t,description:i,images:r,primaryButton:n}){return l(N,{className:"py-20 bg-background",children:l(d,{maxWidth:1280,children:a(s,{wrap:!0,align:"center",children:[a(s,{direction:"col",className:"w-full mb-12 lg:mb-0 lg:w-1/2",children:[l(C,{caption:e,title:t,description:i}),l(k,{primaryButton:n})]}),l(L,{images:r})]})})})}function C({caption:e,title:t,description:i}){return a(d,{maxWidth:448,className:"ml-0",children:[e&&l(f,{weight:"bold",className:"font-bold text-secondary",children:e}),t&&l(h,{fontSize:"3xl",className:"mb-6",children:t}),i&&l(f,{muted:!0,className:"mb-6 leading-loose",children:i})]})}function k({primaryButton:e}){if(!(e!=null&&e.label))return null;let t=p(e);return l(d,{maxWidth:448,className:"ml-0",children:l(x,{"aria-label":e==null?void 0:e.label,asChild:!0,children:l(w,{href:t.href,target:t.target,rel:t.rel,children:e==null?void 0:e.label})})})}function L({images:e}){var i,r,n,m;if(!e||(e==null?void 0:e.length)===0)return null;function t(c,o,g,u,b){return l("div",{className:`overflow-hidden rounded-md ${b}`,children:l(v,{className:"object-cover w-full h-full",src:c,sizes:"100vw",width:g,height:u,alt:o!=null?o:"feature-image"})})}return a("div",{className:"w-full lg:w-1/2",children:[a("div",{className:"items-end mb-4 lg:flex lg:flex-wrap",children:[l("div",{className:"h-full px-3 mb-4 lg:mb-0 lg:w-2/3",children:((i=e[0])==null?void 0:i.image)&&t(e[0].image,e[0].alt,356,192,"h-[269px]")}),l("div",{className:"h-full px-3 lg:w-1/3",children:((r=e[1])==null?void 0:r.image)&&t(e[1].image,e[1].alt,166,128,"")})]}),a("div",{className:"items-start mb-4 lg:flex lg:flex-wrap",children:[l("div",{className:"h-full px-3 mb-4 lg:mb-0 lg:w-1/3",children:((n=e[2])==null?void 0:n.image)&&t(e[2].image,e[2].alt,166,128,"h-[269px] lg:h-[126px]")}),l("div",{className:"h-full px-3 lg:w-2/3",children:((m=e[3])==null?void 0:m.image)&&t(e[3].image,e[3].alt,356,192,"")})]})]})}export{F as a};
package/dist/features.js CHANGED
@@ -1 +1 @@
1
- "use strict";var el=Object.create;var S=Object.defineProperty;var ol=Object.getOwnPropertyDescriptor;var rl=Object.getOwnPropertyNames;var ml=Object.getPrototypeOf,al=Object.prototype.hasOwnProperty;var f=(t,l)=>()=>(t&&(l=t(t=0)),l);var h=(t,l)=>{for(var i in l)S(t,i,{get:l[i],enumerable:!0})},tt=(t,l,i,n)=>{if(l&&typeof l=="object"||typeof l=="function")for(let e of rl(l))!al.call(t,e)&&e!==i&&S(t,e,{get:()=>l[e],enumerable:!(n=ol(l,e))||n.enumerable});return t};var sl=(t,l,i)=>(i=t!=null?el(ml(t)):{},tt(l||!t||!t.__esModule?S(i,"default",{value:t,enumerable:!0}):i,t)),cl=t=>tt(S({},"__esModule",{value:!0}),t);var ot={};h(ot,{Features_A:()=>et,default:()=>et});function et({caption:t,title:l,description:i,features:n}){return(0,g.jsx)(nt.Section,{className:"py-20 bg-background",children:(0,g.jsxs)(P.Container,{maxWidth:1280,children:[(0,g.jsx)(P.Container,{maxWidth:640,className:"mb-16 text-center",children:(0,g.jsx)(dl,{caption:t,title:l,description:i})}),(0,g.jsx)(pl,{features:n})]})})}function dl({caption:t,title:l,description:i}){return(0,g.jsxs)("div",{className:"flex flex-col gap-3",children:[t?(0,g.jsx)(C.Text,{weight:"bold",className:"text-secondary",children:t}):null,l?(0,g.jsx)(lt.Heading,{fontSize:"3xl",children:l}):null,i?(0,g.jsx)(C.Text,{muted:!0,children:i}):null]})}function pl({features:t}){return t?(0,g.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-6",children:t==null?void 0:t.map(l=>(0,g.jsx)(gl,{feature:l},l._key))}):null}function gl({feature:t}){var l;return(0,g.jsxs)("div",{className:"text-center sm:text-start p-3",children:[(l=t==null?void 0:t.mainImage)!=null&&l.image?(0,g.jsx)(xl,{feature:t}):null,t!=null&&t.title?(0,g.jsx)(C.Text,{weight:"bold",className:"mb-4 text-gray-500",fontSize:"xl",children:t==null?void 0:t.title}):null,t!=null&&t.plainText?(0,g.jsx)(C.Text,{muted:!0,children:t==null?void 0:t.plainText}):null]})}function xl({feature:t}){var l,i,n,e;return(l=t==null?void 0:t.mainImage)!=null&&l.image?(0,g.jsx)("span",{className:"inline-block p-3 mb-4 rounded bg-secondary/50 text-primary-foreground md:mb-6",children:(0,g.jsx)(it.Image,{className:"object-scale-down",src:`${(i=t==null?void 0:t.mainImage)==null?void 0:i.image}`,width:40,height:40,alt:(e=(n=t==null?void 0:t.mainImage)==null?void 0:n.alt)!=null?e:"features-image-"})}):null}var P,lt,it,nt,C,g,rt=f(()=>{"use strict";P=require("@stackshift-ui/container"),lt=require("@stackshift-ui/heading"),it=require("@stackshift-ui/image"),nt=require("@stackshift-ui/section"),C=require("@stackshift-ui/text"),g=require("react/jsx-runtime")});var pt={};h(pt,{Features_B:()=>dt,default:()=>dt});function dt({caption:t,title:l,description:i,features:n,tags:e}){return(0,g.jsx)(nt.Section,{className:"py-20 bg-background",children:(0,g.jsx)(L.Container,{maxWidth:1280,children:(0,g.jsxs)(_.Flex,{wrap:!0,align:"center",children:[(0,g.jsx)("div",{className:"w-full px-4 mb-12 lg:mb-0 lg:w-1/2",children:(0,g.jsxs)(L.Container,{maxWidth:448,children:[(0,g.jsx)(vl,{caption:t,title:l,description:i}),(0,g.jsx)(ul,{tags:e})]})}),(0,g.jsx)(wl,{features:n})]})})})}function vl({caption:t,title:l,description:i}){return(0,g.jsxs)("div",{className:"flex flex-col gap-3",children:[t&&(0,g.jsx)(C.Text,{weight:"bold",className:"text-secondary",children:t}),l&&(0,g.jsx)(lt.Heading,{fontSize:"3xl",children:l}),i&&(0,g.jsx)(C.Text,{muted:!0,className:"mb-6 leading-loose",children:i})]})}function ul({tags:t}){return t?(0,g.jsx)("ul",{children:t&&t.map(l=>(0,g.jsxs)("li",{className:"flex mb-4",children:[(0,g.jsx)("svg",{className:"w-6 h-6 mr-2 text-secondary",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",children:(0,g.jsx)("path",{fillRule:"evenodd",g:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z",clipRule:"evenodd"})}),(0,g.jsx)(C.Text,{muted:!0,weight:"bold",children:l})]},l))}):null}function wl({features:t}){return t?(0,g.jsx)(_.Flex,{wrap:!0,align:"stretch",className:"w-full lg:w-1/2",children:t&&(t==null?void 0:t.map((l,i)=>{var n,e,a,v;return(0,g.jsx)("div",{className:`w-full px-4 mb-8 md:w-1/2 ${i%2===0?"lg:mb-0":"lg:mt-12"}`,children:(0,g.jsxs)(mt.Card,{className:"py-6 pl-6 pr-4 mb-8 bg-white",borderRadius:"md",children:[((n=l==null?void 0:l.mainImage)==null?void 0:n.image)&&(0,g.jsx)("span",{className:"inline-block p-3 mb-4 rounded-lg bg-secondary/50",children:(0,g.jsx)(it.Image,{className:"object-scale-down",src:`${(e=l==null?void 0:l.mainImage)==null?void 0:e.image}`,width:40,height:40,alt:(v=(a=l==null?void 0:l.mainImage)==null?void 0:a.alt)!=null?v:`features-image-${i}`})}),(0,g.jsx)(C.Text,{weight:"bold",className:"text-xl md:text-2xl mb-2 text-gray-500 break-all",children:l==null?void 0:l.title}),(0,g.jsx)(C.Text,{muted:!0,className:"leading-loose break-all",children:l==null?void 0:l.plainText})]})},i)}))}):null}var mt,L,_,lt,it,nt,C,g,gt=f(()=>{"use strict";mt=require("@stackshift-ui/card"),L=require("@stackshift-ui/container"),_=require("@stackshift-ui/flex")});var ht={};h(ht,{Features_C:()=>bt,default:()=>bt});function bt({caption:t,title:l,description:i,features:n}){return(0,g.jsx)(nt.Section,{className:"py-20 bg-background",children:(0,g.jsxs)(L.Container,{maxWidth:1800,children:[(0,g.jsx)(L.Container,{maxWidth:640,className:"mb-16 text-center",children:(0,g.jsx)(bl,{caption:t,title:l,description:i})}),(0,g.jsx)(hl,{features:n})]})})}function bl({caption:t,title:l,description:i}){return(0,g.jsxs)("div",{className:"flex flex-col gap-3",children:[t?(0,g.jsx)(C.Text,{weight:"bold",className:"text-secondary",children:t}):null,l?(0,g.jsx)(lt.Heading,{fontSize:"3xl",children:l}):null,i?(0,g.jsx)(C.Text,{muted:!0,className:"mb-6 leading-loose",children:i}):null]})}function hl({features:t}){return t?(0,g.jsx)("div",{className:"lg:grid lg:grid-cols-2 gap-3",children:t.map(l=>(0,g.jsx)(Nl,{feature:l},l._key))}):null}function Nl({feature:t}){var l,i,n,e;return(0,g.jsx)("div",{className:"w-full p-3",children:(0,g.jsxs)(xt.Card,{className:"flex flex-wrap h-full p-6 bg-white",borderRadius:"md",children:[(0,g.jsx)("div",{className:"self-start inline-block p-3 mb-4 mr-6 rounded-lg bg-secondary/50 md:p-5 lg:mb-0",children:((l=t==null?void 0:t.mainImage)==null?void 0:l.image)&&(0,g.jsx)(it.Image,{className:"object-scale-down",src:`${(i=t==null?void 0:t.mainImage)==null?void 0:i.image}`,width:40,height:40,alt:(e=(n=t==null?void 0:t.mainImage)==null?void 0:n.alt)!=null?e:"features-main-image"})}),(0,g.jsxs)("div",{className:"w-full lg:w-2/3 flex flex-col gap-2",children:[(0,g.jsx)(C.Text,{weight:"bold",className:"text-xl md:text-2xl break-all",children:t==null?void 0:t.title}),(0,g.jsx)(C.Text,{muted:!0,className:"break-all",children:t==null?void 0:t.plainText})]})]})})}var xt,L,lt,it,nt,C,g,Nt=f(()=>{"use strict";xt=require("@stackshift-ui/card")});var At={};h(At,{Features_D:()=>kt,default:()=>kt});function kt({caption:t,title:l,description:i,features:n}){return(0,g.jsx)(nt.Section,{className:"py-20 bg-background",children:(0,g.jsxs)(L.Container,{maxWidth:1280,children:[(0,g.jsx)(L.Container,{maxWidth:448,className:"mb-8 text-center",children:(0,g.jsx)(fl,{caption:t,title:l,description:i})}),(0,g.jsx)(Tl,{features:n})]})})}function fl({caption:t,title:l,description:i}){return(0,g.jsxs)("div",{className:"flex flex-col gap-3",children:[t?(0,g.jsx)(C.Text,{weight:"bold",className:"text-secondary",children:t}):null,l?(0,g.jsx)(lt.Heading,{fontSize:"3xl",children:l}):null,i?(0,g.jsx)(C.Text,{muted:!0,className:"mb-6 leading-loose",children:i}):null]})}function Tl({features:t}){return t?(0,g.jsx)(_.Flex,{wrap:!0,justify:"center",align:"stretch",children:t.map(l=>(0,g.jsx)(Fl,{feature:l},l._key))}):null}function Fl({feature:t}){var l,i,n,e;return(0,g.jsx)("div",{className:"w-full px-4 mt-8 lg:mb-0 lg:w-1/3",children:(0,g.jsxs)(ft.Card,{className:"h-full px-6 py-12 text-center bg-white",borderRadius:"md",children:[(0,g.jsx)("div",{className:"self-start inline-block p-3 mb-6 rounded-lg bg-secondary/50 md:p-5",children:((l=t==null?void 0:t.mainImage)==null?void 0:l.image)&&(0,g.jsx)(it.Image,{className:"object-scale-down",src:`${(i=t==null?void 0:t.mainImage)==null?void 0:i.image}`,width:40,height:40,alt:(e=(n=t==null?void 0:t.mainImage)==null?void 0:n.alt)!=null?e:"features-image-"})}),(0,g.jsx)(C.Text,{fontSize:"xl",weight:"bold",className:"px-8 mb-4 text-gray-500",children:t==null?void 0:t.title}),(0,g.jsx)(C.Text,{muted:!0,children:t==null?void 0:t.plainText})]})})}var ft,L,_,lt,it,nt,C,g,St=f(()=>{"use strict";ft=require("@stackshift-ui/card")});var Ht={};h(Ht,{Features_E:()=>Wt,default:()=>Wt});function Wt({featuredItems:t}){let[l,i]=V.default.useState(0);return(0,g.jsx)(nt.Section,{className:"py-20 overflow-g-auto bg-background",children:(0,g.jsx)(L.Container,{maxWidth:1280,children:(0,g.jsx)(_.Flex,{className:"relative",children:(0,g.jsx)(kl,{featuredItems:t,slider:e=>{t&&(e==="next"?l!==t.length-1?i(a=>a+1):i(0):l>=1?i(a=>a-1):i(t.length-1))},children:(0,g.jsxs)("div",{className:"order-1 w-full ml-auto xl:w-4/5",children:[(0,g.jsx)(yl,{featuredItems:t,item:l}),(0,g.jsx)(Cl,{featuredItems:t,item:l})]})})})})})}function yl({featuredItems:t,item:l}){var i,n,e,a,v,p,u;return(n=(i=t==null?void 0:t[l])==null?void 0:i.mainImage)!=null&&n.image?(0,g.jsx)("div",{className:"mx-auto overflow-hidden rounded-md md:max-w-xl xl:max-w-4xl",children:(0,g.jsx)(it.Image,{className:"relative object-cover rounded-md",src:`${(a=(e=t==null?void 0:t[l])==null?void 0:e.mainImage)==null?void 0:a.image}`,sizes:"100vw",width:896,height:575,alt:(u=(p=(v=t==null?void 0:t[l])==null?void 0:v.mainImage)==null?void 0:p.alt)!=null?u:`features-image-${l}`})}):null}function Cl({featuredItems:t,item:l}){var i,n,e,a,v,p;return t?(0,g.jsxs)(It.Card,{className:"top-0 left-0 max-w-xl p-6 mx-auto text-center bg-white md:mt-12 md:p-10 lg:mt-12 lg:p-10 xl:absolute xl:mx-0 xl:mt-20 xl:py-24",borderRadius:"md",children:[(0,g.jsx)($.Text,{weight:"bold",className:"text-xs lg:text-md md:text-sm xl:text-lg text-secondary",children:((i=t==null?void 0:t[l])==null?void 0:i.subtitle)&&((n=t==null?void 0:t[l])==null?void 0:n.subtitle)}),(0,g.jsx)(lt.Heading,{fontSize:"3xl",children:((e=t==null?void 0:t[l])==null?void 0:e.title)&&((a=t==null?void 0:t[l])==null?void 0:a.title)}),(0,g.jsx)($.Text,{muted:!0,className:"text-xs leading-loose text-center md:mt-5 md:text-sm lg:mt-5 lg:text-sm",children:((v=t==null?void 0:t[l])==null?void 0:v.description)&&((p=t==null?void 0:t[l])==null?void 0:p.description)})]}):null}function kl({featuredItems:t,children:l,slider:i}){return t?(0,g.jsxs)(V.default.Fragment,{children:[(0,g.jsx)("div",{className:"absolute left-0 C-40 items-center mt-20 -mx-3 order-0 md:mt-40 lg:mt-60 xl:-mx-6 xl:flex",children:(t==null?void 0:t.length)>=2&&(0,g.jsx)(O.Button,{as:"button",ariaLabel:"Show Previous Feature",className:"C-10 p-4 text-white ",onClick:()=>i("prev"),children:(0,g.jsx)("svg",{className:"w-4 h-4",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,g.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",g:"M10 19l-7-7m0 0l7-7m-7 7h18"})})})}),l,(0,g.jsx)("div",{className:"absolute right-0 C-40 items-center order-2 mt-20 -mx-3 md:mt-40 lg:mt-60 xl:-mx-6 xl:flex",children:(t==null?void 0:t.length)>=2&&(0,g.jsx)(O.Button,{as:"button",ariaLabel:"Show Next Feature",className:"p-4 text-white ",onClick:()=>i("next"),children:(0,g.jsx)("svg",{className:"w-4 h-4",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,g.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",g:"M14 5l7 7m0 0l-7 7m7-7H3"})})})})]}):null}var O,It,L,_,lt,it,nt,$,V,g,Ot=f(()=>{"use strict";O=require("@stackshift-ui/button"),It=require("@stackshift-ui/card"),V=sl(require("react"))});var Bt={};h(Bt,{Features_F:()=>Gt,default:()=>Gt});function Gt({caption:t,title:l,description:i,images:n,primaryButton:e}){return(0,g.jsx)(nt.Section,{className:"py-20 bg-background",children:(0,g.jsx)(L.Container,{maxWidth:1280,children:(0,g.jsxs)(_.Flex,{wrap:!0,align:"center",children:[(0,g.jsxs)(_.Flex,{direction:"col",className:"w-full mb-12 lg:mb-0 lg:w-1/2",children:[(0,g.jsx)(Al,{caption:t,title:l,description:i}),(0,g.jsx)(Sl,{primaryButton:e})]}),(0,g.jsx)(Il,{images:n})]})})})}function Al({caption:t,title:l,description:i}){return(0,g.jsxs)(L.Container,{maxWidth:448,className:"ml-0",children:[t&&(0,g.jsx)(C.Text,{weight:"bold",className:"font-bold text-secondary",children:t}),l&&(0,g.jsx)(lt.Heading,{fontSize:"3xl",className:"mb-6",children:l}),i&&(0,g.jsx)(C.Text,{muted:!0,className:"mb-6 leading-loose",children:i})]})}function Sl({primaryButton:t}){return t!=null&&t.label?(0,g.jsx)(L.Container,{maxWidth:448,className:"ml-0",children:(0,g.jsx)($t.Button,{as:"link",link:t,ariaLabel:t==null?void 0:t.label,children:t==null?void 0:t.label})}):null}function Il({images:t}){var i,n,e,a;if(!t||(t==null?void 0:t.length)===0)return null;function l(v,p,u,w,b){return(0,g.jsx)("div",{className:`overflow-hidden rounded-md ${b}`,children:(0,g.jsx)(it.Image,{className:"object-cover w-full h-full",src:v,sizes:"100vw",width:u,height:w,alt:p!=null?p:"feature-image"})})}return(0,g.jsxs)("div",{className:"w-full lg:w-1/2",children:[(0,g.jsxs)("div",{className:"items-end mb-4 lg:flex lg:flex-wrap",children:[(0,g.jsx)("div",{className:"h-full px-3 mb-4 lg:mb-0 lg:w-2/3",children:((i=t[0])==null?void 0:i.image)&&l(t[0].image,t[0].alt,356,192,"h-[269px]")}),(0,g.jsx)("div",{className:"h-full px-3 lg:w-1/3",children:((n=t[1])==null?void 0:n.image)&&l(t[1].image,t[1].alt,166,128,"")})]}),(0,g.jsxs)("div",{className:"items-start mb-4 lg:flex lg:flex-wrap",children:[(0,g.jsx)("div",{className:"h-full px-3 mb-4 lg:mb-0 lg:w-1/3",children:((e=t[2])==null?void 0:e.image)&&l(t[2].image,t[2].alt,166,128,"h-[269px] lg:h-[126px]")}),(0,g.jsx)("div",{className:"h-full px-3 lg:w-2/3",children:((a=t[3])==null?void 0:a.image)&&l(t[3].image,t[3].alt,356,192,"")})]})]})}var $t,L,_,lt,it,nt,C,g,Dt=f(()=>{"use strict";$t=require("@stackshift-ui/button")});var Qt={};h(Qt,{Features_G:()=>Kt,default:()=>Kt});function Kt({caption:t,title:l,description:i,images:n,tags:e}){return(0,g.jsx)(nt.Section,{className:"py-20 bg-background",children:(0,g.jsx)(G.Container,{maxWidth:1280,children:(0,g.jsxs)(_.Flex,{wrap:!0,align:"center",children:[(0,g.jsx)("div",{className:"w-full px-4 mb-12 lg:mb-0 lg:w-1/2",children:(0,g.jsxs)(G.Container,{maxWidth:448,children:[(0,g.jsx)(Rl,{caption:t,title:l,description:i}),(0,g.jsx)(zl,{tags:e})]})}),(0,g.jsx)(Ll,{images:n})]})})})}function Rl({caption:t,title:l,description:i}){return(0,g.jsxs)("div",{className:"flex flex-col gap-3",children:[t&&(0,g.jsx)(C.Text,{weight:"bold",className:"text-secondary",children:t}),l&&(0,g.jsx)(lt.Heading,{fontSize:"3xl",className:"mb-3",children:l}),i&&(0,g.jsx)(C.Text,{muted:!0,className:"mb-6 leading-loose ",children:i})]})}function zl({tags:t}){return t?(0,g.jsx)("ul",{className:"font-bold text-gray-500",children:t.map(l=>(0,g.jsx)(Pl,{item:l}))}):null}function Pl({item:t}){return t?(0,g.jsxs)(_.Flex,{as:"li",align:"center",className:"mb-2 ",children:[(0,g.jsx)("svg",{className:"w-5 h-5 mr-2 text-primary-foreground",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",children:(0,g.jsx)("path",{fillRule:"evenodd",g:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z",clipRule:"evenodd"})}),(0,g.jsx)("span",{children:t})]}):null}function Ll({images:t}){var i,n,e,a;if(!t||(t==null?void 0:t.length)===0)return null;function l(v,p,u,w,b){return(0,g.jsx)("div",{className:`overflow-hidden rounded-md ${b}`,children:(0,g.jsx)(it.Image,{className:"object-cover w-full h-full",src:v,sizes:"100vw",width:u,height:w,alt:p!=null?p:"feature-image"})})}return(0,g.jsxs)("div",{className:"w-full lg:w-1/2",children:[(0,g.jsxs)("div",{className:"items-end mb-4 lg:flex lg:flex-wrap",children:[(0,g.jsx)("div",{className:"h-full px-3 mb-4 lg:mb-0 lg:w-2/3",children:((i=t[0])==null?void 0:i.image)&&l(t[0].image,t[0].alt,356,192,"h-[269px]")}),(0,g.jsx)("div",{className:"h-full px-3 lg:w-1/3",children:((n=t[1])==null?void 0:n.image)&&l(t[1].image,t[1].alt,166,128,"")})]}),(0,g.jsxs)("div",{className:"items-start mb-4 lg:flex lg:flex-wrap",children:[(0,g.jsx)("div",{className:"h-full px-3 mb-4 lg:mb-0 lg:w-1/3",children:((e=t[2])==null?void 0:e.image)&&l(t[2].image,t[2].alt,166,128,"h-[269px] lg:h-[126px]")}),(0,g.jsx)("div",{className:"h-full px-3 lg:w-2/3",children:((a=t[3])==null?void 0:a.image)&&l(t[3].image,t[3].alt,356,192,"")})]})]})}var G,_,lt,it,nt,C,g,Ut=f(()=>{"use strict";G=require("@stackshift-ui/container")});var tl={};h(tl,{Features_H:()=>Zt,default:()=>Zt});function Zt({caption:t,title:l,features:i,images:n}){return(0,g.jsx)(nt.Section,{className:"py-20 bg-background",children:(0,g.jsx)(E.Container,{maxWidth:1280,children:(0,g.jsxs)(_.Flex,{wrap:!0,align:"center",children:[(0,g.jsx)("div",{className:"w-full mb-12 lg:mb-0 lg:w-1/2",children:(0,g.jsxs)(E.Container,{maxWidth:448,children:[(0,g.jsx)(_l,{caption:t,title:l}),(0,g.jsx)(Wl,{features:i})]})}),(0,g.jsx)($l,{images:n})]})})})}function _l({caption:t,title:l}){return(0,g.jsxs)("div",{className:"flex flex-col gap-3",children:[t&&(0,g.jsx)(C.Text,{weight:"bold",className:"text-secondary",children:t}),l&&(0,g.jsx)(lt.Heading,{fontSize:"3xl",className:"mb-6",children:l})]})}function Wl({features:t}){return!t||(t==null?void 0:t.length)<=0?null:(0,g.jsx)("ul",{children:t.map(l=>(0,g.jsx)(Hl,{feature:l},l._key))})}function Hl({feature:t}){return t?(0,g.jsxs)(_.Flex,{as:"li",className:"mb-5",children:[(0,g.jsx)(Ol,{}),(0,g.jsxs)("div",{className:"max-w-xs",children:[(0,g.jsx)(C.Text,{weight:"bold",className:"text-gray-500",children:t==null?void 0:t.title}),(0,g.jsx)(C.Text,{muted:!0,className:"leading-loose",children:t==null?void 0:t.plainText})]})]}):null}function Ol(){return(0,g.jsx)("svg",{className:"w-8 h-8 mr-3 text-primary",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,g.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,g:"M12 6V4m0 2a2 2 0 100 4m0-4a2 2 0 110 4m-6 8a2 2 0 100-4m0 4a2 2 0 110-4m0 4v2m0-6V4m6 6v10m6-2a2 2 0 100-4m0 4a2 2 0 110-4m0 4v2m0-6V4"})})}function $l({images:t}){var l,i,n,e,a,v,p,u,w,b,F,y;return!t||(t==null?void 0:t.length)===0?null:(0,g.jsxs)("div",{className:"items-center w-full px-4 sm:flex md:px-0 lg:w-1/2",children:[(0,g.jsxs)("div",{className:"mb-5 sm:mb-0 sm:w-1/2",children:[((l=t==null?void 0:t[0])==null?void 0:l.image)&&(0,g.jsx)(it.Image,{className:"object-cover overflow-hidden rounded-md",src:`${(i=t==null?void 0:t[0])==null?void 0:i.image}`,width:640,height:800,sizes:"(max-width: 639px) 100vw, (min-width: 640px) 30vw",alt:(e=(n=t==null?void 0:t[0])==null?void 0:n.alt)!=null?e:"features-image-1"}),((a=t==null?void 0:t[1])==null?void 0:a.image)&&(0,g.jsx)(it.Image,{className:"object-cover mt-6 overflow-hidden rounded-md",src:`${(v=t==null?void 0:t[1])==null?void 0:v.image}`,width:640,height:800,sizes:"(max-width: 639px) 100vw, (min-width: 640px) 30vw",alt:(u=(p=t==null?void 0:t[1])==null?void 0:p.alt)!=null?u:"features-image-2"})]}),((w=t==null?void 0:t[2])==null?void 0:w.image)&&(0,g.jsx)(it.Image,{className:"object-cover overflow-hidden rounded-md sm:ml-6 sm:w-1/2",src:`${(b=t==null?void 0:t[2])==null?void 0:b.image}`,width:640,height:800,sizes:"(max-width: 639px) 100vw, (min-width: 640px) 30vw",alt:(y=(F=t==null?void 0:t[2])==null?void 0:F.alt)!=null?y:"features-image-3"})]})}var E,_,lt,it,nt,C,g,ll=f(()=>{"use strict";E=require("@stackshift-ui/container")});var Ml={};h(Ml,{Features:()=>il});module.exports=cl(Ml);var N=require("react"),Vl={variant_a:(0,N.lazy)(()=>Promise.resolve().then(()=>(rt(),ot))),variant_b:(0,N.lazy)(()=>Promise.resolve().then(()=>(gt(),pt))),variant_c:(0,N.lazy)(()=>Promise.resolve().then(()=>(Nt(),ht))),variant_d:(0,N.lazy)(()=>Promise.resolve().then(()=>(St(),At))),variant_e:(0,N.lazy)(()=>Promise.resolve().then(()=>(Ot(),Ht))),variant_f:(0,N.lazy)(()=>Promise.resolve().then(()=>(Dt(),Bt))),variant_g:(0,N.lazy)(()=>Promise.resolve().then(()=>(Ut(),Qt))),variant_h:(0,N.lazy)(()=>Promise.resolve().then(()=>(ll(),tl)))},jl="Features",il=({data:t})=>{var e,a,v,p,u,w,b,F,y,J,K,Q,U,X,Y,Z;let l=t==null?void 0:t.variant,i=l&&Vl[l],n={caption:(a=(e=t==null?void 0:t.variants)==null?void 0:e.subtitle)!=null?a:void 0,title:(p=(v=t==null?void 0:t.variants)==null?void 0:v.title)!=null?p:void 0,description:(w=(u=t==null?void 0:t.variants)==null?void 0:u.description)!=null?w:void 0,features:(F=(b=t==null?void 0:t.variants)==null?void 0:b.arrayOfImageTitleAndText)!=null?F:void 0,tags:(J=(y=t==null?void 0:t.variants)==null?void 0:y.tags)!=null?J:void 0,featuredItems:(Q=(K=t==null?void 0:t.variants)==null?void 0:K.featuredItems)!=null?Q:void 0,images:(X=(U=t==null?void 0:t.variants)==null?void 0:U.images)!=null?X:void 0,primaryButton:(Z=(Y=t==null?void 0:t.variants)==null?void 0:Y.primaryButton)!=null?Z:void 0};return i?(0,g.jsx)(i,{...n}):null};il.displayName=jl;0&&(module.exports={Features});
1
+ "use strict";var Bt=Object.create;var y=Object.defineProperty;var Dt=Object.getOwnPropertyDescriptor;var Et=Object.getOwnPropertyNames;var qt=Object.getPrototypeOf,Jt=Object.prototype.hasOwnProperty;var Kt=(t,l)=>{for(var i in l)y(t,i,{get:l[i],enumerable:!0})},ct=(t,l,i,n)=>{if(l&&typeof l=="object"||typeof l=="function")for(let e of Et(l))!Jt.call(t,e)&&e!==i&&y(t,e,{get:()=>l[e],enumerable:!(n=Dt(l,e))||n.enumerable});return t};var Qt=(t,l,i)=>(i=t!=null?Bt(qt(t)):{},ct(l||!t||!t.__esModule?y(i,"default",{value:t,enumerable:!0}):i,t)),Ut=t=>ct(y({},"__esModule",{value:!0}),t);var Al={};Kt(Al,{Features:()=>Gt});module.exports=Ut(Al);var W=require("@stackshift-ui/container"),dt=require("@stackshift-ui/flex"),pt=require("@stackshift-ui/heading"),gt=require("@stackshift-ui/image"),xt=require("@stackshift-ui/section"),f=require("@stackshift-ui/text"),g=require("react/jsx-runtime");function O({caption:t,title:l,description:i,features:n}){return(0,g.jsx)(xt.Section,{className:"py-20 bg-background",children:(0,g.jsxs)(W.Container,{maxWidth:1280,children:[(0,g.jsx)(W.Container,{maxWidth:640,className:"mb-16 text-center",children:(0,g.jsx)(Xt,{caption:t,title:l,description:i})}),(0,g.jsx)(Yt,{features:n})]})})}function Xt({caption:t,title:l,description:i}){return(0,g.jsxs)(dt.Flex,{direction:"col",gap:3,align:"center",children:[t?(0,g.jsx)(f.Text,{weight:"bold",className:"text-secondary",children:t}):null,l?(0,g.jsx)(pt.Heading,{fontSize:"3xl",children:l}):null,i?(0,g.jsx)(f.Text,{muted:!0,children:i}):null]})}function Yt({features:t}){return t?(0,g.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-6",children:t==null?void 0:t.map(l=>(0,g.jsx)(Zt,{feature:l},l._key))}):null}function Zt({feature:t}){var l;return(0,g.jsxs)("div",{className:"text-center sm:text-start p-3",children:[(l=t==null?void 0:t.mainImage)!=null&&l.image?(0,g.jsx)(tl,{feature:t}):null,t!=null&&t.title?(0,g.jsx)(f.Text,{weight:"bold",className:"mb-4 text-gray-500",fontSize:"xl",children:t==null?void 0:t.title}):null,t!=null&&t.plainText?(0,g.jsx)(f.Text,{muted:!0,children:t==null?void 0:t.plainText}):null]})}function tl({feature:t}){var l,i,n,e;return(l=t==null?void 0:t.mainImage)!=null&&l.image?(0,g.jsx)("span",{className:"inline-block p-3 mb-4 rounded bg-secondary/50 text-primary-foreground md:mb-6",children:(0,g.jsx)(gt.Image,{className:"object-scale-down",src:`${(i=t==null?void 0:t.mainImage)==null?void 0:i.image}`,width:40,height:40,alt:(e=(n=t==null?void 0:t.mainImage)==null?void 0:n.alt)!=null?e:"features-image-"})}):null}var ut=require("@stackshift-ui/card");function $({caption:t,title:l,description:i,features:n,tags:e}){return(0,g.jsx)(xt.Section,{className:"py-20 bg-background",children:(0,g.jsx)(W.Container,{maxWidth:1280,children:(0,g.jsxs)(dt.Flex,{wrap:!0,align:"center",children:[(0,g.jsx)("div",{className:"w-full px-4 mb-12 lg:mb-0 lg:w-1/2",children:(0,g.jsxs)(W.Container,{maxWidth:448,children:[(0,g.jsx)(ll,{caption:t,title:l,description:i}),(0,g.jsx)(il,{tags:e})]})}),(0,g.jsx)(nl,{features:n})]})})})}function ll({caption:t,title:l,description:i}){return(0,g.jsxs)(dt.Flex,{direction:"col",gap:3,children:[t&&(0,g.jsx)(f.Text,{weight:"bold",className:"text-secondary",children:t}),l&&(0,g.jsx)(pt.Heading,{fontSize:"3xl",children:l}),i&&(0,g.jsx)(f.Text,{muted:!0,className:"mb-6 leading-loose",children:i})]})}function il({tags:t}){return t?(0,g.jsx)("ul",{children:t&&t.map(l=>(0,g.jsxs)(dt.Flex,{as:"li",className:"mb-4",children:[(0,g.jsx)("svg",{className:"w-6 f-6 mr-2 text-secondary",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",children:(0,g.jsx)("path",{fillRule:"evenodd",g:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z",clipRule:"evenodd"})}),(0,g.jsx)(f.Text,{muted:!0,weight:"bold",children:l})]},l))}):null}function nl({features:t}){return t?(0,g.jsx)(dt.Flex,{wrap:!0,align:"stretch",className:"w-full lg:w-1/2",children:t&&(t==null?void 0:t.map((l,i)=>{var n,e,c,u;return(0,g.jsx)("div",{className:`w-full px-4 mb-8 md:w-1/2 ${i%2===0?"lg:mb-0":"lg:mt-12"}`,children:(0,g.jsxs)(ut.Card,{className:"py-6 pl-6 pr-4 mb-8 bg-white rounded-md",children:[((n=l==null?void 0:l.mainImage)==null?void 0:n.image)&&(0,g.jsx)("span",{className:"inline-block p-3 mb-4 rounded-lg bg-secondary/50",children:(0,g.jsx)(gt.Image,{className:"object-scale-down",src:`${(e=l==null?void 0:l.mainImage)==null?void 0:e.image}`,width:40,height:40,alt:(u=(c=l==null?void 0:l.mainImage)==null?void 0:c.alt)!=null?u:`features-image-${i}`})}),(0,g.jsx)(f.Text,{weight:"bold",className:"text-xl md:text-2xl mb-2 text-gray-500 break-normal",children:l==null?void 0:l.title}),(0,g.jsx)(f.Text,{muted:!0,className:"leading-loose break-normal",children:l==null?void 0:l.plainText})]})},i)}))}):null}function G({caption:t,title:l,description:i,features:n}){return(0,g.jsx)(xt.Section,{className:"py-20 bg-background",children:(0,g.jsxs)(W.Container,{maxWidth:1800,children:[(0,g.jsx)(W.Container,{maxWidth:640,className:"mb-16 text-center",children:(0,g.jsx)(el,{caption:t,title:l,description:i})}),(0,g.jsx)(rl,{features:n})]})})}function el({caption:t,title:l,description:i}){return(0,g.jsxs)(dt.Flex,{direction:"col",gap:3,align:"center",children:[t?(0,g.jsx)(f.Text,{weight:"bold",className:"text-secondary",children:t}):null,l?(0,g.jsx)(pt.Heading,{fontSize:"3xl",children:l}):null,i?(0,g.jsx)(f.Text,{muted:!0,className:"mb-6 leading-loose",children:i}):null]})}function rl({features:t}){return t?(0,g.jsx)("div",{className:"lg:grid lg:grid-cols-2 gap-3",children:t.map(l=>(0,g.jsx)(ol,{feature:l},l._key))}):null}function ol({feature:t}){var l,i,n,e;return(0,g.jsx)("div",{className:"w-full p-3",children:(0,g.jsxs)(ut.Card,{className:"flex f-full p-6 bg-white rounded-md",children:[(0,g.jsx)("div",{className:"self-start inline-block p-3 mb-4 mr-6 rounded-lg bg-secondary/50 md:p-5 lg:mb-0",children:((l=t==null?void 0:t.mainImage)==null?void 0:l.image)&&(0,g.jsx)(gt.Image,{className:"object-scale-down",src:`${(i=t==null?void 0:t.mainImage)==null?void 0:i.image}`,width:40,height:40,alt:(e=(n=t==null?void 0:t.mainImage)==null?void 0:n.alt)!=null?e:"features-main-image"})}),(0,g.jsxs)(dt.Flex,{direction:"col",gap:2,className:"w-full",children:[(0,g.jsx)(ut.CardTitle,{className:"text-xl md:text-2xl break-normal font-bold",children:t==null?void 0:t.title}),(0,g.jsx)(f.Text,{muted:!0,className:"break-all",children:t==null?void 0:t.plainText})]})]})})}function D({caption:t,title:l,description:i,features:n}){return(0,g.jsx)(xt.Section,{className:"py-20 bg-background",children:(0,g.jsxs)(W.Container,{maxWidth:1280,children:[(0,g.jsx)(W.Container,{maxWidth:640,className:"mb-8 text-center",children:(0,g.jsx)(ml,{caption:t,title:l,description:i})}),(0,g.jsx)(al,{features:n})]})})}function ml({caption:t,title:l,description:i}){return(0,g.jsxs)(dt.Flex,{direction:"col",gap:3,align:"center",children:[t?(0,g.jsx)(f.Text,{weight:"bold",className:"text-secondary",children:t}):null,l?(0,g.jsx)(pt.Heading,{fontSize:"3xl",children:l}):null,i?(0,g.jsx)(f.Text,{muted:!0,className:"mb-6 leading-loose",children:i}):null]})}function al({features:t}){return t?(0,g.jsx)(dt.Flex,{wrap:!0,justify:"center",align:"stretch",children:t.map(l=>(0,g.jsx)(sl,{feature:l},l._key))}):null}function sl({feature:t}){var l,i,n,e;return(0,g.jsx)("div",{className:"w-full px-4 mt-8 lg:mb-0 lg:w-1/3",children:(0,g.jsxs)(ut.Card,{className:"f-full px-6 py-12 text-center bg-white rounded-md",children:[(0,g.jsx)("div",{className:"self-start inline-block p-3 mb-6 rounded-lg bg-secondary/50 md:p-5",children:((l=t==null?void 0:t.mainImage)==null?void 0:l.image)&&(0,g.jsx)(gt.Image,{className:"object-scale-down",src:`${(i=t==null?void 0:t.mainImage)==null?void 0:i.image}`,width:40,height:40,alt:(e=(n=t==null?void 0:t.mainImage)==null?void 0:n.alt)!=null?e:"features-image-"})}),(0,g.jsx)(ut.CardTitle,{className:"px-8 mb-4 text-gray-500 font-bold text-xl",children:t==null?void 0:t.title}),(0,g.jsx)(f.Text,{muted:!0,children:t==null?void 0:t.plainText})]})})}var E=require("@stackshift-ui/button"),J=Qt(require("react"));function K({featuredItems:t}){let[l,i]=J.default.useState(0);return(0,g.jsx)(xt.Section,{className:"py-20 overflow-g-auto bg-background",children:(0,g.jsx)(W.Container,{maxWidth:1280,children:(0,g.jsx)(dt.Flex,{className:"relative",children:(0,g.jsx)(pl,{featuredItems:t,slider:e=>{t&&(e==="next"?l!==t.length-1?i(c=>c+1):i(0):l>=1?i(c=>c-1):i(t.length-1))},children:(0,g.jsxs)("div",{className:"order-1 w-full ml-auto xl:w-4/5",children:[(0,g.jsx)(cl,{featuredItems:t,item:l}),(0,g.jsx)(dl,{featuredItems:t,item:l})]})})})})})}function cl({featuredItems:t,item:l}){var i,n,e,c,u,p,v;return(n=(i=t==null?void 0:t[l])==null?void 0:i.mainImage)!=null&&n.image?(0,g.jsx)("div",{className:"mx-auto overflow-hidden rounded-md md:max-w-xl xl:max-w-4xl",children:(0,g.jsx)(gt.Image,{className:"relative object-cover rounded-md",src:`${(c=(e=t==null?void 0:t[l])==null?void 0:e.mainImage)==null?void 0:c.image}`,sizes:"100vw",width:896,height:575,alt:(v=(p=(u=t==null?void 0:t[l])==null?void 0:u.mainImage)==null?void 0:p.alt)!=null?v:`features-image-${l}`})}):null}function dl({featuredItems:t,item:l}){var i,n,e,c,u,p;return t?(0,g.jsxs)(ut.Card,{className:"top-0 left-0 max-w-xl p-6 mx-auto text-center bg-white md:mt-12 md:p-10 lg:mt-12 lg:p-10 xl:absolute xl:mx-0 xl:mt-20 xl:py-24 rounded-md",children:[(0,g.jsx)(f.Text,{weight:"bold",className:"text-xs lg:text-md md:text-sm xl:text-lg text-secondary",children:((i=t==null?void 0:t[l])==null?void 0:i.subtitle)&&((n=t==null?void 0:t[l])==null?void 0:n.subtitle)}),(0,g.jsx)(ut.CardTitle,{children:(0,g.jsx)(pt.Heading,{fontSize:"3xl",children:((e=t==null?void 0:t[l])==null?void 0:e.title)&&((c=t==null?void 0:t[l])==null?void 0:c.title)})}),(0,g.jsx)(f.Text,{muted:!0,className:"text-xs leading-loose text-center md:mt-5 md:text-sm lg:mt-5 lg:text-sm",children:((u=t==null?void 0:t[l])==null?void 0:u.description)&&((p=t==null?void 0:t[l])==null?void 0:p.description)})]}):null}function pl({featuredItems:t,children:l,slider:i}){return t?(0,g.jsxs)(J.default.Fragment,{children:[(0,g.jsx)("div",{className:"absolute left-0 dt-40 items-center mt-20 -mx-3 order-0 md:mt-40 lg:mt-60 xl:-mx-6 xl:flex",children:(t==null?void 0:t.length)>=2&&(0,g.jsx)(E.Button,{"aria-label":"Show Previous Feature",className:"dt-10 p-4 text-white ",onClick:()=>i("prev"),children:(0,g.jsx)("svg",{className:"w-4 f-4",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,g.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",g:"M10 19l-7-7m0 0l7-7m-7 7h18"})})})}),l,(0,g.jsx)("div",{className:"absolute right-0 dt-40 items-center order-2 mt-20 -mx-3 md:mt-40 lg:mt-60 xl:-mx-6 xl:flex",children:(t==null?void 0:t.length)>=2&&(0,g.jsx)(E.Button,{"aria-label":"Show Next Feature",className:"p-4 text-white ",onClick:()=>i("next"),children:(0,g.jsx)("svg",{className:"w-4 f-4",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,g.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",g:"M14 5l7 7m0 0l-7 7m7-7H3"})})})})]}):null}var _t=require("@stackshift-ui/link"),Wt=require("@stackshift-ui/system");function X({caption:t,title:l,description:i,images:n,primaryButton:e}){return(0,g.jsx)(xt.Section,{className:"py-20 bg-background",children:(0,g.jsx)(W.Container,{maxWidth:1280,children:(0,g.jsxs)(dt.Flex,{wrap:!0,align:"center",children:[(0,g.jsxs)(dt.Flex,{direction:"col",className:"w-full mb-12 lg:mb-0 lg:w-1/2",children:[(0,g.jsx)(gl,{caption:t,title:l,description:i}),(0,g.jsx)(xl,{primaryButton:e})]}),(0,g.jsx)(ul,{images:n})]})})})}function gl({caption:t,title:l,description:i}){return(0,g.jsxs)(W.Container,{maxWidth:448,className:"ml-0",children:[t&&(0,g.jsx)(f.Text,{weight:"bold",className:"font-bold text-secondary",children:t}),l&&(0,g.jsx)(pt.Heading,{fontSize:"3xl",className:"mb-6",children:l}),i&&(0,g.jsx)(f.Text,{muted:!0,className:"mb-6 leading-loose",children:i})]})}function xl({primaryButton:t}){if(!(t!=null&&t.label))return null;let l=(0,Wt.buildSanityLink)(t);return(0,g.jsx)(W.Container,{maxWidth:448,className:"ml-0",children:(0,g.jsx)(E.Button,{"aria-label":t==null?void 0:t.label,asChild:!0,children:(0,g.jsx)(_t.Link,{href:l.href,target:l.target,rel:l.rel,children:t==null?void 0:t.label})})})}function ul({images:t}){var i,n,e,c;if(!t||(t==null?void 0:t.length)===0)return null;function l(u,p,v,w,b){return(0,g.jsx)("div",{className:`overflow-hidden rounded-md ${b}`,children:(0,g.jsx)(gt.Image,{className:"object-cover w-full f-full",src:u,sizes:"100vw",width:v,height:w,alt:p!=null?p:"feature-image"})})}return(0,g.jsxs)("div",{className:"w-full lg:w-1/2",children:[(0,g.jsxs)("div",{className:"items-end mb-4 lg:flex lg:flex-wrap",children:[(0,g.jsx)("div",{className:"f-full px-3 mb-4 lg:mb-0 lg:w-2/3",children:((i=t[0])==null?void 0:i.image)&&l(t[0].image,t[0].alt,356,192,"f-[269px]")}),(0,g.jsx)("div",{className:"f-full px-3 lg:w-1/3",children:((n=t[1])==null?void 0:n.image)&&l(t[1].image,t[1].alt,166,128,"")})]}),(0,g.jsxs)("div",{className:"items-start mb-4 lg:flex lg:flex-wrap",children:[(0,g.jsx)("div",{className:"f-full px-3 mb-4 lg:mb-0 lg:w-1/3",children:((e=t[2])==null?void 0:e.image)&&l(t[2].image,t[2].alt,166,128,"f-[269px] lg:f-[126px]")}),(0,g.jsx)("div",{className:"f-full px-3 lg:w-2/3",children:((c=t[3])==null?void 0:c.image)&&l(t[3].image,t[3].alt,356,192,"")})]})]})}function tt({caption:t,title:l,description:i,images:n,tags:e}){return(0,g.jsx)($t.Section,{className:"py-20 bg-background",children:(0,g.jsx)(W.Container,{maxWidth:1280,children:(0,g.jsxs)(dt.Flex,{wrap:!0,align:"center",children:[(0,g.jsx)("div",{className:"w-full px-4 mb-12 lg:mb-0 lg:w-1/2",children:(0,g.jsxs)(W.Container,{maxWidth:448,children:[(0,g.jsx)(vl,{caption:t,title:l,description:i}),(0,g.jsx)(wl,{tags:e})]})}),(0,g.jsx)(hl,{images:n})]})})})}function vl({caption:t,title:l,description:i}){return(0,g.jsxs)(dt.Flex,{direction:"col",gap:3,children:[t&&(0,g.jsx)(f.Text,{weight:"bold",className:"text-secondary",children:t}),l&&(0,g.jsx)(pt.Heading,{fontSize:"3xl",className:"mb-3",children:l}),i&&(0,g.jsx)(f.Text,{muted:!0,className:"mb-6 leading-loose ",children:i})]})}function wl({tags:t}){return t?(0,g.jsx)("ul",{className:"font-bold text-gray-500",children:t.map(l=>(0,g.jsx)(bl,{item:l}))}):null}function bl({item:t}){return t?(0,g.jsxs)(dt.Flex,{as:"li",align:"center",className:"mb-2 ",children:[(0,g.jsx)("svg",{className:"w-5 f-5 mr-2 text-primary",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",children:(0,g.jsx)("path",{fillRule:"evenodd",g:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z",clipRule:"evenodd"})}),(0,g.jsx)("span",{children:t})]}):null}function hl({images:t}){var i,n,e,c;if(!t||(t==null?void 0:t.length)===0)return null;function l(u,p,v,w,b){return(0,g.jsx)("div",{className:`overflow-hidden rounded-md ${b}`,children:(0,g.jsx)(gt.Image,{className:"object-cover w-full f-full",src:u,sizes:"100vw",width:v,height:w,alt:p!=null?p:"feature-image"})})}return(0,g.jsxs)("div",{className:"w-full lg:w-1/2",children:[(0,g.jsxs)("div",{className:"items-end mb-4 lg:flex lg:flex-wrap",children:[(0,g.jsx)("div",{className:"f-full px-3 mb-4 lg:mb-0 lg:w-2/3",children:((i=t[0])==null?void 0:i.image)&&l(t[0].image,t[0].alt,356,192,"f-[269px]")}),(0,g.jsx)("div",{className:"f-full px-3 lg:w-1/3",children:((n=t[1])==null?void 0:n.image)&&l(t[1].image,t[1].alt,166,128,"")})]}),(0,g.jsxs)("div",{className:"items-start mb-4 lg:flex lg:flex-wrap",children:[(0,g.jsx)("div",{className:"f-full px-3 mb-4 lg:mb-0 lg:w-1/3",children:((e=t[2])==null?void 0:e.image)&&l(t[2].image,t[2].alt,166,128,"f-[269px] lg:f-[126px]")}),(0,g.jsx)("div",{className:"f-full px-3 lg:w-2/3",children:((c=t[3])==null?void 0:c.image)&&l(t[3].image,t[3].alt,356,192,"")})]})]})}function it({caption:t,title:l,features:i,images:n}){return(0,g.jsx)(xt.Section,{className:"py-20 bg-background",children:(0,g.jsx)(W.Container,{maxWidth:1280,children:(0,g.jsxs)(dt.Flex,{wrap:!0,align:"center",children:[(0,g.jsx)("div",{className:"w-full mb-12 lg:mb-0 lg:w-1/2",children:(0,g.jsxs)(W.Container,{maxWidth:448,children:[(0,g.jsx)(Nl,{caption:t,title:l}),(0,g.jsx)(Fl,{features:i})]})}),(0,g.jsx)(yl,{images:n})]})})})}function Nl({caption:t,title:l}){return(0,g.jsxs)(dt.Flex,{gap:3,direction:"col",children:[t&&(0,g.jsx)(f.Text,{weight:"bold",className:"text-secondary",children:t}),l&&(0,g.jsx)(pt.Heading,{fontSize:"3xl",className:"mb-6",children:l})]})}function Fl({features:t}){return!t||(t==null?void 0:t.length)<=0?null:(0,g.jsx)("ul",{children:t.map(l=>(0,g.jsx)(fl,{feature:l},l._key))})}function fl({feature:t}){return t?(0,g.jsxs)(dt.Flex,{as:"li",className:"mb-5",children:[(0,g.jsx)(Tl,{}),(0,g.jsxs)("div",{className:"max-w-xs",children:[(0,g.jsx)(f.Text,{weight:"bold",className:"text-gray-500",children:t==null?void 0:t.title}),(0,g.jsx)(f.Text,{muted:!0,className:"leading-loose",children:t==null?void 0:t.plainText})]})]}):null}function Tl(){return(0,g.jsx)("svg",{className:"w-8 f-8 mr-3 text-primary",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,g.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,g:"M12 6V4m0 2a2 2 0 100 4m0-4a2 2 0 110 4m-6 8a2 2 0 100-4m0 4a2 2 0 110-4m0 4v2m0-6V4m6 6v10m6-2a2 2 0 100-4m0 4a2 2 0 110-4m0 4v2m0-6V4"})})}function yl({images:t}){var l,i,n,e,c,u,p,v,w,b,N,F;return!t||(t==null?void 0:t.length)===0?null:(0,g.jsxs)("div",{className:"items-center w-full px-4 sm:flex md:px-0 lg:w-1/2",children:[(0,g.jsxs)("div",{className:"mb-5 sm:mb-0 sm:w-1/2",children:[((l=t==null?void 0:t[0])==null?void 0:l.image)&&(0,g.jsx)(gt.Image,{className:"object-cover overflow-hidden rounded-md",src:`${(i=t==null?void 0:t[0])==null?void 0:i.image}`,width:640,height:800,sizes:"(max-width: 639px) 100vw, (min-width: 640px) 30vw",alt:(e=(n=t==null?void 0:t[0])==null?void 0:n.alt)!=null?e:"features-image-1"}),((c=t==null?void 0:t[1])==null?void 0:c.image)&&(0,g.jsx)(gt.Image,{className:"object-cover mt-6 overflow-hidden rounded-md",src:`${(u=t==null?void 0:t[1])==null?void 0:u.image}`,width:640,height:800,sizes:"(max-width: 639px) 100vw, (min-width: 640px) 30vw",alt:(v=(p=t==null?void 0:t[1])==null?void 0:p.alt)!=null?v:"features-image-2"})]}),((w=t==null?void 0:t[2])==null?void 0:w.image)&&(0,g.jsx)(gt.Image,{className:"object-cover overflow-hidden rounded-md sm:ml-6 sm:w-1/2",src:`${(b=t==null?void 0:t[2])==null?void 0:b.image}`,width:640,height:800,sizes:"(max-width: 639px) 100vw, (min-width: 640px) 30vw",alt:(F=(N=t==null?void 0:t[2])==null?void 0:N.alt)!=null?F:"features-image-3"})]})}var Cl={variant_a:O,variant_b:$,variant_c:G,variant_d:D,variant_e:K,variant_f:X,variant_g:tt,variant_h:it},kl="Features",Gt=({data:t})=>{var e,c,u,p,v,w,b,N,F,nt,et,rt,ot,mt,at,st;let l=t==null?void 0:t.variant,i=l&&Cl[l],n={caption:(c=(e=t==null?void 0:t.variants)==null?void 0:e.subtitle)!=null?c:void 0,title:(p=(u=t==null?void 0:t.variants)==null?void 0:u.title)!=null?p:void 0,description:(w=(v=t==null?void 0:t.variants)==null?void 0:v.description)!=null?w:void 0,features:(N=(b=t==null?void 0:t.variants)==null?void 0:b.arrayOfImageTitleAndText)!=null?N:void 0,tags:(nt=(F=t==null?void 0:t.variants)==null?void 0:F.tags)!=null?nt:void 0,featuredItems:(rt=(et=t==null?void 0:t.variants)==null?void 0:et.featuredItems)!=null?rt:void 0,images:(mt=(ot=t==null?void 0:t.variants)==null?void 0:ot.images)!=null?mt:void 0,primaryButton:(st=(at=t==null?void 0:t.variants)==null?void 0:at.primaryButton)!=null?st:void 0};return i?(0,g.jsx)(i,{...n}):null};Gt.displayName=kl;0&&(module.exports={Features});
package/dist/features.mjs CHANGED
@@ -1 +1 @@
1
- import{a}from"./chunk-NMRXZVBL.mjs";export{a as Features};
1
+ import{a}from"./chunk-NAEAXHV6.mjs";import"./chunk-G6RGNQG4.mjs";import"./chunk-JHHJEWHR.mjs";import"./chunk-4EWXUBOB.mjs";import"./chunk-VXWZJ5AL.mjs";import"./chunk-W24RHXVA.mjs";import"./chunk-URBAFHHX.mjs";import"./chunk-2ZMZT34T.mjs";import"./chunk-W2ZOZPQE.mjs";export{a as Features};
@@ -1 +1 @@
1
- "use strict";var r=Object.defineProperty;var p=Object.getOwnPropertyDescriptor;var x=Object.getOwnPropertyNames;var I=Object.prototype.hasOwnProperty;var T=(i,n)=>{for(var m in n)r(i,m,{get:n[m],enumerable:!0})},b=(i,n,m,o)=>{if(n&&typeof n=="object"||typeof n=="function")for(let l of x(n))!I.call(i,l)&&l!==m&&r(i,l,{get:()=>n[l],enumerable:!(o=p(n,l))||o.enumerable});return i};var F=i=>b(r({},"__esModule",{value:!0}),i);var A={};T(A,{Features_A:()=>d,default:()=>d});module.exports=F(A);var a=require("@stackshift-ui/container"),g=require("@stackshift-ui/heading"),e=require("@stackshift-ui/image"),c=require("@stackshift-ui/section"),s=require("@stackshift-ui/text"),t=require("react/jsx-runtime");function d({caption:i,title:n,description:m,features:o}){return(0,t.jsx)(c.Section,{className:"py-20 bg-background",children:(0,t.jsxs)(a.Container,{maxWidth:1280,children:[(0,t.jsx)(a.Container,{maxWidth:640,className:"mb-16 text-center",children:(0,t.jsx)(y,{caption:i,title:n,description:m})}),(0,t.jsx)(N,{features:o})]})})}function y({caption:i,title:n,description:m}){return(0,t.jsxs)("div",{className:"flex flex-col gap-3",children:[i?(0,t.jsx)(s.Text,{weight:"bold",className:"text-secondary",children:i}):null,n?(0,t.jsx)(g.Heading,{fontSize:"3xl",children:n}):null,m?(0,t.jsx)(s.Text,{muted:!0,children:m}):null]})}function N({features:i}){return i?(0,t.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-6",children:i==null?void 0:i.map(n=>(0,t.jsx)(h,{feature:n},n._key))}):null}function h({feature:i}){var n;return(0,t.jsxs)("div",{className:"text-center sm:text-start p-3",children:[(n=i==null?void 0:i.mainImage)!=null&&n.image?(0,t.jsx)(v,{feature:i}):null,i!=null&&i.title?(0,t.jsx)(s.Text,{weight:"bold",className:"mb-4 text-gray-500",fontSize:"xl",children:i==null?void 0:i.title}):null,i!=null&&i.plainText?(0,t.jsx)(s.Text,{muted:!0,children:i==null?void 0:i.plainText}):null]})}function v({feature:i}){var n,m,o,l;return(n=i==null?void 0:i.mainImage)!=null&&n.image?(0,t.jsx)("span",{className:"inline-block p-3 mb-4 rounded bg-secondary/50 text-primary-foreground md:mb-6",children:(0,t.jsx)(e.Image,{className:"object-scale-down",src:`${(m=i==null?void 0:i.mainImage)==null?void 0:m.image}`,width:40,height:40,alt:(l=(o=i==null?void 0:i.mainImage)==null?void 0:o.alt)!=null?l:"features-image-"})}):null}0&&(module.exports={Features_A});
1
+ "use strict";var r=Object.defineProperty;var x=Object.getOwnPropertyDescriptor;var I=Object.getOwnPropertyNames;var T=Object.prototype.hasOwnProperty;var b=(n,i)=>{for(var m in i)r(n,m,{get:i[m],enumerable:!0})},F=(n,i,m,o)=>{if(i&&typeof i=="object"||typeof i=="function")for(let l of I(i))!T.call(n,l)&&l!==m&&r(n,l,{get:()=>i[l],enumerable:!(o=x(i,l))||o.enumerable});return n};var y=n=>F(r({},"__esModule",{value:!0}),n);var k={};b(k,{Features_A:()=>p,default:()=>p});module.exports=y(k);var g=require("@stackshift-ui/container"),a=require("@stackshift-ui/flex"),e=require("@stackshift-ui/heading"),c=require("@stackshift-ui/image"),d=require("@stackshift-ui/section"),s=require("@stackshift-ui/text"),t=require("react/jsx-runtime");function p({caption:n,title:i,description:m,features:o}){return(0,t.jsx)(d.Section,{className:"py-20 bg-background",children:(0,t.jsxs)(g.Container,{maxWidth:1280,children:[(0,t.jsx)(g.Container,{maxWidth:640,className:"mb-16 text-center",children:(0,t.jsx)(N,{caption:n,title:i,description:m})}),(0,t.jsx)(h,{features:o})]})})}function N({caption:n,title:i,description:m}){return(0,t.jsxs)(a.Flex,{direction:"col",gap:3,align:"center",children:[n?(0,t.jsx)(s.Text,{weight:"bold",className:"text-secondary",children:n}):null,i?(0,t.jsx)(e.Heading,{fontSize:"3xl",children:i}):null,m?(0,t.jsx)(s.Text,{muted:!0,children:m}):null]})}function h({features:n}){return n?(0,t.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-6",children:n==null?void 0:n.map(i=>(0,t.jsx)(A,{feature:i},i._key))}):null}function A({feature:n}){var i;return(0,t.jsxs)("div",{className:"text-center sm:text-start p-3",children:[(i=n==null?void 0:n.mainImage)!=null&&i.image?(0,t.jsx)(P,{feature:n}):null,n!=null&&n.title?(0,t.jsx)(s.Text,{weight:"bold",className:"mb-4 text-gray-500",fontSize:"xl",children:n==null?void 0:n.title}):null,n!=null&&n.plainText?(0,t.jsx)(s.Text,{muted:!0,children:n==null?void 0:n.plainText}):null]})}function P({feature:n}){var i,m,o,l;return(i=n==null?void 0:n.mainImage)!=null&&i.image?(0,t.jsx)("span",{className:"inline-block p-3 mb-4 rounded bg-secondary/50 text-primary-foreground md:mb-6",children:(0,t.jsx)(c.Image,{className:"object-scale-down",src:`${(m=n==null?void 0:n.mainImage)==null?void 0:m.image}`,width:40,height:40,alt:(l=(o=n==null?void 0:n.mainImage)==null?void 0:o.alt)!=null?l:"features-image-"})}):null}0&&(module.exports={Features_A});
@@ -1 +1 @@
1
- import{a}from"./chunk-XY27OBDB.mjs";export{a as Features_A,a as default};
1
+ import{a}from"./chunk-4EWXUBOB.mjs";export{a as Features_A,a as default};
@@ -1 +1 @@
1
- "use strict";var s=Object.defineProperty;var N=Object.getOwnPropertyDescriptor;var h=Object.getOwnPropertyNames;var v=Object.prototype.hasOwnProperty;var T=(m,l)=>{for(var a in l)s(m,a,{get:l[a],enumerable:!0})},y=(m,l,a,t)=>{if(l&&typeof l=="object"||typeof l=="function")for(let o of h(l))!v.call(m,o)&&o!==a&&s(m,o,{get:()=>l[o],enumerable:!(t=N(l,o))||t.enumerable});return m};var F=m=>y(s({},"__esModule",{value:!0}),m);var u={};T(u,{Features_B:()=>w,default:()=>w});module.exports=F(u);var c=require("@stackshift-ui/card"),e=require("@stackshift-ui/container"),r=require("@stackshift-ui/flex"),p=require("@stackshift-ui/heading"),x=require("@stackshift-ui/image"),b=require("@stackshift-ui/section"),n=require("@stackshift-ui/text"),i=require("react/jsx-runtime");function w({caption:m,title:l,description:a,features:t,tags:o}){return(0,i.jsx)(b.Section,{className:"py-20 bg-background",children:(0,i.jsx)(e.Container,{maxWidth:1280,children:(0,i.jsxs)(r.Flex,{wrap:!0,align:"center",children:[(0,i.jsx)("div",{className:"w-full px-4 mb-12 lg:mb-0 lg:w-1/2",children:(0,i.jsxs)(e.Container,{maxWidth:448,children:[(0,i.jsx)(I,{caption:m,title:l,description:a}),(0,i.jsx)(k,{tags:o})]})}),(0,i.jsx)(C,{features:t})]})})})}function I({caption:m,title:l,description:a}){return(0,i.jsxs)("div",{className:"flex flex-col gap-3",children:[m&&(0,i.jsx)(n.Text,{weight:"bold",className:"text-secondary",children:m}),l&&(0,i.jsx)(p.Heading,{fontSize:"3xl",children:l}),a&&(0,i.jsx)(n.Text,{muted:!0,className:"mb-6 leading-loose",children:a})]})}function k({tags:m}){return m?(0,i.jsx)("ul",{children:m&&m.map(l=>(0,i.jsxs)("li",{className:"flex mb-4",children:[(0,i.jsx)("svg",{className:"w-6 h-6 mr-2 text-secondary",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",children:(0,i.jsx)("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z",clipRule:"evenodd"})}),(0,i.jsx)(n.Text,{muted:!0,weight:"bold",children:l})]},l))}):null}function C({features:m}){return m?(0,i.jsx)(r.Flex,{wrap:!0,align:"stretch",className:"w-full lg:w-1/2",children:m&&(m==null?void 0:m.map((l,a)=>{var t,o,d,g;return(0,i.jsx)("div",{className:`w-full px-4 mb-8 md:w-1/2 ${a%2===0?"lg:mb-0":"lg:mt-12"}`,children:(0,i.jsxs)(c.Card,{className:"py-6 pl-6 pr-4 mb-8 bg-white",borderRadius:"md",children:[((t=l==null?void 0:l.mainImage)==null?void 0:t.image)&&(0,i.jsx)("span",{className:"inline-block p-3 mb-4 rounded-lg bg-secondary/50",children:(0,i.jsx)(x.Image,{className:"object-scale-down",src:`${(o=l==null?void 0:l.mainImage)==null?void 0:o.image}`,width:40,height:40,alt:(g=(d=l==null?void 0:l.mainImage)==null?void 0:d.alt)!=null?g:`features-image-${a}`})}),(0,i.jsx)(n.Text,{weight:"bold",className:"text-xl md:text-2xl mb-2 text-gray-500 break-all",children:l==null?void 0:l.title}),(0,i.jsx)(n.Text,{muted:!0,className:"leading-loose break-all",children:l==null?void 0:l.plainText})]})},a)}))}):null}0&&(module.exports={Features_B});
1
+ "use strict";var e=Object.defineProperty;var h=Object.getOwnPropertyDescriptor;var N=Object.getOwnPropertyNames;var T=Object.prototype.hasOwnProperty;var v=(i,l)=>{for(var o in l)e(i,o,{get:l[o],enumerable:!0})},y=(i,l,o,a)=>{if(l&&typeof l=="object"||typeof l=="function")for(let n of N(l))!T.call(i,n)&&n!==o&&e(i,n,{get:()=>l[n],enumerable:!(a=h(l,n))||a.enumerable});return i};var F=i=>y(e({},"__esModule",{value:!0}),i);var u={};v(u,{Features_B:()=>w,default:()=>w});module.exports=F(u);var c=require("@stackshift-ui/card"),r=require("@stackshift-ui/container"),s=require("@stackshift-ui/flex"),p=require("@stackshift-ui/heading"),x=require("@stackshift-ui/image"),b=require("@stackshift-ui/section"),t=require("@stackshift-ui/text"),m=require("react/jsx-runtime");function w({caption:i,title:l,description:o,features:a,tags:n}){return(0,m.jsx)(b.Section,{className:"py-20 bg-background",children:(0,m.jsx)(r.Container,{maxWidth:1280,children:(0,m.jsxs)(s.Flex,{wrap:!0,align:"center",children:[(0,m.jsx)("div",{className:"w-full px-4 mb-12 lg:mb-0 lg:w-1/2",children:(0,m.jsxs)(r.Container,{maxWidth:448,children:[(0,m.jsx)(I,{caption:i,title:l,description:o}),(0,m.jsx)(k,{tags:n})]})}),(0,m.jsx)(C,{features:a})]})})})}function I({caption:i,title:l,description:o}){return(0,m.jsxs)(s.Flex,{direction:"col",gap:3,children:[i&&(0,m.jsx)(t.Text,{weight:"bold",className:"text-secondary",children:i}),l&&(0,m.jsx)(p.Heading,{fontSize:"3xl",children:l}),o&&(0,m.jsx)(t.Text,{muted:!0,className:"mb-6 leading-loose",children:o})]})}function k({tags:i}){return i?(0,m.jsx)("ul",{children:i&&i.map(l=>(0,m.jsxs)(s.Flex,{as:"li",className:"mb-4",children:[(0,m.jsx)("svg",{className:"w-6 h-6 mr-2 text-secondary",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",children:(0,m.jsx)("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z",clipRule:"evenodd"})}),(0,m.jsx)(t.Text,{muted:!0,weight:"bold",children:l})]},l))}):null}function C({features:i}){return i?(0,m.jsx)(s.Flex,{wrap:!0,align:"stretch",className:"w-full lg:w-1/2",children:i&&(i==null?void 0:i.map((l,o)=>{var a,n,g,d;return(0,m.jsx)("div",{className:`w-full px-4 mb-8 md:w-1/2 ${o%2===0?"lg:mb-0":"lg:mt-12"}`,children:(0,m.jsxs)(c.Card,{className:"py-6 pl-6 pr-4 mb-8 bg-white rounded-md",children:[((a=l==null?void 0:l.mainImage)==null?void 0:a.image)&&(0,m.jsx)("span",{className:"inline-block p-3 mb-4 rounded-lg bg-secondary/50",children:(0,m.jsx)(x.Image,{className:"object-scale-down",src:`${(n=l==null?void 0:l.mainImage)==null?void 0:n.image}`,width:40,height:40,alt:(d=(g=l==null?void 0:l.mainImage)==null?void 0:g.alt)!=null?d:`features-image-${o}`})}),(0,m.jsx)(t.Text,{weight:"bold",className:"text-xl md:text-2xl mb-2 text-gray-500 break-normal",children:l==null?void 0:l.title}),(0,m.jsx)(t.Text,{muted:!0,className:"leading-loose break-normal",children:l==null?void 0:l.plainText})]})},o)}))}):null}0&&(module.exports={Features_B});
@@ -1 +1 @@
1
- import{a}from"./chunk-24O5VU3C.mjs";export{a as Features_B,a as default};
1
+ import{a}from"./chunk-VXWZJ5AL.mjs";export{a as Features_B,a as default};
@@ -1 +1 @@
1
- "use strict";var o=Object.defineProperty;var x=Object.getOwnPropertyDescriptor;var b=Object.getOwnPropertyNames;var N=Object.prototype.hasOwnProperty;var T=(i,l)=>{for(var t in l)o(i,t,{get:l[t],enumerable:!0})},v=(i,l,t,a)=>{if(l&&typeof l=="object"||typeof l=="function")for(let e of b(l))!N.call(i,e)&&e!==t&&o(i,e,{get:()=>l[e],enumerable:!(a=x(l,e))||a.enumerable});return i};var f=i=>v(o({},"__esModule",{value:!0}),i);var y={};T(y,{Features_C:()=>p,default:()=>p});module.exports=f(y);var s=require("@stackshift-ui/card"),r=require("@stackshift-ui/container"),d=require("@stackshift-ui/heading"),c=require("@stackshift-ui/image"),g=require("@stackshift-ui/section"),n=require("@stackshift-ui/text"),m=require("react/jsx-runtime");function p({caption:i,title:l,description:t,features:a}){return(0,m.jsx)(g.Section,{className:"py-20 bg-background",children:(0,m.jsxs)(r.Container,{maxWidth:1800,children:[(0,m.jsx)(r.Container,{maxWidth:640,className:"mb-16 text-center",children:(0,m.jsx)(h,{caption:i,title:l,description:t})}),(0,m.jsx)(w,{features:a})]})})}function h({caption:i,title:l,description:t}){return(0,m.jsxs)("div",{className:"flex flex-col gap-3",children:[i?(0,m.jsx)(n.Text,{weight:"bold",className:"text-secondary",children:i}):null,l?(0,m.jsx)(d.Heading,{fontSize:"3xl",children:l}):null,t?(0,m.jsx)(n.Text,{muted:!0,className:"mb-6 leading-loose",children:t}):null]})}function w({features:i}){return i?(0,m.jsx)("div",{className:"lg:grid lg:grid-cols-2 gap-3",children:i.map(l=>(0,m.jsx)(I,{feature:l},l._key))}):null}function I({feature:i}){var l,t,a,e;return(0,m.jsx)("div",{className:"w-full p-3",children:(0,m.jsxs)(s.Card,{className:"flex flex-wrap h-full p-6 bg-white",borderRadius:"md",children:[(0,m.jsx)("div",{className:"self-start inline-block p-3 mb-4 mr-6 rounded-lg bg-secondary/50 md:p-5 lg:mb-0",children:((l=i==null?void 0:i.mainImage)==null?void 0:l.image)&&(0,m.jsx)(c.Image,{className:"object-scale-down",src:`${(t=i==null?void 0:i.mainImage)==null?void 0:t.image}`,width:40,height:40,alt:(e=(a=i==null?void 0:i.mainImage)==null?void 0:a.alt)!=null?e:"features-main-image"})}),(0,m.jsxs)("div",{className:"w-full lg:w-2/3 flex flex-col gap-2",children:[(0,m.jsx)(n.Text,{weight:"bold",className:"text-xl md:text-2xl break-all",children:i==null?void 0:i.title}),(0,m.jsx)(n.Text,{muted:!0,className:"break-all",children:i==null?void 0:i.plainText})]})]})})}0&&(module.exports={Features_C});
1
+ "use strict";var r=Object.defineProperty;var b=Object.getOwnPropertyDescriptor;var T=Object.getOwnPropertyNames;var N=Object.prototype.hasOwnProperty;var C=(i,l)=>{for(var n in l)r(i,n,{get:l[n],enumerable:!0})},I=(i,l,n,e)=>{if(l&&typeof l=="object"||typeof l=="function")for(let m of T(l))!N.call(i,m)&&m!==n&&r(i,m,{get:()=>l[m],enumerable:!(e=b(l,m))||e.enumerable});return i};var h=i=>I(r({},"__esModule",{value:!0}),i);var k={};C(k,{Features_C:()=>x,default:()=>x});module.exports=h(k);var o=require("@stackshift-ui/card"),s=require("@stackshift-ui/container"),d=require("@stackshift-ui/flex"),c=require("@stackshift-ui/heading"),g=require("@stackshift-ui/image"),p=require("@stackshift-ui/section"),a=require("@stackshift-ui/text"),t=require("react/jsx-runtime");function x({caption:i,title:l,description:n,features:e}){return(0,t.jsx)(p.Section,{className:"py-20 bg-background",children:(0,t.jsxs)(s.Container,{maxWidth:1800,children:[(0,t.jsx)(s.Container,{maxWidth:640,className:"mb-16 text-center",children:(0,t.jsx)(y,{caption:i,title:l,description:n})}),(0,t.jsx)(F,{features:e})]})})}function y({caption:i,title:l,description:n}){return(0,t.jsxs)(d.Flex,{direction:"col",gap:3,align:"center",children:[i?(0,t.jsx)(a.Text,{weight:"bold",className:"text-secondary",children:i}):null,l?(0,t.jsx)(c.Heading,{fontSize:"3xl",children:l}):null,n?(0,t.jsx)(a.Text,{muted:!0,className:"mb-6 leading-loose",children:n}):null]})}function F({features:i}){return i?(0,t.jsx)("div",{className:"lg:grid lg:grid-cols-2 gap-3",children:i.map(l=>(0,t.jsx)(A,{feature:l},l._key))}):null}function A({feature:i}){var l,n,e,m;return(0,t.jsx)("div",{className:"w-full p-3",children:(0,t.jsxs)(o.Card,{className:"flex h-full p-6 bg-white rounded-md",children:[(0,t.jsx)("div",{className:"self-start inline-block p-3 mb-4 mr-6 rounded-lg bg-secondary/50 md:p-5 lg:mb-0",children:((l=i==null?void 0:i.mainImage)==null?void 0:l.image)&&(0,t.jsx)(g.Image,{className:"object-scale-down",src:`${(n=i==null?void 0:i.mainImage)==null?void 0:n.image}`,width:40,height:40,alt:(m=(e=i==null?void 0:i.mainImage)==null?void 0:e.alt)!=null?m:"features-main-image"})}),(0,t.jsxs)(d.Flex,{direction:"col",gap:2,className:"w-full",children:[(0,t.jsx)(o.CardTitle,{className:"text-xl md:text-2xl break-normal font-bold",children:i==null?void 0:i.title}),(0,t.jsx)(a.Text,{muted:!0,className:"break-all",children:i==null?void 0:i.plainText})]})]})})}0&&(module.exports={Features_C});
@@ -1 +1 @@
1
- import{a}from"./chunk-3S2KSCPX.mjs";export{a as Features_C,a as default};
1
+ import{a}from"./chunk-W24RHXVA.mjs";export{a as Features_C,a as default};
@@ -1 +1 @@
1
- "use strict";var a=Object.defineProperty;var b=Object.getOwnPropertyDescriptor;var T=Object.getOwnPropertyNames;var y=Object.prototype.hasOwnProperty;var h=(t,i)=>{for(var e in i)a(t,e,{get:i[e],enumerable:!0})},N=(t,i,e,o)=>{if(i&&typeof i=="object"||typeof i=="function")for(let n of T(i))!y.call(t,n)&&n!==e&&a(t,n,{get:()=>i[n],enumerable:!(o=b(i,n))||o.enumerable});return t};var I=t=>N(a({},"__esModule",{value:!0}),t);var f={};h(f,{Features_D:()=>x,default:()=>x});module.exports=I(f);var s=require("@stackshift-ui/card"),r=require("@stackshift-ui/container"),d=require("@stackshift-ui/flex"),c=require("@stackshift-ui/heading"),g=require("@stackshift-ui/image"),p=require("@stackshift-ui/section"),l=require("@stackshift-ui/text"),m=require("react/jsx-runtime");function x({caption:t,title:i,description:e,features:o}){return(0,m.jsx)(p.Section,{className:"py-20 bg-background",children:(0,m.jsxs)(r.Container,{maxWidth:1280,children:[(0,m.jsx)(r.Container,{maxWidth:448,className:"mb-8 text-center",children:(0,m.jsx)(w,{caption:t,title:i,description:e})}),(0,m.jsx)(A,{features:o})]})})}function w({caption:t,title:i,description:e}){return(0,m.jsxs)("div",{className:"flex flex-col gap-3",children:[t?(0,m.jsx)(l.Text,{weight:"bold",className:"text-secondary",children:t}):null,i?(0,m.jsx)(c.Heading,{fontSize:"3xl",children:i}):null,e?(0,m.jsx)(l.Text,{muted:!0,className:"mb-6 leading-loose",children:e}):null]})}function A({features:t}){return t?(0,m.jsx)(d.Flex,{wrap:!0,justify:"center",align:"stretch",children:t.map(i=>(0,m.jsx)(F,{feature:i},i._key))}):null}function F({feature:t}){var i,e,o,n;return(0,m.jsx)("div",{className:"w-full px-4 mt-8 lg:mb-0 lg:w-1/3",children:(0,m.jsxs)(s.Card,{className:"h-full px-6 py-12 text-center bg-white",borderRadius:"md",children:[(0,m.jsx)("div",{className:"self-start inline-block p-3 mb-6 rounded-lg bg-secondary/50 md:p-5",children:((i=t==null?void 0:t.mainImage)==null?void 0:i.image)&&(0,m.jsx)(g.Image,{className:"object-scale-down",src:`${(e=t==null?void 0:t.mainImage)==null?void 0:e.image}`,width:40,height:40,alt:(n=(o=t==null?void 0:t.mainImage)==null?void 0:o.alt)!=null?n:"features-image-"})}),(0,m.jsx)(l.Text,{fontSize:"xl",weight:"bold",className:"px-8 mb-4 text-gray-500",children:t==null?void 0:t.title}),(0,m.jsx)(l.Text,{muted:!0,children:t==null?void 0:t.plainText})]})})}0&&(module.exports={Features_D});
1
+ "use strict";var r=Object.defineProperty;var T=Object.getOwnPropertyDescriptor;var b=Object.getOwnPropertyNames;var y=Object.prototype.hasOwnProperty;var h=(t,i)=>{for(var e in i)r(t,e,{get:i[e],enumerable:!0})},I=(t,i,e,l)=>{if(i&&typeof i=="object"||typeof i=="function")for(let m of b(i))!y.call(t,m)&&m!==e&&r(t,m,{get:()=>i[m],enumerable:!(l=T(i,m))||l.enumerable});return t};var N=t=>I(r({},"__esModule",{value:!0}),t);var A={};h(A,{Features_D:()=>x,default:()=>x});module.exports=N(A);var a=require("@stackshift-ui/card"),s=require("@stackshift-ui/container"),d=require("@stackshift-ui/flex"),c=require("@stackshift-ui/heading"),g=require("@stackshift-ui/image"),p=require("@stackshift-ui/section"),o=require("@stackshift-ui/text"),n=require("react/jsx-runtime");function x({caption:t,title:i,description:e,features:l}){return(0,n.jsx)(p.Section,{className:"py-20 bg-background",children:(0,n.jsxs)(s.Container,{maxWidth:1280,children:[(0,n.jsx)(s.Container,{maxWidth:640,className:"mb-8 text-center",children:(0,n.jsx)(C,{caption:t,title:i,description:e})}),(0,n.jsx)(F,{features:l})]})})}function C({caption:t,title:i,description:e}){return(0,n.jsxs)(d.Flex,{direction:"col",gap:3,align:"center",children:[t?(0,n.jsx)(o.Text,{weight:"bold",className:"text-secondary",children:t}):null,i?(0,n.jsx)(c.Heading,{fontSize:"3xl",children:i}):null,e?(0,n.jsx)(o.Text,{muted:!0,className:"mb-6 leading-loose",children:e}):null]})}function F({features:t}){return t?(0,n.jsx)(d.Flex,{wrap:!0,justify:"center",align:"stretch",children:t.map(i=>(0,n.jsx)(w,{feature:i},i._key))}):null}function w({feature:t}){var i,e,l,m;return(0,n.jsx)("div",{className:"w-full px-4 mt-8 lg:mb-0 lg:w-1/3",children:(0,n.jsxs)(a.Card,{className:"h-full px-6 py-12 text-center bg-white rounded-md",children:[(0,n.jsx)("div",{className:"self-start inline-block p-3 mb-6 rounded-lg bg-secondary/50 md:p-5",children:((i=t==null?void 0:t.mainImage)==null?void 0:i.image)&&(0,n.jsx)(g.Image,{className:"object-scale-down",src:`${(e=t==null?void 0:t.mainImage)==null?void 0:e.image}`,width:40,height:40,alt:(m=(l=t==null?void 0:t.mainImage)==null?void 0:l.alt)!=null?m:"features-image-"})}),(0,n.jsx)(a.CardTitle,{className:"px-8 mb-4 text-gray-500 font-bold text-xl",children:t==null?void 0:t.title}),(0,n.jsx)(o.Text,{muted:!0,children:t==null?void 0:t.plainText})]})})}0&&(module.exports={Features_D});
@@ -1 +1 @@
1
- import{a}from"./chunk-5AMMO42A.mjs";export{a as Features_D,a as default};
1
+ import{a}from"./chunk-URBAFHHX.mjs";export{a as Features_D,a as default};
@@ -1 +1 @@
1
- "use strict";var C=Object.create;var c=Object.defineProperty;var S=Object.getOwnPropertyDescriptor;var L=Object.getOwnPropertyNames;var z=Object.getPrototypeOf,B=Object.prototype.hasOwnProperty;var R=(o,l)=>{for(var n in l)c(o,n,{get:l[n],enumerable:!0})},w=(o,l,n,r)=>{if(l&&typeof l=="object"||typeof l=="function")for(let t of L(l))!B.call(o,t)&&t!==n&&c(o,t,{get:()=>l[t],enumerable:!(r=S(l,t))||r.enumerable});return o};var u=(o,l,n)=>(n=o!=null?C(z(o)):{},w(l||!o||!o.__esModule?c(n,"default",{value:o,enumerable:!0}):n,o)),y=o=>w(c({},"__esModule",{value:!0}),o);var W={};R(W,{Features_E:()=>k,default:()=>k});module.exports=y(W);var g=require("@stackshift-ui/button"),v=require("@stackshift-ui/card"),b=require("@stackshift-ui/container"),e=require("@stackshift-ui/flex"),N=require("@stackshift-ui/heading"),F=require("@stackshift-ui/image"),d=require("@stackshift-ui/section"),p=require("@stackshift-ui/text"),s=u(require("react")),i=require("react/jsx-runtime");function k({featuredItems:o}){let[l,n]=s.default.useState(0);return(0,i.jsx)(d.Section,{className:"py-20 overflow-x-auto bg-background",children:(0,i.jsx)(b.Container,{maxWidth:1280,children:(0,i.jsx)(e.Flex,{className:"relative",children:(0,i.jsx)(T,{featuredItems:o,slider:t=>{o&&(t==="next"?l!==o.length-1?n(x=>x+1):n(0):l>=1?n(x=>x-1):n(o.length-1))},children:(0,i.jsxs)("div",{className:"order-1 w-full ml-auto xl:w-4/5",children:[(0,i.jsx)(H,{featuredItems:o,item:l}),(0,i.jsx)(P,{featuredItems:o,item:l})]})})})})})}function H({featuredItems:o,item:l}){var n,r,t,x,m,a,h;return(r=(n=o==null?void 0:o[l])==null?void 0:n.mainImage)!=null&&r.image?(0,i.jsx)("div",{className:"mx-auto overflow-hidden rounded-md md:max-w-xl xl:max-w-4xl",children:(0,i.jsx)(F.Image,{className:"relative object-cover rounded-md",src:`${(x=(t=o==null?void 0:o[l])==null?void 0:t.mainImage)==null?void 0:x.image}`,sizes:"100vw",width:896,height:575,alt:(h=(a=(m=o==null?void 0:o[l])==null?void 0:m.mainImage)==null?void 0:a.alt)!=null?h:`features-image-${l}`})}):null}function P({featuredItems:o,item:l}){var n,r,t,x,m,a;return o?(0,i.jsxs)(v.Card,{className:"top-0 left-0 max-w-xl p-6 mx-auto text-center bg-white md:mt-12 md:p-10 lg:mt-12 lg:p-10 xl:absolute xl:mx-0 xl:mt-20 xl:py-24",borderRadius:"md",children:[(0,i.jsx)(p.Text,{weight:"bold",className:"text-xs lg:text-md md:text-sm xl:text-lg text-secondary",children:((n=o==null?void 0:o[l])==null?void 0:n.subtitle)&&((r=o==null?void 0:o[l])==null?void 0:r.subtitle)}),(0,i.jsx)(N.Heading,{fontSize:"3xl",children:((t=o==null?void 0:o[l])==null?void 0:t.title)&&((x=o==null?void 0:o[l])==null?void 0:x.title)}),(0,i.jsx)(p.Text,{muted:!0,className:"text-xs leading-loose text-center md:mt-5 md:text-sm lg:mt-5 lg:text-sm",children:((m=o==null?void 0:o[l])==null?void 0:m.description)&&((a=o==null?void 0:o[l])==null?void 0:a.description)})]}):null}function T({featuredItems:o,children:l,slider:n}){return o?(0,i.jsxs)(s.default.Fragment,{children:[(0,i.jsx)("div",{className:"absolute left-0 z-40 items-center mt-20 -mx-3 order-0 md:mt-40 lg:mt-60 xl:-mx-6 xl:flex",children:(o==null?void 0:o.length)>=2&&(0,i.jsx)(g.Button,{as:"button",ariaLabel:"Show Previous Feature",className:"z-10 p-4 text-white ",onClick:()=>n("prev"),children:(0,i.jsx)("svg",{className:"w-4 h-4",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,i.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M10 19l-7-7m0 0l7-7m-7 7h18"})})})}),l,(0,i.jsx)("div",{className:"absolute right-0 z-40 items-center order-2 mt-20 -mx-3 md:mt-40 lg:mt-60 xl:-mx-6 xl:flex",children:(o==null?void 0:o.length)>=2&&(0,i.jsx)(g.Button,{as:"button",ariaLabel:"Show Next Feature",className:"p-4 text-white ",onClick:()=>n("next"),children:(0,i.jsx)("svg",{className:"w-4 h-4",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,i.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M14 5l7 7m0 0l-7 7m7-7H3"})})})})]}):null}0&&(module.exports={Features_E});
1
+ "use strict";var k=Object.create;var a=Object.defineProperty;var S=Object.getOwnPropertyDescriptor;var z=Object.getOwnPropertyNames;var B=Object.getPrototypeOf,T=Object.prototype.hasOwnProperty;var L=(o,l)=>{for(var n in l)a(o,n,{get:l[n],enumerable:!0})},v=(o,l,n,t)=>{if(l&&typeof l=="object"||typeof l=="function")for(let r of z(l))!T.call(o,r)&&r!==n&&a(o,r,{get:()=>l[r],enumerable:!(t=S(l,r))||t.enumerable});return o};var R=(o,l,n)=>(n=o!=null?k(B(o)):{},v(l||!o||!o.__esModule?a(n,"default",{value:o,enumerable:!0}):n,o)),y=o=>v(a({},"__esModule",{value:!0}),o);var j={};L(j,{Features_E:()=>C,default:()=>C});module.exports=y(j);var p=require("@stackshift-ui/button"),g=require("@stackshift-ui/card"),e=require("@stackshift-ui/container"),N=require("@stackshift-ui/flex"),b=require("@stackshift-ui/heading"),d=require("@stackshift-ui/image"),F=require("@stackshift-ui/section"),h=require("@stackshift-ui/text"),s=R(require("react")),i=require("react/jsx-runtime");function C({featuredItems:o}){let[l,n]=s.default.useState(0);return(0,i.jsx)(F.Section,{className:"py-20 overflow-x-auto bg-background",children:(0,i.jsx)(e.Container,{maxWidth:1280,children:(0,i.jsx)(N.Flex,{className:"relative",children:(0,i.jsx)(W,{featuredItems:o,slider:r=>{o&&(r==="next"?l!==o.length-1?n(x=>x+1):n(0):l>=1?n(x=>x-1):n(o.length-1))},children:(0,i.jsxs)("div",{className:"order-1 w-full ml-auto xl:w-4/5",children:[(0,i.jsx)(H,{featuredItems:o,item:l}),(0,i.jsx)(P,{featuredItems:o,item:l})]})})})})})}function H({featuredItems:o,item:l}){var n,t,r,x,m,c,w;return(t=(n=o==null?void 0:o[l])==null?void 0:n.mainImage)!=null&&t.image?(0,i.jsx)("div",{className:"mx-auto overflow-hidden rounded-md md:max-w-xl xl:max-w-4xl",children:(0,i.jsx)(d.Image,{className:"relative object-cover rounded-md",src:`${(x=(r=o==null?void 0:o[l])==null?void 0:r.mainImage)==null?void 0:x.image}`,sizes:"100vw",width:896,height:575,alt:(w=(c=(m=o==null?void 0:o[l])==null?void 0:m.mainImage)==null?void 0:c.alt)!=null?w:`features-image-${l}`})}):null}function P({featuredItems:o,item:l}){var n,t,r,x,m,c;return o?(0,i.jsxs)(g.Card,{className:"top-0 left-0 max-w-xl p-6 mx-auto text-center bg-white md:mt-12 md:p-10 lg:mt-12 lg:p-10 xl:absolute xl:mx-0 xl:mt-20 xl:py-24 rounded-md",children:[(0,i.jsx)(h.Text,{weight:"bold",className:"text-xs lg:text-md md:text-sm xl:text-lg text-secondary",children:((n=o==null?void 0:o[l])==null?void 0:n.subtitle)&&((t=o==null?void 0:o[l])==null?void 0:t.subtitle)}),(0,i.jsx)(g.CardTitle,{children:(0,i.jsx)(b.Heading,{fontSize:"3xl",children:((r=o==null?void 0:o[l])==null?void 0:r.title)&&((x=o==null?void 0:o[l])==null?void 0:x.title)})}),(0,i.jsx)(h.Text,{muted:!0,className:"text-xs leading-loose text-center md:mt-5 md:text-sm lg:mt-5 lg:text-sm",children:((m=o==null?void 0:o[l])==null?void 0:m.description)&&((c=o==null?void 0:o[l])==null?void 0:c.description)})]}):null}function W({featuredItems:o,children:l,slider:n}){return o?(0,i.jsxs)(s.default.Fragment,{children:[(0,i.jsx)("div",{className:"absolute left-0 z-40 items-center mt-20 -mx-3 order-0 md:mt-40 lg:mt-60 xl:-mx-6 xl:flex",children:(o==null?void 0:o.length)>=2&&(0,i.jsx)(p.Button,{"aria-label":"Show Previous Feature",className:"z-10 p-4 text-white ",onClick:()=>n("prev"),children:(0,i.jsx)("svg",{className:"w-4 h-4",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,i.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M10 19l-7-7m0 0l7-7m-7 7h18"})})})}),l,(0,i.jsx)("div",{className:"absolute right-0 z-40 items-center order-2 mt-20 -mx-3 md:mt-40 lg:mt-60 xl:-mx-6 xl:flex",children:(o==null?void 0:o.length)>=2&&(0,i.jsx)(p.Button,{"aria-label":"Show Next Feature",className:"p-4 text-white ",onClick:()=>n("next"),children:(0,i.jsx)("svg",{className:"w-4 h-4",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,i.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M14 5l7 7m0 0l-7 7m7-7H3"})})})})]}):null}0&&(module.exports={Features_E});
@@ -1 +1 @@
1
- import{a}from"./chunk-7B6FI3PR.mjs";export{a as Features_E,a as default};
1
+ import{a}from"./chunk-2ZMZT34T.mjs";export{a as Features_E,a as default};
@@ -1 +1 @@
1
- "use strict";var d=Object.defineProperty;var p=Object.getOwnPropertyDescriptor;var F=Object.getOwnPropertyNames;var C=Object.prototype.hasOwnProperty;var I=(e,a)=>{for(var i in a)d(e,i,{get:a[i],enumerable:!0})},T=(e,a,i,n)=>{if(a&&typeof a=="object"||typeof a=="function")for(let t of F(a))!C.call(e,t)&&t!==i&&d(e,t,{get:()=>a[t],enumerable:!(n=p(a,t))||n.enumerable});return e};var k=e=>T(d({},"__esModule",{value:!0}),e);var z={};I(z,{Features_F:()=>x,default:()=>x});module.exports=k(z);var c=require("@stackshift-ui/button"),o=require("@stackshift-ui/container"),m=require("@stackshift-ui/flex"),g=require("@stackshift-ui/heading"),u=require("@stackshift-ui/image"),b=require("@stackshift-ui/section"),s=require("@stackshift-ui/text"),l=require("react/jsx-runtime");function x({caption:e,title:a,description:i,images:n,primaryButton:t}){return(0,l.jsx)(b.Section,{className:"py-20 bg-background",children:(0,l.jsx)(o.Container,{maxWidth:1280,children:(0,l.jsxs)(m.Flex,{wrap:!0,align:"center",children:[(0,l.jsxs)(m.Flex,{direction:"col",className:"w-full mb-12 lg:mb-0 lg:w-1/2",children:[(0,l.jsx)(L,{caption:e,title:a,description:i}),(0,l.jsx)(S,{primaryButton:t})]}),(0,l.jsx)(W,{images:n})]})})})}function L({caption:e,title:a,description:i}){return(0,l.jsxs)(o.Container,{maxWidth:448,className:"ml-0",children:[e&&(0,l.jsx)(s.Text,{weight:"bold",className:"font-bold text-secondary",children:e}),a&&(0,l.jsx)(g.Heading,{fontSize:"3xl",className:"mb-6",children:a}),i&&(0,l.jsx)(s.Text,{muted:!0,className:"mb-6 leading-loose",children:i})]})}function S({primaryButton:e}){return e!=null&&e.label?(0,l.jsx)(o.Container,{maxWidth:448,className:"ml-0",children:(0,l.jsx)(c.Button,{as:"link",link:e,ariaLabel:e==null?void 0:e.label,children:e==null?void 0:e.label})}):null}function W({images:e}){var i,n,t,f;if(!e||(e==null?void 0:e.length)===0)return null;function a(v,r,h,w,N){return(0,l.jsx)("div",{className:`overflow-hidden rounded-md ${N}`,children:(0,l.jsx)(u.Image,{className:"object-cover w-full h-full",src:v,sizes:"100vw",width:h,height:w,alt:r!=null?r:"feature-image"})})}return(0,l.jsxs)("div",{className:"w-full lg:w-1/2",children:[(0,l.jsxs)("div",{className:"items-end mb-4 lg:flex lg:flex-wrap",children:[(0,l.jsx)("div",{className:"h-full px-3 mb-4 lg:mb-0 lg:w-2/3",children:((i=e[0])==null?void 0:i.image)&&a(e[0].image,e[0].alt,356,192,"h-[269px]")}),(0,l.jsx)("div",{className:"h-full px-3 lg:w-1/3",children:((n=e[1])==null?void 0:n.image)&&a(e[1].image,e[1].alt,166,128,"")})]}),(0,l.jsxs)("div",{className:"items-start mb-4 lg:flex lg:flex-wrap",children:[(0,l.jsx)("div",{className:"h-full px-3 mb-4 lg:mb-0 lg:w-1/3",children:((t=e[2])==null?void 0:t.image)&&a(e[2].image,e[2].alt,166,128,"h-[269px] lg:h-[126px]")}),(0,l.jsx)("div",{className:"h-full px-3 lg:w-2/3",children:((f=e[3])==null?void 0:f.image)&&a(e[3].image,e[3].alt,356,192,"")})]})]})}0&&(module.exports={Features_F});
1
+ "use strict";var d=Object.defineProperty;var C=Object.getOwnPropertyDescriptor;var k=Object.getOwnPropertyNames;var L=Object.prototype.hasOwnProperty;var I=(e,t)=>{for(var i in t)d(e,i,{get:t[i],enumerable:!0})},S=(e,t,i,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of k(t))!L.call(e,a)&&a!==i&&d(e,a,{get:()=>t[a],enumerable:!(r=C(t,a))||r.enumerable});return e};var T=e=>S(d({},"__esModule",{value:!0}),e);var P={};I(P,{Features_F:()=>v,default:()=>v});module.exports=T(P);var c=require("@stackshift-ui/button"),n=require("@stackshift-ui/container"),m=require("@stackshift-ui/flex"),g=require("@stackshift-ui/heading"),u=require("@stackshift-ui/image"),b=require("@stackshift-ui/link"),x=require("@stackshift-ui/section"),h=require("@stackshift-ui/system"),s=require("@stackshift-ui/text"),l=require("react/jsx-runtime");function v({caption:e,title:t,description:i,images:r,primaryButton:a}){return(0,l.jsx)(x.Section,{className:"py-20 bg-background",children:(0,l.jsx)(n.Container,{maxWidth:1280,children:(0,l.jsxs)(m.Flex,{wrap:!0,align:"center",children:[(0,l.jsxs)(m.Flex,{direction:"col",className:"w-full mb-12 lg:mb-0 lg:w-1/2",children:[(0,l.jsx)(W,{caption:e,title:t,description:i}),(0,l.jsx)(z,{primaryButton:a})]}),(0,l.jsx)(H,{images:r})]})})})}function W({caption:e,title:t,description:i}){return(0,l.jsxs)(n.Container,{maxWidth:448,className:"ml-0",children:[e&&(0,l.jsx)(s.Text,{weight:"bold",className:"font-bold text-secondary",children:e}),t&&(0,l.jsx)(g.Heading,{fontSize:"3xl",className:"mb-6",children:t}),i&&(0,l.jsx)(s.Text,{muted:!0,className:"mb-6 leading-loose",children:i})]})}function z({primaryButton:e}){if(!(e!=null&&e.label))return null;let t=(0,h.buildSanityLink)(e);return(0,l.jsx)(n.Container,{maxWidth:448,className:"ml-0",children:(0,l.jsx)(c.Button,{"aria-label":e==null?void 0:e.label,asChild:!0,children:(0,l.jsx)(b.Link,{href:t.href,target:t.target,rel:t.rel,children:e==null?void 0:e.label})})})}function H({images:e}){var i,r,a,f;if(!e||(e==null?void 0:e.length)===0)return null;function t(w,o,N,p,F){return(0,l.jsx)("div",{className:`overflow-hidden rounded-md ${F}`,children:(0,l.jsx)(u.Image,{className:"object-cover w-full h-full",src:w,sizes:"100vw",width:N,height:p,alt:o!=null?o:"feature-image"})})}return(0,l.jsxs)("div",{className:"w-full lg:w-1/2",children:[(0,l.jsxs)("div",{className:"items-end mb-4 lg:flex lg:flex-wrap",children:[(0,l.jsx)("div",{className:"h-full px-3 mb-4 lg:mb-0 lg:w-2/3",children:((i=e[0])==null?void 0:i.image)&&t(e[0].image,e[0].alt,356,192,"h-[269px]")}),(0,l.jsx)("div",{className:"h-full px-3 lg:w-1/3",children:((r=e[1])==null?void 0:r.image)&&t(e[1].image,e[1].alt,166,128,"")})]}),(0,l.jsxs)("div",{className:"items-start mb-4 lg:flex lg:flex-wrap",children:[(0,l.jsx)("div",{className:"h-full px-3 mb-4 lg:mb-0 lg:w-1/3",children:((a=e[2])==null?void 0:a.image)&&t(e[2].image,e[2].alt,166,128,"h-[269px] lg:h-[126px]")}),(0,l.jsx)("div",{className:"h-full px-3 lg:w-2/3",children:((f=e[3])==null?void 0:f.image)&&t(e[3].image,e[3].alt,356,192,"")})]})]})}0&&(module.exports={Features_F});
@@ -1 +1 @@
1
- import{a}from"./chunk-M4ZCOWFN.mjs";export{a as Features_F,a as default};
1
+ import{a}from"./chunk-W2ZOZPQE.mjs";export{a as Features_F,a as default};
@@ -1 +1 @@
1
- "use strict";var m=Object.defineProperty;var b=Object.getOwnPropertyDescriptor;var N=Object.getOwnPropertyNames;var F=Object.prototype.hasOwnProperty;var y=(e,t)=>{for(var r in t)m(e,r,{get:t[r],enumerable:!0})},I=(e,t,r,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of N(t))!F.call(e,a)&&a!==r&&m(e,a,{get:()=>t[a],enumerable:!(i=b(t,a))||i.enumerable});return e};var z=e=>I(m({},"__esModule",{value:!0}),e);var G={};y(G,{Features_G:()=>p,default:()=>p});module.exports=z(G);var o=require("@stackshift-ui/container"),d=require("@stackshift-ui/flex"),f=require("@stackshift-ui/heading"),c=require("@stackshift-ui/image"),g=require("@stackshift-ui/section"),s=require("@stackshift-ui/text"),l=require("react/jsx-runtime");function p({caption:e,title:t,description:r,images:i,tags:a}){return(0,l.jsx)(g.Section,{className:"py-20 bg-background",children:(0,l.jsx)(o.Container,{maxWidth:1280,children:(0,l.jsxs)(d.Flex,{wrap:!0,align:"center",children:[(0,l.jsx)("div",{className:"w-full px-4 mb-12 lg:mb-0 lg:w-1/2",children:(0,l.jsxs)(o.Container,{maxWidth:448,children:[(0,l.jsx)(C,{caption:e,title:t,description:r}),(0,l.jsx)(T,{tags:a})]})}),(0,l.jsx)(S,{images:i})]})})})}function C({caption:e,title:t,description:r}){return(0,l.jsxs)("div",{className:"flex flex-col gap-3",children:[e&&(0,l.jsx)(s.Text,{weight:"bold",className:"text-secondary",children:e}),t&&(0,l.jsx)(f.Heading,{fontSize:"3xl",className:"mb-3",children:t}),r&&(0,l.jsx)(s.Text,{muted:!0,className:"mb-6 leading-loose ",children:r})]})}function T({tags:e}){return e?(0,l.jsx)("ul",{className:"font-bold text-gray-500",children:e.map(t=>(0,l.jsx)(R,{item:t}))}):null}function R({item:e}){return e?(0,l.jsxs)(d.Flex,{as:"li",align:"center",className:"mb-2 ",children:[(0,l.jsx)("svg",{className:"w-5 h-5 mr-2 text-primary-foreground",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",children:(0,l.jsx)("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z",clipRule:"evenodd"})}),(0,l.jsx)("span",{children:e})]}):null}function S({images:e}){var r,i,a,u;if(!e||(e==null?void 0:e.length)===0)return null;function t(v,n,x,w,h){return(0,l.jsx)("div",{className:`overflow-hidden rounded-md ${h}`,children:(0,l.jsx)(c.Image,{className:"object-cover w-full h-full",src:v,sizes:"100vw",width:x,height:w,alt:n!=null?n:"feature-image"})})}return(0,l.jsxs)("div",{className:"w-full lg:w-1/2",children:[(0,l.jsxs)("div",{className:"items-end mb-4 lg:flex lg:flex-wrap",children:[(0,l.jsx)("div",{className:"h-full px-3 mb-4 lg:mb-0 lg:w-2/3",children:((r=e[0])==null?void 0:r.image)&&t(e[0].image,e[0].alt,356,192,"h-[269px]")}),(0,l.jsx)("div",{className:"h-full px-3 lg:w-1/3",children:((i=e[1])==null?void 0:i.image)&&t(e[1].image,e[1].alt,166,128,"")})]}),(0,l.jsxs)("div",{className:"items-start mb-4 lg:flex lg:flex-wrap",children:[(0,l.jsx)("div",{className:"h-full px-3 mb-4 lg:mb-0 lg:w-1/3",children:((a=e[2])==null?void 0:a.image)&&t(e[2].image,e[2].alt,166,128,"h-[269px] lg:h-[126px]")}),(0,l.jsx)("div",{className:"h-full px-3 lg:w-2/3",children:((u=e[3])==null?void 0:u.image)&&t(e[3].image,e[3].alt,356,192,"")})]})]})}0&&(module.exports={Features_G});
1
+ "use strict";var o=Object.defineProperty;var b=Object.getOwnPropertyDescriptor;var N=Object.getOwnPropertyNames;var F=Object.prototype.hasOwnProperty;var y=(e,t)=>{for(var r in t)o(e,r,{get:t[r],enumerable:!0})},I=(e,t,r,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of N(t))!F.call(e,a)&&a!==r&&o(e,a,{get:()=>t[a],enumerable:!(i=b(t,a))||i.enumerable});return e};var z=e=>I(o({},"__esModule",{value:!0}),e);var H={};y(H,{Features_G:()=>p,default:()=>p});module.exports=z(H);var s=require("@stackshift-ui/container"),n=require("@stackshift-ui/flex"),c=require("@stackshift-ui/heading"),g=require("@stackshift-ui/image"),f=require("@stackshift-ui/section"),d=require("@stackshift-ui/text"),l=require("react/jsx-runtime");function p({caption:e,title:t,description:r,images:i,tags:a}){return(0,l.jsx)(f.Section,{className:"py-20 bg-background",children:(0,l.jsx)(s.Container,{maxWidth:1280,children:(0,l.jsxs)(n.Flex,{wrap:!0,align:"center",children:[(0,l.jsx)("div",{className:"w-full px-4 mb-12 lg:mb-0 lg:w-1/2",children:(0,l.jsxs)(s.Container,{maxWidth:448,children:[(0,l.jsx)(C,{caption:e,title:t,description:r}),(0,l.jsx)(T,{tags:a})]})}),(0,l.jsx)(G,{images:i})]})})})}function C({caption:e,title:t,description:r}){return(0,l.jsxs)(n.Flex,{direction:"col",gap:3,children:[e&&(0,l.jsx)(d.Text,{weight:"bold",className:"text-secondary",children:e}),t&&(0,l.jsx)(c.Heading,{fontSize:"3xl",className:"mb-3",children:t}),r&&(0,l.jsx)(d.Text,{muted:!0,className:"mb-6 leading-loose ",children:r})]})}function T({tags:e}){return e?(0,l.jsx)("ul",{className:"font-bold text-gray-500",children:e.map(t=>(0,l.jsx)(S,{item:t}))}):null}function S({item:e}){return e?(0,l.jsxs)(n.Flex,{as:"li",align:"center",className:"mb-2 ",children:[(0,l.jsx)("svg",{className:"w-5 h-5 mr-2 text-primary",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",children:(0,l.jsx)("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z",clipRule:"evenodd"})}),(0,l.jsx)("span",{children:e})]}):null}function G({images:e}){var r,i,a,u;if(!e||(e==null?void 0:e.length)===0)return null;function t(x,m,v,w,h){return(0,l.jsx)("div",{className:`overflow-hidden rounded-md ${h}`,children:(0,l.jsx)(g.Image,{className:"object-cover w-full h-full",src:x,sizes:"100vw",width:v,height:w,alt:m!=null?m:"feature-image"})})}return(0,l.jsxs)("div",{className:"w-full lg:w-1/2",children:[(0,l.jsxs)("div",{className:"items-end mb-4 lg:flex lg:flex-wrap",children:[(0,l.jsx)("div",{className:"h-full px-3 mb-4 lg:mb-0 lg:w-2/3",children:((r=e[0])==null?void 0:r.image)&&t(e[0].image,e[0].alt,356,192,"h-[269px]")}),(0,l.jsx)("div",{className:"h-full px-3 lg:w-1/3",children:((i=e[1])==null?void 0:i.image)&&t(e[1].image,e[1].alt,166,128,"")})]}),(0,l.jsxs)("div",{className:"items-start mb-4 lg:flex lg:flex-wrap",children:[(0,l.jsx)("div",{className:"h-full px-3 mb-4 lg:mb-0 lg:w-1/3",children:((a=e[2])==null?void 0:a.image)&&t(e[2].image,e[2].alt,166,128,"h-[269px] lg:h-[126px]")}),(0,l.jsx)("div",{className:"h-full px-3 lg:w-2/3",children:((u=e[3])==null?void 0:u.image)&&t(e[3].image,e[3].alt,356,192,"")})]})]})}0&&(module.exports={Features_G});
@@ -1 +1 @@
1
- import{a}from"./chunk-6BDXLZOT.mjs";export{a as Features_G,a as default};
1
+ import{a}from"./chunk-G6RGNQG4.mjs";export{a as Features_G,a as default};
@@ -1 +1 @@
1
- "use strict";var c=Object.defineProperty;var y=Object.getOwnPropertyDescriptor;var F=Object.getOwnPropertyNames;var k=Object.prototype.hasOwnProperty;var A=(t,n)=>{for(var o in n)c(t,o,{get:n[o],enumerable:!0})},I=(t,n,o,e)=>{if(n&&typeof n=="object"||typeof n=="function")for(let l of F(n))!k.call(t,l)&&l!==o&&c(t,l,{get:()=>n[l],enumerable:!(e=y(n,l))||e.enumerable});return t};var C=t=>I(c({},"__esModule",{value:!0}),t);var O={};A(O,{Features_H:()=>T,default:()=>T});module.exports=C(O);var m=require("@stackshift-ui/container"),a=require("@stackshift-ui/flex"),N=require("@stackshift-ui/heading"),d=require("@stackshift-ui/image"),b=require("@stackshift-ui/section"),i=require("@stackshift-ui/text"),r=require("react/jsx-runtime");function T({caption:t,title:n,features:o,images:e}){return(0,r.jsx)(b.Section,{className:"py-20 bg-background",children:(0,r.jsx)(m.Container,{maxWidth:1280,children:(0,r.jsxs)(a.Flex,{wrap:!0,align:"center",children:[(0,r.jsx)("div",{className:"w-full mb-12 lg:mb-0 lg:w-1/2",children:(0,r.jsxs)(m.Container,{maxWidth:448,children:[(0,r.jsx)(z,{caption:t,title:n}),(0,r.jsx)(S,{features:o})]})}),(0,r.jsx)(L,{images:e})]})})})}function z({caption:t,title:n}){return(0,r.jsxs)("div",{className:"flex flex-col gap-3",children:[t&&(0,r.jsx)(i.Text,{weight:"bold",className:"text-secondary",children:t}),n&&(0,r.jsx)(N.Heading,{fontSize:"3xl",className:"mb-6",children:n})]})}function S({features:t}){return!t||(t==null?void 0:t.length)<=0?null:(0,r.jsx)("ul",{children:t.map(n=>(0,r.jsx)(j,{feature:n},n._key))})}function j({feature:t}){return t?(0,r.jsxs)(a.Flex,{as:"li",className:"mb-5",children:[(0,r.jsx)(H,{}),(0,r.jsxs)("div",{className:"max-w-xs",children:[(0,r.jsx)(i.Text,{weight:"bold",className:"text-gray-500",children:t==null?void 0:t.title}),(0,r.jsx)(i.Text,{muted:!0,className:"leading-loose",children:t==null?void 0:t.plainText})]})]}):null}function H(){return(0,r.jsx)("svg",{className:"w-8 h-8 mr-3 text-primary",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,r.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 6V4m0 2a2 2 0 100 4m0-4a2 2 0 110 4m-6 8a2 2 0 100-4m0 4a2 2 0 110-4m0 4v2m0-6V4m6 6v10m6-2a2 2 0 100-4m0 4a2 2 0 110-4m0 4v2m0-6V4"})})}function L({images:t}){var n,o,e,l,x,w,p,v,h,u,f,s;return!t||(t==null?void 0:t.length)===0?null:(0,r.jsxs)("div",{className:"items-center w-full px-4 sm:flex md:px-0 lg:w-1/2",children:[(0,r.jsxs)("div",{className:"mb-5 sm:mb-0 sm:w-1/2",children:[((n=t==null?void 0:t[0])==null?void 0:n.image)&&(0,r.jsx)(d.Image,{className:"object-cover overflow-hidden rounded-md",src:`${(o=t==null?void 0:t[0])==null?void 0:o.image}`,width:640,height:800,sizes:"(max-width: 639px) 100vw, (min-width: 640px) 30vw",alt:(l=(e=t==null?void 0:t[0])==null?void 0:e.alt)!=null?l:"features-image-1"}),((x=t==null?void 0:t[1])==null?void 0:x.image)&&(0,r.jsx)(d.Image,{className:"object-cover mt-6 overflow-hidden rounded-md",src:`${(w=t==null?void 0:t[1])==null?void 0:w.image}`,width:640,height:800,sizes:"(max-width: 639px) 100vw, (min-width: 640px) 30vw",alt:(v=(p=t==null?void 0:t[1])==null?void 0:p.alt)!=null?v:"features-image-2"})]}),((h=t==null?void 0:t[2])==null?void 0:h.image)&&(0,r.jsx)(d.Image,{className:"object-cover overflow-hidden rounded-md sm:ml-6 sm:w-1/2",src:`${(u=t==null?void 0:t[2])==null?void 0:u.image}`,width:640,height:800,sizes:"(max-width: 639px) 100vw, (min-width: 640px) 30vw",alt:(s=(f=t==null?void 0:t[2])==null?void 0:f.alt)!=null?s:"features-image-3"})]})}0&&(module.exports={Features_H});
1
+ "use strict";var m=Object.defineProperty;var y=Object.getOwnPropertyDescriptor;var F=Object.getOwnPropertyNames;var k=Object.prototype.hasOwnProperty;var A=(t,n)=>{for(var o in n)m(t,o,{get:n[o],enumerable:!0})},I=(t,n,o,e)=>{if(n&&typeof n=="object"||typeof n=="function")for(let l of F(n))!k.call(t,l)&&l!==o&&m(t,l,{get:()=>n[l],enumerable:!(e=y(n,l))||e.enumerable});return t};var C=t=>I(m({},"__esModule",{value:!0}),t);var O={};A(O,{Features_H:()=>T,default:()=>T});module.exports=C(O);var x=require("@stackshift-ui/container"),c=require("@stackshift-ui/flex"),N=require("@stackshift-ui/heading"),d=require("@stackshift-ui/image"),b=require("@stackshift-ui/section"),i=require("@stackshift-ui/text"),r=require("react/jsx-runtime");function T({caption:t,title:n,features:o,images:e}){return(0,r.jsx)(b.Section,{className:"py-20 bg-background",children:(0,r.jsx)(x.Container,{maxWidth:1280,children:(0,r.jsxs)(c.Flex,{wrap:!0,align:"center",children:[(0,r.jsx)("div",{className:"w-full mb-12 lg:mb-0 lg:w-1/2",children:(0,r.jsxs)(x.Container,{maxWidth:448,children:[(0,r.jsx)(z,{caption:t,title:n}),(0,r.jsx)(S,{features:o})]})}),(0,r.jsx)(L,{images:e})]})})})}function z({caption:t,title:n}){return(0,r.jsxs)(c.Flex,{gap:3,direction:"col",children:[t&&(0,r.jsx)(i.Text,{weight:"bold",className:"text-secondary",children:t}),n&&(0,r.jsx)(N.Heading,{fontSize:"3xl",className:"mb-6",children:n})]})}function S({features:t}){return!t||(t==null?void 0:t.length)<=0?null:(0,r.jsx)("ul",{children:t.map(n=>(0,r.jsx)(j,{feature:n},n._key))})}function j({feature:t}){return t?(0,r.jsxs)(c.Flex,{as:"li",className:"mb-5",children:[(0,r.jsx)(H,{}),(0,r.jsxs)("div",{className:"max-w-xs",children:[(0,r.jsx)(i.Text,{weight:"bold",className:"text-gray-500",children:t==null?void 0:t.title}),(0,r.jsx)(i.Text,{muted:!0,className:"leading-loose",children:t==null?void 0:t.plainText})]})]}):null}function H(){return(0,r.jsx)("svg",{className:"w-8 h-8 mr-3 text-primary",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,r.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 6V4m0 2a2 2 0 100 4m0-4a2 2 0 110 4m-6 8a2 2 0 100-4m0 4a2 2 0 110-4m0 4v2m0-6V4m6 6v10m6-2a2 2 0 100-4m0 4a2 2 0 110-4m0 4v2m0-6V4"})})}function L({images:t}){var n,o,e,l,w,a,p,h,u,v,f,s;return!t||(t==null?void 0:t.length)===0?null:(0,r.jsxs)("div",{className:"items-center w-full px-4 sm:flex md:px-0 lg:w-1/2",children:[(0,r.jsxs)("div",{className:"mb-5 sm:mb-0 sm:w-1/2",children:[((n=t==null?void 0:t[0])==null?void 0:n.image)&&(0,r.jsx)(d.Image,{className:"object-cover overflow-hidden rounded-md",src:`${(o=t==null?void 0:t[0])==null?void 0:o.image}`,width:640,height:800,sizes:"(max-width: 639px) 100vw, (min-width: 640px) 30vw",alt:(l=(e=t==null?void 0:t[0])==null?void 0:e.alt)!=null?l:"features-image-1"}),((w=t==null?void 0:t[1])==null?void 0:w.image)&&(0,r.jsx)(d.Image,{className:"object-cover mt-6 overflow-hidden rounded-md",src:`${(a=t==null?void 0:t[1])==null?void 0:a.image}`,width:640,height:800,sizes:"(max-width: 639px) 100vw, (min-width: 640px) 30vw",alt:(h=(p=t==null?void 0:t[1])==null?void 0:p.alt)!=null?h:"features-image-2"})]}),((u=t==null?void 0:t[2])==null?void 0:u.image)&&(0,r.jsx)(d.Image,{className:"object-cover overflow-hidden rounded-md sm:ml-6 sm:w-1/2",src:`${(v=t==null?void 0:t[2])==null?void 0:v.image}`,width:640,height:800,sizes:"(max-width: 639px) 100vw, (min-width: 640px) 30vw",alt:(s=(f=t==null?void 0:t[2])==null?void 0:f.alt)!=null?s:"features-image-3"})]})}0&&(module.exports={Features_H});
@@ -1 +1 @@
1
- import{a}from"./chunk-7ZZLNFYE.mjs";export{a as Features_H,a as default};
1
+ import{a}from"./chunk-JHHJEWHR.mjs";export{a as Features_H,a as default};
package/dist/index.js CHANGED
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- "use strict";var nl=Object.create;var S=Object.defineProperty;var ol=Object.getOwnPropertyDescriptor;var rl=Object.getOwnPropertyNames;var ml=Object.getPrototypeOf,al=Object.prototype.hasOwnProperty;var N=(t,l)=>()=>(t&&(l=t(t=0)),l);var h=(t,l)=>{for(var i in l)S(t,i,{get:l[i],enumerable:!0})},ut=(t,l,i,e)=>{if(l&&typeof l=="object"||typeof l=="function")for(let n of rl(l))!al.call(t,n)&&n!==i&&S(t,n,{get:()=>l[n],enumerable:!(e=ol(l,n))||e.enumerable});return t};var sl=(t,l,i)=>(i=t!=null?nl(ml(t)):{},ut(l||!t||!t.__esModule?S(i,"default",{value:t,enumerable:!0}):i,t)),cl=t=>ut(S({},"__esModule",{value:!0}),t);var ft={};h(ft,{Features_A:()=>L,default:()=>L});function L({caption:t,title:l,description:i,features:e}){return(0,x.jsx)(ht.Section,{className:"py-20 bg-background",children:(0,x.jsxs)(P.Container,{maxWidth:1280,children:[(0,x.jsx)(P.Container,{maxWidth:640,className:"mb-16 text-center",children:(0,x.jsx)(dl,{caption:t,title:l,description:i})}),(0,x.jsx)(pl,{features:e})]})})}function dl({caption:t,title:l,description:i}){return(0,x.jsxs)("div",{className:"flex flex-col gap-3",children:[t?(0,x.jsx)(C.Text,{weight:"bold",className:"text-secondary",children:t}):null,l?(0,x.jsx)(wt.Heading,{fontSize:"3xl",children:l}):null,i?(0,x.jsx)(C.Text,{muted:!0,children:i}):null]})}function pl({features:t}){return t?(0,x.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-6",children:t==null?void 0:t.map(l=>(0,x.jsx)(xl,{feature:l},l._key))}):null}function xl({feature:t}){var l;return(0,x.jsxs)("div",{className:"text-center sm:text-start p-3",children:[(l=t==null?void 0:t.mainImage)!=null&&l.image?(0,x.jsx)(gl,{feature:t}):null,t!=null&&t.title?(0,x.jsx)(C.Text,{weight:"bold",className:"mb-4 text-gray-500",fontSize:"xl",children:t==null?void 0:t.title}):null,t!=null&&t.plainText?(0,x.jsx)(C.Text,{muted:!0,children:t==null?void 0:t.plainText}):null]})}function gl({feature:t}){var l,i,e,n;return(l=t==null?void 0:t.mainImage)!=null&&l.image?(0,x.jsx)("span",{className:"inline-block p-3 mb-4 rounded bg-secondary/50 text-primary-foreground md:mb-6",children:(0,x.jsx)(bt.Image,{className:"object-scale-down",src:`${(i=t==null?void 0:t.mainImage)==null?void 0:i.image}`,width:40,height:40,alt:(n=(e=t==null?void 0:t.mainImage)==null?void 0:e.alt)!=null?n:"features-image-"})}):null}var P,wt,bt,ht,C,x,_=N(()=>{"use strict";P=require("@stackshift-ui/container"),wt=require("@stackshift-ui/heading"),bt=require("@stackshift-ui/image"),ht=require("@stackshift-ui/section"),C=require("@stackshift-ui/text"),x=require("react/jsx-runtime")});var Ct={};h(Ct,{Features_B:()=>O,default:()=>O});function O({caption:t,title:l,description:i,features:e,tags:n}){return(0,x.jsx)(ht.Section,{className:"py-20 bg-background",children:(0,x.jsx)(W.Container,{maxWidth:1280,children:(0,x.jsxs)(H.Flex,{wrap:!0,align:"center",children:[(0,x.jsx)("div",{className:"w-full px-4 mb-12 lg:mb-0 lg:w-1/2",children:(0,x.jsxs)(W.Container,{maxWidth:448,children:[(0,x.jsx)(vl,{caption:t,title:l,description:i}),(0,x.jsx)(ul,{tags:n})]})}),(0,x.jsx)(wl,{features:e})]})})})}function vl({caption:t,title:l,description:i}){return(0,x.jsxs)("div",{className:"flex flex-col gap-3",children:[t&&(0,x.jsx)(C.Text,{weight:"bold",className:"text-secondary",children:t}),l&&(0,x.jsx)(wt.Heading,{fontSize:"3xl",children:l}),i&&(0,x.jsx)(C.Text,{muted:!0,className:"mb-6 leading-loose",children:i})]})}function ul({tags:t}){return t?(0,x.jsx)("ul",{children:t&&t.map(l=>(0,x.jsxs)("li",{className:"flex mb-4",children:[(0,x.jsx)("svg",{className:"w-6 h-6 mr-2 text-secondary",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",children:(0,x.jsx)("path",{fillRule:"evenodd",x:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z",clipRule:"evenodd"})}),(0,x.jsx)(C.Text,{muted:!0,weight:"bold",children:l})]},l))}):null}function wl({features:t}){return t?(0,x.jsx)(H.Flex,{wrap:!0,align:"stretch",className:"w-full lg:w-1/2",children:t&&(t==null?void 0:t.map((l,i)=>{var e,n,a,v;return(0,x.jsx)("div",{className:`w-full px-4 mb-8 md:w-1/2 ${i%2===0?"lg:mb-0":"lg:mt-12"}`,children:(0,x.jsxs)(Nt.Card,{className:"py-6 pl-6 pr-4 mb-8 bg-white",borderRadius:"md",children:[((e=l==null?void 0:l.mainImage)==null?void 0:e.image)&&(0,x.jsx)("span",{className:"inline-block p-3 mb-4 rounded-lg bg-secondary/50",children:(0,x.jsx)(bt.Image,{className:"object-scale-down",src:`${(n=l==null?void 0:l.mainImage)==null?void 0:n.image}`,width:40,height:40,alt:(v=(a=l==null?void 0:l.mainImage)==null?void 0:a.alt)!=null?v:`features-image-${i}`})}),(0,x.jsx)(C.Text,{weight:"bold",className:"text-xl md:text-2xl mb-2 text-gray-500 break-all",children:l==null?void 0:l.title}),(0,x.jsx)(C.Text,{muted:!0,className:"leading-loose break-all",children:l==null?void 0:l.plainText})]})},i)}))}):null}var Nt,W,H,wt,bt,ht,C,x,$=N(()=>{"use strict";Nt=require("@stackshift-ui/card"),W=require("@stackshift-ui/container"),H=require("@stackshift-ui/flex")});var Rt={};h(Rt,{Features_C:()=>j,default:()=>j});function j({caption:t,title:l,description:i,features:e}){return(0,x.jsx)(ht.Section,{className:"py-20 bg-background",children:(0,x.jsxs)(W.Container,{maxWidth:1800,children:[(0,x.jsx)(W.Container,{maxWidth:640,className:"mb-16 text-center",children:(0,x.jsx)(bl,{caption:t,title:l,description:i})}),(0,x.jsx)(hl,{features:e})]})})}function bl({caption:t,title:l,description:i}){return(0,x.jsxs)("div",{className:"flex flex-col gap-3",children:[t?(0,x.jsx)(C.Text,{weight:"bold",className:"text-secondary",children:t}):null,l?(0,x.jsx)(wt.Heading,{fontSize:"3xl",children:l}):null,i?(0,x.jsx)(C.Text,{muted:!0,className:"mb-6 leading-loose",children:i}):null]})}function hl({features:t}){return t?(0,x.jsx)("div",{className:"lg:grid lg:grid-cols-2 gap-3",children:t.map(l=>(0,x.jsx)(fl,{feature:l},l._key))}):null}function fl({feature:t}){var l,i,e,n;return(0,x.jsx)("div",{className:"w-full p-3",children:(0,x.jsxs)(kt.Card,{className:"flex flex-wrap h-full p-6 bg-white",borderRadius:"md",children:[(0,x.jsx)("div",{className:"self-start inline-block p-3 mb-4 mr-6 rounded-lg bg-secondary/50 md:p-5 lg:mb-0",children:((l=t==null?void 0:t.mainImage)==null?void 0:l.image)&&(0,x.jsx)(bt.Image,{className:"object-scale-down",src:`${(i=t==null?void 0:t.mainImage)==null?void 0:i.image}`,width:40,height:40,alt:(n=(e=t==null?void 0:t.mainImage)==null?void 0:e.alt)!=null?n:"features-main-image"})}),(0,x.jsxs)("div",{className:"w-full lg:w-2/3 flex flex-col gap-2",children:[(0,x.jsx)(C.Text,{weight:"bold",className:"text-xl md:text-2xl break-all",children:t==null?void 0:t.title}),(0,x.jsx)(C.Text,{muted:!0,className:"break-all",children:t==null?void 0:t.plainText})]})]})})}var kt,W,wt,bt,ht,C,x,M=N(()=>{"use strict";kt=require("@stackshift-ui/card")});var Ht={};h(Ht,{Features_D:()=>B,default:()=>B});function B({caption:t,title:l,description:i,features:e}){return(0,x.jsx)(ht.Section,{className:"py-20 bg-background",children:(0,x.jsxs)(W.Container,{maxWidth:1280,children:[(0,x.jsx)(W.Container,{maxWidth:448,className:"mb-8 text-center",children:(0,x.jsx)(Nl,{caption:t,title:l,description:i})}),(0,x.jsx)(Tl,{features:e})]})})}function Nl({caption:t,title:l,description:i}){return(0,x.jsxs)("div",{className:"flex flex-col gap-3",children:[t?(0,x.jsx)(C.Text,{weight:"bold",className:"text-secondary",children:t}):null,l?(0,x.jsx)(wt.Heading,{fontSize:"3xl",children:l}):null,i?(0,x.jsx)(C.Text,{muted:!0,className:"mb-6 leading-loose",children:i}):null]})}function Tl({features:t}){return t?(0,x.jsx)(H.Flex,{wrap:!0,justify:"center",align:"stretch",children:t.map(l=>(0,x.jsx)(Fl,{feature:l},l._key))}):null}function Fl({feature:t}){var l,i,e,n;return(0,x.jsx)("div",{className:"w-full px-4 mt-8 lg:mb-0 lg:w-1/3",children:(0,x.jsxs)(zt.Card,{className:"h-full px-6 py-12 text-center bg-white",borderRadius:"md",children:[(0,x.jsx)("div",{className:"self-start inline-block p-3 mb-6 rounded-lg bg-secondary/50 md:p-5",children:((l=t==null?void 0:t.mainImage)==null?void 0:l.image)&&(0,x.jsx)(bt.Image,{className:"object-scale-down",src:`${(i=t==null?void 0:t.mainImage)==null?void 0:i.image}`,width:40,height:40,alt:(n=(e=t==null?void 0:t.mainImage)==null?void 0:e.alt)!=null?n:"features-image-"})}),(0,x.jsx)(C.Text,{fontSize:"xl",weight:"bold",className:"px-8 mb-4 text-gray-500",children:t==null?void 0:t.title}),(0,x.jsx)(C.Text,{muted:!0,children:t==null?void 0:t.plainText})]})})}var zt,W,H,wt,bt,ht,C,x,D=N(()=>{"use strict";zt=require("@stackshift-ui/card")});var Bt={};h(Bt,{Features_E:()=>K,default:()=>K});function K({featuredItems:t}){let[l,i]=J.default.useState(0);return(0,x.jsx)(ht.Section,{className:"py-20 overflow-x-auto bg-background",children:(0,x.jsx)($t.Container,{maxWidth:1280,children:(0,x.jsx)(H.Flex,{className:"relative",children:(0,x.jsx)(kl,{featuredItems:t,slider:n=>{t&&(n==="next"?l!==t.length-1?i(a=>a+1):i(0):l>=1?i(a=>a-1):i(t.length-1))},children:(0,x.jsxs)("div",{className:"order-1 w-full ml-auto xl:w-4/5",children:[(0,x.jsx)(yl,{featuredItems:t,item:l}),(0,x.jsx)(Cl,{featuredItems:t,item:l})]})})})})})}function yl({featuredItems:t,item:l}){var i,e,n,a,v,p,u;return(e=(i=t==null?void 0:t[l])==null?void 0:i.mainImage)!=null&&e.image?(0,x.jsx)("div",{className:"mx-auto overflow-hidden rounded-md md:max-w-xl xl:max-w-4xl",children:(0,x.jsx)(bt.Image,{className:"relative object-cover rounded-md",src:`${(a=(n=t==null?void 0:t[l])==null?void 0:n.mainImage)==null?void 0:a.image}`,sizes:"100vw",width:896,height:575,alt:(u=(p=(v=t==null?void 0:t[l])==null?void 0:v.mainImage)==null?void 0:p.alt)!=null?u:`features-image-${l}`})}):null}function Cl({featuredItems:t,item:l}){var i,e,n,a,v,p;return t?(0,x.jsxs)(Ot.Card,{className:"top-0 left-0 max-w-xl p-6 mx-auto text-center bg-white md:mt-12 md:p-10 lg:mt-12 lg:p-10 xl:absolute xl:mx-0 xl:mt-20 xl:py-24",borderRadius:"md",children:[(0,x.jsx)(C.Text,{weight:"bold",className:"text-xs lg:text-md md:text-sm xl:text-lg text-secondary",children:((i=t==null?void 0:t[l])==null?void 0:i.subtitle)&&((e=t==null?void 0:t[l])==null?void 0:e.subtitle)}),(0,x.jsx)(wt.Heading,{fontSize:"3xl",children:((n=t==null?void 0:t[l])==null?void 0:n.title)&&((a=t==null?void 0:t[l])==null?void 0:a.title)}),(0,x.jsx)(C.Text,{muted:!0,className:"text-xs leading-loose text-center md:mt-5 md:text-sm lg:mt-5 lg:text-sm",children:((v=t==null?void 0:t[l])==null?void 0:v.description)&&((p=t==null?void 0:t[l])==null?void 0:p.description)})]}):null}function kl({featuredItems:t,children:l,slider:i}){return t?(0,x.jsxs)(J.default.Fragment,{children:[(0,x.jsx)("div",{className:"absolute left-0 C-40 items-center mt-20 -mx-3 order-0 md:mt-40 lg:mt-60 xl:-mx-6 xl:flex",children:(t==null?void 0:t.length)>=2&&(0,x.jsx)(E.Button,{as:"button",ariaLabel:"Show Previous Feature",className:"C-10 p-4 text-white ",onClick:()=>i("prev"),children:(0,x.jsx)("svg",{className:"w-4 h-4",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,x.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",x:"M10 19l-7-7m0 0l7-7m-7 7h18"})})})}),l,(0,x.jsx)("div",{className:"absolute right-0 C-40 items-center order-2 mt-20 -mx-3 md:mt-40 lg:mt-60 xl:-mx-6 xl:flex",children:(t==null?void 0:t.length)>=2&&(0,x.jsx)(E.Button,{as:"button",ariaLabel:"Show Next Feature",className:"p-4 text-white ",onClick:()=>i("next"),children:(0,x.jsx)("svg",{className:"w-4 h-4",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,x.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",x:"M14 5l7 7m0 0l-7 7m7-7H3"})})})})]}):null}var E,Ot,$t,H,wt,bt,ht,C,J,x,Q=N(()=>{"use strict";E=require("@stackshift-ui/button"),Ot=require("@stackshift-ui/card"),J=sl(require("react"))});var Kt={};h(Kt,{Features_F:()=>Y,default:()=>Y});function Y({caption:t,title:l,description:i,images:e,primaryButton:n}){return(0,x.jsx)(ht.Section,{className:"py-20 bg-background",children:(0,x.jsx)(W.Container,{maxWidth:1280,children:(0,x.jsxs)(H.Flex,{wrap:!0,align:"center",children:[(0,x.jsxs)(H.Flex,{direction:"col",className:"w-full mb-12 lg:mb-0 lg:w-1/2",children:[(0,x.jsx)(Al,{caption:t,title:l,description:i}),(0,x.jsx)(Sl,{primaryButton:n})]}),(0,x.jsx)(Il,{images:e})]})})})}function Al({caption:t,title:l,description:i}){return(0,x.jsxs)(W.Container,{maxWidth:448,className:"ml-0",children:[t&&(0,x.jsx)(C.Text,{weight:"bold",className:"font-bold text-secondary",children:t}),l&&(0,x.jsx)(wt.Heading,{fontSize:"3xl",className:"mb-6",children:l}),i&&(0,x.jsx)(C.Text,{muted:!0,className:"mb-6 leading-loose",children:i})]})}function Sl({primaryButton:t}){return t!=null&&t.label?(0,x.jsx)(W.Container,{maxWidth:448,className:"ml-0",children:(0,x.jsx)(Dt.Button,{as:"link",link:t,ariaLabel:t==null?void 0:t.label,children:t==null?void 0:t.label})}):null}function Il({images:t}){var i,e,n,a;if(!t||(t==null?void 0:t.length)===0)return null;function l(v,p,u,w,b){return(0,x.jsx)("div",{className:`overflow-hidden rounded-md ${b}`,children:(0,x.jsx)(bt.Image,{className:"object-cover w-full h-full",src:v,sizes:"100vw",width:u,height:w,alt:p!=null?p:"feature-image"})})}return(0,x.jsxs)("div",{className:"w-full lg:w-1/2",children:[(0,x.jsxs)("div",{className:"items-end mb-4 lg:flex lg:flex-wrap",children:[(0,x.jsx)("div",{className:"h-full px-3 mb-4 lg:mb-0 lg:w-2/3",children:((i=t[0])==null?void 0:i.image)&&l(t[0].image,t[0].alt,356,192,"h-[269px]")}),(0,x.jsx)("div",{className:"h-full px-3 lg:w-1/3",children:((e=t[1])==null?void 0:e.image)&&l(t[1].image,t[1].alt,166,128,"")})]}),(0,x.jsxs)("div",{className:"items-start mb-4 lg:flex lg:flex-wrap",children:[(0,x.jsx)("div",{className:"h-full px-3 mb-4 lg:mb-0 lg:w-1/3",children:((n=t[2])==null?void 0:n.image)&&l(t[2].image,t[2].alt,166,128,"h-[269px] lg:h-[126px]")}),(0,x.jsx)("div",{className:"h-full px-3 lg:w-2/3",children:((a=t[3])==null?void 0:a.image)&&l(t[3].image,t[3].alt,356,192,"")})]})]})}var Dt,W,H,wt,bt,ht,C,x,Z=N(()=>{"use strict";Dt=require("@stackshift-ui/button")});var Yt={};h(Yt,{Features_G:()=>et,default:()=>et});function et({caption:t,title:l,description:i,images:e,tags:n}){return(0,x.jsx)(ht.Section,{className:"py-20 bg-background",children:(0,x.jsx)(tt.Container,{maxWidth:1280,children:(0,x.jsxs)(H.Flex,{wrap:!0,align:"center",children:[(0,x.jsx)("div",{className:"w-full px-4 mb-12 lg:mb-0 lg:w-1/2",children:(0,x.jsxs)(tt.Container,{maxWidth:448,children:[(0,x.jsx)(Rl,{caption:t,title:l,description:i}),(0,x.jsx)(zl,{tags:n})]})}),(0,x.jsx)(Ll,{images:e})]})})})}function Rl({caption:t,title:l,description:i}){return(0,x.jsxs)("div",{className:"flex flex-col gap-3",children:[t&&(0,x.jsx)(C.Text,{weight:"bold",className:"text-secondary",children:t}),l&&(0,x.jsx)(wt.Heading,{fontSize:"3xl",className:"mb-3",children:l}),i&&(0,x.jsx)(C.Text,{muted:!0,className:"mb-6 leading-loose ",children:i})]})}function zl({tags:t}){return t?(0,x.jsx)("ul",{className:"font-bold text-gray-500",children:t.map(l=>(0,x.jsx)(Pl,{item:l}))}):null}function Pl({item:t}){return t?(0,x.jsxs)(H.Flex,{as:"li",align:"center",className:"mb-2 ",children:[(0,x.jsx)("svg",{className:"w-5 h-5 mr-2 text-primary-foreground",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",children:(0,x.jsx)("path",{fillRule:"evenodd",x:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z",clipRule:"evenodd"})}),(0,x.jsx)("span",{children:t})]}):null}function Ll({images:t}){var i,e,n,a;if(!t||(t==null?void 0:t.length)===0)return null;function l(v,p,u,w,b){return(0,x.jsx)("div",{className:`overflow-hidden rounded-md ${b}`,children:(0,x.jsx)(bt.Image,{className:"object-cover w-full h-full",src:v,sizes:"100vw",width:u,height:w,alt:p!=null?p:"feature-image"})})}return(0,x.jsxs)("div",{className:"w-full lg:w-1/2",children:[(0,x.jsxs)("div",{className:"items-end mb-4 lg:flex lg:flex-wrap",children:[(0,x.jsx)("div",{className:"h-full px-3 mb-4 lg:mb-0 lg:w-2/3",children:((i=t[0])==null?void 0:i.image)&&l(t[0].image,t[0].alt,356,192,"h-[269px]")}),(0,x.jsx)("div",{className:"h-full px-3 lg:w-1/3",children:((e=t[1])==null?void 0:e.image)&&l(t[1].image,t[1].alt,166,128,"")})]}),(0,x.jsxs)("div",{className:"items-start mb-4 lg:flex lg:flex-wrap",children:[(0,x.jsx)("div",{className:"h-full px-3 mb-4 lg:mb-0 lg:w-1/3",children:((n=t[2])==null?void 0:n.image)&&l(t[2].image,t[2].alt,166,128,"h-[269px] lg:h-[126px]")}),(0,x.jsx)("div",{className:"h-full px-3 lg:w-2/3",children:((a=t[3])==null?void 0:a.image)&&l(t[3].image,t[3].alt,356,192,"")})]})]})}var tt,H,wt,bt,ht,C,x,nt=N(()=>{"use strict";tt=require("@stackshift-ui/container")});var ll={};h(ll,{Features_H:()=>mt,default:()=>mt});function mt({caption:t,title:l,features:i,images:e}){return(0,x.jsx)(ht.Section,{className:"py-20 bg-background",children:(0,x.jsx)(ot.Container,{maxWidth:1280,children:(0,x.jsxs)(H.Flex,{wrap:!0,align:"center",children:[(0,x.jsx)("div",{className:"w-full mb-12 lg:mb-0 lg:w-1/2",children:(0,x.jsxs)(ot.Container,{maxWidth:448,children:[(0,x.jsx)(_l,{caption:t,title:l}),(0,x.jsx)(Wl,{features:i})]})}),(0,x.jsx)($l,{images:e})]})})})}function _l({caption:t,title:l}){return(0,x.jsxs)("div",{className:"flex flex-col gap-3",children:[t&&(0,x.jsx)(C.Text,{weight:"bold",className:"text-secondary",children:t}),l&&(0,x.jsx)(wt.Heading,{fontSize:"3xl",className:"mb-6",children:l})]})}function Wl({features:t}){return!t||(t==null?void 0:t.length)<=0?null:(0,x.jsx)("ul",{children:t.map(l=>(0,x.jsx)(Hl,{feature:l},l._key))})}function Hl({feature:t}){return t?(0,x.jsxs)(H.Flex,{as:"li",className:"mb-5",children:[(0,x.jsx)(Ol,{}),(0,x.jsxs)("div",{className:"max-w-xs",children:[(0,x.jsx)(C.Text,{weight:"bold",className:"text-gray-500",children:t==null?void 0:t.title}),(0,x.jsx)(C.Text,{muted:!0,className:"leading-loose",children:t==null?void 0:t.plainText})]})]}):null}function Ol(){return(0,x.jsx)("svg",{className:"w-8 h-8 mr-3 text-primary",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,x.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,x:"M12 6V4m0 2a2 2 0 100 4m0-4a2 2 0 110 4m-6 8a2 2 0 100-4m0 4a2 2 0 110-4m0 4v2m0-6V4m6 6v10m6-2a2 2 0 100-4m0 4a2 2 0 110-4m0 4v2m0-6V4"})})}function $l({images:t}){var l,i,e,n,a,v,p,u,w,b,F,y;return!t||(t==null?void 0:t.length)===0?null:(0,x.jsxs)("div",{className:"items-center w-full px-4 sm:flex md:px-0 lg:w-1/2",children:[(0,x.jsxs)("div",{className:"mb-5 sm:mb-0 sm:w-1/2",children:[((l=t==null?void 0:t[0])==null?void 0:l.image)&&(0,x.jsx)(bt.Image,{className:"object-cover overflow-hidden rounded-md",src:`${(i=t==null?void 0:t[0])==null?void 0:i.image}`,width:640,height:800,sizes:"(max-width: 639px) 100vw, (min-width: 640px) 30vw",alt:(n=(e=t==null?void 0:t[0])==null?void 0:e.alt)!=null?n:"features-image-1"}),((a=t==null?void 0:t[1])==null?void 0:a.image)&&(0,x.jsx)(bt.Image,{className:"object-cover mt-6 overflow-hidden rounded-md",src:`${(v=t==null?void 0:t[1])==null?void 0:v.image}`,width:640,height:800,sizes:"(max-width: 639px) 100vw, (min-width: 640px) 30vw",alt:(u=(p=t==null?void 0:t[1])==null?void 0:p.alt)!=null?u:"features-image-2"})]}),((w=t==null?void 0:t[2])==null?void 0:w.image)&&(0,x.jsx)(bt.Image,{className:"object-cover overflow-hidden rounded-md sm:ml-6 sm:w-1/2",src:`${(b=t==null?void 0:t[2])==null?void 0:b.image}`,width:640,height:800,sizes:"(max-width: 639px) 100vw, (min-width: 640px) 30vw",alt:(y=(F=t==null?void 0:t[2])==null?void 0:F.alt)!=null?y:"features-image-3"})]})}var ot,H,wt,bt,ht,C,x,at=N(()=>{"use strict";ot=require("@stackshift-ui/container")});var Ml={};h(Ml,{Features:()=>il,Features_A:()=>L,Features_B:()=>O,Features_C:()=>j,Features_D:()=>B,Features_E:()=>K,Features_F:()=>Y,Features_G:()=>et,Features_H:()=>mt});module.exports=cl(Ml);var f=require("react"),Vl={variant_a:(0,f.lazy)(()=>Promise.resolve().then(()=>(_(),ft))),variant_b:(0,f.lazy)(()=>Promise.resolve().then(()=>($(),Ct))),variant_c:(0,f.lazy)(()=>Promise.resolve().then(()=>(M(),Rt))),variant_d:(0,f.lazy)(()=>Promise.resolve().then(()=>(D(),Ht))),variant_e:(0,f.lazy)(()=>Promise.resolve().then(()=>(Q(),Bt))),variant_f:(0,f.lazy)(()=>Promise.resolve().then(()=>(Z(),Kt))),variant_g:(0,f.lazy)(()=>Promise.resolve().then(()=>(nt(),Yt))),variant_h:(0,f.lazy)(()=>Promise.resolve().then(()=>(at(),ll)))},jl="Features",il=({data:t})=>{var n,a,v,p,u,w,b,F,y,st,ct,dt,pt,xt,gt,vt;let l=t==null?void 0:t.variant,i=l&&Vl[l],e={caption:(a=(n=t==null?void 0:t.variants)==null?void 0:n.subtitle)!=null?a:void 0,title:(p=(v=t==null?void 0:t.variants)==null?void 0:v.title)!=null?p:void 0,description:(w=(u=t==null?void 0:t.variants)==null?void 0:u.description)!=null?w:void 0,features:(F=(b=t==null?void 0:t.variants)==null?void 0:b.arrayOfImageTitleAndText)!=null?F:void 0,tags:(st=(y=t==null?void 0:t.variants)==null?void 0:y.tags)!=null?st:void 0,featuredItems:(dt=(ct=t==null?void 0:t.variants)==null?void 0:ct.featuredItems)!=null?dt:void 0,images:(xt=(pt=t==null?void 0:t.variants)==null?void 0:pt.images)!=null?xt:void 0,primaryButton:(vt=(gt=t==null?void 0:t.variants)==null?void 0:gt.primaryButton)!=null?vt:void 0};return i?(0,x.jsx)(i,{...e}):null};il.displayName=jl;_();$();M();D();Q();Z();nt();at();0&&(module.exports={Features,Features_A,Features_B,Features_C,Features_D,Features_E,Features_F,Features_G,Features_H});
2
+ "use strict";var Bt=Object.create;var y=Object.defineProperty;var Dt=Object.getOwnPropertyDescriptor;var Et=Object.getOwnPropertyNames;var qt=Object.getPrototypeOf,Jt=Object.prototype.hasOwnProperty;var Kt=(t,l)=>{for(var i in l)y(t,i,{get:l[i],enumerable:!0})},ct=(t,l,i,n)=>{if(l&&typeof l=="object"||typeof l=="function")for(let e of Et(l))!Jt.call(t,e)&&e!==i&&y(t,e,{get:()=>l[e],enumerable:!(n=Dt(l,e))||n.enumerable});return t};var Qt=(t,l,i)=>(i=t!=null?Bt(qt(t)):{},ct(l||!t||!t.__esModule?y(i,"default",{value:t,enumerable:!0}):i,t)),Ut=t=>ct(y({},"__esModule",{value:!0}),t);var Al={};Kt(Al,{Features:()=>Gt,Features_A:()=>C,Features_B:()=>k,Features_C:()=>I,Features_D:()=>L,Features_E:()=>H,Features_F:()=>O,Features_G:()=>$,Features_H:()=>M});module.exports=Ut(Al);var B=require("@stackshift-ui/container"),dt=require("@stackshift-ui/flex"),pt=require("@stackshift-ui/heading"),gt=require("@stackshift-ui/image"),xt=require("@stackshift-ui/section"),F=require("@stackshift-ui/text"),g=require("react/jsx-runtime");function C({caption:t,title:l,description:i,features:n}){return(0,g.jsx)(xt.Section,{className:"py-20 bg-background",children:(0,g.jsxs)(B.Container,{maxWidth:1280,children:[(0,g.jsx)(B.Container,{maxWidth:640,className:"mb-16 text-center",children:(0,g.jsx)(Xt,{caption:t,title:l,description:i})}),(0,g.jsx)(Yt,{features:n})]})})}function Xt({caption:t,title:l,description:i}){return(0,g.jsxs)(dt.Flex,{direction:"col",gap:3,align:"center",children:[t?(0,g.jsx)(F.Text,{weight:"bold",className:"text-secondary",children:t}):null,l?(0,g.jsx)(pt.Heading,{fontSize:"3xl",children:l}):null,i?(0,g.jsx)(F.Text,{muted:!0,children:i}):null]})}function Yt({features:t}){return t?(0,g.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-6",children:t==null?void 0:t.map(l=>(0,g.jsx)(Zt,{feature:l},l._key))}):null}function Zt({feature:t}){var l;return(0,g.jsxs)("div",{className:"text-center sm:text-start p-3",children:[(l=t==null?void 0:t.mainImage)!=null&&l.image?(0,g.jsx)(tl,{feature:t}):null,t!=null&&t.title?(0,g.jsx)(F.Text,{weight:"bold",className:"mb-4 text-gray-500",fontSize:"xl",children:t==null?void 0:t.title}):null,t!=null&&t.plainText?(0,g.jsx)(F.Text,{muted:!0,children:t==null?void 0:t.plainText}):null]})}function tl({feature:t}){var l,i,n,e;return(l=t==null?void 0:t.mainImage)!=null&&l.image?(0,g.jsx)("span",{className:"inline-block p-3 mb-4 rounded bg-secondary/50 text-primary-foreground md:mb-6",children:(0,g.jsx)(gt.Image,{className:"object-scale-down",src:`${(i=t==null?void 0:t.mainImage)==null?void 0:i.image}`,width:40,height:40,alt:(e=(n=t==null?void 0:t.mainImage)==null?void 0:n.alt)!=null?e:"features-image-"})}):null}var ut=require("@stackshift-ui/card");function k({caption:t,title:l,description:i,features:n,tags:e}){return(0,g.jsx)(xt.Section,{className:"py-20 bg-background",children:(0,g.jsx)(B.Container,{maxWidth:1280,children:(0,g.jsxs)(dt.Flex,{wrap:!0,align:"center",children:[(0,g.jsx)("div",{className:"w-full px-4 mb-12 lg:mb-0 lg:w-1/2",children:(0,g.jsxs)(B.Container,{maxWidth:448,children:[(0,g.jsx)(ll,{caption:t,title:l,description:i}),(0,g.jsx)(il,{tags:e})]})}),(0,g.jsx)(nl,{features:n})]})})})}function ll({caption:t,title:l,description:i}){return(0,g.jsxs)(dt.Flex,{direction:"col",gap:3,children:[t&&(0,g.jsx)(F.Text,{weight:"bold",className:"text-secondary",children:t}),l&&(0,g.jsx)(pt.Heading,{fontSize:"3xl",children:l}),i&&(0,g.jsx)(F.Text,{muted:!0,className:"mb-6 leading-loose",children:i})]})}function il({tags:t}){return t?(0,g.jsx)("ul",{children:t&&t.map(l=>(0,g.jsxs)(dt.Flex,{as:"li",className:"mb-4",children:[(0,g.jsx)("svg",{className:"w-6 F-6 mr-2 text-secondary",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",children:(0,g.jsx)("path",{fillRule:"evenodd",g:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z",clipRule:"evenodd"})}),(0,g.jsx)(F.Text,{muted:!0,weight:"bold",children:l})]},l))}):null}function nl({features:t}){return t?(0,g.jsx)(dt.Flex,{wrap:!0,align:"stretch",className:"w-full lg:w-1/2",children:t&&(t==null?void 0:t.map((l,i)=>{var n,e,c,u;return(0,g.jsx)("div",{className:`w-full px-4 mb-8 md:w-1/2 ${i%2===0?"lg:mb-0":"lg:mt-12"}`,children:(0,g.jsxs)(ut.Card,{className:"py-6 pl-6 pr-4 mb-8 bg-white rounded-md",children:[((n=l==null?void 0:l.mainImage)==null?void 0:n.image)&&(0,g.jsx)("span",{className:"inline-block p-3 mb-4 rounded-lg bg-secondary/50",children:(0,g.jsx)(gt.Image,{className:"object-scale-down",src:`${(e=l==null?void 0:l.mainImage)==null?void 0:e.image}`,width:40,height:40,alt:(u=(c=l==null?void 0:l.mainImage)==null?void 0:c.alt)!=null?u:`features-image-${i}`})}),(0,g.jsx)(F.Text,{weight:"bold",className:"text-xl md:text-2xl mb-2 text-gray-500 break-normal",children:l==null?void 0:l.title}),(0,g.jsx)(F.Text,{muted:!0,className:"leading-loose break-normal",children:l==null?void 0:l.plainText})]})},i)}))}):null}function I({caption:t,title:l,description:i,features:n}){return(0,g.jsx)(xt.Section,{className:"py-20 bg-background",children:(0,g.jsxs)(B.Container,{maxWidth:1800,children:[(0,g.jsx)(B.Container,{maxWidth:640,className:"mb-16 text-center",children:(0,g.jsx)(el,{caption:t,title:l,description:i})}),(0,g.jsx)(rl,{features:n})]})})}function el({caption:t,title:l,description:i}){return(0,g.jsxs)(dt.Flex,{direction:"col",gap:3,align:"center",children:[t?(0,g.jsx)(F.Text,{weight:"bold",className:"text-secondary",children:t}):null,l?(0,g.jsx)(pt.Heading,{fontSize:"3xl",children:l}):null,i?(0,g.jsx)(F.Text,{muted:!0,className:"mb-6 leading-loose",children:i}):null]})}function rl({features:t}){return t?(0,g.jsx)("div",{className:"lg:grid lg:grid-cols-2 gap-3",children:t.map(l=>(0,g.jsx)(ol,{feature:l},l._key))}):null}function ol({feature:t}){var l,i,n,e;return(0,g.jsx)("div",{className:"w-full p-3",children:(0,g.jsxs)(ut.Card,{className:"flex F-full p-6 bg-white rounded-md",children:[(0,g.jsx)("div",{className:"self-start inline-block p-3 mb-4 mr-6 rounded-lg bg-secondary/50 md:p-5 lg:mb-0",children:((l=t==null?void 0:t.mainImage)==null?void 0:l.image)&&(0,g.jsx)(gt.Image,{className:"object-scale-down",src:`${(i=t==null?void 0:t.mainImage)==null?void 0:i.image}`,width:40,height:40,alt:(e=(n=t==null?void 0:t.mainImage)==null?void 0:n.alt)!=null?e:"features-main-image"})}),(0,g.jsxs)(dt.Flex,{direction:"col",gap:2,className:"w-full",children:[(0,g.jsx)(ut.CardTitle,{className:"text-xl md:text-2xl break-normal font-bold",children:t==null?void 0:t.title}),(0,g.jsx)(F.Text,{muted:!0,className:"break-all",children:t==null?void 0:t.plainText})]})]})})}function L({caption:t,title:l,description:i,features:n}){return(0,g.jsx)(xt.Section,{className:"py-20 bg-background",children:(0,g.jsxs)(B.Container,{maxWidth:1280,children:[(0,g.jsx)(B.Container,{maxWidth:640,className:"mb-8 text-center",children:(0,g.jsx)(ml,{caption:t,title:l,description:i})}),(0,g.jsx)(al,{features:n})]})})}function ml({caption:t,title:l,description:i}){return(0,g.jsxs)(dt.Flex,{direction:"col",gap:3,align:"center",children:[t?(0,g.jsx)(F.Text,{weight:"bold",className:"text-secondary",children:t}):null,l?(0,g.jsx)(pt.Heading,{fontSize:"3xl",children:l}):null,i?(0,g.jsx)(F.Text,{muted:!0,className:"mb-6 leading-loose",children:i}):null]})}function al({features:t}){return t?(0,g.jsx)(dt.Flex,{wrap:!0,justify:"center",align:"stretch",children:t.map(l=>(0,g.jsx)(sl,{feature:l},l._key))}):null}function sl({feature:t}){var l,i,n,e;return(0,g.jsx)("div",{className:"w-full px-4 mt-8 lg:mb-0 lg:w-1/3",children:(0,g.jsxs)(ut.Card,{className:"F-full px-6 py-12 text-center bg-white rounded-md",children:[(0,g.jsx)("div",{className:"self-start inline-block p-3 mb-6 rounded-lg bg-secondary/50 md:p-5",children:((l=t==null?void 0:t.mainImage)==null?void 0:l.image)&&(0,g.jsx)(gt.Image,{className:"object-scale-down",src:`${(i=t==null?void 0:t.mainImage)==null?void 0:i.image}`,width:40,height:40,alt:(e=(n=t==null?void 0:t.mainImage)==null?void 0:n.alt)!=null?e:"features-image-"})}),(0,g.jsx)(ut.CardTitle,{className:"px-8 mb-4 text-gray-500 font-bold text-xl",children:t==null?void 0:t.title}),(0,g.jsx)(F.Text,{muted:!0,children:t==null?void 0:t.plainText})]})})}var Q=require("@stackshift-ui/button"),X=Qt(require("react"));function H({featuredItems:t}){let[l,i]=X.default.useState(0);return(0,g.jsx)(xt.Section,{className:"py-20 overflow-g-auto bg-background",children:(0,g.jsx)(B.Container,{maxWidth:1280,children:(0,g.jsx)(dt.Flex,{className:"relative",children:(0,g.jsx)(pl,{featuredItems:t,slider:e=>{t&&(e==="next"?l!==t.length-1?i(c=>c+1):i(0):l>=1?i(c=>c-1):i(t.length-1))},children:(0,g.jsxs)("div",{className:"order-1 w-full ml-auto xl:w-4/5",children:[(0,g.jsx)(cl,{featuredItems:t,item:l}),(0,g.jsx)(dl,{featuredItems:t,item:l})]})})})})})}function cl({featuredItems:t,item:l}){var i,n,e,c,u,p,v;return(n=(i=t==null?void 0:t[l])==null?void 0:i.mainImage)!=null&&n.image?(0,g.jsx)("div",{className:"mx-auto overflow-hidden rounded-md md:max-w-xl xl:max-w-4xl",children:(0,g.jsx)(gt.Image,{className:"relative object-cover rounded-md",src:`${(c=(e=t==null?void 0:t[l])==null?void 0:e.mainImage)==null?void 0:c.image}`,sizes:"100vw",width:896,height:575,alt:(v=(p=(u=t==null?void 0:t[l])==null?void 0:u.mainImage)==null?void 0:p.alt)!=null?v:`features-image-${l}`})}):null}function dl({featuredItems:t,item:l}){var i,n,e,c,u,p;return t?(0,g.jsxs)(ut.Card,{className:"top-0 left-0 max-w-xl p-6 mx-auto text-center bg-white md:mt-12 md:p-10 lg:mt-12 lg:p-10 xl:absolute xl:mx-0 xl:mt-20 xl:py-24 rounded-md",children:[(0,g.jsx)(F.Text,{weight:"bold",className:"text-xs lg:text-md md:text-sm xl:text-lg text-secondary",children:((i=t==null?void 0:t[l])==null?void 0:i.subtitle)&&((n=t==null?void 0:t[l])==null?void 0:n.subtitle)}),(0,g.jsx)(ut.CardTitle,{children:(0,g.jsx)(pt.Heading,{fontSize:"3xl",children:((e=t==null?void 0:t[l])==null?void 0:e.title)&&((c=t==null?void 0:t[l])==null?void 0:c.title)})}),(0,g.jsx)(F.Text,{muted:!0,className:"text-xs leading-loose text-center md:mt-5 md:text-sm lg:mt-5 lg:text-sm",children:((u=t==null?void 0:t[l])==null?void 0:u.description)&&((p=t==null?void 0:t[l])==null?void 0:p.description)})]}):null}function pl({featuredItems:t,children:l,slider:i}){return t?(0,g.jsxs)(X.default.Fragment,{children:[(0,g.jsx)("div",{className:"absolute left-0 ut-40 items-center mt-20 -mx-3 order-0 md:mt-40 lg:mt-60 xl:-mx-6 xl:flex",children:(t==null?void 0:t.length)>=2&&(0,g.jsx)(Q.Button,{"aria-label":"Show Previous Feature",className:"ut-10 p-4 text-white ",onClick:()=>i("prev"),children:(0,g.jsx)("svg",{className:"w-4 F-4",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,g.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",g:"M10 19l-7-7m0 0l7-7m-7 7h18"})})})}),l,(0,g.jsx)("div",{className:"absolute right-0 ut-40 items-center order-2 mt-20 -mx-3 md:mt-40 lg:mt-60 xl:-mx-6 xl:flex",children:(t==null?void 0:t.length)>=2&&(0,g.jsx)(Q.Button,{"aria-label":"Show Next Feature",className:"p-4 text-white ",onClick:()=>i("next"),children:(0,g.jsx)("svg",{className:"w-4 F-4",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,g.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",g:"M14 5l7 7m0 0l-7 7m7-7H3"})})})})]}):null}var _t=require("@stackshift-ui/link"),Wt=require("@stackshift-ui/system");function O({caption:t,title:l,description:i,images:n,primaryButton:e}){return(0,g.jsx)(xt.Section,{className:"py-20 bg-background",children:(0,g.jsx)(B.Container,{maxWidth:1280,children:(0,g.jsxs)(dt.Flex,{wrap:!0,align:"center",children:[(0,g.jsxs)(dt.Flex,{direction:"col",className:"w-full mb-12 lg:mb-0 lg:w-1/2",children:[(0,g.jsx)(gl,{caption:t,title:l,description:i}),(0,g.jsx)(xl,{primaryButton:e})]}),(0,g.jsx)(ul,{images:n})]})})})}function gl({caption:t,title:l,description:i}){return(0,g.jsxs)(B.Container,{maxWidth:448,className:"ml-0",children:[t&&(0,g.jsx)(F.Text,{weight:"bold",className:"font-bold text-secondary",children:t}),l&&(0,g.jsx)(pt.Heading,{fontSize:"3xl",className:"mb-6",children:l}),i&&(0,g.jsx)(F.Text,{muted:!0,className:"mb-6 leading-loose",children:i})]})}function xl({primaryButton:t}){if(!(t!=null&&t.label))return null;let l=(0,Wt.buildSanityLink)(t);return(0,g.jsx)(B.Container,{maxWidth:448,className:"ml-0",children:(0,g.jsx)(Q.Button,{"aria-label":t==null?void 0:t.label,asChild:!0,children:(0,g.jsx)(_t.Link,{href:l.href,target:l.target,rel:l.rel,children:t==null?void 0:t.label})})})}function ul({images:t}){var i,n,e,c;if(!t||(t==null?void 0:t.length)===0)return null;function l(u,p,v,w,b){return(0,g.jsx)("div",{className:`overflow-hidden rounded-md ${b}`,children:(0,g.jsx)(gt.Image,{className:"object-cover w-full F-full",src:u,sizes:"100vw",width:v,height:w,alt:p!=null?p:"feature-image"})})}return(0,g.jsxs)("div",{className:"w-full lg:w-1/2",children:[(0,g.jsxs)("div",{className:"items-end mb-4 lg:flex lg:flex-wrap",children:[(0,g.jsx)("div",{className:"F-full px-3 mb-4 lg:mb-0 lg:w-2/3",children:((i=t[0])==null?void 0:i.image)&&l(t[0].image,t[0].alt,356,192,"F-[269px]")}),(0,g.jsx)("div",{className:"F-full px-3 lg:w-1/3",children:((n=t[1])==null?void 0:n.image)&&l(t[1].image,t[1].alt,166,128,"")})]}),(0,g.jsxs)("div",{className:"items-start mb-4 lg:flex lg:flex-wrap",children:[(0,g.jsx)("div",{className:"F-full px-3 mb-4 lg:mb-0 lg:w-1/3",children:((e=t[2])==null?void 0:e.image)&&l(t[2].image,t[2].alt,166,128,"F-[269px] lg:F-[126px]")}),(0,g.jsx)("div",{className:"F-full px-3 lg:w-2/3",children:((c=t[3])==null?void 0:c.image)&&l(t[3].image,t[3].alt,356,192,"")})]})]})}function $({caption:t,title:l,description:i,images:n,tags:e}){return(0,g.jsx)($t.Section,{className:"py-20 bg-background",children:(0,g.jsx)(B.Container,{maxWidth:1280,children:(0,g.jsxs)(dt.Flex,{wrap:!0,align:"center",children:[(0,g.jsx)("div",{className:"w-full px-4 mb-12 lg:mb-0 lg:w-1/2",children:(0,g.jsxs)(B.Container,{maxWidth:448,children:[(0,g.jsx)(vl,{caption:t,title:l,description:i}),(0,g.jsx)(wl,{tags:e})]})}),(0,g.jsx)(hl,{images:n})]})})})}function vl({caption:t,title:l,description:i}){return(0,g.jsxs)(dt.Flex,{direction:"col",gap:3,children:[t&&(0,g.jsx)(F.Text,{weight:"bold",className:"text-secondary",children:t}),l&&(0,g.jsx)(pt.Heading,{fontSize:"3xl",className:"mb-3",children:l}),i&&(0,g.jsx)(F.Text,{muted:!0,className:"mb-6 leading-loose ",children:i})]})}function wl({tags:t}){return t?(0,g.jsx)("ul",{className:"font-bold text-gray-500",children:t.map(l=>(0,g.jsx)(bl,{item:l}))}):null}function bl({item:t}){return t?(0,g.jsxs)(dt.Flex,{as:"li",align:"center",className:"mb-2 ",children:[(0,g.jsx)("svg",{className:"w-5 F-5 mr-2 text-primary",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",children:(0,g.jsx)("path",{fillRule:"evenodd",g:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z",clipRule:"evenodd"})}),(0,g.jsx)("span",{children:t})]}):null}function hl({images:t}){var i,n,e,c;if(!t||(t==null?void 0:t.length)===0)return null;function l(u,p,v,w,b){return(0,g.jsx)("div",{className:`overflow-hidden rounded-md ${b}`,children:(0,g.jsx)(gt.Image,{className:"object-cover w-full F-full",src:u,sizes:"100vw",width:v,height:w,alt:p!=null?p:"feature-image"})})}return(0,g.jsxs)("div",{className:"w-full lg:w-1/2",children:[(0,g.jsxs)("div",{className:"items-end mb-4 lg:flex lg:flex-wrap",children:[(0,g.jsx)("div",{className:"F-full px-3 mb-4 lg:mb-0 lg:w-2/3",children:((i=t[0])==null?void 0:i.image)&&l(t[0].image,t[0].alt,356,192,"F-[269px]")}),(0,g.jsx)("div",{className:"F-full px-3 lg:w-1/3",children:((n=t[1])==null?void 0:n.image)&&l(t[1].image,t[1].alt,166,128,"")})]}),(0,g.jsxs)("div",{className:"items-start mb-4 lg:flex lg:flex-wrap",children:[(0,g.jsx)("div",{className:"F-full px-3 mb-4 lg:mb-0 lg:w-1/3",children:((e=t[2])==null?void 0:e.image)&&l(t[2].image,t[2].alt,166,128,"F-[269px] lg:F-[126px]")}),(0,g.jsx)("div",{className:"F-full px-3 lg:w-2/3",children:((c=t[3])==null?void 0:c.image)&&l(t[3].image,t[3].alt,356,192,"")})]})]})}function M({caption:t,title:l,features:i,images:n}){return(0,g.jsx)(xt.Section,{className:"py-20 bg-background",children:(0,g.jsx)(B.Container,{maxWidth:1280,children:(0,g.jsxs)(dt.Flex,{wrap:!0,align:"center",children:[(0,g.jsx)("div",{className:"w-full mb-12 lg:mb-0 lg:w-1/2",children:(0,g.jsxs)(B.Container,{maxWidth:448,children:[(0,g.jsx)(Nl,{caption:t,title:l}),(0,g.jsx)(fl,{features:i})]})}),(0,g.jsx)(yl,{images:n})]})})})}function Nl({caption:t,title:l}){return(0,g.jsxs)(dt.Flex,{gap:3,direction:"col",children:[t&&(0,g.jsx)(F.Text,{weight:"bold",className:"text-secondary",children:t}),l&&(0,g.jsx)(pt.Heading,{fontSize:"3xl",className:"mb-6",children:l})]})}function fl({features:t}){return!t||(t==null?void 0:t.length)<=0?null:(0,g.jsx)("ul",{children:t.map(l=>(0,g.jsx)(Fl,{feature:l},l._key))})}function Fl({feature:t}){return t?(0,g.jsxs)(dt.Flex,{as:"li",className:"mb-5",children:[(0,g.jsx)(Tl,{}),(0,g.jsxs)("div",{className:"max-w-xs",children:[(0,g.jsx)(F.Text,{weight:"bold",className:"text-gray-500",children:t==null?void 0:t.title}),(0,g.jsx)(F.Text,{muted:!0,className:"leading-loose",children:t==null?void 0:t.plainText})]})]}):null}function Tl(){return(0,g.jsx)("svg",{className:"w-8 F-8 mr-3 text-primary",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,g.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,g:"M12 6V4m0 2a2 2 0 100 4m0-4a2 2 0 110 4m-6 8a2 2 0 100-4m0 4a2 2 0 110-4m0 4v2m0-6V4m6 6v10m6-2a2 2 0 100-4m0 4a2 2 0 110-4m0 4v2m0-6V4"})})}function yl({images:t}){var l,i,n,e,c,u,p,v,w,b,N,f;return!t||(t==null?void 0:t.length)===0?null:(0,g.jsxs)("div",{className:"items-center w-full px-4 sm:flex md:px-0 lg:w-1/2",children:[(0,g.jsxs)("div",{className:"mb-5 sm:mb-0 sm:w-1/2",children:[((l=t==null?void 0:t[0])==null?void 0:l.image)&&(0,g.jsx)(gt.Image,{className:"object-cover overflow-hidden rounded-md",src:`${(i=t==null?void 0:t[0])==null?void 0:i.image}`,width:640,height:800,sizes:"(max-width: 639px) 100vw, (min-width: 640px) 30vw",alt:(e=(n=t==null?void 0:t[0])==null?void 0:n.alt)!=null?e:"features-image-1"}),((c=t==null?void 0:t[1])==null?void 0:c.image)&&(0,g.jsx)(gt.Image,{className:"object-cover mt-6 overflow-hidden rounded-md",src:`${(u=t==null?void 0:t[1])==null?void 0:u.image}`,width:640,height:800,sizes:"(max-width: 639px) 100vw, (min-width: 640px) 30vw",alt:(v=(p=t==null?void 0:t[1])==null?void 0:p.alt)!=null?v:"features-image-2"})]}),((w=t==null?void 0:t[2])==null?void 0:w.image)&&(0,g.jsx)(gt.Image,{className:"object-cover overflow-hidden rounded-md sm:ml-6 sm:w-1/2",src:`${(b=t==null?void 0:t[2])==null?void 0:b.image}`,width:640,height:800,sizes:"(max-width: 639px) 100vw, (min-width: 640px) 30vw",alt:(f=(N=t==null?void 0:t[2])==null?void 0:N.alt)!=null?f:"features-image-3"})]})}var Cl={variant_a:C,variant_b:k,variant_c:I,variant_d:L,variant_e:H,variant_f:O,variant_g:$,variant_h:M},kl="Features",Gt=({data:t})=>{var e,c,u,p,v,w,b,N,f,nt,et,rt,ot,mt,at,st;let l=t==null?void 0:t.variant,i=l&&Cl[l],n={caption:(c=(e=t==null?void 0:t.variants)==null?void 0:e.subtitle)!=null?c:void 0,title:(p=(u=t==null?void 0:t.variants)==null?void 0:u.title)!=null?p:void 0,description:(w=(v=t==null?void 0:t.variants)==null?void 0:v.description)!=null?w:void 0,features:(N=(b=t==null?void 0:t.variants)==null?void 0:b.arrayOfImageTitleAndText)!=null?N:void 0,tags:(nt=(f=t==null?void 0:t.variants)==null?void 0:f.tags)!=null?nt:void 0,featuredItems:(rt=(et=t==null?void 0:t.variants)==null?void 0:et.featuredItems)!=null?rt:void 0,images:(mt=(ot=t==null?void 0:t.variants)==null?void 0:ot.images)!=null?mt:void 0,primaryButton:(st=(at=t==null?void 0:t.variants)==null?void 0:at.primaryButton)!=null?st:void 0};return i?(0,g.jsx)(i,{...n}):null};Gt.displayName=kl;0&&(module.exports={Features,Features_A,Features_B,Features_C,Features_D,Features_E,Features_F,Features_G,Features_H});
package/dist/index.mjs CHANGED
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- "use strict";import{a as p}from"./chunk-6BDXLZOT.mjs";import{a as x}from"./chunk-7ZZLNFYE.mjs";import{a as c}from"./chunk-NMRXZVBL.mjs";import{a as o}from"./chunk-XY27OBDB.mjs";import{a as r}from"./chunk-24O5VU3C.mjs";import{a as e}from"./chunk-3S2KSCPX.mjs";import{a as t}from"./chunk-5AMMO42A.mjs";import{a as f}from"./chunk-7B6FI3PR.mjs";import{a as m}from"./chunk-M4ZCOWFN.mjs";export{c as Features,o as Features_A,r as Features_B,e as Features_C,t as Features_D,f as Features_E,m as Features_F,p as Features_G,x as Features_H};
2
+ "use strict";import{a as c}from"./chunk-NAEAXHV6.mjs";import{a as p}from"./chunk-G6RGNQG4.mjs";import{a as x}from"./chunk-JHHJEWHR.mjs";import{a as o}from"./chunk-4EWXUBOB.mjs";import{a as r}from"./chunk-VXWZJ5AL.mjs";import{a as e}from"./chunk-W24RHXVA.mjs";import{a as t}from"./chunk-URBAFHHX.mjs";import{a as f}from"./chunk-2ZMZT34T.mjs";import{a as m}from"./chunk-W2ZOZPQE.mjs";export{c as Features,o as Features_A,r as Features_B,e as Features_C,t as Features_D,f as Features_E,m as Features_F,p as Features_G,x as Features_H};
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stackshift-ui/features",
3
3
  "description": "",
4
- "version": "6.0.13",
4
+ "version": "6.1.0",
5
5
  "private": false,
6
6
  "sideEffects": false,
7
7
  "main": "./dist/index.js",
@@ -34,23 +34,24 @@
34
34
  },
35
35
  "dependencies": {
36
36
  "classnames": "^2.5.1",
37
- "@stackshift-ui/scripts": "6.0.10",
38
- "@stackshift-ui/text": "6.0.11",
39
- "@stackshift-ui/heading": "6.0.11",
40
- "@stackshift-ui/system": "6.0.11",
41
- "@stackshift-ui/image": "6.0.11",
42
- "@stackshift-ui/card": "6.0.11",
43
- "@stackshift-ui/button": "6.0.11",
44
- "@stackshift-ui/section": "6.0.11",
45
- "@stackshift-ui/container": "6.0.11",
46
- "@stackshift-ui/flex": "6.0.11"
37
+ "@stackshift-ui/system": "6.1.0",
38
+ "@stackshift-ui/heading": "6.1.0",
39
+ "@stackshift-ui/image": "6.1.0",
40
+ "@stackshift-ui/text": "6.1.0",
41
+ "@stackshift-ui/scripts": "6.1.0",
42
+ "@stackshift-ui/section": "6.1.0",
43
+ "@stackshift-ui/button": "6.1.0",
44
+ "@stackshift-ui/card": "6.1.0",
45
+ "@stackshift-ui/link": "6.1.0",
46
+ "@stackshift-ui/flex": "6.1.0",
47
+ "@stackshift-ui/container": "6.1.0"
47
48
  },
48
49
  "peerDependencies": {
49
50
  "@types/react": "16.8 - 19",
50
51
  "next": "10 - 14",
51
52
  "react": "16.8 - 19",
52
53
  "react-dom": "16.8 - 19",
53
- "@stackshift-ui/system": ">=6.0.11"
54
+ "@stackshift-ui/system": ">=7.0.0"
54
55
  },
55
56
  "peerDependenciesMeta": {
56
57
  "next": {
@@ -7,7 +7,7 @@ describe.concurrent("features", () => {
7
7
 
8
8
  test.skip("Dummy test - test if renders without errors", ({ expect }) => {
9
9
  const clx = "my-class";
10
- render(<Features />);
11
- expect(screen.getByTestId("{ kebabCase name }}").classList).toContain(clx);
10
+ render(<Features data-testid="features" />);
11
+ expect(screen.getByTestId("features").classList).toContain(clx);
12
12
  });
13
13
  });
package/src/features.tsx CHANGED
@@ -1,22 +1,29 @@
1
- import React, { lazy } from "react";
2
-
1
+ import React from "react";
2
+ import FeaturesA from "./features_a";
3
+ import FeaturesB from "./features_b";
4
+ import FeaturesC from "./features_c";
5
+ import FeaturesD from "./features_d";
6
+ import FeaturesE from "./features_e";
7
+ import FeaturesF from "./features_f";
8
+ import FeaturesG from "./features_g";
9
+ import FeaturesH from "./features_h";
3
10
  import {
4
- ArrayOfImageTitleAndText,
5
- FeaturedItem,
6
- Images,
7
- LabeledRoute,
8
- SectionsProps,
11
+ ArrayOfImageTitleAndText,
12
+ FeaturedItem,
13
+ Images,
14
+ LabeledRoute,
15
+ SectionsProps,
9
16
  } from "./types";
10
17
 
11
18
  const Variants = {
12
- variant_a: lazy(() => import("./features_a")),
13
- variant_b: lazy(() => import("./features_b")),
14
- variant_c: lazy(() => import("./features_c")),
15
- variant_d: lazy(() => import("./features_d")),
16
- variant_e: lazy(() => import("./features_e")),
17
- variant_f: lazy(() => import("./features_f")),
18
- variant_g: lazy(() => import("./features_g")),
19
- variant_h: lazy(() => import("./features_h")),
19
+ variant_a: FeaturesA,
20
+ variant_b: FeaturesB,
21
+ variant_c: FeaturesC,
22
+ variant_d: FeaturesD,
23
+ variant_e: FeaturesE,
24
+ variant_f: FeaturesF,
25
+ variant_g: FeaturesG,
26
+ variant_h: FeaturesH,
20
27
  };
21
28
 
22
29
  export interface FeaturesProps {
@@ -4,7 +4,6 @@ import { Heading } from "@stackshift-ui/heading";
4
4
  import { Image } from "@stackshift-ui/image";
5
5
  import { Section } from "@stackshift-ui/section";
6
6
  import { Text } from "@stackshift-ui/text";
7
- import React from "react";
8
7
  import { FeaturesProps } from ".";
9
8
  import { ArrayOfImageTitleAndText, Images } from "./types";
10
9
 
@@ -40,7 +39,7 @@ function CaptionAndTitleText({
40
39
  description?: string;
41
40
  }) {
42
41
  return (
43
- <div className="flex flex-col gap-3">
42
+ <Flex direction="col" gap={3} align="center">
44
43
  {caption ? (
45
44
  <Text weight="bold" className="text-secondary">
46
45
  {caption}
@@ -48,7 +47,7 @@ function CaptionAndTitleText({
48
47
  ) : null}
49
48
  {title ? <Heading fontSize="3xl">{title}</Heading> : null}
50
49
  {description ? <Text muted>{description}</Text> : null}
51
- </div>
50
+ </Flex>
52
51
  );
53
52
  }
54
53
 
@@ -5,7 +5,6 @@ import { Heading } from "@stackshift-ui/heading";
5
5
  import { Image } from "@stackshift-ui/image";
6
6
  import { Section } from "@stackshift-ui/section";
7
7
  import { Text } from "@stackshift-ui/text";
8
- import React from "react";
9
8
  import { FeaturesProps } from ".";
10
9
  import { ArrayOfImageTitleAndText } from "./types";
11
10
 
@@ -37,7 +36,7 @@ function FeatureInfo({
37
36
  description?: string;
38
37
  }) {
39
38
  return (
40
- <div className="flex flex-col gap-3">
39
+ <Flex direction="col" gap={3}>
41
40
  {caption && (
42
41
  <Text weight="bold" className="text-secondary">
43
42
  {caption}
@@ -49,7 +48,7 @@ function FeatureInfo({
49
48
  {description}
50
49
  </Text>
51
50
  )}
52
- </div>
51
+ </Flex>
53
52
  );
54
53
  }
55
54
 
@@ -60,7 +59,7 @@ function TagList({ tags }: { tags?: string[] }) {
60
59
  <ul>
61
60
  {tags &&
62
61
  tags.map(item => (
63
- <li className="flex mb-4" key={item}>
62
+ <Flex as="li" className="mb-4" key={item}>
64
63
  <svg
65
64
  className="w-6 h-6 mr-2 text-secondary"
66
65
  xmlns="http://www.w3.org/2000/svg"
@@ -75,7 +74,7 @@ function TagList({ tags }: { tags?: string[] }) {
75
74
  <Text muted weight="bold">
76
75
  {item}
77
76
  </Text>
78
- </li>
77
+ </Flex>
79
78
  ))}
80
79
  </ul>
81
80
  );
@@ -91,7 +90,7 @@ function FeaturesLists({ features }: { features?: ArrayOfImageTitleAndText[] })
91
90
  <div
92
91
  className={`w-full px-4 mb-8 md:w-1/2 ${index % 2 === 0 ? `lg:mb-0` : "lg:mt-12"}`}
93
92
  key={index}>
94
- <Card className="py-6 pl-6 pr-4 mb-8 bg-white" borderRadius="md">
93
+ <Card className="py-6 pl-6 pr-4 mb-8 bg-white rounded-md">
95
94
  {feature?.mainImage?.image && (
96
95
  <span className="inline-block p-3 mb-4 rounded-lg bg-secondary/50">
97
96
  <Image
@@ -103,10 +102,10 @@ function FeaturesLists({ features }: { features?: ArrayOfImageTitleAndText[] })
103
102
  />
104
103
  </span>
105
104
  )}
106
- <Text weight="bold" className="text-xl md:text-2xl mb-2 text-gray-500 break-all">
105
+ <Text weight="bold" className="text-xl md:text-2xl mb-2 text-gray-500 break-normal">
107
106
  {feature?.title}
108
107
  </Text>
109
- <Text muted className="leading-loose break-all">
108
+ <Text muted className="leading-loose break-normal">
110
109
  {feature?.plainText}
111
110
  </Text>
112
111
  </Card>
@@ -1,11 +1,10 @@
1
- import { Card } from "@stackshift-ui/card";
1
+ import { Card, CardTitle } from "@stackshift-ui/card";
2
2
  import { Container } from "@stackshift-ui/container";
3
3
  import { Flex } from "@stackshift-ui/flex";
4
4
  import { Heading } from "@stackshift-ui/heading";
5
5
  import { Image } from "@stackshift-ui/image";
6
6
  import { Section } from "@stackshift-ui/section";
7
7
  import { Text } from "@stackshift-ui/text";
8
- import React from "react";
9
8
  import { FeaturesProps } from ".";
10
9
  import { ArrayOfImageTitleAndText } from "./types";
11
10
 
@@ -32,7 +31,7 @@ function CaptionAndTitleSection({
32
31
  description?: string;
33
32
  }) {
34
33
  return (
35
- <div className="flex flex-col gap-3">
34
+ <Flex direction="col" gap={3} align="center">
36
35
  {caption ? (
37
36
  <Text weight="bold" className="text-secondary">
38
37
  {caption}
@@ -44,7 +43,7 @@ function CaptionAndTitleSection({
44
43
  {description}
45
44
  </Text>
46
45
  ) : null}
47
- </div>
46
+ </Flex>
48
47
  );
49
48
  }
50
49
 
@@ -63,7 +62,7 @@ function FeatureItems({ features }: { features?: ArrayOfImageTitleAndText[] }) {
63
62
  function FeatureItem({ feature }: { feature: ArrayOfImageTitleAndText }) {
64
63
  return (
65
64
  <div className="w-full p-3">
66
- <Card className="flex flex-wrap h-full p-6 bg-white" borderRadius="md">
65
+ <Card className="flex h-full p-6 bg-white rounded-md">
67
66
  <div className="self-start inline-block p-3 mb-4 mr-6 rounded-lg bg-secondary/50 md:p-5 lg:mb-0">
68
67
  {feature?.mainImage?.image && (
69
68
  <Image
@@ -75,14 +74,14 @@ function FeatureItem({ feature }: { feature: ArrayOfImageTitleAndText }) {
75
74
  />
76
75
  )}
77
76
  </div>
78
- <div className="w-full lg:w-2/3 flex flex-col gap-2">
79
- <Text weight="bold" className="text-xl md:text-2xl break-all">
77
+ <Flex direction="col" gap={2} className="w-full">
78
+ <CardTitle className="text-xl md:text-2xl break-normal font-bold">
80
79
  {feature?.title}
81
- </Text>
80
+ </CardTitle>
82
81
  <Text muted className="break-all">
83
82
  {feature?.plainText}
84
83
  </Text>
85
- </div>
84
+ </Flex>
86
85
  </Card>
87
86
  </div>
88
87
  );
@@ -1,11 +1,10 @@
1
- import { Card } from "@stackshift-ui/card";
1
+ import { Card, CardTitle } from "@stackshift-ui/card";
2
2
  import { Container } from "@stackshift-ui/container";
3
3
  import { Flex } from "@stackshift-ui/flex";
4
4
  import { Heading } from "@stackshift-ui/heading";
5
5
  import { Image } from "@stackshift-ui/image";
6
6
  import { Section } from "@stackshift-ui/section";
7
7
  import { Text } from "@stackshift-ui/text";
8
- import React from "react";
9
8
  import { FeaturesProps } from ".";
10
9
  import { ArrayOfImageTitleAndText } from "./types";
11
10
 
@@ -13,7 +12,7 @@ export default function Features_D({ caption, title, description, features }: Fe
13
12
  return (
14
13
  <Section className="py-20 bg-background">
15
14
  <Container maxWidth={1280}>
16
- <Container maxWidth={448} className="mb-8 text-center">
15
+ <Container maxWidth={640} className="mb-8 text-center">
17
16
  <CaptionAndTitleSection caption={caption} title={title} description={description} />
18
17
  </Container>
19
18
  <FeatureItems features={features} />
@@ -32,7 +31,7 @@ function CaptionAndTitleSection({
32
31
  description?: string;
33
32
  }) {
34
33
  return (
35
- <div className="flex flex-col gap-3">
34
+ <Flex direction="col" gap={3} align="center">
36
35
  {caption ? (
37
36
  <Text weight="bold" className="text-secondary">
38
37
  {caption}
@@ -44,7 +43,7 @@ function CaptionAndTitleSection({
44
43
  {description}
45
44
  </Text>
46
45
  ) : null}
47
- </div>
46
+ </Flex>
48
47
  );
49
48
  }
50
49
 
@@ -63,7 +62,7 @@ function FeatureItems({ features }: { features?: ArrayOfImageTitleAndText[] }) {
63
62
  function FeatureItem({ feature }: { feature: ArrayOfImageTitleAndText }) {
64
63
  return (
65
64
  <div className="w-full px-4 mt-8 lg:mb-0 lg:w-1/3">
66
- <Card className="h-full px-6 py-12 text-center bg-white" borderRadius="md">
65
+ <Card className="h-full px-6 py-12 text-center bg-white rounded-md">
67
66
  <div className="self-start inline-block p-3 mb-6 rounded-lg bg-secondary/50 md:p-5">
68
67
  {feature?.mainImage?.image && (
69
68
  <Image
@@ -75,9 +74,9 @@ function FeatureItem({ feature }: { feature: ArrayOfImageTitleAndText }) {
75
74
  />
76
75
  )}
77
76
  </div>
78
- <Text fontSize="xl" weight="bold" className="px-8 mb-4 text-gray-500">
77
+ <CardTitle className="px-8 mb-4 text-gray-500 font-bold text-xl">
79
78
  {feature?.title}
80
- </Text>
79
+ </CardTitle>
81
80
  <Text muted>{feature?.plainText}</Text>
82
81
  </Card>
83
82
  </div>
@@ -1,5 +1,5 @@
1
1
  import { Button } from "@stackshift-ui/button";
2
- import { Card } from "@stackshift-ui/card";
2
+ import { Card, CardTitle } from "@stackshift-ui/card";
3
3
  import { Container } from "@stackshift-ui/container";
4
4
  import { Flex } from "@stackshift-ui/flex";
5
5
  import { Heading } from "@stackshift-ui/heading";
@@ -62,15 +62,15 @@ function FeaturesInfo({ featuredItems, item }: { featuredItems?: FeaturedItem[];
62
62
  if (!featuredItems) return null;
63
63
 
64
64
  return (
65
- <Card
66
- className="top-0 left-0 max-w-xl p-6 mx-auto text-center bg-white md:mt-12 md:p-10 lg:mt-12 lg:p-10 xl:absolute xl:mx-0 xl:mt-20 xl:py-24"
67
- borderRadius="md">
65
+ <Card className="top-0 left-0 max-w-xl p-6 mx-auto text-center bg-white md:mt-12 md:p-10 lg:mt-12 lg:p-10 xl:absolute xl:mx-0 xl:mt-20 xl:py-24 rounded-md">
68
66
  <Text weight="bold" className="text-xs lg:text-md md:text-sm xl:text-lg text-secondary">
69
67
  {featuredItems?.[item]?.subtitle && featuredItems?.[item]?.subtitle}
70
68
  </Text>
71
- <Heading fontSize="3xl">
72
- {featuredItems?.[item]?.title && featuredItems?.[item]?.title}
73
- </Heading>
69
+ <CardTitle>
70
+ <Heading fontSize="3xl">
71
+ {featuredItems?.[item]?.title && featuredItems?.[item]?.title}
72
+ </Heading>
73
+ </CardTitle>
74
74
  <Text
75
75
  muted
76
76
  className="text-xs leading-loose text-center md:mt-5 md:text-sm lg:mt-5 lg:text-sm">
@@ -96,8 +96,7 @@ function SliderControls({
96
96
  <div className="absolute left-0 z-40 items-center mt-20 -mx-3 order-0 md:mt-40 lg:mt-60 xl:-mx-6 xl:flex">
97
97
  {featuredItems?.length >= 2 && (
98
98
  <Button
99
- as="button"
100
- ariaLabel="Show Previous Feature"
99
+ aria-label="Show Previous Feature"
101
100
  className="z-10 p-4 text-white "
102
101
  onClick={() => slider("prev")}>
103
102
  <svg
@@ -119,8 +118,7 @@ function SliderControls({
119
118
  <div className="absolute right-0 z-40 items-center order-2 mt-20 -mx-3 md:mt-40 lg:mt-60 xl:-mx-6 xl:flex">
120
119
  {featuredItems?.length >= 2 && (
121
120
  <Button
122
- as="button"
123
- ariaLabel="Show Next Feature"
121
+ aria-label="Show Next Feature"
124
122
  className="p-4 text-white "
125
123
  onClick={() => slider("next")}>
126
124
  <svg
@@ -3,7 +3,9 @@ import { Container } from "@stackshift-ui/container";
3
3
  import { Flex } from "@stackshift-ui/flex";
4
4
  import { Heading } from "@stackshift-ui/heading";
5
5
  import { Image } from "@stackshift-ui/image";
6
+ import { Link } from "@stackshift-ui/link";
6
7
  import { Section } from "@stackshift-ui/section";
8
+ import { buildSanityLink } from "@stackshift-ui/system";
7
9
  import { Text } from "@stackshift-ui/text";
8
10
  import { FeaturesProps } from ".";
9
11
  import { LabeledRoute } from "./types";
@@ -63,10 +65,14 @@ function FeaturesInfo({
63
65
  function CTAButton({ primaryButton }: { primaryButton?: LabeledRoute }) {
64
66
  if (!primaryButton?.label) return null;
65
67
 
68
+ const link = buildSanityLink(primaryButton);
69
+
66
70
  return (
67
71
  <Container maxWidth={448} className="ml-0">
68
- <Button as="link" link={primaryButton} ariaLabel={primaryButton?.label}>
69
- {primaryButton?.label}
72
+ <Button aria-label={primaryButton?.label} asChild>
73
+ <Link href={link.href} target={link.target} rel={link.rel}>
74
+ {primaryButton?.label}
75
+ </Link>
70
76
  </Button>
71
77
  </Container>
72
78
  );
@@ -4,7 +4,6 @@ import { Heading } from "@stackshift-ui/heading";
4
4
  import { Image } from "@stackshift-ui/image";
5
5
  import { Section } from "@stackshift-ui/section";
6
6
  import { Text } from "@stackshift-ui/text";
7
- import React from "react";
8
7
  import { FeaturesProps } from ".";
9
8
 
10
9
  export default function Features_G({ caption, title, description, images, tags }: FeaturesProps) {
@@ -35,7 +34,7 @@ function FeaturesInfo({
35
34
  description?: string;
36
35
  }) {
37
36
  return (
38
- <div className="flex flex-col gap-3">
37
+ <Flex direction="col" gap={3}>
39
38
  {caption && (
40
39
  <Text weight="bold" className="text-secondary">
41
40
  {caption}
@@ -51,7 +50,7 @@ function FeaturesInfo({
51
50
  {description}
52
51
  </Text>
53
52
  )}
54
- </div>
53
+ </Flex>
55
54
  );
56
55
  }
57
56
 
@@ -73,7 +72,7 @@ function FeatureItem({ item }: { item?: string }) {
73
72
  return (
74
73
  <Flex as="li" align="center" className="mb-2 ">
75
74
  <svg
76
- className="w-5 h-5 mr-2 text-primary-foreground"
75
+ className="w-5 h-5 mr-2 text-primary"
77
76
  xmlns="http://www.w3.org/2000/svg"
78
77
  viewBox="0 0 20 20"
79
78
  fill="currentColor">
@@ -4,7 +4,6 @@ import { Heading } from "@stackshift-ui/heading";
4
4
  import { Image } from "@stackshift-ui/image";
5
5
  import { Section } from "@stackshift-ui/section";
6
6
  import { Text } from "@stackshift-ui/text";
7
- import React from "react";
8
7
  import { FeaturesProps } from ".";
9
8
  import { ArrayOfImageTitleAndText } from "./types";
10
9
 
@@ -28,7 +27,7 @@ export default function Features_H({ caption, title, features, images }: Feature
28
27
 
29
28
  function CaptionAndTitleSection({ caption, title }: { caption?: string; title?: string }) {
30
29
  return (
31
- <div className="flex flex-col gap-3">
30
+ <Flex gap={3} direction="col">
32
31
  {caption && (
33
32
  <Text weight="bold" className="text-secondary">
34
33
  {caption}
@@ -39,7 +38,7 @@ function CaptionAndTitleSection({ caption, title }: { caption?: string; title?:
39
38
  {title}
40
39
  </Heading>
41
40
  )}
42
- </div>
41
+ </Flex>
43
42
  );
44
43
  }
45
44
 
@@ -1 +0,0 @@
1
- import{Card as c}from"@stackshift-ui/card";import{Container as d}from"@stackshift-ui/container";import{Flex as g}from"@stackshift-ui/flex";import{Heading as p}from"@stackshift-ui/heading";import{Image as x}from"@stackshift-ui/image";import{Section as b}from"@stackshift-ui/section";import{Text as o}from"@stackshift-ui/text";import{jsx as i,jsxs as t}from"react/jsx-runtime";function w({caption:m,title:l,description:a,features:n,tags:s}){return i(b,{className:"py-20 bg-background",children:i(d,{maxWidth:1280,children:t(g,{wrap:!0,align:"center",children:[i("div",{className:"w-full px-4 mb-12 lg:mb-0 lg:w-1/2",children:t(d,{maxWidth:448,children:[i(N,{caption:m,title:l,description:a}),i(h,{tags:s})]})}),i(v,{features:n})]})})})}function N({caption:m,title:l,description:a}){return t("div",{className:"flex flex-col gap-3",children:[m&&i(o,{weight:"bold",className:"text-secondary",children:m}),l&&i(p,{fontSize:"3xl",children:l}),a&&i(o,{muted:!0,className:"mb-6 leading-loose",children:a})]})}function h({tags:m}){return m?i("ul",{children:m&&m.map(l=>t("li",{className:"flex mb-4",children:[i("svg",{className:"w-6 h-6 mr-2 text-secondary",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",children:i("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z",clipRule:"evenodd"})}),i(o,{muted:!0,weight:"bold",children:l})]},l))}):null}function v({features:m}){return m?i(g,{wrap:!0,align:"stretch",className:"w-full lg:w-1/2",children:m&&(m==null?void 0:m.map((l,a)=>{var n,s,e,r;return i("div",{className:`w-full px-4 mb-8 md:w-1/2 ${a%2===0?"lg:mb-0":"lg:mt-12"}`,children:t(c,{className:"py-6 pl-6 pr-4 mb-8 bg-white",borderRadius:"md",children:[((n=l==null?void 0:l.mainImage)==null?void 0:n.image)&&i("span",{className:"inline-block p-3 mb-4 rounded-lg bg-secondary/50",children:i(x,{className:"object-scale-down",src:`${(s=l==null?void 0:l.mainImage)==null?void 0:s.image}`,width:40,height:40,alt:(r=(e=l==null?void 0:l.mainImage)==null?void 0:e.alt)!=null?r:`features-image-${a}`})}),i(o,{weight:"bold",className:"text-xl md:text-2xl mb-2 text-gray-500 break-all",children:l==null?void 0:l.title}),i(o,{muted:!0,className:"leading-loose break-all",children:l==null?void 0:l.plainText})]})},a)}))}):null}export{w as a};
@@ -1 +0,0 @@
1
- import{Card as s}from"@stackshift-ui/card";import{Container as r}from"@stackshift-ui/container";import{Heading as d}from"@stackshift-ui/heading";import{Image as c}from"@stackshift-ui/image";import{Section as g}from"@stackshift-ui/section";import{Text as a}from"@stackshift-ui/text";import{jsx as l,jsxs as n}from"react/jsx-runtime";function p({caption:i,title:m,description:t,features:e}){return l(g,{className:"py-20 bg-background",children:n(r,{maxWidth:1800,children:[l(r,{maxWidth:640,className:"mb-16 text-center",children:l(x,{caption:i,title:m,description:t})}),l(b,{features:e})]})})}function x({caption:i,title:m,description:t}){return n("div",{className:"flex flex-col gap-3",children:[i?l(a,{weight:"bold",className:"text-secondary",children:i}):null,m?l(d,{fontSize:"3xl",children:m}):null,t?l(a,{muted:!0,className:"mb-6 leading-loose",children:t}):null]})}function b({features:i}){return i?l("div",{className:"lg:grid lg:grid-cols-2 gap-3",children:i.map(m=>l(N,{feature:m},m._key))}):null}function N({feature:i}){var m,t,e,o;return l("div",{className:"w-full p-3",children:n(s,{className:"flex flex-wrap h-full p-6 bg-white",borderRadius:"md",children:[l("div",{className:"self-start inline-block p-3 mb-4 mr-6 rounded-lg bg-secondary/50 md:p-5 lg:mb-0",children:((m=i==null?void 0:i.mainImage)==null?void 0:m.image)&&l(c,{className:"object-scale-down",src:`${(t=i==null?void 0:i.mainImage)==null?void 0:t.image}`,width:40,height:40,alt:(o=(e=i==null?void 0:i.mainImage)==null?void 0:e.alt)!=null?o:"features-main-image"})}),n("div",{className:"w-full lg:w-2/3 flex flex-col gap-2",children:[l(a,{weight:"bold",className:"text-xl md:text-2xl break-all",children:i==null?void 0:i.title}),l(a,{muted:!0,className:"break-all",children:i==null?void 0:i.plainText})]})]})})}export{p as a};
@@ -1 +0,0 @@
1
- import{Card as s}from"@stackshift-ui/card";import{Container as r}from"@stackshift-ui/container";import{Flex as d}from"@stackshift-ui/flex";import{Heading as c}from"@stackshift-ui/heading";import{Image as g}from"@stackshift-ui/image";import{Section as p}from"@stackshift-ui/section";import{Text as o}from"@stackshift-ui/text";import{jsx as i,jsxs as l}from"react/jsx-runtime";function x({caption:t,title:m,description:e,features:n}){return i(p,{className:"py-20 bg-background",children:l(r,{maxWidth:1280,children:[i(r,{maxWidth:448,className:"mb-8 text-center",children:i(b,{caption:t,title:m,description:e})}),i(T,{features:n})]})})}function b({caption:t,title:m,description:e}){return l("div",{className:"flex flex-col gap-3",children:[t?i(o,{weight:"bold",className:"text-secondary",children:t}):null,m?i(c,{fontSize:"3xl",children:m}):null,e?i(o,{muted:!0,className:"mb-6 leading-loose",children:e}):null]})}function T({features:t}){return t?i(d,{wrap:!0,justify:"center",align:"stretch",children:t.map(m=>i(y,{feature:m},m._key))}):null}function y({feature:t}){var m,e,n,a;return i("div",{className:"w-full px-4 mt-8 lg:mb-0 lg:w-1/3",children:l(s,{className:"h-full px-6 py-12 text-center bg-white",borderRadius:"md",children:[i("div",{className:"self-start inline-block p-3 mb-6 rounded-lg bg-secondary/50 md:p-5",children:((m=t==null?void 0:t.mainImage)==null?void 0:m.image)&&i(g,{className:"object-scale-down",src:`${(e=t==null?void 0:t.mainImage)==null?void 0:e.image}`,width:40,height:40,alt:(a=(n=t==null?void 0:t.mainImage)==null?void 0:n.alt)!=null?a:"features-image-"})}),i(o,{fontSize:"xl",weight:"bold",className:"px-8 mb-4 text-gray-500",children:t==null?void 0:t.title}),i(o,{muted:!0,children:t==null?void 0:t.plainText})]})})}export{x as a};
@@ -1 +0,0 @@
1
- import{Container as s}from"@stackshift-ui/container";import{Flex as u}from"@stackshift-ui/flex";import{Heading as v}from"@stackshift-ui/heading";import{Image as x}from"@stackshift-ui/image";import{Section as w}from"@stackshift-ui/section";import{Text as d}from"@stackshift-ui/text";import{jsx as l,jsxs as a}from"react/jsx-runtime";function h({caption:e,title:t,description:r,images:i,tags:n}){return l(w,{className:"py-20 bg-background",children:l(s,{maxWidth:1280,children:a(u,{wrap:!0,align:"center",children:[l("div",{className:"w-full px-4 mb-12 lg:mb-0 lg:w-1/2",children:a(s,{maxWidth:448,children:[l(b,{caption:e,title:t,description:r}),l(N,{tags:n})]})}),l(y,{images:i})]})})})}function b({caption:e,title:t,description:r}){return a("div",{className:"flex flex-col gap-3",children:[e&&l(d,{weight:"bold",className:"text-secondary",children:e}),t&&l(v,{fontSize:"3xl",className:"mb-3",children:t}),r&&l(d,{muted:!0,className:"mb-6 leading-loose ",children:r})]})}function N({tags:e}){return e?l("ul",{className:"font-bold text-gray-500",children:e.map(t=>l(F,{item:t}))}):null}function F({item:e}){return e?a(u,{as:"li",align:"center",className:"mb-2 ",children:[l("svg",{className:"w-5 h-5 mr-2 text-primary-foreground",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",children:l("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z",clipRule:"evenodd"})}),l("span",{children:e})]}):null}function y({images:e}){var r,i,n,o;if(!e||(e==null?void 0:e.length)===0)return null;function t(f,m,c,g,p){return l("div",{className:`overflow-hidden rounded-md ${p}`,children:l(x,{className:"object-cover w-full h-full",src:f,sizes:"100vw",width:c,height:g,alt:m!=null?m:"feature-image"})})}return a("div",{className:"w-full lg:w-1/2",children:[a("div",{className:"items-end mb-4 lg:flex lg:flex-wrap",children:[l("div",{className:"h-full px-3 mb-4 lg:mb-0 lg:w-2/3",children:((r=e[0])==null?void 0:r.image)&&t(e[0].image,e[0].alt,356,192,"h-[269px]")}),l("div",{className:"h-full px-3 lg:w-1/3",children:((i=e[1])==null?void 0:i.image)&&t(e[1].image,e[1].alt,166,128,"")})]}),a("div",{className:"items-start mb-4 lg:flex lg:flex-wrap",children:[l("div",{className:"h-full px-3 mb-4 lg:mb-0 lg:w-1/3",children:((n=e[2])==null?void 0:n.image)&&t(e[2].image,e[2].alt,166,128,"h-[269px] lg:h-[126px]")}),l("div",{className:"h-full px-3 lg:w-2/3",children:((o=e[3])==null?void 0:o.image)&&t(e[3].image,e[3].alt,356,192,"")})]})]})}export{h as a};
@@ -1 +0,0 @@
1
- import{Button as p}from"@stackshift-ui/button";import{Card as w}from"@stackshift-ui/card";import{Container as v}from"@stackshift-ui/container";import{Flex as b}from"@stackshift-ui/flex";import{Heading as e}from"@stackshift-ui/heading";import{Image as N}from"@stackshift-ui/image";import{Section as F}from"@stackshift-ui/section";import{Text as s}from"@stackshift-ui/text";import h from"react";import{jsx as l,jsxs as c}from"react/jsx-runtime";function d({featuredItems:o}){let[i,n]=h.useState(0);return l(F,{className:"py-20 overflow-x-auto bg-background",children:l(v,{maxWidth:1280,children:l(b,{className:"relative",children:l(S,{featuredItems:o,slider:r=>{o&&(r==="next"?i!==o.length-1?n(t=>t+1):n(0):i>=1?n(t=>t-1):n(o.length-1))},children:c("div",{className:"order-1 w-full ml-auto xl:w-4/5",children:[l(k,{featuredItems:o,item:i}),l(C,{featuredItems:o,item:i})]})})})})})}function k({featuredItems:o,item:i}){var n,x,r,t,m,a,g;return(x=(n=o==null?void 0:o[i])==null?void 0:n.mainImage)!=null&&x.image?l("div",{className:"mx-auto overflow-hidden rounded-md md:max-w-xl xl:max-w-4xl",children:l(N,{className:"relative object-cover rounded-md",src:`${(t=(r=o==null?void 0:o[i])==null?void 0:r.mainImage)==null?void 0:t.image}`,sizes:"100vw",width:896,height:575,alt:(g=(a=(m=o==null?void 0:o[i])==null?void 0:m.mainImage)==null?void 0:a.alt)!=null?g:`features-image-${i}`})}):null}function C({featuredItems:o,item:i}){var n,x,r,t,m,a;return o?c(w,{className:"top-0 left-0 max-w-xl p-6 mx-auto text-center bg-white md:mt-12 md:p-10 lg:mt-12 lg:p-10 xl:absolute xl:mx-0 xl:mt-20 xl:py-24",borderRadius:"md",children:[l(s,{weight:"bold",className:"text-xs lg:text-md md:text-sm xl:text-lg text-secondary",children:((n=o==null?void 0:o[i])==null?void 0:n.subtitle)&&((x=o==null?void 0:o[i])==null?void 0:x.subtitle)}),l(e,{fontSize:"3xl",children:((r=o==null?void 0:o[i])==null?void 0:r.title)&&((t=o==null?void 0:o[i])==null?void 0:t.title)}),l(s,{muted:!0,className:"text-xs leading-loose text-center md:mt-5 md:text-sm lg:mt-5 lg:text-sm",children:((m=o==null?void 0:o[i])==null?void 0:m.description)&&((a=o==null?void 0:o[i])==null?void 0:a.description)})]}):null}function S({featuredItems:o,children:i,slider:n}){return o?c(h.Fragment,{children:[l("div",{className:"absolute left-0 z-40 items-center mt-20 -mx-3 order-0 md:mt-40 lg:mt-60 xl:-mx-6 xl:flex",children:(o==null?void 0:o.length)>=2&&l(p,{as:"button",ariaLabel:"Show Previous Feature",className:"z-10 p-4 text-white ",onClick:()=>n("prev"),children:l("svg",{className:"w-4 h-4",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:l("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M10 19l-7-7m0 0l7-7m-7 7h18"})})})}),i,l("div",{className:"absolute right-0 z-40 items-center order-2 mt-20 -mx-3 md:mt-40 lg:mt-60 xl:-mx-6 xl:flex",children:(o==null?void 0:o.length)>=2&&l(p,{as:"button",ariaLabel:"Show Next Feature",className:"p-4 text-white ",onClick:()=>n("next"),children:l("svg",{className:"w-4 h-4",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:l("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M14 5l7 7m0 0l-7 7m7-7H3"})})})})]}):null}export{d as a};
@@ -1 +0,0 @@
1
- import{Container as f}from"@stackshift-ui/container";import{Flex as s}from"@stackshift-ui/flex";import{Heading as N}from"@stackshift-ui/heading";import{Image as d}from"@stackshift-ui/image";import{Section as b}from"@stackshift-ui/section";import{Text as i}from"@stackshift-ui/text";import{jsx as r,jsxs as o}from"react/jsx-runtime";function T({caption:t,title:n,features:l,images:e}){return r(b,{className:"py-20 bg-background",children:r(f,{maxWidth:1280,children:o(s,{wrap:!0,align:"center",children:[r("div",{className:"w-full mb-12 lg:mb-0 lg:w-1/2",children:o(f,{maxWidth:448,children:[r(y,{caption:t,title:n}),r(F,{features:l})]})}),r(I,{images:e})]})})})}function y({caption:t,title:n}){return o("div",{className:"flex flex-col gap-3",children:[t&&r(i,{weight:"bold",className:"text-secondary",children:t}),n&&r(N,{fontSize:"3xl",className:"mb-6",children:n})]})}function F({features:t}){return!t||(t==null?void 0:t.length)<=0?null:r("ul",{children:t.map(n=>r(k,{feature:n},n._key))})}function k({feature:t}){return t?o(s,{as:"li",className:"mb-5",children:[r(A,{}),o("div",{className:"max-w-xs",children:[r(i,{weight:"bold",className:"text-gray-500",children:t==null?void 0:t.title}),r(i,{muted:!0,className:"leading-loose",children:t==null?void 0:t.plainText})]})]}):null}function A(){return r("svg",{className:"w-8 h-8 mr-3 text-primary",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:r("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 6V4m0 2a2 2 0 100 4m0-4a2 2 0 110 4m-6 8a2 2 0 100-4m0 4a2 2 0 110-4m0 4v2m0-6V4m6 6v10m6-2a2 2 0 100-4m0 4a2 2 0 110-4m0 4v2m0-6V4"})})}function I({images:t}){var n,l,e,c,m,a,x,w,p,v,h,u;return!t||(t==null?void 0:t.length)===0?null:o("div",{className:"items-center w-full px-4 sm:flex md:px-0 lg:w-1/2",children:[o("div",{className:"mb-5 sm:mb-0 sm:w-1/2",children:[((n=t==null?void 0:t[0])==null?void 0:n.image)&&r(d,{className:"object-cover overflow-hidden rounded-md",src:`${(l=t==null?void 0:t[0])==null?void 0:l.image}`,width:640,height:800,sizes:"(max-width: 639px) 100vw, (min-width: 640px) 30vw",alt:(c=(e=t==null?void 0:t[0])==null?void 0:e.alt)!=null?c:"features-image-1"}),((m=t==null?void 0:t[1])==null?void 0:m.image)&&r(d,{className:"object-cover mt-6 overflow-hidden rounded-md",src:`${(a=t==null?void 0:t[1])==null?void 0:a.image}`,width:640,height:800,sizes:"(max-width: 639px) 100vw, (min-width: 640px) 30vw",alt:(w=(x=t==null?void 0:t[1])==null?void 0:x.alt)!=null?w:"features-image-2"})]}),((p=t==null?void 0:t[2])==null?void 0:p.image)&&r(d,{className:"object-cover overflow-hidden rounded-md sm:ml-6 sm:w-1/2",src:`${(v=t==null?void 0:t[2])==null?void 0:v.image}`,width:640,height:800,sizes:"(max-width: 639px) 100vw, (min-width: 640px) 30vw",alt:(u=(h=t==null?void 0:t[2])==null?void 0:h.alt)!=null?u:"features-image-3"})]})}export{T as a};
@@ -1 +0,0 @@
1
- import{Button as x}from"@stackshift-ui/button";import{Container as d}from"@stackshift-ui/container";import{Flex as s}from"@stackshift-ui/flex";import{Heading as v}from"@stackshift-ui/heading";import{Image as h}from"@stackshift-ui/image";import{Section as w}from"@stackshift-ui/section";import{Text as f}from"@stackshift-ui/text";import{jsx as l,jsxs as t}from"react/jsx-runtime";function N({caption:e,title:a,description:i,images:n,primaryButton:o}){return l(w,{className:"py-20 bg-background",children:l(d,{maxWidth:1280,children:t(s,{wrap:!0,align:"center",children:[t(s,{direction:"col",className:"w-full mb-12 lg:mb-0 lg:w-1/2",children:[l(p,{caption:e,title:a,description:i}),l(F,{primaryButton:o})]}),l(C,{images:n})]})})})}function p({caption:e,title:a,description:i}){return t(d,{maxWidth:448,className:"ml-0",children:[e&&l(f,{weight:"bold",className:"font-bold text-secondary",children:e}),a&&l(v,{fontSize:"3xl",className:"mb-6",children:a}),i&&l(f,{muted:!0,className:"mb-6 leading-loose",children:i})]})}function F({primaryButton:e}){return e!=null&&e.label?l(d,{maxWidth:448,className:"ml-0",children:l(x,{as:"link",link:e,ariaLabel:e==null?void 0:e.label,children:e==null?void 0:e.label})}):null}function C({images:e}){var i,n,o,m;if(!e||(e==null?void 0:e.length)===0)return null;function a(c,r,g,u,b){return l("div",{className:`overflow-hidden rounded-md ${b}`,children:l(h,{className:"object-cover w-full h-full",src:c,sizes:"100vw",width:g,height:u,alt:r!=null?r:"feature-image"})})}return t("div",{className:"w-full lg:w-1/2",children:[t("div",{className:"items-end mb-4 lg:flex lg:flex-wrap",children:[l("div",{className:"h-full px-3 mb-4 lg:mb-0 lg:w-2/3",children:((i=e[0])==null?void 0:i.image)&&a(e[0].image,e[0].alt,356,192,"h-[269px]")}),l("div",{className:"h-full px-3 lg:w-1/3",children:((n=e[1])==null?void 0:n.image)&&a(e[1].image,e[1].alt,166,128,"")})]}),t("div",{className:"items-start mb-4 lg:flex lg:flex-wrap",children:[l("div",{className:"h-full px-3 mb-4 lg:mb-0 lg:w-1/3",children:((o=e[2])==null?void 0:o.image)&&a(e[2].image,e[2].alt,166,128,"h-[269px] lg:h-[126px]")}),l("div",{className:"h-full px-3 lg:w-2/3",children:((m=e[3])==null?void 0:m.image)&&a(e[3].image,e[3].alt,356,192,"")})]})]})}export{N as a};
@@ -1 +0,0 @@
1
- import{lazy as r}from"react";import{jsx as R}from"react/jsx-runtime";var A={variant_a:r(()=>import("./features_a.mjs")),variant_b:r(()=>import("./features_b.mjs")),variant_c:r(()=>import("./features_c.mjs")),variant_d:r(()=>import("./features_d.mjs")),variant_e:r(()=>import("./features_e.mjs")),variant_f:r(()=>import("./features_f.mjs")),variant_g:r(()=>import("./features_g.mjs")),variant_h:r(()=>import("./features_h.mjs"))},x="Features",b=({data:e})=>{var t,s,o,m,p,u,f,g,c,v,l,I,y,a,F,T;let i=e==null?void 0:e.variant,n=i&&A[i],_={caption:(s=(t=e==null?void 0:e.variants)==null?void 0:t.subtitle)!=null?s:void 0,title:(m=(o=e==null?void 0:e.variants)==null?void 0:o.title)!=null?m:void 0,description:(u=(p=e==null?void 0:e.variants)==null?void 0:p.description)!=null?u:void 0,features:(g=(f=e==null?void 0:e.variants)==null?void 0:f.arrayOfImageTitleAndText)!=null?g:void 0,tags:(v=(c=e==null?void 0:e.variants)==null?void 0:c.tags)!=null?v:void 0,featuredItems:(I=(l=e==null?void 0:e.variants)==null?void 0:l.featuredItems)!=null?I:void 0,images:(a=(y=e==null?void 0:e.variants)==null?void 0:y.images)!=null?a:void 0,primaryButton:(T=(F=e==null?void 0:e.variants)==null?void 0:F.primaryButton)!=null?T:void 0};return n?R(n,{..._}):null};b.displayName=x;export{b as a};
@@ -1 +0,0 @@
1
- import{Container as a}from"@stackshift-ui/container";import{Heading as g}from"@stackshift-ui/heading";import{Image as e}from"@stackshift-ui/image";import{Section as c}from"@stackshift-ui/section";import{Text as o}from"@stackshift-ui/text";import{jsx as n,jsxs as s}from"react/jsx-runtime";function d({caption:i,title:t,description:m,features:l}){return n(c,{className:"py-20 bg-background",children:s(a,{maxWidth:1280,children:[n(a,{maxWidth:640,className:"mb-16 text-center",children:n(p,{caption:i,title:t,description:m})}),n(x,{features:l})]})})}function p({caption:i,title:t,description:m}){return s("div",{className:"flex flex-col gap-3",children:[i?n(o,{weight:"bold",className:"text-secondary",children:i}):null,t?n(g,{fontSize:"3xl",children:t}):null,m?n(o,{muted:!0,children:m}):null]})}function x({features:i}){return i?n("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-6",children:i==null?void 0:i.map(t=>n(I,{feature:t},t._key))}):null}function I({feature:i}){var t;return s("div",{className:"text-center sm:text-start p-3",children:[(t=i==null?void 0:i.mainImage)!=null&&t.image?n(T,{feature:i}):null,i!=null&&i.title?n(o,{weight:"bold",className:"mb-4 text-gray-500",fontSize:"xl",children:i==null?void 0:i.title}):null,i!=null&&i.plainText?n(o,{muted:!0,children:i==null?void 0:i.plainText}):null]})}function T({feature:i}){var t,m,l,r;return(t=i==null?void 0:i.mainImage)!=null&&t.image?n("span",{className:"inline-block p-3 mb-4 rounded bg-secondary/50 text-primary-foreground md:mb-6",children:n(e,{className:"object-scale-down",src:`${(m=i==null?void 0:i.mainImage)==null?void 0:m.image}`,width:40,height:40,alt:(r=(l=i==null?void 0:i.mainImage)==null?void 0:l.alt)!=null?r:"features-image-"})}):null}export{d as a};