(self["webpackChunk"] = self["webpackChunk"] || []).push([["resources_js_Pages_Settings_vue"],{

/***/ "./node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/js/Pages/Settings.vue?vue&type=script&lang=js&":
/*!**********************************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/js/Pages/Settings.vue?vue&type=script&lang=js& ***!
  \**********************************************************************************************************************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({
  props: ["settings"],
  metaInfo: function metaInfo() {
    return {
      title: this.trans("Settings")
    };
  },
  data: function data() {
    return {
      locale: this.$page.props.locale || 'tm',
      form: this.$inertia.form({
        text: {
          tm: this.settings.text.tm,
          ru: this.settings.text.ru,
          en: this.settings.text.en
        },
        local_price: this.settings.local_price,
        int_price: this.settings.int_price
      })
    };
  },
  methods: {
    submit: function submit() {
      var _this = this;

      this.form.post(this.route("settings.store"), {
        onSuccess: function onSuccess() {
          _this.$message.success(_this.trans("Success message"));
        }
      });
    }
  }
});

/***/ }),

/***/ "./resources/js/Pages/Settings.vue":
/*!*****************************************!*\
  !*** ./resources/js/Pages/Settings.vue ***!
  \*****************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var _Settings_vue_vue_type_template_id_29b1b94c___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Settings.vue?vue&type=template&id=29b1b94c& */ "./resources/js/Pages/Settings.vue?vue&type=template&id=29b1b94c&");
/* harmony import */ var _Settings_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Settings.vue?vue&type=script&lang=js& */ "./resources/js/Pages/Settings.vue?vue&type=script&lang=js&");
/* harmony import */ var _node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! !../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js */ "./node_modules/vue-loader/lib/runtime/componentNormalizer.js");





/* normalize component */
;
var component = (0,_node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__.default)(
  _Settings_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__.default,
  _Settings_vue_vue_type_template_id_29b1b94c___WEBPACK_IMPORTED_MODULE_0__.render,
  _Settings_vue_vue_type_template_id_29b1b94c___WEBPACK_IMPORTED_MODULE_0__.staticRenderFns,
  false,
  null,
  null,
  null
  
)

/* hot reload */
if (false) { var api; }
component.options.__file = "resources/js/Pages/Settings.vue"
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (component.exports);

/***/ }),

/***/ "./resources/js/Pages/Settings.vue?vue&type=script&lang=js&":
/*!******************************************************************!*\
  !*** ./resources/js/Pages/Settings.vue?vue&type=script&lang=js& ***!
  \******************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var _node_modules_babel_loader_lib_index_js_clonedRuleSet_5_0_rules_0_use_0_node_modules_vue_loader_lib_index_js_vue_loader_options_Settings_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[0]!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Settings.vue?vue&type=script&lang=js& */ "./node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/js/Pages/Settings.vue?vue&type=script&lang=js&");
 /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (_node_modules_babel_loader_lib_index_js_clonedRuleSet_5_0_rules_0_use_0_node_modules_vue_loader_lib_index_js_vue_loader_options_Settings_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__.default); 

/***/ }),

/***/ "./resources/js/Pages/Settings.vue?vue&type=template&id=29b1b94c&":
/*!************************************************************************!*\
  !*** ./resources/js/Pages/Settings.vue?vue&type=template&id=29b1b94c& ***!
  \************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "render": () => (/* reexport safe */ _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_Settings_vue_vue_type_template_id_29b1b94c___WEBPACK_IMPORTED_MODULE_0__.render),
/* harmony export */   "staticRenderFns": () => (/* reexport safe */ _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_Settings_vue_vue_type_template_id_29b1b94c___WEBPACK_IMPORTED_MODULE_0__.staticRenderFns)
/* harmony export */ });
/* harmony import */ var _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_Settings_vue_vue_type_template_id_29b1b94c___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Settings.vue?vue&type=template&id=29b1b94c& */ "./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/js/Pages/Settings.vue?vue&type=template&id=29b1b94c&");


/***/ }),

