PageSourceSearch

https://www.medigoapp.com/_next/static/chunks/pages/khuyen-mai/deal-ngap-troi-a9d3fb1cdd01940c0e81.js

js medigoapp.com collected 2026-09-24 10:56:55 UTC 9,232 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1119],{55918:function(t,e,n){"use strict";n.r(e),n.d(e,{__N_SSP:function(){return b},default:function(){return _}});var i=n(67294),o=n(74177),r=n(8971),a=n(10654),l=n(59845),c=n(77247),u=n(85893),s=function(t){var e=t.data,n=t.sectionName,o=(0,i.useState)(!1),s=o[0],d=o[1],m=(e||[]).filter(Boolean),v=s?m:m.slice(0,6),w=m.length>6&&!s,f=function(){(0,c.US)("campaign_promotion_2025",{event_type:"t_product_item",event_value:"product_item_".concat(n)})};return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)("div",{className:(0,a.cn)("tw-grid tw-grid-cols-2 md:tw-grid-cols-6 md:tw-gap-4 tw-gap-3 tw-w-full tw-mt-3 tw-mb-3 md:tw-mb-5",w&&"tw-mb-0"),children:v.map((function(t,e){var n;return(0,u.jsx)(l.d1,{product:t,onClick:f},null!==(n=null===t||void 0===t?void 0:t.id)&&void 0!==n?n:e)}))}),w&&(0,u.jsxs)("button",{type:"button",onClick:function(){d(!0)},className:"tw-flex tw-items-center tw-gap-2 tw-text-primary tw-p-2 tw-justify-center tw-mx-auto tw-mt-3 tw-text-base tw-font-semibold tw-mb-3 md:tw-mb-5",children:["Xem th\xeam",(0,u.jsx)(r.Z,{})]})]})},d=n(13742),m=function(t){var e=t.node,n=t.source,o=t.activeCategory,r=t.statusbarHeight;if(!e.mContent||0===e.mContent.length)return null;var l="medigo_mobile_app"===n,c=(0,i.useState)(!1),s=c[0],m=c[1],v=(0,i.useRef)(null);return(0,i.useEffect)((function(){var t;if(l&&v.current){var e=56*window.innerWidth/39-44,n=document.createElement("div");n.style.position="absolute",n.style.top="".concat(e,"px"),n.style.left="0",n.style.width="1px",n.style.height="1px",n.style.pointerEvents="none",null===(t=v.current.parentNode)||void 0===t||t.insertBefore(n,v.current);var i=new IntersectionObserver((function(t){var e=t[0];m(!e.isIntersecting)}),{rootMargin:"0px",threshold:0});return i.observe(n),function(){i.disconnect(),n.remove()}}}),[l,r]),(0,u.jsxs)(u.Fragment,{children:[l&&s&&(0,u.jsx)("div",{style:{height:(r||0)+4,zIndex:1},className:"tw-top-0 tw-fixed tw-w-full tw-bg-primary"}),(0,u.jsx)("div",{ref:v,className:(0,a.cn)("tw-sticky-cate-campaign-cheapest-2025 tw-bg-primary tw-h-14 tw-flex tw-items-center tw-overflow-x-auto tw-scrollbar-hidden tw-mb-3 md:tw-mb-5"),style:{top:l?"".concat(r||0,"px"):void 0},children:(0,u.jsx)("div",{className:"tw-flex tw-items-center tw-gap-2 tw-justify-center tw-w-max md:tw-w-7xl tw-mx-auto tw-px-3 md:tw-px-0",children:e.mContent.map((function(t,e){var n=(t.mLink||"").replace("#",""),i=o&&n&&o===n;return(0,u.jsx)("div",{className:"tw-w-max",children:(0,u.jsxs)("a",{href:t.mLink,className:(0,a.cn)("tw-w-fit tw-h-8 tw-flex tw-items-center tw-justify-center tw-gap-1 tw-text-foreground tw-border tw-rounded-full tw-border-neutral-50 tw-px-3 tw-bg-white",i&&"tw-text-primary tw-font-semibold tw-border-primary"),children:[i&&(0,u.jsx)(d.Z,{size:16,strokeWidth:1.5}),t.mTitle]})},"btn-".concat(n||e))}))})})]})},v=function t(e){var n,i=e.node,r=e.visitedNodes,a=void 0===r?new WeakSet:r,l=e.activeCategory,c=e.source,d=e.statusbarHeight,v=e.sectionId;if(a.has(i))return null;if(a.add(i),function(t){return"section"===t.mType}(i))return i.mChildren&&0!==i.mChildren.length?(0,u.jsx)("section",{id:null===(n=i.mOptions)||void 0===n?void 0:n.mId,className:"tw-w-full tw-px-3 md:tw-px-4 tw-mx-auto md:tw-w-7xl",children:i.mChildren.map((function(e,n){var o;return(0,u.jsx)(t,{node:e,sectionId:null===(o=i.mOptions)||void 0===o?void 0:o.mId,visitedNodes:a,activeCategory:l,source:c,statusbarHeight:d},"section-".concat(n))}))}):null;if(function(t){return"row"===t.mType}(i))return i.mChildren&&0!==i.mChildren.length?(0,u.jsx)(u.Fragment,{children:i.mChildren.map((function(e,n){return(0,u.jsx)(t,{node:e,visitedNodes:a,activeCategory:l,sectionId:v,source:c,statusbarHeight:d},"row-".concat(n))}))}):null;if(function(t){return"image"===t.mType||"mImage"===t.mType}(i)){var w,f,p,h,g,x;if(!i.mContent||0===i.mContent.length)return null;var b=null!==(w=null===(f=i.mOptions)||void 0===f?void 0:f.mWidth)&&void 0!==w?w:1440,_=null!==(p=null===(h=i.mOptions)||void 0===h?void 0:h.mHeight)&&void 0!==p?p:400,y=null!==(g=null===(x=i.mOptions)||void 0===x?void 0:x.mAlt)&&void 0!==g?g:"image";return(0,u.jsx)(u.Fragment,{children:i.mContent.map((function(t,e){var n;return(0,u.jsx)(o.Ee,{priority:!0,src:null!==(n=null===t||void 0===t?void 0:t.mImageUrl)&&void 0!==n?n:"",alt:t.mTitle||y,objectFit:"cover",sizes:" (max-width: 640px) 100v
1w, (max-width: 768px) 100vw, (max-width: 1024px) 100vw, (max-width: 1280px) 100vw, (max-width: 1536px) 100vw, 100vw ",width:b,height:_},"img-".concat((null===t||void 0===t?void 0:t.mImageUrl)||e))}))})}return function(t){return"button_group"===t.mType}(i)?i.mContent&&0!==i.mContent.length?(0,u.jsx)(m,{node:i,source:c,activeCategory:l,statusbarHeight:d}):null:function(t){return"product_manual_list"===t.mType}(i)?i.mContent&&0!==i.mContent.length?(0,u.jsx)(s,{data:i.mContent,sectionName:null!==v&&void 0!==v?v:""}):null:i.mChildren&&i.mChildren.length>0?(0,u.jsx)(u.Fragment,{children:i.mChildren.map((function(e,n){return(0,u.jsx)(t,{node:e,visitedNodes:a,activeCategory:l,source:c,statusbarHeight:d,sectionId:v},"".concat(e.mType,"-").concat(n))}))}):null},w=function(t){var e=t.data,n=t.activeCategory,i=t.source,o=t.statusbarHeight;return(0,u.jsx)(v,{node:e.mContent,activeCategory:n,source:i,statusbarHeight:o})},f=n(9008),p=n(81094),h=n(99266),g=n(12070),x="medigo_mobile_app",b=!0;function _(t){var e,n,o,r,s,d,m=t.pageData,v=t.referer,b=(0,i.useState)(""),_=b[0],y=b[1],j=(0,i.useState)(!1),C=j[0],N=(j[1],(0,i.useRef)(null)),E=(0,p.Kx)().query,I=null!==(e=null===E||void 0===E?void 0:E.m_source)&&void 0!==e?e:"",T=null!==(n=null===E||void 0===E?void 0:E.utm_source)&&void 0!==n?n:"",k=null!==(o=null===E||void 0===E?void 0:E.utm_medium)&&void 0!==o?o:"",S=null!==(r=null===E||void 0===E?void 0:E.utm_campaign)&&void 0!==r?r:"",H=Number(null===E||void 0===E?void 0:E.m_statusbar_height)||40;return(0,i.useEffect)((function(){var t;(0,c.US)("medigo_taxonomy_seo_tracking_spec",{page_category:g.ou.GENERAL,content_type:g.Bt.LANDING,intent:g.l3.BROWSE}),(0,c.US)("screen_view",{firebase_screen:p.J2.campaign_promotion_2025,source:I}),T&&(0,c.US)("campaign_promotion_2025",{event_type:"campaign_utm",event_value:"utm_".concat(T,"_").concat(k,"_").concat(S)});var e=null===(t=document)||void 0===t?void 0:t.referrer;(v||e)&&(0,c.US)("campaign_promotion_2025",{event_type:"access_page",event_value:"referer_".concat(v||e)})}),[]),(0,i.useEffect)((function(){var t=window.innerWidth<768?270:150,e=new IntersectionObserver((function(e){var n;if(!C){var i=null===(n=e.filter((function(t){return t.isIntersecting})).map((function(t){return{id:t.target.id,ratio:t.intersectionRatio,boundingRect:t.boundingClientRect}})).sort((function(e,n){var i=e.boundingRect.top,o=n.boundingRect.top,r=Math.abs(i-t),a=Math.abs(o-t);return r===a?n.ratio-e.ratio:r-a}))[0])||void 0===n?void 0:n.id;i&&(N.current&&clearTimeout(N.current),N.current=setTimeout((function(){y((function(t){return t===i?t:i}))}),200))}}),{threshold:[0,.1,.2,.3,.4,.5,.6,.7,.8,.9,1],rootMargin:"-".concat(t,"px 0px -").concat(Math.max(0,window.innerHeight-t-1),"px 0px")});return["section-1","section-2","section-3"].forEach((function(t){var n=document.getElementById(t);n&&e.observe(n)})),function(){e.disconnect(),N.current&&clearTimeout(N.current)}}),[C]),(0,i.useEffect)((function(){return document.documentElement.style.overflow="visible",document.body.style.overflowX="visible",function(){document.documentElement.style.overflow="auto",document.body.style.overflowX="hidden"}}),[]),(0,i.useEffect)((function(){var t=document.documentElement,e=document.body,n=function(){"visible"!==t.style.overflow&&(t.style.overflow="visible"),"visible"!==e.style.overflowX&&(e.style.overflowX="visible")};n();var i=new MutationObserver((function(){n()}));return i.observe(t,{attributes:!0,attributeFilter:["style"]}),i.observe(e,{attributes:!0,attributeFilter:["style"]}),function(){i.disconnect()}}),[]),(0,u.jsxs)(u.Fragment,{children:[(0,u.jsxs)(f.default,{children:[(null===m||void 0===m?void 0:m.mTitle)&&(0,u.jsx)("title",{children:null===m||void 0===m?void 0:m.mTitle}),(0,h.iQ)((null===m||void 0===m?void 0:m.mMeta)||{}),(0,u.jsx)("style",{dangerouslySetInnerHTML:{__html:"\n                        .tw-page-specific-colors {\n                            ".concat((0,c._l)(null===m||void 0===m||null===(s=m.mExtraData)||void 0===s?void 0:s.mColors),"\n                        }\n                    ")}})]}
1),(0,u.jsxs)("div",{className:"tw-bg-secondary-100 tw-app-content",style:{backgroundColor:(null===m||void 0===m||null===(d=m.mExtraData)||void 0===d?void 0:d.mBackgroundColor)||"hsl(var(--color-secondary-100) / 1)"},children:[I!==x&&(0,u.jsx)(l.h4,{}),(0,u.jsx)("div",{className:(0,a.cn)("tw-overflow-x-visible tw-relative tw-page-specific-colors",I===x?"tw-mt-0":"tw-mt-24 md:tw-mt-0"),children:(0,u.jsx)(w,{data:m,activeCategory:_,source:I,statusbarHeight:H})}),I!==x&&(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(l.h0,{}),(0,u.jsx)(l.$_,{})]})]})]})}},37432:function(t,e,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/khuyen-mai/deal-ngap-troi",function(){return n(55918)}])}},function(t){t.O(0,[9774,2888,179],(function(){return e=37432,t(t.s=e);var e}));var e=t.O();_N_E=e}]);

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.