PageSourceSearch

https://semble.so/_next/static/immutable/chunks/154v77ctgig3h.js

js semble.so collected 2026-10-02 18:08:24 UTC 35,274 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,722071,e=>{"use strict";var t=e.i(789549),n=e.i(281317),o=e.i(843476);let i={timeout:1e3};function r(e){let{children:r,timeout:a,value:l,...s}=(0,t.useProps)("CopyButton",i,e),c=(0,n.useClipboard)({timeout:a});return(0,o.jsx)(o.Fragment,{children:r({copy:()=>c.copy(l),copied:c.copied,...s})})}r.displayName="@mantine/core/CopyButton",e.s(["CopyButton",0,r])},670291,656062,e=>{"use strict";var t=e.i(843476),n=e.i(500932),o=e.i(439929),i=e.i(533372),r=e.i(129277),a=e.i(574079),l=e.i(277936),s=e.i(271645),c=e.i(473665),d=e.i(710078),u=e.i(864491),C=e.i(861054),h=e.i(294773),p=e.i(553917),y=e.i(590106),x=e.i(435671),m=e.i(659969);function f(e){let o,r,a,d,p,y,f,b,S,P,w=(0,n.c)(46);w[0]!==e.url?(o={url:e.url},w[0]=e.url,w[1]=o):o=w[1];let _=(0,C.default)(o),A=_.data.card?.note?.text,[L,k]=(0,s.useState)(A),[T,O]=(0,s.useState)(!1);w[2]!==_.data.collections?(r=_.data.collections??[],w[2]=_.data.collections,w[3]=r):r=w[3];let z=r,[B,K]=(0,s.useState)(null),U=B??z,E=(0,h.default)();w[4]!==_.data.card?.id||w[5]!==e||w[6]!==E?(a=()=>{let t=_.data.card?.id;t&&E.mutate(t,{onError:j,onSettled:()=>{e.onClose()}})},w[4]=_.data.card?.id,w[5]=e,w[6]=E,w[7]=a):a=w[7];let F=a;w[8]!==_.data.card||w[9]!==z||w[10]!==L||w[11]!==e||w[12]!==A||w[13]!==U?(d=t=>{t.preventDefault();let n=L?.trimEnd()===""?void 0:L,o=U.filter(e=>!z.some(t=>t.id===e.id)),i=z.filter(e=>!U.some(t=>t.id===e.id)),r=!!n&&n!==A,a=o.length>0,l=i.length>0;if(_.data.card&&!r&&!a&&!l)return void e.onClose();if(!_.data.card)return void e.onSubmit({isAddingNewCard:!0,cardData:{url:e.url,note:n,
1collectionIds:U.map(I),viaCardId:e.viaCardId}});let s={cardId:_.data.card.id};r&&(s.note=n),a&&(s.addToCollectionIds=o.map(v)),l&&(s.removeFromCollectionIds=i.map(g)),s.addToLibrary=a||r,s.viaCardId=e.viaCardId,e.onSubmit({isAddingNewCard:!1,updateData:s})},w[8]=_.data.card,w[9]=z,w[10]=L,w[11]=e,w[12]=A,w[13]=U,w[14]=d):d=w[14];let q=d,Q=e.cardContent?.title,Y=e.cardContent?.imageUrl;w[15]!==T||w[16]!==A?(p=!T&&(0,t.jsx)(i.Button,{variant:"light",size:"xs",color:"gray",leftSection:(0,t.jsx)(c.MdOutlineStickyNote2,{}),onClick:e=>{e.stopPropagation(),O(!0)},children:A?"Edit note":"Add note"}),w[15]=T,w[16]=A,w[17]=p):p=w[17],w[18]!==_.data.card?.note?.id||w[19]!==T||w[20]!==L||w[21]!==e.onClose||w[22]!==A?(y=T&&(0,t.jsx)(m.default,{note:L,onChange:k,noteId:_.data.card?.note?.id,onDeleted:e.onClose,onCancel:()=>{k(A),O(!1)}}),w[18]=_.data.card?.note?.id,w[19]=T,w[20]=L,w[21]=e.onClose,w[22]=A,w[23]=y):y=w[23],w[24]!==e.isInYourLibrary||w[25]!==e.url||w[26]!==e.urlLibraryCount||w[27]!==Q||w[28]!==Y||w[29]!==p||w[30]!==y?(f=(0,t.jsx)(x.default,{url:e.url,title:Q,imageUrl:Y,libraryCount:e.urlLibraryCount,isInYourLibrary:e.isInYourLibrary,action:p,children:y}),w[24]=e.isInYourLibrary,w[25]=e.url,w[26]=e.urlLibraryCount,w[27]=Q,w[28]=Y,w[29]=p,w[30]=y,w[31]=f):f=w[31],w[32]!==e?(b=()=>{e.onClose(),K(null)},w[32]=e,w[33]=b):b=w[33];let D=_.data.card?F:void 0;return w[34]!==q||w[35]!==e.isSaving||w[36]!==e.onClose||w[37]!==e.url||w[38]!==E.isPending||w[39]!==U||w[40]!==D||w[41]!==b?(S=(0,t.jsx)(u.default,{isOpen:!0,url:e.url,onClose:e.onClose,onCancel:b,onSave:q,isSaving:e.isSaving,onDeleteCard:D,isDeletingCard:E.isPending,selectedCollections:U,onSelectedCollectionsChange:K}),w[34]=q,w[35]=e.isSaving,w[36]=e.onClose,w[37]=e.url,w[38]=E.isPending,w[39]=U,w[40]=D,w[41]=b,w[42]=S):S=w[42],w[43]!==S||w[44]!==f?(P=(0,t.jsxs)(l.Stack,{gap:"md",children:[f,S]}),w[43]=S,w[44]=f,w[45]=P):P=w[45],P}function g(e){return e.id}function v(e){return e.id}function I(e){return e.id}function j(){p.notifications.show({message:"Could not delete card",color:"red",autoClose:5e3,withCloseButton:!0,position:"top-center",icon:(0,t.jsx)(y.BsExclamation,{})})}var b=e.i(349389),S=e.i(868328),P=e.i(922419),w=e.i(502836),_=e.i(954616),A=e.i(912598),L=e.i(6090),k=e.i(396603),T=e.i(991175),O=e.i(103991),z=e.i(71265),B=e.i(134052),K=e.i(604570),U=e.i(73260);function E(e,n){n.notificationId&&p.notifications.update({id:n.notificationId,color:"red",title:"Error",message:"Could not update card",position:"top-center",loading:!1,autoClose:!1,withCloseButton:!0,icon:(0,t.jsx)(y.BsExclamation,{})})}function F(e){let t=e.queryKey;return!!("cards"===t[0]&&"metadata"===t[1]&&t[3]&&"object"==typeof t[3]&&"includeStats"in t[3]&&!0===t[3].includeStats)}var q=e.i(621724);function Q(e){return e.stopPropagation()}e.s(["default",0,function(e){var u;let C,h,m,g,v,I,j,Y,D,N,M,R,G,$,V,H=(0,n.c)(37),W=(0,S.default)(),Z=(0,P.default)(e.analyticsContext),J=(u=e.analyticsContext,(G=(0,n.c)(5))[0]===Symbol.for("react.memo_cache_sentinel")?(N=(0,w.createSembleClient)(),G[0]=N):N=G[0],$=N,V=(0,A.useQueryClient)(),G[1]===Symbol.for("react.memo_cache_sentinel")?(M=e=>$.updateUrlCardAssociations({cardId:e.cardId,note:e.note,addToCollections:e.addToCollectionIds,removeFromCollections:e.removeFromCollectionIds,viaCardId:e.viaCardId}),G[1]=M):M=G[1],G[2]!==u||G[3]!==V?(R={mutationFn:M,onSuccess:(e,n)=>{if(n.notificationId&&p.notifications.update({id:n.notificationId,color:"green",title:"Success!",message:"Card updated",position:"top-center",loading:!1,autoClose:2e3,icon:(0,t.jsx)(y.BsCheck,{})}),V.invalidateQueries({queryKey:L.cardKeys.all()}),V.invalidateQueries({queryKey:T.noteKeys.all()}),V.invalidateQueries({queryKey:z.feedKeys.all()}),V.invalidateQueries({queryKey:O.sembleKeys.all()}),V.invalidateQueries({queryKey:k.collectionKeys.all()}),V.invalidateQueries({queryKey:B.connectionKeys.all()}),V.invalidateQueries({predicate:F}),n.addToCollectionIds?.forEach(e=>{V.invalidateQueries({queryKey:k.collectionKeys.collection(e)})}),n.removeFromCollectionIds?.forEach(e=>{V.invalidateQueries({queryKey:k.collectionKeys.collection(e)})}),(0,U.shouldCaptureAnalytics)()&&u&&n.addToLibrary){let e={save_source:u.saveSource,is_new_card:!1,has_note:!!n.note,collection_count:n.addToCollectionIds?.length||0,active_filters:u.activeFilters?{url_type:u.activeFilters.urlType,sort:u.activeFilters.sort,search_query:u.activeFilters.searchQuery,profile_filter:u.activeFilters.profileFilter}:void 0,via_card_id:n.viaCardId,page_path:u.pagePath};K.default.capture("card_saved",e),K.default.unregister("original_save_source"),K.default.unregister("original_active_filters")}},onError:E},G[2]=u,G[3]=V,G[4]=R):R=G[4],(0,_.useMutation)(R)),X=e.analyticsContext?.saveSource===b.CardSaveSource.ONBOARDING;H[0]!==Z||H[1]!==X||H[2]!==W||H[3]!==e||H[4]!==J?(C=t=>{if((0,q.track)("add or update existing card"),t.isAddingNewCard&&t.cardData){let n=`add-card-${Date.now()}`;p.notifications.show({id:n,loading:!0,title:"Adding card...",message:"Please wait",position:"top-center",autoClose:!1,withCloseButton:!1}),e.onClose(),Z.mutate({...t.cardData,notificationId:n},{onSuccess:()=>{X&&W.recordSaveGuideCompleted()}})}else if(!t.isAddingNewCard&&t.updateData){let n=`update-card-${Date.now()}`;p.notifications.show({id:n,loading:!0,title:"Updating card...",message:"Please wait",position:"top-center",autoClose:!1,withCloseButton:!1}),e.onClose();let o=t.updateData;J.mutate({...o,notificationId:n},{onSuccess:()=>{X&&o.addToLibrary&&(W.recordCardSaved(e.url),W.recordSaveGuideCompleted())}})}},H[0]=Z,H[1]=X,H[2]=W,H[3]=e,H[4]=J,H[5]=C):C=H[5];let ee=C;H[6]!==e.zIndex?(h=e.zIndex?{...o.DEFAULT_OVERLAY_PROPS,zIndex:e.zIndex-1}:o.DEFAULT_OVERLAY_PROPS,H[6]=e.zIndex,H[7]=h):h=H[7];let et=e.cardContent?.title,en=e.cardContent?.imageUrl;H[8]===Symbol.for("react.memo_cache_sentinel")?(m=(0,t.jsx)(a.Skeleton,{radius:"xl",children:(0,t.jsx)(i.Button,{variant:"light",size:"xs",color:"gray",leftSection:(0,t.jsx)(c.MdOutlineStickyNote2,{}),children:"Add note"})}),H[8]=m):m=H[8],H[9]!==e.isInYourLibrary||H[10]!==e.url||H[11]!==e.urlLibraryCount||H[12]!==et||H[13]!==en?(g=(0,t.jsx)(x.default,{url:e.url,title:et,imageUrl:en,libraryCount:e.urlLibraryCount,isInYourLibrary:e.isInYourLibrary,action:m}),H[9]=e.isInYourLibrary,H[10]=e.url,H[11]=e.urlLibraryCount,H[12]=et,H[13]=en,H[14]=g):g=H[14],H[15]===Symbol.for("react.memo_cache_sentinel")?(v=(0,t.jsx)(d.default,{}),H[15]=v):v=H[15],H[16]!==g?(I=(0,t.jsxs)(t.Fragment,{children:[g,v]}),H[16]=g,H[17]=I):I=H[17];let eo=`${e.url}-${e.isOpen}`,ei=Z.isPending||J.isPending;return H[18]!==ee||H[19]!==e.cardContent||H[20]!==e.isInYourLibrary||H[21]!==e.onClose||H[22]!==e.url||H[23]!==e.urlLibraryCount||H[24]!==e.viaCardId||H[25]!==eo||H[26]!==ei?(j=(0,t.jsx)(f,{onClose:e.onClose,onSubmit:ee,url:e.url,cardContent:e.cardContent,urlLibraryCount:e.urlLibraryCount,isInYourLibrary:e.isInYourLibrary,viaCardId:e.viaCardId,isSaving:ei},eo),H[18]=ee,H[19]=e.cardContent,H[20]=e.isInYourLibrary,H[21]=e.onClose,H[22]=e.url,H[23]=e.urlLibraryCount,H[24]=e.viaCardId,H[25]=eo,H[26]=ei,H[27]=j):j=H[27],H[28]!==j||H[29]!==I?(Y=(0,t.jsx)(l.Stack,{justify:"space-between",gap:"md",children:(0,t.jsx)(s.Suspense,{fallback:I,children:j})}),H[28]=j,H[29]=I,H[30]=Y):Y=H[30],H[31]!==e.isOpen||H[32]!==e.onClose||H[33]!==e.zIndex||H[34]!==h||H[35]!==Y?(D=(0,t.jsx)(r.Modal,{opened:e.isOpen,onClose:e.onClose,title:"Save card",zIndex:e.zIndex,overlayProps:h,centered:!0,onClick:Q,children:Y}),H[31]=e.isOpen,H[32]=e.onClose,H[33]=e.zIndex,H[34]=h,H[35]=Y,H[36]=D):D=H[36],D}],670291);var Y=e.i(21487);function D(e){return e.stopPropagation()}e.s(["default",0,function(e){let i,a,l,c=(0,n.c)(14);return c[0]!==e.zIndex?(i=e.zIndex?{...o.DEFAULT_OVERLAY_PROPS,zIndex:e.zIndex-1}:o.DEFAULT_OVERLAY_PROPS,c[0]=e.zIndex,c[1]=i):i=c[1],c[2]!==e.analyticsContext||c[3]!==e.defaultConnectionType||c[4]!==e.onClose||c[5]!==e.s
1ourceUrl||c[6]!==e.targetUrl?(a=(0,t.jsx)(s.Suspense,{children:(0,t.jsx)(Y.default,{onClose:e.onClose,sourceUrl:e.sourceUrl,targetUrl:e.targetUrl,defaultConnectionType:e.defaultConnectionType,analyticsContext:e.analyticsContext})}),c[2]=e.analyticsContext,c[3]=e.defaultConnectionType,c[4]=e.onClose,c[5]=e.sourceUrl,c[6]=e.targetUrl,c[7]=a):a=c[7],c[8]!==e.isOpen||c[9]!==e.onClose||c[10]!==e.zIndex||c[11]!==i||c[12]!==a?(l=(0,t.jsx)(r.Modal,{opened:e.isOpen,onClose:e.onClose,title:"New Connection",zIndex:e.zIndex,overlayProps:i,size:"md",centered:!0,onClick:D,children:a}),c[8]=e.isOpen,c[9]=e.onClose,c[10]=e.zIndex,c[11]=i,c[12]=a,c[13]=l):l=c[13],l}],656062)},659969,e=>{"use strict";var t=e.i(843476),n=e.i(500932),o=e.i(271645),i=e.i(533372),r=e.i(226200),a=e.i(277936),l=e.i(294229),s=e.i(417567),c=e.i(896936),d=e.i(553917),u=e.i(590106),C=e.i(294773);function h(){d.notifications.show({message:"Could not delete note",color:"red",autoClose:5e3,withCloseButton:!0,position:"top-center",icon:(0,t.jsx)(u.BsExclamation,{})})}e.s(["MAX_NOTE_LENGTH",0,500,"default",0,function(e){let d,p,y,x,m,f,g=(0,n.c)(21),[v,I]=(0,o.useState)(!1),j=(0,C.default)();g[0]!==e||g[1]!==j?(d=()=>{e.noteId&&j.mutate(e.noteId,{onError:h,onSettled:()=>{e.onDeleted()}})},g[0]=e,g[1]=j,g[2]=d):d=g[2];let b=d,S=e.note??"",P=e.note?.length??0;g[3]!==P?(p=(0,t.jsxs)(l.Text,{inherit:!0,ml:"auto","aria-hidden":!0,children:[P," / ",500]}),g[3]=P,g[4]=p):p=g[4],g[5]!==e.onChange||g[6]!==S||g[7]!==p?(y=(0,t.jsx)(c.default,{id:"note","aria-label":"Your note",placeholder:"Add a note about this card",variant:"filled",size:"md",rows:2,autoFocus:!0,maxLength:500,"aria-describedby":"note-char-remaining",value:S,onValueChange:e.onChange,bottomSection:p}),g[5]=e.onChange,g[6]=S,g[7]=p,g[8]=y):y=g[8];let w=`${500-(e.note?.length??0)} characters remaining`;return g[9]!==w?(x=(0,t.jsx)(s.VisuallyHidden,{id:"note-char-remaining","aria-live":"polite",children:w}),g[9]=w,g[10]=x):x=g[10],g[11]!==b||g[12]!==e.noteId||g[13]!==e.onCancel||g[14]!==j||g[15]!==v?(m=v?(0,t.jsxs)(r.Group,{justify:"space-between",gap:"xs",wrap:"nowrap",children:[(0,t.jsx)(l.Text,{fw:500,c:"red",children:"Delete note?"}),(0,t.jsxs)(r.Group,{gap:"xs",wrap:"nowrap",children:[(0,t.jsx)(i.Button,{variant:"light",color:"gray",size:"xs",disabled:j.isPending,onClick:()=>I(!1),children:"Cancel"}),(0,t.jsx)(i.Button,{color:"red",size:"xs",onClick:b,loading:j.isPending,children:"Delete"})]})]}):(0,t.jsxs)(r.Group,{justify:"space-between",gap:"xs",wrap:"nowrap",mih:26,children:[(0,t.jsx)(i.Button,{variant:"light",size:"xs",color:"gray",onClick:e.onCancel,children:"Cancel"}),e.noteId&&(0,t.jsx)(i.Button,{variant:"light",size:"xs",color:"red",leftSection:(0,t.jsx)(u.BsTrash2Fill,{}),onClick:()=>I(!0),children:"Delete note"})]}),g[11]=b,g[12]=e.noteId,g[13]=e.onCancel,g[14]=j,g[15]=v,g[16]=m):m=g[16],g[17]!==y||g[18]!==x||g[19]!==m?(f=(0,t.jsxs)(a.Stack,{gap:"xs",children:[y,x,m]}),g[17]=y,g[18]=x,g[19]=m,g[20]=f):f=g[20],f}])},196122,e=>{e.v({link:"UrlCard-module__qI-_gq__link",root:"UrlCard-module__qI-_gq__root"})},364991,e=>{"use strict";var t=e.i(843476),n=e.i(500932),o=e.i(280881),i=e.i(451501),r=e.i(226200),a=e.i(277936),l=e.i(294229),s=e.i(590106);e.i(687467);var c=e.i(154197),d=e.i(73404),u=e.i(644662),C=e.i(533372),h=e.i(548184),p=e.i(722071),y=e.i(405948),x=e.i(184086),m=e.i(271645),f=e.i(192199),g=e.i(129277),v=e.i(954616),I=e.i(912598),j=e.i(313199),b=e.i(396603),S=e.i(103991);function P(e){let t=e.queryKey;return!!("cards"===t[0]&&"metadata"===t[1]&&t[3]&&"object"==typeof t[3]&&"includeStats"in t[3]&&!0===t[3].includeStats)}function w(e){let{cardId:t,collectionIds:n}=e;return(0,j.removeCardFromCollection)({cardId:t,collectionIds:n})}var _=e.i(553917),A=e.i(439929);function L(e){let o,i,a,l,s,c,d,u,h,p=(0,n.c)(16),y=(u=(0,n.c)(2),h=(0,I.useQueryClient)(),u[0]!==h?(d={mutationFn:w,onSuccess:(e,t)=>{h.invalidateQueries({queryKey:b.collectionKeys.infinite()}),h.invalidateQueries({queryKey:b.collectionKeys.mine()}),h.invalidateQueries({queryKey:b.collectionKeys.all()}),h.invalidateQueries({queryKey:S.sembleKeys.all()}),h.invalidateQueries({predicate:P}
1),t.collectionIds.forEach(e=>{h.invalidateQueries({queryKey:b.collectionKeys.collection(e)}),h.invalidateQueries({queryKey:b.collectionKeys.infinite(e)})})}},u[0]=h,u[1]=d):d=u[1],(0,v.useMutation)(d));p[0]!==e||p[1]!==y?(o=()=>{y.mutate({cardId:e.cardId,collectionIds:[e.collectionId]},{onError:T,onSettled:()=>{e.onClose()}})},p[0]=e,p[1]=y,p[2]=o):o=p[2];let x=o;return p[3]!==e.onClose?(i=(0,t.jsx)(C.Button,{variant:"light",size:"md",color:"gray",onClick:e.onClose,children:"Cancel"}),p[3]=e.onClose,p[4]=i):i=p[4],p[5]===Symbol.for("react.memo_cache_sentinel")?(a={flex:1},p[5]=a):a=p[5],p[6]!==x||p[7]!==y.isPending?(l=(0,t.jsx)(C.Button,{color:"red",size:"md",style:a,onClick:x,loading:y.isPending,children:"Remove"}),p[6]=x,p[7]=y.isPending,p[8]=l):l=p[8],p[9]!==i||p[10]!==l?(s=(0,t.jsxs)(r.Group,{gap:"xs",wrap:"nowrap",children:[i,l]}),p[9]=i,p[10]=l,p[11]=s):s=p[11],p[12]!==e.isOpen||p[13]!==e.onClose||p[14]!==s?(c=(0,t.jsx)(g.Modal,{opened:e.isOpen,onClose:e.onClose,withCloseButton:!1,title:"Remove card from this collection",size:"xs",overlayProps:A.DANGER_OVERLAY_PROPS,centered:!0,onClick:k,children:s}),p[12]=e.isOpen,p[13]=e.onClose,p[14]=s,p[15]=c):c=p[15],c}function k(e){return e.stopPropagation()}function T(){_.notifications.show({message:"Could not remove card from this collection",position:"top-center",color:"red",title:"Error",loading:!1,autoClose:!1,withCloseButton:!0,icon:(0,t.jsx)(s.BsExclamation,{})})}var O=e.i(294773);function z(e){let o,i,a,l,s,c,d=(0,n.c)(16),u=(0,O.default)();d[0]!==e||d[1]!==u?(o=()=>{u.mutate(e.cardId,{onError:K,onSettled:()=>{e.onClose()}})},d[0]=e,d[1]=u,d[2]=o):o=d[2];let h=o;return d[3]!==e.onClose?(i=(0,t.jsx)(C.Button,{variant:"light",size:"md",color:"gray",onClick:e.onClose,children:"Cancel"}),d[3]=e.onClose,d[4]=i):i=d[4],d[5]===Symbol.for("react.memo_cache_sentinel")?(a={flex:1},d[5]=a):a=d[5],d[6]!==h||d[7]!==u.isPending?(l=(0,t.jsx)(C.Button,{color:"red",size:"md",style:a,onClick:h,loading:u.isPending,children:"Remove"}),d[6]=h,d[7]=u.isPending,d[8]=l):l=d[8],d[9]!==i||d[10]!==l?(s=(0,t.jsxs)(r.Group,{gap:"xs",wrap:"nowrap",children:[i,l]}),d[9]=i,d[10]=l,d[11]=s):s=d[11],d[12]!==e.isOpen||d[13]!==e.onClose||d[14]!==s?(c=(0,t.jsx)(g.Modal,{opened:e.isOpen,onClose:e.onClose,withCloseButton:!1,title:"Remove card from library",size:"xs",overlayProps:A.DANGER_OVERLAY_PROPS,centered:!0,onClick:B,children:s}),d[12]=e.isOpen,d[13]=e.onClose,d[14]=s,d[15]=c):c=d[15],c}function B(e){return e.stopPropagation()}function K(){_.notifications.show({message:"Could not remove card from library",position:"top-center",color:"red",title:"Error",loading:!1,autoClose:!1,withCloseButton:!0,icon:(0,t.jsx)(s.BsExclamation,{})})}var U=e.i(670291),E=e.i(473665),F=e.i(255816),q=e.i(739694),Q=e.i(808466),Y=e.i(915025),D=e.i(203042);function N(e){let l,s,c,d=(0,n.c)(7);return d[0]!==e.cardAuthor?(l=(0,t.jsx)(r.Group,{justify:"space-between",wrap:"nowrap",children:e.cardAuthor?(0,t.jsxs)(r.Group,{gap:"5",children:[(0,t.jsx)(q.LinkAvatar,{href:`/profile/${e.cardAuthor.handle}`,src:e.cardAuthor.avatarUrl?.replace("avatar","avatar_thumbnail"),alt:`${e.cardAuthor.handle}'s avatar`,size:"xs",radius:"sm"}),(0,t.jsx)(o.Anchor,{href:`/profile/${e.cardAuthor.handle}`,fz:"xs",fw:600,c:"bright",underline:"never",onClick:M,children:e.cardAuthor.name||`@${e.cardAuthor.handle}`}),(0,Q.isBotAccount)(e.cardAuthor)&&(0,t.jsx)(Y.default,{})]}):(0,t.jsx)("span",{})}),d[0]=e.cardAuthor,d[1]=l):l=d[1],d[2]!==e.note?(s=e.note&&(0,t.jsx)(F.default,{text:e.note.text,textProps:{fw:500,fz:"sm",fs:"italic",c:"gray"}}),d[2]=e.note,d[3]=s):s=d[3],d[4]!==l||d[5]!==s?(c=(0,t.jsx)(i.Card,{className:D.default.root,radius:"md",p:"xs",onClick:R,children:(0,t.jsxs)(a.Stack,{gap:"xs",children:[l,s]})}),d[4]=l,d[5]=s,d[6]=c):c=d[6],c}function M(e){return e.stopPropagation()}function R(e){return e.stopPropagation()}var G=e.i(855018),$=e.i(776049),V=e.i(618566),H=e.i(110936),W=e.i(833401),Z=e.i(497058),J=e.i(656062),X=e.i(313811),ee=e.i(448359);function et(e){let o,i,a,l,g,v,I,j,b,S,P,w,_,A,k,T,O,B,K,F,q,Q,Y,D,M,R=(0,n.c)(90),{isAuthenticated:W,user:et}=(0,G.useAuth)(),ea=et?.id,el=et?.handle,es=!!et&&(e.authorHandle?el===e.authorHandle:ea===e.cardAuthor?.id),ec=e.currentCollection?.accessType===c.CollectionAccessType.OPEN,ed=ea===e.cardAuthor?.id,eu=ea===e.currentCollection?.author.id,eC=!!et&&ec&&(ed||eu),eh=es&&e.urlIsInLibrary,[ep,ey]=(0,m.useState)(!1),[ex,em]=(0,m.useState)(!1),[ef,eg]=(0,m.useState)(!1),[ev,eI]=(0,m.useState)(!1),[ej,eb]=(0,m.useState)(!1),eS=(0,V.useRouter)();R[0]!==e.cardAuthor||R[1]!==e.note||R[2]!==ep?(o=e.note&&(0,t.jsx)(h.Collapse,{expanded:ep,animateOpacity:!1,transitionDuration:150,children:(0,t.jsx)(u.Box,{pb:"xs",children:(0,t.jsx)(N,{note:e.note,cardAuthor:e.cardAuthor})})}),R[0]=e.cardAuthor,R[1]=e.note,R[2]=ep,R[3]=o):o=R[3];let eP=void 0===e.saveTooltipOpen;R[4]!==e.urlIsInLibrary||R[5]!==e.urlLibraryCount?(i=e.urlLibraryCount>0?e.urlIsInLibrary?(0,t.jsx)(H.IoMdCheckmark,{size:18}):(0,t.jsx)(f.FiPlus,{size:18}):void 0,R[4]=e.urlIsInLibrary,R[5]=e.urlLibraryCount,R[6]=i):i=R[6],R[7]!==W||R[8]!==eS?(a=e=>{(e.stopPropagation(),W)?eI(!0):eS.push((0,$.getLoginPathWithRedirect)())},R[7]=W,R[8]=eS,R[9]=a):a=R[9],R[10]!==e.urlIsInLibrary||R[11]!==e.urlLibraryCount?(l=e.urlLibraryCount?e.urlLibraryCount:e.urlIsInLibrary?(0,t.jsx)(H.IoMdCheckmark,{size:18}):(0,t.jsx)(f.FiPlus,{size:18}),R[10]=e.urlIsInLibrary,R[11]=e.urlLibraryCount,R[12]=l):l=R[12],R[13]!==i||R[14]!==a||R[15]!==l?(g=(0,t.jsx)(C.Button,{variant:"light",color:"gray",size:"xs",radius:"xl",leftSection:i,onClick:a,children:l}),R[13]=i,R[14]=a,R[15]=l,R[16]=g):g=R[16],R[17]!==e.saveTooltipOpen||R[18]!==eP||R[19]!==g?(v=(0,t.jsx)(x.Tooltip,{label:"Save or update",withArrow:!0,opened:e.saveTooltipOpen,withinPortal:eP,children:g}),R[17]=e.saveTooltipOpen,R[18]=eP,R[19]=g,R[20]=v):v=R[20];let ew=void 0===e.connectTooltipOpen,e_=e.urlIsConnected?"green":"gray";R[21]!==e.urlConnectionCount?(I=e.urlConnectionCount>0?(0,t.jsx)(Z.TbPlugConnected,{size:15}):void 0,R[21]=e.urlConnectionCount,R[22]=I):I=R[22],R[23]!==W||R[24]!==eS?(j=e=>{(e.stopPropagation(),W)?eb(!0):eS.push((0,$.getLoginPathWithRedirect)())},R[23]=W,R[24]=eS,R[25]=j):j=R[25],R[26]!==e.urlConnectionCount?(b=e.urlConnectionCount?e.urlConnectionCount:(0,t.jsx)(Z.TbPlugConnected,{size:15}),R[26]=e.urlConnectionCount,R[27]=b):b=R[27],R[28]!==j||R[29]!==b||R[30]!==e_||R[31]!==I?(S=(0,t.jsx)(C.Button,{variant:"light",color:e_,size:"xs",radius:"xl",leftSection:I,onClick:j,children:b}),R[28]=j,R[29]=b,R[30]=e_,R[31]=I,R[32]=S):S=R[32],R[33]!==e.connectTooltipOpen||R[34]!==S||R[35]!==ew?(P=(0,t.jsx)(x.Tooltip,{label:"Connect to another card",withArrow:!0,opened:e.connectTooltipOpen,withinPortal:ew,children:S}),R[33]=e.connectTooltipOpen,R[34]=S,R[35]=ew,R[36]=P):P=R[36],R[37]!==e.note?(w=e.note&&(0,t.jsx)(x.Tooltip,{label:"View note",withArrow:!0,children:(0,t.jsx)(d.ActionIcon,{variant:"light",color:"gray",radius:"xl",onClick:e=>{e.stopPropagation(),ey(er)},children:(0,t.jsx)(E.MdOutlineStickyNote2,{})})}),R[37]=e.note,R[38]=w):w=R[38],R[39]!==P||R[40]!==w||R[41]!==v?(_=(0,t.jsxs)(r.Group,{gap:"xs",children:[v,P,w]}
1),R[39]=P,R[40]=w,R[41]=v,R[42]=_):_=R[42];let eA=e.menuWithinPortal;R[43]===Symbol.for("react.memo_cache_sentinel")?(A=(0,t.jsx)(y.Menu.Target,{children:(0,t.jsx)(d.ActionIcon,{variant:"light",color:"gray",radius:"xl",onClick:ei,children:(0,t.jsx)(s.BsThreeDots,{size:18})})}),R[43]=A):A=R[43],R[44]!==e.cardContent.url?(k=(0,t.jsx)(p.CopyButton,{value:e.cardContent.url,children:eo}),R[44]=e.cardContent.url,R[45]=k):k=R[45],R[46]!==e.cardContent.url?(T=(0,ee.getSembleHref)(e.cardContent.url),R[46]=e.cardContent.url,R[47]=T):T=R[47];let eL=`https://semble.so${T}`;return R[48]!==eL?(O=(0,t.jsx)(p.CopyButton,{value:eL,children:en}),R[48]=eL,R[49]=O):O=R[49],R[50]!==eu||R[51]!==e?(B=e.currentCollection&&e.onTogglePinInCollection&&eu&&(0,t.jsx)(y.Menu.Item,{leftSection:e.isPinnedInCollection?(0,t.jsx)(s.BsPinFill,{}):(0,t.jsx)(s.BsPin,{}),onClick:t=>{t.stopPropagation(),e.onTogglePinInCollection?.()},children:e.isPinnedInCollection?"Unpin from collection":"Pin to collection"}),R[50]=eu,R[51]=e,R[52]=B):B=R[52],R[53]!==eC||R[54]!==es||R[55]!==e.currentCollection?(K=e.currentCollection&&(es||eC)&&(0,t.jsx)(y.Menu.Item,{leftSection:(0,t.jsx)(X.AiOutlineDisconnect,{}),onClick:e=>{e.stopPropagation(),em(!0)},children:"Remove from this collection"}),R[53]=eC,R[54]=es,R[55]=e.currentCollection,R[56]=K):K=R[56],R[57]!==eh?(F=eh&&(0,t.jsx)(y.Menu.Item,{color:"red",leftSection:(0,t.jsx)(s.BsTrash2Fill,{}),onClick:e=>{e.stopPropagation(),eg(!0)},children:"Remove from library"}),R[57]=eh,R[58]=F):F=R[58],R[59]!==k||R[60]!==O||R[61]!==B||R[62]!==K||R[63]!==F?(q=(0,t.jsxs)(y.Menu.Dropdown,{children:[k,O,B,K,F]}),R[59]=k,R[60]=O,R[61]=B,R[62]=K,R[63]=F,R[64]=q):q=R[64],R[65]!==e.menuWithinPortal||R[66]!==q?(Q=(0,t.jsxs)(y.Menu,{shadow:"sm",withinPortal:eA,children:[A,q]}),R[65]=e.menuWithinPortal,R[66]=q,R[67]=Q):Q=R[67],R[68]!==_||R[69]!==Q?(Y=(0,t.jsxs)(r.Group,{justify:"space-between",children:[_,Q]}),R[68]=_,R[69]=Q,R[70]=Y):Y=R[70],R[71]!==W||R[72]!==e.analyticsContext||R[73]!==e.cardContent||R[74]!==e.currentCollection||R[75]!==e.id||R[76]!==e.modalZIndex||R[77]!==e.semblePageUrl||R[78]!==e.urlIsInLibrary||R[79]!==e.urlLibraryCount||R[80]!==e.viaCardId||R[81]!==ej||R[82]!==ev||R[83]!==ex||R[84]!==ef?(D=W&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(U.default,{isOpen:ev,onClose:()=>eI(!1),url:e.cardContent.url,cardContent:e.cardContent,isInYourLibrary:e.urlIsInLibrary,urlLibraryCount:e.urlLibraryCount,viaCardId:e.viaCardId,analyticsContext:e.analyticsContext,zIndex:e.modalZIndex}),(0,t.jsx)(J.default,{isOpen:ej,onClose:()=>eb(!1),sourceUrl:e.cardContent.url,targetUrl:e.semblePageUrl,analyticsContext:e.analyticsContext,zIndex:e.modalZIndex}),e.currentCollection&&(0,t.jsx)(L,{isOpen:ex,onClose:()=>em(!1),cardId:e.id,collectionId:e.currentCollection.id}),(0,t.jsx)(z,{isOpen:ef,onClose:()=>eg(!1),cardId:e.id})]}),R[71]=W,R[72]=e.analyticsContext,R[73]=e.cardContent,R[74]=e.currentCollection,R[75]=e.id,R[76]=e.modalZIndex,R[77]=e.semblePageUrl,R[78]=e.urlIsInLibrary,R[79]=e.urlLibraryCount,R[80]=e.viaCardId,R[81]=ej,R[82]=ev,R[83]=ex,R[84]=ef,R[85]=D):D=R[85],R[86]!==o||R[87]!==Y||R[88]!==D?(M=(0,t.jsxs)(u.Box,{children:[o,Y,D]}),R[86]=o,R[87]=Y,R[88]=D,R[89]=M):M=R[89],M}function en(e){let{copy:n}=e;return(0,t.jsx)(y.Menu.Item,{leftSection:(0,t.jsx)(E.MdIosShare,{}),onClick:e=>{e.stopPropagation(),n(),_.notifications.show({message:"Semble link copied!",position:"top-center"})},children:"Share Semble page"})}function eo(e){let{copy:n}=e;return(0,t.jsx)(y.Menu.Item,{leftSection:(0,t.jsx)(W.BiCopy,{}),onClick:e=>{e.stopPropagation(),n(),_.notifications.show({message:"Link copied!",position:"top-center"})},children:"Copy link"})}function ei(e){return e.stopPropagation()}function er(e){return!e}var ea=e.i(551465),el=e.i(522016),es=e.i(196122),ec=e.i(916754),ed=e.i(79601);function eu(e){let o,i,r,a,l,s,c,d=(0,n.c)(14);return d[0]!==e.cardContent?(o=JSON.stringify(e.cardContent,null,2),d[0]=e.cardContent,d[1]=o):o=d[1],d[2]!==o?(i={fileName:"Content",code:o,language:"json"},d[2]=o,d[3]=i):i=d[3],d[4]!==e.cardAuthor?(r=JSON.stringify(e.cardAuthor,null,2),d[4]=e.cardAuthor,d[5]=r):r=d[5],d[6]!==r?(a={fileName:"Author",code:r,language:"json"},d[6]=r,d[7]=a):a=d[7],d[8]!==i||d[9]!==a?(l=[i,a],d[8]=i,d[9]=a,d[10]=l):l=d[10],d[11]===Symbol.for("react.memo_cache_sentinel")?(s={cursor:"auto",zIndex:0}
1,d[11]=s):s=d[11],d[12]!==l?(c=(0,t.jsx)(ed.CodeHighlightTabs,{code:l,radius:"md",withBorder:!0,onClick:eC,style:s,defaultExpanded:!1}),d[12]=l,d[13]=c):c=d[13],c}function eC(e){return e.stopPropagation()}var eh=e.i(604570),ep=e.i(73260),ey=e.i(686874);function ex(e){return e.stopPropagation()}e.s(["default",0,function(e){let c,d,u,C,h,p,y,x,f,g,v,I,j,b=(0,n.c)(68),{settings:S}=(0,ec.useSettings)();b[0]!==e.url?(c=(0,ee.isCollectionPage)(e.url)||(0,ee.isProfilePage)(e.url),b[0]=e.url,b[1]=c):c=b[1];let P=c;b[2]!==P||b[3]!==e.cardContent.url||b[4]!==e.id||b[5]!==e.url||b[6]!==e.viaCardId?(d=P?e.url:(0,ee.getSembleHref)(e.cardContent.url,{viaCardId:e.viaCardId?e.id:void 0}),b[2]=P,b[3]=e.cardContent.url,b[4]=e.id,b[5]=e.url,b[6]=e.viaCardId,b[7]=d):d=b[7];let w=d;b[8]!==P||b[9]!==e.analyticsContext||b[10]!==e.cardContent.url||b[11]!==e.id||b[12]!==e.viaCardId?(u=()=>{!P&&e.analyticsContext&&(0,ep.shouldCaptureAnalytics)()&&(eh.default.register({original_save_source:e.analyticsContext.saveSource,original_active_filters:e.analyticsContext.activeFilters}),eh.default.capture("card_clicked",{card_id:e.id,url:e.cardContent.url,save_source:e.analyticsContext.saveSource,active_filters:e.analyticsContext.activeFilters,via_card_id:e.viaCardId}))},b[8]=P,b[9]=e.analyticsContext,b[10]=e.cardContent.url,b[11]=e.id,b[12]=e.viaCardId,b[13]=u):u=b[13];let _=u,A="list"===S.cardView?0:"lg",L="list"===S.cardView?"xs":"sm",k="list"!==S.cardView,T=e.cardContent.title??e.cardContent.url;b[14]!==w||b[15]!==T||b[16]!==_?(C=(0,t.jsx)(el.default,{href:w,className:es.default.link,onClick:_,"aria-label":T}),b[14]=w,b[15]=T,b[16]=_,b[17]=C):C=b[17];let O="list"===S.cardView?"xs":"md";b[18]!==e.isPinnedInCollection?(h=e.isPinnedInCollection&&(0,t.jsxs)(r.Group,{gap:5,c:"dimmed",children:[(0,t.jsx)(s.BsPinFill,{size:12}),(0,t.jsx)(l.Text,{fz:"xs",fw:500,children:"Pinned"})]}),b[18]=e.isPinnedInCollection,b[19]=h):h=b[19],b[20]===Symbol.for("react.memo_cache_sentinel")?(p=(0,t.jsx)(ey.default,{}),b[20]=p):p=b[20],b[21]!==e.cardContent||b[22]!==e.uri||b[23]!==e.url?(y=(0,t.jsx)(m.Suspense,{fallback:p,children:(0,t.jsx)(ea.default,{url:e.url,uri:e.uri,cardContent:e.cardContent})}),b[21]=e.cardContent,b[22]=e.uri,b[23]=e.url,b[24]=y):y=b[24],b[25]!==e.cardAuthor||b[26]!==e.cardContent||b[27]!==S.tinkerMode?(x=S.tinkerMode&&(0,t.jsx)(eu,{cardContent:e.cardContent,cardAuthor:e.cardAuthor}),b[25]=e.cardAuthor,b[26]=e.cardContent,b[27]=S.tinkerMode,b[28]=x):x=b[28];let z="list"===S.cardView?"xs":"md";b[29]!==e.cardAuthor||b[30]!==e.showAuthor?(f=e.showAuthor&&e.cardAuthor&&(0,t.jsxs)(r.Group,{gap:"7",children:[(0,t.jsxs)(l.Text,{fz:"xs",c:"dimmed",fw:500,children:["By"," "]}),(0,t.jsxs)(r.Group,{gap:"5",children:[(0,t.jsx)(q.LinkAvatar,{href:`/profile/${e.cardAuthor?.handle}`,src:e.cardAuthor?.avatarUrl?.replace("avatar","avatar_thumbnail"),alt:`${e.cardAuthor?.handle}'s avatar`,size:"xs",radius:"sm"}),(0,t.jsx)(o.Anchor,{href:`/profile/${e.cardAuthor.handle}`,fz:"xs",fw:600,c:"bright",underline:"never",onClick:ex,children:e.cardAuthor.name||`@${e.cardAuthor.handle}`})]})]}),b[29]=e.cardAuthor,b[30]=e.showAuthor,b[31]=f):f=b[31];let B=e.urlIsInLibrary??!1;return b[32]!==e.analyticsContext||b[33]!==e.authorHandle||b[34]!==e.cardAuthor||b[35]!==e.cardContent||b[36]!==e.connectTooltipOpen||b[37]!==e.currentCollection||b[38]!==e.id||b[39]!==e.isPinnedInCollection||b[40]!==e.menuWithinPortal||b[41]!==e.modalZIndex||b[42]!==e.note||b[43]!==e.onTogglePinInCollection||b[44]!==e.saveTooltipOpen||b[45]!==e.semblePageUrl||b[46]!==e.urlConnectionCount||b[47]!==e.urlIsConnected||b[48]!==e.urlLibraryCount||b[49]!==e.viaCardId||b[50]!==B?(g=(0,t.jsx)(et,{cardAuthor:e.cardAuthor,cardContent:e.cardContent,cardCount:e.urlLibraryCount,id:e.id,authorHandle:e.authorHandle,note:e.note,currentCollection:e.currentCollection,urlLibraryCount:e.urlLibraryCount,urlIsInLibrary:B,urlConnectionCount:e.urlConnectionCount,urlIsConnected:e.urlIsConnected,viaCardId:e.viaCardId,semblePageUrl:e.semblePageUrl,analyticsContext:e.analyticsContext,isPinnedInCollection:e.isPinnedInCollection,onTogglePinInCollection:e.onTogglePinInCollection,connectTooltipOpen:e.connectTooltipOpen,saveTooltipOpen:e.saveTooltipOpen,modalZIndex:e.modalZIndex,menuWithinPortal:e.menuWithinPortal}),b[32]=e.analyticsContext,b[33]=e.authorHandle,b[34]=e.cardAuthor,b[35]=e.cardContent,b[36]=e.connectTooltipOpen,b[37]=e.currentCollection,b[38]=e.id,b[39]=e.isPinnedInCollection,b[40]=e.menuWithinPortal,b[41]=e.modalZIndex,b[42]=e.note,b[43]=e.onTogglePinInCollection,b[44]=e.saveTooltipOpen,b[45]=e.semblePageUrl,b[46]=e.urlConnectionCount,b[47]=e.urlIsConnected,b[48]=e.urlLibraryCount,b[49]=e.viaCardId,b[50]=B,b[51]=g):g=b[51],b[52]!==z||b[53]!==f||b[54]!==g?(v=(0,t.jsxs)(a.Stack,{gap:z,children:[f,g]}),b[52]=z,b[53]=f,b[54]=g,b[55]=v):v=b[55],b[56]!==y||b[57]!==x||b[58]!==v||b[59]!==O||b[60]!==h?(I=(0,t.jsxs)(a.Stack,{justify:"space-between",flex:1,gap:O,children:[h,y,x,v]}),b[56]=y,b[57]=x,b[58]=v,b[59]=O,b[60]=h,b[61]=I):I=b[61],b[62]!==I||b[63]!==A||b[64]!==L||b[65]!==k||b[66]!==C?(j=(0,t.jsxs)(i.Card,{component:"article",radius:A,p:L,flex:1,h:"100%",withBorder:k,className:es.default.root,children:[C,I]}),b[62]=I,b[63]=A,b[64]=L,b[65]=k,b[66]=C,b[67]=j):j=b[67],j}],364991)},294773,e=>{"use strict";var t=e.i(500932),n=e.i(954616),o=e.i(912598),i=e.i(313199),r=e.i(6090),a=e.i(396603),l=e.i(991175),s=e.i(71265),c=e.i(103991),d=e.i(134052),u=e.i(228771),C=e.i(152771);function h(e){let t=e.queryKey;return!!("cards"===t[0]&&"metadata"===t[1]&&t[3]&&"object"==typeof t[3]&&"includeStats"in t[3]&&!0===t[3].includeStats)}function p(e){return(0,i.removeCardFromLibrary)(e)}e.s(["default",0,function(){let e,i=(0,t.c)(2),y=(0,o.useQueryClient)();return i[0]!==y?(e={mutationFn:p,onSuccess:()=>{y.invalidateQueries({queryKey:r.cardKeys.all()}),y.invalidateQueries({queryKey:l.noteKeys.all()}),y.invalidateQueries({queryKey:s.feedKeys.all()}),y.invalidateQueries({queryKey:a.collectionKeys.all()}),y.invalidateQueries({queryKey:c.sembleKeys.all()}),y.invalidateQueries({queryKey:d.connectionKeys.all()}),y.invalidateQueries({queryKey:u.profileKeys.all()}),y.invalidateQueries({queryKey:C.tagKeys.all()}),y.invalidateQueries({predicate:h})}},i[0]=y,i[1]=e):e=i[1],(0,n.useMutation)(e)}])},861054,435671,e=>{"use strict";var t=e.i(500932),n=e.i(154452),o=e.i(313199),i=e.i(6090);e.s(["default",0,function(e){let r,a,l,s=(0,t.c)(7);return s[0]!==e.url?(r=i.cardKeys.byUrl(e.url),s[0]=e.url,s[1]=r):r=s[1],s[2]!==e.url?(a=()=>(0,o.getCardFromMyLibrary)(e.url),s[2]=e.url,s[3]=a):a=s[3],s[4]!==r||s[5]!==a?(l={queryKey:r,queryFn:a},s[4]=r,s[5]=a,s[6]=l):l=s[6],(0,n.useSuspenseQuery)(l)}],861054);var r=e.i(843476),a=e.i(226200),l=e.i(277936),s=e.i(173990),c=e.i(294229),d=e.i(451501),u=e.i(280881),C=e.i(184086),h=e.i(644662),p=e.i(448359);function y(e){return e.stopPropagation()}e.s(["default",0,function(e){let n,o,i,x,m,f,g,v,I,j,b,S,P,w,_,A,L,k=(0,t.c)(42);k[0]!==e.url?(n=(0,p.getDomain)(e.url),k[0]=e.url,k[1]=n):n=k[1];let T=n,O=e.libraryCount??0;k[2]!==e.isInYourLibrary||k[3]!==O?(o=function(e,t){if(0===e)return"Not saved by anyone yet";if(t){if(1===e)return"Saved by you";let t=e-1;return`Saved by you and ${t} other${t>1?"s":""}`}return 1===e?"Saved by 1 person":`Saved by ${e} people`}
1(O,e.isInYourLibrary),k[2]=e.isInYourLibrary,k[3]=O,k[4]=o):o=k[4];let z=o,B=e.libraryCount??0;if(k[5]!==e.isInYourLibrary||k[6]!==B){var K;K=e.isInYourLibrary,i=0===B?"Not saved yet":K?1===B?"You":`You + ${B-1}`:1===B?"1 save":`${B} saves`,k[5]=e.isInYourLibrary,k[6]=B,k[7]=i}else i=k[7];let U=i;return k[8]!==e.imageUrl||k[9]!==e.url?(x=e.imageUrl&&(0,r.jsx)(d.Card,{p:0,radius:"md",withBorder:!0,w:45,h:45,style:{flexShrink:0},children:(0,r.jsx)(s.Image,{src:e.imageUrl,alt:`${e.url} social preview image`,w:"100%",h:"100%",fit:"cover"})}),k[8]=e.imageUrl,k[9]=e.url,k[10]=x):x=k[10],k[11]===Symbol.for("react.memo_cache_sentinel")?(m={flex:1},k[11]=m):m=k[11],k[12]!==e.title?(f=e.title&&(0,r.jsx)(c.Text,{fw:500,lineClamp:1,c:"bright",children:e.title}),k[12]=e.title,k[13]=f):f=k[13],k[14]===Symbol.for("react.memo_cache_sentinel")?(g={flexShrink:0},k[14]=g):g=k[14],k[15]!==T||k[16]!==e.url?(v=(0,r.jsx)(u.Anchor,{href:e.url,target:"_blank",c:"gray",fz:"sm",lineClamp:1,style:g,onClick:y,children:T}),k[15]=T,k[16]=e.url,k[17]=v):v=k[17],k[18]!==e.url||k[19]!==v?(I=(0,r.jsx)(C.Tooltip,{label:e.url,children:v}),k[18]=e.url,k[19]=v,k[20]=I):I=k[20],k[21]===Symbol.for("react.memo_cache_sentinel")?(j={whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},k[21]=j):j=k[21],k[22]!==U?(b=(0,r.jsxs)(c.Text,{fz:"sm",c:"dimmed",miw:0,style:j,children:["· ",U]}),k[22]=U,k[23]=b):b=k[23],k[24]!==z||k[25]!==b?(S=(0,r.jsx)(C.Tooltip,{label:z,children:b}),k[24]=z,k[25]=b,k[26]=S):S=k[26],k[27]!==I||k[28]!==S?(P=(0,r.jsxs)(a.Group,{gap:4,wrap:"nowrap",miw:0,children:[I,S]}),k[27]=I,k[28]=S,k[29]=P):P=k[29],k[30]!==P||k[31]!==f?(w=(0,r.jsxs)(l.Stack,{gap:0,miw:0,style:m,children:[f,P]}),k[30]=P,k[31]=f,k[32]=w):w=k[32],k[33]!==e.action?(_=e.action&&(0,r.jsx)(h.Box,{style:{flexShrink:0},children:e.action}),k[33]=e.action,k[34]=_):_=k[34],k[35]!==w||k[36]!==_||k[37]!==x?(A=(0,r.jsxs)(a.Group,{gap:"sm",wrap:"nowrap",children:[x,w,_]}),k[35]=w,k[36]=_,k[37]=x,k[38]=A):A=k[38],k[39]!==e.children||k[40]!==A?(L=(0,r.jsx)(d.Card,{withBorder:!0,component:"article",p:"xs",radius:"lg",children:(0,r.jsxs)(l.Stack,{gap:"xs",children:[A,e.children]})}),k[39]=e.children,k[40]=A,k[41]=L):L=k[41],L}],435671)},710078,e=>{"use strict";var t=e.i(843476),n=e.i(500932),o=e.i(574079),i=e.i(277936),r=e.i(823308);e.s(["default",0,function(){let e,a=(0,n.c)(1);return a[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,t.jsxs)(i.Stack,{gap:"md",children:[(0,t.jsxs)(i.Stack,{gap:"xs",children:[(0,t.jsx)(o.Skeleton,{w:"100%",h:40}),(0,t.jsx)(o.Skeleton,{w:"100%",h:r.COLLECTION_PANEL_HEIGHT})]}),(0,t.jsx)(o.Skeleton,{w:"100%",h:42,mt:"md",radius:"xl"})]}),a[0]=e):e=a[0],e}])},203042,e=>{e.v({root:"NoteCardInline-module__5JUYUW__root"})}]);

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.