'use client';
import{jsxs as e,jsx as t}from"react/jsx-runtime";import{createClass as o,createStyle as s}from"@gem-sdk/system";import{useGetTimeExpired as m}from"../hooks/useGetTimeExpired.js";import{getCountdownTimerWrapperClasses as r}from"../common/classes.js";import{getTextCountdownWrapperStyles as i}from"../common/styles.js";import{TextCountdown as d}from"./TextCountdown.js";let PostPurchaseCountdownTimer=({setting:n={},styles:u={},style:l,builderAttrs:c,builderProps:a,children:p})=>{let{width:f,align:h,bgColor:j}=u,{expired:y}=n,{dateTimeExpired:T}=m(y),w=o(r(h,a?.uid)),x=s(i(f,j));return e("div",{...c,className:w,style:{...l},id:`countdown-timer-${a?.uid}`,children:[t("div",{style:x,children:t(d,{dateTime:T,setting:n,styles:u})}),p]})};export{PostPurchaseCountdownTimer as default};
