1"use strict";(self.webpackChunkdaybook=self.webpackChunkdaybook||[]).push([[8876],{13619:(e,t,r)=>{r.r(t),r.d(t,{default:()=>u});var n=r(9950),s=r(98341),a=r(85913),c=r(26302),o=r(70967),i=r(55487),l=r(82519),d=r(33710),h=r(44414);const g=(0,n.lazy)((()=>Promise.all([r.e(7591),r.e(914),r.e(2263),r.e(8276)]).then(r.bind(r,20084)))),u=()=>{const{areSearchEntriesFetching:e,areSearchResultsFetching:t,groupedEntries:r,hasMoreEntries:u,pageIds:y}=(0,s.d4)((0,a.j8)({areSearchEntriesFetching:l.FX,groupedEntries:l.hH,hasMoreEntries:l.o4,pageIds:l.lR,areSearchResultsFetching:l.Ze})),f=(0,s.wA)();(0,n.useEffect)((()=>{!t&&y.length&&(f((0,d.Hu)()),f((0,d.jq)(y)))}),[f,y,t]);const p=e=>{let{index:t}=e;return(0,h.jsx)(n.Suspense,{fallback:(0,h.jsx)(i.A,{}),children:(0,h.jsx)(g,{cardID:t,entries:r[t]})},t)};return(0,h.jsxs)("div",{children:[r&&!!r.length&&(0,h.jsx)(c.aY,{overscan:500,totalCount:r.length,style:{height:"75vh"},className:"card-virtuoso",itemContent:e=>(0,h.jsx)(p,{index:e}),endReached:()=>{u&&(async()=>{f((0,d.jq)(y,!0))})()},components:{Footer:()=>(0,h.jsx)("div",{className:`pa4 ${u?"flex":"dn"} justify-center`,children:"Loading more..."})},onPointerEnterCapture:()=>{},onPointerLeaveCapture:()=>{}}),(e||t)&&(0,h.jsx)("h3",{className:"tc",children:"Loading..."}),!e&&!t&&!r.length&&(0,h.jsx)("div",{children:(0,h.jsx)("h2",{className:"tc",children:o.oG})})]})}},22470:(e,t,r)=>{r.d(t,{iy:()=>i,ml:()=>l,xM:()=>o,yO:()=>d});var n=r(43875),s=r(70971),a=r(90202);const c=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{type:s.DO,metadata:e}},o=async(e,t,r)=>(0,a.ck)(t).child(e).update(r),i=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return{type:s.d8,id:e,updates:t,metadata:r}},l=()=>async(e,t)=>{const{uid:r}=t().userinfo;return e(c({isFetching:!0,draftError:""})),(0,a.ck)(r).once("value").then((t=>{const r=t.val();var n;r&&e((n=r,{type:s.M1,payload:n})),e(c({isFetching:!1}))})).catch((t=>{console.log("Error fetching drafts: ",t),e(c({isFetching:!1,draftError:t.message}))}))},d=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return async c=>(0,a.ck)(t).child(e).remove().then((()=>
1{if(c(function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{type:s.Mu,id:e,metadata:t}}(e)),r){return n.hv.child(`/images/${t}/${e}`).listAll().then((e=>e.items.forEach((e=>{e.delete()})))).then((()=>{console.log("Delete images")})).catch((e=>console.log("Error deleting files from storage: ",e)))}})).catch((e=>console.log("Error...couldn't delete draft",e)))}},73670:(e,t,r)=>{r.d(t,{D:()=>a,i:()=>c});var n=r(87685),s=r(90202);const a=e=>{const t=(0,n.Xd)();return{id:"",title:"",data:"",html:"",cr_dt:t,tag:[],dt:e?(0,n._U)(e)===(0,n._U)(t)?t:(0,n.Xd)(e):t,img:{},src:2,upd_src:2,logTime:s.UG.now()}},c=e=>{const{title:t="",location:r,data:s="",cr_dt:a,dt:c,dt_gmt:o,tag:i=[],img:l={},...d}=e;return{cr_dt:(0,n.OF)(a),data:s,title:t,tag:i,dt:(0,n.OF)(c),dt_gmt:(0,n.OF)(o),img:l,...d}}},33710:(e,t,r)=>{r.d(t,{Hu:()=>_,OU:()=>f,Uz:()=>g,V8:()=>u,cD:()=>p,jq:()=>x,p5:()=>E,q3:()=>y});var n=r(72095),s=r(30267),a=r(70971),c=r(85828),o=r(73670),i=r(90202),l=r(17550),d=r(82519),h=r(19820);const g=e=>({type:a.ky,text:e}),u=e=>({type:a.ce,sort_field:e}),y=e=>({type:a.ZX,sort_by:e}),f=e=>({type:a.L2,payload:e}),p=e=>({type:a.kA,payload:e}),m=e=>({type:a.lC,areSearchEntriesFetching:e}),v=e=>({type:a.HE,areSearchResultsFetching:e}),_=()=>({type:a.Bl}),E=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100;return async(r,n)=>{const c=n(),o=(0,d.As)(c);if(!o.trim().length)return;r(v(!0));const i=(0,d.oP)(c),l=Array.from((0,d.E7)(c)),g=(0,d.Le)(c),u=(0,d.ak)(c),y={...g!==h.AL&&{sort_field:g,sort_by:i},search_word_list:o.split(" "),date_range_filter:u,select_field_list:l,suggest_flg:e,fetch_size:t};try{const e=await(0,s.g)("get_dybk_search",y,{region:"us-east1"}),t=await e.json();if(200===t.statusCode){const e=(0,d._H)(c),n=t.body;e&&r((e=>({type:a.Hy,payload:e}))(n))}}catch(f){console.log("Error fetching search results: ",f)}finally{r(v(!1))}}},x=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return async(r,s)=>{const h=s(),{idx:g}=(0,d.EG)(h),u=(0,l.B$)(h),y=g+1,f=y+7,p=e.slice(y,f);if(!p.length)return;const v=(0,i.xV)(u),_={};return r(m(!0)),Promise.all(p.map((async e=>{if(!(0,n.l$)(_,e)){try{const t=(await v.doc(e).get()).data(),r=(0,o.i)(t);_[e]=r}catch(t){console.log(`Error fetching entry for id: ${e}`,t)}return!0}return!1}))).then((()=>{t?(r((e=>({type:a.m5,entries:e}))(_)),r((0,c.vT)(_))):(r((e=>({type:a.d5,entries:e}))(_)),r((0,c.vT)(_)));const e=g+p.length,n=p[p.length-1];var s,o;r((s=n,o=e,{type:a.kp,id:s,idx:o}))})).catch((e=>{console.log("Error fetching entries: ",e)})).finally((()=>{r(m(!1))}))}}}}]);
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.