{"version":3,"file":"CountdownTimerBanner.DBSK-WWz.mjs","names":["React.forwardRef","React.useState","React.Fragment","u"],"sources":["https:/framerusercontent.com/modules/7VFa2xaumW6NO1GAW3J5/nGou7qBUM4cgW2H3CT9d/ti4V05x8Q.js","https:/framerusercontent.com/modules/NWNyUfmdWx3Q4xyIPyqk/AhWzCFL1RAEFEJCThdLb/CountdownTimerBanner.js"],"sourcesContent":["// Generated by Framer (85eaff3)\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType,cx,motion,useSVGTemplate,withCSS}from\"framer\";import*as React from\"react\";import{forwardRef}from\"react\";const mask=\"var(--framer-icon-mask)\";const Base=/*#__PURE__*/forwardRef(function(props,ref){return /*#__PURE__*/_jsx(\"svg\",{...props,ref:ref,children:props.children});});const MotionSVG=motion.create(Base);const SVG=/*#__PURE__*/forwardRef((props,ref)=>{const{animated,layoutId,children,...rest}=props;return animated?/*#__PURE__*/_jsx(MotionSVG,{...rest,layoutId:layoutId,ref:ref,children:children}):/*#__PURE__*/_jsx(\"svg\",{...rest,ref:ref,children:children});});const svg='<svg display=\"block\" role=\"presentation\" viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M 7 0 C 7.667 2.667 9 4.833 11 6.5 C 13 8.167 14 10 14 12 C 14 15.866 10.866 19 7 19 C 3.134 19 0 15.866 0 12 C 0 10.918 0.351 9.865 1 9 C 1 10.381 2.119 11.5 3.5 11.5 C 4.881 11.5 6 10.381 6 9 C 6 7 4.5 6 4.5 4 C 4.5 2.667 5.333 1.333 7 0\" fill=\"transparent\" height=\"19px\" id=\"YWk4wqTs7\" stroke-dasharray=\"\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"var(--js9iwy, 2)\" stroke=\"var(--1m973uw, rgb(0,0,0))\" transform=\"translate(5 3)\" width=\"14px\"/></svg>';const getProps=({color,height,id,width,width1,...props})=>{return{...props,JEeZYcamG:width1??props.JEeZYcamG??2,P_DcoRcrY:color??props.P_DcoRcrY??\"rgb(0, 0, 0)\"};};const Component=/*#__PURE__*/React.forwardRef(function(props,ref){const{style,className,layoutId,variant,P_DcoRcrY,JEeZYcamG,...restProps}=getProps(props);const href=useSVGTemplate(\"2878881455\",svg);return /*#__PURE__*/_jsx(SVG,{...restProps,className:cx(\"framer-eS8Hy\",className),layoutId:layoutId,ref:ref,role:\"presentation\",style:{\"--1m973uw\":P_DcoRcrY,\"--js9iwy\":JEeZYcamG,...style},viewBox:\"0 0 24 24\",children:/*#__PURE__*/_jsx(\"use\",{href:href})});});const css=[`.framer-eS8Hy { -webkit-mask: ${mask}; aspect-ratio: 1; display: block; mask: ${mask}; width: 24px; }`];/**\n * This is a generated Framer component.\n * @framerIntrinsicWidth 24\n * @framerIntrinsicHeight 24\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n * @framerVariables {\"P_DcoRcrY\":\"color\",\"JEeZYcamG\":\"width1\"}\n * @framerImmutableVariables true\n * @framerVector {\"name\":\"Flame\",\"color\":{\"type\":\"variable\",\"value\":\"1m973uw\"},\"set\":{\"localId\":\"vectorSet/ZsiCCGPvG\",\"id\":\"ZsiCCGPvG\",\"moduleId\":\"Y7SpbVH16cWqMhj75z1M\"}}\n */const Icon=withCSS(Component,css,\"framer-eS8Hy\");Icon.displayName=\"Flame\";export default Icon;addPropertyControls(Icon,{P_DcoRcrY:{defaultValue:\"rgb(0, 0, 0)\",hidden:false,title:\"Color\",type:ControlType.Color},JEeZYcamG:{defaultValue:2,displayStepper:true,hidden:false,max:16,min:1,title:\"Width\",type:ControlType.Number}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"Icon\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerImmutableVariables\":\"true\",\"framerContractVersion\":\"1\",\"framerIntrinsicWidth\":\"24\",\"framerSupportedLayoutHeight\":\"any-prefer-fixed\",\"framerVariables\":\"{\\\"P_DcoRcrY\\\":\\\"color\\\",\\\"JEeZYcamG\\\":\\\"width1\\\"}\",\"framerIntrinsicHeight\":\"24\",\"framerVector\":\"{\\\"name\\\":\\\"Flame\\\",\\\"color\\\":{\\\"type\\\":\\\"variable\\\",\\\"value\\\":\\\"1m973uw\\\"},\\\"set\\\":{\\\"localId\\\":\\\"vectorSet/ZsiCCGPvG\\\",\\\"id\\\":\\\"ZsiCCGPvG\\\",\\\"moduleId\\\":\\\"Y7SpbVH16cWqMhj75z1M\\\"}}\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}","import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import*as React from\"react\";const TARGET=new Date(\"2026-08-31T23:59:59+03:00\").getTime();function getRemaining(){const diff=Math.max(0,TARGET-Date.now());const days=Math.floor(diff/(1e3*60*60*24));const hours=Math.floor(diff/(1e3*60*60)%24);const minutes=Math.floor(diff/(1e3*60)%60);const seconds=Math.floor(diff/1e3%60);return{days,hours,minutes,seconds,done:diff<=0};}/**\n * @framerIntrinsicWidth 220\n * @framerIntrinsicHeight 50\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight auto\n */export default function CountdownTimerBanner(props){const[time,setTime]=React.useState(getRemaining);React.useEffect(()=>{const id=setInterval(()=>setTime(getRemaining()),1e3);return()=>clearInterval(id);},[]);if(time.done){return /*#__PURE__*/_jsx(\"div\",{style:{...props.style,fontFamily:\"Poppins, system-ui, sans-serif\",fontSize:13,fontWeight:600,color:\"#FFFFFF\"},children:\"Offer has ended\"});}const units=[{value:time.days,label:\"Days\"},{value:time.hours,label:\"Hrs\"},{value:time.minutes,label:\"Min\"},{value:time.seconds,label:\"Sec\"}];return /*#__PURE__*/_jsxs(\"div\",{className:\"ctb-wrap\",style:props.style,children:[/*#__PURE__*/_jsx(\"style\",{children:`\n        .ctb-wrap{display:flex;align-items:center;gap:6px;font-family:Poppins,system-ui,sans-serif}\n        .ctb-box{display:flex;flex-direction:column;align-items:center;justify-content:center;background:rgba(255,255,255,0.18);border-radius:6px;min-width:30px;padding:4px 5px}\n        .ctb-num{font-family:\"Bricolage Grotesque\",Poppins,sans-serif;font-weight:700;font-size:14px;line-height:1;color:#FFFFFF;font-variant-numeric:tabular-nums}\n        .ctb-label{font-size:6.5px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:rgba(255,255,255,0.75);margin-top:2px}\n        .ctb-sep{font-size:13px;font-weight:700;color:rgba(255,255,255,0.6)}\n      `}),units.map((u,i)=>/*#__PURE__*/_jsxs(React.Fragment,{children:[/*#__PURE__*/_jsxs(\"div\",{className:\"ctb-box\",children:[/*#__PURE__*/_jsx(\"span\",{className:\"ctb-num\",children:String(u.value).padStart(2,\"0\")}),/*#__PURE__*/_jsx(\"span\",{className:\"ctb-label\",children:u.label})]}),i<units.length-1&&/*#__PURE__*/_jsx(\"span\",{className:\"ctb-sep\",children:\":\"})]},u.label))]});}\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"CountdownTimerBanner\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerIntrinsicHeight\":\"50\",\"framerSupportedLayoutHeight\":\"auto\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerIntrinsicWidth\":\"220\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./CountdownTimerBanner.map"],"mappings":"qSAC0C,IAAqF,IAA4B,EAAqC,EAAK,0BAAgC,EAAkB,EAAW,SAAS,EAAM,EAAI,CAAC,OAAoB,EAAK,MAAM,CAAC,GAAG,EAAU,MAAI,SAAS,EAAM,QAAQ,CAAC,CAAE,CAAC,EAAQ,EAAU,EAAO,OAAO,CAAI,EAAQ,EAAiB,GAAY,EAAM,IAAM,CAAC,GAAK,CAAC,WAAS,WAAS,WAAS,GAAG,GAAM,EAAM,OAAO,EAAsB,EAAK,EAAU,CAAC,GAAG,EAAc,WAAa,MAAa,UAA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