1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9755],{19755:function(e,s,a){a.r(s),a.d(s,{default:function(){return p}});var l=a(27573),c=a(7653),t=a(72659),i=a(84537),n=a(59435),r=a(97223),d=a(60127),h=a(95239),o=a(21521);a(43503);var m=(0,a(99976).$)("a896450e50ce91cfb798a743aa728c407c6f4ac1"),x=a(87354),u=a(51856),j=a(19369);function p(e){let{showModal:s,setShowModal:a,list:p}=e,[f,N]=(0,c.useState)(p.shared),w=(0,c.useMemo)(()=>"https://pricelink.io/dashboard/my-lists/".concat(p.id),[p.id]),[g,b]=(0,c.useState)(!1);return(0,l.jsx)(t.u,{showModal:s,setShowModal:a,className:"gap-0 sm:max-w-[425px]",children:(0,l.jsxs)(i.Zb,{children:[(0,l.jsxs)(i.Ol,{children:[(0,l.jsx)(i.ll,{children:"Share"}),(0,l.jsx)(i.SZ,{children:"Here you can control your list sharing preferences"})]}),(0,l.jsx)(i.aY,{className:"sm:max-w-[425px]",children:(0,l.jsxs)("div",{className:"space-y-4 pt-2",children:[(0,l.jsxs)("div",{className:"flex items-center justify-between py-2",children:[(0,l.jsxs)("div",{className:"space-y-1",children:[(0,l.jsx)(n._,{htmlFor:"share-toggle",className:"font-medium",children:"Public sharing"}),(0,l.jsx)("p",{className:"text-sm text-muted-foreground",children:"Allow others to view this list"})]}),(0,l.jsx)(r.Switch,{id:"share-toggle",checked:f,onCheckedChange:e=>{N(e),(0,o.Z)(m(p.id,e)).catch(s=>N(!e))}})]}),(0,l.jsxs)("div",{className:"space-y-3 pt-2 border-t",children:[(0,l.jsx)(n._,{className:"font-medium text-sm",children:"Share link"}),(0,l.jsxs)("div",{className:"flex gap-2",children:[(0,l.jsx)(d.I,{disabled:!f,value:w,readOnly:!0,className:"flex-1 font-mono text-sm bg-muted/50"}),(0,l.jsx)(h.z,{disabled:!f,size:"sm",variant:"outline",onClick:()=>{(0,j.vQ)(w),b(!0)},className:"shrink-0 px-3 bg-transparent",children:g?(0,l.jsx)(x.Z,{className:"h-4 w-4"}):(0,l.jsx)(u.Z,{className:"h-4 w-4"})})]}),(0,l.jsx)("p",{className:"text-xs text-muted-foreground",children:"Anyone with this link can view your list"})]})]})})]})})}}}]);
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.