1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9992],{21787:(e,l,t)=>{t.d(l,{default:()=>u});var s=t(249738),a=t(705922),o=t(723370),n=t(453299),i=t(57558),r=t(900086),c=t(535260),d=t(111239);function u(e){var l,t,u,m,p,h,f,x,v,b;let{edit:g,account:y,block:j,update:w,style:k,theme:N}=e,[_,z]=a.useState(j),[C,A]=a.useState(!1),S=Object.fromEntries(Object.entries(_.metadata||{}).filter(e=>{let[l]=e;return l.startsWith("html-data-")}).map(e=>{let[l,t]=e;return["data-metadata-".concat(l.replace("html-data-","")),t]}));return(0,s.jsx)(i.A,{edit:g,className:j.show?"":"opacity-30",title:"Text Copy | "+j.url,block:j,update:w,setBlockUpdate:z,children:(0,s.jsxs)("button",{style:k,id:"block",className:(0,o.cn)("rounded-user bg-user-primary-color text-user-primary-text-color",null==(l=d.C4[N.profile.design.shadow])?void 0:l.class,(null==(t=_.style)?void 0:t.custom)&&(null==(u=d.zI[_.style.corner_radius])?void 0:u.class),(null==(m=_.style)?void 0:m.custom)&&(null==(p=d.C4[_.style.shadow])?void 0:p.class),(null==(h=_.style)?void 0:h.custom)&&(null==(f=d.Bq[_.style.font_size])?void 0:f.class),"w-full px-1 py-3 text-xl transition-all duration-150 hover:scale-105",_.name.replaceAll(" ","-"),"block-"+j.id),onClick:async e=>{try{await navigator.clipboard.writeText(_.url),A(!0),n.oR.success("Copied link to clipboard"),(0,c.A)(y,e,j,g),setTimeout(()=>A(!1),3e3)}catch(e){console.error("Failed to copy link: ",e),n.oR.error("Failed to copy to clipboard")}},...S,children:[(0,s.jsx)(r.A,{account_id:y.id,iconName:_.icon,size:(null==(x=_.style)?void 0:x.custom)&&(null==(v=d.Bq[_.style.font_size])?void 0:v.icon)||(null==(b=d.Bq[N.profile.design.font_size])?void 0:b.icon)||26}),(0,s.jsx)("span",{id:"block-text",className:"block w-full px-6 text-center font-bold",children:C?"Copied to clipboard!":_.name})]})})}},53047:(e,l,t)=>{t.d(l,{default:()=>x});var s=t(249738),a=t(705922),o=t(356566),n=t.n(o),i=t(57558),r=t(723370),c=t(174186),d=t(242573),u=t(781621),m=t(296449),p=t(900086),h=t(348128),f=t(111239);function x(e){var l,t;let{edit:o,account:x,block:v,update:b,style:g,theme:y}=e,j=(e,l,t)=>{(0!=e.button||o)&&(1!=e.button||o)||fetch("/api/user/click",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({account_id:x.id,block_id:l.id,child_block_id:t})})},[w,k]=a.useState(v),N={};return w.colour.toggle&&w.colour.background_block&&(N={background:w.colour.background_block}),(0,s.jsx)(i.A,{edit:o,className:v.show?"":"opacity-30",title:"Multi Link",block:v,update:b,setBlockUpdate:k,children:(0,s.jsx)("div",{className:"flex w-full flex-row flex-wrap gap-2 rounded-user p-2 ".concat("center"==w.colour.position?"justify-center":"right"==w.colour.position?"justify-end":"justify-start"),style:N,id:"multiLinkFlex",children:null==(t=w.options)||null==(l=t.icons)?void 0:l.map(e=>{var l,t,a,o,i,b,k,N,_,z,C,A,S,B;let I=g;e.style.enabled&&(I={background:e.style.background,color:e.style.text,borderColor:e.style.border,borderWidth:"2px"});let q=null===h.A||void 0===h.A?void 0:h.A.find(l=>{var t;return null==(t=e.url)?void 0:t.includes(l.find)});return e.adult||q?(0,s.jsxs)(u.lG,{children:[(0,s.jsx)(u.zM,{asChild:!0,children:(0,s.jsx)("button",{style:I,id:"multiLinkButton",className:(0,r.cn)("rounded-user bg-user-primary-color text-user-primary-text-color",null==(N=f.C4[y.profile.design.shadow])?void 0:N.class,(null==(_=w.style)?void 0:_.custom)&&(null==(z=f.zI[w.style.corner_radius])?void 0:z.class),(null==(C=w.style)?void 0:C.custom)&&(null==(A=f.C4[w.style.shadow])?void 0:A.class),null==(S=f.Bq[y.profile.design.font_size])?void 0:S.class,"flex p-2 text-xl transition-all duration-150 hover:scale-110",w.name.replaceAll(" ","-")),children:(0,s.jsx)(p.A,{account_id:x.id,iconName:e.icon,size:(null==(B=f.Bq[y.profile.design.font_size])?void 0:B.icon)||26,raw:!0})})}),(0,s.jsxs)(u.Cf,{className:"sm:h-fit",children:[(0,s.jsxs)(u.c7,{children:[(0,s.jsx)(u.L3,{children:"NSFW or mature content ahead"}),(0,s.jsx)(u.rr,{children:"Where you're about to go has been flagged as mature or NSFW"})]}),(0,s.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,s.jsx)("p",{className:"w-full rounded-md bg-accent p-1 text-center text-sm text-foreground
1/80",children:e.url.replace("https://","")}),(0,s.jsx)(c.Separator,{}),(0,s.jsx)(m.Label,{variant:"toggle",children:"Would you like to continue?"}),(0,s.jsxs)("div",{className:"flex w-full items-center gap-2",children:[(0,s.jsx)(n(),{href:e.url,target:"_blank",prefetch:!1,onClick:l=>{j(l,v,e.id)},onAuxClick:l=>{j(l,v,e.id)},children:(0,s.jsx)(d.$,{children:"Proceed"})}),(0,s.jsx)(u.HM,{asChild:!0,children:(0,s.jsx)(d.$,{variant:"outline",children:"Go back"})})]})]})]})]},e.id):(0,s.jsx)(n(),{href:e.url,target:"_blank",prefetch:!1,onClick:l=>{j(l,v,e.id)},onAuxClick:l=>{j(l,v,e.id)},children:(0,s.jsx)("button",{style:I,id:"multiLinkButton",className:(0,r.cn)("rounded-user bg-user-primary-color text-user-primary-text-color",null==(l=f.C4[y.profile.design.shadow])?void 0:l.class,(null==(t=w.style)?void 0:t.custom)&&(null==(a=f.zI[w.style.corner_radius])?void 0:a.class),(null==(o=w.style)?void 0:o.custom)&&(null==(i=f.C4[w.style.shadow])?void 0:i.class),null==(b=f.Bq[y.profile.design.font_size])?void 0:b.class,"flex p-2 text-xl transition-all duration-150 hover:scale-110",w.name.replaceAll(" ","-")),children:(0,s.jsx)(p.A,{account_id:x.id,iconName:e.icon,size:(null==(k=f.Bq[y.profile.design.font_size])?void 0:k.icon)||26,raw:!0})})},e.id)})},v.id)})}},57558:(e,l,t)=>{t.d(l,{A:()=>c});var s=t(249738),a=t(296449),o=t(705922),n=t(749026),i=t(530508),r=t(219722);function c(e){let{edit:l,children:t,className:c,title:d,block:u,update:m,setBlockUpdate:p}=e;if(!l)return(0,s.jsx)(s.Fragment,{children:t});let h=(0,o.useRef)(null),f=(0,n.a)(),{isOpen:x,toggleSidebar:v}=(0,r.D)(["render-settings-sidebar-state"]),{setValue:b,selectedBlock:{setValue:g,value:y}}=(0,i.h)(),j=(null==y?void 0:y.id)==u.id;(0,o.useEffect)(()=>{if(h.current&&f)h.current.scrollIntoView({behavior:"smooth",block:"start"});else if(h.current&&j){let e=h.current.getBoundingClientRect();e.top<window.innerHeight&&e.bottom>=0&&e.left<window.innerWidth&&e.right>=0||h.current.scrollIntoView({behavior:"smooth",block:"start"})}},[f,j]);let w=()=>{b("root"),g(null)};return(0,o.useEffect)(()=>{x||w()},[x]),(0,o.useEffect)(()=>{let e=new AbortController;return window.addEventListener("updateBlock-"+u.id,{handleEvent:e=>{null===e.detail.block?(null==m||m(u.id,e.detail.block,!0),w()):e.detail.block&&function(e){if(null==e){null==m||m(u.id,e,!0);return}null==p||p({...u,...e}),u!=e&&(null==m||m(u.id,e))}(e.detail.block)}},{signal:e.signal}),window.addEventListener("updateBlockInternal-"+u.id,{handleEvent:e=>{e.detail.block&&(null==p||p(e.detail.block))}},{signal:e.signal}),()=>{e.abort()}}),(0,s.jsx)("div",{ref:h,onClick:()=>{j?w():(x||v(),b("block-details"),g(u))},className:"group relative z-40 w-full cursor-pointer rounded-md border-2 p-1 transition-all duration-300 hover:border-solid hover:border-primary data-[state=open]:border-solid data-[state=open]:border-primary\n ".concat(j?"border border-primary":"border-transparent","\n ").concat(c),children:(0,s.jsxs)("div",{className:"relative flex w-full cursor-pointer flex-col gap-1",children:[(0,s.jsx)("div",{className:"absolute -right-1 -top-1 z-40 flex items-center rounded-bl-md bg-primary p-1 opacity-0 transition-all duration-300 group-hover:opacity-100\n ".concat(j&&"opacity-100"),children:(0,s.jsx)(a.Label,{variant:"toggle",children:d})}),(0,s.jsxs)("div",{className:"w-full ".concat(l&&""),children:[(0,s.jsx)("div",{className:"w-full ".concat(l&&"absolute left-0 top-0 z-40 flex h-full justify-center rounded-md transition-all duration-300 group-hover:bg-primary/30")}),t]})]})})}},76618:(e,l,t)=>{t.d(l,{default:()=>i});var s=t(249738),a=t(705922),o=t(57558),n=t(491128);function i(e){let{edit:l,block:t,update:n}=e,[i,c]=a.useState(t),d=i.url.match(/spotify\.com\/(track|album|artist|playlist)\/([^\/?]+)/),u=d?d[1]:null,m=d?d[2]:null;return(0,s.jsx)(o.A,{edit:l,className:t.show?"":"opacity-30",title:"Spotify - ".concat(i.url),block:t,update:n,setBlockUpdate:c,children:u&&m?(0,s.jsx)("iframe",{id:"spotify",style:{borderRadius:"12px"},src:"https://open.spotify.com/embed/".concat(u,"/").concat(m,"?utm_source=generator&theme=0"),width:"100%",height:"152",frameBorder:"0",allowFullScreen:!1,allow:"autoplay; clipboard-write; encrypted-media; fullscreen; picture-in-picture",loading:"lazy",className:"block-"+t.id}):(0,s.jsx)(r,{})})}function r(e){let{height:l=152}=e;return(0,s.jsxs)("div",{className:"flex items-center gap-4 bg-black/20 p-2",style:{height:l,borderRadius:"12px"},children:[(0,s.jsx)(n.E,{className:"flex-shrink-0 rounded-md",style:{width:l,height:l}}
1),(0,s.jsxs)("div",{className:"flex flex-1 flex-col gap-2 self-start",children:[(0,s.jsx)(n.E,{className:"h-4 w-3/4"}),(0,s.jsx)(n.E,{className:"h-3 w-1/2"})]})]})}},125706:(e,l,t)=>{t.d(l,{default:()=>u});var s=t(249738),a=t(705922),o=t(790643),n=t(723119),i=t(57558),r=t(535260),c=t(111239),d=t(723370);function u(e){var l,t,u;let{edit:m,theme:p,account:h,block:f,update:x}=e,[v,b]=a.useState(f),g=[];v.options.autoplay&&g.push((0,n.A)({delay:v.options.autoplay_delay}));let y=null==(l=c.zI[p.profile.design.corner_radius])?void 0:l.remValue;return(0,s.jsx)(i.A,{edit:m,className:f.show?"":"opacity-30",title:"Carousel",block:f,update:x,setBlockUpdate:b,children:(0,s.jsx)("div",{className:(0,d.cn)("relative flex w-full flex-row flex-wrap gap-2 p-2","block-"+f.id),style:{borderRadius:y},id:"Carousel",children:(0,s.jsxs)(o.FN,{className:"w-full",opts:{align:"start",loop:!0},plugins:g,children:[(0,s.jsx)(o.Wk,{className:"",children:null==(u=v.options)||null==(t=u.images)?void 0:t.map((e,l)=>(0,s.jsx)(o.A7,{className:"h-auto",children:(0,s.jsx)("div",{className:"h-96 w-full p-1",children:(0,s.jsxs)("div",{className:"flex h-full items-center justify-center",children:[e.link?(0,s.jsx)("a",{href:e.link,target:"_blank",className:"relative inline-block h-full w-full",onClick:e=>{(0,r.A)(h,e,f)},onAuxClick:e=>{(0,r.A)(h,e,f)},children:(0,s.jsx)("div",{className:"relative h-full w-full",children:(0,s.jsx)("img",{src:e.url,className:"absolute left-0 top-0 h-full w-full object-contain",style:{borderRadius:y},alt:"Image "+l.toString(),id:"block-icon"})})}):(0,s.jsx)("div",{className:"relative h-full w-full",children:(0,s.jsx)("img",{src:e.url,className:"absolute left-0 top-0 h-full w-full object-contain",style:{borderRadius:y},alt:"Image "+l.toString(),id:"block-icon"})}),e.caption&&(0,s.jsx)("p",{className:"absolute bottom-0 w-fit max-w-full truncate text-nowrap px-3",style:{background:h.theme.button,color:h.theme.text_col_button,borderRadius:y},children:e.caption})]})})},l))}),(0,s.jsx)(o.Q8,{className:"bg-user-primary-color text-user-primary-text-color hover:scale-105",style:{borderColor:"transparent",border:0}}),(0,s.jsx)(o.Oj,{className:"bg-user-primary-color text-user-primary-text-color hover:scale-105",style:{borderColor:"transparent",border:0}})]})},f.id)})}},166719:(e,l,t)=>{t.d(l,{default:()=>h});var s=t(249738),a=t(705922),o=t(296449),n=t(356566),i=t.n(n),r=t(756533),c=t.n(r),d=t(57558),u=t(202884),m=t(723370),p=t(111239);function h(e){var l,t,n,r,h,f,x,v,b,g;let{account:y,edit:j,block:w,update:k,style:N,theme:_}=e,[z,C]=a.useState(w),[A,S]=a.useState(null);return a.useEffect(()=>{(async()=>{try{var e,l,t,s,a,o,n;let i=await fetch(z.url),r=await i.text(),c=new DOMParser().parseFromString(r,"application/xml"),d=(null==(e=c.querySelector("title"))?void 0:e.textContent)||"",u=(null==(l=c.querySelector("description"))?void 0:l.textContent)||"",m=c.querySelector("image > url"),p=m?null==m||null==(t=m.textContent)?void 0:t.trim():null,h=c.querySelectorAll("item"),f={title:(null==(s=h[0].querySelector("title"))?void 0:s.textContent)||"",link:(null==(a=h[0].querySelector("link"))?void 0:a.textContent)||"",description:(null==(o=h[0].querySelector("description"))?void 0:o.textContent)||"",pubDate:(null==(n=h[0].querySelector("pubDate"))?void 0:n.textContent)||""};S({title:d,description:u,image:p,item:f})}catch(e){S(null),console.error("Error fetching RSS data:",e)}})()},[]),(0,s.jsx)(d.A,{edit:j,className:w.show?"":"opacity-30",title:"PodBean | ".concat((null==A?void 0:A.title)||""),block:w,update:k,setBlockUpdate:C,children:(0,s.jsx)("div",{className:"w-full",children:A?(0,s.jsx)("div",{className:"space-y-3\n ".concat(null==(l=y.theme)?void 0:l.button_shadow,"\n ").concat((null==(t=y.theme)?void 0:t.button_rounded)=="rounded-full"?"rounded-2xl":null==(n=y.theme)?void 0:n.button_rounded," block-").concat(w.id,"\n "),style:N,children:(0,s.jsx)(i(),{className:"w-full",href:A.item.link,target:"_blank",children:(0,s.jsx)("button",{style:N,id:"podbean",className:(0,m.cn)("relative rounded-user bg-user-primary-color text-user-primary-text-color",null==(r=p.C4[_.profile.design.shadow])?void 0:r.class,(null==(h=z.style)?void 0:h.custom)&&(null==(f=p.zI[z.style.corner_radius])?void 0:f.class),(null==(x=z.style)?void 0:x.custom)&&(null==(v=p.C4[z.style.shadow])?void 0:v.class),"w-full px-1 py-3 text-xl shadow-md transition-all duration-150 hover:scale-105",z.name.replaceAll(" ","-")),children:(0,s.jsxs)("div",{className:"flex justify-start gap-1",children:[(0,s.jsx)("div",{className:"w-1/3",children:(0,s.jsx)("img",{src:A.image,className:"h-auto ".concat((null==(b=y.theme)?void 0:b.button_rounded)=="rounded-full"?"rounded-2xl":null==(g=y.theme)?void 0:g.button_rounded),alt:"custom icons"})}),(0,s.jsxs)("div",{className:"flex w-2/3 flex-col gap-2 px-2",children:[(0,s.jsx)("span",{id:"block-text",className:"w-full text-start font-bold",children:A.title}),(0,s.jsx)(o.Label,{className:"line-clamp-3 text-start",style:{color:N.color},children:A.description}),(0,s.jsxs)("div",{className:"mt-auto",children:[(0,s.jsxs)(o.Label,{className:"text-start font-bold",style:{color:N.color},children:["Latest Episode:"," ",A.item.title]}),(0,s.jsxs)(o.Label,{className:"text-start",style:{color:N.color},children:["Uploaded:"," ",c()(A.item.pubDate).format("MMM Do YYYY")]})]})]})]})})})}):(0,s.jsx)(u.A,{className:"bg-user-primary-color"})})})}},203185:(e,l,t)=>{t.d(l,{default:()=>i});var s=t(249738),a=t(705922),o=t(57558),n=t(475118);function i(e){let{edit:l,block:t,update:i}=e,[r,c]=a.useState(t),d=Object.fromEntries(Object.entries(r.metadata||{}).filter(e=>{let[l]=e;return l.startsWith("html-data-")}).map(e=>{let[l,t]=e;return["data-metadata-".concat(l.replace("html-data-","")),t]}));return(0,s.jsxs)(o.A,{edit:l,className:"pb-5 ".concat(t.show?"":"opacity-30"),title:"Div Block",block:t,update:i,setBlockUpdate:c,children:[(0,s.jsx)(n.A,{theme:{css:r.options.css}}),l?(0,s.jsxs)("div",{children:[(0,s.jsx)("p",{className:"bg-user-primary-color text-center text-user-primary-text-color",children:"DIV BLOCK - This block will not be visible on your page"}),(0,s.jsx)("p",{className:"bg-user-primary-color text-center text-user-primary-text-color",children:JSON.stringify(d)}),(0,s.jsx)("div",{...d})]}):(0,s.jsx)("div",{...d})]})}},209670:(e,l,t)=>{t.d(l,{default:()=>d});var s=t(249738),a=t(705922),o=t(723370),n=t(927064),i=t(57558),r=t(111239);let c=(0,n.default)(()=>Promise.resolve().then(t.bind(t,373799)),{loadableGenerated:{webpack:()=>[373799]},ssr:!1});function d(e){var l,t,n,d,u,m,p,h,f;let{edit:x,block:v,update:b,style:g,theme:y}=e,[j,w]=a.useState(v);return(0,s.jsx)(i.A,{edit:x,className:j.show?"":"opacity-30",title:"Rich Text Block",block:v,update:b,setBlockUpdate:w,children:(0,s.jsxs)("div",{style:g,className:(0,o.cn)("w-full rounded-user bg-user-primary-color p-3 text-user-primary-text-color",null==(l=r.C4[y.profile.design.shadow])?void 0:l.class,(null==(t=j.style)?void 0:t.custom)&&(null==(n=r.zI[j.style.corner_radius])?void 0:n.class),(null==(d=j.style)?void 0:d.custom)&&(null==(u=r.C4[j.style.shadow])?void 0:u.class),j.name.replaceAll(" ","-"),"block-"
1+v.id),children:[(null==(m=j.style)?void 0:m.custom)&&(0,s.jsx)("style",{children:"\n .rich-text-block-content-".concat(v.id," {\n font-family: ").concat(null==(p=j.style)?void 0:p.font," !important;\n font-size: ").concat((null==(h=r.Bq[j.style.font_size])?void 0:h.icon)+"px"," !important;\n line-height:").concat(null==(f=r.Bq[j.style.font_size])?void 0:f.lineHeight," !important;\n };")}),(0,s.jsx)(c,{value:j.options.content,id:v.id,readOnly:!0,updateContent:j.options.content},v.id)]},v.id)})}},219722:(e,l,t)=>{t.d(l,{D:()=>n});var s=t(234155),a=t(967609),o=t(40968);function n(e){let l=arguments.length>1&&void 0!==arguments[1]&&arguments[1],t=(0,s.jE)(),{data:n=l}=(0,a.I)({queryKey:e,queryFn:()=>{var s;return null!=(s=t.getQueryData(e))?s:l},staleTime:1/0,gcTime:1/0}),{mutate:i}=(0,o.n)({mutationFn:async()=>{var s;let a=!(null!=(s=t.getQueryData(e))?s:l);return t.setQueryData(e,a),a}}),{mutate:r}=(0,o.n)({mutationFn:async l=>(t.setQueryData(e,l),l)});return{isOpen:n,toggleSidebar:i,setOpen:r}}},249174:(e,l,t)=>{t.d(l,{F2:()=>p,JZ:()=>c,j3:()=>m,nD:()=>d,qt:()=>h});var s=t(249738);t(705922);var a=t(723370),o=t(992419),n=t(397263),i=t(33575),r=t(39547);function c(e){let{account:l,className:t,style:o,theme:i}=e;return(0,s.jsx)("div",{className:(0,a.cn)("relative shrink-0",t),id:"profile-picture",children:(0,s.jsx)("img",{src:l.pic,className:(0,a.cn)("shrink-0",t),style:o||{width:"100%",height:"100%",WebkitMask:n.S[(null==i?void 0:i.heading.profile_picture.shape)||"mask-circle"],mask:n.S[(null==i?void 0:i.heading.profile_picture.shape)||"mask-circle"]},alt:l.username})})}function d(e){let{account:l,className:t,theme:n}=e;return(0,s.jsxs)("div",{className:(0,a.cn)("relative flex w-full items-center justify-center gap-2",t),children:[(0,s.jsx)("p",{className:(0,a.cn)("w-fit text-center text-xl font-bold"),style:{color:null==n?void 0:n.profile.colors.heading_text},id:"display-name",children:l.displayname}),(0,s.jsx)("div",{className:"flex items-center",children:(0,s.jsx)(o.A,{user:l,colour:null==n?void 0:n.profile.colors.heading_text})})]})}let u=/([a-zA-Z0-9.-]+\.[a-zA-Z]{2,})(?:\/([\w./-]+))?/g;function m(e){var l,t;let{bio:o="",className:n,theme:i}=e;return(0,s.jsx)("p",{id:"user-bio",className:(0,a.cn)("whitespace-pre-wrap text-center text-lg",n),style:{color:null==i||null==(t=i.profile)||null==(l=t.colors)?void 0:l.heading_text},children:function(e){let l=[],t=0;for(let o of e.matchAll(u)){var a;let n=o[0],i=o[1],r=o[2],c=null!=(a=o.index)?a:0;c>t&&l.push(e.slice(t,c));let d="https://".concat(i).concat(r?"/".concat(r):"");l.push((0,s.jsx)("a",{className:"underline",href:d,target:"_blank",rel:"noopener noreferrer",children:n},"".concat(c,"-").concat(n))),t=c+n.length}return t<e.length&&l.push(e.slice(t)),l}(o)})}function p(e){let{account:l,className:t,theme:a}=e;return(0,s.jsxs)("p",{id:"user-pronouns",className:"flex items-center gap-1 text-lg",style:{color:null==a?void 0:a.profile.colors.heading_text},children:[(0,s.jsx)(i.default,{size:18}),l.settings.pronouns]})}function h(e){let{account:l,className:t,theme:a}=e;return(0,s.jsxs)("p",{id:"user-location",className:"flex items-center gap-1 text-lg",style:{color:null==a?void 0:a.profile.colors.heading_text},children:[(0,s.jsx)(r.default,{size:18}),l.settings.location]})}},295269:(e,l,t)=>{t.d(l,{default:()=>c});var s=t(249738),a=t(705922),o=t(57558),n=t(202884),i=t(347920),r=t(296449);function c(e){let{edit:l,block:t,update:c}=e,[d,u]=a.useState(t);return(0,s.jsx)(o.A,{edit:l,className:t.show?"":"opacity-30",title:"Latest Video - ".concat(d.url),block:t,update:c,setBlockUpdate:u,children:(0,s.jsx)("div",{className:"relative aspect-video w-full min-w-full",children:(0,s.jsx)("div",{className:"w-full min-w-full",children:(0,s.jsxs)("div",{className:"absolute flex w-full min-w-full place-content-center items-center justify-center",children:[(0,s.jsx)(n.A,{nopulse:!0,className:"bg-user-primary-color"}),(0,s.jsxs)("div",{className:"absolute flex flex-col items-center",children:[(0,s.jsx)(i.default,{className:"z-50 rounded-md bg-red-500 p-1 shadow-xl",size:40}),(0,s.jsx)(r.Label,{className:"text-user-primary-text-color",variant:"headingtoggle",children:"(Preview latest video)"})]})]})})})})}},317783:(e,l,t)=>{t.d(l,{default:()=>m});var s=t(249738),a=t(705922),o=t(347920),n=t(296449),i=t(57558),r=t(202884),c=t(111239),d=t(900086),u=t(723370);function m(e){var l,t,m,p,h,f,x,v,b,g,y;let{account:j,edit:w,block:k,update:N,style:_,theme:z}=e,[C,A]=a.useState(k);return(0,s.jsx)(i.A,{edit:w,className:k.show?"":"opacity-30",title:"YouTube - ".concat(C.url),block:k,update:N,setBlockUpdate:A,children:(null==(l=C.options)?void 0:l.hide_offline)?(0,s.jsx)("div",{className:"relative aspect-video w-full min-w-full",children:(0,s.jsx)("div",{className:"w-full min-w-full",children:(0,s.jsxs)("div",{className:"absolute flex w-full min-w-full place-content-center items-center justify-center",children:[(0,s.jsx)(r.A,{nopulse:!0,className:"bg-user-primary-color"}),(0,s.jsxs)("div",{className:"absolute flex flex-col items-center",children:[(0,s.jsx)(o.default,{className:"z-50 rounded-md bg-red-500 p-1 shadow-xl",size:40}),(0,s.jsx)(n.Label,{className:"text-user-primary-text-color",variant:"headingtoggle",children:"(Preview)"})]})]})})}):(0,s.jsx)("div",{className:"w-full",children:(0,s.jsxs)("button",{style:_,id:"block",className:(0,u.cn)("rounded-user bg-user-primary-color text-user-primary-text-color",null==(t=c.C4[z.profile.design.shadow])?void 0:t.class,(null==(m=C.style)?void 0:m.custom)&&(null==(p=c.zI[
1C.style.corner_radius])?void 0:p.class),(null==(h=C.style)?void 0:h.custom)&&(null==(f=c.C4[C.style.shadow])?void 0:f.class),"textsm w-full px-1 py-3 text-xl transition-all duration-150 hover:scale-105",(null==(x=C.style)?void 0:x.custom)&&(null==(v=c.Bq[C.style.font_size])?void 0:v.class),k.name.replaceAll(" ","-"),"block-"+k.id),children:[(0,s.jsx)(d.A,{account_id:j.id,iconName:C.icon,size:(null==(b=C.style)?void 0:b.custom)&&(null==(g=c.Bq[C.style.font_size])?void 0:g.icon)||(null==(y=c.Bq[z.profile.design.font_size])?void 0:y.icon)||26}),(0,s.jsx)("span",{id:"block-text",className:"block w-full px-6 text-center font-bold",children:C.name})]})})})}},323728:(e,l,t)=>{t.d(l,{default:()=>u});var s=t(249738),a=t(705922),o=t(453299),n=t(57558),i=t(900086),r=t(535260),c=t(723370),d=t(111239);function u(e){var l,t,u,m,p,h,f,x,v,b;let{edit:g,account:y,block:j,update:w,style:k,theme:N}=e,[_,z]=a.useState(j),C=Object.fromEntries(Object.entries(_.metadata||{}).filter(e=>{let[l]=e;return l.startsWith("html-data-")}).map(e=>{let[l,t]=e;return["data-metadata-".concat(l.replace("html-data-","")),t]}));return(0,s.jsx)(n.A,{edit:g,className:j.show?"":"opacity-30",title:"Email | "+j.url,block:j,update:w,setBlockUpdate:z,children:(0,s.jsx)("div",{className:"w-full",children:(0,s.jsxs)("button",{style:k,id:"email-block",className:(0,c.cn)("rounded-user bg-user-primary-color text-user-primary-text-color",null==(l=d.C4[N.profile.design.shadow])?void 0:l.class,(null==(t=_.style)?void 0:t.custom)&&(null==(u=d.zI[_.style.corner_radius])?void 0:u.class),(null==(m=_.style)?void 0:m.custom)&&(null==(p=d.C4[_.style.shadow])?void 0:p.class),(null==(h=_.style)?void 0:h.custom)&&(null==(f=d.Bq[_.style.font_size])?void 0:f.class),"w-full px-1 py-3 text-xl transition-all duration-150 hover:scale-105",_.name.replaceAll(" ","-"),"block-"+j.id),onClick:async e=>{try{o.oR.success("".concat(y.displayname,"'s email copied to clipboard")),await navigator.clipboard.writeText(_.url),(0,r.A)(y,e,j)}catch(e){console.error("Failed to copy text: ",e),o.oR.error("Failed to copy to clipboard")}},...C,children:[(0,s.jsx)(i.A,{account_id:y.id,iconName:_.icon,size:(null==(x=_.style)?void 0:x.custom)&&(null==(v=d.Bq[_.style.font_size])?void 0:v.icon)||(null==(b=d.Bq[N.profile.design.font_size])?void 0:b.icon)||26}),(0,s.jsx)("span",{id:"block-text",className:"block w-full px-6 text-center font-bold",children:_.name})]})})})}},325159:(e,l,t)=>{t.d(l,{default:()=>r});var s=t(249738),a=t(723370),o=t(705922),n=t(57558),i=t(111239);function r(e){var l,t,r,d,u,m,p,h;let{edit:f,account:x,block:v,update:b,style:g,theme:y}=e,j={...g,background:g.background,color:g.color},[w,k]=o.useState(v),[N,_]=o.useState([]);o.useEffect(()=>{(async()=>{try{var e;let l=await c(w.options.username,w.options.user_id);_((null==(e=l.wishlist)?void 0:e.items)||[])}catch(e){console.error(e),_([])}})()},[x,w.options.user_id]);let z=(null==(l=w.options)?void 0:l.custom_theme)?null==(t=w.options)?void 0:t.product_background:y.profile.colors.primary,C=(null==(r=w.options)?void 0:r.custom_theme)?null==(d=w.options)?void 0:d.product_text:y.profile.colors.primary_text;return(null==(u=w.options)?void 0:u.custom_theme)&&(j.background=null==(p=w.options)?void 0:p.store_button_background,j.color=null==(h=w.options)?void 0:h.store_button_text),(0,s.jsx)(n.A,{edit:f,className:v.show?"":"opacity-30",title:"Thone Wishlist",block:v,update:b,setBlockUpdate:k,children:(0,s.jsxs)("div",{className:(0,a.cn)("relative flex w-full flex-row flex-wrap gap-2 rounded-user p-2","block-"+v.id),id:"ThoneWishlist",children:[(0,s.jsx)("div",{className:(0,a.cn)("grid w-full grid-cols-1 gap-1",(e=>{switch(e){case 1:return"grid-cols-3 [&>*:first-child]:col-span-3";case 2:return"grid-cols-3 [&>*:first-child]:col-span-2 [&>*:last-child]:col-span-1";case 3:return"grid-cols-3 [&>*:first-child]:col-span-2 [&>*]:col-span-1 [&>*:last-child]:col-span-full";case 4:return"grid-cols-3 [&>*:first-child]:col-span-2 [&>*:nth-child(2)]:col-span-1 [&>*:last-child]:col-span-2";case 5:return"grid-cols-3 [&>*:first-child]:col-span-2 [&>*:nth-child(2)]:col-span-1 [&>*:nth-child(3)]:col-span-1 [&>*:nth-child(4)]:col-span-1 [&>*:last-child]:col-span-1";case 6:return"grid-cols-3 [&>*:first-child]:col-span-2 [&>*:nth-child(2)]:col-span-1 [&>*:nth-child(3)]:col-span-1 [&>*:nth-child(4)]:col-span-2 [&>*:nth-child(5)]:col-span-2 [&>*:last-child]:col-span-1";case 7:return"grid-cols-3 [&>*]:col-span-1 [&>*:first-child]:col-span-2 [&>*:nth-child(7)]:col-span-2";case 8:return"grid-cols-3 [&>*]:col-span-1 [&>*:first-child]:col-span-2 [&>*:nth-child(4)]:col-span-2 [&>*:nth-child(5)]:col-span-2 [&>*:nth-child(8)]:col-span-2";case 9:return"grid-cols-3 [&>*]:col-span-1 [&>*:first-child]:col-span-2 [&>*:nth-child(7)]:col-span-2 [&>*:nth-child(8)]:col-span-2";case 10:return"grid-cols-3 [&>*]:col-span-1 [&>*:first-child]:col-span-2 [&>*:nth-child(7)]:col-span-2 ";default:return"grid-cols-3 [&>*:nth-child(3n+1)]:col-span-1 [&>*:nth-child(3n+2)]:col-span-1 [&>*:nth-child(3n)]:col-span-1"}})(N.length)),children:N.map(e=>(0,s.jsxs)("a",{href:"".concat(e.link,"?utm_source=doras-profile&utm_medium=profile-click"),target:"_blank",className:(0,a.cn)("relative flex scale-95 flex-col items-center gap-0 rounded-user transition-transform duration-300 hover:scale-100"),children:[(0,s.jsx)("img",{src:e.imgLink,alt:e.name,className:(0,a.cn)("h-64 w-full overflow-hidden rounded-user object-cover")}),(0,s.jsx)("div",{className:(0,a.cn)("absolute inset-x-0 bottom-0 flex w-full flex-col items-start gap-2 rounded-user px-1","rounded-t-none"),style:{background:z,color:C},children:(0,s.jsx)("h3",{className:"w-full truncate text-ellipsis text-lg font-semibold",children:e.name})})]},e.id))}),(0,s.jsx)("a",{className:"w-full",href:"https://throne.com/"+w.options.username,target:"_blank",children:(0,s.jsx)("button",{id:"store-button",className:(0,a.cn)("rounded-user bg-user-primary-color text-user-primary-text-color",null==(m
1=i.C4[y.profile.design.shadow])?void 0:m.class,"w-full px-1 py-3 text-xl transition-all duration-150 hover:scale-105",w.name.replaceAll(" ","-"),"block-"+v.id+"-store-button"),style:j,children:(0,s.jsx)("span",{id:"block-text",className:"block w-full px-6 text-center font-bold",children:"See More"})})})]},v.id)})}async function c(e,l){let t=await fetch("https://us-central1-onlywish-9d17b.cloudfunctions.net/api-extensionv2/v1/twitch/wishlist/"+l,{method:"GET",headers:{"Content-Type":"application/json"}}).then(async e=>await e.json()),s=t.items.map(l=>(l.link="https://throne.com/".concat(e,"/item/").concat(l.id),l));return{wishlist:{collections:t.collections,featuredItem:t.featuredItem&&{...t.featuredItem,link:"https://throne.com/".concat(e,"/item/").concat(t.featuredItem.id)},items:s}}}},330935:(e,l,t)=>{t.d(l,{default:()=>i});var s=t(249738),a=t(705922),o=t(57558),n=t(723370);function i(e){var l,t;let{edit:i,block:r,update:c}=e,[d,u]=a.useState(r);return(0,s.jsx)(o.A,{edit:i,className:"pb-5 ".concat(r.show?"":"opacity-30"),title:"Divider",block:r,update:c,setBlockUpdate:u,children:(0,s.jsx)("div",{className:(0,n.cn)("mb-2 mt-1 w-full border-b-2 ".concat(i&&"pt-5"),"block-"+r.id),id:"divider",style:{borderColor:(null==(l=d.style)?void 0:l.custom)?null==(t=d.style)?void 0:t.colors.primary:"white"}})})}},344366:(e,l,t)=>{t.d(l,{default:()=>u});var s=t(249738),a=t(705922),o=t(57558),n=t(870042),i=t(72509),r=t(535260),c=t(723370),d=t(111239);function u(e){var l,t,u,m;let{edit:p,account:h,block:f,update:x,theme:v}=e,[b,g]=a.useState(f),[y,j]=a.useState(null),[w,k]=a.useState(null),[N,_]=a.useState(!0);return a.useEffect(()=>{!async function(){var e,l;if(null==(e=b.options)?void 0:e.post_id){let e=await fetch("/api/account/".concat(h.id,"/post/").concat(null==(l=b.options)?void 0:l.post_id)),t=await e.json();t.data&&(k(t.data.post),j(t.data.blog),_(!1))}}()},[null==(l=b.options)?void 0:l.post_id,h.id]),(0,s.jsx)(o.A,{edit:p,className:f.show?"":"opacity-30",title:"Blog Post Single",block:f,update:x,setBlockUpdate:g,children:(0,s.jsxs)("div",{className:(0,c.cn)("relative flex w-full flex-row flex-wrap gap-2 p-2",null==(t=d.zI[v.profile.design.corner_radius])?void 0:t.class,null==(u=d.C4[v.profile.design.shadow])?void 0:u.class,"block-"+f.id),id:"BlogPostSingle",onClick:e=>{(0,r.A)(h,e,f)},onAuxClick:e=>{(0,r.A)(h,e,f)},children:[N&&(0,s.jsx)(n.B,{account:h}),!N&&y&&w&&(0,s.jsx)(i.default,{blog:y,assets:[],post:{...w,category_name:(null==(m=y.categories.find(e=>e.id==w.category))?void 0:m.name)||""},account:h,accountTheme:{...h.theme,text_col_button:v.profile.colors.primary_text,button:v.profile.colors.primary},v2Theme:v.profile})]},f.id)})}},348128:(e,l,t)=>{t.d(l,{A:()=>s});let s=[{id:"1",created_at:"2024-01-06T04:25:52.279473+00:00",find:"onlyfans.com",content_warning:!0,reason:""},{id:"2",created_at:"2024-01-06T04:31:13.05378+00:00",find:"fansly.com",content_warning:!0,reason:""},{id:"3",created_at:"2024-10-28T11:43:25.970641+00:00",find:"chaturbate.com",content_warning:!0,reason:""}]},457578:(e,l,t)=>{t.d(l,{default:()=>p});var s=t(249738),a=t(723370),o=t(705922),n=t(491128),i=t(84782),r=t(57558),c=t(900086),d=t(718760),u=t(535260),m=t(111239);function p(e){var l,t,p,h,f,x,v,b,g,y,j;let{edit:w,account:k,block:N,update:_,style:z,theme:C}
1=e,[A,S]=o.useState(N),[B,I]=o.useState(null);return o.useEffect(()=>{(async()=>{try{var e;let l=await fetch("/api/account/".concat(k.id,"/form/").concat(null==(e=A.options)?void 0:e.form_id),{cache:"no-store"}),t=await l.json();I(t.form)}catch(e){console.error(e),I(null)}})()},[k,null==(l=A.options)?void 0:l.form_id]),(0,s.jsx)(r.A,{edit:w,className:N.show?"":"opacity-30",title:"Form",block:N,update:_,setBlockUpdate:S,children:(0,s.jsx)("div",{className:"w-full",id:"Form",children:B?(0,s.jsxs)(i.Sheet,{children:[(0,s.jsx)(i.SheetTrigger,{asChild:!0,children:(0,s.jsxs)("button",{style:z,id:"block",className:(0,a.cn)("rounded-user bg-user-primary-color text-user-primary-text-color",null==(t=m.C4[C.profile.design.shadow])?void 0:t.class,(null==(p=A.style)?void 0:p.custom)&&(null==(h=m.zI[A.style.corner_radius])?void 0:h.class),(null==(f=A.style)?void 0:f.custom)&&(null==(x=m.C4[A.style.shadow])?void 0:x.class),(null==(v=A.style)?void 0:v.custom)&&(null==(b=m.Bq[A.style.font_size])?void 0:b.class),"w-full px-1 py-3 text-xl transition-all duration-150 hover:scale-105",A.name.replaceAll(" ","-"),"block-"+N.id),onClick:e=>{(0,u.A)(k,e,N)},children:[(0,s.jsx)(c.A,{account_id:k.id,iconName:A.icon,size:(null==(g=A.style)?void 0:g.custom)&&(null==(y=m.Bq[A.style.font_size])?void 0:y.icon)||(null==(j=m.Bq[C.profile.design.font_size])?void 0:j.icon)||26}),(0,s.jsx)("span",{id:"block-text",className:"block w-full px-6 text-center font-bold",children:A.name.length>0?A.name:B.name})]})}),(0,s.jsxs)(i.SheetContent,{className:"w-full max-w-full p-0 md:w-1/2 md:max-w-full md:border-l md:border-form-primary-color",onOpenAutoFocus:e=>e.preventDefault(),children:[(0,s.jsx)(i.SheetHeader,{className:"sr-only",children:(0,s.jsx)(i.SheetTitle,{className:"sr-only"})}),(0,s.jsx)("div",{className:"h-full overflow-auto p-3",children:(0,s.jsx)(d.default,{account:k,form:B})})]})]}):(0,s.jsx)(n.E,{className:"h-10 w-full rounded-md bg-user-primary-color"})},N.id)})}},475118:(e,l,t)=>{t.d(l,{A:()=>u});var s=t(249738),a=t(723370);let o=/#profile-background[^{]+\s*{(?:[^{}]*{[^{}]*})*[^{}]*}/g,n=/#user-navigation\b[^{]+\s*{(?:[^{}]*{[^{}]*})*[^{}]*}/g,i=/#root-profile[^{]*\{(?:[^{}]*\{[^{}]*\}[^{}]*|[^{}]*)*\}/g,r=/@keyframes\s+[^{]+\s*{(?:[^{}]*{[^{}]*})*[^{}]*}/g,c=/@import\s+url\((['"]?)([^'")]+)\1\)\s*;?/gi,d=["fonts.googleapis.com","fonts.bunny.net","use.typekit.net"];function u(e){var l,t,u,m,p,h;let{theme:f,preview:x}=e;if(!(null==f||null==(l=f.css)?void 0:l.trim()))return null;let{css:v}=f,b=(null==(t=v.match(o))?void 0:t.join(""))||"",g=(null==(u=v.match(r))?void 0:u.join(""))||"",y=(null==(m=v.match(n))?void 0:m.join(""))||"",j=(null==(p=v.match(c))?void 0:p.filter(e=>{let l=e.match(/\((['"]?)([^'")]+)\1\)/i);if(!l)return!1;let t=l[2].trim().toLowerCase();return!(t.startsWith("javascript:")||t.startsWith("data:"))&&!!(d.some(e=>t.includes(e))||/^\/fonts?\//i.test(t)||/\.(woff2?|ttf|otf|css)(\?|$)/i.test(t))}).join(""))||"",w=x?"#root-profile-".concat(f.id):"#root-profile",k=x?"#profile-background-".concat(f.id):"#profile-background",N=x?"#user-navigation-".concat(f.id):"#user-navigation";x&&(b=b.replace(/#profile-background\b/g,k),y=y.replace(/#user-navigation\b/g,N));let _=(null==(h=v.match(i))?void 0:h.map(e=>x?e.replace(/#root-profile\b/g,w):e))||[],z=v.replace(r,"").replace(o,"").replace(i,"").replace(c,"").replace(n,""),C=_.join("\n")+"\n".concat(w," { ").concat((0,a.hI)(z)," }"),A=e=>e.trim()?(0,s.jsx)("style",{dangerouslySetInnerHTML:{__html:e}}):null;return(0,s.jsxs)(s.Fragment,{children:[A(g),A(j),A((0,a.hI)(b)),A((0,a.hI)(y)),A(C)]})}},516431:(e,l,t)=>{t.d(l,{default:()=>u});var s=t(249738),a=t(705922),o=t(57558),n=t(870042),i=t(72509),r=t(535260),c=t(723370),d=t(111239);function u(e){var l,t,u,m;let{edit:p,account:h,block:f,update:x,theme:v}=e,[b,g]=a.useState(f),[y,j]=a.useState(null),[w,k]=a.useState(null),[N,_]=a.useState(!0);return a.useEffect(()=>{!async function(){var e,l;let t=await fetch("/api/account/".concat(h.id,"/latest-post").concat((null==(e=b.options)?void 0:e.limit)?"?limit=".concat(null==(l=b.options)?void 0:l.limit):"")),s=await t.json();s.data&&(k(s.data.posts),j(s.data.blog),_(!1))}()},[null==(l=b.options)?void 0:l.limit,h.id]),(0,s.jsx)(o.A,{edit:p,className:f.show?"":"opacity-30",title:"Blog Post Latest",block:f,update:x,setBlockUpdate:g,children:(0,s.jsxs)("div",{className:(0,
1c.cn)("relative flex w-full flex-row flex-wrap gap-2 p-2",null==(t=d.zI[v.profile.design.corner_radius])?void 0:t.class,null==(u=d.C4[v.profile.design.shadow])?void 0:u.class,"block-"+f.id),id:"BlogPostLatest",onClick:e=>{(0,r.A)(h,e,f)},onAuxClick:e=>{(0,r.A)(h,e,f)},children:[(0,s.jsx)("p",{className:"text-lg font-bold text-user-primary-text-color",children:null==b||null==(m=b.options)?void 0:m.name}),N&&(0,s.jsx)(n.B,{account:h}),!N&&y&&w&&w.map((e,l)=>{var t;return(0,s.jsx)(i.default,{blog:y,assets:[],post:{...e,category_name:(null==(t=y.categories.find(l=>l.id==e.category))?void 0:t.name)||""},account:h,accountTheme:{...h.theme,text_col_button:v.profile.colors.primary_text,button:v.profile.colors.primary},v2Theme:v.profile},l)})]},f.id)})}},516480:(e,l,t)=>{t.d(l,{default:()=>r});var s=t(249738),a=t(705922),o=t(723370),n=t(57558),i=t(111239);function r(e){var l,t,r,c,d,u,m,p,h;let{edit:f,block:x,update:v,style:b,theme:g}=e,[y,j]=a.useState(x);return(0,s.jsx)(n.A,{edit:f,className:y.show?"":"opacity-30",title:"TextBlock | "+(null==(l=y.options)?void 0:l.content),block:x,update:v,setBlockUpdate:j,
1children:(0,s.jsx)("p",{style:b,id:"textblock",className:(0,o.cn)("rounded-user bg-user-primary-color text-user-primary-text-color",null==(t=i.C4[g.profile.design.shadow])?void 0:t.class,(null==(r=y.style)?void 0:r.custom)&&(null==(c=i.zI[y.style.corner_radius])?void 0:c.class),(null==(d=y.style)?void 0:d.custom)&&(null==(u=i.C4[y.style.shadow])?void 0:u.class),(null==(m=y.style)?void 0:m.custom)&&(null==(p=i.Bq[y.style.font_size])?void 0:p.class),"w-full select-none overflow-hidden text-ellipsis whitespace-pre-wrap text-wrap px-1 py-3 text-center text-xl font-bold shadow-md transition-all duration-150",y.name.replaceAll(" ","-"),"block-"+x.id),children:(null==(h=y.options)?void 0:h.content)||y.message})})}},518231:(e,l,t)=>{t.d(l,{default:()=>c});var s=t(249738),a=t(705922),o=t(57558),n=t(535260),i=t(723370),r=t(111239);function c(e){var l,t,c,d,u,m,p,h,f,x,v,b,g,y,j,w,k,N,_,z,C,A;let{edit:S,account:B,block:I,update:q,assets:T,theme:F}=e,[E,L]=a.useState(I),D="w-full";(null==(l=E.options)?void 0:l.size)==20&&(D="w-1/6"),(null==(t=E.options)?void 0:t.size)==40&&(D="w-2/6"),(null==(c=E.options)?void 0:c.size)==60&&(D="w-4/6"),(null==(d=E.options)?void 0:d.size)==80&&(D="w-5/6"),(null==(u=E.options)?void 0:u.size)==100&&(D="w-full");let U="string"==typeof E.url?null==(m=E.url.split("/").pop())?void 0:m.split(".")[0]:null,O=null==(p=T.find(e=>{var l;return(null==(l=e.url.split("/").pop())?void 0:l.split(".")[0])==U}))?void 0:p.title;return(null==(f=E.options)||null==(h=f.link)?void 0:h.length)!=0?(0,s.jsx)(o.A,{edit:S,className:I.show?"":"opacity-30",title:"Image - ".concat(O),block:I,update:q,setBlockUpdate:L,children:(0,s.jsx)("a",{target:"_blank",href:null==(w=E.options)?void 0:w.link,className:(0,i.cn)("w-full","block-"+I.id),onClick:e=>{(0,n.A)(B,e,I)},onAuxClick:e=>{(0,n.A)(B,e,I)},children:(0,s.jsx)("img",{id:"uploaded-image",src:E.url,className:(0,i.cn)("mx-auto rounded-xl ".concat(D),null==(k=r.zI[F.profile.design.corner_radius])?void 0:k.class,null==(N=r.C4[F.profile.design.shadow])?void 0:N.class,(null==(_=E.style)?void 0:_.custom)&&(null==(z=r.zI[E.style.corner_radius])?void 0:z.class),(null==(C=E.style)?void 0:C.custom)&&(null==(A=r.C4[E.style.shadow])?void 0:A.class)),alt:E.name})})}):(0,s.jsx)(o.A,{edit:S,className:I.show?"":"opacity-30",title:"Image - ".concat(O),block:I,update:q,setBlockUpdate:L,children:(0,s.jsx)("img",{id:"uploaded-image",src:E.url,className:(0,i.cn)("mx-auto rounded-xl ".concat(D),null==(x=r.zI[F.profile.design.corner_radius])?void 0:x.class,null==(v=r.C4[F.profile.design.shadow])?void 0:v.class,(null==(b=E.style)?void 0:b.custom)&&(null==(g=r.zI[E.style.corner_radius])?void 0:g.class),(null==(y=E.style)?void 0:y.custom)&&(null==(j=r.C4[E.style.shadow])?void 0:j.class),"block-"+I.id),alt:E.name})})}},530508:(e,l,t)=>{t.d(l,{h:()=>a});var s=t(666075);function a(){let e=(0,s._)("settingsSidebarView","root"),l=(0,s._)("settingsSidebarSelectedBlock",null),t=(0,s._)("settingsSidebarThemeSection",null);return{...e,selectedBlock:l,themeSection:t}}},535260:(e,l,t)=>{t.d(l,{A:()=>s});let s=(e,l,t,s)=>{(0!=l.button||s)&&(1!=l.button||s)||fetch("/api/user/click",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({account_id:e.id,block_id:t.id})})}},560095:(e,l,t)=>{t.d(l,{default:()=>v});var s=t(249738),a=t(705922),o=t(823308),n=t(723370),i=t(60448),r=t(792990),c=t(570491),d=t(217406),u=t(174186),m=t(242573),p=t(57558),h=t(870042),f=t(274484),x=t(111239);function v(e){var l,t,v,b,g,y,j,w,k,N,_,z,C,A,S,B,I,q;let{edit:T,account:F,block:E,update:L,theme:D}=e,[U,O]=a.useState(E),[P,W]=a.useState(null),[M,R]=a.useState(null),[V,H]=a.useState((null==P?void 0:P.categories)||[]),[G,K]=a.useState(""),[Y,J]=a.useState([]),[Z,Q]=a.useState(1),[$,X]=a.useState(!0);async function ee(){var e,l;if((null==U||null==(e=U.options)?void 0:e.category)&&(null==U||null==(l=U.options)?void 0:l.category)!=="all"){let e=await fetch("/api/account/".concat(F.id,"/blog?page=1&limit=").concat(5).concat('&categories=["'.concat(U.options.category,'"]'))),l=await e.json();l.data&&(R(l.data),W(l.data.blog),H(l.data.blog.categories),X(!1))}else{let e=await fetch("/api/account/".concat(F.id,"/blog?page=1&limit=").concat(5).concat(Y&&(null==Y?void 0:Y.length)>0?"&categories=[".concat(Y,"]"):"")),l=await e.json();l.data&&(R(l.data),W(l.data.blog),H(l.data.blog.categories),X(!1))}}return a.useEffect(()=>{ee()},[U]),a.useEffect(()=>{ee(),Q(1)},[Y]),(0,s.jsx)(p.A,{edit:T,className:E.show?"":"opacity-30",title:"Blog Post All",block:E,update:L,setBlockUpdate:O,children:(0,s.jsxs)("div",{className:(0,n.cn)("relative flex w-full flex-row flex-wrap gap-2 p-2",null==(l=x.zI[D.profile.design.corner_radius])?void 0:l.class,null==(t=x.C4[D.profile.design.shadow])?void 0:t.class,"block-"
1+E.id),id:"BlogPostSingle",children:[$&&(0,s.jsx)(h.r,{account:F}),P&&M&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"line-clamp-1 flex w-full items-center justify-between gap-2 pb-2",children:[(0,s.jsx)("p",{className:"text-lg font-bold text-user-primary-text-color",children:U.name}),(0,s.jsxs)(o.AM,{children:[(0,s.jsx)(o.Wv,{asChild:!0,children:(0,s.jsx)("button",{hidden:(null==U||null==(v=U.options)?void 0:v.category)!=="all"&&(null==U||null==(b=U.options)?void 0:b.category)!==void 0&&(null==U||null==(g=U.options)?void 0:g.category)!==null,id:"block",className:(0,n.cn)("relative w-fit p-1 text-xl transition-all duration-150 hover:scale-105",null==(y=x.C4[D.profile.design.shadow])?void 0:y.class,null==(j=x.zI[D.profile.design.corner_radius])?void 0:j.class),style:{backgroundColor:D.profile.colors.primary,color:D.profile.colors.primary_text},children:(0,s.jsx)(i.default,{})})}),(0,s.jsx)(o.hl,{className:(0,n.cn)("max-h-64 w-full max-w-full overflow-auto bg-user-secondary-color p-2",null==(w=x.C4[D.profile.design.shadow])?void 0:w.class,null==(k=x.zI[D.profile.design.corner_radius])?void 0:k.class),children:(0,s.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,s.jsxs)("div",{className:(0,n.cn)("group flex items-center gap-2 border border-transparent p-1 transition-all duration-300 hover:border-user-primary-color",null==(N=x.C4[D.profile.design.shadow])?void 0:N.class,null==(_=x.zI[D.profile.design.corner_radius])?void 0:_.class),children:[(0,s.jsx)(c.p,{variant:"card",placeholder:"Search categories...",value:G,className:(0,n.cn)("border-0 !bg-transparent text-user-primary-text-color placeholder:text-opacity-50 focus-visible:border-0",null==(z=x.C4[D.profile.design.shadow])?void 0:z.class,null==(C=x.zI[D.profile.design.corner_radius])?void 0:C.class),style:{color:D.profile.colors.secondary_text},onChange:e=>{K(e.target.value),H(P.categories.filter(l=>l.name.toLowerCase().includes(e.target.value.toLowerCase())))}}),(0,s.jsx)(m.$,{className:(0,n.cn)("bg-transparent hover:bg-user-primary-color",null==(A=x.C4[D.profile.design.shadow])?void 0:A.class,null==(S=x.zI[D.profile.design.corner_radius])?void 0:S.class),children:(0,s.jsx)(r.default,{})})]}),(0,s.jsx)(u.Separator,{className:"opacity-50",style:{background:D.profile.colors.primary}}),V.map(e=>(0,s.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,s.jsx)(d.S,{className:"border-user-primary-color data-[state=checked]:border-user-primary-color data-[state=checked]:bg-user-primary-color",style:{color:D.profile.colors.primary_text},id:"category-"+e.id,onCheckedChange:l=>{l?J(l=>[...l,'"'.concat(e.id,'"')]):J(l=>l.filter(l=>l!=='"'.concat(e.id,'"')))},checked:Y.includes('"'.concat(e.id,'"'))}),(0,s.jsx)("label",{htmlFor:"category-"+e.id,className:"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",style:{color:D.profile.colors.primary_text},children:e.name})]},e.id))]})})]})]}),(0,s.jsx)(f.default,{account:F,blog:P,posts:M.posts||[],itemsPerPage:5,totalItems:M.totalPosts||0,categories:(null==(B=U.options)?void 0:B.category)&&(null==(I=U.options)?void 0:I.category)!=="all"&&['"'.concat(null==(q=U.options)?void 0:q.category,'"')]||Y,pageNumber:Z,accountTheme:{...F.theme,text_col_button:D.profile.colors.primary_text,button:D.profile.colors.primary},v2Theme:D.profile})]})]},E.id)})}},566640:(e,l,t)=>{t.d(l,{default:()=>r});var s=t(249738),a=t(723370),o=t(705922),n=t(57558),i=t(111239);function r(e){var l,t,r,c,d,u,m,p,h,f,x;let{edit:v,account:b,block:g,update:y,style:j,theme:w}=e,k={...j,background:j.background,color:j.color},[N,_]=o.useState(g),[z,C]=o.useState({uniqueItems:[]});o.useEffect(()=>{(async()=>{try{var e,l;let t=null==(l=N.options)||null==(e=l.items)?void 0:e.map(e=>e.id).join(","),s=await fetch("".concat("https://api.doras.to","/fourthwall/").concat(N.url.replaceAll("https://",""),"/unique-items?items=").concat(t),{cache:"no-store"}),a=await s.json();a.error?C({uniqueItems:[]}):C(a)}catch(e){console.error(e),C({uniqueItems:[]})}})()},[b,null==(l=N.options)?void 0:l.itemsm,N.url]);let A=(null==z?void 0:z.uniqueItems)||[],S=null==(r=N.options)||null==(t=r.items)?void 0:t.map(e=>{let l=A.find(l=>l.id===e.id);return l?{...l,sort:e.sort}:null}
1).filter(Boolean),B=(null==(c=N.options)?void 0:c.custom_theme)?null==(d=N.options)?void 0:d.product_background:w.profile.colors.primary,I=(null==(u=N.options)?void 0:u.custom_theme)?null==(m=N.options)?void 0:m.product_text:w.profile.colors.primary_text;return(null==(p=N.options)?void 0:p.custom_theme)&&(k.background=null==(f=N.options)?void 0:f.store_button_background,k.color=null==(x=N.options)?void 0:x.store_button_text),(0,s.jsx)(n.A,{edit:v,className:g.show?"":"opacity-30",title:"Fourthwall Products",block:g,update:y,setBlockUpdate:_,children:(0,s.jsxs)("div",{className:(0,a.cn)("relative flex w-full flex-row flex-wrap gap-2 rounded-user p-2","block-"+g.id),id:"FourthwallProducts",children:[(0,s.jsx)("div",{className:(0,a.cn)("grid w-full grid-cols-1 gap-1",(e=>{switch(e){case 1:return"grid-cols-3 [&>*:first-child]:col-span-3";case 2:return"grid-cols-3 [&>*:first-child]:col-span-2 [&>*:last-child]:col-span-1";case 3:return"grid-cols-3 [&>*:first-child]:col-span-2 [&>*]:col-span-1 [&>*:last-child]:col-span-full";case 4:return"grid-cols-3 [&>*:first-child]:col-span-2 [&>*:nth-child(2)]:col-span-1 [&>*:last-child]:col-span-2";case 5:return"grid-cols-3 [&>*:first-child]:col-span-2 [&>*:nth-child(2)]:col-span-1 [&>*:nth-child(3)]:col-span-1 [&>*:nth-child(4)]:col-span-1 [&>*:last-child]:col-span-1";case 6:return"grid-cols-3 [&>*:first-child]:col-span-2 [&>*:nth-child(2)]:col-span-1 [&>*:nth-child(3)]:col-span-1 [&>*:nth-child(4)]:col-span-2 [&>*:nth-child(5)]:col-span-2 [&>*:last-child]:col-span-1";case 7:return"grid-cols-3 [&>*]:col-span-1 [&>*:first-child]:col-span-2 [&>*:nth-child(7)]:col-span-2";case 8:return"grid-cols-3 [&>*]:col-span-1 [&>*:first-child]:col-span-2 [&>*:nth-child(4)]:col-span-2 [&>*:nth-child(5)]:col-span-2 [&>*:nth-child(8)]:col-span-2";case 9:return"grid-cols-3 [&>*]:col-span-1 [&>*:first-child]:col-span-2 [&>*:nth-child(7)]:col-span-2 [&>*:nth-child(8)]:col-span-2";case 10:return"grid-cols-3 [&>*]:col-span-1 [&>*:first-child]:col-span-2 [&>*:nth-child(7)]:col-span-2 ";default:return"grid-cols-3 [&>*:nth-child(3n+1)]:col-span-1 [&>*:nth-child(3n+2)]:col-span-1 [&>*:nth-child(3n)]:col-span-1"}})(S.length)),children:S.map(e=>(0,s.jsxs)("a",{href:"".concat(e.link,"?utm_source=doras-profile&utm_medium=profile-click"),target:"_blank",className:(0,a.cn)("relative flex scale-95 flex-col items-center gap-0 rounded-user transition-transform duration-300 hover:scale-100"),children:[(0,s.jsx)("img",{src:e.image,alt:e.title,className:(0,a.cn)("h-64 w-full overflow-hidden rounded-user object-cover")}),(0,s.jsxs)("div",{className:(0,a.cn)("absolute inset-x-0 bottom-0 flex w-full flex-col items-start gap-2 rounded-user px-1","rounded-t-none"),style:{background:B,color:I},children:[(0,s.jsx)("h3",{className:"w-full truncate text-ellipsis text-lg font-semibold",children:e.title}),(0,s.jsx)("p",{className:"text-sm",style:{color:I},children:e.price})]})]},e.id))}),(0,s.jsx)("a",{className:"w-full",href:N.url,target:"_blank",children:(0,s.jsx)("button",{id:"store-button",className:(0,a.cn)("rounded-user bg-user-primary-color text-user-primary-text-color",null==(h=i.C4[w.profile.design.shadow])?void 0:h.class,"w-full px-1 py-3 text-xl transition-all duration-150 hover:scale-105",N.name.replaceAll(" ","-")),style:k,children:(0,s.jsx)("span",{id:"block-text",className:"block w-full px-6 text-center font-bold",children:"See More"})})})]},g.id)})}},609605:(e,l,t)=>{t.d(l,{default:()=>m});var s=t(249738),a=t(705922),o=t(838830),n=t(296449),i=t(57558),r=t(202884),c=t(723370),d=t(111239),u=t(900086);function m(e){var l,t,m,p,h,f,x,v,b,g,y;let{account:j,edit:w,block:k,update:N,style:_,theme:z}=e,[C,A]=a.useState(k);return(0,s.jsx)(i.A,{edit:w,className:k.show?"":"opacity-30",title:"Twitch - ".concat(C.url),block:k,update:N,setBlockUpdate:A,children:(null==(l=C.options)?void 0:l.hide_offline)?(0,s.jsx)("div",{className:"relative aspect-video w-full min-w-full",children:(0,s.jsx)("div",{className:"w-full min-w-full",children:(0,s.jsxs)("div",{className:"absolute flex w-full min-w-full place-content-center items-center justify-center",children:[(0,s.jsx)(r.A,{nopulse:!0,className:"bg-user-primary-color"}),(0,s.jsxs)("div",{className:"absolute flex flex-col items-center",children:[(0,s.jsx)(o.default,{className:"z-50 rounded-md bg-purple-500 p-1 shadow-xl",size:40}),(0,s.jsx)(n.Label,{className:"text-user-primary-text-color",variant:"headingtoggle",children:"(Preview)"})]})]})})}):(0,s.jsx)("div",{className:"w-full",children:(0,s.jsxs)("button",{style:_,id:"block",className:(0,
1c.cn)("rounded-user bg-user-primary-color text-user-primary-text-color",null==(t=d.C4[z.profile.design.shadow])?void 0:t.class,(null==(m=C.style)?void 0:m.custom)&&(null==(p=d.zI[C.style.corner_radius])?void 0:p.class),(null==(h=C.style)?void 0:h.custom)&&(null==(f=d.C4[C.style.shadow])?void 0:f.class),"textsm w-full px-1 py-3 text-xl transition-all duration-150 hover:scale-105",(null==(x=C.style)?void 0:x.custom)&&(null==(v=d.Bq[C.style.font_size])?void 0:v.class),k.name.replaceAll(" ","-"),"block-"+k.id),children:[(0,s.jsx)(u.A,{account_id:j.id,iconName:C.icon,size:(null==(b=C.style)?void 0:b.custom)&&(null==(g=d.Bq[C.style.font_size])?void 0:g.icon)||(null==(y=d.Bq[z.profile.design.font_size])?void 0:y.icon)||26}),(0,s.jsx)("span",{id:"block-text",className:"block w-full px-6 text-center font-bold",children:C.name})]})})})}},647892:(e,l,t)=>{t.r(l),t.d(l,{default:()=>v});var s=t(249738),a=t(242573),o=t(705922),n=t(356566),i=t.n(n),r=t(57558),c=t(723370),d=t(174186),u=t(781621),m=t(296449),p=t(900086),h=t(348128),f=t(535260),x=t(111239);function v(e){var l,t,n,v,b,g,y,j,w,k,N,_,z,C,A,S,B,I,q,T;let{edit:F,account:E,block:L,update:D,style:U,theme:O}=e,[P,W]=o.useState(L),M=null===h.A||void 0===h.A?void 0:h.A.find(e=>{var l;return null==(l=P.url)?void 0:l.includes(e.find)}),R=Object.fromEntries(Object.entries(P.metadata||{}).filter(e=>{let[l]=e;return l.startsWith("html-data-")}).map(e=>{let[l,t]=e;return["data-metadata-".concat(l.replace("html-data-","")),t]}));return(0,s.jsx)(r.A,{edit:F,className:L.show?"":"opacity-30",title:"Link | "+L.url,block:L,update:D,setBlockUpdate:W,children:P.adult||M?(0,s.jsxs)(u.lG,{children:[(0,s.jsx)(u.zM,{asChild:!0,children:(0,s.jsx)("div",{className:"w-full",children:(0,s.jsxs)("button",{style:U,id:"block",className:(0,c.cn)("rounded-user bg-user-primary-color text-user-primary-text-color",null==(l=x.C4[O.profile.design.shadow])?void 0:l.class,(null==(t=P.style)?void 0:t.custom)&&(null==(n=x.zI[P.style.corner_radius])?void 0:n.class),(null==(v=P.style)?void 0:v.custom)&&(null==(b=x.C4[P.style.shadow])?void 0:b.class),(null==(g=P.style)?void 0:g.custom)&&(null==(y=x.Bq[P.style.font_size])?void 0:y.class),"w-full px-1 py-3 text-xl transition-all duration-150 hover:scale-105",L.name.replaceAll(" ","-"),"block-"+L.id),...R,children:[(0,s.jsx)(p.A,{account_id:E.id,iconName:P.icon,size:(null==(j=P.style)?void 0:j.custom)&&(null==(w=x.Bq[P.style.font_size])?void 0:w.icon)||(null==(k=x.Bq[O.profile.design.font_size])?void 0:k.icon)||26}),(0,s.jsx)("span",{id:"block-text",className:"block w-full px-6 text-center font-bold",children:P.name})]})})}),(0,s.jsxs)(u.Cf,{className:"sm:h-fit",children:[(0,s.jsxs)(u.c7,{children:[(0,s.jsx)(u.L3,{children:"NSFW or mature content ahead"}),(0,s.jsx)(u.rr,{children:"Where you're about to go has been flagged as mature or NSFW"})]}),(0,s.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,s.jsx)("p",{className:"w-full rounded-md bg-accent p-1 text-center text-sm text-foreground/80",children:P.url.replace("https://","")}),(0,s.jsx)(d.Separator,{}),(0,s.jsx)(m.Label,{variant:"toggle",children:"Would you like to continue?"}),(0,s.jsxs)("div",{className:"flex w-full items-center gap-2",children:[(0,s.jsx)(i(),{href:P.url,target:"_blank",prefetch:!1,onClick:e=>{(0,f.A)(E,e,L,F)},onAuxClick:e=>{(0,f.A)(E,e,L,F)},children:(0,s.jsx)(a.$,{children:"Proceed"})}),(0,s.jsx)(u.HM,{asChild:!0,children:(0,s.jsx)(a.$,{variant:"outline",children:"Go back"})})]})]})]})]}):(0,s.jsx)(i(),{className:"w-full",href:P.url,target:"_blank",prefetch:!1,onClick:e=>{(0,f.A)(E,e,L,F)},onAuxClick:e=>{(0,f.A)(E,e,L,F)},children:(0,s.jsxs)("button",{style:U,id:"block",className:(0,c.cn)("rounded-user bg-user-primary-color text-user-primary-text-color",null==(N=x.C4[O.profile.design.shadow])?void 0:N.class,(null==(_=P.style)?void 0:_.custom)&&(null==(z=x.zI[P.style.corner_radius])?void 0:z.class),(null==(C=P.style)?void 0:C.custom)&&(null==(A=x.C4[P.style.shadow])?void 0:A.class),"textsm w-full px-1 py-3 text-xl transition-all duration-150 hover:scale-105",(null==(S=P.style)?void 0:S.custom)&&(null==(B=x.Bq[P.style.font_size])?void 0:B.class),L.name.replaceAll(" ","-"),"block-"
1+L.id),...R,children:[(0,s.jsx)(p.A,{account_id:E.id,iconName:P.icon,size:(null==(I=P.style)?void 0:I.custom)&&(null==(q=x.Bq[P.style.font_size])?void 0:q.icon)||(null==(T=x.Bq[O.profile.design.font_size])?void 0:T.icon)||26}),(0,s.jsx)("span",{id:"block-text",className:"block w-full px-6 text-center font-bold",children:P.name})]})})})}},666075:(e,l,t)=>{t.d(l,{G:()=>c,_:()=>n});var s=t(234155),a=t(967609),o=t(40968);function n(e,l){let t=(0,s.jE)(),n=[e],{data:i=l}=(0,a.I)({queryKey:n,queryFn:()=>{let e=t.getQueryData(n);return null!=e?e:l},staleTime:1/0,gcTime:1/0}),{mutate:r}=(0,o.n)({mutationFn:async e=>{t.setQueryData(n,e)},onError:e=>{console.error("Failed to set state:",e)}});return{value:i,setValue:r}}let i=async e=>{let l=await fetch(e);if(!l.ok)throw Error("Failed to fetch from ".concat(e,": ").concat(l.statusText));return await l.json()},r=async(e,l)=>{let t=await fetch(e,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(l)});if(!t.ok)throw Error((await t.json()).message||"Failed to post data to ".concat(e,": ").concat(t.statusText));return t.json()};function c(e){let{key:l,initialData:t,fetch:n,mutate:c,refetchOnWindowFocus:d,staleTime:u,gcTime:m,enabled:p}=e,h=(0,s.jE)(),f=(0,a.I)({queryKey:l,queryFn:()=>n.custom?n.custom(n.url):i(n.url),initialData:t,staleTime:u,gcTime:m,refetchOnWindowFocus:d,enabled:p}),x=(0,o.n)({mutationFn:e=>((null==c?void 0:c.custom)?c.custom:r)((null==c?void 0:c.url)||n.url,e),...(null==c?void 0:c.options)||{},onSuccess:(e,t,s)=>{var a;h.invalidateQueries({queryKey:l}),(null==c||null==(a=c.options)?void 0:a.onSuccess)&&c.options.onSuccess(e,t,s)},onError:(e,t,s)=>{var a;(null==c||null==(a=c.options)?void 0:a.onError)?c.options.onError(e,t,s):console.error("Mutation failed for ".concat(l,":"),e)}}),v={value:{data:f.data,isLoading:f.isLoading,isError:f.isError,error:f.error,isRefetching:f.isRefetching,status:f.status,refetch:f.refetch}};return c&&(v.mutate=x.mutate,v.mutationPending=x.isPending,v.mutationError=x.error,v.mutationSuccess=x.isSuccess,v.mutationStatus=x.status),v}},676904:(e,l,t)=>{t.d(l,{default:()=>u});var s=t(249738),a=t(705922),o=t(723370),n=t(620709),i=t(990106),r=t(57558),c=t(535260),d=t(111239);function u(e){var l,t;let{edit:u,account:m,block:p,update:h,theme:f}=e,[x,v]=a.useState(p),b="";x.options.stars||(b+="stars,"),x.options.prs||(b+="prs,"),x.options.issues||(b+="issues,"),x.options.contribs||(b+="contribs,");let g=(0,o.Ob)(f.profile.colors.primary_text).replace("#",""),y=(0,o.Ob)(f.profile.colors.primary).replace("#",""),j=(0,o.Ob)(f.profile.colors.tertiary).replace("#",""),w=d.zI[f.profile.design.corner_radius].remValue;return(null==(l=x.style)?void 0:l.custom)&&(y=(0,o.Ob)(x.style.colors.primary).replace("#",""),g=(0,o.Ob)(x.style.colors.primary_text).replace("#",""),j=(0,o.Ob)(x.style.colors.border).replace("#",""),w=d.zI[x.style.corner_radius].remValue),(0,s.jsx)(r.A,{edit:u,className:p.show?"":"opacity-30",title:"Github User - ".concat(x.url),block:p,update:h,setBlockUpdate:v,children:""===x.url?u?(0,s.jsxs)(n.Fc,{children:[(0,s.jsx)(i.default,{color:"white",className:"text-copy h-4 w-4"}),(0,s.jsx)(n.XL,{children:"Oops!"}),(0,s.jsx)(n.TN,{children:"You've not added a username yet! This block will not show anything until you do."})]}):null:(0,s.jsx)("a",{href:"https://github.com/"+x.url,target:"_blank",className:(0,o.cn)("w-full","block-"+p.id),onClick:e=>{(0,c.A)(m,e,p,u)},onAuxClick:e=>{(0,c.A)(m,e,p,u)},children:(0,s.jsx)("img",{id:"github",loading:"lazy",style:{borderRadius:w},width:"100%",alt:"GitHub Statistics Card",src:"https://github-stats.doras.to/?username=".concat(x.url,"&theme=dark&show_icons=true&bg_color=").concat(y,"&text_color=").concat(g,"&icon_color=").concat(g,"&title_color=").concat(g,"&border_color=").concat(j,"&hide_border=").concat("rgba(0, 0, 0, 0)"===j,"&border_radius=").concat(w,"&hide_rank=").concat(!(null==(t=x.options)?void 0:t.rank),"&hide=").concat(b),"data-border":j,"data-text":g,"data-background":y,"data-radius":w})})})}},692674:(e,l,t)=>{t.d(l,{default:()=>m});var s=t(249738),a=t(705922),o=t(312737),n=t(296449),i=t(57558),r=t(202884),c=t(723370),d=t(111239),u=t(900086);function m(e){var l,t,m,p,h,f,x,v,b,g,y;let{account:j,edit:w,block:k,update:N,style:_,theme:z}=e,[C,A]=a.useState(k);return(0,s.jsx)(i.A,{edit:w,className:k.show?"":"opacity-30",title:"Kick - ".concat(C.url),block:k,update:N,setBlockUpdate:A,children:(null==(l=C.options)?void 0:l.hide_offline)?(0,s.jsx)("div",{className:"relative aspect-video w-full min-w-full",children:(0,s.jsx)("div",{className:"w-full min-w-full",children:(0,s.jsxs)("div",{className:"absolute flex w-full min-w-full place-content-center items-center justify-center",children:[(0,s.jsx)(r.A,{nopulse:!0,className:"bg-user-primary-color"}),(0,s.jsxs)("div",{className:"absolute flex flex-col items-center",children:[(0,s.jsx)(o.default,{className:"z-50 rounded-md bg-[#53fc18] p-1 shadow-xl",size:40}),(0,s.jsx)(n.Label,{className:"text-user-primary-text-color",variant:"headingtoggle",children:"(Preview)"})]})]})})}):(0,s.jsx)("div",{className:"w-full",children:(0,s.jsxs)("button",{style:_,id:"block",className:(0,
1c.cn)("rounded-user bg-user-primary-color text-user-primary-text-color",null==(t=d.C4[z.profile.design.shadow])?void 0:t.class,(null==(m=C.style)?void 0:m.custom)&&(null==(p=d.zI[C.style.corner_radius])?void 0:p.class),(null==(h=C.style)?void 0:h.custom)&&(null==(f=d.C4[C.style.shadow])?void 0:f.class),"textsm w-full px-1 py-3 text-xl transition-all duration-150 hover:scale-105",(null==(x=C.style)?void 0:x.custom)&&(null==(v=d.Bq[C.style.font_size])?void 0:v.class),k.name.replaceAll(" ","-"),"block-"+k.id),children:[(0,s.jsx)(u.A,{account_id:j.id,iconName:C.icon,size:(null==(b=C.style)?void 0:b.custom)&&(null==(g=d.Bq[C.style.font_size])?void 0:g.icon)||(null==(y=d.Bq[z.profile.design.font_size])?void 0:y.icon)||26}),(0,s.jsx)("span",{id:"block-text",className:"block w-full px-6 text-center font-bold",children:C.name})]})})})}},703107:(e,l,t)=>{t.d(l,{default:()=>g});var s=t(249738),a=t(705922),o=t(756533),n=t.n(o),i=t(723370),r=t(838830),c=t(347920),d=t(353470),u=t(131109),m=t(429735),p=t(823308),h=t(57558),f=t(772193);let x=e=>{let{start:l=0,end:t,duration:a=2.5,formattingFn:o=e=>e>=1e6?(e/1e6).toFixed(1)+"M":e>=1e3?(e/1e3).toFixed(1)+"k":e.toString(),admin:n}=e;return(0,s.jsx)(f.Ay,{start:n?t:l,end:t,duration:a,separator:",",decimals:0,decimal:".",prefix:"",suffix:"",formattingFn:o})};var v=t(111239),b=t(900086);function g(e){var l,t,o,f,g,y,j,w,k,N,_;let{edit:z,account:C,block:A,update:S,style:B,theme:I,connections:q}=e,[T,F]=a.useState(A),E=T.options.data?T.options.data.map(e=>q.find(l=>l.id===e.id)).filter(Boolean):[],L=E.reduce((e,l)=>{var t,s,a,o,n;if("twitch"===l.provider&&(null==(t=l.data)?void 0:t.followers))return e+l.data.followers;if("youtube"===l.provider&&(null==(s=l.data)?void 0:s.subscriberCount))return e+parseInt(l.data.subscriberCount);if("twitter"===l.provider&&(null==(a=l.data)?void 0:a.followers))return e+l.data.followers;if("tiktok"===l.provider&&(null==(o=l.data)?void 0:o.followers))return e+l.data.followers;if("trovo"===l.provider&&(null==(n=l.data)?void 0:n.followers))return e+l.data.followers;return e},0),D=T.options.custom||[],U=0;D.forEach(e=>{var l;let t=(null==(l=T.metadata)?void 0:l[e.totalKey||""])||"0";t&&(U+=parseInt(t)||0)});let O=L+U,P=new Date(E.reduce((e,l)=>e+new Date(l.updated_at).getTime(),0)/E.length),W=n()(P).format("DD/MM/YY HH:mm");return(0,s.jsx)(h.A,{edit:z,className:A.show?"":"opacity-30",title:"Media Kit",block:A,update:S,setBlockUpdate:F,children:(0,s.jsxs)("div",{id:"mediakit",style:B,className:(0,i.cn)("rounded-user bg-user-primary-color text-user-primary-text-color",null==(l=v.C4[I.profile.design.shadow])?void 0:l.class,(null==(t=T.style)?void 0:t.custom)&&(null==(o=v.zI[T.style.corner_radius])?void 0:o.class),(null==(f=T.style)?void 0:f.custom)&&(null==(g=v.C4[T.style.shadow])?void 0:g.class),"flex w-full flex-col gap-1 px-2 py-3 shadow-md transition-all",T.name.replaceAll(" ","-")),children:[(0,s.jsxs)("div",{className:"flex items-center justify-between",children:[(0,s.jsx)("div",{className:"flex items-center gap-1 text-lg font-bold"}),(null==(y=T.options)?void 0:y.total_followers)&&(0,s.jsxs)("div",{className:"flex items-center gap-1 text-lg font-bold",children:[(0,s.jsx)("p",{className:"text-lg font-bold",children:"Total Followers:"}),(0,s.jsx)(x,{end:O,admin:z})]})]}),(0,s.jsx)("div",{children:E.map((e,l)=>{var t,a,o,n,m,p,h,f,b,g,y,j,w,k,N,_,C,A,S,q,F,E,L,D,U,O,P,W,M,R,V,H,G,K,Y,J,Z,Q,$,X,ee,el,et,es,ea,eo,en,ei,er,ec,ed,eu,em,ep;let eh={background:B.background,color:B.color},ef=T.options.data.find(l=>l.id==e.id);return"twitch"==e.provider?(ef.theme?(eh.background=ef.background_colour,eh.color=ef.text_colour):eh={background:B.background,color:B.color},(0,s.jsx)("div",{className:"flex flex-col gap-2 py-3 font-bold",children:(0,s.jsxs)("a",{target:"_blank",id:"mediakit-twitch-".concat(e.data.username),href:"https://twitch.tv/".concat(e.data.username),className:(0,i.cn)("flex items-start gap-1 px-2 py-1 text-lg font-bold transition-all duration-300 hover:scale-105\n ",null==(t=v.C4[I.profile.design.shadow])?void 0:t.class,(null==(a=T.style)?void 0:a.custom)&&(null==(o=v.zI[T.style.corner_radius])?void 0:o.class),(null==(n=T.style)?void 0:n.custom)&&(null==(m=v.C4[T.
1style.shadow])?void 0:m.class)),style:eh,children:[(0,s.jsxs)("div",{className:"relative shrink-0 overflow-hidden rounded-md",children:[(0,s.jsx)("img",{src:(null==(p=e.data.channel)?void 0:p.profile_image)||"https://cdn.doras.to/doras/defaultimage.jpeg",className:"h-24 w-24 shrink-0 rounded-full",alt:"profile"}),(0,s.jsx)(r.default,{className:"absolute bottom-0 right-0 rounded-tl-md bg-purple-500 p-0.5 text-white"})]}),(0,s.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,s.jsx)("div",{className:"flex w-full flex-wrap items-center gap-2",children:(0,s.jsx)("p",{className:"text-lg font-semibold",children:e.data.username})}),(0,s.jsxs)("div",{className:"flex flex-col gap-1 px-1 text-base",children:[(0,s.jsxs)("p",{className:"text-xl font-semibold",children:[(0,s.jsx)(x,{end:e.data.followers,admin:z})," ","Followers"]}),ef.subscribers&&(0,s.jsxs)("p",{children:["Subscribers:"," ",(0,s.jsx)(x,{end:e.data.subscriptions,admin:z})]}),(ef.average_viewers||ef.recent_followers||ef.hours_watched)&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("p",{className:"text-xl",children:"Last 30 Days"}),ef.average_viewers&&(0,s.jsxs)("p",{children:["Average Viewers:"," ",e.data.summary.avg_viewers]}),ef.recent_followers&&(0,s.jsxs)("p",{children:["Followers Gained:"," ",e.data.summary.followers]}),ef.hours_watched&&(0,s.jsxs)("p",{children:["Hours Watched:"," ",e.data.summary.hours_watched]})]})]})]})]})},l)):"youtube"==e.provider?(ef.theme?(eh.background=ef.background_colour,eh.color=ef.text_colour):eh={background:B.background,color:B.color},(0,s.jsx)("div",{className:"flex flex-col gap-2 py-3 font-bold",children:(0,s.jsxs)("a",{target:"_blank",id:"mediakit-youtube-".concat(e.data.username),href:"https://youtube.com/".concat(e.data.username),className:(0,i.cn)("flex items-start gap-1 px-2 py-1 text-lg font-bold transition-all duration-300 hover:scale-105\n ",null==(h=v.C4[I.profile.design.shadow])?void 0:h.class,(null==(f=T.style)?void 0:f.custom)&&(null==(b=v.zI[T.style.corner_radius])?void 0:b.class),(null==(g=T.style)?void 0:g.custom)&&(null==(y=v.C4[T.style.shadow])?void 0:y.class)),style:eh,children:[(0,s.jsxs)("div",{className:"relative shrink-0 overflow-hidden rounded-md",children:[(0,s.jsx)("img",{src:(null==(j=e.data.channel)?void 0:j.profile_image)||"https://cdn.doras.to/doras/defaultimage.jpeg",className:"h-24 w-24 shrink-0 rounded-full",alt:"".concat(e.data.username," YouTube Channel")}),(0,s.jsx)(c.default,{className:"absolute bottom-0 right-0 rounded-tl-md bg-red-500 p-0.5 text-white"})]}),(0,s.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,s.jsx)("div",{className:"flex w-full flex-wrap items-center gap-2",children:(0,s.jsx)("p",{className:"text-lg font-semibold",children:e.data.username})}),(0,s.jsxs)("div",{className:"flex flex-col gap-1 px-1 text-base",children:[(0,s.jsxs)("p",{className:"text-xl font-semibold",children:[(0,s.jsx)(x,{end:e.data.subscriberCount,admin:z})," ","Subscribers"]}
1),ef.total_views&&(0,s.jsxs)("span",{children:[(0,s.jsx)(x,{end:e.data.viewCount,admin:z})," ","Views"]}),(ef.recent_views||ef.viewer_approval||ef.subscriber_change||ef.average_watch_duration)&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("p",{className:"text-xl",children:"Last 30 Days"}),ef.recent_views&&(0,s.jsxs)("p",{children:["Views:"," ",(0,s.jsx)(x,{end:(null==e||null==(k=e.data)||null==(w=k.analytics)?void 0:w.views)||0,admin:z})]}),ef.viewer_approval&&(0,s.jsxs)("p",{children:["Viewer Approval:"," ",(null==e||null==(_=e.data)||null==(N=_.analytics)?void 0:N.likes)&&(null==e||null==(A=e.data)||null==(C=A.analytics)?void 0:C.dislikes)?(e.data.analytics.likes/(e.data.analytics.likes+e.data.analytics.dislikes)*100).toFixed(1)+"%":"N/A"]}),ef.subscriber_change&&(0,s.jsxs)("p",{children:["Subscriber Change:"," ",((null==e||null==(q=e.data)||null==(S=q.analytics)?void 0:S.subscribersGained)||0)-((null==e||null==(E=e.data)||null==(F=E.analytics)?void 0:F.subscribersLost)||0)>=0?"+".concat(((null==e||null==(D=e.data)||null==(L=D.analytics)?void 0:L.subscribersGained)||0)-((null==e||null==(O=e.data)||null==(U=O.analytics)?void 0:U.subscribersLost)||0)):((null==e||null==(W=e.data)||null==(P=W.analytics)?void 0:P.subscribersGained)||0)-((null==e||null==(R=e.data)||null==(M=R.analytics)?void 0:M.subscribersLost)||0)]}),ef.average_watch_duration&&(0,s.jsxs)("p",{children:["Average Watch Duration:"," ",Number((null==e||null==(H=e.data)||null==(V=H.analytics)?void 0:V.averageViewPercentage)||0).toLocaleString(),"%"]})]})]})]})]})},l)):"twitter"==e.provider?(ef.theme?(eh.background=ef.background_colour,eh.color=ef.text_colour):eh={background:B.background,color:B.color},(0,s.jsx)("div",{className:"flex flex-col gap-2 py-3 font-bold",children:(0,s.jsxs)("a",{target:"_blank",id:"mediakit-twitter-".concat(e.data.username),href:"https://twitter.com/".concat(e.data.username),className:(0,i.cn)("flex items-start gap-1 px-2 py-1 text-lg font-bold transition-all duration-300 hover:scale-105\n ",null==(G=v.C4[I.profile.design.shadow])?void 0:G.class,(null==(K=T.style)?void 0:K.custom)&&(null==(Y=v.zI[T.style.corner_radius])?void 0:Y.class),(null==(J=T.style)?void 0:J.custom)&&(null==(Z=v.C4[T.style.shadow])?void 0:Z.class)),style:eh,children:[(0,s.jsxs)("div",{className:"relative shrink-0 overflow-hidden rounded-md",children:[(0,s.jsx)("img",{src:(null==(Q=e.data)?void 0:Q.profile_image)||"https://cdn.doras.to/doras/defaultimage.jpeg",className:"h-24 w-24 shrink-0 rounded-full",loading:"lazy",alt:"Profile Image"}),(0,s.jsx)(d.default,{className:"absolute bottom-0 right-0 rounded-tl-md bg-[#3b82f6] p-0.5 text-white"})]}),(0,s.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,s.jsx)("div",{className:"flex w-full flex-wrap items-center gap-2",children:(0,s.jsx)("p",{className:"text-lg font-semibold",children:e.data.username})}),(0,s.jsxs)("div",{className:"flex flex-col gap-1 px-1 text-base",children:[ef.followers&&(0,s.jsxs)("p",{className:"text-xl font-semibold",children:[(0,s.jsx)(x,{end:e.data.followers,admin:z})," ","Followers"]}),ef.following&&(0,s.jsxs)("p",{children:["Following:"," ",(0,s.jsx)(x,{end:e.data.following,admin:z})]}),ef.tweets&&(0,s.jsxs)("p",{children:["Tweets:"," ",(0,s.jsx)(x,{end:e.data.tweets,admin:z})]}),ef.likes&&(0,s.jsxs)("p",{children:["Likes:"," ",(0,s.jsx)(x,{end:e.data.likes,admin:z})]})]})]})]})},l)):"tiktok"==e.provider?(ef.theme?(eh.background=ef.background_colour,eh.color=ef.text_colour):eh={background:B.background,color:B.color},(0,s.jsx)("div",{className:"flex flex-col gap-2 py-3 font-bold",children:(0,s.jsxs)("a",{target:"_blank",id:"mediakit-tiktok-".concat(e.data.username),href:"https://www.tiktok.com/@".concat(e.data.username),className:(0,i.cn)("flex items-start gap-1 px-2 py-1 text-lg font-bold transition-all duration-300 hover:scale-105\n ",null==($=v.C4[I.profile.design.shadow])?void 0:$.class,(null==(X=T.style)?void 0:X.custom)&&(null==(ee=v.zI[T.style.corner_radius])?void 0:ee.class),(null==(el=T.style)?void 0:el.custom)&&(null==(et=v.C4[T.
1style.shadow])?void 0:et.class)),style:eh,children:[(0,s.jsxs)("div",{className:"relative shrink-0 overflow-hidden rounded-md",children:[(0,s.jsx)("img",{src:(null==(es=e.data)?void 0:es.avatar)||"https://cdn.doras.to/doras/defaultimage.jpeg",className:"h-24 w-24 shrink-0 rounded-full",alt:"".concat(e.data.username," avatar")}),(0,s.jsx)(u.default,{className:"absolute bottom-0 right-0 rounded-tl-md bg-[#130b18] p-0.5 text-white"})]}),(0,s.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,s.jsx)("div",{className:"flex w-full flex-wrap items-center gap-2",children:(0,s.jsx)("p",{className:"text-lg font-semibold",children:e.data.username})}),(0,s.jsxs)("div",{className:"flex flex-col gap-1 px-1 text-base",children:[ef.followers&&(0,s.jsxs)("p",{className:"text-xl font-semibold",children:[(0,s.jsx)(x,{end:e.data.followers,admin:z})," ","Followers"]}),ef.following&&(0,s.jsxs)("p",{children:["Following:"," ",(0,s.jsx)(x,{end:e.data.following,admin:z})]}),ef.videos&&(0,s.jsxs)("p",{children:["Videos:"," ",(0,s.jsx)(x,{end:e.data.videos,admin:z})]}),ef.likes&&(0,s.jsxs)("p",{children:["Likes:"," ",(0,s.jsx)(x,{end:e.data.likes,admin:z})]}),(ef.recent_views||ef.recent_likes)&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("p",{className:"text-xl",children:"Last 20 videos"}),ef.recent_views&&(0,s.jsxs)("p",{children:["Views:"," ",(0,s.jsx)(x,{end:(null==e||null==(eo=e.data)||null==(ea=eo.statistics)?void 0:ea.views)||0,admin:z})]}),ef.recent_likes&&(0,s.jsxs)("p",{children:["Likes:"," ",(0,s.jsx)(x,{end:(null==e||null==(ei=e.data)||null==(en=ei.statistics)?void 0:en.likes)||0,admin:z})]})]})]})]})]})},l)):"trovo"==e.provider?(ef.theme?(eh.background=ef.background_colour,eh.color=ef.text_colour):eh={background:B.background,color:B.color},(0,s.jsx)("div",{className:"flex flex-col gap-2 py-3 font-bold",children:(0,s.jsxs)("a",{target:"_blank",id:"mediakit-trovo-".concat(e.data.username),href:"https://www.trovo.live/".concat(e.data.username),className:(0,i.cn)("flex items-start gap-1 px-2 py-1 text-lg font-bold transition-all duration-300 hover:scale-105\n ",null==(er=v.C4[I.profile.design.shadow])?void 0:er.class,(null==(ec=T.style)?void 0:ec.custom)&&(null==(ed=v.zI[T.style.corner_radius])?void 0:ed.class),(null==(eu=T.style)?void 0:eu.custom)&&(null==(em=v.C4[T.style.shadow])?void 0:em.class)),style:eh,children:[(0,s.jsxs)("div",{className:"relative shrink-0 overflow-hidden rounded-md",children:[(0,s.jsx)("img",{src:(null==(ep=e.data)?void 0:ep.profile_image)||"https://cdn.doras.to/doras/defaultimage.jpeg",className:"h-24 w-24 shrink-0 rounded-full",alt:"Profile Image"}),(0,s.jsx)("img",{src:"https://cdn.doras.to/doras/icons/light/trovo.png",className:"absolute bottom-0 right-0 h-[24px] w-[24px] rounded-tl-md bg-[#34cb81] p-0.5 text-white",alt:"Trovo"})," "]}),(0,s.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,s.jsx)("div",{className:"flex w-full flex-wrap items-center gap-2",children:(0,s.jsx)("p",{className:"text-lg font-semibold",children:e.data.username})}),(0,s.jsxs)("div",{className:"flex flex-col gap-1 px-1 text-base",children:[ef.followers&&(0,s.jsxs)("p",{className:"text-xl font-semibold",children:[(0,s.jsx)(x,{end:e.data.followers,admin:z})," ","Followers"]}),ef.subscribers&&(0,s.jsxs)("p",{children:["Subscribers:"," ",(0,s.jsx)(x,{end:e.data.subscribers,admin:z})]})]})]})]})},l)):void 0})}),(T.options.custom||[]).length>0&&("premium"===C.account_type||"bplus"===C.account_type||"bpro"===C.account_type)&&(0,s.jsx)("div",{children:(T.options.custom||[]).map((e,l)=>{var t,a,o,r,c,d,u,m,p,h,f,g,y;let j=(null==(t=T.metadata)?void 0:t[e.metadataKey])||"0",w={background:B.background,color:B.color};return(null==(a=e.theme)?void 0:a.toggle)&&(w.background=e.theme.background_colour,w.color=e.theme.text_colour),(0,s.jsx)("div",{className:"flex flex-col gap-2 py-3 font-bold",children:(0,s.jsxs)("div",{className:(0,i.cn)("flex items-start gap-1 px-2 py-1 text-lg font-bold transition-all duration-300 hover:scale-105",null==(o=v.C4[I.profile.design.shadow])?void 0:o.class,(null==(r=T.style)?void 0:r.custom)&&(null==(c=v.zI[T.style.corner_radius])?void 0:c.class),(null==(d=T.style)?void 0:d.custom)&&(null==(u=v.C4[T.
1style.shadow])?void 0:u.class)),style:w,id:"mediakit-custom-".concat(e.metadataKey),children:[(0,s.jsxs)("div",{className:"relative shrink-0 overflow-hidden rounded-md",children:[(0,s.jsx)("img",{src:e.pictureUrl||"https://cdn.doras.to/doras/defaultimage.jpeg",className:"h-24 w-24 shrink-0 rounded-full",alt:e.name}),(0,s.jsx)("div",{className:"absolute bottom-0 right-0 rounded-tl-md p-0.5",style:{background:null==(m=e.theme)?void 0:m.icon_background,color:null==(p=e.theme)?void 0:p.icon_colour},children:(0,s.jsx)(b.A,{account_id:C.id,iconName:e.icon,size:(null==(h=T.style)?void 0:h.custom)&&(null==(f=v.Bq[T.style.font_size])?void 0:f.icon)||(null==(g=v.Bq[I.profile.design.font_size])?void 0:g.icon)||26,raw:!0})})]}),(0,s.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,s.jsx)("div",{className:"flex w-full flex-wrap items-center gap-2",children:(0,s.jsx)("p",{className:"text-lg font-semibold",children:e.name})}),(0,s.jsxs)("div",{className:"flex flex-col gap-1 px-1 text-base",children:[(0,s.jsxs)("p",{className:"text-xl font-semibold",children:[(0,s.jsx)(x,{end:parseInt(j)||0,admin:z})," ",e.label]}),(e.values||[]).map((e,l)=>{var t;let a=(null==(t=T.metadata)?void 0:t[e.metadataKey])||"0";return"before"===e.position?(0,s.jsxs)("p",{children:[e.label," ",(0,s.jsx)(x,{end:parseInt(a)||0,admin:z})]},"".concat(l)):"after"===e.position?(0,s.jsxs)("p",{children:[(0,s.jsx)(x,{end:parseInt(a)||0,admin:z})," ",e.label]},"".concat(l)):void 0}),e.updatedAtKey&&(0,s.jsxs)("p",{className:"text-xs text-muted-foreground",children:["Updated:"," ",n()(null==(y=T.metadata)?void 0:y[e.updatedAtKey]).format("DD/MM/YY HH:mm")]})]})]})]})},"custom-".concat(l))})}),(0,s.jsxs)(p.AM,{children:[(0,s.jsx)(p.Wv,{asChild:!0,children:(0,s.jsxs)("div",{className:"ml-auto flex cursor-pointer flex-col items-end gap-1",children:[(0,s.jsxs)("p",{className:"flex items-center gap-1 text-sm",children:[(0,s.jsx)(m.default,{size:18})," Data verified"]}),"Invalid date"!==W&&(0,s.jsxs)("p",{className:"flex items-center gap-1 text-xs",children:["Updated: ",W]})]})}),(0,s.jsx)(p.hl,{className:(0,i.cn)("flex w-full flex-col gap-3 rounded-user border-transparent bg-user-primary-color px-2 py-3 text-sm font-medium text-user-primary-text-color shadow-md",null==(j=v.C4[I.profile.design.shadow])?void 0:j.class,(null==(w=T.style)?void 0:w.custom)&&(null==(k=v.zI[T.style.corner_radius])?void 0:k.class),(null==(N=T.style)?void 0:N.custom)&&(null==(_=v.C4[T.style.shadow])?void 0:_.class)),children:(0,s.jsxs)("p",{children:["This data is verified by"," ",(0,s.jsx)("a",{href:"https://doras.to".concat(null!==C.affiliate?"?aff="+C.affiliate:"","/"),className:"font-bold underline",children:"Doras.to"}),"."]})})]})]})})}},711526:(e,l,t)=>{t.d(l,{default:()=>d});var s=t(249738),a=t(705922),o=t(57558),n=t(723370),i=t(111239),r=t(196727);let c=e=>{let{className:l,backdropClassName:t,...a}=e;return(0,s.jsx)("div",{className:(0,n.cn)("relative","[&_[data-rmiz-ghost]]:pointer-events-none [&_[data-rmiz-ghost]]:absolute","[&_[data-rmiz-btn-zoom]]:m-0 [&_[data-rmiz-btn-zoom]]:size-10 [&_[data-rmiz-btn-zoom]]:touch-manipulation [&_[data-rmiz-btn-zoom]]:appearance-none [&_[data-rmiz-btn-zoom]]:rounded-[50%] [&_[data-rmiz-btn-zoom]]:border-none [&_[data-rmiz-btn-zoom]]:bg-foreground
1/70 [&_[data-rmiz-btn-zoom]]:p-2 [&_[data-rmiz-btn-zoom]]:text-background [&_[data-rmiz-btn-zoom]]:outline-offset-2","[&_[data-rmiz-btn-unzoom]]:m-0 [&_[data-rmiz-btn-unzoom]]:size-10 [&_[data-rmiz-btn-unzoom]]:touch-manipulation [&_[data-rmiz-btn-unzoom]]:appearance-none [&_[data-rmiz-btn-unzoom]]:rounded-[50%] [&_[data-rmiz-btn-unzoom]]:border-none [&_[data-rmiz-btn-unzoom]]:bg-foreground/70 [&_[data-rmiz-btn-unzoom]]:p-2 [&_[data-rmiz-btn-unzoom]]:text-background [&_[data-rmiz-btn-unzoom]]:outline-offset-2","[&_[data-rmiz-btn-zoom]:not(:focus):not(:active)]:pointer-events-none [&_[data-rmiz-btn-zoom]:not(:focus):not(:active)]:absolute [&_[data-rmiz-btn-zoom]:not(:focus):not(:active)]:size-px [&_[data-rmiz-btn-zoom]:not(:focus):not(:active)]:overflow-hidden [&_[data-rmiz-btn-zoom]:not(:focus):not(:active)]:whitespace-nowrap [&_[data-rmiz-btn-zoom]:not(:focus):not(:active)]:[clip-path:inset(50%)] [&_[data-rmiz-btn-zoom]:not(:focus):not(:active)]:[clip:rect(0_0_0_0)]","[&_[data-rmiz-btn-zoom]]:absolute [&_[data-rmiz-btn-zoom]]:bottom-auto [&_[data-rmiz-btn-zoom]]:left-auto [&_[data-rmiz-btn-zoom]]:right-2.5 [&_[data-rmiz-btn-zoom]]:top-2.5 [&_[data-rmiz-btn-zoom]]:cursor-zoom-in","[&_[data-rmiz-btn-unzoom]]:absolute [&_[data-rmiz-btn-unzoom]]:bottom-auto [&_[data-rmiz-btn-unzoom]]:left-auto [&_[data-rmiz-btn-unzoom]]:right-5 [&_[data-rmiz-btn-unzoom]]:top-5 [&_[data-rmiz-btn-unzoom]]:z-[1] [&_[data-rmiz-btn-unzoom]]:cursor-zoom-out",'[&_[data-rmiz-content="found"]_img]:cursor-zoom-in','[&_[data-rmiz-content="found"]_svg]:cursor-zoom-in','[&_[data-rmiz-content="found"]_[role="img"]]:cursor-zoom-in','[&_[data-rmiz-content="found"]_[data-zoom]]:cursor-zoom-in',l),children:(0,s.jsx)(r.A,{classDialog:(0,n.cn)("[&::backdrop]:hidden","[&[open]]:fixed [&[open]]:m-0 [&[open]]:h-dvh [&[open]]:max-h-none [&[open]]:w-dvw [&[open]]:max-w-none [&[open]]:overflow-hidden [&[open]]:border-0 [&[open]]:bg-transparent [&[open]]:p-0","[&_[data-rmiz-modal-overlay]]:absolute [&_[data-rmiz-modal-overlay]]:inset-0 [&_[data-rmiz-modal-overlay]]:transition-all",'[&_[data-rmiz-modal-overlay="hidden"]]:bg-transparent','[&_[data-rmiz-modal-overlay="visible"]]:bg-background/80 [&_[data-rmiz-modal-overlay="visible"]]:backdrop-blur-md',"[&_[data-rmiz-modal-content]]:relative [&_[data-rmiz-modal-content]]:flex [&_[data-rmiz-modal-content]]:size-full [&_[data-rmiz-modal-content]]:items-center [&_[data-rmiz-modal-content]]:justify-center","[&_[data-rmiz-modal-img]]:absolute [&_[data-rmiz-modal-img]]:max-h-full [&_[data-rmiz-modal-img]]:max-w-full [&_[data-rmiz-modal-img]]:object-contain [&_[data-rmiz-modal-img]]:origin-top-left [&_[data-rmiz-modal-img]]:cursor-zoom-out [&_[data-rmiz-modal-img]]:transition-transform","motion-reduce:[&_[data-rmiz-modal-img]]:transition-none motion-reduce:[&_[data-rmiz-modal-overlay]]:transition-none",t),...a})})};function d(e){let{edit:l,block:t,update:r,theme:d}=e,[u,m]=a.useState(t),p=u.options.images;return(0,s.jsx)(o.A,{edit:l,className:t.show?"":"opacity-30",title:"Gallery",block:t,update:r,setBlockUpdate:m,children:(0,s.jsx)("div",{id:"gallery",className:(0,n.cn)("w-full gap-1",(e=>{switch(e){case 1:default:return"columns-1";case 2:return"columns-2";case 3:return"columns-3";case 4:return"columns-4";case 5:return"columns-5";case 6:return"columns-6";case 7:return"columns-7";case 8:return"columns-8";case 9:return"columns-9";case 10:return"columns-10"}})(u.options.grid_size),"block-"+t.id),children:p.map((e,l)=>{var t,a,o,r,m,p;return(0,s.jsx)(c,{zoomMargin:100,children:(0,s.jsx)("img",{src:e.image,className:(0,n.cn)("mx-auto mb-1 inline-block w-full rounded-xl",null==(t=i.zI[d.profile.design.corner_radius])?void 0:t.class,null==(a=i.C4[d.profile.design.shadow])?void 0:a.class,(null==(o=u.style)?void 0:o.custom)&&(null==(r=i.zI[u.style.corner_radius])?void 0:r.class),(null==(m=u.style)?void 0:m.custom)&&(null==(p=i.C4[u.style.shadow])?void 0:p.class)),alt:e.image})},l)})})})}},741633:(e,l,t)=>{t.d(l,{default:()=>n});var s=t(249738),a=t(705922),o=t(57558);function n(e){let{edit:l,block:t,update:n}=e,[i,r]=a.useState(t);
1return(0,s.jsx)(o.A,{edit:l,className:t.show?"":"opacity-30",title:"Twitter Feed",block:t,update:n,setBlockUpdate:r,children:(0,s.jsx)("div",{className:"relative flex w-full flex-row flex-wrap gap-2 p-2",id:"twitterTimeline",children:(0,s.jsx)("iframe",{src:"https://syndication.twitter.com/srv/timeline-profile/screen-name/".concat(i.url,"?theme=dark&hideScrollBar=true&hideBorder=true"),width:"100%",height:"500px",className:"rounded-lg"})})})}},887064:(e,l,t)=>{t.d(l,{HeadingDefault:()=>v});var s=t(249738),a=t(705922),o=t(249174),n=t(723370),i=t(111239);function r(e){let{account:l,theme:t}=e;return(0,s.jsxs)("div",{className:"relative flex shrink-0 snap-center flex-col items-center",children:[(0,s.jsx)(o.JZ,{account:l,className:"size-16 md:size-28",theme:t}),(0,s.jsx)(o.nD,{account:l,className:"mx-auto items-center",theme:t}),(0,s.jsxs)("div",{className:"flex w-fit flex-col gap-1",children:[(0,s.jsx)(o.j3,{bio:l.bio,account:l,className:"text-center",theme:t}),(0,s.jsxs)("div",{className:"flex w-full items-center justify-between",children:[l.settings.pronouns&&(0,s.jsx)(o.F2,{account:l,theme:t}),l.settings.location&&(0,s.jsx)(o.qt,{account:l,theme:t})]})]})]})}function c(e){let{account:l,theme:t}=e;return(0,s.jsx)("div",{className:"relative flex shrink-0 snap-center flex-col items-center",children:(0,s.jsxs)("div",{className:"flex items-center gap-2 p-2",children:[(0,s.jsx)(o.JZ,{account:l,className:"size-20 md:size-36",theme:t}),(0,s.jsxs)("div",{children:[(0,s.jsx)(o.nD,{account:l,className:"justify-start text-left",theme:t}),(0,s.jsx)(o.j3,{account:l,bio:l.bio,className:"text-left",theme:t}),(0,s.jsxs)("div",{className:"",children:[l.settings.pronouns&&(0,s.jsx)(o.F2,{account:l,theme:t}),l.settings.location&&(0,s.jsx)(o.qt,{account:l,theme:t})]})]})]})})}function d(e){let{account:l,theme:t}=e;return(0,s.jsxs)("div",{className:"relative flex shrink-0 snap-center flex-col items-center",children:[(0,s.jsxs)("div",{className:"relative flex aspect-[21/9] w-full",children:[(0,s.jsx)("img",{src:t.heading.image||"https://cdn.doras.to/doras/assets/fd07ecfc-cc38-4000-aca1-4d28574c9843/6db2f8a2-ff2d-42d6-8c3c-6b4b39533f3e.jpeg",alt:"Banner",className:(0,n.cn)("h-full w-full object-cover",i.zI[t.profile.design.corner_radius].class)}),(0,s.jsx)("div",{className:"absolute -bottom-12 left-1/2 z-10 -translate-x-1/2 transform",children:(0,s.jsx)(o.JZ,{account:l,className:"size-24",theme:t})})]}),(0,s.jsxs)("div",{className:"flex flex-col items-center px-2 pt-12",children:[(0,s.jsx)(o.nD,{account:l,theme:t}),(0,s.jsxs)("div",{className:"flex w-fit flex-col gap-1",children:[(0,s.jsx)(o.j3,{bio:l.bio,account:l,className:"text-center",theme:t}),(0,s.jsxs)("div",{className:"flex w-full items-center justify-between",children:[l.settings.pronouns&&(0,s.jsx)(o.F2,{account:l,theme:t}),l.settings.location&&(0,s.jsx)(o.qt,{account:l,theme:t})]})]})]})]})}function u(e){let{account:l,theme:t}=e;return(0,s.jsx)("div",{className:"relative flex shrink-0 snap-center flex-col items-center",children:(0,s.jsxs)("div",{className:"relative flex aspect-[16/9] w-full",children:[(0,s.jsx)("img",{src:t.heading.image||"https://cdn.doras.to/doras/assets/fd07ecfc-cc38-4000-aca1-4d28574c9843/6db2f8a2-ff2d-42d6-8c3c-6b4b39533f3e.jpeg",alt:"Banner",className:(0,n.cn)("h-full w-full object-cover",i.zI[t.profile.design.corner_radius].class)}),(0,s.jsxs)("div",{className:(0,n.cn)("absolute inset-x-0 bottom-0 z-10 flex w-full transform items-center gap-2 p-3",i.zI[t.profile.design.corner_radius].class,"!rounded-t-none","bg-black/30 backdrop-blur"),children:[(0,s.jsx)(o.JZ,{account:l,className:"size-28",theme:t}),(0,s.jsxs)("div",{className:"flex flex-col items-center justify-start px-2",children:[(0,s.jsx)(o.nD,{account:l,theme:t,className:"justify-start text-left"}),(0,s.jsxs)("div",{className:"flex w-full flex-col gap-1",children:[(0,s.jsx)(o.j3,{bio:l.bio,account:l,className:"justify-start text-left font-semibold",theme:t}),(0,s.jsxs)("div",{className:"flex w-full min-w-full items-center gap-3",children:[l.settings.pronouns&&(0,s.jsx)(o.F2,{account:l,className:"font-semibold",theme:t}),l.settings.location&&(0,s.jsx)(o.qt,{account:l,className:"font-semibold",theme:t})]})]})]})]})]})})}function m(e){let{account:l,theme:t}=e;return(0,s.jsxs)("div",{className:"relative flex shrink-0 snap-center flex-col items-center",children:[(0,s.jsxs)("div",{className:"relative flex aspect-square min-w-64 max-w-5xl flex-col px-4",children:[(0,s.jsx)(o.JZ,{account:l,className:"absolute inset-0 w-full rounded-t-xl",style:{maskImage:"linear-gradient(to bottom, black 60%, transparent 100%)",WebkitMaskImage:"linear-gradient(to bottom, black 60%, transparent 100%)"},theme:t}),(0,s.jsx)("div",{className:"z-50 mt-auto flex flex-col items-center",children:(0,s.jsx)(o.nD,{account:l,theme:t})})]}),(0,s.jsxs)("div",{className:"flex w-fit flex-col gap-1",children:[(0,s.jsx)(o.j3,{bio:l.bio,account:l,className:"text-center",theme:t}),(0,s.jsxs)("div",{className:"flex w-full items-center justify-between",children:[l.settings.pronouns&&(0,s.jsx)(o.F2,{account:l,theme:t}),l.settings.location&&(0,s.jsx)(o.qt,{account:l,theme:t})]})]})]})}var p=t(749026),h=t(219722),f=t(530508),x=t(296449);function v(e){let{account:l,theme:t,edit:o}=e;if(!o)return(0,s.jsx)(b,{account:l,theme:t});let n=(0,a.useRef)(null),i=(0,p.a)(),{isOpen:r,toggleSidebar:c}=(0,h.D)(["render-settings-sidebar-state"]),{setValue:d,value:u,selectedBlock:{setValue:m,value:v}}=(0,f.h)(),g="heading"===u;(0,a.useEffect)(()=>
1{if(n.current&&i)n.current.scrollIntoView({behavior:"smooth",block:"start"});else if(n.current&&g){let e=n.current.getBoundingClientRect();e.top<window.innerHeight&&e.bottom>=0&&e.left<window.innerWidth&&e.right>=0||n.current.scrollIntoView({behavior:"smooth",block:"start"})}},[i,g]);let y=()=>{d("root")};return(0,a.useEffect)(()=>{r||y()},[r]),(0,s.jsx)("div",{ref:n,onClick:()=>{g?y():(r||c(),d("heading"),m(null))},className:"group relative z-40 w-full cursor-pointer rounded-md border-2 p-1 transition-all duration-300 hover:border-solid hover:border-primary data-[state=open]:border-solid data-[state=open]:border-primary\n ".concat(g?"border border-primary":"border-transparent"," "),children:(0,s.jsxs)("div",{className:"relative flex w-full cursor-pointer flex-col gap-1",children:[(0,s.jsx)("div",{className:"absolute -right-1 -top-1 z-40 flex items-center rounded-bl-md bg-primary p-1 opacity-0 transition-all duration-300 group-hover:opacity-100\n ".concat(g&&"opacity-100"),children:(0,s.jsx)(x.Label,{variant:"toggle",children:"Heading"})}),(0,s.jsxs)("div",{className:"w-full ".concat(o&&""),children:[(0,s.jsx)("div",{className:"w-full ".concat(o&&"absolute left-0 top-0 z-40 flex h-full justify-center rounded-md transition-all duration-300 group-hover:bg-primary/30")}),(0,s.jsx)(b,{account:l,theme:t})]})]})})}function b(e){let{account:l,theme:t}=e;switch(t.heading.type){default:return(0,s.jsx)(r,{account:l,theme:t});case"sideways":return(0,s.jsx)(c,{account:l,theme:t});case"banner":return(0,s.jsx)(d,{account:l,theme:t});case"banner2":return(0,s.jsx)(u,{account:l,theme:t});case"headshot":return(0,s.jsx)(m,{account:l,theme:t})}}},889204:(e,l,t)=>{t.d(l,{default:()=>i});var s=t(249738),a=t(705922),o=t(57558),n=t(723370);function i(e){var l;let{edit:t,block:i,update:r}=e,[c,d]=a.useState(i);return(0,s.jsx)(o.A,{edit:t,className:i.show?"":"opacity-30",title:"YouTube Video - ".concat(c.url),block:i,update:r,setBlockUpdate:d,children:(0,s.jsxs)("div",{className:(0,n.cn)("flex w-full flex-col text-user-heading-text-color","block-"+i.id),children:[!(null==(l=c.options)?void 0:l.hide_title)&&(0,s.jsx)("h4",{children:c.name}),(0,s.jsx)("iframe",{id:"youtube-video",className:"aspect-video h-full w-full rounded-lg",src:"https://www.youtube.com/embed/".concat(function(e){let l=e.match(/(?:https?:\/\/)?(?:www\.)?(?:youtube\.com\/(?:[^\/\n\s]+\/\S+\/|(?:v|e(?:mbed)?)\/|\S*?[?&]v=)|youtu\.be\/)([a-zA-Z0-9_-]{11})/);return l?l[1]:null}(c.url),"?enablejsapi=1&autoplay=false&mute=true"),allow:"",allowFullScreen:!0})]})})}},900086:(e,l,t)=>{t.d(l,{A:()=>i});var s=t(249738),a=t(819708),o=t(723370),n=t(151061);let i=e=>{let{account_id:l,iconName:t,size:i,raw:r}=e;try{if(t.startsWith("Icon")){let e=n[t];if("function"!=typeof e&&("object"!=typeof e||(null==e?void 0:e.$$typeof)!==Symbol.for("react.forward_ref")))return console.warn("Skipping invalid component: ".concat(t),e),null;if(r)return(0,s.jsx)(e,{size:i||60});return(0,s.jsx)("div",{className:"absolute left-4 top-1/2 -translate-y-1/2 transform",children:(0,s.jsx)(e,{size:i||60})})}if(t.startsWith("Doras")){let e=a.A.find(e=>e.value==t);if(e){if(r)return(0,s.jsx)("img",{src:e.img,alt:"custom icons",style:{width:i||60,height:i||60}});return(0,s.jsx)("img",{src:e.img,className:"absolute left-4 top-1/2 -translate-y-1/2 transform",alt:"custom icons",style:{width:i||60,height:i||60}})}}else if((0,o.iv)(t)){let e="https://cdn.doras.to/doras/assets/"+l+"/"+t;if(r)return(0,s.jsx)("img",{src:e,alt:"custom icons",style:{width:i||60,height:i||60}});return(0,s.jsx)("img",{src:e,className:"absolute left-4 top-1/2 -translate-y-1/2 transform rounded-sm object-cover p-[1px]",alt:"custom icons",id:"block-icon",style:{width:i||60,height:i||60}})}}catch(e){return console.error('Error rendering icon "'.concat(t,'":'),e),null}}},971299:(e,l,t)=>{t.d(l,{default:()=>d});var s=t(249738),a=t(705922),o=t(42053),n=t(296449),i=t(176754);t(896531);var r=t(202884),c=t(57558);function d(e){let{edit:l,block:t,update:d}
1=e,[u,m]=a.useState(t),[p,h]=a.useState(!0),[f,x]=a.useState(!1),[v,b]=a.useState(!1),g=a.useRef(null),y=a.useRef(null);return a.useEffect(()=>{let e=setTimeout(()=>{let e=g.current;e&&u.url&&(y.current=(0,i.A)(e,{controls:!0,fluid:!0,preload:"none",liveui:!0,liveTracker:!1,controlBar:{progressControl:!1},html5:{nativeVideoTracks:!0,nativeAudioTracks:!0,nativeTextTracks:!0,vhs:{overrideNative:!0,bufferSize:1,maxBufferLength:1,cleanupBuffer:!0,cleanupBufferInterval:30}}}))},0);return()=>{clearTimeout(e),y.current&&(y.current.reset(),y.current.dispose(),y.current=null)}},[u.url]),(0,s.jsx)(c.A,{edit:l,className:t.show?"":"opacity-30",title:"VRCDN - ".concat(u.url),block:t,update:d,setBlockUpdate:m,children:v?l?(0,s.jsxs)("div",{className:"absolute flex w-full min-w-full place-content-center items-center justify-center opacity-100 transition-opacity duration-300",children:[(0,s.jsx)(r.A,{nopulse:!0}),(0,s.jsxs)("div",{className:"absolute flex flex-col items-center",children:[(0,s.jsx)(o.default,{className:"z-50 rounded-md bg-[#3be2e2] p-1 text-background shadow-xl",size:40}),(0,s.jsx)(n.Label,{className:"",variant:"headingtoggle",children:"(Preview)"}),(0,s.jsx)(n.Label,{className:"",variant:"headingtoggle",children:"Stream will appear here when it's live."})]})]}):function(e){if(window.document&&window.document.getElementsByClassName("block-"+e)[0]){let t=document.getElementsByClassName("block-"+e);for(var l=0;l<t.length;l++)t[l].classList.add("hidden")}return null}(t.id):(0,s.jsxs)("div",{className:"relative aspect-video w-full min-w-full overflow-hidden rounded-lg",children:[(0,s.jsxs)("div",{className:"absolute flex w-full min-w-full place-content-center items-center justify-center transition-opacity duration-300 ".concat(f?"opacity-100":"pointer-events-none opacity-0"),children:[(0,s.jsx)(r.A,{}),(0,s.jsx)(o.default,{className:"absolute z-50 animate-bounce rounded-md bg-[#3be2e2] p-1 text-background shadow-xl",size:40})]}),(0,s.jsx)("div",{className:"w-full min-w-full transition-opacity duration-300 ".concat(f?"opacity-0":"opacity-100"),children:p?(0,s.jsx)("div",{"data-vjs-player":!0,className:"h-full w-full ",children:(0,s.jsx)("video",{ref:g,className:"video-js vjs-live vjs-live-display h-full w-full",playsInl
1ine:!0,children:(0,s.jsx)("source",{src:"https://stream.vrcdn.live/live/".concat(u.url,".live.mp4"),type:"video/mp4"})})}):(0,s.jsxs)("div",{className:"absolute flex w-full min-w-full place-content-center items-center justify-center opacity-100 transition-opacity duration-300",children:[(0,s.jsx)(r.A,{nopulse:!0}),(0,s.jsxs)("div",{className:"absolute flex flex-col items-center",children:[(0,s.jsx)(o.default,{className:"z-50 rounded-md bg-[#3be2e2] p-1 text-background shadow-xl",size:40}),(0,s.jsx)(n.Label,{className:"",variant:"headingtoggle",children:"(Preview)"}),(0,s.jsx)(n.Label,{className:"",variant:"headingtoggle",children:"Stream will appear here when it's live."})]})]})})]})})}},992444:(e,l,t)=>{t.d(l,{default:()=>i});var s=t(249738),a=t(705922),o=t(57558),n=t(491128);function i(e){let{edit:l,block:t,update:n}=e,[i,c]=a.useState(t),d=i.url.replace("/browse","").split("?")[0].split("/"),u=d[d.length-2],m=d[d.length-1];return(0,s.jsx)(o.A,{edit:l,className:t.show?"":"opacity-30",title:"Tidal - ".concat(i.url),block:t,update:n,setBlockUpdate:c,children:u&&m?(0,s.jsx)("iframe",{id:"tidal",style:{borderRadius:"12px"},src:"https://embed.tidal.com/".concat(u,"s/").concat(m,"?disableAnalytics=true"),width:"100%",height:"album"===u||"playlist"===u?"300":"152",frameBorder:"0",allowFullScreen:!1,allow:"autoplay; clipboard-write; encrypted-media; fullscreen; picture-in-picture",loading:"lazy",className:"block-"+t.id}):(0,s.jsx)(r,{})})}function r(e){let{height:l=152}=e;return(0,s.jsxs)("div",{className:"flex items-center gap-4 bg-black/20 p-2",style:{height:l,borderRadius:"12px"},children:[(0,s.jsx)(n.E,{className:"flex-shrink-0 rounded-md",style:{width:l,height:l}}),(0,s.jsxs)("div",{className:"flex flex-1 flex-col gap-2 self-start",children:[(0,s.jsx)(n.E,{className:"h-4 w-3/4"}),(0,s.jsx)(n.E,{className:"h-3 w-1/2"})]})]})}}}]); 2//# sourceMappingURL=9992-f5447138eb5f76a4.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.