"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([["sms_settings"],{

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

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var vuex__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! vuex */ "./node_modules/vuex/dist/vuex.esm.js");
/* harmony import */ var nprogress__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! nprogress */ "./node_modules/nprogress/nprogress.js");
/* harmony import */ var nprogress__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(nprogress__WEBPACK_IMPORTED_MODULE_0__);
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//



/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({
  metaInfo: {
    title: "SMS Settings"
  },
  data: function data() {
    return {
      isLoading: true,
      sms_gateway: [],
      default_sms_gateway: '',
      twilio: {
        TWILIO_SID: '',
        TWILIO_TOKEN: '',
        TWILIO_FROM: ''
      },
      nexmo: {
        nexmo_key: '',
        nexmo_secret: '',
        nexmo_from: ''
      },
      infobip: {
        base_url: '',
        api_key: '',
        sender_from: ''
      }
    };
  },
  methods: _objectSpread(_objectSpread({}, (0,vuex__WEBPACK_IMPORTED_MODULE_1__.mapActions)(["refreshUserPermissions"])), {}, {
    //------------- Submit_Default_SMS
    Submit_Default_SMS: function Submit_Default_SMS() {
      var _this = this;
      this.$refs.default_form_sms.validate().then(function (success) {
        if (!success) {
          _this.makeToast("danger", _this.$t("Please_fill_the_form_correctly"), _this.$t("Failed"));
        } else {
          _this.update_Default_SMS();
        }
      });
    },
    //------------- Submit Validation SMS
    Submit_Twilio_SMS: function Submit_Twilio_SMS() {
      var _this2 = this;
      this.$refs.twilio_form_sms.validate().then(function (success) {
        if (!success) {
          _this2.makeToast("danger", _this2.$t("Please_fill_the_form_correctly"), _this2.$t("Failed"));
        } else {
          _this2.update_twilio_config();
        }
      });
    },
    //------------- Submit Validation SMS
    Submit_Nexmo_SMS: function Submit_Nexmo_SMS() {
      var _this3 = this;
      this.$refs.nexmo_form_sms.validate().then(function (success) {
        if (!success) {
          _this3.makeToast("danger", _this3.$t("Please_fill_the_form_correctly"), _this3.$t("Failed"));
        } else {
          _this3.update_nexmo_config();
        }
      });
    },
    //------------- Submit Validation SMS
    Submit_infobip_SMS: function Submit_infobip_SMS() {
      var _this4 = this;
      this.$refs.infobip_form_sms.validate().then(function (success) {
        if (!success) {
          _this4.makeToast("danger", _this4.$t("Please_fill_the_form_correctly"), _this4.$t("Failed"));
        } else {
          _this4.update_infobip_config();
        }
      });
    },
    //------ Toast
    makeToast: function makeToast(variant, msg, title) {
      this.$root.$bvToast.toast(msg, {
        title: title,
        variant: variant,
        solid: true
      });
    },
    getValidationState: function getValidationState(_ref) {
      var dirty = _ref.dirty,
        validated = _ref.validated,
        _ref$valid = _ref.valid,
        valid = _ref$valid === void 0 ? null : _ref$valid;
      return dirty || validated ? valid : null;
    },
    //---------------------------------- update_twilio_config ----------------\\
    update_Default_SMS: function update_Default_SMS() {
      var _this5 = this;
      nprogress__WEBPACK_IMPORTED_MODULE_0___default().start();
      nprogress__WEBPACK_IMPORTED_MODULE_0___default().set(0.1);
      axios.put("update_Default_SMS", {
        default_sms_gateway: this.default_sms_gateway
      }).then(function (response) {
        _this5.makeToast("success", _this5.$t("Successfully_Updated"), _this5.$t("Success"));
        nprogress__WEBPACK_IMPORTED_MODULE_0___default().done();
      })["catch"](function (error) {
        nprogress__WEBPACK_IMPORTED_MODULE_0___default().done();
        _this5.makeToast("danger", _this5.$t("InvalidData"), _this5.$t("Failed"));
      });
    },
    //---------------------------------- update_twilio_config ----------------\\
    update_twilio_config: function update_twilio_config() {
      var _this6 = this;
      nprogress__WEBPACK_IMPORTED_MODULE_0___default().start();
      nprogress__WEBPACK_IMPORTED_MODULE_0___default().set(0.1);
      axios.post("update_twilio_config", {
        TWILIO_SID: this.twilio.TWILIO_SID,
        TWILIO_TOKEN: this.twilio.TWILIO_TOKEN,
        TWILIO_FROM: this.twilio.TWILIO_FROM
      }).then(function (response) {
        Fire.$emit("Event_sms");
        _this6.makeToast("success", _this6.$t("Successfully_Updated"), _this6.$t("Success"));
        nprogress__WEBPACK_IMPORTED_MODULE_0___default().done();
      })["catch"](function (error) {
        nprogress__WEBPACK_IMPORTED_MODULE_0___default().done();
        _this6.makeToast("danger", _this6.$t("InvalidData"), _this6.$t("Failed"));
      });
    },
    //---------------------------------- update_nexmo_config ----------------\\
    update_nexmo_config: function update_nexmo_config() {
      var _this7 = this;
      nprogress__WEBPACK_IMPORTED_MODULE_0___default().start();
      nprogress__WEBPACK_IMPORTED_MODULE_0___default().set(0.1);
      axios.post("update_nexmo_config", {
        nexmo_key: this.nexmo.nexmo_key,
        nexmo_secret: this.nexmo.nexmo_secret,
        nexmo_from: this.nexmo.nexmo_from
      }).then(function (response) {
        Fire.$emit("Event_sms");
        _this7.makeToast("success", _this7.$t("Successfully_Updated"), _this7.$t("Success"));
        nprogress__WEBPACK_IMPORTED_MODULE_0___default().done();
      })["catch"](function (error) {
        nprogress__WEBPACK_IMPORTED_MODULE_0___default().done();
        _this7.makeToast("danger", _this7.$t("InvalidData"), _this7.$t("Failed"));
      });
    },
    //---------------------------------- update_nexmo_config ----------------\\
    update_infobip_config: function update_infobip_config() {
      var _this8 = this;
      nprogress__WEBPACK_IMPORTED_MODULE_0___default().start();
      nprogress__WEBPACK_IMPORTED_MODULE_0___default().set(0.1);
      axios.post("update_infobip_config", {
        base_url: this.infobip.base_url,
        api_key: this.infobip.api_key,
        sender_from: this.infobip.sender_from
      }).then(function (response) {
        Fire.$emit("Event_sms");
        _this8.makeToast("success", _this8.$t("Successfully_Updated"), _this8.$t("Success"));
        nprogress__WEBPACK_IMPORTED_MODULE_0___default().done();
      })["catch"](function (error) {
        nprogress__WEBPACK_IMPORTED_MODULE_0___default().done();
        _this8.makeToast("danger", _this8.$t("InvalidData"), _this8.$t("Failed"));
      });
    },
    //---------------------------------- get_sms_config ----------------\\
    get_sms_config: function get_sms_config() {
      var _this9 = this;
      axios.get("get_sms_config").then(function (response) {
        _this9.twilio = response.data.twilio;
        _this9.nexmo = response.data.nexmo;
        _this9.infobip = response.data.infobip;
        _this9.sms_gateway = response.data.sms_gateway;
        _this9.default_sms_gateway = response.data.default_sms_gateway;
        _this9.isLoading = false;
      })["catch"](function (error) {
        setTimeout(function () {
          _this9.isLoading = false;
        }, 500);
      });
    }
  }),
  //end Methods

  //----------------------------- Created function-------------------

  created: function created() {
    var _this10 = this;
    this.get_sms_config();
    Fire.$on("Event_sms", function () {
      _this10.get_sms_config();
    });
  }
});

