PageSourceSearch

https://letsken.com/_next/static/chunks/pages/write-7aa0f5bf76c911b4.js

js letsken.com collected 2026-10-07 23:02:31 UTC 6,141 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[827],{1175:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/write",function(){return s(7897)}])},1976:function(e,t,s){"use strict";s.d(t,{Z:function(){return l}});var r=s(5893),n=s(5675),a=s.n(n),i=s(4601);function l(e){var t=e.isBlue,s=(e.title,e.description,e.buttonUrl,e.buttonHandler,e.buttonLabel,e.largeImage),n=(e.smallImage,e.children);return(0,r.jsxs)("div",{className:(0,i.AK)("-mx-6 md:mx-0  mb-20 lg:mb-24 relative",t?"bg-blue":"bg-pink"),children:[(0,r.jsx)("div",{className:"hidden md:block",children:(0,r.jsx)(a(),{loader:i.j$,src:s,width:"1664",height:"640",sizes:"200vw",objectFit:"cover"})}),(0,r.jsx)("div",{className:"",children:(0,r.jsxs)("div",{className:"flex md:absolute md:inset-0 text-white",children:[(0,r.jsx)("div",{className:"w-0 md:w-1/3"}),(0,r.jsx)("div",{className:"flex-1 px-6 md:pl-0 pb-8 md:pb-0",children:n})]})})]})}},6324:function(e,t,s){"use strict";s.d(t,{Z:function(){return l}});var r=s(5893),n=s(1664),a=s.n(n),i=s(4601);function l(e){var t=e.href,s=e.label,n=e.count,l=e.isActive,c=e.className;return(0,r.jsx)(a(),{href:t,children:(0,r.jsxs)("a",{className:(0,i.AK)("flex h-12 md:h-16 py-5 px-0 font-medium border-b-2 border-transparent flex-nowrap items-center text-sm md:text-base focus:outline-pink",l?"text-pink !border-b-pink":"text-gray-500",c),children:[(0,r.jsx)("span",{className:"whitespace-nowrap",children:s}),n>=0&&(0,r.jsx)("span",{className:"inline-block ml-2 w-5 h-5 rounded-full bg-gray-100 text-gray-300 text-center text-xs pt-0.5 pr-0.5",children:n})]})})}},672:function(e,t,s){"use strict";s.d(t,{Z:function(){return a}});var r=s(5893),n=s(4601);function a(e){var t=e.children,s=e.className,a=e.disabled,i=e.fullWidth;return(0,r.jsx)("div",{className:(0,n.AK)("backdrop-blur-sm bg-white bg-opacity-95 transition-colors duration-500 sticky top-0 z-50 border-t border-gray-200 shadow",s),children:(0,r.jsxs)("div",{className:(0,n.AK)("w-full mx-auto px-6 lg:px-8 relative",i?"max-w-7xl":"max-w-4xl"),children:[a&&(0,r.jsx)("div",{className:"absolute inset-0 bg-white bg-opacity-70 z-10"}),(0,r.jsx)("div",{className:"overflow-x-auto flex items-center h-12 md:h-16 space-x-4 md:space-x-6",children:t})]})})}},5734:function(e,t,s){"use strict";s.d(t,{Z:function(){return i}});var r=s(5893),n=s(672),a=s(6324);function i(e){var t=e.draftCount,s=e.publicationCount,i=e.activeTab,l=e.disabled;return(0,r.jsxs)(n.Z,{disabled:l,children:[(0,r.jsx)(a.Z,{href:"/write",label:"".concat(t,1===t?" Draft":" Drafts"),isActive:"drafts"===i}),(0,r.jsx)(a.Z,{href:"/write/publications",label:"".concat(s," Published"),isActive:"publications"===i})]})}},7897:function(e,t,s){"use strict";s.r(t),s.d(t,{__N_SSP:function(){return w},default:function(){return N}});var r=s(6042),n=s(5893),a=s(7568),i=s(4051),l=s.n(i),c=s(1463),d=s(3193),o=s(2077),x=s(34),m=s(1163),u=s(9008),h=s.n(u),p=s(5734),f=s(6501),b=s(6890),j=s(1976);function v(e){var t=e.articles,s=e.draftCount,i=e.publicationCount,u=e.demo,v=(0,m.useRouter)();function w(){return(w=(0,a.Z)(l().mark((function e(t){var s;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return console.log("create new document"),t.preventDefault(),e.prev=2,e.next=5,(0,x.Z)("/api/create-article",{method:"POST",headers:{"Content-Type":"application/json"}});case 5:s=e.sent.articleId,v.push("/write/".concat(s)),e.next=13;break;case 9:e.prev=9,e.t0=e.catch(2),console.error("An unexpected error happened:",e.t0),window.alert("Error: Story could not be created. Please try again.");case 13:case"end":return e.stop()}}),e,null,[[2,9]])})))).apply(this,arguments)}return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(h(),{children:(0,n.jsx)("title",{children:"Write / Ken"})}),(0,n.jsxs)("div",{className:"flex flex-col min-h-screen",children:[(0,n.jsx)(c.Z,{activeItem:"write"}),(0,n.jsx)("div",{className:"",children:(0,n.jsxs)("div",{className:"max-w-4xl w-full mx-auto px-6 lg:px-8 mt-8 mb-8 md:mt-12 md:mb-12",children:[(0,n.jsx)("div",{className:"text-center mb-4",children:(0,n.jsx)("img",{className:"inline-block w-12 h-12 md:w-16 md:h-16",
1src:"/images/write.svg"})}),(0,n.jsx)("h1",{className:"text-3xl md:text-4xl text-center font-bold my-4 md:my-4 max-w-lg lg:max-w-2xl mx-auto",children:"Write"}),(0,n.jsxs)("div",{className:"text-center text-lg",children:[!u&&(0,n.jsx)(n.Fragment,{children:"Drafts in the order you last edited them."}),u&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(b.Z,{href:"/login?returnTo=write&comingFrom=write",children:"Sign in"})," and start writing."]})]}),(0,n.jsxs)("div",{className:"flex space-x-4 text-xs items-center",children:[(0,n.jsx)("span",{className:"flex-1"}),(0,n.jsx)(o.Z,{className:"mt-6",onClick:function(e){return w.apply(this,arguments)},type:"primary",disabled:u,children:"New story"}),(0,n.jsx)("span",{className:"flex-1"})]})]})}),(0,n.jsx)(p.Z,{activeTab:"drafts",draftCount:s,publicationCount:i,disabled:u}),(0,n.jsxs)("div",{className:"max-w-4xl w-full mx-auto px-6 lg:px-8 mb-8 flex-1",children:[(0,n.jsxs)("div",{className:"relative pt-12",children:[u&&(0,n.jsx)("div",{className:"absolute inset-0 bg-white bg-opacity-70 z-10 -mx-6 sm:mx-0"}),t.map((function(e){return(0,n.jsx)(f.I,(0,r.Z)({},e),e.articleId)}))]}),0===t.length&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("h3",{className:"mb-4",children:"No drafts \u2014 yet"}),(0,n.jsx)("p",{className:"mb-8",children:"Your work-in-progress texts will be listed here."})]}),(0,n.jsx)("div",{className:"",children:(0,n.jsxs)(j.Z,{largeImage:"site/teaser
1-become-an-author-2.jpg",children:[(0,n.jsx)("div",{className:"italic text-4xl sm:text-5xl font-bold mt-16",children:"Need inspiration?"}),(0,n.jsx)("div",{className:"mt-4 mb-8 italic text-xl sm:text-2xl",children:"Learn how to share your first story."}),(0,n.jsx)("div",{children:(0,n.jsx)(o.Z,{type:"white",size:"xl",href:"/michael/how-to-share-my-first-story-on-ken",children:"Learn more"})})]})})]}),(0,n.jsx)(d.Z,{})]})]})}var w=!0;function N(e){return(0,n.jsx)(v,(0,r.Z)({},e))}}},function(e){e.O(0,[1664,1917,1463,3157,9774,2888,179],(function(){return t=1175,e(e.s=t);var t}));var t=e.O();_N_E=t}]);

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.