{"version":3,"file":"DeviceCompatibilityWarning.Dwc9hmKY.mjs","names":["_Fragment"],"sources":["https:/framerusercontent.com/modules/ceWLDORrub46mKO5uT2x/WVqrSrER2y1AK9xoPLp0/DeviceCompatibilityWarning.js"],"sourcesContent":["// Inform and warn the user that they need an unlocked device to use the service. Locked devices are not compatible.\nimport{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";/**\n * Unlocked Device Warning\n *\n * @framerIntrinsicWidth 400\n * @framerIntrinsicHeight 120\n *\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n */export default function DeviceCompatibilityWarning(props){const{title,message,icon,background,textColor,borderColor,borderRadius,font,style}=props;return /*#__PURE__*/_jsxs(\"div\",{style:{...style,background,color:textColor,border:`1.5px solid ${borderColor}`,borderRadius,display:\"flex\",alignItems:\"center\",gap:20,padding:24,boxSizing:\"border-box\",boxShadow:\"0 2px 8px rgba(0,0,0,0.06)\",...font},role:\"alert\",\"aria-live\":\"assertive\",children:[/*#__PURE__*/_jsx(\"span\",{style:{fontSize:36,flexShrink:0},\"aria-hidden\":\"true\",children:icon}),/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",flexDirection:\"column\",gap:6,minWidth:0},children:[/*#__PURE__*/_jsx(\"span\",{style:{fontWeight:700,fontSize:18,marginBottom:2,color:textColor,...font},children:title||\"Unlocked device required\"}),/*#__PURE__*/_jsx(\"span\",{style:{fontWeight:400,fontSize:15,color:textColor,opacity:.85,...font},children:(()=>{const msg=message||\"To use this service, your device must be unlocked. Locked devices are not compatible.\";const boldPhrase=\"must be unlocked\";const idx=msg.toLowerCase().indexOf(boldPhrase);if(idx===-1)return msg;return /*#__PURE__*/_jsxs(_Fragment,{children:[msg.slice(0,idx),/*#__PURE__*/_jsx(\"b\",{style:{fontWeight:700},children:msg.slice(idx,idx+boldPhrase.length)}),msg.slice(idx+boldPhrase.length)]});})()})]})]});}addPropertyControls(DeviceCompatibilityWarning,{title:{type:ControlType.String,title:\"Title\",defaultValue:\"Unlocked device required\"},message:{type:ControlType.String,title:\"Message\",defaultValue:\"To use this service, your device must be unlocked. Locked devices are not compatible.\",displayTextArea:true},icon:{type:ControlType.String,title:\"Icon\",defaultValue:\"\\uD83D\\uDD13\"},background:{type:ControlType.Color,title:\"Background\",defaultValue:\"#FFF8E1\"},textColor:{type:ControlType.Color,title:\"Text Color\",defaultValue:\"#7A4F01\"},borderColor:{type:ControlType.Color,title:\"Border Color\",defaultValue:\"#FFD54F\"},borderRadius:{type:ControlType.Number,title:\"Radius\",defaultValue:8,min:0,max:32},font:{type:ControlType.Font,title:\"Font\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:\"15px\",variant:\"Medium\",letterSpacing:\"-0.01em\",lineHeight:\"1.3em\"}}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"DeviceCompatibilityWarning\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"any-prefer-fixed\",\"framerIntrinsicWidth\":\"400\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerIntrinsicHeight\":\"120\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./DeviceCompatibilityWarning.map"],"mappings":"+OASG,SAAwB,EAA2B,EAAM,CAAC,GAAK,CAAC,QAAM,UAAQ,OAAK,aAAW,YAAU,cAAY,eAAa,OAAK,SAAO,EAAM,OAAoB,EAAM,MAAM,CAAC,MAAM,CAAC,GAAG,EAAM,aAAW,MAAM,EAAU,OAAO,eAAe,IAAc,eAAa,QAAQ,OAAO,WAAW,SAAS,IAAI,GAAG,QAAQ,GAAG,UAAU,aAAa,UAAU,6BAA6B,GAAG,EAAK,CAAC,KAAK,QAAQ,YAAY,YAAY,SAAS,CAAc,EAAK,OAAO,CAAC,MAAM,CAAC,SAAS,GAAG,W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