'use client';
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),s=require("../../text/components/Text.js"),t=require("@gem-sdk/system"),r=require("../common/classes.js"),l=require("../common/styles.js"),a=require("../common/helpers.js");exports.default=({builderAttrs:n,setting:o={},styles:c,builderProps:i})=>{let{link:m,label:u}=o,{textAlign:g,typo:x,width:y}=c??{},C=a.getComponentTag(m),d=t.createClass({...r.getClasses({builderProps:i,styles:c})}),j=t.createStyle({...l.getStyle(y)}),p=t.createClass({...r.getComponentClasses(m)}),S=t.createStyle({...l.getComponentStyles()}),f=l.getTextStyle({textAlign:g,typo:x}),h=t.createClass({...r.getTextClasses(m)}),q=t.createClass({...r.getElementMarginClasses()});return e.jsx("div",{...n,className:d,children:e.jsxs("div",{style:j,children:[e.jsx(C,{href:m,target:"_blank",rel:"noreferrer",className:p,style:S,children:e.jsx(s.default,{styles:{...f},setting:{text:u},textClass:h})}),x?.fontSize===a.PostPurchaseFontSizeValue.XLarge&&e.jsx("div",{className:q})]})})};
