text: export default {
    name: "Convert To World Time",
    section: "Other Stuff",
  
    subtitle() {
      return "Input a timezone and retrieve its current time.";
    },
  
    variableStorage(data, varType) {
      if (parseInt(data.storage, 10) !== varType) return;
      return [data.varName, "Time"];
    },
  
    fields: ["textbox", "info", "storage", "varName"],
  
    html(_isEvent, data) {
      return `
  <div>
    <div style="width: 90%;">
      To Be Converted:<br>
      <input id="textbox" class="round" type="text">
    </div><br>
  </div><br>
  <div style="padding-top: 8px;">
    <div style="float: left; width: 35%;">
      Store Converted Time In:<br>
      <select id="storage" class="round">
          ${data.variables[1]}
      </select>
    </div>
    <div id="varNameContainer" style="float: right; width: 60%;">
      Variable Name:<br>
      <input id="varName" class="round" type="text">
    </div>
  </div>`;
    },
  
    init() {},
  
    /** @this {import("../utils/Actions.js").default} */
    action(cache) {
      const data = cache.actions[cache.index];
      const Mods = this.getMods();
      const moment = Mods.require("moment-timezone");
      const str = this.evalMessage(data.textbox, cache);
  
      const timec = moment().tz(str).format("dddd, MMMM Do YYYY, h:mm:ss a");
  
      const storage = parseInt(data.storage, 10);
      const varName = this.evalMessage(data.varName, cache);
      this.storeValue(timec, storage, varName, cache);
      this.callNextAction(cache);
    },
  
    mod() {},
  };
  