"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),i=require("@gem-sdk/core"),t=require("@gem-sdk/system"),s=require("./components/ProductSubscriptionContent.js"),r=require("./components/OneTimePurchaseTooltip.js"),n=require("./hooks/useProductSubscriptionContentData.js");exports.default=({styles:o,setting:l,builderProps:c,builderAttrs:d,style:u,children:a})=>{let{isEditMode:p}=i.useRenderMode(),m=t.createStyle({...u}),y=n.useProductSubscriptionContentData({setting:l,styles:o,builderProps:c});return y.visibility.isOneTimeHidden||y.visibility.hasNoSellingPlanOptions||y.isDynamicProduct?e.jsxs("div",{...d,style:m,children:[p&&e.jsx(r.OneTimePurchaseTooltip,{ref:y.componentRef,setting:l}),i.filterToolbarPreview(a,!0)]}):y.visibility.isOnetimeOnly&&!p?"":e.jsxs("div",{...d,style:m,children:[e.jsx("div",{ref:y.componentRef,dir:y.direction,"data-selling-type":l?.sellingType,id:y.componentId,className:y.wrapperClasses,style:y.subscriptionWrapperStyles,children:e.jsx(s.ProductSubscriptionContent,{data:y,setting:l,styles:o,builderProps:c})}),i.filterToolbarPreview(a,!0)]})};
