"use strict";(self["webpackChunkaida"]=self["webpackChunkaida"]||[]).push([[6752],{96752:function(e,t,a){a.r(t),a.d(t,{default:function(){return U}});var s=a(66252),l=a(3577),n=a(49963);const c=e=>((0,s.dD)("data-v-318c7da7"),e=e(),(0,s.Cn)(),e),i={class:"cancelRenewal_page"},u={key:0,class:"renewal"},r={class:"cancel_box_item"},o={class:"modal_title_text"},d={class:"cause_list"},w=["value"],v=c((()=>(0,s._)("div",{class:"cancel_box_item cancel_box_item2"},null,-1))),p={key:1,class:"no_renewal"},_={class:"button_box"},b={class:"mark_loading"};function k(e,t,a,c,k,h){const m=(0,s.up)("a-spin"),y=(0,s.up)("renew");return(0,s.wg)(),(0,s.iD)("div",i,["active"==e.userDetail.status&&3!=e.userDetail.systemUser?((0,s.wg)(),(0,s.iD)("div",u,[(0,s._)("div",r,[(0,s._)("div",o,[(0,s._)("div",null,(0,l.zw)(e.$t("cancelRenewal.cancelling")),1)]),(0,s._)("div",d,[((0,s.wg)(!0),(0,s.iD)(s.HY,null,(0,s.Ko)(e.causeList,(a=>((0,s.wg)(),(0,s.iD)("label",{class:"cause_item",key:a.vlaue},[(0,s.wy)((0,s._)("input",{type:"checkbox",name:"cause","onUpdate:modelValue":t[0]||(t[0]=t=>e.selectedOptions=t),value:a.value},null,8,w),[[n.e8,e.selectedOptions]]),(0,s._)("div",null,(0,l.zw)(a.str),1)])))),128)),(0,s.wy)((0,s._)("textarea",{"onUpdate:modelValue":t[1]||(t[1]=t=>e.textareaValue=t),placeholder:"Share your feedback here..."},null,512),[[n.nr,e.textareaValue]])])]),v])):((0,s.wg)(),(0,s.iD)("div",p,(0,l.zw)(e.$t("cancelRenewal.subscriptionRenewal")),1)),(0,s._)("div",_,["active"==e.userDetail.status&&3!=e.userDetail.systemUser?((0,s.wg)(),(0,s.iD)("div",{key:0,class:"gallery_btn",onClick:t[2]||(t[2]=(...t)=>e.cancelSubscription&&e.cancelSubscription(...t))},(0,l.zw)(e.$t("cancelRenewal.cancel")),1)):((0,s.wg)(),(0,s.iD)("div",{key:1,class:"gallery_btn white",onClick:t[3]||(t[3]=(...t)=>e.subscribe&&e.subscribe(...t))},(0,l.zw)(e.$t("cancelRenewal.Continue")),1))]),(0,s.wy)((0,s._)("div",b,[(0,s.Wm)(m,{size:"large"})],512),[[n.F8,e.isShowMark]]),(0,s.Wm)(y,{ref:"renew"},null,512)])}var h=a(2262),m=a(74961),y=a(61446),D=a(33907),f=a(8552),g=a(41843),x=(0,s.aZ)({components:{renew:g["default"]},setup(){const e=(0,D.oR)(),{t:t}=(0,f.QT)();let a=(0,s.Fl)((()=>e.state.UserHabit.userDetail)),l=(0,h.qj)({textareaValue:"",isShowMark:!1,causeList:[{vlaue:"Too expensive",str:t("account.jsContent1")},{value:"Sytem not user friendly",str:t("account.jsContent2")},{value:"Too Slowy",str:t("account.jsContent3")},{value:"Difficult to edit",str:t("account.jsContent4")},{value:"Insufficlent Tutorial/Support",str:t("account.jsContent5")},{value:"Unable to generate what you need",str:t("account.jsContent6")}],selectedOptions:[]}),n=(0,h.iH)();const c=()=>{n.value.init()},i=()=>{let t="";l.selectedOptions.forEach((e=>{t+=" #"+e}));let s={subscriptionId:a.value.subscriptionId,reason:l.textareaValue+t};l.isShowMark=!0,m.V.axiosGet(m.V.httpUrls.cancelSubscription,{params:s}).then((t=>{y.ZP.success(t);let a={status:"canceled"};l.isShowMark=!1,e.commit("upUserDetail",a)})).catch((e=>{l.isShowMark=!1}))};return{...(0,h.BK)(l),userDetail:a,renew:n,subscribe:c,cancelSubscription:i}},data(){return{}}}),S=a(83744);const C=(0,S.Z)(x,[["render",k],["__scopeId","data-v-318c7da7"]]);var U=C}}]);