PageSourceSearch

https://myfave.com/_next/static/chunks/5907-a58720e3c5a5b95b.js

js myfave.com collected 2026-09-24 17:50:43 UTC 17,741 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5907],{12296:function(e,l,n){var t=n(85893),i=n(67294),a=n(57574);l.Z=e=>{let{className:l,body:n,defaultExpand:s=!1}=e,[r,o]=(0,i.useState)(s);return(0,t.jsxs)("div",{className:(0,a.cn)("text-sm",l),children:[(0,t.jsx)("p",{className:(0,a.cn)(r?"line-clamp-none max-h-full":"line-clamp-2 max-h-9"),children:n}),(0,t.jsxs)("span",{role:"button",className:"mt-1 block cursor-pointer font-semibold text-semantic-info",onClick:()=>o(!r),children:["View ",r?"less":"more"]})]})}},26628:function(e,l,n){var t=n(85893);l.Z=()=>(0,t.jsx)("article",{className:"flex h-[150px] items-center justify-center rounded-xl border p-4",children:(0,t.jsx)("div",{className:"font-semibold",children:"No reviews yet."})})},20798:function(e,l,n){var t=n(85893);n(67294);var i=n(46216),a=n(71911),s=n(30719),r=n(57574),o=n(49366),d=n(95890),c=n(17456);l.Z=e=>{let{className:l,reviews:n}=e;return(0,t.jsxs)("div",{className:(0,r.cn)("relative",l),children:[(0,t.jsx)(s.tq,{id:"reviews-sli
1der",modules:[a.Rv,a.LW,a.W_,a.Gk,a.s5],navigation:{nextEl:"#reviews-slider-next",prevEl:"#reviews-slider-prev"},direction:"horizontal",freeMode:!0,mousewheel:!0,draggable:!0,scrollbar:{draggable:!0,hide:!1,enabled:!0},spaceBetween:6,slidesPerView:n.length>1?1.2:1,children:null==n?void 0:n.map(e=>(0,t.jsx)(s.o5,{children:(0,t.jsxs)("article",{className:"rounded-xl border p-4",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsx)("span",{className:"flex",children:Array.from({length:5},(l,n)=>(0,t.jsx)(c.Z,{className:(0,r.cn)("h-4 w-4 shrink-0",e.rating>=n+1?"fill-primary text-primary":"fill-neutral-300 text-neutral-300")},n))}),(0,t.jsx)("span",{className:"text-sm",children:((null==e?void 0:e.updated_at)||(null==e?void 0:e.created_at))&&(0,i.Z)(new Date(e.updated_at||e.created_at||Date()),"dd MMM yyyy")})]}),(0,t.jsx)("div",{className:"mt-2 line-clamp-3 h-[70px] text-base",children:e.comment}),(0,t.jsx)("div",{className:"mt-2 text-xs font-bold text-muted-foreground/60",children:e.user_name||e.name})]})},(null==e?void 0:e.id)||(null==e?void 0:e.created_at)))}),n.length>1&&(0,t.jsxs)("div",{className:"absolute inset-x-0 top-1/2 hidden items-center justify-between lg:flex",children:[(0,t.jsx)("button",{id:"reviews-slider-prev",className:"absolute -left-12 flex cursor-pointer items-center justify-center rounded-full border border-border bg-background p-2 shadow-md",children:(0,t.jsx)(o.Z,{className:"h-5 w-5 fill-foreground"})}),(0,t.jsx)("button",{id:"reviews-slider-next",className:"absolute -right-12 flex cursor-pointer items-center justify-center rounded-full border border-border bg-background p-2 shadow-md",children:(0,t.jsx)(d.Z,{className:"h-5 w-5 fill-foreground"})})]})]})}},10862:function(e,l,n){n.d(l,{Z:function(){return g}});var t=n(85893);n(67294);var i=n(86501),a=n(16573),s=n(1020),r=n(46616),o=n(87385),d=n(12834),c=n(69275),u=n(83424),m=function(e){let{height:l=24,width:n=24,className:i,...a}=e;return(0,t.jsx)("svg",{viewBox:"0 0 256 256",height:l,width:n,fill:"currentColor","aria-hidden":"true",className:i,...a,children:(0,t.jsx)("path",{d:"M216,44H40A20,20,0,0,0,20,64V224A19.82,19.82,0,0,0,31.56,242.1a20.14,20.14,0,0,0,8.49,1.9,19.91,19.91,0,0,0,12.82-4.72l.19-.16L84,212H216a20,20,0,0,0,20-20V64A20,20,0,0,0,216,44Zm-4,144H82.5a20,20,0,0,0-12.87,4.69l-.19.16L44,215.14V68H212ZM84,108A12,12,0,0,1,96,96h64a12,12,0,1,1,0,24H96A12,12,0,0,1,84,108Zm0,40a12,12,0,0,1,12-12h64a12,12,0,0,1,0,24H96A12,12,0,0,1,84,148Z"})})},v=function(e){let{height:l=24,width:n=24,className:i,...a}=e;return(0,t.jsx)("svg",{viewBox:"0 0 256 256",height:l,width:n,fill:"currentColor","aria-hidden":"true",className:i,...a,children:(0,t.jsx)("path",{d:"M136.37,187.53a12,12,0,0,1,0,17l-5.94,5.94a60,60,0,0,1-84.88-84.88l24.12-24.11A60,60,0,0,1,152,99,12,12,0,1,1,136,117a36,36,0,0,0-49.37,1.47L62.53,142.55a36,36,0,0,0,50.92,50.92l5.94-5.94A12,12,0,0,1,136.37,187.53Zm74.08-142a60.09,60.09,0,0,0-84.88,0l-5.94,5.94a12,12,0,0,0,17,17l5.94-5.94a36,36,0,0,1,50.92,50.92l-24.11,24.12A36,36,0,0,1,120,139,12,12,0,1,0,104,157a60,60,0,0,0,82.3-2.43l24.12-24.11A60.09,60.09,0,0,0,210.45,45.55Z"})})},h=n(24548);let x=()=>(0,i.Am)("Copied to clipboard"),f=()=>i.Am.error("Something went wrong. Please try again later.");var g=e=>{let{isOpen:l,onClose:n,data:i}=e,{copy:g}=(0,u.Z)(),p=e=>{g(e).then(x,f),n()},j=e=>{var l,t,i;(null===(l=navigator)||void 0===l?void 0:l.userAgent.match(/ipad|ipod|iphone/i))?null===(t=window)||void 0===t||t.open("sms:&body="+e,"_self"):null===(i=window)||void 0===i||i.open("sms:?body="+e,"_self"),n()};return(0,t.jsxs)(h.u,{isOpen:l,onClose:n,showCloseButton:!0,className:"xs:max-w-xs",children:[(0,t.jsx)("h3",{className:"text-lg font-bold",children:"Share Link"}),(0,t.jsxs)("div",{className:"mx-auto mt-4 flex flex-wrap justify-center gap-4",children:[(0,t.jsx)(a.Z,{url:i.url,quote:i.description,children:(0,t.jsx)(s.Z,{size:40,round:!0})}),(0,t.jsx)(r.Z,{url:i.url,title:i.description,via:"Fave",children:(0,t.jsx)(o.Z,{size:40,round:!0})}),(0,t.jsx)(d.Z,{url:i.url,title:i.description,children:(0,t.jsx)(c.Z,{size:40,roun
1d:!0})}),(0,t.jsx)("button",{title:"copy link",className:"h-10 w-10 rounded-full bg-cyan-500",onClick:()=>p(i.url),children:(0,t.jsx)(v,{className:"m-auto h-6 w-6 fill-white"})}),(0,t.jsx)("button",{title:"send sms",className:"h-10 w-10 rounded-full bg-blue-500",onClick:()=>j(i.description),children:(0,t.jsx)(m,{className:"m-auto h-6 w-6 fill-white"})})]})]})}},4614:function(e,l,n){n.d(l,{a:function(){return m},i:function(){return d}});var t=n(85893);n(67294);var i=n(11163),a=n(2962),s=n(39814),r=n(57574),o=n(56725),d=e=>{var l;let n=(0,i.useRouter)(),d=(0,o.i2)(e.canonical||n.asPath),c="".concat(e.title," - ").concat((0,r.XR)(e.country)),u=e.description&&"".concat(e.description," - Fave ").concat(e.country);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(a.PB,{...e,title:c,description:u,canonical:d,twitter:{handle:"@fave_malaysia",site:"@fave_malaysia",cardType:"summary_large_image"},openGraph:{type:"website",locale:e.locale||"en_IE",url:d,siteName:"myFave",title:c,description:u,images:[{url:null!==(l=e.banner)&&void 0!==l?l:"".concat(s.z3,"/banner.png"),width:1200,height:627,alt:c+" Fave"}]},additionalMetaTags:[...e.keywords?[{name:"keywords",content:e.keywords.join(", ")}]:[]]}),e.breadcrumbs&&e.breadcrumbs.length>0&&(0,t.jsx)(a.gR,{itemListElements:e.breadcrumbs})]})},c=n(29422),u=n(46216),m=e=>{var l,n;let{data:s}=e,d=(0,i.useRouter)(),m=(0,o.i2)(d.asPath),v="".concat(s.name," - ").concat((0,r.XR)(s.country)),h="".concat(s.outlet.company.description," - Fave ").concat((0,r.XR)(s.country));return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(a.PB,{title:v,description:h,canonical:m,twitter:{handle:"@fave_malaysia",site:"@fave_malaysia",cardType:"summary_large_image"},openGraph:{type:"website",locale:s.locale||"en_IE",url:m,siteName:"myFave",title:v,description:h,images:[{url:null!==(l=s.featured_image)&&void 0!==l?l:"",width:1200,height:627,alt:v}]},additionalMetaTags:[...s.outlet.company.tags?[{name:"keywords",content:s.outlet.company.tags.join(", ")}]:[]]}),(0,t.jsx)(a.Qb,{productName:s.name,description:h,images:[null!==(n=s.featured_image)&&void 0!==n?n:""],manufacturerLogo:s.outlet.company.logo,brand:"myFave",...s.outlet.company.rating?{aggregateRating:{ratingValue:s.outlet.company.rating}}:{},offers:[{price:Number(s.discounted_price.replace(/[^\d.-]/g,"")),priceCurrency:s.currency,priceValidUntil:(0,u.Z)((0,c.Z)(new Date,{months:6}),"yyyy-MM-dd"),itemCondition:"https://schema.org/UsedCondition",availability:"https://schema.org/InStock",url:m,seller:{name:"myFave"}}]})]})}},16544:function(e,l,n){var t=n(85893),i=n(57574);l.Z=e=>{let{isLoading:l=!0,className:n}=e;return(0,t.jsxs)("article",{className:(0,i.cn)("relative flex flex-col overflow-hidden rounded-xl border border-neutral-200",n),children:[(0,t.jsx)("div",{className:"relative flex h-[150px] flex-col bg-neutral-200"}),(0,t.jsx)("div",{className:(0,i.cn)("absolute inset-0",{"overflow-hidden before:absolute before:inset-0 before:-translate-x-full before:animate-shimmer before:bg-gradient-to-r before:from-transparent before:via-white/30 before:to-transparent":l})})]})}},17990:function(e,l,n){n.d(l,{aY:function(){return o},U4:function(){return b},VS:function(){return N},Bo:function(){return v}});var t=n(85893);n(67294);var i=n(11163),a=n(57760),s=n(5275),r=n(16340),o=e=>{let{className:l,companyName:n,companyId:o}=e,d=(0,i.useRouter)(),{countryCode:c}=d.query,{results:u,isLoadingMore:m,isReachingEnd:v,setSize:h,isEmpty:x,size:f}=(0,s.Xp)({companyId:o,limit:8}),{baseElementRef:g}=(0,a.Z)({hasMore:!v,idle:m,onLoadMore:()=>h(f+1)});return(0,t.jsxs)("section",{id:"offers",className:l,children:[(0,t.jsx)("h3",{className:"line-clamp-1 text-lg font-extrabold",children:u.length>1?"Deals in ".concat(n):"Deal in ".concat(n)}),(0,t.jsxs)("div",{className:"mt-6",children:[(0,t.jsxs)("div",{className:"grid grid-cols-2 gap-4 sm:grid-cols-4",children:[c&&u.map(e=>(0,t.jsx)(r.Z,{data:e,countryCode:c},e.id)),m?Array(8).fill("a").map((e,l)=>(0,t.jsx)(r.x,{},l)):null]}),(0,t.jsx)("span",{id:"intersection-check",ref:g}),v&&!x&&(0,t.jsx)("div",{className:"my-6 text-center text-base font-bold",children:"End of results."})]})]})},d=n(57574),c=n(52739),u=n(17456),m=n(30512),v=e=>{var l;let{className:n,data:i,reviewsCount:a,onViewOutletsClick:s}=e;return(0,t.jsxs)("div",{className:(0,d.cn)("h-full w-full rounded-xl border bg-white p-4 shadow-sm",n
1),children:[(0,t.jsxs)("div",{className:"flex items-center",children:[(0,t.jsx)("span",{className:"h-14 w-14 shrink-0 overflow-hidden rounded-lg border bg-light-branding",children:(0,t.jsx)(m.Z,{src:(null==i?void 0:i.logo)||"/images/default-logo.jpg",alt:null==i?void 0:i.name,width:56,height:56})}),(0,t.jsxs)("div",{className:"ml-4 overflow-hidden",children:[(0,t.jsx)("h2",{className:"truncate text-base font-semibold",children:null==i?void 0:i.name}),(0,t.jsx)("div",{className:"truncate text-sm font-normal text-muted-foreground",children:i.website&&(0,t.jsx)("a",{href:i.website,target:"_blank",rel:"nofollow",className:"underline",children:"Visit website"})})]})]}),(0,t.jsx)("div",{id:"separator",className:"my-5 h-px bg-border"}),(0,t.jsxs)("div",{className:"mt-4 flex items-center space-x-2 text-sm font-medium",children:[((null==i?void 0:i.rating)||0)>0&&(0,t.jsxs)("div",{className:"flex items-center font-extrabold text-primary",children:[(0,t.jsx)(u.Z,{className:"mr-1 shrink-0 text-primary"}),(0,t.jsx)("span",{children:null==i?void 0:null===(l=i.rating)||void 0===l?void 0:l.toPrecision(2)})]}),(a||0)>0&&(0,t.jsx)("a",{className:"underline decoration-from-font underline-offset-2",href:"#reviews",children:"(".concat(a," Reviews)")})]}),(0,t.jsx)(c.zx,{onClick:s,fullWidth:!0,className:"mt-6",children:"View all locations"})]})},h=n(41664),x=n.n(h),f=n(54050),g=n(11201),p=n(24548),j=n(60605),b=e=>{let{outletId:l=null,isOpen:n=!1,onClose:i}=e,{city:r}=(0,g.qR)(),{results:o,isLoadingMore:d,isReachingEnd:c,isEmpty:u,size:m,setSize:v}=(0,s.vc)({id:n?l:null,limit:10}),{baseElementRef:h}=(0,a.Z)({hasMore:!c,idle:d,onLoadMore:()=>v(m+1)});return(0,t.jsx)(p.u,{isOpen:n,onClose:i,showCloseButton:!0,className:"h-[500px] transition-all xs:max-w-md md:w-[448px]",children:(0,t.jsxs)(f.h,{onChange:e=>{i()},children:[(0,t.jsx)("h3",{className:"truncate text-lg font-extrabold",children:"Available locations"}),(0,t.jsx)("div",{className:"relative",children:(0,t.jsxs)(f.h.Options,{className:"mt-4 max-h-[380px] w-full overflow-auto focus:outline-none sm:text-sm",static:!0,children:[u&&!d&&(null==o?void 0:o.length)===0?(0,t.jsx)("div",{className:"relative cursor-default select-none px-4 py-2 text-sm",children:"Nothing found."}):(null==o?void 0:o.length)>0&&(null==o?void 0:o.map(e=>{var l;return(0,t.jsxs)(f.h.Option,{value:e,children:[(0,t.jsx)(x(),{href:"/".concat(null==r?void 0:r.country_code,"/partners/").concat(null==e?void 0:null===(l=e.company)||void 0===l?void 0:l.slug,"/").concat(null==e?void 0:e.slug),prefetch:!1,onClick:i,children:(0,t.jsx)(j.Z,{data:e,className:"px-0 py-0"})}),(0,t.jsx)("div",{id:"separator",className:"my-4 h-px bg-neutral-200"})]},e.id)})),d?(0,t.jsx)(j.x,{}):null,(0,t.jsx)("span",{id:"intersection-check",ref:h}),c&&!u&&(0,t.jsx)("div",{className:"my-2 text-center text-sm font-bold",children:"End of results."})]})})]})})},w=n(15657),y=n(3371),N=e=>{let{isOpen:l,onClose:n,slug:i,className:r}=e,{reviews:o,isLoadingMore:c,isEmpty:u,isReachingEnd:m,size:v,setSize:h}=(0,s.rs)({page_type:"view_all",slug:i,limit:10}),{baseElementRef:x}=(0,a.Z)({hasMore:!m,idle:c,onLoadMore:()=>h(v+1)});return(0,t.jsxs)(p.u,{isOpen:l,onClose:n,showCloseButton:!0,className:(0,d.cn)("xs:max-w-md md:max-w-4xl",r),children:[(0,t.jsx)("h3",{className:"text-xl font-extrabold md:hidden",children:"Reviews"}),(0,t.jsx)("div",{className:"flex flex-col md:items-start md:gap-8 lg:flex-row",children:(0,t.jsxs)("div",{className:"w-full",children:[(0,t.jsx)("h3",{className:"mb-2 hidden text-2xl font-extrabold lg:block",children:"Reviews"}),(0,t.jsxs)("div",{className:"mt-6 space-y-4 md:mt-0 md:max-h-96 md:overflow-y-auto lg:min-w-[340px]",children:[u&&!c&&(null==o?void 0:o.length)===0?(0,t.jsx)("div",{className:"relative cursor-default select-none px-4 py-2 text-center text-sm",children:"No reviews."}):(null==o?void 0:o.length)>0&&(null==o?void 0:o.map(e=>(0,t.jsx)(y.Z,{className:"mr-2 border-b pb-4",comment:e.comment,rating:e.rating,updated_at:e.created_at,user_name:e.name},e.created_at))),c?(0,t.jsx)(w.Z,{className:"mx-auto mt-4"}):null,(0,t.jsx)("span",{id:"intersection-check",ref:x}),m&&!u&&(0,t.jsx)("div",{className:"my-2 text-center text-sm font-bold",children:"End of results."})]})]})})]})}},5275:function(e,l,n){n.d(l,{Cq:function(){return r},Xp:function(){return c},rs:function(){return o},vc:function(){return d}});var t=n(95591),i=n(44593),a=n(25598),s=n(11201);function r(e,l){var n,i,r;let{city:o,place:d}=(0,s.qR)(),[c,u]=(null==o?void 0:o.coordinates)?null==o?void 0:null===(n=o.coordinates)||void 0===n?void 0:n.split(", "):["",""],{slug:m,...v}=e;return(0,t.ZP)(o&&m?"/v5/".concat(null==o?void 0:o.country_code,"/companies/").concat(m).concat((0,a.V)({city_id:o.slug,latitude:null!==(i=null==d?void 0:d.latitude)&&void 0!==i?i:c,longitude:null!==(r=null==d?void 0:d.longitude)&&void 0!==r?r:u,...v})):void 0,{revalidateIfStale:!1,...l})}function o(e,l){var n,t,r,o,d,c,u,m,v;let{city:h}=(0,s.qR)(),{limit:x,slug:f,...g}=e,p=null!=x?x:10,{data:j,size:b,setSize:w,isValidating:y,isLoading:N}=(0,i.ZP)((e,l)=>l&&!l.reviews.length?null:h&&f?"/v5/".concat(null==h?void 0:h.country_code,"/companies/").concat(f,"/reviews").concat((0,a.V)({city_id:h.slug,limit:p,page:e+1,...g})):void 0,{revalidateIfStale:!1,revalidateFirstPage:!1,...l}),_=null!==(o=null==j?void 0:j.reduce((e,l)=>[...e,...l.reviews],[]))&&void 0!==o?o:[],Z=null!==(d=N||b>0&&j&&void 0===j[b-1])&&void 0!==d&&d,k=(null==j?void 0:null===(n=j[0])||void 0===n?void 0:n.reviews.length)===0,C=null!==(u=k||j&&(null===(t=j[j.length-1])||void 0===t?void 0:t.reviews.length)<p)&&void 0!==u&&u,M=null!==(m=y&&j&&j.length===b)&&void 0!==m&&m;return{reviews:_,reviewsCount:null!==(v=null==j?void 0:null===(r=j[0])||void 0===r?void 0:r.total_count)&&void 0!==v?v:0,size:b,setSize:w,isLoadingMore:Z,isReachingEnd:C,isEmpty:k,isRefreshing:M}}function d(e,l){var n,t,r,o,d,c,u,m;let{city:v,place:h}=(0,s.qR)(),[x,f]=(null==v?void 0:v.coordinates)?null==v?void 0:null===(n=v.coordinates)||void 0===n?void 0:n.split(", "):["",""],{id:g,limit:p,...j}=e,b=null!=p?p:10,{data:w,size:y,setSize:N,isValidating:_,isLoading:Z}=(0,i.ZP)((e,l)=>{var n,t;return l&&!l.outlets.length?null:v&&g?"/v5/".concat(null==v?void 0:v.country_code,"/companies/").concat(g,"/outlets").concat((0,a.V)({city_id:v.slug,latitude:null!==(n=null==h?void 0:h.latitude)&&void 0!==n?n:x,longitude:null!==(t=null==h?void 0:h.longitude)&&void 0!==t?t:f,limit:b,page:e+1,...j})):void 0},{revalidateIfStale:!1,revalidateFirstPage:!1,...l}),k=null!==(o=null==w?void 0:w.reduce((e,l)=>[...e,...l.outlets],[]))&&void 0!==o?o:[],C=null!==(d=Z||y>0&&w&&void 0===w[y-1])&&void 0!==d&&d,M=(null==w?void 0:null===(t=w[0])||void 0===t?void 0:t.outlets.length)===0,R=null!==(u=M||w&&(null===(r=w[w.length-1])||void 0===r?void 0:r.outlets.length)<b)&&void 0!==u&&u,A=null!==(m=_&&w&&w.length===y)&&void 0!==m&&m;return{results:k,size:y,setSize:N,isLoadingMore:C,isReachingEnd:R,isEmpty:M,isRefreshing:A}}function c(e,l){var n,t,r,o,d,c,u,m,v;let h=null!==(o=null==e?void 0:e.limit)&&void 0!==o?o:10,{city:x,place:f}=(0,s.qR)(),[g,p]=(null==x?void 0:x.coordinates)?null==x?void 0:null===(n=x.coordinates)||void 0===n?void 0:n.split(", "):["",""],{companyId:j,...b}=e,{data:w,size:y,setSize:N,isValidating:_,isLoading:Z}=(0,i.ZP)((e,l)=>{var n,t;return l&&!l.deals.length?null:x&&j?"/v5/".concat(null==x?void 0:x.country_code,"/companies/").concat(j,"/deals").concat((0,a.V)({city_id:x.slug,latitude:null!==(n=null==f?void 0:f.latitude)&&void 0!==n?n:g,longitude:null!==(t=null==f?void 0:f.longitude)&&void 0!==t?t:p,limit:h,page:e+1,...b})):void 0},{revalidateIfStale:!1,revalidateFirstPage:!1,...l}),k=null!==(d=null==w?void 0:w.reduce((e,l)=>[...e,...l.deals],[]))&&void 0!==d?d:[],C=null!==(c=Z||y>0&&w&&void 0===w[y-1])&&void 0!==c&&c,M=(null==w?void 0:null===(t=w[0])||void 0===t?void 0:t.deal
1s.length)===0,R=null!==(m=M||w&&(null===(r=w[w.length-1])||void 0===r?void 0:r.deals.length)<h)&&void 0!==m&&m,A=null!==(v=_&&w&&w.length===y)&&void 0!==v&&v;return{results:k,size:y,setSize:N,isLoadingMore:C,isReachingEnd:R,isEmpty:M,isRefreshing:A}}n(56948)},86637:function(e,l,n){n.d(l,{Q:function(){return t}});function t(e){window.fbq&&window.fbq("track","ViewContent",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.