"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.PictogramBleed = exports.Pictogram = exports.IOPictogramsObject = exports.IOPictogramsBleed = exports.IOPictograms = void 0;
var _react = require("react");
var _context = require("../../context");
var _IOColors = require("../../core/IOColors");
var _accessibility = require("../../utils/accessibility");
var _PictogramAccessDenied = _interopRequireDefault(require("./svg/PictogramAccessDenied"));
var _PictogramActivate = _interopRequireDefault(require("./svg/PictogramActivate"));
var _PictogramAttachment = _interopRequireDefault(require("./svg/PictogramAttachment"));
var _PictogramAttention = _interopRequireDefault(require("./svg/PictogramAttention"));
var _PictogramBiometric = _interopRequireDefault(require("./svg/PictogramBiometric"));
var _PictogramCameraDenied = _interopRequireDefault(require("./svg/PictogramCameraDenied"));
var _PictogramCameraRequest = _interopRequireDefault(require("./svg/PictogramCameraRequest"));
var _PictogramCharity = _interopRequireDefault(require("./svg/PictogramCharity"));
var _PictogramCie = _interopRequireDefault(require("./svg/PictogramCie"));
var _PictogramComunicationProblem = _interopRequireDefault(require("./svg/PictogramComunicationProblem"));
var _PictogramEmpty = _interopRequireDefault(require("./svg/PictogramEmpty"));
var _PictogramEmptyArchive = _interopRequireDefault(require("./svg/PictogramEmptyArchive"));
var _PictogramFatalError = _interopRequireDefault(require("./svg/PictogramFatalError"));
var _PictogramFeature = _interopRequireDefault(require("./svg/PictogramFeature"));
var _PictogramFeedback = _interopRequireDefault(require("./svg/PictogramFeedback"));
var _PictogramHello = _interopRequireDefault(require("./svg/PictogramHello"));
var _PictogramHelp = _interopRequireDefault(require("./svg/PictogramHelp"));
var _PictogramITWallet = _interopRequireDefault(require("./svg/PictogramITWallet"));
var _PictogramIdentity = _interopRequireDefault(require("./svg/PictogramIdentity"));
var _PictogramIdentityAdd = _interopRequireDefault(require("./svg/PictogramIdentityAdd"));
var _PictogramIdentityCheck = _interopRequireDefault(require("./svg/PictogramIdentityCheck"));
var _PictogramIdentityRefresh = _interopRequireDefault(require("./svg/PictogramIdentityRefresh"));
var _PictogramNotification = _interopRequireDefault(require("./svg/PictogramNotification"));
var _PictogramObjClock = _interopRequireDefault(require("./svg/PictogramObjClock"));
var _PictogramObjFlyingMessage = _interopRequireDefault(require("./svg/PictogramObjFlyingMessage"));
var _PictogramObjFollowMessage = _interopRequireDefault(require("./svg/PictogramObjFollowMessage"));
var _PictogramObjIbanCard = _interopRequireDefault(require("./svg/PictogramObjIbanCard"));
var _PictogramObjKey = _interopRequireDefault(require("./svg/PictogramObjKey"));
var _PictogramObjManual = _interopRequireDefault(require("./svg/PictogramObjManual"));
var _PictogramObjTrash = _interopRequireDefault(require("./svg/PictogramObjTrash"));
var _PictogramPasscode = _interopRequireDefault(require("./svg/PictogramPasscode"));
var _PictogramPayments = _interopRequireDefault(require("./svg/PictogramPayments"));
var _PictogramPremiumCredentials = _interopRequireDefault(require("./svg/PictogramPremiumCredentials"));
var _PictogramSecurity = _interopRequireDefault(require("./svg/PictogramSecurity"));
var _PictogramStopSecurity = _interopRequireDefault(require("./svg/PictogramStopSecurity"));
var _PictogramSuccess = _interopRequireDefault(require("./svg/PictogramSuccess"));
var _PictogramTime = _interopRequireDefault(require("./svg/PictogramTime"));
var _PictogramUmbrella = _interopRequireDefault(require("./svg/PictogramUmbrella"));
var _PictogramUpdateOS = _interopRequireDefault(require("./svg/PictogramUpdateOS"));
var _PictogramWorkInProgress = _interopRequireDefault(require("./svg/PictogramWorkInProgress"));
var _PictogramBleedAccessDenied = _interopRequireDefault(require("./svg/PictogramBleedAccessDenied"));
var _PictogramBleedActivate = _interopRequireDefault(require("./svg/PictogramBleedActivate"));
var _PictogramBleedAttachment = _interopRequireDefault(require("./svg/PictogramBleedAttachment"));
var _PictogramBleedAttention = _interopRequireDefault(require("./svg/PictogramBleedAttention"));
var _PictogramBleedCameraDenied = _interopRequireDefault(require("./svg/PictogramBleedCameraDenied"));
var _PictogramBleedCameraRequest = _interopRequireDefault(require("./svg/PictogramBleedCameraRequest"));
var _PictogramBleedCardAdd = _interopRequireDefault(require("./svg/PictogramBleedCardAdd"));
var _PictogramBleedCardFavourite = _interopRequireDefault(require("./svg/PictogramBleedCardFavourite"));
var _PictogramBleedCardIssue = _interopRequireDefault(require("./svg/PictogramBleedCardIssue"));
var _PictogramBleedCardQuestion = _interopRequireDefault(require("./svg/PictogramBleedCardQuestion"));
var _PictogramBleedCharity = _interopRequireDefault(require("./svg/PictogramBleedCharity"));
var _PictogramBleedCie = _interopRequireDefault(require("./svg/PictogramBleedCie"));
var _PictogramBleedDoc = _interopRequireDefault(require("./svg/PictogramBleedDoc"));
var _PictogramBleedEmailDotNotif = _interopRequireDefault(require("./svg/PictogramBleedEmailDotNotif"));
var _PictogramBleedEmpty = _interopRequireDefault(require("./svg/PictogramBleedEmpty"));
var _PictogramBleedEnded = _interopRequireDefault(require("./svg/PictogramBleedEnded"));
var _PictogramBleedFatalError = _interopRequireDefault(require("./svg/PictogramBleedFatalError"));
var _PictogramBleedFeature = _interopRequireDefault(require("./svg/PictogramBleedFeature"));
var _PictogramBleedFeedback = _interopRequireDefault(require("./svg/PictogramBleedFeedback"));
var _PictogramBleedHelp = _interopRequireDefault(require("./svg/PictogramBleedHelp"));
var _PictogramBleedITWallet = _interopRequireDefault(require("./svg/PictogramBleedITWallet"));
var _PictogramBleedIdea = _interopRequireDefault(require("./svg/PictogramBleedIdea"));
var _PictogramBleedIdentity = _interopRequireDefault(require("./svg/PictogramBleedIdentity"));
var _PictogramBleedIdentityAdd = _interopRequireDefault(require("./svg/PictogramBleedIdentityAdd"));
var _PictogramBleedIdentityCheck = _interopRequireDefault(require("./svg/PictogramBleedIdentityCheck"));
var _PictogramBleedIdentityRefresh = _interopRequireDefault(require("./svg/PictogramBleedIdentityRefresh"));
var _PictogramBleedLostConnection = _interopRequireDefault(require("./svg/PictogramBleedLostConnection"));
var _PictogramBleedMessage = _interopRequireDefault(require("./svg/PictogramBleedMessage"));
var _PictogramBleedNotification = _interopRequireDefault(require("./svg/PictogramBleedNotification"));
var _PictogramBleedPasscode = _interopRequireDefault(require("./svg/PictogramBleedPasscode"));
var _PictogramBleedPayments = _interopRequireDefault(require("./svg/PictogramBleedPayments"));
var _PictogramBleedPending = _interopRequireDefault(require("./svg/PictogramBleedPending"));
var _PictogramBleedQrCode = _interopRequireDefault(require("./svg/PictogramBleedQrCode"));
var _PictogramBleedReactivate = _interopRequireDefault(require("./svg/PictogramBleedReactivate"));
var _PictogramBleedSavingMoney = _interopRequireDefault(require("./svg/PictogramBleedSavingMoney"));
var _PictogramBleedSearch = _interopRequireDefault(require("./svg/PictogramBleedSearch"));
var _PictogramBleedSecurity = _interopRequireDefault(require("./svg/PictogramBleedSecurity"));
var _PictogramBleedSettings = _interopRequireDefault(require("./svg/PictogramBleedSettings"));
var _PictogramBleedStar = _interopRequireDefault(require("./svg/PictogramBleedStar"));
var _PictogramBleedStopSecurity = _interopRequireDefault(require("./svg/PictogramBleedStopSecurity"));
var _PictogramBleedSuccess = _interopRequireDefault(require("./svg/PictogramBleedSuccess"));
var _PictogramBleedTime = _interopRequireDefault(require("./svg/PictogramBleedTime"));
var _PictogramBleedTiming = _interopRequireDefault(require("./svg/PictogramBleedTiming"));
var _PictogramBleedWorkInProgress = _interopRequireDefault(require("./svg/PictogramBleedWorkInProgress"));
var _PictogramCardAdd = _interopRequireDefault(require("./svg/PictogramCardAdd"));
var _PictogramCardFavourite = _interopRequireDefault(require("./svg/PictogramCardFavourite"));
var _PictogramCardIssue = _interopRequireDefault(require("./svg/PictogramCardIssue"));
var _PictogramCardQuestion = _interopRequireDefault(require("./svg/PictogramCardQuestion"));
var _PictogramDoc = _interopRequireDefault(require("./svg/PictogramDoc"));
var _PictogramEmailDotCheck = _interopRequireDefault(require("./svg/PictogramEmailDotCheck"));
var _PictogramEmailDotNotif = _interopRequireDefault(require("./svg/PictogramEmailDotNotif"));
var _PictogramEmptyWallet = _interopRequireDefault(require("./svg/PictogramEmptyWallet"));
var _PictogramEnded = _interopRequireDefault(require("./svg/PictogramEnded"));
var _PictogramEventClose = _interopRequireDefault(require("./svg/PictogramEventClose"));
var _PictogramFingerprint = _interopRequireDefault(require("./svg/PictogramFingerprint"));
var _PictogramIdea = _interopRequireDefault(require("./svg/PictogramIdea"));
var _PictogramLostConnection = _interopRequireDefault(require("./svg/PictogramLostConnection"));
var _PictogramMessage = _interopRequireDefault(require("./svg/PictogramMessage"));
var _PictogramMeterLimit = _interopRequireDefault(require("./svg/PictogramMeterLimit"));
var _PictogramMoneyCheck = _interopRequireDefault(require("./svg/PictogramMoneyCheck"));
var _PictogramNFCScanAndroid = _interopRequireDefault(require("./svg/PictogramNFCScanAndroid"));
var _PictogramNFCScaniOS = _interopRequireDefault(require("./svg/PictogramNFCScaniOS"));
var _PictogramPending = _interopRequireDefault(require("./svg/PictogramPending"));
var _PictogramPinSecurity = _interopRequireDefault(require("./svg/PictogramPinSecurity"));
var _PictogramQrCode = _interopRequireDefault(require("./svg/PictogramQrCode"));
var _PictogramReactivate = _interopRequireDefault(require("./svg/PictogramReactivate"));
var _PictogramSavingMoney = _interopRequireDefault(require("./svg/PictogramSavingMoney"));
var _PictogramSearchLens = _interopRequireDefault(require("./svg/PictogramSearchLens"));
var _PictogramSendAccess = _interopRequireDefault(require("./svg/PictogramSendAccess"));
var _PictogramSettings = _interopRequireDefault(require("./svg/PictogramSettings"));
var _PictogramSmile = _interopRequireDefault(require("./svg/PictogramSmile"));
var _PictogramStar = _interopRequireDefault(require("./svg/PictogramStar"));
var _PictogramTiming = _interopRequireDefault(require("./svg/PictogramTiming"));
var _PictogramWalletDoc = _interopRequireDefault(require("./svg/PictogramWalletDoc"));
var _jsxRuntime = require("react/jsx-runtime");
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
/* Bleed Pictograms */

