{"version":3,"file":"shared-lib.CgI-6cbS.mjs","names":[],"sources":["https:/framerusercontent.com/modules/qTj5dGcsHLcwQBd6Rf8u/bUbyCMiEcx5QJxAJbeyG/siteMetadata.js"],"sourcesContent":["// Generated by Framer (94ad37d)\nexport default function metadata(params,activeLocale){return{customHTMLBodyStart:'<script type=\"text/javascript\">\\n  (function () {\\n    // Create and style the iframe for the content\\n    var chatIframe = document.createElement(\"iframe\");\\n    chatIframe.style.display = \"none\"; // Initially hidden\\n    chatIframe.style.position = \"fixed\";\\n    chatIframe.style.bottom = \"20px\";\\n    chatIframe.style.right = \"20px\";\\n    chatIframe.style.width = \"300px\";\\n    chatIframe.style.height = \"450px\";\\n    chatIframe.style.boxShadow = \"0px 0px 10px rgba(0, 0, 0, 0.2)\";\\n    chatIframe.style.borderRadius = \"10px\";\\n    chatIframe.style.zIndex = \"1000\"; // Higher z-index to ensure it\\'s above other elements\\n    chatIframe.style.backgroundColor = \"#fff\";\\n    chatIframe.allow = \"microphone\";\\n    document.body.appendChild(chatIframe);\\n\\n    console.log(\"Iframe created and added to the page.\");\\n\\n    // Function to toggle the iframe and load the correct URL\\n    function toggleIframe(url) {\\n      console.log(`Toggling iframe with URL: ${url}`);\\n      if (chatIframe.style.display === \"none\" || chatIframe.src !== url) {\\n        chatIframe.style.display = \"block\";\\n        chatIframe.src = url;\\n        console.log(\"Iframe is now visible and loading the URL.\");\\n      } else {\\n        chatIframe.style.display = \"none\";\\n        chatIframe.src = \"\"; // Clear src to stop the iframe session\\n        console.log(\"Iframe is now hidden.\");\\n      }\\n    }\\n\\n    // Function to close the iframe when clicking outside\\n    function closeIframeOnOutsideClick(event) {\\n      const rect = chatIframe.getBoundingClientRect();\\n      const isClickOutside =\\n        event.clientX < rect.left ||\\n        event.clientX > rect.right ||\\n        event.clientY < rect.top ||\\n        event.clientY > rect.bottom;\\n\\n      if (isClickOutside) {\\n        chatIframe.style.display = \"none\";\\n        chatIframe.src = \"\"; // Clear src to stop the iframe session\\n        console.log(\"Iframe closed due to outside click.\");\\n      }\\n    }\\n\\n    // Add event listeners to buttons\\n    window.addEventListener(\"DOMContentLoaded\", function () {\\n      const buttonActions = {\\n        \"appointmentBooking\": \"https://appointment.idrakai.com/\",\\n        \"surveyCall\": \"https://arabic-demo.idrakai.com/\",\\n        \"medAlert\": \"https://ma-demo.idrakai.com/\",\\n        \"telstra\": \"https://telstra-demo.idrakai.com/\",\\n        \"telstraCustomer\": \"https://telstra-customer-demo.idrakai.com/\",\\n        \"urduDemo\": \"https://urdu-demo.idrakai.com/\",\\n        \"aussieDemo\": \"https://aussie-demo.idrakai.com/\",\\n        \"arabicCarPark\": \"https://arabic-carpark-demo.idrakai.com/\",\\n        \"localTest\": \"https://local-test-demo.idrakai.com/\"\\n      };\\n\\n      console.log(\"DOM content loaded. Adding event listeners to buttons...\");\\n\\n      Object.keys(buttonActions).forEach(buttonId => {\\n        const button = document.getElementById(buttonId);\\n        if (button) {\\n          console.log(`Button found: ${buttonId}`);\\n          button.addEventListener(\"click\", function (event) {\\n            event.stopPropagation(); // Prevent click event from propagating to the document\\n            console.log(`Button clicked: ${buttonId}`);\\n            toggleIframe(buttonActions[buttonId]);\\n          });\\n        } else {\\n          console.error(`Button not found: ${buttonId}`);\\n        }\\n      });\\n\\n      // Add event listener to the document for outside clicks\\n      document.addEventListener(\"click\", function (event) {\\n        if (chatIframe.style.display === \"block\") {\\n          closeIframeOnOutsideClick(event);\\n        }\\n      });\\n    });\\n  })();\\n</script>\\n',description:\"Retain loyal customers and drive growth.\\nEnterprise-Grade Conversational AI for Teams of Any Size\",favicon:\"https://framerusercontent.com/assets/bnYSvPPLLcrdGaxtIj9r6X50s8E.png\",robots:\"max-image-preview:large\",socialImage:\"https://framerusercontent.com/assets/4W00ixdGRCPrA0WGhVMEUR64xYw.png\",title:\"Altnativ - Real-Time Voice Ai Customer Support\"};}export const metadataVersion=1;\nexport const __FramerMetadata__ = {\"exports\":{\"metadataVersion\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"default\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}"],"mappings":"oDACA,SAAwB,EAAS,EAAO,EAAa,CAAC,MAAM,CAAC,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAogH,YAAY;0DAAqG,QAAQ,uEAAuE,OAAO,0BAA0B,YAAY,uEAAuE,MAAM,iDAAiD"}