import{jsx as e}from"react/jsx-runtime";import{forwardRef as t}from"react";import{useI18nStore as r}from"@gem-sdk/core";import i from"../../../../../common/components/TooltipHover.js";import{SubscriptionEnum as o}from"../../../constants/index.js";let p=t(({setting:t},p)=>{let{t:s}=r();return e("div",{ref:p,"data-selling-type":t?.sellingType,id:"product-subscription",children:e(i,{enable:!0,text:s("Not be displayed when published"),width:"205px",position:"bottom",className:"gp-arrow-left-offset-10",children:e("div",{className:"gp-px-2 gp-py-1 gp-flex gp-border gp-border-light-200 gp-items-center gp-justify-center gp-rounded-lg gp-w-fit",style:{borderStyle:"dashed",strokeDasharray:"2,2"},children:e("span",{className:"gp-text-dark-400 gp-text-[12px] gp-leading-5",children:s(t?.sellingType===o.ONE_TIME?"This product is only available as a subscription":"This product is only available as a one-time purchase")})})})})});p.displayName="OneTimePurchaseTooltip";export{p as OneTimePurchaseTooltip};
