<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-25953094"],{"18a3":function(t,e,i){},"1cd5":function(t,e,i){},2736:function(t,e,i){"use strict";i("3516")},3516:function(t,e,i){},"36fb":function(t,e,i){"use strict";i("b244")},"41fb":function(t,e,i){"use strict";i.r(e);var a=function(){var t=this,e=t._self._c;return e("div",{attrs:{id:"renew-guide-page"}},[e("RenewGuideWizard")],1)},s=[],n=i("5530"),o=i("60c3"),r=i("bc3a"),l=i.n(r),_=(i("5a0c"),i("2f62")),c=(i("b0c0"),function(){var t=this,e=t._self._c;return e("div",{staticClass:"px-5 mb-8",attrs:{id:"page-renew-guide-wizard"}},[e("h4",{staticClass:"mb-8 ml-2 mt-8"},[t._v(t._s(t.$t("MEMBER_RENEW.WIZARD.HEADER")))]),e("b-card",{staticClass:"mb-2",attrs:{title:"","hide-footer":""}},[e("div",{staticClass:"wizard wizard-3",attrs:{id:"kt_wizard_v3","data-wizard-state":"step-first","data-wizard-clickable":"true"}},[e("div",{staticClass:"wizard-nav border-bottom mb-1 mb-lg-5"},[e("div",{staticClass:"wizard-steps py-8"},[e("div",{staticClass:"wizard-step",attrs:{"data-wizard-type":"step","data-wizard-state":"current"}},[e("div",{staticClass:"wizard-label"},[e("h3",{staticClass:"wizard-title"},[e("span",[t._v("1")]),t._v(" "+t._s(t.$t("MEMBER_RENEW.WIZARD.INTRO_HEADER")))]),e("div",{staticClass:"wizard-bar"})])]),e("div",{staticClass:"wizard-step",attrs:{"data-wizard-type":"step","data-wizard-state":"pending"}},[e("div",{staticClass:"wizard-label"},[e("h3",{staticClass:"wizard-title"},[e("span",[t._v("2")]),t._v(" "+t._s(t.$t("MEMBER_RENEW.WIZARD.PERIOD_HEADER")))]),e("div",{staticClass:"wizard-bar"})])]),e("div",{staticClass:"wizard-step",attrs:{"data-wizard-type":"step","data-wizard-state":"pending"}},[e("div",{staticClass:"wizard-label"},[e("h3",{staticClass:"wizard-title"},[e("span",[t._v("3")]),t._v(" "+t._s(t.$t("MEMBER_RENEW.WIZARD.EMAIL_OPTION_HEADER")))]),e("div",{staticClass:"wizard-bar"})])]),e("div",{staticClass:"wizard-step",attrs:{"data-wizard-type":"step","data-wizard-state":"pending"}},[e("div",{staticClass:"wizard-label"},[e("h3",{staticClass:"wizard-title"},[e("span",[t._v("4")]),t._v(" "+t._s(t.$t("MEMBER_RENEW.WIZARD.SMS_OPTION_HEADER")))]),e("div",{staticClass:"wizard-bar"})])]),e("div",{staticClass:"wizard-step",attrs:{"data-wizard-type":"step","data-wizard-state":"pending"}},[e("div",{staticClass:"wizard-label"},[e("h3",{staticClass:"wizard-title"},[e("span",[t._v("5")]),t._v(" "+t._s(t.$t("MEMBER_RENEW.WIZARD.INVOICE_OPTION_HEADER")))]),e("div",{staticClass:"wizard-bar"})])]),e("div",{staticClass:"wizard-step",attrs:{"data-wizard-type":"step","data-wizard-state":"pending"}},[e("div",{staticClass:"wizard-label"},[e("h3",{staticClass:"wizard-title"},[e("span",[t._v("6")]),t._v(" "+t._s(t.$t("MEMBER_RENEW.WIZARD.MEMBERSHIP_OPTION_HEADER")))]),e("div",{staticClass:"wizard-bar"})])]),e("div",{staticClass:"wizard-step",attrs:{"data-wizard-type":"step","data-wizard-state":"pending"}},[e("div",{staticClass:"wizard-label"},[e("h3",{staticClass:"wizard-title"},[e("span",[t._v("7")]),t._v(" "+t._s(t.$t("MEMBER_RENEW.WIZARD.SCHEDULE_HEADER")))]),e("div",{staticClass:"wizard-bar"})])]),e("div",{staticClass:"wizard-step",attrs:{"data-wizard-type":"step","data-wizard-state":"pending"}},[e("div",{staticClass:"wizard-label"},[e("h3",{staticClass:"wizard-title"},[e("span",[t._v("8")]),t._v(" "+t._s(t.$t("SAMPLE.CONFIRM")))]),e("div",{staticClass:"wizard-bar"})])])])]),e("div",{staticClass:"row justify-content-center py-12 px-8 py-lg-15 px-lg-10"},[e("div",{staticClass:"col-xl-12 col-xxl-7"},[e("form",{staticClass:"form",attrs:{id:"kt_form"}},[e("div",{staticClass:"pb-5",attrs:{"data-wizard-type":"step-content","data-wizard-state":"current"}},[e("b-alert",{attrs:{show:"",variant:"success"}},[e("h4",{staticClass:"alert-heading"},[t._v(t._s(t.$t("MEMBER_RENEW.WIZARD.INTRO_HEADER")))]),e("p",[t._v(" "+t._s(t.$t("MEMBER_RENEW.WIZARD.INTRO_INFO1"))+" ")]),e("hr"),e("p",{staticClass:"mb-0"},[t._v(" "+t._s(t.$t("MEMBER_RENEW.WIZARD.INTRO_INFO2"))+" ")])])],1),e("div",{staticClass:"pb-5",attrs:{"data-wizard-type":"step-content","data-wizard-state":"pending"}},[e("b-alert",{attrs:{show:"",variant:"success"}},[e("h4",{staticClass:"alert-heading"},[t._v(t._s(t.$t("MEMBER_RENEW.WIZARD.PERIOD_HEADER")))]),e("p",[t._v(" "+t._s(t.$t("MEMBER_RENEW.WIZARD.PERIOD_INFO1",{type:t.is_infinite_period?t.$t("MEMBER_RENEW.PERIOD_TYPE_INFINITE"):t.$t("MEMBER_RENEW.PERIOD_TYPE_PERIOD")}))+" ")]),t.is_infinite_period?e("p",[t._v(" "+t._s(t.$t("MEMBER_RENEW.WIZARD.PERIOD_INFINITE_INFO"))+" ")]):e("p",[t._v(" "+t._s(t.$t("MEMBER_RENEW.WIZARD.PERIOD_PERIOD_INFO"))+" ")]),e("hr"),t.is_infinite_period?t._e():e("p",[t._v(" "+t._s(t.$t("MEMBER_RENEW.WIZARD.SELECTED_PERIOD_INFO",{from_period:t.selected_period.name,to_period:t.next_period.name}))+" ")]),e("p",{staticClass:"mb-0"},[t._v(" "+t._s(t.$t("MEMBER_RENEW.WIZARD.PERIOD_INFO2"))+" ")])])],1),e("div",{staticClass:"pb-5",attrs:{"data-wizard-type":"step-content","data-wizard-state":"pending"}},[e("RenewGuideWizardEmailStep",{ref:"email",attrs:{name:"email",options:t.options,templates:t.email_template_options},on:{on_check_validity:t.on_check_validity}})],1),e("div",{staticClass:"pb-5",attrs:{"data-wizard-type":"step-content","data-wizard-state":"pending"}},[e("RenewGuideWizardSMSStep",{ref:"sms",attrs:{name:"sms",options:t.options,templates:t.sms_template_options},on:{on_check_validity:t.on_check_validity}})],1),e("div",{staticClass:"pb-5",attrs:{"data-wizard-type":"step-content","data-wizard-state":"pending"}},[e("RenewGuideWizardInvoiceStep",{ref:"invoice",attrs:{name:"invoice",options:t.options,templates:t.invoice_template_options},on:{on_check_validity:t.on_check_validity}})],1),e("div",{staticClass:"pb-5",attrs:{"data-wizard-type":"step-content","data-wizard-state":"pending"}},[e("RenewGuideWizardMembershipStep",{ref:"memberships",attrs:{name:"memberships",options:t.options},on:{on_check_validity:t.on_check_validity}})],1),e("div",{staticClass:"pb-5",attrs:{"data-wizard-type":"step-content","data-wizard-state":"pending"}},[e("RenewGuideWizardScheduleStep",{ref:"schedule",attrs:{name:"schedule",options:t.options},on:{on_check_validity:t.on_check_validity}})],1),e("div",{staticClass:"d-flex justify-content-between border-top pt-10"},[e("div",{staticClass:"mr-2"},[e("button",{staticClass:"btn btn-light-primary font-weight-bold text-uppercase px-9 py-4",attrs:{"data-wizard-type":"action-prev"}},[t._v(" "+t._s(t.$t("PAGES.REGISTRATION.PREV_STEP"))+" ")])]),e("div",[e("button",{staticClass:"btn btn-primary font-weight-bold text-uppercase px-9 py-4 text-right",attrs:{"data-wizard-type":"action-next",disabled:!t.next_button_enabled},on:{click:t.nextPage}},[t._v(" "+t._s(t.$t("PAGES.REGISTRATION.NEXT_STEP"))+" ")])]),8===t.currentPage?e("button",{staticClass:"btn btn-primary font-weight-bold text-uppercase px-9 py-4",attrs:{"data-ktwizard-type":"action-submit"},on:{click:t.finish_guide_clicked}},[t._v(" "+t._s(t.$t("SAMPLE.CREATE"))+" ")]):t._e()])])])])])])],1)}),d=[],u=i("c7eb"),m=i("1da1"),p=(i("7db0"),i("14d9"),i("d3b7"),i("ae1f")),v=i("a7c1"),E=function(){var t=this,e=t._self._c;return e("div",{attrs:{id:"renew-guide-wizard-email-step"}},[e("b-alert",{attrs:{show:"",variant:"success"}},[e("h4",{staticClass:"alert-heading"},[t._v(t._s(t.$t("MEMBER_RENEW.WIZARD.EMAIL_OPTION_HEADER")))]),e("p",[t._v(" "+t._s(t.$t("MEMBER_RENEW.WIZARD.EMAIL_OPTION_INFO1"))+" ")])]),e("div",{staticClass:"form-group"},[e("div",{staticClass:"radio-list"},[e("label",{staticClass:"radio radio-outline radio-success mb-4"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.local_options.email_option,expression:"local_options.email_option"}],attrs:{type:"radio",value:"DO_SEND",name:"EMAIL_OPTION"},domProps:{checked:t._q(t.local_options.email_option,"DO_SEND")},on:{change:[function(e){return t.$set(t.local_options,"email_option","DO_SEND")},t.check_validity]}}),e("span"),t._v(" "+t._s(t.$t("MEMBER_RENEW.WIZARD.EMAIL_OPTION_YES"))+" ")]),e("label",{staticClass:"radio radio-outline radio-success mb-4"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.local_options.email_option,expression:"local_options.email_option"}],attrs:{type:"radio",value:"DONT_SEND",name:"EMAIL_OPTION"},domProps:{checked:t._q(t.local_options.email_option,"DONT_SEND")},on:{change:[function(e){return t.$set(t.local_options,"email_option","DONT_SEND")},t.check_validity]}}),e("span"),t._v(" "+t._s(t.$t("MEMBER_RENEW.WIZARD.EMAIL_OPTION_NO"))+" ")])])]),"DO_SEND"===t.local_options.email_option?e("b-row",[e("b-col",{attrs:{cols:"12"}},[e("b-form",{ref:"form",on:{submit:function(e){return e.preventDefault(),t.on_submit_email_form.apply(null,arguments)}}},[e("b-form-group",{attrs:{"label-size":"sm","label-cols":"4","content-cols":"6",label:t.$t("MEMBER_RENEW.WIZARD.EMAIL_TEMPLATE_INFO")}},[e("b-form-select",{attrs:{options:t.templates,state:t.email_template_id_state},on:{change:t.check_validity},model:{value:t.local_options.email_template_id,callback:function(e){t.$set(t.local_options,"email_template_id",e)},expression:"local_options.email_template_id"}})],1)],1)],1)],1):t._e(),t.local_options.email_template_id?e("div",[e("p",[t._v(" "+t._s(t.$t("MEMBER_RENEW.WIZARD.EMAIL_NUM_REMINDERS_INFO"))+" ")]),e("b-form",{ref:"form",on:{submit:function(e){return e.preventDefault(),t.on_submit_email_form.apply(null,arguments)}}},[e("b-row",[e("b-col",{attrs:{cols:"12"}},[e("b-form-group",{attrs:{"label-size":"sm","label-cols":"4","content-cols":"6",label:t.$t("MEMBER_RENEW.WIZARD.EMAIL_NUM_REMINDERS")}},[e("b-form-select",{attrs:{options:t.num_reminders_options,state:t.num_email_reminders_state},on:{change:t.check_validity},model:{value:t.local_options.num_email_reminders,callback:function(e){t.$set(t.local_options,"num_email_reminders",e)},expression:"local_options.num_email_reminders"}})],1)],1)],1)],1)],1):t._e(),t.local_options.num_email_reminders&gt;0?e("div",[e("b-form",{ref:"form",on:{submit:function(e){return e.preventDefault(),t.on_submit_email_form.apply(null,arguments)}}},[e("b-row",[e("b-col",{attrs:{cols:"12"}},[e("b-form-group",{attrs:{"label-size":"sm","label-cols":"4","content-cols":"6",label:t.$t("MEMBER_RENEW.WIZARD.EMAIL_TEMPLATE_REMINDER_INFO")}},[e("b-form-select",{attrs:{options:t.templates,state:t.email_reminder_template_id_state},on:{change:t.check_validity},model:{value:t.local_options.email_reminder_template_id,callback:function(e){t.$set(t.local_options,"email_reminder_template_id",e)},expression:"local_options.email_reminder_template_id"}})],1)],1)],1)],1),null!==t.local_options.email_reminder_template_id?e("div",[e("b-form",{ref:"form",on:{submit:function(e){return e.preventDefault(),t.on_submit_email_form.apply(null,arguments)}}},[e("b-row",[e("b-col",{attrs:{cols:"12"}},[e("b-form-group",{attrs:{"label-size":"sm","label-cols":"4","content-cols":"6",label:t.$t("MEMBER_RENEW.WIZARD.EMAIL_NUM_DAYS_WAIT")}},[e("b-form-select",{attrs:{options:t.num_days_options,state:t.email_num_days_wait_state},on:{change:t.check_validity},model:{value:t.local_options.email_num_days_wait,callback:function(e){t.$set(t.local_options,"email_num_days_wait",e)},expression:"local_options.email_num_days_wait"}})],1)],1)],1)],1)],1):t._e()],1):t._e()],1)},b=[],h=i("c3b3"),f=i("4cab"),R=i("b9fb"),O={name:"renew-guide-wizard-email-step",components:{},props:["options","templates","name"],emits:["on_check_validity"],mixins:[o["a"]],setup:function(){return{v$:Object(h["a"])()}},validations:function(){return{local_options:{email_template_id:{required:R["g"]},num_email_reminders:{required:R["g"]},email_reminder_template_id:{required:R["g"]},email_num_days_wait:{required:R["g"]}}}},computed:Object(n["a"])(Object(n["a"])({is_infinite_period:function(){return 0===this.periods.length}},Object(_["b"])(["currentCompanyId","currentPeriodId","companies","periods"])),{},{is_valid:function(){return"DONT_SEND"===this.local_options.email_option||"DO_SEND"===this.local_options.email_option&amp;&amp;null!==this.local_options.email_template_id},email_template_id_state:function(){return Object(f["e"])({dirty:this.v$.local_options.email_template_id.$dirty,error:this.v$.local_options.email_template_id.$error})},num_email_reminders_state:function(){return Object(f["e"])({dirty:this.v$.local_options.num_email_reminders.$dirty,error:this.v$.local_options.num_email_reminders.$error})},email_reminder_template_id_state:function(){return Object(f["e"])({dirty:this.v$.local_options.email_reminder_template_id.$dirty,error:this.v$.local_options.email_reminder_template_id.$error})},email_num_days_wait_state:function(){return Object(f["e"])({dirty:this.v$.local_options.email_num_days_wait.$dirty,error:this.v$.local_options.email_num_days_wait.$error})}}),mounted:function(){var t=this;this.options&amp;&amp;(this.local_options=Object(n["a"])({},this.options)),this.$nextTick((function(){t.check_validity()}))},data:function(){return{local_options:{},value_of_email_template_id:null,email_template_id:null,num_reminders_options:[{value:0,text:"0"},{value:1,text:"1"},{value:2,text:"2"},{value:3,text:"3"}],num_days_options:[{value:1,text:"1"},{value:2,text:"2"},{value:3,text:"3"},{value:4,text:"4"},{value:5,text:"5"},{value:6,text:"6"},{value:7,text:"7"},{value:8,text:"8"},{value:9,text:"9"},{value:10,text:"10"},{value:11,text:"11"},{value:12,text:"12"},{value:13,text:"13"},{value:14,text:"14"}]}},watch:{options:{deep:!0,handler:function(t){this.local_options=Object(n["a"])({},t)}}},methods:{check_validity:function(){this.$emit("on_check_validity",this.name,this.is_valid,this.options)},reset_validation:function(){var t=this;this.item&amp;&amp;this.$nextTick((function(){return t.v$.$reset()}))},validate:function(){var t=this;return Object(m["a"])(Object(u["a"])().mark((function e(){return Object(u["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.v$.$validate();case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})))()},on_submit_email_form:function(){}}},I=O,N=(i("d12f"),i("2877")),M=Object(N["a"])(I,E,b,!1,null,"6736c8ce",null),w=M.exports,$=function(){var t=this,e=t._self._c;return e("div",{attrs:{id:"renew-guide-wizard-sms-step"}},[e("b-alert",{attrs:{show:"",variant:"success"}},[e("h4",{staticClass:"alert-heading"},[t._v(t._s(t.$t("MEMBER_RENEW.WIZARD.SMS_OPTION_HEADER")))]),e("p",[t._v(" "+t._s(t.$t("MEMBER_RENEW.WIZARD.SMS_OPTION_INFO1"))+" ")])]),e("div",{staticClass:"form-group"},[e("div",{staticClass:"radio-list"},[e("label",{staticClass:"radio radio-outline radio-success mb-4"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.local_options.sms_option,expression:"local_options.sms_option"}],attrs:{type:"radio",value:"DO_SEND",name:"SMS_OPTION"},domProps:{checked:t._q(t.local_options.sms_option,"DO_SEND")},on:{change:[function(e){return t.$set(t.local_options,"sms_option","DO_SEND")},t.check_validity]}}),e("span"),t._v(" "+t._s(t.$t("MEMBER_RENEW.WIZARD.SMS_OPTION_YES"))+" ")]),e("label",{staticClass:"radio radio-outline radio-success mb-4"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.local_options.sms_option,expression:"local_options.sms_option"}],attrs:{type:"radio",value:"DONT_SEND",name:"SMS_OPTION"},domProps:{checked:t._q(t.local_options.sms_option,"DONT_SEND")},on:{change:[function(e){return t.$set(t.local_options,"sms_option","DONT_SEND")},t.check_validity]}}),e("span"),t._v(" "+t._s(t.$t("MEMBER_RENEW.WIZARD.SMS_OPTION_NO"))+" ")])])]),"DO_SEND"===t.local_options.sms_option?e("b-row",[e("b-col",{attrs:{cols:"12"}},[e("b-form",{ref:"form",on:{submit:function(e){return e.preventDefault(),t.on_submit_sms_form.apply(null,arguments)}}},[e("b-form-group",{attrs:{"label-size":"sm","label-cols":"4","content-cols":"6",label:t.$t("MEMBER_RENEW.WIZARD.SMS_TEMPLATE_INFO")}},[e("b-form-select",{attrs:{options:t.templates,state:t.sms_template_id_state},on:{change:t.check_validity},model:{value:t.local_options.sms_template_id,callback:function(e){t.$set(t.local_options,"sms_template_id",e)},expression:"local_options.sms_template_id"}})],1)],1)],1)],1):t._e(),t.local_options.sms_template_id?e("div",[e("p",[t._v(" "+t._s(t.$t("MEMBER_RENEW.WIZARD.SMS_NUM_REMINDERS_INFO"))+" ")]),e("b-form",{ref:"form",on:{submit:function(e){return e.preventDefault(),t.on_submit_sms_form.apply(null,arguments)}}},[e("b-row",[e("b-col",{attrs:{cols:"12"}},[e("b-form-group",{attrs:{"label-size":"sm","label-cols":"4","content-cols":"6",label:t.$t("MEMBER_RENEW.WIZARD.SMS_NUM_REMINDERS")}},[e("b-form-select",{attrs:{options:t.num_reminders_options,state:t.num_sms_reminders_state},on:{change:t.check_validity},model:{value:t.local_options.num_sms_reminders,callback:function(e){t.$set(t.local_options,"num_sms_reminders",e)},expression:"local_options.num_sms_reminders"}})],1)],1)],1)],1)],1):t._e(),t.local_options.num_sms_reminders&gt;0?e("div",[e("b-form",{ref:"form",on:{submit:function(e){return e.preventDefault(),t.on_submit_sms_form.apply(null,arguments)}}},[e("b-row",[e("b-col",{attrs:{cols:"12"}},[e("b-form-group",{attrs:{"label-size":"sm","label-cols":"4","content-cols":"6",label:t.$t("MEMBER_RENEW.WIZARD.SMS_TEMPLATE_REMINDER_INFO")}},[e("b-form-select",{attrs:{options:t.templates,state:t.sms_reminder_template_id_state},on:{change:t.check_validity},model:{value:t.local_options.sms_reminder_template_id,callback:function(e){t.$set(t.local_options,"sms_reminder_template_id",e)},expression:"local_options.sms_reminder_template_id"}})],1)],1)],1)],1),null!==t.local_options.sms_reminder_template_id?e("div",[e("b-form",{ref:"form",on:{submit:function(e){return e.preventDefault(),t.on_submit_sms_form.apply(null,arguments)}}},[e("b-row",[e("b-col",{attrs:{cols:"12"}},[e("b-form-group",{attrs:{"label-size":"sm","label-cols":"4","content-cols":"6",label:t.$t("MEMBER_RENEW.WIZARD.SMS_NUM_DAYS_WAIT")}},[e("b-form-select",{attrs:{options:t.num_days_options,state:t.sms_num_days_wait_state},on:{change:t.check_validity},model:{value:t.local_options.sms_num_days_wait,callback:function(e){t.$set(t.local_options,"sms_num_days_wait",e)},expression:"local_options.sms_num_days_wait"}})],1)],1)],1)],1)],1):t._e()],1):t._e()],1)},x=[],y={name:"RenewGuideWizardSMSStep",components:{},props:["options","templates","name"],emits:["on_check_validity"],mixins:[o["a"]],setup:function(){return{v$:Object(h["a"])()}},validations:function(){return{local_options:{sms_template_id:{required:R["g"]},num_sms_reminders:{required:R["g"]},sms_reminder_template_id:{required:R["g"]},sms_num_days_wait:{required:R["g"]}}}},computed:Object(n["a"])(Object(n["a"])({},Object(_["b"])(["currentCompanyId","currentPeriodId","companies","periods"])),{},{sms_template_id_state:function(){return Object(f["e"])({dirty:this.v$.local_options.sms_template_id.$dirty,error:this.v$.local_options.sms_template_id.$error})},num_sms_reminders_state:function(){return Object(f["e"])({dirty:this.v$.local_options.num_sms_reminders.$dirty,error:this.v$.local_options.num_sms_reminders.$error})},sms_reminder_template_id_state:function(){return Object(f["e"])({dirty:this.v$.local_options.sms_reminder_template_id.$dirty,error:this.v$.local_options.sms_reminder_template_id.$error})},sms_num_days_wait_state:function(){return Object(f["e"])({dirty:this.v$.local_options.sms_num_days_wait.$dirty,error:this.v$.local_options.sms_num_days_wait.$error})},is_infinite_period:function(){return 0===this.periods.length},is_valid:function(){return"DONT_SEND"===this.local_options.sms_option||"DO_SEND"===this.local_options.sms_option&amp;&amp;null!==this.local_options.sms_template_id&amp;&amp;this.local_options.num_sms_reminders&gt;=0&amp;&amp;null!==this.local_options.sms_reminder_template_id&amp;&amp;null!==this.local_options.sms_num_days_wait}}),mounted:function(){var t=this;this.options&amp;&amp;(this.local_options=Object(n["a"])({},this.options)),this.$nextTick((function(){t.check_validity()}))},data:function(){return{local_options:{},value_of_sms_template_id:null,sms_template_id:null,num_reminders_options:[{value:0,text:"0"},{value:1,text:"1"},{value:2,text:"2"},{value:3,text:"3"}],num_days_options:[{value:1,text:"1"},{value:2,text:"2"},{value:3,text:"3"},{value:4,text:"4"},{value:5,text:"5"},{value:6,text:"6"},{value:7,text:"7"},{value:8,text:"8"},{value:9,text:"9"},{value:10,text:"10"},{value:11,text:"11"},{value:12,text:"12"},{value:13,text:"13"},{value:14,text:"14"}]}},watch:{options:{deep:!0,handler:function(t){this.local_options=Object(n["a"])({},t)}}},methods:{check_validity:function(){this.$emit("on_check_validity",this.name,this.is_valid,this.local_options)},reset_validation:function(){var t=this;this.item&amp;&amp;this.$nextTick((function(){return t.v$.$reset()}))},validate:function(){var t=this;return Object(m["a"])(Object(u["a"])().mark((function e(){return Object(u["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.v$.$validate();case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})))()},on_submit_sms_form:function(){}}},D=y,C=(i("5e09"),Object(N["a"])(D,$,x,!1,null,"44f02eb0",null)),A=C.exports,W=function(){var t=this,e=t._self._c;return e("div",{attrs:{id:"renew-guide-wizard-email-step"}},[e("b-alert",{attrs:{show:"",variant:"success"}},[e("h4",{staticClass:"alert-heading"},[t._v(t._s(t.$t("MEMBER_RENEW.WIZARD.INVOICE_OPTION_HEADER")))]),e("p",[t._v(" "+t._s(t.$t("MEMBER_RENEW.WIZARD.INVOICE_OPTION_INFO1"))+" ")])]),e("div",{staticClass:"form-group"},[e("div",{staticClass:"radio-list"},[e("label",{staticClass:"radio radio-outline radio-success mb-4"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.local_options.invoice_option,expression:"local_options.invoice_option"}],attrs:{type:"radio",value:"DIRECT",name:"INVOICE_OPTION"},domProps:{checked:t._q(t.local_options.invoice_option,"DIRECT")},on:{change:[function(e){return t.$set(t.local_options,"invoice_option","DIRECT")},t.check_validity]}}),e("span"),t._v(" "+t._s(t.$t("MEMBER_RENEW.WIZARD.INVOICE_OPTION_YES_DIRECT"))+" ")]),e("label",{staticClass:"radio radio-outline radio-success mb-4"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.local_options.invoice_option,expression:"local_options.invoice_option"}],attrs:{type:"radio",value:"LATER",name:"INVOICE_OPTION"},domProps:{checked:t._q(t.local_options.invoice_option,"LATER")},on:{change:[function(e){return t.$set(t.local_options,"invoice_option","LATER")},t.check_validity]}}),e("span"),t._v(" "+t._s(t.$t("MEMBER_RENEW.WIZARD.INVOICE_OPTION_YES_LATER"))+" ")]),e("label",{staticClass:"radio radio-outline radio-success mb-4"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.local_options.invoice_option,expression:"local_options.invoice_option"}],attrs:{type:"radio",value:"NONE",name:"INVOICE_OPTION"},domProps:{checked:t._q(t.local_options.invoice_option,"NONE")},on:{change:[function(e){return t.$set(t.local_options,"invoice_option","NONE")},t.check_validity]}}),e("span"),t._v(" "+t._s(t.$t("MEMBER_RENEW.WIZARD.INVOICE_OPTION_NO"))+" ")])])]),"DIRECT"===t.local_options.invoice_option?e("b-alert",{attrs:{show:"",variant:"danger"}},[e("h4",{staticClass:"alert-heading"},[t._v(t._s(t.$t("MEMBER_RENEW.WIZARD.INVOICE_DIRECT_DANGER_HEADER")))]),e("p",[t._v(" "+t._s(t.$t("MEMBER_RENEW.WIZARD.INVOICE_DIRECT_DANGER_INFO"))+" ")])]):t._e(),"DIRECT"===t.local_options.invoice_option||"LATER"===t.local_options.invoice_option?e("div",[e("p",[t._v(" "+t._s(t.$t("MEMBER_RENEW.WIZARD.INVOICE_SEND_OPTION_INFO"))+" ")]),e("div",{staticClass:"form-group"},[e("div",{staticClass:"radio-list"},[e("label",{staticClass:"radio radio-outline radio-success mb-4"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.local_options.invoice_send_option,expression:"local_options.invoice_send_option"}],attrs:{type:"radio",value:"MEMLIST",name:"INVOICE_SEND_OPTION"},domProps:{checked:t._q(t.local_options.invoice_send_option,"MEMLIST")},on:{change:[function(e){return t.$set(t.local_options,"invoice_send_option","MEMLIST")},t.check_validity]}}),e("span"),t._v(" "+t._s(t.$t("MEMBER_RENEW.WIZARD.INVOICE_SEND_OPTION_OPTION_YES"))+" ")]),e("label",{staticClass:"radio radio-outline radio-success mb-4"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.local_options.invoice_send_option,expression:"local_options.invoice_send_option"}],attrs:{type:"radio",value:"CUSTOMER",name:"INVOICE_SEND_OPTION"},domProps:{checked:t._q(t.local_options.invoice_send_option,"CUSTOMER")},on:{change:[function(e){return t.$set(t.local_options,"invoice_send_option","CUSTOMER")},t.check_validity]}}),e("span"),t._v(" "+t._s(t.$t("MEMBER_RENEW.WIZARD.INVOICE_SEND_OPTION_OPTION_NO"))+" ")])])]),null!==t.local_options.invoice_send_option?e("b-row",[e("b-col",{attrs:{cols:"12"}},[e("b-form",{ref:"form",on:{submit:function(e){return e.preventDefault(),t.on_submit_email_form.apply(null,arguments)}}},[e("b-form-group",{attrs:{"label-size":"sm","label-cols":"4","content-cols":"6",label:t.$t("MEMBER_RENEW.WIZARD.INVOICE_TEMPLATE_INFO")}},[e("b-form-select",{attrs:{options:t.templates,state:t.invoice_template_id_state},on:{change:t.check_validity},model:{value:t.local_options.invoice_template_id,callback:function(e){t.$set(t.local_options,"invoice_template_id",e)},expression:"local_options.invoice_template_id"}})],1)],1)],1)],1):t._e(),t.local_options.invoice_template_id?e("div",[e("p",[t._v(" "+t._s(t.$t("MEMBER_RENEW.WIZARD.INVOICE_NUM_REMINDERS_INFO"))+" ")]),e("b-form",{ref:"form",on:{submit:function(e){return e.preventDefault(),t.on_submit_email_form.apply(null,arguments)}}},[e("b-row",[e("b-col",{attrs:{cols:"12"}},[e("b-form-group",{attrs:{"label-size":"sm","label-cols":"4","content-cols":"6",label:t.$t("MEMBER_RENEW.WIZARD.INVOICE_NUM_REMINDERS")}},[e("b-form-select",{attrs:{options:t.num_reminders_options,state:t.num_invoice_reminders_state},on:{change:t.check_validity},model:{value:t.local_options.num_invoice_reminders,callback:function(e){t.$set(t.local_options,"num_invoice_reminders",e)},expression:"local_options.num_invoice_reminders"}})],1)],1)],1)],1)],1):t._e(),t.local_options.num_invoice_reminders&gt;0?e("div",[e("b-form",{ref:"form",on:{submit:function(e){return e.preventDefault(),t.on_submit_email_form.apply(null,arguments)}}},[e("b-row",[e("b-col",{attrs:{cols:"12"}},[e("b-form-group",{attrs:{"label-size":"sm","label-cols":"4","content-cols":"6",label:t.$t("MEMBER_RENEW.WIZARD.INVOICE_TEMPLATE_REMINDER_INFO")}},[e("b-form-select",{attrs:{options:t.templates,state:t.invoice_reminder_template_id_state},on:{change:t.check_validity},model:{value:t.local_options.invoice_reminder_template_id,callback:function(e){t.$set(t.local_options,"invoice_reminder_template_id",e)},expression:"local_options.invoice_reminder_template_id"}})],1)],1)],1)],1),null!==t.local_options.invoice_reminder_template_id?e("div",[e("b-form",{ref:"form",on:{submit:function(e){return e.preventDefault(),t.on_submit_email_form.apply(null,arguments)}}},[e("b-row",[e("b-col",{attrs:{cols:"12"}},[e("b-form-group",{attrs:{"label-size":"sm","label-cols":"4","content-cols":"6",label:t.$t("MEMBER_RENEW.WIZARD.INVOICE_REMINDER_NUM_DAYS_WAIT")}},[e("b-form-select",{attrs:{options:t.num_days_options,state:t.invoice_num_days_wait_state},on:{change:t.check_validity},model:{value:t.local_options.invoice_num_days_wait,callback:function(e){t.$set(t.local_options,"invoice_num_days_wait",e)},expression:"local_options.invoice_num_days_wait"}})],1)],1)],1)],1)],1):t._e()],1):t._e()],1):t._e()],1)},g=[],T={name:"RenewGuideWizardInvoiceStep",components:{},props:["options","templates","name"],emits:["on_check_validity"],mixins:[o["a"]],setup:function(){return{v$:Object(h["a"])()}},validations:function(){return{local_options:{invoice_template_id:{required:R["g"]},num_invoice_reminders:{required:R["g"]},invoice_reminder_template_id:{required:R["g"]},invoice_num_days_wait:{required:R["g"]}}}},computed:Object(n["a"])(Object(n["a"])({},Object(_["b"])(["currentCompanyId","currentPeriodId","companies","periods"])),{},{invoice_template_id_state:function(){return Object(f["e"])({dirty:this.v$.local_options.invoice_template_id.$dirty,error:this.v$.local_options.invoice_template_id.$error})},num_invoice_reminders_state:function(){return Object(f["e"])({dirty:this.v$.local_options.num_invoice_reminders.$dirty,error:this.v$.local_options.num_invoice_reminders.$error})},invoice_reminder_template_id_state:function(){return Object(f["e"])({dirty:this.v$.local_options.invoice_reminder_template_id.$dirty,error:this.v$.local_options.invoice_reminder_template_id.$error})},invoice_num_days_wait_state:function(){return Object(f["e"])({dirty:this.v$.local_options.invoice_num_days_wait.$dirty,error:this.v$.local_options.invoice_num_days_wait.$error})},is_infinite_period:function(){return 0===this.periods.length},is_valid:function(){return"NONE"===this.local_options.invoice_option}}),mounted:function(){var t=this;this.options&amp;&amp;(this.local_options=Object(n["a"])({},this.options)),this.$nextTick((function(){t.check_validity()}))},data:function(){return{local_options:{},num_reminders_options:[{value:0,text:"0"},{value:1,text:"1"},{value:2,text:"2"},{value:3,text:"3"}],num_days_options:[{value:14,text:"14"},{value:15,text:"15"},{value:16,text:"16"},{value:17,text:"17"},{value:18,text:"18"},{value:19,text:"19"},{value:20,text:"20"},{value:21,text:"21"},{value:22,text:"22"},{value:23,text:"23"},{value:24,text:"24"},{value:25,text:"25"},{value:26,text:"26"},{value:27,text:"27"},{value:28,text:"28"},{value:29,text:"29"},{value:30,text:"30"},{value:40,text:"40"},{value:50,text:"50"},{value:60,text:"60"}]}},watch:{options:{deep:!0,handler:function(t){this.local_options=Object(n["a"])({},t)}}},methods:{check_validity:function(){this.$emit("on_check_validity",this.name,this.is_valid,this.local_options)},reset_validation:function(){var t=this;this.item&amp;&amp;this.$nextTick((function(){return t.v$.$reset()}))},validate:function(){var t=this;return Object(m["a"])(Object(u["a"])().mark((function e(){return Object(u["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.v$.$validate();case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})))()},on_submit_email_form:function(){}}},k=T,S=(i("bb52"),Object(N["a"])(k,W,g,!1,null,"08c802fa",null)),z=S.exports,P=function(){var t=this,e=this,i=e._self._c;return i("div",{attrs:{id:"renew-guide-wizard-membership-step"}},[i("b-modal",{ref:"edit-form",attrs:{title:e.$t("MEMBERSHIP.CREATING"),"hide-footer":""}},[i("RenewGuideCreateMembershipEditor",{ref:"membership-editor",attrs:{shop_item_id:e.selected_shop_item_id},on:{cancel:function(){t.$refs["edit-form"].hide()},created:e.membership_created,updated:e.membership_updated}})],1),i("b-alert",{attrs:{show:"",variant:"success"}},[i("h4",{staticClass:"alert-heading"},[e._v(e._s(e.$t("MEMBER_RENEW.WIZARD.MEMBERSHIP_OPTION_HEADER")))]),i("p",[e._v(" "+e._s(e.$t("MEMBER_RENEW.WIZARD.MEMBERSHIP_OPTION_INFO1"))+" ")]),i("p",[e._v(" "+e._s(e.$t("MEMBER_RENEW.WIZARD.MEMBERSHIP_OPTION_INFO2"))+" ")])]),i("b-table",{ref:"membership-table",staticClass:"table-striped",staticStyle:{width:"100%","table-layout":"fixed"},attrs:{id:"membership-table",fields:e.fields,items:e.memberships,"head-variant":"light"},scopedSlots:e._u([{key:"cell(next_name)",fn:function(t){return[null===t.item.next_shop_item_id?i("div",[i("b-badge",{attrs:{variant:"danger"}},[e._v(e._s(e.$t("MEMBER_RENEW.WIZARD.NEXT_MISSING")))])],1):i("div",[e._v(" "+e._s(t.item.next_name)+" ")])]}},{key:"cell(actions)",fn:function(t){return[null===t.item.next_shop_item_id?i("div",[i("div",{staticClass:"justify-content-end d-flex"},[i("b-button",{staticClass:"ml-2",attrs:{variant:"primary",size:"sm"},on:{click:function(i){return i.preventDefault(),e.create_membership_clicked(t.item.current_shop_item_id)}}},[e._v(e._s(e.$t("MEMBER_RENEW.WIZARD.CREATE_NEXT")))])],1)]):e._e()]}}])})],1)},j=[],B=i("2909"),Z=(i("99af"),i("c740"),function(){var t=this,e=t._self._c;return e("div",{staticClass:"no-padding"},[e("div",{staticStyle:{height:"100%"}},[null===t.selected_shop_item?e("div",{staticClass:"d-flex justify-content-center mb-3"},[e("b-spinner",{attrs:{label:"Loading..."}})],1):e("div",[e("b-form",{ref:"form",staticClass:"mt-8",on:{submit:function(e){return e.preventDefault(),t.on_submit.apply(null,arguments)}}},[e("b-row",[e("b-col",{attrs:{cols:"12"}},[e("b-form-group",{attrs:{"label-size":"sm","label-cols":"4","content-cols":"6",label:t.$t("MEMBER_RENEW.WIZARD.MEMBERSHIP_CURRENT_NAME")}},[e("b-form-input",{attrs:{disabled:!0},model:{value:t.selected_shop_item.name,callback:function(e){t.$set(t.selected_shop_item,"name",e)},expression:"selected_shop_item.name"}})],1)],1)],1),e("b-row",[e("b-col",{attrs:{cols:"12"}},[e("b-form-group",{attrs:{"label-size":"sm","label-cols":"4","content-cols":"6",label:t.$t("MEMBER_RENEW.WIZARD.MEMBERSHIP_NEXT_NAME")}},[e("b-form-input",{attrs:{state:t.name_state},model:{value:t.form.name,callback:function(e){t.$set(t.form,"name",e)},expression:"form.name"}}),e("b-form-invalid-feedback",[t._v(t._s(t.$t("VALIDATION.REQUIRED")))])],1)],1)],1),e("b-row",[e("b-col",{attrs:{cols:"12"}},[e("b-form-group",{attrs:{"label-size":"sm","label-cols":"4","content-cols":"6",label:t.$t("MEMBER_RENEW.WIZARD.MEMBERSHIP_CURRENT_AMOUNT")}},[e("b-form-input",{attrs:{disabled:!0},model:{value:t.selected_shop_item.amount,callback:function(e){t.$set(t.selected_shop_item,"amount",e)},expression:"selected_shop_item.amount"}})],1)],1)],1),e("b-row",[e("b-col",{attrs:{cols:"12"}},[e("b-form-group",{attrs:{"label-size":"sm","label-cols":"4","content-cols":"6",label:t.$t("MEMBER_RENEW.WIZARD.MEMBERSHIP_NEXT_AMOUNT")}},[e("b-form-input",{attrs:{state:t.amount_state},model:{value:t.form.amount,callback:function(e){t.$set(t.form,"amount",e)},expression:"form.amount"}}),e("b-form-invalid-feedback",[t._v(t._s(t.$t("VALIDATION.REQUIRED")))])],1)],1)],1),e("p",{staticStyle:{"margin-top":"42px"}}),e("b-row",[e("b-col",[e("b-button",{ref:"save",staticClass:"save",attrs:{variant:"primary",type:"submit"}},[t._v(t._s(t.$t("COMMON.SAVE")))]),e("b-button",{staticClass:"ml-8 cancel",attrs:{variant:"danger"},on:{click:function(e){return t.$emit("cancel")}}},[t._v(t._s(t.$t("COMMON.CANCEL")))])],1)],1)],1)],1)])])}),L=[],H={name:"RenewGuideCreateMembershipEditor",props:["shop_item_id"],emits:["created","save_data","cancel"],mixins:[o["a"]],components:{},setup:function(){return{v$:Object(h["a"])()}},validations:function(){return{form:{name:{required:R["g"]},amount:{required:R["g"]}}}},watch:{},computed:Object(n["a"])(Object(n["a"])({},Object(_["b"])(["currentCompanyId","currentPeriodId","companies","periods","settings"])),{},{name_state:function(){return Object(f["e"])({dirty:this.v$.form.name.$dirty,error:this.v$.form.name.$error})},amount_state:function(){return Object(f["e"])({dirty:this.v$.form.amount.$dirty,error:this.v$.form.amount.$error})},disabledCreateButton:function(){return!this.form.name}}),mounted:function(){},methods:{load_shop_item:function(t){var e=this;return Object(m["a"])(Object(u["a"])().mark((function i(){var a;return Object(u["a"])().wrap((function(i){while(1)switch(i.prev=i.next){case 0:return i.prev=0,i.next=3,l.a.get("/shop_item/".concat(t));case 3:if(a=i.sent,200!==a.status){i.next=7;break}return e.selected_shop_item=a.data,i.abrupt("return");case 7:i.next=12;break;case 9:i.prev=9,i.t0=i["catch"](0),console.error("load_shop_item",i.t0);case 12:e.toastr("danger",e.$t("COMMON.ERROR"),e.$t("MEMBERSHIP.UNABLE_LOAD_SHOP_ITEM"));case 13:case"end":return i.stop()}}),i,null,[[0,9]])})))()},reset_validation:function(){var t=this;this.item&amp;&amp;this.$nextTick((function(){return t.v$.$reset()}))},validate:function(){var t=this;return Object(m["a"])(Object(u["a"])().mark((function e(){return Object(u["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.v$.$validate();case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})))()},on_submit:function(){var t=this;return Object(m["a"])(Object(u["a"])().mark((function e(){var i;return Object(u["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.validate();case 2:if(i=e.sent,i){e.next=6;break}return t.v$.$touch(),e.abrupt("return");case 6:return e.next=8,t.create_shop_item();case 8:case"end":return e.stop()}}),e)})))()},create_shop_item:function(){var t=this;return Object(m["a"])(Object(u["a"])().mark((function e(){var i;return Object(u["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,t.form.copy_from_shop_item_id=t.selected_shop_item.shop_item_id,t.form.amount_vat=0,t.form.company_id=t.currentCompanyId,e.next=6,l.a.post("/shop_item",t.form);case 6:i=e.sent,201===i.status&amp;&amp;(t.$emit("created",i.data,t.selected_shop_item),t.toastr("success",t.$t("COMMON.SUCCESS"),t.$t("MEMBERSHIP.CREATED"))),e.next=14;break;case 10:e.prev=10,e.t0=e["catch"](0),console.error(e.t0),t.toastr("danger",t.$t("COMMON.ERROR"),t.$t("MEMBERSHIP.UNABLE_CREATE"));case 14:case"end":return e.stop()}}),e,null,[[0,10]])})))()},save_data:function(){var t=this;return Object(m["a"])(Object(u["a"])().mark((function e(){return Object(u["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:t.$emit("save_data",t.member);case 1:case"end":return e.stop()}}),e)})))()}},data:function(){return{form:{},selected_shop_item:null,show_form:!0}}},U=H,F=(i("e006"),Object(N["a"])(U,Z,L,!1,null,"e2b7279c",null)),G=F.exports,q={name:"renew-guide-wizard-membership-step",components:{RenewGuideCreateMembershipEditor:G},props:["options","name"],emits:["on_check_validity"],mixins:[o["a"]],computed:Object(n["a"])(Object(n["a"])({is_infinite_period:function(){return 0===this.periods.length}},Object(_["b"])(["currentCompanyId","currentPeriodId","companies","periods"])),{},{is_valid:function(){return!0}}),mounted:function(){var t=this;this.$nextTick((function(){t.check_validity(),t.load_memberships()}))},data:function(){return{all_selected:!1,selected_shop_item_id:null,memberships:[],fields:[{key:"current_name",label:this.$t("MEMBER_RENEW.WIZARD.MEMBERSHIP_CURRENT_NAME"),sortable:!0,sortByFormatted:!0,tdClass:"td-short4",thClass:"td-short4"},{key:"next_name",label:this.$t("MEMBER_RENEW.WIZARD.MEMBERSHIP_NEXT_NAME"),sortable:!0,tdClass:"td-overflow",thClass:"td-overflow"},{key:"company_name",label:this.$t("MEMBER_RENEW.WIZARD.MEMBERSHIP_COMPANY_NAME"),sortable:!0,tdClass:"td-overflow",thClass:"td-overflow"},{key:"actions",label:""}]}},watch:{showNext:function(t,e){}},methods:{membership_updated:function(t){},membership_created:function(t,e){var i=this.memberships.findIndex((function(t){return t.current_shop_item_id===e.shop_item_id}));-1!==i&amp;&amp;(this.memberships[i].next_shop_item_id=t.shop_item_id,this.memberships[i].next_name=t.name),this.memberships=Object(B["a"])(this.memberships)},create_membership_clicked:function(t){var e=this;this.selected_shop_item_id=t,console.log("selected shop item",this.selected_shop_item_id),this.$refs["edit-form"].show(),this.$nextTick((function(){e.$refs["membership-editor"].load_shop_item(e.selected_shop_item_id)}))},load_memberships:function(){var t=this;return Object(m["a"])(Object(u["a"])().mark((function e(){var i;return Object(u["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,l.a.get("/member_renew/memberships/company/".concat(t.currentCompanyId,"/period/").concat(t.currentPeriodId));case 3:if(i=e.sent,200!==i.status){e.next=7;break}return t.memberships=i.data,e.abrupt("return");case 7:e.next=12;break;case 9:e.prev=9,e.t0=e["catch"](0),console.error(e.t0);case 12:case"end":return e.stop()}}),e,null,[[0,9]])})))()},check_validity:function(){this.$emit("on_check_validity",this.name,this.is_valid,this.options)},on_submit_email_form:function(){}}},V=q,Y=(i("d797"),Object(N["a"])(V,P,j,!1,null,"5e7bbea8",null)),X=Y.exports,J=function(){var t=this,e=t._self._c;return e("div",{attrs:{id:"renew-guide-wizard-membership-step"}},[e("b-alert",{attrs:{show:"",variant:"success"}},[e("h4",{staticClass:"alert-heading"},[t._v(t._s(t.$t("MEMBER_RENEW.WIZARD.SCHEDULE_HEADER")))]),e("p",[t._v(" "+t._s(t.$t("MEMBER_RENEW.WIZARD.SCHEDULE_INFO"))+" ")])]),e("div",{staticClass:"form-group"},[e("div",{staticClass:"radio-list"},[e("label",{staticClass:"radio radio-outline radio-success mb-4"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.local_options.schedule_option,expression:"local_options.schedule_option"}],attrs:{type:"radio",value:"AUTORENEW",name:"SCHEDULE_OPTION"},domProps:{checked:t._q(t.local_options.schedule_option,"AUTORENEW")},on:{change:[function(e){return t.$set(t.local_options,"schedule_option","AUTORENEW")},t.check_validity]}}),e("span"),t._v(" "+t._s(t.$t("MEMBER_RENEW.WIZARD.SCHEDULE_OPTION_AUTORENEW"))+" ")]),e("label",{staticClass:"radio radio-outline radio-success mb-4"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.local_options.schedule_option,expression:"local_options.schedule_option"}],attrs:{type:"radio",value:"AT_DATE",name:"SCHEDULE_OPTION"},domProps:{checked:t._q(t.local_options.schedule_option,"AT_DATE")},on:{change:[function(e){return t.$set(t.local_options,"schedule_option","AT_DATE")},t.check_validity]}}),e("span"),t._v(" "+t._s(t.$t("MEMBER_RENEW.WIZARD.SCHEDULE_OPTION_SCHEDULE"))+" ")])])]),"AT_DATE"===t.local_options.schedule_option?e("div",[e("b-row",[e("b-col",{attrs:{cols:"12"}},[e("b-form-group",{attrs:{"label-size":"sm","label-cols":"4","content-cols":"6",label:t.$t("MEMBER_RENEW.WIZARD.SCHEDULE_AT_DATE")}},[e("memlist-date-picker",{attrs:{id:"field-from_date"},on:{change:t.check_validity},model:{value:t.local_options.schedule_at_date,callback:function(e){t.$set(t.local_options,"schedule_at_date",e)},expression:"local_options.schedule_at_date"}})],1)],1)],1)],1):t._e()],1)},Q=[],K={name:"renew-guide-wizard-schedule-step",components:{},props:["options","name"],emits:["on_check_validity"],mixins:[o["a"]],computed:Object(n["a"])(Object(n["a"])({is_infinite_period:function(){return 0===this.periods.length}},Object(_["b"])(["currentCompanyId","currentPeriodId","companies","periods"])),{},{is_valid:function(){return!0}}),mounted:function(){var t=this;this.options&amp;&amp;(this.local_options=Object(n["a"])({},this.options)),this.$nextTick((function(){t.check_validity()}))},data:function(){return{local_options:{}}},watch:{options:{deep:!0,handler:function(t){this.local_options=Object(n["a"])({},t)}}},methods:{check_validity:function(){this.$emit("on_check_validity",this.name,this.is_valid,this.local_options)},on_submit_email_form:function(){}}},tt=K,et=(i("2736"),Object(N["a"])(tt,J,Q,!1,null,"51126754",null)),it=et.exports,at={name:"renew-guide-wizard",components:{RenewGuideWizardEmailStep:w,RenewGuideWizardSMSStep:A,RenewGuideWizardInvoiceStep:z,RenewGuideWizardMembershipStep:X,RenewGuideWizardScheduleStep:it},props:[],mixins:[o["a"]],computed:Object(n["a"])(Object(n["a"])({is_infinite_period:function(){return 0===this.periods.length}},Object(_["b"])(["currentCompanyId","currentPeriodId","companies","periods"])),{},{selected_period:function(){var t=this;return this.periods.find((function(e){return e.id===t.currentPeriodId}))},next_period:function(){var t=this;return this.periods.find((function(e){return e.id===t.selected_period.next_period_id}))},disabledNextButton:function(){if(!this.wizard)return!1;switch(this.wizard.currentStep){case 2:case 3:case 4:case 5:default:return!1}}}),mounted:function(){this.load_templates(),this.load_invoice_templates(),this.createWizard()},data:function(){return{sms_template_options:[],email_template_options:[],templates:[],invoice_template_options:[],options:{sms_option:null,email_option:null,num_email_reminders:null,num_sms_reminders:null,email_template_id:null,sms_template_id:null,invoice_template_id:null,email_reminder_template_id:null,sms_reminder_template_id:null,invoice_reminder_template_id:null,email_num_days_wait:null,sms_num_days_wait:null,invoice_num_days_wait:null,invoice_option:null,num_invoice_reminders:null,invoice_send_option:null,schedule_option:null,schedule_at_date:null},num_reminders_options:[{value:0,text:"0"},{value:1,text:"1"},{value:2,text:"2"},{value:3,text:"3"}],num_days_options:[{value:1,text:"1"},{value:2,text:"2"},{value:3,text:"3"},{value:4,text:"4"},{value:5,text:"5"},{value:6,text:"6"},{value:7,text:"7"},{value:8,text:"8"},{value:9,text:"9"},{value:10,text:"10"},{value:11,text:"11"},{value:12,text:"12"},{value:13,text:"13"},{value:14,text:"14"}],next_button_enabled:!0,current_step_name:"intro",sendEmail:!1,sendSMS:!1,created:!1,sendoutOptions:[],form:{},showNext:!0,currentPage:0,wizard:null,createOption:"split",companySelection:[],company:{id:"",name:""},pct_members:0,pct_members_text:"0 %",num_members_text:0,num_members_total:3e4,showPreviewSms:!1,showPreviewEmail:!1,filterCompanies:[],counts:{}}},watch:{showNext:function(t,e){}},methods:{finish_guide_clicked:function(){},on_check_validity:function(t,e,i){this.current_step_name===t&amp;&amp;(this.next_button_enabled=e)},on_submit_email_form:function(){},load_templates:function(){var t=this;return Object(m["a"])(Object(u["a"])().mark((function e(){var i,a;return Object(u["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t.templates=[],t.sms_template_options=[],t.email_template_options=[],e.prev=3,e.next=6,l.a.get("/template?company_id=".concat(t.currentCompanyId));case 6:for(i=e.sent,200===i.status&amp;&amp;(t.templates=i.data),a=0;a&lt;t.templates.length;++a)t.templates[a].is_sms?t.sms_template_options.push({value:t.templates[a].template_id,text:t.templates[a].name}):t.email_template_options.push({value:t.templates[a].template_id,text:t.templates[a].name});return e.abrupt("return");case 12:e.prev=12,e.t0=e["catch"](3),console.error("load_templates",e.t0);case 15:t.toastr("danger",t.$t("COMMON.ERROR"),t.$t("TEMPLATE.UNABLE_LIST"));case 16:case"end":return e.stop()}}),e,null,[[3,12]])})))()},load_invoice_templates:function(){var t=this;return Object(m["a"])(Object(u["a"])().mark((function e(){var i,a,s;return Object(u["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,l.a.get("/invoice_template");case 3:if(i=e.sent,200===i.status)for(a=i.data,s=0;s&lt;a.length;++s)t.invoice_template_options.push({value:a[s].id,text:a[s].name});return e.abrupt("return");case 8:e.prev=8,e.t0=e["catch"](0),console.error("load_templates",e.t0);case 11:t.toastr("danger",t.$t("COMMON.ERROR"),t.$t("TEMPLATE.UNABLE_LIST"));case 12:case"end":return e.stop()}}),e,null,[[0,8]])})))()},nextPage:function(){this.wizard.currentStep},createWizard:function(){var t=this;t.showNext=!0,t.wizard=new v["a"]("kt_wizard_v3",{startStep:1,clickableSteps:!0}),t.wizard.on("beforeNext",(function(){})),t.wizard.on("change",(function(){var e=this;setTimeout((function(){switch(p["a"].scrollTop(),t.currentPage=t.wizard.currentStep,t.currentPage){case 1:t.current_step_name="intro";break;case 2:t.current_step_name="period";break;case 3:t.current_step_name="email";break;case 4:t.current_step_name="sms";break;case 5:t.current_step_name="invoice";break;case 6:t.current_step_name="memberships";break;case 6:t.current_step_name="schedule";break;default:t.current_step_name="default";break}t.$refs[t.current_step_name]?t.$refs[t.current_step_name].check_validity():e.next_button_enabled=!0}),200)})),t.showNext=!1}}},st=at,nt=(i("df71"),Object(N["a"])(st,c,d,!1,null,"7d26f774",null)),ot=nt.exports,rt=(i("37c8"),{name:"RenewGuidePage",mixins:[o["a"]],components:{RenewGuideWizard:ot},computed:Object(n["a"])({},Object(_["b"])(["currentCompanyId","currentPeriodId"])),mounted:function(){},data:function(){return{}},watch:{},methods:{}}),lt=rt,_t=(i("36fb"),Object(N["a"])(lt,a,s,!1,null,"2bd68918",null));e["default"]=_t.exports},"4cab":function(t,e,i){"use strict";i.d(e,"e",(function(){return s})),i.d(e,"d",(function(){return n})),i.d(e,"b",(function(){return o})),i.d(e,"f",(function(){return r})),i.d(e,"c",(function(){return l})),i.d(e,"a",(function(){return _}));i("ac1f"),i("00b4");var a=i("c789"),s=function(t){return null!==t&amp;&amp;void 0!==t&amp;&amp;t.dirty?!(null!==t&amp;&amp;void 0!==t&amp;&amp;t.error):null},n=function(t){var e=/^\+?[0-9]{6,14}$/;return e.test(t)},o=function(t){var e=Object(a["d"])(t);return e.success},r=function(t){var e=new Date;return t&gt;=1900&amp;&amp;t&lt;=e.getFullYear()},l=function(t,e){var i=parseInt(t,10),a=parseInt(e,10);if(i&gt;=1&amp;&amp;i&lt;=12){var s=new Date;return a!==s.getFullYear()||i&lt;=s.getMonth()+1}return!1},_=function(t,e,i){var a=parseInt(t,10),s=parseInt(e,10),n=parseInt(i,10);if(a&gt;=1&amp;&amp;a&lt;=31){var o=new Date;if(n===o.getFullYear()&amp;&amp;s===o.getMonth()+1)return a&lt;=o.getDate();var r=new Date(i,e,0).getDate();return!!isNaN(r)||a&lt;=r}return!1}},"5e09":function(t,e,i){"use strict";i("18a3")},"6b78":function(t,e,i){},"6df7":function(t,e,i){},"8f8a":function(t,e,i){},b244:function(t,e,i){},bb52:function(t,e,i){"use strict";i("8f8a")},d12f:function(t,e,i){"use strict";i("6b78")},d797:function(t,e,i){"use strict";i("6df7")},df71:function(t,e,i){"use strict";i("1cd5")},e006:function(t,e,i){"use strict";i("ed8e")},ed8e:function(t,e,i){}}]);
//# sourceMappingURL=chunk-25953094.286be8bc.js.map</pre></body></html>