{"version":3,"file":"CMSCollection.DoMFEBl-.mjs","names":["useState","useEffect","cloneElement","cloneElement","useRef","useMemo","useEffect","cloneElement","_jsxs","_jsx","_Fragment","__esmMin","window","z","pe","init_ssg_sandbox_shims","init_npm_react_18_3_1","_e","de","c","p","ce","addPropertyControls","useQueryData","init_framer_ChujFWHC","useObserveData","RenderTarget","Data","ControlType","createStore","state1","dataStore","setDataStore","newState","storeState","storeSetters","setStoreState","setter","useStore","state","setState","init_createStore","init_store_js__1","evGetRandomString","length","result","i","globalInitStore","stores","getCollectionStore","getCmsQueryFromCollectionSlot","getCmsQueryFromSlot","getCollectionStoreKey","getCollectionInfo","getAvailableFilterFields","isCanvas","init_store_management","collectionId","newStore","initState","setInitState","slot","element","collection","manualStoreKey","cmsQuery","getDeepestLeft","node","current","alias","data","deepestFrom","propertyControls","key","control","field","buildFlatArrayCondition","mainAlias","refFieldName","refCollectionAlias","refCollectionData","tagId","buildMultiReferenceQueryFromFilter","filter","values","query","hasValidFilterValue","buildSearchWhereClause","buildFilterWhereClause","buildFiltersWhereClause","buildMultiValueFilterClause","combineWhereClauses","buildOrderByClause","init_query_builders","value","operator","searchTerm","searchFields","searchFieldKeys","title","conditions","fieldKey","whereClause","refFieldKey","shouldInvert","isTriStateOff","baseQuery","mappedOperator","filters","globalLogic","debugMode","validFilters","filtersByComponent","componentConditions","componentFilters","componentId","builderLogic","filterConditions","builderOperator","componentCombined","globalOperator","globalCombined","val","baseIdentifier","filterOperator","combined","existing","additional","sortState","sort","index","getComponentName","processVariantOverrides","wrapWithVariantOverrides","init_variant_utils","variantOverrides","depth","child","componentName","override","vo","newProps","originalChildrenFn","paginationInfo","loadMore","originalJSX","isMasonryComponent","processMasonryOverrides","init_masonry_utils","overrides","originalFn","args","useQueryCount","countQuery","CMSCollection","props","emptyState","collectionWidth","overflow","emptyStateWidth","filterLogic","storeKey","urlSync","urlPrefix","layoutToggle","responsiveMasonry","layoutDisplay","flexDirection","justifyContent","alignRow","alignColumn","gridColumns","gridRows","gridAutoRows","flexWrap","gapRow","gapX","gapY","masonryColumns","masonryGap","style","fallback","id","fallbackText","fallbackFont","fallbackBackgroundColor","fallbackPadding","fallbackBorderRadius","uniqueClassName","actualStoreKey","isInitialized","isStoreInitialized","collectionInfo","originalQuery","searchWhere","filtersWhere","combinedWhere","finalWhere","orderBy","containerStyles","filteredQuery","currentCount","clonedCollection","originalElement","firstChild","originalListElement","originalQueryElement","masonryOverrides","processedCollection","elements","isMasonry","hasVariantOverrides","hasMasonryOverrides","containerElement","queryElement","wrappedChildren","newQueryElement","listElement","cmsItem","newCmsItem","wrapperCss","isEditorMode","showEmptyState","canvasCollection","isMasonryElement","modifiedEmptyState","init_CMSCollection","init_jsx_runtime","layout"],"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"],"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"],"mappings":"A,0PAA8E,SAAgB6B,EAAYC,EAAO,CACjH,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