{"version":3,"file":"IPadFrame.CsxZsBAf.mjs","names":[],"sources":["https:/framerusercontent.com/modules/STA2FNwDQ0c4ydOLtG5Y/q9vcRFLqi5lmHPu2IiHg/IPadFrame.js"],"sourcesContent":["// iPad frame with responsive screen for embedded Figma prototype iframe\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";/**\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed\n */export default function IPadFrame(props){const{prototypeUrl=\"\",deviceColor=\"#2a2a2a\",buttonColor=\"#0a0a0a\",borderColor=\"#1a1a1a\",showShadow=true}=props;const bezelSize=16;const outerFrameSize=4;const cameraSize=8;const buttonWidth=4;const buttonHeight=40;// Convert Figma prototype URL to embed format\nconst getEmbedUrl=url=>{if(!url)return\"\";// If already an embed URL, return as is\nif(url.includes(\"figma.com/embed\")){return url;}// Convert regular Figma prototype URL to embed format\nif(url.includes(\"figma.com/proto/\")){const encodedUrl=encodeURIComponent(url);return`https://www.figma.com/embed?embed_host=share&url=${encodedUrl}&scaling=scale-down-width`;}// Return the URL as is for other cases\nreturn url;};const embedUrl=getEmbedUrl(prototypeUrl);return /*#__PURE__*/_jsx(\"div\",{style:{width:\"100%\",height:\"100%\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\",position:\"relative\"},children:/*#__PURE__*/_jsxs(\"div\",{style:{width:\"100%\",height:\"100%\",backgroundColor:borderColor,borderRadius:32,padding:outerFrameSize,boxShadow:showShadow?\"0 20px 60px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.3)\":\"none\",position:\"relative\"},children:[/*#__PURE__*/_jsx(\"div\",{style:{position:\"absolute\",left:-2,top:\"20%\",width:buttonWidth,height:buttonHeight,backgroundColor:buttonColor,borderRadius:\"2px 0 0 2px\",boxShadow:\"inset 0 1px 2px rgba(0, 0, 0, 0.5)\"}}),/*#__PURE__*/_jsx(\"div\",{style:{position:\"absolute\",left:-2,top:\"calc(20% + 50px)\",width:buttonWidth,height:buttonHeight,backgroundColor:buttonColor,borderRadius:\"2px 0 0 2px\",boxShadow:\"inset 0 1px 2px rgba(0, 0, 0, 0.5)\"}}),/*#__PURE__*/_jsx(\"div\",{style:{position:\"absolute\",top:-2,right:\"15%\",width:buttonHeight,height:buttonWidth,backgroundColor:buttonColor,borderRadius:\"2px 2px 0 0\",boxShadow:\"inset 0 1px 2px rgba(0, 0, 0, 0.5)\"}}),/*#__PURE__*/_jsxs(\"div\",{style:{width:\"100%\",height:\"100%\",backgroundColor:deviceColor,borderRadius:28,padding:bezelSize,position:\"relative\",display:\"flex\",flexDirection:\"column\"},children:[/*#__PURE__*/_jsx(\"div\",{style:{position:\"absolute\",top:bezelSize/2,left:\"50%\",transform:\"translateX(-50%)\",width:cameraSize,height:cameraSize,borderRadius:\"50%\",backgroundColor:\"#0a0a0a\",border:\"1px solid rgba(255, 255, 255, 0.1)\",zIndex:10}}),/*#__PURE__*/_jsx(\"div\",{style:{width:\"100%\",height:\"100%\",backgroundColor:\"#000\",borderRadius:16,overflow:\"hidden\",position:\"relative\"},children:embedUrl?/*#__PURE__*/_jsx(\"iframe\",{src:embedUrl,style:{width:\"100%\",height:\"100%\",border:\"none\",display:\"block\"},allowFullScreen:true,allow:\"clipboard-read; clipboard-write\",title:\"Embedded Figma Prototype\"}):/*#__PURE__*/_jsx(\"div\",{style:{width:\"100%\",height:\"100%\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\",color:\"#666\",fontSize:14,textAlign:\"center\",padding:20},children:\"Paste your Figma prototype link\"})})]})]})});}addPropertyControls(IPadFrame,{prototypeUrl:{type:ControlType.String,title:\"Prototype URL\",defaultValue:\"\",displayTextArea:true,placeholder:\"Paste Figma prototype link here...\"},deviceColor:{type:ControlType.Color,title:\"Device Color\",defaultValue:\"#2a2a2a\"},buttonColor:{type:ControlType.Color,title:\"Button Color\",defaultValue:\"#0a0a0a\"},borderColor:{type:ControlType.Color,title:\"Border Color\",defaultValue:\"#1a1a1a\"},showShadow:{type:ControlType.Boolean,title:\"Shadow\",defaultValue:true,enabledTitle:\"Show\",disabledTitle:\"Hide\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"IPadFrame\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"fixed\",\"framerSupportedLayoutWidth\":\"fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./IPadFrame.map"],"mappings":"mKAIG,SAAwB,EAAU,EAAM,CAAC,GAAK,CAAC,eAAa,GAAG,cAAY,UAAU,cAAY,UAAU,cAAY,UAAU,aAAW,IAAM,EAIlI,GAHD,GAAU,EACzB,EAAI,SAAS,kBAAkB,CAAS,EACxC,EAAI,SAAS,mBAAmB,CAAiD,oDAA9B,mBAAmB,EAAI,CAAsE,2BAC5I,EAH+B,IAGE,EAAa,CAAC,OAAoB,EAAK,MAAM,CAAC,MAAM,CAAC,MAAM,OAAO,OAAO,OAAO,QAAQ,OAAO,WAAW,SAAS,eAAe,SAAS,SAAS,WAAW,CAAC,SAAsB,EAAM,MAAM,CAAC,MAAM,CAAC,MAAM,OAAO,OAAO,OAAO,gBAAgB,EAAY,aAAa,GAAG,QAAQ,EAAe,UAAU,EAAW,gEAAgE,OAAO,SAAS,WAAW,CAAC,SAAS,CAAc,EAAK,MAAM,CAAC,MAAM,CAAC,SAAS,WAAW,KAAK,GAAG,IAAI,MAAM,MAAM,EAAY,OAAO,GAAa,gBAAgB,EAAY,aAAa,cAAc,UAAU,qCAAqC,CAAC,CAAC,CAAc,EAAK,MAAM,CAAC,MAAM,CAAC,SAAS,WAAW,KAAK,GAAG,IAAI,mBAAmB,MAAM,EAAY,OAAO,GAAa,gBAAgB,EAAY,aAAa,cAAc,UAAU,qCAAqC,CAAC,CAAC,CAAc,EAAK,MAAM,CAAC,MAAM,CAAC,SAAS,WAAW,IAAI,GAAG,MAAM,MAAM,MAAM,G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