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