1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1358],{50004:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/add-fortune",function(){return n(66768)}])},45684:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(31549),i=n(83305),o=n(37417),s=n(77690),a=n(61237);function c(e){let{children:t,...n}=e;return(0,r.jsx)(i.k,{id:"ignore-capture",w:"100%",position:"fixed",left:0,bottom:0,zIndex:"docked",children:(0,r.jsx)(o.W,{position:"relative",zIndex:"1",px:{base:"0px",sm:"24px",md:"40px"},children:(0,r.jsxs)(i.k,{justifyContent:{base:"center",md:"space-between"},children:[(0,r.jsx)(s.xu,{}),(0,r.jsx)(i.k,{w:"100%",maxW:"500px",bottom:"11px",px:"20px",py:"11px",bg:"white",children:(0,r.jsx)(a.z,{w:"100%",colorScheme:"brand.primary",...n,children:t})})]})})})}},25960:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var r=n(31549),i=n(44194),o=n(13049),s=n(26370);let a={LOGIN:"/login"};var c=n(12434);function u(e){return function(t){let n=(0,o.useRouter)(),{isLogin:u}=(0,c.a)();return(0,i.useEffect)(()=>{null!==u&&!1===u&&n.replace("".concat(a.LOGIN,"?returnUrl=").concat(encodeURIComponent(n.asPath)))},[u]),u?(0,r.jsx)(e,{...t}):(0,r.jsx)(s.Z,{content:(0,r.jsx)(r.Fragment,{})})}}},66768:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSG:function(){return k},default:function(){return y}});var r=n(31549),i=n(76203),o=n(60892),s=n(42831),a=n.n(s),c=n(13049),u=n(98002),d=n(55736),l=n(26370),x=n(44194),p=n(3618),h=n(83305),f=n(53371),g=n(95443),m=n(42497),j=n(45684),b=n(79119),S=n(41382),_=n(9156),v=n(81290);function w(){let{t:e}=(0,i.$G)("order"),t=(0,f.NL)(),n=(0,p.useRouter)(),o=(0,p.usePathname)(),s=(0,p.useSearchParams)(),c=s.get("q"),d=new URLSearchParams(s.toString()),{data:l,isLoading:w,isFetchingNextPage:N,hasNextPage:k,fetchNextPage:y}=(0,_.LD)({options:{select:e=>e.pages.flatMap(e=>e.results).filter(g.lm)},variables:{query:{q:c||""}}}),{mutate:I,isPending:P}=(0,S.bf)({options:{onSuccess:()=>{t.invalidateQueries({queryKey:_.Ls.LIST_INFINITE()}),t.invalidateQueries({queryKey:S.xr.LIST_INFINITE()})}}}),[F,E]=(0,x.useState)(new Set([])),Z=(null==l?void 0:l.length)===F.size,C=e=>{I({data:{childId:e}})},L=e=>{if(e){let e=null==l?void 0:l.map(e=>e.id);e&&e.length&&I({data:{isActive:!1,isAll:!0}})}else I({data:{isActive:!0,isAll:!0}})},T=e=>{E(new Set(e))};return(0,r.jsxs)(h.k,{h:"100%",direction:"column",px:"20px",pb:"60px",children:[(0,r.jsx)(b.Z,{submitType:"debounce",onSubmit:e=>{d.set("q",e),n.replace("".concat(o,"?").concat(d.toString()))}}),!c&&!!(null==l?void 0:l.length)&&(0,r.jsxs)(h.k,{w:"fit-content",as:"label",alignItems:"center",columnGap:"4px",pt:"20px",pb:"12px",children:[(0,r.jsx)(m.Z,{pointerEvents:P?"none":"auto",isChecked:Z,w:18,h:18,onChange:()=>{P||L(Z)}}),(0,r.jsx)(u.x,{textStyle:"pre-body-06",color:"text.secondary",children:e("addFortune.allFavorites")})]}),(0,r.jsx)(v.Z,{data:l,hasNextPage:k,isFetching:w,isFetchingNextPage:N,fetchNextPage:y,onChangeBookmarkSet:e=>{T(e)},onChangeCheckbox:e=>{C(e)}}),(0,r.jsx)(a(),{href:"/add-fortune/register",children:(0,r.jsx)(j.Z,{children:e("addFortune.addPerson")})})]})}var N=n(25960),k=!0,y=(0,N.Z)(function(){(0,c.useRouter)();let{t:e}=(0,i.$G)("common");return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(o.PB,{title:e("page.addFortune")}),(0,r.jsx)(l.Z,{footer:null,header:(0,r.jsx)(d.Z,{isBack:!0,title:e("page.addFortune"),rightElement:(0,r.jsx)(a(),{href:"/add-fortune/edit",children:(0,r.jsx)(u.x,{textStyle:"pre-body-04",color:"text.secondary",children:"í¸ì§"})}),border:0}),content:(0,r.jsx)(w,{})})]})})}},function(e){e.O(0,[5922,9147,4646,2888,9774,179],function(){return e(e.s=50004)}),_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.