{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/6pyA8ho9tHZi48CqhStJ/1hjHGrfriKXWsy7ozOgG/augiA20Il.js"],
  "sourcesContent": ["// Generated by Framer (f082bd6)\nexport default function metadata(params,activeLocale){return{breakpoints:[{hash:\"72rtr7\",mediaQuery:\"(min-width: 1903px)\"},{hash:\"31kdvb\",mediaQuery:\"(min-width: 1720px) and (max-width: 1902px)\"},{hash:\"15y3vy4\",mediaQuery:\"(min-width: 1536px) and (max-width: 1719px)\"},{hash:\"rikb1h\",mediaQuery:\"(min-width: 1280px) and (max-width: 1535px)\"},{hash:\"u0h4rp\",mediaQuery:\"(min-width: 1252px) and (max-width: 1279px)\"},{hash:\"ymkgw8\",mediaQuery:\"(min-width: 1022px) and (max-width: 1251px)\"},{hash:\"kqla1f\",mediaQuery:\"(min-width: 768px) and (max-width: 1021px)\"},{hash:\"yvbwxz\",mediaQuery:\"(max-width: 767px)\"}],customHTMLBodyEnd:\"\\n\\n<script>\\n  'use strict';  \\n  \\n  const el={i:{s:document.querySelector(\\\"#stone\\\"),p:document.querySelector(\\\"#pounds\\\"),f:document.querySelector(\\\"#feet\\\"),n:document.querySelector(\\\"#inches\\\"),l:document.querySelector('#p-loss')},d:{wl:document.querySelector('#weight-loss>h3'),wp:document.querySelector('#weight-percent>h3'),b:document.querySelector('#BMI>h3'),bc:document.querySelector('#BMI'),h:document.querySelector('.health'),w:document.querySelector('.weight'),m:document.querySelector('.month')},c:{f:document.querySelector('.form'),r:document.querySelector('.result')}};\\n\\nlet chart;\\nconst gv=i=>Number(i.value)||0;\\nconst fmt=w=>{const[s,p]=String(w).split('.');return`${s}st ${p||0}lb`};\\nconst gm=n=>Array.from({length:n+1},(_,i)=>{const d=new Date();d.setMonth(d.getMonth()+i);return d.toLocaleString('en-US',{month:'short',year:'numeric'})});\\n\\nconst gBMI=b=>{\\n  const c=[{m:18.5,s:\\\"Underweight\\\",y:\\\"underweight\\\"},{m:25,s:\\\"Healthy\\\",y:\\\"healthy\\\"},{m:30,s:\\\"Overweight\\\",y:\\\"overweight\\\"},{m:Infinity,s:\\\"Obese\\\",y:\\\"obese\\\"}];\\n  return c.find(t=>b<=t.m)\\n};\\n\\nconst uBMI=b=>{\\n  const{s,y}=gBMI(b);\\n  el.d.h.textContent=`(${s})`;\\n  el.d.bc.className=y;\\n};\\n\\nconst calc=()=>{\\n  const[s,p,f,n,c]=Object.values(el.i).map(gv);\\n  const tw=s+(p/14);\\n  const th=f+(n/12);\\n  const uw=tw*6.35;\\n  const uh=th/3.281;\\n  const m=11;\\n  const wl=Math.round(10*(c/100)*tw)/10;\\n  const mc=wl/m;\\n  const prog=Array.from({length:m+1},(_,i)=>Math.round(10*(tw-(mc*i)))/10);\\n  const mon=gm(m);\\n  const bmi=Math.round((uw-(wl*6.35))/uh**2);\\n  \\n  const wt=fmt(wl);\\n  el.d.wl.textContent=wt;\\n  el.d.wp.textContent=`${c}%`;\\n  el.d.b.textContent=bmi;\\n  el.d.w.textContent=wt;\\n  el.d.m.textContent=mon[mon.length-1];\\n  uBMI(bmi);\\n  \\n  if(chart)chart.destroy();\\n  const ctx=document.getElementById('graph').getContext('2d');\\n  \\n  chart=new Chart(ctx,{\\n    type:'line',\\n    data:{\\n      labels:mon,\\n      datasets:[{\\n        data:prog,\\n        borderColor:'green',\\n        pointBackgroundColor:'transparent',\\n        pointBorderColor:'transparent',\\n        borderWidth:2,\\n        fill:true\\n      }]\\n    },\\n    options:{\\n      tooltips:{enabled:false},\\n      scales:{y:{grid:{display:false}}},\\n      legend:{display:false},\\n      interaction:{mode:'nearest',axis:'x',intersect:false},\\n      onHover:(e,els)=>{\\n        const hd=document.getElementById('hover-value');\\n        if(!els?.length){\\n          e.target.style.cursor='default';\\n          hd.style.display='none';\\n          return;\\n        }\\n        const i=els[0]._index;\\n        const v=chart.data.datasets[0].data[i];\\n        const l=chart.data.labels[i];\\n        hd.textContent=`${l}: ${v}`;\\n        hd.style.display='block';\\n        \\n        let x=e.clientX+10;\\n        let y=e.clientY+10;\\n        if(x+hd.offsetWidth>window.innerWidth)x=e.clientX-hd.offsetWidth-10;\\n        if(y+hd.offsetHeight>window.innerHeight)y=e.clientY-hd.offsetHeight-10;\\n        hd.style.left=`${x}px`;\\n        hd.style.top=`${y}px`;\\n        e.target.style.cursor='pointer';\\n        \\n        const wl=Math.round(mc*i*10)/10;\\n        const uw=v*6.35;\\n        const bmi=Math.round(uw/uh**2);\\n        const wi=String(wl).split('.');\\n        const wp=Math.round(c*(i/m));\\n        \\n        el.d.wl.textContent=`${wi[0]}st ${wi[1]||0}lb`;\\n        el.d.wp.textContent=`${wp}%`;\\n        el.d.b.textContent=bmi;\\n        el.d.w.textContent=`${wi[0]}st ${wi[1]||0}lb`;\\n        el.d.m.textContent=l;\\n        uBMI(bmi);\\n      }\\n    }\\n  });\\n  el.c.f.classList.toggle('hidden');\\n  el.c.r.classList.toggle('hidden');\\n};\\n\\ndocument.querySelector('button').addEventListener('click',calc);\\ndocument.querySelector('.arrow').addEventListener('click',()=>{\\n  el.c.f.classList.toggle('hidden');\\n  el.c.r.classList.toggle('hidden');\\n});\\n\\n</script>\",customHTMLBodyStart:\"\\n\",customHTMLHeadStart:'    \\n        <link rel=\"stylesheet\" href=\"style.css\">\\n\\n        <style>\\n            .reduceOp {\\n                opacity: 0;\\n            }\\n\\n            .wrapper {\\n    display: flex;\\n    align-items: center;\\n    justify-content: center;\\n}\\n            \\n            .form > p {\\n                line-height: 160%;\\n                margin: .5rem 0 1.5rem;\\n            }\\n            \\n            \\n            button {\\n                padding: .8rem 1rem;\\n                background-color: purple;\\n                font-size: 1rem;\\n                font-weight: 600;\\n                border: none;\\n                color: white;\\n                border-radius: .5rem;\\n            }\\n            \\n            \\n            .wrapper > div {\\n                padding: 2rem 1rem;\\n                border: 1px solid rgb(231, 229, 229);\\n                max-width: 400px;\\n                border-radius: 1rem;\\n                background-color: rgb(253, 255, 255);\\n            }\\n            \\n            .hidden {\\n                display: none;\\n            }\\n            \\n            .label {\\n                margin-bottom: 1rem;\\n            }\\n            \\n            \\n            \\n            .input {\\n                height: 40px;\\n                border: 1px solid rgb(231, 228, 228);\\n                display: flex;\\n                align-items: center;\\n                justify-content: space-between;\\n                border-radius: .5rem;\\n                background-color: transparent;\\n                width: 50%;\\n                padding: 0 .8rem;\\n                color:rgb(153, 148, 148);\\n            \\n            }\\n            \\n            #percent-input {\\n                width: 100%;\\n            }\\n            \\n            input {\\n                height: 100%;\\n                border: none;\\n                width: 100%;\\n            }\\n            \\n            input:focus, input:active{\\n                outline: none;\\n            }\\n            \\n            form > div {\\n                margin-bottom: 1.5rem;\\n            }\\n            \\n            .flex-input {\\n                display: flex;\\n                gap: 1rem;\\n            }\\n            \\n            .result {\\n                max-width: 560px;\\n                width: 640px;\\n            }\\n            \\n            .indicators {\\n                display: flex;\\n                gap: 1rem;\\n                text-align: center;\\n                margin: 1rem 0;\\n                flex-wrap: wrap;\\n                justify-content: center;\\n            }\\n            \\n            .indicators > div {\\n                padding: 1rem;\\n                border: 1px solid #e5e7eb;\\n                border-radius: .5rem;\\n            }\\n            \\n            .result p {\\n                font-weight: 600;\\n            }\\n            \\n            .result h3 {\\n                font-size: 24px;\\n                font-weight: 400;\\n                margin-top: .8rem;\\n            }\\n            \\n            #weight-loss h3, #weight-percent h3 {\\n                color:rgb(47, 56, 54);\\n            }\\n            \\n            #weight-loss {\\n                background-color: rgb(247, 245, 237);\\n                color: rgb(214, 190, 93);\\n            }\\n            \\n            #weight-percent {\\n                background-color: rgb(239, 247, 245);\\n                color: rgb(74, 158, 137);\\n            }\\n            \\n            #graph {\\n                transition: fill .5s linear;\\n            }\\n            \\n            .arrow {\\n                font-size: 24px;\\n                cursor: pointer;\\n                width: 48px;\\n                height: 48px;\\n            }\\n            \\n            \\n            .healthy { background-color: #dff0d8; color: #3c763d; }\\n            .overweight { background-color: #fcf8e3; color: #8a6d3b; }\\n            .underweight { background-color: #f2dede; color: #a94442; }\\n            .obese { background-color: #f2dede; color: #a94442; }\\n            \\n            \\n            #hover-value {\\n                position: fixed;\\n                background: rgba(0, 0, 0, 0.8);\\n                color: white;\\n                padding: 8px;\\n                border-radius: 4px;\\n                display: none;\\n                pointer-events: none;\\n            }\\n            \\n            .h-update {\\n                margin-top: 1rem;\\n            }\\n        </style>',description:\"Weight Loss SA\",elements:{envXsIPna:\"hero-1-1\",j_g0rcOzI:\"ourpricing-mobile\",P7ibWLHQP:\"price-card\",sO4PVtw1R:\"hero-1\",YrwRZkhCV:\"section-2-1\",Zr2TODfCJ:\"our-pricing-mobile\"},framerSearch:{index:true},robots:\"max-image-preview:large\",serializationId:\"framer-XgDVE\",title:\"Weight Loss SA\",viewport:\"width=device-width\"};}export const metadataVersion=1;\nexport const __FramerMetadata__ = {\"exports\":{\"metadataVersion\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"default\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}"],
  "mappings": "AACe,SAARA,EAA0BC,EAAOC,EAAa,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC,KAAK,SAAS,WAAW,qBAAqB,EAAE,CAAC,KAAK,SAAS,WAAW,6CAA6C,EAAE,CAAC,KAAK,UAAU,WAAW,6CAA6C,EAAE,CAAC,KAAK,SAAS,WAAW,6CAA6C,EAAE,CAAC,KAAK,SAAS,WAAW,6CAA6C,EAAE,CAAC,KAAK,SAAS,WAAW,6CAA6C,EAAE,CAAC,KAAK,SAAS,WAAW,4CAA4C,EAAE,CAAC,KAAK,SAAS,WAAW,oBAAoB,CAAC,EAAE,kBAAkB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;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