{
  "version": 3,
  "sources": ["ssg:https://framer.com/m/framer/store.js@^1.0.0", "ssg:https://framerusercontent.com/modules/FZjYlw33eNo8pxLbSFLX/mIr6aiS9WGDutyQDFlPu/SuperfieldsShared.js", "ssg:https://framer.com/m/CMSLibrary-09eo.js", "ssg:https://framer.com/m/Masonry-u5eW.js", "ssg:https://framerusercontent.com/modules/1o5Bk6b6qvbR58A6b2Ej/C2ZE1h90G40a4oehUlB2/Superfields.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", "import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{ControlType}from\"framer\";import{motion}from\"framer-motion\";import{createContext,cloneElement}from\"react\";import{createStore}from\"https://framer.com/m/framer/store.js@^1.0.0\";export const usePaginationState=createStore({});export const useFilterState=createStore({});export const useFavouriteState=createStore({});export const useSearchState=createStore({});export const useRandomizationState=createStore({});export const SuperfieldsContext=/*#__PURE__*/createContext({active:false});export const superfieldsId=({hidden=undefined}={})=>({superfieldsId:{type:ControlType.Number,defaultValue:0,min:0,step:1,displayStepper:true,title:\"CMS ID\",description:\"Match with ID on Superfields component\",hidden}});export const buttonPropertyControls=({text=\"\"})=>({appearance:{type:ControlType.Enum,defaultValue:\"default\",options:[\"default\",\"custom\"],optionTitles:[\"Default\",\"Custom\"],displaySegmentedControl:true},customLayer:{type:ControlType.ComponentInstance,title:\"Layer\",description:\"Connect a custom layer from outside the breakpoint\",hidden:props=>props.appearance!==\"custom\"},text:{type:ControlType.String,defaultValue:text,hidden:props=>props.appearance!==\"default\"},fill:fillProp({color:\"#000\",gradientColorA:\"#8C8C8C\",gradientColorB:\"#000\",hidden:props=>props.appearance!==\"default\"}),fontColor:{type:ControlType.Color,defaultValue:\"#FFF\",hidden:props=>props.appearance!==\"default\"},font:{type:\"font\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:14,lineHeight:1.4},hidden:props=>props.appearance!==\"default\"},padding:{type:ControlType.FusedNumber,defaultValue:12,toggleKey:\"paddingIsMixed\",toggleTitles:[\"All\",\"Individual\"],valueKeys:[\"paddingTop\",\"paddingRight\",\"paddingBottom\",\"paddingLeft\"],valueLabels:[\"T\",\"R\",\"B\",\"L\"],min:0,hidden:props=>props.appearance!==\"default\"},radius:{type:ControlType.FusedNumber,defaultValue:8,toggleKey:\"radiusIsMixed\",toggleTitles:[\"All\",\"Individual\"],valueKeys:[\"radiusTopLeft\",\"radiusTopRight\",\"radiusBottomRight\",\"radiusBottomLeft\"],valueLabels:[\"TL\",\"TR\",\"BR\",\"BL\"],min:0,hidden:props=>props.appearance!==\"default\"},border:borderPropertyControl({hidden:props=>props.appearance!==\"default\"}),shadows:{type:ControlType.BoxShadow,hidden:props=>props.appearance!==\"default\"}});export function Button({props,onClick,onMouseEnter=null}){var _props_font,_props_style;if(props.appearance==\"custom\"){var _props_customLayer,_props_style1,_props_style2;let layer=(_props_customLayer=props.customLayer)===null||_props_customLayer===void 0?void 0:_props_customLayer[0];const width=(_props_style1=props.style)===null||_props_style1===void 0?void 0:_props_style1.width;const height=(_props_style2=props.style)===null||_props_style2===void 0?void 0:_props_style2.height;if(layer&&props.style&&(width||height)){layer=/*#__PURE__*/cloneElement(layer,{style:{...layer.props.style,...width&&{width:width},...height&&{height:height}}});}return /*#__PURE__*/_jsx(\"div\",{style:{display:\"contents\"},onClick:onClick,children:layer});}return /*#__PURE__*/_jsxs(\"div\",{onClick:onClick,style:{position:\"relative\",display:\"flex\",justifyContent:((_props_font=props.font)===null||_props_font===void 0?void 0:_props_font.textAlign)||\"center\",alignItems:\"center\",...createBackground(props.fill),color:props.fontColor,padding:props.paddingIsMixed?`${props.paddingTop}px ${props.paddingRight}px ${props.paddingBottom}px ${props.paddingLeft}px`:`${props.padding}px`,borderRadius:props.radiusIsMixed?`${props.radiusTopLeft}px ${props.radiusTopRight}px ${props.radiusBottomRight}px ${props.radiusBottomLeft}px`:`${props.radius}px`,userSelect:\"none\",cursor:\"pointer\",flex:props.sizing==\"fill\"?\"1 0 0\":undefined,textWrap:((_props_style=props.style)===null||_props_style===void 0?void 0:_props_style.width)==\"100%\"?undefined:\"nowrap\",boxShadow:props.shadows,...props.font,...props.style},children:[props.text,/*#__PURE__*/_jsx(Border,{...props.border})]});}Button.displayName=\"Superfields/Button\";export const borderPropertyControl=(props={})=>({type:ControlType.Object,optional:true,controls:{color:{type:ControlType.Color,defaultValue:\"#222\"},width:{type:ControlType.FusedNumber,defaultValue:1,toggleKey:\"widthIsMixed\",toggleTitles:[\"All\",\"Individual\"],valueKeys:[\"widthTop\",\"widthRight\",\"widthBottom\",\"widthLeft\"],valueLabels:[\"T\",\"R\",\"B\",\"L\"],min:0},style:{type:ControlType.Enum,defaultValue:\"solid\",options:[\"solid\",\"dashed\",\"dotted\",\"double\"],optionTitles:[\"Solid\",\"Dashed\",\"Dotted\",\"Double\"]}},...props});export function Border({width,widthIsMixed,widthTop,widthRight,widthBottom,widthLeft,style,color,transition,animate,radius=\"inherit\"}){return /*#__PURE__*/_jsx(motion.div,{animate:{borderColor:color,...animate},style:{position:\"absolute\",inset:0,borderWidth:widthIsMixed?`${widthTop}px ${widthRight}px ${widthBottom}px ${widthLeft}px`:`${width}px`,borderStyle:style,borderRadius:radius,pointerEvents:\"none\"},initial:false,transition:transition});}Border.displayName=\"Superfields/Border\";export function Message({title,subtitle}){return /*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",width:\"100%\",height:\"100%\",placeContent:\"center\",placeItems:\"center\",flexDirection:\"column\",gap:16,backgroundColor:\"rgba(136, 85, 255, 0.1)\",borderRadius:6,border:\"1px dashed rgb(136, 85, 255)\",color:\"rgb(136, 85, 255)\",fontSize:16,padding:20,minHeight:200,textWrap:\"balance\"},children:[/*#__PURE__*/_jsx(\"p\",{style:{margin:0,fontWeight:600,textAlign:\"center\"},children:title}),/*#__PURE__*/_jsx(\"p\",{style:{margin:0,opacity:.7,lineHeight:1.5,textAlign:\"center\"},children:subtitle})]});}Message.displayName=\"Superfields/Message\";export const EmptyState=Message;export function createBackground(fill,on=null){if(fill){let{color,colorA,colorB}=fill;if(typeof on==\"boolean\"){if(on){color=fill.colorOn;colorA=fill.colorAOn;colorB=fill.colorBOn;}else{color=fill.colorOff;colorA=fill.colorAOff;colorB=fill.colorBOff;}}if(fill.type==\"color\"){return{backgroundColor:color,backgroundImage:\"none\"};}else{return{backgroundColor:\"none\",backgroundImage:`linear-gradient(${fill.gradientAngle}deg, ${colorB}, ${colorA})`};}}return{};}export function fillProp({color=\"#FFF\",gradientColorA=\"#FFF\",gradientColorB=\"#BDBDBD\",noDefault=false,...props}){return{type:ControlType.Object,optional:true,icon:\"color\",defaultValue:noDefault?undefined:{type:\"color\",color,colorA:gradientColorA,colorB:gradientColorB,gradientAngle:0},controls:{type:{type:ControlType.Enum,defaultValue:\"color\",options:[\"color\",\"gradient\"],optionTitles:[\"Color\",\"Gradient\"],displaySegmentedControl:true},color:{type:ControlType.Color,defaultValue:color,hidden:props=>props.type!=\"color\"},colorA:{type:ControlType.Color,defaultValue:gradientColorA,title:\"Colors\",hidden:props=>props.type!=\"gradient\"},colorB:{type:ControlType.Color,defaultValue:gradientColorB,title:\" \",hidden:props=>props.type!=\"gradient\"},gradientAngle:{type:ControlType.Number,defaultValue:0,title:\"Angle\",step:1,min:0,max:360,unit:\"\\xb0\",hidden:props=>props.type!=\"gradient\"}},...props};}export function fillPropOnOff({colorOn=\"#FFF\",colorAOn=\"#FFF\",colorBOn=\"#000\",colorOff=\"#FFF\",colorAOff=\"#FFF\",colorBOff=\"#000\",noDefault=false,...props}){return{type:ControlType.Object,optional:true,icon:\"color\",defaultValue:noDefault?undefined:{type:\"color\",colorOn,colorAOn,colorBOn,colorOff,colorAOff,colorBOff,gradientAngle:0},controls:{type:{type:ControlType.Enum,defaultValue:\"color\",options:[\"color\",\"gradient\"],optionTitles:[\"Color\",\"Gradient\"],displaySegmentedControl:true},colorOn:{type:ControlType.Color,defaultValue:colorOn,hidden:props=>props.type!=\"color\"},colorAOn:{type:ControlType.Color,defaultValue:colorAOn,title:\"Colors On\",hidden:props=>props.type!=\"gradient\"},colorBOn:{type:ControlType.Color,defaultValue:colorBOn,title:\" \",hidden:props=>props.type!=\"gradient\"},colorOff:{type:ControlType.Color,defaultValue:colorOff,hidden:props=>props.type!=\"color\"},colorAOff:{type:ControlType.Color,defaultValue:colorAOff,title:\"Colors Off\",hidden:props=>props.type!=\"gradient\"},colorBOff:{type:ControlType.Color,defaultValue:colorBOff,title:\" \",hidden:props=>props.type!=\"gradient\"},gradientAngle:{type:ControlType.Number,defaultValue:0,title:\"Angle\",step:1,min:0,max:360,unit:\"\\xb0\",hidden:props=>props.type!=\"gradient\"}},...props};}\nexport const __FramerMetadata__ = {\"exports\":{\"fillPropOnOff\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"superfieldsId\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"borderPropertyControl\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"fillProp\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"SuperfieldsContext\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"buttonPropertyControls\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"Border\":{\"type\":\"reactComponent\",\"name\":\"Border\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"useFavouriteState\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"EmptyState\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"useSearchState\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"Button\":{\"type\":\"reactComponent\",\"name\":\"Button\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"Message\":{\"type\":\"reactComponent\",\"name\":\"Message\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"useFilterState\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"useRandomizationState\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"createBackground\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"usePaginationState\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./SuperfieldsShared.map", "export function getCollectionData(collectionList){var _collectionList_props,_collectionList_props_children_props,_collectionList_props_children,_collectionList_props1,_collectionList_props_children_props_children_props,_collectionList_props_children_props_children,_collectionList_props_children_props1,_collectionList_props_children1,_collectionList_props2,_queryParent_props;let queryParent=null;if(collectionList===null||collectionList===void 0?void 0:(_collectionList_props=collectionList.props)===null||_collectionList_props===void 0?void 0:_collectionList_props.query){queryParent=collectionList;}else if(collectionList===null||collectionList===void 0?void 0:(_collectionList_props1=collectionList.props)===null||_collectionList_props1===void 0?void 0:(_collectionList_props_children=_collectionList_props1.children)===null||_collectionList_props_children===void 0?void 0:(_collectionList_props_children_props=_collectionList_props_children.props)===null||_collectionList_props_children_props===void 0?void 0:_collectionList_props_children_props.query){queryParent=collectionList.props.children;}else if(collectionList===null||collectionList===void 0?void 0:(_collectionList_props2=collectionList.props)===null||_collectionList_props2===void 0?void 0:(_collectionList_props_children1=_collectionList_props2.children)===null||_collectionList_props_children1===void 0?void 0:(_collectionList_props_children_props1=_collectionList_props_children1.props)===null||_collectionList_props_children_props1===void 0?void 0:(_collectionList_props_children_props_children=_collectionList_props_children_props1.children)===null||_collectionList_props_children_props_children===void 0?void 0:(_collectionList_props_children_props_children_props=_collectionList_props_children_props_children.props)===null||_collectionList_props_children_props_children_props===void 0?void 0:_collectionList_props_children_props_children_props.query){queryParent=collectionList.props.children.props.children;}const query=queryParent===null||queryParent===void 0?void 0:(_queryParent_props=queryParent.props)===null||_queryParent_props===void 0?void 0:_queryParent_props.query;let queryData=null;if(query===null||query===void 0?void 0:query.from){if(query.from.data){queryData=query.from.data;}else if(query.from.left){let left=query.from.left;for(let i=0;i<100;i++){if(left.type==\"Collection\"){queryData=left.data;break;}else if(left.left){left=left.left;}else{break;}}}}// Get property controls\nconst propertyControlsById=(queryData===null||queryData===void 0?void 0:queryData.propertyControls)||{};const propertyControlsByName={};for(const id in propertyControlsById){const control=propertyControlsById[id];propertyControlsByName[control.title]={id,...control};}// Get children function\nlet childrenFunction=null;if(collectionList){var _collectionList_props3,_clpc_props,_clpc_props_children_props,_clpc_props_children,_clpc_props1;const clpc=(_collectionList_props3=collectionList.props)===null||_collectionList_props3===void 0?void 0:_collectionList_props3.children;if(typeof clpc==\"function\"){childrenFunction=clpc;}else if(typeof(clpc===null||clpc===void 0?void 0:(_clpc_props=clpc.props)===null||_clpc_props===void 0?void 0:_clpc_props.children)==\"function\"){childrenFunction=clpc.props.children;}else if(typeof(clpc===null||clpc===void 0?void 0:(_clpc_props1=clpc.props)===null||_clpc_props1===void 0?void 0:(_clpc_props_children=_clpc_props1.children)===null||_clpc_props_children===void 0?void 0:(_clpc_props_children_props=_clpc_props_children.props)===null||_clpc_props_children_props===void 0?void 0:_clpc_props_children_props.children)==\"function\"){childrenFunction=clpc.props.children.props.children;}}return{query,queryParent,queryData,propertyControlsById,propertyControlsByName,childrenFunction};}export function addFieldsToSelect(fields,query,propertyControlsByName){const alias=query.alias;const select=Array.isArray(query===null||query===void 0?void 0:query.select)?[...query.select]:[];for(const fieldName of fields){var _propertyControlsByName_fieldName;const fieldId=(_propertyControlsByName_fieldName=propertyControlsByName[fieldName])===null||_propertyControlsByName_fieldName===void 0?void 0:_propertyControlsByName_fieldName.id;if(!fieldId){continue;}let matchFound=false;for(const item of select){if(item.name===fieldId&&item.type===\"Identifier\"&&item.collection===alias){matchFound=true;continue;}}if(matchFound){continue;}select.push({collection:alias,name:fieldId,type:\"Identifier\"});}return select;}\nexport const __FramerMetadata__ = {\"exports\":{\"getCollectionData\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"addFieldsToSelect\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./CMSLibrary.map", "// Code from Nikolay Goncharuk on GitHub:\n// https://github.com/GoncharukBro/react-smart-masonry/blob/master/src/Masonry.tsx\n// https://github.com/GoncharukBro/react-smart-masonry/blob/master/src/useResize.ts\n//\n// Modified by Isaac Roberts for Superfields\n// https://superfields.io\n//\n// Copyright (c) 2021 Nikolay Goncharuk\n// MIT License\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{useState,useLayoutEffect,useEffect,useMemo,useRef,Children,isValidElement}from\"react\";const DEFAULT_COLUMNS=1;const DEFAULT_GAP=0;export default function Masonry({breakpoints,columns=DEFAULT_COLUMNS,gapH=DEFAULT_GAP,gapV=DEFAULT_GAP,reverse=false,autoArrange=false,alignment=\"center\",children,style,...otherProps},forwardedRef){const elements=useRef([]);const previousLayout=useRef([]);const[arrange,setArrange]=useState(false);const[layoutVersion,setLayoutVersion]=useState(0);const resizeObservers=useRef(new Map);const updateTimeoutRef=useRef(null);const earliestChangedIndex=useRef(null);// Replace image load handler with resize observer handler\nconst handleElementResize=element=>{if(!resizeObservers.current.has(element)){let lastUpdatedHeight=element.offsetHeight;const observer=new ResizeObserver(entries=>{const entry=entries[0];const newHeight=entry.target.offsetHeight;if(newHeight!==lastUpdatedHeight&&Math.abs(newHeight-lastUpdatedHeight)>2){lastUpdatedHeight=newHeight;// Find the index of the changed element\nconst changedIndex=elements.current.findIndex(el=>el.element===element);// Update earliest changed index\nif(earliestChangedIndex.current===null){earliestChangedIndex.current=changedIndex;}else{earliestChangedIndex.current=Math.min(earliestChangedIndex.current,changedIndex);}// Only set timeout if one isn't already running\nif(!updateTimeoutRef.current){const delay=layoutVersion===0?10:200// 10ms for first update, 200ms for subsequent\n;updateTimeoutRef.current=setTimeout(()=>{setLayoutVersion(v=>v+1);updateTimeoutRef.current=null;},delay);}}});observer.observe(element);resizeObservers.current.set(element,observer);}};const addElement=index=>element=>{if(element!==null){temporaryElements.push({element,index});elements.current=temporaryElements;handleElementResize(element);}};// Cleanup resize observers when component unmounts\nuseEffect(()=>{return()=>{resizeObservers.current.forEach(observer=>observer.disconnect());resizeObservers.current.clear();};},[]);// Clean up timeout on unmount\nuseEffect(()=>{return()=>{if(updateTimeoutRef.current){clearTimeout(updateTimeoutRef.current);}};},[]);useLayoutEffect(()=>{if(autoArrange&&!arrange)setArrange(true);if(autoArrange&&arrange)setLayoutVersion(v=>v+1);return()=>{if(autoArrange&&arrange)setArrange(false);};},[autoArrange]);const layout=useMemo(()=>{if(columns<1)return[];const arrayOfChildren=Children.toArray(children);if(reverse)arrayOfChildren.reverse();const newLayout=Array.from({length:columns},()=>{return[];});const columnHeights=newLayout.map(()=>0);var _earliestChangedIndex_current;// Use the ref directly instead of parsing from layoutVersion\nconst changedIndex=(_earliestChangedIndex_current=earliestChangedIndex.current)!==null&&_earliestChangedIndex_current!==void 0?_earliestChangedIndex_current:-1;const getColumnIndex=index=>{if(autoArrange&&arrange&&elements.current.length>0){// If we're after the changed element, find the shortest column\nif(changedIndex===-1||index>changedIndex){const columnIndex=columnHeights.findIndex(item=>{return item===Math.min(...columnHeights);});const element=elements.current.find(item=>item.index===index);const elementHeight=element===null||element===void 0?void 0:element.element.getBoundingClientRect().height;columnHeights[columnIndex]+=(elementHeight||0)+gapV;return columnIndex;}else{// For elements before or at the changed index, use their current column\nconst element=elements.current.find(item=>item.index===index);if(element){const currentColumn=previousLayout.current.findIndex(col=>col.some(item=>item.index===index));if(currentColumn!==-1){const elementHeight=element.element.getBoundingClientRect().height;columnHeights[currentColumn]+=(elementHeight||0)+gapV;return currentColumn;}}// Fallback to default behavior if element not found\nconst columnIndex=columnHeights.findIndex(item=>{return item===Math.min(...columnHeights);});const elementHeight=element===null||element===void 0?void 0:element.element.getBoundingClientRect().height;columnHeights[columnIndex]+=(elementHeight||0)+gapV;return columnIndex;}}return index%columns;};arrayOfChildren.forEach((child,index)=>{if(child&&/*#__PURE__*/isValidElement(child)){newLayout[getColumnIndex(index)].push({element:child,index});}});// Store the new layout for next render\npreviousLayout.current=newLayout;return newLayout;},[layoutVersion,arrange,children,columns,reverse,autoArrange]);const temporaryElements=[];return /*#__PURE__*/_jsx(\"div\",{ref:forwardedRef,style:{display:\"flex\",gap:gapH,...style},...otherProps,children:layout.map((column,columnIndex)=>/*#__PURE__*/_jsx(\"div\",{style:{flex:1,display:\"flex\",flexDirection:\"column\",alignItems:alignment,gap:gapV},children:column.map((item,itemIndex)=>/*#__PURE__*/_jsx(\"div\",{ref:addElement(item.index),children:item.element},itemIndex))},columnIndex))});}Masonry.displayName=\"Superfields/Masonry\";\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"Masonry\",\"slots\":[\"children\"],\"annotations\":{\"framerContractVersion\":\"1\"}},\"MasonryProps\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Masonry.map", "import{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from\"react/jsx-runtime\";import{addPropertyControls,ControlType,RenderTarget,// @ts-ignore\nResolveLinks,// @ts-ignore\nuseQueryData}from\"framer\";import{cloneElement,useEffect,useState,useRef,useMemo}from\"react\";import{Message,usePaginationState,useFilterState,useFavouriteState,useSearchState,useRandomizationState}from\"https://framerusercontent.com/modules/FZjYlw33eNo8pxLbSFLX/mIr6aiS9WGDutyQDFlPu/SuperfieldsShared.js\";import{getCollectionData}from\"https://framer.com/m/CMSLibrary-09eo.js\";import Masonry from\"https://framer.com/m/Masonry-u5eW.js\";const FAVOURITES_FILTER_ID=\"[{(FAVOURITES)}]\";const DELIMITER=\"_&%#|_\";/**\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any\n * @framerIntrinsicWidth 600\n * @framerDisableUnlink\n */export default function Superfields(props){var _props_collectionList,_props_emptyState,_propertyControlsByName_slugFieldName,_randomizationState_superfieldsId,_filters_FAVOURITES_FILTER_ID,_searchState_superfieldsId,_paginationState_superfieldsId,_randomizationState_superfieldsId1;const{superfieldsId,layout,componentConfig,favouriting,randomize,cmsCollectionName,slugFieldName,favouritesOnly}=props;const collectionList=(_props_collectionList=props.collectionList)===null||_props_collectionList===void 0?void 0:_props_collectionList[0];const emptyState=(_props_emptyState=props.emptyState)===null||_props_emptyState===void 0?void 0:_props_emptyState[0];const isCanvas=RenderTarget.current()===RenderTarget.canvas;const scrollUpRef=useRef(null);const[paginationState,setPaginationState]=usePaginationState();const[filterState,setFilterState]=useFilterState();const[favouriteState,setFavouriteState]=useFavouriteState();const[searchState,setSearchState]=useSearchState();const[randomizationState,setRandomizationState]=useRandomizationState();const filters=filterState[superfieldsId];const{query,queryParent,queryData,propertyControlsByName,childrenFunction}=useMemo(()=>getCollectionData(collectionList),[collectionList]);var _propertyControlsByName_slugFieldName_id;const slugFieldId=(_propertyControlsByName_slugFieldName_id=(_propertyControlsByName_slugFieldName=propertyControlsByName[slugFieldName])===null||_propertyControlsByName_slugFieldName===void 0?void 0:_propertyControlsByName_slugFieldName.id)!==null&&_propertyControlsByName_slugFieldName_id!==void 0?_propertyControlsByName_slugFieldName_id:\"\";const select=useMemo(()=>{let select=Array.isArray(query===null||query===void 0?void 0:query.select)?[...query.select]:[];if((query===null||query===void 0?void 0:query.select)&&(filters||props.search)){let usedFieldNames=[];if(filters){for(const fieldName of Object.keys(filters)){const filter=filters[fieldName];if(filter.fieldType==\"multipleOptions\"){usedFieldNames.push(...fieldName.split(DELIMITER));}else{usedFieldNames.push(fieldName);}}}for(const fieldName of props.searchFields){usedFieldNames.push(fieldName);}usedFieldNames=usedFieldNames.map(value=>{var _propertyControlsByName_value;return((_propertyControlsByName_value=propertyControlsByName[value])===null||_propertyControlsByName_value===void 0?void 0:_propertyControlsByName_value.id)||null;}).filter(value=>value!==null);for(const value of select){usedFieldNames.push(value.name);}select=Array.from(new Set(usedFieldNames)).map(name=>({name,type:\"Identifier\"}));}return select;},[query,filters,props.search,props.searchFields]);const originalData=query?useQueryData({...query,select}):[];let paginationLength=0;let paginationType=props.paginationType;if(collectionList&&query&&!isCanvas){var _collectionList_props_children,_collectionList_props;const QueryData=(_collectionList_props=collectionList.props)===null||_collectionList_props===void 0?void 0:(_collectionList_props_children=_collectionList_props.children)===null||_collectionList_props_children===void 0?void 0:_collectionList_props_children.type;if(QueryData){const a=QueryData({query:{...query,select:[{name:\"id\",type:\"Identifier\"}]},children:collection=>{if(collection&&collection.length!==originalData.length){paginationLength=(collection===null||collection===void 0?void 0:collection.length)||0;paginationType=\"framerPagination\";}return null;}});}}const pagination=props.pagination||paginationLength!==0;const itemsPerPage=paginationLength!==0?paginationLength:props.pagination?props.itemsPerPage:0;let data=originalData;const originalDataMap={};if(!isCanvas){if(Array.isArray(queryData)){for(const item of queryData){originalDataMap[item.id]=item;}}else if(Array.isArray(data)){for(const item of data){originalDataMap[item.id]=item;}}}const[dataOrder,setDataOrder]=useState(null);// Array.from({ length: originalData?.length || 0 }, (_, i) => i)\nconst updatePaginationState=()=>{if(Array.isArray(data)){const totalPages=Math.ceil(data.length/itemsPerPage);setPaginationState({[superfieldsId]:{page:0,totalPages,itemsPerPage,totalItems:data.length,paginationType,active:pagination,onPaginationChange}});}};useEffect(()=>{updatePaginationState();setFilterState({});setRandomizationState({[superfieldsId]:{seed:props.randomize&&!isCanvas?Math.random():null}});},[]);useEffect(()=>{var _randomizationState_superfieldsId;var _randomizationState_superfieldsId_seed;const seed=(_randomizationState_superfieldsId_seed=(_randomizationState_superfieldsId=randomizationState[superfieldsId])===null||_randomizationState_superfieldsId===void 0?void 0:_randomizationState_superfieldsId.seed)!==null&&_randomizationState_superfieldsId_seed!==void 0?_randomizationState_superfieldsId_seed:null;if(seed&&!isCanvas&&Array.isArray(originalData)){const newDataOrder=Array.from({length:originalData.length},(_,i)=>i);shuffle(newDataOrder,seed);setDataOrder(newDataOrder);}},[randomize,(_randomizationState_superfieldsId=randomizationState[superfieldsId])===null||_randomizationState_superfieldsId===void 0?void 0:_randomizationState_superfieldsId.seed,originalData]);function onPaginationChange(){if(props.scrollUp&&scrollUpRef.current&&paginationType==\"prevNextButtons\"){const rect=scrollUpRef.current.getBoundingClientRect();const topIsInView=rect.top>=0&&rect.top<=window.innerHeight;if(!topIsInView){scrollUpRef.current.scrollIntoView({behavior:props.scrollUp.scrollStyle});}}}// Filtering\nif(!isCanvas&&filters){let newData=[...data];for(const fieldName in filters){if(fieldName==FAVOURITES_FILTER_ID){continue;}const filter=filters[fieldName];const value=filter===null||filter===void 0?void 0:filter.value;const conditionContains=(filter===null||filter===void 0?void 0:filter.condition)===\"contains\";const fields=[];if(filter.fieldType===\"multipleOptions\"){for(const n of fieldName.split(DELIMITER)){const field=propertyControlsByName[n.trim()];if(field){fields.push(field);}}}else{const field=propertyControlsByName[fieldName];if(field){fields.push(field);}}if(filter&&fields.length&&value!=null&&value!=undefined){const filteredData=[];for(const cmsItem of newData){let foundMatch=false;const originalDataItem=originalDataMap[cmsItem.id];for(const field of fields){const dataFieldValue=originalDataItem[field.id];if(typeof value==\"string\"&&filter.multiSelect){const values=value.split(DELIMITER);switch(field.type){case\"string\":if(conditionContains){for(const value of values){if(dataFieldValue.includes(value)){foundMatch=true;break;}}}else{if(values.includes(dataFieldValue)){foundMatch=true;}}break;case\"enum\":var _field_options,_field_optionTitles;const dataValueTitle=conditionContains?(_field_optionTitles=field.optionTitles)===null||_field_optionTitles===void 0?void 0:_field_optionTitles[(_field_options=field.options)===null||_field_options===void 0?void 0:_field_options.indexOf(dataFieldValue)]:null;for(const v of values){if(conditionContains){if(dataValueTitle===null||dataValueTitle===void 0?void 0:dataValueTitle.includes(v)){foundMatch=true;}}else{var _field_optionTitles1,_field_options1;if(dataFieldValue==((_field_options1=field.options)===null||_field_options1===void 0?void 0:_field_options1[(_field_optionTitles1=field.optionTitles)===null||_field_optionTitles1===void 0?void 0:_field_optionTitles1.indexOf(v)])){foundMatch=true;}}}break;}}else{switch(field.type){case\"boolean\":if(dataFieldValue==value){foundMatch=true;}break;case\"string\":if(conditionContains){var _originalDataItem_field_id;if((_originalDataItem_field_id=originalDataItem[field.id])===null||_originalDataItem_field_id===void 0?void 0:_originalDataItem_field_id.includes(value)){foundMatch=true;}}else{if(dataFieldValue==value){foundMatch=true;}}break;case\"enum\":if(conditionContains){var _field_options2,_field_optionTitles2;const dataValueTitle=(_field_optionTitles2=field.optionTitles)===null||_field_optionTitles2===void 0?void 0:_field_optionTitles2[(_field_options2=field.options)===null||_field_options2===void 0?void 0:_field_options2.indexOf(dataFieldValue)];if(dataValueTitle&&dataValueTitle.includes(value)){foundMatch=true;}}else{var _field_optionTitles3,_field_options3;if(dataFieldValue==((_field_options3=field.options)===null||_field_options3===void 0?void 0:_field_options3[(_field_optionTitles3=field.optionTitles)===null||_field_optionTitles3===void 0?void 0:_field_optionTitles3.indexOf(value)])){foundMatch=true;}}break;}}if(foundMatch){filteredData.push(cmsItem);break;}}}newData=filteredData;}}data=newData;}// Favourites filter\nconst favouriteFilterValue=filters===null||filters===void 0?void 0:(_filters_FAVOURITES_FILTER_ID=filters[FAVOURITES_FILTER_ID])===null||_filters_FAVOURITES_FILTER_ID===void 0?void 0:_filters_FAVOURITES_FILTER_ID.value;if(!isCanvas&&slugFieldId&&data&&(favouritesOnly||typeof favouriteFilterValue===\"boolean\")){const favourites=favouriteState[cmsCollectionName]||[];const shouldFilterFavorites=favouriteFilterValue===true||favouritesOnly;if(!Array.isArray(favourites)){if(favouritesOnly){data=[];}}else if(favourites.length===0){if(shouldFilterFavorites){data=[];}}else{const filterFunction=shouldFilterFavorites?item=>favourites.includes(item[slugFieldId]):item=>!favourites.includes(item[slugFieldId]);data=data.filter(filterFunction);}}// Search\nlet missingSearchFieldError=\"\";var _searchState_superfieldsId_trim_toLowerCase;const searchText=(_searchState_superfieldsId_trim_toLowerCase=(_searchState_superfieldsId=searchState[superfieldsId])===null||_searchState_superfieldsId===void 0?void 0:_searchState_superfieldsId.trim().toLowerCase())!==null&&_searchState_superfieldsId_trim_toLowerCase!==void 0?_searchState_superfieldsId_trim_toLowerCase:\"\";if(searchText.length&&Array.isArray(data)){const otherData=[];// 0: Hidden\n// 1: Includes text\n// 2: Includes full word\n// 3: Starts with\n// 4: Exact match\nconst levels=[[...data],[],[],[],[]];const itemLevels=new Array(data.length).fill(0);for(let i=0;i<props.searchFields.length;i++){const fieldName=props.searchFields[i];const property=propertyControlsByName[fieldName];if(!property){missingSearchFieldError=fieldName;break;}const propertyID=property.id;const propertyType=property.type;const optionMap={};const propIsString=propertyType==\"string\";const propIsEnum=propertyType==\"enum\";const propIsNumber=propertyType==\"number\";if(propertyType==\"enum\"&&property.options&&property.optionTitles){for(let i=0;i<property.options.length;i++){optionMap[property.options[i]]=property.optionTitles[i].toLowerCase();}}for(const ii in data){var _originalDataMap_cmsItem_id;const cmsItem=data[ii];const value=(_originalDataMap_cmsItem_id=originalDataMap[cmsItem.id])===null||_originalDataMap_cmsItem_id===void 0?void 0:_originalDataMap_cmsItem_id[propertyID];if(value==undefined||value==null){continue;}let text=propIsString?value.toLowerCase():propIsEnum?optionMap[value]:propIsNumber?String(value):\"\";let level=0;if(text==searchText){level=4;}else if(text.includes(searchText)){if(text.startsWith(searchText)){level=3;}else if((\" \"+text+\" \").includes(\" \"+searchText+\" \")){level=2;}else{level=1;}}// Move item to new level if it's a higher level\nconst oldLevel=itemLevels[ii];if(level>oldLevel){// Remove from old level\nconst oldLevelItems=[];for(const item of levels[oldLevel]){if(item!=cmsItem){oldLevelItems.push(item);}}levels[oldLevel]=oldLevelItems;// Add to new level\nlevels[level].push(cmsItem);itemLevels[ii]=level;}}}if(!missingSearchFieldError.length){data=[...levels[4],...levels[3],...levels[2],...levels[1],...otherData];}}if((data===null||data===void 0?void 0:data.length)!==((_paginationState_superfieldsId=paginationState[superfieldsId])===null||_paginationState_superfieldsId===void 0?void 0:_paginationState_superfieldsId.totalItems)){updatePaginationState();}// Number of items removed from beginning of array by pagination\nlet childrenStartOffset=0;// Pagination and randomization are performed after filtering and search\nlet items=data;// Randomization\nif(!isCanvas&&!searchText&&((_randomizationState_superfieldsId1=randomizationState[superfieldsId])===null||_randomizationState_superfieldsId1===void 0?void 0:_randomizationState_superfieldsId1.seed)){let orderedItems=originalData;if(dataOrder){orderedItems=new Array(originalData.length);for(let i=0;i<dataOrder.length;i++){orderedItems[dataOrder[i]]=originalData[i];}}items=orderedItems.filter(item=>items.includes(item));}// Pagination\nif(!isCanvas&&pagination){const state=paginationState[superfieldsId];let page=state?state.page:0;switch(paginationType){case\"prevNextButtons\":items=items.slice(page*itemsPerPage,(page+1)*itemsPerPage);childrenStartOffset=page*itemsPerPage;break;case\"loadMoreButton\":case\"framerPagination\":items=items.slice(0,(page+1)*itemsPerPage);break;}}let showNotComponentChildError=false;let children=null;let className=\"\";if(!isCanvas&&collectionList&&query){const{offset,limit,...otherQuery}=query;if(childrenFunction){var _clChildren_props,_collectionList_props1;const state=paginationState[superfieldsId];const paginationInfo={currentPage:state?state.page+1:1,totalPages:state?state.totalPages:1,isLoading:false};const loadMore=()=>{const state=paginationState[superfieldsId];if(pagination&&state){const newPage=state.page+1;if(newPage>=0&&newPage<state.totalPages){setPaginationState(prev=>({[superfieldsId]:{...prev[superfieldsId],page:newPage}}));onPaginationChange();}}};let clChildren=childrenFunction(items,paginationInfo,loadMore);const modifyChildren=elements=>{if(componentConfig&&componentConfig.variant.length>0&&(elements===null||elements===void 0?void 0:elements.length)){const newChildren=[];let isComponentWithVariants=true;for(let i=0;i<elements.length;i++){const child=elements[i];const component=/*#__PURE__*/_jsx(ComponentVariantSwitch,{// key={child.props?.id}\nchild:child,componentConfig:componentConfig});if(component===child){isComponentWithVariants=false;break;}else{newChildren.push(component);}}if(isComponentWithVariants){return newChildren;}}return elements;};if(Array.isArray(clChildren)){children=modifyChildren(clChildren);}else if(Array.isArray(clChildren===null||clChildren===void 0?void 0:(_clChildren_props=clChildren.props)===null||_clChildren_props===void 0?void 0:_clChildren_props.children)){const childrenArray=clChildren.props.children;let arrayIndex=childrenArray.findIndex(child=>Array.isArray(child));if(arrayIndex==-1){children=modifyChildren(childrenArray);}else{let newChildren=[];for(const child of childrenArray){if(Array.isArray(child)){newChildren=newChildren.concat(modifyChildren(child));}else{newChildren.push(child);}}children=newChildren;}}className=((_collectionList_props1=collectionList.props)===null||_collectionList_props1===void 0?void 0:_collectionList_props1.className)||\"\";}}if(!collectionList){return /*#__PURE__*/_jsx(Message,{title:\"Connect a CMS Collection List\",subtitle:\"Drag the handle on the right side to a Collection List or select from the dropdown list. The Collection List must be outside of a page to be connected.\"});}if(!isCanvas&&!query){return /*#__PURE__*/_jsx(Message,{title:\"Connect a CMS Collection List\",subtitle:\"The layer that's connected isn't a Collection List. Make sure the Collection List isn't inside of any other layers or components when connecting it.\"});}if(favouriting&&cmsCollectionName==\"\"){return /*#__PURE__*/_jsx(Message,{title:\"Enter a CMS Collection Name\",subtitle:'Write the name of the CMS collection in the \"CMS Collection Name\" property. The name is used for saving favourites as a cookie and for matching with favourite buttons.'});}if(favouriting&&slugFieldName==\"\"){return /*#__PURE__*/_jsx(Message,{title:\"Enter a Slug Field Name\",subtitle:'Write the name of the field in the \"Slug Field Name\" property. \"Slug\" is the default value unless you renamed it.'});}if(showNotComponentChildError){return /*#__PURE__*/_jsx(Message,{title:\"Collection List item is not a component with variants.\",subtitle:\"To use variant overrides, make sure the only item in the Collection List is a component with variants. Otherwise, remove the component variant override.\"});}if(missingSearchFieldError.length){return /*#__PURE__*/_jsx(Message,{title:`\"${missingSearchFieldError}\" field does not exist in your CMS collection`,subtitle:`The field \"${missingSearchFieldError}\" is in the search fields list, but there are no fields in your CMS collection with that name. Edit the field name in the search fields list, or add a new CMS field with that name.`});}let layoutStyle={};if(layout){const padding=layout.paddingIsMixed?`${layout.paddingTop}px ${layout.paddingRight}px ${layout.paddingBottom}px ${layout.paddingLeft}px`:`${layout.padding}px`;switch(layout.type){case\"stack\":const isVertical=layout.direction==\"vertical\";layoutStyle={display:\"flex\",flexDirection:isVertical?\"column\":\"row\",flexWrap:layout.wrap?\"wrap\":\"nowrap\",alignItems:isVertical?layout.alignV:layout.alignH,justifyContent:layout.distribute,gap:layout.gap,padding};break;case\"grid\":// Columns\nlet gridTemplateColumns=\"\";if(layout.columns==\"auto\"){if(layout.gridWidthType==\"min\"){gridTemplateColumns=`repeat(auto-fill, minmax(${layout.gridWidth}px, 1fr))`;}else{// \"fixed\"\ngridTemplateColumns=`repeat(auto-fill, ${layout.gridWidth}px)`;}}else{if(layout.gridWidthType==\"min\"){gridTemplateColumns=`repeat(${layout.columnCount}, minmax(${layout.gridWidth}px, 1fr))`;}else{// \"fixed\"\ngridTemplateColumns=`repeat(${layout.columnCount}, ${layout.gridWidth}px)`;}}// Rows\nlet gridAutoRows=\"\";switch(layout.gridHeightType){case\"fixed\":gridAutoRows=`${layout.gridHeight}px`;break;case\"fit\":gridAutoRows=\"min-content\";break;}layoutStyle={display:\"grid\",gridTemplateColumns,gridAutoRows,justifyContent:layout.gridAlign,alignItems:layout.gridAlignV,columnGap:layout.gapH,rowGap:layout.gapV,padding,placeContent:\"start end\"};break;}}const isMasonry=(layout===null||layout===void 0?void 0:layout.type)==\"masonry\";// Canvas view\nif(isCanvas){if(collectionList){let paginationPreviewOffset=0;let paginationItemsAfter=0;if(pagination&&paginationType!==\"framerPagination\"){try{const children=collectionList.type.type(collectionList.props).props.children.props.children;if(children.length>1){for(let i=0;i<children.length;i++){if(children[i].key==\"repeated\"){paginationPreviewOffset=i;paginationItemsAfter=children.length-i-1;break;}}}}catch{console.warn(\"Failed to calculate Superfields pagination preview offset.\");}}if(isMasonry){var _collectionList_props___node_cache,_collectionList_props___node,_collectionList_props2;const htmlElement=(_collectionList_props2=collectionList.props)===null||_collectionList_props2===void 0?void 0:(_collectionList_props___node=_collectionList_props2.__node)===null||_collectionList_props___node===void 0?void 0:(_collectionList_props___node_cache=_collectionList_props___node.cache)===null||_collectionList_props___node_cache===void 0?void 0:_collectionList_props___node_cache.htmlElement;if(htmlElement){var _htmlElement_reactFiberKey_memoizedProps_children__props_children_props_children__props_children__props,_htmlElement_reactFiberKey_memoizedProps_children__props_children_props_children__props_children_,_htmlElement_reactFiberKey_memoizedProps_children__props_children_props_children__props_children,_htmlElement_reactFiberKey_memoizedProps_children__props_children_props_children__props,_htmlElement_reactFiberKey_memoizedProps_children__props_children_props_children_,_htmlElement_reactFiberKey_memoizedProps_children__props_children_props_children,_htmlElement_reactFiberKey_memoizedProps_children__props_children_props,_htmlElement_reactFiberKey_memoizedProps_children__props_children,_htmlElement_reactFiberKey_memoizedProps_children__props,_htmlElement_reactFiberKey_memoizedProps_children_,_htmlElement_reactFiberKey_memoizedProps_children,_htmlElement_reactFiberKey_memoizedProps,_htmlElement_reactFiberKey;let reactFiberKey=\"\";for(const key of Object.keys(htmlElement)){if(key.startsWith(\"__reactFiber\")){reactFiberKey=key;}}// Solution for getting React children from CMS collection on canvas by Fehmi Ozuseven\nlet cmsChildren=(_htmlElement_reactFiberKey=htmlElement[reactFiberKey])===null||_htmlElement_reactFiberKey===void 0?void 0:(_htmlElement_reactFiberKey_memoizedProps=_htmlElement_reactFiberKey.memoizedProps)===null||_htmlElement_reactFiberKey_memoizedProps===void 0?void 0:(_htmlElement_reactFiberKey_memoizedProps_children=_htmlElement_reactFiberKey_memoizedProps.children)===null||_htmlElement_reactFiberKey_memoizedProps_children===void 0?void 0:(_htmlElement_reactFiberKey_memoizedProps_children_=_htmlElement_reactFiberKey_memoizedProps_children[0])===null||_htmlElement_reactFiberKey_memoizedProps_children_===void 0?void 0:(_htmlElement_reactFiberKey_memoizedProps_children__props=_htmlElement_reactFiberKey_memoizedProps_children_.props)===null||_htmlElement_reactFiberKey_memoizedProps_children__props===void 0?void 0:(_htmlElement_reactFiberKey_memoizedProps_children__props_children=_htmlElement_reactFiberKey_memoizedProps_children__props.children)===null||_htmlElement_reactFiberKey_memoizedProps_children__props_children===void 0?void 0:(_htmlElement_reactFiberKey_memoizedProps_children__props_children_props=_htmlElement_reactFiberKey_memoizedProps_children__props_children.props)===null||_htmlElement_reactFiberKey_memoizedProps_children__props_children_props===void 0?void 0:(_htmlElement_reactFiberKey_memoizedProps_children__props_children_props_children=_htmlElement_reactFiberKey_memoizedProps_children__props_children_props.children)===null||_htmlElement_reactFiberKey_memoizedProps_children__props_children_props_children===void 0?void 0:(_htmlElement_reactFiberKey_memoizedProps_children__props_children_props_children_=_htmlElement_reactFiberKey_memoizedProps_children__props_children_props_children[1])===null||_htmlElement_reactFiberKey_memoizedProps_children__props_children_props_children_===void 0?void 0:(_htmlElement_reactFiberKey_memoizedProps_children__props_children_props_children__props=_htmlElement_reactFiberKey_memoizedProps_children__props_children_props_children_.props)===null||_htmlElement_reactFiberKey_memoizedProps_children__props_children_props_children__props===void 0?void 0:(_htmlElement_reactFiberKey_memoizedProps_children__props_children_props_children__props_children=_htmlElement_reactFiberKey_memoizedProps_children__props_children_props_children__props.children)===null||_htmlElement_reactFiberKey_memoizedProps_children__props_children_props_children__props_children===void 0?void 0:(_htmlElement_reactFiberKey_memoizedProps_children__props_children_props_children__props_children_=_htmlElement_reactFiberKey_memoizedProps_children__props_children_props_children__props_children[0])===null||_htmlElement_reactFiberKey_memoizedProps_children__props_children_props_children__props_children_===void 0?void 0:(_htmlElement_reactFiberKey_memoizedProps_children__props_children_props_children__props_children__props=_htmlElement_reactFiberKey_memoizedProps_children__props_children_props_children__props_children_.props)===null||_htmlElement_reactFiberKey_memoizedProps_children__props_children_props_children__props_children__props===void 0?void 0:_htmlElement_reactFiberKey_memoizedProps_children__props_children_props_children__props_children__props.children;if(Array.isArray(cmsChildren)){let children=[];for(const child of cmsChildren){var _child_props;if(child.key==\"repeated\"&&Array.isArray((_child_props=child.props)===null||_child_props===void 0?void 0:_child_props.children)){children=children.concat(child.props.children);}else{children.push(child);}}return /*#__PURE__*/_jsx(Masonry,{columns:layout.masonryColumns,gap:`${layout.gapV}px ${layout.gapH}px`,alignment:layout.masonryItemWidth===\"fit\"?layout.masonryAlign:\"stretch\",autoArrange:true,reverse:false,children:children});}}}else{var _collectionList_props3;var _props_id;const id=(_props_id=props.id)!==null&&_props_id!==void 0?_props_id:\"a\"+String(Math.floor(Math.random()*999999999));return /*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/cloneElement(collectionList,{id,style:{...(_collectionList_props3=collectionList.props)===null||_collectionList_props3===void 0?void 0:_collectionList_props3.style,...props.style,...layoutStyle}}),pagination&&paginationType!==\"framerPagination\"&&/*#__PURE__*/_jsx(\"style\",{children:`#${id} > *:nth-child(n+${itemsPerPage+1+paginationPreviewOffset})${paginationItemsAfter?`:not(:nth-last-child(-n+${paginationItemsAfter}))`:\"\"} { display: none !important; }`})]});}}else{return /*#__PURE__*/_jsx(\"div\",{style:{height:100}});}}// Empty state\nif(!(items===null||items===void 0?void 0:items.length)){if(emptyState){return /*#__PURE__*/cloneElement(emptyState,{style:{...emptyState.props.style,...props.style}});}else{return /*#__PURE__*/_jsx(\"div\",{});}}return /*#__PURE__*/_jsxs(\"div\",{...collectionList.props,style:{...collectionList===null||collectionList===void 0?void 0:collectionList.props.style,...props.style,position:\"relative\",...layoutStyle},className:isMasonry?\"\":className,children:[isMasonry?/*#__PURE__*/_jsx(Masonry,{columns:layout.masonryColumns,gap:`${layout.gapV}px ${layout.gapH}px`,alignment:layout.masonryItemWidth===\"fit\"?layout.masonryAlign:\"stretch\",autoArrange:true,reverse:false,children:children}):children,props.scrollUp&&/*#__PURE__*/_jsx(\"div\",{ref:scrollUpRef,style:{position:\"absolute\",top:props.scrollUp.offset,pointerEvents:\"none\"}})]});}addPropertyControls(Superfields,{superfieldsId:{type:ControlType.Number,defaultValue:0,step:1,min:0,displayStepper:true,title:\"ID\"},collectionList:{type:ControlType.ComponentInstance},emptyState:{type:ControlType.ComponentInstance},layout:{type:ControlType.Object,optional:true,controls:{type:{type:ControlType.Enum,defaultValue:\"stack\",options:[\"stack\",\"grid\",\"masonry\"],optionTitles:[\"Stack\",\"Grid\",\"Masonry\"],displaySegmentedControl:true,segmentedControlDirection:\"vertical\"},direction:{type:ControlType.Enum,defaultValue:\"vertical\",options:[\"horizontal\",\"vertical\"],optionTitles:[\"Horizontal\",\"Vertical\"],optionIcons:[\"direction-horizontal\",\"direction-vertical\"],displaySegmentedControl:true,hidden:props=>props.type!=\"stack\"},distribute:{type:ControlType.Enum,defaultValue:\"start\",options:[\"start\",\"center\",\"end\",\"space-between\",\"space-around\",\"space-evenly\"],optionTitles:[\"Start\",\"Center\",\"End\",\"Space Between\",\"Space Around\",\"Space Evenly\"],hidden:props=>props.type!=\"stack\"},alignH:{type:ControlType.Enum,defaultValue:\"start\",options:[\"start\",\"center\",\"end\"],optionTitles:[\"Top\",\"Center\",\"Bottom\"],optionIcons:[\"align-top\",\"align-middle\",\"align-bottom\"],displaySegmentedControl:true,title:\"Align\",hidden:props=>props.type!=\"stack\"||props.direction!=\"horizontal\"},alignV:{type:ControlType.Enum,defaultValue:\"start\",options:[\"start\",\"center\",\"end\"],optionTitles:[\"Left\",\"Center\",\"Right\"],optionIcons:[\"align-left\",\"align-center\",\"align-right\"],displaySegmentedControl:true,title:\"Align\",hidden:props=>props.type!=\"stack\"||props.direction!=\"vertical\"},wrap:{type:ControlType.Boolean,defaultValue:false,hidden:props=>props.type!=\"stack\"},columns:{type:ControlType.Enum,defaultValue:\"fixed\",options:[\"auto\",\"fixed\"],optionTitles:[\"Auto\",\"Fixed\"],displaySegmentedControl:true,hidden:props=>props.type!=\"grid\"},columnCount:{type:ControlType.Number,defaultValue:2,min:1,step:1,displayStepper:true,title:\" \",hidden:props=>props.type!=\"grid\"||props.columns==\"auto\"},gridWidthType:{type:ControlType.Enum,defaultValue:\"min\",options:[\"min\",\"fixed\"],optionTitles:[\"Min\",\"Fixed\"],displaySegmentedControl:true,title:\"Width\",hidden:props=>props.type!=\"grid\"},gridWidth:{type:ControlType.Number,defaultValue:200,min:1,step:1,title:\" \",hidden:props=>props.type!=\"grid\"},gridHeightType:{type:ControlType.Enum,defaultValue:\"fit\",options:[\"fit\",\"fixed\"],optionTitles:[\"Fit\",\"Fixed\"],displaySegmentedControl:true,title:\"Height\",hidden:props=>props.type!=\"grid\"},gridHeight:{type:ControlType.Number,defaultValue:200,min:1,step:1,title:\" \",hidden:props=>props.type!=\"grid\"||props.gridHeightType!=\"fixed\"},gridAlign:{type:ControlType.Enum,defaultValue:\"center\",options:[\"start\",\"center\",\"end\"],optionTitles:[\"Left\",\"Center\",\"Right\"],displaySegmentedControl:true,title:\"Align\",hidden:props=>props.type!=\"grid\"},gridAlignV:{type:ControlType.Enum,defaultValue:\"start\",options:[\"start\",\"center\",\"end\"],optionTitles:[\"Top\",\"Center\",\"Bottom\"],optionIcons:[\"align-top\",\"align-middle\",\"align-bottom\"],displaySegmentedControl:true,title:\" \",hidden:props=>props.type!=\"grid\"||props.gridHeightType!==\"fit\"},masonryColumns:{type:ControlType.Number,defaultValue:3,min:1,step:1,displayStepper:true,title:\"Columns\",hidden:props=>props.type!==\"masonry\"},masonryItemWidth:{type:ControlType.Enum,defaultValue:\"fill\",options:[\"fit\",\"fill\"],optionTitles:[\"Fit\",\"Fill\"],displaySegmentedControl:true,title:\"Item Width\",hidden:props=>props.type!==\"masonry\"},masonryAlign:{type:ControlType.Enum,defaultValue:\"center\",options:[\"start\",\"center\",\"end\"],optionTitles:[\"Left\",\"Center\",\"Right\"],displaySegmentedControl:true,title:\"Align\",hidden:props=>props.type!==\"masonry\"||props.masonryItemWidth!==\"fit\"},gap:{type:ControlType.Number,defaultValue:10,min:0,step:1,hidden:props=>props.type!==\"stack\"},gapH:{type:ControlType.Number,defaultValue:10,min:0,step:1,hidden:props=>props.type!==\"grid\"&&(props.type!==\"masonry\"||props.masonryColumns===1)},gapV:{type:ControlType.Number,defaultValue:10,min:0,step:1,hidden:props=>props.type!==\"grid\"&&props.type!==\"masonry\"},padding:{type:ControlType.FusedNumber,defaultValue:0,toggleKey:\"paddingIsMixed\",toggleTitles:[\"All\",\"Individual\"],valueKeys:[\"paddingTop\",\"paddingRight\",\"paddingBottom\",\"paddingLeft\"],valueLabels:[\"T\",\"R\",\"B\",\"L\"],min:0}}},componentConfig:{type:ControlType.Object,optional:true,title:\"Component\",description:\" \",controls:{variant:{type:ControlType.String,defaultValue:\"\",placeholder:\"Variant Name\",description:\"Override the component's variant for responsive design.\\n\\n*Note:* The component must be the only layer inside the Collection List to use this.\\n\\n*Note:* Variant does not appear while editing. Preview your project to see the variant.\"}}},pagination:{type:ControlType.Boolean,defaultValue:false},paginationType:{type:ControlType.Enum,defaultValue:\"pagination\",options:[\"prevNextButtons\",\"loadMoreButton\"],optionTitles:[\"Prev/Next Buttons\",\"Load More Button\"],title:\"Type\",displaySegmentedControl:true,segmentedControlDirection:\"vertical\",hidden:props=>!props.pagination},itemsPerPage:{type:ControlType.Number,defaultValue:4,min:1,step:1,displayStepper:true,hidden:props=>!props.pagination},scrollUp:{type:ControlType.Object,optional:true,defaultValue:{scrollStyle:\"smooth\",offset:0},title:\"Scroll to Top\",controls:{scrollStyle:{type:ControlType.Enum,defaultValue:\"smooth\",options:[\"smooth\",\"instant\"],optionTitles:[\"Smooth\",\"Instant\"],displaySegmentedControl:true,title:\"Scroll\"},offset:{type:ControlType.Number,defaultValue:-32,step:1,description:\"When the page changes, scroll to the top of the Superfields component with offset\"}},hidden:props=>!props.pagination||props.paginationType!=\"prevNextButtons\"},filtering:{type:ControlType.Boolean,defaultValue:false},favouriting:{type:ControlType.Boolean,defaultValue:false},cmsCollectionName:{type:ControlType.String,defaultValue:\"\",placeholder:\"CMS Collection Name\",title:\"CMS Collection Name\",hidden:props=>!props.favouriting},slugFieldName:{type:ControlType.String,defaultValue:\"Slug\",placeholder:\"Slug Field Name\",hidden:props=>!props.favouriting},favouritesOnly:{type:ControlType.Boolean,defaultValue:false,hidden:props=>!props.favouriting},search:{type:ControlType.Boolean,defaultValue:false},searchFields:{type:ControlType.Array,defaultValue:[\"Title\"],title:\"Fields\",control:{type:ControlType.String,placeholder:\"CMS Field Name\"},description:\"CMS fields to search\",hidden:props=>!props.search},randomize:{type:ControlType.Boolean,defaultValue:false}});function ComponentVariantSwitch({child,componentConfig}){var _child_props_children_props,_child_props_children,_child_props,_component_type;const componentChild=child===null||child===void 0?void 0:(_child_props=child.props)===null||_child_props===void 0?void 0:(_child_props_children=_child_props.children)===null||_child_props_children===void 0?void 0:(_child_props_children_props=_child_props_children.props)===null||_child_props_children_props===void 0?void 0:_child_props_children_props.children;const componentProps=componentChild===null||componentChild===void 0?void 0:componentChild.props;const component=componentProps===null||componentProps===void 0?void 0:componentProps.children;const variant=componentConfig.variant;if(!component){return child;}if((componentChild===null||componentChild===void 0?void 0:componentChild.type)==ResolveLinks){return /*#__PURE__*/_jsx(ResolveLinks,{...componentProps,children:(...values)=>{const element=component(...values);return /*#__PURE__*/cloneElement(element,{children:{...element.props.children,props:{...element.props.children.props,children:{...element.props.children.props.children,props:{...element.props.children.props.children.props,variant}}}}});}});}else if(!((_component_type=component.type)===null||_component_type===void 0?void 0:_component_type.propertyControls)){var _component_props;const cData=component===null||component===void 0?void 0:(_component_props=component.props)===null||_component_props===void 0?void 0:_component_props.children;if(component&&cData){var _cData_type_propertyControls,_cData_type;const variantProp=(_cData_type=cData.type)===null||_cData_type===void 0?void 0:(_cData_type_propertyControls=_cData_type.propertyControls)===null||_cData_type_propertyControls===void 0?void 0:_cData_type_propertyControls.variant;if(variantProp){return /*#__PURE__*/cloneElement(component,{children:{...cData,props:{...cData.props,variant}}});}}}return /*#__PURE__*/cloneElement(component,{variant});}class SeededRNG{next(){this.seed=(this.a*this.seed+this.c)%this.m;return this.seed/(this.m-1);}constructor(seed){this.seed=seed;this.m=2147483648// 2**31\n;this.a=1103515245;this.c=12345;}}// Fisher-Yates Shuffle using a seeded RNG\nfunction shuffle(array,seed){const rng=new SeededRNG(seed);for(let i=array.length-1;i>0;i--){const j=Math.floor(rng.next()*(i+1));[array[i],array[j]]=[array[j],array[i]]// Swap elements\n;}}\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"Superfields\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"any\",\"framerDisableUnlink\":\"\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerIntrinsicWidth\":\"600\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Superfields.map"],
  "mappings": "sQAAqF,SAASA,GAAYC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AYlI,EAAK,CAAC,KAAK,KAAKA,EAAK,KAAK,EAAE,WAC1pS,KAAK,EAAE,WAAW,KAAK,EAAE,KAAM,CAAC,EACjC,SAASI,GAAQ+H,EAAMnI,EAAK,CAAC,IAAMoI,EAAI,IAAIF,GAAUlI,CAAI,EAAE,QAAQG,EAAEgI,EAAM,OAAO,EAAEhI,EAAE,EAAEA,IAAI,CAAC,IAAMkI,EAAE,KAAK,MAAMD,EAAI,KAAK,GAAGjI,EAAE,EAAE,EAAE,CAACgI,EAAMhI,CAAC,EAAEgI,EAAME,CAAC,CAAC,EAAE,CAACF,EAAME,CAAC,EAAEF,EAAMhI,CAAC,CAAC,CACvK,CAAC",
  "names": ["createStore", "state1", "dataStore", "Data", "setDataStore", "newState", "storeState", "storeSetters", "setStoreState", "setter", "useStore", "state", "setState", "ye", "ue", "useObserveData", "usePaginationState", "createStore", "useFilterState", "useFavouriteState", "useSearchState", "useRandomizationState", "Button", "props", "onClick", "onMouseEnter", "_props_font", "_props_style", "_props_customLayer", "_props_style1", "_props_style2", "layer", "width", "height", "q", "p", "u", "createBackground", "Border", "Border", "width", "widthIsMixed", "widthTop", "widthRight", "widthBottom", "widthLeft", "style", "color", "transition", "animate", "radius", "p", "motion", "Message", "title", "subtitle", "u", "createBackground", "fill", "on", "color", "colorA", "colorB", "getCollectionData", "collectionList", "_collectionList_props", "_collectionList_props_children_props", "_collectionList_props_children", "_collectionList_props1", "_collectionList_props_children_props_children_props", "_collectionList_props_children_props_children", "_collectionList_props_children_props1", "_collectionList_props_children1", "_collectionList_props2", "_queryParent_props", "queryParent", "query", "queryData", "left", "i", "propertyControlsById", "propertyControlsByName", "id", "control", "childrenFunction", "_collectionList_props3", "_clpc_props", "_clpc_props_children_props", "_clpc_props_children", "_clpc_props1", "clpc", "DEFAULT_COLUMNS", "DEFAULT_GAP", "Masonry", "breakpoints", "columns", "gapH", "gapV", "reverse", "autoArrange", "alignment", "children", "style", "otherProps", "forwardedRef", "elements", "pe", "previousLayout", "arrange", "setArrange", "ye", "layoutVersion", "setLayoutVersion", "resizeObservers", "updateTimeoutRef", "earliestChangedIndex", "handleElementResize", "element", "lastUpdatedHeight", "observer", "entries", "newHeight", "changedIndex", "el", "delay", "v", "addElement", "index", "temporaryElements", "ue", "fe", "layout", "se", "arrayOfChildren", "j", "newLayout", "columnHeights", "_earliestChangedIndex_current", "getColumnIndex", "columnIndex", "item", "elementHeight", "currentColumn", "col", "child", "J", "p", "column", "itemIndex", "FAVOURITES_FILTER_ID", "DELIMITER", "Superfields", "props", "_props_collectionList", "_props_emptyState", "_propertyControlsByName_slugFieldName", "_randomizationState_superfieldsId", "_filters_FAVOURITES_FILTER_ID", "_searchState_superfieldsId", "_paginationState_superfieldsId", "_randomizationState_superfieldsId1", "superfieldsId", "layout", "componentConfig", "favouriting", "randomize", "cmsCollectionName", "slugFieldName", "favouritesOnly", "collectionList", "emptyState", "isCanvas", "RenderTarget", "scrollUpRef", "pe", "paginationState", "setPaginationState", "usePaginationState", "filterState", "setFilterState", "useFilterState", "favouriteState", "setFavouriteState", "useFavouriteState", "searchState", "setSearchState", "useSearchState", "randomizationState", "setRandomizationState", "useRandomizationState", "filters", "query", "queryParent", "queryData", "propertyControlsByName", "childrenFunction", "se", "getCollectionData", "_propertyControlsByName_slugFieldName_id", "slugFieldId", "select", "usedFieldNames", "fieldName", "value", "_propertyControlsByName_value", "name", "originalData", "useQueryData", "paginationLength", "paginationType", "_collectionList_props_children", "_collectionList_props", "QueryData", "a", "collection", "pagination", "itemsPerPage", "data", "originalDataMap", "item", "dataOrder", "setDataOrder", "ye", "updatePaginationState", "totalPages", "onPaginationChange", "ue", "_randomizationState_superfieldsId_seed", "seed", "newDataOrder", "_", "i", "shuffle", "rect", "window", "newData", "filter", "conditionContains", "fields", "n", "field", "filteredData", "cmsItem", "foundMatch", "originalDataItem", "dataFieldValue", "values", "_field_options", "_field_optionTitles", "dataValueTitle", "v", "_field_optionTitles1", "_field_options1", "_originalDataItem_field_id", "_field_options2", "_field_optionTitles2", "_field_optionTitles3", "_field_options3", "favouriteFilterValue", "favourites", "shouldFilterFavorites", "filterFunction", "missingSearchFieldError", "_searchState_superfieldsId_trim_toLowerCase", "searchText", "otherData", "levels", "itemLevels", "property", "propertyID", "propertyType", "optionMap", "propIsString", "propIsEnum", "propIsNumber", "ii", "_originalDataMap_cmsItem_id", "text", "level", "oldLevel", "oldLevelItems", "childrenStartOffset", "items", "orderedItems", "state", "page", "showNotComponentChildError", "children", "className", "offset", "limit", "otherQuery", "_clChildren_props", "_collectionList_props1", "paginationInfo", "clChildren", "newPage", "prev", "modifyChildren", "elements", "newChildren", "isComponentWithVariants", "child", "component", "p", "ComponentVariantSwitch", "childrenArray", "Message", "layoutStyle", "padding", "isVertical", "gridTemplateColumns", "gridAutoRows", "isMasonry", "paginationPreviewOffset", "paginationItemsAfter", "_collectionList_props___node_cache", "_collectionList_props___node", "_collectionList_props2", "htmlElement", "_htmlElement_reactFiberKey_memoizedProps_children__props_children_props_children__props_children__props", "_htmlElement_reactFiberKey_memoizedProps_children__props_children_props_children__props_children_", "_htmlElement_reactFiberKey_memoizedProps_children__props_children_props_children__props_children", "_htmlElement_reactFiberKey_memoizedProps_children__props_children_props_children__props", "_htmlElement_reactFiberKey_memoizedProps_children__props_children_props_children_", "_htmlElement_reactFiberKey_memoizedProps_children__props_children_props_children", "_htmlElement_reactFiberKey_memoizedProps_children__props_children_props", "_htmlElement_reactFiberKey_memoizedProps_children__props_children", "_htmlElement_reactFiberKey_memoizedProps_children__props", "_htmlElement_reactFiberKey_memoizedProps_children_", "_htmlElement_reactFiberKey_memoizedProps_children", "_htmlElement_reactFiberKey_memoizedProps", "_htmlElement_reactFiberKey", "reactFiberKey", "key", "cmsChildren", "_child_props", "Masonry", "_collectionList_props3", "_props_id", "id", "u", "l", "q", "addPropertyControls", "ControlType", "_child_props_children_props", "_child_props_children", "_component_type", "componentChild", "componentProps", "variant", "ResolveLinks", "element", "_component_props", "cData", "_cData_type_propertyControls", "_cData_type", "SeededRNG", "array", "rng", "j"]
}
