{"version":3,"file":"shared-lib.C0rJScnA.mjs","names":["useMemo"],"sources":["https:/framer.com/m/framer/icon-nullstate.js@0.7.0","https:/framerusercontent.com/modules/Ma20hU0GGRxLxZphbywl/OSpwWF91FHPVFyQJjMHt/utils.js","https:/framerusercontent.com/modules/4KmNP1gy4niiFu4nl1CP/5F84Qs68kcG5ZHkUd5H0/siteMetadata.js"],"sourcesContent":["import { jsx as _jsx } from \"react/jsx-runtime\";\nimport * as React from \"react\";\nexport const containerStyles = {\n    width: \"100%\",\n    height: \"100%\",\n    display: \"flex\",\n    justifyContent: \"center\",\n    alignItems: \"center\"\n};\nconst nullIconStyle = {\n    minWidth: \"10px\",\n    minHeight: \"10px\",\n    maxWidth: \"20px\",\n    maxHeight: \"20px\",\n    width: \"60%\",\n    height: \"60%\"\n};\nconst emptyStateStyle = {\n    ...containerStyles,\n    borderRadius: 6,\n    background: \"rgba(149, 149, 149, 0.1)\",\n    border: \"1px dashed rgba(149, 149, 149, 0.15)\",\n    color: \"#a5a5a5\",\n    flexDirection: \"column\"\n};\nexport const NullState = /*#__PURE__*/ React.forwardRef((_, ref)=>{\n    return(/*#__PURE__*/ _jsx(\"div\", {\n        style: emptyStateStyle,\n        ref: ref\n    }));\n}) /*\n\n<svg\n                xmlns=\"http://www.w3.org/2000/svg\"\n                viewBox=\"0 0 30 30\"\n                style={nullIconStyle}\n            >\n                <path\n                    d=\"M 12.857 0 C 19.958 0 25.714 5.756 25.714 12.857 C 25.714 19.958 19.958 25.714 12.857 25.714 C 5.756 25.714 0 19.958 0 12.857 C 0 5.756 5.756 0 12.857 0 Z\"\n                    fill=\"#FFFFFF\"\n                ></path>\n                <path\n                    d=\"M 20.357 20.357 L 27.857 27.857\"\n                    fill=\"transparent\"\n                    strokeWidth=\"4.28\"\n                    stroke=\"#FFFFFF\"\n                    strokeLinecap=\"round\"\n                ></path>\n                <g transform=\"translate(9.643 6.429)\">\n                    <path\n                        d=\"M 3.214 12.857 L 3.214 12.857\"\n                        fill=\"transparent\"\n                        strokeWidth=\"3.75\"\n                        stroke=\"currentColor\"\n                        strokeLinecap=\"round\"\n                    ></path>\n                    <path\n                        d=\"M 0 3.214 C 0 1.004 1.843 0 3.214 0 C 4.586 0 6.429 0.603 6.429 3.214 C 6.429 5.826 3.214 5.913 3.214 7.232 C 3.214 8.552 3.214 8.571 3.214 8.571\"\n                        fill=\"transparent\"\n                        strokeWidth=\"3.22\"\n                        stroke=\"currentColor\"\n                        strokeLinecap=\"round\"\n                        strokeLinejoin=\"round\"\n                    ></path>\n                </g>\n            </svg>\n            */ ;\n\nexport const __FramerMetadata__ = {\"exports\":{\"containerStyles\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"NullState\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}}}}\n//# sourceMappingURL=./nullstate.map","import{useMemo}from\"react\";import{ControlType}from\"framer\";/*\n ** ICON UTILS\n ** Pull as much re-usable logic into here as possible\n ** This will make it easier to replace in all icon components\n */ export const containerStyles={width:\"100%\",height:\"100%\",display:\"flex\",justifyContent:\"center\",alignItems:\"center\"};export const defaultEvents={onClick:{type:ControlType.EventHandler},onMouseDown:{type:ControlType.EventHandler},onMouseUp:{type:ControlType.EventHandler},onMouseEnter:{type:ControlType.EventHandler},onMouseLeave:{type:ControlType.EventHandler}};const findByArray=(arr,search)=>arr.find(a=>a.toLowerCase().includes(search));export function getIconSelection(iconKeys,selectByList,iconSearch=\"\",iconSelection,lowercaseIconKeyPairs){// gotta get the exact match first THEN find\n// have a set and try to access ?\nif(selectByList)return iconSelection;if(iconSearch==null||(iconSearch===null||iconSearch===void 0?void 0:iconSearch.length)===0)return null;const iconSearchTerm=iconSearch.toLowerCase().replace(/-|\\s/g,\"\");var _iconSearchTerm;// check for exact match, otherwise use .find\nconst searchResult=(_iconSearchTerm=lowercaseIconKeyPairs[iconSearchTerm])!==null&&_iconSearchTerm!==void 0?_iconSearchTerm:findByArray(iconKeys,iconSearchTerm);return searchResult;}export function useIconSelection(iconKeys,selectByList,iconSearch=\"\",iconSelection,lowercaseIconKeyPairs){// Clean search term\nconst iconSearchResult=useMemo(()=>{if(iconSearch==null||(iconSearch===null||iconSearch===void 0?void 0:iconSearch.length)===0)return null;const iconSearchTerm=iconSearch.toLowerCase().replace(/-|\\s/g,\"\");var _iconSearchTerm;// check for exact match, otherwise use .find\nconst searchResult=(_iconSearchTerm=lowercaseIconKeyPairs[iconSearchTerm])!==null&&_iconSearchTerm!==void 0?_iconSearchTerm:findByArray(iconKeys,iconSearchTerm);return searchResult;},[iconSelection,iconSearch]);const name=selectByList?iconSelection:iconSearchResult;return name;}\nexport const __FramerMetadata__ = {\"exports\":{\"getIconSelection\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"containerStyles\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"useIconSelection\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"defaultEvents\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./utils.map","// Generated by Framer (9aabefb)\nexport default function metadata(params,activeLocale){return{customHTMLBodyEnd:\"<!-- Deferred Meta Pixel -->\\n<script>\\n(function () {\\n  var loaded = false;\\n  function initPixel(){\\n    if (loaded || window.fbq) return; loaded = true;\\n    !function(f,b,e,v,n,t,s){\\n      if(f.fbq) return;\\n      n=f.fbq=function(){ n.callMethod ? n.callMethod.apply(n,arguments) : n.queue.push(arguments) };\\n      if(!f._fbq) f._fbq=n; n.push=n; n.loaded=!0; n.version='2.0'; n.queue=[];\\n      t=b.createElement(e); t.async=!0; t.src=v;\\n      s=b.getElementsByTagName(e)[0]; s.parentNode.insertBefore(t,s);\\n    }(window, document, 'script', 'https://connect.facebook.net/en_US/fbevents.js');\\n\\n    fbq('init', '1028114559516577');\\n    fbq('track', 'PageView');\\n  }\\n\\n  // Fire on first interaction or 2s after load (adjust as you like)\\n  var evts = ['click','scroll','keydown','touchstart'];\\n  function trigger(){ initPixel(); cleanup(); }\\n  function listen(){ evts.forEach(function(e){ window.addEventListener(e, trigger, {once:true, passive:true}); }); }\\n  function cleanup(){ evts.forEach(function(e){ window.removeEventListener(e, trigger, {passive:true}); }); }\\n\\n  window.addEventListener('load', function(){\\n    listen();\\n    setTimeout(initPixel, 2000);\\n  });\\n})();\\n</script>\\n\\n<noscript>\\n  <img height=\\\"1\\\" width=\\\"1\\\" style=\\\"display:none\\\" src=\\\"https://www.facebook.com/tr?id=1028114559516577&amp;ev=PageView&amp;noscript=1\\\">\\n</noscript>\\n<script>\\n/*\\n  VanHub mobile perf helper\\n  - Picks a likely LCP image and boosts it (eager + fetchpriority=high)\\n  - Lazy-loads all other images/iframes via IntersectionObserver\\n  - Adds .defer to below-the-fold sections to cut layout work\\n  - Gives images width/height to reduce reflow (when known)\\n*/\\n(function(){\\n  var D = document, W = window;\\n\\n  // ---- 1) Select & boost the LCP candidate (first large, near top) ----\\n  function boostLCP(){\\n    if (!('fetchPriority' in D.createElement('img'))) {} // still set attrs\\n    var imgs = Array.from(D.images || []);\\n    var hero = imgs\\n      .filter(function(img){\\n        var r = img.getBoundingClientRect();\\n        return r.top < 1200 && r.bottom > 0 && (img.width >= 300 || img.naturalWidth >= 600);\\n      })\\n      .sort(function(a,b){\\n        return (b.width*b.height) - (a.width*a.height);\\n      })[0];\\n\\n    if (hero){\\n      hero.setAttribute('loading','eager');\\n      hero.setAttribute('decoding','async');\\n      try { hero.fetchPriority = 'high'; } catch(e){}\\n      hero.setAttribute('fetchpriority','high'); // for older browsers\\n    }\\n  }\\n\\n  // ---- 2) Lazy-load all other images/iframes (no Framer UI needed) ----\\n  function lazyEverything(){\\n    var io = 'IntersectionObserver' in W ?\\n      new IntersectionObserver(function(entries){\\n        entries.forEach(function(entry){\\n          if (!entry.isIntersecting) return;\\n          var el = entry.target;\\n\\n          // Swap data-src / data-srcset to real attributes\\n          if (el.dataset && (el.dataset.src || el.dataset.srcset)) {\\n            if (el.dataset.src) el.src = el.dataset.src;\\n            if (el.dataset.srcset) el.srcset = el.dataset.srcset;\\n            el.removeAttribute('data-src'); el.removeAttribute('data-srcset');\\n          }\\n          // If images were not marked with data-*, but we can set lazy:\\n          if (el.tagName === 'IMG' && el.getAttribute('loading') !== 'eager') {\\n            el.loading = 'lazy';\\n            el.decoding = 'async';\\n          }\\n          io.unobserve(el);\\n        });\\n      }, { rootMargin: '300px' })\\n      : null;\\n\\n    // Images: mark non-hero as lazy\\n    Array.from(D.images || []).forEach(function(img){\\n      if (img.getAttribute('loading') === 'eager') return; // hero kept eager\\n      img.setAttribute('loading','lazy');\\n      img.setAttribute('decoding','async');\\n      if (io) io.observe(img);\\n    });\\n\\n    // Iframes: defer unless above-the-fold\\n    Array.from(D.querySelectorAll('iframe')).forEach(function(f){\\n      var r = f.getBoundingClientRect();\\n      var aboveFold = r.top < 900;\\n      if (aboveFold) return;\\n      // move src to data-src to block immediate load\\n      if (f.src && !f.dataset.src){ f.dataset.src = f.src; f.removeAttribute('src'); }\\n      f.setAttribute('data-lazy','1');\\n      if (io) io.observe(f);\\n    });\\n  }\\n\\n  // ---- 3) Auto-defer below-the-fold sections with .defer ----\\n  function markBelowFold(){\\n    var cutoff = W.innerHeight * 0.95;\\n    Array.from(D.body.children).forEach(function(el, idx){\\n      var r = el.getBoundingClientRect();\\n      if (r.top > cutoff) el.classList.add('defer');\\n    });\\n  }\\n\\n  // ---- 4) Reduce reflow: add width/height once known ----\\n  function stabilizeSizes(){\\n    Array.from(D.images || []).forEach(function(img){\\n      function apply(){\\n        if (!img.getAttribute('width') && img.naturalWidth) {\\n          img.setAttribute('width', img.naturalWidth);\\n        }\\n        if (!img.getAttribute('height') && img.naturalHeight) {\\n          img.setAttribute('height', img.naturalHeight);\\n        }\\n      }\\n      if (img.complete) apply(); else img.addEventListener('load', apply, {once:true});\\n    });\\n  }\\n\\n  // Run after first paint\\n  if (D.readyState === 'complete' || D.readyState === 'interactive'){\\n    run();\\n  } else {\\n    D.addEventListener('DOMContentLoaded', run);\\n  }\\n\\n  function run(){\\n    try { boostLCP(); } catch(e){}\\n    try { lazyEverything(); } catch(e){}\\n    try { markBelowFold(); } catch(e){}\\n    try { stabilizeSizes(); } catch(e){}\\n  }\\n\\n  // Safety: if no interaction, still process lazy elements after 2s\\n  W.addEventListener('load', function(){\\n    setTimeout(function(){\\n      try { lazyEverything(); } catch(e){}\\n    }, 2000);\\n  });\\n})();\\n</script>\\n\",customHTMLHeadEnd:'<!-- Critical preconnects (keep lean) -->\\n<link rel=\"preconnect\" href=\"https://framerusercontent.com\">\\n<link rel=\"preconnect\" href=\"https://connect.facebook.net\"><!-- Only if Pixel used -->\\n\\n<!-- Optional: LCP preload (use only if you cannot set fetchpriority on the <img>) -->\\n<link rel=\"preload\" as=\"image\" href=\"https://framerusercontent.com/images/ogDf9Uv90afDUqQTV0iti5Ar70.webp\" type=\"image/webp\" fetchpriority=\"high\">\\n\\n<style>\\n/* Mobile: swap everything except H1 to system font */\\n@media (max-width: 767px) {\\n  :where(body, p, h2, h3, h4, h5, h6, button, .framer-text):not(.keep-brand-font) {\\n    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif !important;\\n  }\\n  h1 {\\n    font-family: \"Rammetto One\", system-ui, sans-serif !important;\\n  }\\n}\\n</style>\\n<!-- Keep preconnects lean (only what you really use) -->\\n<link rel=\"preconnect\" href=\"https://framerusercontent.com\">\\n\\n<style>\\n  /* Mobile: system font for everything except H1 */\\n  @media (max-width:767px){\\n    :where(body, p, h2, h3, h4, h5, h6, button, .framer-text):not(.keep-brand-font){\\n      font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif !important;\\n    }\\n    h1{ font-family:\"Rammetto One\", system-ui, sans-serif !important; }\\n  }\\n\\n  /* Generic below-the-fold deferral (JS will add .defer) */\\n  .defer{ content-visibility:auto; contain-intrinsic-size:1000px; }\\n\\n  /* Make lazy images cheap until they render */\\n  img[loading=\"lazy\"], iframe[data-lazy]{\\n    content-visibility:auto;\\n    contain-intrinsic-size: 600px 400px; /* safe placeholder */\\n  }\\n\\n  /* Avoid costly effects on mobile */\\n  @media (max-width:767px){\\n    [data-heavy-effect=\"1\"]{\\n      filter:none !important; backdrop-filter:none !important;\\n      box-shadow:none !important; will-change:auto !important;\\n    }\\n  }\\n</style>\\n',description:\"Book trusted UK van drivers for removals, waste, courier, and transport jobs. No agencies, just fast, reliable van services.\",favicon:\"https://framerusercontent.com/assets/iZ0AFZ0eLeC02ghPBbVSqpgqVqc.png\",robots:\"max-image-preview:large\",socialImage:\"https://framerusercontent.com/assets/8ZOit7SGrU0oK7BGUUfYDiRgC30.png\",title:\"VanHub UK | Local Van Driver Booking Platform\"};}export const metadataVersion=1;\nexport const __FramerMetadata__ = {\"exports\":{\"metadataVersion\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"default\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}"],"mappings":"uQAAgD,IACjB,CAClB,EAAkB,CAC3B,MAAO,OACP,OAAQ,OACR,QAAS,OACT,eAAgB,SAChB,WAAY,SACf,CASK,EAAkB,CACpB,GAAG,EACH,aAAc,EACd,WAAY,2BACZ,OAAQ,uCACR,MAAO,UACP,cAAe,SAClB,CACY,EAA0B,GAAkB,EAAG,IACnC,EAAK,MAAO,CAC7B,MAAO,EACF,MACR,CAAC,CACJ,IC1B0b,SAAgB,EAAiB,EAAS,EAAa,EAAW,GAAG,EAAc,EAAsB,CAEriB,GAAG,EAAa,OAAO,EAAc,GAAG,GAAY,MAAO,GAAyD,SAAU,EAAE,OAAO,KAAK,IAAM,EAAe,EAAW,aAAa,CAAC,QAAQ,QAAQ,GAAG,CAC5C,OAA7H,EAAsB,IAAkE,EAAY,EAAS,EAAe,CAAsB,SAAgB,EAAiB,EAAS,EAAa,EAAW,GAAG,EAAc,EAAsB,CAC/R,IAAM,EAAiBA,MAAY,CAAC,GAAG,GAAY,MAAO,GAAyD,SAAU,EAAE,OAAO,KAAK,IAAM,EAAe,EAAW,aAAa,CAAC,QAAQ,QAAQ,GAAG,CAC3C,OAA7H,EAAsB,IAAkE,EAAY,EAAS,EAAe,EAAuB,CAAC,EAAc,EAAW,CAAC,CAAwD,OAA5C,EAAa,EAAc,uBAT9N,IAAgC,CAI2E,EAAc,CAAC,QAAQ,CAAC,KAAK,EAAY,aAAa,CAAC,YAAY,CAAC,KAAK,EAAY,aAAa,CAAC,UAAU,CAAC,KAAK,EAAY,aAAa,CAAC,aAAa,CAAC,KAAK,EAAY,aAAa,CAAC,aAAa,CAAC,KAAK,EAAY,aAAa,CAAC,CAAO,GAAa,EAAI,IAAS,EAAI,KAAK,GAAG,EAAE,aAAa,CAAC,SAAS,EAAO,CAAC,ICH3b,SAAwB,EAAS,EAAO,EAAa,CAAC,MAAM,CAAC,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAA2lL,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAy0D,YAAY,+HAA+H,QAAQ,uEAAuE,OAAO,0BAA0B,YAAY,uEAAuE,MAAM,gDAAgD"}