{"version":3,"file":"shared-lib.CbtkoD7H.mjs","names":[],"sources":["https:/framerusercontent.com/modules/sfMJUmO3bVkGV9IK1gjb/yUc63cyXiaxQrBHThSpe/siteMetadata.js"],"sourcesContent":["// Generated by Framer (9d1d4bc)\nexport default function metadata(params,activeLocale){return{customHTMLBodyEnd:\"<!-- Vapi widget on /voiceagent only + iOS clipping fix (single source of truth) -->\\n<script src=\\\"https://unpkg.com/@vapi-ai/client-sdk-react/dist/embed/widget.umd.js\\\" async=\\\"\\\" type=\\\"text/javascript\\\" data-vapi-widget=\\\"1\\\"></script>\\n\\n<script>\\n(function () {\\n  // guard: only do this on /voiceagent\\n  function onVoiceAgent() { return /(^|\\\\/)voiceagent\\\\/?$/.test(location.pathname); }\\n\\n  // create the widget with your Playground settings\\n  function mountWidget() {\\n    if (!onVoiceAgent()) {\\n      // if navigating away in SPA, remove any existing widget\\n      const existing = document.querySelector('vapi-widget');\\n      if (existing) existing.remove();\\n      return;\\n    }\\n    if (document.querySelector('vapi-widget')) return;\\n\\n    const w = document.createElement('vapi-widget');\\n    w.id = 'va-widget';\\n    w.setAttribute('public-key', 'ee6efcc9-497e-481f-971f-a9bfb75e801e');\\n    w.setAttribute('assistant-id', 'ac3c386c-eb48-4f05-94f7-b5a6d95df38c'); // NEW AGENT\\n    w.setAttribute('mode', 'voice');\\n    w.setAttribute('theme', 'dark');\\n    w.setAttribute('base-bg-color', '#000000');\\n    w.setAttribute('accent-color', '#ad14b8');\\n    w.setAttribute('cta-button-color', '#000000');\\n    w.setAttribute('cta-button-text-color', '#ffffff');\\n    w.setAttribute('border-radius', 'large');\\n    w.setAttribute('size', 'full');               // as requested\\n    w.setAttribute('position', 'bottom-right');\\n    w.setAttribute('title', 'TALK WITH EMMA');\\n    w.setAttribute('start-button-text', 'Start');\\n    w.setAttribute('end-button-text', 'End Call');\\n    w.setAttribute('chat-first-message', 'Hey, How can I help you today?');\\n    w.setAttribute('chat-placeholder', 'Type your message...');\\n    w.setAttribute('voice-show-transcript', 'true');\\n    w.setAttribute('consent-required', 'true');\\n    w.setAttribute('consent-title', 'Terms and conditions');\\n    w.setAttribute('consent-content', 'By clicking \\\"Agree,\\\" and each time I interact with this AI agent, I consent to the recording, storage, and sharing of my communications with third-party service providers, and as otherwise described in our Terms of Service.');\\n    w.setAttribute('consent-storage-key', 'vapi_widget_consent');\\n    w.style.zIndex = '2147483647';\\n\\n    document.body.appendChild(w);\\n\\n    // iOS clipping fix (scoped & reversible)\\n    if (/iP(hone|ad|od)/.test(navigator.userAgent)) {\\n      // find ancestors that both transform and clip; relax while open\\n      function findClippingAncestors(el) {\\n        const offenders = [];\\n        let cur = el.parentElement;\\n        while (cur && cur !== document.documentElement) {\\n          const cs = getComputedStyle(cur);\\n          const hasTransform = cs.transform && cs.transform !== 'none';\\n          const overflowX = cs.overflowX, overflowY = cs.overflowY;\\n          const clipped = (overflowX !== 'visible' || overflowY !== 'visible');\\n          if (hasTransform && clipped) offenders.push(cur);\\n          cur = cur.parentElement;\\n        }\\n        return offenders;\\n      }\\n      function relax(el){\\n        if (el.__va_saved_styles) return;\\n        el.__va_saved_styles = {\\n          overflow: el.style.overflow,\\n          overflowX: el.style.overflowX,\\n          overflowY: el.style.overflowY,\\n          transform: el.style.transform\\n        };\\n        el.style.overflow = 'visible';\\n        el.style.overflowX = 'visible';\\n        el.style.overflowY = 'visible';\\n        el.style.transform = 'none';\\n      }\\n      function restore(el){\\n        if (!el.__va_saved_styles) return;\\n        const s = el.__va_saved_styles;\\n        el.style.overflow  = s.overflow;\\n        el.style.overflowX = s.overflowX;\\n        el.style.overflowY = s.overflowY;\\n        el.style.transform = s.transform;\\n        delete el.__va_saved_styles;\\n      }\\n      let patched = [];\\n      function onOpen(widget){\\n        patched = findClippingAncestors(widget);\\n        patched.forEach(relax);\\n      }\\n      function onClose(){\\n        patched.forEach(restore);\\n        patched = [];\\n      }\\n\\n      function wireOpenClose(widget){\\n        // try to detect open/close via shadow DOM mutations\\n        function isOpen(){\\n          const sr = widget.shadowRoot;\\n          if (!sr) return false;\\n          const dlg = sr.querySelector('[role=\\\"dialog\\\"], [data-state=\\\"open\\\"]');\\n          const close = sr.querySelector('button[aria-label=\\\"Close\\\"], [aria-label=\\\"End Chat\\\"], [data-close]');\\n          return (dlg && dlg.offsetParent !== null) || (close && close.offsetParent !== null);\\n        }\\n        let last = false;\\n        const mo = new MutationObserver(() => {\\n          const now = isOpen();\\n          if (now !== last) {\\n            last = now;\\n            now ? onOpen(widget) : onClose();\\n          }\\n        });\\n        function start(){\\n          const sr = widget.shadowRoot;\\n          if (!sr) return;\\n          mo.observe(sr, { childList: true, subtree: true, attributes: true });\\n          const now = isOpen();\\n          last = now;\\n          if (now) onOpen(widget);\\n        }\\n        if (widget.shadowRoot) start();\\n        else {\\n          let tries = 0, t = setInterval(() => {\\n            tries++;\\n            if (widget.shadowRoot){ clearInterval(t); start(); }\\n            if (tries > 80) clearInterval(t);\\n          }, 50);\\n        }\\n        widget.addEventListener('call-start', () => onOpen(widget));\\n        widget.addEventListener('call-end', onClose);\\n        widget.addEventListener('error', onClose);\\n      }\\n      wireOpenClose(w);\\n    }\\n  }\\n\\n  // bootstrap now\\n  function init(){ mountWidget(); }\\n  if (document.readyState === 'loading') document.addEventListener('DOMContentLoaded', init);\\n  else init();\\n\\n  // handle client-side route changes (Framer / SPA)\\n  window.addEventListener('framer:pageview', mountWidget);\\n})();\\n</script>\\n\\n<!-- iOS panel-fit booster for Vapi widget (runs only on /voiceagent, iOS) -->\\n<script>\\n(function () {\\n  const isVoiceAgent = () => /(^|\\\\/)voiceagent\\\\/?$/.test(location.pathname);\\n  const isIOS = () => /iP(hone|ad|od)/.test(navigator.userAgent);\\n\\n  if (!isVoiceAgent() || !isIOS()) return;\\n\\n  function patchPanel(widget) {\\n    const sr = widget.shadowRoot;\\n    if (!sr) return;\\n\\n    const panel =\\n      sr.querySelector('[role=\\\"dialog\\\"]') ||\\n      sr.querySelector('[data-state=\\\"open\\\"]') ||\\n      sr.querySelector('[data-widget-panel]') ||\\n      Array.from(sr.querySelectorAll('*')).find(el => {\\n        const cs = getComputedStyle(el);\\n        return cs.position === 'fixed' && el.getBoundingClientRect().height > 200;\\n      });\\n\\n    if (!panel) return;\\n\\n    panel.style.position   = 'fixed';\\n    panel.style.left       = '0';\\n    panel.style.right      = '0';\\n    panel.style.top        = 'env(safe-area-inset-top)';\\n    panel.style.bottom     = 'calc(env(safe-area-inset-bottom) + 10px)';\\n    panel.style.margin     = '0 auto';\\n    panel.style.maxWidth   = '100vw';\\n    panel.style.height     = 'auto';\\n    panel.style.maxHeight  = 'calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 10px)';\\n    panel.style.borderRadius = panel.style.borderRadius || '12px';\\n    panel.style.overflow   = 'hidden';\\n    panel.style.setProperty('height', '-webkit-fill-available');\\n\\n    const scrollers = sr.querySelectorAll('[role=\\\"document\\\"], [data-scroll], .scroll, .content, .body');\\n    scrollers.forEach(el => {\\n      el.style.maxHeight = 'inherit';\\n      el.style.overscrollBehavior = 'contain';\\n    });\\n  }\\n\\n  function whenWidgetReady(cb) {\\n    const w = document.querySelector('vapi-widget');\\n    if (w && w.shadowRoot) return cb(w);\\n    const tryLater = () => {\\n      const ww = document.querySelector('vapi-widget');\\n      if (ww && ww.shadowRoot) cb(ww);\\n    };\\n    if (window.customElements && customElements.whenDefined) {\\n      customElements.whenDefined('vapi-widget').then(() => setTimeout(tryLater, 50));\\n    } else {\\n      setTimeout(tryLater, 100);\\n    }\\n  }\\n\\n  function wire() {\\n    whenWidgetReady((w) => {\\n      const mo = new MutationObserver(() => patchPanel(w));\\n      mo.observe(w.shadowRoot, { childList: true, subtree: true, attributes: true });\\n      w.addEventListener('click', () => setTimeout(() => patchPanel(w), 50));\\n      w.addEventListener('call-start', () => setTimeout(() => patchPanel(w), 50));\\n      patchPanel(w);\\n    });\\n  }\\n\\n  if (document.readyState === 'loading') {\\n    document.addEventListener('DOMContentLoaded', wire);\\n  } else {\\n    wire();\\n  }\\n\\n  window.addEventListener('framer:pageview', () => { if (isVoiceAgent()) wire(); });\\n})();\\n</script>\",customHTMLHeadEnd:\"<!-- Meta Pixel Code -->\\n<script>\\n!function(f,b,e,v,n,t,s)\\n{if(f.fbq)return;n=f.fbq=function(){n.callMethod?\\nn.callMethod.apply(n,arguments):n.queue.push(arguments)};\\nif(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';\\nn.queue=[];t=b.createElement(e);t.async=!0;\\nt.src=v;s=b.getElementsByTagName(e)[0];\\ns.parentNode.insertBefore(t,s)}(window, document,'script',\\n'https://connect.facebook.net/en_US/fbevents.js');\\nfbq('init', '1148313616801240');\\nfbq('track', 'PageView');\\n</script>\\n<noscript></noscript>\",description:\"Social Summit is a UK-based AI Solutions agency that builds high-converting AI campaigns, Automation services, and Back-end processes to help North East UK businesses scale leaner.\",favicon:\"https://framerusercontent.com/assets/9f17kNA5uOmWNoIv3VBiDmiBNA.png\",robots:\"max-image-preview:large\",socialImage:\"https://framerusercontent.com/assets/95dUNcvR4MKvuWP9eFVbpV8No0.png\",title:\"Social Summit AI Solutions\"};}export const metadataVersion=1;\nexport const __FramerMetadata__ = {\"exports\":{\"metadataVersion\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"default\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}"],"mappings":"2DACA,SAAwB,EAAS,EAAO,EAAa,CAAC,MAAM,CAAC,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAA8gR,kBAAkB;;;;;;;;;;;;;uBAA6gB,YAAY,uLAAuL,QAAQ,sEAAsE,OAAO,0BAA0B,YAAY,sEAAsE,MAAM,6BAA6B"}