{"version":3,"file":"iVSP3IDI7.DOCR61lX.mjs","names":["useState","getCmsQueryFromSlot","isCanvas","useRef","useMemo","getCmsQueryFromSlot","collection","props","_Fragment","useState","useMemo","_Fragment","useMemo","useState","useRef","_Fragment"],"sources":["https:/framerusercontent.com/modules/vj7bFUjvEQFgEzNBkdoG/vf3CKm378wlVcBk7IhSU/createStore.js","https:/framer.com/m/framer/store.js@^1.0","https:/framerusercontent.com/modules/2VZikWBxCagm4nJReNjX/uFUqD0e9fJ1WAIOOmgia/store_management.js","https:/framerusercontent.com/modules/jM8jD1GlrCxD96rrTGLC/4bEIFe2BsBAYVYzZCpsc/query_builders.js","https:/framerusercontent.com/modules/0ZtPI0zMKW1Pn08h8oa0/2vnwqGgQ3vjW4mR9YNCk/variant_utils.js","https:/framerusercontent.com/modules/Bd2ZGjxd3wA16PORsZcM/xywNBkllbjazCcWq1vQQ/masonry_utils.js","https:/framerusercontent.com/modules/4kubTvEfQH0kypVlANcr/XJcWtxajPv3CPzwRWN2c/CMSCollection.js","https:/framerusercontent.com/modules/ACiSfH9XmEeGQw9FrwJm/sonBlYtuqlTIWRiEwECO/CMSSearch.js","https:/framerusercontent.com/modules/oJpokelzf8Rtm8Ic1qoX/5ZvTfXHebsCLcLbbykn0/CMSSort.js","https:/framerusercontent.com/modules/f3KTxy3nafdfIOeX4c2l/cjdC1S8uUOtRu0wKf3KF/iVSP3IDI7.js"],"sourcesContent":["import{useState,useEffect}from\"react\";import{Data,useObserveData}from\"framer\";export function createStore(state1){// Use Data so that a Preview reload resets the state\nconst dataStore=Data({state:Object.freeze({...state1})});// Create a set function that updates the state\nconst setDataStore=newState=>{// If the state is an object, make sure we copy it\nif(typeof newState===\"function\"){newState=newState(dataStore.state);}dataStore.state=Object.freeze({...dataStore.state,...newState});};// Store the initial state, copy the object if it's an object\nlet storeState=typeof state1===\"object\"?Object.freeze({...state1}):state1;// Keep a list of all the listeners, in the form of React hook setters\nconst storeSetters=new Set();// Create a set function that updates all the listeners / setters\nconst setStoreState=newState=>{// If the state is an object, make sure we copy it\nif(typeof newState===\"function\"){newState=newState(storeState);}storeState=typeof newState===\"object\"?Object.freeze({...storeState,...newState}):newState;// Update all the listeners / setters with the new value\nstoreSetters.forEach(setter=>setter(storeState));};// Create the actual hook based on everything above\nfunction useStore(){// Create the hook we are going to use as a listener\nconst[state,setState]=useState(storeState);// If we unmount the component using this hook, we need to remove the listener\n// @ts-ignore\nuseEffect(()=>{// But right now, we need to add the listener\nstoreSetters.add(setState);return()=>storeSetters.delete(setState);},[]);// If Data context exists, use Data, otherwise use vanilla React state\nif(useObserveData()===true){useObserveData();return[dataStore.state,setDataStore];}else{// Return the state and a function to update the central store\nreturn[state,setStoreState];}}return useStore;}\nexport const __FramerMetadata__ = {\"exports\":{\"createStore\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./createStore.map","/*\n * createStore (framer/store@1.0.1)\n *\n * Learn More: https://www.framer.com/asset-urls\n */\n\nexport * from \"https://framerusercontent.com/modules/vj7bFUjvEQFgEzNBkdoG/vf3CKm378wlVcBk7IhSU/createStore.js\"\n","// Store management utilities for CMS Collection\n// Extracted from CMSCollection.tsx for better modularity\nimport{RenderTarget}from\"framer\";// Store management utilities for CMS Collection\n// Extracted from CMSCollection.tsx for better modularity\nimport{createStore}from\"https://framer.com/m/framer/store.js@^1.0\";// Global store initialization tracker\nexport const globalInitStore=createStore({storeInitialized:[]});// Global stores per collection ID\nconst stores=new Map;// Helper to get or create store for collection\nexport const getCollectionStore=collectionId=>{if(!stores.has(collectionId)){const newStore=createStore({searchTerm:\"\",searchFields:[],filters:[],debug:true,count:0});stores.set(collectionId,newStore);// Mark this collection as initialized\nconst[initState,setInitState]=globalInitStore();if(!initState.storeInitialized.includes(collectionId)){setInitState({storeInitialized:[...initState.storeInitialized,collectionId]});}}return stores.get(collectionId);};// Internal helper to safely extract the CMS query from a collection slot\n// Supports both standard and Masonry CMS Collection structures.\nconst getCmsQueryFromCollectionSlot=slot=>{const element=Array.isArray(slot)?slot[0]:slot;if(!element)return null;// Masonry-enabled structure: children.props.query\nconst masonryQuery=element?.props?.children?.props?.query;if(masonryQuery)return masonryQuery;// Standard structure: children.props.children.props.query\nconst regularQuery=element?.props?.children?.props?.children?.props?.query;return regularQuery||null;};// Exported helper so other components can safely read the CMS query\nexport const getCmsQueryFromSlot=slot=>{return getCmsQueryFromCollectionSlot(slot);};// Helper to get store key for collection - prioritizes actual CMS collection name\nexport const getCollectionStoreKey=(collection,manualStoreKey)=>{// If manual store key is provided and not \"auto\", use it\nif(manualStoreKey&&manualStoreKey.trim()!==\"\"&&manualStoreKey!==\"auto\"){return manualStoreKey.trim();}const cmsQuery=getCmsQueryFromCollectionSlot(collection);if(!cmsQuery)return null;// Helper to traverse nested .left structures to find the deepest node\n// Each reference field adds another .left level:\n// 1 ref field: .left\n// 2 ref fields: .left.left\n// 3 ref fields: .left.left.left\n// ... and so on\nconst getDeepestLeft=node=>{if(!node)return null;let current=node;while(current?.left){current=current.left;}return current;};// Handle TWO query structures:\n// 1. WITHOUT reference fields: query.from.data and query.from.alias\n// 2. WITH reference fields: traverse nested .left levels to find data and alias\n//    (Framer adds a LEFT JOIN constraint for each reference field)\nlet alias=null;let data=null;if(cmsQuery.from?.constraint){// WITH reference fields - traverse to deepest level\nconst deepestFrom=getDeepestLeft(cmsQuery.from);// Both data and alias are on the same deepest node in the from chain\nalias=deepestFrom?.alias||deepestFrom?.collection;data=deepestFrom?.data;}else{// WITHOUT reference fields - standard path\nalias=cmsQuery.from?.alias;data=cmsQuery.from?.data;}// Priority order for store key:\n// 1. CMS collection name/title from data\n// 2. Collection display name\n// 3. Alias as fallback\nconst storeKey=data?.name||data?.title||data?.displayName||alias;return storeKey||null;};// Helper to extract collection info from slot connection\nexport const getCollectionInfo=collection=>{const cmsQuery=getCmsQueryFromCollectionSlot(collection);if(!cmsQuery)return null;// Helper to traverse nested .left structures to find the deepest node\nconst getDeepestLeft=node=>{if(!node)return null;let current=node;while(current?.left){current=current.left;}return current;};// Handle TWO query structures (same as getCollectionStoreKey):\n// 1. WITHOUT reference fields: query.from.data and query.from.alias\n// 2. WITH reference fields: traverse nested .left levels to find data and alias\nlet alias=null;let data=null;if(cmsQuery.from?.constraint){// WITH reference fields - traverse to deepest level\nconst deepestFrom=getDeepestLeft(cmsQuery.from);// Both data and alias are on the same deepest node in the from chain\nalias=deepestFrom?.alias||deepestFrom?.collection;data=deepestFrom?.data;}else{// WITHOUT reference fields\nalias=cmsQuery.from?.alias;data=cmsQuery.from?.data;}return{collectionId:alias||\"\",collectionName:data?.displayName||\"\",query:cmsQuery,propertyControls:data?.propertyControls||{}};};// Helper to get available fields from CMS with their types\nexport const getAvailableFilterFields=propertyControls=>{if(!propertyControls||typeof propertyControls!==\"object\"){return[];}return Object.entries(propertyControls).map(([key,control])=>({key,title:control.title||key,type:control.type||\"string\",options:control.options,optionTitles:control.optionTitles})).filter(field=>field.title&&field.type);};// Utility function to generate random strings\nexport function evGetRandomString(length=8){const chars=\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789\";let result=\"\";for(let i=0;i<length;i++){result+=chars.charAt(Math.floor(Math.random()*chars.length));}return result;}export const isPreview=RenderTarget.current()===RenderTarget.preview;export const isCanvas=RenderTarget.current()===RenderTarget.canvas;\nexport const __FramerMetadata__ = {\"exports\":{\"isPreview\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"isCanvas\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"getCollectionStore\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"getCollectionInfo\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"getCollectionStoreKey\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"evGetRandomString\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"getAvailableFilterFields\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"FilterStore\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"globalInitStore\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"getCmsQueryFromSlot\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./store_management.map","// Query building utilities for CMS Collection\n// Extracted from CMSCollection.tsx for better modularity\n// Query building types\n// Helper to check if filter has valid value based on type\nexport const hasValidFilterValue=filter=>{const{value,operator}=filter;// Operators that don't need values\nif(operator===\"is_set\"||operator===\"is_not_set\"){return true;}// Handle different value types\nif(value===null||value===undefined){return false;}// For numeric comparison operators, validate that value can be converted to number\nconst numericOps=[\"greater_than\",\"less_than\",\"greater_than_or_equal\",\"less_than_or_equal\"];if(numericOps.includes(operator)){if(typeof value===\"number\")return!isNaN(value);if(typeof value===\"string\")return!isNaN(parseFloat(value));return false;}// For range filters, check both min and max\nif(operator===\"between\"&&typeof value===\"object\"){return value.min!==undefined&&!isNaN(value.min)||value.max!==undefined&&!isNaN(value.max);}// For arrays (multi-select), check length\nif(Array.isArray(value)){return value.length>0;}// For strings, check if not empty\nif(typeof value===\"string\"){return value.trim()!==\"\";}// For booleans and numbers, always valid\nreturn true;};// Helper to build search where clause - SIMPLIFIED: Always OR across fields\nexport const buildSearchWhereClause=(searchTerm,searchFields,collectionId,propertyControls)=>{if(!searchTerm||!searchTerm.trim()||searchFields.length===0){return null;}// Convert field titles to internal keys\nconst searchFieldKeys=searchFields.map(title=>{const field=Object.entries(propertyControls).find(([key,control])=>control.title?.toLowerCase()===title.toLowerCase());return field?field[0]:title;}).filter(Boolean);if(searchFieldKeys.length===0)return null;// Build search conditions - ALWAYS OR\nconst conditions=searchFieldKeys.map(fieldKey=>({arguments:[{collection:collectionId,name:fieldKey,type:\"Identifier\"},{type:\"LiteralValue\",value:searchTerm}],functionName:\"CONTAINS\",type:\"FunctionCall\"}));// Single condition\nif(conditions.length===1){return conditions[0];}// Multiple conditions with OR logic (simplified)\nlet whereClause={left:conditions[0],operator:\"or\",right:conditions[1],type:\"BinaryOperation\"};// Add remaining conditions with OR\nfor(let i=2;i<conditions.length;i++){whereClause={left:whereClause,operator:\"or\",right:conditions[i],type:\"BinaryOperation\"};}return whereClause;};// ============================================================================\n// MULTI-REFERENCE FILTER SUPPORT (FLAT_ARRAY Pattern)\n// ============================================================================\n/**\n * Builds a FLAT_ARRAY condition for multi-reference filtering\n * Pattern: tagId IN FLAT_ARRAY(SELECT id FROM Tags WHERE id IN Template.tags)\n */function buildFlatArrayCondition(mainAlias,refFieldName,refCollectionAlias,refCollectionData,tagId){return{type:\"BinaryOperation\",left:{type:\"LiteralValue\",value:tagId},operator:\"in\",right:{type:\"FunctionCall\",functionName:\"FLAT_ARRAY\",arguments:[{type:\"Select\",from:{alias:refCollectionAlias,data:refCollectionData,type:\"Collection\"},select:[{collection:refCollectionAlias,name:\"id\",type:\"Identifier\"}],where:{type:\"BinaryOperation\",left:{collection:refCollectionAlias,name:\"id\",type:\"Identifier\"},operator:\"in\",right:{collection:mainAlias,name:refFieldName,type:\"Identifier\"}},orderBy:[{type:\"FunctionCall\",functionName:\"INDEX_OF\",arguments:[{collection:mainAlias,name:refFieldName,type:\"Identifier\"},{collection:refCollectionAlias,name:\"id\",type:\"Identifier\"}]}]}]}};}/**\n * Builds multi-reference query from filter rule\n */function buildMultiReferenceQueryFromFilter(filter,mainAlias,refFieldName,refCollectionAlias,refCollectionData){const values=Array.isArray(filter.value)?filter.value:[filter.value];if(values.length===0)return null;// Build FLAT_ARRAY pattern for first tag\nlet query=buildFlatArrayCondition(mainAlias,refFieldName,refCollectionAlias,refCollectionData,values[0]);// Combine additional tags with AND or OR\nfor(let i=1;i<values.length;i++){query={type:\"BinaryOperation\",left:query,operator:filter.logic===\"All\"?\"and\":\"or\",right:buildFlatArrayCondition(mainAlias,refFieldName,refCollectionAlias,refCollectionData,values[i])};}return query;}// Helper to build filter where clause for a single filter\nexport const buildFilterWhereClause=(filter,collectionId,propertyControls)=>{if(!hasValidFilterValue(filter)){return null;}// Handle multi-reference filters (FLAT_ARRAY pattern)\n// Multi-reference filter - uses FLAT_ARRAY pattern with improved query structure\nif(filter.type===\"multi-ref\"){const refFieldKey=filter.refFieldName||filter.field;const refCollectionAlias=filter.refCollectionId// This now contains the actual alias\n;if(!refCollectionAlias||!filter.refCollectionData){console.error(\"Multi-reference filter missing refCollectionId or refCollectionData:\",filter);return null;}return buildMultiReferenceQueryFromFilter(filter,collectionId,refFieldKey,refCollectionAlias,filter.refCollectionData// Pass the stored collection data\n);}// Convert field title to internal key\nconst fieldKey=Object.entries(propertyControls).find(([key,control])=>control.title?.toLowerCase()===filter.field.toLowerCase())?.[0]||filter.field;const{operator,value}=filter;// Handle is_set and is_not_set operators\nif(operator===\"is_set\"){return{left:{left:{collection:collectionId,name:fieldKey,type:\"Identifier\"},operator:\"!=\",right:{type:\"LiteralValue\",value:null},type:\"BinaryOperation\"},operator:\"and\",right:{left:{collection:collectionId,name:fieldKey,type:\"Identifier\"},operator:\"!=\",right:{type:\"LiteralValue\",value:\"\"},type:\"BinaryOperation\"},type:\"BinaryOperation\"};}if(operator===\"is_not_set\"){return{operator:\"not\",type:\"UnaryOperation\",value:{left:{left:{collection:collectionId,name:fieldKey,type:\"Identifier\"},operator:\"!=\",right:{type:\"LiteralValue\",value:null},type:\"BinaryOperation\"},operator:\"and\",right:{left:{collection:collectionId,name:fieldKey,type:\"Identifier\"},operator:\"!=\",right:{type:\"LiteralValue\",value:\"\"},type:\"BinaryOperation\"},type:\"BinaryOperation\"}};}// Handle range (between) operator\nif(operator===\"between\"&&typeof value===\"object\"){const conditions=[];if(value.min!==undefined&&!isNaN(value.min)){conditions.push({left:{collection:collectionId,name:fieldKey,type:\"Identifier\"},operator:\">=\",right:{type:\"LiteralValue\",value:value.min},type:\"BinaryOperation\"});}if(value.max!==undefined&&!isNaN(value.max)){conditions.push({left:{collection:collectionId,name:fieldKey,type:\"Identifier\"},operator:\"<=\",right:{type:\"LiteralValue\",value:value.max},type:\"BinaryOperation\"});}if(conditions.length===0)return null;if(conditions.length===1)return conditions[0];return{left:conditions[0],operator:\"and\",right:conditions[1],type:\"BinaryOperation\"};}// NOTE: Array values (multi-select) are handled by buildMultiValueFilterClause()\n// which is called from buildFiltersWhereClause(). This ensures all operators\n// (contains, equals, starts_with, etc.) are properly respected for arrays.\n// The early array handler that was here (lines 424-459) was removed because it\n// hardcoded operator \"==\" and ignored the actual operator parameter.\n// Handle toggle special operators\nif(filter.type===\"toggle\"){// Determine if we need to invert the logic based on config\nconst shouldInvert=filter.config?.toggleInverse===true;// Tri-state support: Check if toggle is in OFF state (value === false)\n// When OFF in tri-state mode, we need to invert the query result\nconst isTriStateOff=value===false;// Build base query\nlet baseQuery;switch(operator){case\"is_enabled\":baseQuery={left:{collection:collectionId,name:fieldKey,type:\"Identifier\"},operator:shouldInvert?\"!=\":\"==\",right:{type:\"LiteralValue\",value:true},type:\"BinaryOperation\"};break;case\"is_disabled\":baseQuery={left:{collection:collectionId,name:fieldKey,type:\"Identifier\"},operator:shouldInvert?\"!=\":\"==\",right:{type:\"LiteralValue\",value:false},type:\"BinaryOperation\"};break;case\"has_value\":baseQuery={left:{collection:collectionId,name:fieldKey,type:\"Identifier\"},operator:shouldInvert?\"<=\":\">\",right:{type:\"LiteralValue\",value:0},type:\"BinaryOperation\"};break;case\"is_empty\":baseQuery={left:{collection:collectionId,name:fieldKey,type:\"Identifier\"},operator:shouldInvert?\"!=\":\"==\",right:{type:\"LiteralValue\",value:0},type:\"BinaryOperation\"};break;}// If tri-state OFF, wrap base query in NOT operator to invert results\nif(isTriStateOff&&baseQuery){return{operator:\"not\",type:\"UnaryOperation\",value:baseQuery};}return baseQuery;}// Handle text search functions\nif(operator===\"contains\"){return{arguments:[{collection:collectionId,name:fieldKey,type:\"Identifier\"},{type:\"LiteralValue\",value:value}],functionName:\"CONTAINS\",type:\"FunctionCall\"};}if(operator===\"starts_with\"){return{arguments:[{collection:collectionId,name:fieldKey,type:\"Identifier\"},{type:\"LiteralValue\",value:value}],functionName:\"STARTS_WITH\",type:\"FunctionCall\"};}if(operator===\"ends_with\"){return{arguments:[{collection:collectionId,name:fieldKey,type:\"Identifier\"},{type:\"LiteralValue\",value:value}],functionName:\"ENDS_WITH\",type:\"FunctionCall\"};}// Handle negated contains\nif(operator===\"not_contains\"){return{operator:\"not\",type:\"UnaryOperation\",value:{arguments:[{collection:collectionId,name:fieldKey,type:\"Identifier\"},{type:\"LiteralValue\",value:value}],functionName:\"CONTAINS\",type:\"FunctionCall\"}};}// Handle comparison operators\nconst operatorMap={equals:\"==\",not_equals:\"!=\",greater_than:\">\",less_than:\"<\",greater_than_or_equal:\">=\",less_than_or_equal:\"<=\"};const mappedOperator=operatorMap[operator];if(mappedOperator){return{left:{collection:collectionId,name:fieldKey,type:\"Identifier\"},operator:mappedOperator,right:{type:\"LiteralValue\",value:value},type:\"BinaryOperation\"};}return null;};// Helper to build filters where clause - FIXED: Use hierarchical logic system\nexport const buildFiltersWhereClause=(filters,collectionId,propertyControls,globalLogic,debugMode=false)=>{const validFilters=filters.filter(hasValidFilterValue);if(validFilters.length===0){return null;}// Group filters by component and builder logic\nconst filtersByComponent=new Map;validFilters.forEach(filter=>{const key=`${filter.componentId}-${filter.builderLogic}`;if(!filtersByComponent.has(key)){filtersByComponent.set(key,[]);}filtersByComponent.get(key).push(filter);});// Build conditions for each component group\nconst componentConditions=[];for(const[key,componentFilters]of filtersByComponent){const[componentId,builderLogic]=key.split(\"-\");// Build individual filter conditions within this component\nconst filterConditions=componentFilters.map(filter=>{// IMPORTANT: Multi-reference filters MUST use buildFilterWhereClause\n// even when they have multiple values (array), because they need FLAT_ARRAY pattern\nif(filter.type===\"multi-ref\"){return buildFilterWhereClause(filter,collectionId,propertyControls);}// For other multi-value filters (arrays), respect individual filter logic\n// BUGFIX: Changed from length > 1 to length > 0 to handle single-value arrays\n// This ensures that dropdown filters with \"Allow Multiple: Yes\" properly\n// use buildMultiValueFilterClause which respects the operator (contains, etc.)\n// instead of the broken early array handler that hardcoded \"==\"\nif(Array.isArray(filter.value)&&filter.value.length>0){return buildMultiValueFilterClause(filter,collectionId,propertyControls);}return buildFilterWhereClause(filter,collectionId,propertyControls);}).filter(Boolean);if(filterConditions.length===0)continue;if(filterConditions.length===1){componentConditions.push(filterConditions[0]);continue;}// Combine filters within component using builder logic\nconst builderOperator=builderLogic===\"All\"?\"and\":\"or\";let componentCombined={left:filterConditions[0],operator:builderOperator,right:filterConditions[1],type:\"BinaryOperation\"};for(let i=2;i<filterConditions.length;i++){componentCombined={left:componentCombined,operator:builderOperator,right:filterConditions[i],type:\"BinaryOperation\"};}componentConditions.push(componentCombined);}if(componentConditions.length===0){return null;}if(componentConditions.length===1){return componentConditions[0];}// Combine component conditions using global logic\nconst globalOperator=globalLogic===\"All\"?\"and\":\"or\";let globalCombined={left:componentConditions[0],operator:globalOperator,right:componentConditions[1],type:\"BinaryOperation\"};for(let i=2;i<componentConditions.length;i++){globalCombined={left:globalCombined,operator:globalOperator,right:componentConditions[i],type:\"BinaryOperation\"};}// Keep essential debug info for support\nif(debugMode&&filters.length>3){console.log(`🔍 Complex filter query: ${filters.length} filters with ${globalLogic} logic`);}return globalCombined;};// Helper to build multi-value filter clause respecting individual filter logic\nconst buildMultiValueFilterClause=(filter,collectionId,propertyControls)=>{if(!Array.isArray(filter.value)||filter.value.length===0){return null;}// Convert field title to internal key\nconst fieldKey=Object.entries(propertyControls).find(([key,control])=>control.title?.toLowerCase()===filter.field.toLowerCase())?.[0]||filter.field;const{operator}=filter;// Build conditions for each value\nconst conditions=filter.value.map(val=>{const baseIdentifier={collection:collectionId,name:fieldKey,type:\"Identifier\"};switch(operator){case\"contains\":return{arguments:[baseIdentifier,{type:\"LiteralValue\",value:val}],functionName:\"CONTAINS\",type:\"FunctionCall\"};case\"starts_with\":return{arguments:[baseIdentifier,{type:\"LiteralValue\",value:val}],functionName:\"STARTS_WITH\",type:\"FunctionCall\"};case\"ends_with\":return{arguments:[baseIdentifier,{type:\"LiteralValue\",value:val}],functionName:\"ENDS_WITH\",type:\"FunctionCall\"};case\"not_contains\":return{operator:\"not\",type:\"UnaryOperation\",value:{arguments:[baseIdentifier,{type:\"LiteralValue\",value:val}],functionName:\"CONTAINS\",type:\"FunctionCall\"}};case\"equals\":return{left:baseIdentifier,operator:\"==\",right:{type:\"LiteralValue\",value:val},type:\"BinaryOperation\"};case\"not_equals\":return{left:baseIdentifier,operator:\"!=\",right:{type:\"LiteralValue\",value:val},type:\"BinaryOperation\"};case\"greater_than\":return{left:baseIdentifier,operator:\">\",right:{type:\"LiteralValue\",value:val},type:\"BinaryOperation\"};case\"less_than\":return{left:baseIdentifier,operator:\"<\",right:{type:\"LiteralValue\",value:val},type:\"BinaryOperation\"};case\"greater_than_or_equal\":return{left:baseIdentifier,operator:\">=\",right:{type:\"LiteralValue\",value:val},type:\"BinaryOperation\"};case\"less_than_or_equal\":return{left:baseIdentifier,operator:\"<=\",right:{type:\"LiteralValue\",value:val},type:\"BinaryOperation\"};default:// Fallback to equality\nreturn{left:baseIdentifier,operator:\"==\",right:{type:\"LiteralValue\",value:val},type:\"BinaryOperation\"};}});if(conditions.length===1){return conditions[0];}// Combine using individual filter logic - SPECIAL CASE: not_contains always uses AND\nconst filterOperator=filter.operator===\"not_contains\"?\"and\":filter.logic===\"All\"?\"and\":\"or\";let combined={left:conditions[0],operator:filterOperator,right:conditions[1],type:\"BinaryOperation\"};for(let i=2;i<conditions.length;i++){combined={left:combined,operator:filterOperator,right:conditions[i],type:\"BinaryOperation\"};}return combined;};// Helper to combine existing where clause with new filter where clause\nexport const combineWhereClauses=(existing,additional,operator=\"and\")=>{if(!existing&&!additional)return null;if(!existing)return additional;if(!additional)return existing;return{left:existing,operator:operator,right:additional,type:\"BinaryOperation\"};};// Helper to build orderBy clause from sort state\nexport const buildOrderByClause=(sortState,propertyControls,collectionId)=>{if(!sortState||sortState.length===0){return[];}const orderBy=sortState.map((sort,index)=>{// Convert field title to internal key\nconst fieldKey=Object.entries(propertyControls).find(([key,control])=>control.title?.toLowerCase()===sort.field.toLowerCase())?.[0]||sort.field;return{collection:collectionId,name:fieldKey,direction:sort.direction,type:\"Identifier\"};});return orderBy;};\nexport const __FramerMetadata__ = {\"exports\":{\"FilterRule\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"Identifier\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"LiteralValue\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"buildFiltersWhereClause\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"buildSearchWhereClause\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"BinaryOperation\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"hasValidFilterValue\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"combineWhereClauses\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"UnaryOperation\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"buildFilterWhereClause\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"buildOrderByClause\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"FunctionCall\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./query_builders.map","// Variant override utilities for CMS Collection\n// Extracted for better readability and maintainability\nimport{cloneElement}from\"react\";// Get component name from React element\nexport const getComponentName=element=>{if(!element?.type)return null;// Try displayName first, then name, then fallback\nreturn element.type.displayName||element.type.name||element.type.constructor?.name||\"Unknown\";};/**\n * Recursively process React tree and apply variant overrides\n * @param element - React element to process\n * @param variantOverrides - Array of variant override configurations\n * @param depth - Current recursion depth (for debugging)\n * @returns Processed React element with variant overrides applied\n */export const processVariantOverrides=(element,variantOverrides,depth=0)=>{// Return non-object elements as-is\nif(!element||typeof element!==\"object\"){return element;}// Handle arrays\nif(Array.isArray(element)){return element.map(child=>processVariantOverrides(child,variantOverrides,depth));}// Process React elements\nif(element.type&&element.props){const componentName=getComponentName(element);// Check if this component should have its variant overridden\nconst override=variantOverrides.find(vo=>vo.componentName.toLowerCase().trim()===componentName?.toLowerCase().trim());let newProps={...element.props};// ONLY change variant if we found a matching override\nif(override){newProps.variant=override.variantName;}// Always process children recursively\nif(newProps.children){if(Array.isArray(newProps.children)){newProps.children=newProps.children.map(child=>processVariantOverrides(child,variantOverrides,depth+1));}else{newProps.children=processVariantOverrides(newProps.children,variantOverrides,depth+1);}}return /*#__PURE__*/cloneElement(element,newProps);}return element;};/**\n * Wrap CMS Item children function with variant override logic\n * @param originalChildrenFn - Original children render function from CMS Item\n * @param variantOverrides - Array of variant override configurations\n * @returns Wrapped function that applies variant overrides\n */export const wrapWithVariantOverrides=(originalChildrenFn,variantOverrides)=>{return(collection,paginationInfo,loadMore)=>{// Call original function to get JSX\nconst originalJSX=originalChildrenFn(collection,paginationInfo,loadMore);// Process the JSX tree and apply variant overrides\nreturn processVariantOverrides(originalJSX,variantOverrides);};};\nexport const __FramerMetadata__ = {\"exports\":{\"getComponentName\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"processVariantOverrides\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"VariantOverride\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"wrapWithVariantOverrides\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./variant_utils.map","// Masonry override utilities for CMS Collection\n// Allows overriding trackCount and rowGap props on Framer's masonry layout\nimport{cloneElement}from\"react\";/**\n * Check if a component is likely the masonry layout component\n * Framer uses withColumnMasonryLayout HOC which adds specific props\n */const isMasonryComponent=element=>{if(!element?.props)return false;// Check for masonry-specific props that only exist on MotionDivWithColumnMasonryLayout\nreturn\"columnMasonryLayoutEnabled\"in element.props||\"trackCount\"in element.props&&\"rowGap\"in element.props&&\"parentIsDataRepeater\"in element.props;};/**\n * Recursively process React tree and apply masonry overrides\n * @param element - React element to process\n * @param overrides - Masonry override configuration\n * @param depth - Current recursion depth (for debugging)\n * @returns Processed React element with masonry overrides applied\n */export const processMasonryOverrides=(element,overrides,depth=0)=>{// Return non-object elements as-is\nif(!element||typeof element!==\"object\"){return element;}// Handle arrays\nif(Array.isArray(element)){return element.map(child=>processMasonryOverrides(child,overrides,depth));}// Process React elements\nif(element.type&&element.props){let newProps={...element.props};// Check if this is the masonry component and apply overrides\nif(isMasonryComponent(element)){if(overrides.disableMasonry){// Standard mode: disable masonry entirely\nnewProps.columnMasonryLayoutEnabled=false;}else{// Masonry mode: override trackCount and rowGap\nif(overrides.trackCount!==undefined&&overrides.trackCount>0){newProps.trackCount=overrides.trackCount;}if(overrides.rowGap!==undefined&&overrides.rowGap>=0){newProps.rowGap=overrides.rowGap;}}}// Always process children recursively\nif(newProps.children){if(Array.isArray(newProps.children)){newProps.children=newProps.children.map(child=>processMasonryOverrides(child,overrides,depth+1));}else if(typeof newProps.children===\"function\"){// Wrap function children (like QueryData's children callback)\nconst originalFn=newProps.children;newProps.children=(...args)=>{const result=originalFn(...args);return processMasonryOverrides(result,overrides,depth+1);};}else{newProps.children=processMasonryOverrides(newProps.children,overrides,depth+1);}}return /*#__PURE__*/cloneElement(element,newProps);}return element;};/**\n * Wrap QueryData children function with masonry override logic\n * @param originalChildrenFn - Original children render function from QueryData\n * @param overrides - Masonry override configuration\n * @returns Wrapped function that applies masonry overrides\n */export const wrapWithMasonryOverrides=(originalChildrenFn,overrides)=>{return(collection,paginationInfo,loadMore)=>{// Call original function to get JSX\nconst originalJSX=originalChildrenFn(collection,paginationInfo,loadMore);// Process the JSX tree and apply masonry overrides\nreturn processMasonryOverrides(originalJSX,overrides);};};\nexport const __FramerMetadata__ = {\"exports\":{\"MasonryOverrides\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"wrapWithMasonryOverrides\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"processMasonryOverrides\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./masonry_utils.map","import{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from\"react/jsx-runtime\";import{useEffect,useRef,useMemo,cloneElement}from\"react\";import{addPropertyControls,ControlType,RenderTarget,// @ts-ignore-next-line\nuseQueryData}from\"framer\";import{getCollectionStore,getCollectionStoreKey,globalInitStore,getCollectionInfo,getCmsQueryFromSlot,evGetRandomString}from\"https://framerusercontent.com/modules/2VZikWBxCagm4nJReNjX/uFUqD0e9fJ1WAIOOmgia/store_management.js\";import{buildSearchWhereClause,buildFiltersWhereClause,combineWhereClauses,buildOrderByClause}from\"https://framerusercontent.com/modules/jM8jD1GlrCxD96rrTGLC/4bEIFe2BsBAYVYzZCpsc/query_builders.js\";import{wrapWithVariantOverrides,processVariantOverrides}from\"https://framerusercontent.com/modules/0ZtPI0zMKW1Pn08h8oa0/2vnwqGgQ3vjW4mR9YNCk/variant_utils.js\";import{processMasonryOverrides}from\"https://framerusercontent.com/modules/Bd2ZGjxd3wA16PORsZcM/xywNBkllbjazCcWq1vQQ/masonry_utils.js\";// Hook to get query count\nfunction useQueryCount(query,debugMode=false){if(debugMode){console.log(\"🎣 useQueryCount CALLED with:\",{hasQuery:!!query,hasFrom:!!query?.from,queryWhere:query?.where});}if(!query||!query.from){if(debugMode){console.log(\"❌ useQueryCount early return - no query or no from\");}return 0;}const countQuery={...query,select:[]};const collection=useQueryData(countQuery);if(debugMode){console.log(\"📊 useQueryCount result:\",{queryWhere:query?.where,countQueryWhere:countQuery?.where,resultLength:collection?.length});}return collection.length;}/**\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight any\n * @framerDisableUnlink\n */export default function CMSCollection(props){const{collection,emptyState,collectionWidth=\"100%\",overflow=false,emptyStateWidth=\"100%\",filterLogic,storeKey,variantOverrides=[],urlSync=false,urlPrefix=\"\",layoutToggle=false,responsiveMasonry=false,layoutDisplay=true,flexDirection=\"horizontal\",justifyContent=\"center\",alignRow=\"flex-start\",alignColumn=\"flex-start\",gridColumns=3,gridRows=0,gridAutoRows=\"minmax(200px, auto)\",flexWrap=false,gapRow=14,gapX=16,gapY=16,masonryColumns=0,masonryGap=16,debugMode=false,style,fallback={text:\"No items found\",font:{fontSize:16,lineHeight:\"1.5em\"},backgroundColor:\"transparent\",padding:40,borderRadius:\"0px\"},id}=props;// Extract fallback settings with defaults\nconst fallbackText=fallback?.text||\"No items found\";const fallbackFont=fallback?.font||{fontSize:16,lineHeight:\"1.5em\"};const fallbackBackgroundColor=fallback?.backgroundColor||\"transparent\";const fallbackPadding=fallback?.padding??40;const fallbackBorderRadius=fallback?.borderRadius??\"0px\";// Detect render mode\nconst current=RenderTarget.current();const isCanvas=current===RenderTarget.canvas;// Generate unique class name following CMSFilters pattern\nconst newId=id?id:evGetRandomString();const uniqueClassName=`cms-collection-${newId}`;// Get store key for this collection\nconst actualStoreKey=getCollectionStoreKey(collection,storeKey);const isInitialized=useRef(false);// Watch for store initialization\nconst[initState]=globalInitStore();const isStoreInitialized=actualStoreKey&&initState.storeInitialized.includes(actualStoreKey);// Extract collection info from slot connection\nconst collectionInfo=useMemo(()=>{return isStoreInitialized?getCollectionInfo(collection):null;},[collection,isStoreInitialized]);// Get store for this collection\nconst useStore=actualStoreKey?getCollectionStore(actualStoreKey):null;const[state,setState]=useStore?useStore():[null,null];// Initialize store if connected but not initialized\nuseEffect(()=>{if(actualStoreKey&&!isStoreInitialized&&!isInitialized.current){getCollectionStore(actualStoreKey);isInitialized.current=true;}},[actualStoreKey,isStoreInitialized]);// Handle URL synchronization\n// @todo: Later work on this later.\n/*\n    useURLSync(\n        {\n            enabled: urlSync,\n            prefix: urlPrefix,\n            debounceDelay: 500,\n            debugMode,\n        },\n        collectionInfo,\n        state,\n        setState\n    )*/// Get original query\nconst originalQuery=collectionInfo?.query;// Build search where clause - memoized\nconst searchWhere=useMemo(()=>{const result=buildSearchWhereClause(state?.searchTerm||\"\",state?.searchFields||[],collectionInfo?.collectionId||\"\",collectionInfo?.propertyControls||{});return result;},[state?.searchTerm,state?.searchFields,collectionInfo?.collectionId,collectionInfo?.propertyControls]);// Build filters where clause - memoized\nconst filtersWhere=useMemo(()=>{const result=buildFiltersWhereClause(state?.filters||[],collectionInfo?.collectionId||\"\",collectionInfo?.propertyControls||{},filterLogic);// Keep for support debugging\nif(debugMode&&(state?.filters||[]).length>0){console.log(\"🔍 Applied filters:\",{totalFilters:(state?.filters||[]).length,filters:state?.filters,whereClause:result});}return result;},[state?.filters,collectionInfo?.collectionId,collectionInfo?.propertyControls,filterLogic]);// Combine search and filters - memoized\nconst combinedWhere=useMemo(()=>combineWhereClauses(searchWhere,filtersWhere,\"and\"),[searchWhere,filtersWhere]);// Combine with existing where clause - memoized\nconst finalWhere=useMemo(()=>{const result=combineWhereClauses(originalQuery?.where,combinedWhere,\"and\");if(debugMode&&result){console.log(\"🎯 Final where clause:\",JSON.stringify(result,null,2));}return result;},[originalQuery?.where,combinedWhere,debugMode]);// Build order by clause - memoized\nconst orderBy=useMemo(()=>buildOrderByClause(state?.sort||[],collectionInfo?.propertyControls||{},collectionInfo?.collectionId||\"\"),[state?.sort,collectionInfo?.propertyControls,collectionInfo?.collectionId]);// Determine layout styles - MUST be calculated before clonedCollection\nconst containerStyles=useMemo(()=>{if(!layoutToggle)return{};const layout=layoutDisplay?\"flex\":\"grid\";if(layout===\"flex\"){return{display:\"flex\",flexDirection:flexDirection===\"horizontal\"?\"row\":\"column\",justifyContent,alignItems:flexDirection===\"horizontal\"?alignRow:alignColumn,flexWrap:flexWrap?\"wrap\":\"nowrap\",gap:flexWrap?`${gapY}px ${gapX}px`:`${gapRow}px`};}else{return{display:\"grid\",gridTemplateColumns:`repeat(${gridColumns}, 1fr)`,...gridRows>0&&{gridTemplateRows:`repeat(${gridRows}, 1fr)`},gridAutoRows,gap:`${gapY}px ${gapX}px`};}},[layoutToggle,layoutDisplay,flexDirection,justifyContent,alignRow,alignColumn,flexWrap,gapRow,gapX,gapY,gridColumns,gridRows,gridAutoRows]);// Build the filtered query - memoized\nconst filteredQuery=useMemo(()=>{if(!originalQuery||!collectionInfo){return getCmsQueryFromSlot(collection);}const newQuery={...originalQuery,where:finalWhere,...orderBy.length>0&&{orderBy}};return newQuery;},[originalQuery,finalWhere,orderBy,collection,collectionInfo]);// Update count in store when query changes\nconst currentCount=useQueryCount(filteredQuery||{},debugMode);useEffect(()=>{if(setState&&currentCount!==state?.count){setState({...state,count:currentCount});}},[currentCount,setState]);// Clone collection with filtered query\nconst clonedCollection=useMemo(()=>{if(!collection?.[0]||!filteredQuery)return{elements:collection,masonryCss:\"\",isMasonry:false};const originalElement=collection[0];const firstChild=originalElement.props?.children;if(!firstChild)return{elements:collection,masonryCss:\"\",isMasonry:false};// --- Masonry structure ---\n// When Masonry is enabled, the query lives on the immediate child:\n//   container.props.children.props.query\n// In this case, `firstChild` is the query element (QueryData), so we only\n// need to clone that element with the new query and keep its children\n// function intact.\nif(firstChild?.props?.query){if(debugMode){console.log(\"🏗️ MASONRY DETECTED:\",{originalElementStyle:originalElement.props?.style,containerStyles,masonryColumns,masonryGap,uniqueClassName,firstChildType:firstChild?.type?.name||firstChild?.type,firstChildProps:Object.keys(firstChild?.props||{})});}const newQueryElement=/*#__PURE__*/cloneElement(firstChild,{query:filteredQuery});// Note: Masonry column/gap overrides are now applied via prop overrides\n// in processedCollection, not CSS injection\nconst newContainerElement=/*#__PURE__*/cloneElement(originalElement,{children:newQueryElement,style:{...originalElement.props?.style,width:\"100%\",overflow:overflow?\"visible\":\"hidden\"}});return{elements:[newContainerElement],masonryCss:\"\",isMasonry:true};}// --- Standard (non-Masonry) structure ---\n// container -> listElement -> queryElement (with .props.query)\nconst originalListElement=firstChild;const originalQueryElement=originalListElement?.props?.children;if(!originalQueryElement)return{elements:collection,masonryCss:\"\",isMasonry:false};// Clone the query element with new query\nconst newQueryElement=/*#__PURE__*/cloneElement(originalQueryElement,{query:filteredQuery});// Clone the list element with new query element\nconst newListElement=/*#__PURE__*/cloneElement(originalListElement,{children:newQueryElement});// Clone the container with new list element AND apply ONLY layout styles (NOT width)\nconst newContainerElement=/*#__PURE__*/cloneElement(originalElement,{children:newListElement,style:{...originalElement.props?.style,...containerStyles,width:\"100%\",overflow:overflow?\"visible\":\"hidden\"}});return{elements:[newContainerElement],masonryCss:\"\",isMasonry:false};},[collection,filteredQuery,containerStyles,overflow,uniqueClassName,masonryColumns,masonryGap,debugMode]);// Build masonry overrides config\nconst masonryOverrides=useMemo(()=>{if(!layoutToggle){// Responsive Layout disabled - no overrides\nreturn{trackCount:undefined,rowGap:undefined,disableMasonry:false};}if(responsiveMasonry){// Masonry mode: override trackCount and rowGap\nreturn{trackCount:masonryColumns>0?masonryColumns:undefined,rowGap:masonryGap>=0?masonryGap:undefined,disableMasonry:false};}else{// Standard mode: disable masonry, use grid/stack layout\nreturn{trackCount:undefined,rowGap:undefined,disableMasonry:true};}},[layoutToggle,responsiveMasonry,masonryColumns,masonryGap]);// Apply variant and masonry overrides\nconst processedCollection=useMemo(()=>{const{elements,isMasonry}=clonedCollection;if(!elements){return elements;}const hasVariantOverrides=variantOverrides&&variantOverrides.length>0;const hasMasonryOverrides=masonryOverrides.trackCount!==undefined||masonryOverrides.rowGap!==undefined||masonryOverrides.disableMasonry===true;// If no overrides needed, return as-is\nif(!hasVariantOverrides&&!hasMasonryOverrides){return elements;}// Process each container element\nreturn elements.map(containerElement=>{if(isMasonry){// --- MASONRY STRUCTURE ---\n// container -> QueryData (with children function)\n// The QueryData's children function returns the masonry component\nconst queryElement=containerElement.props?.children;if(!queryElement)return containerElement;const originalChildrenFn=queryElement.props?.children;if(typeof originalChildrenFn!==\"function\")return containerElement;// Wrap children function to apply overrides to the rendered result\nconst wrappedChildren=(collection,paginationInfo,loadMore)=>{let result=originalChildrenFn(collection,paginationInfo,loadMore);// Apply masonry overrides (trackCount, rowGap)\nif(hasMasonryOverrides){result=processMasonryOverrides(result,masonryOverrides);}// Apply variant overrides\nif(hasVariantOverrides){result=processVariantOverrides(result,variantOverrides);}return result;};// Clone QueryData with wrapped children\nconst newQueryElement=/*#__PURE__*/cloneElement(queryElement,{...queryElement.props,children:wrappedChildren});// Clone container with new QueryData\nreturn /*#__PURE__*/cloneElement(containerElement,{children:newQueryElement,style:containerElement.props?.style});}else{// --- STANDARD (NON-MASONRY) STRUCTURE ---\n// container -> listElement -> cmsItem (QueryData with children function)\nconst listElement=containerElement.props?.children;if(!listElement)return containerElement;const cmsItem=listElement.props?.children;if(!cmsItem)return containerElement;const originalChildrenFn=cmsItem.props?.children;if(typeof originalChildrenFn!==\"function\")return containerElement;// Wrap children function with variant override logic\nconst wrappedChildren=wrapWithVariantOverrides(originalChildrenFn,variantOverrides);// Clone CMS Item with wrapped children\nconst newCmsItem=/*#__PURE__*/cloneElement(cmsItem,{...cmsItem.props,children:wrappedChildren});// Clone list element with new CMS Item\nconst newListElement=/*#__PURE__*/cloneElement(listElement,{children:newCmsItem});// Clone container with new list element\nreturn /*#__PURE__*/cloneElement(containerElement,{children:newListElement,style:containerElement.props?.style});}});},[clonedCollection,variantOverrides,masonryOverrides]);// Build wrapper CSS to override Framer's inline styles (width only)\n// Note: Masonry column/gap overrides are now applied via prop overrides in processedCollection\nconst wrapperCss=useMemo(()=>{return`\n            .${uniqueClassName} > div {\n                width: 100% !important;\n            }\n        `;},[uniqueClassName]);// Determine if we're in editor mode (no CMS data available)\nconst isEditorMode=!collectionInfo;// Show empty state if filtered and no results (only in preview/live mode)\nconst showEmptyState=!isEditorMode&&collectionInfo&&currentCount===0&&(state?.searchTerm||state?.filters&&state.filters.length>0);// If in canvas mode, apply layout styles directly to collection element\nif(isCanvas){const canvasCollection=useMemo(()=>{if(!collection?.[0])return collection;const element=collection[0];const props=element.props||{};// Check if masonry is enabled on this element\nconst isMasonryElement=props?.columnMasonryLayoutEnabled===true;// Build new props with masonry overrides if applicable\nconst newProps={style:{...props.style,...containerStyles,width:\"100%\",overflow:overflow?\"visible\":\"hidden\"}};// Handle masonry overrides based on layout settings\nif(isMasonryElement&&layoutToggle){if(responsiveMasonry){// Masonry mode: override trackCount and rowGap\nif(masonryColumns>0){newProps.trackCount=masonryColumns;}if(masonryGap>=0){newProps.rowGap=masonryGap;}}else{// Standard mode: disable masonry entirely\nnewProps.columnMasonryLayoutEnabled=false;}}return[/*#__PURE__*/cloneElement(element,newProps)];},[collection,containerStyles,overflow,layoutToggle,responsiveMasonry,masonryColumns,masonryGap]);return /*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",flexDirection:\"column\",width:\"100%\",...style},children:[wrapperCss&&/*#__PURE__*/_jsx(\"style\",{dangerouslySetInnerHTML:{__html:wrapperCss}}),collection&&Array.isArray(collection)&&collection.length>0?/*#__PURE__*/_jsx(\"div\",{className:uniqueClassName,style:{width:collectionWidth,marginLeft:\"auto\",marginRight:\"auto\"},children:canvasCollection}):/*#__PURE__*/_jsxs(\"div\",{style:{padding:\"24px\",textAlign:\"center\",backgroundColor:\"#f8f9fa\",border:\"2px dashed #dee2e6\",borderRadius:\"8px\",color:\"#6c757d\"},children:[/*#__PURE__*/_jsx(\"div\",{style:{fontSize:\"16px\",fontWeight:500,marginBottom:\"8px\",color:\"#495057\"},children:\"Connect CMS Collection\"}),/*#__PURE__*/_jsx(\"div\",{style:{fontSize:\"14px\"},children:\"Add your CMS List to the canvas and connect it.\"})]})]});}// Prepare empty state with width styling\nconst modifiedEmptyState=useMemo(()=>{if(!emptyState||!Array.isArray(emptyState)||emptyState.length===0){return null;}return /*#__PURE__*/cloneElement(emptyState[0],{style:{width:emptyStateWidth}});},[emptyState,emptyStateWidth]);return /*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",flexDirection:\"column\",width:\"100%\",...style},children:[wrapperCss&&/*#__PURE__*/_jsx(\"style\",{dangerouslySetInnerHTML:{__html:wrapperCss}}),debugMode&&state&&/*#__PURE__*/_jsxs(\"div\",{style:{padding:12,backgroundColor:\"#f8f9fa\",border:\"1px solid #dee2e6\",borderRadius:4,marginBottom:16,fontSize:12,fontFamily:\"monospace\"},children:[/*#__PURE__*/_jsx(\"div\",{children:/*#__PURE__*/_jsx(\"strong\",{children:\"🛠 Debug Information\"})}),/*#__PURE__*/_jsxs(\"div\",{children:[\"Store Key: \",actualStoreKey]}),/*#__PURE__*/_jsxs(\"div\",{children:['Search Term: \"',state.searchTerm,'\"']}),/*#__PURE__*/_jsxs(\"div\",{children:[\"Search Fields: [\",state.searchFields.join(\", \"),\"]\"]}),/*#__PURE__*/_jsxs(\"div\",{children:[\"Active Filters: \",state.filters?.length||0]}),/*#__PURE__*/_jsxs(\"div\",{children:[\"Filter Logic: \",filterLogic]}),/*#__PURE__*/_jsxs(\"div\",{children:[\"Total Results: \",currentCount]}),/*#__PURE__*/_jsxs(\"div\",{children:[\"Collection ID: \",collectionInfo?.collectionId]}),urlSync&&/*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"div\",{style:{marginTop:8,borderTop:\"1px solid #dee2e6\",paddingTop:8},children:/*#__PURE__*/_jsx(\"strong\",{children:\"🔗 URL Sync\"})}),/*#__PURE__*/_jsx(\"div\",{children:\"Enabled: Yes\"}),/*#__PURE__*/_jsxs(\"div\",{children:[\"Prefix: \",urlPrefix||\"(none)\"]}),/*#__PURE__*/_jsxs(\"div\",{children:[\"Current URL:\",\" \",typeof window!==\"undefined\"?window.location.search:\"\"]})]})]}),isEditorMode?// Editor mode: Show collection or connection prompt\ncollection&&Array.isArray(collection)&&collection.length>0?/*#__PURE__*/_jsx(\"div\",{className:uniqueClassName,style:{width:collectionWidth,marginLeft:\"auto\",marginRight:\"auto\"},children:processedCollection}):/*#__PURE__*/_jsxs(\"div\",{style:{padding:\"24px\",textAlign:\"center\",backgroundColor:\"#f8f9fa\",border:\"2px dashed #dee2e6\",borderRadius:\"8px\",color:\"#6c757d\"},children:[/*#__PURE__*/_jsx(\"div\",{style:{fontSize:\"16px\",fontWeight:500,marginBottom:\"8px\",color:\"#495057\"},children:\"Connect CMS Collection\"}),/*#__PURE__*/_jsx(\"div\",{style:{fontSize:\"14px\"},children:\"Add your CMS List to the canvas and connect it.\"})]}):collection&&Array.isArray(collection)&&collection.length>0?showEmptyState?// Filtered with no results - show empty state or fallback\nmodifiedEmptyState?modifiedEmptyState:/*#__PURE__*/_jsx(\"div\",{style:{textAlign:\"center\",padding:`${fallbackPadding}px`,backgroundColor:fallbackBackgroundColor,borderRadius:`${fallbackBorderRadius}`,fontFamily:fallbackFont?.family||\"sans-serif\",fontSize:fallbackFont?.fontSize||16,fontWeight:fallbackFont?.fontWeight,fontStyle:fallbackFont?.fontStyle,lineHeight:fallbackFont?.lineHeight||\"1.5em\",color:fallbackFont?.color||\"#666\"},children:fallbackText}):// Has results - show processed collection\n/*#__PURE__*/_jsx(\"div\",{className:uniqueClassName,style:{width:collectionWidth,marginLeft:\"auto\",marginRight:\"auto\"},children:processedCollection}):modifiedEmptyState?modifiedEmptyState:/*#__PURE__*/_jsx(\"div\",{style:{textAlign:\"center\",padding:`${fallbackPadding}px`,backgroundColor:fallbackBackgroundColor,borderRadius:`${fallbackBorderRadius}`,fontFamily:fallbackFont?.family||\"sans-serif\",fontSize:fallbackFont?.fontSize||16,fontWeight:fallbackFont?.fontWeight,fontStyle:fallbackFont?.fontStyle,lineHeight:fallbackFont?.lineHeight||\"1.5em\",color:fallbackFont?.color||\"#666\"},children:fallbackText})]});}// Property Controls\naddPropertyControls(CMSCollection,{collection:{type:ControlType.Slot,title:\"Collection\",description:\"Connect your CMS Collection List component here\",maxCount:1},emptyState:{type:ControlType.Slot,title:\"Empty State\",description:\"Component to show when no items match the filters\",maxCount:1},fallback:{type:ControlType.Object,title:\"Empty State Fallback\",description:\"Styling for fallback text when no items found and no empty state is connected\",controls:{text:{type:ControlType.String,title:\"Text\",description:\"Message shown when no results found\",defaultValue:\"No items found\"},font:{type:ControlType.Font,title:\"Font\",description:\"Typography settings for empty state text\",controls:\"extended\",defaultValue:{fontSize:16,lineHeight:\"1.5em\"}},color:{type:ControlType.Color,title:\"Color\",description:\"Text color for empty state text\",defaultValue:\"#666\"},backgroundColor:{type:ControlType.Color,title:\"Background\",description:\"Background color for empty state area\",defaultValue:\"rgba(0,0,0,0)\"},border:{type:ControlType.Border,title:\"Border\",description:\"Empty state border styling\",defaultValue:{borderWidth:0,borderStyle:\"solid\",borderColor:\"#dee2e6\"}},borderRadius:{type:ControlType.BorderRadius,title:\"Border Radius\",description:\"Corner rounding for empty state container\",defaultValue:\"0px\"},padding:{type:ControlType.Number,title:\"Padding\",description:\"Inner spacing around empty state text\",defaultValue:40,min:0,max:200,step:1,displayStepper:true,unit:\"px\"}}},collectionWidth:{type:ControlType.String,title:\"CMS Collection Width\",defaultValue:\"100%\",description:\"Please enter value with unit ex: 100%\"},overflow:{type:ControlType.Boolean,title:\"Overflow\",description:\"How to handle overflow content\",enabledTitle:\"Visible\",disabledTitle:\"Hidden\",defaultValue:false},emptyStateWidth:{type:ControlType.String,title:\"Empty State Width\",defaultValue:\"100%\",description:\"Please enter value with unit ex: 100%\"},filterLogic:{type:ControlType.Enum,title:\"Filter Logic\",description:\"How to combine multiple filter components on the page\",segmentedControlDirection:\"vertical\",options:[\"All\",\"Any\"],optionTitles:[\"All (AND)\",\"Any (OR)\"],defaultValue:\"All\"},storeKey:{type:ControlType.String,title:\"Filter Group\",description:\"Components with same group share filters. Leave empty or 'auto' to use collection name.\",defaultValue:\"auto\",placeholder:\"auto (uses collection name)\"},// @todo: Later work on this later.\n/* \n    urlSync: {\n      type: ControlType.Boolean,\n      title: \"🔗 URL Sync\",\n      description: \"Sync filters to URL for shareable filter states\",\n      defaultValue: false,\n      enabledTitle: \"Enabled\",\n      disabledTitle: \"Disabled\",\n    },\n    urlPrefix: {\n      type: ControlType.String,\n      title: \"URL Prefix\",\n      description:\n        \"Optional prefix for URL parameters (e.g., 'blog' → ?blog_s=search). Leave empty for no prefix.\",\n      defaultValue: \"\",\n      placeholder: \"e.g., blog\",\n      hidden: (props) => !props.urlSync,\n    },\n    */variantOverrides:{type:ControlType.Array,title:\"Variant Overrides\",description:\"Enter component name and variant name, you want to change in CMS Item. Note: Variant Overrides doen't show in canvas, check preview/published page.\",control:{type:ControlType.Object,controls:{componentName:{type:ControlType.String,title:\"Component Name\",description:\"Exact component name as it appears in CMS item (case-sensitive)\"},variantName:{type:ControlType.String,title:\"Variant Name\",description:\"Exact variant name to apply (case-sensitive)\"}}}},layoutToggle:{type:ControlType.Boolean,title:\"Layout Override\",description:\"Override layout settings per breakpoint. To mix masonry and grid layouts, enable Masonry on your CMS List in Framer first.\",enabledTitle:\"Enable\",disabledTitle:\"Disable\",defaultValue:false},responsiveMasonry:{type:ControlType.Boolean,title:\"Layout Type\",description:\"Masonry: Override masonry columns/gap (requires Masonry enabled on CMS List). Standard: Use grid/stack layout (disables masonry if enabled).\",enabledTitle:\"Masonry\",disabledTitle:\"Standard\",defaultValue:false,hidden:props=>!props.layoutToggle},layoutDisplay:{type:ControlType.Boolean,title:\"Display\",enabledTitle:\"Stack\",disabledTitle:\"Grid\",defaultValue:true,hidden:props=>!props.layoutToggle||props.responsiveMasonry===true},flexDirection:{type:ControlType.Enum,title:\"Direction\",options:[\"horizontal\",\"vertical\"],optionTitles:[\"horizontal\",\"vertical\"],displaySegmentedControl:true,hidden(props){return!props.layoutToggle||props.responsiveMasonry===true||!props.layoutDisplay;}},justifyContent:{type:ControlType.Enum,title:\"Justify\",options:[\"flex-start\",\"center\",\"flex-end\",\"space-between\",\"space-around\",\"space-evenly\"],optionTitles:[\"Start\",\"Center\",\"End\",\"Space Between\",\"Space Around\",\"Space Evenly\"],defaultValue:\"center\",hidden(props){return!props.layoutToggle||props.responsiveMasonry===true||props.layoutDisplay===false;}},alignRow:{type:ControlType.Enum,title:\"Align\",options:[\"flex-start\",\"center\",\"flex-end\"],optionTitles:[\"Left\",\"Center\",\"Right\"],displaySegmentedControl:true,hidden(props){const layout=props.layoutDisplay===true?\"stack\":\"grid\";return!props.layoutToggle||props.responsiveMasonry===true||layout===\"stack\"&&props.flexDirection===\"vertical\"||layout===\"grid\";}},alignColumn:{type:ControlType.Enum,title:\"Align\",options:[\"flex-start\",\"center\",\"flex-end\"],optionTitles:[\"Top\",\"Center\",\"Bottom\"],displaySegmentedControl:true,hidden(props){const layout=props.layoutDisplay===true?\"stack\":\"grid\";return!props.layoutToggle||props.responsiveMasonry===true||layout===\"stack\"&&props.flexDirection===\"horizontal\"||layout===\"grid\";}},gridColumns:{type:ControlType.Number,title:\"Columns\",defaultValue:3,min:1,max:10,step:1,displayStepper:true,hidden(props){const layout=props.layoutDisplay===true?\"stack\":\"grid\";return!props.layoutToggle||props.responsiveMasonry===true||layout===\"stack\";}},gridRows:{type:ControlType.Number,title:\"Rows\",defaultValue:0,min:0,max:10,step:1,displayStepper:true,description:\"0 = auto-size rows, 1+ = fixed row count\",hidden(props){const layout=props.layoutDisplay===true?\"stack\":\"grid\";return!props.layoutToggle||props.responsiveMasonry===true||layout===\"stack\";}},gridAutoRows:{type:ControlType.String,title:\"Auto Rows\",defaultValue:\"minmax(200px, auto)\",description:\"CSS grid-auto-rows value for row height. Examples: 'minmax(200px, auto)', '200px', 'auto'\",hidden(props){const layout=props.layoutDisplay===true?\"stack\":\"grid\";return!props.layoutToggle||props.responsiveMasonry===true||layout===\"stack\";}},flexWrap:{type:ControlType.Boolean,title:\"Wrap\",enabledTitle:\"Yes\",disabledTitle:\"No\",defaultValue:false,hidden(props){const layout=props.layoutDisplay===true?\"stack\":\"grid\";return!props.layoutToggle||props.responsiveMasonry===true||layout===\"grid\";}},gapRow:{type:ControlType.Number,title:\"Gap\",defaultValue:14,step:1,displayStepper:true,hidden(props){const layout=props.layoutDisplay===true?\"stack\":\"grid\";return!props.layoutToggle||props.responsiveMasonry===true||layout===\"stack\"&&props.flexWrap===true||layout===\"grid\";}},gapX:{type:ControlType.Number,title:\"Gap X\",defaultValue:16,step:1,unit:\"px\",displayStepper:true,hidden(props){const layout=props.layoutDisplay===true?\"stack\":\"grid\";return!props.layoutToggle||props.responsiveMasonry===true||layout===\"stack\"&&props.flexWrap===false;}},gapY:{type:ControlType.Number,title:\"Gap Y\",defaultValue:16,step:1,unit:\"px\",displayStepper:true,hidden(props){const layout=props.layoutDisplay===true?\"stack\":\"grid\";return!props.layoutToggle||props.responsiveMasonry===true||layout===\"stack\"&&props.flexWrap===false;}},masonryColumns:{type:ControlType.Number,title:\"Columns\",description:\"Override Framer's masonry column count for this breakpoint.\",defaultValue:0,min:0,max:10,step:1,displayStepper:true,hidden(props){return!props.layoutToggle||props.responsiveMasonry!==true;}},masonryGap:{type:ControlType.Number,title:\"Gap\",description:\"Gap between masonry items\",defaultValue:16,min:0,step:1,unit:\"px\",displayStepper:true,hidden(props){return!props.layoutToggle||props.responsiveMasonry!==true;}},debugMode:{type:ControlType.Boolean,title:\"🛠 Debug Mode\",defaultValue:false,description:\"Show debug information including active filters, logic, and query generation\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"CMSCollection\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"any\",\"framerSupportedLayoutHeight\":\"any\",\"framerDisableUnlink\":\"\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./CMSCollection.map","import{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from\"react/jsx-runtime\";import{useState,useEffect,useMemo}from\"react\";import{addPropertyControls,ControlType,useQueryData}from\"framer\";// Import utilities and types from shared modules\nimport{getCollectionStore,getCollectionStoreKey,globalInitStore,getCollectionInfo,evGetRandomString}from\"https://framerusercontent.com/modules/2VZikWBxCagm4nJReNjX/uFUqD0e9fJ1WAIOOmgia/store_management.js\";// Helper to get available searchable fields from CMS\nconst getAvailableSearchFields=propertyControls=>{if(!propertyControls)return[];return Object.entries(propertyControls).filter(([,control])=>{// Only include searchable field types\nconst searchableTypes=[\"string\",\"richtext\"];return searchableTypes.includes(control.type);}).map(([key,control])=>({key,title:control.title||key,type:control.type}));};// Debounce hook\nfunction useDebounce(value,delay){const[debounced,setDebounced]=useState(value);useEffect(()=>{const handler=setTimeout(()=>setDebounced(value),delay);return()=>clearTimeout(handler);},[value,delay]);return debounced;}/**\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight any\n * @framerDisableUnlink\n */export default function CMSSearch(props){const{collection,searchFields,searchDisplayTitle=\"Search\",placeholder,debounceDelay,storeKey,urlPrefix,style,containerStyles,labelStyles,inputStyles,iconStyles,debugMode,id}=props;const newId=id?id:evGetRandomString();const uniqueClassName=`cms-collection-${newId}`;// Get store key for this collection using new logic\nconst actualStoreKey=getCollectionStoreKey(collection,storeKey);// Initialize store immediately if we have a store key (fixes race condition)\nif(actualStoreKey){getCollectionStore(actualStoreKey);}// Watch for store initialization (for debugging/monitoring only)\nconst[initState]=globalInitStore();const isStoreInitialized=actualStoreKey&&initState.storeInitialized.includes(actualStoreKey);// Extract collection info from slot connection - memoized\nconst collectionInfo=useMemo(()=>getCollectionInfo(collection),[collection]);// Get store for this collection\nconst useStore=actualStoreKey?getCollectionStore(actualStoreKey):null;const[state,setState]=useStore?useStore():[null,null];// Local input value for immediate UI updates\nconst[inputValue,setInputValue]=useState(\"\");// Debounced search term\nconst debouncedSearchTerm=useDebounce(inputValue,debounceDelay);// Clear search function\nconst handleClearSearch=()=>{setInputValue(\"\");};// Memoized dynamic placeholder with count support - prevents render loops\nconst dynamicPlaceholder=useMemo(()=>{if(!placeholder.includes(\"{count}\")){return placeholder;}// Check if we have active filters\nconst hasActiveFilters=state&&(state.searchTerm&&state.searchTerm.trim()!==\"\"||state.filters&&state.filters.length>0||state.sort&&state.sort.length>0);let count=0;if(hasActiveFilters&&state?.count!==undefined){// Use filtered count when filters are active\ncount=state.count;}else if(collectionInfo){// Use total collection count when no filters are active\nconst originalQuery=getCmsQueryFromSlot(collection);if(originalQuery){try{const unfiltered=useQueryData(originalQuery);count=unfiltered?.length||0;}catch(error){console.warn(\"Error getting collection count:\",error);count=0;}}}return placeholder.replace(/{count}/g,String(count));},[placeholder,state?.count,state?.searchTerm,state?.filters,state?.sort,collectionInfo,collection]);// Update store when debounced search term changes - SIMPLIFIED\nuseEffect(()=>{if(setState&&state){setState({...state,searchTerm:debouncedSearchTerm,searchFields:searchFields,searchDisplayTitle:searchDisplayTitle});}},[debouncedSearchTerm,searchFields,searchDisplayTitle,setState]);// Initialize from URL parameters on component mount\n// useEffect(() => {\n//     if (isStoreInitialized && setState && state && !hasInitializedFromURL) {\n//         const urlParams = new URLSearchParams(window.location.search)\n//         const searchParam = urlPrefix ? `${urlPrefix}_search` : \"search\"\n//         const urlSearchTerm = urlParams.get(searchParam)\n//         if (urlSearchTerm) {\n//             setInputValue(urlSearchTerm)\n//             setState({\n//                 ...state,\n//                 searchTerm: urlSearchTerm,\n//                 searchFields: searchFields,\n//             })\n//         }\n//         setHasInitializedFromURL(true)\n//     }\n// }, [\n//     isStoreInitialized,\n//     setState,\n//     state,\n//     hasInitializedFromURL,\n//     urlPrefix,\n//     searchFields,\n// ])\n// const urlParams = new URLSearchParams(window.location.search)\n// const searchParam = urlPrefix ? `${urlPrefix}_search` : \"search\"\n// const urlSearchTerm = urlParams.get(searchParam)\nuseEffect(()=>{},[]);// Sync input value with store on change (including clears from other components)\nuseEffect(()=>{if(state&&state.searchTerm!==inputValue){setInputValue(state.searchTerm||\"\");}},[state?.searchTerm]);// Get available fields for validation/debugging (only in preview/live) - memoized\nconst availableFields=useMemo(()=>collectionInfo?getAvailableSearchFields(collectionInfo.propertyControls):[],[collectionInfo?.propertyControls]);const validFields=useMemo(()=>availableFields&&availableFields.length>0?searchFields.filter(fieldTitle=>availableFields.some(field=>field.title.toLowerCase()===fieldTitle.toLowerCase())):searchFields,[availableFields,searchFields]);const invalidFields=useMemo(()=>availableFields&&availableFields.length>0?searchFields.filter(fieldTitle=>!availableFields.some(field=>field.title.toLowerCase()===fieldTitle.toLowerCase())):[],[availableFields,searchFields]);let paddingLeft=0;const defaultPadding=\"8px 16px 8px 16px\";let curAppliedPadding=0;if(defaultPadding==inputStyles?.padding){curAppliedPadding=16;}else{const paddingArr=inputStyles?.padding.split(\" \");if(paddingArr.length>3){curAppliedPadding=parseInt(paddingArr[3].replace(\"px\",\"\"));}else{curAppliedPadding=parseInt(paddingArr[0].replace(\"px\",\"\"));}}if(iconStyles?.showSearchIcon){paddingLeft=(iconStyles?.iconSize||16)+curAppliedPadding;}else{paddingLeft=curAppliedPadding;}let paddingRight=0;if(defaultPadding==inputStyles?.padding){curAppliedPadding=16;}else{const paddingArr=inputStyles?.padding.split(\" \");if(paddingArr.length>1){curAppliedPadding=parseInt(paddingArr[1].replace(\"px\",\"\"));}else{curAppliedPadding=parseInt(paddingArr[0].replace(\"px\",\"\"));}}if(iconStyles?.showClearButton){paddingRight=(iconStyles?.clearIconSize||16)+curAppliedPadding;}else{paddingRight=curAppliedPadding;}return /*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"style\",{children:`\n                .${uniqueClassName} {\n                    display: flex;\n                    flex-direction: column;\n                    gap: 8px;\n                    overflow: hidden;\n                }\n\n                .${uniqueClassName}-debug-info {\n                    padding: 8px;\n                    background-color: #e8f5e8;\n                    border-radius: 4px;\n                    font-size: 12px;\n                    color: #2d5a2d;\n                    border: 1px solid #c3e6c3;\n                }\n\n                .${uniqueClassName}-validation-warning {\n                    padding: 12px;\n                    background-color: #f8d7da;\n                    border: 1px solid #f5c6cb;\n                    border-radius: 6px;\n                    color: #721c24;\n                    font-size: 13px;\n                }\n\n                .${uniqueClassName}-validation-title {\n                    font-weight: 500;\n                    margin-bottom: 4px;\n                }\n\n                .${uniqueClassName}-validation-note {\n                    font-size: 12px;\n                    margin-top: 4px;\n                    opacity: 0.8;\n                }\n\n                .${uniqueClassName}-search-container {\n                    display: flex;\n                    flex-direction: column;\n                    gap: 4px;\n                }\n\n                .${uniqueClassName}-label {\n                    font-size: 14px;\n                    font-weight: 500;\n                    display: flex;\n                    align-items: center;\n                    gap: 8px;\n                }\n\n                .${uniqueClassName}-field-badge {\n                    font-size: 11px;\n                    color: #666;\n                    font-weight: 400;\n                    background-color: #f8f9fa;\n                    padding: 2px 6px;\n                    border-radius: 3px;\n                }\n\n                .${uniqueClassName}-input-wrapper {\n                    position: relative;\n                    display: flex;\n                    align-items: center;\n                }\n\n                .${uniqueClassName}-search-icon {\n                    position: absolute;\n                    left: ${iconStyles?.iconPosition||12}px;\n                    z-index: 1;\n                    pointer-events: none;\n                    display: flex;\n                    align-items: center;\n                    height: 100%;\n                }\n\n                .${uniqueClassName}-input {\n                    outline: none;\n                    transition: border-color 0.2s ease, box-shadow 0.2s ease;\n                    width: 100%;\n                    color: ${inputStyles?.textColor||\"#333\"};\n                }\n\n                .${uniqueClassName}-input::placeholder {\n                    color: ${inputStyles?.placeholderColor||\"#999\"};\n                }\n\n                .${uniqueClassName}-input:hover:not(:focus) {\n                    border-color: ${inputStyles?.hoverBorderColor||inputStyles?.selectedBorderColor||\"#007AFF\"} !important;\n                    background-color: ${inputStyles?.hoverBackgroundColor||\"#f8f9fa\"} !important;\n                    color: ${inputStyles?.hoverTextColor||inputStyles?.textColor||\"#333\"} !important;\n                }\n\n                .${uniqueClassName}-input:focus {\n                    border-color: ${inputStyles?.selectedBorderColor||\"#007AFF\"} !important;\n                    background-color: ${inputStyles?.selectedBackgroundColor||\"#fff\"} !important;\n                    color: ${inputStyles?.selectedTextColor||inputStyles?.textColor||\"#333\"} !important;\n                }\n\n                .${uniqueClassName}-clear-button {\n                    position: absolute;\n                    right: ${iconStyles?.clearIconPosition||8}px;\n                    background: none;\n                    border: none;\n                    cursor: pointer;\n                    padding: 4px;\n                    display: flex;\n                    align-items: center;\n                    justify-content: center;\n                    border-radius: 50%;\n                    background-color: ${iconStyles?.clearIconBgColor||\"transparent\"};\n                    transition: background-color 0.2s ease;\n\n                }\n\n                .${uniqueClassName}-clear-button:hover {\n                    background-color: ${iconStyles?.clearIconHoverBgColor||\"#f3f4f6\"};\n                }\n            `}),/*#__PURE__*/_jsxs(\"div\",{className:uniqueClassName,style:{...containerStyles,...containerStyles?.border,...style},children:[debugMode&&collectionInfo&&state&&state.debug&&/*#__PURE__*/_jsxs(\"div\",{className:`${uniqueClassName}-debug-info`,children:[/*#__PURE__*/_jsx(\"div\",{children:/*#__PURE__*/_jsx(\"strong\",{children:\"CMS MultiFilter Search - SIMPLIFIED\"})}),/*#__PURE__*/_jsxs(\"div\",{children:[\"Collection: \",collectionInfo.collectionName,\" (\",collectionInfo.collectionId,\")\"]}),/*#__PURE__*/_jsx(\"div\",{children:\"Store Initialized: ✅\"}),/*#__PURE__*/_jsx(\"div\",{children:\"Store Connected: ✅\"}),/*#__PURE__*/_jsxs(\"div\",{children:[\"Property Controls Found:\",\" \",Object.keys(collectionInfo&&collectionInfo.propertyControls||{}).length]}),/*#__PURE__*/_jsxs(\"div\",{children:[\"Available Fields:\",\" \",availableFields.map(f=>f.title).join(\", \")||\"None\"]}),validFields.length>0&&/*#__PURE__*/_jsxs(\"div\",{children:[\"✅ Valid Search Fields: \",validFields.join(\", \")]}),invalidFields.length>0&&/*#__PURE__*/_jsxs(\"div\",{children:[\"⚠ Invalid Search Fields:\",\" \",invalidFields.join(\", \")]}),state.searchTerm&&/*#__PURE__*/_jsxs(\"div\",{children:['Active Search: \"',state.searchTerm,'\" (Always OR across fields)']})]}),collection&&collectionInfo&&invalidFields.length>0&&/*#__PURE__*/_jsxs(\"div\",{className:`${uniqueClassName}-validation-warning`,children:[/*#__PURE__*/_jsx(\"div\",{className:`${uniqueClassName}-validation-title`,children:\"Invalid Search Fields:\"}),/*#__PURE__*/_jsx(\"div\",{children:invalidFields.join(\", \")}),/*#__PURE__*/_jsxs(\"div\",{className:`${uniqueClassName}-validation-note`,children:[\"Available:\",\" \",availableFields.map(f=>f.title).join(\", \")||\"None found\"]})]}),/*#__PURE__*/_jsxs(\"div\",{className:`${uniqueClassName}-search-container`,children:[labelStyles?.labelToggle&&/*#__PURE__*/_jsxs(\"label\",{className:`${uniqueClassName}-label`,style:{...labelStyles,...labelStyles?.fontFamily,fontSize:labelStyles?.fontFamily?.fontSize||\"14px\"},children:[searchDisplayTitle,searchFields.length>0&&debugMode&&/*#__PURE__*/_jsxs(\"span\",{className:`${uniqueClassName}-field-badge`,children:[searchFields.length,\" field\",searchFields.length!==1?\"s\":\"\",\" • OR\"]})]}),/*#__PURE__*/_jsxs(\"div\",{className:`${uniqueClassName}-input-wrapper`,children:[iconStyles?.showSearchIcon&&/*#__PURE__*/_jsx(\"div\",{className:`${uniqueClassName}-search-icon`,children:/*#__PURE__*/_jsx(\"svg\",{width:iconStyles?.iconSize||16,height:iconStyles?.iconSize||16,viewBox:\"0 0 24 24\",fill:\"none\",style:{color:iconStyles?.iconColor||\"#6B7280\"},children:/*#__PURE__*/_jsx(\"path\",{d:\"M21 21L16.514 16.506M19 10.5C19 15.194 15.194 19 10.5 19S2 15.194 2 10.5 5.806 2 10.5 2 19 5.806 19 10.5Z\",stroke:\"currentColor\",strokeWidth:\"2\",strokeLinecap:\"round\",strokeLinejoin:\"round\"})})}),/*#__PURE__*/_jsx(\"input\",{type:\"text\",placeholder:dynamicPlaceholder,value:inputValue,onChange:e=>setInputValue(e.target.value),className:`${uniqueClassName}-input`,style:{...inputStyles,...inputStyles?.border,paddingLeft,paddingRight,...inputStyles?.fontFamily,fontSize:inputStyles?.fontFamily?.fontSize||\"14px\"}}),iconStyles?.showClearButton&&inputValue&&/*#__PURE__*/_jsx(\"button\",{onClick:handleClearSearch,className:`${uniqueClassName}-clear-button`,children:/*#__PURE__*/_jsx(\"svg\",{width:iconStyles?.clearIconSize||16,height:iconStyles?.clearIconSize||16,viewBox:\"0 0 24 24\",fill:\"none\",style:{color:iconStyles?.clearIconColor||\"#6B7280\"},children:/*#__PURE__*/_jsx(\"path\",{d:\"M18 6L6 18M6 6L18 18\",stroke:\"currentColor\",strokeWidth:\"2\",strokeLinecap:\"round\",strokeLinejoin:\"round\"})})})]})]})]})]});}// Property Controls - SIMPLIFIED\naddPropertyControls(CMSSearch,{collection:{type:ControlType.Slot,title:\"Collection\",description:\"Connect your CMS Collection List component here\",maxCount:1},searchFields:{type:ControlType.Array,title:\"Search Fields\",description:\"CMS field names to search through (uses OR logic across fields)\",control:{type:ControlType.String,placeholder:\"Field title (e.g., Title, Content, Description)\"},defaultValue:[\"Title\"]},searchDisplayTitle:{type:ControlType.String,title:\"Display Title\",description:\"Label shown in facet chips (e.g., 'Search', 'Find', 'Query')\",defaultValue:\"Search\",placeholder:\"Search\"},placeholder:{type:ControlType.String,title:\"Search Placeholder\",defaultValue:\"Search...\",description:\"Use {count} to show current result count\"},debounceDelay:{type:ControlType.Number,title:\"Debounce Delay (ms)\",description:\"Wait time before triggering search (prevents too many requests)\",min:0,max:1e3,step:50,defaultValue:300},containerStyles:{type:ControlType.Object,title:\"Container Styles\",description:\"Styling for outer container (background, padding, borders)\",controls:{backgroundColor:{type:ControlType.Color,title:\"Background Color\",description:\"Background color for search container\",defaultValue:\"transparent\",optional:true},padding:{type:ControlType.Padding,title:\"Padding\",description:\"Inner spacing for search container\",defaultValue:\"0px\"},border:{type:ControlType.Border,title:\"Border\",description:\"Border for search container\",defaultValue:{borderWidth:0,borderStyle:\"solid\",borderColor:\"rgba(0, 0, 0, 0)\"}},borderRadius:{type:ControlType.BorderRadius,title:\"Border Radius\",description:\"Corner rounding for search container\",defaultValue:\"0px\"}},defaultValue:[{backgroundColor:\"transparent\"}]},labelStyles:{type:ControlType.Object,title:\"Label Styles\",description:\"Styling for search label text (e.g., 'Search')\",controls:{labelToggle:{type:ControlType.Boolean,title:\"Toggle\",description:\"Show or hide the search label\",enabledTitle:\"Show\",disabledTitle:\"Hide\"},fontFamily:{type:ControlType.Font,title:\"Font\",description:\"Typography settings for label text\",controls:\"extended\",defaultValue:{fontSize:\"14px\"},hidden:props=>!props.labelToggle},padding:{type:ControlType.Padding,title:\"Padding\",description:\"Spacing around label text\",defaultValue:\"0px 0px 8px 0px\",hidden:props=>!props.labelToggle},color:{type:ControlType.Color,title:\"Color\",description:\"Label text color\",defaultValue:\"#333\",optional:true,hidden:props=>!props.labelToggle}},defaultValue:[{padding:\"8px 0 0 8px\",color:\"#333\"}]},inputStyles:{type:ControlType.Object,title:\"Input Styles\",description:\"Styling for the search input field\",controls:{fontFamily:{type:ControlType.Font,title:\"Font\",description:\"Typography settings for input text\",controls:\"extended\",defaultValue:{fontSize:\"14px\"}},padding:{type:ControlType.Padding,title:\"Padding\",description:\"Inner spacing within input field\",defaultValue:\"8px 16px 8px 16px\"},placeholderColor:{type:ControlType.Color,title:\"Placeholder Color\",description:\"Color of placeholder text\",defaultValue:\"#999\",optional:true},textColor:{type:ControlType.Color,title:\"Text Color\",description:\"Default input text color\",defaultValue:\"#ccc\",optional:true},backgroundColor:{type:ControlType.Color,title:\"Background Color\",description:\"Default input background color\",defaultValue:\"white\",optional:true},border:{type:ControlType.Border,title:\"Border\",description:\"Input field border styling\",defaultValue:{borderWidth:1,borderStyle:\"solid\",borderColor:\"#dee2e6\"}},borderRadius:{type:ControlType.BorderRadius,title:\"Border Radius\",description:\"Corner rounding for input field\",defaultValue:\"6px\"},selectedTextColor:{type:ControlType.Color,title:\"Focus Text Color\",description:\"Text color when input is focused\",defaultValue:\"#333\",optional:true},selectedBackgroundColor:{type:ControlType.Color,title:\"Focus Background\",description:\"Background color when focused\",defaultValue:\"white\",optional:true},selectedBorderColor:{type:ControlType.Color,title:\"Focus Border Color\",description:\"Border color when focused\",defaultValue:\"#000\"},hoverTextColor:{type:ControlType.Color,title:\"Hover Text Color\",description:\"Text color on hover\",defaultValue:\"#333\",optional:true},hoverBackgroundColor:{type:ControlType.Color,title:\"Hover Background\",description:\"Background color on hover\",defaultValue:\"#f8f9fa\",optional:true},hoverBorderColor:{type:ControlType.Color,title:\"Hover Border Color\",description:\"Border color on hover\",defaultValue:\"#007AFF\",optional:true}},defaultValue:[{backgroundColor:\"#fff\",borderRadius:\"6px\",selectedBorderColor:\"#000\"}]},iconStyles:{type:ControlType.Object,title:\"Icon Styles\",description:\"Styling for search and clear icons\",controls:{showSearchIcon:{type:ControlType.Boolean,title:\"Show Search Icon\",description:\"Display search icon in input field\",defaultValue:true},iconSize:{type:ControlType.Number,title:\"Search Icon Size\",description:\"Size of search icon\",defaultValue:16,min:12,max:50,step:1,unit:\"px\",hidden:props=>props.showSearchIcon===false},iconPosition:{type:ControlType.Number,title:\"Search Icon Position\",description:\"Distance from left edge\",defaultValue:12,min:0,max:100,step:1,unit:\"px\",hidden:props=>props.showSearchIcon===false},iconColor:{type:ControlType.Color,title:\"Search Icon Color\",description:\"Color of search icon\",defaultValue:\"#6B7280\",hidden:props=>props.showSearchIcon===false},showClearButton:{type:ControlType.Boolean,title:\"Show Clear Button\",description:\"Display X button to clear search\",defaultValue:true,hidden:props=>props.showSearchIcon===false},clearIconSize:{type:ControlType.Number,title:\"Clear Icon Size\",description:\"Size of clear (X) icon\",defaultValue:16,min:12,max:50,step:1,unit:\"px\",hidden:props=>props.showSearchIcon===false||props.showClearButton===false},clearIconPosition:{type:ControlType.Number,title:\"Clear Icon Position\",description:\"Distance from right edge\",defaultValue:8,min:0,max:100,step:1,unit:\"px\",hidden:props=>props.showSearchIcon===false||props.showClearButton===false},clearIconColor:{type:ControlType.Color,title:\"Clear Icon Color\",description:\"Color of clear icon\",defaultValue:\"#6B7280\",hidden:props=>props.showSearchIcon===false||props.showClearButton===false},clearIconBgColor:{type:ControlType.Color,title:\"Clear Icon Background\",description:\"Background color for clear button\",defaultValue:\"transparent\",hidden:props=>props.showSearchIcon===false||props.showClearButton===false},clearIconHoverColor:{type:ControlType.Color,title:\"Clear Icon Hover Color\",description:\"Icon color on hover\",defaultValue:\"#374151\",hidden:props=>props.showSearchIcon===false||props.showClearButton===false},clearIconHoverBgColor:{type:ControlType.Color,title:\"Clear Icon Hover Background Color\",defaultValue:\"#f3f4f6\",hidden:props=>props.showSearchIcon===false||props.showClearButton===false}},defaultValue:{showSearchIcon:true,showClearButton:true,iconSize:16,iconColor:\"#6B7280\"}},storeKey:{type:ControlType.String,title:\"Filter Group\",description:\"Components with same group share filters. Leave empty or 'auto' to use collection name.\",defaultValue:\"auto\",placeholder:\"auto (uses collection name)\"},urlPrefix:{type:ControlType.String,title:\"URL Prefix\",description:\"Prefix for URL parameter. If set, uses '{prefix}_search' instead of 'search'\",placeholder:\"e.g., 'product' creates '?product_search=...'\",optional:true},debugMode:{type:ControlType.Boolean,title:\"🛠 Debug Mode\",defaultValue:false}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"CMSSearch\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"any\",\"framerDisableUnlink\":\"\",\"framerSupportedLayoutHeight\":\"any\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./CMSSearch.map","import{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from\"react/jsx-runtime\";import{useEffect,useState,useMemo,useRef}from\"react\";import{addPropertyControls,ControlType,RenderTarget}from\"framer\";import{getCollectionStore,getCollectionStoreKey,getCollectionInfo,getAvailableFilterFields,evGetRandomString}from\"https://framerusercontent.com/modules/2VZikWBxCagm4nJReNjX/uFUqD0e9fJ1WAIOOmgia/store_management.js\";// Helper to generate Framer-style sort labels based on field type\nconst generateSortLabel=(fieldTitle,direction,fieldType)=>{// Determine the field type category\nconst isNumberField=fieldType===\"number\";const isDateField=fieldType===\"date\"||fieldTitle.toLowerCase().includes(\"date\")||fieldTitle.toLowerCase().includes(\"created\")||fieldTitle.toLowerCase().includes(\"updated\");const isTextField=fieldType===\"string\"||fieldType===\"richtext\"||!fieldType;// Generate label based on type and direction\nif(isNumberField){// Number fields: Low → High or High → Low\nreturn direction===\"asc\"?`${fieldTitle}: Low → High`:`${fieldTitle}: High → Low`;}else if(isDateField){// Date fields: Old → New or New → Old\nreturn direction===\"asc\"?`${fieldTitle}: Old → New`:`${fieldTitle}: New → Old`;}else if(isTextField){// Text fields: A → Z or Z → A\nreturn direction===\"asc\"?`${fieldTitle}: A → Z`:`${fieldTitle}: Z → A`;}// Fallback to generic labels\nreturn direction===\"asc\"?`${fieldTitle}: Ascending`:`${fieldTitle}: Descending`;};/**\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight any\n * @framerDisableUnlink\n */export default function CMSSort({collection,sortOptions=[],uiStyle=\"dropdown\",showLabel=true,labelText=\"Order\",showDefault=true,defaultText=\"Default\",defaultOption=\"\",autoLabels=true,sortId,storeKey,style,containerStyles={},labelStyles={},sortStyles={},id,...rest}){const newId=id?id:evGetRandomString();const uniqueClassName=`cms-collection-${newId}`;// Generate stable unique component ID for coordination with other sort components\n// Multiple CMSSort components can work together - each maintains its own sort in the store array\n// CRITICAL: Use a deterministic ID based on component props to ensure persistence across page loads\nconst componentId=useMemo(()=>{if(sortId)return sortId;// Create a stable ID based on component configuration\nconst configHash=JSON.stringify({sortOptions:sortOptions.map(opt=>({field:opt.field,direction:opt.direction})),uiStyle,labelText,storeKey:storeKey||\"auto\"});// Use a simple hash of the config to create a stable ID\nlet hash=0;for(let i=0;i<configHash.length;i++){const char=configHash.charCodeAt(i);hash=(hash<<5)-hash+char;hash=hash&hash// Convert to 32-bit integer\n;}return`cms-sort-${Math.abs(hash).toString(36)}`;},[sortId,sortOptions,uiStyle,labelText,storeKey]);// Get store key for this collection\nconst actualStoreKey=getCollectionStoreKey(collection,storeKey);// Initialize store immediately if we have a store key (fixes race condition)\nif(actualStoreKey){getCollectionStore(actualStoreKey);}// Extract collection info from slot connection\nconst collectionInfo=getCollectionInfo(collection);// Get store and subscribe to changes\nconst store=actualStoreKey?getCollectionStore(actualStoreKey):null;const[state,setState]=store?store():[null,null];// Local state for current selection\nconst[selectedSort,setSelectedSort]=useState(defaultOption||(showDefault?defaultText:\"\"));// Local state for custom dropdown open/close\nconst[isDropdownOpen,setIsDropdownOpen]=useState(false);const dropdownRef=useRef(null);// Ref to track previous store sort state to prevent circular updates\nconst prevStoreSortRef=useRef([]);const prevSelectedSortRef=useRef(selectedSort);const isPreview=RenderTarget.current()===RenderTarget.preview;// Get available fields for validation - memoized to prevent re-creation\nconst availableFields=useMemo(()=>{return collectionInfo?getAvailableFilterFields(collectionInfo.propertyControls):[];},[collectionInfo?.propertyControls]);// Process sort options with auto-generated labels if enabled - memoized\nconst processedSortOptions=useMemo(()=>{if(!autoLabels)return sortOptions;return sortOptions.map(option=>{// If label is already set and not empty, keep it\nif(option.label&&option.label.trim()!==\"\"){return option;}// Find field type from available fields\nconst fieldInfo=availableFields.find(f=>f.title.toLowerCase()===option.field.toLowerCase());// Generate label based on field type\nconst generatedLabel=generateSortLabel(option.field,option.direction,fieldInfo?.type);return{...option,label:generatedLabel};});},[sortOptions,autoLabels,availableFields]);// Add built-in \"Default\" option if enabled - memoized to prevent re-creation\nconst allSortOptions=useMemo(()=>{const options=showDefault?[{label:defaultText,field:\"\",direction:\"asc\"},...processedSortOptions]:processedSortOptions;return options;},[showDefault,defaultText,processedSortOptions,componentId]);// Find current sort option - memoized to prevent re-creation\nconst currentSortOption=useMemo(()=>allSortOptions.find(opt=>opt.label===selectedSort)||allSortOptions[0],[allSortOptions,selectedSort]);// Update store when selection changes - coordinate with other sort components\nuseEffect(()=>{if(!setState){return;}// Skip if this is a sync from store (prevent circular updates)\nif(selectedSort===prevSelectedSortRef.current){return;}// Update ref to track this change\nprevSelectedSortRef.current=selectedSort;// Use functional update to get fresh state\nsetState(currentState=>{if(!currentState)return currentState;const currentSorts=currentState.sort||[];const thisComponentSort=currentSorts.find(s=>s.componentId===componentId);if(!selectedSort||selectedSort===defaultText||currentSortOption.field===\"\"){// Remove this component's sort from store only if it exists\nif(thisComponentSort){const otherSorts=currentSorts.filter(s=>s.componentId!==componentId);return{...currentState,sort:otherSorts};}return currentState// No change needed\n;}else{// Check if we need to update (avoid unnecessary setState calls)\nconst newSort={id:`${componentId}-sort`,componentId:componentId,field:currentSortOption.field,direction:currentSortOption.direction,fieldType:availableFields.find(f=>f.title===currentSortOption.field)?.type};// Only update if the sort has actually changed\nif(!thisComponentSort||thisComponentSort.field!==newSort.field||thisComponentSort.direction!==newSort.direction){const otherSorts=currentSorts.filter(s=>s.componentId!==componentId);const newSortArray=[...otherSorts,newSort];return{...currentState,sort:newSortArray};}else{return currentState// No change needed\n;}}});},[selectedSort,currentSortOption.field,currentSortOption.direction,componentId,availableFields,defaultText]);// Initial sync when component mounts with existing store state\nuseEffect(()=>{if(!state||allSortOptions.length===0)return;// Only run on initial mount - check if refs are empty\nif(prevStoreSortRef.current.length>0)return;const currentStoreSort=state.sort||[];const thisComponentSort=currentStoreSort.find(s=>s.componentId===componentId);if(thisComponentSort){const matchingOption=allSortOptions.find(opt=>opt.field===thisComponentSort.field&&opt.direction===thisComponentSort.direction);if(matchingOption&&matchingOption.label!==selectedSort){// Initialize refs to prevent loops\nprevSelectedSortRef.current=matchingOption.label;prevStoreSortRef.current=currentStoreSort;setSelectedSort(matchingOption.label);}}else{// No stored sort - initialize refs with current state\nprevStoreSortRef.current=currentStoreSort;prevSelectedSortRef.current=selectedSort;}},[allSortOptions.length,state,componentId]);// Sync with default option changes\nuseEffect(()=>{if(defaultOption!==selectedSort&&defaultOption){setSelectedSort(defaultOption);}},[defaultOption]);// Sync local state with external store changes (for CMSClearAll compatibility and initial restoration)\nuseEffect(()=>{if(!state)return;const currentStoreSort=state.sort||[];const currentSelectedSort=selectedSort;// Only process if store sort actually changed\nif(JSON.stringify(currentStoreSort)===JSON.stringify(prevStoreSortRef.current)){return;}const thisComponentSort=currentStoreSort.find(s=>s.componentId===componentId);// If external clear removed this component's sort, reset UI\nif(!thisComponentSort&&currentSelectedSort!==defaultText){setSelectedSort(defaultText);prevStoreSortRef.current=currentStoreSort;prevSelectedSortRef.current=defaultText;return;}// If external changes set a different sort for this component, sync UI\nif(thisComponentSort){const matchingOption=allSortOptions.find(opt=>opt.field===thisComponentSort.field&&opt.direction===thisComponentSort.direction);if(matchingOption&&matchingOption.label!==currentSelectedSort){// Update refs BEFORE setting state to prevent loops\nprevSelectedSortRef.current=matchingOption.label;prevStoreSortRef.current=currentStoreSort;setSelectedSort(matchingOption.label);}else if(matchingOption&&matchingOption.label===currentSelectedSort){// Values match - just update refs without state change\nprevStoreSortRef.current=currentStoreSort;}}// Only update ref if we didn't update it above\nif(JSON.stringify(prevStoreSortRef.current)!==JSON.stringify(currentStoreSort)){prevStoreSortRef.current=currentStoreSort;}},[state?.sort,componentId,allSortOptions,defaultText]);const handleSortChange=sortLabel=>{setSelectedSort(sortLabel);setIsDropdownOpen(false)// Close dropdown after selection\n;};// Handle click outside to close dropdown\nuseEffect(()=>{const handleClickOutside=event=>{if(dropdownRef.current&&!dropdownRef.current.contains(event.target)){setIsDropdownOpen(false);}};if(isDropdownOpen){document.addEventListener(\"mousedown\",handleClickOutside);return()=>{document.removeEventListener(\"mousedown\",handleClickOutside);};}},[isDropdownOpen]);const defaultContainerStyles={backgroundColor:\"#ffffff\",padding:\"0px\",borderRadius:\"6px\",border:\"1px solid #dee2e6\",gap:8,...containerStyles};const defaultLabelStyles={labelPosition:false,labelFont:\"inherit\",labelColor:\"#333\",labelPadding:\"0px\",...labelStyles};// Default styles\nconst defaultSortStyles={backgroundColor:\"#ffffff\",border:\"1px solid #dee2e6\",borderRadius:\"6px\",sortFont:\"inherit\",color:\"#333\",padding:\"8px 16px 8px 16px\",hoverBackgroundColor:\"#f8f9fa\",hoverTextColor:\"#333\",hoverBorderColor:\"#007AFF\",selectedBackgroundColor:\"#007AFF\",selectedTextColor:\"#ffffff\",selectedBorderColor:\"#007AFF\",arrowColor:\"#333\",arrowSize:16,arrowPosition:8,scale:20,svgBackgroundColor:\"#fff\",svgBorder:{borderWidth:2,borderStyle:\"solid\",borderColor:\"#dee2e6\"},selectedSvgBackgroundColor:\"#fff\",selectedSvgBorderColor:\"#007AFF\",...sortStyles};// Validation\nif(!collection||!Array.isArray(collection)||!collection.length){return /*#__PURE__*/_jsx(\"div\",{style:{...style,padding:12,backgroundColor:\"#fff3cd\",border:\"1px solid #ffeaa7\",borderRadius:4,color:\"#856404\",fontSize:12},children:\"⚠️ Connect CMS Collection to enable sorting\"});}if(sortOptions.length===0){return /*#__PURE__*/_jsx(\"div\",{style:{...style,padding:12,backgroundColor:\"#d1ecf1\",border:\"1px solid #bee5eb\",borderRadius:4,color:\"#0c5460\",fontSize:12},children:\"💡 Configure sort options in the property panel\"});}const renderDropdownStyle=()=>/*#__PURE__*/_jsxs(\"div\",{className:`${uniqueClassName}-dropdown`,children:[showLabel&&/*#__PURE__*/_jsxs(\"label\",{className:`${uniqueClassName}-label`,style:{...defaultLabelStyles.labelFont,fontSize:defaultLabelStyles.labelFont.fontSize||\"14px\"},children:[labelText,\":\"]}),/*#__PURE__*/_jsx(\"select\",{value:selectedSort,onChange:e=>handleSortChange(e.target.value),className:`${uniqueClassName}-select`,style:{...defaultSortStyles.sortFont,fontSize:defaultSortStyles.sortFont.fontSize||\"14px\"},children:allSortOptions.map((option,index)=>/*#__PURE__*/_jsx(\"option\",{value:option.label,children:option.label},index))})]});const renderCustomDropdownStyle=()=>/*#__PURE__*/_jsxs(\"div\",{className:`${uniqueClassName}-custom-dropdown-wrapper`,children:[showLabel&&/*#__PURE__*/_jsxs(\"label\",{className:`${uniqueClassName}-label`,children:[labelText,\":\"]}),/*#__PURE__*/_jsxs(\"div\",{className:`${uniqueClassName}-custom-dropdown`,ref:dropdownRef,children:[/*#__PURE__*/_jsxs(\"div\",{className:`${uniqueClassName}-custom-dropdown-trigger`,onClick:()=>setIsDropdownOpen(!isDropdownOpen),children:[/*#__PURE__*/_jsx(\"span\",{className:`${uniqueClassName}-custom-dropdown-value`,children:selectedSort}),/*#__PURE__*/_jsx(\"span\",{className:`${uniqueClassName}-custom-dropdown-arrow ${isDropdownOpen?\"open\":\"\"}`,children:\"▼\"})]}),isDropdownOpen&&/*#__PURE__*/_jsx(\"div\",{className:`${uniqueClassName}-custom-dropdown-menu`,children:allSortOptions.map((option,index)=>/*#__PURE__*/_jsx(\"div\",{className:`${uniqueClassName}-custom-dropdown-item ${selectedSort===option.label?\"selected\":\"\"}`,onClick:()=>handleSortChange(option.label),children:option.label},index))})]})]});const renderButtonStyle=()=>/*#__PURE__*/_jsxs(\"div\",{className:`${uniqueClassName}-buttons`,children:[showLabel&&/*#__PURE__*/_jsxs(\"label\",{className:`${uniqueClassName}-label`,children:[labelText,\":\"]}),/*#__PURE__*/_jsx(\"div\",{className:`${uniqueClassName}-button-group`,children:allSortOptions.map((option,index)=>/*#__PURE__*/_jsx(\"button\",{onClick:()=>handleSortChange(option.label),className:`${uniqueClassName}-button ${selectedSort===option.label?\"selected\":\"\"}`,children:option.label},index))})]});const renderRadioStyle=()=>/*#__PURE__*/_jsxs(\"div\",{className:`${uniqueClassName}-radio`,children:[showLabel&&/*#__PURE__*/_jsxs(\"label\",{className:`${uniqueClassName}-label`,children:[labelText,\":\"]}),/*#__PURE__*/_jsx(\"div\",{className:`${uniqueClassName}-radio-group`,children:allSortOptions.map((option,index)=>{const isSelected=selectedSort===option.label;return /*#__PURE__*/_jsxs(\"div\",{className:`${uniqueClassName}-radio-item ${isSelected?\"selected\":\"\"}`,onClick:()=>handleSortChange(option.label),children:[/*#__PURE__*/_jsx(\"input\",{type:\"radio\",name:uniqueClassName,value:option.label,checked:isSelected,readOnly:true,style:{position:\"absolute\",opacity:0,width:0,height:0,margin:0,padding:0}}),/*#__PURE__*/_jsx(\"span\",{className:`${uniqueClassName}-radio-item-icon`,children:/*#__PURE__*/_jsx(\"span\",{})}),/*#__PURE__*/_jsx(\"span\",{children:option.label})]},index);})})]});const renderSortUI=()=>{switch(uiStyle){case\"custom-dropdown\":return renderCustomDropdownStyle();case\"buttons\":return renderButtonStyle();case\"radio\":return renderRadioStyle();default:return renderDropdownStyle();}};return /*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"style\",{children:`\n              .${uniqueClassName}-dropdown,\n              .${uniqueClassName}-buttons,\n              .${uniqueClassName}-radio,\n              .${uniqueClassName}-chips {\n                  display: flex;\n                  align-items: center;\n                  gap: ${defaultContainerStyles.gap}px;\n                  flex-wrap: wrap;\n                  padding: ${defaultContainerStyles.padding};\n                  border-radius: ${defaultContainerStyles.borderRadius};\n                  ${(()=>{if(typeof defaultContainerStyles?.border===\"string\"){return`border: ${defaultContainerStyles.border};`;}else if(defaultContainerStyles?.border){const border=defaultContainerStyles.border;return`\n      ${border.borderWidth!==undefined?`border-width: ${border.borderWidth}px;`:\"\"}\n      ${border.borderTopWidth!==undefined?`border-top-width: ${border.borderTopWidth}px;`:\"\"}\n      ${border.borderBottomWidth!==undefined?`border-bottom-width: ${border.borderBottomWidth}px;`:\"\"}\n      ${border.borderLeftWidth!==undefined?`border-left-width: ${border.borderLeftWidth}px;`:\"\"}\n      ${border.borderRightWidth!==undefined?`border-right-width: ${border.borderRightWidth}px;`:\"\"}\n      ${border.borderStyle?`border-style: ${border.borderStyle};`:\"border-style: solid;\"}\n      ${border.borderColor?`border-color: ${border.borderColor};`:\"border-color: #dee2e6;\"}\n    `;}else{return\"border: none;\";}})()}\n                  background-color: ${defaultContainerStyles.backgroundColor};\n              }\n\n              .${uniqueClassName}-label {\n                  display: ${defaultLabelStyles.labelPosition===true?\"block\":\"inline-block\"};\n                  width: ${defaultLabelStyles.labelPosition===true?\"100%\":\"auto\"};\n                  font-family: ${defaultLabelStyles?.labelFont?.fontFamily||\"inherit\"};\n                  font-weight: ${defaultLabelStyles?.labelFont?.fontWeight||\"inherit\"};\n                  font-style: ${defaultLabelStyles?.labelFont?.fontStyle||\"inherit\"};\n                  font-size: ${defaultLabelStyles?.labelFont?.fontSize||\"14px\"};\n                  padding: ${defaultLabelStyles.labelPadding};\n                  color: ${defaultLabelStyles.labelColor};\n                  margin: 0;\n              }\n\n              .${uniqueClassName}-select {\n                  background-color: ${defaultSortStyles.backgroundColor};\n                  ${(()=>{if(typeof defaultSortStyles?.border===\"string\"){return`border: ${defaultSortStyles.border};`;}else if(defaultSortStyles?.border){const border=defaultSortStyles.border;return`\n      ${border.borderWidth!==undefined?`border-width: ${border.borderWidth}px;`:\"\"}\n      ${border.borderTopWidth!==undefined?`border-top-width: ${border.borderTopWidth}px;`:\"\"}\n      ${border.borderBottomWidth!==undefined?`border-bottom-width: ${border.borderBottomWidth}px;`:\"\"}\n      ${border.borderLeftWidth!==undefined?`border-left-width: ${border.borderLeftWidth}px;`:\"\"}\n      ${border.borderRightWidth!==undefined?`border-right-width: ${border.borderRightWidth}px;`:\"\"}\n      ${border.borderStyle?`border-style: ${border.borderStyle};`:\"border-style: solid;\"}\n      ${border.borderColor?`border-color: ${border.borderColor};`:\"border-color: #dee2e6;\"}\n    `;}else{return\"border: none;\";}})()}                    \n                  border-radius: ${defaultSortStyles.borderRadius};\n                  font-family: ${defaultSortStyles?.sortFont?.fontFamily||\"inherit\"};\n                  font-weight: ${defaultSortStyles?.sortFont?.fontWeight||\"inherit\"};\n                  font-style: ${defaultSortStyles?.sortFont?.fontStyle||\"inherit\"};\n                  font-size: ${defaultSortStyles?.sortFont?.fontSize||\"14px\"};\n                  color: ${defaultSortStyles.color};\n                  padding: ${defaultSortStyles.padding};\n                  width: ${defaultLabelStyles.labelPosition===true?\"100%\":\"auto\"};\n                  outline: none;\n                  cursor: pointer;\n                  min-width: 120px;\n                  -webkit-appearance: none;\n                  -moz-appearance: none;\n                  appearance: none;\n                  background-image: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M7 10l5 5 5-5' fill='none' stroke='${defaultSortStyles?.arrowColor||\"currentColor\"}' stroke-width='2'/%3E%3C/svg%3E\");\n                  background-repeat: no-repeat;\n                  background-size: ${defaultSortStyles?.arrowSize??16}px ${defaultSortStyles?.arrowSize??16}px;\n                  background-position: right ${defaultSortStyles?.arrowPosition??8}px center;\n                  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;\n                  cursor: pointer;\n              }\n\n              .${uniqueClassName}-select:focus {\n                  border-color: ${defaultSortStyles?.selectedBorderColor||\"#80bdff\"};\n              }\n\n              .${uniqueClassName}-button-group,\n              .${uniqueClassName}-chip-group {\n                  display: flex;\n                  gap: ${defaultSortStyles.gap}px;\n                  flex-wrap: wrap;\n              }\n\n              .${uniqueClassName}-button,\n              .${uniqueClassName}-chip {\n                  font-family: ${defaultSortStyles?.sortFont?.fontFamily||\"inherit\"};\n                  font-weight: ${defaultSortStyles?.sortFont?.fontWeight||\"inherit\"};\n                  font-style: ${defaultSortStyles?.sortFont?.fontStyle||\"inherit\"};\n                  color: ${defaultSortStyles.color};\n                  background-color: ${defaultSortStyles.backgroundColor};\n                  ${(()=>{if(typeof defaultSortStyles?.border===\"string\"){return`border: ${defaultSortStyles.border};`;}else if(defaultSortStyles?.border){const border=defaultSortStyles.border;return`\n      ${border.borderWidth!==undefined?`border-width: ${border.borderWidth}px;`:\"\"}\n      ${border.borderTopWidth!==undefined?`border-top-width: ${border.borderTopWidth}px;`:\"\"}\n      ${border.borderBottomWidth!==undefined?`border-bottom-width: ${border.borderBottomWidth}px;`:\"\"}\n      ${border.borderLeftWidth!==undefined?`border-left-width: ${border.borderLeftWidth}px;`:\"\"}\n      ${border.borderRightWidth!==undefined?`border-right-width: ${border.borderRightWidth}px;`:\"\"}\n      ${border.borderStyle?`border-style: ${border.borderStyle};`:\"border-style: solid;\"}\n      ${border.borderColor?`border-color: ${border.borderColor};`:\"border-color: #dee2e6;\"}\n    `;}else{return\"border: none;\";}})()}\n                  border-radius: ${defaultSortStyles.borderRadius};\n                  font-size: ${defaultSortStyles?.sortFont?.fontSize||\"14px\"};\n                  padding: ${defaultSortStyles.padding};\n                  cursor: pointer;\n                  transition: all 0.2s ease;\n                  white-space: nowrap;\n                  padding: 6px 12px;\n              }\n\n              .${uniqueClassName}-button:hover,\n              .${uniqueClassName}-chip:hover {\n                  background-color: ${defaultSortStyles.hoverBackgroundColor};\n                  color: ${defaultSortStyles.hoverTextColor};\n                  border-color: ${defaultSortStyles.hoverBorderColor};\n              }\n\n              .${uniqueClassName}-button.selected,\n              .${uniqueClassName}-chip.selected {\n                  background-color: ${defaultSortStyles.selectedBackgroundColor};\n                  color: ${defaultSortStyles.selectedTextColor};\n                  border-color: ${defaultSortStyles.selectedBorderColor};\n              }\n\n              .${uniqueClassName}-radio-group {\n                  display: flex;\n                  flex-direction: column;\n                  gap: ${defaultSortStyles.gap}px;\n              }\n\n              .${uniqueClassName}-radio-item {\n                  display: flex;\n                  align-items: center;\n                  gap: 8px;\n                  cursor: pointer;\n                  font-size: ${defaultSortStyles?.sortFont?.fontSize||\"14px\"};\n                  color: ${defaultSortStyles.color};\n              }\n\n              .${uniqueClassName}-radio-item.selected {\n                color: ${defaultSortStyles.selectedTextColor};\n              }\n\n              .${uniqueClassName}-radio-item input[type=\"radio\"] {\n                margin: 0;\n              }\n              \n              .${uniqueClassName}-radio-item-icon {\n                display: inline-flex;\n                align-items: center;\n                justify-content: center;\n                width: ${defaultSortStyles.scale}px;\n                height: ${defaultSortStyles.scale}px;\n                min-width: ${defaultSortStyles.scale}px;\n                min-height: ${defaultSortStyles.scale}px;\n                  ${(()=>{if(typeof defaultSortStyles?.svgBorder===\"string\"){return`border: ${defaultSortStyles.svgBorder};`;}else if(defaultSortStyles?.svgBorder){const border=defaultSortStyles.svgBorder;return`\n      ${border.borderWidth!==undefined?`border-width: ${border.borderWidth}px;`:\"\"}\n      ${border.borderTopWidth!==undefined?`border-top-width: ${border.borderTopWidth}px;`:\"\"}\n      ${border.borderBottomWidth!==undefined?`border-bottom-width: ${border.borderBottomWidth}px;`:\"\"}\n      ${border.borderLeftWidth!==undefined?`border-left-width: ${border.borderLeftWidth}px;`:\"\"}\n      ${border.borderRightWidth!==undefined?`border-right-width: ${border.borderRightWidth}px;`:\"\"}\n      ${border.borderStyle?`border-style: ${border.borderStyle};`:\"border-style: solid;\"}\n      ${border.borderColor?`border-color: ${border.borderColor};`:\"border-color: #dee2e6;\"}\n    `;}else{return\"border: none;\";}})()}\n                border-radius: 50%;\n                position: relative;\n                box-sizing: border-box;\n              }\n              \n              .${uniqueClassName}-radio-item-icon > span {\n                display: none;\n                border-radius: 50%;\n                background-color: ${defaultSortStyles.svgBackgroundColor};\n              }\n              \n              .${uniqueClassName}-radio-item.selected .${uniqueClassName}-radio-item-icon {\n                border-color: ${defaultSortStyles.selectedSvgBorderColor};\n              }\n              \n              .${uniqueClassName}-radio-item.selected .${uniqueClassName}-radio-item-icon > span {\n                display: block;\n                width: ${defaultSortStyles.scale*.6}px;\n                height: ${defaultSortStyles.scale*.6}px;\n                background-color: ${defaultSortStyles.selectedSvgBackgroundColor};\n              }\n\n              /* Custom Dropdown Styles */\n              .${uniqueClassName}-custom-dropdown-wrapper {\n                  display: flex;\n                  align-items: center;\n                  gap: ${defaultSortStyles.gap}px;\n                  flex-wrap: wrap;\n              }\n\n              .${uniqueClassName}-custom-dropdown {\n                  position: relative;\n                  min-width: 180px;\n              }\n\n              .${uniqueClassName}-custom-dropdown-trigger {\n                  display: flex;\n                  align-items: center;\n                  justify-content: space-between;\n                  background-color: ${defaultSortStyles.backgroundColor};\n                  border: 1px solid ${defaultSortStyles.borderColor};\n                  border-radius: ${defaultSortStyles.borderRadius};\n                  padding: ${defaultSortStyles.padding};\n                  cursor: pointer;\n                  transition: all 0.2s ease;\n                  user-select: none;\n              }\n\n              .${uniqueClassName}-custom-dropdown-trigger:hover {\n                  border-color: #80bdff;\n              }\n\n              .${uniqueClassName}-custom-dropdown-value {\n                  font-size: ${defaultSortStyles?.sortFont?.fontSize||\"14px\"};\n                  color: ${defaultSortStyles.color};\n                  font-weight: ${defaultSortStyles.fontWeight};\n                  flex: 1;\n              }\n\n              .${uniqueClassName}-custom-dropdown-arrow {\n                  font-size: 10px;\n                  color: ${defaultSortStyles.arrowColor};\n                  margin-left: 8px;\n                  transition: transform 0.2s ease;\n              }\n\n              .${uniqueClassName}-custom-dropdown-arrow.open {\n                  transform: rotate(180deg);\n              }\n\n              .${uniqueClassName}-custom-dropdown-menu {\n                  position: absolute;\n                  top: calc(100% + 4px);\n                  left: 0;\n                  right: 0;\n                  background-color: ${defaultSortStyles.dropdownBackgroundColor};\n                  border: 1px solid ${defaultSortStyles.dropdownBorderColor};\n                  border-radius: ${defaultSortStyles.dropdownBorderRadius};\n                  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);\n                  max-height: ${defaultSortStyles.dropdownMaxHeight}px;\n                  overflow-y: auto;\n                  z-index: 1000;\n                  animation: ${uniqueClassName}-dropdown-fade-in 0.15s ease;\n              }\n\n              @keyframes ${uniqueClassName}-dropdown-fade-in {\n                  from {\n                      opacity: 0;\n                      transform: translateY(-4px);\n                  }\n                  to {\n                      opacity: 1;\n                      transform: translateY(0);\n                  }\n              }\n\n              .${uniqueClassName}-custom-dropdown-item {\n                  padding: ${defaultSortStyles?.padding||\"8px\"};\n                  font-size: ${defaultSortStyles?.sortFont?.fontSize||\"14px\"};\n                  color: ${defaultSortStyles.color};\n                  cursor: pointer;\n                  transition: background-color 0.15s ease;\n                  user-select: none;\n              }\n\n              .${uniqueClassName}-custom-dropdown-item:hover {\n                  background-color: ${defaultSortStyles.dropdownItemHoverBackground};\n              }\n\n              .${uniqueClassName}-custom-dropdown-item.selected {\n                  background-color: ${defaultSortStyles.selectedBackgroundColor};\n                  color: ${defaultSortStyles.selectedTextColor};\n              }\n          `}),/*#__PURE__*/_jsx(\"div\",{...rest,className:uniqueClassName,style:style,children:renderSortUI()})]});}addPropertyControls(CMSSort,{collection:{type:ControlType.Slot,title:\"Collection\",description:\"Connect your CMS Collection List component here\",maxCount:1},sortOptions:{type:ControlType.Array,title:\"Sort Options\",description:\"Configure available sort options\",control:{type:ControlType.Object,controls:{label:{type:ControlType.String,title:\"Display Label\",description:\"Text shown to users (leave empty to auto-generate)\",placeholder:\"Auto-generated\"},field:{type:ControlType.String,title:\"Field Name\",description:\"CMS field to sort by\",placeholder:\"e.g., Title, Created, Price\"},direction:{type:ControlType.Enum,title:\"Direction\",options:[\"asc\",\"desc\"],optionTitles:[\"Ascending\",\"Descending\"],defaultValue:\"desc\"}}},defaultValue:[{label:\"\",field:\"Created\",direction:\"desc\"},{label:\"\",field:\"Created\",direction:\"asc\"},{label:\"\",field:\"Title\",direction:\"asc\"},{label:\"\",field:\"Title\",direction:\"desc\"}]},// @todo: \"custom-dropdown\"\nuiStyle:{type:ControlType.Enum,title:\"UI Style\",description:\"Style of the sort controls\",options:[\"dropdown\",\"buttons\",\"radio\"],optionTitles:[\"Dropdown\",\"Pill\",\"Radio\"],defaultValue:\"dropdown\"},showLabel:{type:ControlType.Boolean,title:\"Show Label\",description:\"Show a label above the sort controls\",defaultValue:true},labelText:{type:ControlType.String,title:\"Label Text\",description:\"Label shown above sort controls\",defaultValue:\"Order\",hidden:props=>!props.showLabel},showDefault:{type:ControlType.Boolean,title:\"Show Default\",description:\"Show a default option to clear sorting\",defaultValue:true},defaultText:{type:ControlType.String,title:\"Default Text\",description:\"Text for the default option\",defaultValue:\"Default\",hidden:props=>!props.showDefault},defaultOption:{type:ControlType.String,title:\"Default Selection\",description:\"Initial sort option (must match a label)\",placeholder:\"Leave empty for Default\"},autoLabels:{type:ControlType.Boolean,title:\"Auto Labels\",description:\"Auto-generate labels based on field type (Number: Low→High, Text: A→Z, Date: Old→New)\",defaultValue:true},sortId:{type:ControlType.String,title:\"Sort ID\",description:\"Unique identifier for coordination with other sort components (auto-generated if empty)\",placeholder:\"auto-generated\"},storeKey:{type:ControlType.String,title:\"Filter Group\",description:\"Components with same group share state. Leave empty or 'auto' to use collection name.\",defaultValue:\"auto\",placeholder:\"auto (uses collection name)\"},containerStyles:{type:ControlType.Object,title:\"Container Styles\",description:\"Styling for the search component wrapper\",controls:{backgroundColor:{type:ControlType.Color,title:\"Background\",description:\"Container background color\",defaultValue:\"transparent\",optional:true},border:{type:ControlType.Border,title:\"Border\",description:\"Container border styling\",defaultValue:{borderWidth:0,borderStyle:\"solid\",borderColor:\"rgba(0, 0, 0, 0)\"}},borderRadius:{type:ControlType.BorderRadius,title:\"Border Radius\",description:\"Corner rounding for container\",defaultValue:\"0px\"},gap:{type:ControlType.Number,title:\"Gap\",description:\"Space between label and sort controls\",defaultValue:8,unit:\"px\"},padding:{type:ControlType.Padding,title:\"Padding\",description:\"Inner spacing within container\",defaultValue:\"0px\"}},defaultValue:[{backgroundColor:\"transparent\",gap:8,padding:\"0px\"}]},labelStyles:{type:ControlType.Object,title:\"Label Styles\",description:\"Styling for sort label text\",controls:{labelPosition:{type:ControlType.Boolean,title:\"Label Position\",description:\"Position of sort label relative to controls\",enabledTitle:\"Top\",disabledTitle:\"Left\",defaultValue:false},labelFont:{type:ControlType.Font,title:\"Font\",description:\"Typography settings for label\",controls:\"extended\",defaultValue:{fontSize:\"14px\"}},labelPadding:{type:ControlType.Padding,title:\"Padding\",description:\"Spacing around label text\",defaultValue:\"0px\"},labelColor:{type:ControlType.Color,title:\"Color\",description:\"Label text color\",defaultValue:\"#333\",optional:true}},defaultValue:[{labelPadding:\"0px\",labelColor:\"#333\"}]},sortStyles:{type:ControlType.Object,title:\"Sort Styles\",description:\"Styling for sort option buttons/items\",controls:{sortFont:{type:ControlType.Font,title:\"Font\",description:\"Typography for sort options\",controls:\"extended\",defaultValue:{fontSize:\"14px\"}},color:{type:ControlType.Color,title:\"Text Color\",description:\"Default text color for options\",defaultValue:\"#333\"},backgroundColor:{type:ControlType.Color,title:\"Background\",description:\"Default background color\",defaultValue:\"#ffffff\",hidden(props,allProps){return allProps.uiStyle===\"radio\";}},border:{type:ControlType.Border,title:\"Border\",description:\"Border styling for options\",defaultValue:{borderWidth:1,borderStyle:\"solid\",borderColor:\"#dee2e6\"},hidden(props,allProps){return allProps.uiStyle===\"radio\";}},borderRadius:{type:ControlType.BorderRadius,title:\"Border Radius\",description:\"Corner rounding for options\",defaultValue:\"6px\"},padding:{type:ControlType.Padding,title:\"Padding\",description:\"Inner spacing for options\",defaultValue:\"8px 16px 8px 16px\"},gap:{type:ControlType.Number,title:\"Gap\",description:\"Space between sort options\",defaultValue:8,unit:\"px\"},hoverTextColor:{type:ControlType.Color,title:\"Hover Text Color\",description:\"Text color on hover\",defaultValue:\"#333333\"},hoverBackgroundColor:{type:ControlType.Color,title:\"Hover Background\",description:\"Background color on hover\",defaultValue:\"#ffffff\",hidden(props,allProps){return allProps.uiStyle===\"radio\";}},hoverBorderColor:{type:ControlType.Color,title:\"Hover Border Color\",description:\"Border color on hover\",defaultValue:\"#007AFF\",hidden(props,allProps){return allProps.uiStyle===\"radio\";}},selectedTextColor:{type:ControlType.Color,title:\"Selected Text Color\",description:\"Text color when option is selected\",defaultValue:\"#ffffff\"},selectedBackgroundColor:{type:ControlType.Color,title:\"Selected Background\",description:\"Background when selected\",defaultValue:\"#007AFF\",hidden(props,allProps){return allProps.uiStyle===\"radio\";}},selectedBorderColor:{type:ControlType.Color,title:\"Selected Border Color\",description:\"Border color when selected\",defaultValue:\"#007AFF\",hidden(props,allProps){return allProps.uiStyle===\"radio\";}},arrowSize:{type:ControlType.Number,title:\"Arrow Size\",description:\"Size of dropdown arrow icon\",defaultValue:16,step:1,unit:\"px\",hidden(props,allProps){return allProps.uiStyle!==\"dropdown\";}},arrowPosition:{type:ControlType.Number,title:\"Arrow Position\",description:\"Distance of arrow from right edge\",defaultValue:8,step:1,unit:\"px\",hidden(props,allProps){return allProps.uiStyle!==\"dropdown\";}},arrowColor:{type:ControlType.Color,title:\"Arrow Color\",description:\"Color of dropdown arrow icon\",defaultValue:\"\",hidden(props,allProps){return allProps.uiStyle!==\"dropdown\";}},scale:{type:ControlType.Number,title:\"Radio Size\",description:\"Size of radio button circles\",defaultValue:20,min:10,max:100,step:1,unit:\"px\",hidden(props,allProps){return allProps.uiStyle!==\"radio\";}},svgBackgroundColor:{type:ControlType.Color,title:\"Radio Background\",description:\"Background color for radio buttons\",defaultValue:\"#fff\",hidden(props,allProps){return allProps.uiStyle!==\"radio\";}},svgBorder:{type:ControlType.Border,title:\"Radio Border\",description:\"Border styling for radio buttons\",defaultValue:{borderWidth:2,borderStyle:\"solid\",borderColor:\"#dee2e6\"},hidden(props,allProps){return allProps.uiStyle!==\"radio\";}},selectedSvgBackgroundColor:{type:ControlType.Color,title:\"Selected Radio Background\",description:\"Background color when radio is selected\",defaultValue:\"#007AFF\",hidden(props,allProps){return allProps.uiStyle!==\"radio\";}},selectedSvgBorderColor:{type:ControlType.Color,title:\"Selected Radio Border\",description:\"Border color when radio is selected\",defaultValue:\"#007AFF\",hidden(props,allProps){return allProps.uiStyle!==\"radio\";}}}}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"CMSSort\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"any\",\"framerDisableUnlink\":\"\",\"framerSupportedLayoutWidth\":\"any\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./CMSSort.map","// Generated by Framer (c0aead9)\nimport{fontStore}from\"framer\";fontStore.loadFonts([\"Inter-SemiBold\",\"Inter-Bold\",\"Inter-BoldItalic\",\"Inter-SemiBoldItalic\"]);export const fonts=[{explicitInter:true,fonts:[{cssFamilyName:\"Inter\",source:\"framer\",style:\"normal\",uiFamilyName:\"Inter\",unicodeRange:\"U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F\",url:\"https://framerusercontent.com/assets/hyOgCu0Xnghbimh0pE8QTvtt2AU.woff2\",weight:\"600\"},{cssFamilyName:\"Inter\",source:\"framer\",style:\"normal\",uiFamilyName:\"Inter\",unicodeRange:\"U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116\",url:\"https://framerusercontent.com/assets/NeGmSOXrPBfEFIy5YZeHq17LEDA.woff2\",weight:\"600\"},{cssFamilyName:\"Inter\",source:\"framer\",style:\"normal\",uiFamilyName:\"Inter\",unicodeRange:\"U+1F00-1FFF\",url:\"https://framerusercontent.com/assets/oYaAX5himiTPYuN8vLWnqBbfD2s.woff2\",weight:\"600\"},{cssFamilyName:\"Inter\",source:\"framer\",style:\"normal\",uiFamilyName:\"Inter\",unicodeRange:\"U+0370-03FF\",url:\"https://framerusercontent.com/assets/lEJLP4R0yuCaMCjSXYHtJw72M.woff2\",weight:\"600\"},{cssFamilyName:\"Inter\",source:\"framer\",style:\"normal\",uiFamilyName:\"Inter\",unicodeRange:\"U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF\",url:\"https://framerusercontent.com/assets/cRJyLNuTJR5jbyKzGi33wU9cqIQ.woff2\",weight:\"600\"},{cssFamilyName:\"Inter\",source:\"framer\",style:\"normal\",uiFamilyName:\"Inter\",unicodeRange:\"U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2070, U+2074-207E, U+2080-208E, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD\",url:\"https://framerusercontent.com/assets/yDtI2UI8XcEg1W2je9XPN3Noo.woff2\",weight:\"600\"},{cssFamilyName:\"Inter\",source:\"framer\",style:\"normal\",uiFamilyName:\"Inter\",unicodeRange:\"U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+1EA0-1EF9, U+20AB\",url:\"https://framerusercontent.com/assets/A0Wcc7NgXMjUuFdquHDrIZpzZw0.woff2\",weight:\"600\"},{cssFamilyName:\"Inter\",source:\"framer\",style:\"normal\",uiFamilyName:\"Inter\",unicodeRange:\"U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F\",url:\"https://framerusercontent.com/assets/DpPBYI0sL4fYLgAkX8KXOPVt7c.woff2\",weight:\"700\"},{cssFamilyName:\"Inter\",source:\"framer\",style:\"normal\",uiFamilyName:\"Inter\",unicodeRange:\"U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116\",url:\"https://framerusercontent.com/assets/4RAEQdEOrcnDkhHiiCbJOw92Lk.woff2\",weight:\"700\"},{cssFamilyName:\"Inter\",source:\"framer\",style:\"normal\",uiFamilyName:\"Inter\",unicodeRange:\"U+1F00-1FFF\",url:\"https://framerusercontent.com/assets/1K3W8DizY3v4emK8Mb08YHxTbs.woff2\",weight:\"700\"},{cssFamilyName:\"Inter\",source:\"framer\",style:\"normal\",uiFamilyName:\"Inter\",unicodeRange:\"U+0370-03FF\",url:\"https://framerusercontent.com/assets/tUSCtfYVM1I1IchuyCwz9gDdQ.woff2\",weight:\"700\"},{cssFamilyName:\"Inter\",source:\"framer\",style:\"normal\",uiFamilyName:\"Inter\",unicodeRange:\"U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF\",url:\"https://framerusercontent.com/assets/VgYFWiwsAC5OYxAycRXXvhze58.woff2\",weight:\"700\"},{cssFamilyName:\"Inter\",source:\"framer\",style:\"normal\",uiFamilyName:\"Inter\",unicodeRange:\"U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2070, U+2074-207E, U+2080-208E, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD\",url:\"https://framerusercontent.com/assets/syRNPWzAMIrcJ3wIlPIP43KjQs.woff2\",weight:\"700\"},{cssFamilyName:\"Inter\",source:\"framer\",style:\"normal\",uiFamilyName:\"Inter\",unicodeRange:\"U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+1EA0-1EF9, U+20AB\",url:\"https://framerusercontent.com/assets/GIryZETIX4IFypco5pYZONKhJIo.woff2\",weight:\"700\"},{cssFamilyName:\"Inter\",source:\"framer\",style:\"italic\",uiFamilyName:\"Inter\",unicodeRange:\"U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F\",url:\"https://framerusercontent.com/assets/H89BbHkbHDzlxZzxi8uPzTsp90.woff2\",weight:\"700\"},{cssFamilyName:\"Inter\",source:\"framer\",style:\"italic\",uiFamilyName:\"Inter\",unicodeRange:\"U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116\",url:\"https://framerusercontent.com/assets/u6gJwDuwB143kpNK1T1MDKDWkMc.woff2\",weight:\"700\"},{cssFamilyName:\"Inter\",source:\"framer\",style:\"italic\",uiFamilyName:\"Inter\",unicodeRange:\"U+1F00-1FFF\",url:\"https://framerusercontent.com/assets/43sJ6MfOPh1LCJt46OvyDuSbA6o.woff2\",weight:\"700\"},{cssFamilyName:\"Inter\",source:\"framer\",style:\"italic\",uiFamilyName:\"Inter\",unicodeRange:\"U+0370-03FF\",url:\"https://framerusercontent.com/assets/wccHG0r4gBDAIRhfHiOlq6oEkqw.woff2\",weight:\"700\"},{cssFamilyName:\"Inter\",source:\"framer\",style:\"italic\",uiFamilyName:\"Inter\",unicodeRange:\"U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF\",url:\"https://framerusercontent.com/assets/WZ367JPwf9bRW6LdTHN8rXgSjw.woff2\",weight:\"700\"},{cssFamilyName:\"Inter\",source:\"framer\",style:\"italic\",uiFamilyName:\"Inter\",unicodeRange:\"U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2070, U+2074-207E, U+2080-208E, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD\",url:\"https://framerusercontent.com/assets/ia3uin3hQWqDrVloC1zEtYHWw.woff2\",weight:\"700\"},{cssFamilyName:\"Inter\",source:\"framer\",style:\"italic\",uiFamilyName:\"Inter\",unicodeRange:\"U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+1EA0-1EF9, U+20AB\",url:\"https://framerusercontent.com/assets/2A4Xx7CngadFGlVV4xrO06OBHY.woff2\",weight:\"700\"},{cssFamilyName:\"Inter\",source:\"framer\",style:\"italic\",uiFamilyName:\"Inter\",unicodeRange:\"U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F\",url:\"https://framerusercontent.com/assets/vxBnBhH8768IFAXAb4Qf6wQHKs.woff2\",weight:\"600\"},{cssFamilyName:\"Inter\",source:\"framer\",style:\"italic\",uiFamilyName:\"Inter\",unicodeRange:\"U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116\",url:\"https://framerusercontent.com/assets/zSsEuoJdh8mcFVk976C05ZfQr8.woff2\",weight:\"600\"},{cssFamilyName:\"Inter\",source:\"framer\",style:\"italic\",uiFamilyName:\"Inter\",unicodeRange:\"U+1F00-1FFF\",url:\"https://framerusercontent.com/assets/b8ezwLrN7h2AUoPEENcsTMVJ0.woff2\",weight:\"600\"},{cssFamilyName:\"Inter\",source:\"framer\",style:\"italic\",uiFamilyName:\"Inter\",unicodeRange:\"U+0370-03FF\",url:\"https://framerusercontent.com/assets/mvNEIBLyHbscgHtwfsByjXUz3XY.woff2\",weight:\"600\"},{cssFamilyName:\"Inter\",source:\"framer\",style:\"italic\",uiFamilyName:\"Inter\",unicodeRange:\"U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF\",url:\"https://framerusercontent.com/assets/6FI2EneKzM3qBy5foOZXey7coCA.woff2\",weight:\"600\"},{cssFamilyName:\"Inter\",source:\"framer\",style:\"italic\",uiFamilyName:\"Inter\",unicodeRange:\"U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2070, U+2074-207E, U+2080-208E, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD\",url:\"https://framerusercontent.com/assets/fuyXZpVvOjq8NesCOfgirHCWyg.woff2\",weight:\"600\"},{cssFamilyName:\"Inter\",source:\"framer\",style:\"italic\",uiFamilyName:\"Inter\",unicodeRange:\"U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+1EA0-1EF9, U+20AB\",url:\"https://framerusercontent.com/assets/NHHeAKJVP0ZWHk5YZnQQChIsBM.woff2\",weight:\"600\"}]}];export const css=['.framer-SSXtx .framer-styles-preset-5jy3am:not(.rich-text-wrapper), .framer-SSXtx .framer-styles-preset-5jy3am.rich-text-wrapper h6 { --framer-font-family: \"Inter\", \"Inter Placeholder\", sans-serif; --framer-font-family-bold: \"Inter\", \"Inter Placeholder\", sans-serif; --framer-font-family-bold-italic: \"Inter\", \"Inter Placeholder\", sans-serif; --framer-font-family-italic: \"Inter\", \"Inter Placeholder\", sans-serif; --framer-font-open-type-features: normal; --framer-font-size: 16px; --framer-font-style: normal; --framer-font-style-bold: normal; --framer-font-style-bold-italic: italic; --framer-font-style-italic: italic; --framer-font-variation-axes: normal; --framer-font-weight: 600; --framer-font-weight-bold: 700; --framer-font-weight-bold-italic: 700; --framer-font-weight-italic: 600; --framer-letter-spacing: -0.02em; --framer-line-height: 1em; --framer-paragraph-spacing: 40px; --framer-text-alignment: start; --framer-text-color: #000000; --framer-text-decoration: none; --framer-text-stroke-color: initial; --framer-text-stroke-width: initial; --framer-text-transform: none; }'];export const className=\"framer-SSXtx\";\nexport const __FramerMetadata__ = {\"exports\":{\"className\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"css\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"fonts\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}"],"mappings":"mQAA8E,SAAgB,EAAY,EAAO,CACjH,IAAM,EAAU,EAAK,CAAC,MAAM,OAAO,OAAO,CAAC,GAAG,EAAO,CAAC,CAAC,CAAC,CAClD,EAAa,GAAU,CAC1B,OAAO,GAAW,aAAY,EAAS,EAAS,EAAU,MAAM,EAAE,EAAU,MAAM,OAAO,OAAO,CAAC,GAAG,EAAU,MAAM,GAAG,EAAS,CAAC,EAChI,EAAW,OAAO,GAAS,SAAS,OAAO,OAAO,CAAC,GAAG,EAAO,CAAC,CAAC,EAC7D,EAAa,IAAI,IACjB,EAAc,GAAU,CAC3B,OAAO,GAAW,aAAY,EAAS,EAAS,EAAW,EAAE,EAAW,OAAO,GAAW,SAAS,OAAO,OAAO,CAAC,GAAG,EAAW,GAAG,EAAS,CAAC,CAAC,EACjJ,EAAa,QAAQ,GAAQ,EAAO,EAAW,CAAC,EAChD,SAAS,GAAU,CACnB,GAAK,CAAC,EAAM,GAAUA,EAAS,EAAW,CAK1C,OAHA,OACA,EAAa,IAAI,EAAS,KAAW,EAAa,OAAO,EAAS,EAAG,EAAE,CAAC,CACrE,GAAgB,GAAG,IAAM,GAAgB,CAAO,CAAC,EAAU,MAAM,EAAa,EAC3E,CAAC,EAAM,EAAc,CAAG,OAAO,mBAfC,IAAwC,qBE0C9E,SAAgB,GAAkB,EAAO,EAAE,CAAC,IAAiF,EAAO,GAAG,IAAI,IAAI,EAAE,EAAE,EAAE,EAAO,IAAK,GAAQ,iEAAM,OAAO,KAAK,MAAM,KAAK,QAAQ,CAAC,GAAa,CAAC,CAAE,OAAO,uCAxCrM,IAEkC,CACtD,EAAgB,EAAY,CAAC,iBAAiB,EAAE,CA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