PageSourceSearch

https://www.newspapers.com/_next/static/chunks/1866.2975b2912c50682c.js

js newspapers.com collected 2026-10-01 08:46:07 UTC 2,900 bytes, 2 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1866],{11866:(e,r,a)=>{"use strict";a.r(r),a.d(r,{default:()=>h});var s=a(54568),o=a(65158),i=a(46509),n=a(7620),t=a(70014),l=a(24718),d=a.n(l);let c=(0,n.lazy)(()=>Promise.all([a.e(9420),a.e(6888),a.e(9298),a.e(3037)]).then(a.bind(a,33037)));function h(e){let r,{puzzle:a}=e,i=(0,t.FVj)("button.copy","Copy"),l=(0,t.FVj)("crosswords.share.copied","Copied!"),h=(0,t.FVj)("crosswords.share.email","Email"),[p,m]=(0,n.useState)(i),[_,u]=(0,n.useState)(!1),x=(0,t.zno)(),j=a["com.newspapers:id"],v=`${x.global?.paths?.site??""}/crossword/${j}/`,S=a.title??"Crossword puzzle",b=(r=`${a.dimensions.width}\xd7${a.dimensions.height}`,[a.publication??a.publisher,a.date,r].filter(Boolean).join(" \xb7 "));return _?(0,s.jsx)(c,{puzzle:a}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(o.NewsModalHeader,{id:"crossword-share-header",closeButton:!0,children:(0,s.jsx)(o.NewsModalTitle,{children:(0,s.jsx)(t.EYj,{token:"button.share",children:"Share"})})}),(0,s.jsxs)(o.NewsModalBody,{style:{display:"flex",flexDirection:"column",alignItems:"center"},children:[(0,s.jsxs)("div",{className:d().Preview,children:[(0,s.jsx)("div",{className:d().PreviewThumbnail,children:(0,s.jsx)(t.P2T,{puzzle:a})}),(0,s.jsx)("p",{className:d().PreviewTitle,children:S}),b&&(0,s.jsx)("p",{className:d().PreviewMeta,children:b})]}),(0,s.jsxs)("div",{"data-cy":"crossword-share-modal",className:d().ShareList,children:[(0,s.jsx)(w,{"data-cy":"copy-btn",name:p,icon:"LinkIcon",share:function(){"clipboard"in navigator&&(navigator.clipboard.writeText(v),m(l))}}),(0,s.jsx)(w,{name:h,icon:"MailIcon",share:()=>{u(!0)}}),(0,s.jsx)(w,{name:"Facebook",icon:"FacebookIcon",share:()=>{window.open(`https://facebook.com/sharer/sharer.php?u=${encodeURIComponent(v)}`,"Facebook","width=800,height=600")}}),(0,s.jsx)(w,{name:"X",icon:"TwitterIcon",share:()=>{window.open(`https://x.com/intent/tweet?url=${encodeURIComponent(v)}&via=_newspapers&text=${encodeURIComponent(S)}`,"Twitter","width=800,height=600")}})]})]})]})}function w(e){let{name:r,icon:a,share:o}=e,n=i[a];return(0,s.jsxs)("div",{className:d().ItemContainer,onClick:()=>o(),onKeyUp:e=>{"Enter"===e.key&&o()},tabIndex:0,role:"button","aria-label":r,children:[(0,s.jsx)("span",{className:d().ShareIcon,"aria-hidden":"true",children:(0,s.jsx)(n,{})}),(0,s.jsx)("span",{className:d().ShareLink,"aria-hidden":"true",children:r})]})}},24718:e=>{e.exports={Preview:"CrosswordShareModal_Preview__5RpS6",PreviewThumbnail:"CrosswordShareModal_PreviewThumbnail__Id_L7",PreviewTitle:"CrosswordShareModal_PreviewTitle__tP9Xa",PreviewMeta:"CrosswordShareModal_PreviewMeta___awBO",ShareList:"CrosswordShareModal_ShareList__omLv9",ItemContainer:"CrosswordShareModal_ItemContainer__0KrYS",ShareIcon:"CrosswordShareModal_ShareIcon__v_lIC",ShareLink:"CrosswordShareModal_ShareLink__qxPgp"}}}]);
2//# sourceMappingURL=1866.2975b2912c50682c.js.map

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.