{"version":3,"file":"Slider.DMHT7FJs.mjs","names":["React.useMemo"],"sources":["https:/framerusercontent.com/modules/lY0ONwPLCGCRoUZ9SKRo/c8vjb7mQ73mdaCemfwU1/Slider.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"],"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,EAAe,EAAQ,EAAc,KAAK,IAAI,EAAE,EAAW,EAAe,EAAQ,EAASA,MAAkB,GAAO,EAAM,OAAO,EAAM,EAAa,CAAC,CAAK,CAAC,EAAQ,EAAcA,MAAkB,CAAC,GAAG,EAAS,GAAG,CAAQ,EAAE,CAAC,CAAQ,CAAC,EAAQ,EAAcA,MAAkB,gBAAgB,KAAK,OAAO,CAAC,CAAC,SAAS,EAAE,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,EAAQ,EAAY,KAAK,IAAI,GAAG,EAAS,OAAO,CAAC,EAAQ,EAAkB,KAAK,IAAI,EAAY,CAAK,EAAQ,EAAe;qBAC/1C,EAAc;;;;;;;;MAQ7B,OAAoB,EAAM,MAAM,CAAC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