/***/ }),

/***/ "./resources/src/views/app/pages/settings/sms_settings.vue":
/*!*****************************************************************!*\
  !*** ./resources/src/views/app/pages/settings/sms_settings.vue ***!
  \*****************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var _sms_settings_vue_vue_type_template_id_4f3d63a8___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./sms_settings.vue?vue&type=template&id=4f3d63a8& */ "./resources/src/views/app/pages/settings/sms_settings.vue?vue&type=template&id=4f3d63a8&");
/* harmony import */ var _sms_settings_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./sms_settings.vue?vue&type=script&lang=js& */ "./resources/src/views/app/pages/settings/sms_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"])(
  _sms_settings_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__["default"],
  _sms_settings_vue_vue_type_template_id_4f3d63a8___WEBPACK_IMPORTED_MODULE_0__.render,
  _sms_settings_vue_vue_type_template_id_4f3d63a8___WEBPACK_IMPORTED_MODULE_0__.staticRenderFns,
  false,
  null,
  null,
  null
  
)

/* hot reload */
if (false) { var api; }
component.options.__file = "resources/src/views/app/pages/settings/sms_settings.vue"
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (component.exports);

/***/ }),

/***/ "./resources/src/views/app/pages/settings/sms_settings.vue?vue&type=script&lang=js&":
/*!******************************************************************************************!*\
  !*** ./resources/src/views/app/pages/settings/sms_settings.vue?vue&type=script&lang=js& ***!
  \******************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

__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_use_0_node_modules_vue_loader_lib_index_js_vue_loader_options_sms_settings_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-5.use[0]!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./sms_settings.vue?vue&type=script&lang=js& */ "./node_modules/babel-loader/lib/index.js??clonedRuleSet-5.use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/src/views/app/pages/settings/sms_settings.vue?vue&type=script&lang=js&");
 /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (_node_modules_babel_loader_lib_index_js_clonedRuleSet_5_use_0_node_modules_vue_loader_lib_index_js_vue_loader_options_sms_settings_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__["default"]); 

