import{o as e}from"./rolldown-runtime-C_s2cVnS.js";import{m as t,n}from"./vendor-react-nmZsNlRz.js";import{E as r}from"./index-DjNTYlku.js";var i=n(),a=e(t(),1),o=`autoplay; clipboard-write; encrypted-media; fullscreen; picture-in-picture`;function s(e,t){let n=new URL(e);return n.searchParams.set(`utm_source`,`generator`),t&&n.searchParams.set(`theme`,`0`),n.toString()}function c(e){let t=(0,i.c)(8),{descriptor:n}=e,c=r(),l;t[0]!==n.embedUrl||t[1]!==c?(l=s(n.embedUrl,c),t[0]=n.embedUrl,t[1]=c,t[2]=l):l=t[2];let u=l,d;t[3]===n.height?d=t[4]:(d={colorScheme:`light`,height:n.height},t[3]=n.height,t[4]=d);let f=d,p;return t[5]!==u||t[6]!==f?(p=(0,a.jsx)(`iframe`,{allow:o,className:`block w-full border-0 bg-transparent`,loading:`lazy`,src:u,style:f,title:`Spotify embed`}),t[5]=u,t[6]=f,t[7]=p):p=t[7],p}export{c as default};