/* empty css                                           */import{r as f,o as L,c as D,a as g,b as C,d as A,_ as R,U as w,y as i,H as I,K as S}from"./index.js";import"./Button.js";/* empty css                                                               */import{L as k,D as x}from"./IdentityCardMed.vue_vue_type_style_index_0_scoped_5223c197_lang.js";import{w as N}from"./dom.js";import{C as b}from"./Close.js";import"./telegram-authenticator.js";import"./close2.js";import"./donate.js";import"./money.js";import"./mod-mark.js";import"./time4.js";import"./globals.js";import"./numbers.js";const Y={class:"identity-card"},B={class:"identity-card__content"};function X(d,m,a,o,u,s){const e=f("LawEnforcementCard"),c=f("ControlsClose");return L(),D("div",Y,[g("div",B,[C(e,{class:"identity-card__content-card",id:"card",ref:"cardRef",type:o.type,data:o.cardData,style:A({transform:o.cardTransform}),onMousemove:o.onPointerMove,onTouchmove:o.onPointerMove,onMouseover:o.onPointerOver,onTouchstart:o.onPointerOver,onMouseout:o.onPointerOut,onTouchend:o.onPointerOut},null,8,["type","data","style","onMousemove","onTouchmove","onMouseover","onTouchstart","onMouseout","onTouchend"]),C(c,{class:"identity-card__content-close",isMobile:o.isMobile,type:4,onClose:o.close},null,8,["isMobile","onClose"])])])}const F={SCALE_X:24,SCALE_Y:12},V={props:["openParams"],components:{LawEnforcementCard:k,ControlsClose:b},data(){return{noAdaptation:!0}},setup(d){const m=w("isMobile"),a=i(null),o=i(null),u=i(x.LAW_ENFORCEMENT_CARD_FSB);let s=!1,e=null;const c=i({nickname:"Name_Surname",skinId:255,rank:"Lieutenant",registerDate:"0612",uid:9999999999,expireTime:9e4}),v=t=>{const[n,r,l,_,O,P]=t;c.value={nickname:n,skinId:r,rank:l,registerDate:_,uid:O,expireTime:P}},y=()=>{window.closeInterface("IdentityCard")};d.openParams&&v(d.openParams);function M(){s=!0}function h(){s=!1,o.value="rotateX(0deg) rotateY(0deg) translateZ(0.00vh)"}function E(t){if(!s)return;e||p();const{clientX:n,clientY:r}=t.touches?t.touches[0]:t,l=n-e.left,_=r-e.top;T({x:l,y:_})}function T(t){const{SCALE_X:n,SCALE_Y:r}=F;o.value=`rotateX(${t.y/e.height*-(r*2)+r}deg) rotateY(${t.x/e.width*(n*2)-n}deg) translateZ(2vh)`}function p(){a.value&&(e=S(a.value).$el.getBoundingClientRect())}return I(()=>{N(p)}),{isMobile:m,cardData:c,cardRef:a,cardTransform:o,type:u,close:y,onPointerOver:M,onPointerOut:h,onPointerMove:E}}},no=R(V,[["render",X],["__scopeId","data-v-031c0560"]]);export{no as default};
