Deprecated: Function get_magic_quotes_gpc() is deprecated in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 99

Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 619

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 832

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 839

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 839

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 839

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 839

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 839

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 839

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 839

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 839

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 839

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 839

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 839

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 839

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 839

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 839

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 839

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 839

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 839

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 839

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 839

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 839
var P=Object.defineProperty;var V=(e,s,t)=>s in e?P(e,s,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[s]=t;var _=(e,s,t)=>V(e,typeof s!="symbol"?s+"":s,t);import{j as n}from"./client-wT6vtYO_.js";import{r as S}from"./index-BdTwX--g.js";import{c as C}from"./index-DizoKcfL.js";import{a as Z,A as U,b6 as W,a$ as $,I as N,b7 as X,aZ as G}from"./useSelectableClick-DSv4aXzQ.js";import{I as J}from"./logo-D6Accnpz.js";import{L as K}from"./short_number-w3W5phxu.js";import{M as I}from"./message-UFwkQlnu.js";import{R as Q}from"./index-DgPXgYyr.js";import{p as Y}from"./initial_state-CaZA8Ule.js";const b=2147483647,f=36,L=1,w=26,ee=38,te=700,R=72,T=128,D="-",se=/^xn--/,ne=/[^\0-\x7F]/,oe=/[\x2E\u3002\uFF0E\uFF61]/g,ae={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},y=f-L,g=Math.floor,M=String.fromCharCode;function v(e){throw new RangeError(ae[e])}function re(e,s){const t=[];let o=e.length;for(;o--;)t[o]=s(e[o]);return t}function B(e,s){const t=e.split("@");let o="";t.length>1&&(o=t[0]+"@",e=t[1]),e=e.replace(oe,".");const a=e.split("."),i=re(a,s).join(".");return o+i}function q(e){const s=[];let t=0;const o=e.length;for(;t=55296&&a<=56319&&tString.fromCodePoint(...e),le=function(e){return e>=48&&e<58?26+(e-48):e>=65&&e<91?e-65:e>=97&&e<123?e-97:f},A=function(e,s){return e+22+75*(e<26)-((s!=0)<<5)},z=function(e,s,t){let o=0;for(e=t?g(e/te):e>>1,e+=g(e/s);e>y*w>>1;o+=f)e=g(e/y);return g(o+(y+1)*e/(e+ee))},H=function(e){const s=[],t=e.length;let o=0,a=T,i=R,h=e.lastIndexOf(D);h<0&&(h=0);for(let r=0;r=128&&v("not-basic"),s.push(e.charCodeAt(r));for(let r=h>0?h+1:0;r=t&&v("invalid-input");const c=le(e.charCodeAt(r++));c>=f&&v("invalid-input"),c>g((b-o)/d)&&v("overflow"),o+=c*d;const p=u<=i?L:u>=i+w?w:u-i;if(cg(b/x)&&v("overflow"),d*=x}const m=s.length+1;i=z(o-l,m,l==0),g(o/m)>b-a&&v("overflow"),a+=g(o/m),o%=m,s.splice(o++,0,a)}return String.fromCodePoint(...s)},O=function(e){const s=[];e=q(e);const t=e.length;let o=T,a=0,i=R;for(const l of e)l<128&&s.push(M(l));const h=s.length;let r=h;for(h&&s.push(D);r=o&&dg((b-a)/m)&&v("overflow"),a+=(l-o)*m,o=l;for(const d of e)if(db&&v("overflow"),d===o){let u=a;for(let c=f;;c+=f){const p=c<=i?L:c>=i+w?w:c-i;if(uS.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",height:24,viewBox:"0 -960 960 960",width:24,...e},S.createElement("path",{d:"M320-240h320v-80H320v80Zm0-160h320v-80H320v80ZM240-80q-33 0-56.5-23.5T160-160v-640q0-33 23.5-56.5T240-880h320l240 240v480q0 33-23.5 56.5T720-80H240Zm280-520h200L520-800v200Z"})),me=({accountId:e})=>{const s=Z(t=>t.getIn(["accounts",e]));return s?n.jsxs(K,{to:`/@${s.get("acct")}`,className:"story__details__shared__author-link","data-hover-card-account":e,children:[n.jsx(U,{account:s,size:16}),n.jsx("bdi",{dangerouslySetInnerHTML:{__html:s.get("display_name_html")}})]}):null},pe=({accountId:e})=>n.jsx(I,{id:"link_preview.more_from_author",defaultMessage:"More from {name}",values:{name:n.jsx(me,{accountId:e})},children:s=>n.jsxs("div",{className:"more-from-author",children:[n.jsx(J,{}),s]})}),E="xn--",fe=e=>e.split(".").map(s=>s.indexOf(E)===0?ue.decode(s.slice(E.length)):s).join("."),ge=e=>{const s=document.createElement("a");return s.href=e,s.hostname},xe=new DOMParser,ve=e=>{const s=xe.parseFromString(e,"text/html").documentElement,t=s.querySelector("iframe");return t?(t.src.indexOf("?")!==-1?t.src+="&":t.src+="?",t.src+="autoplay=1&auto_play=1",s.querySelector("body").innerHTML):e};class Se extends S.PureComponent{constructor(){super(...arguments);_(this,"state",{previewLoaded:!1,embedded:!1,revealed:!this.props.sensitive});_(this,"handleEmbedClick",()=>{this.setState({embedded:!0})});_(this,"handleExternalLinkClick",t=>{t.stopPropagation()});_(this,"setRef",t=>{this.node=t});_(this,"handleImageLoad",()=>{this.setState({previewLoaded:!0})});_(this,"handleReveal",t=>{t.preventDefault(),t.stopPropagation(),this.setState({revealed:!0})})}UNSAFE_componentWillReceiveProps(t){W(this.props.card,t.card)||this.setState({embedded:!1,previewLoaded:!1}),this.props.sensitive!==t.sensitive&&this.setState({revealed:!t.sensitive})}componentDidMount(){window.addEventListener("resize",this.handleResize,{passive:!0})}componentWillUnmount(){window.removeEventListener("resize",this.handleResize)}renderVideo(){const{card:t}=this.props,o={__html:ve(t.get("html"))};return n.jsx("div",{ref:this.setRef,className:"status-card__image status-card-video",dangerouslySetInnerHTML:o,style:{aspectRatio:"16 / 9"}})}render(){var F;const{card:t}=this.props,{embedded:o,revealed:a}=this.state;if(t===null)return null;const i=t.get("provider_name").length===0?fe(ge(t.get("url"))):t.get("provider_name"),h=t.get("type")==="video",r=t.get("language")||"",l=((F=t.get("image"))==null?void 0:F.length)>0&&t.get("width")>t.get("height")||h,m=!!t.getIn(["authors",0,"accountId"]),d=n.jsxs("div",{className:"status-card__content",dir:"auto",children:[n.jsxs("span",{className:"status-card__host",children:[n.jsx("span",{lang:r,children:i}),t.get("published_at")&&n.jsxs(n.Fragment,{children:[" ยท ",n.jsx(Q,{timestamp:t.get("published_at")})]})]}),n.jsx("strong",{className:"status-card__title",title:t.get("title"),lang:r,children:t.get("title")}),!m&&(t.get("author_name").length>0?n.jsx("span",{className:"status-card__author",children:n.jsx(I,{id:"link_preview.author",defaultMessage:"By {name}",values:{name:n.jsx("strong",{children:t.get("author_name")})}})}):n.jsx("span",{className:"status-card__description",lang:r,children:t.get("description")}))]}),u={visibility:a?null:"hidden"};l&&t.get("type")==="video"?u.aspectRatio="16 / 9":l?u.aspectRatio="1.91 / 1":u.aspectRatio=1;let c,p=n.jsx($,{className:C("status-card__image-preview",{"status-card__image-preview--hidden":a&&this.state.previewLoaded}),hash:t.get("blurhash"),dummy:!Y});const x=t.get("image_description"),j=n.jsx("img",{src:t.get("image"),alt:x,title:x,lang:r,style:u,onLoad:this.handleImageLoad,className:"status-card__image-image"});let k=n.jsx("button",{type:"button",onClick:this.handleReveal,className:"spoiler-button__overlay",children:n.jsxs("span",{className:"spoiler-button__overlay__label",children:[n.jsx(I,{id:"status.sensitive_warning",defaultMessage:"Sensitive content"}),n.jsx("span",{className:"spoiler-button__overlay__action",children:n.jsx(I,{id:"status.media.show",defaultMessage:"Click to show"})})]})});return k=n.jsx("div",{className:C("spoiler-button",{"spoiler-button--minified":a}),children:k}),h?(o?c=this.renderVideo():c=n.jsxs("div",{className:"status-card__image",children:[p,j,a?n.jsx("div",{className:"status-card__actions",onClick:this.handleEmbedClick,role:"none",children:n.jsxs("div",{children:[n.jsx("button",{type:"button",onClick:this.handleEmbedClick,children:n.jsx(N,{id:"play",icon:X})}),n.jsx("a",{href:t.get("url"),onClick:this.handleExternalLinkClick,target:"_blank",rel:"noopener",children:n.jsx(N,{id:"external-link",icon:G})})]})}):k]}),n.jsxs("div",{className:C("status-card",{expanded:l}),ref:this.setRef,onClick:a?null:this.handleReveal,role:a?"button":null,children:[c,n.jsx("a",{href:t.get("url"),target:"_blank",rel:"noopener",children:d})]})):(t.get("image")?c=n.jsxs("div",{className:"status-card__image",children:[p,j]}):c=n.jsx("div",{className:"status-card__image",children:n.jsx(N,{id:"file-text",icon:he})}),n.jsxs(n.Fragment,{children:[n.jsxs("a",{href:t.get("url"),className:C("status-card",{expanded:l,bottomless:m}),target:"_blank",rel:"noopener",ref:this.setRef,children:[c,d]}),m&&n.jsx(pe,{accountId:t.getIn(["authors",0,"accountId"])})]}))}}export{me as A,Se as C}; //# sourceMappingURL=card-DuWxwEqg.js.map