PageSourceSearch

https://nextjs-notion-two-kohl.vercel.app/_next/static/chunks/app/layout-cbab12cf712ecc83.js

js nextjs-notion-two-kohl.vercel.app collected 2026-10-03 07:23:39 UTC 15,989 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[185],{96697:function(e,t,r){Promise.resolve().then(r.t.bind(r,52445,23)),Promise.resolve().then(r.bind(r,74062)),Promise.resolve().then(r.bind(r,51482)),Promise.resolve().then(r.bind(r,36189)),Promise.resolve().then(r.bind(r,8910)),Promise.resolve().then(r.t.bind(r,86087,23)),Promise.resolve().then(r.bind(r,56288))},81342:function(e,t,r){"use strict";r.d(t,{l:function(){return d}});var a=r(3827);r(64090);var n=r(31047),s=r(72891),o=r(91774),i=r(85754),l=r(93930);function d(){let{setTheme:e}=(0,o.F)();return(0,a.jsxs)(l.h_,{children:[(0,a.jsx)(l.$F,{asChild:!0,children:(0,a.jsxs)(i.z,{variant:"outline",size:"icon",children:[(0,a.jsx)(n.Z,{className:"h-[1.2rem] w-[1.2rem] rotate-0 scale-100 transition-all dark:-rotate-90 dark:scale-0"}),(0,a.jsx)(s.Z,{className:"absolute h-[1.2rem] w-[1.2rem] rotate-90 scale-0 transition-all dark:rotate-0 dark:scale-100"}),(0,a.jsx)("span",{className:"sr-only",children:"Toggle theme"})]})}),(0,a.jsxs)(l.AW,{align:"end",children:[(0,a.jsx)(l.Xi,{onClick:()=>e("light"),children:"Light"}),(0,a.jsx)(l.Xi,{onClick:()=>e("dark"),children:"Dark"}),(0,a.jsx)(l.Xi,{onClick:()=>e("system"),children:"System"})]})]})}},74062:function(e,t,r){"use strict";r.r(t),r.d(t,{ConvexClientProvider:function(){return l}});var a=r(3827),n=r(62417),s=r(12407),o=r(568);let i=new s.Zj("https://careful-sandpiper-780.convex.cloud"),l=e=>{let{children:t}=e;return(0,a.jsx)(n.El,{publishableKey:"pk_test_cmVsYXhpbmctYW1vZWJhLTg3LmNsZXJrLmFjY291bnRzLmRldiQ",children:(0,a.jsx)(o.p,{client:i,useAuth:n.aC,children:t})})}},51482:function(e,t,r){"use strict";r.r(t),r.d(t,{ModalProvider:function(){return Z}});var a=r(3827),n=r(72258),s=r(42706),o=r(64090),i=r(24602),l=r(57742),d=r(1657);let c=(0,l.j)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),u=o.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,a.jsx)(i.f,{ref:t,className:(0,d.cn)(c(),r),...n})});u.displayName=i.f.displayName;var f=r(81342);let m=()=>{let e=(0,n.r)();return(0,a.jsx)(s.Vq,{open:e.isOpen,onOpenChange:e.onClose,children:(0,a.jsxs)(s.cZ,{children:[(0,a.jsx)(s.fK,{className:"border-b pb-3",children:(0,a.jsx)("h2",{className:"text-lg font-medium",children:"My Settings"})}),(0,a.jsxs)("div",{className:"flex items-center justify-between",children:[(0,a.jsxs)("div",{className:"flex flex-col gap-y-1",children:[(0,a.jsx)(u,{children:"Appearance"}),(0,a.jsx)("span",{className:"text-[0.8rem] text-muted-foreground",children:"Customize how Notion looks on your device."})]}),(0,a.jsx)(f.l,{})]})]})})};var p=r(51497),x=r(50726),g=r(52235),h=r(54739),b=r(51367),v=r(95393);let y={base:"relative rounded-md flex justify-center items-center flex-col cursor-pointer min-h-[150px] min-w-[200px] border border-dashed border-gray-400 dark:border-gray-300 transition-colors duration-200 ease-in-out",image:"border-0 p-0 min-h-0 min-w-0 relative shadow-md bg-slate-200 dark:bg-slate-900 rounded-md",active:"border-2",disabled:"bg-gray-200 border-gray-300 cursor-default pointer-events-none bg-opacity-30 dark:bg-gray-700",accept:"border border-blue-500 bg-blue-500 bg-opacity-10",reject:"border border-red-700 bg-red-700 bg-opacity-10"},j={fileTooLarge:e=>"The file is too large. Max size is ".concat(function(e){if(!e||0===(e=Number(e)))return"0 Bytes";let t=Math.floor(Math.log(e)/Math.log(1024));return"".concat(parseFloat((e/Math.pow(1024,t)).toFixed(2))," ").concat(["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"][t])}(e),"."),fileInvalidType:()=>"Invalid file type.",tooManyFiles:e=>"You can only add ".concat(e," file(s)."),fileNotSupported:()=>"The file is not supported."},N=o.forwardRef((e,t)=>{var r;let{dropzoneOptions:n,width:s,height:i,value:l,className:d,disabled:c,onChange:u}=e,f=o.useMemo(()=>"string"==typeof l?l:l?URL.createObjectURL(l):null,[l]),{getRootProps:m,getInputProps:p,acceptedFiles:N,fileRejections:w,isFocused:k,isDragAccept:z,isDragReject:C}=(0,h.uI)({accept:{"image/*":[]},multiple:!1,disabled:c,onDrop:e=>{let t=e[0];t&&(null==u||u(t))},...n}),R=o.useMemo(()=>(0,b.m6)(y.base,k&&y.active,c&&y.disabled,f&&y.image,(null!=C?C:w[0])&&y.reject,z&&y.accept,d).trim(),[k,f,w,z,C,c,d]),Z=o.useMemo(()=>
1{if(w[0]){var e,t,r,a,s;let{errors:o}=w[0];return(null===(e=o[0])||void 0===e?void 0:e.code)==="file-too-large"?j.fileTooLarge(null!==(a=null==n?void 0:n.maxSize)&&void 0!==a?a:0):(null===(t=o[0])||void 0===t?void 0:t.code)==="file-invalid-type"?j.fileInvalidType():(null===(r=o[0])||void 0===r?void 0:r.code)==="too-many-files"?j.tooManyFiles(null!==(s=null==n?void 0:n.maxFiles)&&void 0!==s?s:0):j.fileNotSupported()}},[w,n]);return(0,a.jsxs)("div",{className:"relative",children:[c&&(0,a.jsx)("div",{className:"flex items-center justify-center absolute inset-y-0 h-full w-full bg-background/80 z-50",children:(0,a.jsx)(v.$,{size:"lg"})}),(0,a.jsxs)("div",{...m({className:R,style:{width:s,height:i}}),children:[(0,a.jsx)("input",{ref:t,...p()}),f?(0,a.jsx)("img",{className:"h-full w-full rounded-md object-cover",src:f,alt:null===(r=N[0])||void 0===r?void 0:r.name}):(0,a.jsxs)("div",{className:"flex flex-col items-center justify-center text-xs text-gray-400",children:[(0,a.jsx)(x.Z,{className:"mb-2 h-7 w-7"}),(0,a.jsx)("div",{className:"text-gray-400",children:"Click or drag file to this area to upload"})]}),f&&!c&&(0,a.jsx)("div",{className:"group absolute right-0 top-0 -translate-y-1/4 translate-x-1/4 transform",onClick:e=>{e.stopPropagation(),null==u||u(void 0)},children:(0,a.jsx)("div",{className:"flex h-5 w-5 items-center justify-center rounded-md border border-solid border-gray-500 bg-white transition-all duration-300 hover:h-6 hover:w-6 dark:border-gray-400 dark:bg-black",children:(0,a.jsx)(g.Z,{className:"text-gray-500 dark:text-gray-400",width:16,height:16})})})]}),(0,a.jsx)("div",{className:"mt-1 text-xs text-red-500",children:Z})]})});N.displayName="SingleImageDropzone",o.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,a.jsx)("button",{className:(0,b.m6)("focus-visible:ring-ring inline-flex cursor-pointer items-center justify-center rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 disabled:pointer-events-none disabled:opacity-50","border border-gray-400 text-gray-400 shadow hover:bg-gray-100 hover:text-gray-500 dark:border-gray-600 dark:text-gray-100 dark:hover:bg-gray-700","h-6 rounded-md px-2 text-xs",r),ref:t,...n})}).displayName="Button";var w=r(8910),k=r(12407),z=r(27222),C=r(47907);let R=()=>{let e=(0,C.useParams)(),t=(0,k.Db)(z.h.documents.update),r=(0,p.D)(),{edgestore:n}=(0,w.useEdgeStore)(),[i,l]=(0,o.useState)(),[d,c]=(0,o.useState)(!1),u=()=>{l(void 0),c(!1),r.onClose()},f=async a=>{if(a){c(!0),l(a);let s=await n.publicFiles.upload({file:a,options:{replaceTargetUrl:r.url}});await t({id:e.documentId,coverImage:s.url}),u()}};return(0,a.jsx)(s.Vq,{open:r.isOpen,onOpenChange:r.onClose,children:(0,a.jsxs)(s.cZ,{children:[(0,a.jsx)(s.fK,{children:(0,a.jsx)("h2",{className:"text-center text-lg font-semibold",children:"Cover Image"})}),(0,a.jsx)(N,{className:"w-full outline-none",disabled:d,value:i,onChange:f})]})})},Z=()=>{let[e,t]=(0,o.useState)(!1);return((0,o.useEffect)(()=>{t(!0)},[]),e)?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(m,{}),(0,a.jsx)(R,{})]}):null}},36189:function(e,t,r){"use strict";r.r(t),r.d(t,{ThemeProvider:function(){return s}});var a=r(3827);r(64090);var n=r(91774);function s(e){let{children:t,...r}=e;return(0,a.jsx)(n.f,{...r,children:t})}},95393:function(e,t,r){"use strict";r.d(t,{$:function(){return l}});var a=r(3827),n=r(85083),s=r(57742),o=r(1657);let i=(0,s.j)("text-muted-foreground animate-spin",{variants:{size:{default:"h-4 w-4",sm:"h-2 w-2",lg:"h-6 w-6",icon:"h-10 w-10"}},defaultVariants:{size:"default"}}),l=e=>{let{size:t}=e;return(0,a.jsx)(n.Z,{className:(0,o.cn)(i({size:t}))})}},85754:function(e,t,r){"use strict";r.d(t,{d:function(){return l},z:function(){return d}});var a=r(3827),n=r(64090),s=r(59143),o=r(57742),i=r(1657);let l=(0,o.j)("inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),d=n.forwardRef((e,t)=>
1{let{className:r,variant:n,size:o,asChild:d=!1,...c}=e,u=d?s.g7:"button";return(0,a.jsx)(u,{className:(0,i.cn)(l({variant:n,size:o,className:r})),ref:t,...c})});d.displayName="Button"},42706:function(e,t,r){"use strict";r.d(t,{Vq:function(){return l},cZ:function(){return u},fK:function(){return f}});var a=r(3827),n=r(64090),s=r(72936),o=r(52235),i=r(1657);let l=s.fC;s.xz;let d=s.h_;s.x8;let c=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,a.jsx)(s.aV,{ref:t,className:(0,i.cn)("fixed inset-0 z-[99999] bg-black/80  data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",r),...n})});c.displayName=s.aV.displayName;let u=n.forwardRef((e,t)=>{let{className:r,children:n,...l}=e;return(0,a.jsxs)(d,{children:[(0,a.jsx)(c,{}),(0,a.jsxs)(s.VY,{ref:t,className:(0,i.cn)("fixed left-[50%] top-[50%] z-[99999] grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",r),...l,children:[n,(0,a.jsxs)(s.x8,{className:"absolute right-4 top-4 roun
1ded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[(0,a.jsx)(o.Z,{className:"h-4 w-4"}),(0,a.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})});u.displayName=s.VY.displayName;let f=e=>{let{className:t,...r}=e;return(0,a.jsx)("div",{className:(0,i.cn)("flex flex-col space-y-1.5 text-center sm:text-left",t),...r})};f.displayName="DialogHeader",n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,a.jsx)(s.Dx,{ref:t,className:(0,i.cn)("text-lg font-semibold leading-none tracking-tight",r),...n})}).displayName=s.Dx.displayName,n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,a.jsx)(s.dk,{ref:t,className:(0,i.cn)("text-sm text-muted-foreground",r),...n})}).displayName=s.dk.displayName},93930:function(e,t,r){"use strict";r.d(t,{$F:function(){return u},AW:function(){return f},VD:function(){return p},Xi:function(){return m},h_:function(){return c}});var a=r(3827),n=r(64090),s=r(18913),o=r(37805),i=r(80037),l=r(37501),d=r(1657);let c=s.fC,u=s.xz;s.ZA,s.Uv,s.Tr,s.Ee,n.forwardRef((e,t)=>{let{className:r,inset:n,children:i,...l}=e;return(0,a.jsxs)(s.fF,{ref:t,className:(0,d.cn)("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent",n&&"pl-8",r),...l,children:[i,(0,a.jsx)(o.Z,{className:"ml-auto h-4 w-4"})]})}).displayName=s.fF.displayName,n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,a.jsx)(s.tu,{ref:t,className:(0,d.cn)("z-[9999] min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-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",r),...n})}).displayName=s.tu.displayName;let f=n.forwardRef((e,t)=>{let{className:r,sideOffset:n=4,...o}=e;return(0,a.jsx)(s.Uv,{children:(0,a.jsx)(s.VY,{ref:t,sideOffset:n,className:(0,d.cn)("z-[99999] min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-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",r),...o})})});f.displayName=s.VY.displayName;let m=n.forwardRef((e,t)=>{let{className:r,inset:n,...o}=e;return(0,a.jsx)(s.ck,{ref:t,className:(0,d.cn)("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",n&&"pl-8",r),...o})});m.displayName=s.ck.displayName,n.forwardRef((e,t)=>{let{className:r,children:n,checked:o,...l}=e;return(0,a.jsxs)(s.oC,{ref:t,className:(0,d.cn)("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",r),checked:o,...l,children:[(0,a.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,a.jsx)(s.wU,{children:(0,a.jsx)(i.Z,{className:"h-4 w-4"})})}),n]})}).displayName=s.oC.displayName,n.forwardRef((e,t)=>{let{className:r,children:n,...o}=e;return(0,a.jsxs)(s.Rk,{ref:t,className:(0,d.cn)("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",r),...o,children:[(0,a.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,a.jsx)(s.wU,{children:(0,a.jsx)(l.Z,{className:"h-2 w-2 fill-current"})})}),n]})}).displayName=s.Rk.displayName,n.forwardRef((e,t)=>
1{let{className:r,inset:n,...o}=e;return(0,a.jsx)(s.__,{ref:t,className:(0,d.cn)("px-2 py-1.5 text-sm font-semibold",n&&"pl-8",r),...o})}).displayName=s.__.displayName;let p=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,a.jsx)(s.Z0,{ref:t,className:(0,d.cn)("-mx-1 my-1 h-px bg-muted",r),...n})});p.displayName=s.Z0.displayName},27222:function(e,t,r){"use strict";r.d(t,{h:function(){return a}});let a=r(36703).qL},51497:function(e,t,r){"use strict";r.d(t,{D:function(){return a}});let a=(0,r(22020).Ue)(e=>({url:void 0,isOpen:!1,onOpen:()=>e({isOpen:!0,url:void 0}),onClose:()=>e({isOpen:!1,url:void 0}),onReplace:t=>e({isOpen:!0,url:t})}))},72258:function(e,t,r){"use strict";r.d(t,{r:function(){return a}});let a=(0,r(22020).Ue)(e=>({isOpen:!1,onOpen:()=>e({isOpen:!0}),onClose:()=>e({isOpen:!1})}))},8910:function(e,t,r){"use strict";r.r(t),r.d(t,{EdgeStoreProvider:function(){return a},useEdgeStore:function(){return n}});let{EdgeStoreProvider:a,useEdgeStore:n}=(0,r(81585).q)()},1657:function(e,t,r){"use strict";r.d(t,{cn:function(){return s}});var a=r(75504),n=r(51367);function s(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return(0,n.m6)((0,a.W)(t))}},52445:function(){}},function(e){e.O(0,[363,189,688,417,205,120,503,999,936,424,971,69,744],function(){return e(e.s=96697)}),_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.