"use strict";const postPurchaseTextColor={success:"#0ca127",warning:"#b88700",critical:"#e22222",boldDefault:"#333",default:"#545454",defaultButton:"#fff",defaultLink:"#1879b9"},postPurchaseBgColor={success:"#e8f8eb",warning:"#fff8e0",critical:"#ffebeb",default:"#f0f8ff",info:"#f0f8ff"},postPurchaseBorderColor={success:"#d0ecd3",warning:"#f0e4bc",critical:"#facccc",default:"#d1e6f5",info:"#d1e6f5"},postPurchaseFontWeight={normal:"400",bold:"500"},postPurchaseFontSize={small:"12px",medium:"16px",large:"18px",xlarge:"24px"},makeTextColor=(e,o)=>"default"===e&&"bold"===o?postPurchaseTextColor.boldDefault:postPurchaseTextColor[e||"default"],makeBgColor=e=>postPurchaseBgColor[e||"default"],makeBorderColor=e=>postPurchaseBorderColor[e||"default"],makeFontWeight=e=>postPurchaseFontWeight[e||"normal"],makeFontSize=e=>e&&"default"!==e?postPurchaseFontSize[e||"medium"]:"14px",buttonColor={primary:"#1879b9",defaultText:"#fff",secondary:"#d9d9d9"},postPurchaseSpacing={none:"14px",xtight:"5px",tight:"9px",loose:"21px",xloose:"38px"},postPurchaseViewSpacing={base:"28px",extraTight:"10px",tight:"18px",loose:"42px",extraLoose:"76px"},checkIsValidURL=e=>{let o=/^(?:https?:\/\/|ftp:\/\/|ftps:\/\/)(?:[a-zA-Z\d-]+\.)+[a-zA-Z]{2,}(?:\/\S*)?$/;return o.test(e)};exports.buttonColor=buttonColor,exports.checkIsValidURL=checkIsValidURL,exports.makeBgColor=makeBgColor,exports.makeBorderColor=makeBorderColor,exports.makeFontSize=makeFontSize,exports.makeFontWeight=makeFontWeight,exports.makeTextColor=makeTextColor,exports.postPurchaseBgColor=postPurchaseBgColor,exports.postPurchaseBorderColor=postPurchaseBorderColor,exports.postPurchaseFontSize=postPurchaseFontSize,exports.postPurchaseFontWeight=postPurchaseFontWeight,exports.postPurchaseSpacing=postPurchaseSpacing,exports.postPurchaseTextColor=postPurchaseTextColor,exports.postPurchaseViewSpacing=postPurchaseViewSpacing;
