PageSourceSearch

https://www.cindythink.com/_next/static/chunks/pages/search-1d4b618edae39784.js

js cindythink.com collected 2026-10-08 07:15:11 UTC 5,296 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[603],{8266:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/search",function(){return n(42314)}])},51959:function(e,t,n){"use strict";var l=n(85893),r=n(14416),u=n(30211),i=n(5925);let a=[1,.5,1,.5,1/3],s=(0,r.$j)(e=>({multicol:u.Du(e).multicol}));t.Z=s(e=>(0,l.jsx)(i.Z,{ref:e.innerRef,width:e.multicol?a:1,...e}))},42314:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSG:function(){return k}});var l=n(85893),r=n(67294),u=n(9008),i=n.n(u),a=n(80228),s=n(86896),o=n(44012),c=n(8731),d=n(38458),f=n(75136),m=n(85195),Z=n(15219),x=n(62094),h=n(51959),y=n(26476),j=n(26417),_=n(64661),p=n(9702),v=n(81417),b=n(85011),k=!0;t.default=()=>{let{formatMessage:e}=(0,s.Z)(),t=(0,r.useRef)(null),n=(0,r.useRef)(null),[u,k]=(0,r.useState)({title:null,content:null,solution:null,genre:null,yami:null,orderBy:[{id:v.Sk.DESC_NULLS_LAST}]});return(0,l.jsxs)(r.Fragment,{children:[(0,l.jsxs)(i(),{children:[(0,l.jsxs)("title",{children:[e(c.Z.title)," | Cindy"]}),(0,l.jsx)("meta",{name:"description",content:e(c.Z.description)})]}),(0,l.jsx)(x.X6,{children:(0,l.jsx)(o.Z,{...c.Z.header})}),(0,l.jsx)(y.Z,{}),(0,l.jsxs)(x.s_,{flexWrap:"wrap",children:[(0,l.jsx)(j.Z,{ref:t,filters:[{type:b.O.TEXT,key:"title",fieldName:(0,l.jsx)(o.Z,{...d.Z.title})},{type:b.O.TEXT,key:"content",fieldName:(0,l.jsx)(o.Z,{...d.Z.content})},{type:b.O.TEXT,key:"solution",fieldName:(0,l.jsx)(o.Z,{...d.Z.solution})},{type:b.O.SELECT,key:"genre",fieldName:(0,l.jsx)(o.Z,{...d.Z.genre}),initialValue:null,options:[{key:"all",value:null,label:(0,l.jsx)(o.Z,{...f.Z.all})},{key:"classic",value:v.mH.CLASSIC,label:(0,l.jsx)(o.Z,{...d.Z.genre_classic})},{key:"twentyQuestions",value:v.mH.TWENTY_QUESTIONS,label:(0,l.jsx)(o.Z,{...d.Z.genre_twentyQuestions})},{key:"littleAlbat",value:v.mH.LITTLE_ALBAT,label:(0,l.jsx)(o.Z,{...d.Z.genre_littleAlbat})},{key:"others",value:v.mH.OTHERS,label:(0,l.jsx)(o.Z,{...d.Z.genre_others})}]},{type:b.O.SELECT,key:"yami",fieldName:(0,l.jsx)(o.Z,{...d.Z.yami}),initialValue:null,options:[{key:"all",value:null,label:(0,l.jsx)(o.Z,{...f.Z.all})},{key:"none",value:v.KJ.NONE,label:(0,l.jsx)(o.Z,{...f.Z.none})},{key:"yami",value:v.KJ.NORMAL,label:(0,l.jsx)(o.Z,{...d.Z.yami_yami})},{key:"longtermYami",value:v.KJ.LONGTERM,label:(0,l.jsx)(o.Z,{...d.Z.yami_longtermYami})}]}]}),(0,l.jsx)(_.Z,{ref:n,initialField:"id",defaultValue:[{id:v.Sk.DESC_NULLS_LAST}],fields:[{key:"id",fieldName:(0,l.jsx)(o.Z,{...d.Z.createdAt})},{key:"modified",fieldName:(0,l.jsx)(o.Z,{...d.Z.solvedAt})}]}),(0,l.jsxs)(x.kC,{width:1,children:[(0,l.jsx)(x.xu,{width:.5,p:1,mx:1,bg:"preset.button.bg",borderRadius:2,children:(0,l.jsx)(x.hb,{width:1,color:"preset.button.fg",onClick:()=>{let e={...u};t.current&&(t.current.reset(),e.genre=null,e.yami=null,e.title=null,e.content=null,e.solution=null),n.current&&(n.current.reset(),e.orderBy=[{id:v.Sk.DESC_NULLS_LAST}]),k(e)},children:(0,l.jsx)(o.Z,{...f.Z.reset})})}),(0,l.jsx)(x.xu,{width:.5,p:1,mx:1,bg:"preset.button.bg",borderRadius:2,children:(0,l.jsx)(x.hb,{width:1,color:"preset.button.fg",onClick:()=>{let e={...u};if(t.current){let n=t.current.getData();e.genre=n.genre,e.yami=n.yami,e.title=(0,a.Z)(n.title),e.content=(0,a.Z)(n.content),e.solution=(0,a.Z)(n.solution),e.orderBy=[]}if(n.current){let t=n.current.getData();e.orderBy=t}k(e)},children:(0,l.jsx)(o.Z,{...f.Z.search})})})]})]}),(0,l.jsx)(x.kC,{flexWrap:"wrap",children:(0,l.jsx)(m.Z,{query:Z.K1,variables:u,getItemCount:e=>e.puzzleCount,renderItems:e=>{let t=e.puzzles;return t?(0,l.jsx)(l.Fragment,{children:t.map(e=>(0,l.jsx)(h.Z,{children:(0,l.jsx)(p.ZP,{puzzle:e})},e.id))}):null}})})]})}},48272:function(e,t,n){"use strict";var l=n(70655),r=n(67294),u=n(25687),i=n(86896);function a(e){var t=Math.abs(e);return t<60?"second":t<3600?"minute":t<86400?"hour":"day"}function s(e){switch(e){case"second":return 1;case"minute":return 60;case"hour":return 3600;default:return 86400}}var o=["second","minute","hour"];function c(e){return void 0===e&&(e="second"),o.indexOf(e)>-1}var d=function(e){var t=(0,i.Z)(),n=t.formatRelativeTime,u=t.textComponent,a=e.children,s=n(e.value||0,e.unit,(0,l.__rest)(e,["children","value","unit"]));return"function"==typeof a?a(s):u?r.createElement(u,null,s):r.createElement(r.Fragment,null,s)},f=function(e){var t,n=e.value,i=e.unit,o=e.updateIntervalInSeconds,f=(0,l.__rest)(e,["value","unit","updateIntervalInSeconds"]);(0,u.kG)(!o||!!(o&&c(i)),"Cannot schedule update with unit longer than hour");var m=r.useState(),Z=m[0],x=m[1],h=r.useState(0),y=h[0],j=h[1],_=r.useState(0),p=_[0],v=_[1];(i!==Z||n!==y)&&(j(n||0),x(i),v(c(i)?function(e,t){if(!e)return 0;switch(t){case"second":return e;case"minute":return 60*e;default:return 3600*e}}(n,i):0)),r.useEffect(function(){function e(){clearTimeout(t)}if(e(),!o||!c(i))return e;var n=p-o,l=a(n);if("day"===l)return e;var r=s(l),u=n%r,d=n-u,f=d>=p?d-r:d,m=Math.abs(f-p);return p!==f&&(t=setTimeout(function(){return v(f)},1e3*m)),e},[p,o,i]);var b=n||0,k=i;if(c(i)&&"number"==typeof p&&o){var g=s(k=a(p));b=Math.round(p/g)}return r.createElement(d,(0,l.__assign)({value:b,unit:k},f))};f.displayName="FormattedRelativeTime",f.defaultProps={value:0,unit:"second"},t.Z=f}},function(e){e.O(0,[968,702,145,774,888,179],function(){return e(e.s=8266)}),_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.