'use client';
"use strict";var jsxRuntime=require("react/jsx-runtime"),system=require("@gem-sdk/system"),Text=require("../../text/components/Text.js"),useCountdownTimer=require("../hooks/useCountdownTimer.js"),classes=require("../common/classes.js");const TextCountdown=e=>{let{dateTime:s,setting:t,styles:n}=e,{typo:o,textAlign:u,direction:r}=n||{},{conditionText:x,expiredText:i}=t||{},{format:m,isExpired:d}=useCountdownTimer.useCountdown(s),{text:C}=useCountdownTimer.useGetTextExpired({isExpired:d,expiredText:i,conditionText:x,format:m}),T=system.createClass(classes.getTextCountdownClass());return jsxRuntime.jsx(Text.default,{setting:{text:C},styles:{typo:o,textAlign:u,direction:r},textClass:T})};exports.TextCountdown=TextCountdown;
