1try{let e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="fc0f1f1d-2bb7-423c-bebd-27196c6cbdea",e._sentryDebugIdIdentifier="sentry-dbid-fc0f1f1d-2bb7-423c-bebd-27196c6cbdea")}catch(e){}"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8918],{88918:function(e,t,r){r.r(t),r.d(t,{default:function(){return $}});var i=r(35944),o=r(67294),n=r(71955),a=r(47),l=r(1039),d=r(67575),s=r(83980),h=r(4289),c=r(37337),f=r(64715),u=r(7938),p=r(88793),g=r(67017),m=r(55400),y=r(277),v=o.memo(e=>{let{delayArea:t=1e3}=e,{theme:r}=(0,n.d)(),o=(0,a.ac)({query:"(max-width: 48rem)"});return(0,i.tZ)(f.h,{width:"100%",height:o?174:238,children:(0,i.BX)(u.c,{data:y.G,margin:{top:0,right:0,bottom:0,left:0},children:[(0,i.tZ)(p.B,{tickCount:3,axisLine:!1,tickLine:!1,hide:!0,domain:[0,"dataMax"]}),(0,i.tZ)(g.q,{stroke:r.colors.bdr.primary,strokeDasharray:"4 0",vertical:!1,horizontal:!0}),(0,i.tZ)("defs",{children:(0,i.BX)("linearGradient",{id:"colorUv",x1:"4.00913",y1:"54.1714",x2:"424.009",y2:"273.457",gradientUnits:"userSpaceOnUse",children:[(0,i.tZ)("stop",{stopColor:"#ED8B76"}),(0,i.tZ)("stop",{offset:"0.1375",stopColor:"#EF9D7A",stopOpacity:"0.8"}),(0,i.tZ)("stop",{offset:"0.548429",stopColor:"#F7D158",stopOpacity:"0.8"}),(0,i.tZ)("stop",{offset:"1",stopColor:"#74D24C",stopOpacity:"0.8"}),(0,i.tZ)("stop",{offset:"1",stopColor:"#74D24C",stopOpacity:"0.8"}),(0,i.tZ)("stop",{offset:"1",stopColor:"#69C243",stopOpacity:"0.8"})]})}),(0,i.tZ)("defs",{children:(0,i.BX)("linearGradient",{id:"colorUv2",x1:"4.00913",y1:"54.1714",x2:"424.009",y2:"273.457",gradientUnits:"userSpaceOnUse",children:[(0,i.tZ)("stop",{offset:"0.048593",stopColor:r.colors.fg.error}),(0,i.tZ)("stop",{offset:"0.432098",stopColor:r.colors.fg.warning}),(0,i.tZ)("stop",{offset:"0.432098",stopColor:r.colors.fg.warning}),(0,i.tZ)("stop",{offset:"0.670704",stopColor:r.colors.bg.successPrimaryDefault}),(0,i.tZ)("stop",{offset:"0.75",stopColor:r.colors.bg.successPrimaryDefault})]})}),(0,i.tZ)(m.u,{type:"monotone",dataKey:"amt",stroke:"url(#colorUv2)",fill:"url(#colorUv)",strokeWidth:5,fillOpacity:.4,animationBegin:t,animationDuration:1700,animationEasing:"ease-out"})]})})}),b=r(31041),w=r(93809),Z=e=>{let{delayGoalBubble:t=3,darkMode:r}=e,{theme:o}=(0,n.d)();return(0,i.BX)(x,{xmlns:"http://www.w3.org/2000/svg",width:"26",height:"26",viewBox:"0 0 26 26",fill:"none",initial:{opacity:0}
1,animate:{opacity:1},transition:{duration:.5,ease:"easeOut",delay:t},children:[(0,i.BX)("g",{filter:"url(#filter0_dddd_2604_13559)",children:[(0,i.tZ)("circle",{cx:"13.041",cy:"13.4287",r:"9",fill:o.colors.bg.successPrimaryDefault}),(0,i.tZ)("circle",{cx:"13.041",cy:"13.4287",r:"7.31579",stroke:r?o.colors.fg.primary:o.colors.bg.primary,strokeWidth:"3.36842"})]}),(0,i.tZ)("defs",{children:(0,i.BX)("filter",{id:"filter0_dddd_2604_13559",x:"0.48546",y:"0.873155",width:"25.1111",height:"25.1111",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[(0,i.tZ)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),(0,i.tZ)("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),(0,i.tZ)("feOffset",{}),(0,i.tZ)("feGaussianBlur",{stdDeviation:"0.444444"}),(0,i.tZ)("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0"}),(0,i.tZ)("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_2604_13559"}),(0,i.tZ)("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),(0,i.tZ)("feOffset",{}),(0,i.tZ)("feGaussianBlur",{stdDeviation:"1.33333"}),(0,i.tZ)("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.18 0"}),(0,i.tZ)("feBlend",{mode:"normal",in2:"effect1_dropShadow_2604_13559",result:"effect2_dropShadow_2604_13559"}),(0,i.tZ)("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),(0,i.tZ)("feOffset",{}),(0,i.tZ)("feGaussianBlur",{stdDeviation:"1.77778"}),(0,i.tZ)("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.1 0"}),(0,i.tZ)("feBlend",{mode:"normal",in2:"effect2_dropShadow_2604_13559",result:"effect3_dropShadow_2604_13559"}),(0,i.tZ)("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),(0,i.tZ)("feOffset",{}),(0,i.tZ)("feGaussianBlur",{stdDeviation:"1.77778"}),(0,i.tZ)("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.03 0"}),(0,i.tZ)("feBlend",{mode:"normal",in2:"effect3_dropShadow_2604_13559",result:"effect4_dropShadow_2604_13559"}),(0,i.tZ)("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect4_dropShadow_2604_13559",result:"shape"})]})})]})};let x=(0,c.Z)(b.E.svg,{target:"e18h838y0"})("position:absolute;bottom:-0.5rem;right:-0.625rem;@media ",w.Mq,"{width:1.5rem;height:1.5rem;}");var _=()=>{let{theme:e}=(0,n.d)();return(0,i.tZ)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"4",height:"333",viewBox:"0 0 4 333",fill:"none",children:(0,i.tZ)("path",{d:"M2 2L2.00001 331",stroke:e.colors.bdr.primary,strokeWidth:"2.05102",strokeLinecap:"round",strokeDasharray:"5.47 5.47"})})},z=e=>{let{style:t,delayBeforeBubble:r=3,darkMode:o}=e,{theme:a}=(0,n.d)();return(0,i.BX)(S,{xmlns:"http://www.w3.org/2000/svg",width:"26",height:"26",viewBox:"0 0 26 26",fill:"none",initial:{opacity:0}
1,animate:{opacity:1},transition:{duration:.5,ease:"easeOut",delay:r},style:t,children:[(0,i.BX)("g",{filter:"url(#filter0_dddd_7403_13230)",children:[(0,i.tZ)("circle",{cx:"13.0391",cy:"13.4287",r:"9",fill:o?a.colors.bg.brandSecondaryInactive:a.colors.bg.secondary}),(0,i.tZ)("circle",{cx:"13.0391",cy:"13.4287",r:"7.31579",stroke:o?a.colors.fg.primary:a.colors.bg.primary,strokeWidth:"3.36842"})]}),(0,i.tZ)("defs",{children:(0,i.BX)("filter",{id:"filter0_dddd_7403_13230",x:"0.483507",y:"0.873155",width:"25.1111",height:"25.1111",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[(0,i.tZ)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),(0,i.tZ)("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),(0,i.tZ)("feOffset",{}),(0,i.tZ)("feGaussianBlur",{stdDeviation:"0.444444"}),(0,i.tZ)("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0"}),(0,i.tZ)("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_7403_13230"}),(0,i.tZ)("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),(0,i.tZ)("feOffset",{}),(0,i.tZ)("feGaussianBlur",{stdDeviation:"1.33333"}),(0,i.tZ)("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.18 0"}),(0,i.tZ)("feBlend",{mode:"normal",in2:"effect1_dropShadow_7403_13230",result:"effect2_dropShadow_7403_13230"}),(0,i.tZ)("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),(0,i.tZ)("feOffset",{}),(0,i.tZ)("feGaussianBlur",{stdDeviation:"1.77778"}),(0,i.tZ)("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.1 0"}),(0,i.tZ)("feBlend",{mode:"normal",in2:"effect2_dropShadow_7403_13230",result:"effect3_dropShadow_7403_13230"}),(0,i.tZ)("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),(0,i.tZ)("feOffset",{}),(0,i.tZ)("feGaussianBlur",{stdDeviation:"1.77778"}),(0,i.tZ)("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.03 0"}),(0,i.tZ)("feBlend",{mode:"normal",in2:"effect3_dropShadow_7403_13230",result:"effect4_dropShadow_7403_13230"}),(0,i.tZ)("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect4_dropShadow_7403_13230",result:"shape"})]})})]})};let S=(0,c.Z)(b.E.svg,{target:"e1slsxqi0"})("position:absolute;@media ",w.Mq,"{width:1.5rem;height:1.5rem;}"),B={9:11,10:12,11:13,12:14,13:15,14:16,15:17,16:18,17:19,18:19,19:2,20:3,21:3,22:5,23:6,24:8,25:9,26:11,27:13,28:16,29:19,30:22,31:23,32:27,33:30,34:32,35:35,36:37,37:39,38:42,39:43,40:44,41:45,42:47,43:47.5,44:49,45:50,46:51,47:52,48:53,49:54,50:55,51:56,52:58,53:59,54:60,55:62,56:64,57:65,58:65,59:66,60:68,61:69,62:70,63:70,64:71,65:72,66:72,67:73,68:74,69:75,70:75,71:76,72:76,73:77,74:77,75:78,76:79,77:79,78:80,79:80.5,80:81,81:82,82:82.5,83:83,84:84,85:84.5}
1,M={9:8.5,10:9.5,11:10.5,12:11.5,13:12.5,14:13,15:14.5,16:15,17:16,18:17,19:0,20:1.5,21:3.5,22:4,23:5.5,24:7,25:9,26:11,27:13,28:16,29:19,30:22,31:25,32:28,33:30,34:33,35:35,36:37,37:39.5,38:41,39:43,40:45,41:46,42:47,43:47.5,44:49,45:50,46:50.5,47:51,48:52,49:54,50:55,51:56,52:57,53:59,54:60,55:62,56:62,57:64,58:66,59:67,60:68,61:70,62:70.5,63:71,64:72,65:73,66:73,67:73,68:75,69:75.5,70:76,71:76.5,72:77,73:78,74:78.5,75:79,76:80,77:80,78:81,79:81.5,80:82,81:82.5,82:83.5,83:84,84:84.5,85:85};var D=e=>{var t,r,h,c,f,u;let{goal:p,dateFormat:g,specialOccasion:m,style:y,beforeText:b,afterText:w,hideEvent:x,eventName:S,goalDate:D,delay:$,darkMode:j}=e,{quiz_answers:N,theme:R}=(0,n.d)(),Q=(0,a.ac)({query:"(max-width: 48rem)"}),[K,Y]=(0,o.useState)(0),J=(0,o.useRef)(null),ee=(null==N?void 0:null===(t=N.current_weight)||void 0===t?void 0:t.kg)||(null==N?void 0:N.current_weight),et=(null==N?void 0:null===(r=N.target_weight)||void 0===r?void 0:r.kg)||(null==N?void 0:N.target_weight),er="none"!==(null==N?void 0:N.special_occasion),ei=new Date,eo=(0,l.lN)(et,null==N?void 0:N.units_of_measure),en=(0,l.WR)(ee,null==N?void 0:N.units_of_measure),ea=(0,l.WR)(et,null==N?void 0:N.units_of_measure),el=(null==N?void 0:N.event_date)&&new Date(null==N?void 0:N.event_date),ed=null==el?void 0:el.toLocaleDateString(g,{month:"long",day:"numeric"}),es=()=>{let e=(en-ea)/en*100,t=0,r=0;for(let{percentValMonth:i,dayValue:o}of s.p){let n=e-r;if(n>=i)t+=30,r+=i;else{t+=n/o;break}if(r>=e)break}let i=new Date(ei);return i.setDate(ei.getDate()+Math.floor(t)),i},eh=el&&(0,d.zS)(el)<(0,d.zS)(es()),ec=ee-(()=>{if(!el||x)return 0;let e=new Date,t=Math.ceil(Math.abs(el.getTime()-e.getTime())/864e5),r=0,i=0;for(let{dayValue:e}of s.p){let o=Math.min(30,t-i);if(o<=0||(r+=o*e,(i+=o)>=t))break}return(0,d.QV)(r/100*ee)})(),ef=(()=>{let e=en-ea,t=e=>e%1==0?e.toFixed(0):e.toFixed(1);return[t(en),t(ea+e/2),t(ea)]})(),eu=(e,t)=>((null==e?void 0:e.getTime())-(null==t?void 0:t.getTime()))/864e5,ep=()=>{let e=eu(el,ei)/eu(es(),ei)*100;e>85&&(e=85),e<9&&(e=9);let t=e<19?Q?2:3:0;return{left:e,top:t}};(0,o.useEffect)(()=>{if(J.current){let e=()=>{var e;return Y((null===(e=J.current)||void 0===e?void 0:e.offsetWidth)||0)};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)}},[]),(0,o.useEffect)(()=>{let e=()=>{J.current&&Y(J.current.offsetWidth||0)},t=setTimeout(e,0);return window.addEventListener("resize",e),()=>{clearTimeout(t),window.removeEventListener("resize",e)}},[]);let eg=ep().left,em=ep().top;return(0,i.BX)(U,{style:y,children:[(0,i.BX)(I,{children:[(0,i.tZ)(P,{children:ef.map((e,t)=>{var r;return(0,i.tZ)(F,{theme:R,initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{duration:.5,ease:"easeOut",delay:(ef.length-t-1)*(null!==(r=null==$?void 0:$.weight)&&void 0!==r?r:.8)},children:e},t)})}),(0,i.BX)(k,{children:[(0,i.tZ)(v,{delayArea:null==$?void 0:$.area}),er&&el&&eh&&!x&&(0,i.BX)(T,{style:{marginLeft:"-".concat(K/2,"px"),marginTop:"".concat((Q?-1.375:-1.62)-em,"rem"),left:"".concat(eg,"%")},initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{duration:.5,ease:"easeOut",delay:null!==(h=null==$?void 0:$.mainWrapper)&&void 0!==h?h:3.2},children:[(0,i.tZ)(L,{theme:R,darkMode:j,ref:J,initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{duration:.5,ease:"easeOut",delay:null!==(c=null==$?void 0:$.wrapper)&&void 0!==c?c:3.5},children:(0,i.BX)(X,{theme:R,children:[S,(0,i.tZ)(G,{theme:R,children:(0,l.lN)(ec,null==N?void 0:N.units_of_measure)})]})}),(0,i.BX)(V,{style:{height:"".concat((()=>{let e=Q?174:238,t=ep().top;return e-23*e/100+(3===t?48:2===t?35:0)})()+(Q?15:26),"px")},children:[(0,i.tZ)(z,{style:{top:"".concat(Q?M[(0,d.QV)(eg,0)]:B[(0,d.QV)(eg,0)],"%")},delayBeforeBubble:null==$?void 0:$.beforeBubble,darkMode:j}),(0,i.tZ)(_,{})]})]}),el&&er&&!eh&&!x&&(0,i.tZ)(H,{theme:R,darkMode:j,initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{duration:.5,ease:"easeOut",delay:null!==(f=null==$?void 0:$.wrapper2)&&void 0!==f?f:3.5},children:(0,i.BX)(X,{theme:R,children:[S,(0,i.tZ)(G,{theme:R,children:ed})]})}),(0,i.BX)(C,{theme:R,initial:{opacity:0,y:10}
1,animate:{opacity:1,y:0},transition:{duration:.5,ease:"easeOut",delay:null!==(u=null==$?void 0:$.goalContainer)&&void 0!==u?u:3.2},children:[(0,i.BX)(O,{theme:R,darkMode:j,children:[(0,i.tZ)("span",{children:p}),(0,i.tZ)(W,{theme:R,darkMode:j,children:eo})]}),(0,i.tZ)(E,{xmlns:"http://www.w3.org/2000/svg",width:"26",height:"17",viewBox:"0 0 26 17",fill:"none",children:(0,i.tZ)("path",{d:"M14.2339 15.8531C13.4737 16.6958 12.1513 16.6958 11.3911 15.8531L0.81131 4.12524C-0.29953 2.89386 0.574306 0.928711 2.2327 0.928711L23.3923 0.928711C25.0507 0.928711 25.9245 2.89386 24.8137 4.12524L14.2339 15.8531Z",fill:R.colors.bg.successPrimaryDefault})})]}),(0,i.tZ)(Z,{delayGoalBubble:null==$?void 0:$.goalBubble,darkMode:j})]})]}),(0,i.tZ)(q,{children:D?(0,i.BX)(i.HY,{children:[(0,i.tZ)(A,{theme:R,children:ei.toLocaleDateString(g,{month:"short",day:"numeric"})},"now"),(0,i.tZ)(A,{theme:R,children:D},"goalDate")]}):(()=>{let e={month:"short",day:"numeric"};return[ei,es()].map(t=>t.toLocaleDateString(g,e))})().map((e,t)=>(0,i.tZ)(A,{theme:R,children:e},t))})]})};let k=(0,c.Z)("div",{target:"ezifrh80"})("position:relative;display:flex;justify-content:center;max-width:24.21875rem;width:100%;"),C=(0,c.Z)(b.E.div,{target:"ezifrh81"})("background:",e=>{let{theme:t}=e;return t.colors.fg.successPrimaryDefault},";display:flex;padding:0.4375rem;flex-direction:column;justify-content:center;align-items:center;align-self:stretch;border-radius:0.36413rem;max-width:5.125rem;width:100%;position:absolute;bottom:2rem;right:-0.85rem;z-index:5;@media ",w.Mq,"{max-width:3.75rem;}"),O=(0,c.Z)("div",{target:"ezifrh82"})("span{color:",e=>{let{theme:t,darkMode:r}=e;return r?t.colors.fg.primary:t.colors.fg.accent},";text-align:center;font-size:",e=>{let{theme:t}=e;return t.typography.bm400.fontSize},";font-weight:",e=>{let{theme:t}=e;return t.typography.bm400.fontWeight},";line-height:",e=>{let{theme:t}=e;return t.typography.bm400.lineHeight},";display:block;}position:relative;z-index:4;@media ",w.Mq,"{span{font-size:",e=>{let{theme:t}=e;return t.typography.bs400.fontSize},";font-weight:",e=>{let{theme:t}=e;return t.typography.bs400.fontWeight},";line-height:",e=>{let{theme:t}=e;return t.typography.bs400.lineHeight},";}}"),W=(0,c.Z)("p",{target:"ezifrh83"})("color:",e=>{let{theme:t,darkMode:r}=e;return r?t.colors.fg.primary:t.colors.fg.accent},";text-align:center;font-size:",e=>{let{theme:t}=e;return t.typography.bl600.fontSize},";font-weight:",e=>{let{theme:t}=e;return t.typography.bl600.fontWeight},";line-height:",e=>{let{theme:t}=e;return t.typography.bl600.lineHeight},";width:100%;@media ",w.Mq,"{font-size:",e=>{let{theme:t}=e;return t.typography.bs600.fontSize},";font-weight:",e=>{let{theme:t}=e;return t.typography.bs600.fontWeight},";line-height:",e=>{let{theme:t}=e;return t.typography.bs600.lineHeight},";}"),E=(0,c.Z)("svg",{target:"ezifrh84"})("position:absolute;width:1.625rem;height:1.0625rem;right:0.25rem;bottom:-0.78rem;transform:translateZ(0);will-change:transform;backface-visibility:hidden;-webkit-backface-visibility:hidden;"),q=(0,c.Z)("div",{target:"ezifrh85"})("display:flex;align-items:center;width:91%;justify-content:space-between;"),A=(0,c.Z)("p",{target:"ezifrh86"})("color:",e=>{let{theme:t}=e;return t.colors.fg.secondary},";text-align:right;font-size:",e=>{let{theme:t}=e;return t.typography.bl400.fontSize},";font-weight:",e=>{let{theme:t}=e;return t.typography.bl400.fontWeight},";line-height:",e=>{let{theme:t}=e;return t.typography.bl400.lineHeight},";@media ",w.Mq,"{font-size:",e=>{let{theme:t}=e;return t.typography.bs400.fontSize},";font-weight:",e=>{let{theme:t}=e;return t.typography.bs400.fontWeight},";line-height:",e=>{let{theme:t}=e;return t.typography.bs400.lineHeight},";}"),X=(0,c.Z)("div",{target:"ezifrh87"})("color:",e=>{let{theme:t}=e;return t.colors.fg.primary},";text-align:center;font-size:",e=>{let{theme:t}=e;return t.typography.bm400.fontSize},";font-weight:",e=>{let{theme:t}=e;return t.typography.bm400.fontWeight},";line-height:",e=>{let{theme:t}=e;return t.typography.bm400.lineHeight},";position:relative;z-index:4;height:fit-content;@media ",w.Mq,"{font-size:",e=>{let{theme:t}=e;return t.typography.bs400.fontSize},";font-weight:",e=>{let{theme:t}=e;return t.typography.bs400.fontWeight},";line-height:",e=>{let{theme:t}=e;return t.typography.bs400.lineHeight},";}"),G=(0,c.Z)("p",{target:"ezifrh88"})("color:",e=>{let{theme:t}=e;return t.colors.fg.primary},";text-align:center;font-size:",e=>{let{theme:t}=e;return t.typography.bl600.fontSize},";font-weight:",e=>{let{theme:t}=e;return t.typography.bl600.fontWeight},";line-height:",e=>{let{theme:t}=e;return t.typography.bl600.lineHeight},";width:100%;padding-top:0.125rem;@media ",w.Mq,"{font-size:",e=>{let{theme:t}=e;return t.typography.bs600.fontSize},";font-weight:",e=>{let{theme:t}=e;return t.typography.bs600.fontWeight},";line-height:",e=>{let{theme:t}=e;return t.typography.bs600.lineHeight},";}"),L=(0,c.Z)(b.E.div,{target:"ezifrh89"})("display:flex;padding:0.4375rem 0.5625rem;flex-direction:column;justify-content:center;align-items:center;width:fit-content;border-radius:0.375rem;background:",e=>{let{theme:t,darkMode:r}=e;return r?t.colors.bg.brandSecondaryInactive:t.colors.bg.secondary},";"),H=(0,c.Z)(b.E.div,{target:"ezifrh810"})("display:flex;padding:0.4375rem 0.5625rem;flex-direction:column;justify-content:center;align-items:center;width:fit-content;border-radius:0.375rem;background:",e=>{let{theme:t,darkMode:r}=e;return r?t.colors.bg.brandSecondaryInactive:t.colors.bg.secondary},";position:absolute;top:-1.8rem;right:-1rem;@media ",w.Mq,"{top:-1.44rem;right:-0.56rem;}"),T=(0,c.Z)(b.E.div,{target:"ezifrh811"})("display:flex;flex-direction:column;justify-content:center;align-items:center;position:absolute;z-index:3;"),V=(0,c.Z)(b.E.div,{target:"ezifrh812"})("overflow:hidden;display:flex;justify-content:center;position:relative;width:1.5rem;"),P=(0,c.Z)("div",{target:"ezifrh813"})("width:1.844rem;margin-right:0.72rem;display:flex;flex-direction:column;align-items:center;gap:1.45rem;justify-content:space-between;@media ",w.Mq,"{width:1.375rem;margin-right:0;gap:0;}"),F=(0,c.Z)(b.E.p,{target:"ezifrh814"})("color:",e=>{let{theme:t}=e;return t.colors.fg.secondary},";text-align:right;font-size:",e=>{let{theme:t}=e;return t.typography.bl400.fontSize},";font-weight:",e=>{let{theme:t}=e;return t.typography.bl400.fontWeight},";line-height:",e=>{let{theme:t}=e;return t.typography.bl400.lineHeight},";&:first-child{margin-top:-0.5rem;}&:last-child{margin-bottom:-0.5rem;}@media ",w.Mq,"{font-size:",e=>{let{theme:t}=e;return t.typography.bs400.fontSize},";font-weight:",e=>{let{theme:t}=e;return t.typography.bs400.fontWeight},";line-height:",e=>{let{theme:t}=e;return t.typography.bs400.lineHeight},";}"),I=(0,c.Z)("div",{target:"ezifrh815"})("display:flex;flex-direction:row;width:100%;@media ",w.Mq,"{gap:0.5rem;}"),U=(0,c.Z)("div",{target:"ezifrh816"})("display:flex;flex-direction:column;align-items:flex-end;max-width:28.75rem;width:100%;gap:1.41rem;@media ",w.Mq,"{padding:0 0.75rem 0 0;gap:1rem;}");var $=e=>{let{question:t,onClick:r}=e,{theme:o,hasDarkText:c,quiz_answers:f,variant:u}=(0,n.d)(),p=new URLSearchParams(window.location.search).get("qz")||u,g=(0,d.vc)(p),m=(0,a.ac)({query:"(max-width: 48rem)"}),y=null==t?void 0:t.eventNameMap,v=null==f?void 0:f.special_occasion,b="none"!==v,w="other"===(v=b&&(null==y?void 0:y[v])?y[v]:v)?t.specialOccasion:(0,d.kC)(v),Z=new Date,x=null==f?void 0:f.current_weight,_=null==f?void 0:f.target_weight,z=(0,l.lN)(_,null==f?void 0:f.units_of_measure),S=(0,l.WR)(x,null==f?void 0:f.units_of_measure),B=(0,l.WR)(_,null==f?void 0:f.units_of_measure),M=(null==f?void 0:f.event_date)&&new Date(null==f?void 0:f.event_date),k=()=>{let e=(S-B)/S*100,t=0,r=0;for(let{percentValMonth:i,dayValue:o}of s.p){let n=e-r;if(n>=i)t+=30,r+=i;else{t+=n/o;break}if(r>=e)break}let i=new Date(Z);return i.setDate(Z.getDate()+Math.floor(t)),i},C=k().toLocaleDateString(g,{year:"numeric",month:"long",day:"numeric"}),O=M>k(),W=M&&(0,d.zS)(M)<(0,d.zS)(k()),E=(null==M?void 0:M.toDateString())===k().toDateString(),q=()=>{let e=new Date,t=Math.ceil(Math.abs((null==M?void 0:M.getTime())-e.getTime())/864e5),r=0,i=0;for(let{dayValue:e}of s.p){let o=Math.min(30,t-i);if(o<=0||(r+=o*e,(i+=o)>=t))break}return(0,d.QV)(r/100*x)},A=(b=q()>1&&"none"!==v)&&M?m?"4.81rem":"6rem":m?"3rem":"3.061rem",X=W&&M&&b?t.subtitleEventDate.replace("${event}",w).replace("${kg}","".concat((0,l.lN)(q(),null==f?void 0:f.units_of_measure))):E&&b?t.subtitle.replace("${event}",w):O&&b?t.subtitleBeforeGoal.replace("${event}",w):void 0;return(0,i.BX)(h.xn2,{children:[(0,i.tZ)(h.h4i,{label:t.label.replace("${date}",C).replace("${weight}","".concat((0,l.lN)(_,null==f?void 0:f.units_of_measure))),optionsLabel:X,theme:o}),(0,i.tZ)(D,{...t,style:{marginTop:A},hideEvent:!b,eventName:w,goalDate:null==t?void 0:t.goalDate}),(0,i.tZ)(j,{children:t.applovin&&t.disclaimer?(0,i.tZ)(N,{theme:o,children:t.disclaimer}
1):(0,i.tZ)(h.bZj,{theme:o,title:t.boxTitle,description:"none"!==v&&M&&!O?t.boxTextEventDate.replace("${event_date}",M.toLocaleDateString(g,{year:"numeric",month:"long",day:"numeric"})).replace("${event}",w):t.boxText.replace("${date}",C).replace("${weight}",z),variant:"green",textHasAccentColor:t.infoTextHasAccentColor})}),(0,i.tZ)(h.Ps0,{theme:o,children:(0,i.tZ)(h.KMU,{onClick:r,theme:o,hasDarkText:c,children:t.buttonTitle})})]},t.key)};let j=(0,c.Z)("div",{target:"eiex6010"})("margin-top:1.5rem;@media ",w.Mq,"{margin:1rem 0 5rem;}"),N=(0,c.Z)("p",{target:"eiex6011"})("color:",e=>{let{theme:t}=e;return t.colors.fg.secondary},";text-align:center;font-size:",e=>{let{theme:t}=e;return t.typography.bs400.fontSize},";font-weight:",e=>{let{theme:t}=e;return t.typography.bs400.fontWeight},";line-height:",e=>{let{theme:t}=e;return t.typography.bs400.lineHeight},";@media ",w.Mq,"{font-size:",e=>{let{theme:t}=e;return t.typography.bxs400.fontSize},";font-weight:",e=>{let{theme:t}=e;return t.typography.bxs400.fontWeight},";line-height:",e=>{let{theme:t}=e;return t.typography.bxs400.lineHeight},";}")},277:function(e,t,r){r.d(t,{G:function(){return i}});let i=[{name:"Page A",amt:150},{name:"Page B",amt:130},{name:"Page C",amt:110},{name:"Page D",amt:70},{name:"Page E",amt:50},{name:"Page F",amt:30},{name:"Page G",amt:20},{name:"Page H",amt:10},{name:"Page F",amt:0}]},83980:function(e,t,r){r.d(t,{p:function(){return i}});let i=[{month:1,percentValMonth:9,dayValue:.3},{month:2,percentValMonth:6.25,dayValue:.2083333333},{month:3,percentValMonth:6.75,dayValue:.225},{month:4,percentValMonth:4.7,dayValue:.1566666667},{month:5,percentValMonth:5.3,dayValue:.1766666667},{month:6,percentValMonth:4.7,dayValue:.1566666667},{month:7,percentValMonth:4.4,dayValue:.1466666667}]}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.