PageSourceSearch

https://plus.rodneylab.com/build/_shared/chunk-S5BNQDFN.js

js rodneylab.com collected 2026-10-03 21:50:26 UTC 5,148 bytes, 1 lines download raw bytes

1import{a as k}from"/build/_shared/chunk-KOQVKE7S.js";import{a as T,b as F}from"/build/_shared/chunk-N7ZYXWTC.js";import{a as U,b as c}from"/build/_shared/chunk-AB756U5S.js";import{c as O,d as l}from"/build/_shared/chunk-K5ZPSVUK.js";var q=O((ue,R)=>{R.exports={}});var I="/build/_assets/index-KPNYG2IB.css";var b=l(c());var S=function({title:a,url:t,hashtags:o,spriteAssetPath:r}){let e="https://bsky.app/intent/compose",s={text:`${a}${o.map(n=>` #${n}`).join()} | ${t}`,hashtags:o.length>0?o.join(","):void 0},i=Object.entries(s).filter(([,n])=>n??!1).map(([n,g])=>`${encodeURIComponent(n)}=${encodeURIComponent(String(g))}`).join("&"),p=i===""?e:`${e}?${i}`;return(0,b.jsxs)("button",{className:"button",title:"Bluesky",onClick:()=>{let n={height:550,width:400,location:"no",toolbar:"no",status:"no",directories:"no",menubar:"no",scrollbars:"yes",resizable:"no",centerscreen:"yes",chrome:"yes"};return window.open(p,"",Object.keys(n).map(g=>`${g}=${n[g]}`).join(","))},children:[(0,b.jsx)("span",{className:"screen-reader-text",children:"Share on Blue sky"}),(0,b.jsx)(T,{width:28,spriteAssetPath:r})]})};S.displayName="BlueskyTelegramSocialShareButtons";var B=Z,E=/[\s\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,\-.\/:;<=>?@\[\]^_`{|}~]+/,z=/^[a-z\u00E0-\u00FCA-Z\u00C0-\u00DC][\d|a-z\u00E0-\u00FCA-Z\u00C0-\u00DC]*$/,W=/([A-Z\u00C0-\u00DC]{4,})/g,D=/^[A-Z\u00C0-\u00DC]+$/;function Z(m){for(var a=m.split(E),t=a.length,o=new Array(t),r=0;r<t;r++){var e=a[r];if(e!==""){var s=z.test(e)&&!D.test(e);s&&(e=e.replace(W,function(p,h,n){return H(p,e.length-n-p.length==0)}));var i=e[0];i=r>0?i.toUpperCase():i.toLowerCase(),o[r]=i+(s?e.slice(1):e.slice(1).toLowerCase())}}return o.join("")}function H(m,a){var t=m.split(""),o=t.shift().toUpperCase(),r=a?t.pop().toLowerCase():t.pop();return o+t.join("").toLowerCase()+r}var j=l(U());var C=l(c()),A=function({spriteAssetPath:a,colour:t="inherit",width:o=16,ariaHidden:r=!1,label:e="share"}){return(0,C.jsx)("div",{className:"svg-logo",children:(0,C.jsx)("svg",{"aria-label":e,"aria-hidden":r,role:"img",width:o,height:o,viewBox:"0 0 24 24",color:t,children:(0,C.jsx)("use",{href:`${a}#share`})})})};A.displayName="ShareIcon";var N=A;var w=l(c()),x=function({spriteAssetPath:a,colour:t="inherit",width:o=32,ariaHidden:r=!1,label:e="Telegram (social network) icon"}){return(0,w.jsx)("div",{className:"svg-logo",children:(0,w.jsx)("svg",{"aria-label":e,"aria-hidden":r,role:"img",width:o,height:o,viewBox:"0 0 24 24",color:t,children:(0,w.jsx)("use",{href:`${a}#telegram`})})})};x.displayName="TelegramIcon";var f=l(c());var $=function({title:a,url:t,spriteAssetPath:o}){let r="https://telegram.me/share/url",s=Object.entries({url:t,text:a}).filter(([,h])=>h??!1).map(([h,n])=>`${encodeURIComponent(h)}=${encodeURIComponent(String(n))}`).join("&"),i=s===""?r:`${r}?${s}`;return(0,f.jsxs)("button",{className:"button",onClick:()=>{let h={height:550,width:400,location:"no",toolbar:"no",status:"no",directories:"no",menubar:"no",scrollbars:"yes",resizable:"no",centerscreen:"yes",chrome:"yes"};return window.open(i,"",Object.keys(h).map(n=>`${n}=${h[n]}`).join(","))},children:[(0,f.jsx)("span",{className:"screen-reader-text",children:"Share on Telegram"}),(0,f.jsx)(x,{width:28,spriteAssetPath:o})]})};$.displayName="TelegramSocialShareButtons";var v=l(c());var P=function({hashtags:a,quote:t,related:o,title:r,url:e,via:s,spriteAssetPath:i}){let p="https://twitter.com/share",h={url:e,hashtags:a.length>0?a.join(","):void 0,quote:t,text:r,related:o.length>0?o.join(","):void 0,via:s.slice(1)},n=Object.entries(h).filter(([,d])=>d??!1).map(([d,y])=>`${encodeURIComponent(d)}=${encodeURIComponent(String(y))}`).join("&"),g=n===""?p:`${p}?${n}`;return(0,v.jsxs)("button",{className:"button twitter-button",onClick:()=>{let d={height:550,width:400,location:"no",toolbar:"no",status:"no",directories:"no",menubar:"no",scrollbars:"yes",resizable:"no",centerscreen:"yes",chrome:"yes"};return window.open(g,"",Object.keys(d).map(y=>`${y}=${d[y]}`).join(","))},children:[(0,v.jsx)("span",{className:"screen-reader-text",children:"Share on X (previously Twitter)"}),(0,v.jsx)(F,{spriteAssetPath:i,width:24,colour:"inherit"})]})};P.displayName="TwitterSocialShareButtons";var u=l(c()),pe=()=>[{rel:"stylesheet",href:I}],X=function({tags:a=[],title:t,twitterUsername:o,url:r,spriteAssetPath:e}
1){let[s,i]=(0,j.useState)(k()&&typeof navigator.share<"u"),p=a?.map(n=>B(n))??[];return(0,u.jsxs)("div",{className:"socialsharebuttons-container",children:[(0,u.jsx)("span",{id:"share-text",className:"share-text",children:"SHARE:"}),s?(0,u.jsx)("button",{"aria-labelledby":"share-text",type:"button",className:"web-share-button",onClick:()=>{try{k()&&navigator.share({title:t,text:`Rodney Lab Plus: ${t}`,url:r})}catch{i(!1)}},children:(0,u.jsx)(N,{spriteAssetPath:e,width:28})}):(0,u.jsxs)("div",{className:"content",children:[" ",(0,u.jsx)(S,{url:r,title:t,hashtags:["askRodney",...p],spriteAssetPath:e}),(0,u.jsx)(P,{url:r,title:t,hashtags:["askRodney",...p],related:[`@${o}`],via:o,spriteAssetPath:e}),(0,u.jsx)($,{url:r,title:t,spriteAssetPath:e})]})]})};X.displayName="SocialShareButtons";export{pe as a,X as b,q as c};

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.