{"version":3,"file":"Pricing_Comp_Mobile.DuR4JsTM.mjs","names":["useState"],"sources":["https:/framerusercontent.com/modules/l3cXjb2KoK4dsI6dTQR7/BJ1RDBRpOWeYQKh3wlei/Pricing_Comp_Mobile.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{useState}from\"react\";const fmt=n=>\"$\"+Math.round(n).toLocaleString(\"en-US\");const FLAT_FEE=2e4;const MIN=85e4;const MAX=5e6;export default function HauserSavingsSlider(){const[price,setPrice]=useState(25e5);const traditional=price*.03;const hauser=FLAT_FEE;const savings=traditional-hauser;const savingsPct=(savings/traditional*100).toFixed(0);const pct=(price-MIN)/(MAX-MIN)*100;return /*#__PURE__*/_jsxs(\"div\",{style:{fontFamily:\"'Halant', Georgia, serif\",background:\"transparent\"},children:[/*#__PURE__*/_jsx(\"style\",{children:`\n        @import url('https://fonts.googleapis.com/css2?family=Halant:wght@300;400;500;600&family=Manrope:wght@300;400;500;600;700&display=swap');\n\n        .hs-card {\n          background: #FDFAF4;\n          border-radius: 25px;\n          padding: 40px 20px 20px;\n          width: 350px;\n          height: 500px;\n          box-shadow: none;\n          display: flex;\n          flex-direction: column;\n          overflow: visible;\n          flex-shrink: 0;\n        }\n\n        @media (max-width: 808px) {\n          .hs-card { width: 310px; }\n        }\n\n        .hs-eyebrow {\n          font-family: 'Manrope', sans-serif;\n          font-size: 12px;\n          font-weight: 600;\n          letter-spacing: 0;\n          text-transform: uppercase;\n          color: #bbb7af;\n          margin-bottom: 16px;\n        }\n\n        .hs-headline {\n          font-family: 'Halant', serif;\n          font-size: 42px;\n          line-height: 1.1;\n          color: #1A1612;\n          margin: -15px 0 8px;\n          font-weight: 400;\n          letter-spacing: -0.06em;\n        }\n\n        .hs-subhead {\n          font-family: 'Manrope', sans-serif;\n          font-size: 14px;\n          color: #8C8070;\n          line-height: 1.6;\n          margin: 0 0 36px;\n          font-weight: 400;\n          letter-spacing: -0.02em;\n        }\n\n        .hs-price-label {\n          font-family: 'Manrope', sans-serif;\n          font-size: 12px;\n          font-weight: 500;\n          color: #8C8070;\n          letter-spacing: 0.3em;\n          text-transform: uppercase;\n          margin-bottom: 20px;\n        }\n\n        .hs-price-display {\n          font-family: 'Halant', serif;\n          font-size: 48px;\n          color: #1A1612;\n          font-weight: 400;\n          margin: 0 0 20px;\n          letter-spacing: -0.05em;\n          font-variant-numeric: tabular-nums;\n        }\n\n        .hs-slider-wrap {\n          position: relative;\n          margin-bottom: 20px;\n          margin-top: -20px;\n        }\n\n        .hs-slider {\n          -webkit-appearance: none;\n          appearance: none;\n          width: 100%;\n          height: 3px;\n          border-radius: 2px;\n          outline: none;\n          cursor: pointer;\n          background: linear-gradient(\n            to right,\n            #94877C 0%,\n            #94877C var(--pct),\n            #DDD5C3 var(--pct),\n            #DDD5C3 100%\n          );\n        }\n\n        .hs-slider::-webkit-slider-thumb {\n          -webkit-appearance: none;\n          width: 30px;\n          height: 15px;\n          border-radius: 100px;\n          background: #94877C;\n          cursor: pointer;\n          transition: transform 0.15s ease;\n        }\n\n        .hs-slider::-webkit-slider-thumb:hover {\n          transform: scaleX(1.08);\n        }\n\n        .hs-slider::-moz-range-thumb {\n          width: 30px;\n          height: 15px;\n          border-radius: 100px;\n          background: #94877C;\n          cursor: pointer;\n          border: none;\n        }\n\n        .hs-range-labels {\n          display: flex;\n          justify-content: space-between;\n          margin-top: 0px;\n        }\n\n        .hs-range-label {\n          font-family: 'Manrope', sans-serif;\n          font-size: 12px;\n          color: #333333;\n          font-weight: 400;\n        }\n\n        .hs-tiles-row {\n          display: flex;\n          align-items: stretch;\n          margin-bottom: 12px;\n        }\n\n        .hs-tile {\n          flex: 1 1 0;\n          min-width: 0;\n          background: transparent;\n          border: none;\n          padding: 12px 8px;\n          display: flex;\n          flex-direction: column;\n          align-items: center;\n          justify-content: center;\n          text-align: center;\n          min-height: 90px;\n        }\n\n        .hs-tile.hauser .hs-tile-label { color: #bbb7af; }\n        .hs-tile.hauser .hs-tile-sub { color: #A09080; }\n        .hs-tile.hauser .hs-tile-amt { color: #1A1612; }\n\n        .hs-vs {\n          display: flex;\n          align-items: center;\n          justify-content: center;\n          padding: 0 12px;\n          font-family: 'Halant', serif;\n          font-size: 24px;\n          font-weight: 400;\n          color: #B0A090;\n          flex-shrink: 0;\n        }\n\n        .hs-tile-label {\n          font-family: 'Manrope', sans-serif;\n          font-size: 13px;\n          font-weight: 600;\n          color: #bbb7af;\n          letter-spacing: -0.02em;\n          margin-bottom: 4px;\n          text-align: center;\n        }\n\n        .hs-tile-sub {\n          font-family: 'Manrope', sans-serif;\n          font-size: 13px;\n          color: #A09080;\n          font-weight: 400;\n          margin-bottom: 8px;\n          text-align: center;\n        }\n\n        .hs-tile-amt {\n          font-family: 'Halant', serif;\n          font-size: 30px;\n          font-weight: 400;\n          color: #1A1612;\n          letter-spacing: -0.03em;\n          line-height: 1;\n          text-align: center;\n          margin-bottom: 5px;\n          font-variant-numeric: tabular-nums;\n        }\n\n        .hs-savings-banner {\n          background: rgba(187, 183, 175, 0.25);\n          border-radius: 12px;\n          padding: 15px 20px;\n          display: flex;\n          justify-content: space-between;\n          align-items: center;\n        }\n\n        .hs-savings-label {\n          font-family: 'Halant', serif;\n          font-size: 20px;\n          font-weight: 400;\n          color: #1A1612;\n          letter-spacing: -0.05em;\n        }\n\n        .hs-savings-sub {\n          font-family: 'Manrope', sans-serif;\n          font-size: 11px;\n          color: #4A4030;\n          margin-top: -5px;\n          font-weight: 400;\n        }\n\n        .hs-savings-amt {\n          font-family: 'Halant', serif;\n          font-size: 36px;\n          color: #1A1612;\n          font-weight: 400;\n          letter-spacing: -0.05em;\n          font-variant-numeric: tabular-nums;\n        }\n\n        .hs-savings-amt.positive { color: #1A1612; }\n        .hs-savings-amt.negative { color: #8C6030; }\n\n        @keyframes popIn {\n          0% { transform: scale(1); }\n          40% { transform: scale(1.04); }\n          100% { transform: scale(1); }\n        }\n      `}),/*#__PURE__*/_jsxs(\"div\",{className:\"hs-card\",children:[/*#__PURE__*/_jsx(\"div\",{className:\"hs-price-label\",children:\"Purchase price\"}),/*#__PURE__*/_jsx(\"div\",{className:\"hs-price-display\",children:fmt(price)}),/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",flexDirection:\"column\",flex:1},children:[/*#__PURE__*/_jsxs(\"div\",{className:\"hs-slider-wrap\",children:[/*#__PURE__*/_jsx(\"input\",{type:\"range\",className:\"hs-slider\",min:MIN,max:MAX,step:25e3,value:price,onChange:e=>setPrice(Number(e.target.value)),style:{\"--pct\":`${pct}%`}}),/*#__PURE__*/_jsxs(\"div\",{className:\"hs-range-labels\",children:[/*#__PURE__*/_jsx(\"span\",{className:\"hs-range-label\",children:\"$850k\"}),/*#__PURE__*/_jsx(\"span\",{className:\"hs-range-label\",children:\"$5M\"})]})]}),/*#__PURE__*/_jsxs(\"div\",{style:{padding:\"10px 0\"},children:[/*#__PURE__*/_jsxs(\"div\",{className:\"hs-tiles-row\",children:[/*#__PURE__*/_jsxs(\"div\",{className:\"hs-tile\",children:[/*#__PURE__*/_jsx(\"div\",{className:\"hs-tile-sub\",children:\"At 3%\"}),/*#__PURE__*/_jsx(\"div\",{className:\"hs-tile-amt\",children:fmt(traditional)}),/*#__PURE__*/_jsx(\"div\",{className:\"hs-tile-label\",children:\"Traditional\"})]}),/*#__PURE__*/_jsx(\"div\",{className:\"hs-vs\",children:\"vs.\"}),/*#__PURE__*/_jsxs(\"div\",{className:\"hs-tile hauser\",children:[/*#__PURE__*/_jsx(\"div\",{className:\"hs-tile-sub\",children:\"Flat fee\"}),/*#__PURE__*/_jsx(\"div\",{className:\"hs-tile-amt\",children:fmt(hauser)}),/*#__PURE__*/_jsx(\"div\",{className:\"hs-tile-label\",children:\"Hauser\"})]})]}),/*#__PURE__*/_jsxs(\"div\",{style:{margin:\"-6px 0 0\",display:\"flex\",flexDirection:\"column\",gap:8},children:[/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",alignItems:\"center\",gap:10},children:[/*#__PURE__*/_jsx(\"div\",{style:{width:72,fontFamily:\"'Manrope',sans-serif\",fontSize:11,color:\"#bbb7af\",fontWeight:600,letterSpacing:\"0.02em\",flexShrink:0},children:\"Traditional\"}),/*#__PURE__*/_jsx(\"div\",{style:{flex:1,height:8,borderRadius:100,background:\"rgba(187,183,175,0.2)\",overflow:\"hidden\"},children:/*#__PURE__*/_jsx(\"div\",{style:{width:`${traditional/(MAX*.025)*100}%`,height:\"100%\",borderRadius:100,background:\"#bbb7af\",transition:\"width 0.4s ease\"}})})]}),/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",alignItems:\"center\",gap:10},children:[/*#__PURE__*/_jsx(\"div\",{style:{width:72,fontFamily:\"'Manrope',sans-serif\",fontSize:11,color:\"#94877C\",fontWeight:600,letterSpacing:\"0.02em\",flexShrink:0},children:\"Hauser\"}),/*#__PURE__*/_jsx(\"div\",{style:{flex:1,height:8,borderRadius:100,background:\"rgba(187,183,175,0.2)\",overflow:\"hidden\"},children:/*#__PURE__*/_jsx(\"div\",{style:{width:`${FLAT_FEE/(MAX*.025)*100}%`,height:\"100%\",borderRadius:100,background:\"#c0ff02\",transition:\"width 0.4s ease\"}})})]})]})]}),/*#__PURE__*/_jsxs(\"div\",{className:\"hs-savings-banner\",style:{marginTop:\"auto\"},children:[/*#__PURE__*/_jsx(\"div\",{style:{display:\"flex\",flexDirection:\"column\",justifyContent:\"center\"},children:/*#__PURE__*/_jsx(\"div\",{className:\"hs-savings-label\",children:\"The Difference\"})}),/*#__PURE__*/_jsx(\"div\",{className:`hs-savings-amt ${savings>=0?\"positive\":\"negative\"}`,style:{display:\"flex\",alignItems:\"center\"},children:savings>=0?fmt(savings):`-${fmt(Math.abs(savings))}`})]})]})]})]});}\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"HauserSavingsSlider\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./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