'use strict';

Object.defineProperty(exports, '__esModule', { value: true });

var headerText = require('./headerText-2eeecf55.js');
var normalText = require('./normalText-7b937f11.js');
var textField = require('./textField-4887d4f4.js');
var fileAttachment = require('./fileAttachment-3d6090c4.js');
var TsIcon = require('./TsIcon.js');
var TsButton = require('./TsButton.js');
var index = require('./index-29304770.js');
var vue = require('vue');
require('http');
require('https');
require('stream');
require('assert');
require('tty');
require('util');
require('os');
require('has-flag');
require('zlib');
require('form-data');

var script = {
    components: {
        TsHeaderText: headerText.script,
        TsFileAttachment: fileAttachment.script,
        TsTextField: textField.script,
        TsNormalText: normalText.script,
        TsIcon: TsIcon["default"],
        TsButton: TsButton["default"],
    },
    name: "TsAddEducation",
    setup() {
        const formData = index.Logic.users.tutors.CreateEducationForm;
        const addEducation = () => {
            formData.to = index.Logic.common.dateToMilliseconds(formData.to.toString());
            formData.from = index.Logic.common.dateToMilliseconds(formData.from.toString());
            index.Logic.users.tutors.CreateTutorEducation(true);
        };
        return {
            formData,
            addEducation,
        };
    },
};

const _hoisted_1 = ["onClick"];
const _hoisted_2 = /*#__PURE__*/vue.createTextVNode(" Add Education ");
const _hoisted_3 = { class: "w-full grid grid-cols-12 py-3 mdlg:!px-3 px-0 gap-2" };
const _hoisted_4 = { class: "flex flex-col col-span-12" };
const _hoisted_5 = /*#__PURE__*/vue.createTextVNode(" School ");
const _hoisted_6 = { class: "flex flex-col col-span-12" };
const _hoisted_7 = /*#__PURE__*/vue.createTextVNode(" Degree ");
const _hoisted_8 = { class: "flex flex-col space-y-1 col-span-12" };
const _hoisted_9 = /*#__PURE__*/vue.createTextVNode(" Year ");
const _hoisted_10 = { class: "flex flex-row items-center space-x-2 w-full" };
const _hoisted_11 = { class: "flex flex-col w-full" };
const _hoisted_12 = { class: "flex flex-col w-full" };
const _hoisted_13 = { class: "flex flex-col col-span-12" };
const _hoisted_14 = /*#__PURE__*/vue.createTextVNode(" Verification ");
const _hoisted_15 = { class: "col-span-12 gap-2 grid grid-cols-12 pt-2" };
const _hoisted_16 = /*#__PURE__*/vue.createTextVNode(" Cancel ");
const _hoisted_17 = /*#__PURE__*/vue.createTextVNode(" Done ");