/* End Bleed Pictograms */

const IOPictograms = exports.IOPictograms = {
  empty: _PictogramEmpty.default,
  feature: _PictogramFeature.default,
  charity: _PictogramCharity.default,
  attention: _PictogramAttention.default,
  message: _PictogramMessage.default,
  emptyArchive: _PictogramEmptyArchive.default,
  umbrella: _PictogramUmbrella.default,
  feedback: _PictogramFeedback.default,
  idea: _PictogramIdea.default,
  cameraRequest: _PictogramCameraRequest.default,
  cameraDenied: _PictogramCameraDenied.default,
  success: _PictogramSuccess.default,
  fatalError: _PictogramFatalError.default,
  help: _PictogramHelp.default,
  itWallet: _PictogramITWallet.default,
  updateOS: _PictogramUpdateOS.default,
  identity: _PictogramIdentity.default,
  identityAdd: _PictogramIdentityAdd.default,
  identityRefresh: _PictogramIdentityRefresh.default,
  identityCheck: _PictogramIdentityCheck.default,
  accessDenied: _PictogramAccessDenied.default,
  stopSecurity: _PictogramStopSecurity.default,
  settings: _PictogramSettings.default,
  security: _PictogramSecurity.default,
  cie: _PictogramCie.default,
  pending: _PictogramPending.default,
  ended: _PictogramEnded.default,
  time: _PictogramTime.default,
  timing: _PictogramTiming.default,
  searchLens: _PictogramSearchLens.default,
  passcode: _PictogramPasscode.default,
  notification: _PictogramNotification.default,
  star: _PictogramStar.default,
  doc: _PictogramDoc.default,
  cardAdd: _PictogramCardAdd.default,
  cardFavourite: _PictogramCardFavourite.default,
  cardQuestion: _PictogramCardQuestion.default,
  cardIssue: _PictogramCardIssue.default,
  moneyCheck: _PictogramMoneyCheck.default,
  reactivate: _PictogramReactivate.default,
  activate: _PictogramActivate.default,
  nfcScanAndroid: _PictogramNFCScanAndroid.default,
  nfcScaniOS: _PictogramNFCScaniOS.default,
  attachment: _PictogramAttachment.default,
  lostConnection: _PictogramLostConnection.default,
  qrCode: _PictogramQrCode.default,
  emailDotNotif: _PictogramEmailDotNotif.default,
  emailDotCheck: _PictogramEmailDotCheck.default,
  biometric: _PictogramBiometric.default,
  eventClose: _PictogramEventClose.default,
  hello: _PictogramHello.default,
  comunicationProblem: _PictogramComunicationProblem.default,
  payments: _PictogramPayments.default,
  workInProgress: _PictogramWorkInProgress.default,
  smile: _PictogramSmile.default,
  fingerprint: _PictogramFingerprint.default,
  walletDoc: _PictogramWalletDoc.default,
  emptyWallet: _PictogramEmptyWallet.default,
  meterLimit: _PictogramMeterLimit.default,
  savingMoney: _PictogramSavingMoney.default,
  sendAccess: _PictogramSendAccess.default,
  pinSecurity: _PictogramPinSecurity.default,
  premiumCredentials: _PictogramPremiumCredentials.default,
  // Start Objects Pictogram
  ibanCard: _PictogramObjIbanCard.default,
  followMessage: _PictogramObjFollowMessage.default,
  manual: _PictogramObjManual.default,
  trash: _PictogramObjTrash.default,
  clock: _PictogramObjClock.default,
  key: _PictogramObjKey.default,
  flyingMessage: _PictogramObjFlyingMessage.default
  // End Objects Pictogram
};
const Pictogram = ({
  name,
  pictogramStyle = "default",
  size = 120,
  allowFontScaling = false,
  ...props
}) => {
  const theme = (0, _context.useIOTheme)();
  const {
    dynamicFontScale,
    spacingScaleMultiplier
  } = (0, _accessibility.useIOFontDynamicScale)();
  const PictogramElement = IOPictograms[name];
  const pictogramSize = allowFontScaling && typeof size === "number" ? size * dynamicFontScale * spacingScaleMultiplier : size;
  const themeObj = (0, _react.useMemo)(() => {
    switch (pictogramStyle) {
      case "dark-content":
        return _IOColors.IOThemeLight;
      case "light-content":
        return _IOColors.IOThemeDark;
      case "default":
        return theme;
    }
  }, [pictogramStyle, theme]);
  const colorValues = (0, _react.useMemo)(() => ({
    hands: _IOColors.IOColors[themeObj["pictogram-hands"]],
    main: _IOColors.IOColors[themeObj["pictogram-tint-main"]],
    secondary: _IOColors.IOColors[themeObj["pictogram-tint-secondary"]],
    tertiary: _IOColors.IOColors[themeObj["pictogram-tint-tertiary"]]
  }), [themeObj]);
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(PictogramElement, {
    ...props,
    size: pictogramSize,
    colorValues: colorValues
  });
};

