'use client';
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var jsxRuntime=require("react/jsx-runtime"),system=require("@gem-sdk/system"),useGetTimeExpired=require("../hooks/useGetTimeExpired.js"),classes=require("../common/classes.js"),styles=require("../common/styles.js"),TextCountdown=require("./TextCountdown.js");const PostPurchaseCountdownTimer=({setting:e={},styles:s={},style:t,builderAttrs:r,builderProps:i,children:u})=>{let{width:n,align:o,bgColor:d}=s,{expired:m}=e,{dateTimeExpired:l}=useGetTimeExpired.useGetTimeExpired(m),x=system.createClass(classes.getCountdownTimerWrapperClasses(o,i?.uid)),a=system.createStyle(styles.getTextCountdownWrapperStyles(n,d));return jsxRuntime.jsxs("div",{...r,className:x,style:{...t},id:`countdown-timer-${i?.uid}`,children:[jsxRuntime.jsx("div",{style:a,children:jsxRuntime.jsx(TextCountdown.TextCountdown,{dateTime:l,setting:e,styles:s})}),u]})};exports.default=PostPurchaseCountdownTimer;
