{"version":3,"file":"Youtubembed.DM2ZSA2q.mjs","names":["React.useMemo","React.useMemo"],"sources":["https:/framerusercontent.com/modules/lY0ONwPLCGCRoUZ9SKRo/c8vjb7mQ73mdaCemfwU1/Slider.js","https:/framerusercontent.com/modules/hZ0vRjKYV9PZxReNZule/rAIqmEk1IOwq3biJ0tGm/Youtubembed.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import*as React from\"react\";import{ControlType}from\"framer\";const defaultLogos=[{label:\"adisyon\",src:\"https://dummyimage.com/160x60/dd3d2c/ffffff&text=adisyo\",alt:\"adisyon\"},{label:\"bizim hesap\",src:\"https://dummyimage.com/160x60/134f2d/ffffff&text=bizim+hesap\",alt:\"bizim hesap\"},{label:\"QRall\",src:\"https://dummyimage.com/160x60/0d0d0d/ffffff&text=QRall\",alt:\"QRall\"},{label:\"Clinyo\",src:\"https://dummyimage.com/160x60/2a2e69/ffffff&text=Clinyo\",alt:\"Clinyo\"},{label:\"bulutvet\",src:\"https://dummyimage.com/160x60/5b5efd/ffffff&text=bulutvet\",alt:\"bulutvet\"}];export function BrandSlider({logos,height=88,gap=32,speed=20,backgroundColor=\"transparent\",borderRadius=32,paddingY=20,cardBackgroundColor=\"var(--token-d9313761-c6fb-47e8-b4b9-96f8223db9f6, rgb(245, 246, 244))\",cardWidth=170,cardHeight=88}){const innerPaddingX=20;const innerPaddingY=14;const maxLogoWidth=Math.max(1,cardWidth-innerPaddingX*2);const maxLogoHeight=Math.max(1,cardHeight-innerPaddingY*2);const logoList=React.useMemo(()=>logos&&logos.length?logos:defaultLogos,[logos]);const repeatedLogos=React.useMemo(()=>[...logoList,...logoList],[logoList]);const animationName=React.useMemo(()=>`brand-slider-${Math.random().toString(36).slice(2)}`,[]);const minDuration=Math.max(12,logoList.length*2);const animationDuration=Math.max(minDuration,speed);const animationStyle=`\n        @keyframes ${animationName} {\n            0% {\n                transform: translateX(0);\n            }\n            100% {\n                transform: translateX(-50%);\n            }\n        }\n    `;return /*#__PURE__*/_jsxs(\"div\",{style:{width:\"100%\",overflow:\"hidden\",background:backgroundColor,borderRadius,padding:`${paddingY}px 0`,boxSizing:\"border-box\"},children:[/*#__PURE__*/_jsx(\"style\",{children:animationStyle}),/*#__PURE__*/_jsx(\"div\",{style:{display:\"flex\",gap,alignItems:\"center\",width:\"max-content\",animation:`${animationName} ${animationDuration}s linear infinite`},children:repeatedLogos.map((logo,index)=>/*#__PURE__*/_jsx(\"div\",{style:{minWidth:cardWidth,maxWidth:cardWidth,height:cardHeight,display:\"flex\",alignItems:\"center\",justifyContent:\"center\"},children:/*#__PURE__*/_jsx(\"div\",{style:{width:cardWidth,height:cardHeight,borderRadius:16,background:cardBackgroundColor,opacity:1,display:\"flex\",alignItems:\"center\",justifyContent:\"center\",padding:`${innerPaddingY}px ${innerPaddingX}px`},children:/*#__PURE__*/_jsx(\"img\",{src:logo.src,alt:logo.alt??`logo-${index}`,style:{maxHeight:Math.min(maxLogoHeight,cardHeight*.7),maxWidth:maxLogoWidth,objectFit:\"contain\",width:\"auto\",height:\"auto\"}})})},`${logo.label??index}-${index}`))})]});}export default BrandSlider;BrandSlider.defaultProps={logos:defaultLogos,height:88,gap:32,speed:20,backgroundColor:\"transparent\",borderRadius:32,paddingY:20,cardBackgroundColor:\"var(--token-d9313761-c6fb-47e8-b4b9-96f8223db9f6, rgb(245, 246, 244))\",cardWidth:170,cardHeight:88};BrandSlider.propertyControls={logos:{type:ControlType.Array,title:\"Logolar\",propertyControl:{type:ControlType.Object,controls:{src:{type:ControlType.Image,title:\"Logo\"},alt:{type:ControlType.String,title:\"Alt metin\"},label:{type:ControlType.String,title:\"Etiket\"}}}},height:{type:ControlType.Number,title:\"Y\\xfckseklik\",min:32,max:160,step:1},gap:{type:ControlType.Number,title:\"Aralık\",min:16,max:80,step:2},speed:{type:ControlType.Number,title:\"D\\xf6ng\\xfc s\\xfcresi (s)\",min:8,max:60,step:1},backgroundColor:{type:ControlType.Color,title:\"Zemin rengi\"},cardBackgroundColor:{type:ControlType.Color,title:\"Logo kutu rengi\"},cardWidth:{type:ControlType.Number,title:\"Kutu genişliği\",min:120,max:260,step:2},cardHeight:{type:ControlType.Number,title:\"Kutu y\\xfcksekliği\",min:60,max:160,step:2},borderRadius:{type:ControlType.Number,title:\"K\\xf6şe yarı\\xe7apı\",min:0,max:64,step:1},paddingY:{type:ControlType.Number,title:\"\\xdcst/alt dolgu\",min:0,max:64,step:2}};\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"BrandSlider\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"BrandLogo\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"BrandSlider\":{\"type\":\"reactComponent\",\"name\":\"BrandSlider\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"BrandSliderProps\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Slider.map","import{jsx as _jsx}from\"react/jsx-runtime\";import*as React from\"react\";import{ControlType}from\"framer\";const extractVideoMeta=value=>{if(!value){return{id:\"\",params:{}};}try{const parsed=new URL(value);const params={};parsed.searchParams.forEach((paramValue,key)=>{if(key.toLowerCase()!==\"v\"){params[key]=paramValue;}});const hostname=parsed.hostname.toLowerCase();if(hostname.includes(\"youtu.be\")){const videoId=parsed.pathname.slice(1);return{id:videoId,params};}if(hostname.includes(\"youtube.com\")){const videoId=parsed.searchParams.get(\"v\")??\"\";return{id:videoId,params};}}catch{// If the string is not a URL, treat it as a plain ID\nreturn{id:value,params:{}};}return{id:value,params:{}};};export function YouTubeEmbed({videoUrl,videoId,aspectRatio=16/9,autoplay=false,muted=true,loop=false,startAt=0,controls=true}){const resolvedMeta=React.useMemo(()=>extractVideoMeta(videoUrl),[videoUrl]);const resolvedId=React.useMemo(()=>{if(videoId)return videoId;return resolvedMeta.id;},[videoId,resolvedMeta.id]);const params=React.useMemo(()=>{const query=new URLSearchParams;const entries=Object.entries(resolvedMeta.params);entries.forEach(([key,value])=>{query.set(key,value);});const overrides={autoplay:autoplay?\"1\":\"0\",mute:muted?\"1\":\"0\",controls:controls?\"1\":\"0\",loop:loop?\"1\":undefined,playlist:loop?resolvedId:undefined,start:startAt?startAt.toString():undefined};Object.entries(overrides).forEach(([key,value])=>{if(value===undefined){query.delete(key);}else{query.set(key,value);}});return query.toString();},[resolvedId,resolvedMeta.params,autoplay,muted,controls,loop,startAt]);const src=resolvedId&&`https://www.youtube.com/embed/${resolvedId}${params?`?${params}`:\"\"}`;const paddingTop=`${1/aspectRatio*100}%`;return /*#__PURE__*/_jsx(\"div\",{style:{width:\"100%\",paddingTop,position:\"relative\",borderRadius:16,overflow:\"hidden\",background:\"#000\"},children:src?/*#__PURE__*/_jsx(\"iframe\",{title:\"YouTube embed\",src:src,allow:\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture\",allowFullScreen:true,frameBorder:0,style:{position:\"absolute\",inset:0,width:\"100%\",height:\"100%\"}}):/*#__PURE__*/_jsx(\"div\",{style:{position:\"absolute\",inset:0,background:\"rgba(0,0,0,0.4)\",color:\"white\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\",fontSize:14},children:\"Bir YouTube video bağlantısı veya id girin.\"})});}YouTubeEmbed.defaultProps={aspectRatio:16/9,autoplay:false,muted:true,loop:false,startAt:0,controls:true};YouTubeEmbed.propertyControls={videoUrl:{type:ControlType.String,title:\"Video URL\",placeholder:\"https://youtu.be/...\"},videoId:{type:ControlType.String,title:\"Video ID\",placeholder:\"YbJOTdZBX1g\"},aspectRatio:{type:ControlType.Number,title:\"Aspect Ratio\",min:.5,max:3,step:.1},autoplay:{type:ControlType.Boolean,title:\"Autoplay\"},muted:{type:ControlType.Boolean,title:\"Muted (autoplay)\"},loop:{type:ControlType.Boolean,title:\"Loop\"},startAt:{type:ControlType.Number,title:\"Start Seconds\",min:0,max:300,step:1},controls:{type:ControlType.Boolean,title:\"Show controls\"}};export default YouTubeEmbed;\nexport const __FramerMetadata__ = {\"exports\":{\"YouTubeEmbed\":{\"type\":\"reactComponent\",\"name\":\"YouTubeEmbed\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"default\":{\"type\":\"reactComponent\",\"name\":\"YouTubeEmbed\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"YouTubeEmbedProps\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Youtubembed.map"],"mappings":"0KAA0mB,SAAgB,EAAY,CAAC,QAAM,SAAO,GAAG,MAAI,GAAG,QAAM,GAAG,kBAAgB,cAAc,eAAa,GAAG,WAAS,GAAG,sBAAoB,wEAAwE,YAAU,IAAI,aAAW,IAAI,CAAC,IAAoD,EAAa,KAAK,IAAI,EAAE,EAAU,GAAgB,CAAO,EAAc,KAAK,IAAI,EAAE,EAAW,GAAgB,CAAO,EAASA,MAAkB,GAAO,EAAM,OAAO,EAAM,EAAa,CAAC,EAAM,CAAC,CAAO,EAAcA,MAAkB,CAAC,GAAG,EAAS,GAAG,EAAS,CAAC,CAAC,EAAS,CAAC,CAAO,EAAcA,MAAkB,gBAAgB,KAAK,QAAQ,CAAC,SAAS,GAAG,CAAC,MAAM,EAAE,GAAG,EAAE,CAAC,CAAO,EAAY,KAAK,IAAI,GAAG,EAAS,OAAO,EAAE,CAAO,EAAkB,KAAK,IAAI,EAAY,EAAM,CAAO,EAAe;qBAC/1C,EAAc;;;;;;;;MAQ7B,OAAoB,EAAM,MAAM,CAAC,MAAM,CAAC,MAAM,OAAO,SAAS,SAAS,WAAW,EAAgB,eAAa,QAAQ,GAAG,EAAS,MAAM,UAAU,aAAa,CAAC,SAAS,CAAc,EAAK,QAAQ,CAAC,SAAS,EAAe,CAAC,CAAc,EAAK,MAAM,CAAC,MAAM,CAAC,QAAQ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