{"version":3,"file":"OutSwarmStructuredData.BdQMkdRK.mjs","names":["useMemo","useCallback"],"sources":["https:/framerusercontent.com/modules/pYxYa8puVhuIYkP0scfs/MxcFnXJYf6Xlfo0lg10B/OutSwarmStructuredData.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{forwardRef,useCallback,useMemo}from\"react\";import{addPropertyControls,ControlType}from\"framer\";/**\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed\n */export default function OutSwarmStructuredData(props){const{pageType,headline,description,canonicalUrl,imageUrl,datePublished,dateModified,isProprietaryFramework}=props;const resolvedCanonicalUrl=useMemo(()=>{const value=canonicalUrl?.trim();if(!value)return\"\";if(/^https?:\\/\\//i.test(value)){return value.replace(/^https:\\/\\/outswarm\\.com/i,\"https://www.outswarm.com\");}const slug=value.replace(/^\\/+|\\/+$/g,\"\").replace(/-observations$/,\"\");return`https://www.outswarm.com/insights/${slug}-observations`;},[canonicalUrl]);const resolvedImageUrl=useMemo(()=>{const value=imageUrl?.trim();if(!value||/^https?:\\/\\/(www\\.)?outswarm\\.com\\/?$/i.test(value))return\"\";return value.replace(/^https:\\/\\/outswarm\\.com/i,\"https://www.outswarm.com\");},[imageUrl]);const structuredData=useMemo(()=>{const baseSchema={\"@context\":\"https://schema.org\",\"@type\":pageType,publisher:{\"@id\":\"https://www.outswarm.com/#organization\"},headline,description,...resolvedImageUrl?{image:resolvedImageUrl}:{},...datePublished?{datePublished}:{},...dateModified?{dateModified}:{},...resolvedCanonicalUrl?{url:resolvedCanonicalUrl,mainEntityOfPage:{\"@type\":\"WebPage\",\"@id\":resolvedCanonicalUrl}}:{},additionalProperty:{\"@type\":\"PropertyValue\",name:\"isProprietaryFramework\",value:isProprietaryFramework}};if(pageType===\"Article\"){baseSchema.author={\"@id\":\"https://www.outswarm.com/#organization\"};}if(pageType===\"CreativeWork\"){baseSchema.creator={\"@id\":\"https://www.outswarm.com/#organization\"};}return baseSchema;},[dateModified,datePublished,description,headline,isProprietaryFramework,pageType,resolvedCanonicalUrl,resolvedImageUrl]);const schemaMarkup=useMemo(()=>JSON.stringify(structuredData),[structuredData]);return /*#__PURE__*/_jsx(\"div\",{style:{position:\"relative\",width:0,height:0,overflow:\"hidden\",pointerEvents:\"none\"},\"aria-hidden\":\"true\",children:/*#__PURE__*/_jsx(\"script\",{type:\"application/ld+json\",dangerouslySetInnerHTML:{__html:schemaMarkup}})});}export function withProprietaryGraphicProtection(Component){return /*#__PURE__*/forwardRef((props,ref)=>{const handleContextMenu=useCallback(event=>{event?.preventDefault?.();event?.stopPropagation?.();props.onContextMenu?.(event);},[props]);const handleDragStart=useCallback(event=>{event?.preventDefault?.();event?.stopPropagation?.();props.onDragStart?.(event);},[props]);return /*#__PURE__*/_jsx(Component,{ref:ref,...props,draggable:false,onContextMenu:handleContextMenu,onDragStart:handleDragStart,style:{...props.style,WebkitUserDrag:\"none\"}});});}addPropertyControls(OutSwarmStructuredData,{pageType:{type:ControlType.Enum,title:\"Page Type\",options:[\"Article\",\"CreativeWork\",\"WebPage\"],optionTitles:[\"Article\",\"Creative Work\",\"Web Page\"],defaultValue:\"WebPage\",displaySegmentedControl:true},headline:{type:ControlType.String,title:\"Headline\",defaultValue:\"OutSwarm IP Protection Utilities\"},description:{type:ControlType.String,title:\"Description\",defaultValue:\"OutSwarm proprietary framework and implementation methodology.\",displayTextArea:true},canonicalUrl:{type:ControlType.String,title:\"Canonical URL\",defaultValue:\"\"},imageUrl:{type:ControlType.String,title:\"Image URL\",defaultValue:\"\"},datePublished:{type:ControlType.Date,title:\"Published\",defaultValue:\"2024-01-01T00:00:00.000Z\",displayTime:true},dateModified:{type:ControlType.Date,title:\"Modified\",defaultValue:\"2024-01-01T00:00:00.000Z\",displayTime:true},isProprietaryFramework:{type:ControlType.Boolean,title:\"Proprietary\",defaultValue:true,enabledTitle:\"Yes\",disabledTitle:\"No\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"OutSwarmStructuredData\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"fixed\",\"framerSupportedLayoutHeight\":\"fixed\",\"framerContractVersion\":\"1\"}},\"withProprietaryGraphicProtection\":{\"type\":\"reactHoc\",\"name\":\"withProprietaryGraphicProtection\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./OutSwarmStructuredData.map"],"mappings":"wLAGG,SAAwB,EAAuB,EAAM,CAAC,GAAK,CAAC,WAAS,WAAS,cAAY,eAAa,WAAS,gBAAc,eAAa,0BAAwB,EAAY,EAAqBA,MAAY,CAAC,IAAM,EAAM,GAAc,KAAK,EAA0M,OAApM,EAAkB,gBAAgB,KAAK,CAAK,EAAU,EAAM,QAAQ,4BAA4B,0BAA0B,EAAgF,qCAAlE,EAAM,QAAQ,aAAa,EAAE,CAAC,CAAC,QAAQ,iBAAiB,EAAkD,EAAE,eAAxO,EAAuP,EAAE,CAAC,CAAY,CAAC,EAAQ,EAAiBA,MAAY,CAAC,IAAM,EAAM,GAAU,KAAK,EAA2E,MAAtE,CAAC,GAAO,yCAAyC,KAAK,CAAK,EAAQ,GAAU,EAAM,QAAQ,4BAA4B,0BAA0B,CAAE,EAAE,CAAC,CAAQ,CAAC,EAAQ,EAAeA,MAAY,CAAC,IAAM,EAAW,CAAC,WAAW,qBAAqB,QAAQ,EAAS,UAAU,CAAC,MAAM,wCAAwC,EAAE,WAAS,cAAY,GAAG,EAAiB,CAAC,MAAM,CAAgB,EAAE,CAAC,EAAE,GAAG,EAAc,CAAC,eAAa,EAAE,CAAC,EAAE,GAAG,EAAa,CAAC,cAAY,EAAE,CAAC,EAAE,GAAG,EAAqB,CAAC,IAAI,EAAqB,iBAAiB,CAAC,QAAQ,UAAU,MAAM,CAAoB,CAAC,EAAE,CAAC,EAAE,mBAAmB,CAAC,QAAQ,gBAAgB,KAAK,yBAAyB,MAAM,CAAsB,CAAC,EAAkM,OAA7L,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