1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./BDzLRW3S.js","./BEf7-8Bi.js","./entry.DM5NsxJU.css","./c_CCQ-sB.js","./Bb0ol36V.js","./Bwa35FPs.js","./A4GzcguU.js","./DXx3I43y.js","./SelectBoxLine.DVCH0_Tm.css","./xPGEof6T.js","./CMMw5z2x.js","./ProxyProlong.Bc8-YOEu.css","./C2deVxk1.js","./BjEnzPLy.js","./DLyxuPdb.js","./ProxyGroupProlong.PN5wLiP3.css"])))=>i.map(i=>d[i]); 2import{S as x}from"./BNFX-iFV.js";import{_ as P}from"./DTLiDeHQ.js";import{C as O}from"./Bb0ol36V.js";import{d as I,B as w,a8 as y,aT as m,aM as $,a2 as D,aR as g,aS as C,_ as T,r as _,y as G,b as l,c as r,j as t,t as s,e as d,n as i,i as a,F as f,f as R,z as N,p as U,h as v}from"./BEf7-8Bi.js";import{s as H,a as z}from"./DTucgpZ6.js";const F=g(()=>C(()=>import("./BDzLRW3S.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11]),import.meta.url)),j=g(()=>C(()=>import("./C2deVxk1.js"),__vite__mapDeps([12,13,1,2]),import.meta.url)),q=g(()=>C(()=>import("./DLyxuPdb.js"),__vite__mapDeps([14,5,1,2,6,9,10,15]),import.meta.url)),u=0,J=I({name:"MyProxyExpired",components:{ButtonBox:w,CheckBox:O,TagsList:P,SwitchCurrency:x,ProxyProlong:F,ProxyEditOrderComment:j,ProxyGroupProlong:q},data(){return{info:{Services:$},service_id:u,selected_orders:[],proxy_action:{current:null,current_order:null,render_components:{edit_note:!1,prolong:!1}},mobile_actions_opened:null,proxy_group_prolong:{show:!1,render:!1,selected_orders:[]},get_orders_interval:null}},computed:{...D(y,["orders_loaded","orders_err"]),tags(){return[{value:u,title:"lk.proxy.tab.all_orders"},...$]},isMobileProxy(){return this.service_id!==u&&m(this.service_id)},showHeaderCheckbox(){return this.isMobileProxy?!1:this.service_id===u?!this.orders.some(e=>m(e.service.id)):!0},orders(){const e=y().expiredOrders;return this.service_id===u?e:e.filter(n=>n.service.id===this.service_id)}},mounted(){this.getOrders(),this.regularGetOrders(),this.$eventBus.$on("updateCurrency",this.getOrders)},beforeUnmount(){clearInterval(this.get_orders_interval),this.$eventBus.$off("updateCurrency",this.getOrders)},methods:{isMobileProxyOrder(e){return m(e.service.id)},handleSelectOrder(e){const n=this.selected_orders.indexOf(e);n>-1?this.selected_orders.splice(n,1):this.selected_orders.push(e)},handleHeaderCheckbox(){this.selected_orders.length>0?this.selected_orders=[]:this.selected_orders=this.orders.map(e=>e.id)},getOrders(e){y().getOrders({force_reload:!0,silent_reload:e})},regularGetOrders(){this.get_orders_interval=H(()=>{this.getOrders(!0)},1e3*5)},openAction(e,n){this.proxy_action.render_components[e]=!0,this.proxy_action.current_order=n,this.proxy_action.current=e},openGroupProlong(){if(this.selected_orders.length!==0)if(this.selected_orders.length===1){const e=this.orders.find(n=>n.id===this.selected_orders[0]);if(!e)return;this.openAction("prolong",e);return}else this.proxy_group_prolong.selected_orders=this.selected_orders.reduce((e,n)=>{const p=this.orders.find(b=>b.id===n);return p&&e.push(p),e},[]),this.proxy_group_prolong.render=!0,this.proxy_group_prolong.show=!0},changeService(e){this.service_id=e,this.selected_orders=[]}}}),K={class:"lk-head"},Q={class:"lk-head__title"},W=["textContent"],X={key:0,class:"ui-table _info"},Y=["textContent"],Z=["textContent"],ee={key:3,class:"ui-table _big"},te={class:"ui-table-th"},oe={class:"ui-table-cell _check-box"},ne={key:0},se={class:"ui-table-cell"},le=["textContent"],re={class:"ui-table-cell"},ie=["textContent"],de={class:"ui-table-cell"},ae=["textContent"],ue={class:"ui-table-cell"},ce=["textContent"],_e={class:"ui-table-cell"},pe=["textContent"],he={class:"ui-table-cell"},ye=["textContent"],me={class:"ui-table-cell _check-box"},ve=["textContent"],ge=["onClick"],Ce=["onClick","textContent"],be={class:"ui-table-cell"},ke=["textContent"],$e={key:0,class:"ui-location"},fe={class:"ui-location__title"},xe={key:0},Pe={key:1},Oe={class:"ui-table-cell"},we=["textContent"],Ee={class:"ui-table-cell"},Se=["textContent"],Be={class:"ui-table-cell"},Me=["textContent"],Ve=["onClick"],Le=["onClick"],Ae=["textContent"];function Ie(e,n,p,b,Te,Ge){const E=x,S=P,k=O,h=_("Icon"),B=w,M=_("ProxyProlong"),V=_("ProxyEditOrderComment"),L=_("ProxyGroupProlong"),A=G
2("tooltip");return l(),r("div",null,[t("div",K,[t("div",Q,[t("h1",{textContent:s(e.$t("lk.nav.proxy_expired"))},null,8,W),d(E)])]),t("div",{class:i(e.$style.tags)},[d(S,{tags:e.tags,"model-value":e.service_id,"onUpdate:modelValue":n[0]||(n[0]=o=>e.changeService(Number(o)))},null,8,["tags","model-value"])],2),t("div",{class:i(e.$style.contentTable)},[e.orders_loaded?e.orders_err?(l(),r("div",{key:1,class:"ui-table _info _err",textContent:s(e.$t("lk.proxy.err"))},null,8,Y)):e.orders.length===0?(l(),r("div",{key:2,class:"ui-table _info",textContent:s(e.$t("lk.proxy.empty"))},null,8,Z)):(l(),r("div",ee,[t("table",null,[t("thead",null,[t("tr",te,[t("th",oe,[e.showHeaderCheckbox?(l(),r("div",ne,[d(k,{"model-value":e.orders.length===e.selected_orders.length,partly_filled:e.selected_orders.length>0&&e.selected_orders.length!==e.orders.length,"onUpdate:modelValue":e.handleHeaderCheckbox},null,8,["model-value","partly_filled","onUpdate:modelValue"])])):a("",!0)]),t("th",se,[t("div",{textContent:s(e.$t("lk.proxy.th.order"))},null,8,le)]),t("th",re,[t("div",{textContent:s(e.$t("lk.proxy.th.location"))},null,8,ie)]),t("th",de,[t("div",{textContent:s(e.$t(e.isMobileProxy?"lk.proxy.th.channels":"lk.proxy.th.ip"))},null,8,ae)]),t("th",ue,[t("div",{textContent:s(e.$t("price"))},null,8,ce)]),t("th",_e,[t("div",{textContent:s(e.$t("lk.proxy.th.date_end"))},null,8,pe)]),t("th",he,[t("div",{textContent:s(e.$t("lk.proxy.th.actions"))},null,8,ye)])])]),t("tbody",null,[(l(!0),r(f,null,R(e.orders,o=>(l(),r("tr",{key:o.id,class:"ui-table-tr"},[t("td",me,[t("div",null,[d(k,{disabled:e.isMobileProxyOrder(o),"model-value":e.selected_orders.indexOf(o.id)>-1,"onUpdate:modelValue":c=>e.handleSelectOrder(o.id)},null,8,["disabled","model-value","onUpdate:modelValue"])])]),t("td",{class:i(["ui-table-cell",e.$style.tableCell_order_number])},[t("div",null,[t("div",{class:i(e.$style.orderId)},[t("div",{textContent:s(o.id)},null,8,ve),N((l(),r("button",{type:"button",onClick:c=>e.openAction("edit_note",o)},[d(h,{name:"edit"})],8,ge)),[[A,{content:e.$t("lk.proxy.order_note.tooltip")}]])],2),o.note?(l(),r("div",{key:0,class:i(e.$style.orderNote),role:"button",tabindex:"0",onClick:c=>e.openAction("edit_note",o),textContent:s(o.note.length>75?o.note.slice(0,75)+"â¦":o.note)},null,10,Ce)):a("",!0)])],2),t("td",be,[t("div",null,[t("span",{class:"_hidden-label",textContent:s(e.$t("lk.proxy.th.location")+":")},null,8,ke),o.location?(l(),r("div",$e,[o.location.code?(l(),r("div",{key:0,class:i(["ui-location__flag fi",[`fi-${o.location.code.toLowerCase()}`]])},null,2)):a("",!0),t("div",fe,[o.location.country_name&&o.location.country_name!==o.location.name?(l(),r("span",xe,[U(s(o.location.country_name)+" ,",1),n[6]||(n[6]=t("br",null,null,-1))])):a("",!0),t("span",null,s(o.location.name),1),o.operator?(l(),r(f,{key:1},[n[7]||(n[7]=t("span",null,",",-1)),n[8]||(n[8]=t("br",null,null,-1)),t("span",null,s(o.operator.name),1)],64)):a("",!0)])])):(l(),r("span",Pe,"-"))])]),t("td",Oe,[t("div",null,[t("span",{class:"_hidden-label",textContent:s(e.$t(e.isMobileProxy?"lk.proxy.th.channels":"lk.proxy.th.ip")+":")},null,8,we),t("span",null,s(o.quantity)+" "+s(e.$t("uom.pcs")),1)])]),t("td",Ee,[t("div",null,[t("span",{class:"_hidden-label",textContent:s(e.$t("price")+":")},null,8,Se),t("span",null,s(e.$money(o.converted_amount)),1)])]),t("td",Be,[t("div",null,[t("span",{class:"_hidden-label",textContent:s(e.$t("lk.proxy.th.date_end")+":")},null,8,Me),t("span",null,s(e.$date_format(o.deactivated_at??0)),1)])]),t("td",{class:i(["ui-table-cell",e.$style.actions])},[t("button",{class:i([e.$style.actionsButton,{[e.$style._active]:e.mobile_actions_opened===o.id}]),onClick:c=>e.mobile_actions_opened=e.mobile_actions_opened===o.id?null:o.id},[d(h,{name:"more"})],10,Ve),t("ul",{class:i([e.$style.actionsList,{[e.$style._mobileShowed]:e.mobile_actions_opened===o.id}])},[t("li",null,[t("button",{type:"button",onClick:c=>e.openAction("prolong",o)},[d(h,{name:"coin"}),t("span",{textContent:s(e.$t("lk.proxy.prolong.name"))},null,8,Ae)],8,Le)])],2)],2)]))),128))])])])):(l(),r("div",X,[...n[5]||(n[5]=[t("div",{class:"loader"},null,-1)])])),t("div",{class:i([e.$style.prolongMass,{[e.$style._active]:e.selected_orders.length>0}])}
2,[d(B,{title:"lk.proxy.group_prolong.prolong_chosen",icon:"coin",color:"blue",onClick:e.openGroupProlong},null,8,["onClick"])],2)],2),e.proxy_action.render_components.prolong?(l(),v(M,{key:0,order:e.proxy_action.current_order,show:e.proxy_action.current==="prolong",onClose:n[1]||(n[1]=o=>e.proxy_action.current=null)},null,8,["order","show"])):a("",!0),e.proxy_action.render_components.edit_note&&e.proxy_action.current_order?(l(),v(V,{key:1,order:e.proxy_action.current_order,show:e.proxy_action.current==="edit_note",onClose:n[2]||(n[2]=o=>e.proxy_action.current=null)},null,8,["order","show"])):a("",!0),e.proxy_group_prolong.render?(l(),v(L,{key:2,show:e.proxy_group_prolong.show,selected_orders:e.proxy_group_prolong.selected_orders,onClose:n[3]||(n[3]=o=>e.proxy_group_prolong.show=!1),onProlonged:n[4]||(n[4]=o=>{e.proxy_group_prolong.selected_orders=[],e.selected_orders=[]})},null,8,["show","selected_orders"])):a("",!0)])}const De={$style:z},Fe=T(J,[["render",Ie],["__cssModules",De]]);export{Fe 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.