{"version":3,"file":"shared-lib.fba4bZPc.mjs","names":[],"sources":["https:/framerusercontent.com/modules/ahQLlPZHA3ow3mcWHGCg/YZQupZZ2GttQWGeS3AXc/siteMetadata.js"],"sourcesContent":["// Generated by Framer (3406f4c)\nconst valuesByLocaleId={OrwzWJJbN:{v0:\"Orderchamp Cloud | Die ultimative B2B-Verkaufsplattform\",v1:\"Orderchamp Cloud bietet eine Suite von digitalen B2B-L\\xf6sungen, die Marken und Gro\\xdfh\\xe4ndlern helfen, intelligenter, schneller und effizienter zu verkaufen.\"},x93pa0O7z:{v0:\"Orderchamp Cloud | De ultieme B2B verkoop suite\",v1:\"Orderchamp Cloud biedt een reeks digitale B2B-oplossingen waarmee merken en groothandelaars slimmer, sneller en effici\\xebnter kunnen verkopen.\"},yQxynb2jw:{v0:\"Orderchamp Cloud | La suite de vente B2B ultime\",v1:\"Orderchamp Cloud alimente une suite de solutions B2B num\\xe9riques qui permettent aux marques et aux grossistes de vendre de mani\\xe8re plus intelligente, plus rapide et plus efficace.\"}};function getLocalizedValue(key,locale){while(locale){const values=valuesByLocaleId[locale.id];if(values){const value=values[key];if(value)return value;}locale=locale.fallback;}}export default function metadata(params,activeLocale){return{customHTMLBodyEnd:'<!-- Orderchamp Tracking Script -->\\n<script>(function(){const n=document.createElement(\"link\").relList;if(n&&n.supports&&n.supports(\"modulepreload\"))return;for(const t of document.querySelectorAll(\\'link[rel=\"modulepreload\"]\\'))r(t);new MutationObserver(t=>{for(const c of t)if(c.type===\"childList\")for(const i of c.addedNodes)i.tagName===\"LINK\"&&i.rel===\"modulepreload\"&&r(i)}).observe(document,{childList:!0,subtree:!0});function o(t){const c={};return t.integrity&&(c.integrity=t.integrity),t.referrerPolicy&&(c.referrerPolicy=t.referrerPolicy),t.crossOrigin===\"use-credentials\"?c.credentials=\"include\":t.crossOrigin===\"anonymous\"?c.credentials=\"omit\":c.credentials=\"same-origin\",c}function r(t){if(t.ep)return;t.ep=!0;const c=o(t);fetch(t.href,c)}})();/*! js-cookie v3.0.5 | MIT */function u(e){for(var n=1;n<arguments.length;n++){var o=arguments[n];for(var r in o)e[r]=o[r]}return e}var w={read:function(e){return e[0]===\\'\"\\'&&(e=e.slice(1,-1)),e.replace(/(%[\\\\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function f(e,n){function o(t,c,i){if(!(typeof document>\"u\")){i=u({},n,i),typeof i.expires==\"number\"&&(i.expires=new Date(Date.now()+i.expires*864e5)),i.expires&&(i.expires=i.expires.toUTCString()),t=encodeURIComponent(t).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var d=\"\";for(var a in i)i[a]&&(d+=\"; \"+a,i[a]!==!0&&(d+=\"=\"+i[a].split(\";\")[0]));return document.cookie=t+\"=\"+e.write(c,t)+d}}function r(t){if(!(typeof document>\"u\"||arguments.length&&!t)){for(var c=document.cookie?document.cookie.split(\"; \"):[],i={},d=0;d<c.length;d++){var a=c[d].split(\"=\"),U=a.slice(1).join(\"=\");try{var p=decodeURIComponent(a[0]);if(i[p]=e.read(U,p),t===p)break}catch{}}return t?i[t]:i}}return Object.create({set:o,get:r,remove:function(t,c){o(t,\"\",u({},c,{expires:-1}))},withAttributes:function(t){return f(this.converter,u({},this.attributes,t))},withConverter:function(t){return f(u({},this.converter,t),this.attributes)}},{attributes:{value:Object.freeze(n)},converter:{value:Object.freeze(e)}})}var h=f(w,{path:\"/\"});let l;const I=new Uint8Array(16);function O(){if(!l&&(l=typeof crypto<\"u\"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!l))throw new Error(\"crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported\");return l(I)}const C=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function D(e){return typeof e==\"string\"&&C.test(e)}const s=[];for(let e=0;e<256;++e)s.push((e+256).toString(16).slice(1));function R(e,n=0){return s[e[n+0]]+s[e[n+1]]+s[e[n+2]]+s[e[n+3]]+\"-\"+s[e[n+4]]+s[e[n+5]]+\"-\"+s[e[n+6]]+s[e[n+7]]+\"-\"+s[e[n+8]]+s[e[n+9]]+\"-\"+s[e[n+10]]+s[e[n+11]]+s[e[n+12]]+s[e[n+13]]+s[e[n+14]]+s[e[n+15]]}const x=typeof crypto<\"u\"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),g={randomUUID:x};function E(e,n,o){if(g.randomUUID&&!n&&!e)return g.randomUUID();e=e||{};const r=e.random||(e.rng||O)();if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,n){o=o||0;for(let t=0;t<16;++t)n[o+t]=r[t];return n}return R(r)}const L=e=>D(e),v=\"oc-visitor-id\",P=365,S=()=>{const e=window.location.hostname;return e===\"localhost\"?\"localhost\":e.endsWith(\"framer.app\")?e:\".\"+e.split(\".\").slice(-2).join(\".\")},V=()=>{const e=S();let n=h.get(v);const r=new URLSearchParams(window.location.search).get(\"visitorId\");return r&&L(r)?n=r:n||(n=E()),h.set(v,n,{expires:P,path:\"/\",domain:e}),n},T=async e=>{const n=window.location.href,o=document.referrer;let r=new FormData;r.append(\"currentUrl\",n),r.append(\"visitorId\",e),o&&r.append(\"referrerUrl\",o),await fetch(\"https://www.orderchamp.com/tracking/visit\",{method:\"POST\",body:r,mode:\"no-cors\",headers:{\"Content-Type\":\"application/json\"},redirect:\"follow\"})},y=e=>{if(!e)return;const n=document.getElementsByTagName(\"a\");for(const o of n)if(o.href.includes(\"orderchamp.com\")||o.href.includes(\"orderchamp.dev\")){const r=new URL(o.href);r.searchParams.set(\"visitorId\",e),o.href=r.toString()}},m=V();T(m);document.addEventListener(\"DOMContentLoaded\",()=>y(m));const j=new MutationObserver(e=>{for(const n of e)n.addedNodes.length&&y(m)});j.observe(document.body,{childList:!0,subtree:!0});</script>\\n<!-- End Orderchamp Tracking Script -->\\n\\n<!-- Start of HubSpot Embed Code -->\\n<script type=\"text/javascript\" id=\"hs-script-loader\" async=\"\" defer=\"\" src=\"//js-eu1.hs-scripts.com/24886611.js\"></script>\\n<!-- End of HubSpot Embed Code -->\\n<script>\\n(function () {\\n  // Prevent duplicate handling per form submission\\n  const processed = new Set();\\n\\n  // Parse both object and string postMessage formats HubSpot uses\\n  function parseHsMessage(raw) {\\n    if (raw && typeof raw === \"object\") return raw;\\n    if (typeof raw === \"string\") {\\n      try {\\n        // Example: \"hsFormCallback|onFormSubmitted|{...json...}\"\\n        if (raw.indexOf(\"hsFormCallback\") === 0) {\\n          const parts = raw.split(\"|\");\\n          return {\\n            type: parts[0],\\n            eventName: parts[1],\\n            data: parts[2] ? JSON.parse(parts[2]) : {}\\n          };\\n        }\\n        return JSON.parse(raw);\\n      } catch (_e) {}\\n    }\\n    return null;\\n  }\\n\\n  function updateUrlInPlace() {\\n    const url = new URL(window.location.href);\\n\\n    // --- Query param version (stay on same page) ---\\n    url.searchParams.set(\"thank-you\", \"1\");\\n    history.replaceState({}, \"\", url);\\n\\n    // // --- OR path version (uncomment to use /thank-you on the path) ---\\n    // const parts = url.pathname.split(\"/\").filter(Boolean);\\n    // if (parts[parts.length - 1] !== \"thank-you\") parts.push(\"thank-you\");\\n    // url.pathname = \"/\" + parts.join(\"/\") + (window.location.pathname.endsWith(\"/\") ? \"/\" : \"\");\\n    // history.replaceState({}, \"\", url);\\n\\n    // // OPTIONAL: also tell Segment (uncomment if desired)\\n    // if (window.analytics?.page) {\\n    //   window.analytics.page(\\n    //     \"Form Submitted\",\\n    //     { thank_you: true, source: \"hubspot\" },\\n    //     { path: url.pathname + url.search, url: url.toString() }\\n    //   );\\n    // }\\n  }\\n\\n  // Listen for HubSpot form submit callbacks globally\\n  window.addEventListener(\"message\", function (event) {\\n    const msg = parseHsMessage(event.data);\\n    if (!msg) return;\\n    if (msg.type !== \"hsFormCallback\") return;\\n\\n    // Prefer \"after success\"\\n    if (msg.eventName !== \"onFormSubmitted\") return;\\n\\n    const formId =\\n      (msg.data && (msg.data.id || msg.data.guid)) ||\\n      msg.id ||\\n      \"unknown-form\";\\n\\n    if (processed.has(formId)) return;\\n    processed.add(formId);\\n\\n    try {\\n      updateUrlInPlace();\\n    } catch (e) {\\n      console.warn(\"URL update failed:\", e);\\n    }\\n  }, false);\\n})();\\n</script>\\n\\n',customHTMLBodyStart:'<!-- Google Tag Manager (noscript) -->\\n<noscript><iframe src=\"https://www.googletagmanager.com/ns.html?id=GTM-THXR8H55\" height=\"0\" width=\"0\" style=\"display:none;visibility:hidden\"></iframe></noscript>\\n<!-- End Google Tag Manager (noscript) -->',customHTMLHeadStart:\"<!-- Google Tag Manager -->\\n<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':\\nnew Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],\\nj=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=\\n'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);\\n})(window,document,'script','dataLayer','GTM-THXR8H55');</script>\\n<!-- End Google Tag Manager -->\\n<!-- Google tag (gtag.js) -->\\n<script async=\\\"\\\" src=\\\"https://www.googletagmanager.com/gtag/js?id=G-8W62CM9FES\\\"></script>\\n<script>\\n  window.dataLayer = window.dataLayer || [];\\n  function gtag(){dataLayer.push(arguments);}\\n  gtag('js', new Date());\\n\\n  gtag('config', 'G-8W62CM9FES');\\n</script>\\n\\n<!-- HubSpot Forms (EU) -->\\n<script src=\\\"https://js-eu1.hsforms.net/forms/embed/v2.js\\\"></script>\\n\",description:getLocalizedValue(\"v1\",activeLocale)??\"Orderchamp Cloud powers a suite of digital B2B solutions that equip brands and wholesalers to sell smarter, faster and more efficiently.\\n\",favicon:\"https://framerusercontent.com/assets/hXHv2ufQPvaoB6gh2zga8RFTkM.jpg\",robots:\"max-image-preview:large\",title:getLocalizedValue(\"v0\",activeLocale)??\"Orderchamp Cloud | The ultimate B2B sales suite\"};}export const metadataVersion=1;\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"metadataVersion\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}"],"mappings":"2DAC+tB,SAAS,EAAkB,EAAI,EAAO,CAAC,KAAM,GAAO,CAAC,IAAM,EAAO,EAAiB,EAAO,IAAI,GAAG,EAAO,CAAC,IAAM,EAAM,EAAO,GAAK,GAAG,EAAM,OAAO,EAAO,EAAO,EAAO,UAAW,SAAwB,EAAS,EAAO,EAAa,CAAC,MAAM,CAAC,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAyqN,oBAAoB;;4CAAwP,oBAAoB;;;;;;;;;;;;;;;;;;;EAAq0B,YAAY,EAAkB,KAAK,EAAa,EAAE;EAA6I,QAAQ,sEAAsE,OAAO,0BAA0B,MAAM,EAAkB,KAAK,EAAa,EAAE,kDAAkD,iBAAnnS,EAAiB,CAAC,UAAU,CAAC,GAAG,0DAA0D,GAAG,4JAAqK,CAAC,UAAU,CAAC,GAAG,kDAAkD,GAAG,+IAAkJ,CAAC,UAAU,CAAC,GAAG,kDAAkD,GAAG,qLAA2L,CAAC"}