PageSourceSearch

https://ps-shop.me/_nuxt/DmG2b3rt.js

js ps-shop.me collected 2026-10-08 00:54:58 UTC 4,290 bytes, 1 lines download raw bytes

1import{d as w,M as m,B as h,_ as y,r as C,b as r,h as u,w as k,j as t,t as o,c as n,F as _,e as l,n as d,i as P}from"./DVTi7wDo.js";import{_ as f}from"./CvSy2bJB.js";const $=w({name:"ProxyMobileTimer",components:{ButtonBox:h,Counter:f,Modal:m},props:{show:{type:Boolean,required:!0},order:{type:Object,required:!0}},emits:["close"],data(){return{isPerformingErrored:!1,isPerforming:!1,isPerformed:!1,performType:null,isLoading:!1,isLoadingErrored:!1,loaded_order_id:null,interval:{in_order:0,new:0}}},watch:{show(){this.show&&(this.resetData(),this.getOrder())}},mounted(){this.getOrder()},methods:{close(){this.$emit("close")},async getOrder(){this.isLoading=!0;try{const{order:e}=await this.$api.usersOrders.get(this.order.id);if(!e.channels||e.channels.length===0){this.isLoadingErrored=!0;return}this.interval.in_order=e.channels[0].auto_reset?Math.round(e.channels[0].auto_reset):0,this.interval.new=this.interval.in_order,this.loaded_order_id=e.id}catch(e){console.log("get order err",e),this.isLoadingErrored=!0}this.isLoading=!1},resetData(){this.isPerformingErrored=!1,this.isPerforming=!1,this.isPerformed=!1,this.performType=null,this.isLoading=!1,this.isLoadingErrored=!1,this.interval={in_order:0,new:0}},async saveInterval(e){if(!this.isPerforming){this.isPerformed=!1,this.isPerformingErrored=!1;try{this.performType=e,this.isPerforming=!0;let s=this.interval.new;e==="turn_off"?s=0:(this.interval.new<2?this.interval.new=2:this.interval.new>1440&&(this.interval.new=1440),s=this.interval.new),s=s,(await this.$api.usersOrders.perform(this.order.id,{interval:s,operation:"channels-set-autoreset"})).operation_status==="failed"?this.isPerformingErrored=!0:(e!=="turn_off"&&(this.isPerformed=!0),e==="save_new"?this.interval.in_order=this.interval.new:(this.interval.in_order=0,this.interval.new=0))}catch(s){console.log("save interval err",s),this.isPerformingErrored=!0}this.isPerforming=!1}}}}),b="_timerInput_1oo5b_1",E={timerInput:b},B={class:"ui-modal__head"},L=["textContent"],I=["textContent"],M={key:0,class:"ui-modal__fields"},x=["textContent"],T={class:"ui-modal__fields"},O={class:"ui-notice"},V={class:"ui-notice__icon"},D=["textContent"],N={class:"ui-modal__buttons"},j={class:"ui-modal__fields"},q=["textContent"],F={class:"ui-modal__buttons"},z=["textContent"],S=["textContent"];function U(e,s,c,G,H,J){const v=C("Icon"),a=h,p=f,g=m;return r(),u(g,{show:e.show,onClose:e.close},{default:k(()=>[t("div",B,[t("div",{class:"ui-modal__head_title",textContent:o(e.$t("lk.proxy.timer.title"))},null,8,L),t("div",{class:"ui-modal__head_text",textContent:o(e.$t("lk.proxy.timer.subtitle"))},null,8,I)]),e.isLoading?(r(),n("div",M,[...s[4]||(s[4]=[t("div",{class:"l-skeleton__field"},[t("span"),t("span")],-1),t("div",{class:"l-skeleton__field"},[t("span"),t("span")],-1)])])):e.isLoadingErrored?(r(),n("div",{key:1,class:"ui-modal__msg _error _show",textContent:o(e.$t("errors.internal"))},null,8,x)):e.interval.new===0?(r(),n(_,{key:2},[t("div",T,[t("div",O,[t("div",V,[l(v,{name:"warn"})]),t("div",{class:"ui-notice__text",textContent:o(e.$t("lk.proxy.timer.not_set"))},null,8,D)])]),t("div",N,[l(a,{color:"blue",title:"lk.proxy.timer.setup_timer",onClick:s[0]||(s[0]=i=>e.interval.new=2)})])],64)):(r(),n(_,{key:3},[t("div",j,[t("div",{class:d(e.$style.timerInput)},[l(p,{modelValue:e.interval.new,"onUpdate:modelValue":s[1]||(s[1]=i=>e.interval.new=i),modelModifiers:{number:!0},max:1440,min:2},null,8,["modelValue"]),t("div",{textContent:o(e.$t("lk.proxy.timer.timer_label"))},null,8,q)],2)]),t("div",F,[l(a,{color:"blue",title:"buttons.save",loading:e.isPerforming&&e.performType==="save_new",onClick:s[2]||(s[2]=i=>e.saveInterval("save_new"))},null,8,["loading"]),e.interval.in_order>0?(r(),u(a,{key:0,color:"blue_secondary",title:"lk.proxy.timer.remove_timer",loading:e.isPerforming&&e.performType==="turn_off",onClick:s[3]||(s[3]=i=>e.saveInterval("turn_off"))},null,8,["loading"])):P("",!0)]),t("div",{class:d(["ui-field-error",{_show:e.isPerformingErrored}]),textContent:o(e.$t("errors.internal_short"))},null,10,z),t("div",{class:d(["ui-modal__msg _success",{_show:e.isPerformed}]),textContent:o(e.$t("lk.proxy.timer.success"))},null,10,S)],64))]),_:1},8,["show","onClose"])}const A={$style:E},R=y($,[["render",U],["__cssModules",A]]);export{R as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.