{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/HG1MkW7lC9iebbXas8Ct/RstkvwWCumGk0KVMeT3a/psE5BdSLU.js"],
  "sourcesContent": ["// Generated by Framer (575e68f)\nimport siteMetadata from\"https://framerusercontent.com/modules/AoCDY3dAPi8GPRMAYLzs/QGXgRu19vdopStvpFkqz/siteMetadata.js\";export default function metadata(params,activeLocale){return{bodyClassName:\"framer-body-psE5BdSLU\",breakpoints:[{hash:\"191basg\",mediaQuery:\"(min-width: 1200px)\"},{hash:\"1t7scc2\",mediaQuery:\"(min-width: 810px) and (max-width: 1199px)\"},{hash:\"15sqfl1\",mediaQuery:\"(max-width: 809px)\"}],customHTMLHeadEnd:\"<script>\\n(function() {\\n    function getUUIDFromQueryParam() {\\n        const urlParams = new URLSearchParams(window.location.search);\\n        return urlParams.get('uuid');\\n    }\\n\\n    async function fetchCollectionData() {\\n        const uuid = getUUIDFromQueryParam();\\n        if (!uuid) {\\n            console.log(\\\"No UUID found in URL\\\");\\n            return;\\n        }\\n\\n        const apiUrl = `https://api.vocarise.com/api/v1/share/collection/${uuid}`;\\n\\n        try {\\n            const response = await fetch(apiUrl);\\n            if (!response.ok) {\\n                throw new Error(`HTTP error! status: ${response.status}`);\\n            }\\n            const data = await response.json();\\n            console.log('Received data:', data);\\n            return data;\\n        } catch (error) {\\n            console.error('There was a problem fetching the collection data:', error);\\n        }\\n    }\\n\\n    function updateDOM(data) {\\n            const title = document.getElementById('title');\\n            // get all children of the title element\\n            const titleChilds = title.childNodes;\\n\\n\\n            const description = document.getElementById('description');\\n            const descriptionChilds = description.childNodes;\\n\\n            titleChilds[0].innerHTML = data.name;\\n            descriptionChilds[0].innerHTML = data.creator;\\n            console.log(data);\\n    }\\n\\n    function waitForElement(selector, callback, maxAttempts = 10, interval = 500) {\\n        let attempts = 0;\\n\\n        const checkElement = () => {\\n            const element = document.querySelector(selector);\\n            attempts++;\\n\\n            if (element) {\\n                callback(element);\\n            } else if (attempts < maxAttempts) {\\n                setTimeout(checkElement, interval);\\n            } else {\\n                console.error(`Element ${selector} not found after ${maxAttempts} attempts`);\\n            }\\n        };\\n\\n        checkElement();\\n    }\\n\\n    async function init() {\\n        const data = await fetchCollectionData();\\n        if (data) {\\n            waitForElement('#title', () => updateDOM(data));\\n        }\\n    }\\n\\n    // Run the script after a short delay to ensure React has had a chance to render\\n    setTimeout(init, 200);\\n})();\\n</script>\",description:siteMetadata(params,activeLocale).description,elements:{UitFU1YU_:\"description\",VMCm5a1j_:\"title\"},robots:\"max-image-preview:large\",serializationId:\"framer-pszZS\",title:siteMetadata(params,activeLocale).title||\"Collection\",viewport:\"width=device-width\"};}export const metadataVersion=1;\nexport const __FramerMetadata__ = {\"exports\":{\"metadataVersion\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"default\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}"],
  "mappings": "yCACyI,SAARA,EAA0BC,EAAOC,EAAa,CAAC,MAAM,CAAC,cAAc,wBAAwB,YAAY,CAAC,CAAC,KAAK,UAAU,WAAW,qBAAqB,EAAE,CAAC,KAAK,UAAU,WAAW,4CAA4C,EAAE,CAAC,KAAK,UAAU,WAAW,oBAAoB,CAAC,EAAE,kBAAkB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,YAA6wE,YAAYF,EAAaC,EAAOC,CAAY,EAAE,YAAY,SAAS,CAAC,UAAU,cAAc,UAAU,OAAO,EAAE,OAAO,0BAA0B,gBAAgB,eAAe,MAAMF,EAAaC,EAAOC,CAAY,EAAE,OAAO,aAAa,SAAS,oBAAoB,CAAE,CAAQ,IAAMC,EAAgB,EACj9FC,EAAqB,CAAC,QAAU,CAAC,gBAAkB,CAAC,KAAO,WAAW,YAAc,CAAC,sBAAwB,GAAG,CAAC,EAAE,QAAU,CAAC,KAAO,WAAW,YAAc,CAAC,sBAAwB,GAAG,CAAC,EAAE,mBAAqB,CAAC,KAAO,UAAU,CAAC,CAAC",
  "names": ["metadata", "params", "activeLocale", "metadataVersion", "__FramerMetadata__"]
}
