{"version":3,"file":"CMS_Filter_Search.B-Wq6FqP.mjs","names":["useRef","_Fragment","useState","useRef","useState","useRef","useState","useRef","__esmMin","window","init_ssg_sandbox_shims","init_npm_react_18_3_1","l","_e","p","c","init_jsx_runtime","ce","de","motion","init_framer_motion_DhsWWWsN","RenderTarget","addPropertyControls","init_framer_D1IzEvwH","ControlType","detectRegion","regionPromise","countryCode","line","REGION_MAP","DEFAULT_REGION","getSeeAllRegions","seeAllPromise","w","getBroadcasterChildren","broadcaster","createBroadcaster","hasInitialised","initTimer","initialise","handleToggleRequest","toggleGate","seeAll","effectiveRegionFilter","options","children","regionValidItems","region","regionLayers","child","REGION_LAYER_NAME","itemRegions","layer","v","matches","flashGuard","refreshInterval","refreshItems","Component","props","BROADCAST_ID","CMSFilterBroadcaster","CMSFilterBroadcasterGated","resetFilters","closeGate","openGate","items","filterAttrs","name","shouldShow","attr","init_CMS_Filter_Broadcaster","CMSFilterCounter","itemCount","setItemCount","gateOpen","setGateOpen","observer","isCanvas","handleGateChange","gateInterval","currentGate","prev","checkCount","broadcasterElements","intervalId","filteredCount","displayText","init_CMS_Filter_Counter","CMSFilterDropdown","isOpen","setIsOpen","setOptions","selectedOption","setSelectedOption","isHovered","setIsHovered","isLocked","setIsLocked","containerRef","uniqueId","fetchOptions","applyFilters","handleClickOutside","event","handleReset","handleLock","handleUnlock","getItems","optionValues","textContent","value","sorted","textLayers","allValues","values","attrs","toggleDropdown","handleOptionClick","option","isActive","getDisplayTitle","selectorStyle","activeStyle","iconStyle","dropdownGap","dropdownStyle","optionStyle","isSelected","index","init_CMS_Filter_Dropdown","CMSFilterSearch","searchQuery","setSearchQuery","debouncedQuery","setDebouncedQuery","timer","filterItems","triggerPaginationRefresh","matchesSearch","query","shouldTriggerPagination","styleEl","init_CMS_Filter_Search"],"sources":["https:/framerusercontent.com/modules/QyhtvK5sXCYpdLOwAkRB/vqsWTtX0ix3IKLjwxSO6/CMS_Filter_Broadcaster.js","https:/framerusercontent.com/modules/RR4fQJ3Tfx0bqCtGrNVl/IZhuYEQbtxSsYFtNCsNW/CMS_Filter_Counter.js","https:/framerusercontent.com/modules/TUXSrH2V5lXS6KYVZy3c/YTHq2hSdl3ZM6aKCPux8/CMS_Filter_Dropdown.js","https:/framerusercontent.com/modules/RdfhxLrhXYhQu5H5nl6N/z46bCuQeu9qQ81NkMTUg/CMS_Filter_Search.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from\"react/jsx-runtime\";import{useEffect,useRef}from\"react\";// ============================================================\n// CMS Filter Broadcaster 1.0\n// by Tiger Media (tigermedia.io)\n//\n// Framer Override — attach to a CMS Collection List.\n//\n// EXPORTS (pick one per collection):\n//\n//   CMSFilterBroadcaster\n//     → Region-filtered, results visible immediately.\n//     → Use on: Product Finder\n//\n//   CMSFilterBroadcasterGated\n//     → Region-filtered, results hidden until user clicks Go.\n//     → Use on: Downloads / Resources page\n//\n//   CMSFilterBroadcasterOpen\n//     → No region filter, results visible immediately.\n//     → Use on: Private distributor library (all docs, no gating)\n//\n//   CMSFilterBroadcasterOpenGated\n//     → No region filter, results hidden until user clicks Go.\n//     → Use on: Private library with search/filter UI\n//\n// For the Search/Reset button on gated CMS lists, use the\n// CMSFilterToggleButton code component in this folder. The\n// previous CMSFilterGoButton / CMSFilterResetButton override\n// pair was removed 2026-05-28 — see GATE TOGGLE section below.\n//\n// Self-contained — no external config scripts required.\n// ============================================================\n// ─── INTERNAL SETTINGS ──────────────────────────────────────\nconst REGION_LAYER_NAME=\"Region\";const BROADCAST_ID=\"3.14px solid transparent\";// ─── REGION MAPPING ─────────────────────────────────────────\nconst REGION_MAP={// Oceania\nAU:\"Oceania\",NZ:\"Oceania\",FJ:\"Oceania\",PG:\"Oceania\",SB:\"Oceania\",TV:\"Oceania\",VU:\"Oceania\",WS:\"Oceania\",FM:\"Oceania\",MH:\"Oceania\",KI:\"Oceania\",NR:\"Oceania\",TO:\"Oceania\",CK:\"Oceania\",NU:\"Oceania\",PW:\"Oceania\",TK:\"Oceania\",AS:\"Oceania\",GU:\"Oceania\",NC:\"Oceania\",PF:\"Oceania\",WF:\"Oceania\",// Americas\nUS:\"Americas\",CA:\"Americas\",MX:\"Americas\",BR:\"Americas\",AR:\"Americas\",CL:\"Americas\",CO:\"Americas\",PE:\"Americas\",VE:\"Americas\",EC:\"Americas\",BO:\"Americas\",PY:\"Americas\",UY:\"Americas\",GY:\"Americas\",SR:\"Americas\",PA:\"Americas\",CR:\"Americas\",GT:\"Americas\",HN:\"Americas\",SV:\"Americas\",NI:\"Americas\",BZ:\"Americas\",JM:\"Americas\",TT:\"Americas\",BB:\"Americas\",BS:\"Americas\",HT:\"Americas\",DO:\"Americas\",CU:\"Americas\",PR:\"Americas\",// Europe\nGB:\"Europe\",DE:\"Europe\",FR:\"Europe\",IT:\"Europe\",ES:\"Europe\",PT:\"Europe\",NL:\"Europe\",BE:\"Europe\",CH:\"Europe\",AT:\"Europe\",SE:\"Europe\",NO:\"Europe\",DK:\"Europe\",FI:\"Europe\",IE:\"Europe\",PL:\"Europe\",CZ:\"Europe\",RO:\"Europe\",HU:\"Europe\",SK:\"Europe\",HR:\"Europe\",BG:\"Europe\",RS:\"Europe\",SI:\"Europe\",LT:\"Europe\",LV:\"Europe\",EE:\"Europe\",GR:\"Europe\",UA:\"Europe\",BY:\"Europe\",MD:\"Europe\",AL:\"Europe\",MK:\"Europe\",BA:\"Europe\",ME:\"Europe\",MT:\"Europe\",LU:\"Europe\",IS:\"Europe\",CY:\"Europe\",RU:\"Europe\",// Asia\nCN:\"Asia\",JP:\"Asia\",KR:\"Asia\",IN:\"Asia\",ID:\"Asia\",TH:\"Asia\",VN:\"Asia\",PH:\"Asia\",MY:\"Asia\",SG:\"Asia\",MM:\"Asia\",KH:\"Asia\",LA:\"Asia\",BD:\"Asia\",LK:\"Asia\",NP:\"Asia\",PK:\"Asia\",AF:\"Asia\",MN:\"Asia\",KZ:\"Asia\",UZ:\"Asia\",TM:\"Asia\",KG:\"Asia\",TJ:\"Asia\",TW:\"Asia\",HK:\"Asia\",MO:\"Asia\",BN:\"Asia\",TL:\"Asia\",MV:\"Asia\",BT:\"Asia\",// Middle East / Africa\nAE:\"Middle East / Africa\",SA:\"Middle East / Africa\",QA:\"Middle East / Africa\",KW:\"Middle East / Africa\",BH:\"Middle East / Africa\",OM:\"Middle East / Africa\",IL:\"Middle East / Africa\",JO:\"Middle East / Africa\",LB:\"Middle East / Africa\",IQ:\"Middle East / Africa\",IR:\"Middle East / Africa\",SY:\"Middle East / Africa\",YE:\"Middle East / Africa\",TR:\"Middle East / Africa\",EG:\"Middle East / Africa\",ZA:\"Middle East / Africa\",NG:\"Middle East / Africa\",KE:\"Middle East / Africa\",GH:\"Middle East / Africa\",TZ:\"Middle East / Africa\",ET:\"Middle East / Africa\",MA:\"Middle East / Africa\",TN:\"Middle East / Africa\",DZ:\"Middle East / Africa\",LY:\"Middle East / Africa\",SD:\"Middle East / Africa\",UG:\"Middle East / Africa\",CM:\"Middle East / Africa\",CI:\"Middle East / Africa\",SN:\"Middle East / Africa\",ZW:\"Middle East / Africa\",MZ:\"Middle East / Africa\",AO:\"Middle East / Africa\",BW:\"Middle East / Africa\",NA:\"Middle East / Africa\",RW:\"Middle East / Africa\",MG:\"Middle East / Africa\",MU:\"Middle East / Africa\"};const DEFAULT_REGION=\"Oceania\";// ─── CLOUDFLARE REGION DETECTION ────────────────────────────\n// In-memory singleton — one fetch per page load, shared across\n// all components. No sessionStorage cache so VPN changes take\n// effect immediately on refresh.\nlet regionPromise=null;function detectRegion(){if(!regionPromise){regionPromise=(async()=>{try{const response=await fetch(\"https://1.1.1.1/cdn-cgi/trace\",{cache:\"no-store\"});const text=await response.text();const countryCode=text.split(\"\\n\").find(line=>line.startsWith(\"loc=\"))?.split(\"=\")[1]?.trim()||\"\";const region=REGION_MAP[countryCode]||DEFAULT_REGION;return{region,countryCode};}catch(error){console.warn(\"[CMS Filter] Region detection failed, using default:\",DEFAULT_REGION);return{region:DEFAULT_REGION,countryCode:\"XX\"};}})();}return regionPromise;}// ─── CROSS-REGION ENTITLEMENT ───────────────────────────────\n// Bridges the logged-in user's identity into the region filter.\n// all-pages.html sets window.userSeeAllRegions from its auth\n// fetch (true for all_regions / \"Global Library\" users + admins).\n// We await the shared auth promise so the flag is known before\n// filtering. Memoised singleton — one resolution per page load,\n// shared with the Region Gate's own copy. Safe default false.\nlet seeAllPromise=null;function getSeeAllRegions(){if(!seeAllPromise){seeAllPromise=(async()=>{try{const w=window;if(w.authPromise)await w.authPromise;return w.userSeeAllRegions===true;}catch{return false;}})();}return seeAllPromise;}// ─── HELPER: Find broadcaster + children via DOM ────────────\n// Uses the unique border-width value (3.14px) for discovery.\n// Browsers may normalize \"transparent\" to \"rgba(0,0,0,0)\" or\n// split shorthand into longhand properties on refresh/hydration,\n// but the numeric width value survives normalization.\nfunction getBroadcasterChildren(){const broadcaster=document.querySelector(`[style*=\"3.14px\"]`);if(!broadcaster)return null;return Array.from(broadcaster.children);}function createBroadcaster(Component,options){return props=>{const hasInitialised=useRef(false);useEffect(()=>{if(hasInitialised.current)return;hasInitialised.current=true;const initTimer=setTimeout(async()=>{await initialise();},200);// Listen for toggle requests from CMSFilterToggleButton\n// (a code component, separate file — uses the event bus\n// because cross-file imports between Framer code components\n// are unproven in this codebase).\nconst handleToggleRequest=()=>toggleGate();window.addEventListener(\"cms-filter-toggle-request\",handleToggleRequest);return()=>{clearTimeout(initTimer);window.removeEventListener(\"cms-filter-toggle-request\",handleToggleRequest);};},[]);async function initialise(){// Cross-region entitlement — entitled users (all_regions\n// / \"Global Library\" / admin) bypass region filtering\n// entirely. Await auth so the flag is known before we\n// decide whether to region-filter.\nconst seeAll=await getSeeAllRegions();const effectiveRegionFilter=options.enableRegionFilter&&!seeAll;// Find the broadcaster element by its border style\nconst children=getBroadcasterChildren();if(!children||children.length===0){// Retry — CMS might not have rendered yet\nconsole.log(\"[CMS Filter] Waiting for CMS items...\");setTimeout(()=>initialise(),300);return;}// ── Add fade transition to all children ─────\nchildren.forEach(child=>{child.style.transition=\"opacity 0.3s ease\";});// ── Region Detection & Filtering ────────────\nlet regionValidItems;if(effectiveRegionFilter){const{region,countryCode}=await detectRegion();window.cmsFilterRegion=region;window.cmsFilterCountryCode=countryCode;console.log(`[CMS Filter] Detected: ${countryCode} → ${region} | ${children.length} total items`);children.forEach(child=>{const regionLayers=child.querySelectorAll(`[data-framer-name=\"${REGION_LAYER_NAME}\"]`);if(regionLayers.length===0){// No region layer = show everywhere\nchild.setAttribute(\"data-region-hidden\",\"false\");return;}const itemRegions=[];regionLayers.forEach(layer=>{const text=layer.textContent||\"\";text.split(\",\").map(v=>v.trim()).filter(Boolean).forEach(v=>{if(!itemRegions.includes(v)){itemRegions.push(v);}});});const matches=itemRegions.includes(region);child.setAttribute(\"data-region-hidden\",matches?\"false\":\"true\");if(!matches){child.style.display=\"none\";}});regionValidItems=children.filter(child=>child.getAttribute(\"data-region-hidden\")!==\"true\");}else{// No region filtering — all items are valid\nconsole.log(`[CMS Filter] Region filter disabled | ${children.length} total items`);children.forEach(child=>{child.setAttribute(\"data-region-hidden\",\"false\");});regionValidItems=children;}window.allBroadcastItems=regionValidItems;console.log(`[CMS Filter] ${regionValidItems.length}/${children.length} items after region filter`);// ── Show/Hide Gate ──────────────────────────\nif(options.enableGate){regionValidItems.forEach(child=>{child.style.opacity=\"0\";child.style.display=\"none\";});window.cmsFilterGateOpen=false;console.log(\"[CMS Filter] Gate enabled — results hidden until Go button clicked\");// Remove the flash-guard CSS now that items are\n// properly hidden via inline styles\nconst flashGuard=document.getElementById(\"cms-filter-flash-guard\");if(flashGuard)flashGuard.remove();}else{window.cmsFilterGateOpen=true;}// ── Mark as ready ───────────────────────────\nwindow.cmsFilterBroadcasterReady=true;// ── Refresh interval ────────────────────────\nconst refreshInterval=setInterval(()=>{refreshItems();},2e3);window._cmsFilterCleanup=()=>{clearInterval(refreshInterval);};}function refreshItems(){const children=getBroadcasterChildren();if(!children)return;const regionValidItems=children.filter(child=>child.getAttribute(\"data-region-hidden\")!==\"true\");if(!window.allBroadcastItems||window.allBroadcastItems.length!==regionValidItems.length){window.allBroadcastItems=regionValidItems;}}// Cleanup on unmount\nuseEffect(()=>{return()=>{if(window._cmsFilterCleanup){window._cmsFilterCleanup();}window.allBroadcastItems=undefined;window.cmsFilterBroadcasterReady=false;window.cmsFilterGateOpen=undefined;};},[]);// ── KEY CHANGE: No wrapper div. ─────────────────\n// Border goes directly on the Component's own element.\n// This means .children of the bordered element = CMS items.\n//\n// For gated mode, we inject a <style> tag directly in\n// the render so items are hidden BEFORE any useEffect\n// fires — prevents the flash on page load.\nreturn /*#__PURE__*/_jsxs(_Fragment,{children:[options.enableGate&&/*#__PURE__*/_jsx(\"style\",{id:\"cms-filter-flash-guard\",dangerouslySetInnerHTML:{__html:`[style*=\"3.14px\"] > * { opacity: 0 !important; }`}}),/*#__PURE__*/_jsx(Component,{...props,style:{...props.style,border:BROADCAST_ID}})]});};}// ─── EXPORTS: BROADCASTER OVERRIDES ─────────────────────────\n// Product Finder — region filter on, results visible immediately\nexport function CMSFilterBroadcaster(Component){return createBroadcaster(Component,{enableGate:false,enableRegionFilter:true});}// Downloads / Resources — region filter on, results hidden until Go\nexport function CMSFilterBroadcasterGated(Component){return createBroadcaster(Component,{enableGate:true,enableRegionFilter:true});}// Private library — NO region filter, results visible immediately\n// Use on: Distributor portals, authenticated libraries where all\n// documents should be accessible regardless of user location.\nexport function CMSFilterBroadcasterOpen(Component){return createBroadcaster(Component,{enableGate:false,enableRegionFilter:false});}// Private library — NO region filter, results hidden until Go\nexport function CMSFilterBroadcasterOpenGated(Component){return createBroadcaster(Component,{enableGate:true,enableRegionFilter:false});}// ─── GATE TOGGLE ────────────────────────────────────────────\n//\n// Called by the cms-filter-toggle-request event listener (above,\n// inside createBroadcaster's useEffect) when the new\n// CMSFilterToggleButton code component dispatches a tap.\n//\n// History: the previous Search/Reset variant-button + per-variant\n// override pair (CMSFilterGoButton / CMSFilterResetButton) was\n// removed 2026-05-28 after iOS Safari race issues — Framer's\n// \"switch on click\" interaction fired synchronously and swapped\n// the React tree before our wrapper's onClick dispatched, so the\n// destination variant's handler ran instead of the source's.\n// Replaced by CMSFilterToggleButton (separate file), which owns\n// both the click handler and the visual swap from a single source\n// of truth. See Methods/Technical Knowledge.md \"Framer build\" for\n// the durable pattern.\nfunction toggleGate(){if(window.cmsFilterGateOpen){resetFilters();closeGate();window.dispatchEvent(new CustomEvent(\"cms-filter-reset\"));window.dispatchEvent(new CustomEvent(\"cms-filter-unlock\"));}else{openGate();}}// ─── GATE CONTROL FUNCTIONS ─────────────────────────────────\nexport function openGate(){window.cmsFilterGateOpen=true;const items=window.allBroadcastItems;if(!items)return;console.log(\"[CMS Filter] Gate opened — showing filtered results\");// Notify counter to show\nwindow.dispatchEvent(new CustomEvent(\"cms-filter-gate-change\",{detail:{open:true}}));// Lock filters so they can't be changed while results are showing\nwindow.dispatchEvent(new CustomEvent(\"cms-filter-lock\"));items.forEach(child=>{// Never show region-hidden items\nif(child.getAttribute(\"data-region-hidden\")===\"true\"){child.style.display=\"none\";child.style.opacity=\"0\";return;}const filterAttrs=child.getAttributeNames().filter(name=>name.startsWith(\"data-filter-\")||name.startsWith(\"data-search-\"));let shouldShow=true;if(filterAttrs.length>0){shouldShow=filterAttrs.every(attr=>child.getAttribute(attr)===\"match\");}if(shouldShow){// Make visible but transparent, then fade in\nchild.style.opacity=\"0\";child.style.display=\"\";requestAnimationFrame(()=>{child.style.opacity=\"1\";});}else{child.style.display=\"none\";child.style.opacity=\"0\";}});// Trigger pagination refresh\nif(window.paginationConfig?.isEnabled&&window.updatePagination){window.updatePagination({isEnabled:true,itemsPerPage:window.paginationConfig.itemsPerPage,currentPage:1});if(window.forcePaginationUpdate){window.forcePaginationUpdate(1);}}}export function closeGate(){window.cmsFilterGateOpen=false;const items=window.allBroadcastItems;if(!items)return;// Notify counter to hide\nwindow.dispatchEvent(new CustomEvent(\"cms-filter-gate-change\",{detail:{open:false}}));// Fade out, then hide after transition\nitems.forEach(child=>{child.style.opacity=\"0\";setTimeout(()=>{if(window.cmsFilterGateOpen===false){child.style.display=\"none\";}},300)// matches transition duration\n;});}export function resetFilters(){const items=window.allBroadcastItems;if(!items)return;items.forEach(child=>{child.getAttributeNames().filter(name=>name.startsWith(\"data-filter-\")||name.startsWith(\"data-search-\")).forEach(attr=>child.removeAttribute(attr));// Never show region-hidden items\nif(child.getAttribute(\"data-region-hidden\")===\"true\"){child.style.display=\"none\";}else if(window.cmsFilterGateOpen){child.style.display=\"\";}else{child.style.display=\"none\";}});if(window.paginationConfig?.isEnabled&&window.updatePagination){window.updatePagination({isEnabled:true,itemsPerPage:window.paginationConfig.itemsPerPage,currentPage:1});if(window.forcePaginationUpdate){window.forcePaginationUpdate(1);}}}\nexport const __FramerMetadata__ = {\"exports\":{\"CMSFilterBroadcasterGated\":{\"type\":\"reactHoc\",\"name\":\"CMSFilterBroadcasterGated\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"CMSFilterBroadcasterOpen\":{\"type\":\"reactHoc\",\"name\":\"CMSFilterBroadcasterOpen\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"resetFilters\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"openGate\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"closeGate\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"CMSFilterBroadcaster\":{\"type\":\"reactHoc\",\"name\":\"CMSFilterBroadcaster\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"CMSFilterBroadcasterOpenGated\":{\"type\":\"reactHoc\",\"name\":\"CMSFilterBroadcasterOpenGated\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./CMS_Filter_Broadcaster.map","import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect,useState,useRef}from\"react\";import{addPropertyControls,ControlType,RenderTarget}from\"framer\";/**\n * @framerDisableUnlink\n *\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight any\n */// ============================================================\n// CMS Filter Counter 1.0\n// by Tiger Media (tigermedia.io)\n//\n// Framer Code Component — displays count of filtered items.\n//\n// What it does:\n//   1. Reads items from window.allBroadcastItems (region-filtered).\n//   2. Counts items matching ALL active data-filter-* attributes.\n//   3. Updates via MutationObserver + polling (200ms).\n//   4. Hidden when gate is closed, fades in when gate opens.\n//   5. Configurable prefix, suffix, and zero-state visibility.\n// ============================================================\nconst BROADCAST_ID=\"3.14px solid transparent\";export default function CMSFilterCounter(props){const[itemCount,setItemCount]=useState(0);const[gateOpen,setGateOpen]=useState(()=>typeof window!==\"undefined\"&&window.cmsFilterGateOpen===true);const observer=useRef(null);const isCanvas=RenderTarget.current()===RenderTarget.canvas;// ── Listen for gate open/close events ───────────────\nuseEffect(()=>{if(isCanvas)return;const handleGateChange=e=>{setGateOpen(e.detail?.open===true);};window.addEventListener(\"cms-filter-gate-change\",handleGateChange);// Also poll gate state (catches initial state + edge cases)\nconst gateInterval=setInterval(()=>{const currentGate=window.cmsFilterGateOpen===true;setGateOpen(prev=>{if(prev!==currentGate)return currentGate;return prev;});},200);return()=>{window.removeEventListener(\"cms-filter-gate-change\",handleGateChange);clearInterval(gateInterval);};},[isCanvas]);// ── Count items ─────────────────────────────────────\nuseEffect(()=>{if(isCanvas)return;checkCount();observer.current=new MutationObserver(()=>checkCount());const broadcasterElements=document.querySelectorAll(`[style*=\"3.14px\"]`);if(broadcasterElements.length>0){observer.current.observe(broadcasterElements[0],{childList:true,subtree:true,attributes:true,attributeFilter:[\"style\",\"data-filter-\",\"data-search-\"]});}const intervalId=setInterval(checkCount,200);return()=>{if(observer.current)observer.current.disconnect();clearInterval(intervalId);};},[isCanvas]);const checkCount=()=>{if(window.cmsFilterGateOpen===false){setItemCount(0);return;}const broadcasterElements=document.querySelectorAll(`[style*=\"3.14px\"]`);let children=window.allBroadcastItems;if(!children&&broadcasterElements.length>0){children=Array.from(broadcasterElements[0].children);}if(!children)return;const filteredCount=children.filter(child=>{if(child.getAttribute(\"data-region-hidden\")===\"true\")return false;const filterAttrs=child.getAttributeNames().filter(name=>name.startsWith(\"data-filter-\")||name.startsWith(\"data-search-\"));if(filterAttrs.length>0){return filterAttrs.every(attr=>child.getAttribute(attr)===\"match\");}return true;}).length;setItemCount(filteredCount);};// ── Canvas preview ──────────────────────────────────\nif(isCanvas){const exampleCount=123;const displayText=props.showPrefix?`${props.prefix}${exampleCount}${props.suffix}`:`${exampleCount}${props.suffix}`;return /*#__PURE__*/_jsx(\"div\",{style:{width:\"100%\",height:\"100%\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\",backgroundColor:props.background},children:/*#__PURE__*/_jsx(\"div\",{style:{...props.font,color:props.fontColor},children:displayText})});}// ── Zero state ──────────────────────────────────────\nif(itemCount===0&&!props.showIfZero){return null;}// ── Render ──────────────────────────────────────────\nconst displayText=props.showPrefix?`${props.prefix}${itemCount}${props.suffix}`:`${itemCount}${props.suffix}`;return /*#__PURE__*/_jsx(\"div\",{style:{width:\"100%\",height:\"100%\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\",backgroundColor:props.background,opacity:gateOpen?1:0,transition:\"opacity 0.3s ease\",pointerEvents:gateOpen?\"auto\":\"none\"},children:/*#__PURE__*/_jsx(\"div\",{style:{...props.font,color:props.fontColor},children:displayText})});}// ─── DEFAULT PROPS ──────────────────────────────────────────\nCMSFilterCounter.defaultProps={prefix:\"Items: \",suffix:\"\",showPrefix:true,showIfZero:true,fontColor:\"#000000\",background:\"transparent\"};// ─── PROPERTY CONTROLS ──────────────────────────────────────\naddPropertyControls(CMSFilterCounter,{prefix:{type:ControlType.String,title:\"Prefix\",defaultValue:\"Items: \",hidden(props){return!props.showPrefix;}},showPrefix:{type:ControlType.Boolean,title:\"Show Prefix\",defaultValue:true},suffix:{type:ControlType.String,title:\"Suffix\",defaultValue:\"\"},showIfZero:{type:ControlType.Boolean,title:\"Show If Zero\",defaultValue:true},fontColor:{type:ControlType.Color,title:\"Font Color\",defaultValue:\"#000000\"},background:{type:ControlType.Color,title:\"Background\",defaultValue:\"transparent\"},font:{type:ControlType.Font,controls:\"extended\",title:\"Font\",defaultValue:{fontSize:16,lineHeight:1.2,letterSpacing:0,textAlign:\"center\"},description:\"v1.0 \\n[via Tiger Media](https://www.tigermedia.io)\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"CMSFilterCounter\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./CMS_Filter_Counter.map","import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{useState,useRef,useEffect}from\"react\";import{addPropertyControls,ControlType}from\"framer\";import{motion}from\"framer-motion\";/**\n * @framerDisableUnlink\n *\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight any\n */// ============================================================\n// CMS Filter Dropdown 1.0\n// by Tiger Media (tigermedia.io)\n//\n// Framer Code Component — dropdown filter for CMS items.\n//\n// What it does:\n//   1. Reads items from window.allBroadcastItems (region-filtered).\n//   2. Extracts unique option values from a named text layer.\n//   3. Sets data-filter-* attributes on items when user selects.\n//   4. Does NOT open the gate — use CMSFilterToggleButton for that.\n//   5. If gate is already open, updates visibility immediately.\n//   6. Resets pagination to page 1 on filter change.\n// ============================================================\nconst BROADCAST_ID=\"3.14px solid transparent\";export default function CMSFilterDropdown(props){const[isOpen,setIsOpen]=useState(false);const[options,setOptions]=useState([]);const[selectedOption,setSelectedOption]=useState(\"\");const[isHovered,setIsHovered]=useState(false);const[isLocked,setIsLocked]=useState(false);const containerRef=useRef(null);const uniqueId=useRef(`cms-filter-dd-${Math.random().toString(36).substring(2,11)}`);// ── Fetch options from broadcaster items ────────────\nuseEffect(()=>{fetchOptions();const intervalId=setInterval(fetchOptions,1e3);return()=>clearInterval(intervalId);},[props.layerName]);// ── Apply filters when selection changes ────────────\nuseEffect(()=>{applyFilters();},[selectedOption]);// ── Click outside to close ──────────────────────────\nuseEffect(()=>{const handleClickOutside=event=>{if(containerRef.current&&!containerRef.current.contains(event.target)){setIsOpen(false);}};document.addEventListener(\"mousedown\",handleClickOutside);return()=>document.removeEventListener(\"mousedown\",handleClickOutside);},[]);// ── Listen for reset event (fired by Broadcaster's toggleGate) ──\nuseEffect(()=>{const handleReset=()=>{setSelectedOption(\"\");setIsOpen(false);};window.addEventListener(\"cms-filter-reset\",handleReset);return()=>window.removeEventListener(\"cms-filter-reset\",handleReset);},[]);// ── Listen for lock/unlock from Go/Reset buttons ─────\nuseEffect(()=>{const handleLock=()=>{setIsLocked(true);setIsOpen(false);};const handleUnlock=()=>setIsLocked(false);window.addEventListener(\"cms-filter-lock\",handleLock);window.addEventListener(\"cms-filter-unlock\",handleUnlock);return()=>{window.removeEventListener(\"cms-filter-lock\",handleLock);window.removeEventListener(\"cms-filter-unlock\",handleUnlock);};},[]);const getItems=()=>{// Prefer the global array (region-filtered by Broadcaster)\nif(window.allBroadcastItems&&window.allBroadcastItems.length>0){return window.allBroadcastItems;}// Fallback to DOM query\nconst broadcaster=document.querySelector(`[style*=\"3.14px\"]`);if(broadcaster){return Array.from(broadcaster.children);}return[];};const fetchOptions=()=>{const children=getItems();if(children.length===0)return;const optionValues=[];children.forEach(child=>{// Skip region-hidden items\nif(child.getAttribute(\"data-region-hidden\")===\"true\")return;const textLayers=child.querySelectorAll(`[data-framer-name=\"${props.layerName}\"]`);textLayers.forEach(layer=>{const textContent=layer.textContent||\"\";if(textContent){const values=textContent.split(\",\").map(v=>v.trim());values.forEach(value=>{if(value&&!optionValues.includes(value)){optionValues.push(value);}});}});});// Only update if options actually changed\nconst sorted=optionValues.sort();if(JSON.stringify(sorted)!==JSON.stringify(options)){setOptions(sorted);}};const applyFilters=()=>{const children=getItems();if(children.length===0)return;// Tag each item with this filter's match state\nchildren.forEach(child=>{if(child.getAttribute(\"data-region-hidden\")===\"true\")return;// \"All\" selected — everything matches this filter\nif(selectedOption===\"\"){child.setAttribute(`data-filter-${uniqueId.current}`,\"match\");return;}const textLayers=child.querySelectorAll(`[data-framer-name=\"${props.layerName}\"]`);if(textLayers.length>0){const allValues=[];textLayers.forEach(layer=>{const textContent=layer.textContent||\"\";const values=textContent.split(\",\").map(v=>v.trim());allValues.push(...values);});child.setAttribute(`data-filter-${uniqueId.current}`,allValues.includes(selectedOption)?\"match\":\"no-match\");}else{child.setAttribute(`data-filter-${uniqueId.current}`,\"no-match\");}});// Only update visibility if gate is open\n// (if gate is closed, the Go button will handle visibility)\nif(window.cmsFilterGateOpen===true){children.forEach(child=>{if(child.getAttribute(\"data-region-hidden\")===\"true\")return;const attrs=child.getAttributeNames().filter(name=>name.startsWith(\"data-filter-\")||name.startsWith(\"data-search-\"));const shouldShow=attrs.length===0||attrs.every(attr=>child.getAttribute(attr)===\"match\");child.style.display=shouldShow?\"\":\"none\";});// Reset pagination to page 1\nif(window.paginationConfig?.isEnabled&&window.updatePagination){window.updatePagination({isEnabled:true,itemsPerPage:window.paginationConfig.itemsPerPage,currentPage:1});if(window.forcePaginationUpdate){window.forcePaginationUpdate(1);}}}};const toggleDropdown=()=>{if(isLocked)return;setIsOpen(!isOpen);};const handleOptionClick=option=>{const newOption=option===\"All\"?\"\":option;setSelectedOption(newOption);setIsOpen(false);};const isActive=selectedOption!==\"\";const getDisplayTitle=()=>{return selectedOption===\"\"?props.layerName:selectedOption;};// ── Style helpers ───────────────────────────────────\nconst{selectorStyle,activeStyle,dropdownStyle,optionStyle,dropdownGap,iconStyle,transition}=props;const getCurrentBackground=()=>{if(isHovered){return isActive?activeStyle.hoverBackground:selectorStyle.hoverBackground;}return isActive?activeStyle.background:selectorStyle.background;};const getCurrentShadow=()=>{if(isHovered){return isActive?activeStyle.hoverShadow:selectorStyle.hoverShadow;}return isActive?activeStyle.shadow:selectorStyle.shadow;};// ── Render ──────────────────────────────────────────\nreturn /*#__PURE__*/_jsxs(\"div\",{ref:containerRef,style:{position:\"relative\",width:\"100%\",userSelect:\"none\"},children:[/*#__PURE__*/_jsxs(\"div\",{onClick:toggleDropdown,onMouseEnter:()=>setIsHovered(true),onMouseLeave:()=>setIsHovered(false),style:{padding:selectorStyle.padding,background:getCurrentBackground(),borderRadius:selectorStyle.borderRadius,cursor:isLocked?\"default\":\"pointer\",display:\"flex\",justifyContent:\"space-between\",alignItems:\"center\",boxShadow:getCurrentShadow(),border:isActive?`${activeStyle.border.borderWidth}px ${activeStyle.border.borderStyle} ${activeStyle.border.borderColor}`:`${selectorStyle.border.borderWidth}px ${selectorStyle.border.borderStyle} ${selectorStyle.border.borderColor}`,color:isActive?activeStyle.textColor:selectorStyle.textColor,...isActive?activeStyle.font:selectorStyle.font,overflow:\"visible\",transition:\"all 0.15s ease\",opacity:isLocked?.6:1,pointerEvents:isLocked?\"none\":\"auto\"},children:[/*#__PURE__*/_jsx(\"div\",{style:{marginRight:selectorStyle.iconGap,whiteSpace:\"nowrap\",overflow:\"visible\",textOverflow:\"ellipsis\",pointerEvents:\"none\"},children:getDisplayTitle()}),selectorStyle.showArrow&&/*#__PURE__*/_jsx(motion.div,{animate:{rotate:isOpen?180:0},transition:transition,style:{display:\"flex\",alignItems:\"center\",flexShrink:0,pointerEvents:\"none\"},children:/*#__PURE__*/_jsx(\"svg\",{width:iconStyle.size,height:iconStyle.size,viewBox:\"0 0 12 8\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",style:{display:\"block\"},children:/*#__PURE__*/_jsx(\"path\",{d:\"M1 1.5L6 6.5L11 1.5\",stroke:isActive?activeStyle.iconColor:iconStyle.color,strokeWidth:iconStyle.strokeWidth,strokeLinecap:\"round\",strokeLinejoin:\"round\"})})})]}),isOpen&&/*#__PURE__*/_jsxs(motion.div,{initial:{opacity:0,y:-10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:transition,style:{position:\"absolute\",top:`calc(100% + ${dropdownGap}px)`,left:0,minWidth:dropdownStyle.minWidth||\"100%\",maxHeight:dropdownStyle.maxHeight||\"none\",zIndex:1e3,background:dropdownStyle.background,borderRadius:dropdownStyle.borderRadius,boxShadow:dropdownStyle.shadow,overflow:\"auto\",border:`${dropdownStyle.border.borderWidth}px ${dropdownStyle.border.borderStyle} ${dropdownStyle.border.borderColor}`,padding:dropdownStyle.padding,display:\"flex\",flexDirection:\"column\",gap:dropdownStyle.itemGap},children:[/*#__PURE__*/_jsx(motion.div,{onClick:()=>handleOptionClick(\"All\"),style:{padding:optionStyle.padding,cursor:\"pointer\",background:selectedOption===\"\"?optionStyle.activeBackground:optionStyle.background,color:selectedOption===\"\"?optionStyle.activeColor:optionStyle.color,...optionStyle.font,whiteSpace:\"nowrap\",borderRadius:optionStyle.borderRadius,overflow:\"visible\"},whileHover:{backgroundColor:optionStyle.hoverBackground},transition:transition,children:\"All\"}),options.map((option,index)=>{const isSelected=option===selectedOption;return /*#__PURE__*/_jsx(motion.div,{onClick:()=>handleOptionClick(option),style:{padding:optionStyle.padding,cursor:\"pointer\",background:isSelected?optionStyle.activeBackground:optionStyle.background,color:isSelected?optionStyle.activeColor:optionStyle.color,...optionStyle.font,whiteSpace:\"nowrap\",borderRadius:optionStyle.borderRadius,overflow:\"visible\"},whileHover:{backgroundColor:optionStyle.hoverBackground},transition:transition,children:option},index);})]})]});}// ─── DEFAULT PROPS ──────────────────────────────────────────\nCMSFilterDropdown.defaultProps={layerName:\"Title\",dropdownGap:8,transition:{type:\"spring\",stiffness:300,damping:30},iconStyle:{size:12,color:\"#333333\",strokeWidth:2},selectorStyle:{showArrow:true,textColor:\"#333333\",background:\"#FFFFFF\",hoverBackground:\"#F5F5F5\",shadow:\"0px 1px 2px 0px rgba(0,0,0,0.05)\",hoverShadow:\"0px 2px 4px 0px rgba(0,0,0,0.1)\",padding:\"12px 16px\",borderRadius:\"8px\",iconGap:8,border:{borderWidth:1,borderStyle:\"solid\",borderColor:\"#E0E0E0\"},font:{family:\"Inter\",fontSize:14,fontWeight:500}},activeStyle:{textColor:\"#594FEE\",iconColor:\"#594FEE\",background:\"#EEEDFD\",hoverBackground:\"#E5E2FF\",shadow:\"0px 1px 2px 0px rgba(0,0,0,0.05)\",hoverShadow:\"0px 2px 4px 0px rgba(0,0,0,0.1)\",border:{borderWidth:1,borderStyle:\"solid\",borderColor:\"#594FEE\"},font:{family:\"Inter\",fontSize:14,fontWeight:500}},dropdownStyle:{background:\"#FFFFFF\",shadow:\"0px 4px 12px 0px rgba(0,0,0,0.1)\",borderRadius:\"8px\",padding:\"4px\",itemGap:2,minWidth:\"100%\",maxHeight:\"300px\",border:{borderWidth:1,borderStyle:\"solid\",borderColor:\"#E0E0E0\"}},optionStyle:{background:\"#FFFFFF\",hoverBackground:\"#F5F5F5\",activeBackground:\"#F0F0F0\",color:\"#333333\",activeColor:\"#000000\",padding:\"10px 16px\",borderRadius:\"4px\",font:{family:\"Inter\",fontSize:14,fontWeight:400}}};// ─── PROPERTY CONTROLS ──────────────────────────────────────\naddPropertyControls(CMSFilterDropdown,{layerName:{type:ControlType.String,title:\"Layer Name\",defaultValue:\"Title\"},dropdownGap:{type:ControlType.Number,title:\"Dropdown Gap\",defaultValue:8,min:0,max:50,step:1},transition:{type:ControlType.Transition,title:\"Transition\",defaultValue:{type:\"spring\",stiffness:300,damping:30}},iconStyle:{type:ControlType.Object,title:\"Icon Style\",controls:{size:{type:ControlType.Number,title:\"Size\",defaultValue:12,min:6,max:24,step:1},color:{type:ControlType.Color,title:\"Color\",defaultValue:\"#333333\"},strokeWidth:{type:ControlType.Number,title:\"Stroke Width\",defaultValue:2,min:1,max:4,step:.5}}},selectorStyle:{type:ControlType.Object,title:\"Default Style\",controls:{showArrow:{type:ControlType.Boolean,title:\"Show Arrow\",defaultValue:true},iconGap:{type:ControlType.Number,title:\"Icon Gap\",defaultValue:8,min:0,max:50,step:1},textColor:{type:ControlType.Color,title:\"Text Color\",defaultValue:\"#333333\"},font:{type:ControlType.Font,title:\"Font\",controls:\"extended\"},padding:{type:ControlType.Padding,title:\"Padding\",defaultValue:\"12px 16px\"},background:{type:ControlType.Color,title:\"Background\",defaultValue:\"#FFFFFF\"},hoverBackground:{type:ControlType.Color,title:\"Hover BG\",defaultValue:\"#F5F5F5\"},borderRadius:{type:ControlType.BorderRadius,title:\"Border Radius\",defaultValue:\"8px\"},shadow:{type:ControlType.BoxShadow,title:\"Shadow\",defaultValue:\"0px 1px 2px 0px rgba(0,0,0,0.05)\"},hoverShadow:{type:ControlType.BoxShadow,title:\"Hover Shadow\",defaultValue:\"0px 2px 4px 0px rgba(0,0,0,0.1)\"},border:{type:ControlType.Border,title:\"Border\",defaultValue:{borderWidth:1,borderStyle:\"solid\",borderColor:\"#E0E0E0\"}}}},activeStyle:{type:ControlType.Object,title:\"Active Style\",controls:{textColor:{type:ControlType.Color,title:\"Text Color\",defaultValue:\"#594FEE\"},iconColor:{type:ControlType.Color,title:\"Icon Color\",defaultValue:\"#594FEE\"},font:{type:ControlType.Font,title:\"Font\",controls:\"extended\"},background:{type:ControlType.Color,title:\"Background\",defaultValue:\"#EEEDFD\"},hoverBackground:{type:ControlType.Color,title:\"Hover BG\",defaultValue:\"#E5E2FF\"},shadow:{type:ControlType.BoxShadow,title:\"Shadow\",defaultValue:\"0px 1px 2px 0px rgba(0,0,0,0.05)\"},hoverShadow:{type:ControlType.BoxShadow,title:\"Hover Shadow\",defaultValue:\"0px 2px 4px 0px rgba(0,0,0,0.1)\"},border:{type:ControlType.Border,title:\"Border\",defaultValue:{borderWidth:1,borderStyle:\"solid\",borderColor:\"#594FEE\"}}}},dropdownStyle:{type:ControlType.Object,title:\"Dropdown Style\",controls:{background:{type:ControlType.Color,title:\"Background\",defaultValue:\"#FFFFFF\"},borderRadius:{type:ControlType.BorderRadius,title:\"Border Radius\",defaultValue:\"8px\"},padding:{type:ControlType.Padding,title:\"Padding\",defaultValue:\"4px\"},itemGap:{type:ControlType.Number,title:\"Item Gap\",defaultValue:2,min:0,max:20,step:1},minWidth:{type:ControlType.String,title:\"Min Width\",defaultValue:\"100%\"},maxHeight:{type:ControlType.String,title:\"Max Height\",defaultValue:\"300px\"},shadow:{type:ControlType.BoxShadow,title:\"Shadow\",defaultValue:\"0px 4px 12px 0px rgba(0,0,0,0.1)\"},border:{type:ControlType.Border,title:\"Border\",defaultValue:{borderWidth:1,borderStyle:\"solid\",borderColor:\"#E0E0E0\"}}}},optionStyle:{type:ControlType.Object,title:\"Option Style\",controls:{font:{type:ControlType.Font,title:\"Font\",controls:\"extended\"},padding:{type:ControlType.Padding,title:\"Padding\",defaultValue:\"10px 16px\"},borderRadius:{type:ControlType.BorderRadius,title:\"Border Radius\",defaultValue:\"4px\"},background:{type:ControlType.Color,title:\"Background\",defaultValue:\"#FFFFFF\"},hoverBackground:{type:ControlType.Color,title:\"Hover BG\",defaultValue:\"#F5F5F5\"},activeBackground:{type:ControlType.Color,title:\"Active BG\",defaultValue:\"#F0F0F0\"},color:{type:ControlType.Color,title:\"Text Color\",defaultValue:\"#333333\"},activeColor:{type:ControlType.Color,title:\"Active Color\",defaultValue:\"#000000\"}},description:\"v1.0 \\n[via Tiger Media](https://www.tigermedia.io)\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"CMSFilterDropdown\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./CMS_Filter_Dropdown.map","import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{useEffect,useState,useRef}from\"react\";import{addPropertyControls,ControlType}from\"framer\";/**\n * @framerDisableUnlink\n *\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight any\n */// ============================================================\n// CMS Filter Search 1.0\n// by Tiger Media (tigermedia.io)\n//\n// Framer Code Component — text search across CMS items.\n//\n// What it does:\n//   1. Reads items from window.allBroadcastItems (region-filtered).\n//   2. Searches text content of each item.\n//   3. Sets data-filter-* attributes (unified with dropdowns).\n//   4. Debounced input (150ms) for performance.\n//   5. Does NOT open the gate — use CMSFilterToggleButton for that.\n//   6. If gate is already open, updates visibility immediately.\n//   7. Resets pagination to page 1 on search.\n// ============================================================\nconst BROADCAST_ID=\"3.14px solid transparent\";export default function CMSFilterSearch(props){const[searchQuery,setSearchQuery]=useState(\"\");const[debouncedQuery,setDebouncedQuery]=useState(\"\");const[isLocked,setIsLocked]=useState(false);const uniqueId=useRef(`cms-filter-search-${Math.random().toString(36).substring(2,11)}`);// ── Debounce ────────────────────────────────────────\nuseEffect(()=>{const timer=setTimeout(()=>{setDebouncedQuery(searchQuery);},150);return()=>clearTimeout(timer);},[searchQuery]);// ── Apply filter when debounced query changes ───────\nuseEffect(()=>{filterItems(debouncedQuery,true);const intervalId=setInterval(()=>filterItems(debouncedQuery,false),1e3);return()=>clearInterval(intervalId);},[debouncedQuery]);// ── Listen for reset event (fired by Broadcaster's toggleGate) ──\nuseEffect(()=>{const handleReset=()=>{setSearchQuery(\"\");setDebouncedQuery(\"\");};window.addEventListener(\"cms-filter-reset\",handleReset);return()=>window.removeEventListener(\"cms-filter-reset\",handleReset);},[]);// ── Listen for lock/unlock from Go/Reset buttons ─────\nuseEffect(()=>{const handleLock=()=>setIsLocked(true);const handleUnlock=()=>setIsLocked(false);window.addEventListener(\"cms-filter-lock\",handleLock);window.addEventListener(\"cms-filter-unlock\",handleUnlock);return()=>{window.removeEventListener(\"cms-filter-lock\",handleLock);window.removeEventListener(\"cms-filter-unlock\",handleUnlock);};},[]);const getItems=()=>{if(window.allBroadcastItems&&window.allBroadcastItems.length>0){return window.allBroadcastItems;}const broadcaster=document.querySelector(`[style*=\"3.14px\"]`);if(broadcaster){return Array.from(broadcaster.children);}return[];};const triggerPaginationRefresh=()=>{if(window.paginationConfig?.isEnabled&&window.updatePagination){window.updatePagination({itemsPerPage:window.paginationConfig.itemsPerPage,currentPage:1,isEnabled:true});if(window.forcePaginationUpdate){window.forcePaginationUpdate(1);}}};const filterItems=(query,shouldTriggerPagination=false)=>{const children=getItems();if(children.length===0)return;// Tag each item with search match state\nchildren.forEach(child=>{if(child.getAttribute(\"data-region-hidden\")===\"true\")return;const textContent=child.textContent||child.innerText||\"\";const matchesSearch=!query.trim()||textContent.toLowerCase().includes(query.toLowerCase());child.setAttribute(`data-filter-${uniqueId.current}`,matchesSearch?\"match\":\"no-match\");});// Only update visibility if gate is open\nif(window.cmsFilterGateOpen===true){children.forEach(child=>{if(child.getAttribute(\"data-region-hidden\")===\"true\")return;const attrs=child.getAttributeNames().filter(name=>name.startsWith(\"data-filter-\")||name.startsWith(\"data-search-\"));const shouldShow=attrs.length===0||attrs.every(attr=>child.getAttribute(attr)===\"match\");child.style.display=shouldShow?\"\":\"none\";});if(shouldTriggerPagination){setTimeout(()=>triggerPaginationRefresh(),10);}}};const handleSearchChange=e=>{setSearchQuery(e.target.value);};// ── Placeholder colour injection ────────────────────\nuseEffect(()=>{const styleEl=document.createElement(\"style\");styleEl.innerHTML=`\n            #${uniqueId.current}::placeholder {\n                color: ${props.placeholderColor};\n            }\n        `;document.head.appendChild(styleEl);return()=>document.head.removeChild(styleEl);},[props.placeholderColor]);// ── Render ──────────────────────────────────────────\nreturn /*#__PURE__*/_jsxs(\"div\",{style:{position:\"relative\",width:\"100%\",height:\"100%\"},children:[/*#__PURE__*/_jsx(\"input\",{id:uniqueId.current,type:\"text\",value:searchQuery,onChange:handleSearchChange,disabled:isLocked,placeholder:props.placeholder,style:{width:\"100%\",height:\"100%\",padding:props.inputPadding,paddingLeft:props.showSearchIcon?\"36px\":props.inputPadding,border:`${props.border.borderWidth}px ${props.border.borderStyle} ${props.border.borderColor}`,borderRadius:props.borderRadius,...props.font,color:props.fontColor,backgroundColor:props.inputBackground,outline:\"none\",boxSizing:\"border-box\",opacity:isLocked?.6:1,cursor:isLocked?\"default\":\"text\",transition:\"opacity 0.15s ease\"}}),props.showSearchIcon&&/*#__PURE__*/_jsx(\"div\",{style:{position:\"absolute\",left:\"10px\",top:\"50%\",transform:\"translateY(-50%)\",pointerEvents:\"none\"},children:/*#__PURE__*/_jsx(\"svg\",{width:\"16\",height:\"16\",viewBox:\"0 0 24 24\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",children:/*#__PURE__*/_jsx(\"path\",{d:\"M21 21L15 15M17 10C17 13.866 13.866 17 10 17C6.13401 17 3 13.866 3 10C3 6.13401 6.13401 3 10 3C13.866 3 17 6.13401 17 10Z\",stroke:props.iconColor,strokeWidth:\"2\",strokeLinecap:\"round\",strokeLinejoin:\"round\"})})})]});}// ─── DEFAULT PROPS ──────────────────────────────────────────\nCMSFilterSearch.defaultProps={placeholder:\"Search...\",placeholderColor:\"#888888\",showSearchIcon:true,iconColor:\"#888888\",fontColor:\"#000000\",inputBackground:\"white\",inputPadding:\"10px\",borderRadius:\"8px\",border:{borderWidth:1,borderStyle:\"solid\",borderColor:\"#dddddd\"},font:{family:\"Inter\",fontSize:14,fontWeight:400,lineHeight:1.5,letterSpacing:0,textAlign:\"left\"}};// ─── PROPERTY CONTROLS ──────────────────────────────────────\naddPropertyControls(CMSFilterSearch,{placeholder:{type:ControlType.String,title:\"Placeholder\",defaultValue:\"Search...\"},placeholderColor:{type:ControlType.Color,title:\"Placeholder Color\",defaultValue:\"#888888\"},showSearchIcon:{type:ControlType.Boolean,title:\"Show Icon\",defaultValue:true},iconColor:{type:ControlType.Color,title:\"Icon Color\",defaultValue:\"#888888\",hidden(props){return!props.showSearchIcon;}},fontColor:{type:ControlType.Color,title:\"Font Color\",defaultValue:\"#000000\"},inputBackground:{type:ControlType.Color,title:\"Input Background\",defaultValue:\"white\"},inputPadding:{type:ControlType.Padding,title:\"Input Padding\",defaultValue:\"10px\"},border:{type:ControlType.Border,title:\"Border\",defaultValue:{borderWidth:1,borderStyle:\"solid\",borderColor:\"#dddddd\"}},borderRadius:{type:ControlType.BorderRadius,title:\"Border Radius\",defaultValue:\"8px\"},font:{type:ControlType.Font,controls:\"extended\",title:\"Font\",defaultValue:{family:\"Inter\",fontSize:14,fontWeight:400,lineHeight:1.5,letterSpacing:0,textAlign:\"left\"},description:\"v1.0 \\n[via Tiger Media](https://www.tigermedia.io)\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"CMSFilterSearch\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./CMS_Filter_Search.map"],"mappings":"A,6QA0CuB,SAASyB,GAAc,CAA2e,MAA1e,CAAmBC,KAAe,SAAS,CAAC,GAAG,CAAiH,IAAMC,GAAY,MAAlC,MAA3E,MAAM,gCAAgC,CAAC,MAAM,UAAU,CAAC,EAAA,CAA4B,KAAK,EAAA,CAAyB,MAAM;CAAI,CAAC,CAAC,KAAK,GAAMC,EAAK,WAAW,MAAM,CAAC,CAAC,EAAE,MAAM,GAAG,CAAC,CAAC,EAAE,EAAE,KAAK,GAAG,GAAwD,MAAM,CAAC,OAA/CC,EAAWF,IAAcG,EAA6B,aAAW,CAAE,MAAa,CAAqF,OAApF,QAAQ,KAAK,uDAAuDA,CAAc,EAAQ,CAAC,OAAOA,EAAe,YAAY,IAAI,CAAE,CAAC,EAAA,CAAG,EAAUJ,CAAc,CAOvhB,SAASK,GAAkB,CAAkK,MAAjK,CAAmBC,KAAe,SAAS,CAAC,GAAG,CAAC,IAAMC,EAAExB,EAA4C,OAAlCwB,EAAE,aAAY,MAAMA,EAAE,YAAmBA,EAAE,oBAAoB,EAAK,MAAM,CAAC,MAAO,EAAM,CAAC,EAAA,CAAG,EAAUD,CAAc,CAKzO,SAASE,GAAwB,CAAC,IAAMC,EAAY,SAAS,cAAc,mBAAmB,EAA8B,OAAxBA,EAA+B,MAAM,KAAKA,EAAY,QAAQ,EAA3C,IAA6C,CAAC,SAASC,EAAkB,EAAU,EAAQ,CAAC,MAAO,IAAO,CAAC,IAAMC,EAAerC,EAAO,EAAK,EAAEiB,MAAc,CAAC,GAAGoB,EAAe,QAAQ,OAAO,EAAe,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