PageSourceSearch

https://www.backtoit.io/_next/static/chunks/pages/fav-573b3cc2926d5818.js

js backtoit.io collected 2026-09-24 14:03:37 UTC 29,336 bytes, 2 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[610],{20640:function(e,t,r){"use strict";var n=r(11742),o={"text/plain":"Text","text/html":"Url",default:"Text"};e.exports=function(e,t){var r,a,i,c,u,s,l,d,f=!1;t||(t={}),i=t.debug||!1;try{if(u=n(),s=document.createRange(),l=document.getSelection(),(d=document.createElement("span")).textContent=e,d.ariaHidden="true",d.style.all="unset",d.style.position="fixed",d.style.top=0,d.style.clip="rect(0, 0, 0, 0)",d.style.whiteSpace="pre",d.style.webkitUserSelect="text",d.style.MozUserSelect="text",d.style.msUserSelect="text",d.style.userSelect="text",d.addEventListener("copy",function(r){if(r.stopPropagation(),t.format){if(r.preventDefault(),void 0===r.clipboardData){i&&console.warn("unable to use e.clipboardData"),i&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var n=o[t.format]||o.default;window.clipboardData.setData(n,e)}else r.clipboardData.clearData(),r.clipboardData.setData(t.format,e)}t.onCopy&&(r.preventDefault(),t.onCopy(r.clipboardData))}),document.body.appendChild(d),s.selectNodeContents(d),l.addRange(s),!document.execCommand("copy"))throw Error("copy command was unsuccessful");f=!0}catch(n){i&&console.error("unable to copy using execCommand: ",n),i&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),f=!0}catch(n){i&&console.error("unable to copy using clipboardData: ",n),i&&console.error("falling back to prompt"),r="message"in t?t.message:"Copy to clipboard: #{key}, Enter",a=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C",c=r.replace(/#{\s*key\s*}/g,a),window.prompt(c,e)}}finally{l&&("function"==typeof l.removeRange?l.removeRange(s):l.removeAllRanges()),d&&document.body.removeChild(d),u()}return f}},92287:function(e,t,r){"use strict";r.d(t,{s:function(){return u}});var n=r(59499),o=r(36948),a=r(55038),i=r(35944);function c(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}var u=function(e){return(0,i.tZ)(o.J,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?c(Object(r),!0).forEach(function(t){(0,n.Z)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({as:a.qGf},e))}},68600:function(e,t,r){"use strict";r.d(t,{b:function(){return u}});var n=r(59499),o=r(36948),a=r(18562),i=r(35944);function c(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}var u=function(e){return(0,i.tZ)(o.J,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?c(Object(r),!0).forEach(function(t){(0,n.Z)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({as:a.Q81},e))}},11876:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return ej}});var n,o=r(67294),a=r(74865),i=r.n(a),c=r(70917),u=r(67211),s=r(66259),l=r(59499),d=r(16835),f=r(24697),p=r(4480),m=r(50029),v=r(64687),h=r.n(v),b=r(2337),g=r(20640),y=r.n(g),k=r(78005),w=r(2449),x=r(73612),Z=r(65809),O=r(48685),j=r(71019),C=r(64634),S=r(81600),D=r(47623),E=r(41046),P=r(23173),_=r(15759),B=r(35944),T={name:"1wcbmze",styles:"min-width:8rem"},M={name:"1opdq2f",styles:"font-size:14px;padding-top:0.3rem;padding-bottom:0.3rem"},N=(n=(0,m.Z)(h().mark(function e(t,r,n,o,a,c){var u;return h().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,i().start(),c(!1),n(!0),e.next=6,(0,E.QG)("/bookmarks",r);case 6:if(u=e.sent.docs,!(o!==a.current)){e.next=10;break}return e.abrupt("return");case 10:t(u),n(!1),i().done(),e.next=21;break;case 15:e.prev=15,e.t0=e.catch(0),(0,k._N)("bookmarks"),n(!1),c(!0),i().done();case 21:case"end":return e.stop()}},e,null,[[0,15]])})),function(e,t,r,o,a,i){return n.apply(this,arguments)}),L={425:1,700:2,1150:3},I=(0,o.memo)(function(e){var t=e.options,r=e.padding,n=e.isSearching,a=e.bookmarks,i=e.bookmarksViewMode,c=e.isErrorBookmarks,u=(0,o.useRef)(),s=(0,o.useState)(null),l=s[0],d=s[1],f=(0,o.useState)(!0),p=f[0],m=f[1],v=null!=i&&i.viewLikeCard?x.Z:w.Z,h=!a,g=(0,o.useState)(!1),k=g[0],E=g[1],I=(0,o.useCallback)(function(e){var t=e.children;return null!=i&&i.viewLikeCard?(0,B.tZ)(b.G,{columnsCountBreakPoints:L,children:(0,B.tZ)(b.Z,{columnsCount:3,gutter:r,children:t})}):(0,B.tZ)(B.HY,{children:t})},[null==i?void 0:i.viewLikeCard,r]),R=(0,o.useCallback)(function(e){return(0,B.BX)(C.qy,{css:T,children:[(0,B.tZ)(C.sN,{css:M,onClick:function(t){t.stopPropagation(),y()(e.url),(0,P.F)({title:"Bookmark URL copied to clipboard!",description:e.url,icon:(0,B.tZ)(_.U,{boxSize:4}),duration:2e4,isClosable:!0,position:"top-right"})},children:"Copy URL"}),(0,B.tZ)(C.sN,{css:M,onClick:function(t){t.stopPropagation(),window.open("https://web.archive.org/web/changes/".concat(e.url),"_blank")},children:"Open Web archive"})]})},[]);return((0,o.useEffect)(function(){h||(u.current=Math.random(),N(d,t,m,u.current,u,E))},[t,a]),c||k)?(0,B.BX)(j.x,{fontSize:"15px",block:!0,textAlign:["center","center","center","left"],children:["Error fetching bookmarks ",(0,B.tZ)(S.Z,{children:"\uD83E\uDD26\uD83C\uDFFB‍♂️"})]}):h?null!=i&&i.viewLikeCard?(0,B.tZ)(O.Z,{ListContainer:I}):(0,B.tZ)(Z.Z,{}):p?null:(null==l?void 0:l.length)===0?n?(0,B.BX)(j.x,{fontSize:"15px",block:!0,textAlign:["center","center","center","left"],children:["There are no bookmarks that match the search ",(0,B.tZ)(S.Z,{children:"\uD83E\uDD37‍♂️️"})]}):(0,B.tZ)(D.Z,{text:"No bookmarks saved yet"}):(0,B.tZ)(I,{children:null==l?void 0:l.map(function(e,t){return(0,B.tZ)(v,{bookmark:e,viewMode:i,isLastItem:t===l.length-1,menuList:R,isPublicMode:!0},e._id)})})}),R=r(45161),A=r(43281),z=r(7765),F=r(32669),X=r(86824),V=r(55727),U=r(54213),G=r(40484),q=r(66988),J=r(13032),W=r(18836),H=r(92287),Q=r(57694),$=r(56555),K=r(29633);function Y(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function ee(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
1t%2?Y(Object(r),!0).forEach(function(t){(0,l.Z)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Y(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var et={name:"52z1b9",styles:"&:after{content:'\uD83D\uDCB2';position:absolute;right:12px;}"},er={container:function(e,t,r){return(0,c.iv)("padding:",e," 0;position:sticky;top:0;z-index:1;box-shadow:",r?"0 3px 3px ".concat((0,A.m4)(q.Z.colors.background[t],.02)):"",";border-bottom:",r?"1px solid ".concat((0,A.m4)(q.Z.colors.background[t],.08)):"",";","")},maxWidth:function(e){return(0,c.iv)("padding:0 ",e,"!important;","")},headerWrapper:{name:"1066lcq",styles:"display:flex;justify-content:space-between;align-items:center"},inputContainer:function(e){return(0,c.iv)("max-width:",e,";flex:1;display:flex;justify-content:flex-end;position:relative;","")},menuIcon:function(e){return(0,c.iv)("margin-right:",e,";","")},menuOptions:function(e){return(0,c.iv)("margin-left:",e,";","")},addLinkTooltipOffset:function(e){return[0,Number(e.replace("px",""))]},searchTooltipOffset:function(e){return[10,Number(e.replace("px",""))+4]},emojiIcon:{name:"a2ctq2",styles:"margin-right:-2px"},menuItem:function(e){return(0,c.iv)("font-size:14px;padding-top:0.3rem;padding-bottom:0.3rem;opacity:",e&&.48,";",e&&et,";","")},menuContent:{name:"r12hsx",styles:"min-width:12rem"},searchModeButton:function(e){return(0,c.iv)("&:focus{box-shadow:0 0 0 3px ",q.Z.colors.primary.base,"!important;}","light"===e&&"\n      border-color: ".concat(q.Z.colors.border[e],";\n      &:hover {\n      background: #E2E8F0;\n    "),";","")},clearInput:(0,c.iv)("color:",q.Z.colors.primary.base,";position:absolute;right:85px;",""),filterIcon:function(e){return(0,c.iv)("transform:rotate(",e?"180deg":"0deg",");transition:transform ",q.Z.transition.duration.normalSlow,";","")}},en=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;return!r||(null===(e=Object.values(t).filter(function(e){return e}))||void 0===e?void 0:e.length)>1},eo=function(e){var t=e.values;return(0,B.BX)(V.Z,{flex:!0,centerV:!0,children:[t.icon&&(0,B.tZ)(t.icon,{boxSize:5,filled:!0,mb:"1px"}),(0,B.BX)(j.x,{ml:t.icon?"6px":0,fontWeight:"medium",children:[t.name," ",t.count?"(".concat(t.count,")"):""]}),t.rightIcon&&(0,B.tZ)(t.rightIcon,{})]})},ea=(0,o.forwardRef)(function(e,t){var r=e.padding,n=e.setInputValue,a=e.inputValue,i=e.menuSearchOptions,c=e.viewMode,u=e.setViewMode,d=e.sortMode,f=e.setSortMode,p=e.sortModeOptions,m=e.searchMode,v=e.setSearchMode,h=e.scrollPassLimit,b=e.viewModeOptions,g=e.setLargeDebounceTime,y=e.count,w=(0,s.Z)("none","none","380px"),x=(0,s.Z)(!1,!1,!1,!0),Z=(0,R.If)().colorMode,O=(0,o.useMemo)(function(){return{icon:k.dZ,name:"Favourites",count:y}},[y]),j=(0,K.pQ)(),S=(0,K.HX)();return(0,B.tZ)("div",{css:er.container(r,"dark"===Z&&"light"||"light"===Z&&"dark",h),ref:t,children:(0,B.BX)(Q.Z,{css:er.maxWidth(r),children:[(0,B.BX)("div",{css:er.headerWrapper,children:[(0,B.tZ)("div",{children:x&&(0,B.tZ)(eo,{values:O})}),(0,B.BX)(V.Z,{flex:!0,flexNumber:1,justifyContent:"flex-end",children:[(0,B.tZ)("div",{css:er.inputContainer(w),children:(0,B.BX)(z.BZ,{size:"sm",children:[(0,B.tZ)(z.II,{variant:"filled",size:"sm",placeholder:"Type search...",value:a,onChange:function(e){g(!0),n(e.target.value),setTimeout(function(){return g(!1)},350)},pr:"103px"}),(0,B.BX)(z.xH,{width:"80px",children:[a&&(0,B.tZ)(H.s,{boxSize:4,onClick:function(){return n("")},css:er.clearInput}),(0,B.tZ)(C.v2,{placement:"bottom-end",closeOnSelect:!1,autoSelect:!1,children:function(){return(0,B.BX)(o.Fragment,{children:[(0,B.tZ)(U.u,{label:" Select type of search",placement:"bottom-start",offset:er.searchTooltipOffset(r),children:(0,B.tZ)(C.j2,{as:J.z,size:"xs",mr:"4px",width:"76px",variant:"outline",textTransform:"capitalize",css:er.searchModeButton(Z),children:"Search by"})}),(0,B.tZ)(C.qy,{css:er.menuContent,children:(0,B.tZ)(C.__,{title:"Search bookmarks",children:i.map(function(e){return(0,B.tZ)(U.u,{label:"Full-body text"===e.label?"Returns any bookmark that contain at least one match on the page body":null,placement:"bottom",children:(0,B.BX)(W.i,{type:"radio",css:e.premium?er.menuItem(!S):er.menuItem(
1),value:e.value,isChecked:!!m[e.value],onClick:function(){var t=function(){return en(m,m[e.value])&&v(function(t){var r=ee(ee({},t),{},(0,l.Z)({},e.value,!m[e.value]));return(0,$.Rc)("search_bookmarks_by_fav",{value:r}),r})};e.premium?j()&&t():t()},children:["By ",e.label]})},e.value)})})})]})}})]})]})}),(0,B.tZ)(C.v2,{placement:"bottom-end",closeOnSelect:!1,autoSelect:!1,children:function(e){var t=e.isOpen;return(0,B.BX)(o.Fragment,{children:[(0,B.tZ)(U.u,{label:"View & Sort mode",placement:"bottom-start",offset:er.addLinkTooltipOffset(r),children:(0,B.tZ)(C.j2,{as:F.h,"aria-label":"Search options",icon:(0,B.tZ)(X.w,{boxSize:5,css:er.filterIcon(t)}),size:"sm",colorScheme:"primaryButton",gray:!0,css:er.menuOptions(r)})}),(0,B.BX)(C.qy,{css:er.menuContent,children:[(0,B.tZ)(C.__,{title:"View mode",children:b.map(function(e){return(0,B.tZ)(W.i,{css:e.premium?er.menuItem(!S):er.menuItem(),value:e.value,isChecked:!!c[e.value],onClick:function(){var t=function(){return u(function(t){var r=ee(ee({},t),{},(0,l.Z)({},e.value,!c[e.value]));return(0,$.Rc)("view_mode_change_fav",{value:r}),r})};e.premium?j()&&t():t()},children:e.label},e.value)})}),(0,B.tZ)(C.R,{}),(0,B.tZ)(C.__,{title:"Sort mode",children:p.map(function(e){return(0,B.tZ)(U.u,{label:e.default?"Default sort mode":null,placement:"top",children:(0,B.tZ)(W.i,{type:"radio",css:er.menuItem(),value:e.value,isChecked:d===e.value,onClick:function(){f(e.value),(0,$.Rc)("sort_mode_change_fav",{value:e.value})},children:e.label},e.value)},e.value)})})]})]})}})]})]}),!x&&(0,B.tZ)(V.Z,{center:!0,children:(0,B.tZ)(G.x,{mt:"15px",display:"inline-block",children:(0,B.tZ)(eo,{values:O})})})]})})}),ei=(0,o.memo)(ea),ec=r(21042),eu=r(6983),es=r(79291),el=(0,eu.J)({key:"".concat(es.Uq,"-FAV")}).persistAtom,ed=(0,p.cn)({key:"favBookmarksViewMode",default:{viewLikeCard:!1,showTags:!0,showUrl:!0,showDescription:!1,showDate:!1},effects_UNSTABLE:[el]}),ef=(0,p.cn)({key:"favBookmarksSearchMode",default:{title:!0,description:!0,url:!0,tags:!1,text:!1},effects_UNSTABLE:[el]}),ep=(0,p.cn)({key:"favBookmarksSortMode",default:"-createdAt",effects_UNSTABLE:[el]});function em(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}var ev=[{label:"Title",value:"title"},{label:"Description",value:"description"},{label:"URL",value:"url"},{label:"Tags",value:"tags"},{label:"Full-body text",value:"text",premium:!0}],eh=[{label:"Creation date Asc  ↑",value:"createdAt"},{label:"Creation date Des  ↓",value:"-createdAt",default:!0},{label:"Bookmark title Asc (A-Z)",value:"title"},{label:"Bookmark title Des (Z-A)",value:"-title"}],eb=[{label:"Type card",value:"viewLikeCard"},{label:"Show tags",value:"showTags"},{label:"Show URL",value:"showUrl"},{label:"Show description",value:"showDescription"},{label:"Show date",value:"showDate",premium:!0}],eg=(0,o.memo)(function(e){var t=e.padding,r=e.bookmarks,n=e.isErrorBookmarks,a=(0,o.useState)(""),i=a[0],u=a[1],s=(0,o.useState)(!1),m=s[0],v=s[1],h=(0,o.useState)(!1),b=h[0],g=h[1],y=(0,f.Nr)(i,b?350:0),k=(0,d.Z)(y,1)[0],w=(0,p.FV)(ed),x=(0,d.Z)(w,2),Z=x[0],O=x[1],j=(0,p.FV)(ep),C=(0,d.Z)(j,2),S=C[0],D=C[1],E=(0,p.FV)(ef),P=(0,d.Z)(E,2),_=P[0],T=P[1],M=(0,o.useRef)(),N=(0,ec.Z)(M).height,L=(0,o.useMemo)(function(){if(k)return{$or:ev.filter(function(e){return _[e.value]}).map(function(e){return(0,l.Z)({},e.value,{$regex:k,$options:"i"})})}},[_,k,ev]),R=(0,o.useMemo)(function(){return{params:{options:function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?em(Object(r),!0).forEach(function(t){(0,l.Z)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):em(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({favourite:!0},null!=L?L:{}),sort:S,select:"title image description url favourite folder updatedAt createdAt color"}}},[L,S]);return(0,B.BX)(B.HY,{children:[(0,B.tZ)(ei,{ref:M,padding:t,setInputValue:u,inputValue:i,menuSearchOptions:ev,viewMode:Z,setVie
1wMode:O,sortMode:S,setSortMode:D,searchMode:_,setSearchMode:T,sortModeOptions:eh,scrollPassLimit:m,viewModeOptions:eb,setLargeDebounceTime:g,count:r?r.length:void 0}),(0,B.tZ)(Q.Z,{css:(0,c.iv)("padding:",t,"!important;height:calc(100% - ",N,"px);overflow-y:auto;overflow-x:hidden;",""),className:"custom-scrollbar-guardo",onScroll:function(e){if(e.target.scrollTop>10)return m?void 0:v(!0);m&&v(!1)},children:(0,B.tZ)(I,{options:R,padding:t,isSearching:!!i,bookmarks:r,bookmarksViewMode:Z,isErrorBookmarks:n})})]})}),ey=r(81758),ek=r(98425),ew={params:{options:{favourite:!0},sort:"-createdAt"}},ex=function(){return ek.Z.get("/bookmarks",ew).then(function(e){return e.data})},eZ={name:"3ytxc3",styles:"height:100%;overflow:hidden"},eO=(0,o.memo)(function(){var e,t,r,n,a=(t=(e=(0,ey.ZP)("extension-fav",ex)).data,r=e.error,n=e.isLoading,{bookmarks:null==t?void 0:t.docs,isLoadingBookmarks:n,isErrorBookmarks:r}),i=a.bookmarks,l=a.isErrorBookmarks;(0,o.useEffect)(function(){l&&(0,k._N)("bookmarks")},[l]);var d=(0,s.Z)("10px","15px"),f=(0,s.Z)(46,53);return(0,B.BX)("div",{css:eZ,children:[(0,B.tZ)(u.Z,{headerHeight:f,padding:d}),(0,B.tZ)("div",{css:(0,c.iv)("height:calc(100% - ",f,"px);width:100%;",""),children:(0,B.tZ)(eg,{padding:d,bookmarks:i,headerHeight:f,isErrorBookmarks:l})})]})}),ej=function(){return(0,o.useEffect)(function(){return i().start()},[]),(0,B.tZ)(eO,{})}},41046:function(e,t,r){"use strict";r.d(t,{Ke:function(){return O},LV:function(){return T},Mw:function(){return E},QG:function(){return P},TG:function(){return S},TK:function(){return _},Tc:function(){return C},iR:function(){return Z},tZ:function(){return D},ur:function(){return j}});var n,o,a,i,c,u,s,l=r(59499),d=r(50029),f=r(27812),p=r(64687),m=r.n(p),v=r(81758),h=r(74865),b=r.n(h),g=r(98425),y=r(23173);function k(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function w(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?k(Object(r),!0).forEach(function(t){(0,l.Z)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):k(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}r(4080);var x=function(e,t){var r;null!=e&&null!==(r=e.tags)&&void 0!==r&&r.length&&t(function(t){return Object.values([].concat((0,f.Z)(t),(0,f.Z)(null==e?void 0:e.tags)).reduce(function(e,t){return e[t._id]=t,e},{}))})},Z=(n=(0,d.Z)(m().mark(function e(t,r,n,o){var a;return m().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,g.Z.post("/bookmarks/autoTags",{bookmark:{title:t,description:r,url:n,tags:o}});case 2:return a=e.sent,e.abrupt("return",a.data.tags);case 4:case"end":return e.stop()}},e)})),function(e,t,r,o){return n.apply(this,arguments)}),O=(o=(0,d.Z)(m().mark(function e(t,r,n,o,a){var i,c,u;return m().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,g.Z.post("/bookmarks",w({},t));case 3:u=e.sent,e.next=12;break;case 6:return e.prev=6,e.t0=e.catch(0),y.F.close("creating-editing-bookmark"),o(e.t0),b().done(),e.abrupt("return",{});case 12:return a?r(function(e){var t;return[(null===(t=u)||void 0===t?void 0:t.data)||[]].concat((0,f.Z)(e||[]))}):r(function(e){return(0,f.Z)(e||[])}),x(null===(i=u)||void 0===i?void 0:i.data,n),y.F.close("creating-editing-bookmark"),e.abrupt("return",null===(c=u)||void 0===c?void 0:c.data);case 16:case"end":return e.stop()}},e,null,[[0,6]])})),function(e,t,r,n,a){return o.apply(this,arguments)}),j=(a=(0,d.Z)(m().mark(function e(t,r,n,o,a,i){var c,u,s;return m().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,g.Z.put("/bookmarks/".concat(t.paramId),w({},t));case 3:u=e.sent,e.next=12;break;case 6:return e.prev=6,e.t0=e.catch(0),y.F.close("creating-editing-bookmark"),o(e.t0),b().done(),e.abrupt("return",{});case 12:if(!a){e.next=19;break}if(r(function(e){var t,r=(0,f.Z)(e),n=r.findIndex(function(e){var t;return e._id===(null===(t=u)||void 0===t||null===(t=t.data)||void 0===t?void 0:t._id)});return -1!==n&&(r[n]=null===(t=u)||void 0===t?void 0:t.data),r}),!i){e.next=17;break}return e.next=17,i(function(e){var t,r=(0,f.Z)(e),n=r.findIndex(function(e){var t;return e._id===(null===(t=u)||void 0===t||null===(t=t.data)||void 0===t?void 0:t._id)});return -1!==n&&(r[n]=null===(t=u)||void 0===t?void 0:t.data),r});case 17:e.next=20;break;case 19:r(function(e){return(0,f.Z)(e||[])});case 20:return n&&x(null===(s=u)||void 0===s?void 0:s.data,n),y.F.close("creating-editing-bookmark"),e.abrupt("return",null===(c=u)||void 0===c?void 0:c.data);case 23:case"end":return e.stop()}},e,null,[[0,6]])})),function(e,t,r,n,o,i){return a.apply(this,arguments)}),C=(i=(0,d.Z)(m().mark(function e(t,r){var n;return m().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,g.Z.delete("/bookmarks/".concat(t));case 2:return n=e.sent,r(function(e){return e.filter(function(e){return e._id!==t})}),(0,v.JG)("/folders"),e.abrupt("return",n);case 6:case"end":return e.stop()}},e)})),function(e,t){return i.apply(this,arguments)}),S=(c=(0,d.Z)(m().mark(function e(t){var r;return m().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,g.Z.delete("/bookmarks",{data:{ids:t}});case 2:return r=e.sent,e.next=5,(0,v.JG)("/bookmarks");case 5:return(0,v.JG)("/folders"),e.abrupt("return",r);case 7:case"end":return e.stop()}},e)})),function(e){return c.apply(this,arguments)}),D=(u=(0,d.Z)(m().mark(function e(t,r){var n;return m().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,g.Z.post("/bookmarks/many",{ids:t,update:r});case 2:return n=e.sent,e.next=5,(0,v.JG)("/bookmarks");case 5:return e.abrupt("return",n);case 6:case"end":return e.stop()}},e)})),function(e,t){return u.apply(this,arguments)}),E=(s=(0,d.Z)(m().mark(function e(t,r){return m().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",g.Z.get("/bookmarks/".concat(t).concat(r||"")));case 1:case"end":return e.stop()}},e)})),function(e,t){return s.apply(this,arguments)}),P=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return g.Z.get(e,t).then(function(e){return e.data})};function _(e,t){return B.apply(this,arguments)}function B(){return(B=(0,d.Z)(m().mark(function e(t,r){var n;return m().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,g.Z.get("/bookmarks/search?query=".concat(t,"&folderId=").concat(r));case 2:return n=e.sent,e.abrupt("return",n.data);case 4:case"end":return e.stop()}},e)}))).apply(this,arguments)}function T(){var e=(0,v.ZP)("/bookmarks",P),t=e.data,r=e.error,n=e.isLoading;return{bookmarks:null==t?void 0:t.docs,isLoadingBookmarks:n,isErrorBookmarks:r}}},95414:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/fav",function(){return r(11876)}])},2337:function(e,t,r){"use strict";r.d(t,{G:function(){return d},Z:function(){return f}});var n=r(67294);function o(){return(o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];
1for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var i=function(e){function t(){return e.apply(this,arguments)||this}t.prototype=Object.create(e.prototype),t.prototype.constructor=t,a(t,e);var r=t.prototype;return r.getColumns=function(){var e=this.props,t=e.children,r=e.columnsCount,o=Array.from({length:r},function(){return[]});return n.Children.forEach(t,function(e,t){e&&n.isValidElement(e)&&o[t%r].push(e)}),o},r.renderColumns=function(){var e=this.props.gutter;return this.getColumns().map(function(t,r){return n.createElement("div",{key:r,style:{display:"flex",flexDirection:"column",justifyContent:"flex-start",alignContent:"stretch",flex:1,width:0,gap:e}},t.map(function(e){return e}))})},r.render=function(){var e=this.props,t=e.gutter,r=e.className,a=e.style;return n.createElement("div",{style:o({display:"flex",flexDirection:"row",justifyContent:"center",alignContent:"stretch",boxSizing:"border-box",width:"100%",gap:t},a),className:r},this.renderColumns())},t}(n.Component);i.propTypes={},i.defaultProps={columnsCount:3,gutter:"0",className:null,style:{}};var c="undefined"!=typeof window?n.useLayoutEffect:n.useEffect,u=function(){var e=(0,n.useState)(!1),t=e[0],r=e[1];return c(function(){r(!0)},[]),t},s=function(){var e=u(),t=(0,n.useState)(0),r=t[0],o=t[1],a=(0,n.useCallback)(function(){e&&o(window.innerWidth)},[e]);return c(function(){if(e)return window.addEventListener("resize",a),a(),function(){return window.removeEventListener("resize",a)}},[e,a]),r},l=function(e){var t=e.columnsCountBreakPoints,r=void 0===t?{350:1,750:2,900:3}:t,o=e.children,a=e.className,i=e.style,c=s(),u=(0,n.useMemo)(function(){var e=Object.keys(r).sort(function(e,t){return e-t}),t=e.length>0?r[e[0]]:1;return e.forEach(function(e){e<c&&(t=r[e])}),t},[c,r]);return n.createElement("div",{className:void 0===a?null:a,style:void 0===i?null:i},n.Children.map(o,function(e,t){return n.cloneElement(e,{key:t,columnsCount:u})}))};l.propTypes={};var d=l,f=i},11742:function(e){e.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,r=[],n=0;n<e.rangeCount;n++)r.push(e.getRangeAt(n));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null}return e.removeAllRanges(),function(){"Caret"===e.type&&e.removeAllRanges(),e.rangeCount||r.forEach(function(t){e.addRange(t)}
1),t&&t.focus()}}},24697:function(e,t,r){"use strict";r.d(t,{Nr:function(){return i}});var n=r(67294);function o(e,t){return e===t}function a(e,t){return t}function i(e,t,r){var i=r&&r.equalityFn||o,c=(0,n.useReducer)(a,e),u=c[0],s=c[1],l=function(e,t,r){var o=this,a=(0,n.useRef)(null),i=(0,n.useRef)(0),c=(0,n.useRef)(null),u=(0,n.useRef)([]),s=(0,n.useRef)(),l=(0,n.useRef)(),d=(0,n.useRef)(e),f=(0,n.useRef)(!0);d.current=e;var p="undefined"!=typeof window,m=!t&&0!==t&&p;if("function"!=typeof e)throw TypeError("Expected a function");t=+t||0;var v=!!(r=r||{}).leading,h=!("trailing"in r)||!!r.trailing,b="maxWait"in r,g="debounceOnServer"in r&&!!r.debounceOnServer,y=b?Math.max(+r.maxWait||0,t):null;return(0,n.useEffect)(function(){return f.current=!0,function(){f.current=!1}},[]),(0,n.useMemo)(function(){var e=function(e){var t=u.current,r=s.current;return u.current=s.current=null,i.current=e,l.current=d.current.apply(r,t)},r=function(e,t){m&&cancelAnimationFrame(c.current),c.current=m?requestAnimationFrame(e):setTimeout(e,t)},n=function(e){if(!f.current)return!1;var r=e-a.current;return!a.current||r>=t||r<0||b&&e-i.current>=y},k=function(t){return c.current=null,h&&u.current?e(t):(u.current=s.current=null,l.current)},w=function e(){var o=Date.now();if(n(o))return k(o);if(f.current){var c=t-(o-a.current);r(e,b?Math.min(c,y-(o-i.current)):c)}},x=function(){if(p||g){var d=Date.now(),m=n(d);if(u.current=[].slice.call(arguments),s.current=o,a.current=d,m){if(!c.current&&f.current)return i.current=a.current,r(w,t),v?e(a.current):l.current;if(b)return r(w,t),e(a.current)}return c.current||r(w,t),l.current}};return x.cancel=function(){c.current&&(m?cancelAnimationFrame(c.current):clearTimeout(c.current)),i.current=0,u.current=a.current=s.current=c.current=null},x.isPending=function(){return!!c.current},x.flush=function(){return c.current?k(Date.now()):l.current},x},[v,b,t,y,h,m,p,g])}((0,n.useCallback)(function(e){return s(e)},[s]),t,r),d=(0,n.useRef)(e);return i(d.current,e)||(l(e),d.current=e),[u,l]}},18689:function(e,t,r){"use strict";r.d(t,{i:function(){return l}});var n=r(70634),o=r(17148),a=r(73579),i=r(16554),c=r(25432),u=r(85893),s=e=>(0,u.jsx)("svg",{viewBox:"0 0 14 14",width:"1em",height:"1em",...e,children:(0,u.jsx)("polygon",{fill:"currentColor",points:"5.5 11.9993304 14 3.49933039 12.5 2 5.5 8.99933039 1.5 4.9968652 0 6.49933039"})}),l=(0,i.G)((e,t)=>{let{icon:r,iconSpacing:i="0.75rem",...l}=e,d=(0,a.gO)(l,t);return(0,u.jsxs)(n.C,{...d,className:(0,c.cx)("chakra-menu__menuitem-option",l.className),children:[null!==r&&(0,u.jsx)(o.O,{fontSize:"0.8em",marginEnd:i,opacity:e.isChecked?1:0,children:r||(0,u.jsx)(s,{})}),(0,u.jsx)("span",{style:{flex:1},children:d.children})]})});l.id="MenuItemOption",l.displayName="MenuItemOption"},8371:function(e,t,r){"use strict";r.d(t,{Sn:function(){return p},Vp:function(){return f}});var n=r(36948),o=r(55227),a=r(16554),i=r(77030),c=r(33179),u=r(16914),s=r(85893),[l,d]=(0,o.k)({name:"TagStylesContext",errorMessage:"useTagStyles returned is 'undefined'. Seems you forgot to wrap the components in \"<Tag />\" "}),f=(0,a.G)((e,t)=>{let r=(0,i.jC)("Tag",e),n=(0,c.Lr)(e),o={display:"inline-flex",verticalAlign:"top",alignItems:"center",maxWidth:"100%",...r.container};return(0,s.jsx)(l,{value:r,children:(0,s.jsx)(u.m.span,{ref:t,...n,__css:o})})});f.displayName="Tag";var p=(0,a.G)((e,t)=>{let r=d();return(0,s.jsx)(u.m.span,{ref:t,noOfLines:1,...e,__css:r.label})});p.displayName="TagLabel",(0,a.G)((e,t)=>(0,s.jsx)(n.J,{ref:t,verticalAlign:"top",marginEnd:"0.5rem",...e})).displayName="TagLeftIcon",(0,a.G)((e,t)=>(0,s.jsx)(n.J,{ref:t,verticalAlign:"top",marginStart:"0.5rem",...e})).displayName="TagRightIcon";var m=e=>(0,s.jsx)(n.J,{verticalAlign:"inherit",viewBox:"0 0 512 512",...e,children:(0,s.jsx)("path",{fill:"currentColor",d:"M289.94 256l95-95A24 24 0 00351 127l-95 95-95-95a24 24 0 00-34 34l95 95-95 95a24 24 0 1034 34l95-95 95 95a24 24 0 0034-34z"})});m.displayName="TagCloseIcon",(0,a.G)((e,t)=>{let{isDisabled:r,children:n,...o}=e,a={display:"flex",alignItems:"center",justifyContent:"center",outline:"0",...d().closeButton};return(0,s.jsx)(u.m.button,{ref:t,"aria-label":"close",...o,type:"button",disabled:r,__css:a,children:n||(0,s.jsx)(m,{})})}).displayName="TagCloseButton"}},function(e){e.O(0,[3365,4817,594,2510,5662,7640,3443,8344,1954,2633,6476,199,4080,9673,6321,7211,2888,9774,179],function(){return e(e.s=95414)}),_N_E=e.O()}]);
2//# sourceMappingURL=fav-573b3cc2926d5818.js.map

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.