"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9084,1582],{31582:function(e,o,t){t.d(o,{Ct:function(){return Badge},Kx:function(){return TextArea},Me:function(){return MantineProvider},fz:function(){return LoadingOverlay},o_:function(){return Spoiler}});var n=t(74706),r=t(54576),a=t(67294),l=t(57264),i=t(64761),s=t(17789),c=t(47834),d=t(49737),u=t(15184),v=t(39238),m=t(22806);t(10166),t(50238),t(47856),t(27484);let MantineProvider=e=>{var{children:o,locale:t,template:r="hb"}=e,s=(0,l._)(e,["children","locale","template"]);return(0,m.u)(t),a.createElement(i.Me,Object.assign({theme:(0,n.j)(t,r)},s),o)},TextArea=e=>a.createElement(n.k,Object.assign({minRows:2,maxRows:4},e)),Badge=e=>{var{color:o=u.t.colors.primaryBase,styles:t}=e,n=(0,l._)(e,["color","styles"]);return a.createElement(s.C,Object.assign({variant:"filled",color:o,styles:Object.assign({root:{borderRadius:"2px",background:o,textTransform:"unset"}},t)},n))},Spoiler=e=>{var{children:o,line:t,lineHeight:n,trackingAttributes:i,maxHeight:s,customExpandFn:d}=e,m=(0,l._)(e,["children","line","lineHeight","trackingAttributes","maxHeight","customExpandFn"]);let{t:p}=(0,v.u)(),f=(0,a.useMemo)(()=>s||(t&&n?t*n:(console.error("[HHG-Comp]:[Spoiler] Please provide maxHeight, or line with lineHeight"),0)),[]);o||console.error("[HHG-Comp]:[Spoiler] Please provide children");let b=(0,a.useMemo)(()=>i?{"data-event-category":i.dataEventCategory,"data-event-action":i.dataEventAction,"data-event-label":i.dataEventLabel}:{},[i]);return a.createElement(c.o,Object.assign({showLabel:a.createElement(r.T,Object.assign({size:"p3",color:u.t.colors.primaryBase},b,{onClick:d}),p("articlePage.readMore")),hideLabel:a.createElement(r.T,Object.assign({size:"p3",color:u.t.colors.primaryBase},b),p("articlePage.showLess"))},m,{maxHeight:f}),o)},LoadingOverlay=e=>(!function(e=!1){a.useEffect(()=>{if(e){let e=window.getComputedStyle(document.body).overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=e}}},[e])}(e.visible),a.createElement(d.f,Object.assign({loaderProps:{color:u.t.colors.primaryBase}},e)))},39238:function(e,o,t){t.d(o,{u:function(){return useTranslations}});var n=t(67294),r=t(96536),a=t(47856),l=t.n(a);function useTranslations(){let{values:e,locale:o}=(0,n.useContext)(r.T)||{locale:"en-PH"};return(0,n.useMemo)(()=>({t:(t,n)=>e?e[t]?n?l()(e[t]||t,n):e[t]||t:(console.warn(`[useTranslations] Missing translation for key ${t} and locale ${o}`),n?l()(t,n):t):(console.error("[useTranslations] t method called before translation values are loaded"),t),locale:o}),[e,o])}},49084:function(e,o,t){t.r(o),t.d(o,{AppMantineProvider:function(){return AppMantineProvider}});var n=t(35944),r=t(74706),a=t(31582),l=t(95386);let AppMantineProvider=e=>{let{children:o,customComponentTheme:t}=e,{locale:i}=(0,l.h)(),s=(0,r.j)(i,"hb"),c=t&&JSON.parse(t),d={};return Object.keys(c||{}).map(e=>{var o,t,n,r,a,l,i;d[e]={...null===(o=s.components)||void 0===o?void 0:o[e],styles:{...null===(n=s.components)||void 0===n?void 0:null===(t=n[e])||void 0===t?void 0:t.styles,...null==c?void 0:null===(r=c[e])||void 0===r?void 0:r.styles},defaultProps:{...null===(l=s.components)||void 0===l?void 0:null===(a=l[e])||void 0===a?void 0:a.defaultProps,...null==c?void 0:null===(i=c[e])||void 0===i?void 0:i.defaultProps}}}),(0,n.tZ)(a.Me,{locale:i,emotionCache:r.o,template:"hb",theme:{...s,colors:{...s.colors,...(null==c?void 0:c.colors)||{}},components:{...s.components,...d}},children:o})}}}]);