{"version":3,"file":"SortingSelector.CH6qRfF6.mjs","names":["parsePadding","n","r","t","e","useBaseStore","useRef","useTransition","useMemo","useRef","useState","useMemo","Children","Cookies","Superfields","useRef","useMemo","_Fragment","useContext","OriginalSuperfields","useState","parsePadding","ControlTypeExtended","SortingSelector","OriginalSortingSelector","__esmMin","z","ee","init_npm_react_18_3_1","ie","ue","oe","j","pe","he","window","init_ssg_sandbox_shims","ce","l","le","p","K","c","init_jsx_runtime","_e","de","ye","motion","MotionConfigContext","LayoutGroup","init_framer_motion_DhsWWWsN","PathVariablesContext","ResolveLinks","RenderTarget","withCSS","addPropertyControls","useRouter","init_framer_Bf4_tcb2","useQueryData","ControlType","superfieldsId","Border","color","animate","widthIsMixed","widthTop","widthRight","widthBottom","widthLeft","width","style","radius","Message","title","subtitle","createBackground","fill","on","colorB","colorA","fillProp","props","noDefault","gradientColorA","gradientColorB","fillPropOnOff","colorOn","colorAOn","colorBOn","colorOff","colorAOff","colorBOff","parsePadding$1","padding","parsedValues","value","sortingControls","defaultSorting","hidden","sortFieldType","DEFAULT_SORTING_ID","FAVOURITES_FILTER_ID","DELIMITER","FieldType","FilterFieldType","FilterTextCondition","borderPropertyControl","init_SuperfieldsShared","\"String\"","\"Number\"","\"Boolean\"","\"Enum\"","\"Date\"","\"Option\"","\"Toggle\"","\"Text\"","\"Reference\"","\"MultiReference\"","\"MultipleOptions\"","\"Equals\"","\"Contains\"","addPropertyControlsV2","showModeControl","id","controls","control","component","MODE_CONTROL","SUPPORT_CONTROL","parsePadding","values","val","property","parseRadius","idControl","init_Shared","getCollectionData","queryParent","collectionList","query","from","collections","processJoin","select","field","mainCollection","multiReferenceQueries","multiReferenceIdMap","argument","alias","fieldId","right","queryData","propertyControlsById","propertyControlsByTitle","collection","byId","byName","propertyControls","childrenFunction","clpc","join","addFieldsToSelect","fields","selectItem","getSelectItemForField","mainAlias","propertyControl","name","referenceFieldName","referencedField","matchFound","item","init_CMSLibrary","createStore","e","setState","t","getState","subscribeWithSelector","listenerToAdd","r","create","useStore","u","a","d","o","f","S","b","g","s","w","listener","shallow","init_zustand","createInitialState","useBaseStore$1","useSuperfieldsStore","getCurrentPath","init_Store","path","get","set","state","updates","currentFilters","fieldName","initializedRef","_","startTransition","previousRouteIdRef","currentRouteId","memoizedFunctions","functions","key","args","initialize","freshState","initializedState","initialState","selector","Masonry","DEFAULT_COLUMNS","DEFAULT_GAP","otherProps","elements","previousLayout","arrange","setArrange","layoutVersion","setLayoutVersion","resizeObservers","updateTimeoutRef","earliestChangedIndex","handleElementResize","element","lastUpdatedHeight","observer","newHeight","entries","changedIndex","el","v","addElement","temporaryElements","autoArrange","layout","columns","arrayOfChildren","children","reverse","newLayout","columnHeights","getColumnIndex","index","columnIndex","elementHeight","gapV","currentColumn","col","child","forwardedRef","gapH","alignment","column","itemIndex","init_Masonry","assign","init","init_js_cookie","useBaseStore","useFavouriteStore","init_FavouriteStore","slugFieldId","favourites","currentFavourites","favourite","fav","favouriteToRemove","newState","cookieId","savedState","cmsCollectionName","cmsNameCookieId","savedFavourites","error","Superfields$1","emptyState","isCanvas","isOptimizing","scrollUpRef","itemCountRef","isFirstRender","framerPaginationSize","framerPagination","paginationActive","filters","randomizationSeed","search","sortOption","defaultSortOption","sortingUrlParameter","paginationType","itemsPerPage","page","setPage","setTotalItems","paginationButtonsCount","storeSearchFields","setPaginationType","seededValue","urlParams","urlParameters","searchParam","pageParam","parsedPage","maxPages","data","calculatedPaginationType","randomize","mainPropertyControlsByTitle","mainPropertyControlsById","slugFieldName","filterIds","sort","sortingField","finalSearchFields","modifySelect","multiReferenceSelects","selects","cmsField","fieldTitle","referenceSearchFields","searchField","referenceFilters","filterId","filter","rQuery","originalData","multiReferenceItemsById","refSelect","refQuery","refDataItemsById","refData","dataIds","dataItemsById","mapCollectionDataValues","scrollToTop","scrollUp","rect","url","pageNumber","hasUrlParameterFilter","filteredData","itemIds","filterValue","conditionContains","fieldType","n","isMultiRef","collectionPropControls","propertyControlId","propertyId","isMultipleFields","foundMatch","dataItem","processField","favouriteFilterValue","favouriteFilteredData","favouritesOnly","shouldFilterFavorites","customFilteredData","customOverrideFilter","searchText","searchData","hasSearch","missingSearchField","missingFieldName","levels","itemLevels","i","getPropertyControl","propertyID","propertyType","propIsMultiReference","ii","cmsItem","level","items","propId","rItem","rValue","getSearchLevelForValue","oldLevel","oldLevelItems","itemId","itemCount","pageCount","dataOrder","shuffle","orderedItemIds","canSort","missingSortField","mismatchedSortFieldName","mismatchedSortFieldType","mismatchedFieldName","mismatchedFieldType","sortBy","isAscending","getSortValue","slug","aValue","bValue","comparison","customOverrideSort","memoizedChildren","paginationInfo","loadMore","newPage","originalDataItemsById","clChildren","modifyChildren","newChildren","componentConfig","componentChildren","isComponentWithVariants","MemoizedComponentVariantSwitch","childrenArray","childrenSlugs","fieldTypeNames","layoutStyle","isVertical","gridTemplateColumns","gridAutoRows","isMasonry","collectionListStyle","masonryProps","Transition","transition","MemoizedMasonry","ComponentVariantSwitch","componentChild","componentProps","variant","clonedComponent","cloneComponent","clonedChild","cData","shuffled","array","currentSeed","seed","random","x","defaultReferencePropertyTitle","referenceFieldType","fieldValue","itemValue","filterData","multiSelect","hasFilters","searchFields","uniqueFields","copiedItems","optionMap","referenceItemsById","referenceItems","rPropertyControlsById","newItemValues","rCopiedItems","text","Order","PaginationType","LayoutType","SearchFieldType","init_Superfields","\"Ascending\"","\"Descending\"","\"PrevNextButtons\"","\"LoadMoreButton\"","\"FramerPagination\"","\"Stack\"","\"Grid\"","\"Masonry\"","\"Default\"","config","contextValue","Superfields","advanced","DEFAULT_SLUG_FIELD_NAME","init_Superfields$1","normalizeButtonBorder","border","normalized","BORDER_WIDTH_KEYS","parsed","isSortingOptionNormalized","option","DIVIDER","SortingSelectorComponent","initialized","setInitialized","options","optionsById","defaultOption","optionCounter","normalizedOption","getOptionSortValue","setSortOption","defaultSort","urlValue","candidate","valueId","layers","setSorting","selectorType","dropdownArrow","dropdownStyle","pt","pr","pb","pl","prWithArrow","event","rawBorder","buttonStyle","buttonGroupStyle","normalizedBorder","buttonGroupLayout","ButtonGroupDivider","OptionButton","borderNode","borderTransition","borderProps","selected","selectedColor","defaultColor","selectedFontColor","defaultFontColor","shadowsSelected","shadows","direction","bgBlur","horizontal","marginV","marginH","rounded","ControlTypeExtended$1","SortingSelector$1","init_SortingSelector","SortingSelector","font","legacyButtonGroupStyle","legacyDropdownStyle","legacyProps","ControlTypeExtended","TRANSITION_PROPERTY","FONT_PROPERTY","init_SortingSelector$1"],"sources":["https:/framerusercontent.com/modules/FZjYlw33eNo8pxLbSFLX/9cz7ek89fMdNfYUyPOlg/SuperfieldsShared.js","https:/framerusercontent.com/modules/wzF1aUkHoslINE1PWbP0/pud8aXQ40ffzFv6s5hLJ/Shared.js","https:/framerusercontent.com/modules/PNm0aYRdp2Urx1MCseUn/jWeh7GKvm3RetCKspgqG/CMSLibrary.js","https:/framerusercontent.com/modules/XPZpWLgM1p9otlAim6ab/YZGwyfuvWTDLYoiYQunH/zustand.js","https:/framerusercontent.com/modules/OoGHZMzWDzm2mNN7bmeR/SrfgZxoYwWZOduOAI06A/Store.js","https:/framerusercontent.com/modules/JfW6EfEeJnrqM1YQCYmc/AmWfw7T06LArboPCU8W9/Masonry.js","https:/ga.jspm.io/npm:js-cookie@3.0.5/dist/js.cookie.mjs","https:/framerusercontent.com/modules/c1jaZMVo1HBulMCJfZHW/nlasUjfvw2PNBWz7VogG/FavouriteStore.js","https:/framerusercontent.com/modules/1o5Bk6b6qvbR58A6b2Ej/Mqjy9QGn7gISXUH9A2We/Superfields.js","https:/framerusercontent.com/modules/CnrmX0HY6Udwbh3YPsIM/CJK5W02IWIXboyZLLlEW/Superfields.js","https:/framerusercontent.com/modules/3uGnzxOH6mP18wRhuwQt/I2IPrC4rdqDvl87VaG2N/SortingSelector.js","https:/framerusercontent.com/modules/jk0AaeMV5emloSTzTmrG/vTDclWFzktE6VDRUNCnJ/SortingSelector.js"],"sourcesContent":["// @ts-ignore\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{ControlType,useRouter,PathVariablesContext}from\"framer\";import{motion}from\"framer-motion\";import{cloneElement,useContext,useId}from\"react\";export const DEFAULT_SORTING_ID=\"[{(DEFAULT_SORTING)}]\";export const FAVOURITES_FILTER_ID=\"[{(FAVOURITES)}]\";export const DELIMITER=\"_&%#|_\"// Used for multi-select items and multiple options field names\n;export var FieldType;(function(FieldType){FieldType[\"String\"]=\"string\";FieldType[\"Number\"]=\"number\";FieldType[\"Boolean\"]=\"boolean\";FieldType[\"Enum\"]=\"enum\";FieldType[\"Date\"]=\"date\";})(FieldType||(FieldType={}));export var FilterFieldType;(function(FilterFieldType){FilterFieldType[\"Option\"]=\"option\";FilterFieldType[\"Toggle\"]=\"toggle\";FilterFieldType[\"Text\"]=\"text\";FilterFieldType[\"Reference\"]=\"reference\";FilterFieldType[\"MultiReference\"]=\"multiReference\";FilterFieldType[\"MultipleOptions\"]=\"multipleOptions\";})(FilterFieldType||(FilterFieldType={}));export var FilterTextCondition;(function(FilterTextCondition){FilterTextCondition[\"Equals\"]=\"equals\";FilterTextCondition[\"Contains\"]=\"contains\";})(FilterTextCondition||(FilterTextCondition={}));export function useSlug(){const{currentPathVariables}=useRouter();const pathVariables=useContext(PathVariablesContext);let slug=null;let slugFieldId=null;if(pathVariables){slugFieldId=Object.keys(pathVariables)[0];slug=pathVariables[slugFieldId];}if(currentPathVariables&&!slug&&!slugFieldId){slugFieldId=Object.keys(currentPathVariables)[0];slug=currentPathVariables[slugFieldId];}return{slug,slugFieldId};}export const calculateTotalPages=(totalItems,itemsPerPage)=>{if(itemsPerPage<=0){return 0;}return Math.ceil(totalItems/itemsPerPage);};export const useInstanceId=()=>{const id=useId();const cleanId=id.replace(/:/g,\"\");const instanceId=`superfields-${cleanId}`;return instanceId;};/**\n * Reusable control description for the “Superfields CMS ID” picker.\n *\n * Accepts an optional `hidden` predicate so individual components can decide when\n * the control should be shown (e.g. only in advanced modes).\n * This is done for type safety\n */export function superfieldsId({hidden}={}){return{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\"},bgBlur:{type:ControlType.Number,min:0,max:100,step:1,displayStepper:true,title:\"BG Blur\",hidden:props=>props.appearance!==\"default\"}});export function Button({props,onClick,onMouseEnter=null}){if(props.appearance==\"custom\"){let layer=props.customLayer?.[0];const width=props.style?.width;const height=props.style?.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\",{\"data-superfields\":true,style:{display:\"contents\"},onClick:onClick,children:layer});}return /*#__PURE__*/_jsxs(\"div\",{\"data-superfields\":true,onClick:onClick,style:{position:\"relative\",display:\"flex\",justifyContent: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?.width==\"100%\"?undefined:\"nowrap\",boxShadow:props.shadows,backdropFilter:props.bgBlur?`blur(${props.bgBlur}px)`:undefined,...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,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,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};}export function parsePadding(padding){if(typeof padding!==\"string\"){return[0,0,0,0];}const values=padding.split(\" \");const parsedValues=values.map(value=>parseInt(value.replace(\"px\",\"\"),10));switch(parsedValues.length){case 1:const p=parsedValues[0];return[p,p,p,p];case 4:return parsedValues;}return[0,0,0,0];}export function sortingControls({defaultSorting=false,hidden=null}={}){return{sortBy:{type:ControlType.Enum,defaultValue:\"field\",options:[\"field\",\"favourites\",...defaultSorting?[\"defaultSorting\"]:[]],optionTitles:[\"CMS Field\",\"Favourites\",...defaultSorting?[\"Default Sorting\"]:[]],displaySegmentedControl:true,segmentedControlDirection:\"vertical\",hidden},fieldName:{type:ControlType.String,defaultValue:\"\",placeholder:\"CMS Field Name\",hidden:props=>props.sortBy!==\"field\"||hidden?.(props)},fieldType:{type:ControlType.Enum,defaultValue:\"string\",options:[\"string\",\"number\",\"date\",\"boolean\",\"enum\",\"reference\"],optionTitles:[\"Text\",\"Number\",\"Date\",\"Toggle\",\"Option\",\"Reference\"],hidden:props=>props.sortBy!==\"field\"||hidden?.(props)},referenceFieldName:{type:ControlType.String,defaultValue:\"Title\",placeholder:\"Reference Field Name\",hidden:props=>props.sortBy!==\"field\"||props.fieldType!==\"reference\"||hidden?.(props)},referenceFieldType:{type:ControlType.Enum,defaultValue:\"string\",options:[\"string\",\"number\",\"date\",\"boolean\",\"enum\"],optionTitles:[\"Text\",\"Number\",\"Date\",\"Toggle\",\"Option\"],hidden:props=>props.sortBy!==\"field\"||props.fieldType!==\"reference\"||hidden?.(props)},stringSort:{type:ControlType.Enum,defaultValue:\"ascending\",options:[\"ascending\",\"descending\"],optionTitles:[\"A → Z\",\"Z → A\"],displaySegmentedControl:true,title:\"Sort\",hidden:props=>sortFieldType(props)!==\"string\"||hidden?.(props)},numberSort:{type:ControlType.Enum,defaultValue:\"ascending\",options:[\"ascending\",\"descending\"],optionTitles:[\"Ascending ↑\",\"Descending ↓\"],displaySegmentedControl:true,segmentedControlDirection:\"vertical\",title:\"Sort\",hidden:props=>sortFieldType(props)!==\"number\"||hidden?.(props)},dateSort:{type:ControlType.Enum,defaultValue:\"ascending\",options:[\"ascending\",\"descending\"],optionTitles:[\"Ascending ↑\",\"Descending ↓\"],displaySegmentedControl:true,segmentedControlDirection:\"vertical\",title:\"Sort\",hidden:props=>sortFieldType(props)!==\"date\"||hidden?.(props)},booleanSort:{type:ControlType.Enum,defaultValue:\"ascending\",options:[\"yesNo\",\"noYes\"],optionTitles:[\"Yes, No\",\"No, Yes\"],displaySegmentedControl:true,title:\"Sort\",hidden:props=>sortFieldType(props)!==\"boolean\"||hidden?.(props)},enumSort:{type:ControlType.Enum,defaultValue:\"ascending\",options:[\"optionOrder\",\"reverseOptionOrder\",\"ascending\",\"descending\"],optionTitles:[\"Option Order\",\"Reverse Order\",\"A → Z\",\"Z → A\"],displaySegmentedControl:true,segmentedControlDirection:\"vertical\",title:\"Sort\",hidden:props=>sortFieldType(props)!==\"enum\"||hidden?.(props)},favouritesSort:{type:ControlType.Enum,defaultValue:\"favouritesFirst\",options:[\"favouritesFirst\",\"favouritesLast\"],optionTitles:[\"Favourites First\",\"Favourites Last\"],displaySegmentedControl:true,segmentedControlDirection:\"vertical\",title:\"Sort\",hidden:props=>props.sortBy!==\"favourites\"||hidden?.(props)}};}const sortFieldType=props=>{return props.sortBy===\"field\"?props.fieldType===\"reference\"?props.referenceFieldType:props.fieldType:false;};\nexport const __FramerMetadata__ = {\"exports\":{\"buttonPropertyControls\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"Border\":{\"type\":\"reactComponent\",\"name\":\"Border\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"superfieldsId\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"sortingControls\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"Message\":{\"type\":\"reactComponent\",\"name\":\"Message\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"FilterFieldType\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"FieldType\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"useInstanceId\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"borderPropertyControl\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"Button\":{\"type\":\"reactComponent\",\"name\":\"Button\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"DEFAULT_SORTING_ID\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"FilterTextCondition\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"EmptyState\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"FAVOURITES_FILTER_ID\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"calculateTotalPages\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"useSlug\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"DELIMITER\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"fillPropOnOff\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"parsePadding\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"fillProp\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"createBackground\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./SuperfieldsShared.map","import{addPropertyControls,ControlType}from\"framer\";import{fillProp}from\"https://framerusercontent.com/modules/FZjYlw33eNo8pxLbSFLX/9cz7ek89fMdNfYUyPOlg/SuperfieldsShared.js\";const MODE_CONTROL={mode:{type:ControlType.Enum,defaultValue:\"basic\",options:[\"basic\",\"advanced\"],optionTitles:[\"Basic\",\"Advanced\"],displaySegmentedControl:true,segmentedControlDirection:\"vertical\"}};const SUPPORT_CONTROL={needHelp:{type:ControlType.Object,title:\"Need help?\",buttonTitle:\"Get Support\",icon:\"interaction\",controls:{info:{type:ControlType.Enum,defaultValue:\"info\",options:[\"info\"],optionTitles:[\"Support 🛟\"],displaySegmentedControl:true,title:\"Get Support\",description:\"We're here to help! The best place to get support is to visit our documentation to find your answers. We're also available on live chat.\\n\\n[Visit Superfields docs](https://insertframe.io/docs/superfields)\"}}}};export function addPropertyControlsV2(component,controls){let showModeControl=false;for(const id of Object.keys(controls)){const control=controls[id];if(control.advanced){showModeControl=true;if(control.hidden){control.hidden=props=>props.mode!==\"advanced\"||control.hidden(props);}else{control.hidden=props=>props.mode!==\"advanced\";}}}addPropertyControls(component,{...showModeControl?MODE_CONTROL:{},...controls,...SUPPORT_CONTROL});}export function buttonPropertyControlsV2({text=\"\",stylingDescription=\"Update the button styling.\",showAppearance=true,stylingPropsStart={},stylingPropsEnd={}}){const hiddenAppearance=showAppearance?props=>props.appearance!==\"default\":undefined;const hiddenAppearanceOutside=showAppearance?props=>props.styling.appearance===\"default\":undefined;return{styling:{type:ControlType.Object,title:\"Styling 🎨\",buttonTitle:\"Options\",description:stylingDescription,controls:{...showAppearance?{appearance:{type:ControlType.Enum,defaultValue:\"default\",options:[\"default\",\"custom\"],optionTitles:[\"Default\",\"Custom\"],displaySegmentedControl:true}}:{},text:{type:ControlType.String,defaultValue:text,hidden:hiddenAppearance},...stylingPropsStart,fill:fillProp({color:\"#000\",gradientColorA:\"#8C8C8C\",gradientColorB:\"#000\",hidden:hiddenAppearance}),font:{type:\"font\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:14,lineHeight:1.4},hidden:hiddenAppearance},fontColor:{type:ControlType.Color,defaultValue:\"#FFF\",hidden:hiddenAppearance},padding:{type:ControlType.Padding,defaultValue:\"10px 16px 10px 16px\",hidden:hiddenAppearance},radius:{type:ControlType.BorderRadius,defaultValue:\"8px\",hidden:hiddenAppearance},border:{type:ControlType.Border,optional:true,hidden:hiddenAppearance},shadows:{type:ControlType.BoxShadow,hidden:hiddenAppearance},bgBlur:{type:ControlType.Number,min:0,max:100,step:1,displayStepper:true,title:\"BG Blur\",hidden:hiddenAppearance},...stylingPropsEnd}},...showAppearance?{customLayer:{type:ControlType.ComponentInstance,title:\"Layer\",description:\"Connect a custom layer from outside the breakpoint\",hidden:hiddenAppearanceOutside}}:{}};}export function parseButtonPropertyControlsV2(props){const{styling,customLayer}=props;const{radius,padding,text,...otherStyling}=styling;return{...otherStyling,...parsePadding(padding),...parseRadius(radius),text,customLayer};}export const idControl={type:ControlType.Number,defaultValue:0,step:1,min:0,displayStepper:true,title:\"ID\",description:\"If using multiple collections on the same page, set a specific ID to match.\"};export function parsePadding(padding,property=\"padding\"){if(padding&&typeof padding===\"string\"){// Split the input string by spaces and convert each to an integer\nconst values=padding.trim().split(/\\s+/).map(val=>parseInt(val,10));// If only one value is provided, replicate it four times\nif(values.length===1){return{[property]:values[0],[`${property}IsMixed`]:false};}else if(values.length===4){return{[property]:null,[`${property}IsMixed`]:true,[`${property}Top`]:values[0],[`${property}Right`]:values[1],[`${property}Bottom`]:values[2],[`${property}Left`]:values[3]};}}return{[property]:0,[`${property}IsMixed`]:false};}export function parseRadius(radius,property=\"radius\"){if(radius&&typeof radius===\"string\"){// Split the input string by spaces and convert each to an integer\nconst values=radius.trim().split(/\\s+/).map(val=>parseInt(val,10));// If only one value is provided, replicate it four times\nif(values.length===1){return{[property]:values[0],[`${property}IsMixed`]:false};}else if(values.length===4){return{[property]:null,[`${property}IsMixed`]:true,[`${property}TopLeft`]:values[0],[`${property}TopRight`]:values[1],[`${property}BottomRight`]:values[2],[`${property}BottomLeft`]:values[3]};}}return{[property]:0,[`${property}IsMixed`]:false};}\nexport const __FramerMetadata__ = {\"exports\":{\"idControl\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"parsePadding\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"buttonPropertyControlsV2\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"parseRadius\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"addPropertyControlsV2\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"parseButtonPropertyControlsV2\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}","/**\n * Extracts query metadata and collection information from a Framer Collection List component.\n * Returns query object, collections, property controls, and other metadata needed for CMS operations.\n */export function getCollectionData(collectionList){// Traverse component tree to find the query object\n// Framer's Collection List component structure varies, so we check multiple levels\n// Query is stored in props.query of one of the nested components\nlet queryParent=null;if(collectionList?.props?.query){queryParent=collectionList;}else if(collectionList?.props?.children?.props?.query){queryParent=collectionList.props.children;}else if(collectionList?.props?.children?.props?.children?.props?.query){queryParent=collectionList.props.children.props.children;}const query=queryParent?.props?.query;const from=query?.from;// Extract collection(s) from query.from clause\n// Can be single Collection or LeftJoin (multiple collections joined)\nlet collections=[];if(from){if(from.type===\"Collection\"){collections.push(from);}else if(from.type===\"LeftJoin\"){// Recursively process joined collections\nprocessJoin(from.left,collections);processJoin(from.right,collections);}}const select=query?.select;// Determine main collection when multiple collections are joined\n// Main collection is the one whose \"id\" field is selected (without alias)\n// This ensures consistent ordering: main collection first, then referenced collections\nif(collections.length>1&&Array.isArray(select)){for(const field of select){if(field.type==\"Identifier\"&&field.name==\"id\"&&!field.alias){const mainCollection=collections.find(c=>c.alias==field.collection);if(mainCollection){collections=[mainCollection,...collections.filter(c=>c!==mainCollection)];}break;}}}// Extract multi-reference field queries\n// Multi-reference fields use ARRAY() or FLAT_ARRAY() functions in the select clause\n// Each function argument contains a sub-query for the referenced collection\nconst multiReferenceQueries={};const multiReferenceIdMap={};if(Array.isArray(select)){for(const field of select){if(field.type===\"FunctionCall\"&&(field.functionName===\"ARRAY\"||field.functionName===\"FLAT_ARRAY\")&&Array.isArray(field.arguments)){for(const argument of field.arguments){if(argument.from?.type===\"Collection\"){const alias=argument.from.alias;// Field ID can be from alias or from where clause's right side\nlet fieldId=alias;const right=argument.where?.right;if(right&&right.type===\"Identifier\"&&right.name){fieldId=right.name;}collections.push({...argument.from,fieldId});multiReferenceIdMap[fieldId]=alias;multiReferenceIdMap[alias]=alias;multiReferenceQueries[alias]=argument;}}}}}let queryData=collections[0]?.data;// Build property controls index: by ID and by title for each collection\n// This allows quick lookup of field definitions by either ID or name\nconst propertyControlsById={};const propertyControlsByTitle={};for(const collection of collections){const byId={};const byName={};propertyControlsById[collection.alias]=byId;propertyControlsByTitle[collection.alias]=byName;const propertyControls=collection.data?.propertyControls;// Index each field definition by both ID and title for flexible lookups\nfor(const id of Object.keys(propertyControls)){const control={id,...propertyControls[id]};byId[id]=control;byName[control.title]=control;}}// Extract the children render function from Collection List\n// This function is used to render CMS items with proper data binding\n// Structure varies, so we check multiple nesting levels\nlet childrenFunction=null;if(collectionList){const clpc=collectionList.props?.children;if(typeof clpc==\"function\"){childrenFunction=clpc;}else if(typeof clpc?.props?.children==\"function\"){childrenFunction=clpc.props.children;}else if(typeof clpc?.props?.children?.props?.children==\"function\"){childrenFunction=clpc.props.children.props.children;}}return{query,queryParent,queryData,collections,propertyControlsById,propertyControlsByTitle,childrenFunction,multiReferenceQueries,multiReferenceIdMap};}// Recursively process LeftJoin queries to extract all collections\n// LeftJoin can be nested (e.g., Collection1 LEFT JOIN (Collection2 LEFT JOIN Collection3))\nfunction processJoin(join,collections){if(join&&typeof join===\"object\"){if(join.type===\"Collection\"){collections.push(join);}else if(join.type===\"LeftJoin\"){// Recursively process nested joins\nprocessJoin(join.left,collections);processJoin(join.right,collections);}}}/**\n * Adds fields to a query's select array.\n * Used to include additional fields needed for filtering, search, or sorting.\n *\n * @param fields - Array of { name: string, referenceFieldName?: string }\n * @param query - Original query object\n * @param propertyControlsByTitle - Field definitions indexed by title\n * @param collections - Collection metadata\n * @returns New select array with added fields (deduplicated)\n */export function addFieldsToSelect(fields,query,propertyControlsByTitle,collections){// Create copy of existing select array to avoid mutation\nconst select=Array.isArray(query?.select)?[...query.select]:[];for(const field of fields){const selectItem=getSelectItemForField(field.name,field.referenceFieldName,query,propertyControlsByTitle,collections,select);// Only add if field exists and isn't already in select\nif(selectItem){select.push(selectItem);}}return select;}/**\n * Gets the select item configuration for a CMS field.\n * Returns null if field doesn't exist or is already in select array.\n *\n * @param name - Field name (e.g., \"Title\", \"Category\")\n * @param referenceFieldName - If field is a reference, name of field in referenced collection\n * @param query - Query object (currently unused but kept for compatibility)\n * @param propertyControlsByTitle - Field definitions indexed by title\n * @param collections - Collection metadata\n * @param select - Existing select array to check for duplicates (optional)\n * @returns Select item object or null\n */export function getSelectItemForField(name,referenceFieldName,query,propertyControlsByTitle,collections,select=null){const mainAlias=collections[0]?.alias||\"\";const propertyControl=propertyControlsByTitle[mainAlias]?.[name];if(!propertyControl){return null;}const fieldId=propertyControl?.id;const alias=referenceFieldName?fieldId:mainAlias;// For reference fields, get the referenced collection's field definition\nconst referencedField=referenceFieldName?propertyControlsByTitle[fieldId]?.[referenceFieldName]:null;// Check if field is already in select array to avoid duplicates\nif(select){let matchFound=false;for(const item of select){if(item.type===\"Identifier\"){if(referenceFieldName){// For reference fields, match by alias format: \"fieldId.referencedFieldId\"\nif(referencedField&&item.alias===`${fieldId}.${referencedField.id}`&&item.collection===fieldId&&item.name===referencedField.id){matchFound=true;break;}}else{// For regular fields, match by fieldId and collection\nif(item.name===fieldId&&item.collection===alias){matchFound=true;break;}}}else if(item.type===\"FunctionCall\"){// Match function calls by alias (e.g., ARRAY() functions)\nif(item.alias===fieldId){matchFound=true;break;}}}if(matchFound){return null;}}// Build select item object\nif(referenceFieldName){// Reference field: points to a field in the referenced collection\n// Format: alias = \"fieldId.referencedFieldId\", collection = fieldId, name = referencedFieldId\nif(referencedField){return{alias:`${fieldId}.${referencedField.id}`,collection:fieldId,name:referencedField.id,type:\"Identifier\"};}}else{// Regular field: points directly to a field in the main collection\nreturn{collection:alias,name:fieldId,type:\"Identifier\"};}}\nexport const __FramerMetadata__ = {\"exports\":{\"getCollectionData\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"addFieldsToSelect\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"getSelectItemForField\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./CMSLibrary.map","// https://ga.jspm.io/npm:zustand@3.7.0/esm/index.js\n// The only changes are changing default exports to regular export\n// to export multiple functions in one file.\nimport{useEffect as t,useLayoutEffect as e,useReducer as n,useRef as r,useDebugValue as c}from\"react\";function createStore(t){let e;const n=new Set;const setState=(t,r)=>{const c=\"function\"===typeof t?t(e):t;if(c!==e){const t=e;e=r?c:Object.assign({},e,c);n.forEach(n=>n(e,t));}};const getState=()=>e;const subscribeWithSelector=(t,r=getState,c=Object.is)=>{console.warn(\"[DEPRECATED] Please use `subscribeWithSelector` middleware\");let o=r(e);function listenerToAdd(){const n=r(e);if(!c(o,n)){const e=o;t(o=n,e);}}n.add(listenerToAdd);return()=>n.delete(listenerToAdd);};const subscribe=(t,e,r)=>{if(e||r)return subscribeWithSelector(t,e,r);n.add(t);return()=>n.delete(t);};const destroy=()=>n.clear();const r={setState:setState,getState:getState,subscribe:subscribe,destroy:destroy};e=t(setState,getState,r);return r;}const o=\"undefined\"===typeof window||!window.navigator||/ServerSideRendering|^Deno\\//.test(window.navigator.userAgent);const s=o?t:e;export function create(t){const e=\"function\"===typeof t?createStore(t):t;const useStore=(t=e.getState,o=Object.is)=>{const[,u]=n(t=>t+1,0);const i=e.getState();const a=r(i);const d=r(t);const l=r(o);const f=r(false);const S=r();void 0===S.current&&(S.current=t(i));let b;let g=false;if(a.current!==i||d.current!==t||l.current!==o||f.current){b=t(i);g=!o(S.current,b);}s(()=>{g&&(S.current=b);a.current=i;d.current=t;l.current=o;f.current=false;});const w=r(i);s(()=>{const listener=()=>{try{const t=e.getState();const n=d.current(t);if(!l.current(S.current,n)){a.current=t;S.current=n;u();}}catch(t){f.current=true;u();}};const t=e.subscribe(listener);e.getState()!==w.current&&listener();return t;},[]);const p=g?b:S.current;c(p);return p;};Object.assign(useStore,e);useStore[Symbol.iterator]=function(){console.warn(\"[useStore, api] = create() is deprecated and will be removed in v4\");const t=[useStore,e];return{next(){const e=t.length<=0;return{value:t.shift(),done:e};}};};return useStore;}// https://ga.jspm.io/npm:zustand@3.7.0/esm/shallow.js\nexport function shallow(e,t){if(Object.is(e,t))return true;if(\"object\"!==typeof e||null===e||\"object\"!==typeof t||null===t)return false;const l=Object.keys(e);if(l.length!==Object.keys(t).length)return false;for(let r=0;r<l.length;r++)if(!Object.prototype.hasOwnProperty.call(t,l[r])||!Object.is(e[l[r]],t[l[r]]))return false;return true;}\nexport const __FramerMetadata__ = {\"exports\":{\"create\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"shallow\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./zustand.map","import{create,shallow}from\"https://framerusercontent.com/modules/XPZpWLgM1p9otlAim6ab/YZGwyfuvWTDLYoiYQunH/zustand.js\";// @ts-ignore\nimport{useRouter}from\"framer\";import{useRef,useTransition,useMemo,useEffect}from\"react\";// Create a function to generate the initial state\nconst createInitialState=()=>({totalItems:0,filters:{},randomizationSeed:null,search:\"\",sortOption:null,defaultSortOption:null,sortingUrlParameter:null,page:0,itemsPerPage:0,paginationType:null,paginationActive:false,paginationButtonsCount:0,searchFields:null});const useBaseStore=create((set,get)=>({instances:{},getState:id=>{const path=getCurrentPath();const state=get().instances[path]?.[id];return state||createInitialState();},setState:(id,updates)=>{const path=getCurrentPath();set(state=>({instances:{...state.instances,[path]:{...state.instances[path],[id]:{...state.getState(id),...updates}}}}));},// Example of how to update a specific state property\n    setTotalItems:(id,totalItems)=>{get().setState(id,{totalItems});},setFilterValue:(id,fieldName,value)=>{const currentFilters=get().getState(id).filters;console.log(`🟣 [FILTER VALUE CHANGED] \"${fieldName}\" = \"${value}\" (was: \"${currentFilters[fieldName]?.value}\")`);get().setState(id,{filters:{...currentFilters,[fieldName]:{...currentFilters[fieldName],value}}});},setRandomizationSeed:(id,randomizationSeed)=>{get().setState(id,{randomizationSeed});},setSearch:(id,search)=>{get().setState(id,{search});},setSortOption:(id,sortOption)=>{get().setState(id,{sortOption});},setPage:(id,page)=>{get().setState(id,{page});},setSearchFields:(id,searchFields)=>{get().setState(id,{searchFields});},setPaginationButtonsCount:(id,paginationButtonsCount)=>{get().setState(id,{paginationButtonsCount});},setPaginationType:(id,paginationType)=>{get().setState(id,{paginationType});},deinitializePaginationButton:id=>{get().setState(id,{paginationButtonsCount:get().getState(id).paginationButtonsCount-1});}}));const useSuperfieldsStore=(id,selector,initialize=null)=>{const initializedRef=useRef(false);const[_,startTransition]=useTransition();const{currentRouteId}=useRouter();const previousRouteIdRef=useRef(currentRouteId);// Memoize the function wrappers\nconst memoizedFunctions=useMemo(()=>{const functions={};const state=useBaseStore.getState();for(const key in state){const value=state[key];if(typeof value===\"function\"){if(key.startsWith(\"set\")){functions[key]=(...args)=>{if(typeof window!==\"undefined\"){startTransition(()=>value(id,...args));}else{value(id,...args);}};}else{functions[key]=(...args)=>value(id,...args);}}}return functions;},[id]);// Reset the store when the route changes\nuseEffect(()=>{if(previousRouteIdRef.current!==currentRouteId){// Route has changed, reset the initialized state\nconsole.log(`🔴 [ROUTE CHANGED] ${previousRouteIdRef.current} → ${currentRouteId}`);previousRouteIdRef.current=currentRouteId;// If there's an initialize function, call it with a fresh state\nif(initialize){const state=useBaseStore.getState();const freshState=createInitialState();initialize(freshState);state.setState(id,freshState);}initializedRef.current=true;}},[currentRouteId,id,initialize]);// Initial setup effect\nuseEffect(()=>{if(initialize&&!initializedRef.current){const state=useBaseStore.getState();const currentState=state.getState(id);const initializedState={...currentState};initialize(initializedState);state.setState(id,initializedState);}initializedRef.current=true;},[]);return useBaseStore(state=>{const path=getCurrentPath();if(!state.instances[path]?.[id]){const initialState=createInitialState();state.setState(id,initialState);}let newState={...state.getState(id),...memoizedFunctions};return selector(newState);},shallow);};export default useSuperfieldsStore;const getCurrentPath=()=>{if(typeof window===\"undefined\"){return\"/\";}return window.location.pathname;};\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Store.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);// Use the ref directly instead of parsing from layoutVersion\nconst changedIndex=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?.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?.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","function assign(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)e[r]=n[r]}return e}var e={read:function(e){'\"'===e[0]&&(e=e.slice(1,-1));return e.replace(/(%[\\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function init(e,t){function set(n,r,i){if(\"undefined\"!==typeof document){i=assign({},t,i);\"number\"===typeof i.expires&&(i.expires=new Date(Date.now()+864e5*i.expires));i.expires&&(i.expires=i.expires.toUTCString());n=encodeURIComponent(n).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var o=\"\";for(var c in i)if(i[c]){o+=\"; \"+c;true!==i[c]&&(o+=\"=\"+i[c].split(\";\")[0])}return document.cookie=n+\"=\"+e.write(r,n)+o}}function get(t){if(\"undefined\"!==typeof document&&(!arguments.length||t)){var n=document.cookie?document.cookie.split(\"; \"):[];var r={};for(var i=0;i<n.length;i++){var o=n[i].split(\"=\");var c=o.slice(1).join(\"=\");try{var a=decodeURIComponent(o[0]);r[a]=e.read(c,a);if(t===a)break}catch(e){}}return t?r[t]:r}}return Object.create({set:set,get:get,remove:function(e,t){set(e,\"\",assign({},t,{expires:-1}))},withAttributes:function(e){return init(this.converter,assign({},this.attributes,e))},withConverter:function(e){return init(assign({},this.converter,e),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var t=init(e,{path:\"/\"});export{t as default};\n\n//# sourceMappingURL=js.cookie.mjs.map","import{create}from\"https://framerusercontent.com/modules/XPZpWLgM1p9otlAim6ab/YZGwyfuvWTDLYoiYQunH/zustand.js\";import Cookies from\"js-cookie\";const useBaseStore=create((set,get)=>({collections:{},getFavourites:slugFieldId=>{const state=get().collections[slugFieldId];return state||[];},setFavourites:(slugFieldId,favourites)=>{set(state=>({collections:{...state.collections,[slugFieldId]:favourites}}));Cookies.set(`superfieldsFavourites_${slugFieldId}`,favourites);},addFavourite:(slugFieldId,favourite)=>{const currentFavourites=get().getFavourites(slugFieldId);get().setFavourites(slugFieldId,[...currentFavourites,favourite]);},removeFavourite:(slugFieldId,favouriteToRemove)=>{const currentFavourites=get().getFavourites(slugFieldId);get().setFavourites(slugFieldId,currentFavourites.filter(fav=>fav!==favouriteToRemove));}}));const useFavouriteStore=(slugFieldId,selector,cmsCollectionName=null)=>{return useBaseStore(state=>{let newState={favourites:state.getFavourites(slugFieldId)};if(!Array.isArray(state.collections[slugFieldId])){// Load favourites from cookies\ntry{const cookieId=`superfieldsFavourites_${slugFieldId}`;let savedState=Cookies.get(cookieId);if(!savedState&&cmsCollectionName){const cmsNameCookieId=`superfieldsFavourites_${cmsCollectionName}`;savedState=Cookies.get(cmsNameCookieId);if(savedState){Cookies.set(cookieId,savedState);Cookies.remove(cmsNameCookieId);}}if(savedState){const savedFavourites=savedState.split(\",\");state.setFavourites(slugFieldId,savedFavourites);newState.favourites=savedFavourites;}}catch(error){console.error(\"Failed to load or parse favourites cookie:\",error);}}for(const key in state){const value=state[key];if(typeof value===\"function\"){newState[key]=(...args)=>value(slugFieldId,...args);}else{newState[key]=value;}}return selector(newState);});};export default useFavouriteStore;\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./FavouriteStore.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,// @ts-ignore\nPathVariablesContext,MotionConfigContext}from\"framer\";import{cloneElement,useEffect,useRef,useMemo,memo,useContext,useId}from\"react\";import{LayoutGroup}from\"framer-motion\";import{Message,sortingControls,FAVOURITES_FILTER_ID,DELIMITER,FieldType,FilterFieldType,FilterTextCondition,DEFAULT_SORTING_ID}from\"https://framerusercontent.com/modules/FZjYlw33eNo8pxLbSFLX/9cz7ek89fMdNfYUyPOlg/SuperfieldsShared.js\";import{getCollectionData,addFieldsToSelect}from\"https://framerusercontent.com/modules/PNm0aYRdp2Urx1MCseUn/jWeh7GKvm3RetCKspgqG/CMSLibrary.js\";import Masonry from\"https://framerusercontent.com/modules/JfW6EfEeJnrqM1YQCYmc/AmWfw7T06LArboPCU8W9/Masonry.js\";import useSuperfieldsStore from\"https://framerusercontent.com/modules/OoGHZMzWDzm2mNN7bmeR/SrfgZxoYwWZOduOAI06A/Store.js\";import useFavouriteStore from\"https://framerusercontent.com/modules/c1jaZMVo1HBulMCJfZHW/nlasUjfvw2PNBWz7VogG/FavouriteStore.js\";const fieldTypeNames={[FieldType.String]:\"Text\",[FieldType.Number]:\"Number\",[FieldType.Date]:\"Date\",[FieldType.Boolean]:\"Toggle\",[FieldType.Enum]:\"Option\"};var Order;(function(Order){Order[\"Ascending\"]=\"ascending\";Order[\"Descending\"]=\"descending\";})(Order||(Order={}));var PaginationType;(function(PaginationType){PaginationType[\"PrevNextButtons\"]=\"prevNextButtons\";PaginationType[\"LoadMoreButton\"]=\"loadMoreButton\";PaginationType[\"FramerPagination\"]=\"framerPagination\";})(PaginationType||(PaginationType={}));export var LayoutType;(function(LayoutType){LayoutType[\"Stack\"]=\"stack\";LayoutType[\"Grid\"]=\"grid\";LayoutType[\"Masonry\"]=\"masonry\";})(LayoutType||(LayoutType={}));export var SearchFieldType;(function(SearchFieldType){SearchFieldType[\"Default\"]=\"default\";SearchFieldType[\"Reference\"]=\"reference\";})(SearchFieldType||(SearchFieldType={}));/**\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any\n * @framerIntrinsicWidth 600\n * @framerDisableUnlink\n */export default function Superfields(props){const{superfieldsId,layout,componentConfig,cmsCollectionName,favouritesOnly,searchFields,sortingField,urlParameters,slugFieldName,scrollUp,transition,customOverrideFilter=null,customOverrideSort=null}=props;const id=useId();const collectionList=props.collectionList?.[0];const emptyState=props.emptyState?.[0];const isCanvas=RenderTarget.current()===RenderTarget.canvas;const isOptimizing=typeof window===\"undefined\";const scrollUpRef=useRef(null);const itemCountRef=useRef(-1);const isFirstRender=useRef(true);const{query,queryParent,propertyControlsById,propertyControlsByTitle,childrenFunction,collections,multiReferenceQueries,multiReferenceIdMap}=useMemo(()=>getCollectionData(collectionList),[collectionList]);const mainCollection=collections[0];const framerPaginationSize=isCanvas?0:queryParent?.props?.pageSize||0;const framerPagination=framerPaginationSize>0;const paginationActive=framerPagination||props.pagination;const[filters,randomizationSeed,search,sortOption,defaultSortOption,sortingUrlParameter,paginationType,itemsPerPage,page,setPage,setTotalItems,paginationButtonsCount,storeSearchFields,setPaginationType]=useSuperfieldsStore(superfieldsId,state=>[state.filters,state.randomizationSeed,state.search,state.sortOption,state.defaultSortOption,state.sortingUrlParameter,state.paginationType,state.itemsPerPage,state.page,state.setPage,state.setTotalItems,state.paginationButtonsCount,state.searchFields,state.setPaginationType],state=>{state.itemsPerPage=framerPagination?framerPaginationSize:props.pagination?props.itemsPerPage:0;state.paginationActive=paginationActive;// Only set searchFields if not already set in store\n// This can also be set from the SearchBar. If that happens, it should take precedence.\nif(!state.searchFields){state.searchFields=props.searchFields;}if(!isOptimizing&&!isCanvas){if(props.randomize){const seededValue=Math.floor(Math.random()*1e8);state.randomizationSeed=seededValue;if(typeof window!==\"undefined\"&&import.meta.env?.DEV){console.debug(\"[Superfields] seeded randomization\",{superfieldsId,seededValue,source:\"props.randomize\"});}}const urlParams=new URLSearchParams(window.location.search);if(urlParameters?.search&&urlParameters.searchName){const searchParam=urlParams.get(urlParameters.searchName);if(searchParam){state.search=searchParam;}}if(urlParameters?.pagination&&urlParameters.paginationName){const pageParam=urlParams.get(urlParameters.paginationName);if(pageParam){const parsedPage=parseInt(pageParam,10);const maxPages=Math.ceil(data.length/state.itemsPerPage);if(!isNaN(parsedPage)&&parsedPage>=1&&parsedPage<=maxPages){state.page=parsedPage-1// Convert to 0-based index\n;}}}}});// Calculate paginationType dynamically based on paginationButtonsCount\nconst calculatedPaginationType=useMemo(()=>{return paginationButtonsCount>0?\"prevNextButtons\":framerPagination?\"framerPagination\":props.pagination?props.paginationType:null;},[paginationButtonsCount,framerPagination,props.pagination,props.paginationType]);// Update the store's paginationType when calculatedPaginationType changes\nuseEffect(()=>{setPaginationType(calculatedPaginationType);},[calculatedPaginationType,setPaginationType]);const randomize=props.randomize||(randomizationSeed?true:false);const mainAlias=mainCollection?.alias;const mainPropertyControlsByTitle=propertyControlsByTitle[mainAlias]||{};const mainPropertyControlsById=propertyControlsById[mainAlias]||{};const slugFieldId=mainPropertyControlsByTitle[slugFieldName||\"Slug\"]?.id;const filterIds=Object.keys(filters);let sort=props.sorting?sortingField:null;if(sortOption&&sortOption.id!==DEFAULT_SORTING_ID){sort=sortOption;}const favourites=useFavouriteStore(slugFieldId,state=>state.favourites,cmsCollectionName);// Use storeSearchFields if available, otherwise use props.searchFields\nconst finalSearchFields=storeSearchFields||props.searchFields;const select=useMemo(()=>{return modifySelect(query,filters,props.search,finalSearchFields,sort,propertyControlsByTitle,collections);},[query,filters,props.search,finalSearchFields,sort?.sortBy,sort?.fieldName]);useEffect(()=>{if(typeof window!==\"undefined\"&&import.meta.env?.DEV){console.debug(\"[Superfields] randomization state\",{superfieldsId,propsRandomize:props.randomize,derivedRandomize:randomize,randomizationSeed,isCanvas});}},[superfieldsId,props.randomize,randomize,randomizationSeed,isCanvas]);const multiReferenceSelects=useMemo(()=>{const selects={};for(const alias of Object.keys(multiReferenceQueries)){// const cmsFieldsForCollection = []\n// for (const fieldId of Object.keys(mainPropertyControlsById)) {\n//     const field = mainPropertyControlsById[fieldId]\n//     // if (field?.title)\n// }\nlet cmsField=mainPropertyControlsById[alias];if(!cmsField){for(const key of Object.keys(multiReferenceIdMap)){if(multiReferenceIdMap[key]===alias){cmsField=mainPropertyControlsById[key];break;}}}if(cmsField){const fieldTitle=cmsField.title;const referenceSearchFields=[];for(const searchField of finalSearchFields){if(searchField.fieldType===\"reference\"&&searchField.fieldName===fieldTitle){referenceSearchFields.push({fieldName:searchField.referenceFieldName,fieldType:\"default\"});}}const referenceFilters={};for(const filterId of Object.keys(filters)){const filter=filters[filterId];if(filter.fieldType===FilterFieldType.MultiReference&&filter.fieldName===fieldTitle){referenceFilters[filterId]={...filter,fieldName:filter.referenceFieldName,fieldType:filter.referenceFieldType,referenceFieldName:undefined,referenceFieldType:undefined};}}selects[alias]=modifySelect(multiReferenceQueries[alias],referenceFilters,props.search,referenceSearchFields,null,propertyControlsByTitle,[...collections].sort((a,b)=>a.alias===alias?-1:b.alias===alias?1:0));}else{const rQuery=multiReferenceQueries[alias];if(rQuery){selects[alias]=rQuery.select;}}}return selects;},[multiReferenceQueries,filters,props.search,finalSearchFields]);const originalData=query?useQueryData({...query,select}):[];const multiReferenceItemsById={};for(const fieldId of Object.keys(multiReferenceQueries)){const refSelect=multiReferenceSelects[fieldId];const refQuery=multiReferenceQueries[fieldId];const refDataItemsById={};if(refSelect&&refQuery){const refData=useQueryData({...refQuery,select:refSelect,where:undefined,orderBy:undefined});for(const item of refData){refDataItemsById[item.id]=item;}}multiReferenceItemsById[fieldId]=refDataItemsById;}const[data,dataIds,dataItemsById]=useMemo(()=>{const data=mapCollectionDataValues(originalData,propertyControlsById,mainAlias,multiReferenceItemsById,multiReferenceIdMap);const dataIds=originalData.map(item=>item.id);const dataItemsById={};if(!isCanvas&&Array.isArray(data)){for(const item of data){dataItemsById[item.id]=item;}}return[data,dataIds,dataItemsById];},[originalData,propertyControlsById,mainAlias,multiReferenceItemsById,multiReferenceIdMap]);const scrollToTop=()=>{if(scrollUp&&scrollUpRef.current&&!isOptimizing&&!isCanvas){const rect=scrollUpRef.current.getBoundingClientRect();const topIsInView=rect.top>=0&&rect.top<=window.innerHeight;if(!topIsInView){scrollUpRef.current.scrollIntoView({behavior:scrollUp.scrollStyle});}}};useEffect(()=>{if(isFirstRender.current){return;}if(scrollUp&&(scrollUp.filteringEnabled&&filterIds.length>0||scrollUp.sortingEnabled&&sort?.sortBy!==\"defaultSorting\")){scrollToTop();}},[filters,sort?.sortBy]);useEffect(()=>{if(isFirstRender.current){isFirstRender.current=false;return;}if(paginationActive&&scrollUp&&scrollUp.paginationEnabled&&paginationType==\"prevNextButtons\"){scrollToTop();}// Update URL parameter\nif(paginationActive&&urlParameters?.pagination&&urlParameters.paginationName&&!isOptimizing){const url=new URL(window.location.href);const pageNumber=page+1// Convert to 1-based\n;if(pageNumber>1){url.searchParams.set(urlParameters.paginationName,pageNumber.toString());}else{url.searchParams.delete(urlParameters.paginationName);}window.history.replaceState({path:url.href},\"\",url.href);}},[page,paginationActive,paginationType,urlParameters]);useEffect(()=>{if(!urlParameters?.search||!urlParameters.searchName||isCanvas||isOptimizing){return;}const url=new URL(window.location.href);if(search){url.searchParams.set(urlParameters.searchName,search);}else{url.searchParams.delete(urlParameters.searchName);}window.history.replaceState({path:url.href},\"\",url.href);},[search,urlParameters]);useEffect(()=>{if(isCanvas||isOptimizing){return;}const url=new URL(window.location.href);let hasUrlParameterFilter=false;for(const filterId of filterIds){const filter=filters[filterId];if(filter&&filter.urlParameter){hasUrlParameterFilter=true;const value=filter.value;if(value!=null&&value!==undefined&&value!==\"\"){url.searchParams.set(filter.urlParameter,value.toString());}else{url.searchParams.delete(filter.urlParameter);}}}if(hasUrlParameterFilter){window.history.replaceState({path:url.href},\"\",url.href);}},[filters,urlParameters]);useEffect(()=>{if(isCanvas||isOptimizing||!sortingUrlParameter){return;}const url=new URL(window.location.href);if(sortOption&&sortOption.title!==defaultSortOption?.title){url.searchParams.set(sortingUrlParameter,sortOption.title);}else{url.searchParams.delete(sortingUrlParameter);}window.history.replaceState({path:url.href},\"\",url.href);},[sortOption,defaultSortOption,sortingUrlParameter]);// Filtering\nconst filteredData=useMemo(()=>{if(isCanvas||!filterIds.length){return dataIds;}let itemIds=dataIds;for(const filterId of filterIds){if(filterId==FAVOURITES_FILTER_ID){continue;}const filter=filters[filterId];const{fieldName,fieldType}=filter;const filterValue=filter.value;const conditionContains=filter?.condition===FilterTextCondition.Contains;const fields=[];if(fieldType===FilterFieldType.MultipleOptions){for(const n of fieldName.split(DELIMITER)){const field=mainPropertyControlsByTitle[n.trim()];if(field){fields.push(field);}}}else if(fieldType===FilterFieldType.Reference||fieldType===FilterFieldType.MultiReference){const{referenceFieldName}=filter;const field=mainPropertyControlsByTitle[fieldName];const isMultiRef=field?.type===\"multicollectionreference\";if(field&&(field.type===\"collectionreference\"||isMultiRef)){const collection=collections.find(c=>c.alias===field.id||isMultiRef&&c.alias===multiReferenceIdMap[field.id]);const collectionPropControls=collection?.data?.propertyControls;if(collectionPropControls){let propertyControlId=null;let propertyControl=null;for(const propertyId of Object.keys(collectionPropControls)){const control=collectionPropControls[propertyId];if(control.title===referenceFieldName){propertyControlId=propertyId;propertyControl=control;break;}}if(propertyControl&&propertyControlId){if(isMultiRef){fields.push({...field,referenceAlias:multiReferenceIdMap[field.id],referenceId:propertyControlId,referenceType:propertyControl.type});}else{fields.push({id:`${field.id}.${propertyControlId}`,type:propertyControl.type});}}}}}else{const field=mainPropertyControlsByTitle[fieldName];if(field){fields.push(field);}}const isMultipleFields=fields.length>1;if(filter&&fields.length&&filterValue!=null&&filterValue!=undefined){const filteredData=[];for(const id of itemIds){let foundMatch=false;const dataItem=dataItemsById[id];if(isMultipleFields){for(const field of fields){if(processField(field,dataItem[field.id],filterValue,filter.multiSelect,conditionContains,multiReferenceItemsById)){foundMatch=true;break;}}}else{const field=fields[0];foundMatch=processField(field,dataItem[field.id],filterValue,filter.multiSelect,conditionContains,multiReferenceItemsById);}if(foundMatch){filteredData.push(id);}}itemIds=filteredData;}}return itemIds;},[filters,data]);// Favourites filter\nconst favouriteFilterValue=filters[FAVOURITES_FILTER_ID]?.value;const favouriteFilteredData=useMemo(()=>{if(isCanvas||!slugFieldId||!favouritesOnly&&typeof favouriteFilterValue!==FieldType.Boolean){return dataIds;}const shouldFilterFavorites=favouriteFilterValue===true||favouritesOnly;if(!Array.isArray(favourites)||favourites.length===0){if(shouldFilterFavorites){return[];}}else{return dataIds.filter(id=>favourites.includes(dataItemsById[id][slugFieldId])===shouldFilterFavorites);}return dataIds;},[favouriteFilterValue,favouritesOnly,favourites,data]);const customFilteredData=useMemo(()=>{if(!customOverrideFilter){return dataIds;}const value=customOverrideFilter({dataIds,dataItemsById,collections,propertyControlsById,propertyControlsByTitle,mainPropertyControlsByTitle});if(Array.isArray(value)){return value;}return dataIds;},[customOverrideFilter,data]);// Search\nconst searchText=search?.trim().toLowerCase()??\"\";const[searchData,hasSearch,missingSearchField]=useMemo(()=>{if(isCanvas||!searchText.length||!Array.isArray(data)){return[dataIds,false,null];}let missingFieldName=null;// 0: Hidden\n// 1: Includes text\n// 2: Includes full word\n// 3: Starts with\n// 4: Exact match\nconst levels=[[...dataIds],[],[],[],[]];const itemLevels=new Array(data.length).fill(0);for(let i=0;i<finalSearchFields.length;i++){const{fieldType,fieldName,referenceFieldName}=finalSearchFields[i];const{property}=getPropertyControl(fieldName,fieldType,referenceFieldName,null,propertyControlsByTitle,mainAlias,\"Title\");if(!property){missingFieldName=fieldName;break;}const propertyID=property.id;const propertyType=property.type;const propIsString=propertyType==FieldType.String||propertyType==FieldType.Enum;const propIsNumber=propertyType==FieldType.Number;const propIsMultiReference=propertyType==\"multicollectionreference\";for(const ii in data){const cmsItem=data[ii];let level=0;if(propIsMultiReference){const items=dataItemsById[cmsItem.id]?.[propertyID];const alias=multiReferenceIdMap[property.id];const propertyControls=propertyControlsByTitle[alias];if(propertyControls&&typeof propertyControls===\"object\"&&Array.isArray(items)){const rPropertyControl=propertyControls[referenceFieldName||\"Title\"];const propId=rPropertyControl?.id;if(propId){for(const rItem of items){if(rItem){const rValue=rItem[propId];level=Math.max(level,getSearchLevelForValue(rValue,searchText));}}}}}else{const value=dataItemsById[cmsItem.id]?.[propertyID];level=getSearchLevelForValue(value,searchText);}// 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.id){oldLevelItems.push(item);}}levels[oldLevel]=oldLevelItems;// Add to new level\nlevels[level].push(cmsItem.id);itemLevels[ii]=level;}}}if(missingFieldName){return[dataIds,false,missingFieldName];}return[[...levels[4],...levels[3],...levels[2],...levels[1]],true,missingFieldName];},[searchText,data,finalSearchFields]);// Pagination, randomization and sorting are applied after filtering and search\nlet itemIds=searchData.filter(itemId=>filteredData.includes(itemId)&&favouriteFilteredData.includes(itemId)&&customFilteredData.includes(itemId));const itemCount=itemIds.length;const pageCount=itemsPerPage&&itemCount?Math.ceil(itemCount/itemsPerPage):1;if(itemCount!==itemCountRef.current){setTotalItems(itemCount);// 🔧 FIX: Reset page if it's now out of range after filtering\n// When filters change and reduce totalItems, the current page might exceed the new pageCount\n// Example: On page 3 with 9 items (3 pages), filter to 3 items (1 page) → reset to page 0\nif(page>=pageCount&&pageCount>0){setPage(Math.max(0,pageCount-1));}}itemCountRef.current=itemCount;// Randomization\nconst dataOrder=useMemo(()=>{if(randomizationSeed&&!isCanvas&&Array.isArray(data)){if(typeof window!==\"undefined\"&&import.meta.env?.DEV){console.debug(\"[Superfields] shuffling data\",{superfieldsId,randomizationSeed,itemCount:data.length});}const newDataOrder=Array.from({length:data.length},(_,i)=>i);return shuffle(newDataOrder,randomizationSeed);}if(typeof window!==\"undefined\"&&import.meta.env?.DEV){console.debug(\"[Superfields] shuffling skipped\",{superfieldsId,randomizationSeed,isCanvas,hasData:Array.isArray(data)});}return null;},[randomizationSeed,isCanvas,data]);if(!isCanvas&&!hasSearch&&randomize){let orderedItemIds=dataIds;if(dataOrder){orderedItemIds=new Array(dataIds.length);for(let i=0;i<dataOrder.length;i++){orderedItemIds[dataOrder[i]]=dataIds[i];}}itemIds=orderedItemIds.filter(itemId=>itemIds.includes(itemId));}const canSort=!isCanvas&&!randomize&&!hasSearch;let missingSortField=\"\";let mismatchedSortFieldName=\"\";let mismatchedSortFieldType=\"\";if(canSort&&sort&&sort.sortBy!==\"defaultSorting\"){const{sortBy}=sort;const isReference=sort.fieldType===\"reference\";const fieldType=isReference?sort.referenceFieldType:sort.fieldType;const{property,mismatchedFieldName,mismatchedFieldType}=getPropertyControl(sort.fieldName,sort.fieldType,sort.referenceFieldName,sort.referenceFieldType,propertyControlsByTitle,mainAlias);if(mismatchedFieldName){mismatchedSortFieldName=mismatchedFieldName;mismatchedSortFieldType=mismatchedFieldType;}else{const fieldId=property?.id;if(sortBy===\"field\"&&fieldId||sortBy===\"favourites\"&&slugFieldId){const isAscending=sortBy===\"favourites\"?sort.favouritesSort===\"favouritesLast\":fieldType===FieldType.String&&sort.stringSort===\"ascending\"||fieldType===FieldType.Number&&sort.numberSort===\"ascending\"||fieldType===FieldType.Date&&sort.dateSort===\"ascending\"||fieldType===FieldType.Boolean&&sort.booleanSort===\"noYes\"||fieldType===FieldType.Enum&&(sort.enumSort===\"optionOrder\"||sort.enumSort===\"ascending\");const getSortValue=id=>{if(sortBy===\"favourites\"){const slug=dataItemsById[id]?.[slugFieldId];return Array.isArray(favourites)&&favourites.includes(slug)?1:0;}const value=dataItemsById[id]?.[fieldId];if(value==null){return null;}switch(fieldType){case FieldType.Number:return Number(value);case FieldType.Date:return new Date(value).getTime();case FieldType.Boolean:return value?1:0;case FieldType.Enum:return sort.enumSort===\"optionOrder\"||sort.enumSort===\"reverseOptionOrder\"?property.optionTitles?property.optionTitles.indexOf(value):-1:String(value);default:return String(value);}};const sortedItemIds=[...itemIds].sort((a,b)=>{const aValue=getSortValue(a);const bValue=getSortValue(b);if(aValue===null&&bValue===null)return 0;if(aValue===null)return 1;if(bValue===null)return-1;let comparison;if(fieldType===FieldType.String||fieldType===FieldType.Enum&&(sort.enumSort===\"ascending\"||sort.enumSort===\"descending\")){comparison=aValue.localeCompare(bValue);}else{comparison=aValue<bValue?-1:aValue>bValue?1:0;}return isAscending?comparison:-comparison;});itemIds=sortedItemIds;}else{missingSortField=sort.fieldName;}}}if(canSort&&customOverrideSort){const value=customOverrideSort({itemIds,dataItemsById,collections,propertyControlsById,propertyControlsByTitle});if(Array.isArray(value)){itemIds=value;}}// Pagination\nif(!isCanvas&&paginationActive){switch(paginationType){case\"prevNextButtons\":itemIds=itemIds.slice(page*itemsPerPage,(page+1)*itemsPerPage);break;case\"loadMoreButton\":case\"framerPagination\":itemIds=itemIds.slice(0,(page+1)*itemsPerPage);break;}}const memoizedChildren=useMemo(()=>{if(isCanvas||!collectionList||!query||!childrenFunction){return null;}// 🔍 DEBUG LOG 1: Check itemIds entering memoizedChildren\nconsole.log(\"🔍 [DEBUG 1] itemIds:\",itemIds.length,\"items:\",itemIds.slice(0,5));const{offset,limit}=query;const paginationInfo={currentPage:page+1,totalPages:pageCount,isLoading:false};const loadMore=()=>{if(paginationActive){const newPage=page+1;if(newPage>=0&&newPage<pageCount){setPage(newPage);}}};const originalDataItemsById={};for(const item of originalData){originalDataItemsById[item.id]=item;}const items=itemIds.map(itemId=>originalDataItemsById[itemId]).filter(Boolean);let clChildren=childrenFunction(items,paginationInfo,loadMore);// 🔍 DEBUG LOG 2: Check what childrenFunction returns\nconsole.log(\"🔍 [DEBUG 2] clChildren:\",{isArray:Array.isArray(clChildren),length:Array.isArray(clChildren)?clChildren.length:\"N/A\",hasPropsChildren:!!clChildren?.props?.children,propsChildrenLength:Array.isArray(clChildren?.props?.children)?clChildren.props.children.length:\"N/A\"});const modifyChildren=elements=>{let newChildren=elements;if(Array.isArray(elements)&&elements.length&&componentConfig&&componentConfig.variant.length>0){const componentChildren=[];let isComponentWithVariants=true;for(let i=0;i<elements.length;i++){const child=elements[i];const key=child.key??child.props?.id;const component=/*#__PURE__*/_jsx(MemoizedComponentVariantSwitch,{child:child,componentConfig:componentConfig},key);if(component===child){isComponentWithVariants=false;break;}else{componentChildren.push(/*#__PURE__*/_jsx(LayoutGroup,{id:key,children:component},key));}}if(isComponentWithVariants){newChildren=componentChildren;}}// 🔧 TEST FIX: Return children directly without wrapping/modifying\n// The children are already LayoutGroup components from Framer\n// Stripping their wrapper and spreading props onto div breaks the animation system\nreturn newChildren;};let children=null;if(Array.isArray(clChildren)){children=modifyChildren(clChildren);}else if(Array.isArray(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;}}// 🔍 DEBUG LOG 3: Check children after modifyChildren\nconsole.log(\"🔍 [DEBUG 3] children after processing:\",{length:Array.isArray(children)?children.length:\"N/A\",keys:Array.isArray(children)?children.map(c=>c?.key||c?.props?.id||\"no-key\").slice(0,5):[]});const childrenSlugs=[];if(Array.isArray(children)){for(const child of children){let slug=null;const id=child.props?.child?.key;if(id){slug=dataItemsById[id]?.[slugFieldId];}childrenSlugs.push(slug);}}// 🔍 DEBUG LOG 4: Final check before render - are children populated correctly?\nconsole.log(\"🔍 [DEBUG 4] Final render:\",{childrenCount:children?.length,slugsCount:childrenSlugs.length,sampleChildren:children?.slice(0,3).map((c,i)=>({index:i,hasChild:!!c,type:c?.type?.name||c?.type||\"unknown\",key:c?.key||\"no-key\",slug:childrenSlugs[i]}))});if(!children)return null;return children.map((child,index)=>/*#__PURE__*/_jsx(PathVariablesContext.Provider,{value:{[slugFieldId]:childrenSlugs[index]||null},children:child},child?.key||childrenSlugs[index]||index));},[isCanvas,collectionList,query,itemIds,page,componentConfig]);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.\"});}else 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.\"});}else if(missingSearchField){return /*#__PURE__*/_jsx(Message,{title:`\"${missingSearchField}\" field does not exist in your CMS collection`,subtitle:`The field \"${missingSearchField}\" 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.`});}else if(missingSortField){return /*#__PURE__*/_jsx(Message,{title:`\"${missingSortField}\" field does not exist in your CMS collection`,subtitle:`The field \"${missingSortField}\" is in the search fields list, but there are no fields in your CMS collection with that name. Edit the field name in the sorting configuration or add a new CMS field with that name.`});}else if(mismatchedSortFieldName){return /*#__PURE__*/_jsx(Message,{title:`\"${mismatchedSortFieldName}\" is not a ${fieldTypeNames[mismatchedSortFieldType]||mismatchedSortFieldType} field.`,subtitle:\"Please update the Superfields sorting mode to match the field type on the CMS collection\"});}let layoutStyle={};if(layout){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};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};break;}}const isMasonry=layout?.type===\"masonry\";const collectionListStyle={...isMasonry?{}:collectionList.props?.style,...props.style,...layoutStyle,position:\"relative\",padding:layout?layout.paddingIsMixed?`${layout.paddingTop}px ${layout.paddingRight}px ${layout.paddingBottom}px ${layout.paddingLeft}px`:`${layout.padding}px`:undefined};const masonryProps=isMasonry?{columns:layout.masonryColumns,gapH:layout.gapH,gapV:layout.gapV,alignment:layout.masonryItemWidth===\"fit\"?layout.masonryAlign:\"stretch\",autoArrange:true,reverse:false}:{};// Canvas view\nif(isCanvas){if(collectionList){let paginationPreviewOffset=0;let paginationItemsAfter=0;if(paginationActive&&paginationType!==\"framerPagination\"){try{// const children = collectionList.type.type(collectionList.props).props.children.props\n// \t.children;\n// if (children.length > 1) {\n// \tfor (let i = 0; i < children.length; i++) {\n// \t\tif (children[i].key == \"repeated\") {\n// \t\t\tpaginationPreviewOffset = i;\n// \t\t\tpaginationItemsAfter = children.length - i - 1;\n// \t\t\tbreak;\n// \t\t}\n// \t}\n// }\n}catch{console.warn(\"Failed to calculate Superfields pagination preview offset.\");}}if(isMasonry){return /*#__PURE__*/_jsx(Message,{title:\"Preview site to view masonry layout\",subtitle:\"The CMS masonry layout is not available in the editor. Preview or publish your site to see the CMS items.\"});// const htmlElement = collectionList.props?.__node?.cache?.htmlElement;\n// if (htmlElement) {\n// \tlet reactFiberKey = \"\";\n// \tfor (const key of Object.keys(htmlElement)) {\n// \t\tif (key.startsWith(\"__reactFiber\")) {\n// \t\t\treactFiberKey = key;\n// \t\t}\n// \t}\n// \t// Solution for getting React children from CMS collection on canvas by Fehmi Ozuseven\n// \tlet cmsChildren =\n// \t\thtmlElement[reactFiberKey]?.memoizedProps?.children?.[0]?.props?.children?.props\n// \t\t\t?.children?.[1]?.props?.children?.[0]?.props?.children;\n// \tconsole.log(cmsChildren);\n// \tif (Array.isArray(cmsChildren)) {\n// \t\tlet children = [];\n// \t\tfor (const child of cmsChildren) {\n// \t\t\tif (child.key == \"repeated\" && Array.isArray(child.props?.children)) {\n// \t\t\t\tchildren = children.concat(child.props.children);\n// \t\t\t} else {\n// \t\t\t\tchildren.push(child);\n// \t\t\t}\n// \t\t}\n// \t\treturn (\n// \t\t\t<div data-superfields style={collectionListStyle}>\n// \t\t\t\t<MemoizedMasonry {...masonryProps}>{children}</MemoizedMasonry>\n// \t\t\t</div>\n// \t\t);\n// \t}\n// }\n}else{const id=props.id??\"a\"+String(Math.floor(Math.random()*999999999));return /*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/cloneElement(collectionList,{id,style:collectionListStyle}),paginationActive&&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(!itemIds?.length){if(emptyState){return /*#__PURE__*/cloneElement(emptyState,{style:{...emptyState.props.style,...props.style},\"data-superfields\":true});}else{return /*#__PURE__*/_jsx(\"div\",{\"data-superfields\":true});}}return /*#__PURE__*/_jsxs(\"div\",{...collectionList.props,style:collectionListStyle,className:isMasonry?\"\":collectionList.props?.className||\"\",\"data-superfields\":true,children:[/*#__PURE__*/_jsx(Transition,{value:transition,children:isMasonry?/*#__PURE__*/_jsx(MemoizedMasonry,{...masonryProps,children:memoizedChildren}):memoizedChildren}),paginationActive&&scrollUp&&/*#__PURE__*/_jsx(\"div\",{ref:scrollUpRef,style:{position:\"absolute\",top: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\",controls:{variant:{type:ControlType.String,defaultValue:\"\",placeholder:\"Variant Name\",preventLocalization:true,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.\"}}},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:\" \"},paginationEnabled:{type:ControlType.Boolean,defaultValue:true,title:\"Pagination\"},filteringEnabled:{type:ControlType.Boolean,defaultValue:false,title:\"Filters\"},sortingEnabled:{type:ControlType.Boolean,defaultValue:false,title:\"Sorting\",description:\"Scroll to the top of the Superfields component when page, filter, or sorting is changed.\"}}},transition:{type:ControlType.Transition,defaultValue:{type:false},description:\" \"},// urlParameters: {\n//     type: ControlType.Object,\n//     title: \"URL Parameters\",\n//     description: \" \",\n//     controls: {\n//         pagination: {\n//             type: ControlType.Boolean,\n//             defaultValue: false,\n//         },\n//         paginationName: {\n//             type: ControlType.String,\n//             defaultValue: \"page\",\n//             placeholder: \"URL Parameter\",\n//             title: \"Name\",\n//             description: \"Current page\",\n//             hidden: (props) => !props.pagination,\n//         },\n//         search: {\n//             type: ControlType.Boolean,\n//             defaultValue: false,\n//         },\n//         searchName: {\n//             type: ControlType.String,\n//             defaultValue: \"search\",\n//             placeholder: \"URL Parameter\",\n//             title: \"Name\",\n//             description: \"Search input text\",\n//             // \"Search input text\\n\\n*Note:* URL parameters for filters and sorting can be added on the Filter and Sorting Selector components.\",\n//             hidden: (props) => !props.search,\n//         },\n//     },\n// },\npagination:{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},filtering:{type:ControlType.Boolean,defaultValue:false},favouriting:{type:ControlType.Boolean,defaultValue:false},favouritesOnly:{type:ControlType.Boolean,defaultValue:false,hidden:props=>!props.favouriting},search:{type:ControlType.Boolean,defaultValue:false},searchFields:{type:ControlType.Array,defaultValue:[{fieldType:\"default\",fieldName:\"Title\"}],title:\"Fields\",control:{type:ControlType.Object,controls:{fieldType:{type:ControlType.Enum,defaultValue:\"default\",options:[\"reference\",\"default\"],optionTitles:[\"Yes\",\"No\"],displaySegmentedControl:true,title:\"Reference\"},fieldName:{type:ControlType.String,defaultValue:\"Title\",placeholder:\"CMS Field Name\",preventLocalization:true},referenceFieldName:{type:ControlType.String,defaultValue:\"\",placeholder:\"CMS Field Name\",preventLocalization:true,hidden:props=>props.fieldType!==\"reference\"}}},description:\"CMS fields to search\",hidden:props=>!props.search},randomize:{type:ControlType.Boolean,defaultValue:false},sorting:{type:ControlType.Boolean,defaultValue:false,hidden:props=>props.randomize},sortingField:{type:ControlType.Object,optional:true,hidden:props=>props.randomize||!props.sorting,controls:sortingControls()},slugFieldName:{type:ControlType.String,defaultValue:\"Slug\",placeholder:\"Slug Field Name\",preventLocalization:true,hidden:props=>!props.favouriting&&!props.sorting},cmsCollectionName:{type:ControlType.String,defaultValue:\"\",preventLocalization:true,hidden:props=>true}});function ComponentVariantSwitch({child,componentConfig}){const componentChild=child?.props?.children?.props?.children;const componentProps=componentChild?.props;const component=componentProps?.children;const variant=componentConfig.variant;if(!component){return child;}const clonedComponent=cloneComponent(componentChild,variant);if(clonedComponent){return clonedComponent;}if(componentProps&&typeof componentProps===\"object\"&&componentProps?.hasOwnProperty(\"href\")){const clonedChild=cloneComponent(componentProps.children?.props?.children,variant);if(clonedChild){return /*#__PURE__*/cloneElement(componentChild,{children:{...componentProps?.children,props:{...componentProps?.children?.props,children:clonedChild}}});}}const clonedChild=cloneComponent(componentProps?.children,variant);if(clonedChild){return /*#__PURE__*/cloneElement(componentChild,{children:clonedChild});}if(clonedComponent?.props?.hasOwnProperty(\"variant\")){return /*#__PURE__*/cloneElement(component,{variant});}return child;}const MemoizedComponentVariantSwitch=/*#__PURE__*/memo(ComponentVariantSwitch);const MemoizedMasonry=/*#__PURE__*/memo(Masonry);function cloneComponent(componentChild,variant){const componentProps=componentChild?.props;const component=componentProps?.children;if(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?.propertyControls){const cData=component?.props?.children;if(component&&cData){const variantProp=cData.type?.propertyControls?.variant;if(variantProp){return /*#__PURE__*/cloneElement(component,{children:{...cData,props:{...cData.props,variant}}});}}}return null;}function shuffle(array,seed){// Create a copy of the original array to avoid modifying it directly\nconst shuffled=array.slice();// Create a seeded random number generator\nlet currentSeed=seed;const random=()=>{const x=Math.sin(currentSeed++)*1e4;return x-Math.floor(x);};// Fisher-Yates shuffle algorithm\nfor(let i=shuffled.length-1;i>0;i--){const j=Math.floor(random()*(i+1));[shuffled[i],shuffled[j]]=[shuffled[j],shuffled[i]];}return shuffled;}function getPropertyControl(fieldName,fieldType,referenceFieldName,referenceFieldType,propertyControlsByTitle,mainAlias,defaultReferencePropertyTitle=\"\"){let property=propertyControlsByTitle[mainAlias]?.[fieldName]||null;let mismatchedFieldName=\"\";let mismatchedFieldType=\"\";if(property){if(property.type===\"collectionreference\"){const alias=property.id;const propertyControls=propertyControlsByTitle[alias];if(propertyControls){const name=fieldType===\"reference\"?referenceFieldName:defaultReferencePropertyTitle;const control=propertyControls[name];if(control){if(referenceFieldType&&referenceFieldType!==control.type){mismatchedFieldName=fieldName;mismatchedFieldType=control.type;}else{property={...control,id:`${alias}.${control.id}`};}}}}else if(property.type!==fieldType){mismatchedFieldName=fieldName;mismatchedFieldType=fieldType;}}return{property,mismatchedFieldName,mismatchedFieldType};}function processField(field,fieldValue,filterValue,multiSelect,conditionContains,multiReferenceItemsById){if(field.type===\"multicollectionreference\"&&Array.isArray(fieldValue)){// const rItems = multiReferenceItemsById[field.referenceAlias]\nfor(const item of fieldValue){if(!item){continue;}const itemValue=item[field.referenceId];if(itemValue===null||itemValue===undefined){continue;}if(filterData(itemValue,filterValue,field.referenceType,multiSelect,conditionContains)){return true;}}}else{if(fieldValue===null||fieldValue===undefined){return false;}return filterData(fieldValue,filterValue,field.type,multiSelect,conditionContains);}return false;}function filterData(fieldValue,filterValue,fieldType,multiSelect,conditionContains){if(typeof filterValue==\"string\"&&multiSelect){const values=filterValue.split(DELIMITER);switch(fieldType){case FieldType.String:case FieldType.Enum:if(conditionContains){for(const v of values){if(fieldValue.includes(v)){return true;}}}else{if(values.includes(fieldValue)){return true;}}break;}}else{switch(fieldType){case FieldType.Boolean:if(fieldValue==filterValue){return true;}break;case FieldType.String:case FieldType.Enum:if(conditionContains){if(fieldValue?.includes(filterValue)){return true;}}else{if(fieldValue==filterValue){return true;}}break;}}return false;}function modifySelect(query,filters,search,searchFields,sort,propertyControlsByTitle,collections){const filterIds=Object.keys(filters);const hasFilters=filterIds.length;if(query?.select&&(hasFilters||search||sort?.sortBy===\"field\")){const fields=[];if(hasFilters){for(const filterId of filterIds){const filter=filters[filterId];if(filter.fieldType===FilterFieldType.MultipleOptions){for(const name of filter.fieldName.split(DELIMITER)){fields.push({name:name});}}else if(filter.fieldType===FilterFieldType.Reference){fields.push({name:filter.fieldName,referenceFieldName:filter.referenceFieldName});}else{fields.push({name:filter.fieldName});}}}for(const field of searchFields){if(field.fieldType===\"reference\"){fields.push({name:field.fieldName,referenceFieldName:field.referenceFieldName});}else{fields.push({name:field.fieldName});}}if(sort&&sort.sortBy===\"field\"){fields.push({name:sort.fieldName});}// Deduplicate fields\nconst uniqueFields=[];for(const field of fields){if(!uniqueFields.some(f=>f.name===field.name&&f.referenceFieldName===field.referenceFieldName)){uniqueFields.push(field);}}return addFieldsToSelect(uniqueFields,query,propertyControlsByTitle,collections);}return query?.select;}function mapCollectionDataValues(items,propertyControlsById,mainAlias,multiReferenceItemsById,multiReferenceIdMap){if(!Array.isArray(items)||typeof propertyControlsById!==\"object\"||typeof multiReferenceItemsById!==\"object\"||typeof multiReferenceIdMap!==\"object\"||typeof mainAlias!==\"string\"){return items// Return the original array if inputs are invalid\n;}const mainPropertyControlsById=propertyControlsById[mainAlias];// Create a shallow copy of the items array\nconst copiedItems=items.map(item=>({...item}));for(const propertyId of Object.keys(mainPropertyControlsById)){const property=mainPropertyControlsById[propertyId];if(property.type===\"enum\"){const optionMap={};if(property.options&&property.optionTitles){for(let i=0;i<property.options.length;i++){optionMap[property.options[i]]=property.optionTitles[i];}}for(const item of copiedItems){if(item[propertyId]){item[propertyId]=optionMap[item[propertyId]]||\"\";}}}else if(property.type===\"multicollectionreference\"){const alias=multiReferenceIdMap[propertyId];const referenceItemsById=multiReferenceItemsById[alias];if(referenceItemsById){for(const item of copiedItems){const referenceItems=item[alias];const rPropertyControlsById=propertyControlsById[alias];const newItemValues=[];if(Array.isArray(referenceItems)&&typeof rPropertyControlsById===\"object\"){const rCopiedItems=referenceItems.map(item=>{const value=typeof item===\"string\"?referenceItemsById[item]:item;return value?{...value}:{};});for(const propertyId of Object.keys(rPropertyControlsById)){const property=rPropertyControlsById[propertyId];if(property.type===\"enum\"){const optionMap={};if(property.options&&property.optionTitles){for(let i=0;i<property.options.length;i++){optionMap[property.options[i]]=property.optionTitles[i];}}for(const item of rCopiedItems){if(item[propertyId]){item[propertyId]=optionMap[item[propertyId]]||\"\";}}}}for(const item of rCopiedItems){newItemValues.push(item);}}item[propertyId]=newItemValues;}}}}return copiedItems;}function getSearchLevelForValue(value,searchText){if(value==undefined||value==null){return 0;}const text=String(value).toLowerCase();if(text==searchText){return 4;}else if(text.includes(searchText)){if(text.startsWith(searchText)){return 3;}else if((\" \"+text+\" \").includes(\" \"+searchText+\" \")){return 2;}else{return 1;}}return 0;}const Transition=({value,children})=>{const config=useContext(MotionConfigContext);const transition=value??config.transition;const contextValue=useMemo(()=>({...config,transition}),[JSON.stringify(transition)]);return /*#__PURE__*/_jsx(MotionConfigContext.Provider,{value:contextValue,children:children});};\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"Superfields\",\"slots\":[],\"annotations\":{\"framerDisableUnlink\":\"\",\"framerIntrinsicWidth\":\"600\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerSupportedLayoutHeight\":\"any\"}},\"LayoutType\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"SearchFieldType\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Superfields.map","import{jsx as _jsx}from\"react/jsx-runtime\";import{ControlType}from\"framer\";import{addPropertyControlsV2}from\"https://framerusercontent.com/modules/wzF1aUkHoslINE1PWbP0/pud8aXQ40ffzFv6s5hLJ/Shared.js\";import OriginalSuperfields,{LayoutType,SearchFieldType}from\"https://framerusercontent.com/modules/1o5Bk6b6qvbR58A6b2Ej/Mqjy9QGn7gISXUH9A2We/Superfields.js\";const DEFAULT_SLUG_FIELD_NAME=\"Slug\";/**\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any\n * @framerIntrinsicWidth 600\n * @framerDisableUnlink\n */export default function Superfields(props){const advanced=props.mode===\"advanced\";return /*#__PURE__*/_jsx(OriginalSuperfields,{collectionList:props.collectionList,emptyState:props.emptyState,superfieldsId:advanced?props.settings?.id??0:0,layout:advanced?props.styling?.layout:undefined,transition:advanced?props.styling?.transition:undefined,componentConfig:advanced&&props.settings?.variant?{variant:props.settings.variant}:undefined,scrollUp:advanced?props.settings?.scrollToTop:undefined,randomize:advanced?props.settings?.randomization:false,favourites:advanced&&props.settings?.favouritesOnly?true:false,favouriteOnly:advanced&&props.settings?.favouritesOnly?true:false,search:advanced?props.settings?.search:undefined,searchFields:advanced?props.settings?.searchFields:undefined,slugFieldName:advanced?props.settings?.slugFieldName||DEFAULT_SLUG_FIELD_NAME:DEFAULT_SLUG_FIELD_NAME,customOverrideFilter:props.customOverrideFilter,customOverrideSort:props.customOverrideSort,style:props.style});}addPropertyControlsV2(Superfields,{collectionList:{type:ControlType.ComponentInstance,description:\"*CMS Collection:* Connect this to a connection list. This must be outside of a page to be connected.\"},emptyState:{type:ControlType.ComponentInstance,description:\"*Empty State:* Show a frame when no items exist. This must be outside of a page to be connected.\"},styling:{advanced:true,type:ControlType.Object,title:\"Styling 🎨\",buttonTitle:\"Layout, Transition\",description:\"Update the collection layout and style.\",controls:{layout:{type:ControlType.Object,optional:true,description:\"Stack, grid, or masonry layout\",controls:{type:{type:ControlType.Enum,defaultValue:LayoutType.Stack,options:[LayoutType.Stack,LayoutType.Grid,LayoutType.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!=LayoutType.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!=LayoutType.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!=LayoutType.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!=LayoutType.Stack||props.direction!=\"vertical\"},wrap:{type:ControlType.Boolean,defaultValue:false,hidden:props=>props.type!=LayoutType.Stack},columns:{type:ControlType.Enum,defaultValue:\"fixed\",options:[\"auto\",\"fixed\"],optionTitles:[\"Auto\",\"Fixed\"],displaySegmentedControl:true,hidden:props=>props.type!=LayoutType.Grid},columnCount:{type:ControlType.Number,defaultValue:2,min:1,step:1,displayStepper:true,title:\" \",hidden:props=>props.type!=LayoutType.Grid||props.columns==\"auto\"},gridWidthType:{type:ControlType.Enum,defaultValue:\"min\",options:[\"min\",\"fixed\"],optionTitles:[\"Min\",\"Fixed\"],displaySegmentedControl:true,title:\"Width\",hidden:props=>props.type!=LayoutType.Grid},gridWidth:{type:ControlType.Number,defaultValue:200,min:1,step:1,title:\" \",hidden:props=>props.type!=LayoutType.Grid},gridHeightType:{type:ControlType.Enum,defaultValue:\"fit\",options:[\"fit\",\"fixed\"],optionTitles:[\"Fit\",\"Fixed\"],displaySegmentedControl:true,title:\"Height\",hidden:props=>props.type!=LayoutType.Grid},gridHeight:{type:ControlType.Number,defaultValue:200,min:1,step:1,title:\" \",hidden:props=>props.type!=LayoutType.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!=LayoutType.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!=LayoutType.Grid||props.gridHeightType!==\"fit\"},masonryColumns:{type:ControlType.Number,defaultValue:3,min:1,step:1,displayStepper:true,title:\"Columns\",hidden:props=>props.type!==LayoutType.Masonry},masonryItemWidth:{type:ControlType.Enum,defaultValue:\"fill\",options:[\"fit\",\"fill\"],optionTitles:[\"Fit\",\"Fill\"],displaySegmentedControl:true,title:\"Item Width\",hidden:props=>props.type!==LayoutType.Masonry},masonryAlign:{type:ControlType.Enum,defaultValue:\"center\",options:[\"start\",\"center\",\"end\"],optionTitles:[\"Left\",\"Center\",\"Right\"],displaySegmentedControl:true,title:\"Align\",hidden:props=>props.type!==LayoutType.Masonry||props.masonryItemWidth!==\"fit\"},gap:{type:ControlType.Number,defaultValue:10,min:0,step:1,hidden:props=>props.type!==LayoutType.Stack},gapH:{type:ControlType.Number,defaultValue:10,min:0,step:1,hidden:props=>props.type!==LayoutType.Grid&&(props.type!==LayoutType.Masonry||props.masonryColumns===1)},gapV:{type:ControlType.Number,defaultValue:10,min:0,step:1,hidden:props=>props.type!==LayoutType.Grid&&props.type!==LayoutType.Masonry},padding:{type:ControlType.FusedNumber,defaultValue:0,toggleKey:\"paddingIsMixed\",toggleTitles:[\"All\",\"Individual\"],valueKeys:[\"paddingTop\",\"paddingRight\",\"paddingBottom\",\"paddingLeft\"],valueLabels:[\"T\",\"R\",\"B\",\"L\"],min:0}}},transition:{type:ControlType.Transition,defaultValue:{type:false},description:\"Animate items when they move\"}}},settings:{advanced:true,type:ControlType.Object,title:\"Settings\",description:\"Advanced setup for Superfields.\",buttonTitle:\"Options\",controls:{id:{type:ControlType.Number,defaultValue:0,step:1,min:0,displayStepper:true,title:\"ID\",description:\"If using multiple collections on the same page, set a specific ID to match.\"},randomization:{type:ControlType.Boolean,defaultValue:false,title:\"Randomization\",description:\"Randomize the order of items in the collection.\"},favouritesOnly:{type:ControlType.Boolean,defaultValue:false,title:\"Favourites Only\",description:\"Show only favourited items in the collection.\"},search:{type:ControlType.Boolean,defaultValue:false},searchFields:{type:ControlType.Array,defaultValue:[{fieldType:\"default\",fieldName:\"Title\"}],title:\"Fields\",control:{type:ControlType.Object,controls:{fieldType:{type:ControlType.Enum,defaultValue:SearchFieldType.Default,options:[SearchFieldType.Reference,SearchFieldType.Default],optionTitles:[\"Yes\",\"No\"],displaySegmentedControl:true,title:\"Reference\"},fieldName:{type:ControlType.String,defaultValue:\"Title\",placeholder:\"CMS Field Name\",preventLocalization:true},referenceFieldName:{type:ControlType.String,defaultValue:\"\",placeholder:\"CMS Field Name\",preventLocalization:true,hidden:props=>props.fieldType!==\"reference\"}}},description:\"CMS fields to search\",hidden:props=>!props.search},scrollToTop:{type:ControlType.Object,optional:true,defaultValue:{scrollStyle:\"smooth\",offset:0},title:\"Scroll to Top\",description:\"Scroll to the top of the Superfields component when page, filter, or sorting is changed.\",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:\" \"},paginationEnabled:{type:ControlType.Boolean,defaultValue:true,title:\"Pagination\"},filteringEnabled:{type:ControlType.Boolean,defaultValue:false,title:\"Filters\"},sortingEnabled:{type:ControlType.Boolean,defaultValue:false,title:\"Sorting\"}}},variant:{type:ControlType.String,defaultValue:\"\",placeholder:\"Variant Name\",preventLocalization:true,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.\"},slugFieldName:{type:ControlType.String,defaultValue:DEFAULT_SLUG_FIELD_NAME,placeholder:DEFAULT_SLUG_FIELD_NAME,description:\"The name of the *Slug* field on the CMS collection.\"}}}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"Superfields\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerIntrinsicWidth\":\"600\",\"framerDisableUnlink\":\"\",\"framerSupportedLayoutHeight\":\"any\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}","import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType,RenderTarget,withCSS}from\"framer\";import{motion}from\"framer-motion\";import{borderPropertyControl,Border,fillProp,fillPropOnOff,createBackground,superfieldsId,parsePadding,sortingControls,DEFAULT_SORTING_ID}from\"https://framerusercontent.com/modules/FZjYlw33eNo8pxLbSFLX/9cz7ek89fMdNfYUyPOlg/SuperfieldsShared.js\";import useSuperfieldsStore from\"https://framerusercontent.com/modules/OoGHZMzWDzm2mNN7bmeR/SrfgZxoYwWZOduOAI06A/Store.js\";import{useState,useEffect}from\"react\";const ControlTypeExtended=ControlType;const DIVIDER=\"divider\";const BORDER_WIDTH_KEYS=[\"width\",\"widthTop\",\"widthRight\",\"widthBottom\",\"widthLeft\"];function normalizeButtonBorder(border){if(!border){return null;}const normalized={...border};for(const key of BORDER_WIDTH_KEYS){const value=border[key];if(typeof value===\"string\"){const parsed=parseFloat(value.replace(\"px\",\"\"));normalized[key]=Number.isFinite(parsed)?parsed:undefined;}}return normalized;}function isSortingOptionNormalized(option){return option!==DIVIDER;}function SortingSelectorComponent(props){const{superfieldsId,selectorType,buttonGroupLayout,buttonGroupStyle,dropdownStyle,transition}=props;const isCanvas=RenderTarget.current()===RenderTarget.canvas;const[initialized,setInitialized]=useState(false);const options=[];const optionsById={};let defaultOption=null;let optionCounter=0;for(const option of props.options){if(option.type===DIVIDER){options.push(DIVIDER);continue;}const normalizedOption={...option,index:optionCounter,id:option.sortBy===\"defaultSorting\"?DEFAULT_SORTING_ID:option.sortBy===\"favourites\"?`favourites-${option.favouritesSort??\"favouritesFirst\"}`:`field-${option.fieldName}-${option.fieldType}-${getOptionSortValue(option)}`};options.push(normalizedOption);optionsById[normalizedOption.id]=normalizedOption;optionCounter+=1;if(!defaultOption&&normalizedOption.defaultValue){defaultOption=normalizedOption;}}if(!defaultOption){const firstOption=options.find(isSortingOptionNormalized)??null;defaultOption=firstOption;}useEffect(()=>{setInitialized(true);},[]);const[sortOption,setSortOption]=useSuperfieldsStore(superfieldsId,state=>[state.sortOption,state.setSortOption],state=>{let defaultSort=defaultOption;if(typeof window!==\"undefined\"&&props.urlParameter?.name){const urlParams=new URLSearchParams(window.location.search);const urlValue=urlParams.get(props.urlParameter.name);if(urlValue!==null){const option=options.find(candidate=>isSortingOptionNormalized(candidate)&&candidate.title===urlValue);if(option){defaultSort=option;}}}state.sortOption=defaultSort;state.defaultSortOption=defaultOption;state.sortingUrlParameter=props.urlParameter?.name||null;});const value=isCanvas||!initialized?defaultOption:sortOption||null;const valueId=value?.id??DEFAULT_SORTING_ID;const layers=[];const setSorting=id=>{setSortOption(optionsById[id]||null);};switch(selectorType){case\"dropdown\":{const dropdownArrow=dropdownStyle.arrow;const[pt,pr,pb,pl]=parsePadding(dropdownStyle.padding);const prWithArrow=pr+(dropdownArrow?dropdownArrow.size+dropdownArrow.gap:0);layers.push(/*#__PURE__*/_jsx(\"select\",{className:\"superfields-sorting-dropdown\",value:valueId,onChange:event=>{setSorting(event.target.value);},style:{position:\"relative\",appearance:\"none\",height:\"100%\",cursor:\"pointer\",...createBackground(dropdownStyle.fill),color:dropdownStyle.fontColor,padding:`${pt}px ${prWithArrow}px ${pb}px ${pl}px`,borderRadius:dropdownStyle.radius,border:\"none\",boxShadow:dropdownStyle.shadows??undefined,backdropFilter:dropdownStyle.bgBlur?`blur(${dropdownStyle.bgBlur}px)`:undefined,...props.font,...props.style},children:options.map((item,index)=>item===DIVIDER?/*#__PURE__*/_jsx(\"option\",{disabled:true,value:`divider-${index}`,children:\"────────────────\"},`divider-${index}`):/*#__PURE__*/_jsx(\"option\",{value:item.id,children:item.title},item.id))},\"sorting-selector-dropdown\"));if(dropdownStyle.border){layers.push(/*#__PURE__*/_jsx(Border,{...dropdownStyle.border,radius:dropdownStyle.radius},\"sorting-selector-dropdown-border\"));}if(dropdownArrow){layers.push(/*#__PURE__*/_jsx(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",width:dropdownArrow.size,height:dropdownArrow.size,viewBox:\"0 0 18 18\",fill:\"none\",strokeWidth:dropdownArrow.stroke,stroke:dropdownArrow.color??dropdownStyle.fontColor,strokeLinecap:\"round\",strokeLinejoin:\"round\",style:{display:\"block\",position:\"absolute\",right:pr,top:`calc(50% - ${dropdownArrow.size/2}px)`,pointerEvents:\"none\"},children:/*#__PURE__*/_jsx(\"path\",{d:\"M2 5.5L9 12.5L16 5.5\"})},\"sorting-selector-dropdown-arrow\"));}break;}case\"buttonGroup\":{const{border:rawBorder,fill,...buttonStyle}=buttonGroupStyle;const normalizedBorder=normalizeButtonBorder(rawBorder);layers.push(/*#__PURE__*/_jsx(\"div\",{style:{display:\"flex\",flexDirection:buttonGroupLayout.direction===\"horizontal\"?\"row\":\"column\",flexWrap:buttonGroupLayout.wrap?\"wrap\":\"nowrap\",justifyContent:buttonGroupLayout.distribute,columnGap:buttonGroupLayout.gapH,rowGap:buttonGroupLayout.gapV,textAlign:props.font?.textAlign||\"center\",...props.style},children:options.map((option,index)=>option===DIVIDER?/*#__PURE__*/_jsx(ButtonGroupDivider,{...props.dividerStyle,layout:buttonGroupLayout},`divider-${index}`):/*#__PURE__*/_jsx(OptionButton,{selected:valueId===option.id,onClick:()=>setSorting(option.id),text:option.title,direction:buttonGroupLayout.direction,width:buttonGroupLayout.width,transition:transition,fill:fill,border:normalizedBorder,...buttonStyle},option.id))},\"sorting-selector-button-group\"));break;}}return /*#__PURE__*/_jsx(\"div\",{\"data-superfields\":true,style:{position:\"relative\",userSelect:\"none\",...props.font,...props.style},children:layers});}/**\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight any\n * @framerDisableUnlink\n */const SortingSelector=withCSS(SortingSelectorComponent,[\"select.superfields-sorting-dropdown:focus-visible { outline: none; }\"],\"superfields-sorting-selector\");export default SortingSelector;SortingSelector.displayName=\"Sorting Selector\";addPropertyControls(SortingSelector,{...superfieldsId(),options:{type:ControlType.Array,defaultValue:[{type:\"option\",title:\"Default\",sortBy:\"defaultSorting\",defaultValue:true}],control:{type:ControlType.Object,controls:{type:{type:ControlType.Enum,defaultValue:\"option\",options:[\"option\",\"divider\"],optionTitles:[\"Option\",\"Divider\"],displaySegmentedControl:true},title:{type:ControlType.String,defaultValue:\"\",placeholder:\"Title\",hidden:props=>props.type!==\"option\"},...sortingControls({defaultSorting:true,hidden:props=>props.type!==\"option\"}),defaultValue:{type:ControlType.Boolean,defaultValue:false,title:\"Default\",hidden:props=>props.type!==\"option\"}}}},selectorType:{type:ControlType.Enum,defaultValue:\"dropdown\",options:[\"dropdown\",\"buttonGroup\"],optionTitles:[\"Dropdown\",\"Buttons\"],title:\"Type\",displaySegmentedControl:true,segmentedControlDirection:\"vertical\"},font:{type:ControlType.Font,controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:14,lineHeight:1.4}},buttonGroupStyle:{type:ControlType.Object,title:\"Buttons\",buttonTitle:\"Styles\",controls:{fill:fillPropOnOff({colorOff:\"#F0F0F0\",colorAOff:\"#EDEDED\",colorBOff:\"#CCC\",colorOn:\"#0075FF\",colorAOn:\"#70B3FF\",colorBOn:\"#0075FF\"}),selectedFontColor:{type:ControlType.Color,defaultValue:\"#FFF\",title:\"Font Color On\"},defaultFontColor:{type:ControlType.Color,defaultValue:\"#000\",title:\"Font Color Off\"},padding:{type:ControlTypeExtended.Padding,defaultValue:\"12px 24px 12px 24px\"},radius:{type:ControlTypeExtended.BorderRadius,defaultValue:\"8px\"},border:{type:ControlType.Object,optional:true,controls:{selectedColor:{type:ControlType.Color,defaultValue:\"#0051ad\",title:\"Color On\"},defaultColor:{type:ControlType.Color,defaultValue:\"#222\",title:\"Color Off\"},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\"]}}},shadowsSelected:{type:ControlTypeExtended.BoxShadow,title:\"Shadow On\"},shadows:{type:ControlTypeExtended.BoxShadow,title:\"Shadow Off\"},bgBlur:{type:ControlType.Number,min:0,max:100,step:1,displayStepper:true,title:\"BG Blur\"}},hidden:props=>props.selectorType!==\"buttonGroup\"},buttonGroupLayout:{type:ControlType.Object,title:\"Layout\",buttonTitle:\"Stack\",controls:{direction:{type:ControlType.Enum,defaultValue:\"horizontal\",options:[\"horizontal\",\"vertical\"],displaySegmentedControl:true},distribute:{type:ControlType.Enum,defaultValue:\"center\",options:[\"flex-start\",\"center\",\"flex-end\",\"space-between\",\"space-around\",\"space-evenly\"],optionTitles:[\"Start\",\"Center\",\"End\",\"Space Between\",\"Space Around\",\"Space Evenly\"]},wrap:{type:ControlType.Boolean,defaultValue:false},gapH:{type:ControlType.Number,defaultValue:8,min:0,step:1},gapV:{type:ControlType.Number,defaultValue:8,min:0,step:1},width:{type:ControlType.Enum,defaultValue:\"fit\",options:[\"fit\",\"fill\"],optionTitles:[\"Fit\",\"Fill\"],displaySegmentedControl:true}},hidden:props=>props.selectorType!==\"buttonGroup\"},dividerStyle:{type:ControlType.Object,title:\"Dividers\",controls:{color:{type:ControlType.Color,defaultValue:\"rgba(0, 0, 0, 0.25)\"},width:{type:ControlType.Number,defaultValue:1,min:0,displayStepper:true},rounded:{type:ControlType.Boolean,defaultValue:false},marginH:{type:ControlType.Number,defaultValue:0,min:0,step:1,displayStepper:true},marginV:{type:ControlType.Number,defaultValue:0,min:0,step:1,displayStepper:true}},hidden:props=>props.selectorType!==\"buttonGroup\"},dropdownStyle:{type:ControlType.Object,title:\"Dropdown\",buttonTitle:\"Styles\",controls:{fill:fillProp({color:\"#F0F0F0\"}),fontColor:{type:ControlType.Color,defaultValue:\"#000\"},padding:{type:ControlTypeExtended.Padding,defaultValue:\"12px 24px 12px 24px\"},radius:{type:ControlTypeExtended.BorderRadius,defaultValue:\"8px\"},arrow:{type:ControlType.Object,defaultValue:{size:12,gap:10},optional:true,buttonTitle:\"Style\",controls:{color:{type:ControlType.Color,optional:true},size:{type:ControlType.Number,defaultValue:12,min:1,step:1},gap:{type:ControlType.Number,defaultValue:10,min:0,step:1},stroke:{type:ControlType.Number,defaultValue:2,min:.1,step:.1,displayStepper:true}}},border:borderPropertyControl(),shadows:{type:ControlTypeExtended.BoxShadow},bgBlur:{type:ControlType.Number,min:0,max:100,step:1,displayStepper:true,title:\"BG Blur\"}},hidden:props=>props.selectorType!==\"dropdown\"},transition:{type:ControlType.Transition,defaultValue:{type:\"spring\",duration:.2,bounce:0},hidden:props=>props.selectorType===\"dropdown\"}});function OptionButton({selected,border,fill,transition,text,direction,width,onClick,selectedFontColor,defaultFontColor,padding,radius,bgBlur,shadowsSelected,shadows}){let borderNode=null;if(border){const{selectedColor,defaultColor,transition:borderTransition,...borderProps}=border;borderNode=/*#__PURE__*/_jsx(Border,{...borderProps,color:selected?selectedColor:defaultColor,transition:borderTransition??transition});}return /*#__PURE__*/_jsxs(motion.div,{onClick:onClick,animate:{...createBackground(fill,selected),color:selected?selectedFontColor:defaultFontColor,boxShadow:selected&&shadowsSelected?shadowsSelected??undefined:shadows??undefined},style:{position:\"relative\",width:direction===\"vertical\"&&width===\"fill\"?\"100%\":\"max-content\",flex:width===\"fill\"?1:undefined,cursor:\"pointer\",padding,borderRadius:radius,backdropFilter:bgBlur?`blur(${bgBlur}px)`:undefined},initial:false,transition:transition,children:[text,borderNode]});}function ButtonGroupDivider({color,width,rounded,marginH,marginV,layout}){const horizontal=layout.direction===\"vertical\";return /*#__PURE__*/_jsx(\"div\",{style:{backgroundColor:color,width:horizontal?undefined:width,height:horizontal?width:undefined,margin:`${marginV}px ${marginH}px`,borderRadius:rounded?1e4:undefined,alignSelf:\"stretch\"}});}function getOptionSortValue(option){if(option.sortBy===\"favourites\"){return option.favouritesSort;}switch(option.fieldType){case\"string\":return option.stringSort;case\"number\":return option.numberSort;case\"date\":return option.dateSort;case\"boolean\":return option.booleanSort;case\"enum\":return option.enumSort;default:return undefined;}}\nexport const __FramerMetadata__ = {\"exports\":{\"SortingOption\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"SortingSelectorProps\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"SortingSelectorMotionTransition\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"default\":{\"type\":\"variable\",\"annotations\":{\"framerSupportedLayoutHeight\":\"any\",\"framerDisableUnlink\":\"\",\"framerSupportedLayoutWidth\":\"any\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}","import{jsx as _jsx}from\"react/jsx-runtime\";import{ControlType}from\"framer\";import{addPropertyControlsV2,idControl,parsePadding}from\"https://framerusercontent.com/modules/wzF1aUkHoslINE1PWbP0/pud8aXQ40ffzFv6s5hLJ/Shared.js\";import OriginalSortingSelector from\"https://framerusercontent.com/modules/3uGnzxOH6mP18wRhuwQt/I2IPrC4rdqDvl87VaG2N/SortingSelector.js\";import{fillPropOnOff,fillProp,sortingControls}from\"https://framerusercontent.com/modules/FZjYlw33eNo8pxLbSFLX/9cz7ek89fMdNfYUyPOlg/SuperfieldsShared.js\";const ControlTypeExtended=ControlType;const TRANSITION_PROPERTY={transition:{type:ControlType.Transition,defaultValue:{type:\"spring\",duration:.2,bounce:0}}};const FONT_PROPERTY={font:{type:ControlType.Font,controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:14,lineHeight:1.4}}};/**\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight any\n * @framerDisableUnlink\n */export default function SortingSelector(props){const advanced=props.mode===\"advanced\";let font=null;let transition=null;switch(props.selectorType){case\"dropdown\":font=props.dropdownStyle.font;transition=props.dropdownStyle.transition;break;case\"buttonGroup\":font=props.buttonGroupStyle.font;transition=props.buttonGroupStyle.transition;break;}// Transform v2 button group style to legacy format\nconst legacyButtonGroupStyle={...props.buttonGroupStyle,shadowsSelected:props.buttonGroupStyle.shadows?.shadowOn??\"\",shadows:props.buttonGroupStyle.shadows?.shadowOff??\"\"};// Transform v2 dropdown style to legacy format\nconst legacyDropdownStyle={...props.dropdownStyle,border:props.dropdownStyle.border?{...props.dropdownStyle.border,...parsePadding(props.dropdownStyle.border.width,\"width\")}:undefined};const legacyProps={options:props.options,selectorType:props.selectorType,superfieldsId:advanced?props.settings.id:0,font,buttonGroupStyle:legacyButtonGroupStyle,buttonGroupLayout:props.buttonGroupStyle.layout,dividerStyle:props.buttonGroupStyle.dividerStyle,dropdownStyle:legacyDropdownStyle,transition,style:props.style};return /*#__PURE__*/_jsx(OriginalSortingSelector,{...legacyProps});}SortingSelector.displayName=\"Sorting Selector\";addPropertyControlsV2(SortingSelector,{options:{type:ControlType.Array,defaultValue:[{type:\"option\",title:\"Default\",sortBy:\"defaultSorting\",defaultValue:true}],control:{type:ControlType.Object,controls:{type:{type:ControlType.Enum,defaultValue:\"option\",options:[\"option\",\"divider\"],optionTitles:[\"Option\",\"Divider\"],displaySegmentedControl:true},title:{type:ControlType.String,defaultValue:\"\",placeholder:\"Title\",hidden:props=>props.type!==\"option\"},...sortingControls({defaultSorting:true,hidden:props=>props.type!==\"option\"}),defaultValue:{type:ControlType.Boolean,defaultValue:false,title:\"Default\",hidden:props=>props.type!==\"option\"}}}},selectorType:{type:ControlType.Enum,defaultValue:\"dropdown\",options:[\"dropdown\",\"buttonGroup\"],optionTitles:[\"Dropdown\",\"Buttons\"],title:\"Type\",displaySegmentedControl:true,segmentedControlDirection:\"vertical\"},buttonGroupStyle:{type:ControlType.Object,title:\"Styling 🎨\",description:\"Update the buttons styling.\",buttonTitle:\"Buttons\",hidden:props=>props.selectorType!==\"buttonGroup\",controls:{layout:{type:ControlType.Object,buttonTitle:\"Stack\",controls:{direction:{type:ControlType.Enum,defaultValue:\"horizontal\",options:[\"horizontal\",\"vertical\"],displaySegmentedControl:true},distribute:{type:ControlType.Enum,defaultValue:\"center\",options:[\"flex-start\",\"center\",\"flex-end\",\"space-between\",\"space-around\",\"space-evenly\"],optionTitles:[\"Start\",\"Center\",\"End\",\"Space Between\",\"Space Around\",\"Space Evenly\"]},wrap:{type:ControlType.Boolean,defaultValue:false},gapH:{type:ControlType.Number,defaultValue:8,min:0,step:1},gapV:{type:ControlType.Number,defaultValue:8,min:0,step:1},width:{type:ControlType.Enum,defaultValue:\"fit\",options:[\"fit\",\"fill\"],optionTitles:[\"Fit\",\"Fill\"],displaySegmentedControl:true}}},fill:fillPropOnOff({colorOff:\"#F0F0F0\",colorAOff:\"#EDEDED\",colorBOff:\"#CCC\",colorOn:\"#0075FF\",colorAOn:\"#70B3FF\",colorBOn:\"#0075FF\"}),...FONT_PROPERTY,selectedFontColor:{type:ControlType.Color,defaultValue:\"#FFF\",title:\"Color On\"},defaultFontColor:{type:ControlType.Color,defaultValue:\"#000\",title:\"Color Off\"},padding:{type:ControlTypeExtended.Padding,defaultValue:\"10px 16px 10px 16px\"},radius:{type:ControlTypeExtended.BorderRadius,defaultValue:\"8px\"},border:{type:ControlType.Object,optional:true,controls:{selectedColor:{type:ControlType.Color,defaultValue:\"#0051ad\",title:\"Color On\"},defaultColor:{type:ControlType.Color,defaultValue:\"#222\",title:\"Color Off\"},width:{type:ControlTypeExtended.Padding,defaultValue:\"1px\"},style:{type:ControlType.Enum,defaultValue:\"solid\",options:[\"solid\",\"dashed\",\"dotted\",\"double\"],optionTitles:[\"Solid\",\"Dashed\",\"Dotted\",\"Double\"]}}},shadows:{type:ControlType.Object,optional:true,buttonTitle:\"Shadows\",controls:{shadowOn:{type:ControlTypeExtended.BoxShadow,title:\"On\"},shadowOff:{type:ControlTypeExtended.BoxShadow,title:\"Off\"}}},bgBlur:{type:ControlType.Number,min:0,max:100,step:1,displayStepper:true,title:\"BG Blur\"},dividerStyle:{type:ControlType.Object,title:\"Dividers\",controls:{color:{type:ControlType.Color,defaultValue:\"rgba(0, 0, 0, 0.25)\"},width:{type:ControlType.Number,defaultValue:1,min:0,displayStepper:true},rounded:{type:ControlType.Boolean,defaultValue:false},marginH:{type:ControlType.Number,defaultValue:0,min:0,step:1,displayStepper:true},marginV:{type:ControlType.Number,defaultValue:0,min:0,step:1,displayStepper:true}}},...TRANSITION_PROPERTY}},dropdownStyle:{type:ControlType.Object,title:\"Styling 🎨\",description:\"Update the dropdown styling.\",buttonTitle:\"Dropdown\",hidden:props=>props.selectorType!==\"dropdown\",controls:{fill:fillProp({color:\"#F0F0F0\"}),...FONT_PROPERTY,fontColor:{type:ControlType.Color,defaultValue:\"#000\"},padding:{type:ControlTypeExtended.Padding,defaultValue:\"10px 16px 10px 16px\"},radius:{type:ControlTypeExtended.BorderRadius,defaultValue:\"8px\"},arrow:{type:ControlType.Object,defaultValue:{size:12,gap:10},optional:true,buttonTitle:\"Style\",controls:{color:{type:ControlType.Color,optional:true},size:{type:ControlType.Number,defaultValue:12,min:1,step:1},gap:{type:ControlType.Number,defaultValue:10,min:0,step:1},stroke:{type:ControlType.Number,defaultValue:2,min:.1,step:.1,displayStepper:true}}},border:{type:ControlType.Object,optional:true,controls:{color:{type:ControlType.Color,defaultValue:\"#222\"},width:{type:ControlTypeExtended.Padding,defaultValue:\"1px\"},style:{type:ControlType.Enum,defaultValue:\"solid\",options:[\"solid\",\"dashed\",\"dotted\",\"double\"],optionTitles:[\"Solid\",\"Dashed\",\"Dotted\",\"Double\"]}}},shadows:{type:ControlTypeExtended.BoxShadow},bgBlur:{type:ControlType.Number,min:0,max:100,step:1,displayStepper:true,title:\"BG Blur\"},...TRANSITION_PROPERTY}},settings:{type:ControlType.Object,advanced:true,description:\"Add more control around sorting options.\",controls:{id:idControl}}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"SortingSelector\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"any\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"any\",\"framerDisableUnlink\":\"\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}"],"mappings":"A,uZAQG,SAAgB4D,GAAc,CAAC,UAAQ,CAAC,EAAE,CAAC,MAAM,CAAC,cAAc,CAAC,KAAKD,EAAY,OAAO,aAAa,EAAE,IAAI,EAAE,KAAK,EAAE,eAAe,GAAK,MAAM,SAAS,YAAY,yCAAyC,QAAM,CAAC,CAAE,CAAo+G,SAAgBE,EAAO,CAAC,QAAM,eAAa,WAAS,aAAW,cAAY,YAAU,QAAM,QAAM,aAAW,UAAQ,SAAO,WAAW,CAAC,MAAoB,gBAAKd,EAAO,IAAI,CAAC,QAAQ,CAAC,YAAYe,EAAM,GAAGC,CAAO,EAAE,MAAM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