PageSourceSearch

https://anardoni.com/js/8481.432e93f9.js

js anardoni.com collected 2026-10-02 17:58:04 UTC 8,219 bytes, 1 lines download raw bytes

1"use strict";(globalThis["webpackChunkanar_front"]=globalThis["webpackChunkanar_front"]||[]).push([[8481],{58372(e,t,a){a.d(t,{A:()=>m});a(63150),a(43218);var s=a(1837),l=a(61758),n=a(38734),i=a(60706),o=a(760),c=a(65586),d=a(63349),r=a(5261),u=a(36771),v=a(15954);const m=(0,l.pM)({components:{AddDeviceComponent:d.A,DeleteDeviceConfirm:c.A,DeviceCardViewComponent:v.A,SkeletonHorizontalCardComponent:s["default"]},name:"DeviceComponent",setup(){const{showNotify:e}=(0,r.A)(),t=(0,n.KR)({}),a=(0,n.KR)([]),s=(0,u.Pj)(),c=(0,n.KR)(!1),d=(0,n.KR)(!1),v=(0,l.EW)(()=>s.getters["auth/getDevice"]),m=(0,l.EW)(()=>v.value?a.value.filter(({is_default:e})=>1==e)[0]:a.value[0]),f=()=>{c.value=!0,(0,o.A)().getDevices().then(e=>{a.value=e}).finally(()=>c.value=!1)},p=(t,a=1)=>{(0,i.A)(t).then(()=>{1==a?e("یودی آیدی کپی شد"):2==a&&e("شماره دستگاه کپی شد")})},b=async t=>{await(0,o.A)().setDefault(t.id),f(),s.dispatch("auth/storeDevice",t).then(()=>{e("دستگاه پیشفرض تغییر یافت")})},g=async()=>{c.value=!0,await(0,o.A)().deleteDevice(t.value.id).then(e=>{e.status&&f()}).finally(()=>{d.value=!1,c.value=!1,t.value={}})};return f(),{device:t,devices:a,loading:c,confirmModal:d,defaultDevice:m,copyUdid:p,deleteDevice:g,changeDefaultDevice:b,statusColor:{1:"red-8",2:"green",3:"pink",4:"pink-2",5:"orange",6:"blue"},statusLabel:{1:"device.disable",2:"device.active",3:"device.expire",4:"device.revoke",5:"device.activating",6:"device.eligible_registration"}}}})},74150(e,t,a){a.d(t,{A:()=>i});var s=a(61758),l=a(38734),n=a(85446);const i=(0,s.pM)({name:"DeviceCardViewComponent",props:{label:String,status:Object,udid:String,number:[Number,String],actions:Object},setup(e){const t=(0,l.KR)(""),{mask:a}=(0,n.A)();return t.value=a(e.udid,10,"#"),{maskedUdid:t}}})},3218(e,t,a){a.d(t,{A:()=>o});var s=a(99616),l=a(61758),n=a(85220),i=a(51173);const o=(0,l.pM)({name:"DevicesPage",components:{deviceComponent:s.A},setup(){const e=(0,n.A)("profile.devices.title").metaData;(0,i.A)(e)}})},55716(e,t,a){a.d(t,{X:()=>d});a(63150),a(43218);var s=a(61758),l=a(58790);const n={class:"q-mb-sm q-mt-md font-heavy text-grey-9"},i={class:"q-mb-sm q-mt-md font-heavy text-grey-9"},o=["src"],c={key:2};function d(e,t,d,r,u,v){const m=(0,s.g2)("add-device-component"),f=(0,s.g2)("skeleton-horizontal-card-component"),p=(0,s.g2)("device-card-view-component"),b=(0,s.g2)("q-btn"),g=(0,s.g2)("delete-device-confirm");return(0,s.uX)(),(0,s.CE)("div",null,[(0,s.bF)(m),e.loading?((0,s.uX)(),(0,s.Wv)(f,{key:0})):e.devices.length?((0,s.uX)(),(0,s.CE)(s.FK,{key:1},[e.defaultDevice?((0,s.uX)(),(0,s.CE)(s.FK,{key:0},[(0,s.Lk)("div",n,(0,l.v_)(e.$t("device.default_device")),1),(0,s.bF)(p,{onCopy:e.copyUdid,label:e.defaultDevice.label,number:e.defaultDevice.id,udid:e.defaultDevice.udid,status:{color:e.statusColor[e.defaultDevice.status],label:e.statusLabel[e.defaultDevice.status]},actions:e.menuItems,onRemove:t[0]||(t[0]=t=>[e.device=e.defaultDevice,e.confirmModal=!0])},null,8,["onCopy","label","number","udid","status","actions"])],64)):(0,s.Q3)("",!0),e.devices.length>1?((0,s.uX)(),(0,s.CE)(s.FK,{key:1},[(0,s.Lk)("div",i,(0,l.v_)(e.$t("device.others")),1),((0,s.uX)(!0),(0,s.CE)(s.FK,null,(0,s.pI)(e.devices.filter(({is_default:e})=>0==e),(t,n)=>((0,s.uX)(),(0,s.CE)("div",{key:n},[(0,s.bF)(p,{onCopy:e.copyUdid,label:t.label,number:t.id,udid:t.udid,status:{color:e.statusColor[t.status],label:e.statusLabel[t.status]},actions:e.menuItems,onRemove:a=>[e.device=t,e.confirmModal=!0]},{action:(0,s.k6)(()=>[(0,s.bF)(b,{flat:"",dense:"",class:"font-bold",color:"blue",onClick:a=>e.changeDefaultDevice(t)},{default:(0,s.k6)(()=>[(0,s.Lk)("img",{src:a(73506),alt:"tick",class:"q-pl-sm"},null,8,o),(0,s.Lk)("span",null,(0,l.v_)(e.$t("profile.devices.set_default")),1)]),_:2},1032,["onClick"])]),_:2},1032,["onCopy","label","number","udid","status","actions","onRemove"])]))),128))],64)):(0,s.Q3)("",!0)],64)):(0,s.Q3)("",!0),e.confirmModal?((0,s.uX)(),(0,s.CE)("div",c,[(0,s.bF)(g,{confirmModal:e.confirmModal,title:e.device.label,caption:e.$t("device.delete_confirm"),loading:e.loading,onClose:t[1]||(t[1]=t=>e.confirmModal=!1),onConfirm:t[2]||(t[2]=t=>
1e.deleteDevice())},null,8,["confirmModal","title","caption","loading"])])):(0,s.Q3)("",!0)])}},78574(e,t,a){a.d(t,{X:()=>h});var s=a(61758),l=a(58790);const n={class:"items-center size-6 font-heavy"},i=["src"],o={class:"q-mr-sm"},c={key:0,class:"flex justify-between items-center"},d={class:"text-grey-7"},r={class:"q-mt-xs text-grey-9 font-heavy"},u={class:"flex justify-between items-center"},v={class:"text-grey-7"},m={class:"vertical-middle q-mt-xs text-grey-9 font-heavy"},f={class:"flex justify-between items-center"},p={class:"text-grey-7"},b={class:"flex align-center"},g={class:"vertical-middle q-mt-xs text-grey-9 font-heavy"},k={class:"text-blue size-5 font-bold q-pt-sm"},y=["src"],A={class:"flex justify-between"},C=["src"];function h(e,t,h,x,_,D){const L=(0,s.g2)("q-separator"),q=(0,s.g2)("q-avatar"),X=(0,s.g2)("q-btn"),F=(0,s.g2)("q-expansion-item"),$=(0,s.g2)("q-card-section"),w=(0,s.g2)("q-card");return(0,s.uX)(),(0,s.Wv)(w,{flat:"",class:"full-width radius-md text-grey-9 q-mt-sm"},{default:(0,s.k6)(()=>[(0,s.bF)($,null,{default:(0,s.k6)(()=>[(0,s.Lk)("div",n,[(0,s.Lk)("img",{src:a(67471),alt:"ios"},null,8,i),(0,s.Lk)("span",o,(0,l.v_)(e.label),1)]),(0,s.bF)(L,{class:"q-my-sm bg-grey-2"}),e.status?((0,s.uX)(),(0,s.CE)("div",c,[(0,s.Lk)("span",d,(0,l.v_)(e.$t("device.status")),1),(0,s.Lk)("span",r,[(0,s.bF)(q,{color:e.status.color,size:"10px"},null,8,["color"]),(0,s.eW)(" "+(0,l.v_)(e.$t(e.status.label)),1)])])):(0,s.Q3)("",!0),(0,s.bF)(L,{class:"q-my-sm bg-grey-2"}),(0,s.Lk)("div",u,[(0,s.Lk)("span",v,(0,l.v_)(e.$t("device.number")),1),(0,s.Lk)("div",null,[(0,s.Lk)("span",m,(0,l.v_)(e.number),1),(0,s.bF)(X,{flat:"",round:"",dense:"","text-color":"grey-9",onClick:t[0]||(t[0]=t=>e.$emit("copy",e.number,2)),icon:`img:${a(2038)}`,size:"11px"},null,8,["icon"])])]),(0,s.bF)(L,{class:"q-my-sm bg-grey-2"}),(0,s.Lk)("div",f,[(0,s.Lk)("span",p,(0,l.v_)(e.$t("profile.devices.udid")),1),(0,s.Lk)("div",b,[(0,s.Lk)("span",g,(0,l.v_)(e.maskedUdid),1),(0,s.bF)(X,{flat:"",round:"",dense:"","text-color":"grey-9",onClick:t[1]||(t[1]=t=>e.$emit("copy",e.udid,1)),icon:`img:${a(2038)}`,size:"11px"},null,8,["icon"])])]),(0,s.bF)(F,{"hide-expand-icon":"",class:"fa-number q-pt-sm",dense:""},{header:(0,s.k6)(({expanded:t})=>[(0,s.Lk)("div",k,[(0,s.eW)((0,l.v_)(t?e.$t("shared.actions.less_info"):e.$t("shared.actions.more_info"))+" ",1),(0,s.Lk)("img",{class:(0,l.C4)([t?"rotate close":"rotate open","q-mr-sm"]),src:a(6400),alt:"blue"},null,10,y)])]),default:(0,s.k6)(()=>[(0,s.Lk)("div",A,[(0,s.RG)(e.$slots,"action"),(0,s.bF)(X,{flat:"",dense:"",class:"font-bold",color:"red",onClick:t[2]||(t[2]=t=>e.$emit("remove"))},{default:(0,s.k6)(()=>[(0,s.Lk)("img",{src:a(92298),alt:"red",class:"q-pl-sm"},null,8,C),(0,s.Lk)("span",null,(0,l.v_)(e.$t("profile.devices.delete")),1)]),_:1})])]),_:3})]),_:3})]),_:3})}},12353(e,t,a){a.d(t,{X:()=>i});var s=a(61758),l=a(58790);const n={class:"q-py-md text-grey-9 font-bold size-6 text-justify"};function i(e,t,a,i,o,c){const d=(0,s.g2)("device-component");return(0,s.uX)(),(0,s.CE)("div",null,[(0,s.Lk)("div",n,(0,l.v_)(e.$t("profile.devices.sub_title")),1),(0,s.bF)(d)])}},99616(e,t,a){a.d(t,{A:()=>r});var s=a(81739),l=a(30227),n=a(12807),i=a(23394),o=a(98582),c=a.n(o);const d=(0,n.A)(l.A,[["render",s.X]]),r=d;c()(l.A,"components",{QBtn:i.A})},15954(e,t,a){a.d(t,{A:()=>b});var s=a(42549),l=a(20333),n=a(12807),i=a(78854),o=a(57851),c=a(71916),d=a(90338),r=a(23394),u=a(47903),v=a(35470),m=a(98582),f=a.n(m);const p=(0,n.A)(l.A,[["render",s.X]]),b=p;f()(l.A,"components",{QCard:i.A,QCardSection:o.A,QSeparator:c.A,QAvatar:d.A,QBtn:r.A,QExpansionItem:u.A,QItem:v.A})},14018(e,t,a){a.r(t),a.d(t,{default:()=>o});var s=a(41286),l=a(85733),n=a(12807);const i=(0,n.A)(l.A,[["render",s.X]]),o=i},30227(e,t,a){a.d(t,{A:()=>s.A});var s=a(58372)},20333(e,t,a){a.d(t,{A:()=>s.A});var s=a(74150)},85733(e,t,a){a.d(t,{A:()=>s.A});var s=a(3218)},81739(e,t,a){a.d(t,{X:()=>s.X});var s=a(55716)},42549(e,t,a){a.d(t,{X:()=>s.X});var s=a(78574)},41286(e,t,a){a.d(t,{X:()=>s.X});var s=a(12353)}}]);

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.