{"version":3,"file":"GoderraServiceTool.BYP0U6hZ.mjs","names":["__esmMin","p","c","init_jsx_runtime","init_framer_DcGZRLrs","addPropertyControls","init_GoderraServicedAccommodationEstimator","GoderraServicedAccommodationEstimator","init_GoderraSingleLetCalculator","GoderraSingleLetCalculator","init_GoderraHMOCalculator","GoderraHMOCalculator","init_GoderraRentalYieldCalculator","GoderraRentalYieldCalculator","init_GoderraRentersRightsChecker","GoderraRentersRightsChecker","toolKey","v","raw","GoderraServiceTool","key","props","shared","tool","SLOT_CSS","init_GoderraServiceTool","ControlType"],"sources":["https:/framerusercontent.com/modules/kckjAqQu2oRHBWflrNKs/4t1YukRDCgg6eVww3tbr/GoderraServiceTool.js"],"sourcesContent":["// Goderra · Service page tool slot · Framer code component · v1.0 (October 2026)\n// Shows the right Goderra calculator inside a CMS template page.\n// Connect \"Tool\" to the Services collection's Tool field, then fill that\n// field per page: sa, single, hmo, block, yield or rra. Leave it blank and\n// nothing shows, so pages without a tool are unchanged.\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";import GoderraServicedAccommodationEstimator from\"https://framerusercontent.com/modules/QxFRa5qtdqVzRMSW2ngW/4a9E0bnVYxxTs3VwCh25/GoderraServicedAccommodationEstimator.js\";import GoderraSingleLetCalculator from\"https://framerusercontent.com/modules/oFNrwG43EU91njacp651/YwBFnUtBWiLrJAtqQwIX/GoderraSingleLetCalculator.js\";import GoderraHMOCalculator from\"https://framerusercontent.com/modules/qGEKQWtCQGly0ys8n0Fh/ZabkTDqbf4rGd9Zzsntu/GoderraHMOCalculator.js\";import GoderraRentalYieldCalculator from\"https://framerusercontent.com/modules/ULfJmpFkKCYUW0pxsTLX/Z7pYfPlApYnealxPYv5h/GoderraRentalYieldCalculator.js\";import GoderraRentersRightsChecker from\"https://framerusercontent.com/modules/7YXTNxUm4COG7o4AEQ5h/BMPAGNjk1TzcevJbqvm4/GoderraRentersRightsChecker.js\";const SLOT_CSS=`\n.gdr-slot{box-sizing:border-box;width:100%;container-type:inline-size}\n.gdr-slot-pad{box-sizing:border-box;padding:96px 40px}\n.gdr-slot-inner{max-width:1120px;margin:0 auto}\n@container (max-width:1199px){.gdr-slot-pad{padding:80px 32px}}\n@container (max-width:809px){.gdr-slot-pad{padding:64px 16px}}\n`;function toolKey(raw){const v=(raw||\"\").toLowerCase().trim().replace(/[\\s_]+/g,\"-\");if(!v)return\"\";if([\"sa\",\"serviced\",\"serviced-accommodation\",\"short-stay\",\"short-let\",\"airbnb\"].includes(v))return\"sa\";if([\"single\",\"single-let\",\"single-let-management\"].includes(v))return\"single\";if([\"hmo\",\"hmo-management\"].includes(v))return\"hmo\";if([\"block\",\"block-management\"].includes(v))return\"block\";if([\"yield\",\"rental-yield\"].includes(v))return\"yield\";if([\"rra\",\"renters-rights\",\"renters-rights-act\"].includes(v))return\"rra\";return\"\";}/**\n * Goderra service page tool slot.\n *\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight auto\n * @framerIntrinsicWidth 1200\n */export default function GoderraServiceTool(props){const key=toolKey(props.tool);if(!key)return null;const shared={showHeader:props.showHeader,showBenefits:props.showBenefits};let tool=null;if(key===\"sa\")tool=/*#__PURE__*/_jsx(GoderraServicedAccommodationEstimator,{...shared});if(key===\"single\")tool=/*#__PURE__*/_jsx(GoderraSingleLetCalculator,{...shared});if(key===\"hmo\")tool=/*#__PURE__*/_jsx(GoderraHMOCalculator,{...shared,defaultType:\"hmo\"});if(key===\"block\")tool=/*#__PURE__*/_jsx(GoderraHMOCalculator,{...shared,defaultType:\"block\"});if(key===\"yield\")tool=/*#__PURE__*/_jsx(GoderraRentalYieldCalculator,{showHeader:props.showHeader});if(key===\"rra\")tool=/*#__PURE__*/_jsx(GoderraRentersRightsChecker,{showHeader:props.showHeader});return /*#__PURE__*/_jsxs(\"div\",{className:\"gdr-slot\",style:{background:props.background||\"#FAF8F4\",...props.style},children:[/*#__PURE__*/_jsx(\"style\",{children:SLOT_CSS}),/*#__PURE__*/_jsx(\"div\",{className:\"gdr-slot-pad\",children:/*#__PURE__*/_jsx(\"div\",{className:\"gdr-slot-inner\",children:tool})})]});}GoderraServiceTool.defaultProps={tool:\"\",showHeader:true,showBenefits:false,background:\"#FAF8F4\"};addPropertyControls(GoderraServiceTool,{tool:{type:ControlType.String,title:\"Tool\",defaultValue:\"\",placeholder:\"sa, single, hmo, block, yield, rra\"},showHeader:{type:ControlType.Boolean,title:\"Header\",defaultValue:true},showBenefits:{type:ControlType.Boolean,title:\"Benefits\",defaultValue:false},background:{type:ControlType.Color,title:\"Background\",defaultValue:\"#FAF8F4\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"GoderraServiceTool\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"auto\",\"framerIntrinsicWidth\":\"1200\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}"],"mappings":"A,+fAWE,SAASgB,EAAQ,EAAI,CAAC,IAAMC,GAAGC,GAAK,GAAA,CAAI,YAAY,CAAC,CAAC,KAAK,CAAC,CAAC,QAAQ,UAAU,GAAG,EAAmb,OAA7aD,EAAc,CAAC,KAAK,WAAW,yBAAyB,aAAa,YAAY,QAAQ,CAAC,CAAC,SAASA,CAAC,EAAQ,KAAQ,CAAC,SAAS,aAAa,uBAAuB,CAAC,CAAC,SAASA,CAAC,EAAQ,SAAY,CAAC,MAAM,gBAAgB,CAAC,CAAC,SAASA,CAAC,EAAQ,MAAS,CAAC,QAAQ,kBAAkB,CAAC,CAAC,SAASA,CAAC,EAAQ,QAAW,CAAC,QAAQ,cAAc,CAAC,CAAC,SAASA,CAAC,EAAQ,QAAW,CAAC,MAAM,iBAAiB,oBAAoB,CAAC,CAAC,SAASA,CAAC,EAAQ,MAAY,GAA3a,EAA8a,CAM7gB,SAAwBE,EAAmB,EAAM,CAAC,IAA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