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