{"version":3,"file":"Superfields.DF7uH5_y.mjs","names":["OriginalSuperfields"],"sources":["https:/framerusercontent.com/modules/CnrmX0HY6Udwbh3YPsIM/CJK5W02IWIXboyZLLlEW/Superfields.js"],"sourcesContent":["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\"}}}"],"mappings":"2QAKG,SAAwB,EAAY,EAAM,CAAC,IAAM,EAAS,EAAM,OAAO,WAAW,OAAoB,EAAKA,EAAoB,CAAC,eAAe,EAAM,eAAe,WAAW,EAAM,WAAW,cAAc,EAAS,EAAM,UAAU,IAAI,EAAE,EAAE,OAAO,EAAS,EAAM,SAAS,OAAO,IAAA,GAAU,WAAW,EAAS,EAAM,SAAS,WAAW,IAAA,GAAU,gBAAgB,GAAU,EAAM,UAAU,QAAQ,CAAC,QAAQ,EAAM,SAAS,OAAO,EAAE,IAAA,GAAU,SAAS,EAAS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