/***/ "./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/js/Pages/Settings.vue?vue&type=template&id=29b1b94c&":
/*!***************************************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/js/Pages/Settings.vue?vue&type=template&id=29b1b94c& ***!
  \***************************************************************************************************************************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "render": () => (/* binding */ render),
/* harmony export */   "staticRenderFns": () => (/* binding */ staticRenderFns)
/* harmony export */ });
var render = function() {
  var _vm = this
  var _h = _vm.$createElement
  var _c = _vm._self._c || _h
  return _c(
    "div",
    [
      _c(
        "div",
        {
          staticClass:
            "flex bg-white p-4 text-lg border-b border-gray-300 h-20 items-center"
        },
        [
          _c("div", { staticClass: "flex-1 font-semibold" }, [
            _vm._v(_vm._s(_vm.trans("Settings")))
          ])
        ]
      ),
      _vm._v(" "),
      _c(
        "a-form",
        { staticClass: "p-6" },
        [
          _c(
            "div",
            { staticClass: "flex space-x-4" },
            [
              _c(
                "a-form-item",
                {
                  staticClass: "w-1/2",
                  attrs: { label: _vm.trans("Local price") }
                },
                [
                  _c("a-input", {
                    staticClass: "w-full",
                    attrs: {
                      placeholder: _vm.trans("Local price"),
                      "addon-after": "TMT"
                    },
                    model: {
                      value: _vm.form.local_price,
                      callback: function($$v) {
                        _vm.$set(_vm.form, "local_price", $$v)
                      },
                      expression: "form.local_price"
                    }
                  })
                ],
                1
              ),
              _vm._v(" "),
              _c(
                "a-form-item",
                {
                  staticClass: "w-1/2",
                  attrs: { label: _vm.trans("Inter price") }
                },
                [
                  _c("a-input", {
                    staticClass: "w-full",
                    attrs: {
                      placeholder: _vm.trans("Inter price"),
                      "addon-after": "USD"
                    },
                    model: {
                      value: _vm.form.int_price,
                      callback: function($$v) {
                        _vm.$set(_vm.form, "int_price", $$v)
                      },
                      expression: "form.int_price"
                    }
                  })
                ],
                1
              )
            ],
            1
          ),
          _vm._v(" "),
          _c(
            "a-form-item",
            { attrs: { colon: false } },
            [
              _c(
                "div",
                { attrs: { slot: "label" }, slot: "label" },
                [
                  _vm._v(
                    "\n        " +
                      _vm._s(_vm.trans("Exports text")) +
                      "\n        "
                  ),
                  _c(
                    "a-radio-group",
                    {
                      staticClass: "ml-2",
                      attrs: { "button-style": "solid" },
                      model: {
                        value: _vm.locale,
                        callback: function($$v) {
                          _vm.locale = $$v
                        },
                        expression: "locale"
                      }
                    },
                    [
                      _c("a-radio-button", { attrs: { value: "tm" } }, [
                        _vm._v(" Türkmençe ")
                      ]),
                      _vm._v(" "),
                      _c("a-radio-button", { attrs: { value: "ru" } }, [
                        _vm._v(" Русский ")
                      ]),
                      _vm._v(" "),
                      _c("a-radio-button", { attrs: { value: "en" } }, [
                        _vm._v(" English ")
                      ])
                    ],
                    1
                  )
                ],
                1
              ),
              _vm._v(" "),
              _c("a-textarea", {
                staticClass: "mt-2",
                staticStyle: { "min-height": "90px" },
                attrs: { rows: 6, "auto-size": "" },
                model: {
                  value: _vm.form.text[_vm.locale],
                  callback: function($$v) {
                    _vm.$set(_vm.form.text, _vm.locale, $$v)
                  },
                  expression: "form.text[locale]"
                }
              })
            ],
            1
          ),
          _vm._v(" "),
          _c(
            "a-button",
            { attrs: { type: "primary" }, on: { click: _vm.submit } },
            [_vm._v(_vm._s(_vm.trans("Save")))]
          )
        ],
        1
      )
    ],
    1
  )
}
var staticRenderFns = []
render._withStripped = true



/***/ })

}]);