PageSourceSearch

https://www.bestregards.me/_next/static/chunks/2129-a75fa5a121f278ad.js

js bestregards.me collected 2026-10-04 23:02:12 UTC 9,814 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2129],{60709:function(r,e,t){t.d(e,{c:function(){return w}});var n=t(85893),a=t(97564),o=t(96768),i=t(16232),s=t(67841),l=t(80061),c=t(64523),u=t(69876),d=t(43523),h=t(41242),x=t(67294),f=t(30471),g=t(91500),p=t(96619);let m=["#FFFFFF","#000000","#25262b","#1A1B1E","#868e96","#fa5252","#e64980","#be4bdb","#7950f2","#4c6ef5","#228be6","#15aabf","#12b886","#40c057","#82c91e","#fab005","#fd7e14"],b=r=>{let{onValueChange:e,value:t,minimal:u,swatches:d=m}=r,[h,g]=(0,x.useState)(!u);return(0,n.jsxs)(a.K,{align:"center",spacing:(0,o.h)(6),sx:{width:"99%",maxWidth:"100%"},children:[(0,n.jsx)(i.z,{format:"hex",value:t,onChange:r=>e(r),swatches:d,sx:{width:"100%"},withPicker:h,styles:{swatch:{borderRadius:"50%"}}}),u&&(0,n.jsx)(s.z,{size:"xs",ml:"auto",variant:"subtle",color:"dark",onClick:()=>{g(r=>!r)},children:h?"Hide picker":"Show picker"}),(0,n.jsx)(l.o,{value:t,icon:(0,n.jsx)(c.x,{w:15,h:15,bg:t,sx:{borderRadius:"50%"}}),sx:{width:"100%"},onChange:r=>e(r.target.value),rightSection:(0,n.jsx)(f.Z,{size:12})})]})},j=r=>(0,n.jsxs)(u.k,{sx:r=>({borderRadius:r.radius.md,backgroundColor:r.colors.dark[6],cursor:"pointer"}),children:[(0,n.jsx)(c.x,{w:30,h:25,sx:e=>({background:r.value,borderTopLeftRadius:e.radius.md,borderBottomLeftRadius:e.radius.md,border:"1px solid ".concat(e.colors.dark[4])})}),(0,n.jsx)(d.M,{sx:r=>({borderTopRightRadius:r.radius.md,borderBottomRightRadius:r.radius.md,border:"1px solid transparent"}),px:"1px",children:(0,n.jsx)(g.Z,{size:"1rem",opacity:"0.5"})})]}),w=r=>{switch(r.variant){case"bare":return(0,n.jsx)(b,{...r});case"popup":return(0,n.jsxs)(h.J,{width:200,position:"bottom",withArrow:!0,shadow:"md",closeOnClickOutside:!0,children:[(0,n.jsx)(h.J.Target,{children:(0,n.jsx)(c.x,{children:(0,n.jsx)(j,{value:r.value})})}),(0,n.jsx)(h.J.Dropdown,{sx:r=>({boxShadow:r.shadows.lg,borderRadius:r.radius.lg,backgroundColor:r.colors.dark[9],border:"2px solid ".concat(r.colors.dark[7])}),children:(0,n.jsx)(b,{...r})})]});default:return(0,p.v)(r.variant)}};w.Indicator=j},19075:function(r,e,t){t.d(e,{j:function(){return u}});var n=t(85893),a=t(3600),o=t(78818),i=t(43523),s=t(97564),l=t(95117),c=t(67841);let u=r=>{let{label:e,retry:t}=r;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(o.T,{h:"xl"}),(0,n.jsx)(i.M,{mt:"xl",children:(0,n.jsxs)(s.K,{align:"center",children:[(0,n.jsx)(a.Z,{size:100,color:"grey"}),(0,n.jsx)(l.x,{color:"dimmed",children:e}),(0,n.jsx)(c.z,{mx:"auto",variant:"outline",onClick:t,color:"red",children:"Please try again"})]})})]})}},47712:function(r,e,t){t.d(e,{U:function(){return o}});var n=t(85893);t(67294);var a=t(90725);let o=r=>{let{children:e,delay:t=0,...o}=r;return(0,n.jsx)(a.u,{...o,initial:{opacity:0}
1,animate:{opacity:1},transition:{delay:t,duration:.15},children:e})}},6978:function(r,e,t){t.d(e,{o:function(){return o}});var n=t(85893),a=t(80061);let o=r=>{let{focusOutlineColor:e,...t}=r;return(0,n.jsx)(a.o,{...t,styles:r=>({input:{background:"transparent",border:"1px solid ".concat(r.colors.gray[9]),...e&&{"&:focus":{borderColor:"".concat(e)},"&:focus-within":{borderColor:"".concat(e)}}},label:{paddingBottom:"5px",opacity:.7}})})}},57081:function(r,e,t){t.d(e,{F4:function(){return u},FB:function(){return s},Ou:function(){return c},iK:function(){return l}});var n=t(9669),a=t.n(n),o=t(17739),i=t(31449);let s=async r=>{let{uid:e,env:t,perPage:n,page:o,query:s}=r;if(!e)throw Error("user ID not supplied");let l=await (0,i.zv)(e,t,"secret"),c=l.data[0];if(!c)throw Error("invalid secret key");let u=await a().post("/api/unsplash",{perPage:n,page:o,query:s},{headers:{Authorization:"Bearer ".concat(c.value)}});return u.data},l=r=>[o.U.unsplash_images,...r?[r]:[]],c=async r=>{let{uid:e,env:t}=r;if(!e)throw Error("user ID not supplied");let n=await (0,i.zv)(e,t,"secret"),o=n.data[0];if(!o)throw Error("invalid secret key");let s=await a().get("/api/unsplash",{headers:{Authorization:"Bearer ".concat(o.value)}}),l=s.data;return l},u=async r=>{let{uid:e,env:t}=r;if(!e)throw Error("user ID not supplied");let n=await (0,i.zv)(e,t,"secret"),o=n.data[0];if(!o)throw Error("invalid secret key");let s=await a().put("/api/unsplash",{downloadUrl:r.downloadUrl},{headers:{Authorization:"Bearer ".concat(o.value)}});return s.data}},51284:function(r,e,t){t.d(e,{b:function(){return E}});var n=t(85893),a=t(67294),o=t(25675),i=t.n(o),s=t(24697),l=t(41246),c=t(88767),u=t(79153),d=t(42708),h=t(3241),x=t(61470),f=t(69469),g=t(38623),p=t(64523),m=t(95117),b=t(54685),j=t(43523),w=t(20966),v=t(96619),y=t(47712),C=t(6978),k=t(19075),z=t(8850),F=t(22685),R=t(57081);let S={sm:100,md:150},A={sm:300,md:600},E=r=>{let{env:e,imagePreviewSize:t="md",onImageSelected:o}=r,{uid:E}=(0,F.q)(),[D,I]=(0,a.useState)(1),[U,B]=(0,l.U)(""),[Z]=(0,s.Nr)(U,500),M=(0,a.useRef)(null),O={env:e,uid:E,perPage:"30",query:Z||"background"},_=(0,h.rZ)(),N=(0,c.useInfiniteQuery)((0,R.iK)(O),r=>{let{pageParam:e}=r;return(0,R.FB)({...O,page:e})},{refetchOnWindowFocus:!1,refetchOnReconnect:!1,getNextPageParam:()=>D+1}),{ref:P}=(0,d.YD)({onChange:r=>{r&&(I(D+1),N.fetchNextPage())}});async function T(r){await (0,R.F4)({env:e,uid:E,downloadUrl:r})}switch((0,a.useEffect)(()=>{"success"===N.status&&M.current&&M.current.scrollTo(0,0)},[N.status]),(0,a.useEffect)(()=>{M.current&&M.current.scrollTo(0,0)},[Z]),N.status){case"loading":case"idle":return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(C.o,{mb:"xl",disabled:!0,value:U,onChange:B,icon:(0,n.jsx)(u.Z,{size:16}),placeholder:"Search images"}),(0,n.jsx)(x.x,{h:A[t],type:"always",pr:"sm",children:(0,n.jsx)(y.U,{children:(0,n.jsx)(f.M,{cols:3,spacing:"lg",children:Array(10).fill(0).map((r,e)=>(0,n.jsx)(g.O,{height:S[t],width:1.13*S[t]},e))})},"idle_loading")})]});case"error":return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(C.o,{mb:"xl",disabled:!0,value:U,onChange:B,icon:(0,n.jsx)(u.Z,{size:16}),placeholder:"Search images"}),(0,n.jsx)(x.x,{h:A[t],type:"always",pr:"sm",children:(0,n.jsx)(y.U,{children:(0,n.jsx)(k.j,{label:"Something went wrong",retry:()=>N.refetch()})},"error")})]});case"success":return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(C.o,{mb:"xl",icon:(0,n.jsx)(u.Z,{size:16}),placeholder:"Search images",value:U,onChange:B}),(0,n.jsxs)(x.x,{pr:"sm",type:"always",viewportRef:M,h:A[t],children:[(0,n.jsx)(f.M,{cols:3,spacing:"lg",children:N.data&&N.data.pages.map((r,e)=>r.map(r=>{let{blur_hash:s,src:l,creator:c,id:u,creator_unsplash_url:d,photo_download_url:h}=r;return(0,n.jsxs)(p.x,{pos:"relative",children:[(0,a.createElement)(i(),{quality:100,alt:"background",height:S[t],width:1.13*S[t],onClick:()=>{o(r),T(h)},...s&&{placeholder:"blur",blurDataURL:(0,z.O)(s)},src:l,style:{objectFit:"cover",borderRadius:_.radius.md,cursor:"pointer"},key:u+e}),(0,n.jsx)(m.x,{px:"xs",left:2,fw:500,maw:150,size:"xs",bottom:2,pos:"absolute",sx:r=>({background:"rgba(0,0,0,0.7)",borderRadius:r.radius.md}),children:(0,n.jsx)(b.e,{href:d,target:"_blank",rel:"noopener noreferrer",color:"white",children:c})})]},u)}))}),(0,n.jsx)(m.x,{ref:P}),N.isFetchingNextPage&&(0,n.jsx)(j.M,{mt:"lg",children:(0,n.jsx)(w.a,{size:32,variant:"dots"})})]})]});default:return(0,v.v)(N)}}},81740:function(r,e,t){t.d(e,{lK:function(){return c},Gx:function(){return i},uX:function(){return s.u},b1:function(){return n.b}});var n=t(76088),a=t(92077),o=t.n(a);let i=r=>r?(r>=1e3?o()(r).format("0.0a"):o()(r).format("0a")).replace(".0",""):"0";var s=t(9778),l=t(99362);async function c(r){let e=(0,l.cF)(),t=(0,l.iH)(e,r);return(0,l.oq)(t)}},9778:function(r,e,t){t.d(e,{u:function(){return o}});var n=t(53416),a=t(99362);let o=async(r,e)=>{let t=(0,n.x0)(10),o=(0,a.cF)(),i=(0,a.iH)(o,"".concat(e,"/").concat(t,"_").concat(r.name));await (0,a.KV)(i,r);let s=await (0,a.Jt)(i);return s}},76088:function(r,e,t){t.d(e,{b:function(){return a}});var n=t(39883);let a=function(){let r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:5,e=1e3*r,t=Date.now()+e,a={startVelocity:30,spread:360,ticks:60,zIndex:2147483647};function o(r,e){return Math.random()*(e-r)+r}let i=setInterval(()=>{let r=t-Date.now();if(r<=0)return clearInterval(i);let s=50*(r/e);return(0,n.Z)({...a,particleCount:s,origin:{x:o(.1,.3),y:Math.random()-.2}}),(0,n.Z)({...a,particleCount:s,origin:{x:o(.7,.9),y:Math.random()-.2}}),null},250)}},8850:function(r,e,t){t.d(e,{O:function(){return o}});var n=t(43985),a=t(48764).lW;function o(r){if(!r)return;let e=(0,n.Jx)(r,32,32),t=function(r,e,t){let n=[...r].map(r=>String.fromCharCode(r)).join(""),o=function(r,e,t){let n,a,o,i;let s=String.fromCharCode(120,1),l=[],c=String.fromCharCode(137,80,78,71,13,10,26,10);for(n=0;n<256;n++){for(o=0,a=n;o<8;o++)1&a?a=3988292384^a>>>1:a>>>=1;l[n]=a}function u(r){return String.fromCharCode((4278190080&r)>>>24,(16711680&r)>>>16,(65280&r)>>>8,255&r)}function d(r,e,t){let n=4294967295^function(r,e){let t=4294967295;for(let r=0;r<e.length;r++)t=l[(t^e.charCodeAt(r))&255]^t>>>8;return t}(0,e+t);return u(r)+e+t+u(n)}let h=d(0,"IEND",""),x=function(r,e){let t=u(r)+u(32)+"\b\x06\x00\x00\x00";return d(13,"IHDR",t)}(r,32),f="";for(let e=0;e<t.length;e+=4*r){if(i="\x00",Array.isArray(t))for(let n=0;n<4*r;n++)i+=String.fromCharCode(255&t[e+n]);else i+=t.substr(e,4*r);f+=i}let g=s+function(r){let e,t;let n="";for(let a=0;a<r.length;a+=65535)e=r.length-a,t="",e<=65535?t="\x01":(e=65535,t="\x00"),n+=t+String.fromCharCode(255&e,(65280&e)>>>8)+String.fromCharCode(255&~e,(65280&~e)>>>8)+r.substring(a,a+e);return n}(f)+u(function(r){let e=1,t=0;for(let n=0;n<r.length;n++)t=(t+(e=(e+r.charCodeAt(n))%65521))%65521;return t<<16|e}(f)),p=d(g.length,"IDAT",g);return c+x+p+h}(32,0,n),i=void 0!==a?a.from(function(r){let e=new Uint8Array(r.length);for(let t=0;t<r.length;t++)e[t]=r.charCodeAt(t);return e}(o)).toString("base64"):btoa(o);return"data:image/png;base64,".concat(i)}(e,0,0);return t}}}]);

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.