"use strict";var jsxRuntime=require("react/jsx-runtime"),React=require("react"),core=require("@gem-sdk/core"),TooltipHover=require("../../../../../common/components/TooltipHover.js"),index=require("../../../constants/index.js");const OneTimePurchaseTooltip=React.forwardRef(({setting:e},i)=>{let{t}=core.useI18nStore();return jsxRuntime.jsx("div",{ref:i,"data-selling-type":e?.sellingType,id:"product-subscription",children:jsxRuntime.jsx(TooltipHover.default,{enable:!0,text:t("Not be displayed when published"),width:"205px",position:"bottom",className:"gp-arrow-left-offset-10",children:jsxRuntime.jsx("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:jsxRuntime.jsx("span",{className:"gp-text-dark-400 gp-text-[12px] gp-leading-5",children:t(e?.sellingType===index.SubscriptionEnum.ONE_TIME?"This product is only available as a subscription":"This product is only available as a one-time purchase")})})})})});OneTimePurchaseTooltip.displayName="OneTimePurchaseTooltip",exports.OneTimePurchaseTooltip=OneTimePurchaseTooltip;
