🆙 New icons 🆙
This commit is contained in:
1 parent
c08d024563
commit
1333e82922
127 files changed
+4535
No files matched your search
+36
@@ -0,0 +1,36 @@
|
||||
import{r as o,j as e,F as hc,a as gc,b as Qh,c as Hs,N as zr,d as fc,H as ia,M as be,T as Mt,R as te,e as $e,A as ai,f as Bt,G as Jh,g as X,D as Zh,C as Is,h as eg,i as Ve,k as tg,l as Za,m as Cn,n as Us,o as pc,p as eo,E as sg,q as tu,s as Ms,t as Xa,u as Bi,v as dt,w as Hi,S as aa,x as Ei,y as ng,z as am,B as Wi,I as rg,J as ig,K as ag,L as to,O as Rs,P as Ln,Q as om,V as Ot,U as ll,W as ci,X as Vt,Y as Qs,Z as og,_ as lg,$ as Bo,a0 as cl,a1 as lm,a2 as ar,a3 as or,a4 as Wn,a5 as cm,a6 as lt,a7 as cg,a8 as ug,a9 as dg,aa as mg,ab as hg,ac as gg,ad as fg,ae as pg,af as xg,ag as jg,ah as Ig,ai as bg,aj as um,ak as Eg,al as Cg,am as Ng,an as vg,ao as _g,ap as Sg,aq as wg,ar as Tg,as as yg,at as Rg,au as Og,av as kg,aw as Ag,ax as Dg,ay as ql,az as Pg,aA as dm,aB as Lg,aC as Mg,aD as Ug,aE as Fg,aF as Vg,aG as Gg,aH as Bg,aI as Hg,aJ as Wg,aK as qg,aL as zg,aM as Yg,aN as $g,aO as mm,aP as Kg,aQ as Xg,aR as Qg,aS as su,aT as Jg,aU as Zg,aV as ef,aW as Ho,aX as tf,aY as sf,aZ as hm,a_ as nf,a$ as rf,b0 as so,b1 as Pt,b2 as gi,b3 as gm,b4 as fm,b5 as af,b6 as of,b7 as lf,b8 as cf,b9 as uf,ba as df,bb as mf,bc as hf,bd as gf,be as Ni,bf as xc,bg as nu,bh as ff,bi as pm,bj as pf,bk as xf,bl as jf,bm as If,bn as bf,bo as Ef,bp as Cf,bq as Nf,br as vf,bs as _f,bt as Sf,bu as wf,bv as Tf,bw as yf,bx as Rf,by as Of,bz as kf,bA as Af,bB as Df,bC as Pf,bD as Lf,bE as Mf,bF as Uf,bG as Ff,bH as Vf,bI as Gf,bJ as Bf,bK as Hf,bL as Wf,bM as xm,bN as zl,bO as qf,bP as jm,bQ as zf,bR as Yf,bS as $f,bT as Kf,bU as Xf,bV as Qf,bW as Jf,bX as Zf,bY as ep,bZ as tp,b_ as sp,b$ as np,c0 as rp,c1 as ip,c2 as ap,c3 as op,c4 as lp,c5 as cp,c6 as up,c7 as dp,c8 as mp,c9 as hp,ca as gp,cb as fp,cc as pp,cd as xp,ce as jp,cf as Ip,cg as bp,ch as Ep,ci as Cp,cj as Np,ck as vp,cl as _p,cm as Im,cn as bm,co as no,cp as Sp,cq as wp,cr as qi,cs as Em,ct as et,cu as Tp,cv as yp,cw as Rp,cx as Op,cy as kp,cz as Ap,cA as Dp,cB as Pp,cC as Lp,cD as Mp,cE as Up,cF as ul,cG as Fp,cH as Vp,cI as Gp,cJ as Bp,cK as Hp,cL as Wp,cM as qp,cN as ru,cO as zp,cP as Yp,cQ as Er,cR as $p,cS as Kp,cT as ys,cU as bt,cV as Bs,cW as Xp,cX as Qp,cY as Jp,cZ as ba,c_ as Se,c$ as Zp,d0 as Ft,d1 as ex,d2 as tx,d3 as sx,d4 as nx,d5 as rx,d6 as ix,d7 as ax,d8 as ox,d9 as lx,da as cx,db as ux,dc as dx,dd as mx,de as hx,df as gx,dg as fx,dh as px,di as Yl,dj as xx,dk as jx,dl as Ix,dm as Cm,dn as bx,dp as Ex,dq as iu,dr as Cx,ds as Nx,dt as vx,du as _x,dv as $l,dw as Sx,dx as wx,dy as Tx,dz as yx,dA as au,dB as Ea,dC as Rx,dD as Ox,dE as kx,dF as Ax,dG as Nm,dH as Dx,dI as vm,dJ as Px,dK as _m,dL as Lx,dM as Mx,dN as Ux,dO as Fx,dP as ou,dQ as Ds,dR as Sm,dS as vi,dT as hn,dU as lu,dV as cu,dW as Et,dX as Vs,dY as Vx,dZ as Gx,d_ as Bx,d$ as Hx,e0 as dl,e1 as Wx,e2 as uu,e3 as du,e4 as qx,e5 as ml,e6 as hl,e7 as zx,e8 as Yx,e9 as $x,ea as Kx,eb as Xx,ec as Qx,ed as Ca,ee as Jx,ef as Zx,eg as ej,eh as wm,ei as tj,ej as sj,ek as jc,el as nj,em as rj,en as ij,eo as aj,ep as oj,eq as lj,er as cj,es as uj,et as dj,eu as mj,ev as hj,ew as gl,ex as gj,ey as Tm,ez as ym,eA as fj,eB as pj,eC as xj,eD as jj,eE as Ij,eF as bj,eG as Ss,eH as ws,eI as Ej,eJ as Wo,eK as Ic,eL as bc,eM as Rm,eN as Om,eO as Cj,eP as Nj,eQ as vj,eR as _j,eS as Sj,eT as _i,eU as wj,eV as Tj,eW as yj,eX as Rj,eY as Oj,eZ as mu,e_ as kj,e$ as Aj,f0 as Dj,f1 as Pj,f2 as Lj,f3 as Mj,f4 as hu,f5 as Uj,f6 as Fj,f7 as Vj,f8 as Gj,f9 as Bj,fa as Hj,fb as Wj,fc as qj,fd as zj,fe as Yj,ff as $j,fg as Kj,fh as Xj,fi as km,fj as Qj,fk as Jj,fl as Zj,fm as Am,fn as Dm,fo as eI,fp as tI,fq as Pm,fr as sI,fs as nI,ft as rI,fu as iI,fv as aI,fw as oI,fx as lI,fy as cI,fz as uI,fA as dI,fB as mI,fC as hI,fD as gI,fE as fI,fF as pI,fG as Ec,fH as oa,fI as xI,fJ as fl,fK as jI,fL as gu,fM as II,fN as bI,fO as cs,fP as EI,fQ as CI,fR as NI,fS as vI,fT as _I,fU as SI,fV as wI,fW as TI,fX as yI,fY as RI,fZ as OI,f_ as kI,f$ as AI,g0 as DI,g1 as PI,g2 as LI,g3 as fu,g4 as Lm,g5 as Mm,g6 as MI,g7 as UI,g8 as FI,g9 as VI,ga as GI,gb as BI,gc as HI,gd as WI,ge as qI,gf as ui,gg as Zs,gh as Um,gi as zI,gj as YI,gk as $I,gl as KI,gm as XI,gn as QI,go as JI,gp as ZI,gq as eb,gr as tb,gs as sb,gt as nb,gu as rb,gv as ib,gw as ab,gx as ob,gy as lb,gz as cb,gA as ub,gB as pu,gC as db,gD as mb,gE as hb,gF as gb,gG as fb,gH as pb,gI as Na,gJ as xu,gK as xb,gL as jb,gM as Ib,gN as va,gO as Fm,gP as bb,gQ as pl,gR as Eb,gS as Cb,gT as Nb,gU as Vm,gV as vb,gW as _b,gX as Sb,gY as wb,gZ as Tb,g_ as yb,g$ as Rb,h0 as Ob,h1 as kb,h2 as Ab,h3 as Db,h4 as Pb,h5 as Lb,h6 as Mb,h7 as Ub,h8 as Tr,h9 as Fb,ha as ju,hb as Vb,hc as Gb,hd as Bb,he as Gm,hf as Hb,hg as Wb,hh as qb,hi as zb,hj as Yb,hk as $b,hl as Kb,hm as Xb,hn as Qb,ho as Jb,hp as qo,hq as Bm,hr as Zb,hs as eE,ht as tE,hu as sE,hv as nE,hw as rE,hx as iE,hy as aE,hz as oE,hA as lE,hB as Hm,hC as cE,hD as Wm,hE as uE,hF as Cc,hG as Nc,hH as dE,hI as mE,hJ as hE,hK as gE,hL as Pn,hM as xl,hN as fE,hO as pE,hP as xE,hQ as Iu,hR as jE,hS as _a,hT as IE,hU as bE,hV as EE,hW as vc,hX as qm,Line truncated
|
||||
<div>
|
||||
<img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAACXBIWXMAAAsTAAALEwEAmpwYAAAEQElEQVR4nO2X7WscRRzHt+AbfeEfICK+VVTwjWhVUnI7l8SkDY3Wu5ltfbiZXBNbq8ldiZEkVbHSIAEjCtUWNLXFaNWQElOUomKwD0bxoVLtk3I+oPhUjbvZ5x2Zmb29DUlaa3fTO9gvDOzMbx5+n535zYMkJUqUKFFNKoVIK0CEyogcKZfJCO/2y3qkaldLPn+ZDLEGELYbFeVyVgYgLnGADL5GqgUBRCaYwwC1NzUq5EruPCQnpVpRGpG87/RgGhJFLB88xGzyuvxVAOGtAOIXmU2SpGWsHKzNXcfaySh/Pe9DyeVSkNxzUQDkbO4KgIjH4kBGZLuAaa/j5ZD8LmZHJBniAd4Gtj8kynCXyBNVRuRX6WIJIDLN4gBA/CNzuq5uyyWhmRllQL69VJUAMsQDlT+NR3ynHhXLKVfkkJCcAZDoVQmQyuZuLAOkYPudNQcgSdIysZ0SWq/cf20tAkgyJDMJQHXNAN7ox8WTN6/pulRG2AAI/xZeQjLEj7ATG0BsVd0Sqs/iG2REHO64f70ACL/BbKEtVpUh+VvUqzIAJqDgewEip5lNRmQfO9xYeUNm/dUAkZ8AwidkmL+tKoI40VLJeGZbv97dWdIIVLVcRtOUVlPNrrR4urvZVlvrvSClb6Fq6iaR2HfYxur67TSl1eR9Eaiyvo1nB/ticV7vL04HDsWc9P5i8EiKRObw4GNL5bzqJzbbkQHo3R0/sE7dE99Qb2ZmXnK++HRRR6zxvbyO9fru85uFro7vIwPQcFZlnXq//EwXkvvtqUUdsQ/s53Xst8fOC0DLZdToANa1Gfyv9DxIjSd6qVv6Tjh+/Gue14sPRA+wdrURGYCaXWmHO3e+/Iw75Rz8UEx3X4Far45Qvb9AtUwz/7Z27ZwLMPUeNV9+gVqju6i2GlTW+uDj1Jl6n9ofHOD9BONkW+zoANrS7tkA7Mlx4eT+fVTvWi/WlefOAQjL+Ui0M3c8P8+mFzeIcdrSbnQALSu8CwVwjx0N6nnqP9zm/fmHaPfOBHVPnwz64OO0rPCiA2hYTi8UgMWA3vuwb/Ooesftlb9e6KTWm6Oiz+lDYpyG5TQ6gPCpGhVAc10A4GkapabpAxyOASCCJXQ2gLCcQ1MxLKEIgngOAKVzAPTuDrZtUn3zRjpLYAxBfI5t9H8BhGOguIFab/kx8PHB6LfR8kF2LgD31HG+2ywE4Bz9nFp7XhI22xK70F9neJYFsHvsK2GaHI/+ICtfJRYDsF7ZWVnEtr0gQFjMWd5u7555Nr1nU/RXifJlrpzM54aoPTFGjaGnxGB3NVL73Ul+cZvdRLjNGntNnLTbtvC8uX2Y/2m258/et8bfaW6l1sgODuR8coQaW/viuczV/HWaiT0ylsp5fWDzYSkOseeeXgg9KeEqq/KkbHL++5OyyQmelHCVFTwpC50lY/jp3licT5QoUSIpDv0L7jL5ksuHFDUAAAAASUVORK5CYII="
|
||||
alt="YouTube Icon" style="vertical-align: middle; margin-right: 5px;"><strong>Click on open video to see the YouTube video</strong>
|
||||
</div><center><a href="https://youtu.be/$1" target="_blank" style="background-color: red; color: white; padding: 5px 10px; border-radius: 5px; text-decoration: none;">Open Video</a></center>
|
||||
`));const s=a.match(/@[a-zA-Z]+@/);if(s){const n=s[0].toString(),r=n.substr(1,n.length-2),i=a.replace(n,"");$.has(r)?t=`<span style="color: ${$.get(r)}">${i}</span>`:t=i}else t=a;return t},Oc=(a,t)=>window.localStorage.setItem(a,JSON.stringify(t)),Zn=class Zn{};Zn.CAMERA_SHUTTER="camera_shutter",Zn.CREDITS="credits",Zn.DUCKETS="duckets",Zn.MESSENGER_NEW_THREAD="messenger_new_thread",Zn.MESSENGER_MESSAGE_RECEIVED="messenger_message_received",Zn.MODTOOLS_NEW_TICKET="modtools_new_ticket";let _n=Zn;function sN(a){const t=a.parts;let s=0;for(const n of t)s=Math.max(s,n.colorLayerIndex);return s}function nN(a,t){return t=t.filter(s=>a.indexOf(s)===-1),[...a,...co.getRandomElements(t,co.getRandomNumber(t.length)+1)]}function rN(a,t,s=0,n=[]){if(!a)return null;const r=a.partSets.getValues().filter(i=>!i.isSelectable||i.gender!=="U"&&i.gender!==t||i.clubLevel>s||i.isSellable&&n.indexOf(i.id)===-1?null:i);return!r||!r.length?null:co.getRandomElement(r)}function iN(a,t,s=0){if(!a)return[];const n=a.colors.getValues().filter(r=>!r.isSelectable||r.clubLevel>s?null:r);return!n||!n.length?null:co.getRandomElements(n,sN(t))}function aN(a,t,s=0,n=[],r=[]){const i=vt().structure,l=new ng(""),c=nN(i.getMandatorySetTypeIds(t,s),Ne.SET_TYPES);for(const m of r){const h=a.getPartSetId(m),u=a.getColorIds(m);l.updatePart(m,h,u)}for(const m of c){if(l.hasPartType(m))continue;const h=i.figureData.getSetType(m),u=rN(h,t,s,n);if(!u)continue;let g=[];u.isColorable&&(g=iN(i.figureData.getPalette(h.paletteID),u,s).map(f=>f.id)),l.updatePart(h.type,u.id,g)}return l.getFigureString()}class oN extends Yo{init(){super.init(),this.addCategory(Ne.HAIR),this.addCategory(Ne.HAT),this.addCategory(Ne.HEAD_ACCESSORIES),this.addCategory(Ne.EYE_ACCESSORIES),this.addCategory(Ne.FACE_ACCESSORIES),this._isInitalized=!0}get name(){return Us.HEAD}}class Au extends Yo{init(){super.init(),this.addCategory(Ne.TROUSERS),this.addCategory(Ne.SHOES),this.addCategory(Ne.TROUSER_ACCESSORIES),this._isInitalized=!0}get name(){return Us.LEGS}}class Du extends Yo{init(){super.init(),this.addCategory(Ne.SHIRT),this.addCategory(Ne.CHEST_PRINTS),this.addCategory(Ne.JACKET),this.addCategory(Ne.CHEST_ACCESSORIES),this._isInitalized=!0}get name(){return Us.TORSO}}const _o=class _o{};_o.COLORMATRIX="colormatrix",_o.COMPOSITE="composite";let ea=_o;class lN{constructor(t,s){this.texture=t,this.imageUrl=s}}class cN{constructor(t,s){this.effectName=t,this.thumbnailUrl=s}}class uN{constructor(t,s,n){this._productName=t,this._customImage=s,this._furnitureClassName=n}get productName(){return this._productName}get customImage(){return this._customImage}get furnitureClassName(){return this._furnitureClassName}}const Jr=class Jr{};Jr.STATE_UNLOCKED=1,Jr.STATE_LOCKED_AVAILABLE=2,Jr.STATE_LOCKED_EXPIRED=3,Jr.STATE_LOCKED_FUTURE=4;let ns=Jr;const yi=class yi{};yi.TYPE_CHAT=1,yi.TYPE_ROOM_INFO=2,yi.TYPE_IM=3;let en=yi;const lh=()=>{const a=new Date;return`${a.getHours().toString().padStart(2,"0")}:${a.getMinutes().toString().padStart(2,"0")}`},Pu=(a=0)=>{const t=a?new Date(Date.now()-a*1e3):new Date;return`${t.getHours().toString().padStart(2,"0")}:${t.getMinutes().toString().padStart(2,"0")}`},ch=a=>{if(!a||!a.length)return null;const t=a.split("/"),s=t[0],n=t[1],r=parseInt(t[2]);return{username:s,figure:n,userId:r}},Zr=class Zr{constructor(){this.id=-1,this.name=null,this.gender=0,this.online=!1,this.followingAllowed=!1,this.figure=null,this.categoryId=0,this.motto=null,this.realName=null,this.lastAccess=null,this.persistedMessageUser=!1,this.vipMember=!1,this.pocketHabboUser=!1,this.relationshipStatus=-1,this.unread=0}populate(t){this.id=t.id,this.name=t.name,this.gender=t.gender,this.online=t.online,this.followingAllowed=t.followingAllowed,this.figure=t.figure,this.categoryId=t.categoryId,this.motto=t.motto,this.realName=t.realName,this.lastAccess=t.lastAccess,this.persistedMessageUser=t.persistedMessageUser,this.vipMember=t.vipMember,this.pocketHabboUser=t.pocketHabboUser,this.relationshipStatus=t.relationshipStatus}};Zr.RELATIONSHIP_NONE=0,Zr.RELATIONSHIP_HEART=1,Zr.RELATIONSHIP_SMILE=2,Zr.RELATIONSHIP_BOBBA=3;let ds=Zr;const So=class So{};So.GROUP_CHAT=0,So.PRIVATE_CHAT=1;let Sr=So;const Ri=class Ri{};Ri.HIDDEN=0,Ri.SHOW=1,Ri.UNREAD=2;let jn=Ri;class Lu{populate(t){return t?(this._id=t.requestId,this._name=t.requesterName,this._figureString=t.figureString,this._requesterUserId=t.requesterUserId,!0):!1}get id(){return this._id}get name(){return this._name}get requesterUserId(){return this._requesterUserId}get figureString(){return this._figureString}}class dN{constructor(t=0,s=0,n=0,r=[]){this.userFriendLimit=t,this.normalFriendLimit=s,this.extendedFriendLimit=n,this.categories=r}}const ei=class ei{constructor(t,s,n=0,r=null,i=0){this._type=i,this._senderId=t,this._message=s,this._secondsSinceSent=n,this._extraData=r,this._date=new Date}get type(){return this._type}get senderId(){return this._senderId}get message(){return this._message}get secondsSinceSent(){return this.Line truncated
|
||||
attribute vec2 aVertexPosition;
|
||||
attribute vec2 aTextureCoord;
|
||||
uniform mat3 projectionMatrix;
|
||||
varying vec2 vTextureCoord;
|
||||
void main(void)
|
||||
{
|
||||
gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);
|
||||
vTextureCoord = aTextureCoord;
|
||||
}`,RN=`
|
||||
varying vec2 vTextureCoord;
|
||||
uniform sampler2D uSampler;
|
||||
uniform vec3 lineColor;
|
||||
uniform vec3 color;
|
||||
void main(void) {
|
||||
vec4 currentColor = texture2D(uSampler, vTextureCoord);
|
||||
vec3 colorLine = lineColor * currentColor.a;
|
||||
vec3 colorOverlay = color * currentColor.a;
|
||||
|
||||
if(currentColor.r == 0.0 && currentColor.g == 0.0 && currentColor.b == 0.0 && currentColor.a > 0.0) {
|
||||
gl_FragColor = vec4(colorLine.r, colorLine.g, colorLine.b, currentColor.a);
|
||||
} else if(currentColor.a > 0.0) {
|
||||
gl_FragColor = vec4(colorOverlay.r, colorOverlay.g, colorOverlay.b, currentColor.a);
|
||||
}
|
||||
}`;class ON extends lg{constructor(t,s){super(yN,RN),this.uniforms.lineColor=new Float32Array(3),this.uniforms.color=new Float32Array(3),this.lineColor=t,this.color=s}get lineColor(){return this._lineColor}set lineColor(t){const s=this.uniforms.lineColor;typeof t=="number"?(Is.hex2rgb(t,s),this._lineColor=t):(s[0]=t[0],s[1]=t[1],s[2]=t[2],this._lineColor=Is.rgb2hex(s))}get color(){return this._color}set color(t){const s=this.uniforms.color;typeof t=="number"?(Is.hex2rgb(t,s),this._color=t):(s[0]=t[0],s[1]=t[1],s[2]=t[2],this._color=Is.rgb2hex(s))}}const ps=class ps{static setMaxItemSelectionCount(t){ps._maxItemSelectionCount=t}static show(t){ps.applySelectionShader(ps.getRoomObject(t))}static hide(t){ps.clearSelectionShader(ps.getRoomObject(t))}static clearSelectionShaderFromFurni(t){for(const s of t)ps.clearSelectionShader(ps.getRoomObject(s))}static applySelectionShaderToFurni(t){for(const s of t)ps.applySelectionShader(ps.getRoomObject(s))}static getRoomObject(t){const s=H();return s.getRoomObject(s.activeRoomId,t,X.FLOOR)}static applySelectionShader(t){if(!t)return;const s=t.visualization;if(s)for(const n of s.sprites)n.blendMode!==1&&(n.filters=[ps._selectionShader])}static clearSelectionShader(t){if(!t)return;const s=t.visualization;if(s)for(const n of s.sprites)n.filters=[]}};ps._selectionShader=new ON([1,1,1],[.6,.6,.6]),ps._maxItemSelectionCount=0;let Hn=ps;const hi=" ",es=class es{};es.AVATAR_SAYS_SOMETHING=0,es.AVATAR_WALKS_ON_FURNI=1,es.AVATAR_WALKS_OFF_FURNI=2,es.EXECUTE_ONCE=3,es.TOGGLE_FURNI=4,es.EXECUTE_PERIODICALLY=6,es.AVATAR_ENTERS_ROOM=7,es.GAME_STARTS=8,es.GAME_ENDS=9,es.SCORE_ACHIEVED=10,es.COLLISION=11,es.EXECUTE_PERIODICALLY_LONG=12,es.BOT_REACHED_STUFF=13,es.BOT_REACHED_AVATAR=14;let Zt=es;const ii=class ii{};ii.CENTER="DWP_CENTER",ii.TOP_CENTER="DWP_TOP_CENTER",ii.TOP_LEFT="DWP_TOP_LEFT",ii.NOTHING="DWP_NOTHING";let Tt=ii;const kn=[],qu=new Map,zu=0,Yu=0,Mr=a=>{const{uniqueKey:t=null,handleSelector:s=".drag-handler",windowPosition:n=Tt.CENTER,disableDrag:r=!1,dragStyle:i={},children:l=null,offsetLeft:c=0,offsetTop:m=0}=a,[h,u]=o.useState(null),[g,f]=o.useState(null),[p,x]=o.useState({x:0,y:0}),[I,j]=o.useState(!1),[E,C]=o.useState(null),b=o.useRef(),_=o.useCallback(()=>{let U=400;for(const J of kn)U+=1,J.style.zIndex=U.toString()},[]),S=o.useCallback(()=>{const U=kn.indexOf(b.current);if(U===-1)kn.push(b.current);else{if(U===kn.length-1)return;U>=0&&(kn.splice(U,1),kn.push(b.current))}_()},[_]),T=o.useCallback(U=>{S()},[S]),L=o.useCallback(U=>{S()},[S]),k=o.useCallback((U,J)=>{x({x:U,y:J}),j(!0)},[]),R=o.useCallback(U=>{k(U.clientX,U.clientY)},[k]),y=o.useCallback(U=>{const J=U.touches[0];k(J.clientX,J.clientY)},[k]),O=o.useCallback(U=>{u({x:U.clientX-p.x,y:U.clientY-p.y})},[p]),F=o.useCallback(U=>{const J=U.touches[0];u({x:J.clientX-p.x,y:J.clientY-p.y})},[p]),V=o.useCallback(()=>{if(!b.current||!E)return;let U=g.x+h.x,J=g.y+h.y;const je=b.current.offsetLeft+U,we=b.current.offsetTop+J;we<zu?J=-b.current.offsetTop:we+E.offsetHeight>=document.body.offsetHeight-zu&&(J=document.body.offsetHeight-b.current.offsetHeight-b.current.offsetTop),je+b.current.offsetWidth<Yu?U=-b.current.offsetLeft:je>=document.body.offsetWidth-Yu&&(U=document.body.offsetWidth-b.current.offsetWidth-b.current.offsetLeft),u({x:0,y:0}),f({x:U,y:J}),j(!1),t!==null&&qu.set(t,{x:U,y:J})},[E,h,g,t]),Y=o.useCallback(U=>{V()},[V]),q=o.useCallback(U=>{V()},[V]);return o.useEffect(()=>{const U=b.current;if(!U)return;if(kn.push(U),_(),!r){const we=U.querySelector(s);we&&C(we)}let J=0,je=0;switch(n){case Tt.TOP_CENTER:U.style.top=50+m+"px",U.style.left=`calc(50vw - ${U.offsetWidth/2+c}px)`;break;case Tt.CENTER:U.style.top=`calc(50vh - ${U.offsetHeight/2+m}px)`,U.style.left=`calc(50vw - ${U.offsetWidth/2+c}px)`;break;case Tt.TOP_LEFT:U.style.top=50+m+"px",U.style.left=50+c+"px";break}if(t!==null){const we=qu.get(t);we&&(J=we.x,je=we.y)}return u({x:0,y:0}),f({x:J,y:je}),()=>{const we=kn.indexOf(U);we>=0&&kn.splice(we,1)}},[s,n,t,r,c,m,_]),o.useEffect(()=>{if(!g&&!h)return;const U=b.current;U&&(U.style.transform=`translate(${g.x+h.x}px, ${g.y+h.y}px)`,U.style.visibility="visible")},[g,h]),o.useEffect(()=>{if(E)return E.addEventListener(be.MOUSE_DOWN,R),E.addEventListener(Mt.TOUCH_START,y,{passive:!0}),()=>{E.removeEventListener(be.MOUSE_DOWN,R),E.removeEventListener(Mt.TOUCH_START,y)}},[E,R,y]),o.useEffect(()=>{if(I)return document.addEventListener(be.MOUSE_UP,Y),document.addEventListener(Mt.TOUCH_END,q),document.addEventListener(be.MOUSE_MOVE,O),document.addEventListener(Mt.TOUCH_MOVE,F),()=>{document.removeEventListener(be.MOUSE_UP,Y),document.removeEventListener(Mt.TOUCH_END,q),document.removeEventListener(be.MOUSE_MOVE,O),document.removeEventListener(Mt.TOUCH_MOVE,F)}},[I,Y,O,q,F]),o.useEffect(()=>{const U=b.current;if(U)return U.addEventListener("touchstart",L,{passive:!0}),()=>{U.removeEventListener("touchstart",L)}},[L]),o.useEffect(()=>{if(!t)return;const U=$o(`nitro.windows.${t}`);!U||!U.offset||(u({x:0,y:0}),U.offs
Line truncated
|
||||
`+m.pendingCalls[0].message,()=>{D(new Tf)},null,d("help.emergency.pending.button.discard"),d("help.emergency.pending.button.keep"),d("help.emergency.pending.message.subtitle"))}),M(Rf,c=>{r("Your pending calls were deleted",pe.MODERATION,null,null,d("mod.alert.title"))}),M(Of,c=>{const m=c.getParser();r(m.message,pe.MODERATION,null,null,d("help.cfh.reply.title"))}),M(kf,c=>{const m=c.getParser();r(d("help.emergency.global_mute.message"),pe.MODERATION,m.infoUrl,d("help.emergency.global_mute.link"),d("help.emergency.global_mute.subtitle"))}),M(Af,c=>{const m=c.getParser();n(m)}),{activeReport:a,setActiveReport:t,sanctionInfo:s,setSanctionInfo:n,report:l}},Ws=()=>lt(lv),sl=()=>{const[a,t]=o.useState([]),s=o.useMemo(()=>!!a.length,[a]),n=o.useCallback(()=>{let i=-1;return t(l=>{const c=[...l];return i=c.length?c[c.length-1]+1:0,c.push(i),c}),i},[]),r=o.useCallback(i=>{t(l=>{const c=[...l],m=c.indexOf(i);return m===-1?l:(c.splice(m,1),c)})},[]);return{isVisible:s,activate:n,deactivate:r}},cv=a=>D(new Pf(a)),uv=(a,t)=>D(new Lf(a,...t)),dv=()=>{const[a,t]=o.useState(new Map),s=o.useCallback(m=>{var h;return((h=a.get(m))==null?void 0:h.length)||0},[a]),n=o.useMemo(()=>{let m=0;for(const h of a.keys())m+=s(h);return m},[a,s]),r=o.useCallback(m=>{let h=!0;return t(u=>{if(!u.has(m))return h=!1,u;const g=new Map(u);return g.delete(m),cv(m),g}),h},[]),i=o.useCallback((m,h)=>{let u=!0;return t(g=>{if(!g.has(m))return u=!1,g;const f=new Map(g),p=f.get(m);if(p)for(const x of h)p.splice(p.indexOf(x),1);return uv(m,h),f}),u},[]),l=o.useCallback((m,h)=>a.has(m)?a.get(m).indexOf(h)>=0:!1,[a]),c=o.useCallback((m,h)=>{t(u=>{if(!u.has(m))return u;const g=new Map(u),f=g.get(m),p=f.indexOf(h);return p>=0&&f.splice(p,1),g})},[]);return M(Df,m=>{const h=m.getParser();t(u=>{const g=new Map(u);for(const f of h.categories){let p=g.get(f);p||(p=[],g.set(f,p));const x=h.getItemsByCategory(f);for(const I of x)p.indexOf(I)===-1&&p.push(I)}return g})}),{getCount:s,getFullCount:n,resetCategory:r,resetItems:i,isUnseen:l,removeUnseen:c}},Os=()=>lt(dv),mv=()=>{const[a,t]=o.useState(!0),[s,n]=o.useState([]),[r,i]=o.useState(new Map),[l,c]=o.useState([]),[m,h]=o.useState(null),{isVisible:u=!1,activate:g=null,deactivate:f=null}=sl(),{isUnseen:p=null,resetCategory:x=null}=Os(),I=K("user.badges.max.slots",5),j=_=>l.indexOf(_)>=0,E=()=>l.length<I,C=_=>{c(S=>{const T=[...S],L=T.indexOf(_);if(L===-1){if(!E())return S;T.push(_)}else T.splice(L,1);const k=new Vf;for(let R=0;R<I;R++)k.addActivatedBadge(T[R]??"");return D(k),T})},b=_=>s.indexOf(_)===-1?0:r.get(_)??0;return M(Mf,_=>{const S=_.getParser(),T=[];i(L=>{const k=new Map(L);return S.getAllBadgeCodes().forEach(R=>{const y=s.indexOf(R)>=0,O=S.getBadgeId(R);k.set(R,O),!y&&T.push(R)}),k}),c(S.getActiveBadgeCodes()),n(L=>[...L,...T])}),M(Uf,_=>{const S=_.getParser(),T=p(st.BADGE,S.badgeId);n(L=>{const k=[...L];return T?k.unshift(S.badgeCode):k.push(S.badgeCode),k}),i(L=>{const k=new Map(L);return k.set(S.badgeCode,S.badgeId),k})}),o.useEffect(()=>{!s||!s.length||h(_=>{let S=_;return S&&s.indexOf(S)===-1&&(S=null),S||(S=s[0]),S})},[s]),o.useEffect(()=>{if(u)return()=>{x(st.BADGE)}},[u,x]),o.useEffect(()=>{!u||!a||(D(new Ff),t(!1))},[u,a]),{badgeCodes:s,activeBadgeCodes:l,selectedBadgeCode:m,setSelectedBadgeCode:h,isWearingBadge:j,canWearBadges:E,toggleBadge:C,getBadgeId:b,activate:g,deactivate:f}},ga=()=>lt(mv),hv=()=>{const[a,t]=o.useState(!0),[s,n]=o.useState([]),[r,i]=o.useState(null),{isVisible:l=!1,activate:c=null,deactivate:m=null}=sl(),{isUnseen:h=null,resetCategory:u=null}=Os();return M(Gf,g=>{const f=g.getParser();n(p=>{const x=[...p],I=x.map(E=>E.botData.id),j=[];for(const E of f.items.values())I.indexOf(E.id)===-1&&j.push(E);for(const E of I){let C=!0;for(const S of f.items.values())if(S.id===E){C=!1;break}if(!C)continue;const b=x.findIndex(S=>S.botData.id===E),_=x[b];b===-1||!_||(di()===_.botData.id&&(Zi(),Z("inventory/open")),x.splice(b,1))}for(const E of j){const C={botData:E};h(st.BOT,E.id)?x.unshift(C):x.push(C)}return x})}),M(Bf,g=>{const f=g.getParser();n(p=>{const x=[...p];if(x.findIndex(C=>C.botData.id===f.item.id)>=0)return p;const j={botData:f.item};return h(st.BOT,j.botData.id)?x.unshift(j):x.push(j),x})}),M(Hf,g=>{const f=g.getParser();n(p=>{const x=[...p],I=x.findIndex(j=>j.botData.id===f.itemId);return I===-1?p:(x.splice(I,1),di()===f.itemId&&(Zi(),Z("inventory/show")),x)})}),o.useEffect(()=>{!s||!s.length||i(g=>{let f=g;return f&&s.indexOf(f)===-1&&(f=null),f||(f=s[0]),f})},[s]),o.useEffect(()=>{if(l)return()=>{u(st.BOT)}},[l,u]),o.useEffect(()=>{!l||!a||(D(new Wf),t(!1))},[l,a]),{botItems:s,selectedBot:r,setSelectedBot:i,activate:c,deactivate:m}},vh=()=>lt(hv);let Pa=null;const gv=()=>{const[a,t]=o.useState(!0),[s,n]=o.useState([]),[r,i]=o.useState(null),{isVisible:l=!1,activate:c=null,deactivate:m=null}=sl(),{isUnseen:h=null,resetCategory:u=null}=Os(),g=x=>{if(!(!s||!s.length))return s.filter(I=>I.type===x)},f=x=>{if(!(!s||!s.length)){for(const I of s){const j=I.getItemById
Line truncated
|
||||
`+d("catalog.marketplace.confirm_price",["price"],[j.newPrice.toString()]),()=>{D(new hu(j.offerId))},null,null,null,d("catalog.marketplace.confirm_higher_title"));break;case 4:u(d("catalog.alert.notenough.credits.description"),pe.DEFAULT,null,null,d("catalog.alert.notenough.title"));break}}),e.jsxs(e.Fragment,{children:[e.jsxs(bn,{children:[e.jsx(P,{active:t===qt.BY_ACTIVITY,onClick:()=>s(qt.BY_ACTIVITY),children:d("catalog.marketplace.search_by_activity")}),e.jsx(P,{active:t===qt.BY_VALUE,onClick:()=>s(qt.BY_VALUE),children:d("catalog.marketplace.search_by_value")}),e.jsx(P,{active:t===qt.ADVANCED,onClick:()=>s(qt.ADVANCED),children:d("catalog.marketplace.search_advanced")})]}),e.jsx(ZS,{sortTypes:p,searchType:t,onSearch:f}),e.jsxs(v,{gap:1,overflow:"hidden",children:[e.jsx(N,{truncate:!0,shrink:!0,fontWeight:"bold",children:d("catalog.marketplace.items_found",["count"],[i.size.toString()])}),e.jsx(v,{className:"nitro-catalog-layout-marketplace-grid",overflow:"auto",children:Array.from(i.values()).map((I,j)=>e.jsx(Gh,{offerData:I,type:Ja,onClick:x},j))})]})]})},rw=a=>{const{page:t=null}=a,[s,n]=o.useState(-1),[r,i]=o.useState([]),[l,c]=o.useState(-1),[m,h]=o.useState([]),[u,g]=o.useState(-1),[f,p]=o.useState(!1),[x,I]=o.useState(""),[j,E]=o.useState(!0),[C,b]=o.useState(-1),{currentOffer:_=null,setCurrentOffer:S=null,setPurchaseOptions:T=null,catalogOptions:L=null,roomPreviewer:k=null}=Le(),{petPalettes:R=null}=L,y=o.useMemo(()=>!m.length||u===-1?16777215:m[u][0],[m,u]),O=o.useMemo(()=>s===-1||!r.length||l===-1?"":d(`pet.breed.${s}.${r[l].breedId}`),[s,r,l]),F=o.useMemo(()=>{if(!r.length||l===-1)return"";const q=r[l].paletteId;let U=16777215;if(s<=7){if(u===-1)return"";U=m[u][0]}let J=U.toString(16).toUpperCase();for(;J.length<6;)J="0"+J;return`${q}
|
||||
${J}`},[r,l,s,m,u]),V=o.useMemo(()=>{let q="";switch(C){case 1:q="catalog.alert.petname.long";break;case 2:q="catalog.alert.petname.short";break;case 3:q="catalog.alert.petname.chars";break;case 4:q="catalog.alert.petname.bobba";break}return!q||!q.length?"":d(q)},[C]),Y=o.useCallback(()=>{if(C===-1){D(new Vj(x,1));return}if(C===0){D(new Ho(t.pageId,_.offerId,`${x}
|
||||
${F}`,1));return}},[t,_,x,F,C]);return M(Gj,q=>{const U=q.getParser();b(U.result),U.result===0?Y():Ct(new lr(-1))}),o.useEffect(()=>{if(!t||!t.offers.length)return;const q=t.offers[0];S(q),n(TC(q.localizationId)),p(!1)},[t,S]),o.useEffect(()=>{if(!_)return;const q=_.product.productData;if(q){if(R)for(const U of R){if(U.breed!==q.type)continue;const J=[];for(const je of U.palettes)je.sellable&&J.push(je);c(J.length?0:-1),i(J);return}c(-1),i([]),D(new Bj(q.type))}},[_,R]),o.useEffect(()=>{if(s===-1)return;const q=yC(s,r);g(q.length?0:-1),h(q)},[s,r]),o.useEffect(()=>{if(!k||(k.reset(!1),s===-1||!r.length||l===-1))return;let q=`${s} ${r[l].paletteId}`;s<=7&&(q+=` ${y.toString(16)}`),k.addPetIntoRoom(q)},[k,s,r,l,y]),o.useEffect(()=>{b(-1)},[x]),_?e.jsxs(ne,{children:[e.jsx(v,{size:7,overflow:"hidden",children:e.jsxs(Pe,{columnCount:5,children:[!f&&r.length>0&&r.map((q,U)=>e.jsx(Ce,{itemActive:l===U,onClick:J=>c(U),children:e.jsx(xn,{typeId:s,paletteId:q.paletteId,direction:2,headOnly:!0})},U)),f&&m.length>0&&m.map((q,U)=>e.jsx(Ce,{itemHighlight:!0,itemActive:u===U,itemColor:Is.int2rgb(q[0]),className:"clear-bg",onClick:J=>g(U)},U))]})}),e.jsxs(v,{center:!_,size:5,overflow:"hidden",children:[!_&&e.jsxs(e.Fragment,{children:[!!t.localization.getImage(1)&&e.jsx("img",{alt:"",src:t.localization.getImage(1)}),e.jsx(N,{center:!0,dangerouslySetInnerHTML:{__html:t.localization.getText(0)}})]}),_&&e.jsxs(e.Fragment,{children:[e.jsxs(A,{position:"relative",overflow:"hidden",children:[e.jsx(dr,{}),e.jsx(cr,{position:"absolute",className:"bg-muted rounded bottom-1 end-1"}),s>-1&&s<=7&&e.jsx(P,{position:"absolute",className:"bottom-1 start-1",onClick:q=>p(!f),children:e.jsx(Rm,{className:"fa-icon"})})]}),e.jsxs(v,{grow:!0,gap:1,children:[e.jsx(N,{truncate:!0,children:O}),e.jsxs(v,{grow:!0,gap:1,children:[e.jsx("input",{type:"text",className:"form-control form-control-sm w-100",placeholder:d("widgets.petpackage.name.title"),value:x,onChange:q=>I(q.target.value)}),C>0&&e.jsx(A,{className:"invalid-feedback d-block m-0",children:V})]}),e.jsx(w,{justifyContent:"end",children:e.jsx(Yn,{justifyContent:"end",alignItems:"end"})}),e.jsx(sn,{purchaseCallback:Y})]})]})]})]}):null},iw=a=>{const{offer:t=null,isAvailable:s=!1,daysRequired:n=0,onSelect:r=null}=a,i=o.useCallback(()=>{if(!t||!t.products.length)return"";const c=t.products[0];return Qa.getProductImageUrl(c.productType,c.furniClassId,c.extraParam)},[t]),l=o.useCallback(()=>{if(!t||!t.products.length)return"";const c=t.products[0],m=Qa.getProductCategory(c.productType,c.furniClassId)===2?"wallItem.name."+c.furniClassId:"roomItem.name."+c.furniClassId;return d(m)},[t]);return o.useCallback(()=>{if(!t||!t.products.length)return"";const c=t.products[0],m=Qa.getProductCategory(c.productType,c.furniClassId)===2?"wallItem.desc."+c.furniClassId:"roomItem.desc."+c.furniClassId;return d(m)},[t]),o.useCallback(()=>Math.floor(n/31),[n]),e.jsxs(Ce,{center:!1,column:!1,alignItems:"center",className:"p-1",children:[e.jsx(wn,{imageUrl:i()}),e.jsx(N,{grow:!0,fontWeight:"bold",children:l()}),e.jsx(P,{variant:"secondary",onClick:()=>r(t.localizationId),disabled:!s,children:d("catalog.club_gift.select")})]})},aw=a=>{const{purse:t=null}=Ur(),{catalogOptions:s=null,setCatalogOptions:n=null}=Le(),{clubGifts:r=null}=s,{showConfirm:i=null}=Fe(),l=o.useCallback(()=>r?r.giftsAvailable>0?d("catalog.club_gift.available",["amount"],[r.giftsAvailable.toString()]):r.daysUntilNextGift>0?d("catalog.club_gift.days_until_next",["days"],[r.daysUntilNextGift.toString()]):t.isVip?d("catalog.club_gift.not_available"):d("catalog.club_gift.no_club"):"",[r,t]),c=o.useCallback(h=>{i(d("catalog.club_gift.confirm"),()=>{D(new Hj(h)),n(u=>(u.clubGifts.giftsAvailable--,{...u}))},null)},[n,i]),m=o.useMemo(()=>r.offers.sort((u,g)=>r.getOfferExtraData(u.offerId).daysRequired-r.getOfferExtraData(g.offerId).daysRequired),[r]);return e.jsxs(e.Fragment,{children:[e.jsx(N,{truncate:!0,shrink:!0,fontWeight:"bold",children:l()}),e.jsx(Pe,{columnCount:1,className:"nitro-catalog-layout-vip-gifts-grid",children:r.offers.length>0&&m.map(h=>e.jsx(iw,{offer:h,isAvailable:r.getOfferExtraData(h.offerId).isSelectable&&r.giftsAvailable>0,onSelect:c,daysRequired:r.getOfferExtraData(h.offerId).daysRequired},h.offerId))})]})},ow=(a,t)=>{if(!a)return null;const s={page:a,hideNavigation:t};switch(a.layoutCode){case"frontpage_featured":return null;case"frontpage4":return e.jsx(QS,{...s});case"pets":return e.jsx(rw,{...s});case"pets2":return e.jsx(VS,{...s});case"pets3":return e.jsx(Uh,{...s});case"vip_buy":return e.jsx(KS,{...s});case"guild_frontpage":return e.jsx(US,{...s});case"guild_forum":return e.jsx(MS,{...s});case"guild_custom_furni":return e.jsx(LS,{...s});case"club_gifts":return e.jsx(aw,{...s});case"marketplace_own_items":return e.jsx(JS,{...s});case"marketplace":return e.jsx(nw,{...s});case"single_bundle":return e.jsx(HS,{...s});case"room_bundle":return e.jsx(BS,{...s});case"spaces_new":return e.jsx(YS,{...s});case"trophies":return e.jsx
Line truncated
|
||||
`).toLowerCase(),xw=a=>{const{onCloseClick:t=null}=a,[s,n]=o.useState(""),{originalFloorplanSettings:r=null}=qc(),i=()=>{D(new Dm(s.split(`
|
||||
`).join("\r"),r.entryPoint[0],r.entryPoint[1],r.entryPointDir,jo(r.thicknessWall),jo(r.thicknessFloor),r.wallHeight-1))};return Bc(()=>{n(gd(r.tilemap))}),e.jsxs(ie,{theme:"primary-slim",className:"floorplan-import-export",children:[e.jsx(re,{headerText:d("floor.plan.editor.import.export"),onCloseClick:t}),e.jsxs(se,{children:[e.jsx("textarea",{className:"h-100",value:s,onChange:l=>n(l.target.value)}),e.jsxs(w,{justifyContent:"between",children:[e.jsx(P,{onClick:l=>n(gd(r.tilemap)),children:d("floor.plan.editor.revert.to.last.received.map")}),e.jsx(P,{onClick:i,children:d("floor.plan.editor.save")})]})]})]})},fd=0,Ga=16,jw=0,Iw=26,bw=a=>{const{visualizationSettings:t=null,setVisualizationSettings:s=null}=qc(),[n,r]=o.useState(at.SET),[i,l]=o.useState(0),[c,m]=o.useState(Ye.instance.squareSelectMode);o.useEffect(()=>{m(Ye.instance.squareSelectMode)},[]);const h=C=>{r(C),Ye.instance.actionSettings.currentAction=C},u=()=>{const C=!Ye.instance.squareSelectMode;Ye.instance.setSquareSelectMode(C),m(C)},g=()=>{s(C=>{const b={...C};return b.entryPointDir<7?++b.entryPointDir:b.entryPointDir=0,b})},f=C=>{(isNaN(C)||C<=0)&&(C=0),C>26&&(C=26),l(C),Ye.instance.actionSettings.currentHeight=C.toString(36)},p=C=>{s(b=>{const _={...b};return _.thicknessFloor=C,_})},x=C=>{s(b=>{const _={...b};return _.thicknessWall=C,_})},I=C=>{(isNaN(C)||C<=0)&&(C=fd),C>Ga&&(C=Ga),s(b=>{const _={...b};return _.wallHeight=C,_})},j=()=>{let C=t.wallHeight+1;C>Ga&&(C=Ga),I(C)},E=()=>{let C=t.wallHeight-1;C<=0&&(C=fd),I(C)};return e.jsxs(v,{children:[e.jsxs(w,{gap:1,children:[e.jsxs(v,{size:5,gap:1,children:[e.jsx(N,{bold:!0,children:d("floor.plan.editor.draw.mode")}),e.jsxs(w,{gap:3,children:[e.jsxs(w,{gap:1,children:[e.jsx(Ce,{itemActive:n===at.SET,onClick:C=>h(at.SET),children:e.jsx("i",{className:"icon icon-set-tile"})}),e.jsx(Ce,{itemActive:n===at.UNSET,onClick:C=>h(at.UNSET),children:e.jsx("i",{className:"icon icon-unset-tile"})})]}),e.jsxs(w,{gap:1,children:[e.jsx(Ce,{itemActive:n===at.UP,onClick:C=>h(at.UP),children:e.jsx("i",{className:"icon icon-increase-height"})}),e.jsx(Ce,{itemActive:n===at.DOWN,onClick:C=>h(at.DOWN),children:e.jsx("i",{className:"icon icon-decrease-height"})}),e.jsx(Ce,{itemActive:n===at.DOOR,onClick:C=>h(at.DOOR),children:e.jsx("i",{className:"icon icon-set-door"})}),e.jsx(Ce,{onClick:C=>Ye.instance.toggleSelectAll(),children:e.jsx("i",{className:`icon ${n===at.UNSET?"icon-set-deselect":"icon-set-select"}`})}),e.jsx(Ce,{itemActive:c,onClick:u,children:e.jsx("i",{className:`icon ${c?"icon-set-active-squaresselect":"icon-set-squaresselect"}`})})]})]})]}),e.jsxs(v,{alignItems:"center",size:4,children:[e.jsx(N,{bold:!0,children:d("floor.plan.editor.enter.direction")}),e.jsx("i",{className:`icon icon-door-direction-${t.entryPointDir} cursor-pointer`,onClick:g})]}),e.jsxs(v,{size:3,children:[e.jsx(N,{bold:!0,children:d("floor.editor.wall.height")}),e.jsxs(w,{alignItems:"center",gap:1,children:[e.jsx(Ic,{className:"cursor-pointer fa-icon",onClick:E}),e.jsx("input",{type:"number",className:"form-control form-control-sm quantity-input",value:t.wallHeight,onChange:C=>I(C.target.valueAsNumber)}),e.jsx(bc,{className:"cursor-pointer fa-icon",onClick:j})]})]})]}),e.jsxs(w,{gap:1,children:[e.jsxs(v,{size:6,children:[e.jsxs(N,{bold:!0,children:[d("floor.plan.editor.tile.height"),": ",i]}),e.jsx(Lt,{min:jw,max:Iw,step:1,value:i,onChange:C=>f(C),renderThumb:({style:C,key:b,..._},S)=>e.jsx("div",{style:{backgroundColor:`#${mw[S.valueNow.toString(33)]}`,...C},..._,children:S.valueNow},b)})]}),e.jsxs(v,{size:6,children:[e.jsx(N,{bold:!0,children:d("floor.plan.editor.room.options")}),e.jsxs(w,{className:"align-items-center",children:[e.jsxs("select",{className:"form-control form-control-sm",value:t.thicknessWall,onChange:C=>x(parseInt(C.target.value)),children:[e.jsx("option",{value:0,children:d("navigator.roomsettings.wall_thickness.thinnest")}),e.jsx("option",{value:1,children:d("navigator.roomsettings.wall_thickness.thin")}),e.jsx("option",{value:2,children:d("navigator.roomsettings.wall_thickness.normal")}),e.jsx("option",{value:3,children:d("navigator.roomsettings.wall_thickness.thick")})]}),e.jsxs("select",{className:"form-control form-control-sm",value:t.thicknessFloor,onChange:C=>p(parseInt(C.target.value)),children:[e.jsx("option",{value:0,children:d("navigator.roomsettings.floor_thickness.thinnest")}),e.jsx("option",{value:1,children:d("navigator.roomsettings.floor_thickness.thin")}),e.jsx("option",{value:2,children:d("navigator.roomsettings.floor_thickness.normal")}),e.jsx("option",{value:3,children:d("navigator.roomsettings.floor_thickness.thick")})]})]})]})]})]})},Ew=a=>{const[t,s]=o.useState(!1),[n,r]=o.useState(!1),[i,l]=o.useState({tilemap:"",reservedTiles:[],entryPoint:[0,0],entryPointDir:2,wallHeight:-1,thicknessWall:1,thicknessFloor:1}),[c,m]=o.useState({entryPointDir:2,wallHeight:-1,thicknessWall:1,thicknessFloor:1}),h=()=>{D(new Dm(Ye.instance.getCurrentTilemapString(),Ye.instance.doorLocation.x,Ye.instance.doorL
Line truncated
|
||||
+1855
File diff suppressed because it is too large.
Load diff
Reference in new issue
Block a user