{
  "version": 3,
  "sources": ["/cdn/shop/t/9/assets/theme-smk-utils.js?enable_js_minification=1"],
  "sourcesContent": ["const pauseOnFunctions = localStorage.getItem('pauseOnFunctions') || '';\nconst showOnlyThisEvents = localStorage.getItem('showOnlyThisEvents') || '';\nconst configDev = {\n\tdebug_key: 'debug',\n\tdebug: localStorage.getItem('debug') === 'true',\n\tpause: localStorage.getItem('debugPause') === 'true',\n\tpauseOnFunctions: pauseOnFunctions.split(',') || [],\n\tshowOnlyThisEvents: showOnlyThisEvents.split(',') || [],\n};\n\nconst debbuger = (config, data, deletePrevious = false) => {\n  let _text, _type;\n  const icons = {\n    error: \"\uD83D\uDCA3\",\n    warn: \"\u2614\",\n    log: \"\u231B\",\n    info: \"\uD83D\uDCBB\",\n  };\n  const bg = {\n    error: \"#b15b00\",\n    warn: \"#cce019\",\n    log: \"#b15b00\",\n    info: \"#59ab5d\",\n  };\n\n  if(config && typeof config === \"object\") {\n    const { type, text } = config;\n    _text = text;\n    _type = type;\n  } else if(typeof config === \"string\") {\n    _text = config;\n  }\n\n  if(deletePrevious) {\n    console.clear()\n  }\n\n  if (configDev.debug && (!showOnlyThisEvents.length || configDev.showOnlyThisEvents.includes(_text))) {\n    console[_type || \"info\"](\n      `%c ${_text} ${icons[_type || \"info\"]}`,\n      `background: ${bg[_type || \"info\"]}; color: #ffffff; font-size: 18px`,\n      data\n    );\n\n    if(configDev.pause && configDev.pauseOnFunctions.includes(_text)) {\n      debugger;\n    }\n  }\n};\n\nconst capitalizeLabel = (selector) => {\n  const optionTitles = document.querySelectorAll(selector);\n  optionTitles.forEach(item => {\n    let labelTextLower = item.outerText.toLowerCase().split(' ');\n\n    let labelTextCapitalize = labelTextLower.map(word => {\n      let capitalizeWord = word.charAt(0).toUpperCase() + word.slice(1);\n      return capitalizeWord;\n    }).join(' ')\n\n    item.innerHTML = labelTextCapitalize;\n  })\n}\n\nwindow.smkDevUtils = {\n\tdebbuger,\n\tconfig: configDev\n};"],
  "mappings": "AAAA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