{"version":3,"file":"SMP3IRbFG.D6pVTaDO.mjs","names":["Blog"],"sources":["https:/framerusercontent.com/modules/pwTtwLuVGoqSABawqHyN/82GAs0HDYMAjWhRNl7Dd/SMP3IRbFG.js"],"sourcesContent":["// Generated by Framer (6d0c662)\nimport{getWhereExpressionFromPathVariables,QueryEngine}from\"framer\";import Blog from\"https://framerusercontent.com/modules/Y7Ujitu6qNgBDWrWtfAJ/Y5LpBujwHmnhvdgQHWt8/M5d1JC0lW.js\";const toString=value=>{return typeof value===\"string\"?value:String(value);};const toImageSrc=value=>{if(typeof value===\"object\"&&value!==null&&typeof value.src===\"string\"){return value.src;}return typeof value===\"string\"?value:undefined;};export default function metadata(params,activeLocale){const D6d2PjEj5=params?.[\"D6d2PjEj5\"];const WGJfgft11=params?.[\"WGJfgft11\"];const KouC425NB=params?.[\"KouC425NB\"];return{breakpoints:[{hash:\"mb552g\",mediaQuery:\"(min-width: 1200px)\"},{hash:\"1wdq4x0\",mediaQuery:\"(min-width: 810px) and (max-width: 1199.98px)\"},{hash:\"1n8v2vv\",mediaQuery:\"(max-width: 809.98px)\"}],customHTMLBodyEnd:\"<script type=\\\"text/javascript\\\">\\n  (function() {\\n    var t = document.createElement('script'),\\n        s = document.getElementsByTagName('script')[0];\\n    t.async = true;\\n    t.id    = 'cio-forms-handler';\\n    t.setAttribute('data-site-id', '0a9163cf7ca5fecf56ed');\\n    t.setAttribute('data-base-url', 'https://customerioforms.com');\\n\\n    t.src = 'https://customerioforms.com/assets/forms.js';\\n\\n    s.parentNode.insertBefore(t, s);\\n  })();\\n  window.onload = function() {\\n    document.getElementById('cioCTA').addEventListener('click', () => {\\n        const input = document.getElementById('cioInput');\\n        if (!input.value) {\\n          return;\\n        }\\n        window.dataLayer = window.dataLayer || [];\\n        window.dataLayer.push({\\n         'event': 'lead_magnet_form_submit',\\n         'user_email': input.value\\n      });\\n    });\\n  }\\n</script>\",customHTMLBodyStart:\"<script>\\nwindow.onload = function() {\\n  myFunction();\\n  setupCTA();\\n};\\n\\nfunction myFunction() {\\n  var str = document.getElementById(\\\"content\\\").innerHTML;\\n  var n = str.match(/(\\\\w+)/g).length;\\n  var x = n / 515;\\n  var y = x.toFixed(0);\\n  document.getElementById(\\\"b-readtime\\\").innerHTML = y + ' min read time';\\n}\\n\\nfunction setupCTA() {\\n\tif (`{{download-cta-item}}`.length) {\\n  \tdocument.getElementById('email-form').name = '{{wf {slug}}';\\n  \tconst formId = '{{download-cta-item:campaign-id}}';\\n  \tconst input = document.getElementById('cioInput');\\n    const inputName = '{{download-cta-item:slug}}-email';\\n    input.name = inputName;\\n\t\tdocument.getElementById('cioCTA').addEventListener('click', () => {\\n    if (!input.value.length) return;\\n    const authorization = 'Basic MGE5MTYzY2Y3Y2E1ZmVjZjU2ZWQ6NjE1NGFkMGMzZGUxMDgzNTYwMTA=';\\n    const headers = {\\n      'Authorization': authorization,\\n      'Content-Type': 'application/json'\\n    };\\n    \\n    const data = {};\\n    data[inputName] = input.value;\\n\\n\t\tfetch(`https://track.customer.io/api/v1/forms/${formId}/submit`, {\\n        method: 'POST',\\n        headers: headers,\\n        body: JSON.stringify({\\n\t\t\t\t\tdata,\\n        })\\n      });\\n      document.getElementById('form-area').innerHTML = `<p class=\\\"downloadable-text\\\" style=\\\"text-align: center; min-width: 250px;\\\">Success! Check your email.`;\\n\t\t});\\n  }\\n}\\n\\n</script>\",customHTMLHeadEnd:'<script type=\"text/javascript\" src=\"https://platform-api.sharethis.com/js/sharethis.js#property=630cc884560f0d00125e7411&amp;product=inline-share-buttons\" async=\"async\"></script>\\n\\n<!-- Force width of images in the post body -->\\n<style>.framer-image.framer-text {\\n\\n      width: 100% !important;\\n\\n}</style>',description:`${WGJfgft11!==undefined?toString(WGJfgft11):\"{{WGJfgft11}}\"}`,elements:{AoddB_4MX:\"post-body\",dO7E6X5yf:\"post-body-4\",ePGDJ0xIn:\"post-body-3\",IW5l93dCv:\"post-body-1\",k20yMGusU:\"post-body-2\",mVH5eXnbM:\"post-body-8\",Sa115fyBs:\"post-body-6\",vRVs6XoO8:\"post-body-5\",zCUsKdS8K:\"post-body-7\"},framerSearch:{index:true},robots:\"max-image-preview:large\",serializationId:\"framer-mPms6\",socialImage:toImageSrc(KouC425NB),title:`${D6d2PjEj5!==undefined?toString(D6d2PjEj5):\"{{D6d2PjEj5}}\"}`,viewport:\"width=device-width\"};}export async function fetchMetadata(pathVariables,activeLocale){const queryEngine=new QueryEngine;const query={from:{alias:\"SMP3IRbFG\",data:Blog,type:\"Collection\"},select:[{collection:\"SMP3IRbFG\",name:\"D6d2PjEj5\",type:\"Identifier\"},{collection:\"SMP3IRbFG\",name:\"WGJfgft11\",type:\"Identifier\"},{collection:\"SMP3IRbFG\",name:\"KouC425NB\",type:\"Identifier\"}],where:getWhereExpressionFromPathVariables(pathVariables,\"SMP3IRbFG\")};const result=await queryEngine.query(query,activeLocale);if(result.length===0){throw new Error(\"No data matches pathVariables\");}const params=result[0];return metadata(params,activeLocale);}export async function fetchAllMetadata(pathVariableKeys,activeLocale){const queryEngine=new QueryEngine;const query={from:{alias:\"SMP3IRbFG\",data:Blog,type:\"Collection\"},select:[{collection:\"SMP3IRbFG\",name:\"D6d2PjEj5\",type:\"Identifier\"},{collection:\"SMP3IRbFG\",name:\"WGJfgft11\",type:\"Identifier\"},{collection:\"SMP3IRbFG\",name:\"KouC425NB\",type:\"Identifier\"}]};for(const pathVariableKey of pathVariableKeys){query.select.push({collection:\"SMP3IRbFG\",name:pathVariableKey,type:\"Identifier\"});}const results=await queryEngine.query(query,activeLocale);return results.map(result=>({metadata:metadata(result,activeLocale),pathVariables:Object.fromEntries(pathVariableKeys.map(pathVariableKey=>[pathVariableKey,result[pathVariableKey]]))}));}export const metadataVersion=1;\nexport const __FramerMetadata__ = {\"exports\":{\"fetchMetadata\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"metadataVersion\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"fetchAllMetadata\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"default\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}"],"mappings":"gKACka,SAAwB,EAAS,EAAO,EAAa,CAAC,IAAM,EAAU,GAAS,UAAmB,EAAU,GAAS,UAAmB,EAAU,GAAS,UAAa,MAAM,CAAC,YAAY,CAAC,CAAC,KAAK,SAAS,WAAW,sBAAsB,CAAC,CAAC,KAAK,UAAU,WAAW,gDAAgD,CAAC,CAAC,KAAK,UAAU,WAAW,wBAAwB,CAAC,CAAC,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;YAAk3B,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAA64C,kBAAkB;;;;;;;WAA0T,YAAY,GAAG,IAAY,IAAA,GAA8B,gBAApB,EAAS,EAAU,GAAmB,SAAS,CAAC,UAAU,YAAY,UAAU,cAAc,UAAU,cAAc,UAAU,cAAc,UAAU,cAAc,UAAU,cAAc,UAAU,cAAc,UAAU,cAAc,UAAU,cAAc,CAAC,aAAa,CAAC,MAAM,GAAK,CAAC,OAAO,0BAA0B,gBAAgB,eAAe,YAAY,EAAW,EAAU,CAAC,MAAM,GAAG,IAAY,IAAA,GAA8B,gBAApB,EAAS,EAAU,GAAmB,SAAS,qBAAqB,CAAE,eAAsB,EAAc,EAAc,EAAa,CAAC,IAAM,EAAY,IAAI,EAAkB,EAAM,CAAC,KAAK,CAAC,MAAM,YAAY,KAAKA,EAAK,KAAK,aAAa,CAAC,OAAO,CAAC,CAAC,WAAW,YAAY,KAAK,YAAY,KAAK,aAAa,CAAC,CAAC,WAAW,YAAY,KAAK,YAAY,KAAK,aAAa,CAAC,CAAC,WAAW,YAAY,KAAK,YAAY,KAAK,aAAa,CAAC,CAAC,MAAM,EAAoC,EAAc,YAAY,CAAC,CAAO,EAAO,MAAM,EAAY,MAAM,EAAM,EAAa,CAAC,GAAG,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