{"version":3,"file":"linked-in.js","sources":["../../src/sharers/linked-in.js"],"sourcesContent":["let shownWarning = false;\n\nexport function render(_text, _rawText, refUrl) {\n if (!shownWarning) {\n shownWarning = true;\n console.warn(\"LinkedIn doesn't allow sharing links with custom titles anymore, so the main point of ShareThis \"\n + \"(sharing a portion of text) couldn't be accomplished. You're encouraged to share your URLs with other, \"\n + \"more conventional means, like the official LinkedIn share plugin. See \"\n + \"https://docs.microsoft.com/en-us/linkedin/consumer/integrations/self-serve/plugins/share-plugin\");\n }\n const url = this.getShareUrl(refUrl);\n\n return `<a href=\"${url}\" target=\"_blank\" rel=\"noopener nofollow noreferrer\">`\n + \"<svg xmlns=\\\"http://www.w3.org/2000/svg\\\" viewBox=\\\"0 0 16 16\\\">\"\n + \"<path d=\\\"M13.632 13.635h-2.37V9.922c0-.886-.018-2.025-1.234-2.025-1.235 0-1.424.964\"\n + \"-1.424 1.96v3.778h-2.37V6H8.51v1.04h.03c.318-.6 1.092-1.233 2.247-1.233 2.4 0 \"\n + \"2.845 1.58 2.845 3.637v4.188zM3.558 4.955c-.762 0-1.376-.617-1.376-1.377 0-.758\"\n + \".614-1.375 1.376-1.375.76 0 1.376.617 1.376 1.375 0 .76-.617 1.377-1.376 1.377z\"\n + \"m1.188 8.68H2.37V6h2.376v7.635z\\\" fill=\\\"currentcolor\\\"/>\"\n + \"</svg></a>\";\n}\n\nexport function getShareUrl(refUrl) {\n return `https://www.linkedin.com/sharing/share-offsite/?url=${encodeURIComponent(refUrl)}`;\n}\n\nexport function action(event, item) {\n event.preventDefault();\n const popup = item.ownerDocument.defaultView.open(\n item.firstChild.href,\n \"share_via_linked_in\",\n \"height=440,location=no,menubar=no,scrollbars=no,status=no,toolbar=no,width=640\"\n );\n popup.opener = null;\n}\n\nexport const name = \"linked-in\";\n"],"names":["shownWarning","event","item","preventDefault","ownerDocument","defaultView","open","firstChild","href","opener","refUrl","encodeURIComponent","_text","_rawText","console","warn","this","getShareUrl"],"mappings":"iNAAA,IAAIA,GAAe,WA0BZ,SAAgBC,EAAOC,GAC1BD,EAAME,iBACQD,EAAKE,cAAcC,YAAYC,KACzCJ,EAAKK,WAAWC,KAChB,sBACA,kFAEEC,OAAS,oBAXZ,SAAqBC,gEACsCC,mBAAmBD,WAajE,qBAlCb,SAAgBE,EAAOC,EAAUH,UAC/BV,IACDA,GAAe,EACfc,QAAQC,KAAK,iXAOV,YAFKC,KAAKC,YAAYP"}