{
  "version": 3,
  "sources": ["ssg:https://framer.com/m/framer/integrations-styles.js@0.2.0", "ssg:https://framerusercontent.com/modules/bGK4RIr3q7JjhzLaKVL7/BQvHIypWy5ZStrVIwBvW/AppleMusic.js"],
  "sourcesContent": ["import{containerStyles,emptyStateStyle as defaultEmptyStateStyle}from\"https://framer.com/m/framer/default-utils.js@^0.43.0\";export const emptyStateStyle={...containerStyles,...defaultEmptyStateStyle,textAlign:\"center\",padding:15,width:200,height:100,overflow:\"hidden\"};export const neutralStateStyle={...emptyStateStyle,color:\"#09f\",background:\"rgb(0, 153, 255, 0.1)\",borderColor:\"#09f\"};export const stateTitleStyle={fontSize:12,fontWeight:600,margin:0};export const stateParagraphStyle={fontSize:12,maxWidth:200,lineHeight:1.4,margin:\"5px 0 0 0\"};\nexport const __FramerMetadata__ = {\"exports\":{\"neutralStateStyle\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"stateTitleStyle\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"emptyStateStyle\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"stateParagraphStyle\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./styles.map", "import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType,motion}from\"framer\";import{containerStyles}from\"https://framer.com/m/framer/default-utils.js@^0.45.0\";import{useMemo}from\"react\";import{emptyStateStyle,stateParagraphStyle,stateTitleStyle}from\"https://framer.com/m/framer/integrations-styles.js@0.2.0\";const musicRegex=/^https?:\\/\\/music\\.apple\\.com\\/([^\\/]*)\\/(album|playlist)(?:\\/[^\\/]*)?\\/([\\w.-]+)(?:\\?.*i=(\\d+))?/;/**\n * APPLE MUSIC\n *\n * @framerIntrinsicWidth 400\n * @framerIntrinsicHeight 150\n *\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed\n */ export default function AppleMusic({urlType,url,style,...props}){const embedUrl=useMemo(()=>{var ref;const[,country,type,id,songId]=(ref=url.match(musicRegex))!==null&&ref!==void 0?ref:[null,\"\",\"\",\"\",\"\",];if(!id)return null;if(urlType===\"song\"){return`https://embed.music.apple.com/${country}/${type}/id${id}?i=${songId}`;}else{return`https://embed.music.apple.com/${country}/${type}/id${id}`;}},[urlType,url]);return /*#__PURE__*/ _jsx(motion.div,{style:{...style,...containerStyles},...props,children:embedUrl?/*#__PURE__*/ _jsx(\"iframe\",{src:embedUrl,width:\"100%\",height:\"100%\",frameBorder:\"0\",sandbox:\"allow-forms allow-popups allow-same-origin allow-scripts allow-top-navigation-by-user-activation\",allow:\"autoplay *; encrypted-media *;\"}):/*#__PURE__*/ _jsxs(motion.div,{style:{...emptyStateStyle,...style},children:[/*#__PURE__*/ _jsx(\"h1\",{style:stateTitleStyle,children:\"Apple Music\"}),/*#__PURE__*/ _jsx(\"p\",{style:stateParagraphStyle,children:\"Set an Apple Music URL in the Properties.\"})]})});};addPropertyControls(AppleMusic,{urlType:{type:ControlType.Enum,title:\"URL\",options:[\"album\",\"song\"],optionTitles:[\"Album\",\"Song\"],displaySegmentedControl:true,defaultValue:\"song\"},url:{type:ControlType.String,title:\" \",placeholder:\"https://music.apple.com/us/album/***/***\",defaultValue:\"https://music.apple.com/us/album/borderline/1497230760?i=1497230972\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"AppleMusic\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"fixed\",\"framerIntrinsicWidth\":\"400\",\"framerSupportedLayoutWidth\":\"fixed\",\"framerIntrinsicHeight\":\"150\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./AppleMusic.map"],
  "mappings": "6HAAmI,IAAMA,EAAgB,CAAC,GAAGC,EAAgB,GAAGD,EAAuB,UAAU,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MAAM,QAAQ,CAAC,QAAQ,MAAM,EAAE,aAAa,CAAC,QAAQ,MAAM,EAAE,wBAAwB,GAAK,aAAa,MAAM,EAAE,IAAI,CAAC,KAAKA,EAAY,OAAO,MAAM,IAAI,YAAY,2CAA2C,aAAa,qEAAqE,CAAC,CAAC",
  "names": ["emptyStateStyle", "containerStyles", "neutralStateStyle", "stateTitleStyle", "stateParagraphStyle", "musicRegex", "AppleMusic", "urlType", "url", "style", "props", "embedUrl", "se", "ref", "country", "type", "id", "songId", "p", "motion", "containerStyles", "u", "emptyStateStyle", "stateTitleStyle", "stateParagraphStyle", "addPropertyControls", "ControlType"]
}
