text: /**
   * Minified by jsDelivr using Terser v5.3.5.
   * Original file: /npm/sweetalert2@10.16.7/src/utils/setParameters.js
   *
   * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
   */
  import{warn,callIfFunction}from"./utils.js";import*as dom from"./dom/index.js";import defaultInputValidators from"./defaultInputValidators.js";function setDefaultInputValidators(t){t.inputValidator||Object.keys(defaultInputValidators).forEach((e=>{t.input===e&&(t.inputValidator=defaultInputValidators[e])}))}function validateCustomTargetElement(t){(!t.target||"string"==typeof t.target&&!document.querySelector(t.target)||"string"!=typeof t.target&&!t.target.appendChild)&&(warn('Target parameter is not valid, defaulting to "body"'),t.target="body")}export default function setParameters(t){setDefaultInputValidators(t),t.showLoaderOnConfirm&&!t.preConfirm&&warn("showLoaderOnConfirm is set to true, but preConfirm is not defined.\nshowLoaderOnConfirm should be used together with preConfirm, see usage example:\nhttps://sweetalert2.github.io/#ajax-request"),t.animation=callIfFunction(t.animation),validateCustomTargetElement(t),"string"==typeof t.title&&(t.title=t.title.split("\n").join("<br />")),dom.init(t)}
  //# sourceMappingURL=/sm/13c6fdae41bd55b948219e3ed759e5fc31a5656c559a15286d225f3e61f87acb.map