{"version":3,"file":"SnapScroll.eCVfbwxC.mjs","names":[],"sources":["https:/framerusercontent.com/modules/mwpavbYqs5TA1dEoY9ik/Su5AJtTGsRu29MrcntZ9/SnapScroll.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";// Framer's native frame model does not expose CSS scroll snapping, so this\n// zero-size helper adds it to named layers. It renders no visible interface.\n/**\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight any\n * @framerIntrinsicWidth 0\n * @framerIntrinsicHeight 0\n * @framerDisableUnlink\n */export default function SnapScroll(props){const{targets=\"Estate Selector List, Posters\",strictness=\"mandatory\",align=\"start\"}=props;const names=String(targets).split(\",\").map(s=>s.trim()).filter(Boolean);const estateName=\"Estate Selector List\";const otherNames=names.filter(name=>name!==estateName);const otherSelectors=otherNames.map(name=>'[data-framer-name=\"'+name+'\"]').join(\", \");const otherChildren=otherNames.flatMap(name=>['[data-framer-name=\"'+name+'\"] > *','[data-framer-name=\"'+name+'\"] > * > *']).join(\", \");const sharedCss=otherNames.length?otherSelectors+\"{scroll-snap-type:x \"+strictness+\";overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;scrollbar-width:none}\"+otherNames.map(name=>'[data-framer-name=\"'+name+'\"]::-webkit-scrollbar').join(\", \")+\"{display:none}\"+otherChildren+\"{scroll-snap-align:\"+align+\";scroll-snap-stop:always}\":\"\";const estateCss=names.includes(estateName)?\"@media (max-width:767px){\"+'[data-framer-name=\"Estate Selector List\"]{'+\"display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;\"+\"align-items:flex-start!important;justify-content:flex-start!important;gap:16px!important;\"+\"overflow-x:auto!important;overflow-y:hidden!important;overscroll-behavior-x:contain;\"+\"-webkit-overflow-scrolling:touch;scroll-snap-type:x \"+strictness+\";\"+\"scroll-padding-inline:0;padding-left:0!important;padding-right:0!important;\"+\"box-sizing:border-box!important;scrollbar-width:none}\"+'[data-framer-name=\"Estate Selector List\"]::-webkit-scrollbar{display:none}'+'[data-framer-name=\"Estate Selector List\"] > *{'+\"flex:0 0 calc(100% - 32px)!important;width:calc(100% - 32px)!important;\"+\"min-width:calc(100% - 32px)!important;scroll-snap-align:start;scroll-snap-stop:always}\"+\"}\":\"\";return /*#__PURE__*/_jsx(\"div\",{style:{position:\"relative\",width:0,height:0,pointerEvents:\"none\"},children:/*#__PURE__*/_jsx(\"style\",{children:sharedCss+estateCss})});}addPropertyControls(SnapScroll,{align:{type:ControlType.Enum,title:\"Align\",options:[\"start\",\"center\"],optionTitles:[\"Start\",\"Center\"],defaultValue:\"start\"},targets:{type:ControlType.String,title:\"Targets\",defaultValue:\"Estate Selector List, Posters\",description:\"Comma-separated layer names to snap\"},strictness:{type:ControlType.Enum,title:\"Snap\",options:[\"mandatory\",\"proximity\"],optionTitles:[\"Mandatory\",\"Proximity\"],defaultValue:\"mandatory\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"SnapScroll\",\"slots\":[],\"annotations\":{\"framerIntrinsicHeight\":\"0\",\"framerContractVersion\":\"1\",\"framerDisableUnlink\":\"\",\"framerSupportedLayoutHeight\":\"any\",\"framerSupportedLayoutWidth\":\"any\",\"framerIntrinsicWidth\":\"0\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./SnapScroll.map"],"mappings":"4JAQG,SAAwB,EAAW,EAAM,CAAC,GAAK,CAAC,UAAQ,gCAAgC,aAAW,YAAY,QAAM,SAAS,EAAY,EAAM,OAAO,CAAO,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC,IAAI,GAAG,EAAE,KAAK,CAAC,CAAC,CAAC,OAAO,OAAO,EAAQ,EAAW,uBAA6B,EAAW,EAAM,OAAO,GAAM,IAAO,CAAU,EAAQ,EAAe,EAAW,IAAI,GAAM,sBAAsB,EAAK,IAAI,CAAC,CAAC,KAAK,IAAI,EAAQ,EAAc,EAAW,QAAQ,GAAM,CAAC,sBAA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