{"version":3,"file":"ServiceSource.CLSs0GS2.mjs","names":[],"sources":["https:/framerusercontent.com/modules/ZtvA3nvk8Lw5ZVJBFIhG/3wvwv438uK0bvom3ak4X/ServiceSource.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect}from\"react\";import{addPropertyControls,ControlType}from\"framer\";function getSource(id){const g=globalThis;g.__pixelServicesSources=g.__pixelServicesSources||{};return g.__pixelServicesSources[id]=g.__pixelServicesSources[id]||{items:new Map,listeners:new Set};}function readSource(id){return[...getSource(id).items.values()].sort((a,b)=>a.order-b.order);}/**\n * Service Source — invisible. Put it inside a collection list of your\n * services; each one hands its name, icon and page link to the Pixel Services\n * component set to \"From CMS\" with the same Source ID.\n *\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed\n */export default function ServiceSource(props){const{sourceId=\"services\",label=\"Service\",iconName:icon=\"robot\",link=\"\",order=0,image}=props;const key=link||label;const st=getSource(sourceId);// registered while rendering, so pre-rendered pages already include the list\nst.items.set(key,{label,icon,link:link||undefined,order,image:image?.src});useEffect(()=>{st.listeners.forEach(f=>f());return()=>{st.items.delete(key);st.listeners.forEach(f=>f());};},[sourceId,key,label,icon,link,order,image?.src]);return /*#__PURE__*/_jsx(\"div\",{\"aria-hidden\":true,style:{display:\"none\"}});}ServiceSource.displayName=\"Other/ServiceSource\";addPropertyControls(ServiceSource,{sourceId:{type:ControlType.String,title:\"Source ID\",defaultValue:\"services\"},label:{type:ControlType.String,title:\"Name\",defaultValue:\"Service\"},iconName:{type:ControlType.String,title:\"Icon Name\",defaultValue:\"Robot\",description:\"A Pixel Services icon name, e.g. Phone, Mail, Calendar.\"},image:{type:ControlType.ResponsiveImage,title:\"Icon Image\"},link:{type:ControlType.Link,title:\"Link\"},order:{type:ControlType.Number,title:\"Order\",defaultValue:0,step:1}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"ServiceSource\",\"slots\":[],\"annotations\":{\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