1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[579],{85368:function(e,t,r){"use strict";r.d(t,{i:function(){return FocusTrap}});var n=r(2265),s=r(33946);let i=/input|select|textarea|button|object/,a="a, input, select, textarea, button, object, [tabindex]";function tabbable_hidden(e){return"none"===e.style.display}function visible(e){let t=e.getAttribute("aria-hidden")||e.getAttribute("hidden")||"hidden"===e.getAttribute("type");if(t)return!1;let r=e;for(;r&&r!==document.body&&11!==r.nodeType;){if(tabbable_hidden(r))return!1;r=r.parentNode}return!0}function getElementTabIndex(e){let t=e.getAttribute("tabindex");return null===t&&(t=void 0),parseInt(t,10)}function focusable(e){let t=e.nodeName.toLowerCase(),r=!Number.isNaN(getElementTabIndex(e)),n=i.test(t)&&!e.disabled||e instanceof HTMLAnchorElement&&e.href||r;return n&&visible(e)}function tabbable(e){let t=getElementTabIndex(e),r=Number.isNaN(t);return(r||t>=0)&&focusable(e)}function findTabbableDescendants(e){return Array.from(e.querySelectorAll(a)).filter(tabbable)}function scopeTab(e,t){let r=findTabbableDescendants(e);if(!r.length){t.preventDefault();return}let n=r[t.shiftKey?0:r.length-1],s=e.getRootNode(),i=n===s.activeElement||e===s.activeElement;if(!i)return;t.preventDefault();let a=r[t.shiftKey?r.length-1:0];a&&a.focus()}var l=r(5955);function createAriaHider(e,t="body > :not(script)"){let r=(0,l.k)(),n=Array.from(document.querySelectorAll(t)).map(t=>{var n;if((null==(n=null==t?void 0:t.shadowRoot)?void 0:n.contains(e))||t.contains(e))return;let s=t.getAttribute("aria-hidden"),i=t.getAttribute("data-hidden"),a=t.getAttribute("data-focus-id");return t.setAttribute("data-focus-id",r),null===s||"false"===s?t.setAttribute("aria-hidden","true"):i||a||t.setAttribute("data-hidden",s),{node:t,ariaHidden:i||null}});return()=>{n.forEach(e=>{e&&r===e.node.getAttribute("data-focus-id")&&(null===e.ariaHidden?e.node.removeAttribute("aria-hidden"):e.node.setAttribute("aria-hidden",e.ariaHidden),e.node.removeAttribute("data-focus-id"),e.node.removeAttribute("data-hidden"))})}}function useFocusTrap(e=!0){let t=(0,n.useRef)(),r=(0,n.useRef)(null),focusNode=e=>{let t=e.querySelector("[data-autofocus]");if(!t){let r=Array.from(e.querySelectorAll(a));!(t=r.find(tabbable)||r.find(focusable)||null)&&focusable(e)&&(t=e)}t&&t.focus({preventScroll:!0})},s=(0,n.useCallback)(n=>{if(e){if(null===n){r.current&&(r.current(),r.current=null);return}r.current=createAriaHider(n),t.current!==n&&(n?(setTimeout(()=>{n.getRootNode()&&focusNode(n)}),t.current=n):t.current=null)}},[e]);return(0,n.useEffect)(()=>{if(!e)return;t.current&&setTimeout(()=>focusNode(t.current));let handleKeyDown=e=>{"Tab"===e.key&&t.current&&scopeTab(t.current,e)};return document.addEventListener("keydown",handleKeyDown),()=>{document.removeEventListener("keydown",handleKeyDown),r.current&&r.current()}},[e]),s}var o=r(38921);function FocusTrap({children:e,active:t=!0,refProp:r="ref"}){let i=useFocusTrap(t),a=(0,o.Y)(i,null==e?void 0:e.ref);return(0,s.k)(e)?(0,n.cloneElement)(e,{[r]:a}):e}FocusTrap.displayName="@mantine/core/FocusTrap"},66516:function(e,t,r){"use strict";r.d(t,{u:function(){return useFocusReturn}});var n=r(2265),s=r(38857);function useFocusReturn({opened:e,shouldReturnFocus:t=!0}){let r=(0,n.useRef)(),returnFocus=()=>{var e;r.current&&"focus"in r.current&&"function"==typeof r.current.focus&&(null==(e=r.current)||e.focus({preventScroll:!0}))};return(0,s.l)(()=>{let n=-1,clearFocusTimeout=e=>{"Tab"===e.key&&window.clearTimeout(n)};return document.addEventListener("keydown",clearFocusTimeout),e?r.current=document.activeElement:t&&(n=window.setTimeout(returnFocus,10)),()=>{window.clearTimeout(n),document.removeEventListener("keydown",clearFocusTimeout)}},[e,t]),returnFocus}},42820:function(e,t,r){"use strict";r.d(t,{s:function(){return useWindowEvent}});var n=r(2265);function useWindowEvent(e,t,r){(0,n.useEffect)(()=>(window.addEventListener(e,t,r),()=>window.removeEventListener(e,t,r)),[e,t])}},34332:function(e,t,r){"use strict";r.d(t,{R:function(){return createSafeContext}});var n=r(2265);function createSafeContext(e){let t=(0,n.createContext)(null);return[({children:e,value:r})=>n.createElement(t.Provider,{value:r},e),()=>{let r=(0,n.useContext)(t);if(null===r)throw Error(e);return r}]}},9470:function(e,t,r){Promise.resolve().then(r.bind(r,15389)),Promise.resolve().then(r.bind(r,20601)),Promise.resolve().then(r.bind(r,61598)),Promise.resolve().then(r.bind(r,44586)),Promise.resolve().then(r.bind(r,37043)),Promise.resolve().then(r.t.bind(r,90413,23)),Promise.resolve().then(r.t.bind(r,68326,23))},15389:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return Accordions}});var n=r(57437);r(2265);var s=r(70259),i=r(28235),a=r(24606);function Accordions(e){let{title:t,content:r,accordions:l}=e;return(0,n.jsxs)("section",{className:"container py-20",children:[(0,n.jsx)("h2",{className:"font-light mb-4 text-2xl lg:text-4xl",children:t}),r&&(0,n.jsx)("p",{className:"mb-8",children:r}),(0,n.jsx)(s.U,{chevronPosition:"left",chevron:(0,n.jsx)(a.L3d,{className:"w-6 h-6"}),styles:{chevron:{"&[data-rotate]":{transform:"rotate(45deg)"}}},children:l.map((e,t)=>(0,n.jsxs)(s.U.Item,{value:e.title,children:[(0,n.jsx)(s.U.Control,{children:e.title}),(0,n.jsx)(s.U.Panel,{children:(0,n.jsx)(i.l,{children:(0,n.jsx)("div",{dangerouslySetInnerHTML:{__html:e.content}})})})]},t))})]})}},20601:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return HeroCardStack}});var n=r(57437),s=r(16691),i=r.n(s),a=r(2265),l=r(24606);function HeroCardStack(e){let{images:t}=e,[r,s]=(0,a.useState)(!1),o=(0,a.useRef)(null);return(0,a.useEffect)(()=>{Object.assign(o.current,{effect:"cards",grabCursor:!0}),o.current.initialize(),r||s(!0)},[]),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("swiper-container",{init:"false",ref:o,class:r?"transition-opacity duration-500":"block h-[30rem] overflow-hidden opacity-0 transition-opacity duration-500",children:t.map((e,t)=>(0,n.jsx)("swiper-slide",{lazy:0===t?"false":"true",children:(0,n.jsx)("div",{className:"bg-white shadow-lg m-4 p-4 pb-10 sm:m-8 sm:p-6 sm:pb-16",children:(0,n.jsx)(i(),{src:e.sizes["polaroid-sq"],alt:e.alt,width:e.sizes["polaroid-sq-width"],height:e.sizes["polaroid-sq-height"],priority:0===t})})},t))}),(0,n.jsxs)("div",{className:"flex justify-center items-center gap-x-10",children:[(0,n.jsx)("button",{className:"bg-transparent transition-all hover:opacity-50",onClick:()=>o.current.swiper.slidePrev(),children:(0,n.jsx)(l.And,{className:"w-10 h-10"})}),(0,n.jsx)("button",{className:"bg-transparent transition-all hover:opacity-50",onClick:()=>o.current.swiper.slideNext(),children:(0,n.jsx)(l.lzl,{className:"w-10 h-10"})})]})]})}(0,r(81121).z2)()},61598:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return PricingGroups}});var n=r(57437),s=r(37479),i=r(51982),a=r(93550),l=r(28235),o=r(2265),c=r(24606),d=r(35094);function PricingGroups(e){let{groups:t}=e,[r,u]=(0,o.useState)(0),m=(0,o.useMemo)(()=>t.map((e,t)=>({label:e.material_name,value:t})),[t]);return(0,n.jsxs)("section",{className:"container py-12 md:py-20",children:[(0,n.jsxs)("header",{className:"text-center mb-8",children:[(0,n.jsx)(d.Z,{children:"Pricing & quantities"}),(0,n.jsx)("strong",{className:"font-medium text-mt-gray text-lg",children:"Select a material to view prices:"})]}),(0,n.jsxs)("div",{className:"flex items-center justify-center gap-x-4 max-w-md mx-auto mb-20",children:[(0,n.jsx)(s.Ph,{data:m,value:r,color:"dark",onChange:u,styles:()=>({item:{fontFamily:"var(--font-work-sans)","&[data-selected]":{"&, &:hover":{backgroundColor:"#EEE",color:"#000"}}}})}),(0,n.jsxs)(i.J,{width:275,position:"bottom-end",withArrow:!0,shadow:"md",children:[(0,n.jsx)(i.J.Target,{children:(0,n.jsx)("div",{children:(0,n.jsx)(c.Hfo,{className:"w-6 h-6 text-mt-gray"})})}),(0,n.jsx)(i.J.Dropdown,{children:(0,n.jsxs)("p",{children:["Not sure what material you need? Compare your material options ",(0,n.jsx)("a",{href:"/pricing/",className:"text-blue-500 underline",children:"here"}),"."]})})]})]}),t.map((e,t)=>(0,n.jsx)(a.U,{in:r===t,transition:"rotate-left",duration:300,children:(0,n.jsxs)("div",{className:"grid gap-12 md:grid-cols-2",children:[(0,n.jsxs)("div",{className:"pricing__info",children:[(0,n.jsx)("h3",{className:"text-xl mb-4",children:"Price ranges:"}),(0,n.jsx)(l.l,{children:(0,n.jsx)("div",{dangerouslySetInnerHTML:{__html:e.content}})})]}),(0,n.jsx)("div",{className:"pricing__table",children:(0,n.jsxs)("table",{className:"border-collapse w-full table-fixed text-mt-gray",children:[(0,n.jsx)("thead",{children:(0,n.jsxs)("tr",{children:[(0,n.jsx)("td",{className:"border border-gray-400 px-4 py-2",children:"Quantity"}),(0,n.jsx)("td",{className:"border border-gray-400 px-4 py-2",children:"Price per item"})]})}),(0,n.jsx)("tbody",{children:e.price_breaks.map((e,t)=>(0,n.jsxs)("tr",{className:"transition-all hover:bg-gray-300/30",children:[(0,n.jsx)("td",{className:"border border-gray-400 px-4 py-2",children:e.quantity}),(0,n.jsx)("td",{className:"border border-gray-400 px-4 py-2",children:e.price_per_item})]},t))})]})})]})},t))]})}},44586:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return TestimonialCards}});var n=r(57437),s=r(2265),i=r(24606);function TestimonialCards(e){let{testimonials:t}=e,r=(0,s.useRef)(null);return(0,s.useEffect)(()=>{Object.assign(r.current,{spaceBetween:32,speed:500,loop:!0,autoHeight:!0}),r.current.initialize()},[]),(0,n.jsx)("section",{className:"bg-gradient-pastel py-28",children:(0,n.jsxs)("div",{className:"max-w-5xl mx-auto px-4 grid items-center grid-cols-2 gap-y-4 gap-x-8 md:grid-cols-[3rem_minmax(0,1fr)_3rem]",children:[(0,n.jsx)("button",{onClick:()=>r.current.swiper.slidePrev(),className:"row-start-2 w-12 bg-transparent md:row-start-1",children:(0,n.jsx)(i.And,{className:"w-10 h-10 text-mt-gray"})}),(0,n.jsx)("div",{className:"w-full col-start-1 col-span-2 md:col-span-1 md:col-start-2",children:(0,n.jsx)("swiper-container",{init:"false",ref:r,children:t.map((e,t)=>(0,n.jsxs)("swiper-slide",{class:"block bg-white pl-12 md:pl-24 pr-4 py-12 shadow-xl shadow-gray-400/20",children:[(0,n.jsx)("h3",{className:"quotemark text-xl md:text-3xl font-light mb-4",children:e.testimonial}),e.name&&(0,n.jsx)("p",{className:"text-md md:text-xl",children:e.name}),e.company&&(0,n.jsx)("p",{className:"text-md md:text-xl font-light",children:e.company})]},t))})}),(0,n.jsx)("button",{onClick:()=>r.current.swiper.slideNext(),className:"w-12 bg-transparent justify-self-end",children:(0,n.jsx)(i.lzl,{className:"w-10 h-10 text-mt-gray"})})]})})}(0,r(81121).z2)()},37043:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return TrustpilotWidget}});var n=r(57437),s=r(48475),i=r.n(s);function TrustpilotWidget(){return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(i(),{strategy:"lazyOnload",src:"//widget.trustpilot.com/bootstrap/v5/tp.widget.bootstrap.min.js"}),(0,n.jsx)("div",{className:"-translate-x-8 trustpilot-widget","data-locale":"en-GB","data-template-id":"56278e9abfbbba0bdcd568bc","data-businessunit-id":"5c9360637e4a270001107f66","data-style-height":"52px","data-style-width":"250px",children:(0,n.jsx)("a",{href:"https://uk.trustpilot.com/review/magictextiles.co.uk",target:"_blank",rel:"noopener",children:"Trustpilot"})})]})}r(2265)},35094:function(e,t,r){"use strict";r.d(t,{Z:function(){return Title}});var n=r(57437);function Title(e){let{className:t,children:r}=e;return(0,n.jsx)("h1",{className:"text-4xl font-light mb-4 text-mt-gray ".concat(t),children:r})}r(2265)}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.