PageSourceSearch

https://sugary.me/_next/static/chunks/1883-29ad1a14e5467b0b.js

js sugary.me collected 2026-10-01 14:20:32 UTC 16,488 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1883],{4474:(e,t,s)=>{s.d(t,{$:()=>o,r:()=>n});var a=s(95155);s(12115);var r=s(42442),i=s(18460),l=s(91337);let n=(0,i.F)("cursor-pointer inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg_secondary text-secondary-foreground hover:bg_secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9","icon-sm":"size-8","icon-lg":"size-10"}},defaultVariants:{variant:"default",size:"default"}});function o({className:e,variant:t,size:s,asChild:i=!1,...c}){let d=i?r.DX:"button";return(0,a.jsx)(d,{"data-slot":"button",className:(0,l.cn)(n({variant:t,size:s,className:e})),...c})}},14921:(e,t,s)=>{s.d(t,{CommonSchema:()=>c});var a=s(11697),r=s(41455),i=s(71946),l=s(33071),n=s(68054),o=s(74952);function c({canonicalDomainKey:e}={}){let t=(0,r.a8)()??"/",s=(0,a.Ym)(),d=e?n.EH[e].baseUrl:void 0,x=(0,n.qw)((0,r.Hm)({href:t,locale:s}),d),m={"@context":"https://schema.org","@type":"WebPage","@id":`${x}#webpage`,url:x,isPartOf:o.uB,about:o.aj},u=(0,l.V8)(t),h=[m,(0,l.aX)(x,u,d),o.uB];return(0,i.m)({graph:h})}},42948:(e,t,s)=>{s.d(t,{BlogsListView:()=>$});var a=s(95155),r=s(12115),i=s(74937),l=s(52760),n=s(89878),o=s(84980),c=s(81566);function d({article:e,inRefId:t}){let s=(0,n.j)(e.Id,e.Title),r=(0,l.X)(e.CoverPhotoPath,"lg")||"",x=e.Category.split("#")[0];return(0,a.jsxs)(c.TrackingLink,{inRefId:t,href:`/blog/${s}`,className:"group flex flex-col md:flex-row gap-8 lg:gap-12 transition-all duration-300 mb-16 md:mb-12",children:[(0,a.jsxs)("div",{className:"relative w-full md:w-[45%] lg:w-[35%] xl:w-[30%] aspect-[4/3] md:aspect-square lg:aspect-video overflow-hidden rounded-[28px] shrink-0",children:[(0,a.jsx)(i.A,{src:r,alt:e.CoverAlt||e.Title,fill:!0,className:"object-cover transform transition-transform duration-700 group-hover:scale-105",sizes:"(max-width: 768px) 100vw, (max-width: 1024px) 45vw, (max-width: 1280px) 35vw, 25vw",priority:!0,loading:"eager"}),(0,a.jsx)("div",{className:"absolute top-6 left-6 bg-black/40 backdrop-blur-md px-4 py-2 rounded-[14px] text-sm font-semibold text-white/90 z-10",children:x})]}),(0,a.jsxs)("div",{className:"flex flex-col justify-center space-y-6",children:[(0,a.jsx)("h1",{className:"text-3xl md:text-4xl font-bold  leading-[1.2] text-white tracking-tight transition-colors font-montas",children:e.Title}),(0,a.jsx)("p",{className:"text_gray_50 text-lg",children:e.TextPreview}),(0,a.jsxs)("div",{className:"flex items-center gap-8 text-[15px] font-medium pt-4",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2.5 text-gray-600",children:[(0,a.jsx)(o.A,{className:"w-5 h-5 flex-shrink-0","aria-label":"clock icon"}),(0,a.jsxs)("span",{children:[e.ReadMinute," min read"]})]}),(0,a.jsxs)("div",{className:"flex items-center gap-2.5 text-gray-500",children:[(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",className:"w-5 h-5 flex-shrink-0",children:[(0,a.jsx)("path",{d:"M12 20h9"}),(0,a.jsx)("path",{d:"M16.5 3.5a2.12 2.12 0 0 1 3 3L7 19l-4 1 1-4Z"})]}),(0,a.jsxs)("span",{children:["Written by ",e.Author?.Name||"unknown"]})]})]})]})]})}var x=s(75346),m=s(33650),u=s(66088),h=s(94514),g=s(9921),p=s(91337);function f({...e}){return(0,a.jsx)(m.bL,{"data-slot":"select",...e})}function v({...e}){return(0,a.jsx)(m.WT,{"data-slot":"select-value",...e})}function b({className:e,size:t="default",children:s,...r}){return(0,a.jsxs)(m.l9,{"data-slot":"select-trigger","data-size":t,className:(0,p.cn)("border-input data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:hover:bg-input/50 flex w-fit items-center justify-between gap-2 rounded-md border bg-background px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...r,children:[s,(0,a.jsx)(m.In,{asChild:!0,children:(0,a.jsx)(u.A,{className:"size-4 opacity-50"})})]})}function j({className:e,children:t,position:s="popper",...r}){return(0,a.jsx)(m.ZL,{children:(0,a.jsxs)(m.UC,{"data-slot":"select-content",className:(0,p.cn)("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:sli
1de-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border shadow-md","popper"===s&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:s,...r,children:[(0,a.jsx)(y,{}),(0,a.jsx)(m.LM,{className:(0,p.cn)("p-1","popper"===s&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"),children:t}),(0,a.jsx)(N,{})]})})}function w({className:e,children:t,...s}){return(0,a.jsxs)(m.q7,{"data-slot":"select-item",className:(0,p.cn)("focus:bg-accent focus:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",e),...s,children:[(0,a.jsx)("span",{className:"absolute right-2 flex size-3.5 items-center justify-center",children:(0,a.jsx)(m.VF,{children:(0,a.jsx)(h.A,{className:"size-4"})})}),(0,a.jsx)(m.p4,{children:t})]})}function y({className:e,...t}){return(0,a.jsx)(m.PP,{"data-slot":"select-scroll-up-button",className:(0,p.cn)("flex cursor-default items-center justify-center py-1",e),...t,children:(0,a.jsx)(g.A,{className:"size-4"})})}function N({className:e,...t}){return(0,a.jsx)(m.wn,{"data-slot":"select-scroll-down-button",className:(0,p.cn)("flex cursor-default items-center justify-center py-1",e),...t,children:(0,a.jsx)(u.A,{className:"size-4"})})}var k=s(54331),_=s(41641),A=s(21362),C=s(60285),T=s(41455),z=s(4474);let P=({className:e,...t})=>(0,a.jsx)("nav",{role:"navigation","aria-label":"pagination",className:(0,p.cn)("mx-auto flex w-full justify-center",e),...t});P.displayName="Pagination";let R=r.forwardRef(({className:e,...t},s)=>(0,a.jsx)("ul",{ref:s,className:(0,p.cn)("flex flex-row items-center gap-1",e),...t}));R.displayName="PaginationContent";let U=r.forwardRef(({className:e,...t},s)=>(0,a.jsx)("li",{ref:s,className:(0,p.cn)("",e),...t}));U.displayName="PaginationItem";let I=({className:e,isActive:t,size:s="icon",...r})=>(0,a.jsx)(T.N_,{"aria-current":t?"page":void 0,className:(0,p.cn)((0,z.r)({variant:t?"outline":"ghost",size:s}),e),...r});I.displayName="PaginationLink";let F=({className:e,...t})=>(0,a.jsxs)(I,{"aria-label":"Go to previous page",size:"default",className:(0,p.cn)("gap-1 pl-2.5 cursor-pointer text-white/80 hover:text-white",e),...t,children:[(0,a.jsx)(_.A,{className:"h-4 w-4"}),(0,a.jsx)("span",{children:"Previous"})]});F.displayName="PaginationPrevious";let G=({className:e,...t})=>(0,a.jsxs)(I,{"aria-label":"Go to next page",size:"default",className:(0,p.cn)("gap-1 pr-2.5 cursor-pointer text-white/80 hover:text-white",e),...t,children:[(0,a.jsx)("span",{children:"Next"}),(0,a.jsx)(A.A,{className:"h-4 w-4"})]});G.displayName="PaginationNext";let E=({className:e,...t})=>(0,a.jsxs)("span",{"aria-hidden":!0,className:(0,p.cn)("flex h-9 w-9 items-center justify-center text-white/60",e),...t,children:[(0,a.jsx)(C.A,{className:"h-4 w-4"}),(0,a.jsx)("span",{className:"sr-only",children:"More pages"})]});E.displayName="PaginationEllipsis";var L=s(17050),S=s(2693),M=s(23591);function $({initialBlogs:e,currentPage:t=1,inRefId:s,inRefIdFooter:i,inRefIdMini:l}){let{language:n}=(0,S.n)(),o=M.P[n].footer_pages,[c,m]=(0,r.useState)("All"),u=(0,r.useMemo)(()=>{let t=new Set;return e.forEach(e=>{if(e.Category){let s=e.Category.split("#")[0].trim();s&&t.add(s)}}),Array.from(t).sort()},[e]),h=(0,r.useMemo)(()=>"All"===c?e:e.filter(e=>e.Category?.split("#")[0].trim()===c),[e,c]),g=1==t?h.find(e=>e.Id===L.mc)||h[0]:null,p=h.filter(e=>e.Id!==g?.Id),y=L.gz,N=Math.ceil(p.length/y),_=(0,r.useMemo)(()=>{let e=(t-1)*y;return p.slice(e,e+y)},[p,t]),A=e=>{let t=1===e?"/blog":`/blog/${e}`;return"All"!==c?`${t}?category=${encodeURIComponent(c)}`:t},C=(e,t)=>{if(t<=6)return Array.from({length:t},(e,t)=>t+1);let s=Math.max(1,e-2),a=s+5;return a>t&&(s=(a=t)-5),Array.from({length:6},(e,t)=>s+t)},T="All"===c?o.blog_more_guides:`${o.blog_more_in} ${c}`;return(0,a.jsxs)("div",{className:"blog-scrollbar min-h-screen",children:[(0,a.jsxs)("div",{className:"max-w-[1200px] mx-auto px-4 lg:px-6 pt-[100px] md:pt-[150px]",children:[(0,a.jsx)("div",{className:"flex justify-end mb-8 md:mb-10",children:(0,a.jsx)("div",{className:"w-full md:w-[200px]",children:(0,a.jsxs)(f,{value:c,onValueChange:e=>{m(e)},children:[(0,a.jsx)(b,{className:"w-full glass_card rounded-lg shadow-sm focus:ring-0",children:(0,a.jsx)(v,{placeholder:o.blog_filter_category})}),(0,a.jsxs)(j,{className:"glass_card custom-scrollbar-visible",children:[(0,a.jsx)(w,{value:"All",className:"cursor-pointer font-medium focus:bg-white/20 hover:bg-white/20 focu
1s:text-white",children:o.blog_all_categories}),u.map(e=>(0,a.jsx)(w,{value:e,className:"cursor-pointer focus:bg-white/20 hover:bg-white/20 focus:text-white",children:e},e))]})]})})}),g?(0,a.jsx)("div",{children:(0,a.jsx)(d,{article:g,inRefId:s})},c):"All"!==c&&(0,a.jsx)("div",{className:"py-20 text-center",children:(0,a.jsx)("p",{className:"text-gray-400 font-medium",children:o.blog_no_articles})}),_.length>0&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"border-t border-white/15 my-10 md:my-16"}),(0,a.jsx)("h2",{className:"text-xl md:text-2xl font-semibold mb-2",children:T}),t>1&&(0,a.jsxs)("h1",{className:"text-md md:text-md font-bold mb-8 md:mb-10 opacity-50",children:[o.blog_heading,"All"!==c?` - ${c}`:""," - Page ",t]}),(0,a.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-x-8 gap-y-12 md:gap-y-16",children:_.map((e,t)=>(0,a.jsx)("div",{children:(0,a.jsx)(x.Z,{article:e,priority:t<3,inRefId:s})},e.Id))}),N>1&&(0,a.jsx)("div",{className:"mt-16 mb-8 flex justify-center",children:(0,a.jsx)(P,{children:(0,a.jsxs)(R,{children:[t>1&&(0,a.jsx)(U,{children:(0,a.jsx)(F,{href:A(t-1)})}),C(t,N)[0]>1&&(0,a.jsx)(U,{children:(0,a.jsx)(E,{})}),C(t,N).map(e=>(0,a.jsx)(U,{children:(0,a.jsx)(I,{href:A(e),isActive:e===t,children:e})},e)),C(t,N)[C(t,N).length-1]<N&&(0,a.jsx)(U,{children:(0,a.jsx)(E,{})}),t<N&&(0,a.jsx)(U,{children:(0,a.jsx)(G,{href:A(t+1)})})]})})})]}),0===e.length&&(0,a.jsxs)("div",{className:"text-center py-32 space-y-4",children:[(0,a.jsx)("p",{className:"text-gray-400 text-xl font-medium",children:o.blog_empty_title}),(0,a.jsx)("p",{className:"text-gray-300 text-sm",children:o.blog_empty_desc})]})]}),(0,a.jsx)(k.default,{showLinkFooter:!0,inRefId:i,inRefIdMini:l})]})}},68504:(e,t,s)=>{s.r(t),s.d(t,{clearAuthCookies:()=>d,storeAuthResponse:()=>c});var a=s(37002),r=s(29407),i=s(15217),l=s(9339);let n=(0,l.createServerReference)("60470f5b6328f6becbb98ca6c981cbca13e98d242b",l.callServer,void 0,l.findSourceMapURL,"setRefreshToken"),o=(0,l.createServerReference)("005239830decf2cf7fda86ae8f29560d952743a2a4",l.callServer,void 0,l.findSourceMapURL,"deleteRefreshToken");async function c(e,t=!1){try{let s=a.useGlobalStore.getState(),l=[];e.Token&&(t||s.setField(a.X.Token,e.Token),(0,i.setClientCookie)(r.F.TOKEN,e.Token,30)),e.AccessTokenExpiresAt&&(t||s.setField(a.X.TokenExpiresAt,e.AccessTokenExpiresAt),(0,i.setClientCookie)(r.F.TOKEN_EXPIRES_AT,e.AccessTokenExpiresAt,30)),e.RefreshToken&&l.push(n(e.RefreshToken));let o=s.giftingPlace,c=s.giftingDate;e.User&&(o&&c||(o&&(e.User.GiftingPlace=o),c&&(e.User.GiftingDate=c)),t||s.setField(a.X.CurrentUser,e.User),(0,i.setClientCookie)(r.F.USER_DATA,e.User,30)),e.User?.GiftingPlace&&!o&&(t||s.setField(a.X.GiftingPlace,e.User.GiftingPlace),(0,i.setClientCookie)(r.F.GIFTING_PLACE,e.User.GiftingPlace,30)),e.User?.GiftingDate&&!c&&(t||s.setField(a.X.GiftingDate,e.User.GiftingDate),(0,i.setClientCookie)(r.F.GIFTING_DATE,e.User.GiftingDate,30)),e.User?.Currency&&(t||s.setField(a.X.Currency,e.User.Currency),(0,i.setClientCookie)(r.F.CURRENCY,e.User.Currency,30)),await Promise.all(l)}catch(e){throw console.error("Failed to store auth response:",e),e}}async function d(){try{a.useGlobalStore.getState().clearAll(),(0,i.LH)(),await o()}catch(e){console.error("Failed to clear auth cookies:",e)}}},71946:(e,t,s)=>{s.d(t,{m:()=>r});var a=s(95155);function r({graph:e}){if(e)return(0,a.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify({"@context":"https://schema.org","@graph":e})}})}},75346:(e,t,s)=>{s.d(t,{Z:()=>d});var a=s(95155),r=s(74937),i=s(52760),l=s(89878),n=s(84980),o=s(51997),c=s(81566);function d({inRefId:e,article:t,priority:s=!1,className:x=""}){let m=(0,l.j)(t.Id,t.Title),u=(0,i.X)(t.CoverPhotoPath,"lg")||"",h=t.Category.split("#")[0];return(0,a.jsxs)(c.TrackingLink,{inRefId:e,href:`/blog/${m}`,className:`group flex flex-col space-y-4 transition-all duration-300 ${x}`,children:[(0,a.jsxs)("div",{className:"relative aspect-[16/10] w-full overflow-hidden rounded-[24px]",children:[(0,a.jsx)(r.A,{loading:"eager",src:u,alt:t.CoverAlt||t.Title,fill:!0,className:"object-cover transform transition-transform duration-700 group-hover:scale-105",sizes:"(max-width: 768px) 100vw, (max-width: 1200px) 50vw, 33vw",priority:s}),(0,a.jsx)("div",{className:"absolute top-4 left-4 bg-black/20 backdrop-blur-sm px-3 py-1.5 rounded-lg text-[13px] font-semibold text-white/90 z-10",children:h})]}),(0,a.jsxs)("div",{className:"flex flex-col space-y-3 px-1",children:[(0,a.jsx)("h3",{className:"min-h-[56px] text-[18px] md:text-[20px] font-bold leading-[1.3] text-white mb-0 transition-colors line-clamp-2",children:t.Title}),(0,a.jsxs)("div",{className:"flex items-center justify-between gap-2 text-sm sm:text-[13px] font-medium text_gray_30",children:[(0,a.jsxs)("div",{className:"flex items-center gap-1.5 shrink-0",children:[(0,a.jsx)(n.A,{className:"w-3.5 h-3.5 shrink-0 opacity-80"}),(0,a.jsxs)("span",{className:"whitespace-nowrap",children:[t.ReadMinute," min read"]})]}),(0,a.jsxs)("div",{className:"flex items-center gap-1.5 min-w-0",children:[(0,a.jsx)(o.A,{className:"w-3.5 h-3.5 shrink-0 opacity-80"}),(0,a.jsxs)("span",{className:"truncate",children:["Written by ",t.Author?.Name||"unknown"]})]})]})]})]})}},89878:(e,t,s)=>{s.d(t,{j:()=>a});function a(e,t){let s=t.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s-]+/g,"-").replace(/^-+|-+$/g,"");return`${e}-${s}`}}}]);

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.