PageSourceSearch

https://pinit.now/_next/static/chunks/app/(app)/tags/page-f9e9ae0ce21f24cd.js

js pinit.now collected 2026-09-24 15:09:00 UTC 13,328 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[369],{3544:(e,t,a)=>{"use strict";a.d(t,{Cf:()=>j,Es:()=>w,HM:()=>v,L3:()=>N,c7:()=>y,lG:()=>p,rr:()=>k,zM:()=>x});var r=a(19442);a(66074);var n=a(43767),i=a(20845),s=a(9947),o=a(31925),d=a(77695),l=a(28698),c=a(3417),u=a(2745),g=a(89463),f=a(57848),m=a(70169);function p({...e}){return(0,r.jsx)(n.D,{"data-slot":"dialog",...e})}function x({...e}){return(0,r.jsx)(i.z,{"data-slot":"dialog-trigger",...e})}function b({...e}){return(0,r.jsx)(s.Z,{"data-slot":"dialog-portal",...e})}function v({...e}){return(0,r.jsx)(o.H,{"data-slot":"dialog-close",...e})}function h({className:e,...t}){return(0,r.jsx)(d.X,{"data-slot":"dialog-overlay",className:(0,g.cn)("fixed inset-0 isolate z-50 bg-black/10 duration-100 supports-backdrop-filter:backdrop-blur-xs data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0",e),...t})}function j({className:e,children:t,showCloseButton:a=!0,...n}){return(0,r.jsxs)(b,{children:[(0,r.jsx)(h,{}),(0,r.jsxs)(l.h,{"data-slot":"dialog-content",className:(0,g.cn)("fixed top-1/2 left-1/2 z-50 grid w-full max-w-[calc(100%-2rem)] -translate-x-1/2 -translate-y-1/2 gap-4 rounded-xl bg-popover p-4 text-sm text-popover-foreground ring-1 ring-foreground/10 duration-100 outline-none sm:max-w-sm data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",e),...n,children:[t,a&&(0,r.jsxs)(o.H,{"data-slot":"dialog-close",render:(0,r.jsx)(f.$,{variant:"ghost",className:"absolute top-2 right-2",size:"icon-sm"}),children:[(0,r.jsx)(m.A,{}),(0,r.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})}function y({className:e,...t}){return(0,r.jsx)("div",{"data-slot":"dialog-header",className:(0,g.cn)("flex flex-col gap-2",e),...t})}function w({className:e,showCloseButton:t=!1,children:a,...n}){return(0,r.jsxs)("div",{"data-slot":"dialog-footer",className:(0,g.cn)("-mx-4 -mb-4 flex flex-col-reverse gap-2 rounded-b-xl border-t bg-muted/50 p-4 sm:flex-row sm:justify-end",e),...n,children:[a,t&&(0,r.jsx)(o.H,{render:(0,r.jsx)(f.$,{variant:"outline"}),children:"Close"})]})}function N({className:e,...t}){return(0,r.jsx)(c.L,{"data-slot":"dialog-title",className:(0,g.cn)("font-heading text-base leading-none font-medium",e),...t})}function k({className:e,...t}){return(0,r.jsx)(u.r,{"data-slot":"dialog-description",className:(0,g.cn)("text-sm text-muted-foreground *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground",e),...t})}},5999:(e,t,a)=>{"use strict";a.d(t,{AM:()=>c,Wv:()=>u,hl:()=>g});var r=a(19442);a(66074);var n=a(63347),i=a(92110),s=a(24941),o=a(81409),d=a(69606),l=a(89463);function c({...e}){return(0,r.jsx)(n.y,{"data-slot":"popover",...e})}function u({...e}){return(0,r.jsx)(i.W,{"data-slot":"popover-trigger",...e})}function g({className:e,align:t="center",alignOffset:a=0,side:n="bottom",sideOffset:i=4,...c}){return(0,r.jsx)(s.i,{children:(0,r.jsx)(o.U,{align:t,alignOffset:a,side:n,sideOffset:i,className:"isolate z-50",children:(0,r.jsx)(d.i,{"data-slot":"popover-content",className:(0,l.cn)("z-50 flex w-72 origin-(--transform-origin) flex-col gap-2.5 rounded-lg bg-popover p-2.5 text-sm text-popover-foreground shadow-sm ring-1 ring-foreground/10 outline-hidden duration-100 data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-left-2 data-[side=inline-start]:slide-in-from-right-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",e),...c})})})}},25522:(e,t,a)=>{"use strict";a.d(t,{TagsFiltersBar:()=>g});var r=a(19442),n=a(55902),i=a(6071),s=a(40198),o=a(48137),d=a(5999),l=a(89463),c=a(76648);let u=[{value:"alpha",label:"Alphabetical"},{value:"most-used",label:"Most used"}];function g({activeSort:e,activeView:t}){let a=(0,n.useRouter)();function f(r){let n={sort:e,view:t,...r};(0,c.c)("pin_tags_view",n.view),(0,c.c)("pin_tags_sort",n.sort),a.push(function({sort:e,view:t}){let a=new URLSearchParams;"alpha"!==e&&a.set("sort",e),"grid"!==t&&a.set("view",t);let r=a.toString();return r?`/tags?${r}`:"/tags"}(n))}let m=u.find(t=>t.value===e)?.label??"Alphabetical";return(0,r.jsxs)("div",{className:"mb-6 flex flex-wrap items-center gap-2 rounded-2xl border border-border/70 bg-background p-2.5 shadow-sm",children:[(0,r.jsxs)(d.AM,{children:[(0,r.jsxs)(d.Wv,{"aria-label":`Sort by ${m}`,className:"flex items-center gap-1.5 rounded-xl border bg-card px-3 text-xs font-medium shadow-sm transition-colors h-9 sm:h-7 hover:bg-muted",children:[m,(0,r.jsx)(i.A,{className:"size-3"})]}),(0,r.jsx)(d.hl,{className:"w-44",align:"start",children:(0,r.jsx)("div",{role:"menu",className:"space-y-0.5",children:u.map(({value:t,label:a})=>(0,r.jsx)("button",{type:"button",onClick:()=>f({sort:t}),role:"menuitemradio","aria-checked":e===t,className:(0,l.cn)("flex w-full items-center rounded px-2 py-1.5 text-xs hover:bg-muted",e===t?"font-medium text-foreground":"text-muted-foreground"),children:a},t))})})]}),(0,r.jsxs)("div",{className:"ml-auto flex items-center rounded-xl border bg-card p-0.5",children:[(0,r.jsx)("button",{type:"button","aria-label":"Grid view","aria-pressed":"grid"===t,onClick:()=>f({view:"grid"}),style:{borderRadius:"0.925rem"},className:(0,l.cn)("view-toggle-item flex size-8 items-center justify-center transition-colors sm:size-6","grid"===t?"bg-foreground text-background":"text-muted-foreground hover:text-foreground"),children:(0,r.jsx)(s.A,{className:"size-3.5"})}),(0,r.jsx)("button",{type:"button","aria-label":"List view","aria-pressed":"list"===t,onClick:()=>f({view:"list"}),style:{borderRadius:"0.925rem"},className:(0,l.cn)("view-toggle-item flex size-8 items-center justify-center transition-colors sm:size-6","list"===t?"bg-foreground text-background":"text-muted-foreground hover:text-foreground"),children:(0,r.jsx)(o.A,{className:"size-3.5"})})]})]})}},31508:(e,t,a)=>{"use strict";a.d(t,{p:()=>s});var r=a(19442);a(66074);var n=a(5326),i=a(89463);function s({className:e,type:t,...a}){return(0,r.jsx)(n.Input,{type:t,"data-slot":"input",className:(0,i.cn)("h-8 w-full min-w-0 rounded-lg border border-input bg-transparent px-2.5 py-1 text-base transition-colors outline-none file:inline-flex file:h-6 file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:pointer-events-none disabled:cursor-not-allowed disabled:bg-input/50 disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:disabled:bg-input/80 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40",e),...a})}},57848:(e,t,a)=>{"use strict";a.d(t,{$:()=>d,r:()=>o});var r=a(19442),n=a(28450),i=a(19056),s=a(89463);let o=(0,i.F)("group/button inline-flex shrink-0 items-center justify-center rounded-lg border border-transparent bg-clip-padding text-sm font-medium whitespace-nowrap transition-all outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 active:not-aria-[haspopup]:translate-y-
1px disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",{variants:{variant:{default:"bg-primary text-primary-foreground [a]:hover:bg-primary/80",outline:"border-border bg-background hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80 aria-expanded:bg-secondary aria-expanded:text-secondary-foreground",ghost:"hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:hover:bg-muted/50",destructive:"bg-destructive/10 text-destructive hover:bg-destructive/20 focus-visible:border-destructive/40 focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:hover:bg-destructive/30 dark:focus-visible:ring-destructive/40",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-8 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",xs:"h-6 gap-1 rounded-[min(var(--radius-md),10px)] px-2 text-xs in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3",sm:"h-7 gap-1 rounded-[min(var(--radius-md),12px)] px-2.5 text-[0.8rem] in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3.5",lg:"h-9 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",icon:"size-8","icon-xs":"size-6 rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-lg [&_svg:not([class*='size-'])]:size-3","icon-sm":"size-7 rounded-[min(var(--radius-md),12px)] in-data-[slot=button-group]:rounded-lg","icon-lg":"size-9"}},defaultVariants:{variant:"default",size:"default"}});function d({className:e,variant:t="default",size:a="default",...i}){return(0,r.jsx)(n.Button,{"data-slot":"button",className:(0,s.cn)(o({variant:t,size:a,className:e})),...i})}},73449:(e,t,a)=>{"use strict";a.d(t,{NewTagButton:()=>o});var r=a(19442),n=a(66074),i=a(57848),s=a(98726);function o(){let[e,t]=(0,n.useState)(!1);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.$,{onClick:()=>t(!0),children:"New tag"}),(0,r.jsx)(s.d,{open:e,onOpenChange:t})]})}},76648:(e,t,a)=>{"use strict";function r(e,t){if("u">typeof document){if(null===t||""===t){document.cookie=`${e}=; path=/; max-age=0; SameSite=Lax`;return}document.cookie=`${e}=${encodeURIComponent(t)}; path=/; max-age=31536000; SameSite=Lax`}}a.d(t,{c:()=>r})},89463:(e,t,a)=>{"use strict";a.d(t,{cn:()=>i});var r=a(30142),n=a(79317);function i(...e){return(0,n.QP)((0,r.$)(e))}},90032:(e,t,a)=>{Promise.resolve().then(a.bind(a,73449)),Promise.resolve().then(a.bind(a,25522)),Promise.resolve().then(a.t.bind(a,52573,23))},97061:(e,t,a)=>{"use strict";a.d(t,{Label:()=>i});var r=a(19442);a(66074);var n=a(89463);function i({className:e,...t}){return(0,r.jsx)("label",{"data-slot":"label",className:(0,n.cn)("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",e),...t})}},98726:(e,t,a)=>{"use strict";a.d(t,{d:()=>p});var r=a(19442),n=a(66074),i=a(92805),s=a(72927),o=a(57848),d=a(3544),l=a(31508),c=a(97061),u=a(72900);let g=(0,u.createServerReference)("600c78fdbf98eaa29debfab953d8e78f024139a1db",u.callServer,void 0,u.findSourceMapURL,"updateTag"),f=(0,u.createServerReference)("40e50b77082e850ce075cac99f3c817d62b8ae5f14",u.callServer,void 0,u.findSourceMapURL,"createTag"),m=["#ef4444","#f97316","#eab308","#22c55e","#14b8a6","#3b82f6","#6366f1","#8b5cf6","#ec4899","#6b7280"];function p({open:e,onOpenChange:t,tag:a}){let[u,x]=(0,n.useTransition)(),[b,v]=(0,n.useState)(a?.color??"#6366f1"),h=(0,n.useRef)(null),j=!!a;return(0,r.jsx)(d.lG,{open:e,onOpenChange:function(e){e&&a&&v(a.color),t(e)},children:(0,r.jsxs)(d.Cf,{children:[(0,r.jsx)(d.c7,{children:(0,r.jsx)(d.L3,{children:j?"Edit tag":"New tag"})}),(0,r.jsxs)("form",{ref:h,action:function(e){x(async()=>{let r=j?await g(a.id,e):await f(e);r.success?(s.oR.success(j?"Tag updated":"Tag created"),t(!1),j||(h.current?.reset(),v("#6366f1"))):s.oR.error(r.error??"Something went wrong")})},className:"space-y-4",children:[(0,r.jsx)("input",{type:"hidden",name:"color",value:b}),(0,r.jsxs)("div",{className:"space-y-2",children:[(0,r.jsx)(c.Label,{htmlFor:"tag-name",children:"Name"}),(0,r.jsx)(l.p,{id:"tag-name",name:"name",placeholder:"e.g. read-later",defaultValue:a?.name,required:!0,autoFocus:!0})]}),(0,r.jsxs)("div",{className:"space-y-2",children:[(0,r.jsx)(c.Label,{children:"Color"}),(0,r.jsx)("div",{className:"flex flex-wrap gap-2",children:m.map(e=>(0,r.jsx)("button",{type:"button",onClick:()=>v(e),"aria-label":e,className:"relative size-7 rounded-full transition-transform hover:scale-110 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",style:{backgroundColor:e},children:b===e&&(0,r.jsx)(i.A,{className:"absolute inset-0 m-auto size-4 text-white drop-shadow"})},e))}),(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[(0,r.jsx)("div",{className:"size-7 shrink-0 rounded-full border",style:{backgroundColor:b}}),(0,r.jsx)(l.p,{value:b,onChange:e=>v(e.target.value),placeholder:"#6366f1",className:"font-mono",maxLength:7})]})]}),(0,r.jsxs)(d.Es,{children:[(0,r.jsx)(d.HM,{render:(0,r.jsx)(o.$,{variant:"outline",type:"button"}),children:"Cancel"}),(0,r.jsx)(o.$,{type:"submit",disabled:u,children:u?"Saving...":j?"Save changes":"Create"})]})]})]})})}}},e=>{e.O(0,[1922,2573,5382,2927,3077,626,7868,1449,8018,8506,2970,7358],()=>e(e.s=90032)),_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.