{"version":3,"file":"Superfields.C6LE6ihs.mjs","names":["Superfields","OriginalSuperfields"],"sources":["https:/framerusercontent.com/modules/CnrmX0HY6Udwbh3YPsIM/6OJ96yzjGWCOjiSXbAFj/Superfields.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{ControlType}from\"framer\";import{addPropertyControlsV2}from\"https://framerusercontent.com/modules/wzF1aUkHoslINE1PWbP0/qhB83x3iUbFnEMsNrwn1/Shared.js\";import OriginalSuperfields,{LayoutType,SearchFieldType}from\"https://framerusercontent.com/modules/1o5Bk6b6qvbR58A6b2Ej/sF7EYcr7Uafuaib9OhEy/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,randomization: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,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\",\"framerIntrinsicWidth\":\"600\",\"framerDisableUnlink\":\"\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerSupportedLayoutHeight\":\"any\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}"],"mappings":"2YAKG,SAAwBA,EAAY,EAAM,CAAC,IAAM,EAAS,EAAM,OAAO,WAAW,MAAoB,GAAKC,EAAoB,CAAC,eAAe,EAAM,eAAe,WAAW,EAAM,WAAW,cAAc,EAAS,EAAM,UAAU,IAAI,EAAE,EAAE,OAAO,EAAS,EAAM,SAAS,WAAA,GAAiB,WAAW,EAAS,EAAM,SAAS,eAAA,GAAqB,gBAAgB,GAAU,EAAM,UAAU,QAAQ,CAAC,QAAQ,EAAM,SAAS,OAAQ,MAAA,GAAW,SAAS,EAAS,EAAM,UAAU,gBAAA,GAAsB,cAAc,EAAS,EAAM,UAAU,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