function render(_ctx, _cache, $props, $setup, $data, $options) {
  const _component_ts_header_text = vue.resolveComponent("ts-header-text");
  const _component_ts_text_field = vue.resolveComponent("ts-text-field");
  const _component_ts_normal_text = vue.resolveComponent("ts-normal-text");
  const _component_ts_icon = vue.resolveComponent("ts-icon");
  const _component_ts_file_attachment = vue.resolveComponent("ts-file-attachment");
  const _component_ts_button = vue.resolveComponent("ts-button");

  return (vue.openBlock(), vue.createElementBlock("div", {
    class: "rounded shadow-md bg-white md:!py-5 md:!px-5 space-y-2 lg:!text-sm mdlg:!text-[12px] text-xs py-3 pb-4 px-4 flex flex-col lg:!w-[30%] mdlg:!w-[37%] md:!w-[50%] w-full",
    onClick: vue.withModifiers($event => (true), ["stop"])
  }, [
    vue.createVNode(_component_ts_header_text, {
      size: 'lg',
      customClass: ' w-full text-center'
    }, {
      default: vue.withCtx(() => [
        _hoisted_2
      ]),
      _: 1 /* STABLE */
    }),
    vue.createElementVNode("div", _hoisted_3, [
      vue.createElementVNode("div", _hoisted_4, [
        vue.createVNode(_component_ts_text_field, {
          placeholder: "Hogwarts",
          "custom-class": "mdlg:px-3 px-2  border-[1px] rounded border-gray-200",
          modelValue: $setup.formData.school,
          "onUpdate:modelValue": _cache[0] || (_cache[0] = $event => (($setup.formData.school) = $event)),
          paddings: "py-3",
          hasTitle: true
        }, {
          title: vue.withCtx(() => [
            _hoisted_5
          ]),
          _: 1 /* STABLE */
        }, 8 /* PROPS */, ["modelValue"])
      ]),
      vue.createElementVNode("div", _hoisted_6, [
        vue.createVNode(_component_ts_text_field, {
          placeholder: "Ph.D",
          "custom-class": "mdlg:px-3 px-2  border-[1px] rounded border-gray-200",
          paddings: "py-3",
          hasTitle: true,
          modelValue: $setup.formData.degree,
          "onUpdate:modelValue": _cache[1] || (_cache[1] = $event => (($setup.formData.degree) = $event))
        }, {
          title: vue.withCtx(() => [
            _hoisted_7
          ]),
          _: 1 /* STABLE */
        }, 8 /* PROPS */, ["modelValue"])
      ]),
      vue.createElementVNode("div", _hoisted_8, [
        vue.createVNode(_component_ts_normal_text, null, {
          default: vue.withCtx(() => [
            _hoisted_9
          ]),
          _: 1 /* STABLE */
        }),
        vue.createElementVNode("div", _hoisted_10, [
          vue.createElementVNode("div", _hoisted_11, [
            vue.createVNode(_component_ts_text_field, {
              placeholder: "From",
              "custom-class": "mdlg:px-3 px-2  border-[1px] rounded border-gray-200",
              paddings: "py-3",
              hasTitle: false,
              modelValue: $setup.formData.from,
              "onUpdate:modelValue": _cache[2] || (_cache[2] = $event => (($setup.formData.from) = $event)),
              type: "date"
            }, null, 8 /* PROPS */, ["modelValue"])
          ]),
          vue.createVNode(_component_ts_icon, {
            name: 'dash',
            customClass: 'h-[3px]'
          }),
          vue.createElementVNode("div", _hoisted_12, [
            vue.createVNode(_component_ts_text_field, {
              placeholder: "To",
              "custom-class": "mdlg:px-3 px-2  border-[1px] rounded border-gray-200",
              paddings: "py-3",
              type: "date",
              modelValue: $setup.formData.to,
              "onUpdate:modelValue": _cache[3] || (_cache[3] = $event => (($setup.formData.to) = $event)),
              hasTitle: false
            }, null, 8 /* PROPS */, ["modelValue"])
          ])
        ])
      ]),
      vue.createElementVNode("div", _hoisted_13, [
        vue.createVNode(_component_ts_file_attachment, {
          placeholder: "Upload file",
          modelValue: $setup.formData.verification,
          "onUpdate:modelValue": _cache[4] || (_cache[4] = $event => (($setup.formData.verification) = $event))
        }, {
          title: vue.withCtx(() => [
            _hoisted_14
          ]),
          _: 1 /* STABLE */
        }, 8 /* PROPS */, ["modelValue"])
      ]),
      vue.createElementVNode("div", _hoisted_15, [
        vue.createVNode(_component_ts_button, {
          bgColor: 'bg-white',
          padding: 'px-4 py-3',
          customClass: 'border-[1px] border-primaryPurple col-span-6',
          textColor: 'text-primaryPurple'
        }, {
          default: vue.withCtx(() => [
            _hoisted_16
          ]),
          _: 1 /* STABLE */
        }),
        vue.createVNode(_component_ts_button, {
          onClick: _cache[5] || (_cache[5] = $event => ($setup.addEducation())),
          customClass: 'border-[1px] border-primaryPurple col-span-6',
          padding: 'px-4 py-3'
        }, {
          default: vue.withCtx(() => [
            _hoisted_17
          ]),
          _: 1 /* STABLE */
        })
      ])
    ])
  ], 8 /* PROPS */, _hoisted_1))
}

script.render = render;
script.__file = "src/components/TsAddEducation/index.vue";

exports["default"] = script;
