{"version":3,"file":"Multi_Reference_Plus.BdKY4VCx.mjs","names":["React.useContext","React.useMemo","React.Fragment","getProps","useRef","React.useId","sharedStyle.className","className","RichText","SVG","sharedStyle.css","sharedStyle.fonts","_Fragment","_Fragment","_Fragment","BaseControls","useMemo","x","_Fragment","BaseControls"],"sources":["https:/framerusercontent.com/modules/Qwj5m8Zh9mzY1AV5Kdj6/TLDRkXp5rN0gdYmetTo9/J1kHyLm0i.js","https:/framerusercontent.com/modules/1abSdslctova79WmNQRw/3fHstYFUOpeaxageGRMz/Filter_Base.js","https:/framerusercontent.com/modules/xPWn77sAdxuRvon75kLo/B2UIyi7WVbdsZJvHIaDR/cmsFieldName.js","https:/framerusercontent.com/modules/cF4BbWM5faZdppOwbrSl/vBy9iE1F80dKTzAwjEt2/Option_Plus.js","https:/framerusercontent.com/modules/UiEAtQAeG4Bf03LmsArG/VNZQtXTDjg9gtIDmEWfQ/Multi_Reference_Plus.js"],"sourcesContent":["// Generated by Framer (571faa6)\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addFonts,addPropertyControls,ControlType,cx,getFontsFromSharedStyle,RichText,SVG,useActiveVariantCallback,useComponentViewport,useLocaleInfo,useVariantState,withCSS}from\"framer\";import{LayoutGroup,motion,MotionConfigContext}from\"framer-motion\";import*as React from\"react\";import{useRef}from\"react\";import*as sharedStyle from\"https://framerusercontent.com/modules/0L4wwOYb9qx6Gx2zWWIw/oyhjqXGLZXYG9KnUHZQT/bdMioDi9p.js\";const cycleOrder=[\"y1SpQyG6S\",\"v8vtsN52f\"];const serializationHash=\"framer-3eeaX\";const variantClassNames={v8vtsN52f:\"framer-v-tksm4\",y1SpQyG6S:\"framer-v-1vgf7kb\"};function addPropertyOverrides(overrides,...variants){const nextOverrides={};variants?.forEach(variant=>variant&&Object.assign(nextOverrides,overrides[variant]));return nextOverrides;}const transition1={bounce:.2,delay:0,duration:.4,type:\"spring\"};const Transition=({value,children})=>{const config=React.useContext(MotionConfigContext);const transition=value??config.transition;const contextValue=React.useMemo(()=>({...config,transition}),[JSON.stringify(transition)]);return /*#__PURE__*/_jsx(MotionConfigContext.Provider,{value:contextValue,children:children});};const Variants=motion.create(React.Fragment);const humanReadableVariantMap={Default:\"y1SpQyG6S\",Hover:\"v8vtsN52f\"};const getProps=({click,height,hover2,hover3,hover4,hover5,id,text,width,...props})=>{return{...props,FJkwqzYHF:hover2??props.FJkwqzYHF,gZGOBbaCh:hover3??props.gZGOBbaCh,K7o1Lzx5Q:hover5??props.K7o1Lzx5Q,Mqkr3aPsx:hover4??props.Mqkr3aPsx,TazhQfrAW:text??props.TazhQfrAW??\"Kj\\xf6rd\\xe6mi\",tIk6txMOH:click??props.tIk6txMOH,variant:humanReadableVariantMap[props.variant]??props.variant??\"y1SpQyG6S\"};};const createLayoutDependency=(props,variants)=>{if(props.layoutDependency)return variants.join(\"-\")+props.layoutDependency;return variants.join(\"-\");};const Component=/*#__PURE__*/React.forwardRef(function(props,ref){const fallbackRef=useRef(null);const refBinding=ref??fallbackRef;const defaultLayoutId=React.useId();const{activeLocale,setLocale}=useLocaleInfo();const componentViewport=useComponentViewport();const{style,className,layoutId,variant,TazhQfrAW,tIk6txMOH,FJkwqzYHF,gZGOBbaCh,Mqkr3aPsx,K7o1Lzx5Q,...restProps}=getProps(props);const{baseVariant,classNames,clearLoadingGesture,gestureHandlers,gestureVariant,isLoading,setGestureState,setVariant,variants}=useVariantState({cycleOrder,defaultVariant:\"y1SpQyG6S\",ref:refBinding,variant,variantClassNames});const layoutDependency=createLayoutDependency(props,variants);const{activeVariantCallback,delay}=useActiveVariantCallback(baseVariant);const onTap1vpz9tk=activeVariantCallback(async(...args)=>{setGestureState({isPressed:false});if(tIk6txMOH){const res=await tIk6txMOH(...args);if(res===false)return false;}});const onMouseEnter1ersenw=activeVariantCallback(async(...args)=>{setGestureState({isHovered:true});if(FJkwqzYHF){const res=await FJkwqzYHF(...args);if(res===false)return false;}if(gZGOBbaCh){const res=await gZGOBbaCh(...args);if(res===false)return false;}if(Mqkr3aPsx){const res=await Mqkr3aPsx(...args);if(res===false)return false;}if(K7o1Lzx5Q){const res=await K7o1Lzx5Q(...args);if(res===false)return false;}});const sharedStyleClassNames=[sharedStyle.className];const scopingClassNames=cx(serializationHash,...sharedStyleClassNames);return /*#__PURE__*/_jsx(LayoutGroup,{id:layoutId??defaultLayoutId,children:/*#__PURE__*/_jsx(Variants,{animate:variants,initial:false,children:/*#__PURE__*/_jsx(Transition,{value:transition1,children:/*#__PURE__*/_jsxs(motion.div,{...restProps,...gestureHandlers,className:cx(scopingClassNames,\"framer-1vgf7kb\",className,classNames),\"data-border\":true,\"data-framer-name\":\"Default\",\"data-highlight\":true,layoutDependency:layoutDependency,layoutId:\"y1SpQyG6S\",onMouseEnter:onMouseEnter1ersenw,onTap:onTap1vpz9tk,ref:refBinding,style:{\"--border-bottom-width\":\"1px\",\"--border-color\":\"rgb(225, 230, 228)\",\"--border-left-width\":\"1px\",\"--border-right-width\":\"1px\",\"--border-style\":\"solid\",\"--border-top-width\":\"1px\",backgroundColor:\"rgb(237, 241, 239)\",borderBottomLeftRadius:50,borderBottomRightRadius:50,borderTopLeftRadius:50,borderTopRightRadius:50,...style},...addPropertyOverrides({v8vtsN52f:{\"data-framer-name\":\"Hover\"}},baseVariant,gestureVariant),children:[/*#__PURE__*/_jsx(RichText,{__fromCanvasComponent:true,children:/*#__PURE__*/_jsx(React.Fragment,{children:/*#__PURE__*/_jsx(motion.p,{className:\"framer-styles-preset-144833s\",\"data-styles-preset\":\"bdMioDi9p\",style:{\"--framer-text-color\":\"var(--extracted-r6o4lv, var(--token-de605d51-5c55-4ba8-a7b3-4835623e2c3a, rgb(16, 16, 16)))\"},children:\"Kj\\xf6rd\\xe6mi\"})}),className:\"framer-1r6t528\",\"data-framer-name\":\"Vehicle type\",fonts:[\"Inter\"],layoutDependency:layoutDependency,layoutId:\"k5OldtQXz\",style:{\"--extracted-r6o4lv\":\"var(--token-de605d51-5c55-4ba8-a7b3-4835623e2c3a, rgb(16, 16, 16))\",\"--framer-paragraph-spacing\":\"0px\"},text:TazhQfrAW,verticalAlignment:\"top\",withExternalLayout:true}),/*#__PURE__*/_jsx(SVG,{className:\"framer-6q5ts0\",\"data-framer-name\":\"Icon Container\",fill:\"rgba(0,0,0,1)\",intrinsicHeight:16,intrinsicWidth:16,layoutDependency:layoutDependency,layoutId:\"IZZu5Sw0M\",style:{rotate:0},svg:'<svg width=\"16\" height=\"16\" viewBox=\"0 0 16 16\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\\n<path d=\"M13.354 6.35403L8.35403 11.354C8.30759 11.4005 8.25245 11.4374 8.19175 11.4626C8.13105 11.4877 8.06599 11.5007 8.00028 11.5007C7.93457 11.5007 7.86951 11.4877 7.80881 11.4626C7.74811 11.4374 7.69296 11.4005 7.64653 11.354L2.64653 6.35403C2.55271 6.26021 2.5 6.13296 2.5 6.00028C2.5 5.8676 2.55271 5.74035 2.64653 5.64653C2.74035 5.55271 2.8676 5.5 3.00028 5.5C3.13296 5.5 3.26021 5.55271 3.35403 5.64653L8.00028 10.2934L12.6465 5.64653C12.693 5.60007 12.7481 5.56322 12.8088 5.53808C12.8695 5.51294 12.9346 5.5 13.0003 5.5C13.066 5.5 13.131 5.51294 13.1917 5.53808C13.2524 5.56322 13.3076 5.60007 13.354 5.64653C13.4005 5.69298 13.4373 5.74813 13.4625 5.80883C13.4876 5.86953 13.5006 5.93458 13.5006 6.00028C13.5006 6.06598 13.4876 6.13103 13.4625 6.19173C13.4373 6.25242 13.4005 6.30757 13.354 6.35403Z\" fill=\"#101010\"/>\\n</svg>\\n',variants:{v8vtsN52f:{rotate:-180}},withExternalLayout:true})]})})})});});const css=[\"@supports (aspect-ratio: 1) { body { --framer-aspect-ratio-supported: auto; } }\",\".framer-3eeaX.framer-tjqs9g, .framer-3eeaX .framer-tjqs9g { display: block; }\",\".framer-3eeaX.framer-1vgf7kb { align-content: center; align-items: center; cursor: pointer; display: flex; flex-direction: row; flex-wrap: nowrap; gap: 12px; height: min-content; justify-content: flex-start; overflow: hidden; padding: 12px 16px 12px 24px; position: relative; width: min-content; will-change: var(--framer-will-change-override, transform); }\",\".framer-3eeaX .framer-1r6t528 { -webkit-user-select: none; flex: none; height: auto; pointer-events: none; position: relative; user-select: none; white-space: pre; width: auto; }\",\".framer-3eeaX .framer-6q5ts0 { flex: none; height: 16px; position: relative; width: 16px; }\",...sharedStyle.css,'.framer-3eeaX[data-border=\"true\"]::after, .framer-3eeaX [data-border=\"true\"]::after { content: \"\"; border-width: var(--border-top-width, 0) var(--border-right-width, 0) var(--border-bottom-width, 0) var(--border-left-width, 0); border-color: var(--border-color, none); border-style: var(--border-style, none); width: 100%; height: 100%; position: absolute; box-sizing: border-box; left: 0; top: 0; border-radius: inherit; pointer-events: none; }'];/**\n * This is a generated Framer component.\n * @framerIntrinsicHeight 48\n * @framerIntrinsicWidth 137\n * @framerCanvasComponentVariantDetails {\"propertyName\":\"variant\",\"data\":{\"default\":{\"layout\":[\"auto\",\"auto\"]},\"v8vtsN52f\":{\"layout\":[\"auto\",\"auto\"]}}}\n * @framerVariables {\"TazhQfrAW\":\"text\",\"tIk6txMOH\":\"click\",\"FJkwqzYHF\":\"hover2\",\"gZGOBbaCh\":\"hover3\",\"Mqkr3aPsx\":\"hover4\",\"K7o1Lzx5Q\":\"hover5\"}\n * @framerImmutableVariables true\n * @framerDisplayContentsDiv false\n * @framerAutoSizeImages true\n * @framerComponentViewportWidth true\n * @framerColorSyntax true\n */const FramerJ1kHyLm0i=withCSS(Component,css,\"framer-3eeaX\");export default FramerJ1kHyLm0i;FramerJ1kHyLm0i.displayName=\"Dropdown\";FramerJ1kHyLm0i.defaultProps={height:48,width:137};addPropertyControls(FramerJ1kHyLm0i,{variant:{options:[\"y1SpQyG6S\",\"v8vtsN52f\"],optionTitles:[\"Default\",\"Hover\"],title:\"Variant\",type:ControlType.Enum},TazhQfrAW:{defaultValue:\"Kj\\xf6rd\\xe6mi\",displayTextArea:false,title:\"Text\",type:ControlType.String},tIk6txMOH:{title:\"Click\",type:ControlType.EventHandler},FJkwqzYHF:{title:\"Hover 2\",type:ControlType.EventHandler},gZGOBbaCh:{title:\"Hover 3\",type:ControlType.EventHandler},Mqkr3aPsx:{title:\"Hover 4\",type:ControlType.EventHandler},K7o1Lzx5Q:{title:\"Hover 5\",type:ControlType.EventHandler}});addFonts(FramerJ1kHyLm0i,[{explicitInter:true,fonts:[{cssFamilyName:\"Inter\",source:\"framer\",style:\"normal\",uiFamilyName:\"Inter\",unicodeRange:\"U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F\",url:\"https://framerusercontent.com/assets/5vvr9Vy74if2I6bQbJvbw7SY1pQ.woff2\",weight:\"400\"},{cssFamilyName:\"Inter\",source:\"framer\",style:\"normal\",uiFamilyName:\"Inter\",unicodeRange:\"U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116\",url:\"https://framerusercontent.com/assets/EOr0mi4hNtlgWNn9if640EZzXCo.woff2\",weight:\"400\"},{cssFamilyName:\"Inter\",source:\"framer\",style:\"normal\",uiFamilyName:\"Inter\",unicodeRange:\"U+1F00-1FFF\",url:\"https://framerusercontent.com/assets/Y9k9QrlZAqio88Klkmbd8VoMQc.woff2\",weight:\"400\"},{cssFamilyName:\"Inter\",source:\"framer\",style:\"normal\",uiFamilyName:\"Inter\",unicodeRange:\"U+0370-03FF\",url:\"https://framerusercontent.com/assets/OYrD2tBIBPvoJXiIHnLoOXnY9M.woff2\",weight:\"400\"},{cssFamilyName:\"Inter\",source:\"framer\",style:\"normal\",uiFamilyName:\"Inter\",unicodeRange:\"U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF\",url:\"https://framerusercontent.com/assets/JeYwfuaPfZHQhEG8U5gtPDZ7WQ.woff2\",weight:\"400\"},{cssFamilyName:\"Inter\",source:\"framer\",style:\"normal\",uiFamilyName:\"Inter\",unicodeRange:\"U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2070, U+2074-207E, U+2080-208E, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD\",url:\"https://framerusercontent.com/assets/GrgcKwrN6d3Uz8EwcLHZxwEfC4.woff2\",weight:\"400\"},{cssFamilyName:\"Inter\",source:\"framer\",style:\"normal\",uiFamilyName:\"Inter\",unicodeRange:\"U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+1EA0-1EF9, U+20AB\",url:\"https://framerusercontent.com/assets/b6Y37FthZeALduNqHicBT6FutY.woff2\",weight:\"400\"}]},...getFontsFromSharedStyle(sharedStyle.fonts)],{supportsExplicitInterCodegen:true});\nexport const __FramerMetadata__ = {\"exports\":{\"Props\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"default\":{\"type\":\"reactComponent\",\"name\":\"FramerJ1kHyLm0i\",\"slots\":[],\"annotations\":{\"framerAutoSizeImages\":\"true\",\"framerIntrinsicHeight\":\"48\",\"framerCanvasComponentVariantDetails\":\"{\\\"propertyName\\\":\\\"variant\\\",\\\"data\\\":{\\\"default\\\":{\\\"layout\\\":[\\\"auto\\\",\\\"auto\\\"]},\\\"v8vtsN52f\\\":{\\\"layout\\\":[\\\"auto\\\",\\\"auto\\\"]}}}\",\"framerDisplayContentsDiv\":\"false\",\"framerImmutableVariables\":\"true\",\"framerComponentViewportWidth\":\"true\",\"framerColorSyntax\":\"true\",\"framerVariables\":\"{\\\"TazhQfrAW\\\":\\\"text\\\",\\\"tIk6txMOH\\\":\\\"click\\\",\\\"FJkwqzYHF\\\":\\\"hover2\\\",\\\"gZGOBbaCh\\\":\\\"hover3\\\",\\\"Mqkr3aPsx\\\":\\\"hover4\\\",\\\"K7o1Lzx5Q\\\":\\\"hover5\\\"}\",\"framerContractVersion\":\"1\",\"framerIntrinsicWidth\":\"137\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}","// @ts-ignore\nimport{jsx as _jsx,Fragment as _Fragment}from\"react/jsx-runtime\";import{addPropertyControls,getPropertyControls,ControlType}from\"framer\";import CollectionIDControl from\"https://framerusercontent.com/modules/Hxho9sUnioBkMjGbLBed/csoxszrftuhmv2NyuE1c/collectionID.js\";/**\n * @framerSupportedLayoutWidth auto\n * @framerSupportedLayoutHeight auto\n *\n * @framerDisableUnlink\n */export default function BaseFilterControls(props){return /*#__PURE__*/_jsx(_Fragment,{});}addPropertyControls(BaseFilterControls,{...getPropertyControls(CollectionIDControl),interactionActiveFilter:{type:ControlType.EventHandler,title:\"Active Filter\",defaultValue:null},interactionInactiveFilter:{type:ControlType.EventHandler,title:\"Inactive Filter\",defaultValue:null},applyFilter:{type:ControlType.Boolean,title:\"Filter\",defaultValue:false,enabledTitle:\"Apply\",disabledTitle:\"Clear\",description:`Triggers filter function. [Learn more](https://framercms.plus/documentation/pure-functionality).\nExplore its [documentation](https://framercms.plus/documentation/component-filters-plus).`},preserveActiveFilter:{type:ControlType.Boolean,title:\"Preserve\",defaultValue:true,description:`Filter state. [Explore feature.](https://framercms.plus/documentation/preserve-settings)`}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"BaseFilterControls\",\"slots\":[],\"annotations\":{\"framerDisableUnlink\":\"\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"auto\",\"framerSupportedLayoutHeight\":\"auto\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}","import{jsx as _jsx,Fragment as _Fragment}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";/**\n * @framerSupportedLayoutWidth auto\n * @framerSupportedLayoutHeight auto\n *\n * @framerDisableUnlink\n */export default function CMSFieldNameControl(props){return /*#__PURE__*/_jsx(_Fragment,{});}addPropertyControls(CMSFieldNameControl,{cmsFieldName:{type:ControlType.String,title:\"Field Name\",description:\"Must match exactly as the field is named in its collection.\",defaultValue:\"\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"CMSFieldNameControl\",\"slots\":[],\"annotations\":{\"framerDisableUnlink\":\"\",\"framerSupportedLayoutHeight\":\"auto\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"auto\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./cmsFieldName.map","import{jsx as _jsx,Fragment as _Fragment}from\"react/jsx-runtime\";import{addPropertyControls,// @ts-ignore\ngetPropertyControls,ControlType}from\"framer\";import{useFilter}from\"https://framerusercontent.com/modules/uaC9hWf3ec7HqMv3sXMc/fThGQnEUZeWwDLSQMzea/Hooks.js\";import BaseControls from\"https://framerusercontent.com/modules/1abSdslctova79WmNQRw/3fHstYFUOpeaxageGRMz/Filter_Base.js\";import CollectionIDControl from\"https://framerusercontent.com/modules/Hxho9sUnioBkMjGbLBed/csoxszrftuhmv2NyuE1c/collectionID.js\";import CMSFieldNameControl from\"https://framerusercontent.com/modules/xPWn77sAdxuRvon75kLo/B2UIyi7WVbdsZJvHIaDR/cmsFieldName.js\";/**\n * @framerSupportedLayoutWidth auto\n * @framerSupportedLayoutHeight auto\n *\n * @framerDisableUnlink\n */export default function OptionFilterPlus(props){const{applyFilter,cmsFieldName,collectionID,condition,interactionActiveFilter,interactionInactiveFilter,preserveActiveFilter,value}=props;const cmsPlusComponentName=\"Filter+ Option\";useFilter({cmsFieldName,cmsPlusComponentName,collectionID,condition,interactionActiveFilter,interactionInactiveFilter,isPreserving:preserveActiveFilter,isFilterActive:applyFilter,controlType:\"enum\",value:value.trim()?value:undefined,valueIsRequired:true});return /*#__PURE__*/_jsx(_Fragment,{});}OptionFilterPlus.displayName=\"Filter+ Option\";addPropertyControls(OptionFilterPlus,{...getPropertyControls(CollectionIDControl),...getPropertyControls(BaseControls),...getPropertyControls(CMSFieldNameControl),condition:{type:ControlType.Enum,title:\"Condition\",defaultValue:\"==\",optionTitles:[\"Equals\",\"Doesn't Equal\"],options:[\"==\",\"!=\"]},value:{type:ControlType.String,title:\"Value\",defaultValue:\"\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"OptionFilterPlus\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerDisableUnlink\":\"\",\"framerSupportedLayoutWidth\":\"auto\",\"framerSupportedLayoutHeight\":\"auto\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}","import{jsx as _jsx,Fragment as _Fragment}from\"react/jsx-runtime\";import{addPropertyControls,// @ts-ignore\ngetPropertyControls,ControlType,useIsOnFramerCanvas,// @ts-ignore\nuseQueryData}from\"framer\";import{useMemo}from\"react\";import{useFilter}from\"https://framerusercontent.com/modules/uaC9hWf3ec7HqMv3sXMc/fThGQnEUZeWwDLSQMzea/Hooks.js\";import{useStore}from\"https://framerusercontent.com/modules/oaAH7umUjUOTeKmykfom/4GSr51yWhuxjuWu6QpOf/Stores.js\";import{createBinaryOperationNode,getProps}from\"https://framerusercontent.com/modules/NktNXvnf4m4T7jKQcOHx/ld1Thy4iHs6v3180zPrJ/Utilities.js\";import BaseControls from\"https://framerusercontent.com/modules/1abSdslctova79WmNQRw/3fHstYFUOpeaxageGRMz/Filter_Base.js\";import CollectionIDControl from\"https://framerusercontent.com/modules/Hxho9sUnioBkMjGbLBed/csoxszrftuhmv2NyuE1c/collectionID.js\";/**\n * @framerSupportedLayoutWidth auto\n * @framerSupportedLayoutHeight auto\n *\n * @framerDisableUnlink\n */export default function MultReferencePlus(props){const{applyFilter,cmsFieldName,collectionID,condition,interactionActiveFilter,interactionInactiveFilter,preserveActiveFilter,referenceCollectionListInstance,value}=props;const cmsPlusComponentName=\"Filter+ Multi Reference\";const[store,setStore]=useStore();const collection=store[collectionID]||null;const controlFieldID=collection?.fields?.[cmsFieldName]?.id||null;const isOnFramerCanvas=useIsOnFramerCanvas();const collectionIsReady=!isOnFramerCanvas&&!!collection;const cmsID=useMemo(()=>{if(!collectionIsReady)return null;if(!value.trim())return undefined;const referenceCollection=referenceCollectionListInstance?.[0];// this is the only requirement for getting the cms items\nconst referenceQuery=getProps({object:referenceCollection,target:{name:\"query\",type:\"object\"}});// used to search for the slug control id\nconst referenceControls=getProps({object:referenceQuery,target:{name:\"propertyControls\",type:\"object\"}});// for the slug, the id is pertaining to the control id\n// for the cms item, the id is the it's unique identifier that will be returned as the value\n// referenceSlugControlID is the identifier of the refenced collection\nconst IDs={slugControl:null,cmsItem:null};if(!referenceQuery)return null;// loop throught the referenced collection controls for its Slug control id\nfor(const[controlID,controlProps]of Object.entries(referenceControls)){// @ts-ignore\nif(controlProps.title===\"Slug\"){IDs.slugControl=controlID;break;}}const referenceAlias=referenceQuery.from?.alias;// create the select for query, this ensures the slug is being selected,\n// this allows for the link reference collection list frame to be absolutely empty and still be able to extract query data (cms items)\nconst items=useQueryData({...referenceQuery,select:[{collection:referenceAlias,name:IDs.slugControl,type:\"Identifier\"},{collection:referenceAlias,name:\"id\",type:\"Identifier\"}]})||[];// loop through each cms item. using the slug's control id, destructure its value and compare with the user value, if they match, then store that cms item's id\nfor(let x=0;x<items.length;x++){const item=items[x];const{[IDs.slugControl]:slugValue,id}=item;if(slugValue===value){IDs.cmsItem=id;break;}}// when constructing the \"where\" object for Framer's query filter, it will require this argument on the \"right\" object.\n// store this reference on the store, using the unique slug id as the property and its value as the required \"argument\"\nsetStore(prev=>({...prev,[collectionID]:{...prev[collectionID],collectionReferences:{...prev[collectionID].collectionReferences,[IDs.cmsItem]:{from:{...referenceQuery.from,alias:controlFieldID},select:[{collection:controlFieldID,name:\"id\",type:\"Identifier\"}],where:createBinaryOperationNode({left:{collection:controlFieldID,name:\"id\",type:\"Identifier\"},right:{collection:collection.alias,name:controlFieldID,type:\"Identifier\"},operator:\"in\"}),type:\"Select\"}}}}));// return the unique cms item id\n//  when constructing the \"where\" object,\n// it will be used for the literal value and a way to get the argument in the collection references in store\n// it's done this way, because value needs to be a single string\n// since it's used to find filters when initiating & activating/deactivating\nreturn IDs.cmsItem;},[collectionIsReady,value]);useFilter({cmsFieldName,cmsPlusComponentName,collectionID,condition,interactionActiveFilter,interactionInactiveFilter,isPreserving:preserveActiveFilter,controlType:\"multicollectionreference\",isFilterActive:applyFilter,value:cmsID,valueIsRequired:true});return /*#__PURE__*/_jsx(_Fragment,{});}MultReferencePlus.displayName=\"Filter+ Multi Reference\";addPropertyControls(MultReferencePlus,{...getPropertyControls(CollectionIDControl),...getPropertyControls(BaseControls),// uses its own cmsFieldName just for the separate description\ncmsFieldName:{type:ControlType.String,title:\"Field Name\",description:\"Must match exactly as the CMS multi-reference field is named in the main collection.\",defaultValue:\"\"},referenceCollectionListInstance:{type:ControlType.ComponentInstance,title:\"Referenced Collection List\",description:`Link the multi-referenced collection list.`},condition:{type:ControlType.Enum,title:\"Condition\",defaultValue:\"Contains\",optionTitles:[\"Contains\",\"Doesn't Contain\"],options:[\"CONTAINS\",\"!CONTAINS\"]},value:{type:ControlType.String,defaultValue:\"\",title:\"Slug\",description:\"The slug of the CMS item in the multi-referenced collection.\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"MultReferencePlus\",\"slots\":[],\"annotations\":{\"framerDisableUnlink\":\"\",\"framerSupportedLayoutWidth\":\"auto\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"auto\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}"],"mappings":"oiBACuoB,SAAS,GAAqB,EAAU,GAAG,EAAS,CAAC,IAAM,EAAc,EAAE,CAAsF,OAArF,GAAU,QAAQ,GAAS,GAAS,OAAO,OAAO,EAAc,EAAU,GAAS,CAAC,CAAQ,0CAAtvB,IAAyL,IAAkE,IAA4B,IAAmJ,CAAM,EAAW,CAAC,YAAY,YAAY,CAAO,EAAkB,eAAqB,EAAkB,CAAC,UAAU,iBAAiB,UAAU,mBAAmB,CAA8L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