'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,direction:C}=c??{},d=a.getComponentTag(m),j=t.createClass({...r.getClasses({builderProps:i,styles:c})}),p=t.createStyle({...l.getStyle(y)}),S=t.createClass({...r.getComponentClasses(m)}),f=t.createStyle({...l.getComponentStyles()}),h=l.getTextStyle({textAlign:g,typo:x}),q=t.createClass({...r.getTextClasses(m)}),v=t.createClass({...r.getElementMarginClasses()});return e.jsx("div",{...n,className:j,children:e.jsxs("div",{style:p,children:[e.jsx(d,{href:m,target:"_blank",rel:"noreferrer",className:S,style:f,children:e.jsx(s.default,{styles:{...h,direction:C},setting:{text:u},textClass:q})}),x?.fontSize===a.PostPurchaseFontSizeValue.XLarge&&e.jsx("div",{className:v})]})})};
