{"version":3,"file":"SearchTextWithSingleCMS.AT5YA3xn.mjs","names":["useState","useRef","_Fragment"],"sources":["https:/framerusercontent.com/modules/9OkN8QPr994zOtBWbJOQ/xf5fCrSsHH9TzlQBsz8x/SearchTextWithSingleCMS.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";import{useState,useEffect,useRef}from\"react\";// Component Styles\nconst componentStyles=`\n    .ArrowRightIcon{\n        margin-left: auto;\n    }\n    /* Mobile (default - up to 767px) */\n    .search-container {\n        width: 90vw;\n        max-width: 100%;\n        position: relative;\n    }\n\n    /* Tablet (768px - 1023px) */\n    @media (min-width: 768px) {\n        .search-container {\n            max-width: 600px;\n            padding: 0;\n            margin: 0 auto;\n        }\n    }\n\n    /* Desktop (1024px - 1439px) */\n    @media (min-width: 1024px) {\n        .search-container {\n            max-width: 758px;\n        }\n    }\n\n    /* Large Desktop (1440px and above) */\n    @media (min-width: 1440px) {\n        .search-container {\n            max-width: 858.4px;\n        }\n    }\n\n    .search-wrapper {\n        position: relative;\n    }\n\n    .search-box {\n        width: 100%;\n        height: 56px;\n        display: flex;\n        align-items: center;\n        gap: 6px;\n        padding: 18px 24px;\n        background-color: white;\n        border-radius: 12px;\n        margin-bottom: 6px;\n    }\n\n    .search-box--with-suggestions {\n        margin-bottom: 8px;\n    }\n\n    .search-icon-wrapper {\n        opacity: 0.5;\n    }\n\n    .search-input {\n        flex: 1;\n        border: none;\n        outline: none;\n        font-size: 16px;\n        color: #333;\n        font-family: General Sans, Inter, sans-serif;\n    }\n\n    .search-input:disabled {\n        opacity: 0.6;\n        cursor: not-allowed;\n    }\n\n    .suggestions-dropdown {\n        max-height: 400px;\n        overflow-y: auto;\n    }\n\n    .suggestion-category {\n        margin-bottom: 20px;\n    }\n\n    .suggestion-category:last-child {\n        margin-bottom: 0;\n    }\n\n    .suggestion-category-title {\n        font-size: 14px;\n        font-weight: 600;\n        color: #666;\n        margin-bottom: 12px;\n        text-transform: uppercase;\n        letter-spacing: 0.5px;\n    }\n\n    .suggestion-list {\n        display: flex;\n        flex-direction: column;\n        gap: 8px;\n    }\n\n    .suggestion-item {\n        display: flex;\n        align-items: center;\n        gap: 12px;\n        padding: 10px;\n        border-radius: 8px;\n        text-decoration: none;\n        color: #333;\n        transition: background-color 0.2s ease;\n    }\n\n    .suggestion-item:hover {\n        background-color: #F7FAFF;\n    }\n\n    .suggestion-text {\n        flex: 1;\n        font-family: General Sans;\n        font-weight: 400;\n        font-style: Regular;\n        font-size: 16px;\n        leading-trim: NONE;\n        line-height: 150%;\n        letter-spacing: -0.2px;\n\n    }\n\n    .suggestion-text strong {\n        font-weight: 600;\n    }\n\n    .default-sections {\n        width: 100%;\n        background-color: white;\n        border-radius: 12px;\n        padding: 18px;\n        margin-bottom: 28px;\n        overflow-y: auto;\n        box-shadow: 0px 3px 6px 0px #00000026;\n        position: absolute;\n        z-index: 9;\n    }\n\n    .top-button:hover svg.chaticon path{\n        fill: #fff;\n    }\n   .top-buttons-section {\n        display: flex;\n        gap:4px;\n        margin-bottom: 28px;\n        flex-wrap: wrap;\n        width: 100%;\n        justify-content: space-between;\n    }\n\n    .top-button {\n        display: flex;\n        align-items: center;\n        height: 42px;\n        padding: 9px 16px;\n        background-color: white;\n        border: 1px solid #C9C9C9;\n        border-radius: 9px;\n        color: #000;\n        text-decoration: none;\n        font-family: General Sans, Inter, sans-serif;\n        font-size: 15px;\n        font-weight: 500;\n        line-height: 150%;\n        letter-spacing: -0.2px;\n        transition: all 0.2s ease;\n        gap: 9px;\n        width: calc(33.333% - 12px); /* Desktop: 3 columns */\n      \n\n    }\n    .top-button span{\n        white-space: nowrap;\n        overflow: hidden;\n        text-overflow: ellipsis;\n    }\n\n    /* Tablet: 2 columns */\n    @media (max-width: 1025px) {\n        .top-button {\n            width: calc(50% - 8px);\n        }\n        \n        .top-buttons-section {\n            gap: 16px;\n        }\n    }\n\n    /* Mobile: 1 column */\n    @media (max-width: 480px) {\n        .top-button {\n            width: 100%;\n        }\n        .top-buttons-section {\n            gap: 16px;\n        }\n    }\n\n    .top-button:hover {\n        background-color: #0079C2;\n        color: white;\n        border-color: #0079C2;\n    }\n\n    .common-solutions-section {\n        margin-bottom: 28px;\n    }\n    .common-solution-item:hover svg.chaticon path{\n        fill: #fff;\n    }\n\n    .section-title {\n        opacity: 0.7;\n        color: #000;\n        margin-bottom: 14px;\n        font-family: General Sans;\n        font-weight: 600;\n        font-style: Semibold;\n        font-size: 15px;\n        leading-trim: NONE;\n        line-height: 150%;\n        letter-spacing: 2%;\n        text-transform: uppercase;\n\n    }\n\n    .common-solutions-grid {\n        display: grid;\n        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));\n        gap: 16px;\n    }\n\n    .common-solution-item {\n        display: flex;\n        align-items: center;\n        justify-content: space-between;\n        height: 42px;\n        padding: 9px 16px;\n        background-color: #F7FAFF;\n        border: 1px solid #0079C2;\n        border-radius: 9px;\n        color: #0079C2;\n        text-decoration: none;\n        font-family: General Sans, Inter, sans-serif;\n        font-size: 16px;\n        font-weight: 500;\n        line-height: 150%;\n        letter-spacing: -0.2px;\n        transition: all 0.2s ease;\n    }\n\n    .common-solution-item:hover {\n        background-color: #0079C2;\n        color: white;\n    }\n\n    .solution-content {\n        display: flex;\n        align-items: center;\n        gap: 9px;\n        font-family: General Sans;\n        font-weight: 500;\n        font-style: Medium;\n        font-size: 15px;\n        leading-trim: NONE;\n        line-height: 150%;\n        letter-spacing: -0.2px;\n\n    }\n\n    .trending-articles-list {\n        display: flex;\n        flex-direction: column;\n        gap: 6px;\n    }\n\n    .trending-article-item {\n        padding: 6px 10px;\n        color: #000000;\n        font-family: General Sans;\n        font-weight: 500;\n        font-style: Medium;\n        font-size: 15px;\n        leading-trim: NONE;\n        line-height: 150%;\n        letter-spacing: -0.2px;\n        text-decoration: none;\n        transition: color 0.2s ease;\n    }\n\n    .trending-article-item:last-child {\n        border-bottom: none;\n    }\n\n    .trending-article-item:hover {\n        color: #0079C2;\n    }\n    .seprator{\n        margin: 18px 0px;\n        border: 1px solid #000000;\n        opacity: 0.1;\n    }\n`;// Search Icon SVG Component\nconst SearchIcon=()=>/*#__PURE__*/_jsx(\"svg\",{width:\"19\",height:\"19\",viewBox:\"0 0 21 21\",fill:\"none\",children:/*#__PURE__*/_jsx(\"path\",{d:\"M19.9399 18.348L15.4877 13.8939C16.8226 12.1544 17.4458 9.97216 17.2309 7.78998C17.0161 5.60781 15.9792 3.58907 14.3306 2.14328C12.6821 0.697486 10.5453 -0.0670986 8.35376 0.00462578C6.16221 0.0763502 4.07999 0.979012 2.5295 2.5295C0.979013 4.07999 0.0763502 6.16221 0.00462578 8.35376C-0.0670986 10.5453 0.697486 12.6821 2.14328 14.3306C3.58907 15.9792 5.60781 17.0161 7.78998 17.2309C9.97216 17.4458 12.1544 16.8226 13.8939 15.4877L18.3499 19.9445C18.4545 20.0492 18.5787 20.1322 18.7155 20.1888C18.8522 20.2455 18.9987 20.2746 19.1467 20.2746C19.2947 20.2746 19.4413 20.2455 19.578 20.1888C19.7147 20.1322 19.839 20.0492 19.9436 19.9445C20.0483 19.8399 20.1313 19.7157 20.1879 19.5789C20.2445 19.4422 20.2737 19.2957 20.2737 19.1477C20.2737 18.9997 20.2445 18.8531 20.1879 18.7164C20.1313 18.5797 20.0483 18.4554 19.9436 18.3508L19.9399 18.348ZM2.26891 8.64391C2.26891 7.38306 2.6428 6.15052 3.3433 5.10215C4.04379 4.05379 5.03943 3.23669 6.20431 2.75418C7.36919 2.27167 8.65099 2.14543 9.88762 2.39141C11.1242 2.63739 12.2602 3.24455 13.1517 4.13611C14.0433 5.02767 14.6504 6.16358 14.8964 7.40021C15.1424 8.63684 15.0162 9.91864 14.5336 11.0835C14.0511 12.2484 13.234 13.244 12.1857 13.9445C11.1373 14.645 9.90477 15.0189 8.64392 15.0189C6.95369 15.0172 5.3332 14.345 4.13803 13.1498C2.94286 11.9546 2.27065 10.3341 2.26891 8.64391Z\",fill:\"currentColor\"})});const ChatIcon=()=>/*#__PURE__*/_jsx(\"svg\",{width:\"17\",height:\"17\",viewBox:\"0 0 17 17\",fill:\"none\",className:\"chaticon\",children:/*#__PURE__*/_jsx(\"path\",{d:\"M11.8787 6.86537C11.8787 7.11401 11.7799 7.35247 11.6041 7.52828C11.4283 7.7041 11.1898 7.80287 10.9412 7.80287H5.9412C5.69256 7.80287 5.45411 7.7041 5.27829 7.52828C5.10248 7.35247 5.0037 7.11401 5.0037 6.86537C5.0037 6.61673 5.10248 6.37827 5.27829 6.20246C5.45411 6.02664 5.69256 5.92787 5.9412 5.92787H10.9412C11.1898 5.92787 11.4283 6.02664 11.6041 6.20246C11.7799 6.37827 11.8787 6.61673 11.8787 6.86537ZM10.9412 9.05287H5.9412C5.69256 9.05287 5.45411 9.15164 5.27829 9.32746C5.10248 9.50327 5.0037 9.74173 5.0037 9.99037C5.0037 10.239 5.10248 10.4775 5.27829 10.6533C5.45411 10.8291 5.69256 10.9279 5.9412 10.9279H10.9412C11.1898 10.9279 11.4283 10.8291 11.6041 10.6533C11.7799 10.4775 11.8787 10.239 11.8787 9.99037C11.8787 9.74173 11.7799 9.50327 11.6041 9.32746C11.4283 9.15164 11.1898 9.05287 10.9412 9.05287ZM16.8787 8.42787C16.879 9.87315 16.5081 11.2943 15.8014 12.555C15.0948 13.8158 14.0761 14.8739 12.8431 15.6279C11.6101 16.3819 10.2041 16.8066 8.75982 16.8611C7.31557 16.9157 5.88151 16.5984 4.59511 15.9396L2.06152 16.7872C1.7857 16.8802 1.48941 16.8943 1.20603 16.8279C0.922652 16.7615 0.663453 16.6172 0.457646 16.4114C0.251839 16.2056 0.107607 15.9464 0.0412059 15.663C-0.0251953 15.3797 -0.011126 15.0834 0.0818281 14.8076L0.926359 12.274C0.34643 11.138 0.0315776 9.88534 0.00547571 8.61017C-0.0206262 7.33501 0.242701 6.07052 0.77566 4.91177C1.30862 3.75303 2.09734 2.73019 3.08252 1.92015C4.0677 1.11012 5.2237 0.533972 6.4636 0.235032C7.70351 -0.0639079 8.99505 -0.0778623 10.2411 0.194218C11.4872 0.466299 12.6554 1.01733 13.6578 1.80589C14.6603 2.59445 15.4709 3.60001 16.0288 4.74697C16.5867 5.89393 16.8772 7.15244 16.8787 8.42787ZM15.0037 8.42787C15.0033 7.42126 14.7714 6.42824 14.3258 5.52561C13.8803 4.62298 13.233 3.83494 12.4342 3.22247C11.6354 2.60999 10.7064 2.18948 9.71902 1.99348C8.73168 1.79748 7.71248 1.83124 6.74028 2.09214C5.76807 2.35304 4.86891 2.83409 4.11236 3.49808C3.3558 4.16208 2.76214 4.99121 2.37728 5.92134C1.99243 6.85147 1.8267 7.85767 1.89292 8.86209C1.95914 9.86652 2.25553 10.8423 2.75917 11.7138C2.82574 11.8287 2.86713 11.9565 2.88059 12.0886C2.89406 12.2207 2.8793 12.3542 2.8373 12.4802L2.06152 14.8076L4.38886 14.0318C4.4846 13.9999 4.58483 13.9835 4.68573 13.9833C4.85039 13.9836 5.01206 14.0273 5.15448 14.1099C6.15216 14.6872 7.28429 14.9915 8.43694 14.9923C9.5896 14.993 10.7221 14.6902 11.7205 14.1142C12.719 13.5382 13.5481 12.7094 14.1244 11.7112C14.7008 10.7129 15.004 9.58053 15.0037 8.42787Z\",fill:\"#0079C2\"})});// Arrow Right Icon SVG Component\nconst ArrowRightIcon=()=>/*#__PURE__*/_jsx(\"svg\",{width:\"8\",height:\"14\",viewBox:\"0 0 8 14\",fill:\"none\",className:\"ArrowRightIcon\",children:/*#__PURE__*/_jsx(\"path\",{d:\"M1.06753 0.183197L7.31754 6.4332C7.37565 6.49124 7.42174 6.56017 7.4532 6.63605C7.48465 6.71192 7.50084 6.79325 7.50084 6.87538C7.50084 6.95752 7.48465 7.03885 7.4532 7.11472C7.42175 7.1906 7.37565 7.25953 7.31754 7.31757L1.06754 13.5676C0.95026 13.6848 0.7912 13.7507 0.625347 13.7507C0.459495 13.7507 0.300435 13.6848 0.18316 13.5676C0.0658843 13.4503 -2.00852e-08 13.2912 -2.73348e-08 13.1254C-3.45844e-08 12.9595 0.0658843 12.8005 0.18316 12.6832L5.99175 6.87538L0.183159 1.06757C0.12509 1.0095 0.0790276 0.940565 0.0476009 0.864695C0.0161742 0.788824 -5.70138e-07 0.707506 -5.73727e-07 0.625384C-5.77317e-07 0.543262 0.0161742 0.461945 0.0476009 0.386074C0.0790275 0.310204 0.12509 0.241265 0.183159 0.183197C0.241228 0.125128 0.310166 0.0790653 0.386037 0.0476389C0.461907 0.0162124 0.543225 3.62159e-05 0.625347 3.62123e-05C0.707469 3.62087e-05 0.788787 0.0162124 0.864657 0.0476389C0.940528 0.0790653 1.00947 0.125128 1.06753 0.183197Z\",fill:\"currentColor\"})});/**\n * @framerSupportedLayoutWidth auto\n * @framerSupportedLayoutHeight auto\n */export default function SearchTextWithSingleCMS(props){const{contactButtons,searchPlaceholder}=props;const[searchTerm,setSearchTerm]=useState(\"\");const[showSuggestions,setShowSuggestions]=useState(false);const[filteredSuggestions,setFilteredSuggestions]=useState([]);const[apiData,setApiData]=useState([]);const[isLoading,setIsLoading]=useState(true);const searchRef=useRef(null);let allowedRoutes=[];switch(location?.pathname){case\"/support-hub/article\":allowedRoutes=[\"/article/\"];break;case\"/support-hub/video-tutorials\":allowedRoutes=[\"/video-tutorials/\"];break;case\"/support-hub/service-bulletin\":allowedRoutes=[\"/service-bulletin/\"];break;case\"/support-hub/frequently-asked-questions\":allowedRoutes=[\"/frequently-asked-questions\"];break;}useEffect(()=>{const fetchData=async()=>{try{setIsLoading(true);const response=await fetch(\"https://framerusercontent.com/sites/6s4c1SFoEST80lxyI1GKSh/searchIndex-tBvj6pl9UPcQ.json\");const data=await response.json();const filteredByRoute=Object.entries(data).filter(([url])=>allowedRoutes.some(route=>url.includes(route)));let filteredData=filteredByRoute.map(([url,content])=>{let category=\"SUGGESTIONS\";if(url.includes(\"/article\")){category=\"ARTICLES\";}else if(url.includes(\"/video-tutorials/\")){category=\"VIDEO TUTORIALS\";}else if(url.includes(\"/service-bulletin/\")){category=\"SERVICE BULLETIN\";}else if(url.includes(\"/frequently-asked-questions\")){category=\"FAQ\";}const removeDuplicates=(arrays,referenceText)=>{const normalized=referenceText.trim().toLowerCase();return arrays.map(arr=>arr?arr.filter(item=>item.trim().toLowerCase()!==normalized):[]);};const title=content.title||content.h1?.[0]||\"Untitled\";const description=content.description||\"\";let[cleanH1,cleanH2,cleanH3,cleanP]=removeDuplicates([content.h1||[],content.h2||[],content.h3||[],content.p||[]],title);if(description){[cleanH1,cleanH2,cleanH3,cleanP]=removeDuplicates([cleanH1,cleanH2,cleanH3,cleanP],description);}cleanH1.forEach(h1Text=>{[cleanH2,cleanH3,cleanP]=removeDuplicates([cleanH2,cleanH3,cleanP],h1Text);});cleanH2.forEach(h2Text=>{[cleanH3,cleanP]=removeDuplicates([cleanH3,cleanP],h2Text);});cleanH3.forEach(h3Text=>{[cleanP]=removeDuplicates([cleanP],h3Text);});return{title:title,url:url,category:category,description:description,keywords:content.keywords||\"\",h1:cleanH1,h2:cleanH2,h3:cleanH3,p:cleanP};});filteredData=filteredData.map(item=>{item.title=item.h1[0];let index=item.p.indexOf(\"View All\");if(index!==-1){item.p=item.p.slice(0,index);}return item;});console.log(filteredData);setApiData(filteredData);}catch(error){console.error(\"Error fetching search data:\",error);}finally{setIsLoading(false);}};fetchData();},[]);const allItems=[...apiData];const handleSearchChange=e=>{const value=e.target.value;setSearchTerm(value);if(value.trim().length>0){const filtered=allItems.map(item=>{const searchLower=value.toLowerCase();let priority=0;let matchedField=\"\";if(item.title?.toLowerCase().includes(searchLower)){priority=1;matchedField=\"title\";}else if(item.description?.toLowerCase().includes(searchLower)){priority=2;matchedField=\"description\";}else if(item.h1?.some(heading=>heading.toLowerCase().includes(searchLower))){priority=3;matchedField=\"h1\";}else if(item.url?.toLowerCase().includes(searchLower)){priority=4;matchedField=\"url\";}else if(item.h2?.some(heading=>heading.toLowerCase().includes(searchLower))){priority=5;matchedField=\"h2\";}else if(item.h3?.some(heading=>heading.toLowerCase().includes(searchLower))){priority=6;matchedField=\"h3\";}else if(item.keywords?.toLowerCase().includes(searchLower)){priority=7;matchedField=\"keywords\";}else if(item.p?.some(paragraph=>paragraph.toLowerCase().includes(searchLower))){priority=8;matchedField=\"p\";}if(priority>0){return{...item,_priority:priority,_matchedField:matchedField};}return null;}).filter(item=>item!==null).sort((a,b)=>{if(a._priority!==b._priority){return a._priority-b._priority;}return a.title.localeCompare(b.title);}).slice(0,5);console.log(filtered);setFilteredSuggestions(filtered);setShowSuggestions(true);}else{setShowSuggestions(false);setFilteredSuggestions([]);}};const handleFocus=()=>{if(searchTerm.trim().length===0){setShowSuggestions(true);}};useEffect(()=>{const handleClickOutside=event=>{if(searchRef.current&&!searchRef.current.contains(event.target)){setShowSuggestions(false);}};document.addEventListener(\"mousedown\",handleClickOutside);return()=>document.removeEventListener(\"mousedown\",handleClickOutside);},[]);const getDisplayText=(item,searchTerm)=>{if(!searchTerm.trim()){return item.title;}if(item._matchedField){const searchLower=searchTerm.toLowerCase();switch(item._matchedField){case\"title\":return item.title;case\"description\":return item.description.length>80?item.description.substring(0,80)+\"...\":item.description;case\"h1\":const matchingH1=item.h1?.find(h=>h.toLowerCase().includes(searchLower));if(matchingH1)return matchingH1;break;case\"url\":return item.title;case\"h2\":const matchingH2=item.h2?.find(h=>h.toLowerCase().includes(searchLower));if(matchingH2)return matchingH2;break;case\"h3\":const matchingH3=item.h3?.find(h=>h.toLowerCase().includes(searchLower));if(matchingH3)return matchingH3;break;case\"keywords\":return item.title;case\"p\":const matchingP=item.p?.find(p=>p.toLowerCase().includes(searchLower));if(matchingP){return matchingP.length>80?matchingP.substring(0,80)+\"...\":matchingP;}break;}}return item.title;};return /*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"style\",{children:componentStyles}),/*#__PURE__*/_jsx(\"div\",{className:\"search-container\",children:/*#__PURE__*/_jsxs(\"div\",{ref:searchRef,className:\"search-wrapper\",children:[/*#__PURE__*/_jsxs(\"div\",{className:`search-box ${showSuggestions?\"search-box--with-suggestions\":\"\"}`,children:[/*#__PURE__*/_jsx(\"div\",{className:\"search-icon-wrapper\",children:/*#__PURE__*/_jsx(SearchIcon,{})}),/*#__PURE__*/_jsx(\"input\",{type:\"text\",placeholder:isLoading?\"Loading search data...\":searchPlaceholder,value:searchTerm,onChange:handleSearchChange,onFocus:handleFocus,className:\"search-input\",disabled:isLoading})]}),showSuggestions&&filteredSuggestions.length>0&&/*#__PURE__*/_jsxs(\"div\",{className:\"default-sections\",children:[/*#__PURE__*/_jsxs(\"div\",{className:\"common-solutions-section\",children:[/*#__PURE__*/_jsx(\"h2\",{className:\"section-title\",children:\"Contact\"}),contactButtons&&contactButtons.length>0&&/*#__PURE__*/_jsx(\"div\",{className:\"top-buttons-section\",children:contactButtons.map((button,idx)=>/*#__PURE__*/_jsxs(\"a\",{href:button.url||\"#\",className:\"top-button\",children:[/*#__PURE__*/_jsx(ChatIcon,{}),button.title||\"Button\",/*#__PURE__*/_jsx(ArrowRightIcon,{})]},idx))})]}),/*#__PURE__*/_jsx(\"hr\",{className:\"seprator\"}),/*#__PURE__*/_jsxs(\"div\",{className:\"common-solutions-section\",children:[/*#__PURE__*/_jsx(\"h2\",{className:\"section-title\",children:\"Suggestions\"}),/*#__PURE__*/_jsx(\"div\",{className:\"suggestions-dropdown\",children:filteredSuggestions.map((item,itemIdx)=>{const displayText=getDisplayText(item,searchTerm);return /*#__PURE__*/_jsxs(\"a\",{href:item.url||\"#\",onClick:()=>{setShowSuggestions(false);setSearchTerm(\"\");},className:\"suggestion-item\",children:[/*#__PURE__*/_jsx(\"div\",{className:\"search-icon-wrapper\",children:/*#__PURE__*/_jsx(SearchIcon,{})}),/*#__PURE__*/_jsx(\"span\",{className:\"suggestion-text\",children:searchTerm.trim().length>0?displayText.split(new RegExp(`(${searchTerm.replace(/[.*+?^${}()|[\\]\\\\]/g,\"\\\\$&\")})`,\"gi\")).map((part,i)=>part.toLowerCase()===searchTerm.toLowerCase()?/*#__PURE__*/_jsx(\"strong\",{children:part},i):part):displayText})]},itemIdx);})})]})]})]})})]});}addPropertyControls(SearchTextWithSingleCMS,{searchPlaceholder:{type:ControlType.String,title:\"Search Placeholder\",defaultValue:\"Tell us what you need help with...\"},contactButtons:{type:ControlType.Array,title:\"Contact Buttons\",control:{type:ControlType.Object,controls:{title:{type:ControlType.String,title:\"Title\",defaultValue:\"Chat with Support\"},url:{type:ControlType.String,title:\"URL\",defaultValue:\"#\"}}},defaultValue:[{title:\"Chat with Support\",url:\"#\"}]}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"SearchTextWithSingleCMS\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"auto\",\"framerSupportedLayoutWidth\":\"auto\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./SearchTextWithSingleCMS.map"],"mappings":"sMAyTG,SAAwB,EAAwB,EAAM,CAAC,GAAK,CAAC,iBAAe,qBAAmB,EAAW,CAAC,EAAW,GAAeA,EAAS,EAAE,EAAO,CAAC,EAAgB,GAAoBA,EAAS,EAAK,EAAO,CAAC,EAAoB,GAAwBA,EAAS,CAAC,CAAC,EAAO,CAAC,EAAQ,GAAYA,EAAS,CAAC,CAAC,EAAO,CAAC,EAAU,GAAcA,EAAS,EAAI,EAAQ,EAAUC,EAAO,IAAI,EAAM,EAAc,CAAC,EAAE,OAAO,UAAU,SAAjB,CAA2B,IAAI,uBAAuB,EAAc,CAAC,WAAW,EAAE,MAAM,IAAI,+BAA+B,EAAc,CAAC,mBAAmB,EAAE,MAAM,IAAI,gCAAgC,EAAc,CAAC,oBAAoB,EAAE,MAAM,IAAI,0CAA0C,EAAc,CAAC,6BAA6B,EAAE,KAAM,CAAC,MAAc,EAA61D,SAAn0D,CAAC,GAAG,CAAC,EAAa,EAAI,EAAyH,IAAM,EAAK,MAAM,MAAnH,MAAM,0FAA0F,EAAA,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