import{r as j,j as s}from"./components-DLG5sGTR.js";import{a as y}from"./asText-BXrg0c_9.js";const f=e=>e!=null,x=e=>f(e)&&!!e.url,z=e=>f(e)&&("id"in e||"url"in e),b="2.7.4",C=e=>`https://prismic.dev/msg/react/v${b}/${e}`,_=e=>e.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`),d=(e,t)=>{const r=new URL(e);for(const l in t){const i=_(l),a=t[l];a===void 0?r.searchParams.delete(i):Array.isArray(a)?r.searchParams.set(i,a.join(",")):r.searchParams.set(i,`${a}`)}const n=r.searchParams.get("s");return n&&(r.searchParams.delete("s"),r.searchParams.append("s",n)),r.toString()},P=(e,{pixelDensities:t,...r})=>t.map(n=>`${d(e,{...r,dpr:n})} ${n}x`).join(", "),p=(e,{widths:t,...r})=>t.map(n=>`${d(e,{...r,w:void 0,width:n})} ${n}w`).join(", "),w=[640,828,1200,2048,3840],L=(e,t={})=>{if(e&&x(e)){let{widths:r=w,...n}=t;const{url:l,dimensions:i,alt:a,copyright:v,...h}=e,c=Object.values(h);return r==="thumbnails"&&c.length<1&&(r=w),{src:d(l,n),srcset:r==="thumbnails"?[p(l,{...n,widths:[i.width]}),...c.map(m=>p(m.url,{...n,widths:[m.dimensions.width]}))].join(", "):p(e.url,{...n,widths:r})}}else return null},N=[1,2,3],k=(e,t={})=>{if(e&&x(e)){const{pixelDensities:r=N,...n}=t;return{src:d(e.url,n),srcset:P(e.url,{...n,pixelDensities:r})}}else return null},S=j.forwardRef(function({field:t,alt:r,fallbackAlt:n,imgixParams:l={},widths:i,pixelDensities:a,...v},h){if(typeof process<"u",x(t)){const c=l;for(const o in l)c[o]===null&&(c[o]=void 0);let m,g;if(i||!a){const o=L(t,{...c,widths:i==="defaults"?void 0:i});m=o.src,g=o.srcset}else if(a){const o=k(t,{...c,pixelDensities:a==="defaults"?void 0:a});m=o.src,g=o.srcset}return s.jsx("img",{ref:h,src:m,srcSet:g,alt:r??(t.alt||n),...v})}else return null}),D=e=>{var t;switch(e.type){case"page":return e.uid==="home"?"/":e.uid?`/${(t=e.uid)==null?void 0:t.replace(/_/g,"/")}`:"/";default:return e.uid?`/${e.uid.replace(/_/g,"/")}`:"/"}},I={empty:()=>s.jsx("svg",{stroke:"currentColor",fill:"#e7ae23",strokeWidth:"0",viewBox:"0 0 512 512",height:"1em",width:"1em",xmlns:"http://www.w3.org/2000/svg",children:s.jsx("path",{d:"M463 192H315.9L271.2 58.6C269 52.1 262.9 48 256 48s-13 4.1-15.2 10.6L196.1 192H48c-8.8 0-16 7.2-16 16 0 .9.1 1.9.3 2.7.2 3.5 1.8 7.4 6.7 11.3l120.9 85.2-46.4 134.9c-2.3 6.5 0 13.8 5.5 18 2.9 2.1 5.6 3.9 9 3.9 3.3 0 7.2-1.7 10-3.6l118-84.1 118 84.1c2.8 2 6.7 3.6 10 3.6 3.4 0 6.1-1.7 8.9-3.9 5.6-4.2 7.8-11.4 5.5-18L352 307.2l119.9-86 2.9-2.5c2.6-2.8 5.2-6.6 5.2-10.7 0-8.8-8.2-16-17-16zm-127.2 92.5c-10 7.2-14.2 20.2-10.2 31.8l30.1 87.7c1.3 3.7-2.9 6.8-6.1 4.6l-77.4-55.2c-4.9-3.5-10.6-5.2-16.3-5.2-5.7 0-11.4 1.7-16.2 5.2l-77.4 55.1c-3.2 2.3-7.4-.9-6.1-4.6l30.1-87.7c4-11.8-.2-24.8-10.3-32l-81-57.1c-3.2-2.2-1.6-7.3 2.3-7.3H196c12 0 22.7-7.7 26.5-19.1l29.6-88.2c1.2-3.6 6.4-3.6 7.6 0l29.6 88.2c3.8 11.4 14.5 19.1 26.5 19.1h97.3c3.9 0 5.5 5 2.3 7.2l-79.6 57.5z"})}),full:()=>s.jsx("svg",{stroke:"#e7ae23",fill:"#e7ae23",strokeWidth:"0",viewBox:"0 0 512 512",height:"1em",width:"1em",xmlns:"http://www.w3.org/2000/svg",children:s.jsx("path",{d:"M256 372.686L380.83 448l-33.021-142.066L458 210.409l-145.267-12.475L256 64l-56.743 133.934L54 210.409l110.192 95.525L131.161 448z"})}),half:()=>s.jsx("svg",{stroke:"#e7ae23",fill:"#e7ae23",strokeWidth:"0",viewBox:"0 0 512 512",height:"1em",width:"1em",xmlns:"http://www.w3.org/2000/svg",children:s.jsx("path",{d:"M458 210.409l-145.267-12.476L256 64l-56.743 133.934L54 210.409l110.192 95.524L131.161 448 256 372.686 380.83 448l-33.021-142.066L458 210.409zM272.531 345.287L256 335.313l-.002-189.277 27.27 64.379 7.52 17.751 19.208 1.65 69.846 5.998-52.993 45.939-14.576 12.636 4.367 18.788 15.875 68.299-59.984-36.189z"})})},u=({mode:e,...t})=>{const r=I[e];return s.jsx(r,{...t})},$=({rating:e})=>{const t=e;return s.jsx(s.Fragment,{children:[...Array(5).keys()].map(r=>s.jsx("span",{style:{fontSize:"28px"},children:t>=r+1?s.jsx(u,{mode:"full"}):t===r+.5?s.jsx(u,{mode:"half"}):s.jsx(u,{mode:"empty"})},`review_${r}`))})},A=({rating:e})=>s.jsx("div",{children:s.jsx($,{rating:e})}),F=({slice:e})=>s.jsxs(s.Fragment,{children:[s.jsx("span",{className:"footer__quote",children:"“"}),s.jsx("div",{className:"container",children:s.jsxs("div",{className:"footer__reviews text-center p-4 mx-auto",children:[s.jsx("div",{className:"heading handwritten footer__reviews-title pb-3",children:e.primary.title}),s.jsx("div",{className:"footer__review",children:e.primary.review}),s.jsx(A,{rating:e.primary.rating}),s.jsx("div",{className:"heading lg handwritten footer__reviews-name mt-2 mb-4",children:e.primary.name}),s.jsx("a",{href:"/reviews/",className:"btn btn--primary d-inline-block","data-icon-after":"",children:e.primary.link_text})]})})]}),E=({slice:e})=>s.jsx("div",{className:"footer__payment-logos text-center py-3",children:s.jsx("div",{className:"container",children:s.jsxs("div",{className:"row justify-content-center align-items-center",children:[s.jsx("div",{className:"col-12 col-lg-auto",children:s.jsx("div",{className:"heading mb-3 mb-lg-0 handwritten lg",children:y(e.primary.title)})}),s.jsx("div",{className:"col-12 col-lg-auto",children:s.jsx("div",{className:"row justify-content-center",children:s.jsx(s.Fragment,{children:e.items&&e.items.map(t=>s.jsx("div",{className:"col-auto d-flex align-items-center justify-content-center mb-3 mb-lg-0 px-3 pb-2",children:s.jsx("div",{className:"footer__payment-logo h-100 d-flex align-items-center justify-content-center",children:s.jsx(S,{field:t.image,loading:"lazy",widths:[]})})},t.text))})})})]})})});export{F as C,S as P,E as a,z as b,C as d,D as l};