PageSourceSearch

https://photocat.com/_next/static/chunks/pages/whats-new-920627166e100136.js

js photocat.com collected 2026-10-02 05:00:05 UTC 8,794 bytes, 1 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="e5ce84da-734e-4835-9516-ebbacfe22601",e._sentryDebugIdIdentifier="sentry-dbid-e5ce84da-734e-4835-9516-ebbacfe22601")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5965],{28807:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/whats-new",function(){return n(46179)}])},46179:function(e,t,n){"use strict";n.r(t),n.d(t,{VersionItem:function(){return C},__N_SSP:function(){return y},default:function(){return E},prefix:function(){return k}});var a,c=n(52676),s=n(52890),i=n(75271),r=n(36810),l=n.n(r),o=n(89182),d=n(6572),x=n(23545),m=n(22626),u=n(46653),p=n(81076),h=n(22971),g=n(62284),f=n.n(g);function b(){return(b=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(null,arguments)}var v=function(e){return i.createElement("svg",b({width:"1em",height:"1em",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor"},e),a||(a=i.createElement("path",{d:"M6.75 3V5.25M17.25 3V5.25M3 18.75V7.5C3 6.25736 4.00736 5.25 5.25 5.25H18.75C19.9926 5.25 21 6.25736 21 7.5V18.75M3 18.75C3 19.9926 4.00736 21 5.25 21H18.75C19.9926 21 21 19.9926 21 18.75M3 18.75V11.25C3 10.0074 4.00736 9 5.25 9H18.75C19.9926 9 21 10.0074 21 11.25V18.75",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})))},w=n(17583),N=n(27562),j=n(71477),y=!0;let k="whats.new",C=e=>{let{info:t,isLightMode:n,isExpanded:a,onExpand:r}=e,[o,x]=(0,i.useState)(0),m=(0,i.createRef)(),u=(0,p.ZP)(),g=(0,h.useRouter)(),{locale:f}=g,b=(0,i.useMemo)(()=>{let e={};return e.br=(0,c.jsx)("br",{}),e.point=(0,c.jsx)("span",{className:(0,s.cn)("mr-3 mt-[10.5px] h-[6px] w-[6px] shrink-0 rounded-full",n?"bg-[#93CF00]":"bg-[var(--theme-color)]")}),e.line=(0,c.jsx)("span",{className:"relative flex"}),e["sub-line"]=(0,c.jsx)("span",{}),e.bold=(0,c.jsx)("span",{className:(0,s.cn)("font-interBold",n?"text-[#93CF00]":"text-[var(--theme-color)]")}),e},[n]);return(0,i.useEffect)(()=>{if(a){if(!u&&t.image)x(330);else{var e;let t=null===(e=m.current)||void 0===e?void 0:e.scrollHeight;x(t||0)}}else x(0)},[a,b,m,t.image,u]),(0,c.jsx)("div",{className:(0,s.cn)("h-auto overflow-hidden rounded-[36px]","cmd:rounded-[20px]"),style:{padding:"1px",background:a?"linear-gradient(to right, rgba(65, 255, 198, 0.5), rgba(206, 255, 65, 0.5))":n?"rgba(0, 0, 0, 0.08)":"rgba(255, 255, 255, 0.08)"},children:(0,c.jsxs)("div",{className:(0,s.cn)("cmd:rounded-[20px] cmd:px-4 cmd:py-4 rounded-[36px] px-10 py-6",n?"bg-white":"bg-[#141414]"),children:[(0,c.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,c.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,c.jsxs)("div",{className:"flex items-center gap-[10px]",children:[(0,c.jsx)("div",{className:(0,s.cn)("cmd:py-1 cmd:px-3 rounded-[40px]  px-4 py-2",n?"bg-[rgba(0,0,0,0.05)]":"bg-[rgba(255,255,255,0.12)]"),children:(0,c.jsx)("div",{className:(0,s.cn)("cmd:text-sm cmd:leading-[14px] font-interSemiBold text-base capitalize leading-[120%]",n?"text-[#0A0A0A]":"text-[#FAFAFA]"),children:t.version})}),(0,c.jsxs)("div",{className:(0,s.cn)("font-interMedium cmd:text-sm cmd:leading-[14px] flex items-center gap-1 whitespace-nowrap px-3 text-base leading-[120%]",n?"text-[var(--content-black-secondary)]":"text-[var(--content-white-secondary)]"),children:[(0,c.jsx)(v,{fill:"none",className:(0,s.cn)("cmd:w-[14px] cmd:h-[14px] h-[16px] w-[16px]",n?"text-[var(--content-black-secondary)]":"text-[var(--content-white-secondary)]")}),t.date]})]}),(0,c.jsx)("div",{className:(0,s.cn)("font-interSemiBold py-[2.5px] text-2xl leading-[120%]","cmd:py-0 cmd:leading-[27px] cmd:text-lg",n?"text-[var(--content-black-primary)]":"text-[var(--content-white-primary)]",!a&&"line-clamp-1 text-ellipsis","th"===f&&"text-[22px]"),children:t.title})]}),(0,c.jsx)("div",{className:(0,s.cn)("flex h-[40px] w-[48px] shrink-0 items-center justify-center rounded-xl hover:cursor-pointer",a&&"bg-[".concat(n?"rgba(0,0,0,0.05)":"rgba(255,255,255,0.12)","]")),onClick:r,children:a?(0,c.jsx)(N.Z,{className:(0,s.cn)("h-6 w-6 shrink-0",n?"text-[#93CF00]":"text-[rgba(186,226,87,1)]")}):(0,c.jsx)(w.Z,{fill:"none",className:(0,s.cn)("h-5 w-5 shrink-0",n?"text-[rgba(0,0,0,0.8)]":"text-[rgba(255,255,255,0.8)]")})})]}),(0,c.jsxs)("div",{className:(0,s.cn)("overflow-hidden","ease transition-all duration-300"),ref:m,style:{height:a?"".concat(o,"px"):0},children:[(0,c.jsx)("div",{className:(0,s.cn)("my-4 h-[1px] w-full shrink-0",n?"bg-[rgba(0,0,0,0.08)]":"bg-[rgba(255,255,255,0.15)]")}),(0,c.jsxs)("div",{className:(0,s.cn)("mobile:flex-col mobile:gap-[10px] flex items-center justify-between gap-[42px]",a&&t.image&&!u&&"h-[calc(100%-33px)]"),children:[(0,c.jsx)("div",{className:"custom-scrollbar relative h-full w-full overflow-y-auto overflow-x-hidden",children:(0,c.jsx)("div",{className:(0,s.cn)("cmd:text-base cmd:leading-[21px] font-inter flex-1 text-lg leading-[150%]",n?"text-[var(--content-black-secondary)]":"text-[var(--content-white-secondary)]"),children:(0,c.jsx)(d.cC,{i18nKey:t.content,components:{...b}})})}),t.image&&(0,c.jsx)("div",{className:"mobile:flex mobile:justify-center shrink-0",children:t.video?(0,c.jsx)("div",{className:"mobile:w-full mobile:max-w-full flex h-[280px] w-[326px] items-center justify-center",children:(0,c.jsx)("video",{src:t.video,autoPlay:!0,loop:!0,muted:!0,playsInl
1ine:!0,poster:t.image,className:"h-auto max-h-full w-auto max-w-full rounded-2xl object-cover"})}):(0,c.jsx)(l(),{alt:"".concat(t.version," image"),src:t.image,width:426,height:320,className:"mobile:w-full mobile:max-w-full h-auto max-w-[426px] rounded-3xl object-contain"})})]})]})]})})};var E=e=>{let{themeMode:t}=e,n=(0,h.useRouter)(),a=t||n.query.themeMode,r=(0,m.u)(),[l,d]=(0,i.useState)([0]),p=(0,o.A)({version:"".concat(k,".version"),date:"".concat(k,".date"),title:"".concat(k,".title"),content:"".concat(k,".content")}).map(e=>{let{version:t,date:n,title:a,content:c}=e;return{version:t,date:n,title:a,content:c}}).map((e,t)=>({...e,image:(0,x.t)("".concat(k,".image.").concat(t+1)).startsWith("whats.new.image.")?void 0:(0,x.t)("".concat(k,".image.").concat(t+1)),video:(0,x.t)("".concat(k,".video.").concat(t+1)).startsWith("whats.new.video.")?void 0:(0,x.t)("".concat(k,".video.").concat(t+1))})),g=(0,i.useMemo)(()=>"light"===a,[a]),b=(0,i.useCallback)(e=>{d(t=>t.includes(e)?t.filter(t=>t!==e):[...t,e])},[]),v=(0,i.useCallback)(()=>{var e;null===(e=window[u.$.closeWhatsNew])||void 0===e||e.postMessage(u.$.closeWhatsNew)},[]);return(0,c.jsx)("div",{className:(0,s.cn)("xmd:px-4 mobile:pt-0 px-6 py-10",!r&&"mt-nav-h",g?"bg-[#F5F5F5]":"bg-[#171717]"),children:(0,c.jsxs)("div",{className:(0,s.cn)(f().main_1200,"mobile:py-5 mobile:pb-0",!r&&"mobile:mt-[calc(var(--gnav-height)+var(--gbanner-height))] pb-[60px] pt-10"),children:[(0,c.jsxs)("div",{className:"cmd:gap-1 flex items-center gap-1",children:[(0,c.jsxs)("div",{className:"flex flex-1 flex-col gap-3",children:[(0,c.jsx)("div",{className:(0,s.cn)("font-interBold cmd:text-xl cmd:leading-6 text-[46px] leading-[120%]",g?"text-[var(--content-black-primary)]":"text-[var(--content-white-primary)]"),children:(0,x.t)("".concat(k,".intro.h1"))}),(0,c.jsx)("div",{className:(0,s.cn)("cmd:text-sm cmd:leading-[18px] text-xl leading-7",g?"text-[var(--content-black-secondary)]":"text-[var(--content-white-secondary)]"),children:(0,x.t)("".concat(k,".intro.content"))})]}),r&&(0,c.jsx)(j.z,{className:(0,s.cn)("px-3 py-[9px]",g&&"bg-[#93CF00]"),onClick:v,children:(0,c.jsx)("div",{className:(0,s.cn)("font-interSemiBold text-base leading-[22px]",g?"text-[#FAFAFA]":"text-[rgba(10,10,10,1)]"),children:(0,x.t)("whats.new.gotit")})})]}),(0,c.jsx)("div",{className:(0,s.cn)("cmd:h-0 cmd:mb-4 mb-10 mt-3 h-[1px] w-full shrink-0",g?"bg-[rgba(0,0,0,0.15)]":"bg-[rgba(255,255,255,0.15)]")}),(0,c.jsx)("div",{className:"flex flex-col gap-[15px]",children:p.reverse().map((e,t)=>(0,c.jsx)(C,{info:e,isLightMode:g,isExpanded:l.includes(t),onExpand:()=>b(t)},t))})]})})}},46653:function(e,t,n){"use strict";var a,c,s,i,r,l,o;n.d(t,{$:function(){return s},DD:function(){return i},TE:function(){return c},Tr:function(){return a}}),(r=a||(a={})).INIT="init",r.SUCCESS="success",r.ERROR="error",r.RUNNING="running",r.PENDING="pending",(l=c||(c={})).PENDING="pending",l.SUCCESS="success",l.ERROR="error",(s||(s={})).closeWhatsNew="closeWhatsNew",(o=i||(i={})).IMAGE="image",o.VIDEO="video"}},function(e){e.O(0,[9774,2888,179],function(){return e(e.s=28807)}),_N_E=e.O()}]);

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.