{"version":3,"file":"ServiceStructuredData.D2QAG-Hz.mjs","names":["_jsx","__esmMin","c","init_jsx_runtime","init_framer_ChujFWHC","addPropertyControls","ControlType","ServiceStructuredData","props","siteUrl","style","origin","parsed","name","clean","path","home","url","service","serviceType","description","area","init_ServiceStructuredData","value"],"sources":["https:/framerusercontent.com/modules/Y8ZUUKub7AfFkkHi57Ah/ZyZMnZArUotF99ZhO9vg/ServiceStructuredData.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";const clean=value=>typeof value===\"string\"?value.replace(/\\s+/g,\" \").trim():\"\";/**\n * Search-engine data (JSON-LD) for a service page: the service and its provider, Borderless360.\n * Invisible on the site.\n *\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed\n */export default function ServiceStructuredData(props){const{siteUrl=\"https://www.borderless360.com\",style}=props;let origin;try{const parsed=new URL(siteUrl);if(parsed.protocol!==\"https:\"&&parsed.protocol!==\"http:\")return null;origin=parsed.origin;}catch{return null;}const name=clean(props.name);const path=clean(props.pagePath).replace(/^\\/+|\\/+$/g,\"\");if(!name||!path)return null;const home=origin+\"/\";const url=origin+\"/\"+path;const service={\"@context\":\"https://schema.org\",\"@type\":\"Service\",\"@id\":url+\"#service\",name,url,provider:{\"@type\":\"Organization\",\"@id\":home+\"#organization\",name:\"Borderless360\",url:home}};const serviceType=clean(props.serviceType);if(serviceType)service.serviceType=serviceType;const description=clean(props.description);if(description)service.description=description;const area=clean(props.areaServed);if(area)service.areaServed={\"@type\":\"Country\",name:area};return /*#__PURE__*/_jsx(\"script\",{type:\"application/ld+json\",style:{...style,display:\"none\"},dangerouslySetInnerHTML:{__html:JSON.stringify(service).replace(/</g,\"\\\\u003c\")}});}addPropertyControls(ServiceStructuredData,{name:{type:ControlType.String,title:\"Service name\",defaultValue:\"\"},serviceType:{type:ControlType.String,title:\"Service type\",defaultValue:\"\"},description:{type:ControlType.String,title:\"Description\",defaultValue:\"\",displayTextArea:true},pagePath:{type:ControlType.String,title:\"Page path\",defaultValue:\"\",placeholder:\"/warehouses/warehouse-japan\"},areaServed:{type:ControlType.String,title:\"Country\",defaultValue:\"\",placeholder:\"Empty = worldwide\"},siteUrl:{type:ControlType.String,title:\"Website URL\",defaultValue:\"https://www.borderless360.com\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"ServiceStructuredData\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"fixed\",\"framerSupportedLayoutWidth\":\"fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ServiceStructuredData.map"],"mappings":"A,4JAMG,SAAwBO,EAAsBC,EAAM,CAAC,GAAK,CAACC,UAAQ,gCAAgCC,SAAOF,EAAUG,EAAO,GAAG,CAAC,IAAMC,EAAO,IAAI,IAAIH,CAAO,EAAE,GAAGG,EAAO,WAAW,UAAUA,EAAO,WAAW,QAAQ,OAAO,KAAKD,EAAOC,EAAO,MAAO,MAAM,CAAC,OAAO,IAAK,CAAC,IAAMC,EAAKC,EAAMN,EAAM,IAAI,EAAQO,EAAKD,EAAMN,EAAM,QAAQ,CAAC,CAAC,QAAQ,aAAa,EAAE,EAAE,GAAG,CAACK,GAAM,CAACE,EAAK,OAAO,KAAK,IAAMC,EAAKL,EAAO,IAAUM,EAAIN,EAAO,IAAII,EAAWG,EAAQ,CAAC,WAAW,qBAAqB,QAAQ,UAAU,MAAMD,EAAI,WAAWJ,OAAKI,MAAI,SAAS,CAAC,QAAQ,eAAe,MAAMD,EAAK,gBAAgB,KAAK,gBAAgB,IAAIA,CAAI,CAAC,EAAQG,EAAYL,EAAMN,EAAM,WAAW,EAAKW,IAAYD,EAAQ,YAAYC,GAAY,IAAMC,EAAYN,EAAMN,EAAM,WAAW,EAAKY,IAAYF,EAAQ,YAAYE,GAAY,IAAMC,EAAKP,EAAMN,EAAM,UAAU,EAA2D,OAAtDa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