1(function(){try{var r=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};r.SENTRY_RELEASE={id:"4.106.2@5fb3279d0cc"};var a=new r.Error().stack;a&&(r._sentryDebugIds=r._sentryDebugIds||{},r._sentryDebugIds[a]="3d95e96c-aceb-4f07-be9d-b8b889c44b20",r._sentryDebugIdIdentifier="sentry-dbid-3d95e96c-aceb-4f07-be9d-b8b889c44b20")}catch{}})(),(self.webpackChunkvisme_dashboard_web_app=self.webpackChunkvisme_dashboard_web_app||[]).push([["3549"],{62084(r,a,e){var n=e(30495),u=e(78164);function g(c,o,v){var d=c==null?0:c.length;return d?(o=v||o===void 0?1:u(o),n(c,o<0?0:o,d)):[]}r.exports=g},13569(r,a,e){"use strict";e.r(a),e.d(a,{default:()=>V});var n=e(65723),u=e(22155),g=e(12436),c=e(19719),o=e(62084),v=e.n(o),d=e(71954);const b=d.gK.model("VismeObjectImageGeneratorStore").volatile(()=>({counter:0,generationQueue:[]})).views(()=>({get isDebug(){return window.location.hash==="#debugAvatar"}})).actions(s=>({shiftQueue(){s.generationQueue=v()(s.generationQueue)}})).actions(s=>({generateVismeObjectImage:(0,d.L3)(function*({vismeObject:t,vismeObjectPoseUrl:m,sceneConfig:f,cachedAssets:p,useRandomBackground:h=!0}){let A=null,l=null;const O=new Promise((T,D)=>{A=T,l=D}),E={vismeObject:t,vismeObjectPoseUrl:m,useRandomBackground:h,sceneConfig:f,cachedAssets:p,resolvePromise:A,rejectPromise:l,queueOrder:s.counter};return s.counter++,s.generationQueue=[...s.generationQueue,E],yield O.finally(()=>{s.isDebug||s.shiftQueue()})})})).create();var I=e(72924),j=e(15116);const y={container:"container--Z08oQf0"};var P=e(57961);const J=({vismeObject:s,modelUrl:t,cachedAssets:m,camera:f,onDone:p})=>{const h={useDefaultCamera:!0,backgroundTransparent:!0,camera:f};return b.generateVismeObjectImage({vismeObject:s,vismeObjectPoseUrl:t,sceneConfig:h,cachedAssets:m,useRandomBackground:!1}).then(p)},Q=({object:s,child:t})=>{const{appStore:m}=(0,c.g)(),f=m?.vismeObjectsStore?.characterEditorStore,[p,h]=(0,u.useState)(""),[A,l]=(0,u.useState)(!1),O=m.settings?.isEditorMode,E=m.settings?.isDocumentView,T=t.type===j.u.CHARACTER,D=t.type===j.u.WIDGET,i=t.isCharacterEdited&&s.isSelected&&f?f?.character:t.threeJsCharacter;return(0,u.useEffect)(()=>{let S=!1;return(async()=>{if(D){await J({vismeObject:t,modelUrl:t.modelUrl,cachedAssets:[],camera:{position:[0,1.2,3.5],rotation:[0,0,0]},onDone:x=>{S||h(x)}}),S||l(!0);return}if(!O&&!E||!t?.isAssetsLoaded&&T||!t?.cachedAssets&&T){l(!0);return}if(T&&i){await J({vismeObject:i,modelUrl:t.modelUrl,cachedAssets:t.cachedAssets,camera:{position:[0,.83,2.5],rotation:[0,0,0]},onDone:x=>{S||h(x)}}),S||l(!0);return}l(!0)})(),()=>{S=!0}},[t?.modelUrl,t?.isAssetsLoaded,i?.style,i?.gender,i?.skinTone,i?.eyeColor,JSON.stringify(i?.characterAssetsColors),JSON.stringify(i?.assets),JSON.stringify(t?.colors)]),(0,n.jsx)("div",{className:y.container,children:A?(0,n.jsx)(P.A,{object:s,child:t,thumbBase64:p}):(0,n.jsx)(I.A,{})})},R=(0,g.PA)(Q),U=({object:s})=>(0,n.jsx)(n.Fragment,{children:s.allChildren.map(t=>(0,n.jsx)(R,{child:t,object:s},t.id))}),V=(0,g.PA)(U)},57961(r,a,e){"use strict";e.d(a,{A:()=>d});var n=e(65723),u=e(22155),g=e(12436),c=e(42444),o=e(19719);const v=({object:C,child:b,thumbBase64:I})=>{const{appStore:j}=(0,o.g)(),y=(0,u.useRef)(null);return(0,c.A)(y,C.flipX,!1,j.settings.mode),(0,n.jsx)("img",{ref:y,alt:b.name,src:I||b.previewStaticURL||b.pose.previewUrl,height:C.height})},d=(0,g.PA)(v)}}]); 2 3//# sourceMappingURL=ThreeJsThumbnail.0b475a11c02e7eb4.chunk.js.map
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.