PageSourceSearch

https://hellobacsi.com/_next/static/chunks/3758-7160a3080a581009.js

js hellobacsi.com collected 2026-09-24 10:06:00 UTC 27,836 bytes, 125 lines download raw bytes

1(self.webpackChunkhhgDiscoverV1=self.webpackChunkhhgDiscoverV1||[]).push([[899,3758],{jvfN:function(e,t,r){"use strict";r.d(t,{I:function(){return D}});var n=r("mup0"),i=r("+OUp"),a=r.n(i),o=r("vH4S"),s=r("xXM3"),l=r.n(s),u=r("8BcA"),c=r.n(u),d=r("88OS"),p=r("AeFk"),f=r("rBCA"),g=r("iBNF"),h=r("11Kd"),v=r("9VLu"),m=r("E13D");let y=/^([0-9]*)$/,b={DD:"Day",MM:"Month",YYYY:"Year"},S={DD:(e,t)=>{if(!e)return null==t||t(""),"";let r=parseInt(e);if(r>31)return null==t||t(e[0]),e[0];if(r>=4){let e=String(r).padStart(2,"0");return null==t||t(e),e}return null==t||t(e),e},MM:(e,t)=>{if(!e)return null==t||t(""),"";let r=parseInt(e);if(r>12)return null==t||t(e[0]),e[0];if(r>=2){let e=String(r).padStart(2,"0");return null==t||t(e),e}return null==t||t(e),e},YYYY:(e,t)=>e?(null==t||t(e),e):(null==t||t(""),"")},x=[!1,!0,!0],getInputDateInputDisabled=e=>e.map((t,r)=>0!==r&&(0===r||!e[r-1])),w=(0,p.AH)`
2  max-width: 100%;
3  // color: ${g.w.colors.gray800};
4  // font-size: var(--input-font-size, 16px);
5  // font-weight: 400;
6  // line-height: calc(var(--input-height, 56px) * 24 / 56);
7  opacity: 0;
8  transition: 0.3s linear opacity;
9  vertical-align: middle;
10  &::placeholder {
11    color: transparent;
12    font-weight: 400;
13  }
14`,R=(0,p.AH)`
15  opacity: 1;
16  line-height: calc(var(--input-height, 56px) * 24 / 56);
17  transition: 0.3 linear opacity;
18`,C=(0,p.AH)`
19  position: absolute;
20  top: calc(var(--input-height, 56px) / 2);
21  left: var(--input-padding, 16px);
22  letter-spacing: -0.3px;
23  transform: translateY(-50%);
24  transition: 0.125s linear all;
25  vertical-align: middle;
26`,I=(0,p.AH)`
27  top: calc(var(--input-height, 56px) * 7 / 56);
28  line-height: calc(var(--input-height, 56px) * 18 / 56);
29  transform: translateY(0);
30  transition: 0.125s linear all;
31`,_=f.A.div`
32  --input-gap: 8px;
33  --input-height: 56px;
34  --input-max-width: 320px;
35  --input-font-size: 15px;
36  --input-line-height: 24px;
37  --input-padding-x: 16px;
38  --input-padding-y: 16px;
39  --input-border-radius: 8px;
40  --input-border-color: ${g.w.colors.gray200};
41
42  display: flex;
43  gap: var(--input-gap, 8px);
44  max-width: var(--input-max-width, 320px);
45  font-weight: 400;
46
47  * {
48    box-sizing: border-box;
49  }
50
51  .input_date-input_container {
52    position: relative;
53    display: flex;
54    align-items: center;
55    width: 100%;
56    height: var(--input-height, 56px);
57    max-width: calc((100% / 3) - (var(--input-gap, 8px) * 2 / 3));
58    line-height: var(--input-line-height, 24px);
59    padding: var(--input-padding-y, 16px) var(--input-padding-x, 16px);
60    border-radius: var(--input-border-radius, 8px);
61    border: 1px solid var(--input-border-color, ${g.w.colors.gray200});
62
63    .input_date-input_placeholder {
64      ${C}
65    }
66
67    .input_date-input {
68      ${w}
69    }
70
71    &:has([disabled]) {
72      pointer-events: none;
73    }
74
75    &.input_date-input_shrink {
76      --input-padding-y: 7px;
77      align-items: flex-end;
78      .input_date-input_placeholder {
79        ${I}
80      }
81
82      .input_date-input {
83        ${R}
84      }
85    }
86
87    &.input_date-input_active {
88      border-color: ${g.w.colors.primary600};
89      box-shadow: 0px 0px 5px ${g.w.colors.primary400};
90      transition: 0.25s linear all;
91    }
92
93    &.input_date-input_error {
94      border-color: ${g.w.colors.red600};
95    }
96  }
97`,O=r("+QaA");c().extend(O);let{BACKSPACE:A,SPACEBAR:E,ZERO:B}={BACKSPACE:8,SPACEBAR:32,ZERO:48},formatInputDateValue=(e,t)=>{if(void 0===e)return null;if("string"==typeof e){let r=c()(e,t,!0);return r.isValid()?r.toDate():null}let r=c()(e);return r.isValid()?r.toDate():null},formatInputDateValueString=(e,t)=>{if(!e)return[void 0,void 0,void 0];let r=c()(e);return r.format(t).split("/")},D=(0,i.forwardRef)((e,t)=>{let{id:r,name:s,locale:u=h.L.Vietnam,className:p,style:f,defaultValue:g,value:w,onChange:R,error:C,disabled:I,labelTuples:O,placeholderTuples:D,onFocus:P,onBlur:k,autoComplete:T="off"}=e,M=(0,n.a)(e,["id","name","locale","className","style","defaultValue","value","onChange","error","disabled","labelTuples","placeholderTuples","onFocus","onBlur","autoComplete"]),[N,V]=(0,i.useState)(-1),H=(0,i.useRef)([]),[q,F]=(0,i.useState)(formatInputDateValue(g||w,v.I[u].dateFormat)),[L,Y]=(0,i.useState)(["","",""]),[j,U]=(0,i.useState)(()=>getInputDateInputDisabled(formatInputDateValueString(g||w,v.I[u].dateFormat))),{dateFormat:$}=(0,i.useMemo)(()=>(null===v.I||void 0===v.I?void 0:v.I[u])||v.I["vi-VN"],[u]),G=(0,i.useMemo)(()=>$.split("/"),[$]),z=(0,i.useMemo)(()=>formatInputDateValueString(g,$),[g,$]),W=(0,i.useMemo)(()=>G.map((e,t)=>(null==O?void 0:O[t])||b[e]),[O]),K=(0,i.useMemo)(()=>G.map((e,t)=>(null==D?void 0:D[t])||e),[D]),Q=(0,i.useCallback)(()=>{var e,t;if(0===N||-1===N)return;let r=null===(e=H.current)||void 0===e?void 0:e[N];r&&r.blur();let n=null===(t=H.current)||void 0===t?void 0:t[N-1];n&&n.focus()},[N]),X=(0,i.useCallback)(()=>{var e,t;if(N===G.length-1)return;let r=null===(e=H.current)||void 0===e?void 0:e[N];r&&r.blur();let n=null===(t=H.current)||void 0===t?void 0:t[N+1];n&&n.focus()},[N,G]),Z=(0,i.useCallback)(()=>{let e=0;requestAnimationFrame(function changeFocus(){let t=H.current[N],r=H.current[N+1],n=j[N+1];r&&1!==e&&(n&&(requestAnimationFrame(changeFocus),e++),t.value.length===t.maxLength&&X())})},[...j,N,X]),J=(0,i.useCallback)(e=>{let t=e||L,r=G.map((e,r)=>{let n=t[r];return n}
97).filter(Boolean).join("/"),n=c()(r,$,!0);n.isValid()?(F(n.toDate()),null==R||R(n.toDate(),r)):(F(null),null==R||R(r,r))},[G,$,...L]),ee=(0,i.useCallback)(e=>t=>{let r=t.target.value,n=[...L];if(!r){n[e]="",Y(n),J(n),0===e&&U(x);return}if(!r.trim().match(y))return;let i=G[e];S[i](r,t=>{n[e]=t,U(getInputDateInputDisabled(n)),Y(n),Z()}),J(n)},[...L,G,Z,J]),et=(0,i.useCallback)(e=>{let t=e.target,r=H.current.findIndex(e=>e===t);-1!==r&&V(r),0===r&&(null==P||P(e))},[...L,G,P]),er=(0,i.useCallback)(e=>{V(-1);let t=e.target,r=H.current.findIndex(e=>e===t);if(-1!==r){let e=t.value,n=[...L];""!==e&&(n[r]=String(e).padStart(t.maxLength,"0"),U(getInputDateInputDisabled(n)),Y(n),J(n))}(2===r||0===r&&(!(null==L?void 0:L[0])||L.every(Boolean))||1===r&&(!(null==L?void 0:L[1])||L.every(Boolean)))&&requestAnimationFrame(()=>{null==k||k(e)})},[...L,N,G,q,k]),en=(0,i.useCallback)(e=>{let t=H.current[N];"0"===t.value&&(e.keyCode===B||"0"===e.key)&&e.preventDefault(),e.keyCode!==A&&"Backspace"!==e.key||t.value||Q(),(e.keyCode===E||" "===e.key||"Spacebar"===e.key||"Space"===e.key)&&e.preventDefault()},[N,Q,X]),ei=(0,i.useCallback)(e=>{let t=e.target,r=H.current.findIndex(e=>e===t);if(-1===r){let e=""!==L.join("")?H.current.length-1:0;H.current[e].focus(),V(e);return}H.current[r].focus(),V(r)},[...L,H.current,z]);return(0,i.useEffect)(()=>{F(formatInputDateValue(w,$))},[w,$]),(0,i.useEffect)(()=>{if(q){let e=formatInputDateValueString(q,$);Y(e),U(getInputDateInputDisabled(e))}},[q,$]),(0,i.useImperativeHandle)(t,()=>H.current[0],[]),a().createElement(_,Object.assign({className:p,style:f,onClick:ei},M),G.map((e,t)=>{let n=W[t],i=null==z?void 0:z[t],u=L[t],c=j[t],p=K[t],f=e.length;return a().createElement(o.Box,{key:e,className:l()("input_date-input_container",{"input_date-input_active":N===t,"input_date-input_shrink":!!u,"input_date-input_error":C}),sx:e=>({input:Object.assign(Object.assign({},(0,d.G)(e)[d.C.LEADGEN].p2),{fontWeight:d.F.halfBold,color:e.colors.gray[9]})})},a().createElement(m.T,{className:"input_date-input_placeholder",as:"span",size:u?"p3":"p2",variant:"secondary",weight:"halfBold"},n),a().createElement("input",{ref:e=>H.current[t]=e,name:`${r||""}-${s||""}-${e}`,type:"text",inputMode:"numeric",defaultValue:i,value:u,maxLength:f,disabled:I||c,placeholder:p,onChange:ee(t),onBlur:er,onFocus:et,onKeyDown:en,className:"input_date-input",autoComplete:T}))}))})},Aweg:function(e,t,r){"use strict";r.d(t,{H:function(){return l},a:function(){return u},b:function(){return o}});var n,i,a,o,s=r("5GB8");(n=a||(a={})).DUE_DATE="due-date-calculator",n.BMI="bmi",n.BMR="bmr",n.OVULATION="ovulation",n.IFRAME="IFRAME",n.PWG="pregnancy-weight-gain",n.THR="heart-rate",n.BABY_VACCINE="vaccination-tool",n.BABY_GROWTH="baby-growth-tracking",n.BABY_POOP="baby-poop-checking",(i=o||(o={})).DUE_DATE="DueDate",i.BMI="BMI",i.BMR="BMR",i.OVULATION="Ovulation",i.PWG="PregnancyWeightGain",i.THR="TargetHeartRate",i.BABY_VACCINE="BabyVaccine",i.BABY_GROWTH="BabyGrowth",i.BABY_POOP="BabyPoopChecking";let l={DUE_DATE:a.DUE_DATE,BMI:a.BMI,BMR:a.BMR,OVULATION:a.OVULATION,IFRAME:a.IFRAME,PWG:a.PWG,THR:a.THR,BABY_VACCINE:a.BABY_VACCINE,BABY_GROWTH:a.BABY_GROWTH,BABY_POOP:a.BABY_POOP},u={[l.DUE_DATE]:s.C.getAssetPath("health-tools/due-date-icon.svg")}},iqLf:function(e,t,r){"use strict";r.d(t,{D:function(){return Divider}});var n=r("+OUp"),i=r.n(n),a=r("rBCA"),o=r("iBNF");let s=a.A.hr`
98  border-width: 1px;
99  border-color: ${o.w.colors.neutral200};
100  border-style: ${e=>e.dividerType};
101`,Divider=({type:e="solid",className:t,style:r})=>i().createElement(s,{style:r,className:t,"data-diver-type":e,dividerType:e})},QQ0r:function(e,t,r){"use strict";r.d(t,{T:function(){return u}});var n=r("+OUp"),i=r.n(n),a=r("rBCA"),o=r("x29G"),s=r("iBNF");let l=a.A.div`
102  textarea {
103    width: 100%;
104    height: var(--textarea-height, 116px);
105    padding: 1rem;
106    border: 1px solid ${s.w.colors.gray200};
107    border-radius: 6px;
108    color: ${s.w.colors.gray800};
109    font-size: 14px;
110    resize: none;
111
112    &:focus {
113      box-shadow: 0px 0px 2px 2px #91caff;
114    }
115
116    &::placeholder {
117      color: ${s.w.colors.gray500};
118    }
119
120    &:disabled {
121      background-color: ${s.w.colors.neutral50};
122      cursor: not-allowed;
123    }
124  }
125`,u=i().forwardRef(({height:e,placeholder:t,labelText:r,labelColor:n,id:a,name:s,onChange:u,value:c,className:d,onKeyPress:p,disabled:f=!1},g)=>i().createElement(l,{className:d,style:{"--textarea-height":e||"116px"}},r&&i().createElement(o.L,{size:"label2",style:{color:n||"#595959"},htmlFor:a},r),i().createElement("textarea",{name:s,ref:g,placeholder:t,id:a,onChange:e=>u&&u(e.target.value),onKeyPress:e=>p&&p(e),value:c,disabled:f})))},nVj7:function(e,t,r){"use strict";r.d(t,{T:function(){return TextArea}});var n=r("mup0"),i=r("+OUp"),a=r.n(i),o=r("vH4S"),s=r("Bril"),l=r("88OS");let TextArea=e=>{var{styles:t}=e,r=(0,n.a)(e,["styles"]);let i=(0,l.u)(),{classes:u}=(0,s.u)({variantStyle:i},{name:"MantineTextarea",styles:t});return a().createElement(o.Textarea,Object.assign({classNames:{input:u.input},minRows:2,maxRows:4},r))}},"99ux":function(e,t,r){"use strict";r.d(t,{G:function(){return l},a:function(){return s},u:function(){return usePlacesAutocomplete}});var n=r("mup0"),i=r("+OUp"),a=r
125("yNk5");let formatAutoCompleteAddress=e=>!e||e.length<1?[]:e.map(e=>({placeId:e.place_id,description:e.description,rawData:e})),o="undefined"==typeof window,s={VN:"vi",ID:"id",TH:"th",MY:"ms",TW:"zh-TW",KH:"km",MM:"my",IN:"hi",PH:"en"},l=a.env.GOOGLE_MAP_KEY||"AIzaSyDH2YEO0oZ0XzQv90_7nd2mBHIDhFxLw4s",googleAutocomplete=(e="",t="",r="vi")=>(0,n._)(void 0,void 0,void 0,function*(){return new Promise((n,i)=>{if(!e)return i("Need valid text input");if(o)return i("Need valid window object");try{new window.google.maps.places.AutocompleteService().getPlacePredictions(Object.assign(Object.assign({input:e},t?{componentRestrictions:{country:t}}:{}),{language:s[r]}),n)}catch(e){i(e)}})}),usePlacesAutocomplete=(e="",t="",r="",a=500)=>{let[o,s]=(0,i.useState)([]),[l,u]=(0,i.useState)(!1);return(0,i.useEffect)(()=>{let i;return e?i=window.setTimeout(()=>(0,n._)(void 0,void 0,void 0,function*(){if(!e){s([]);return}try{u(!0);let n=yield googleAutocomplete(e,t,r);s(formatAutoCompleteAddress(n))}catch(e){console.error(e)}finally{u(!1)}}),a):o.length&&s([]),()=>{window.clearTimeout(i)}},[e,a,t]),{isLoading:l,predictions:o}}},"3yHj":function(e,t,r){"use strict";r.d(t,{a:function(){return l},b:function(){return c},c:function(){return u},d:function(){return isSupportProduct},g:function(){return getURLwithSSOTracking},i:function(){return d}});var n=r("Aweg"),i=r("ei/7"),a=r("c5l1"),o=r("88Tq"),s=r("11Kd");let l=[s.L.Indonesia,s.L.Malaysia].includes(i.l),u=[s.L.Vietnam].includes(i.l),c=[s.L.Vietnam].includes(i.l),d=[s.L.Malaysia].includes(i.l),isSupportProduct=e=>{let t=a.u.getState().setupSource||"discover",r=(null==e?void 0:e.find(e=>"discover"===e.name))&&"discover"===t,n=(null==e?void 0:e.find(e=>"together"===e.name))&&"community"===t,i=(null==e?void 0:e.find(e=>"care"===e.name))&&"care"===t;return r||n||i},getURLwithSSOTracking=(e,{source:t,botItem:r})=>{var i;if(!t&&!r)return null;try{let a=new URL(e.startsWith("localhost")?`http://${e}`:e),s={bmi:n.b.BMI,bmr:n.b.BMR,"due-date":n.b.DUE_DATE,ovulation:n.b.OVULATION,"baby-growth":n.b.BABY_GROWTH,"baby-vaccine":n.b.BABY_VACCINE,"pregnancy-weight-gain":n.b.PWG,"target-heart-rate":n.b.THR,"baby-poop-checking":n.b.BABY_POOP},l=s[t],u=window.location.href.includes("/health-tools");return l&&!u?(a.searchParams.set("embeddedType","healthTool"),a.searchParams.set("toolName",l)):(null===(i=null==r?void 0:r.extra_settings)||void 0===i?void 0:i.subot_type)===o.h.ristScreener&&(a.searchParams.set("embeddedType","riskScreener"),a.searchParams.set("toolName",String(r.id))),a}catch(e){return null}}},q8gk:function(e){"use strict";let t=/[\p{Lu}]/u,r=/[\p{Ll}]/u,n=/^[\p{Lu}](?![\p{Lu}])/gu,i=/([\p{Alpha}\p{N}_]|$)/u,a=/[_.\- ]+/,o=RegExp("^"+a.source),s=RegExp(a.source+i.source,"gu"),l=RegExp("\\d+"+i.source,"gu"),preserveCamelCase=(e,n,i)=>{let a=!1,o=!1,s=!1;for(let l=0;l<e.length;l++){let u=e[l];a&&t.test(u)?(e=e.slice(0,l)+"-"+e.slice(l),a=!1,s=o,o=!0,l++):o&&s&&r.test(u)?(e=e.slice(0,l-1)+"-"+e.slice(l-1),s=o,o=!1,a=!0):(a=n(u)===u&&i(u)!==u,s=o,o=i(u)===u&&n(u)!==u)}return e},preserveConsecutiveUppercase=(e,t)=>(n.lastIndex=0,e.replace(n,e=>t(e))),postProcess=(e,t)=>(s.lastIndex=0,l.lastIndex=0,e.replace(s,(e,r)=>t(r)).replace(l,e=>
125t(e))),camelCase=(e,t)=>{if(!("string"==typeof e||Array.isArray(e)))throw TypeError("Expected the input to be `string | string[]`");if(t={pascalCase:!1,preserveConsecutiveUppercase:!1,...t},0===(e=Array.isArray(e)?e.map(e=>e.trim()).filter(e=>e.length).join("-"):e.trim()).length)return"";let r=!1===t.locale?e=>e.toLowerCase():e=>e.toLocaleLowerCase(t.locale),n=!1===t.locale?e=>e.toUpperCase():e=>e.toLocaleUpperCase(t.locale);if(1===e.length)return t.pascalCase?n(e):r(e);let i=e!==r(e);return i&&(e=preserveCamelCase(e,r,n)),e=e.replace(o,""),e=t.preserveConsecutiveUppercase?preserveConsecutiveUppercase(e,r):r(e),t.pascalCase&&(e=n(e.charAt(0))+e.slice(1)),postProcess(e,n)};e.exports=camelCase,e.exports.default=camelCase},s3Wo:function(e){e.exports=function(e,t){t.prototype.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)}}},KYiY:function(e,t,r){var n;!function(){var t={initialize:function(){this._tasks=new Map},mutate:function(e,t){return create(this,"mutate",e,t)},measure:function(e,t){return create(this,"measure",e,t)},clear:function(e){var t=this._tasks,r=t.get(e);this.fastdom.clear(r),t.delete(e)}};function create(e,t,r,n){var i,a=e._tasks,o=e.fastdom,s=new Promise(function(e,l){i=o[t](function(){a.delete(s);try{e(n?r.call(n):r())}catch(e){l(e)}},n)});return a.set(s,i),s}void 0!==(n=(function(){return t}).call(t,r,t,e))&&(e.exports=n)}()},Sn6X:function(e,t,r){var n;!function(t){"use strict";var debug=function(){},i=t.requestAnimationFrame||t.webkitRequestAnimationFrame||t.mozRequestAnimationFrame||t.msRequestAnimationFrame||function(e){return setTimeout(e,16)};function FastDom(){this.reads=[],this.writes=[],this.raf=i.bind(t),debug("initialized",this)}function scheduleFlush(e){e.scheduled||(e.scheduled=!0,e.raf(flush.bind(null,e)),debug("flush scheduled"))}function flush(e){debug("flush");var t,r=e.writes,n=e.reads;try{debug("flushing reads",n.length),e.runTasks(n),debug("flushing writes",r.length),e.runTasks(r)}catch(e){t=e}if(e.scheduled=!1,(n.length||r.length)&&scheduleFlush(e),t){if(debug("task errored",t.message),e.catch)e.catch(t);else throw t}}function remove(e,t){var r=e.indexOf(t);return!!~r&&!!e.splice(r,1)}FastDom.prototype={constructor:FastDom,runTasks:function(e){var t;for(debug("run tasks");t=e.shift();)t()},measure:function(e,t){debug("measure");var r=t?e.bind(t):e;return this.reads.push(r),scheduleFlush(this),r},mutate:function(e,t){debug("mutate");var r=t?e.bind(t):e;return this.writes.push(r),scheduleFlush(this),r},clear:function(e){return debug("clear",e),remove(this.reads,e)||remove(this.writes,e)},extend:function(e){if(debug("extend",e),"object"!=typeof e)throw Error("expected object");var t=Object.create(this);return function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])}(t,e),t.fastdom=this,t.initialize&&t.initialize(),t},catch:null};var a=t.fastdom=t.fastdom||new FastDom;void 0!==(n=(function(){return a}).call(a,r,a,e))&&(e.exports=n)}("undefined"!=typeof window?window:void 0!==this?this:globalThis)},Dfpe:function(){},oOSY:function(e,t,r){"use strict";var n,i=(n=r("6Egq"))&&n.__esModule?n:{default:n};Number.isInteger=Number.isInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e},t.A=i.default},"6Egq":function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function defineProperties(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,t,r){return t&&defineProperties(e.prototype,t),r&&defineProperties(e,r),e}}(),i=_interopRequireDefault(r("+OUp")),a=_interopRequireDefault(r("17x9")),o=_interopRequireDefault(r("4Ikp"));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _possibleConstructorReturn(e,t){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&("object"==typeof t||"function"==typeof t)?t:e}var s=function(e){function StarRatings(){!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,StarRatings);for(var e,t,r,n=arguments.length,i=Array(n),a=0;a<n;a++)i[a]=arguments[a];return t=r=_possibleConstructorReturn(this,(e=StarRatings.__proto__||Object.getPrototypeOf(StarRatings)).call.apply(e,[this].concat(i))),r.state={highestStarHovered:-1/0},r.fillId="starGrad"+Math.random().toFixed(15).slice(2),r.hoverOverStar=function(e){return function(){r.setState({highestStarHovered:e})}},r.unHoverOverStar=function(){r.setState({highestStarHovered:-1/0})},_possibleConstructorReturn(r,t)}return!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(StarRatings,e),n(StarRatings,[{key:"stopColorStyle",value:function(e){return this.props.ignoreInlineStyles?{}:{stopColor:e,stopOpacity:"1"}}},{key:"render",value:function(){var e=this.props,t=e.starRatedColor,r=e.starEmptyColor;return i.default.createElement("div",{className:"star-ratings",title:this.titleText,style:this.starRatingsStyle},i.default.createElement("svg",{className:"star-grad",style:this.starGradientStyle},i.default.createElement("defs",null,i.default.createElement("linearGradient",{id:this.fillId,x1:"0%",y1:"0%",x2:"100%",y2:"0%"},i.default.createElement("stop",{offset:"0%",className:"stop-color-first",style:this.stopColorStyle(t)}),i.default.createElement("stop",{offset:this.offsetValue,className:"stop-color-first",style:this.stopColorStyle(t)}),i.default.createElement("stop",{offset:this.offsetValue,className:"stop-color-final",style:this.stopColorStyle(r)}),i.default.createElement("stop",{offset:"100%",className:"stop-color-final",style:this.stopColorStyle(r)})))),this.renderStars)}},{key:"starRatingsStyle",get:function(){return this.props.ignoreInlineStyles?{}:{position:"relative",boxSizing:"border-box",display:"inline-block"}}},{key:"starGradientStyle",get:function(){return this.props.ignoreInlineStyles?{}:{position:"absolute",zIndex:"0",width:"0",height:"0",visibility:"hidden"}}},{key:"titleText",get:function(){var e=this.props,t=e.typeOfWidget,r=e.rating,n=this.state.highestStarHovered,i=n>0?n:r,a=parseFloat(i.toFixed(2)).toString();Number.isInteger(i)&&(a=String(i));var o=t+"s";return"1"===a&&(o=t),a+" "+o}},{key:"offsetValue",get:function(){var e=this.props.rating,t=Number.isInteger(e),r="0%";return t||(r=e.toFixed(2).split(".")[1].slice(0,2)+"%"),r}},{key:"renderStars",get:function(){var e=this,t=this.props,r=t.changeRating,n=t.rating,a=t.numberOfStars,s=t.starDimension,l=t.starSpacing,u=t.starRatedColor,c=t.starEmptyColor,d=t.starHoverColor,p=t.gradientPathName,f=t.ignoreInlineStyles,g=t.svgIconPath,h=t.svgIconViewBox,v=t.name,m=this.state.highestStarHovered;return Array.apply(null,Array(a)).map(function(t,y){var b=y+1,S=b<=n,x=b<=m,w=b===m,R=b>n&&b-1<n,C=1===b,I=b===a;return i.default.createElement(o.default,{key:b,fillId:e.fillId,changeRating:r?function(){return r(b,v)}:null,hoverOverStar:r?e.hoverOverStar(b):null,unHoverOverStar:r?e.unHoverOverStar:null,isStarred:S,isPartiallyFullStar:R,isHovered:x,hoverMode:m>0,isCurrentHoveredStar:w,isFirstStar:C,isLastStar:I,starDimension:s,starSpacing:l,starHoverColor:d,starRatedColor:u,starEmptyColor:c,gradientPathName:p,ignoreInlineStyles:f,svgIconPath:g,svgIconViewBox:h})})}}]),StarRatings}(i.default.Component);s.propTypes={rating:a.default.number.isRequired,numberOfStars:a.default.number.isRequired,changeRating:a.default.func,starHoverColor:a.default.string.isRequired,starRatedColor:a.default.string.isRequired,starEmptyColor:a.default.string.isRequired,starDimension:a.default.string.isRequired,starSpacing:a.default.string.isRequired,gradientPathName:a.default.string.isRequired,ignoreInlineStyles:a.default.bool.isRequired,svgIconPath:a.default.string.isRequired,svgIconViewBox:a.default.string.isRequired,name:a.default.string},s.defaultProps={rating:0,typeOfWidget:"Star",numberOfStars:5,changeRating:null,starHoverColor:"rgb(230, 67, 47)",starRatedColor:"rgb(109, 122, 130)",starEmptyColor:"rgb(203, 211, 227)",starDimension:"50px",starSpacing:"7px",gradientPathName:"",ignoreInlineStyles:!1,svgIconPath:"m25,1 6,17h18l-14,11 5,17-15-10-15,10 5-17-14-11h18z",svgIconViewBox:"0 0 51 48"},t.default=s},"4Ikp":function(e,t,r){"use strict";
125Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function defineProperties(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,t,r){return t&&defineProperties(e.prototype,t),r&&defineProperties(e,r),e}}(),i=_interopRequireDefault(r("+OUp")),a=_interopRequireDefault(r("TSYQ")),o=_interopRequireDefault(r("17x9"));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}var s=function(e){function Star(){return!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,Star),function(e,t){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&("object"==typeof t||"function"==typeof t)?t:e}(this,(Star.__proto__||Object.getPrototypeOf(Star)).apply(this,arguments))}return!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(Star,e),n(Star,[{key:"render",value:function(){var e=this.props,t=e.changeRating,r=e.hoverOverStar,n=e.unHoverOverStar,a=e.svgIconViewBox,o=e.svgIconPath;return i.default.createElement("div",{className:"star-container",style:this.starContainerStyle,onMouseEnter:r,onMouseLeave:n,onClick:t},i.default.createElement("svg",{viewBox:a,className:this.starClasses,style:this.starSvgStyle},i.default.createElement("path",{className:"star",style:this.pathStyle,d:o})))}},{key:"starContainerStyle",get:function(){var e=this.props,t=e.changeRating,r=e.starSpacing,n=e.isFirstStar,i=e.isLastStar;return e.ignoreInlineStyles?{}:{position:"relative",display:"inline-block",verticalAlign:"middle",paddingLeft:n?void 0:r,paddingRight:i?void 0:r,cursor:t?"pointer":void 0}}},{key:"starSvgStyle",get:function(){var e=this.props,t=e.ignoreInlineStyles,r=e.isCurrentHoveredStar,n=e.starDimension;return t?{}:{width:n,height:n,transition:"transform .2s ease-in-out",transform:r?"scale(1.1)":void 0}}},{key:"pathStyle",get:function(){var e=this.props,t=e.isStarred,r=e.isPartiallyFullStar,n=e.isHovered,i=e.hoverMode,a=e.starEmptyColor,o=e.starRatedColor,s=e.starHoverColor,l=e.gradientPathName,u=e.fillId;return e.ignoreInlineStyles?{}:{fill:i?n?s:a:r?"url('"+l+"#"+u+"')":t?o:a,transition:"fill .2s ease-in-out"}}},{key:"starClasses",get:function(){var e=this.props,t=e.isSelected,r=e.isPartiallyFullStar,n=e.isHovered,i=e.isCurrentHoveredStar,o=e.ignoreInlineStyles,s=(0,a.default)({"widget-svg":!0,"widget-selected":t,"multi-widget-selected":r,hovered:n,"current-hovered":i});return o?{}:s}}]),Star}(i.default.Component);s.propTypes={fillId:o.default.string.isRequired,changeRating:o.default.func,hoverOverStar:o.default.func,unHoverOverStar:o.default.func,isStarred:o.default.bool.isRequired,isPartiallyFullStar:o.default.bool.isRequired,isHovered:o.default.bool.isRequired,hoverMode:o.default.bool.isRequired,isCurrentHoveredStar:o.default.bool.isRequired,isFirstStar:o.default.bool.isRequired,isLastStar:o.default.bool.isRequired,starDimension:o.default.string.isRequired,starSpacing:o.default.string.isRequired,starHoverColor:o.default.string.isRequired,starRatedColor:o.default.string.isRequired,starEmptyColor:o.default.string.isRequired,gradientPathName:o.default.string.isRequired,ignoreInlineStyles:o.default.bool.isRequired,svgIconPath:o.default.string.isRequired,svgIconViewBox:o.default.string.isRequired},t.default=s},"O/o9":function(e,t,r){"use strict";r.d(t,{Wx:function(){return useInView}});var n=r("+OUp"),i=Object.defineProperty,a=new Map,o=new WeakMap,s=0,l=void 0;function useInView({threshold:e,delay:t,trackVisibility:r,rootMargin:i,root:u,triggerOnce:c,skip:d,initialInView:p,fallbackInView:f,onChange:g}={}){var h;let[v,m]=n.useState(null),y=n.useRef(),[b,S]=n.useState({inView:!!p,entry:void 0});y.current=g,n.useEffect(()=>{let n;if(!d&&v)return n=function(e,t,r={},n=l){if(void 0===window.IntersectionObserver&&void 0!==n){let i=e.getBoundingClientRect();return t(n,{isIntersecting:n,target:e,intersectionRatio:"number"==typeof r.threshold?r.threshold:0,time:0,boundingClientRect:i,intersectionRect:i,rootBounds:i}),()=>{}}let{id:i,observer:u,elements:c}=function(e){let t=Object.keys(e).sort().filter(t=>void 0!==e[t]).map(t=>{var r;return`${t}_${"root"===t?(r=e.root)?(o.has(r)||(s+=1,o.set(r,s.toString())),o.get(r)):"0":e[t]}`}).toString(),r=a.get(t);if(!r){let n;let i=new Map,o=new IntersectionObserver(t=>{t.forEach(t=>{var r;let a=t.isIntersecting&&n.some(e=>t.intersectionRatio>=e);e.trackVisibility&&void 0===t.isVisible&&(t.isVisible=a),null==(r=i.get(t.target))||r.forEach(e
125=>{e(a,t)})})},e);n=o.thresholds||(Array.isArray(e.threshold)?e.threshold:[e.threshold||0]),r={id:t,observer:o,elements:i},a.set(t,r)}return r}(r),d=c.get(e)||[];return c.has(e)||c.set(e,d),d.push(t),u.observe(e),function(){d.splice(d.indexOf(t),1),0===d.length&&(c.delete(e),u.unobserve(e)),0===c.size&&(u.disconnect(),a.delete(i))}}(v,(e,t)=>{S({inView:e,entry:t}),y.current&&y.current(e,t),t.isIntersecting&&c&&n&&(n(),n=void 0)},{root:u,rootMargin:i,threshold:e,trackVisibility:r,delay:t},f),()=>{n&&n()}},[Array.isArray(e)?e.toString():e,v,u,i,c,d,r,f,t]);let x=null==(h=b.entry)?void 0:h.target,w=n.useRef();v||!x||c||d||w.current===x||(w.current=x,S({inView:!!p,entry:void 0}));let R=[m,b.inView,b.entry];return R.ref=R[0],R.inView=R[1],R.entry=R[2],R}n.Component}}]);

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.