{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/izjUYFbotFV2tnoxmQ2r/STHjKWMrT8uVAIMaS5D0/SearchBar.js"],
  "sourcesContent": ["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{useState}from\"react\";import{motion,AnimatePresence}from\"framer-motion\";import{FaSearch}from\"react-icons/fa\";const faqData=[{question:\"I cannot scan my QR Code\",answer:\"<p>There could be several reasons why you are unable to scan your QR code for your eSIM. Here are a few things you can try to resolve the issue.</p><p><strong>Check if your phone is compatible with eSIM - </strong> Make sure your phone supports eSIM technology. Not all phones are eSIM compatible, it is important to check this first.</p><p><strong>Check the QR code - </strong> Make sure that the QR code you are trying to scan is not damaged or distorted. If the code is not clear or legible, try scanning it again or obtaining a new code. You can access the QR code(s) of your eSIM(s) under your profile on the app.</p><p><strong>Adjust the lighting - </strong> Poor lighting conditions can affect the QR code scanner's ability to read the code correctly. Try adjusting the lighting in your room to ensure that the QR code is well-lit.</p><p><strong>Move closer to the QR code - </strong> If you are too far away from the QR code, the scanner may not be able to read it. Move closer to the code and try scanning it again.</p><p><strong>Restart your phone - </strong> If none of the above solutions work, try restarting your phone and attempting to scan the QR code again. This can often resolve issues with the phone's software.</p><p>If you continue to experience problems with scanning the QR code of your eSIM, please feel free to contact our support team via the Virgin Connect Roam App!</p>\"},{question:\"I have installed my Virgin Connect Roam eSIM, but my home SIM has stopped working.\",answer:\"Framer Motion is a production-ready motion library for React.\"},{question:\"My iMessage has stopped working after installing my eSIM.\",answer:\"You can use it by installing it via npm and importing it in your project.\"},{question:\"Problems with slow internet connection or slow internet speed\",answer:\"Yes, Framer Motion provides excellent support for animating SVGs.\"},{question:\"Can't connect my eSIM on iOS/iPhone.\",answer:\"Yes, Framer Motion provides excellent support for animating SVGs.\"},{question:\"\u201CUnable to Complete Cellular Plan Change\u201D error message.\",answer:\"Yes, Framer Motion provides excellent support for animating SVGs.\"},{question:\"What should I do if my device is network locked?\",answer:\"Yes, Framer Motion provides excellent support for animating SVGs.\"},{question:\"\u201CThis code is no longer valid\u201D error.\",answer:\"Yes, Framer Motion provides excellent support for animating SVGs.\"},{question:\"What is PDP Authentication Failure?\",answer:\"Yes, Framer Motion provides excellent support for animating SVGs.\"},{question:\"Can\u2019t connect to my eSIM on Android.\",answer:\"Yes, Framer Motion provides excellent support for animating SVGs.\"},{question:\"\u201CCellular Plans from This Carrier Cannot be Added\u201D Error Message\",answer:\"Yes, Framer Motion provides excellent support for animating SVGs.\"},{question:\"What are the benefits of eSIM?\",answer:\"Yes, Framer Motion provides excellent support for animating SVGs.\"},{question:\"Is an eSIM better for roaming?\",answer:\"Yes, Framer Motion provides excellent support for animating SVGs.\"},{question:\"What is an eSIM?\",answer:\"Yes, Framer Motion provides excellent support for animating SVGs.\"},{question:\"How do I add an eSIM on my divide?\",answer:\"Yes, Framer Motion provides excellent support for animating SVGs.\"},{question:\"What should I do if I lose the QR code?\",answer:\"Yes, Framer Motion provides excellent support for animating SVGs.\"},{question:\"What if I change my mobile phone or device?\",answer:\"Yes, Framer Motion provides excellent support for animating SVGs.\"},{question:\"Can I use WhatsApp, Facebook, Instagram and Tik Tok with Virgin Connect Roam eSIM?\",answer:\"Yes, Framer Motion provides excellent support for animating SVGs.\"},{question:\"Is 5G available?\",answer:\"Yes, Framer Motion provides excellent support for animating SVGs.\"},{question:\"What is a data plan?\",answer:\"Yes, Framer Motion provides excellent support for animating SVGs.\"},{question:\"How can I purchase a data plan?\",answer:\"Yes, Framer Motion provides excellent support for animating SVGs.\"},{question:\"When will my data plan expire?\",answer:\"Yes, Framer Motion provides excellent support for animating SVGs.\"},{question:\"How many data plans can I have at the same time?\",answer:\"Yes, Framer Motion provides excellent support for animating SVGs.\"},{question:\"When I top-up a data plan, will I be using the remaining data balance on the existing active plan or the new plan balance first?\",answer:\"Yes, Framer Motion provides excellent support for animating SVGs.\"},{question:\"Where can I see my data plan(s)?\",answer:\"Yes, Framer Motion provides excellent support for animating SVGs.\"},{question:\"I don\u2019t understand the usage screen. What\u2019s it for?\",answer:\"Yes, Framer Motion provides excellent support for animating SVGs.\"},{question:\"How can I change my password?\",answer:\"Yes, Framer Motion provides excellent support for animating SVGs.\"},{question:\"What happens if I forget my password?\",answer:\"Yes, Framer Motion provides excellent support for animating SVGs.\"},{question:\"What are the conditions and documents required to create an account and buy a data plan?\",answer:\"Yes, Framer Motion provides excellent support for animating SVGs.\"},{question:\"How can I create my account on the Virgin Connect Roam app?\",answer:\"Yes, Framer Motion provides excellent support for animating SVGs.\"},{question:\"Do I have to create my account to be able to use the service of the Virgin Connect Roam app?\",answer:\"Yes, Framer Motion provides excellent support for animating SVGs.\"},{question:\"If I face any issue or I need more information, how can I reach out to you?\",answer:\"Yes, Framer Motion provides excellent support for animating SVGs.\"},{question:\"What are the working hours for the customer support center?\",answer:\"Yes, Framer Motion provides excellent support for animating SVGs.\"},{question:\"How many data plans can I have at the same time?\",answer:\"Yes, Framer Motion provides excellent support for animating SVGs.\"}];// Welcome to Code in Framer\n// Get Started: https://www.framer.com/developers/\n/**\n * These annotations control how your component sizes\n * Learn more: https://www.framer.com/developers/#code-components-auto-sizing\n *\n * @framerSupportedLayoutWidth auto\n * @framerSupportedLayoutHeight auto\n */export default function SearchBar(){const[searchTerm,setSearchTerm]=useState(\"\");const[expandedIndex,setExpandedIndex]=useState(null);const filteredFaqs=faqData.filter(faq=>faq.question.toLowerCase().includes(searchTerm.toLowerCase()));const toggleExpand=index=>{setExpandedIndex(expandedIndex===index?null:index);};return /*#__PURE__*/_jsxs(\"div\",{children:[/*#__PURE__*/_jsxs(\"div\",{className:\"faqInputSearch\",children:[/*#__PURE__*/_jsx(\"input\",{type:\"text\",placeholder:\"What Are you looking for?\",value:searchTerm,style:inputBox,onChange:e=>setSearchTerm(e.target.value)}),/*#__PURE__*/_jsx(\"span\",{style:faqSearchButton,children:/*#__PURE__*/_jsx(FaSearch,{})})]}),/*#__PURE__*/_jsx(\"div\",{style:faqBox,children:searchTerm?filteredFaqs.map((faq,index)=>/*#__PURE__*/_jsxs(\"div\",{style:faqInner,children:[/*#__PURE__*/_jsx(motion.div,{initial:{opacity:0},animate:{opacity:1},transition:{duration:.5},// onClick={() => toggleExpand(index)}\n    style:{cursor:\"pointer\",margin:\"10px 0\",fontWeight:\"bold\",fontSize:\"18px\"},children:faq.question}),/*#__PURE__*/_jsx(\"div\",{style:{position:\"absolute\"},children:/*#__PURE__*/_jsx(AnimatePresence,{children:expandedIndex===index&&/*#__PURE__*/_jsx(motion.div,{initial:{height:0,opacity:0},animate:{height:\"auto\",opacity:1},exit:{height:0,opacity:0},transition:{duration:.5},style:{overflow:\"hidden\"},dangerouslySetInnerHTML:{__html:faq.answer}})})})]},index)):\"\"})]});}// Styles are written in object syntax\n// Learn more: https://reactjs.org/docs/dom-elements.html#style\nconst inputBox={width:\"100%\",height:\"50px\",display:\"inline-block\",backgroundColor:\"#fff\",borderRadius:\"4px\",border:\"1px solid #898d9a\",padding:\"10px\"};const faqBox={display:\"block\",backgroundColor:\"#fff\",width:\"100%\",zIndex:\"999\",height:\"auto\",margin:\"0px auto 15px auto\",position:\"absolute\"};const faqInner={position:\"relative\",display:\"block\",width:\"100%\",height:\"auto\",//  backgroundColor: \"#FFF\",\npadding:\"5px 20px 5px 20px\",margin:\"10px auto 10px auto\",// border: \"1px solid #eee\",\nborderRadius:\"5px\",cursor:\"pointer\"};const faqInputSearch={position:\"relative\",width:\"940px\",display:\"block\"};const faqSearchButton={position:\"absolute\",top:\"18px\",right:\"15px\"};const rightAngle={position:\"absolute\",right:\"15px\"};\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"SearchBar\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"auto\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"auto\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./SearchBar.map"],
  "mappings": "gJAA4K,IAAMA,EAAQ,CAAC,CAAC,SAAS,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OAAO,EAAE,QAAQ,CAAC,EAAE,QAAQ,CAAC,OAAO,OAAO,QAAQ,CAAC,EAAE,KAAK,CAAC,OAAO,EAAE,QAAQ,CAAC,EAAE,WAAW,CAAC,SAAS,EAAE,EAAE,MAAM,CAAC,SAAS,QAAQ,EAAE,wBAAwB,CAAC,OAAOV,EAAI,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAEE,CAAK,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,CAAE,CAEtd,IAAMG,EAAS,CAAC,MAAM,OAAO,OAAO,OAAO,QAAQ,eAAe,gBAAgB,OAAO,aAAa,MAAM,OAAO,oBAAoB,QAAQ,MAAM,EAAQG,EAAO,CAAC,QAAQ,QAAQ,gBAAgB,OAAO,MAAM,OAAO,OAAO,MAAM,OAAO,OAAO,OAAO,qBAAqB,SAAS,UAAU,EAAQC,EAAS,CAAC,SAAS,WAAW,QAAQ,QAAQ,MAAM,OAAO,OAAO,OAC7W,QAAQ,oBAAoB,OAAO,sBACnC,aAAa,MAAM,OAAO,SAAS,EAA2E,IAAMG,EAAgB,CAAC,SAAS,WAAW,IAAI,OAAO,MAAM,MAAM",
  "names": ["faqData", "SearchBar", "searchTerm", "setSearchTerm", "ye", "expandedIndex", "setExpandedIndex", "filteredFaqs", "faq", "toggleExpand", "index", "u", "p", "inputBox", "faqSearchButton", "FaSearch", "faqBox", "faqInner", "motion", "AnimatePresence", "faqSearchButton"]
}