/***/ }),

/***/ "./resources/src/views/app/pages/settings/sms_settings.vue?vue&type=template&id=4f3d63a8&":
/*!************************************************************************************************!*\
  !*** ./resources/src/views/app/pages/settings/sms_settings.vue?vue&type=template&id=4f3d63a8& ***!
  \************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

__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_sms_settings_vue_vue_type_template_id_4f3d63a8___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_sms_settings_vue_vue_type_template_id_4f3d63a8___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_sms_settings_vue_vue_type_template_id_4f3d63a8___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!./sms_settings.vue?vue&type=template&id=4f3d63a8& */ "./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/src/views/app/pages/settings/sms_settings.vue?vue&type=template&id=4f3d63a8&");


/***/ }),

/***/ "./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/src/views/app/pages/settings/sms_settings.vue?vue&type=template&id=4f3d63a8&":
/*!***************************************************************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/src/views/app/pages/settings/sms_settings.vue?vue&type=template&id=4f3d63a8& ***!
  \***************************************************************************************************************************************************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

__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',{staticClass:"main-content"},[_c('breadcumb',{attrs:{"page":_vm.$t('sms_settings'),"folder":_vm.$t('Settings')}}),_vm._v(" "),(_vm.isLoading)?_c('div',{staticClass:"loading_page spinner spinner-primary mr-3"}):_vm._e(),_vm._v(" "),(!_vm.isLoading)?_c('validation-observer',{ref:"default_form_sms"},[_c('b-form',{on:{"submit":function($event){$event.preventDefault();return _vm.Submit_Default_SMS.apply(null, arguments)}}},[_c('b-row',{staticClass:"mt-5"},[_c('b-col',{attrs:{"lg":"12","md":"12","sm":"12"}},[_c('b-card',{attrs:{"no-body":"","header":"default sms gateway"}},[_c('b-card-body',[_c('b-row',[_c('b-col',{attrs:{"lg":"4","md":"4","sm":"12"}},[_c('b-form-group',{attrs:{"label":_vm.$t('Default_SMS_Gateway')}},[_c('v-select',{attrs:{"reduce":function (label) { return label.value; },"placeholder":_vm.$t('Choose_SMS_Gateway'),"options":_vm.sms_gateway.map(function (sms_gateway) { return ({label: sms_gateway.title, value: sms_gateway.id}); })},model:{value:(_vm.default_sms_gateway),callback:function ($$v) {_vm.default_sms_gateway=$$v},expression:"default_sms_gateway"}})],1)],1),_vm._v(" "),_c('b-col',{attrs:{"md":"12"}},[_c('b-form-group',[_c('b-button',{attrs:{"variant":"primary","type":"submit"}},[_c('i',{staticClass:"i-Yes me-2 font-weight-bold"}),_vm._v(" "+_vm._s(_vm.$t('submit')))])],1)],1)],1)],1)],1)],1)],1)],1)],1):_vm._e(),_vm._v(" "),(!_vm.isLoading)?_c('validation-observer',{ref:"twilio_form_sms"},[_c('b-form',{on:{"submit":function($event){$event.preventDefault();return _vm.Submit_Twilio_SMS.apply(null, arguments)}}},[_c('b-row',{staticClass:"mt-5"},[_c('b-col',{attrs:{"lg":"12","md":"12","sm":"12"}},[_c('b-card',{attrs:{"no-body":"","header":"TWILIO_SMS"}},[_c('b-card-body',[_c('b-row',[_c('b-col',{attrs:{"lg":"6","md":"6","sm":"12"}},[_c('validation-provider',{attrs:{"name":"TWILIO_SID","rules":{ required: true}},scopedSlots:_vm._u([{key:"default",fn:function(validationContext){return [_c('b-form-group',{attrs:{"label":"TWILIO SID *"}},[_c('b-form-input',{attrs:{"state":_vm.getValidationState(validationContext),"aria-describedby":"TWILIO_SID-feedback","label":"TWILIO_SID"},model:{value:(_vm.twilio.TWILIO_SID),callback:function ($$v) {_vm.$set(_vm.twilio, "TWILIO_SID", $$v)},expression:"twilio.TWILIO_SID"}}),_vm._v(" "),_c('b-form-invalid-feedback',{attrs:{"id":"TWILIO_SID-feedback"}},[_vm._v(_vm._s(validationContext.errors[0]))])],1)]}}],null,false,1441324107)})],1),_vm._v(" "),_c('b-col',{attrs:{"lg":"6","md":"6","sm":"12"}},[_c('b-form-group',{attrs:{"label":"TWILIO TOKEN *"}},[_c('b-form-input',{attrs:{"label":"TWILIO_TOKEN","placeholder":_vm.$t('LeaveBlank')},model:{value:(_vm.twilio.TWILIO_TOKEN),callback:function ($$v) {_vm.$set(_vm.twilio, "TWILIO_TOKEN", $$v)},expression:"twilio.TWILIO_TOKEN"}})],1)],1),_vm._v(" "),_c('b-col',{attrs:{"lg":"6","md":"6","sm":"12"}},[_c('validation-provider',{attrs:{"name":"TWILIO_FROM","rules":{ required: true}},scopedSlots:_vm._u([{key:"default",fn:function(validationContext){return [_c('b-form-group',{attrs:{"label":"TWILIO FROM *"}},[_c('b-form-input',{attrs:{"state":_vm.getValidationState(validationContext),"aria-describedby":"TWILIO_FROM-feedback","label":"TWILIO_FROM"},model:{value:(_vm.twilio.TWILIO_FROM),callback:function ($$v) {_vm.$set(_vm.twilio, "TWILIO_FROM", $$v)},expression:"twilio.TWILIO_FROM"}}),_vm._v(" "),_c('b-form-invalid-feedback',{attrs:{"id":"TWILIO_FROM-feedback"}},[_vm._v(_vm._s(validationContext.errors[0]))])],1)]}}],null,false,918133443)})],1),_vm._v(" "),_c('b-col',{attrs:{"md":"12"}},[_c('b-form-group',[_c('b-button',{attrs:{"variant":"primary","type":"submit"}},[_c('i',{staticClass:"i-Yes me-2 font-weight-bold"}),_vm._v(" "+_vm._s(_vm.$t('submit')))])],1)],1)],1)],1)],1)],1)],1)],1)],1):_vm._e(),_vm._v(" "),(!_vm.isLoading)?_c('validation-observer',{ref:"nexmo_form_sms"},[_c('b-form',{on:{"submit":function($event){$event.preventDefault();return _vm.Submit_Nexmo_SMS.apply(null, arguments)}}},[_c('b-row',{staticClass:"mt-5"},[_c('b-col',{attrs:{"lg":"12","md":"12","sm":"12"}},[_c('b-card',{attrs:{"no-body":"","header":"Nexmo (now Vonage)"}},[_c('b-card-body',[_c('b-row',[_c('b-col',{attrs:{"lg":"6","md":"6","sm":"12"}},[_c('validation-provider',{attrs:{"name":"NEXMO_KEY","rules":{ required: true}},scopedSlots:_vm._u([{key:"default",fn:function(validationContext){return [_c('b-form-group',{attrs:{"label":"NEXMO KEY *"}},[_c('b-form-input',{attrs:{"state":_vm.getValidationState(validationContext),"aria-describedby":"NEXMO_KEY-feedback","label":"NEXMO_KEY"},model:{value:(_vm.nexmo.nexmo_key),callback:function ($$v) {_vm.$set(_vm.nexmo, "nexmo_key", $$v)},expression:"nexmo.nexmo_key"}}),_vm._v(" "),_c('b-form-invalid-feedback',{attrs:{"id":"NEXMO_KEY-feedback"}},[_vm._v(_vm._s(validationContext.errors[0]))])],1)]}}],null,false,2398936098)})],1),_vm._v(" "),_c('b-col',{attrs:{"lg":"6","md":"6","sm":"12"}},[_c('validation-provider',{attrs:{"name":"NEXMO_SECRET","rules":{ required: true}},scopedSlots:_vm._u([{key:"default",fn:function(validationContext){return [_c('b-form-group',{attrs:{"label":"NEXMO SECRET *"}},[_c('b-form-input',{attrs:{"state":_vm.getValidationState(validationContext),"aria-describedby":"NEXMO_SECRET-feedback","label":"NEXMO_SECRET"},model:{value:(_vm.nexmo.nexmo_secret),callback:function ($$v) {_vm.$set(_vm.nexmo, "nexmo_secret", $$v)},expression:"nexmo.nexmo_secret"}}),_vm._v(" "),_c('b-form-invalid-feedback',{attrs:{"id":"NEXMO_SECRET-feedback"}},[_vm._v(_vm._s(validationContext.errors[0]))])],1)]}}],null,false,2330492451)})],1),_vm._v(" "),_c('b-col',{attrs:{"lg":"6","md":"6","sm":"12"}},[_c('validation-provider',{attrs:{"name":"SMS From","rules":{ required: true}},scopedSlots:_vm._u([{key:"default",fn:function(validationContext){return [_c('b-form-group',{attrs:{"label":"SMS From *"}},[_c('b-form-input',{attrs:{"state":_vm.getValidationState(validationContext),"aria-describedby":"NEXMO_FROM-feedback","label":"NEXMO_FROM"},model:{value:(_vm.nexmo.nexmo_from),callback:function ($$v) {_vm.$set(_vm.nexmo, "nexmo_from", $$v)},expression:"nexmo.nexmo_from"}}),_vm._v(" "),_c('b-form-invalid-feedback',{attrs:{"id":"NEXMO_FROM-feedback"}},[_vm._v(_vm._s(validationContext.errors[0]))])],1)]}}],null,false,3111737855)})],1),_vm._v(" "),_c('b-col',{attrs:{"md":"12"}},[_c('b-form-group',[_c('b-button',{attrs:{"variant":"primary","type":"submit"}},[_c('i',{staticClass:"i-Yes me-2 font-weight-bold"}),_vm._v(" "+_vm._s(_vm.$t('submit')))])],1)],1)],1)],1)],1)],1)],1)],1)],1):_vm._e(),_vm._v(" "),(!_vm.isLoading)?_c('validation-observer',{ref:"infobip_form_sms"},[_c('b-form',{on:{"submit":function($event){$event.preventDefault();return _vm.Submit_infobip_SMS.apply(null, arguments)}}},[_c('b-row',{staticClass:"mt-5"},[_c('b-col',{attrs:{"lg":"12","md":"12","sm":"12"}},[_c('b-card',{attrs:{"no-body":"","header":"InfoBip"}},[_c('b-card-body',[_c('b-row',[_c('b-col',{attrs:{"lg":"6","md":"6","sm":"12"}},[_c('b-form-group',{attrs:{"label":"BASE URL"}},[_c('b-form-input',{attrs:{"label":"BASE_URL"},model:{value:(_vm.infobip.base_url),callback:function ($$v) {_vm.$set(_vm.infobip, "base_url", $$v)},expression:"infobip.base_url"}})],1)],1),_vm._v(" "),_c('b-col',{attrs:{"lg":"6","md":"6","sm":"12"}},[_c('b-form-group',{attrs:{"label":"API KEY"}},[_c('b-form-input',{attrs:{"label":"API_KEY"},model:{value:(_vm.infobip.api_key),callback:function ($$v) {_vm.$set(_vm.infobip, "api_key", $$v)},expression:"infobip.api_key"}})],1)],1),_vm._v(" "),_c('b-col',{attrs:{"lg":"6","md":"6","sm":"12"}},[_c('b-form-group',{attrs:{"label":"SMS sender number Or Name"}},[_c('b-form-input',{attrs:{"label":"SMS_From"},model:{value:(_vm.infobip.sender_from),callback:function ($$v) {_vm.$set(_vm.infobip, "sender_from", $$v)},expression:"infobip.sender_from"}})],1)],1),_vm._v(" "),_c('b-col',{attrs:{"md":"12"}},[_c('b-form-group',[_c('b-button',{attrs:{"variant":"primary","type":"submit"}},[_c('i',{staticClass:"i-Yes me-2 font-weight-bold"}),_vm._v(" "+_vm._s(_vm.$t('submit')))])],1)],1)],1),_vm._v(" "),_c('p',{staticClass:"mt-5"},[_c('strong',[_vm._v("BASE_URL : ")]),_vm._v(" The Infobip data center used for API traffic."),_c('br'),_vm._v(" "),_c('strong',[_vm._v("API_KEY :")]),_vm._v(" Authentication method. See API documentation "),_c('br'),_vm._v(" "),_c('strong',[_vm._v("SMS sender number Or Name :")]),_vm._v(" displayed on recipient's device as message sender. "),_c('br'),_vm._v(" "),_c('strong',[_vm._v("WhatsApp sender number :")]),_vm._v(" Registered WhatsApp sender number. Must be in international format."),_c('br'),_vm._v(" "),_c('strong',[_vm._v(" ## Links")]),_c('br'),_vm._v(" "),_c('strong',[_vm._v("[API Reference](https://www.infobip.com/docs/api)")]),_c('br'),_vm._v(" "),_c('strong',[_vm._v("[PHP Client for Infobip API](https://github.com/infobip/infobip-api-php-client)")]),_c('br')])],1)],1)],1)],1)],1)],1):_vm._e()],1)}
var staticRenderFns = []
render._withStripped = true


/***/ })

}]);