/*
░░░ VARIOUS SETS ░░░
*/

/* Bleed pictograms
    Used in the <Banner /> component
*/
exports.Pictogram = Pictogram;
const IOPictogramsBleed = exports.IOPictogramsBleed = {
  empty: _PictogramBleedEmpty.default,
  charity: _PictogramBleedCharity.default,
  help: _PictogramBleedHelp.default,
  attention: _PictogramBleedAttention.default,
  message: _PictogramBleedMessage.default,
  feedback: _PictogramBleedFeedback.default,
  idea: _PictogramBleedIdea.default,
  itWallet: _PictogramBleedITWallet.default,
  security: _PictogramBleedSecurity.default,
  feature: _PictogramBleedFeature.default,
  cie: _PictogramBleedCie.default,
  identity: _PictogramBleedIdentity.default,
  identityAdd: _PictogramBleedIdentityAdd.default,
  identityCheck: _PictogramBleedIdentityCheck.default,
  identityRefresh: _PictogramBleedIdentityRefresh.default,
  cameraRequest: _PictogramBleedCameraRequest.default,
  cameraDenied: _PictogramBleedCameraDenied.default,
  cardAdd: _PictogramBleedCardAdd.default,
  cardFavourite: _PictogramBleedCardFavourite.default,
  cardQuestion: _PictogramBleedCardQuestion.default,
  cardIssue: _PictogramBleedCardIssue.default,
  accessDenied: _PictogramBleedAccessDenied.default,
  stopSecurity: _PictogramBleedStopSecurity.default,
  settings: _PictogramBleedSettings.default,
  time: _PictogramBleedTime.default,
  pending: _PictogramBleedPending.default,
  ended: _PictogramBleedEnded.default,
  timing: _PictogramBleedTiming.default,
  searchLens: _PictogramBleedSearch.default,
  passcode: _PictogramBleedPasscode.default,
  success: _PictogramBleedSuccess.default,
  fatalError: _PictogramBleedFatalError.default,
  notification: _PictogramBleedNotification.default,
  star: _PictogramBleedStar.default,
  doc: _PictogramBleedDoc.default,
  qrCode: _PictogramBleedQrCode.default,
  lostConnection: _PictogramBleedLostConnection.default,
  payments: _PictogramBleedPayments.default,
  activate: _PictogramBleedActivate.default,
  reactivate: _PictogramBleedReactivate.default,
  workInProgress: _PictogramBleedWorkInProgress.default,
  savingMoney: _PictogramBleedSavingMoney.default,
  emailDotNotif: _PictogramBleedEmailDotNotif.default,
  attachment: _PictogramBleedAttachment.default
};
const PictogramBleed = ({
  name,
  size = 80,
  pictogramStyle = "default",
  allowFontScaling = false,
  ...props
}) => {
  const theme = (0, _context.useIOTheme)();
  const {
    dynamicFontScale,
    spacingScaleMultiplier
  } = (0, _accessibility.useIOFontDynamicScale)();
  const PictogramElement = IOPictogramsBleed[name];
  const pictogramSize = allowFontScaling && typeof size === "number" ? size * dynamicFontScale * spacingScaleMultiplier : size;
  const themeObj = (0, _react.useMemo)(() => {
    switch (pictogramStyle) {
      case "dark-content":
        return _IOColors.IOThemeLight;
      case "light-content":
        return _IOColors.IOThemeDark;
      case "default":
        return theme;
    }
  }, [pictogramStyle, theme]);
  const colorValues = (0, _react.useMemo)(() => ({
    hands: _IOColors.IOColors[themeObj["pictogram-hands"]],
    main: _IOColors.IOColors[themeObj["pictogram-tint-main"]],
    secondary: _IOColors.IOColors[themeObj["pictogram-tint-secondary"]],
    tertiary: _IOColors.IOColors[themeObj["pictogram-tint-tertiary"]]
  }), [themeObj]);
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(PictogramElement, {
    ...props,
    size: pictogramSize,
    colorValues: colorValues
  });
};

/* Object Pictograms */
exports.PictogramBleed = PictogramBleed;
const {
  ibanCard,
  followMessage,
  manual,
  trash,
  clock,
  key,
  flyingMessage
} = IOPictograms;
const IOPictogramsObject = exports.IOPictogramsObject = {
  ibanCard,
  followMessage,
  manual,
  trash,
  clock,
  key,
  flyingMessage
};
//# sourceMappingURL=Pictogram.js.map