1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5587],{95587:(e,t,o)=>{o.r(t),o.d(t,{ModalForShare:()=>d});var r=o(56390),a=o(21494),l=o(53421),n=o(1222),c=o(46797),s=o(75891),i=o(90104),m=o(36878),p=o(51201);let d=e=>{let{title:t,slug:o,subtitle:d,show:x,setShow:h}=e,[b,f]=(0,n.useState)(!1),u=async()=>{try{await navigator.clipboard.writeText("".concat(a.Ek.siteURL).concat(o,"/")),f(!0),setTimeout(()=>{f(!1)},3e3)}catch(e){console.error("Error copying to clipboard:",e)}};return(0,r.jsxs)("div",{className:"absolute bottom-[50px] left-0 right-0 flex flex-col dxt:left-[-300px] p-[15px] dxt:w-[400px] z-1600 text-grey100 dark:text-dark-grey100 bg-bgColor2 dark:bg-dark-bgColor2 text-sm transition-all duration-300 origin-top shadow-[0_10px_25px_rgba(0,0,0,0.25)]\n ".concat(x?"opacity-100 scale-100":"opacity-0 scale-95 pointer-events-none"),children:[(0,r.jsxs)("div",{className:"flex justify-between items-center mb-[20px] border-b border-[rgb(211,211,211)]",children:[(0,r.jsx)("p",{className:"mb-0 block text-[14px] font-semibold",children:"Share this article"}),(0,r.jsx)("button",{"aria-label":"close",onClick:()=>{h(!1)},className:"flex cursor-pointer items-center justify-center py-[10px] text-[15px] font-medium leading-normal text-primaryColor dark:text-dark-primaryColor",children:(0,r.jsx)(i.WQq,{size:24})})]}),(0,r.jsxs)("div",{className:"flex items-center justify-between gap-[20px]",children:[(0,r.jsx)("a",{href:"https://www.linkedin.com/shareArticle?mini=true&url=".concat(encodeURIComponent(a.Ek.siteURL+o),"&title=").concat(encodeURIComponent(t),"&source=").concat(encodeURIComponent(a.Ek.siteDomain),"&summary=").concat(encodeURIComponent(d)),target:"_blank","aria-label":"Linkedin",rel:"nofollow",className:"flex h-5 w-5 items-center justify-center",style:{color:"var(--primaryColor)"},children:(0,r.jsx)(p.lf3,{size:18})}),(0,r.jsx)("a",{href:"https://www.facebook.com/sharer/sharer.php?u=".concat(encodeURIComponent(a.Ek.siteURL+o),"&src=sdkpreparse"),target:"_blank","aria-label":"Facebook",rel:"nofollow",className:"flex h-5 w-5 items-center justify-center",style:{color:"var(--primaryColor)"},children:(0,r.jsx)(p.Jol,{size:18})}),(0,r.jsx)("a",{href:"https://twitter.com/intent/tweet?text=".concat(encodeURIComponent(t),"&url=").concat(encodeURIComponent(a.Ek.siteURL+o)),target:"_blank","aria-label":"Twitter",rel:"nofollow",className:"flex h-5 w-5 items-center justify-center",style:{color:"var(--primaryColor)"},children:(0,r.jsx)(c.tZq,{size:15})}),(0,r.jsx)("a",{href:"https://www.reddit.com/submit?url=".concat(encodeURIComponent(a.Ek.siteURL+o)),target:"_blank","aria-label":"Reddit",rel:"nofollow",className:"flex h-5 w-5 items-center justify-center",style:{color:"var(--primaryColor)"},children:(0,r.jsx)(p.diP,{size:20})}),(0,r.jsx)(l.A,{title:b?"Copied!":"Copy Link",placement:"top",arrow:!0,children:(0,r.jsx)("button",{className:"flex h-5 w-5 cursor-pointer items-center justify-center",onClick:u,"aria-label":"Copy Link",children:(0,r.jsx)(i.CJN,{size:20,style:{color:"var(--primaryColor)"}})})}),(0,r.jsx)("a",{href:"http://share.flipboard.com/bookmarklet/popout?v=2&title=".concat(encodeURIComponent(t),"&url=").concat(encodeURIComponent(a.Ek.siteURL+o),"&utm_campaign=tools&utm_medium=article-share&utm_source=").concat(encodeURIComponent(a.Ek.siteDomain)),target:"_blank","aria-label":"Flipboard",rel:"nofollow",className:"flex h-5 w-5 items-center justify-center",style:{color:"var(--primaryColor)"},children:(0,r.jsx)(m.ylb,{size:20})}),(0,r.jsx)("a",{href:"mailto:?Subject=".concat(encodeURIComponent(t),"&Body=").concat(encodeURIComponent("Check this out!\n".concat(a.Ek.siteURL).c
1oncat(o,"/"))),target:"_blank","aria-label":"Email",rel:"nofollow",className:"flex h-5 w-5 items-center justify-center",style:{color:"var(--primaryColor)"},children:(0,r.jsx)(s.Wjb,{size:17})})]})]})}}}]);
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.