{"version":3,"file":"AccommodationButton.BYgICz-R.mjs","names":["_Fragment"],"sources":["https:/framerusercontent.com/modules/tyn7BVsSlcUw3yp3ydMM/ItX5nByHVxSLkhtUF5Ti/AccommodationButton.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";/* ---------- helpers ---------- */function slugify(s){return s.toLowerCase().trim().replace(/[^a-z0-9]+/g,\"-\").replace(/(^-|-$)+/g,\"\");}function buildHref(baseUrl,param,slug){if(!slug)return baseUrl||\"https://deals.nomiddlemantours.com\";const sep=(baseUrl||\"https://deals.nomiddlemantours.com\").includes(\"?\")?\"&\":\"?\";return`${baseUrl||\"https://deals.nomiddlemantours.com\"}${sep}${encodeURIComponent(param)}=${encodeURIComponent(slug)}`;}export default function AccommodationButton(props){const{label=\"More Packages with this Lodge →\",baseUrl=\"https://deals.nomiddlemantours.com\",paramName=\"accommodation\",slugOverride=\"\",openInNewTab=false,backgroundColor=\"#000\",textColor=\"#fff\",shadow=\"0 -2px 8px rgba(0,0,0,0.15), 0 6px 18px rgba(0,0,0,0.3)\",paddingX=20,paddingY=14,borderRadius=10,fontSize=16,fontWeight=700}=props;const slug=slugify(decodeURIComponent(slugOverride||\"\"));const href=buildHref(baseUrl,paramName,slug);return /*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"a\",{href:href,target:openInNewTab?\"_blank\":\"_self\",rel:openInNewTab?\"noopener\":undefined,className:\"nm-acco-btn\",\"aria-label\":label,children:label}),/*#__PURE__*/_jsx(\"style\",{children:`\n        .nm-acco-btn {\n          display: inline-flex;\n          align-items: center;\n          justify-content: center;\n          text-decoration: none;\n          text-align: center; \n          width: 100%;\n          height: 100%;\n          background: ${backgroundColor};\n          color: ${textColor};\n          font-weight: ${fontWeight};\n          font-size: ${fontSize}px;\n          border-radius: ${borderRadius}px;\n          padding: ${paddingY}px ${paddingX}px;\n          box-shadow: ${shadow};\n          transition: transform .12s ease, box-shadow .2s ease, opacity .2s ease, background-color .2s ease;\n        }\n        .nm-acco-btn:hover {\n          transform: translateY(-1px);\n          box-shadow: 0 -3px 10px rgba(0,0,0,0.15), 0 10px 24px rgba(0,0,0,0.35);\n        }\n        .nm-acco-btn:active {\n          transform: translateY(0);\n          box-shadow: 0 -1px 6px rgba(0,0,0,0.1), 0 4px 12px rgba(0,0,0,0.2);\n        }\n      `})]});}/* ---------- Framer Panel controls ---------- */addPropertyControls(AccommodationButton,{label:{type:ControlType.String,title:\"Label\",defaultValue:\"More Packages with this Lodge →\"},baseUrl:{type:ControlType.String,title:\"Base URL\",defaultValue:\"/deals\"},paramName:{type:ControlType.String,title:\"Query Param\",defaultValue:\"accommodation\"},slugOverride:{type:ControlType.String,title:\"Slug (required)\"},openInNewTab:{type:ControlType.Boolean,title:\"Open in new tab\",defaultValue:false},backgroundColor:{type:ControlType.Color,title:\"Background\",defaultValue:\"#000000\"},textColor:{type:ControlType.Color,title:\"Text Color\",defaultValue:\"#ffffff\"},shadow:{type:ControlType.String,title:\"Shadow (CSS)\",defaultValue:\"0 -2px 8px rgba(0,0,0,0.15), 0 6px 18px rgba(0,0,0,0.3)\"},paddingX:{type:ControlType.Number,title:\"Padding X\",defaultValue:20,min:0,max:100,unit:\"px\"},paddingY:{type:ControlType.Number,title:\"Padding Y\",defaultValue:14,min:0,max:100,unit:\"px\"},borderRadius:{type:ControlType.Number,title:\"Corner Radius\",defaultValue:10,min:0,max:100,unit:\"px\"},fontSize:{type:ControlType.Number,title:\"Font Size\",defaultValue:16,min:8,max:40,unit:\"px\"},fontWeight:{type:ControlType.Number,title:\"Font Weight\",defaultValue:700,min:100,max:900}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"AccommodationButton\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./AccommodationButton.map"],"mappings":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