@stackshift-ui/footer 6.0.10-beta.0 → 6.0.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunk-AHKAOI66.mjs +1 -0
- package/dist/footer.js +1 -1
- package/dist/footer.mjs +1 -1
- package/dist/footer_d.js +1 -1
- package/dist/footer_d.mjs +1 -1
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +16 -16
- package/src/footer_a.tsx +16 -18
- package/src/footer_b.tsx +7 -13
- package/src/footer_c.tsx +7 -8
- package/src/footer_d.tsx +60 -35
- package/dist/chunk-XQZI2OKQ.mjs +0 -1
- /package/dist/{chunk-5PKQZSEG.mjs → chunk-EGP3MYWE.mjs} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as d}from"./chunk-FWXIR5AI.mjs";import{Button as h}from"@stackshift-ui/button";import{Container as y}from"@stackshift-ui/container";import{Flex as c}from"@stackshift-ui/flex";import{Image as w}from"@stackshift-ui/image";import{Link as u}from"@stackshift-ui/link";import{Section as b}from"@stackshift-ui/section";import{SocialIcons as v}from"@stackshift-ui/social-icons";import{Text as m}from"@stackshift-ui/text";import{jsx as t,jsxs as a}from"react/jsx-runtime";function g({logo:e,multipleMenus:r,copyright:n,socialMedia:i,text:f}){return t(b,{className:"py-20 overflow-hidden bg-background",children:a(y,{maxWidth:1280,children:[a("div",{className:"flex flex-col lg:flex-row w-full gap-5 lg:items-center lg:justify-between xl:items-start",children:[a("div",{className:"w-full lg:max-w-sm xl:max-w-xs space-y-4",children:[t(k,{logo:e}),t(N,{text:f})]}),t("div",{className:"flex flex-col space-y-8 lg:space-y-0",children:t("div",{className:"flex flex-col lg:flex-row w-full justify-between items-start lg:items-center",children:t(L,{multipleMenus:r})})}),t("div",{className:"hidden [@media(min-width:1444px)]:block",children:t(o,{socialMedia:i})})]}),t("div",{className:"hidden [@media(min-width:1444px)]:block items-center",children:t(p,{copyright:n})}),a("div",{className:"flex flex-col sm:flex-row w-full sm:items-center sm:justify-between pt-10 gap-5 [@media(min-width:1444px)]:hidden",children:[t(p,{copyright:n}),t(o,{socialMedia:i})]})]})})}function k({logo:e}){var r;return e!=null&&e.image?t(u,{className:"inline-block text-xl font-bold leading-none","aria-label":d(e)==="/"?"Go to home page":`Go to ${d(e)}`,href:d(e),target:e==null?void 0:e.linkTarget,rel:(e==null?void 0:e.linkTarget)==="_blank"?"noopener noreferrer":"",children:t(w,{src:`${e==null?void 0:e.image}`,sizes:"(max-width: 768px) 100vw, (max-width: 1200px) 50vw, 33vw",width:132,height:56,alt:(r=e==null?void 0:e.alt)!=null?r:"footer-logo"})}):null}function N({text:e}){return e?t(m,{muted:!0,className:"leading-normal",children:e}):null}function p({copyright:e}){return e?t(m,{className:"lg:pt-10 text-sm",children:e}):null}function L({multipleMenus:e}){return e?t("div",{className:"flex flex-col sm:flex-row flex-wrap gap-5",children:e==null?void 0:e.map(r=>t(S,{menu:r},r==null?void 0:r._key))}):null}function S({menu:e}){var r,n;return e?a("div",{className:"min-w-[140px]",children:[(e==null?void 0:e.title)&&t(m,{weight:"bold",className:"mb-3",children:e==null?void 0:e.title}),((r=e==null?void 0:e.links)==null?void 0:r.length)>0&&t(c,{as:"ul",direction:"col",className:"space-y-2",children:(n=e==null?void 0:e.links)==null?void 0:n.map(i=>t("li",{children:t(h,{as:"link",link:i,className:"text-gray-500 no-underline hover:text-gray-700",ariaLabel:i==null?void 0:i.label,children:i==null?void 0:i.label})},i==null?void 0:i._key))})]}):null}function o({socialMedia:e}){return e?t(c,{className:"flex flex-wrap flex-row [@media(min-width:240px)]:items-center sm:space-x-4",gap:2,children:e==null?void 0:e.map(r=>(r==null?void 0:r.socialMediaLink)&&t(T,{social:r},r==null?void 0:r._key))}):null}function T({social:e}){var n,i,f,l;if(!(e!=null&&e.socialMediaLink))return null;let r=x=>{if(!x)return;let s=x.toLowerCase();if(["facebook","instagram","youtube","linkedin","twitter"].includes(s))return s};return t(u,{"aria-label":(e==null?void 0:e.socialMedia)||(e==null?void 0:e.socialMediaPlatform)||"",className:"sm:inline-flex items-center justify-center w-10 h-10 rounded-full hover:bg-gray-100",target:"_blank",rel:"noopener noreferrer",href:e==null?void 0:e.socialMediaLink,children:(n=e==null?void 0:e.socialMediaIcon)!=null&&n.image?t(w,{className:"h-6 w-6",src:`${(i=e==null?void 0:e.socialMediaIcon)==null?void 0:i.image}`,width:24,height:24,alt:(l=(f=e==null?void 0:e.socialMediaIcon)==null?void 0:f.alt)!=null?l:"socialmedia-icon"}):t(v,{social:r(e==null?void 0:e.socialMedia)})})}export{g as a};
|
package/dist/footer.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var ve=Object.create;var y=Object.defineProperty;var Se=Object.getOwnPropertyDescriptor;var ge=Object.getOwnPropertyNames;var Me=Object.getPrototypeOf,Fe=Object.prototype.hasOwnProperty;var s=(e,r)=>()=>(e&&(r=e(e=0)),r);var o=(e,r)=>{for(var t in r)y(e,t,{get:r[t],enumerable:!0})},E=(e,r,t,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let p of ge(r))!Fe.call(e,p)&&p!==t&&y(e,p,{get:()=>r[p],enumerable:!(n=Se(r,p))||n.enumerable});return e};var Ce=(e,r,t)=>(t=e!=null?ve(Me(e)):{},E(r||!e||!e.__esModule?y(t,"default",{value:e,enumerable:!0}):t,e)),Ie=e=>E(y({},"__esModule",{value:!0}),e);var u,x=s(()=>{"use strict";u=e=>{var r,t,n;return e!=null&&e.internalLink&&(e==null?void 0:e.type)==="linkInternal"?(t=(r=e==null?void 0:e.internalLink)==null?void 0:r.toLowerCase())!=null&&t.includes("home")?"/":`/${e.internalLink}`:e!=null&&e.externalLink&&(e==null?void 0:e.type)==="linkExternal"&&(n=e==null?void 0:e.externalLink)!=null?n:"/"}});var Q={};o(Q,{Footer_A:()=>O,default:()=>O});function O({logo:e,text:r,contacts:t,copyright:n,socialMedia:p}){return(0,a.jsx)(H.Section,{className:"py-20 bg-background",children:(0,a.jsxs)(w.Container,{maxWidth:1e3,children:[(0,a.jsxs)(L.Flex,{wrap:!0,className:"mb-5 lg:mb-20",children:[(0,a.jsx)(Te,{logo:e}),(0,a.jsx)(_e,{text:r}),(0,a.jsx)(Pe,{contacts:t})]}),(0,a.jsxs)(L.Flex,{justify:"between",align:"center",className:"w-full mx-auto lg:flex",children:[(0,a.jsx)(Ge,{copyright:n}),(0,a.jsx)(Re,{socialMedia:p})]})]})})}function Te({logo:e}){var r;return e!=null&&e.image?(0,a.jsx)("div",{className:"w-full mb-5 lg:w-1/5",children:(0,a.jsx)(g.Link,{"aria-label":u(e)==="/"?"Go to home page":`Go to ${u(e)}`,className:"text-3xl font-bold leading-none",href:u(e),target:e==null?void 0:e.linkTarget,rel:(e==null?void 0:e.linkTarget)==="_blank"?"noopener noreferrer":"",children:(0,a.jsx)(S.Image,{src:`${e==null?void 0:e.image}`,width:132,height:56,alt:(r=e==null?void 0:e.alt)!=null?r:"footer-logo"})})}):null}function _e({text:e}){return e?(0,a.jsx)(w.Container,{className:"w-full mb-5 lg:w-1/5",maxWidth:1e3,children:(0,a.jsx)(l.Text,{muted:!0,className:"leading-loose",children:e})}):null}function Pe({contacts:e}){return e?(0,a.jsx)(w.Container,{className:"w-full mt-1 ml-auto lg:w-1/2",maxWidth:1e3,children:e==null?void 0:e.map((r,t)=>(0,a.jsxs)(q.Grid,{columns:1,gap:4,className:"lg:gap-10 md:grid-cols-3",children:[(0,a.jsxs)(h.GridItem,{span:1,children:[(0,a.jsx)(l.Text,{weight:"bold",className:"mb-4",children:"Address"}),(0,a.jsx)(l.Text,{muted:!0,className:"mb-5",children:r==null?void 0:r.addressInfo})]}),(0,a.jsxs)(h.GridItem,{span:1,children:[(0,a.jsx)(l.Text,{weight:"bold",className:"mb-4",children:"Email"}),(0,a.jsx)(l.Text,{muted:!0,className:"mb-5",children:(0,a.jsx)("a",{href:`mailto:${r==null?void 0:r.emailInfo}`,style:{color:"inherit",textDecoration:"none"},children:r==null?void 0:r.emailInfo})})]}),(0,a.jsxs)(h.GridItem,{span:1,children:[(0,a.jsx)(l.Text,{weight:"bold",className:"mb-4",children:"Number"}),(0,a.jsx)(l.Text,{muted:!0,className:"mb-5",children:(0,a.jsx)("a",{href:`tel:${r==null?void 0:r.contactInfo}`,style:{color:"inherit",textDecoration:"none"},children:r==null?void 0:r.contactInfo})})]})]},t))}):null}function Ge({copyright:e}){return e?(0,a.jsx)(l.Text,{muted:!0,className:"text-sm",children:e}):null}function Re({socialMedia:e}){return e?(0,a.jsx)(L.Flex,{wrap:!0,className:"space-x-2 lg:mx-10 lg:space-x-4",children:e==null?void 0:e.map((r,t)=>(0,a.jsx)(We,{social:r,index:t}))}):null}function We({social:e,index:r}){var t,n,p,d;return e!=null&&e.socialMediaLink?(0,a.jsx)(g.Link,{"aria-label":(e==null?void 0:e.socialMedia)||(e==null?void 0:e.socialMediaPlatform)||"",className:"inline-block p-2 mr-2 rounded",target:"_blank",rel:"noopener noreferrer",href:e==null?void 0:e.socialMediaLink,children:(t=e==null?void 0:e.socialMediaIcon)!=null&&t.image?(0,a.jsx)(S.Image,{className:"h-6",src:`${(n=e==null?void 0:e.socialMediaIcon)==null?void 0:n.image}`,width:24,height:24,alt:(d=(p=e==null?void 0:e.socialMediaIcon)==null?void 0:p.alt)!=null?d:"contact-socialMedia-icon"}):(0,a.jsx)(J.SocialIcons,{social:e==null?void 0:e.socialMedia})},r):null}var w,L,q,h,S,g,H,J,l,a,U=s(()=>{"use strict";w=require("@stackshift-ui/container"),L=require("@stackshift-ui/flex"),q=require("@stackshift-ui/grid"),h=require("@stackshift-ui/grid-item"),S=require("@stackshift-ui/image"),g=require("@stackshift-ui/link"),H=require("@stackshift-ui/section"),J=require("@stackshift-ui/social-icons"),l=require("@stackshift-ui/text");x();a=require("react/jsx-runtime")});var ie={};o(ie,{Footer_B:()=>ne,default:()=>ne});function ne({logo:e,copyright:r,socialMedia:t,menu:n}){return(0,m.jsx)(H.Section,{className:"py-20 bg-background",children:(0,m.jsxs)(Y.Container,{maxWidth:1280,children:[(0,m.jsxs)(L.Flex,{wrap:!0,align:"center",justify:"between",className:"pb-12 border-L border-gray-100",children:[(0,m.jsx)($e,{logo:e}),(0,m.jsx)(Be,{menu:n})]}),(0,m.jsxs)(L.Flex,{wrap:!0,align:"center",justify:"between",className:"mt-8",children:[(0,m.jsx)(Ke,{copyright:r}),(0,m.jsx)(je,{socialMedia:t})]})]})})}function $e({logo:e}){var r;return e!=null&&e.image?(0,m.jsx)("div",{className:"w-full mt-8 lg:mb-4 lg:w-1/5",children:(0,m.jsx)(g.Link,{"aria-label":u(e)==="/"?"Go to home page":`Go to ${u(e)}`,className:"inline-block text-3xl font-bold leading-none",href:u(e),target:e==null?void 0:e.linkTarget,rel:(e==null?void 0:e.linkTarget)==="_blank"?"noopener noreferrer":"",children:(0,m.jsx)(S.Image,{src:e==null?void 0:e.image,alt:(r=e==null?void 0:e.alt)!=null?r:"footer-logo",width:80,height:80,className:"inline-block text-3xl font-bold leading-none"})})}):null}function Be({menu:e}){return e?(0,m.jsx)("div",{className:"w-full lg:w-auto",children:(0,m.jsx)(L.Flex,{wrap:!0,align:"center",justify:"between",as:"ul",className:" mt-8 lg:space-x-5",children:e==null?void 0:e.map((r,t,{length:n})=>(0,m.jsxs)(te.default.Fragment,{children:[(0,m.jsx)(De,{links:r}),t+1!==n?(0,m.jsx)(ze,{}):null]},(r==null?void 0:r._key)||t))})}):null}function De({links:e,index:r}){return e?(0,m.jsx)("li",{className:"w-full mb-2 md:mb-0 md:w-auto",children:(0,m.jsx)(X.Button,{as:"link",link:e,className:"text-gray-500 no-underline lg:text-sm hover:text-gray-700",ariaLabel:e==null?void 0:e.label,children:e==null?void 0:e.label})},r):null}function ze(){return(0,m.jsx)("li",{className:"hidden md:block",children:(0,m.jsx)("svg",{className:"w-4 h-4 mx-4 text-gray-500",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,m.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M12 5v.01M12 12v.01M12 19v.01M12 6a1 1 0 110-2 1 1 0 010 2zm0 7a1 1 0 110-2 1 1 0 010 2zm0 7a1 1 0 110-2 1 1 0 010 2z"})})})}function Ke({copyright:e}){return e?(0,m.jsx)(l.Text,{muted:!0,className:"order-last text-sm ",children:e}):null}function je({socialMedia:e}){return e?(0,m.jsx)("div",{className:"order-first mb-4 lg:order-last lg:mb-0",children:e==null?void 0:e.map(r=>(0,m.jsx)(Ve,{social:r}))}):null}function Ve({social:e}){var r,t,n,p;return e!=null&&e.socialMediaLink?(0,m.jsx)(g.Link,{"aria-label":(e==null?void 0:e.socialMedia)||(e==null?void 0:e.socialMediaPlatform)||"",className:"inline-block p-2 mr-2 rounded",target:"_blank",rel:"noopener noreferrer",href:e==null?void 0:e.socialMediaLink,children:(r=e==null?void 0:e.socialMediaIcon)!=null&&r.image?(0,m.jsx)(S.Image,{className:"h-6",src:`${(t=e==null?void 0:e.socialMediaIcon)==null?void 0:t.image}`,width:24,height:24,alt:(p=(n=e==null?void 0:e.socialMediaIcon)==null?void 0:n.alt)!=null?p:"contact-socialMedia-icon"}):(0,m.jsx)(J.SocialIcons,{social:e==null?void 0:e.socialMedia})},e==null?void 0:e._key):null}var X,Y,L,S,g,H,J,l,te,m,ae=s(()=>{"use strict";X=require("@stackshift-ui/button"),Y=require("@stackshift-ui/container"),te=Ce(require("react"));x();m=require("react/jsx-runtime")});var se={};o(se,{Footer_C:()=>de,default:()=>de});function de({logo:e,menu:r,copyright:t,socialMedia:n}){return(0,i.jsxs)(H.Section,{className:"bg-background",children:[(0,i.jsx)(Qe,{}),(0,i.jsx)(Y.Container,{maxWidth:1e3,children:(0,i.jsxs)("div",{className:"pt-10 pb-12",children:[(0,i.jsxs)(L.Flex,{justify:"between",align:"center",className:"relative flex-col gap-8 mb-8 md:flex-row lg:border-L lg:border-gray-300 lg:pb-8",children:[(0,i.jsx)(Ae,{copyright:t}),(0,i.jsx)(qe,{menu:r}),(0,i.jsx)(Ee,{logo:e})]}),(0,i.jsx)(Je,{socialMedia:n})]})})]})}function Ae({copyright:e}){return e?(0,i.jsx)(l.Text,{className:"w-full text-sm text-center",children:e}):null}function Ee({logo:e}){var r;return e!=null&&e.image?(0,i.jsx)("div",{className:"w-full text-center",children:(0,i.jsx)(g.Link,{className:"inline-block text-xl font-bold leading-none","aria-label":u(e)==="/"?"Go to home page":`Go to ${u(e)}`,href:u(e),target:e==null?void 0:e.linkTarget,rel:(e==null?void 0:e.linkTarget)==="_blank"?"noopener noreferrer":"",children:(0,i.jsx)(S.Image,{src:e==null?void 0:e.image,alt:(r=e==null?void 0:e.alt)!=null?r:"footer-logo",className:"inline-block text-xl font-bold leading-none",width:64,height:64})})}):null}function qe({menu:e}){return e?(0,i.jsx)("div",{className:"mx-auto",children:(0,i.jsx)(L.Flex,{className:"flex-col gap-0 lg:flex-row lg:gap-10",as:"ul",align:"center",justify:"center",children:e==null?void 0:e.map((r,t)=>(0,i.jsx)(He,{links:r,index:t}))})}):null}function He({links:e,index:r}){return e?(0,i.jsx)("li",{className:"w-full text-center",children:(0,i.jsx)(me.Button,{as:"link",link:e,className:"text-sm text-center text-black no-underline hover:text-gray-500 whitespace-nowrap",ariaLabel:e==null?void 0:e.label,children:e==null?void 0:e.label})},r):null}function Je({socialMedia:e}){return e?(0,i.jsx)(L.Flex,{wrap:!0,justify:"center",className:"space-y-2 sm:space-y-0",children:e==null?void 0:e.map((r,t)=>(0,i.jsx)(Oe,{social:r,index:t}))}):null}function Oe({social:e,index:r}){var t,n,p,d;return e!=null&&e.socialMediaLink?(0,i.jsx)(g.Link,{"aria-label":(e==null?void 0:e.socialMedia)||(e==null?void 0:e.socialMediaPlatform)||"",className:"inline-block p-2 mr-2 rounded",target:"_blank",rel:"noopener noreferrer",href:e==null?void 0:e.socialMediaLink,children:(t=e==null?void 0:e.socialMediaIcon)!=null&&t.image?(0,i.jsx)(S.Image,{className:"h-6",src:`${(n=e==null?void 0:e.socialMediaIcon)==null?void 0:n.image}`,width:56,height:56,alt:(d=(p=e==null?void 0:e.socialMediaIcon)==null?void 0:p.alt)!=null?d:"contact-socialMedia-icon"}):(0,i.jsx)(J.SocialIcons,{social:e==null?void 0:e.socialMedia})},r):null}function Qe(){return(0,i.jsxs)("div",{className:"flex w-full",children:[(0,i.jsxs)("div",{className:"flex w-1/3",children:[(0,i.jsx)("div",{className:"w-1/3 py-1 bg-secondary"}),(0,i.jsx)("div",{className:"w-1/3 py-1 bg-primary"}),(0,i.jsx)("div",{className:"w-1/3 py-1 bg-primary"})]}),(0,i.jsxs)("div",{className:"flex w-1/3",children:[(0,i.jsx)("div",{className:"w-1/3 py-1 bg-secondary"}),(0,i.jsx)("div",{className:"w-1/3 py-1 bg-primary"}),(0,i.jsx)("div",{className:"w-1/3 py-1 bg-primary"})]}),(0,i.jsxs)("div",{className:"flex w-1/3",children:[(0,i.jsx)("div",{className:"w-1/3 py-1 bg-secondary"}),(0,i.jsx)("div",{className:"w-1/3 py-1 bg-primary"}),(0,i.jsx)("div",{className:"w-1/3 py-1 bg-primary"})]})]})}var me,Y,L,S,g,H,J,l,i,oe=s(()=>{"use strict";me=require("@stackshift-ui/button");x();i=require("react/jsx-runtime")});var Le={};o(Le,{Footer_D:()=>he,default:()=>he});function he({logo:e,multipleMenus:r,copyright:t,socialMedia:n,text:p}){return(0,f.jsx)(H.Section,{className:"py-20 overflow-hidden bg-background",children:(0,f.jsxs)(Y.Container,{maxWidth:1280,children:[(0,f.jsxs)(L.Flex,{wrap:!0,className:"space-y-4 lg:space-y-0",children:[(0,f.jsxs)("div",{className:"w-full max-w-2xl space-y-4 lg:w-1/4",children:[(0,f.jsx)(Ue,{logo:e}),(0,f.jsx)(Xe,{text:p})]}),(0,f.jsx)(Ze,{multipleMenus:r}),(0,f.jsx)(rr,{socialMedia:n})]}),(0,f.jsx)(Ye,{copyright:t})]})})}function Ue({logo:e}){var r;return e!=null&&e.image?(0,f.jsx)(g.Link,{className:"inline-block text-xl font-bold leading-none","aria-label":u(e)==="/"?"Go to home page":`Go to ${u(e)}`,href:u(e),target:e==null?void 0:e.linkTarget,rel:(e==null?void 0:e.linkTarget)==="_blank"?"noopener noreferrer":"",children:(0,f.jsx)(S.Image,{src:`${e==null?void 0:e.image}`,sizes:"(max-width: 768px) 100vw, (max-width: 1200px) 50vw, 33vw",width:132,height:56,alt:(r=e==null?void 0:e.alt)!=null?r:"footer-logo"})}):null}function Xe({text:e}){return e?(0,f.jsx)(l.Text,{muted:!0,className:"leading-normal",children:e}):null}function Ye({copyright:e}){return e?(0,f.jsx)(l.Text,{className:"pt-10 text-sm",children:e}):null}function Ze({multipleMenus:e}){return e?(0,f.jsx)(L.Flex,{wrap:!0,className:"flex-grow !justify-center",gap:4,children:e==null?void 0:e.map(r=>(0,f.jsx)(er,{menu:r},r==null?void 0:r._key))}):null}function er({menu:e}){var r,t;return e?(0,f.jsxs)("div",{className:"w-[200px] flex-none",children:[(e==null?void 0:e.title)&&(0,f.jsx)(l.Text,{weight:"bold",className:"mb-3",children:e==null?void 0:e.title}),((r=e==null?void 0:e.links)==null?void 0:r.length)>0&&(0,f.jsx)(L.Flex,{as:"ul",direction:"col",className:"space-y-2",children:(t=e==null?void 0:e.links)==null?void 0:t.map(n=>(0,f.jsx)("li",{children:(0,f.jsx)(xe.Button,{as:"link",link:n,className:"text-gray-500 no-underline hover:text-gray-700",ariaLabel:n==null?void 0:n.label,children:n==null?void 0:n.label})},n==null?void 0:n._key))})]}):null}function rr({socialMedia:e}){return e?(0,f.jsx)(L.Flex,{className:"!items-center",wrap:!0,gap:2,children:e==null?void 0:e.map(r=>(r==null?void 0:r.socialMediaLink)&&(0,f.jsx)(tr,{social:r}))}):null}function tr({social:e}){var r,t,n,p;return e!=null&&e.socialMediaLink?(0,f.jsx)("span",{children:(0,f.jsx)(g.Link,{"aria-label":(e==null?void 0:e.socialMedia)||(e==null?void 0:e.socialMediaPlatform)||"",className:"inline-block p-2 rounded",target:"_blank",rel:"noopener noreferrer",href:e==null?void 0:e.socialMediaLink,children:(r=e==null?void 0:e.socialMediaIcon)!=null&&r.image?(0,f.jsx)(S.Image,{className:"h-6 w-full",src:`${(t=e==null?void 0:e.socialMediaIcon)==null?void 0:t.image}`,width:24,height:24,alt:(p=(n=e==null?void 0:e.socialMediaIcon)==null?void 0:n.alt)!=null?p:"socialmedia-icon"}):(0,f.jsx)(J.SocialIcons,{social:e==null?void 0:e.socialMedia})})},e==null?void 0:e._key):null}var xe,Y,L,S,g,H,J,l,f,we=s(()=>{"use strict";xe=require("@stackshift-ui/button");x();f=require("react/jsx-runtime")});var ar={};o(ar,{Footer:()=>Ne});module.exports=Ie(ar);var c=require("react"),ke=require("react/jsx-runtime"),nr={variant_a:(0,c.lazy)(()=>Promise.resolve().then(()=>(U(),Q))),variant_b:(0,c.lazy)(()=>Promise.resolve().then(()=>(ae(),ie))),variant_c:(0,c.lazy)(()=>Promise.resolve().then(()=>(oe(),se))),variant_d:(0,c.lazy)(()=>Promise.resolve().then(()=>(we(),Le)))},ir="Footer",Ne=({data:e})=>{var p,d,P,G,R,W,$,B,D,z,K,j,V,A;let r=e==null?void 0:e.variant,t=r&&nr[r],n={logo:(d=(p=e==null?void 0:e.variants)==null?void 0:p.logo)!=null?d:void 0,text:(G=(P=e==null?void 0:e.variants)==null?void 0:P.plainText)!=null?G:void 0,contacts:(W=(R=e==null?void 0:e.variants)==null?void 0:R.contactDetails)!=null?W:void 0,copyright:(B=($=e==null?void 0:e.variants)==null?void 0:$.copyright)!=null?B:void 0,socialMedia:(z=(D=e==null?void 0:e.variants)==null?void 0:D.socialLinks)!=null?z:void 0,menu:(j=(K=e==null?void 0:e.variants)==null?void 0:K.menu)!=null?j:void 0,multipleMenus:(A=(V=e==null?void 0:e.variants)==null?void 0:V.multipleMenus)!=null?A:void 0};return t?(0,ke.jsx)(t,{...n}):null};Ne.displayName=ir;0&&(module.exports={Footer});
|
|
1
|
+
"use strict";var Se=Object.create;var y=Object.defineProperty;var Me=Object.getOwnPropertyDescriptor;var Fe=Object.getOwnPropertyNames;var Ce=Object.getPrototypeOf,Ie=Object.prototype.hasOwnProperty;var x=(e,r)=>()=>(e&&(r=e(e=0)),r);var b=(e,r)=>{for(var t in r)y(e,t,{get:r[t],enumerable:!0})},E=(e,r,t,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let l of Fe(r))!Ie.call(e,l)&&l!==t&&y(e,l,{get:()=>r[l],enumerable:!(n=Me(r,l))||n.enumerable});return e};var Te=(e,r,t)=>(t=e!=null?Se(Ce(e)):{},E(r||!e||!e.__esModule?y(t,"default",{value:e,enumerable:!0}):t,e)),_e=e=>E(y({},"__esModule",{value:!0}),e);var d,c=x(()=>{"use strict";d=e=>{var r,t,n;return e!=null&&e.internalLink&&(e==null?void 0:e.type)==="linkInternal"?(t=(r=e==null?void 0:e.internalLink)==null?void 0:r.toLowerCase())!=null&&t.includes("home")?"/":`/${e.internalLink}`:e!=null&&e.externalLink&&(e==null?void 0:e.type)==="linkExternal"&&(n=e==null?void 0:e.externalLink)!=null?n:"/"}});var Q={};b(Q,{Footer_A:()=>O,default:()=>O});function O({logo:e,text:r,contacts:t,copyright:n,socialMedia:l}){return(0,a.jsx)(H.Section,{className:"py-20 bg-background",children:(0,a.jsxs)(N.Container,{maxWidth:1e3,children:[(0,a.jsxs)(L.Flex,{wrap:!0,className:"mb-5 lg:mb-20",children:[(0,a.jsx)(Pe,{logo:e}),(0,a.jsx)(Ge,{text:r}),(0,a.jsx)(Re,{contacts:t})]}),(0,a.jsxs)(L.Flex,{justify:"between",align:"center",className:"w-full mx-auto lg:flex",children:[(0,a.jsx)(We,{copyright:n}),(0,a.jsx)($e,{socialMedia:l})]})]})})}function Pe({logo:e}){var r;return e!=null&&e.image?(0,a.jsx)("div",{className:"w-full mb-5 lg:w-1/5",children:(0,a.jsx)(M.Link,{"aria-label":d(e)==="/"?"Go to home page":`Go to ${d(e)}`,className:"text-3xl font-bold leading-none",href:d(e),target:e==null?void 0:e.linkTarget,rel:(e==null?void 0:e.linkTarget)==="_blank"?"noopener noreferrer":"",children:(0,a.jsx)(S.Image,{src:`${e==null?void 0:e.image}`,width:132,height:56,alt:(r=e==null?void 0:e.alt)!=null?r:"footer-logo"})})}):null}function Ge({text:e}){return e?(0,a.jsx)(N.Container,{className:"w-full mb-5 lg:w-1/5",maxWidth:1e3,children:(0,a.jsx)(p.Text,{muted:!0,className:"leading-loose",children:e})}):null}function Re({contacts:e}){return e?(0,a.jsx)(N.Container,{className:"w-full mt-1 ml-auto lg:w-1/2",maxWidth:1e3,children:e==null?void 0:e.map((r,t)=>(0,a.jsxs)(q.Grid,{columns:1,gap:4,className:"lg:gap-10 md:grid-cols-3",children:[(0,a.jsxs)(h.GridItem,{span:1,children:[(0,a.jsx)(p.Text,{weight:"bold",className:"mb-4",children:"Address"}),(0,a.jsx)(p.Text,{muted:!0,className:"mb-5",children:r==null?void 0:r.addressInfo})]}),(0,a.jsxs)(h.GridItem,{span:1,children:[(0,a.jsx)(p.Text,{weight:"bold",className:"mb-4",children:"Email"}),(0,a.jsx)(p.Text,{muted:!0,className:"mb-5",children:(0,a.jsx)("a",{href:`mailto:${r==null?void 0:r.emailInfo}`,style:{color:"inherit",textDecoration:"none"},children:r==null?void 0:r.emailInfo})})]}),(0,a.jsxs)(h.GridItem,{span:1,children:[(0,a.jsx)(p.Text,{weight:"bold",className:"mb-4",children:"Number"}),(0,a.jsx)(p.Text,{muted:!0,className:"mb-5",children:(0,a.jsx)("a",{href:`tel:${r==null?void 0:r.contactInfo}`,style:{color:"inherit",textDecoration:"none"},children:r==null?void 0:r.contactInfo})})]})]},t))}):null}function We({copyright:e}){return e?(0,a.jsx)(p.Text,{muted:!0,className:"text-sm",children:e}):null}function $e({socialMedia:e}){return e?(0,a.jsx)(L.Flex,{wrap:!0,className:"space-x-2 lg:mx-10 lg:space-x-4",children:e==null?void 0:e.map((r,t)=>(0,a.jsx)(Be,{social:r,index:t}))}):null}function Be({social:e,index:r}){var t,n,l,u;return e!=null&&e.socialMediaLink?(0,a.jsx)(M.Link,{"aria-label":(e==null?void 0:e.socialMedia)||(e==null?void 0:e.socialMediaPlatform)||"",className:"inline-block p-2 mr-2 rounded",target:"_blank",rel:"noopener noreferrer",href:e==null?void 0:e.socialMediaLink,children:(t=e==null?void 0:e.socialMediaIcon)!=null&&t.image?(0,a.jsx)(S.Image,{className:"h-6",src:`${(n=e==null?void 0:e.socialMediaIcon)==null?void 0:n.image}`,width:24,height:24,alt:(u=(l=e==null?void 0:e.socialMediaIcon)==null?void 0:l.alt)!=null?u:"contact-socialMedia-icon"}):(0,a.jsx)(J.SocialIcons,{social:e==null?void 0:e.socialMedia})},r):null}var N,L,q,h,S,M,H,J,p,a,U=x(()=>{"use strict";N=require("@stackshift-ui/container"),L=require("@stackshift-ui/flex"),q=require("@stackshift-ui/grid"),h=require("@stackshift-ui/grid-item"),S=require("@stackshift-ui/image"),M=require("@stackshift-ui/link"),H=require("@stackshift-ui/section"),J=require("@stackshift-ui/social-icons"),p=require("@stackshift-ui/text");c();a=require("react/jsx-runtime")});var ie={};b(ie,{Footer_B:()=>ne,default:()=>ne});function ne({logo:e,copyright:r,socialMedia:t,menu:n}){return(0,f.jsx)(H.Section,{className:"py-20 bg-background",children:(0,f.jsxs)(Y.Container,{maxWidth:1280,children:[(0,f.jsxs)(L.Flex,{wrap:!0,align:"center",justify:"between",className:"pb-12 border-b border-gray-100",children:[(0,f.jsx)(De,{logo:e}),(0,f.jsx)(je,{menu:n})]}),(0,f.jsxs)(L.Flex,{wrap:!0,align:"center",justify:"between",className:"mt-8",children:[(0,f.jsx)(Ve,{copyright:r}),(0,f.jsx)(Ae,{socialMedia:t})]})]})})}function De({logo:e}){var r;return e!=null&&e.image?(0,f.jsx)("div",{className:"w-full mt-8 lg:mb-4 lg:w-1/5",children:(0,f.jsx)(M.Link,{"aria-label":d(e)==="/"?"Go to home page":`Go to ${d(e)}`,className:"inline-block text-3xl font-bold leading-none",href:d(e),target:e==null?void 0:e.linkTarget,rel:(e==null?void 0:e.linkTarget)==="_blank"?"noopener noreferrer":"",children:(0,f.jsx)(S.Image,{src:e==null?void 0:e.image,alt:(r=e==null?void 0:e.alt)!=null?r:"footer-logo",width:80,height:80,className:"inline-block text-3xl font-bold leading-none"})})}):null}function je({menu:e}){return e?(0,f.jsx)("div",{className:"w-full lg:w-auto",children:(0,f.jsx)(L.Flex,{wrap:!0,align:"center",justify:"between",as:"ul",className:" mt-8 lg:space-x-5",children:e==null?void 0:e.map((r,t,{length:n})=>(0,f.jsxs)(te.default.Fragment,{children:[(0,f.jsx)(ze,{links:r}),t+1!==n?(0,f.jsx)(Ke,{}):null]},(r==null?void 0:r._key)||t))})}):null}function ze({links:e,index:r}){return e?(0,f.jsx)("li",{className:"w-full mb-2 md:mb-0 md:w-auto",children:(0,f.jsx)(X.Button,{as:"link",link:e,className:"text-gray-500 no-underline lg:text-sm hover:text-gray-700",ariaLabel:e==null?void 0:e.label,children:e==null?void 0:e.label})},r):null}function Ke(){return(0,f.jsx)("li",{className:"hidden md:block",children:(0,f.jsx)("svg",{className:"w-4 h-4 mx-4 text-gray-500",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,f.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M12 5v.01M12 12v.01M12 19v.01M12 6a1 1 0 110-2 1 1 0 010 2zm0 7a1 1 0 110-2 1 1 0 010 2zm0 7a1 1 0 110-2 1 1 0 010 2z"})})})}function Ve({copyright:e}){return e?(0,f.jsx)(p.Text,{muted:!0,className:"order-last text-sm ",children:e}):null}function Ae({socialMedia:e}){return e?(0,f.jsx)("div",{className:"order-first mb-4 lg:order-last lg:mb-0",children:e==null?void 0:e.map(r=>(0,f.jsx)(Ee,{social:r}))}):null}function Ee({social:e}){var r,t,n,l;return e!=null&&e.socialMediaLink?(0,f.jsx)(M.Link,{"aria-label":(e==null?void 0:e.socialMedia)||(e==null?void 0:e.socialMediaPlatform)||"",className:"inline-block p-2 mr-2 rounded",target:"_blank",rel:"noopener noreferrer",href:e==null?void 0:e.socialMediaLink,children:(r=e==null?void 0:e.socialMediaIcon)!=null&&r.image?(0,f.jsx)(S.Image,{className:"h-6",src:`${(t=e==null?void 0:e.socialMediaIcon)==null?void 0:t.image}`,width:24,height:24,alt:(l=(n=e==null?void 0:e.socialMediaIcon)==null?void 0:n.alt)!=null?l:"contact-socialMedia-icon"}):(0,f.jsx)(J.SocialIcons,{social:e==null?void 0:e.socialMedia})},e==null?void 0:e._key):null}var X,Y,L,S,M,H,J,p,te,f,ae=x(()=>{"use strict";X=require("@stackshift-ui/button"),Y=require("@stackshift-ui/container"),te=Te(require("react"));c();f=require("react/jsx-runtime")});var se={};b(se,{Footer_C:()=>pe,default:()=>pe});function pe({logo:e,menu:r,copyright:t,socialMedia:n}){return(0,i.jsxs)(H.Section,{className:"bg-background",children:[(0,i.jsx)(Xe,{}),(0,i.jsx)(Y.Container,{maxWidth:1e3,children:(0,i.jsxs)("div",{className:"pt-10 pb-12",children:[(0,i.jsxs)(L.Flex,{justify:"between",align:"center",className:"relative flex-col gap-8 mb-8 md:flex-row lg:border-b lg:border-gray-300 lg:pb-8",children:[(0,i.jsx)(qe,{copyright:t}),(0,i.jsx)(Je,{menu:r}),(0,i.jsx)(He,{logo:e})]}),(0,i.jsx)(Qe,{socialMedia:n})]})})]})}function qe({copyright:e}){return e?(0,i.jsx)(p.Text,{className:"w-full text-sm text-center",children:e}):null}function He({logo:e}){var r;return e!=null&&e.image?(0,i.jsx)("div",{className:"w-full text-center",children:(0,i.jsx)(M.Link,{className:"inline-block text-xl font-bold leading-none","aria-label":d(e)==="/"?"Go to home page":`Go to ${d(e)}`,href:d(e),target:e==null?void 0:e.linkTarget,rel:(e==null?void 0:e.linkTarget)==="_blank"?"noopener noreferrer":"",children:(0,i.jsx)(S.Image,{src:e==null?void 0:e.image,alt:(r=e==null?void 0:e.alt)!=null?r:"footer-logo",className:"inline-block text-xl font-bold leading-none",width:64,height:64})})}):null}function Je({menu:e}){return e?(0,i.jsx)("div",{className:"mx-auto",children:(0,i.jsx)(L.Flex,{className:"flex-col gap-0 lg:flex-row lg:gap-10",as:"ul",align:"center",justify:"center",children:e==null?void 0:e.map((r,t)=>(0,i.jsx)(Oe,{links:r,index:t}))})}):null}function Oe({links:e,index:r}){return e?(0,i.jsx)("li",{className:"w-full text-center",children:(0,i.jsx)(me.Button,{as:"link",link:e,className:"text-sm text-center text-black no-underline hover:text-gray-500 whitespace-nowrap",ariaLabel:e==null?void 0:e.label,children:e==null?void 0:e.label})},r):null}function Qe({socialMedia:e}){return e?(0,i.jsx)(L.Flex,{wrap:!0,justify:"center",className:"space-y-2 sm:space-y-0",children:e==null?void 0:e.map((r,t)=>(0,i.jsx)(Ue,{social:r,index:t}))}):null}function Ue({social:e,index:r}){var t,n,l,u;return e!=null&&e.socialMediaLink?(0,i.jsx)(M.Link,{"aria-label":(e==null?void 0:e.socialMedia)||(e==null?void 0:e.socialMediaPlatform)||"",className:"inline-block p-2 mr-2 rounded",target:"_blank",rel:"noopener noreferrer",href:e==null?void 0:e.socialMediaLink,children:(t=e==null?void 0:e.socialMediaIcon)!=null&&t.image?(0,i.jsx)(S.Image,{className:"h-6",src:`${(n=e==null?void 0:e.socialMediaIcon)==null?void 0:n.image}`,width:56,height:56,alt:(u=(l=e==null?void 0:e.socialMediaIcon)==null?void 0:l.alt)!=null?u:"contact-socialMedia-icon"}):(0,i.jsx)(J.SocialIcons,{social:e==null?void 0:e.socialMedia})},r):null}function Xe(){return(0,i.jsxs)("div",{className:"flex w-full",children:[(0,i.jsxs)("div",{className:"flex w-1/3",children:[(0,i.jsx)("div",{className:"w-1/3 py-1 bg-secondary"}),(0,i.jsx)("div",{className:"w-1/3 py-1 bg-primary"}),(0,i.jsx)("div",{className:"w-1/3 py-1 bg-primary"})]}),(0,i.jsxs)("div",{className:"flex w-1/3",children:[(0,i.jsx)("div",{className:"w-1/3 py-1 bg-secondary"}),(0,i.jsx)("div",{className:"w-1/3 py-1 bg-primary"}),(0,i.jsx)("div",{className:"w-1/3 py-1 bg-primary"})]}),(0,i.jsxs)("div",{className:"flex w-1/3",children:[(0,i.jsx)("div",{className:"w-1/3 py-1 bg-secondary"}),(0,i.jsx)("div",{className:"w-1/3 py-1 bg-primary"}),(0,i.jsx)("div",{className:"w-1/3 py-1 bg-primary"})]})]})}var me,Y,L,S,M,H,J,p,i,oe=x(()=>{"use strict";me=require("@stackshift-ui/button");c();i=require("react/jsx-runtime")});var Ne={};b(Ne,{Footer_D:()=>Le,default:()=>Le});function Le({logo:e,multipleMenus:r,copyright:t,socialMedia:n,text:l}){return(0,m.jsx)(H.Section,{className:"py-20 overflow-hidden bg-background",children:(0,m.jsxs)(Y.Container,{maxWidth:1280,children:[(0,m.jsxs)("div",{className:"flex flex-col lg:flex-row w-full gap-5 lg:items-center lg:justify-between xl:items-start",children:[(0,m.jsxs)("div",{className:"w-full lg:max-w-sm xl:max-w-xs space-y-4",children:[(0,m.jsx)(Ye,{logo:e}),(0,m.jsx)(Ze,{text:l})]}),(0,m.jsx)("div",{className:"flex flex-col space-y-8 lg:space-y-0",children:(0,m.jsx)("div",{className:"flex flex-col lg:flex-row w-full justify-between items-start lg:items-center",children:(0,m.jsx)(er,{multipleMenus:r})})}),(0,m.jsx)("div",{className:"hidden [@media(min-width:1444px)]:block",children:(0,m.jsx)(be,{socialMedia:n})})]}),(0,m.jsx)("div",{className:"hidden [@media(min-width:1444px)]:block items-center",children:(0,m.jsx)(xe,{copyright:t})}),(0,m.jsxs)("div",{className:"flex flex-col sm:flex-row w-full sm:items-center sm:justify-between pt-10 gap-5 [@media(min-width:1444px)]:hidden",children:[(0,m.jsx)(xe,{copyright:t}),(0,m.jsx)(be,{socialMedia:n})]})]})})}function Ye({logo:e}){var r;return e!=null&&e.image?(0,m.jsx)(M.Link,{className:"inline-block text-xl font-bold leading-none","aria-label":d(e)==="/"?"Go to home page":`Go to ${d(e)}`,href:d(e),target:e==null?void 0:e.linkTarget,rel:(e==null?void 0:e.linkTarget)==="_blank"?"noopener noreferrer":"",children:(0,m.jsx)(S.Image,{src:`${e==null?void 0:e.image}`,sizes:"(max-width: 768px) 100vw, (max-width: 1200px) 50vw, 33vw",width:132,height:56,alt:(r=e==null?void 0:e.alt)!=null?r:"footer-logo"})}):null}function Ze({text:e}){return e?(0,m.jsx)(p.Text,{muted:!0,className:"leading-normal",children:e}):null}function xe({copyright:e}){return e?(0,m.jsx)(p.Text,{className:"lg:pt-10 text-sm",children:e}):null}function er({multipleMenus:e}){return e?(0,m.jsx)("div",{className:"flex flex-col sm:flex-row flex-wrap gap-5",children:e==null?void 0:e.map(r=>(0,m.jsx)(rr,{menu:r},r==null?void 0:r._key))}):null}function rr({menu:e}){var r,t;return e?(0,m.jsxs)("div",{className:"min-w-[140px]",children:[(e==null?void 0:e.title)&&(0,m.jsx)(p.Text,{weight:"bold",className:"mb-3",children:e==null?void 0:e.title}),((r=e==null?void 0:e.links)==null?void 0:r.length)>0&&(0,m.jsx)(L.Flex,{as:"ul",direction:"col",className:"space-y-2",children:(t=e==null?void 0:e.links)==null?void 0:t.map(n=>(0,m.jsx)("li",{children:(0,m.jsx)(ce.Button,{as:"link",link:n,className:"text-gray-500 no-underline hover:text-gray-700",ariaLabel:n==null?void 0:n.label,children:n==null?void 0:n.label})},n==null?void 0:n._key))})]}):null}function be({socialMedia:e}){return e?(0,m.jsx)(L.Flex,{className:"flex flex-wrap flex-row [@media(min-width:240px)]:items-center sm:space-x-4",gap:2,children:e==null?void 0:e.map(r=>(r==null?void 0:r.socialMediaLink)&&(0,m.jsx)(tr,{social:r},r==null?void 0:r._key))}):null}function tr({social:e}){var t,n,l,u;if(!(e!=null&&e.socialMediaLink))return null;let r=s=>{if(!s)return;let o=s.toLowerCase();if(["facebook","instagram","youtube","linkedin","twitter"].includes(o))return o};return(0,m.jsx)(M.Link,{"aria-label":(e==null?void 0:e.socialMedia)||(e==null?void 0:e.socialMediaPlatform)||"",className:"sm:inline-flex items-center justify-center w-10 h-10 rounded-full hover:bg-gray-100",target:"_blank",rel:"noopener noreferrer",href:e==null?void 0:e.socialMediaLink,children:(t=e==null?void 0:e.socialMediaIcon)!=null&&t.image?(0,m.jsx)(S.Image,{className:"h-6 w-6",src:`${(n=e==null?void 0:e.socialMediaIcon)==null?void 0:n.image}`,width:24,height:24,alt:(u=(l=e==null?void 0:e.socialMediaIcon)==null?void 0:l.alt)!=null?u:"socialmedia-icon"}):(0,m.jsx)(J.SocialIcons,{social:r(e==null?void 0:e.socialMedia)})})}var ce,Y,L,S,M,H,J,p,m,ke=x(()=>{"use strict";ce=require("@stackshift-ui/button");c();m=require("react/jsx-runtime")});var ar={};b(ar,{Footer:()=>ve});module.exports=_e(ar);var w=require("react"),ge=require("react/jsx-runtime"),nr={variant_a:(0,w.lazy)(()=>Promise.resolve().then(()=>(U(),Q))),variant_b:(0,w.lazy)(()=>Promise.resolve().then(()=>(ae(),ie))),variant_c:(0,w.lazy)(()=>Promise.resolve().then(()=>(oe(),se))),variant_d:(0,w.lazy)(()=>Promise.resolve().then(()=>(ke(),Ne)))},ir="Footer",ve=({data:e})=>{var l,u,s,o,R,W,$,B,D,j,z,K,V,A;let r=e==null?void 0:e.variant,t=r&&nr[r],n={logo:(u=(l=e==null?void 0:e.variants)==null?void 0:l.logo)!=null?u:void 0,text:(o=(s=e==null?void 0:e.variants)==null?void 0:s.plainText)!=null?o:void 0,contacts:(W=(R=e==null?void 0:e.variants)==null?void 0:R.contactDetails)!=null?W:void 0,copyright:(B=($=e==null?void 0:e.variants)==null?void 0:$.copyright)!=null?B:void 0,socialMedia:(j=(D=e==null?void 0:e.variants)==null?void 0:D.socialLinks)!=null?j:void 0,menu:(K=(z=e==null?void 0:e.variants)==null?void 0:z.menu)!=null?K:void 0,multipleMenus:(A=(V=e==null?void 0:e.variants)==null?void 0:V.multipleMenus)!=null?A:void 0};return t?(0,ge.jsx)(t,{...n}):null};ve.displayName=ir;0&&(module.exports={Footer});
|
package/dist/footer.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"./chunk-
|
|
1
|
+
import{a}from"./chunk-EGP3MYWE.mjs";export{a as Footer};
|
package/dist/footer_d.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var m=Object.defineProperty;var
|
|
1
|
+
"use strict";var m=Object.defineProperty;var N=Object.getOwnPropertyDescriptor;var S=Object.getOwnPropertyNames;var T=Object.prototype.hasOwnProperty;var C=(e,t)=>{for(var i in t)m(e,i,{get:t[i],enumerable:!0})},F=(e,t,i,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of S(t))!T.call(e,a)&&a!==i&&m(e,a,{get:()=>t[a],enumerable:!(n=N(t,a))||n.enumerable});return e};var I=e=>F(m({},"__esModule",{value:!0}),e);var z={};C(z,{Footer_D:()=>v,default:()=>v});module.exports=I(z);var k=require("@stackshift-ui/button"),y=require("@stackshift-ui/container"),x=require("@stackshift-ui/flex"),s=require("@stackshift-ui/image"),p=require("@stackshift-ui/link"),L=require("@stackshift-ui/section"),b=require("@stackshift-ui/social-icons"),d=require("@stackshift-ui/text");var f=e=>{var t,i,n;return e!=null&&e.internalLink&&(e==null?void 0:e.type)==="linkInternal"?(i=(t=e==null?void 0:e.internalLink)==null?void 0:t.toLowerCase())!=null&&i.includes("home")?"/":`/${e.internalLink}`:e!=null&&e.externalLink&&(e==null?void 0:e.type)==="linkExternal"&&(n=e==null?void 0:e.externalLink)!=null?n:"/"};var r=require("react/jsx-runtime");function v({logo:e,multipleMenus:t,copyright:i,socialMedia:n,text:a}){return(0,r.jsx)(L.Section,{className:"py-20 overflow-hidden bg-background",children:(0,r.jsxs)(y.Container,{maxWidth:1280,children:[(0,r.jsxs)("div",{className:"flex flex-col lg:flex-row w-full gap-5 lg:items-center lg:justify-between xl:items-start",children:[(0,r.jsxs)("div",{className:"w-full lg:max-w-sm xl:max-w-xs space-y-4",children:[(0,r.jsx)(M,{logo:e}),(0,r.jsx)(_,{text:a})]}),(0,r.jsx)("div",{className:"flex flex-col space-y-8 lg:space-y-0",children:(0,r.jsx)("div",{className:"flex flex-col lg:flex-row w-full justify-between items-start lg:items-center",children:(0,r.jsx)($,{multipleMenus:t})})}),(0,r.jsx)("div",{className:"hidden [@media(min-width:1444px)]:block",children:(0,r.jsx)(h,{socialMedia:n})})]}),(0,r.jsx)("div",{className:"hidden [@media(min-width:1444px)]:block items-center",children:(0,r.jsx)(w,{copyright:i})}),(0,r.jsxs)("div",{className:"flex flex-col sm:flex-row w-full sm:items-center sm:justify-between pt-10 gap-5 [@media(min-width:1444px)]:hidden",children:[(0,r.jsx)(w,{copyright:i}),(0,r.jsx)(h,{socialMedia:n})]})]})})}function M({logo:e}){var t;return e!=null&&e.image?(0,r.jsx)(p.Link,{className:"inline-block text-xl font-bold leading-none","aria-label":f(e)==="/"?"Go to home page":`Go to ${f(e)}`,href:f(e),target:e==null?void 0:e.linkTarget,rel:(e==null?void 0:e.linkTarget)==="_blank"?"noopener noreferrer":"",children:(0,r.jsx)(s.Image,{src:`${e==null?void 0:e.image}`,sizes:"(max-width: 768px) 100vw, (max-width: 1200px) 50vw, 33vw",width:132,height:56,alt:(t=e==null?void 0:e.alt)!=null?t:"footer-logo"})}):null}function _({text:e}){return e?(0,r.jsx)(d.Text,{muted:!0,className:"leading-normal",children:e}):null}function w({copyright:e}){return e?(0,r.jsx)(d.Text,{className:"lg:pt-10 text-sm",children:e}):null}function $({multipleMenus:e}){return e?(0,r.jsx)("div",{className:"flex flex-col sm:flex-row flex-wrap gap-5",children:e==null?void 0:e.map(t=>(0,r.jsx)(j,{menu:t},t==null?void 0:t._key))}):null}function j({menu:e}){var t,i;return e?(0,r.jsxs)("div",{className:"min-w-[140px]",children:[(e==null?void 0:e.title)&&(0,r.jsx)(d.Text,{weight:"bold",className:"mb-3",children:e==null?void 0:e.title}),((t=e==null?void 0:e.links)==null?void 0:t.length)>0&&(0,r.jsx)(x.Flex,{as:"ul",direction:"col",className:"space-y-2",children:(i=e==null?void 0:e.links)==null?void 0:i.map(n=>(0,r.jsx)("li",{children:(0,r.jsx)(k.Button,{as:"link",link:n,className:"text-gray-500 no-underline hover:text-gray-700",ariaLabel:n==null?void 0:n.label,children:n==null?void 0:n.label})},n==null?void 0:n._key))})]}):null}function h({socialMedia:e}){return e?(0,r.jsx)(x.Flex,{className:"flex flex-wrap flex-row [@media(min-width:240px)]:items-center sm:space-x-4",gap:2,children:e==null?void 0:e.map(t=>(t==null?void 0:t.socialMediaLink)&&(0,r.jsx)(P,{social:t},t==null?void 0:t._key))}):null}function P({social:e}){var i,n,a,c;if(!(e!=null&&e.socialMediaLink))return null;let t=l=>{if(!l)return;let u=l.toLowerCase();if(["facebook","instagram","youtube","linkedin","twitter"].includes(u))return u};return(0,r.jsx)(p.Link,{"aria-label":(e==null?void 0:e.socialMedia)||(e==null?void 0:e.socialMediaPlatform)||"",className:"sm:inline-flex items-center justify-center w-10 h-10 rounded-full hover:bg-gray-100",target:"_blank",rel:"noopener noreferrer",href:e==null?void 0:e.socialMediaLink,children:(i=e==null?void 0:e.socialMediaIcon)!=null&&i.image?(0,r.jsx)(s.Image,{className:"h-6 w-6",src:`${(n=e==null?void 0:e.socialMediaIcon)==null?void 0:n.image}`,width:24,height:24,alt:(c=(a=e==null?void 0:e.socialMediaIcon)==null?void 0:a.alt)!=null?c:"socialmedia-icon"}):(0,r.jsx)(b.SocialIcons,{social:t(e==null?void 0:e.socialMedia)})})}0&&(module.exports={Footer_D});
|
package/dist/footer_d.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"./chunk-
|
|
1
|
+
import{a}from"./chunk-AHKAOI66.mjs";import"./chunk-FWXIR5AI.mjs";export{a as Footer_D,a as default};
|
package/dist/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
"use strict";var ve=Object.create;var y=Object.defineProperty;var Se=Object.getOwnPropertyDescriptor;var ge=Object.getOwnPropertyNames;var Me=Object.getPrototypeOf,Fe=Object.prototype.hasOwnProperty;var s=(e,r)=>()=>(e&&(r=e(e=0)),r);var o=(e,r)=>{for(var t in r)y(e,t,{get:r[t],enumerable:!0})},Y=(e,r,t,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let p of ge(r))!Fe.call(e,p)&&p!==t&&y(e,p,{get:()=>r[p],enumerable:!(n=Se(r,p))||n.enumerable});return e};var Ce=(e,r,t)=>(t=e!=null?ve(Me(e)):{},Y(r||!e||!e.__esModule?y(t,"default",{value:e,enumerable:!0}):t,e)),Ie=e=>Y(y({},"__esModule",{value:!0}),e);var u,x=s(()=>{"use strict";u=e=>{var r,t,n;return e!=null&&e.internalLink&&(e==null?void 0:e.type)==="linkInternal"?(t=(r=e==null?void 0:e.internalLink)==null?void 0:r.toLowerCase())!=null&&t.includes("home")?"/":`/${e.internalLink}`:e!=null&&e.externalLink&&(e==null?void 0:e.type)==="linkExternal"&&(n=e==null?void 0:e.externalLink)!=null?n:"/"}});var te={};o(te,{Footer_A:()=>M,default:()=>M});function M({logo:e,text:r,contacts:t,copyright:n,socialMedia:p}){return(0,a.jsx)(ee.Section,{className:"py-20 bg-background",children:(0,a.jsxs)(w.Container,{maxWidth:1e3,children:[(0,a.jsxs)(L.Flex,{wrap:!0,className:"mb-5 lg:mb-20",children:[(0,a.jsx)(Te,{logo:e}),(0,a.jsx)(_e,{text:r}),(0,a.jsx)(Pe,{contacts:t})]}),(0,a.jsxs)(L.Flex,{justify:"between",align:"center",className:"w-full mx-auto lg:flex",children:[(0,a.jsx)(Ge,{copyright:n}),(0,a.jsx)(Re,{socialMedia:p})]})]})})}function Te({logo:e}){var r;return e!=null&&e.image?(0,a.jsx)("div",{className:"w-full mb-5 lg:w-1/5",children:(0,a.jsx)(g.Link,{"aria-label":u(e)==="/"?"Go to home page":`Go to ${u(e)}`,className:"text-3xl font-bold leading-none",href:u(e),target:e==null?void 0:e.linkTarget,rel:(e==null?void 0:e.linkTarget)==="_blank"?"noopener noreferrer":"",children:(0,a.jsx)(S.Image,{src:`${e==null?void 0:e.image}`,width:132,height:56,alt:(r=e==null?void 0:e.alt)!=null?r:"footer-logo"})})}):null}function _e({text:e}){return e?(0,a.jsx)(w.Container,{className:"w-full mb-5 lg:w-1/5",maxWidth:1e3,children:(0,a.jsx)(l.Text,{muted:!0,className:"leading-loose",children:e})}):null}function Pe({contacts:e}){return e?(0,a.jsx)(w.Container,{className:"w-full mt-1 ml-auto lg:w-1/2",maxWidth:1e3,children:e==null?void 0:e.map((r,t)=>(0,a.jsxs)(Z.Grid,{columns:1,gap:4,className:"lg:gap-10 md:grid-cols-3",children:[(0,a.jsxs)(h.GridItem,{span:1,children:[(0,a.jsx)(l.Text,{weight:"bold",className:"mb-4",children:"Address"}),(0,a.jsx)(l.Text,{muted:!0,className:"mb-5",children:r==null?void 0:r.addressInfo})]}),(0,a.jsxs)(h.GridItem,{span:1,children:[(0,a.jsx)(l.Text,{weight:"bold",className:"mb-4",children:"Email"}),(0,a.jsx)(l.Text,{muted:!0,className:"mb-5",children:(0,a.jsx)("a",{href:`mailto:${r==null?void 0:r.emailInfo}`,style:{color:"inherit",textDecoration:"none"},children:r==null?void 0:r.emailInfo})})]}),(0,a.jsxs)(h.GridItem,{span:1,children:[(0,a.jsx)(l.Text,{weight:"bold",className:"mb-4",children:"Number"}),(0,a.jsx)(l.Text,{muted:!0,className:"mb-5",children:(0,a.jsx)("a",{href:`tel:${r==null?void 0:r.contactInfo}`,style:{color:"inherit",textDecoration:"none"},children:r==null?void 0:r.contactInfo})})]})]},t))}):null}function Ge({copyright:e}){return e?(0,a.jsx)(l.Text,{muted:!0,className:"text-sm",children:e}):null}function Re({socialMedia:e}){return e?(0,a.jsx)(L.Flex,{wrap:!0,className:"space-x-2 lg:mx-10 lg:space-x-4",children:e==null?void 0:e.map((r,t)=>(0,a.jsx)(We,{social:r,index:t}))}):null}function We({social:e,index:r}){var t,n,p,d;return e!=null&&e.socialMediaLink?(0,a.jsx)(g.Link,{"aria-label":(e==null?void 0:e.socialMedia)||(e==null?void 0:e.socialMediaPlatform)||"",className:"inline-block p-2 mr-2 rounded",target:"_blank",rel:"noopener noreferrer",href:e==null?void 0:e.socialMediaLink,children:(t=e==null?void 0:e.socialMediaIcon)!=null&&t.image?(0,a.jsx)(S.Image,{className:"h-6",src:`${(n=e==null?void 0:e.socialMediaIcon)==null?void 0:n.image}`,width:24,height:24,alt:(d=(p=e==null?void 0:e.socialMediaIcon)==null?void 0:p.alt)!=null?d:"contact-socialMedia-icon"}):(0,a.jsx)(re.SocialIcons,{social:e==null?void 0:e.socialMedia})},r):null}var w,L,Z,h,S,g,ee,re,l,a,F=s(()=>{"use strict";w=require("@stackshift-ui/container"),L=require("@stackshift-ui/flex"),Z=require("@stackshift-ui/grid"),h=require("@stackshift-ui/grid-item"),S=require("@stackshift-ui/image"),g=require("@stackshift-ui/link"),ee=require("@stackshift-ui/section"),re=require("@stackshift-ui/social-icons"),l=require("@stackshift-ui/text");x();a=require("react/jsx-runtime")});var ue={};o(ue,{Footer_B:()=>T,default:()=>T});function T({logo:e,copyright:r,socialMedia:t,menu:n}){return(0,m.jsx)(ee.Section,{className:"py-20 bg-background",children:(0,m.jsxs)(ie.Container,{maxWidth:1280,children:[(0,m.jsxs)(L.Flex,{wrap:!0,align:"center",justify:"between",className:"pb-12 border-L border-gray-100",children:[(0,m.jsx)($e,{logo:e}),(0,m.jsx)(Be,{menu:n})]}),(0,m.jsxs)(L.Flex,{wrap:!0,align:"center",justify:"between",className:"mt-8",children:[(0,m.jsx)(Ke,{copyright:r}),(0,m.jsx)(je,{socialMedia:t})]})]})})}function $e({logo:e}){var r;return e!=null&&e.image?(0,m.jsx)("div",{className:"w-full mt-8 lg:mb-4 lg:w-1/5",children:(0,m.jsx)(g.Link,{"aria-label":u(e)==="/"?"Go to home page":`Go to ${u(e)}`,className:"inline-block text-3xl font-bold leading-none",href:u(e),target:e==null?void 0:e.linkTarget,rel:(e==null?void 0:e.linkTarget)==="_blank"?"noopener noreferrer":"",children:(0,m.jsx)(S.Image,{src:e==null?void 0:e.image,alt:(r=e==null?void 0:e.alt)!=null?r:"footer-logo",width:80,height:80,className:"inline-block text-3xl font-bold leading-none"})})}):null}function Be({menu:e}){return e?(0,m.jsx)("div",{className:"w-full lg:w-auto",children:(0,m.jsx)(L.Flex,{wrap:!0,align:"center",justify:"between",as:"ul",className:" mt-8 lg:space-x-5",children:e==null?void 0:e.map((r,t,{length:n})=>(0,m.jsxs)(pe.default.Fragment,{children:[(0,m.jsx)(De,{links:r}),t+1!==n?(0,m.jsx)(ze,{}):null]},(r==null?void 0:r._key)||t))})}):null}function De({links:e,index:r}){return e?(0,m.jsx)("li",{className:"w-full mb-2 md:mb-0 md:w-auto",children:(0,m.jsx)(ne.Button,{as:"link",link:e,className:"text-gray-500 no-underline lg:text-sm hover:text-gray-700",ariaLabel:e==null?void 0:e.label,children:e==null?void 0:e.label})},r):null}function ze(){return(0,m.jsx)("li",{className:"hidden md:block",children:(0,m.jsx)("svg",{className:"w-4 h-4 mx-4 text-gray-500",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,m.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M12 5v.01M12 12v.01M12 19v.01M12 6a1 1 0 110-2 1 1 0 010 2zm0 7a1 1 0 110-2 1 1 0 010 2zm0 7a1 1 0 110-2 1 1 0 010 2z"})})})}function Ke({copyright:e}){return e?(0,m.jsx)(l.Text,{muted:!0,className:"order-last text-sm ",children:e}):null}function je({socialMedia:e}){return e?(0,m.jsx)("div",{className:"order-first mb-4 lg:order-last lg:mb-0",children:e==null?void 0:e.map(r=>(0,m.jsx)(Ve,{social:r}))}):null}function Ve({social:e}){var r,t,n,p;return e!=null&&e.socialMediaLink?(0,m.jsx)(g.Link,{"aria-label":(e==null?void 0:e.socialMedia)||(e==null?void 0:e.socialMediaPlatform)||"",className:"inline-block p-2 mr-2 rounded",target:"_blank",rel:"noopener noreferrer",href:e==null?void 0:e.socialMediaLink,children:(r=e==null?void 0:e.socialMediaIcon)!=null&&r.image?(0,m.jsx)(S.Image,{className:"h-6",src:`${(t=e==null?void 0:e.socialMediaIcon)==null?void 0:t.image}`,width:24,height:24,alt:(p=(n=e==null?void 0:e.socialMediaIcon)==null?void 0:n.alt)!=null?p:"contact-socialMedia-icon"}):(0,m.jsx)(re.SocialIcons,{social:e==null?void 0:e.socialMedia})},e==null?void 0:e._key):null}var ne,ie,L,S,g,ee,re,l,pe,m,_=s(()=>{"use strict";ne=require("@stackshift-ui/button"),ie=require("@stackshift-ui/container"),pe=Ce(require("react"));x();m=require("react/jsx-runtime")});var be={};o(be,{Footer_C:()=>R,default:()=>R});function R({logo:e,menu:r,copyright:t,socialMedia:n}){return(0,i.jsxs)(ee.Section,{className:"bg-background",children:[(0,i.jsx)(Qe,{}),(0,i.jsx)(ie.Container,{maxWidth:1e3,children:(0,i.jsxs)("div",{className:"pt-10 pb-12",children:[(0,i.jsxs)(L.Flex,{justify:"between",align:"center",className:"relative flex-col gap-8 mb-8 md:flex-row lg:border-L lg:border-gray-300 lg:pb-8",children:[(0,i.jsx)(Ae,{copyright:t}),(0,i.jsx)(qe,{menu:r}),(0,i.jsx)(Ee,{logo:e})]}),(0,i.jsx)(Je,{socialMedia:n})]})})]})}function Ae({copyright:e}){return e?(0,i.jsx)(l.Text,{className:"w-full text-sm text-center",children:e}):null}function Ee({logo:e}){var r;return e!=null&&e.image?(0,i.jsx)("div",{className:"w-full text-center",children:(0,i.jsx)(g.Link,{className:"inline-block text-xl font-bold leading-none","aria-label":u(e)==="/"?"Go to home page":`Go to ${u(e)}`,href:u(e),target:e==null?void 0:e.linkTarget,rel:(e==null?void 0:e.linkTarget)==="_blank"?"noopener noreferrer":"",children:(0,i.jsx)(S.Image,{src:e==null?void 0:e.image,alt:(r=e==null?void 0:e.alt)!=null?r:"footer-logo",className:"inline-block text-xl font-bold leading-none",width:64,height:64})})}):null}function qe({menu:e}){return e?(0,i.jsx)("div",{className:"mx-auto",children:(0,i.jsx)(L.Flex,{className:"flex-col gap-0 lg:flex-row lg:gap-10",as:"ul",align:"center",justify:"center",children:e==null?void 0:e.map((r,t)=>(0,i.jsx)(He,{links:r,index:t}))})}):null}function He({links:e,index:r}){return e?(0,i.jsx)("li",{className:"w-full text-center",children:(0,i.jsx)(le.Button,{as:"link",link:e,className:"text-sm text-center text-black no-underline hover:text-gray-500 whitespace-nowrap",ariaLabel:e==null?void 0:e.label,children:e==null?void 0:e.label})},r):null}function Je({socialMedia:e}){return e?(0,i.jsx)(L.Flex,{wrap:!0,justify:"center",className:"space-y-2 sm:space-y-0",children:e==null?void 0:e.map((r,t)=>(0,i.jsx)(Oe,{social:r,index:t}))}):null}function Oe({social:e,index:r}){var t,n,p,d;return e!=null&&e.socialMediaLink?(0,i.jsx)(g.Link,{"aria-label":(e==null?void 0:e.socialMedia)||(e==null?void 0:e.socialMediaPlatform)||"",className:"inline-block p-2 mr-2 rounded",target:"_blank",rel:"noopener noreferrer",href:e==null?void 0:e.socialMediaLink,children:(t=e==null?void 0:e.socialMediaIcon)!=null&&t.image?(0,i.jsx)(S.Image,{className:"h-6",src:`${(n=e==null?void 0:e.socialMediaIcon)==null?void 0:n.image}`,width:56,height:56,alt:(d=(p=e==null?void 0:e.socialMediaIcon)==null?void 0:p.alt)!=null?d:"contact-socialMedia-icon"}):(0,i.jsx)(re.SocialIcons,{social:e==null?void 0:e.socialMedia})},r):null}function Qe(){return(0,i.jsxs)("div",{className:"flex w-full",children:[(0,i.jsxs)("div",{className:"flex w-1/3",children:[(0,i.jsx)("div",{className:"w-1/3 py-1 bg-secondary"}),(0,i.jsx)("div",{className:"w-1/3 py-1 bg-primary"}),(0,i.jsx)("div",{className:"w-1/3 py-1 bg-primary"})]}),(0,i.jsxs)("div",{className:"flex w-1/3",children:[(0,i.jsx)("div",{className:"w-1/3 py-1 bg-secondary"}),(0,i.jsx)("div",{className:"w-1/3 py-1 bg-primary"}),(0,i.jsx)("div",{className:"w-1/3 py-1 bg-primary"})]}),(0,i.jsxs)("div",{className:"flex w-1/3",children:[(0,i.jsx)("div",{className:"w-1/3 py-1 bg-secondary"}),(0,i.jsx)("div",{className:"w-1/3 py-1 bg-primary"}),(0,i.jsx)("div",{className:"w-1/3 py-1 bg-primary"})]})]})}var le,ie,L,S,g,ee,re,l,i,W=s(()=>{"use strict";le=require("@stackshift-ui/button");x();i=require("react/jsx-runtime")});var we={};o(we,{Footer_D:()=>D,default:()=>D});function D({logo:e,multipleMenus:r,copyright:t,socialMedia:n,text:p}){return(0,f.jsx)(ee.Section,{className:"py-20 overflow-hidden bg-background",children:(0,f.jsxs)(ie.Container,{maxWidth:1280,children:[(0,f.jsxs)(L.Flex,{wrap:!0,className:"space-y-4 lg:space-y-0",children:[(0,f.jsxs)("div",{className:"w-full max-w-2xl space-y-4 lg:w-1/4",children:[(0,f.jsx)(Ue,{logo:e}),(0,f.jsx)(Xe,{text:p})]}),(0,f.jsx)(Ze,{multipleMenus:r}),(0,f.jsx)(rr,{socialMedia:n})]}),(0,f.jsx)(Ye,{copyright:t})]})})}function Ue({logo:e}){var r;return e!=null&&e.image?(0,f.jsx)(g.Link,{className:"inline-block text-xl font-bold leading-none","aria-label":u(e)==="/"?"Go to home page":`Go to ${u(e)}`,href:u(e),target:e==null?void 0:e.linkTarget,rel:(e==null?void 0:e.linkTarget)==="_blank"?"noopener noreferrer":"",children:(0,f.jsx)($.Image,{src:`${e==null?void 0:e.image}`,sizes:"(max-width: 768px) 100vw, (max-width: 1200px) 50vw, 33vw",width:132,height:56,alt:(r=e==null?void 0:e.alt)!=null?r:"footer-logo"})}):null}function Xe({text:e}){return e?(0,f.jsx)(l.Text,{muted:!0,className:"leading-normal",children:e}):null}function Ye({copyright:e}){return e?(0,f.jsx)(l.Text,{className:"pt-10 text-sm",children:e}):null}function Ze({multipleMenus:e}){return e?(0,f.jsx)(L.Flex,{wrap:!0,className:"flex-grow !justify-center",gap:4,children:e==null?void 0:e.map(r=>(0,f.jsx)(er,{menu:r},r==null?void 0:r._key))}):null}function er({menu:e}){var r,t;return e?(0,f.jsxs)("div",{className:"w-[200px] flex-none",children:[(e==null?void 0:e.title)&&(0,f.jsx)(l.Text,{weight:"bold",className:"mb-3",children:e==null?void 0:e.title}),((r=e==null?void 0:e.links)==null?void 0:r.length)>0&&(0,f.jsx)(L.Flex,{as:"ul",direction:"col",className:"space-y-2",children:(t=e==null?void 0:e.links)==null?void 0:t.map(n=>(0,f.jsx)("li",{children:(0,f.jsx)(ce.Button,{as:"link",link:n,className:"text-gray-500 no-underline hover:text-gray-700",ariaLabel:n==null?void 0:n.label,children:n==null?void 0:n.label})},n==null?void 0:n._key))})]}):null}function rr({socialMedia:e}){return e?(0,f.jsx)(L.Flex,{className:"!items-center",wrap:!0,gap:2,children:e==null?void 0:e.map(r=>(r==null?void 0:r.socialMediaLink)&&(0,f.jsx)(tr,{social:r}))}):null}function tr({social:e}){var r,t,n,p;return e!=null&&e.socialMediaLink?(0,f.jsx)("span",{children:(0,f.jsx)(g.Link,{"aria-label":(e==null?void 0:e.socialMedia)||(e==null?void 0:e.socialMediaPlatform)||"",className:"inline-block p-2 rounded",target:"_blank",rel:"noopener noreferrer",href:e==null?void 0:e.socialMediaLink,children:(r=e==null?void 0:e.socialMediaIcon)!=null&&r.image?(0,f.jsx)($.Image,{className:"h-6 w-full",src:`${(t=e==null?void 0:e.socialMediaIcon)==null?void 0:t.image}`,width:24,height:24,alt:(p=(n=e==null?void 0:e.socialMediaIcon)==null?void 0:n.alt)!=null?p:"socialmedia-icon"}):(0,f.jsx)(re.SocialIcons,{social:e==null?void 0:e.socialMedia})})},e==null?void 0:e._key):null}var ce,ie,L,$,g,ee,re,l,f,z=s(()=>{"use strict";ce=require("@stackshift-ui/button");x();f=require("react/jsx-runtime")});var ar={};o(ar,{Footer:()=>Ne,Footer_A:()=>M,Footer_B:()=>T,Footer_C:()=>R,Footer_D:()=>D});module.exports=Ie(ar);var c=require("react"),ke=require("react/jsx-runtime"),nr={variant_a:(0,c.lazy)(()=>Promise.resolve().then(()=>(F(),te))),variant_b:(0,c.lazy)(()=>Promise.resolve().then(()=>(_(),ue))),variant_c:(0,c.lazy)(()=>Promise.resolve().then(()=>(W(),be))),variant_d:(0,c.lazy)(()=>Promise.resolve().then(()=>(z(),we)))},ir="Footer",Ne=({data:e})=>{var p,d,K,j,V,A,E,q,H,J,O,Q,U,X;let r=e==null?void 0:e.variant,t=r&&nr[r],n={logo:(d=(p=e==null?void 0:e.variants)==null?void 0:p.logo)!=null?d:void 0,text:(j=(K=e==null?void 0:e.variants)==null?void 0:K.plainText)!=null?j:void 0,contacts:(A=(V=e==null?void 0:e.variants)==null?void 0:V.contactDetails)!=null?A:void 0,copyright:(q=(E=e==null?void 0:e.variants)==null?void 0:E.copyright)!=null?q:void 0,socialMedia:(J=(H=e==null?void 0:e.variants)==null?void 0:H.socialLinks)!=null?J:void 0,menu:(Q=(O=e==null?void 0:e.variants)==null?void 0:O.menu)!=null?Q:void 0,multipleMenus:(X=(U=e==null?void 0:e.variants)==null?void 0:U.multipleMenus)!=null?X:void 0};return t?(0,ke.jsx)(t,{...n}):null};Ne.displayName=ir;F();_();W();z();0&&(module.exports={Footer,Footer_A,Footer_B,Footer_C,Footer_D});
|
|
2
|
+
"use strict";var Se=Object.create;var y=Object.defineProperty;var Me=Object.getOwnPropertyDescriptor;var Fe=Object.getOwnPropertyNames;var Ce=Object.getPrototypeOf,Ie=Object.prototype.hasOwnProperty;var x=(e,r)=>()=>(e&&(r=e(e=0)),r);var b=(e,r)=>{for(var t in r)y(e,t,{get:r[t],enumerable:!0})},Y=(e,r,t,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let l of Fe(r))!Ie.call(e,l)&&l!==t&&y(e,l,{get:()=>r[l],enumerable:!(n=Me(r,l))||n.enumerable});return e};var Te=(e,r,t)=>(t=e!=null?Se(Ce(e)):{},Y(r||!e||!e.__esModule?y(t,"default",{value:e,enumerable:!0}):t,e)),_e=e=>Y(y({},"__esModule",{value:!0}),e);var d,c=x(()=>{"use strict";d=e=>{var r,t,n;return e!=null&&e.internalLink&&(e==null?void 0:e.type)==="linkInternal"?(t=(r=e==null?void 0:e.internalLink)==null?void 0:r.toLowerCase())!=null&&t.includes("home")?"/":`/${e.internalLink}`:e!=null&&e.externalLink&&(e==null?void 0:e.type)==="linkExternal"&&(n=e==null?void 0:e.externalLink)!=null?n:"/"}});var te={};b(te,{Footer_A:()=>F,default:()=>F});function F({logo:e,text:r,contacts:t,copyright:n,socialMedia:l}){return(0,a.jsx)(ee.Section,{className:"py-20 bg-background",children:(0,a.jsxs)(N.Container,{maxWidth:1e3,children:[(0,a.jsxs)(L.Flex,{wrap:!0,className:"mb-5 lg:mb-20",children:[(0,a.jsx)(Pe,{logo:e}),(0,a.jsx)(Ge,{text:r}),(0,a.jsx)(Re,{contacts:t})]}),(0,a.jsxs)(L.Flex,{justify:"between",align:"center",className:"w-full mx-auto lg:flex",children:[(0,a.jsx)(We,{copyright:n}),(0,a.jsx)($e,{socialMedia:l})]})]})})}function Pe({logo:e}){var r;return e!=null&&e.image?(0,a.jsx)("div",{className:"w-full mb-5 lg:w-1/5",children:(0,a.jsx)(M.Link,{"aria-label":d(e)==="/"?"Go to home page":`Go to ${d(e)}`,className:"text-3xl font-bold leading-none",href:d(e),target:e==null?void 0:e.linkTarget,rel:(e==null?void 0:e.linkTarget)==="_blank"?"noopener noreferrer":"",children:(0,a.jsx)(S.Image,{src:`${e==null?void 0:e.image}`,width:132,height:56,alt:(r=e==null?void 0:e.alt)!=null?r:"footer-logo"})})}):null}function Ge({text:e}){return e?(0,a.jsx)(N.Container,{className:"w-full mb-5 lg:w-1/5",maxWidth:1e3,children:(0,a.jsx)(p.Text,{muted:!0,className:"leading-loose",children:e})}):null}function Re({contacts:e}){return e?(0,a.jsx)(N.Container,{className:"w-full mt-1 ml-auto lg:w-1/2",maxWidth:1e3,children:e==null?void 0:e.map((r,t)=>(0,a.jsxs)(Z.Grid,{columns:1,gap:4,className:"lg:gap-10 md:grid-cols-3",children:[(0,a.jsxs)(h.GridItem,{span:1,children:[(0,a.jsx)(p.Text,{weight:"bold",className:"mb-4",children:"Address"}),(0,a.jsx)(p.Text,{muted:!0,className:"mb-5",children:r==null?void 0:r.addressInfo})]}),(0,a.jsxs)(h.GridItem,{span:1,children:[(0,a.jsx)(p.Text,{weight:"bold",className:"mb-4",children:"Email"}),(0,a.jsx)(p.Text,{muted:!0,className:"mb-5",children:(0,a.jsx)("a",{href:`mailto:${r==null?void 0:r.emailInfo}`,style:{color:"inherit",textDecoration:"none"},children:r==null?void 0:r.emailInfo})})]}),(0,a.jsxs)(h.GridItem,{span:1,children:[(0,a.jsx)(p.Text,{weight:"bold",className:"mb-4",children:"Number"}),(0,a.jsx)(p.Text,{muted:!0,className:"mb-5",children:(0,a.jsx)("a",{href:`tel:${r==null?void 0:r.contactInfo}`,style:{color:"inherit",textDecoration:"none"},children:r==null?void 0:r.contactInfo})})]})]},t))}):null}function We({copyright:e}){return e?(0,a.jsx)(p.Text,{muted:!0,className:"text-sm",children:e}):null}function $e({socialMedia:e}){return e?(0,a.jsx)(L.Flex,{wrap:!0,className:"space-x-2 lg:mx-10 lg:space-x-4",children:e==null?void 0:e.map((r,t)=>(0,a.jsx)(Be,{social:r,index:t}))}):null}function Be({social:e,index:r}){var t,n,l,u;return e!=null&&e.socialMediaLink?(0,a.jsx)(M.Link,{"aria-label":(e==null?void 0:e.socialMedia)||(e==null?void 0:e.socialMediaPlatform)||"",className:"inline-block p-2 mr-2 rounded",target:"_blank",rel:"noopener noreferrer",href:e==null?void 0:e.socialMediaLink,children:(t=e==null?void 0:e.socialMediaIcon)!=null&&t.image?(0,a.jsx)(S.Image,{className:"h-6",src:`${(n=e==null?void 0:e.socialMediaIcon)==null?void 0:n.image}`,width:24,height:24,alt:(u=(l=e==null?void 0:e.socialMediaIcon)==null?void 0:l.alt)!=null?u:"contact-socialMedia-icon"}):(0,a.jsx)(re.SocialIcons,{social:e==null?void 0:e.socialMedia})},r):null}var N,L,Z,h,S,M,ee,re,p,a,C=x(()=>{"use strict";N=require("@stackshift-ui/container"),L=require("@stackshift-ui/flex"),Z=require("@stackshift-ui/grid"),h=require("@stackshift-ui/grid-item"),S=require("@stackshift-ui/image"),M=require("@stackshift-ui/link"),ee=require("@stackshift-ui/section"),re=require("@stackshift-ui/social-icons"),p=require("@stackshift-ui/text");c();a=require("react/jsx-runtime")});var de={};b(de,{Footer_B:()=>_,default:()=>_});function _({logo:e,copyright:r,socialMedia:t,menu:n}){return(0,f.jsx)(ee.Section,{className:"py-20 bg-background",children:(0,f.jsxs)(ie.Container,{maxWidth:1280,children:[(0,f.jsxs)(L.Flex,{wrap:!0,align:"center",justify:"between",className:"pb-12 border-b border-gray-100",children:[(0,f.jsx)(De,{logo:e}),(0,f.jsx)(je,{menu:n})]}),(0,f.jsxs)(L.Flex,{wrap:!0,align:"center",justify:"between",className:"mt-8",children:[(0,f.jsx)(Ve,{copyright:r}),(0,f.jsx)(Ae,{socialMedia:t})]})]})})}function De({logo:e}){var r;return e!=null&&e.image?(0,f.jsx)("div",{className:"w-full mt-8 lg:mb-4 lg:w-1/5",children:(0,f.jsx)(M.Link,{"aria-label":d(e)==="/"?"Go to home page":`Go to ${d(e)}`,className:"inline-block text-3xl font-bold leading-none",href:d(e),target:e==null?void 0:e.linkTarget,rel:(e==null?void 0:e.linkTarget)==="_blank"?"noopener noreferrer":"",children:(0,f.jsx)(S.Image,{src:e==null?void 0:e.image,alt:(r=e==null?void 0:e.alt)!=null?r:"footer-logo",width:80,height:80,className:"inline-block text-3xl font-bold leading-none"})})}):null}function je({menu:e}){return e?(0,f.jsx)("div",{className:"w-full lg:w-auto",children:(0,f.jsx)(L.Flex,{wrap:!0,align:"center",justify:"between",as:"ul",className:" mt-8 lg:space-x-5",children:e==null?void 0:e.map((r,t,{length:n})=>(0,f.jsxs)(le.default.Fragment,{children:[(0,f.jsx)(ze,{links:r}),t+1!==n?(0,f.jsx)(Ke,{}):null]},(r==null?void 0:r._key)||t))})}):null}function ze({links:e,index:r}){return e?(0,f.jsx)("li",{className:"w-full mb-2 md:mb-0 md:w-auto",children:(0,f.jsx)(ne.Button,{as:"link",link:e,className:"text-gray-500 no-underline lg:text-sm hover:text-gray-700",ariaLabel:e==null?void 0:e.label,children:e==null?void 0:e.label})},r):null}function Ke(){return(0,f.jsx)("li",{className:"hidden md:block",children:(0,f.jsx)("svg",{className:"w-4 h-4 mx-4 text-gray-500",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,f.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M12 5v.01M12 12v.01M12 19v.01M12 6a1 1 0 110-2 1 1 0 010 2zm0 7a1 1 0 110-2 1 1 0 010 2zm0 7a1 1 0 110-2 1 1 0 010 2z"})})})}function Ve({copyright:e}){return e?(0,f.jsx)(p.Text,{muted:!0,className:"order-last text-sm ",children:e}):null}function Ae({socialMedia:e}){return e?(0,f.jsx)("div",{className:"order-first mb-4 lg:order-last lg:mb-0",children:e==null?void 0:e.map(r=>(0,f.jsx)(Ee,{social:r}))}):null}function Ee({social:e}){var r,t,n,l;return e!=null&&e.socialMediaLink?(0,f.jsx)(M.Link,{"aria-label":(e==null?void 0:e.socialMedia)||(e==null?void 0:e.socialMediaPlatform)||"",className:"inline-block p-2 mr-2 rounded",target:"_blank",rel:"noopener noreferrer",href:e==null?void 0:e.socialMediaLink,children:(r=e==null?void 0:e.socialMediaIcon)!=null&&r.image?(0,f.jsx)(S.Image,{className:"h-6",src:`${(t=e==null?void 0:e.socialMediaIcon)==null?void 0:t.image}`,width:24,height:24,alt:(l=(n=e==null?void 0:e.socialMediaIcon)==null?void 0:n.alt)!=null?l:"contact-socialMedia-icon"}):(0,f.jsx)(re.SocialIcons,{social:e==null?void 0:e.socialMedia})},e==null?void 0:e._key):null}var ne,ie,L,S,M,ee,re,p,le,f,P=x(()=>{"use strict";ne=require("@stackshift-ui/button"),ie=require("@stackshift-ui/container"),le=Te(require("react"));c();f=require("react/jsx-runtime")});var be={};b(be,{Footer_C:()=>W,default:()=>W});function W({logo:e,menu:r,copyright:t,socialMedia:n}){return(0,i.jsxs)(ee.Section,{className:"bg-background",children:[(0,i.jsx)(Xe,{}),(0,i.jsx)(ie.Container,{maxWidth:1e3,children:(0,i.jsxs)("div",{className:"pt-10 pb-12",children:[(0,i.jsxs)(L.Flex,{justify:"between",align:"center",className:"relative flex-col gap-8 mb-8 md:flex-row lg:border-b lg:border-gray-300 lg:pb-8",children:[(0,i.jsx)(qe,{copyright:t}),(0,i.jsx)(Je,{menu:r}),(0,i.jsx)(He,{logo:e})]}),(0,i.jsx)(Qe,{socialMedia:n})]})})]})}function qe({copyright:e}){return e?(0,i.jsx)(p.Text,{className:"w-full text-sm text-center",children:e}):null}function He({logo:e}){var r;return e!=null&&e.image?(0,i.jsx)("div",{className:"w-full text-center",children:(0,i.jsx)(M.Link,{className:"inline-block text-xl font-bold leading-none","aria-label":d(e)==="/"?"Go to home page":`Go to ${d(e)}`,href:d(e),target:e==null?void 0:e.linkTarget,rel:(e==null?void 0:e.linkTarget)==="_blank"?"noopener noreferrer":"",children:(0,i.jsx)(S.Image,{src:e==null?void 0:e.image,alt:(r=e==null?void 0:e.alt)!=null?r:"footer-logo",className:"inline-block text-xl font-bold leading-none",width:64,height:64})})}):null}function Je({menu:e}){return e?(0,i.jsx)("div",{className:"mx-auto",children:(0,i.jsx)(L.Flex,{className:"flex-col gap-0 lg:flex-row lg:gap-10",as:"ul",align:"center",justify:"center",children:e==null?void 0:e.map((r,t)=>(0,i.jsx)(Oe,{links:r,index:t}))})}):null}function Oe({links:e,index:r}){return e?(0,i.jsx)("li",{className:"w-full text-center",children:(0,i.jsx)(ue.Button,{as:"link",link:e,className:"text-sm text-center text-black no-underline hover:text-gray-500 whitespace-nowrap",ariaLabel:e==null?void 0:e.label,children:e==null?void 0:e.label})},r):null}function Qe({socialMedia:e}){return e?(0,i.jsx)(L.Flex,{wrap:!0,justify:"center",className:"space-y-2 sm:space-y-0",children:e==null?void 0:e.map((r,t)=>(0,i.jsx)(Ue,{social:r,index:t}))}):null}function Ue({social:e,index:r}){var t,n,l,u;return e!=null&&e.socialMediaLink?(0,i.jsx)(M.Link,{"aria-label":(e==null?void 0:e.socialMedia)||(e==null?void 0:e.socialMediaPlatform)||"",className:"inline-block p-2 mr-2 rounded",target:"_blank",rel:"noopener noreferrer",href:e==null?void 0:e.socialMediaLink,children:(t=e==null?void 0:e.socialMediaIcon)!=null&&t.image?(0,i.jsx)(S.Image,{className:"h-6",src:`${(n=e==null?void 0:e.socialMediaIcon)==null?void 0:n.image}`,width:56,height:56,alt:(u=(l=e==null?void 0:e.socialMediaIcon)==null?void 0:l.alt)!=null?u:"contact-socialMedia-icon"}):(0,i.jsx)(re.SocialIcons,{social:e==null?void 0:e.socialMedia})},r):null}function Xe(){return(0,i.jsxs)("div",{className:"flex w-full",children:[(0,i.jsxs)("div",{className:"flex w-1/3",children:[(0,i.jsx)("div",{className:"w-1/3 py-1 bg-secondary"}),(0,i.jsx)("div",{className:"w-1/3 py-1 bg-primary"}),(0,i.jsx)("div",{className:"w-1/3 py-1 bg-primary"})]}),(0,i.jsxs)("div",{className:"flex w-1/3",children:[(0,i.jsx)("div",{className:"w-1/3 py-1 bg-secondary"}),(0,i.jsx)("div",{className:"w-1/3 py-1 bg-primary"}),(0,i.jsx)("div",{className:"w-1/3 py-1 bg-primary"})]}),(0,i.jsxs)("div",{className:"flex w-1/3",children:[(0,i.jsx)("div",{className:"w-1/3 py-1 bg-secondary"}),(0,i.jsx)("div",{className:"w-1/3 py-1 bg-primary"}),(0,i.jsx)("div",{className:"w-1/3 py-1 bg-primary"})]})]})}var ue,ie,L,S,M,ee,re,p,i,$=x(()=>{"use strict";ue=require("@stackshift-ui/button");c();i=require("react/jsx-runtime")});var ke={};b(ke,{Footer_D:()=>z,default:()=>z});function z({logo:e,multipleMenus:r,copyright:t,socialMedia:n,text:l}){return(0,m.jsx)(ee.Section,{className:"py-20 overflow-hidden bg-background",children:(0,m.jsxs)(ie.Container,{maxWidth:1280,children:[(0,m.jsxs)("div",{className:"flex flex-col lg:flex-row w-full gap-5 lg:items-center lg:justify-between xl:items-start",children:[(0,m.jsxs)("div",{className:"w-full lg:max-w-sm xl:max-w-xs space-y-4",children:[(0,m.jsx)(Ye,{logo:e}),(0,m.jsx)(Ze,{text:l})]}),(0,m.jsx)("div",{className:"flex flex-col space-y-8 lg:space-y-0",children:(0,m.jsx)("div",{className:"flex flex-col lg:flex-row w-full justify-between items-start lg:items-center",children:(0,m.jsx)(er,{multipleMenus:r})})}),(0,m.jsx)("div",{className:"hidden [@media(min-width:1444px)]:block",children:(0,m.jsx)(we,{socialMedia:n})})]}),(0,m.jsx)("div",{className:"hidden [@media(min-width:1444px)]:block items-center",children:(0,m.jsx)(ce,{copyright:t})}),(0,m.jsxs)("div",{className:"flex flex-col sm:flex-row w-full sm:items-center sm:justify-between pt-10 gap-5 [@media(min-width:1444px)]:hidden",children:[(0,m.jsx)(ce,{copyright:t}),(0,m.jsx)(we,{socialMedia:n})]})]})})}function Ye({logo:e}){var r;return e!=null&&e.image?(0,m.jsx)(M.Link,{className:"inline-block text-xl font-bold leading-none","aria-label":d(e)==="/"?"Go to home page":`Go to ${d(e)}`,href:d(e),target:e==null?void 0:e.linkTarget,rel:(e==null?void 0:e.linkTarget)==="_blank"?"noopener noreferrer":"",children:(0,m.jsx)(S.Image,{src:`${e==null?void 0:e.image}`,sizes:"(max-width: 768px) 100vw, (max-width: 1200px) 50vw, 33vw",width:132,height:56,alt:(r=e==null?void 0:e.alt)!=null?r:"footer-logo"})}):null}function Ze({text:e}){return e?(0,m.jsx)(p.Text,{muted:!0,className:"leading-normal",children:e}):null}function ce({copyright:e}){return e?(0,m.jsx)(p.Text,{className:"lg:pt-10 text-sm",children:e}):null}function er({multipleMenus:e}){return e?(0,m.jsx)("div",{className:"flex flex-col sm:flex-row flex-wrap gap-5",children:e==null?void 0:e.map(r=>(0,m.jsx)(rr,{menu:r},r==null?void 0:r._key))}):null}function rr({menu:e}){var r,t;return e?(0,m.jsxs)("div",{className:"min-w-[140px]",children:[(e==null?void 0:e.title)&&(0,m.jsx)(p.Text,{weight:"bold",className:"mb-3",children:e==null?void 0:e.title}),((r=e==null?void 0:e.links)==null?void 0:r.length)>0&&(0,m.jsx)(L.Flex,{as:"ul",direction:"col",className:"space-y-2",children:(t=e==null?void 0:e.links)==null?void 0:t.map(n=>(0,m.jsx)("li",{children:(0,m.jsx)(ye.Button,{as:"link",link:n,className:"text-gray-500 no-underline hover:text-gray-700",ariaLabel:n==null?void 0:n.label,children:n==null?void 0:n.label})},n==null?void 0:n._key))})]}):null}function we({socialMedia:e}){return e?(0,m.jsx)(L.Flex,{className:"flex flex-wrap flex-row [@media(min-width:240px)]:items-center sm:space-x-4",gap:2,children:e==null?void 0:e.map(r=>(r==null?void 0:r.socialMediaLink)&&(0,m.jsx)(tr,{social:r},r==null?void 0:r._key))}):null}function tr({social:e}){var t,n,l,u;if(!(e!=null&&e.socialMediaLink))return null;let r=s=>{if(!s)return;let o=s.toLowerCase();if(["facebook","instagram","youtube","linkedin","twitter"].includes(o))return o};return(0,m.jsx)(M.Link,{"aria-label":(e==null?void 0:e.socialMedia)||(e==null?void 0:e.socialMediaPlatform)||"",className:"sm:inline-flex items-center justify-center w-10 h-10 rounded-full hover:bg-gray-100",target:"_blank",rel:"noopener noreferrer",href:e==null?void 0:e.socialMediaLink,children:(t=e==null?void 0:e.socialMediaIcon)!=null&&t.image?(0,m.jsx)(S.Image,{className:"h-6 w-6",src:`${(n=e==null?void 0:e.socialMediaIcon)==null?void 0:n.image}`,width:24,height:24,alt:(u=(l=e==null?void 0:e.socialMediaIcon)==null?void 0:l.alt)!=null?u:"socialmedia-icon"}):(0,m.jsx)(re.SocialIcons,{social:r(e==null?void 0:e.socialMedia)})})}var ye,ie,L,S,M,ee,re,p,m,K=x(()=>{"use strict";ye=require("@stackshift-ui/button");c();m=require("react/jsx-runtime")});var ar={};b(ar,{Footer:()=>ve,Footer_A:()=>F,Footer_B:()=>_,Footer_C:()=>W,Footer_D:()=>z});module.exports=_e(ar);var w=require("react"),ge=require("react/jsx-runtime"),nr={variant_a:(0,w.lazy)(()=>Promise.resolve().then(()=>(C(),te))),variant_b:(0,w.lazy)(()=>Promise.resolve().then(()=>(P(),de))),variant_c:(0,w.lazy)(()=>Promise.resolve().then(()=>($(),be))),variant_d:(0,w.lazy)(()=>Promise.resolve().then(()=>(K(),ke)))},ir="Footer",ve=({data:e})=>{var l,u,s,o,V,A,E,q,H,J,O,Q,U,X;let r=e==null?void 0:e.variant,t=r&&nr[r],n={logo:(u=(l=e==null?void 0:e.variants)==null?void 0:l.logo)!=null?u:void 0,text:(o=(s=e==null?void 0:e.variants)==null?void 0:s.plainText)!=null?o:void 0,contacts:(A=(V=e==null?void 0:e.variants)==null?void 0:V.contactDetails)!=null?A:void 0,copyright:(q=(E=e==null?void 0:e.variants)==null?void 0:E.copyright)!=null?q:void 0,socialMedia:(J=(H=e==null?void 0:e.variants)==null?void 0:H.socialLinks)!=null?J:void 0,menu:(Q=(O=e==null?void 0:e.variants)==null?void 0:O.menu)!=null?Q:void 0,multipleMenus:(X=(U=e==null?void 0:e.variants)==null?void 0:U.multipleMenus)!=null?X:void 0};return t?(0,ge.jsx)(t,{...n}):null};ve.displayName=ir;C();P();$();K();0&&(module.exports={Footer,Footer_A,Footer_B,Footer_C,Footer_D});
|
package/dist/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
"use strict";import{a as f}from"./chunk-
|
|
2
|
+
"use strict";import{a as f}from"./chunk-EGP3MYWE.mjs";import{a as o}from"./chunk-XWMRUVIJ.mjs";import{a as r}from"./chunk-VWS3TQ4M.mjs";import{a as e}from"./chunk-66FDHHFF.mjs";import{a as t}from"./chunk-AHKAOI66.mjs";import"./chunk-FWXIR5AI.mjs";export{f as Footer,o as Footer_A,r as Footer_B,e as Footer_C,t as Footer_D};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stackshift-ui/footer",
|
|
3
3
|
"description": "",
|
|
4
|
-
"version": "6.0.
|
|
4
|
+
"version": "6.0.11",
|
|
5
5
|
"private": false,
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"main": "./dist/index.js",
|
|
@@ -29,30 +29,30 @@
|
|
|
29
29
|
"typescript": "^5.6.2",
|
|
30
30
|
"vite-tsconfig-paths": "^5.0.1",
|
|
31
31
|
"vitest": "^2.1.1",
|
|
32
|
-
"@stackshift-ui/
|
|
33
|
-
"@stackshift-ui/
|
|
32
|
+
"@stackshift-ui/eslint-config": "6.0.8",
|
|
33
|
+
"@stackshift-ui/typescript-config": "6.0.8"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"classnames": "^2.5.1",
|
|
37
|
-
"@stackshift-ui/
|
|
38
|
-
"@stackshift-ui/
|
|
39
|
-
"@stackshift-ui/
|
|
40
|
-
"@stackshift-ui/
|
|
41
|
-
"@stackshift-ui/
|
|
42
|
-
"@stackshift-ui/
|
|
43
|
-
"@stackshift-ui/
|
|
44
|
-
"@stackshift-ui/
|
|
45
|
-
"@stackshift-ui/
|
|
46
|
-
"@stackshift-ui/
|
|
47
|
-
"@stackshift-ui/
|
|
48
|
-
"@stackshift-ui/
|
|
37
|
+
"@stackshift-ui/link": "6.0.9",
|
|
38
|
+
"@stackshift-ui/system": "6.0.9",
|
|
39
|
+
"@stackshift-ui/section": "6.0.9",
|
|
40
|
+
"@stackshift-ui/text": "6.0.9",
|
|
41
|
+
"@stackshift-ui/container": "6.0.9",
|
|
42
|
+
"@stackshift-ui/grid": "6.0.9",
|
|
43
|
+
"@stackshift-ui/flex": "6.0.9",
|
|
44
|
+
"@stackshift-ui/button": "6.0.9",
|
|
45
|
+
"@stackshift-ui/grid-item": "6.0.9",
|
|
46
|
+
"@stackshift-ui/scripts": "6.0.8",
|
|
47
|
+
"@stackshift-ui/image": "6.0.9",
|
|
48
|
+
"@stackshift-ui/social-icons": "6.0.9"
|
|
49
49
|
},
|
|
50
50
|
"peerDependencies": {
|
|
51
51
|
"@types/react": "16.8 - 19",
|
|
52
52
|
"next": "10 - 14",
|
|
53
53
|
"react": "16.8 - 19",
|
|
54
54
|
"react-dom": "16.8 - 19",
|
|
55
|
-
"@stackshift-ui/system": ">=6.0.
|
|
55
|
+
"@stackshift-ui/system": ">=6.0.9"
|
|
56
56
|
},
|
|
57
57
|
"peerDependenciesMeta": {
|
|
58
58
|
"next": {
|
package/src/footer_a.tsx
CHANGED
|
@@ -15,13 +15,13 @@ import { ContactDetails, Logo, SocialLink, Socials } from "./types";
|
|
|
15
15
|
export default function Footer_A({ logo, text, contacts, copyright, socialMedia }: FooterProps) {
|
|
16
16
|
return (
|
|
17
17
|
<Section className="py-20 bg-background">
|
|
18
|
-
<Container maxWidth={
|
|
18
|
+
<Container maxWidth={1280} className="lg:px-4">
|
|
19
19
|
<Flex wrap className="mb-5 lg:mb-20">
|
|
20
20
|
<LogoSection logo={logo} />
|
|
21
21
|
<TextContainer text={text} />
|
|
22
22
|
<ContactsContainer contacts={contacts} />
|
|
23
23
|
</Flex>
|
|
24
|
-
<Flex justify="between" align="center" className="w-full mx-auto
|
|
24
|
+
<Flex justify="between" align="center" wrap className="w-full mx-auto gap-4">
|
|
25
25
|
<CopyrightContainer copyright={copyright} />
|
|
26
26
|
<SocialMediaContainer socialMedia={socialMedia} />
|
|
27
27
|
</Flex>
|
|
@@ -36,16 +36,15 @@ function LogoSection({ logo }: { logo?: Logo }) {
|
|
|
36
36
|
return (
|
|
37
37
|
<div className="w-full mb-5 lg:w-1/5">
|
|
38
38
|
<Link
|
|
39
|
+
className="w-40 h-14 flex items-center"
|
|
39
40
|
aria-label={logoLink(logo) === "/" ? "Go to home page" : `Go to ${logoLink(logo)}`}
|
|
40
|
-
className="text-3xl font-bold leading-none"
|
|
41
41
|
href={logoLink(logo)}
|
|
42
42
|
target={logo?.linkTarget}
|
|
43
43
|
rel={logo?.linkTarget === "_blank" ? "noopener noreferrer" : ""}>
|
|
44
44
|
<Image
|
|
45
|
+
className="w-fit h-full object-contain"
|
|
45
46
|
src={`${logo?.image}`}
|
|
46
|
-
|
|
47
|
-
width={132}
|
|
48
|
-
height={56}
|
|
47
|
+
sizes="(max-width: 768px) 100vw, (max-width: 1200px) 50vw, 33vw"
|
|
49
48
|
alt={logo?.alt ?? "footer-logo"}
|
|
50
49
|
/>
|
|
51
50
|
</Link>
|
|
@@ -57,7 +56,7 @@ function TextContainer({ text }: { text?: string }) {
|
|
|
57
56
|
if (!text) return null;
|
|
58
57
|
|
|
59
58
|
return (
|
|
60
|
-
<Container className="w-full mb-5 lg:w-1/5" maxWidth={
|
|
59
|
+
<Container className="w-full mb-5 lg:w-1/5 !px-0 lg:px-4" maxWidth={1280}>
|
|
61
60
|
<Text muted className="leading-loose">
|
|
62
61
|
{text}
|
|
63
62
|
</Text>
|
|
@@ -69,7 +68,7 @@ function ContactsContainer({ contacts }: { contacts?: ContactDetails[] }) {
|
|
|
69
68
|
if (!contacts) return null;
|
|
70
69
|
|
|
71
70
|
return (
|
|
72
|
-
<Container className="w-full mt-1
|
|
71
|
+
<Container className="w-full mt-1 lg:w-1/2 !px-0 lg:px-4" maxWidth={1280}>
|
|
73
72
|
{contacts?.map((contact, index) => (
|
|
74
73
|
<Grid columns={1} gap={4} className="lg:gap-10 md:grid-cols-3" key={index}>
|
|
75
74
|
<GridItem span={1}>
|
|
@@ -124,33 +123,32 @@ function SocialMediaContainer({ socialMedia }: { socialMedia?: SocialLink[] }) {
|
|
|
124
123
|
if (!socialMedia) return null;
|
|
125
124
|
|
|
126
125
|
return (
|
|
127
|
-
<Flex wrap className="
|
|
128
|
-
{socialMedia?.map((social, index) => <SocialMediaLink social={social}
|
|
126
|
+
<Flex wrap className="gap-5">
|
|
127
|
+
{socialMedia?.map((social, index) => <SocialMediaLink social={social} key={index} />)}
|
|
129
128
|
</Flex>
|
|
130
129
|
);
|
|
131
130
|
}
|
|
132
131
|
|
|
133
|
-
function SocialMediaLink({ social
|
|
132
|
+
function SocialMediaLink({ social }: { social?: SocialLink }) {
|
|
134
133
|
if (!social?.socialMediaLink) return null;
|
|
135
134
|
|
|
136
135
|
return (
|
|
137
136
|
<Link
|
|
138
137
|
aria-label={social?.socialMedia || social?.socialMediaPlatform || ""}
|
|
139
|
-
className="
|
|
138
|
+
className="rounded w-6 h-6 flex items-center"
|
|
140
139
|
target="_blank"
|
|
141
140
|
rel="noopener noreferrer"
|
|
142
|
-
href={social?.socialMediaLink}
|
|
143
|
-
key={index}>
|
|
141
|
+
href={social?.socialMediaLink}>
|
|
144
142
|
{social?.socialMediaIcon?.image ? (
|
|
145
143
|
<Image
|
|
146
|
-
className="h-
|
|
144
|
+
className="w-full h-full object-contain"
|
|
147
145
|
src={`${social?.socialMediaIcon?.image}`}
|
|
148
|
-
width={
|
|
149
|
-
height={
|
|
146
|
+
width={56}
|
|
147
|
+
height={56}
|
|
150
148
|
alt={social?.socialMediaIcon?.alt ?? "contact-socialMedia-icon"}
|
|
151
149
|
/>
|
|
152
150
|
) : (
|
|
153
|
-
<SocialIcons social={social?.socialMedia
|
|
151
|
+
<SocialIcons social={social?.socialMedia} />
|
|
154
152
|
)}
|
|
155
153
|
</Link>
|
|
156
154
|
);
|
package/src/footer_b.tsx
CHANGED
|
@@ -20,7 +20,7 @@ export default function Footer_B({ logo, copyright, socialMedia, menu }: FooterP
|
|
|
20
20
|
<LogoSection logo={logo} />
|
|
21
21
|
<MenuLists menu={menu} />
|
|
22
22
|
</Flex>
|
|
23
|
-
<Flex wrap
|
|
23
|
+
<Flex wrap className="mt-8 justify-between items-start">
|
|
24
24
|
<CopyrightContainer copyright={copyright} />
|
|
25
25
|
<SocialMediaContainer socialMedia={socialMedia} />
|
|
26
26
|
</Flex>
|
|
@@ -33,20 +33,14 @@ function LogoSection({ logo }: { logo?: Logo }) {
|
|
|
33
33
|
if (!logo?.image) return null;
|
|
34
34
|
|
|
35
35
|
return (
|
|
36
|
-
<div className="
|
|
36
|
+
<div className="mb-8 xl:mb-0 w-full lg:w-1/5">
|
|
37
37
|
<Link
|
|
38
38
|
aria-label={logoLink(logo) === "/" ? "Go to home page" : `Go to ${logoLink(logo)}`}
|
|
39
|
-
className="
|
|
39
|
+
className="w-40 h-14 flex items-center"
|
|
40
40
|
href={logoLink(logo)}
|
|
41
41
|
target={logo?.linkTarget}
|
|
42
42
|
rel={logo?.linkTarget === "_blank" ? "noopener noreferrer" : ""}>
|
|
43
|
-
<Image
|
|
44
|
-
src={logo?.image}
|
|
45
|
-
alt={logo?.alt ?? "footer-logo"}
|
|
46
|
-
width={80}
|
|
47
|
-
height={80}
|
|
48
|
-
className="inline-block text-3xl font-bold leading-none"
|
|
49
|
-
/>
|
|
43
|
+
<Image className="w-full h-full " src={logo?.image} alt={logo?.alt ?? "footer-logo"} />
|
|
50
44
|
</Link>
|
|
51
45
|
</div>
|
|
52
46
|
);
|
|
@@ -57,7 +51,7 @@ function MenuLists({ menu }: { menu?: LabeledRouteWithKey[] }) {
|
|
|
57
51
|
|
|
58
52
|
return (
|
|
59
53
|
<div className="w-full lg:w-auto">
|
|
60
|
-
<Flex wrap align="center" justify="between" as="ul" className="
|
|
54
|
+
<Flex wrap align="center" justify="between" as="ul" gap={5} className="mt-8">
|
|
61
55
|
{menu?.map((links, index, { length }) => (
|
|
62
56
|
<React.Fragment key={links?._key || index}>
|
|
63
57
|
<MenuList links={links} />
|
|
@@ -109,7 +103,7 @@ function CopyrightContainer({ copyright }: { copyright?: string }) {
|
|
|
109
103
|
if (!copyright) return null;
|
|
110
104
|
|
|
111
105
|
return (
|
|
112
|
-
<Text muted className="order-last text-sm ">
|
|
106
|
+
<Text muted className="order-last text-sm p-2">
|
|
113
107
|
{copyright}
|
|
114
108
|
</Text>
|
|
115
109
|
);
|
|
@@ -131,7 +125,7 @@ function SocialMediaLink({ social }: { social?: SocialLink }) {
|
|
|
131
125
|
return (
|
|
132
126
|
<Link
|
|
133
127
|
aria-label={social?.socialMedia || social?.socialMediaPlatform || ""}
|
|
134
|
-
className="inline-block p-2
|
|
128
|
+
className="inline-block p-2 rounded"
|
|
135
129
|
target="_blank"
|
|
136
130
|
rel="noopener noreferrer"
|
|
137
131
|
href={social?.socialMediaLink}
|
package/src/footer_c.tsx
CHANGED
|
@@ -67,7 +67,7 @@ function MenuLists({ menu }: { menu?: LabeledRouteWithKey[] }) {
|
|
|
67
67
|
return (
|
|
68
68
|
<div className="mx-auto">
|
|
69
69
|
<Flex
|
|
70
|
-
className="flex-col gap-
|
|
70
|
+
className="flex-col gap-4 lg:flex-row lg:gap-10"
|
|
71
71
|
as="ul"
|
|
72
72
|
align="center"
|
|
73
73
|
justify="center">
|
|
@@ -97,26 +97,25 @@ function SocialMediaContainer({ socialMedia }: { socialMedia?: SocialLink[] }) {
|
|
|
97
97
|
if (!socialMedia) return null;
|
|
98
98
|
|
|
99
99
|
return (
|
|
100
|
-
<Flex wrap justify="center" className="
|
|
101
|
-
{socialMedia?.map((social, index) => <SocialMediaLink social={social}
|
|
100
|
+
<Flex wrap justify="center" align="center" className="gap-5">
|
|
101
|
+
{socialMedia?.map((social, index) => <SocialMediaLink social={social} key={index} />)}
|
|
102
102
|
</Flex>
|
|
103
103
|
);
|
|
104
104
|
}
|
|
105
105
|
|
|
106
|
-
function SocialMediaLink({ social
|
|
106
|
+
function SocialMediaLink({ social }: { social?: SocialLink }) {
|
|
107
107
|
if (!social?.socialMediaLink) return null;
|
|
108
108
|
|
|
109
109
|
return (
|
|
110
110
|
<Link
|
|
111
111
|
aria-label={social?.socialMedia || social?.socialMediaPlatform || ""}
|
|
112
|
-
className="
|
|
112
|
+
className="rounded w-6 h-6 flex items-center"
|
|
113
113
|
target="_blank"
|
|
114
114
|
rel="noopener noreferrer"
|
|
115
|
-
href={social?.socialMediaLink}
|
|
116
|
-
key={index}>
|
|
115
|
+
href={social?.socialMediaLink}>
|
|
117
116
|
{social?.socialMediaIcon?.image ? (
|
|
118
117
|
<Image
|
|
119
|
-
className="h-
|
|
118
|
+
className="w-full h-full object-contain"
|
|
120
119
|
src={`${social?.socialMediaIcon?.image}`}
|
|
121
120
|
width={56}
|
|
122
121
|
height={56}
|
package/src/footer_d.tsx
CHANGED
|
@@ -21,16 +21,29 @@ export default function Footer_D({
|
|
|
21
21
|
return (
|
|
22
22
|
<Section className="py-20 overflow-hidden bg-background">
|
|
23
23
|
<Container maxWidth={1280}>
|
|
24
|
-
<
|
|
25
|
-
<div className="w-full max-w-
|
|
24
|
+
<div className="flex flex-col lg:flex-row w-full gap-5 lg:items-center lg:justify-between xl:items-start">
|
|
25
|
+
<div className="w-full lg:max-w-sm xl:max-w-xs space-y-4">
|
|
26
26
|
<LogoSection logo={logo} />
|
|
27
27
|
<TextSection text={text} />
|
|
28
28
|
</div>
|
|
29
29
|
|
|
30
|
-
<
|
|
30
|
+
<div className="flex flex-col space-y-8 lg:space-y-0">
|
|
31
|
+
<div className="flex flex-col lg:flex-row w-full justify-between items-start lg:items-center">
|
|
32
|
+
<MenuSection multipleMenus={multipleMenus} />
|
|
33
|
+
</div>
|
|
34
|
+
</div>
|
|
35
|
+
|
|
36
|
+
<div className="hidden [@media(min-width:1444px)]:block">
|
|
37
|
+
<SocialMediaContainer socialMedia={socialMedia} />
|
|
38
|
+
</div>
|
|
39
|
+
</div>
|
|
40
|
+
<div className="hidden [@media(min-width:1444px)]:block items-center">
|
|
41
|
+
<CopyrightSection copyright={copyright} />
|
|
42
|
+
</div>
|
|
43
|
+
<div className="flex flex-col sm:flex-row w-full sm:items-center sm:justify-between pt-10 gap-5 [@media(min-width:1444px)]:hidden">
|
|
44
|
+
<CopyrightSection copyright={copyright} />
|
|
31
45
|
<SocialMediaContainer socialMedia={socialMedia} />
|
|
32
|
-
</
|
|
33
|
-
<CopyrightSection copyright={copyright} />
|
|
46
|
+
</div>
|
|
34
47
|
</Container>
|
|
35
48
|
</Section>
|
|
36
49
|
);
|
|
@@ -41,16 +54,15 @@ function LogoSection({ logo }: { logo?: Logo }) {
|
|
|
41
54
|
|
|
42
55
|
return (
|
|
43
56
|
<Link
|
|
44
|
-
className="
|
|
57
|
+
className="w-40 h-14 flex items-center"
|
|
45
58
|
aria-label={logoLink(logo) === "/" ? "Go to home page" : `Go to ${logoLink(logo)}`}
|
|
46
59
|
href={logoLink(logo)}
|
|
47
60
|
target={logo?.linkTarget}
|
|
48
61
|
rel={logo?.linkTarget === "_blank" ? "noopener noreferrer" : ""}>
|
|
49
62
|
<Image
|
|
63
|
+
className="w-fit h-full object-contain"
|
|
50
64
|
src={`${logo?.image}`}
|
|
51
65
|
sizes="(max-width: 768px) 100vw, (max-width: 1200px) 50vw, 33vw"
|
|
52
|
-
width={132}
|
|
53
|
-
height={56}
|
|
54
66
|
alt={logo?.alt ?? "footer-logo"}
|
|
55
67
|
/>
|
|
56
68
|
</Link>
|
|
@@ -70,25 +82,24 @@ function TextSection({ text }: { text?: string }) {
|
|
|
70
82
|
function CopyrightSection({ copyright }: { copyright?: string }) {
|
|
71
83
|
if (!copyright) return null;
|
|
72
84
|
|
|
73
|
-
return <Text className="pt-10 text-sm">{copyright}</Text>;
|
|
85
|
+
return <Text className="lg:pt-10 text-sm">{copyright}</Text>;
|
|
74
86
|
}
|
|
75
87
|
|
|
76
88
|
function MenuSection({ multipleMenus }: { multipleMenus?: any[] }) {
|
|
77
89
|
if (!multipleMenus) return null;
|
|
78
90
|
|
|
79
91
|
return (
|
|
80
|
-
<
|
|
92
|
+
<div className="flex flex-col sm:flex-row flex-wrap gap-5">
|
|
81
93
|
{multipleMenus?.map(menu => <MenuLinks key={menu?._key} menu={menu} />)}
|
|
82
|
-
</
|
|
94
|
+
</div>
|
|
83
95
|
);
|
|
84
96
|
}
|
|
85
97
|
|
|
86
|
-
// Individual Menu Links Component
|
|
87
98
|
function MenuLinks({ menu }: { menu?: any }) {
|
|
88
99
|
if (!menu) return null;
|
|
89
100
|
|
|
90
101
|
return (
|
|
91
|
-
<div className="w-[
|
|
102
|
+
<div className="min-w-[140px]">
|
|
92
103
|
{menu?.title && (
|
|
93
104
|
<Text weight="bold" className="mb-3">
|
|
94
105
|
{menu?.title}
|
|
@@ -117,8 +128,12 @@ function SocialMediaContainer({ socialMedia }: { socialMedia?: SocialLink[] }) {
|
|
|
117
128
|
if (!socialMedia) return null;
|
|
118
129
|
|
|
119
130
|
return (
|
|
120
|
-
<Flex
|
|
121
|
-
|
|
131
|
+
<Flex
|
|
132
|
+
className="flex flex-wrap flex-row [@media(min-width:240px)]:items-center sm:space-x-4"
|
|
133
|
+
gap={2}>
|
|
134
|
+
{socialMedia?.map(
|
|
135
|
+
social => social?.socialMediaLink && <SocialMediaLink key={social?._key} social={social} />,
|
|
136
|
+
)}
|
|
122
137
|
</Flex>
|
|
123
138
|
);
|
|
124
139
|
}
|
|
@@ -126,27 +141,37 @@ function SocialMediaContainer({ socialMedia }: { socialMedia?: SocialLink[] }) {
|
|
|
126
141
|
function SocialMediaLink({ social }: { social?: SocialLink }) {
|
|
127
142
|
if (!social?.socialMediaLink) return null;
|
|
128
143
|
|
|
144
|
+
// Helper function to convert social media string to valid type
|
|
145
|
+
const getSocialType = (
|
|
146
|
+
socialMedia: string | null | undefined,
|
|
147
|
+
): "facebook" | "instagram" | "youtube" | "linkedin" | "twitter" | undefined => {
|
|
148
|
+
if (!socialMedia) return undefined;
|
|
149
|
+
const normalized = socialMedia.toLowerCase();
|
|
150
|
+
if (["facebook", "instagram", "youtube", "linkedin", "twitter"].includes(normalized)) {
|
|
151
|
+
return normalized as "facebook" | "instagram" | "youtube" | "linkedin" | "twitter";
|
|
152
|
+
}
|
|
153
|
+
return undefined;
|
|
154
|
+
};
|
|
155
|
+
|
|
129
156
|
return (
|
|
130
|
-
<
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
)
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
</Link>
|
|
149
|
-
</span>
|
|
157
|
+
<Link
|
|
158
|
+
aria-label={social?.socialMedia || social?.socialMediaPlatform || ""}
|
|
159
|
+
className="rounded w-6 h-6 flex items-center"
|
|
160
|
+
target="_blank"
|
|
161
|
+
rel="noopener noreferrer"
|
|
162
|
+
href={social?.socialMediaLink}>
|
|
163
|
+
{social?.socialMediaIcon?.image ? (
|
|
164
|
+
<Image
|
|
165
|
+
className="w-full h-full object-contain"
|
|
166
|
+
src={`${social?.socialMediaIcon?.image}`}
|
|
167
|
+
width={56}
|
|
168
|
+
height={56}
|
|
169
|
+
alt={social?.socialMediaIcon?.alt ?? "contact-socialMedia-icon"}
|
|
170
|
+
/>
|
|
171
|
+
) : (
|
|
172
|
+
<SocialIcons social={getSocialType(social?.socialMedia)} />
|
|
173
|
+
)}
|
|
174
|
+
</Link>
|
|
150
175
|
);
|
|
151
176
|
}
|
|
152
177
|
|
package/dist/chunk-XQZI2OKQ.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as f}from"./chunk-FWXIR5AI.mjs";import{Button as y}from"@stackshift-ui/button";import{Container as o}from"@stackshift-ui/container";import{Flex as d}from"@stackshift-ui/flex";import{Image as x}from"@stackshift-ui/image";import{Link as h}from"@stackshift-ui/link";import{Section as w}from"@stackshift-ui/section";import{SocialIcons as L}from"@stackshift-ui/social-icons";import{Text as m}from"@stackshift-ui/text";import{jsx as r,jsxs as p}from"react/jsx-runtime";function c({logo:e,multipleMenus:t,copyright:a,socialMedia:n,text:i}){return r(w,{className:"py-20 overflow-hidden bg-background",children:p(o,{maxWidth:1280,children:[p(d,{wrap:!0,className:"space-y-4 lg:space-y-0",children:[p("div",{className:"w-full max-w-2xl space-y-4 lg:w-1/4",children:[r(b,{logo:e}),r(k,{text:i})]}),r(N,{multipleMenus:t}),r(l,{socialMedia:n})]}),r(u,{copyright:a})]})})}function b({logo:e}){var t;return e!=null&&e.image?r(h,{className:"inline-block text-xl font-bold leading-none","aria-label":f(e)==="/"?"Go to home page":`Go to ${f(e)}`,href:f(e),target:e==null?void 0:e.linkTarget,rel:(e==null?void 0:e.linkTarget)==="_blank"?"noopener noreferrer":"",children:r(x,{src:`${e==null?void 0:e.image}`,sizes:"(max-width: 768px) 100vw, (max-width: 1200px) 50vw, 33vw",width:132,height:56,alt:(t=e==null?void 0:e.alt)!=null?t:"footer-logo"})}):null}function k({text:e}){return e?r(m,{muted:!0,className:"leading-normal",children:e}):null}function u({copyright:e}){return e?r(m,{className:"pt-10 text-sm",children:e}):null}function N({multipleMenus:e}){return e?r(d,{wrap:!0,className:"flex-grow !justify-center",gap:4,children:e==null?void 0:e.map(t=>r(S,{menu:t},t==null?void 0:t._key))}):null}function S({menu:e}){var t,a;return e?p("div",{className:"w-[200px] flex-none",children:[(e==null?void 0:e.title)&&r(m,{weight:"bold",className:"mb-3",children:e==null?void 0:e.title}),((t=e==null?void 0:e.links)==null?void 0:t.length)>0&&r(d,{as:"ul",direction:"col",className:"space-y-2",children:(a=e==null?void 0:e.links)==null?void 0:a.map(n=>r("li",{children:r(y,{as:"link",link:n,className:"text-gray-500 no-underline hover:text-gray-700",ariaLabel:n==null?void 0:n.label,children:n==null?void 0:n.label})},n==null?void 0:n._key))})]}):null}function l({socialMedia:e}){return e?r(d,{className:"!items-center",wrap:!0,gap:2,children:e==null?void 0:e.map(t=>(t==null?void 0:t.socialMediaLink)&&r(s,{social:t}))}):null}function s({social:e}){var t,a,n,i;return e!=null&&e.socialMediaLink?r("span",{children:r(h,{"aria-label":(e==null?void 0:e.socialMedia)||(e==null?void 0:e.socialMediaPlatform)||"",className:"inline-block p-2 rounded",target:"_blank",rel:"noopener noreferrer",href:e==null?void 0:e.socialMediaLink,children:(t=e==null?void 0:e.socialMediaIcon)!=null&&t.image?r(x,{className:"h-6 w-full",src:`${(a=e==null?void 0:e.socialMediaIcon)==null?void 0:a.image}`,width:24,height:24,alt:(i=(n=e==null?void 0:e.socialMediaIcon)==null?void 0:n.alt)!=null?i:"socialmedia-icon"}):r(L,{social:e==null?void 0:e.socialMedia})})},e==null?void 0:e._key):null}export{c as a};
|
|
File without changes
|