PageSourceSearch

https://poly.cam/_next/static/chunks/1831-071e079bf1d460a8.js

js poly.cam collected 2026-09-24 09:06:21 UTC 63,593 bytes, 1 lines download raw bytes

1try{!function(){var e="u">typeof window?window:"u">typeof global?global:"u">typeof globalThis?globalThis:"u">typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="1486f11c-b893-40d8-b7bc-2d66feba5b47",e._sentryDebugIdIdentifier="sentry-dbid-1486f11c-b893-40d8-b7bc-2d66feba5b47")}()}catch(e){}try{("u">typeof window?window:"u">typeof global?global:"u">typeof globalThis?globalThis:"u">typeof self?self:{}).SENTRY_RELEASE={id:"e5c218d51c3051e4a75cc638c5617e35fe4645f8"}}catch(e){}(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1831],{2321:(e,t,s)=>{"use strict";s.d(t,{Ay:()=>p,SX:()=>m});var o=s(34403),n=s(31317),l=s(97531),r=s(76500),a=s(7456),i=s(67657),c=s(8444),d=s(38906),u=s(39880);function m(e,t){let s;return(0,l.z)([(0,c.og)(),(0,c.OY)(),(0,c.xc)(),!(s=e?.rootFolderId)?(0,o.of)(void 0):(0,i.B)().folder(s).observe().pipe((0,n.W)(()=>(0,o.of)(void 0)))]).pipe((0,r.p)(([e])=>!!e),(0,a.T)(([s,o,n,l])=>{let r=l&&!o.some(e=>e.id===l.id)?[...o,l]:o,a=new Set(n.map(e=>e.id));return function(e){let t=new Set(e.map(e=>e.id)),s={},o=[];for(let n of e){let e=(0,d.nN$)(n)?void 0:n.folder.id;if(void 0===e||!t.has(e)){o.push(n);continue}let l=s[e]??[];l.push(n),s[e]=l}let n=new Set(o.map(e=>e.id)),l=o.map(e=>e.id);for(;l.length>0;)for(let e of s[l.shift()]??[])n.has(e.id)||(n.add(e.id),l.push(e.id));return e.filter(e=>n.has(e.id))}(r.filter(o=>o.workspace.id===e?.id&&(0,u.Zo)(s,o)&&("root"===o.type||void 0===o.deletedAt)&&!(!(0,d.nN$)(o)&&(0,d.NGq)(o.folder)&&o.folder.idPath.split("/").some(e=>a.has(e)))&&!t?.some(e=>o.id===e.id||!!("folder"in o&&(0,d.NGq)(o.folder))&&o.folder.idPath.includes(e.id))))}))}function p(e,t){return(0,l.z)([m(e,t),(0,c.w_)()]).pipe((0,a.T)(([e,t])=>e.map(e=>{var s,o;return s=e,o=t,{type:"Folder",content:(0,d.nN$)(s)?{...s,name:o.find(e=>e.id===s.workspace.id)?.displayName||"Library",type:"sub",folder:{id:s.id,type:"root"},visibility:"private"}:s}})))}},2322:(e,t,s)=>{"use strict";s.d(t,{Fu:()=>a,JW:()=>l,hJ:()=>r});var o=s(13749),n=s(39880);let l=(e,t,s)=>!!t&&e.workspace?.id===t.id&&(0,n.Zo)(s,e),r=(e,t)=>(0,n.Zo)(t,e)&&(e.workspace?.type===o.CO.org?(0,n.IL)(t,e):(0,n.Nn)(t?.id,e)),a=(e,t,s)=>({movable:e.filter(e=>l(e,t,s)),blocked:e.filter(e=>!l(e,t,s))})},5219:e=>{e.exports={permissions:"styles_permissions__TW1Ez",bold:"styles_bold__s4n4P",nameAndIcon:"styles_nameAndIcon__G5QbF",orgName:"styles_orgName__QT2EK",orgRow:"styles_orgRow__GQ4ML",toggle:"styles_toggle__ntf5Z",tooltip:"styles_tooltip__T97IL"}},5867:e=>{e.exports={videoHeader:"FilesViewer_videoHeader__pFmli",videoPlaceholder:"FilesViewer_videoPlaceholder__b24a7",imagesHeader:"FilesViewer_imagesHeader__PmZuI",content:"FilesViewer_content__B3_2j",addMoreBtn:"FilesViewer_addMoreBtn__1Q9mm",imageList:"FilesViewer_imageList__6pujD",image:"FilesViewer_image__a2OiR",red:"FilesViewer_red__Q1Dc6"}},6991:(e,t,s)=>{"use strict";s.d(t,{A:()=>i});var o=s(7620),n=s(33937),l=s(8444),r=s(46725),a=s(16127);function i(e){let t=(0,n.hA)(),s=(0,r.h3)(),[i]=(0,a.J)(()=>(0,l.OY)(),[]);return(0,o.useMemo)(()=>{if(!s)return;let o=t?.rootFolderId;if(!e||e===o)return o?{id:o,type:"root"}:void 0;if(void 0===i)return;let n=i.find(t=>t.id===e);return n||(console.warn(`Folder not found: ${e}`),null)},[e,s,t?.rootFolderId,i])}},7598:(e,t,s)=>{"use strict";s.d(t,{A:()=>m});var o=s(54568),n=s(9917),l=s(255),r=s(36270),a=s(98814),i=s(28631),c=s(85935),d=s(77002),u=s.n(d);function m({className:e,count:t,text:s,funnel:d,...p}){let h=(0,i.A)();return t===1/0?null:(0,o.jsxs)(l.A,{className:(0,n.A)(u().quotaReminder,e),...p,children:["number"==typeof t?(0,o.jsx)(l.A,{className:u().quotaNumber,children:Math.max(0,t)}):(0,o.jsx)(r.A,{size:24}),(0,o.jsx)(l.A,{className:u().quotaText,children:s}),(0,o.jsxs)(a.A,{palette:"basicPrimary",size:"s",shape:"capsule",onClick:()=>h.upgradeForBasic(d,{style:"sheet"}),children:[(0,o.jsx)(c.A,{}),(0,o.jsx)(l.A,{children:"Upgrade"})," "]})]})}},8260:(e,t,s)=>{"use strict";s.d(t,{A:()=>i});var o=s(7620),n=s(70640);let l=()=>{},r={onDragEnter:l,onDragOver:l,onDragLeave:l,onDrop:l};function a(e,t){return t.find(t=>e.includes(t))}function i({acceptTypes:e,onDrop:t,disabled:s,itemId:l}){let[c,d]=(0,o.useState)(!1),u=(0,o.useRef)(0),{dragItemId:m}=(0,n.pJ)(),p=(0,o.useMemo)(()=>e,[...e]),h=null!=l&&m===l,g=(0,o.useCallback)(e=>{!a(e.dataTransfer.types,p)||h||(e.preventDefault(),u.current+=1,1===u.current&&d(!0))},[p,h]),x=(0,o.useCallback)(e=>{!a(e.dataTransfer.types,p)||h||(e.preventDefault(),e.dataTransfer.dropEffect="move")},[p,h]),f=(0,o.useCallback)(()=>{u.current=Math.max(0,u.current-1),0===u.current&&d(!1)},[]),_=(0,o.useCallback)(e=>{if(e.preventDefault(),u.current=0,d(!1),h)return;let s=a(e.dataTransfer.types,p);if(!s)return;let o=e.dataTransfer.getData(s);o&&t(s,o)},[p,t,h]),j=(0,o.useMemo)(()=>({onDragEnter:g,onDragOver:x,onDragLeave:f,onDrop:_}),[g,x,f,_]);return s?[r,!1]:[j,c]}},9324:e=>{e.exports={title:"ModelUploadView_title__8mQx4",subtext:"ModelUploadView_subtext__DFBEa",progressText:"ModelUploadView_progressText__lfpD4",uploadText:"ModelUploadView_uploadText__JMfVb",content:"ModelUploadView_content__jvyjW",section:"ModelUploadView_section__ZFR3s",progressBox:"ModelUploadView_progressBox__ELBT_",dropZone:"ModelUploadView_dropZone__kaRJ_",inputBox:"ModelUploadView_inputBox__GjxRq",info:"ModelUploadView_info__SK7sV",chooseButton:"ModelUploadView_chooseButton__SY1T2",fileList:"ModelUploadView_fileList__DBnn9",file:"ModelUploadView_file__0mvX4",red:"ModelUploadView_red__Hlipn"}},11256:(e,t,s)=>{"use strict";s.d(t,{s:()=>p});var o=s(7620),n=s(33937),l=s(20917),r=s(67657),a=s(37083),i=s(32981),c=s(2322),d=s(8340),u=s(63236),m=s(62524);function p(e){let[t]=(0,i.A)(),{strings:s}=(0,d.B)(),p=(0,n.hA)(),h=(0,l.xE)(),g=(0,o.useRef)(e);g.current=e;let x=(0,o.useRef)({workspace:p,account:h});return x.current={workspace:p,account:h},(0,o.useCallback)(async(e,o)=>{let n=g.current;if((e!==m.k.folder||"sub"!==n.type||o!==n.idPath.split("/").pop())&&!(e===m.k.folder&&"sub"===n.type&&n.idPath.split("/").includes(o)))try{let l=(0,r.B)(),i=await l.folder(n.id).get();if(!i)return void t({text:s.SomethingWentWrongPleaseTryAgain});let d=e===m.k.capture?await l.capture(o).get():e===m.k.scene?await l.scene(o).get():await l.folder(o).get(),{workspace:p,account:h}=x.current;
1if(!d||!(0,c.JW)(d,p,h))return void t({text:s.ItemCannotBeMoved});let{inheritedAccess:g,inheritedAccountsShared:f}=(0,a.wC)(i),_={folder:(0,u.HC)(n),workspace:(0,u.HC)(i.workspace),inheritedAccess:(0,u.HC)(g),inheritedAccountsShared:(0,u.HC)(f)};e===m.k.capture?await l.capture(o).update(_):e===m.k.scene?await l.scene(o).update(_):await l.folder(o).update(_)}catch(e){console.error("Error moving content to folder:",e),t({text:s.SomethingWentWrongPleaseTryAgain})}},[t,s])}},15692:(e,t,s)=>{"use strict";s.d(t,{A:()=>a});var o,n=s(7620),l=s(18123);function r(){return(r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var o in s)({}).hasOwnProperty.call(s,o)&&(e[o]=s[o])}return e}).apply(null,arguments)}let a=function(e){return n.createElement(l.A,r({width:32,height:32,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"img"},e),o||(o=n.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.021 8.036 7.717 14.645C7.617 14.844 7.762 15.079 7.985 15.079H14.594C14.817 15.079 14.962 14.844 14.862 14.645L11.558 8.036C11.448 7.816 11.132 7.816 11.02 8.036M11.021 17.51 7.717 24.118C7.617 24.318 7.762 24.552 7.985 24.552H14.594C14.817 24.552 14.962 24.318 14.862 24.118L11.558 17.51C11.448 17.29 11.132 17.29 11.02 17.51M17.191 14.645 20.495 8.036C20.605 7.816 20.92 7.816 21.032 8.036L24.336 14.645C24.436 14.844 24.29 15.079 24.067 15.079H17.46C17.236 15.079 17.091 14.844 17.191 14.645M20.495 17.51 17.19 24.118C17.09 24.318 17.236 24.552 17.459 24.552H24.067C24.29 24.552 24.435 24.318 24.336 24.118L21.032 17.51C20.92 17.29 20.605 17.29 20.495 17.51",fill:"currentColor"})))}},21682:(e,t,s)=>{"use strict";s.d(t,{A:()=>i});var o=s(54568),n=s(9917),l=s(5535),r=s(95506),a=s.n(r);function i(e){return(0,o.jsx)(l.A,{...e,className:(0,n.A)(a().badge,e.className),children:"Basic"})}},22753:e=>{e.exports={imageInput:"SelectFiles_imageInput__9Ixv5",guidanceBox:"SelectFiles_guidanceBox__d0E48",requirements:"SelectFiles_requirements__V63Lq",upgradeText:"SelectFiles_upgradeText__qnTpQ",learnLink:"SelectFiles_learnLink__ze2Ud",label:"SelectFiles_label__hOLNE",chooseButton:"SelectFiles_chooseButton__GtVLE",requirementsLabel:"SelectFiles_requirementsLabel__YBNaJ",content:"SelectFiles_content__RHKNH",upgradeBtn:"SelectFiles_upgradeBtn__mYbkx",infoBox:"SelectFiles_infoBox__wNml_",upgradeBox:"SelectFiles_upgradeBox__Nbwkh"}},22926:(e,t,s)=>{"use strict";s.d(t,{A:()=>T});var o=s(54568),n=s(7620),l=s(85354),r=s(9917),a=s(79748),i=s(86863),c=s(28805),d=s(33937),u=s(92118),m=s(255),p=s(98814),h=s(71783),g=s(80143),x=s(5535),f=s(20917),_=s(8444),j=s(46725),v=s(39427),A=s(28894),y=s(56504),C=s(6992),b=s(48748),w=s(16127),M=s(80692),S=s(39468);function N(e,t){return(0,w.J)(()=>{let t=new AbortController;return(0,M.H)(e(t.signal)).pipe((0,S.j)(()=>t.abort()))},t)}var L=s(37083),k=s(585),O=s(90173),B=s(89628),I=s(9324),V=s.n(I);let T=({className:e,...t})=>{let[s,a]=(0,n.useState)([]),i=(0,n.useCallback)(e=>{a(t=>[...t,...e])},[]),{getRootProps:c,getInputProps:f}=(0,l.VB)({onDrop:i}),y=(0,b.K)(()=>(0,C.N)({kind:"clean"}),[]),[M]=(0,w.J)(()=>y,[y]),S=(0,d.hA)(),N=(0,j.h3)(),[L,B]=(0,n.useState)(),[I]=(0,w.J)(_.IF,[]),T=(0,b.K)(()=>S?I?.filter(e=>e.id===S.id):I,[S,I]),{shared:H,toggle:R}=(0,g.r_)(T);return(0,o.jsxs)(m.A,{className:(0,r.A)(V().content,e),...t,children:["uploading"===M.kind?(0,o.jsxs)(m.A,{className:V().progressBox,children:[(0,o.jsx)(u.A,{progress:M.progress,size:64}),(0,o.jsx)(x.A,{className:V().progressText,children:"Stay on this screen until upload is complete."})]}):(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(m.A,{className:V().dropZone,...c(),children:[(0,o.jsx)("input",{type:"file",accept:"*/*",name:"upload",...f(),"aria-label":"Upload model"}),(0,o.jsxs)(m.A,{className:V().inputBox,children:[(0,o.jsx)(k.A,{}),(0,o.jsxs)(m.A,{className:V().info,children:[(0,o.jsx)(x.A,{className:V().title,children:"Drag model files here, or"}),(0,o.jsx)(x.A,{className:V().subtext,children:"Formats: GLB, GLTF, OBJ, FBX, PLY (Gaussian Splatting), USDZ, or ZIP archive containing these formats."})]}),(0,o.jsx)(p.A,{className:V().chooseButton,palette:"action",size:"l",children:"Choose from file system"})]})]}),N&&(0,o.jsxs)(m.A,{className:V().section,children:[(0,o.jsx)(x.A,{children:"Folder"}),(0,o.jsx)(v.A,{value:L,onChange:B})]}),I&&!S&&(0,o.jsx)(h.A,{orgs:I,checked:H,toggle:R,mode:"create"}),s.length>0?(0,o.jsx)(m.A,{className:V().fileList,children:s.map(e=>(0,o.jsxs)(m.A,{className:V().file,children:[(0,o.jsx)(x.A,{children:e.name}),(0,o.jsx)(p.A,{palette:"destructiveSecondary",shape:"circle",size:"s",onClick:()=>a(t=>t.filter(t=>t!==e)),title:"Delete",children:(0,o.jsx)(O.A,{})})]},e.name))}):null]}),(0,o.jsx)(A.Ph,{children:(0,o.jsx)(F,{files:s,status:y,orgs:T,shared:H,workspace:S,folder:L})})]})},F=({files:e,status:t,orgs:s,shared:l,workspace:d,folder:u})=>{let m=(0,b.K)(()=>(0,i.A)(),[]),p=(0,y.yF)(m),h=(0,A.hW)(),g=(0,f.xE)()?.employee??!1,_=(0,a.useRouter)(),j=(0,c.E)(),[v,C]=N(t=>e.length>0?(0,B.aY)(e,p,h,"model_upload_view",t,g):Promise.resolve(void 0),[e,p,h,g]),[,w]=N(async e=>{if(v){let o=await v.uploadCapture(t,s?.filter(({id:e})=>l.includes(e)),e,d,u?.type==="root"?u:u&&(0,L.bM)(u));_.push(`/capture/${o}`)}},[v,s,l,u,t]),M=C??w,S=C?C.message??"Error loading model":w?"Error uploading model. Please check your network connection or try adjusting your firewall settings and try again.":null;return(0,n.useEffect)(()=>{(!v||w)&&t.set({kind:"clean"})},[v,w,t]),(0,n.useEffect)(()=>{M&&(console.warn(M),j.track("model_import_error",{error:M?.message??"unknown",source:"model_upload_view"}))},[M,j]),(0,o.jsx)(o.Fragment,{children:M?(0,o.jsx)(x.A,{className:(0,r.A)(V().uploadText,V().red),children:S}):e.length>0&&!v?(0,o.jsx)(x.A,{className:V().uploadText,children:"Processing files, stay on this screen until upload is complete."}):null})}},24699:e=>{e.exports={tooltip:"styles_tooltip__ZcdEJ",open:"styles_open__Ifwto",top:"styles_top__dZ3JB",right:"styles_right__pE_jF",bottom:"styles_bottom__NcGOr",left:"styles_left__rhiSF"}},25219:(e,t,s)=>{"use strict";s.d(t,{A:()=>tf});var o,n,l,r,a,i,c,d=s(54568),u=s(7620),m=s(9917),p=s(255),h=s(36270),g=s(98814),x=s(67423),f=s(31011),_=s(5535),j=s(30876),v=s(16127),A=s(40700),y=s(75207),C=s(28631),b=s(85935),w=s(47521),M=s.n(w);function S(e){let t=Math.floor(e/60),s=Math.round(e-60*t);return`${N(t)}:${N(s)}`}let N=e=>e<10?`0${e}`:e.toString();function L(e){return Math.ceil(e/1024/1024/1024*100)/100}function k({error:e}){return(0,d.jsx)(p.A,{element:"p",className:M().errorBox,palette:"red",children:function(e){switch(e.kind){case"maxImagesExceeded":return`You may add up to ${e.maxImages} images (${e.available} more).`;case"bothImagesAndVideo":return"You can't upload both images and video.";case"unsupportedFileType":return"You tried to select an unsupported file type.";case"multipleVideos":return"You may only upload one video.";case"videoTooShort":return`That video is too short (${S(e.duration)}). Minimum length is ${S(e.minDuration)}.`;case"videoTooLong":return`That video is too long (${S(e.duration)}). Maximum length is ${S(e.maxDuration)}.`;case"videoTooBig":return`That video file is too big (${L(e.size)}GB). Maximum size is ${L(e.maxSize)}GB.`;case"unknown":return"We encountered an unknown error. Please try again."}}(e)})}var O=s(30568),B=s.n(O),I=s(10123),V=s(14020),T=s(64282),F=s(53243),H=s(5867),R=s.n(H);let E=({input:e,thresholds:t,onAddMore:s})=>{switch(e.source){case"images":{let o=e.images.length;return(0,d.jsxs)(p.A,{className:R().content,style:{"--size":"88px"},children:[(0,d.jsx)(V.A,{className:R().imageList,items:e.images,getItemSize:z,keyExtractor:(e,t)=>
1`${e.name}-${t}`,ItemTemplate:D,axis:"x"}),(0,d.jsxs)(p.A,{className:R().imagesHeader,children:[o<t.minImages?(0,d.jsxs)(_.A,{className:R().red,children:[(t.minImages-o).toLocaleString()," more images required"]}):(0,d.jsxs)(_.A,{children:[o.toLocaleString()," /"," ",t.maxImages.toLocaleString()]}),s&&(0,d.jsxs)(g.A,{className:R().addMoreBtn,onClick:s,palette:"linkSubtle",size:"s",children:[(0,d.jsx)(T.A,{})," Add more"]})]})]})}case"video":{let{video:t,duration:s}=e,o=".mp4"===B().extname(t.name);return(0,d.jsxs)(p.A,{className:R().content,children:[(0,d.jsx)(p.A,{className:R().videoHeader,children:(0,d.jsxs)(_.A,{children:["Video (",S(s),")"]})}),o?(0,d.jsx)(P,{file:t}):(0,d.jsxs)(p.A,{className:R().videoPlaceholder,children:[(0,d.jsx)(F.A,{}),(0,d.jsx)(_.A,{children:t.name})]})]})}}};function P({file:e}){let t=(0,u.useMemo)(()=>URL.createObjectURL(e),[e]);return(0,u.useEffect)(()=>()=>URL.revokeObjectURL(t),[t]),(0,d.jsx)("video",{height:200,src:t,controls:!0})}let z=()=>96,D=({item:e,index:t})=>{let s=`${e.name} (image ${t+1})`;return(0,d.jsx)(I.A,{className:R().image,source:e,alt:s})};var q=s(22753),U=s.n(q);function K({mode:e,fileHandler:t,input:s,error:o,dismiss:n,thresholds:l,isUserBasic:r,basicFlag:a}){let i=(0,C.A)();return(0,d.jsxs)(p.A,{className:U().content,children:[s?(0,d.jsx)(E,{input:s,thresholds:l}):(0,d.jsx)(J,{mode:e}),(0,d.jsxs)(y.A,{className:U().imageInput,onChange:t.onChange,accept:t.accept,multiple:!0,children:[(0,d.jsx)(_.A,{children:s?"Drag more images here, or":"Drag images / video here, or"}),(0,d.jsx)(g.A,{className:U().chooseButton,palette:"action",children:"Choose from file system"})]}),o&&(0,d.jsx)(k,{error:o}),(0,d.jsxs)(p.A,{className:U().infoBox,children:[(0,d.jsx)(_.A,{className:U().label,children:"Requirements"}),(0,d.jsxs)("table",{className:U().requirements,children:[(0,d.jsx)("thead",{children:(0,d.jsxs)("tr",{children:[(0,d.jsx)("th",{style:{visibility:"hidden"},children:"Media"}),(0,d.jsx)("th",{style:{width:"25%"},children:"Min"}),(0,d.jsx)("th",{style:{width:"25%"},children:"Max"}),(0,d.jsx)("th",{style:{width:"25%"},children:"Formats"})]})}),(0,d.jsxs)("tbody",{children:[(0,d.jsxs)("tr",{children:[(0,d.jsx)("td",{className:U().requirementsLabel,children:"Photo"}),(0,d.jsx)("td",{children:l.minImages}),(0,d.jsx)("td",{children:l.maxImages}),(0,d.jsx)("td",{children:"PNG, JPG"})]}),!s&&(0,d.jsxs)("tr",{children:[(0,d.jsx)("td",{className:U().requirementsLabel,children:"Video"}),(0,d.jsx)("td",{children:S(l.minVideoLength)}),(0,d.jsxs)("td",{children:[S(l.maxVideoLength)," -"," ",L(l.maxVideoSize),"GB"]}),(0,d.jsx)("td",{children:"MP4, MOV, AVI, M4V"})]})]})]}),!1===r&&(0,d.jsxs)(p.A,{className:U().upgradeBox,palette:"clear",children:[a?(0,d.jsxs)(_.A,{className:U().upgradeText,children:["Increase max upload limits to ",(0,d.jsx)("strong",{children:"300 photos"})," or"," ",(0,d.jsx)("strong",{children:"5 minutes"})," of video with Basic"]}):(0,d.jsxs)(_.A,{className:U().upgradeText,children:["Increase max upload limits to ",(0,d.jsx)("strong",{children:"2,000 photos"})," or"," ",(0,d.jsx)("strong",{children:"15 minutes"})," of video with Pro"]}),(0,d.jsxs)(g.A,{className:U().upgradeBtn,palette:"basicPrimary",shape:"capsule",size:"l",onClick:()=>{n?.(),i.upgradeForBasic("xlObjectMode",{optional:!0})},children:[(0,d.jsx)(b.A,{}),(0,d.jsx)(_.A,{children:"Upgrade"})," "]})]})]})]})}function J({mode:e}){return(0,d.jsxs)(p.A,{className:U().guidanceBox,children:["Upload images/video of an object captured from all angles to create a ",(0,d.jsx)(A.A,{className:U().learnLink,href:"splat"===e?"/tools/gaussian-splatting":"https://learn.poly.cam/hc/en-us/articles/27425185907348-Creating-Photogrammetry-Captures",palette:"link",children:"splat"===e?"Gaussian Splat":"photogrammetry"})," 3D model."]})}var G=s(33937),W=s(41162),$=s(65764),Y=s(71783),Z=s(80143),X=s(86520),Q=s(7598),ee=s(30509),et=s(32785),es=s(81174),eo=s(69931),en=s(68129),el=s(16357),er=s(20917),ea=s(8444),ei=s(46725),ec=s(39427),ed=s(8340),eu=s(83442),em=s(48703),ep=s(21682),eh=s(82877),eg=s(13749),ex=s(50888),ef=s(70378),e_=s(23358),ej=s(39415),ev=s(18123);function eA(){return(eA=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var o in s)({}).hasOwnProperty.call(s,o)&&(e[o]=s[o])}return e}).apply(null,arguments)}var ey=s(79187);function eC(){return(eC=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var o in s)({}).hasOwnProperty.call(s,o)&&(e[o]=s[o])}return e}).apply(null,arguments)}function eb(){return(eb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var o in s)({}).hasOwnProperty.call(s,o)&&(e[o]=s[o])}return e}).apply(null,arguments)}function ew(){return(ew=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var o in s)({}).hasOwnProperty.call(s,o)&&(e[o]=s[o])}return e}).apply(null,arguments)}let eM=function(e){return u.createElement(ev.A,ew({width:32,height:32,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"img"},e),r||(r=u.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.333 7C9.61 7 9.833 7.224 9.833 7.5V9.833H12.166C12.442 9.833 12.666 10.057 12.666 10.333S12.442 10.833 12.166 10.833H9.833V24.5C9.833 24.775 9.61 24.999 9.333 24.999S8.833 24.775 8.833 24.499
1V10.833H6.5C6.224 10.833 6 10.61 6 10.333S6.224 9.833 6.5 9.833H8.833V7.5C8.833 7.224 9.057 7 9.333 7M16.916 7.5C16.916 7.224 16.692 7 16.416 7S15.916 7.224 15.916 7.5V21.166H13.583C13.307 21.166 13.083 21.39 13.083 21.666S13.307 22.166 13.583 22.166H15.916V24.499C15.916 24.775 16.14 24.999 16.416 24.999S16.916 24.775 16.916 24.499V22.166H19.249C19.525 22.166 19.75 21.942 19.75 21.666S19.525 21.166 19.25 21.166H16.916zM23.999 7.5C23.999 7.224 23.775 7 23.499 7S22.999 7.224 22.999 7.5V15.5H20.666C20.39 15.5 20.166 15.722 20.166 16 20.166 16.275 20.39 16.5 20.666 16.5H22.999V24.498C22.999 24.775 23.223 24.999 23.499 24.999S23.999 24.775 23.999 24.499V16.499H26.332C26.608 16.5 26.832 16.276 26.832 16 26.832 15.723 26.608 15.5 26.332 15.5H23.999z",fill:"currentColor"})))};var eS=s(15692),eN=s(61124);function eL(){return(eL=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var o in s)({}).hasOwnProperty.call(s,o)&&(e[o]=s[o])}return e}).apply(null,arguments)}let ek={reduced:{label:"Optimized",description:"Optimized for fast loading and real-time rendering environments. Best for game engines and Web.",Icon:s(79067).A,textureMaps:["Ambient Occlusion Map","Normal Map"],squareCount:1,triangleCount:1},medium:{label:"Medium",description:"Provides a good balance of high resolution and usability. Best for game engines and iOS/Mobile.",Icon:eS.A,textureMaps:["Ambient Occlusion Map","Normal Map"],squareCount:6,triangleCount:2},full:{label:"Full",description:"Recommended for very high-definition image and video rendering. Best for rendering and VFX.",Icon:eN.A,textureMaps:["Ambient Occlusion Map","Normal Map","Roughness Map"],squareCount:12,triangleCount:3},raw:{label:"Raw",description:"Recommended when you want high detail and no PBR maps. Best for professional workflows.",Icon:function(e){return u.createElement(ev.A,eL({width:32,height:32,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"img"},e),a||(a=u.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.742 7.858 7.645 10.053C7.578 10.185 7.675 10.342 7.824 10.342H10.019C10.167 10.342 10.264 10.185 10.198 10.052L9.1 7.859C9.026 7.71 8.816 7.71 8.742 7.858M8.742 12.595 7.645 14.789C7.578 14.922 7.675 15.08 7.824 15.08H10.019C10.167 15.079 10.264 14.922 10.198 14.789L9.1 12.595C9.026 12.447 8.816 12.447 8.742 12.595M7.645 19.526 8.742 17.331C8.816 17.184 9.026 17.184 9.1 17.331L10.198 19.526C10.264 19.66 10.168 19.816 10.018 19.816H7.825C7.675 19.816 7.578 19.659 7.644 19.526M8.742 22.068 7.645 24.263C7.578 24.396 7.675 24.553 7.824 24.553H10.019C10.167 24.553 10.264 24.396 10.198 24.263L9.1 22.068C9.026 21.921 8.816 21.921 8.742 22.068M12.382 10.052 13.479 7.859C13.553 7.71 13.763 7.71 13.837 7.858L14.934 10.053C15.001 10.185 14.904 10.342 14.756 10.342H12.56C12.412 10.342 12.315 10.185 12.38 10.052M13.479 12.596 12.382 14.789C12.315 14.922 12.412 15.08 12.56 15.08H14.755C14.906 15.079 15.002 14.922 14.936 14.789L13.836 12.595C13.763 12.447 13.553 12.447 13.479 12.595M12.382 19.526 13.479 17.331C13.553 17.184 13.763 17.184 13.837 17.331L14.934 19.526C15.001 19.66 14.904 19.816 14.756 19.816H12.56C12.412 19.816 12.315 19.659 12.38 19.526M13.479 22.068 12.382 24.263C12.315 24.396 12.412 24.553 12.56 24.553H14.755C14.906 24.553 15.002 24.396 14.936 24.263L13.836 22.068C13.763 21.921 13.553 21.921 13.479 22.068M17.12 10.052 18.216 7.859C18.29 7.71 18.5 7.71 18.574 7.858L19.67 10.053C19.738 10.185 19.641 10.342 19.492 10.342H17.297C17.15 10.342 17.053 10.185 17.12 10.052M18.216 12.596 17.119 14.789C17.052 14.922 17.149 15.08 17.297 15.08H19.493C19.641 15.079 19.738 14.922 19.672 14.789L18.573 12.595C18.5 12.447 18.29 12.447 18.216 12.595M17.119 19.526 18.216 17.331C18.29 17.184 18.5 17.184 18.574 17.331L19.67 19.526C19.738 19.66 19.641 19.816 19.492 19.816H17.297C17.15 19.816 17.053 19.659 17.12 19.526M18.216 22.068 17.119 24.263C17.052 24.396 17.149 24.553 17.297 24.553H19.493C19.641 24.553 19.738 24.396 19.672 24.263L18.573 22.068C18.5 21.921 18.29 21.921 18.216 22.068M21.856 10.052 22.952 7.859C23.027 7.71 23.237 7.71 23.31 7.858L24.408 10.053C24.475 10.185 24.378 10.342 24.23 10.342H22.034C21.886 10.342 21.79 10.185 21.855 10.052M22.952 12.596 21.855 14.789C21.79 14.922 21.885 15.08 22.035 15.08H24.228C24.378 15.079 24.475 14.922 24.41 14.789L23.31 12.595C23.237 12.447 23.027 12.447 22.953 12.595M21.855 19.526 22.953 17.331C23.027 17.184 23.237 17.184 23.31 17.331L24.408 19.526C24.475 19.66 24.378 19.816 24.23 19.816H22.034C21.886 19.816 21.79 19.659 21.855 19.526M22.953 22.068 21.855 24.263C21.79 24.396 21.885 24.553 22.035 24.553H24.228C24.378 24.553 24.475 24.396 24.41 24.263L23.31 22.068C23.237 21.921 23.027 21.921 22.953 22.068",fill:"
1currentColor"})))},textureMaps:["Albedo Textures"],squareCount:18,triangleCount:4},custom:{label:"Custom",description:"",Icon:eM,textureMaps:[],squareCount:0,triangleCount:0}},eO=["1K","2K","4K","8K"];var eB=s(76772),eI=s(63355),eV=s(56511),eT=s(26830),eF=s(81920);function eH(){return(eH=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var o in s)({}).hasOwnProperty.call(s,o)&&(e[o]=s[o])}return e}).apply(null,arguments)}let eR=function(e){return u.createElement(ev.A,eH({width:18,height:15,viewBox:"0 0 18 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"img"},e),i||(i=u.createElement("path",{d:"M9 0 17.66 15H.34z",fill:"currentColor"})))};function eE(){return(eE=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var o in s)({}).hasOwnProperty.call(s,o)&&(e[o]=s[o])}return e}).apply(null,arguments)}let eP=function(e){return u.createElement(ev.A,eE({width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"img"},e),c||(c=u.createElement("path",{fill:"currentColor",d:"M0 0H16V16H0z"})))};var ez=s(53954),eD=s.n(ez);function eq({detailLevel:e}){let t=(0,eu.c)(),[s,o]=(0,u.useState)(),n=(0,u.useMemo)(()=>{if(s)return()=>o(void 0)},[s]),l=(()=>{let{strings:e}=(0,ed.B)();return{PolygonCount:{label:e.PolygonCount,description:e.PolygonCountDescription},TextureSize:{label:e.TextureSize,description:e.TextureSizeDescription},TextureMaps:{label:e.TextureMaps,description:e.TextureMapsDescription}}})(),{strings:r}=(0,ed.B)(),{Icon:a,label:i,description:c,textureMaps:h,squareCount:g,triangleCount:x}=ek[e];return(0,d.jsx)(eV.A,{className:eD().modal,onBack:n,onClose:t.popStack,header:"Info",children:s?(0,d.jsxs)(p.A,{className:(0,m.A)(eD().content,eD().info),children:[(0,d.jsx)(_.A,{className:eD().label,children:l[s].label}),(0,d.jsx)(_.A,{className:eD().description,children:l[s].description})]}):(0,d.jsxs)(p.A,{className:(0,m.A)(eD().content,eD().main),children:[(0,d.jsxs)(p.A,{className:eD().section,children:[(0,d.jsxs)(p.A,{className:eD().mainHeader,children:[(0,d.jsx)(a,{}),(0,d.jsx)(_.A,{className:eD().label,children:i})]}),(0,d.jsx)(_.A,{className:eD().mainDescription,children:c})]}),(0,d.jsx)(eU,{text:r.PolygonCount,onClickInfo:()=>o("PolygonCount"),children:(0,d.jsx)(eK,{count:x})}),(0,d.jsx)(eU,{text:r.TextureSize,onClickInfo:()=>o("TextureSize"),children:(0,d.jsx)(eJ,{count:g})}),(0,d.jsx)(eU,{text:r.TextureMaps,onClickInfo:()=>o("TextureMaps"),children:(0,d.jsx)(p.A,{className:eD().textureStack,children:h.map((e,t)=>(0,d.jsxs)(p.A,{className:eD().textureInfo,children:[(0,d.jsx)(eF.A,{color:"green"}),(0,d.jsx)(_.A,{children:e})]},t))})})]})})}let eU=({text:e,onClickInfo:t,children:s})=>(0,d.jsxs)(p.A,{className:eD().section,children:[(0,d.jsxs)(p.A,{className:eD().sectionHeader,children:[(0,d.jsx)(_.A,{children:e}),(0,d.jsx)(g.A,{shape:"circle",size:"s",palette:"transparent",onClick:t,children:(0,d.jsx)(eT.A,{})})]}),s]}),eK=({count:e})=>(0,d.jsx)(p.A,{className:(0,m.A)(eD().elements,eD().row),children:(0,eB.y)(0,e).map(e=>(0,d.jsx)(eR,{color:"blue"},e))}),eJ=({count:e})=>(0,d.jsx)(p.A,{className:(0,m.A)(eD().elements,eD().column),children:(0,eI.i)((0,eB.y)(0,e),6).map((e,t)=>(0,d.jsx)(p.A,{className:(0,m.A)(eD().elements,eD().row),children:e.map(e=>(0,d.jsx)(eP,{color:"purple"},e))},t))});var eG=s(94014),eW=s.n(eG);function e$({mode:e,setMode:t,input:s,error:o,fileHandler:n,onSubmit:l,thresholds:r,isUserBasic:a,isUserBusiness:i}){let c=(0,ei.h3)(),h=(0,C.A)(),[x]=(0,G.sJ)(),[f,j]=(0,u.useState)({name:"",detailLevel:x?.defaultDetailLevel??"medium",isolateObject:!1,sequential:!1,smartVideoKeyframing:a,polygonCount:0,textureResolution:"1K",splatPreset:"medium",customSplatOptions:{},customSplatResolution:2048}),A=(0,u.useMemo)(()=>({name:e=>j(t=>({...t,name:e})),detailLevel:e=>j(t=>({...t,detailLevel:e})),polygonCount:e=>j(t=>({...t,polygonCount:e})),textureResolution:e=>j(t=>({...t,textureResolution:e})),isolateObject:e=>j(t=>({...t,isolateObject:e})),sequential:e=>j(t=>({...t,sequential:e})),smartVideoKeyframing:e=>j(t=>({...t,smartVideoKeyframing:e&&a})),splatPreset:e=>{e0[e].needBusiness&&!i?h.upgradeForBiz("customSplat",{style:"sheet"}):j(t=>({...t,splatPreset:e}))},customSplatOptions:e=>j(t=>({...t,customSplatOptions:{...t.customSplatOptions,...e}})),customSplatResolution:e=>j(t=>({...t,customSplatResolution:e})),folder:e=>j(t=>({...t,folder:e}))}),[a,i,h]),y=(0,er.xE)(),b=(0,G.hA)(),[w]=(0,v.J)(ea.IF,[]),M=!a&&!i,{shared:S,toggle:N}=(0,Z.r_)(w),L=(0,u.useMemo)(()=>b?w?.filter(e=>e.id===b.id):w?.filter(e=>S.includes(e.id)),[w,S,b]),O=(0,u.useMemo)(()=>Math.ceil(("images"===s.source?s.images.reduce((e,t)=>
1e+t.size,0):s.video.size)/1024/1024),[s]),B=(0,em.A)(),I="photo"===e?B.photoCapturesRemaining:B.splatsRemaining,V=function(e,t){if("photo"===e)return"30–40 minutes";if("splat"===e){if("fast"===t)return"20–30 minutes";else if("medium"===t)return"30–40 minutes";else if("high"===t)return"2–4 hours"}}(e,f.splatPreset),T=(0,u.useRef)(null),F=(0,u.useMemo)(()=>Object.keys(n?.accept??{}).join(","),[n?.accept]),H=x?.defaultDetailLevel;(0,u.useEffect)(()=>{H&&j(e=>({...e,detailLevel:H}))},[H]);let[R,P]=(0,u.useState)(!1);return(0,d.jsxs)(W.A,{className:eW().container,onSubmit:()=>l?.(f,L),children:[M&&(0,d.jsx)(Q.A,{count:I,text:"photo"===e?"photo captures left.":"splats left.",funnel:"unlimitedObjectCaptures"}),(0,d.jsxs)(p.A,{className:eW().section,children:[(0,d.jsx)(_.A,{className:eW().title,children:"Capture title"}),(0,d.jsx)(eo.A,{value:f.name,onChange:A.name,placeholder:"Give your capture a name",stroke:!0})]}),(0,d.jsxs)(p.A,{className:eW().modes,children:[(0,d.jsxs)(ee.A,{name:"object-capture-mode",className:(0,m.A)(eW().modeBtn,"photo"===e&&eW().checked),indicatorClassName:eW().modeBtnIcon,checked:"photo"===e,onChange:()=>t("photo"),children:[(0,d.jsx)(el.A,{className:eW().modeVideo,play:"photo"===e,source:"https://storage.polycam.io/static/object_draft/photo_processing.webm"}),(0,d.jsx)(_.A,{children:"Photogrammetry"})]}),(0,d.jsxs)(ee.A,{name:"object-capture-mode",className:(0,m.A)(eW().modeBtn,"splat"===e&&eW().checked),indicatorClassName:eW().modeBtnIcon,checked:"splat"===e,onChange:()=>{var e;let s,o;return s="splat"==(e="splat")&&B.splatsRemaining<=0,o=false,void(s||o?h.upgradeForBasic("unlimitedObjectCaptures",{style:"sheet"}):t(e))},children:[(0,d.jsx)(el.A,{className:eW().modeVideo,play:"splat"===e,source:"https://storage.polycam.io/static/object_draft/splat_processing.webm"}),(0,d.jsx)(_.A,{children:"Gaussian Splat"}),M&&(0,d.jsx)(ep.A,{className:eW().processingModeBadge})]})]}),"photo"===e&&(0,d.jsx)(eZ,{detailLevel:f.detailLevel,onChangeDetailLevel:A.detailLevel,polygonCount:f.polygonCount,onChangePolygonCount:A.polygonCount,textureResolution:f.textureResolution,onChangeTextureResolution:A.textureResolution}),"splat"===e&&y?.employee&&(0,d.jsx)(e2,{preset:f.splatPreset,onChangePreset:A.splatPreset,customOptions:f.customSplatOptions,onChangeCustomOptions:A.customSplatOptions,customResolution:f.customSplatResolution,onChangeCustomResolution:A.customSplatResolution}),c&&(0,d.jsx)(p.A,{className:eW().section,children:(0,d.jsxs)(p.A,{className:eW().optionBox,children:[(0,d.jsx)(_.A,{className:eW().title,children:"Folder"}),(0,d.jsx)(ec.A,{value:f.folder,onChange:A.folder})]})}),(0,d.jsxs)(p.A,{className:eW().section,children:[(0,d.jsxs)(p.A,{element:"label",className:eW().title,children:["Advanced Settings"," ",(0,d.jsx)(g.A,{onClick:()=>P(e=>!e),palette:"linkSubtle",size:"s",children:(0,d.jsx)(e_.A,{className:(0,m.A)(eW().foldIcon,R&&eW().rotate)})})]}),R&&(0,d.jsxs)(d.Fragment,{children:["photo"===e&&(0,d.jsx)(eY,{label:"Isolate object from environment",info:"Turn this on if you've flipped or rotated your object while capturing.",toggled:f.isolateObject,setToggled:A.isolateObject}),"images"===s.source?(0,d.jsx)(eY,{label:"Sequential",info:"Turn this on if all your photos are organized in the order they were taken.",toggled:f.sequential,setToggled:A.sequential}):(0,d.jsx)(eY,{label:"Smart keyframing",info:"Turn this on if you moved the camera quickly or unevenly while capturing.",toggled:f.smartVideoKeyframing,setToggled:A.smartVideoKeyframing,funnel:a?void 0:"smartVideoKeyframing"})]})]}),(0,d.jsx)(E,{input:s,thresholds:r,onAddMore:()=>{T.current&&T.current.click()}}),w&&w.length>0&&!b&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("div",{className:eW().divider}),(0,d.jsx)(Y.A,{orgs:w,checked:S,toggle:N,mode:"create"})]}),o&&(0,d.jsx)(k,{error:o}),(0,d.jsxs)(p.A,{className:eW().footer,children:[(0,d.jsx)(p.A,{className:eW().statBox,children:I<=0?(0,d.jsxs)(_.A,{children:["You've run out of ","splat"===e?"splat":"object"," ","capture quota."]}):(0,d.jsxs)(_.A,{children:[O,"MB upload. Estimated processing time:"," ",V,"."]})}),I<=0?(0,d.jsxs)(g.A,{className:eW().btn,palette:"action",onClick:()=>h.upgradeForBasic("splat"===e?"splat":"photoCapture",{style:"sheet"}),children:[(0,d.jsx)(ej.A,{}),"Upgrade to continue"]}):(0,d.jsx)($.A,{disabled:!l,className:eW().btn,palette:"action",children:"Upload & Process"})]}),(0,d.jsx)("input",{className:"sr-only",type:"file",ref:T,accept:F,onChange:({currentTarget:e})=>{e.files&&n?.onChange(Array.from(e.files),[])},"aria-label":"Upload files",multiple:!0})]})}function eY({label:e,info:t,toggled:s,setToggled:o,funnel:n}){let l=(0,C.A)();return(0,d.jsxs)(p.A,{element:n?"div":"label",className:eW().optionBox,children:[(0,d.jsxs)(p.A,{className:eW().optionText,children:[(0,d.jsx)(_.A,{className:eW().optionLabel,children:e}),(0,d.jsx)(_.A,{className:eW().optionInfo,children:t})]}),n?(0,d.jsxs)(g.A,{onClick:()=>l.upgradeForBasic(n,{style:"sheet"}),palette:"basicPrimary",shape:"capsule",size:"s",children:[(0,d.jsx)(b.A,{}),"Upgrade"]}):(0,d.jsx)(es.A,{element:"div",toggled:s,setToggled:o,size:"small"})]})}
1function eZ({detailLevel:e,onChangeDetailLevel:t,textureResolution:s,onChangeTextureResolution:o}){let n=(0,eu.c)(),l=(0,er.xE)(),r=(0,G.hA)(),{strings:a}=(0,ed.B)(),i=r?.type===eg.CO.org?r.settings?.disableDetailLevels:void 0,c=(0,u.useMemo)(()=>i??[],[i]),m=ex.F7.filter(e=>!!l?.employee||"custom"!==e);return(0,u.useEffect)(()=>{if(c.length>0&&c.includes(e)){let e=m.find(e=>!c.includes(e));e&&t(e)}},[e,c,m,t]),(0,d.jsxs)(p.A,{className:eW().section,children:[(0,d.jsx)(X.A,{className:eW().picker,variant:"blocky",items:m,uniform:!0,selection:e,setSelection:t,ItemTemplate:eX,getKey:e=>e,itemDisabled:e=>c.includes(e),palette:"primary"}),c.length>0&&(0,d.jsx)(_.A,{className:eW().disabledWarning,children:a.TeamAdminDisabledDetailLevel}),"custom"===e?(0,d.jsx)(p.A,{className:eW().customOptions,palette:"surfaceLow",children:(0,d.jsxs)(p.A,{className:eW().section,children:[(0,d.jsx)(p.A,{className:eW().customOptionLabelBox,children:(0,d.jsx)(_.A,{className:eW().customOptionLabel,children:"Texture resolution"})}),(0,d.jsx)(X.A,{className:eW().picker,variant:"blocky",items:eO,selection:s,setSelection:o,ItemTemplate:eQ,palette:"primary",getKey:e=>e})]})}):(0,d.jsxs)(_.A,{className:eW().optionInfo,children:[ek[e].description," ",(0,d.jsx)(g.A,{palette:"link",inline:!0,size:"s",onClick:()=>n.show({content:(0,d.jsx)(eq,{detailLevel:e}),style:"modal"}),children:"Learn more"})]})]})}function eX({item:e,disabled:t}){let{Icon:s,label:o}=ek[e];return(0,d.jsxs)(p.A,{className:(0,m.A)(eW().detailLevelItem,t&&eW().disabledItem),children:[(0,d.jsx)(s,{}),(0,d.jsx)(_.A,{children:o})]})}function eQ({item:e}){return(0,d.jsx)(_.A,{children:e})}let e1=["fast","medium","high","custom"];function e2({preset:e,onChangePreset:t,customOptions:s,onChangeCustomOptions:o,customResolution:n,onChangeCustomResolution:l}){let{strings:r}=(0,ed.B)();return(0,d.jsxs)(p.A,{className:eW().section,children:[(0,d.jsx)(X.A,{className:eW().picker,variant:"blocky",items:e1,uniform:!0,selection:e,setSelection:t,ItemTemplate:e5,getKey:e=>e,palette:"primary"}),e0[e].description?(0,d.jsx)(_.A,{className:eW().optionInfo,children:r[e0[e].description]}):null,"custom"===e?(0,d.jsxs)(p.A,{className:eW().customOptions,palette:"surfaceLow",children:[(0,d.jsx)(e3,{value:s.minSteps??9e3,min:1e3,max:1e5,step:100,label:"Minimum steps",help:"Minimum number of steps to run the splatting algorithm. Higher values may improve quality, but take more time.",onChange:e=>o({minSteps:e,maxSteps:Math.max(e,s.maxSteps??e)})}),(0,d.jsx)(e3,{value:s.maxSteps??3e4,min:1e3,max:1e5,step:100,label:"Maximum steps",help:"Maximum number of steps to run the splatting algorithm. Higher values may improve quality, but take more time.",onChange:e=>o({maxSteps:e,minSteps:Math.min(e,s.minSteps??e)})}),(0,d.jsx)(e3,{value:s.earlyStoppingThreshold??1e-6,min:1e-7,max:1e-5,step:1e-7,valueFormatter:e=>e.toExponential(),label:"Early stopping threshold",help:"Stop early if splat quality stops improving. Lower values may improve quality, but take more time.",onChange:e=>o({earlyStoppingThreshold:e})}),(0,d.jsx)(e3,{value:n,min:256,max:8192,step:1,label:"Max resolution",help:"Limit image resolution (in the larger dimension) to this.",onChange:l}),(0,d.jsx)(e3,{value:s.resolutionSchedule??3e3,min:100,max:5e3,step:10,label:"Resolution schedule",help:"Run this many steps at lower resolution before increasing resolution. Lower values may improve quality, but take more time and may cause floaters.",onChange:e=>o({resolutionSchedule:e})}),(0,d.jsx)(e3,{value:s.learningRateMultiplier??1,min:.01,max:10,step:.01,label:"Learning rate multiplier",help:"Increase or decrease the default learning rate. Higher values may improve quality when the number of steps is low. Lower values may improve quality when the number of steps is high or the number of images is high.",onChange:e=>o({learningRateMultiplier:e})}),(0,d.jsx)(eY,{label:"Enable geometric training",info:"Use geometric training losses to improve mesh accuracy.",toggled:s.enableGeometricTraining??!1,setToggled:e=>o({enableGeometricTraining:e})}),(0,d.jsx)(eY,{label:"Generate mesh",info:"Generate a mesh from the splat after training.",toggled:s.generateMesh??!1,setToggled:e=>o({generateMesh:e})})]}):null]})}let e0={fast:{label:"Fast",description:"FastSplatDescription",Icon:function(e){return u.createElement(ev.A,eA({width:33,height:32,viewBox:"0 0 33 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"img"}
1,e),o||(o=u.createElement("circle",{cx:16.75,cy:16,r:9,fill:"currentColor"})))}},medium:{label:"Default",description:"MediumSplatDescription",Icon:function(e){return u.createElement(ev.A,eC({width:33,height:32,viewBox:"0 0 33 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"img"},e),n||(n=u.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.25 15C13.46 15 15.25 13.21 15.25 11S13.46 7 11.25 7 7.25 8.79 7.25 11 9.04 15 11.25 15M11.25 25C13.46 25 15.25 23.21 15.25 21S13.46 17 11.25 17 7.25 18.79 7.25 21 9.04 25 11.25 25M25.25 11C25.25 13.21 23.46 15 21.25 15S17.25 13.21 17.25 11 19.04 7 21.25 7 25.25 8.79 25.25 11M21.25 25C23.46 25 25.25 23.21 25.25 21S23.46 17 21.25 17 17.25 18.79 17.25 21 19.04 25 21.25 25",fill:"currentColor"})))}},high:{label:"Best",description:"HighSplatDescription",Icon:function(e){return u.createElement(ev.A,eb({width:33,height:32,viewBox:"0 0 33 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"img"},e),l||(l=u.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.784 9.455C12.784 10.81 11.685 11.909 10.33 11.909 8.974 11.91 7.875 10.81 7.875 9.455S8.974 7 10.329 7 12.785 8.099 12.785 9.455M19.33 9.455C19.33 10.81 18.232 11.909 16.876 11.909S14.421 10.81 14.421 9.455 15.519 7 16.875 7 19.329 8.099 19.329 9.455M23.422 11.909C24.776 11.91 25.875 10.81 25.875 9.455S24.776 7 23.421 7 20.966 8.099 20.966 9.455C20.966 10.81 22.065 11.9
109 23.42 11.909M12.784 16C12.784 17.356 11.685 18.454 10.33 18.454 8.974 18.455 7.875 17.357 7.875 16S8.974 13.546 10.329 13.546 12.785 14.644 12.785 16M16.875 18.454C18.231 18.455 19.329 17.357 19.329 16S18.232 13.546 16.876 13.546 14.421 14.644 14.421 16 15.519 18.454 16.875 18.454M25.875 16C25.875 17.356 24.776 18.454 23.421 18.454S20.966 17.357 20.966 16 22.065 13.546 23.42 13.546 25.876 14.644 25.876 16M10.33 25C11.685 25 12.784 23.901 12.784 22.546S11.685 20.09 10.33 20.09 7.875 21.19 7.875 22.545 8.974 25 10.329 25M19.33 22.546C19.33 23.9 18.23 25 16.874 25S14.421 23.901 14.421 22.546 15.519 20.09 16.875 20.09 19.329 21.19 19.329 22.545M23.42 25C24.776 25 25.875 23.901 25.875 22.546S24.776 20.09 23.42 20.09C22.065 20.09 20.966 21.19 20.966 22.545S22.065 25 23.42 25",fill:"currentColor"})))},needBusiness:!0},custom:{label:"Custom",Icon:eM,needBusiness:!0}};function e5({item:e}){let{Icon:t,label:s,needBusiness:o}=e0[e],{strings:n}=(0,ed.B)(),l=(0,er.xE)(),r=(0,ef.mS)(l);return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(t,{}),(0,d.jsx)(_.A,{children:n[s]}),!r&&o&&(0,d.jsx)(eh.A,{})]})}function e3({value:e,min:t,max:s,step:o,label:n,valueFormatter:l,help:r,onChange:a}){let[i,c]=(0,u.useState)(!1);return(0,d.jsxs)(p.A,{className:eW().section,children:[(0,d.jsxs)(p.A,{className:eW().customOptionLabelBox,children:[(0,d.jsx)(_.A,{className:eW().customOptionLabel,children:n}),(0,d.jsxs)(g.A,{onClick:()=>c(!i),shape:"circle",size:"s",className:eW().customOptionTooltipButton,children:[(0,d.jsx)(ey.A,{}),(0,d.jsx)(en.A,{open:i,position:"top",className:eW().customOptionTooltip,children:r})]})]}),(0,d.jsxs)(p.A,{className:eW().customOptionSliderBox,children:[(0,d.jsx)(et.A,{value:e,min:t,max:s,step:o,onChange:a}),(0,d.jsx)(_.A,{className:eW().customOptionSliderValue,children:l?l(e):e})]})]})}var e6=s(66608),e4=s.n(e6),e8=s(48748),e7=s(60549);async function e9(e,t,s){if(t.length>0)return{error:{kind:"unsupportedFileType"}};let o=e.filter(to),n=e.filter(tn);if(o.length>0&&n.length>0)return{error:{kind:"bothImagesAndVideo"}};if(n.length>1)return{error:{kind:"multipleVideos"}};if(1===n.length&&n[0]){var l;let e=n[0];if(e.size>s.maxVideoSize)return{error:{kind:"videoTooBig",size:e.size,maxSize:s.maxVideoSize}};let t=await (l=e,new Promise(e=>{let t=URL.createObjectURL(l),s=document.createElement("video");s.preload="metadata",s.src=t;let o=()=>{s.removeEventListener("loadedmetadata",o),URL.revokeObjectURL(t),e(s.duration)};s.addEventListener("loadedmetadata",o)}));return t<s.minVideoLength?{error:{kind:"videoTooShort",duration:t,minDuration:s.minVideoLength}}:t>s.maxVideoLength?{error:{kind:"videoTooLong",duration:t,maxDuration:s.maxVideoLength}}:{input:{source:"video",video:e,duration:t}}}if(o.length>0)if(o.length>s.maxImages)return{error:{kind:"maxImagesExceeded",available:s.maxImages-o.length,maxImages:s.maxImages}};else if(o.length<s.minImages)return{input:{source:"images",images:o}};else return{input:{source:"images",images:o}};return{error:{kind:"unknown"}}}function te(e,t,s,o){if(s.length>0)return{input:e,error:{kind:s.map(({file:e})=>e).every(tn)?"bothImagesAndVideo":"unsupportedFileType"}};let n=t.filter(to);return n.length!==t.length?{input:e,error:{kind:"unsupportedFileType"}}:e.images.length+n.length>o.maxImages?{input:e,error:{kind:"maxImagesExceeded",available:o.maxImages-e.images.length,maxImages:o.maxImages}}:{input:{source:"images",images:[...e.images,...n]}}}let tt=(e,t)=>{let s=B().extname(e.name).toLowerCase();return t.includes(s)};function ts(e){return e instanceof File}let to=e=>ts(e)&&e.type in tr&&tt(e,tl),tn=e=>ts(e)&&e.type in ta&&tt(e,e7.V),tl=[".jpg",".jpeg",".png"],tr={"image/jpeg":[".jpg",".jpeg"],"image/png":[".png"]},ta={"video/mp4":[".mp4"],"video/quicktime":[".mov"],"video/x-avi":[".avi"],"video/x-m4v":[".m4v"]},ti={...tr,...ta};var tc=s(53851),td=s(28805),tu=s(22394),tm=s(6992),tp=s(37083),th=s(81125),tg=s(39880);async function tx(e,t,{name:s,detailLevel:o,sequential:n,isolateObject:l,smartVideoKeyframing:r,splatPreset:a,customSplatOptions:i,customSplatResolution:c,folder:d},u,m,p){let h=Date.now(),g=(0,td.E)(),x="images"===t.source?t.images:[t.video],f=function(e,t,s,o,n){if
1("images"===t.source)switch(e){case"photo":{let e=t.images.length;if("raw"===s)if(e>500)return 2400;else if(e>200)return 3024;else return 4032;if(e>500)return 2400;return 4032}case"splat":switch(o){case"fast":case"medium":return 3072;case"high":return 8192;case"custom":return n}}}(e,t,o,a,c),_="video"===t.source||n?"sequential":"unordered",{numKeyframes:j,videoKeyframeFPS:v}=function(e,t){switch(e.source){case"images":return{numKeyframes:e.images.length};case"video":{let{duration:s}=e,o=s<50?2:1;return{numKeyframes:Math.floor(s*o),videoKeyframeFPS:t?void 0:o}}}}(t,r),A="photo"===e?o:void 0,y="photo"===e?l:void 0,C="splat"===e?"nerfstudio":void 0,b="splat"===e?a:void 0,w="splat"===e&&"custom"===a?i:void 0,M=u?.some(e=>(0,tg.hX)(e.settings?.maxVisibility))?"private":"unlisted";g.track("capture_process_start",{mode:e,source:t.source,implementation:C,detail:A,sample_ordering:_,num_keyframes:j,video_keyframe_fps:v,visibility:M});try{await (0,tu.sj)(x,{name:s,visibility:M,session:{mode:e},workspace:p,folder:d?.type==="root"?d:d&&(0,tp.bM)(d),...(0,Z.gH)(u)},{numKeyframes:j,videoKeyframeFPS:v,detail:A,implementation:C,sampleOrdering:_,objectMasking:y,maxImageDimension:f,preset:b,customOptions:w},m),g.track("capture_upload_complete",{mode:e,from:"draft",source:t.source,success:!0,duration:(Date.now()-h)/1e3})}catch{g.track("capture_upload_complete",{from:"draft",mode:e,source:t.source,success:!1,duration:(Date.now()-h)/1e3})}}function tf({mode:e="photo",onClose:t,...s}){let o,n,l,r,a=(0,j.dp)(),i=(0,j.TA)(),[c,g]=(0,u.useState)(e),x=(o=(0,er.xE)(),n=o?.subscription?.tier??"free",l=(0,tc.A)(n),r=(0,G.hA)(),(0,e8.K)(()=>{if(!l)return;let e=r?.type===eg.CO.org?r.settings?.minFramesObjectMode:void 0,t=Math.max(l.minImagesPerCapture,e??0);switch(c){case"photo":return{mode:c,minImages:t,maxImages:l.imagesPerPhotoCaptureCloud,maxVideoSize:1024*l.photoCaptureVideoSizeMBCloud*1024,minVideoLength:l.minCaptureVideoLengthSeconds,maxVideoLength:l.photoCaptureVideoLengthSecondsCloud};case"splat":return{mode:c,minImages:t,maxImages:l.imagesPerSplat,maxVideoSize:1024*l.splatVideoSizeMB*1024,minVideoLength:l.minCaptureVideoLengthSeconds,maxVideoLength:l.splatVideoLengthSeconds}}},[c,l,r])),f=function(e){let[t,s]=(0,u.useState)({});return(0,e8.K)(()=>{let{input:o,error:n}=t;return e?o?"video"===o.source?{ready:!0,input:o,error:n}:o.images.length<e.minImages?{ready:!1,input:o,error:n,fileHandler:{accept:tr,onChange:async(t,n)=>{s(te(o,t,n,e))}}}:o.images.length<e.maxImages?{ready:!0,input:o,error:n,fileHandler:{accept:tr,onChange:async(t,n)=>{s(te(o,t,n,e))}}}:{ready:!0,input:o,error:n}:{ready:!1,error:n,fileHandler:{accept:ti,onChange:async(t,o)=>{s(await e9(t,o,e))}}}:{ready:!1,error:n,fileHandler:{accept:ti,onChange:async()=>{throw Error("Cannot submit while thresholds are still loading.")}}}},[t,e])}(x),[_,v]=function(e,t,s){let[o,n]=(0,u.useState)(),l=(0,G.hA)(),r=l?(0,th.HX)(l):void 0,a=!!o;return[o,(0,e8.K)(()=>{if(!a&&e&&t&&("images"!==e.source||!(e.images.length<t.minImages)))return async(o,l)=>{let a=(0,tm.N)(0);n({kind:"uploading",progress:a});try{await tx(t.mode,e,o,l,a.set,r),s?.(o.folder)}catch(s){console.error(s),n({kind:"finished",error:{source:e.source,mode:t.mode}})}}},[a,e,s,t,r])]}(f.input,x,t);return x?(0,d.jsx)(p.A,{...s,className:(0,m.A)(e4().content,s.className),children:_?(0,d.jsx)(t_,{status:_,onClose:t}):f.ready?(0,d.jsx)(e$,{mode:c,setMode:g,input:f.input,error:f.error,fileHandler:f.fileHandler,onSubmit:v,isUserBasic:!0===a,isUserBusiness:!0===i,thresholds:x}):(0,d.jsx)(K,{mode:c,input:f.input,error:f.error,fileHandler:f.fileHandler,isUserBasic:a,basicFlag:!0,thresholds:x})}):(0,d.jsx)(p.A,{...s,className:(0,m.A)(e4().content,s.className),children:(0,d.jsx)(h.A,{})})}function t_({status:e,onClose:t}){switch(e.kind){case"finished":if(e.error)return(0,d.jsxs)(p.A,{className:e4().uploadBox,children:[(0,d.jsxs)(_.A,{className:e4().uploadCompleteText,children:["Failed to upload ",e.error.source,". Please try again."]}),t&&(0,d.jsx)(g.A,{onClick:()=>t(),children:"Close"})]});return(0,d.jsxs)(p.A,{className:e4().uploadBox,children:[(0,d.jsx)(_.A,{className:e4().uploadCompleteText,children:"Upload complete!"}),(0,d.jsx)(p.A,{className:e4().infoBox,palette:"blue",children:(0,d.jsxs)(_.A,{children:["You can monitor the progress of your reconstruction in your Workspace home."," ",(0,d.jsx)(f.A,{palette:"link",route:{target:"library"},children:"Click here to be redirected."})]})})]});case"uploading":return(0,d.jsx)(tj,{progress:e.progress})}}function tj({progress:e}){let[t]=(0,v.J)(()=>e,[e]);return(0,d.jsxs)(p.A,{className:e4().uploadBox,children:[(0,d.jsx)(_.A,{className:e4().uploadText,children:"Uploading…"}),(0,d.jsx)(x.A,{progress:t}),(0,d.jsx)(p.A,{className:e4().infoBox,palette:"blue",children:"Wait until upload finishes to close this screen."})]})}},26830:(e,t,s)=>{"use strict";s.d(t,{A:()=>a});var o,n=s(7620),l=s(18123);function r(){return(r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var o in s)({}).hasOwnProperty.call(s,o)&&(e[o]=s[o])}return e}).apply(null,arguments)}let a=function(e){return n.createElement(l.A,r({width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"img"}
1,e),o||(o=n.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8 14C11.314 14 14 11.314 14 8S11.314 2 8 2 2 4.686 2 8 4.686 14 8 14M8 15C11.866 15 15 11.866 15 8S11.866 1 8 1 1 4.134 1 8 4.134 15 8 15M7.5 11.185V7.56H8.5V11.185zM8.75 5.435C8.75 5.849 8.414 6.185 8 6.185S7.25 5.849 7.25 5.435V5.375C7.25 4.961 7.586 4.625 8 4.625S8.75 4.961 8.75 5.375z",fill:"currentColor"})))}},38318:(e,t,s)=>{"use strict";s.d(t,{A:()=>a});var o,n=s(7620),l=s(18123);function r(){return(r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var o in s)({}).hasOwnProperty.call(s,o)&&(e[o]=s[o])}return e}).apply(null,arguments)}let a=function(e){return n.createElement(l.A,r({width:32,height:32,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"img"},e),o||(o=n.createElement("path",{d:"M6.91 10C6.91 9.153 7.562 8.5 8.32 8.5H13.867L15.639 10.346 15.787 10.5H23.68C24.44 10.5 25.1 11.157 25.1 12V22C25.1 22.843 24.44 23.5 23.68 23.5H8.32C7.56 23.5 6.9 22.843 6.9 22z",stroke:"currentColor"})))}},39427:(e,t,s)=>{"use strict";s.d(t,{A:()=>N});var o=s(54568),n=s(7620),l=s(9917),r=s(33937),a=s(33096),i=s(98814),c=s(79675),d=s(5535),u=s(20917),m=s(2321),p=s(39880),h=s(84234),g=s(87370),x=s(38318),f=s(61745),_=s.n(f);let j=(e,t)=>e.folder.id?e.folder.id===t.id:"root"===t.type,v=(e,t)=>t.filter(t=>"sub"===t.type&&j(t,e)),A=e=>e.filter(t=>"sub"===t.type&&!e.some(e=>j(t,e)));function y({className:e,folders:t,toggleFolder:s,workspaceId:r,workspaceName:a,has:c,account:d}){let u=(0,n.useMemo)(()=>t.filter(e=>e.workspace.id===r).filter(e=>(0,p.Zo)(d,e)),[t,d,r]),m=(0,n.useMemo)(()=>u.find(e=>"root"===e.type),[u]),h=(0,n.useMemo)(()=>m?v(m,u):A(u),[m,u]),[g,f]=(0,n.useState)(void 0);return m||0!==h.length?(0,o.jsxs)("div",{className:(0,l.A)(_().container,e),children:[m&&(0,o.jsx)("div",{className:(0,l.A)(_().folder,c(m.id)&&g!==m.id&&_().selectedFolder,c(m.id)&&g===m.id&&_().mostRecentlySelectedFolder,_().foldersList),children:(0,o.jsxs)(i.A,{className:_().folderName,palette:null,size:"s",onClick:()=>{f(m.id),s(m)},children:[(0,o.jsx)(x.A,{}),a&&a.length>0?a:d.displayName??"My folders"]})}),(0,o.jsx)("ul",{className:_().foldersList,children:h.map(e=>(0,o.jsx)(C,{folder:e,workspaceFolders:u,toggleFolder:s,has:c,setMostRecentlySelectedFolder:f,mostRecentlySelectedFolder:g,level:0},e.id))})]}):(0,o.jsx)("span",{className:_().noFolders,children:"No folders found"})}let C=({folder:e,workspaceFolders:t,toggleFolder:s,has:r,setMostRecentlySelectedFolder:a,mostRecentlySelectedFolder:c,level:d})=>{let[u,m]=(0,n.useState)(!1),p=(0,n.useMemo)(()=>v(e,t),[e,t]);return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)("div",{className:(0,l.A)(_().folder,r(e.id)&&c!==e.id&&_().selectedFolder,r(e.id)&&c===e.id&&_().mostRecentlySelectedFolder),style:{"--level":d},children:[p.length>0?(0,o.jsx)(i.A,{onClick:()=>m(!u),size:"s",palette:"flat",shape:"square",children:u?(0,o.jsx)(h.A,{}):(0,o.jsx)(g.A,{})}):(0,o.jsx)("div",{className:_().iconPlaceholder}),(0,o.jsxs)(i.A,{className:_().folderName,palette:null,size:"s",onClick:()=>{a(e.id),s(e)},children:[(0,o.jsx)(x.A,{}),e.name]})]}),u&&p.map(e=>(0,o.jsx)(C,{folder:e,workspaceFolders:t,toggleFolder:s,has:r,setMostRecentlySelectedFolder:a,mostRecentlySelectedFolder:c,level:d+1},e.id))]})};var b=s(16127),w=s(23358),M=s(69416),S=s.n(M);function N({value:e,onChange:t,placeholder:s="Select folder",disabled:p=!1,className:h}){let g=(0,r.hA)(),[x]=(0,b.J)(()=>
1(0,m.SX)(g),[g]),f=void 0===x,_=(0,u.xE)(),[j,v]=(0,n.useState)(!1),[C,M]=(0,n.useState)(),L=(0,n.useRef)(null),k=(0,n.useMemo)(()=>x&&(x.find(e=>"root"===e.type)??A(x).sort((e,t)=>e.name.localeCompare(t.name))[0]),[x]),O=!!x?.length&&!x.some(t=>t.id===e?.id);(0,n.useEffect)(()=>{O&&k&&t(k)},[O,k,t]);let B=(0,n.useMemo)(()=>g&&e?"root"===e.type?(0,a.hK)(g):e.name:s,[g,e,s]);return(0,o.jsxs)("div",{className:(0,l.A)(S().wrapper,h),role:"presentation",children:[(0,o.jsxs)(i.A,{size:"s",palette:"secondaryClear",className:(0,l.A)(S().dropdownButton,j&&S().open),onClick:()=>{M(L.current?.offsetWidth||void 0),v(!j)},disabled:p,ref:L,children:[(0,o.jsx)(d.A,{truncate:!0,children:B}),(0,o.jsx)(w.A,{className:(0,l.A)(S().rotatableIcon,j&&S().up)})]}),(0,o.jsx)(c.A,{anchor:L,expanded:j,setExpanded:v,className:(0,l.A)(S().dropover),style:{width:C},children:f?(0,o.jsxs)("div",{className:S().skeleton,"aria-hidden":!0,children:[(0,o.jsx)("span",{className:S().skeletonRow}),(0,o.jsx)("span",{className:S().skeletonRow}),(0,o.jsx)("span",{className:S().skeletonRow})]}):_&&x.length>0&&g?(0,o.jsx)(y,{folders:x,workspaceId:g.id,workspaceName:(0,a.hK)(g),toggleFolder:e=>{t(e),v(!1)},has:t=>e?.id===t,account:_}):(0,o.jsx)("span",{className:S().noFolders,children:"No folders found"})})]})}},47521:e=>{e.exports={errorBox:"ErrorMessage_errorBox__OhwC2"}},53954:e=>{e.exports={label:"LearnMoreModal_label___BD_S",sectionHeader:"LearnMoreModal_sectionHeader___NFJj",description:"LearnMoreModal_description__0Tj8v",mainDescription:"LearnMoreModal_mainDescription__uo_Pk",textureInfo:"LearnMoreModal_textureInfo__fCMuj",modal:"LearnMoreModal_modal__adGEB",content:"LearnMoreModal_content__JrFXv",info:"LearnMoreModal_info__sco9n",main:"LearnMoreModal_main__d2j6l",mainHeader:"LearnMoreModal_mainHeader__bZuPx",section:"LearnMoreModal_section__yLMrY",textureStack:"LearnMoreModal_textureStack__SCHVa",elements:"LearnMoreModal_elements__QmRMT",row:"LearnMoreModal_row__Qshln",column:"LearnMoreModal_column__bCNi2"}},61124:(e,t,s)=>{"use strict";s.d(t,{A:()=>a});var o,n=s(7620),l=s(18123);function r(){return(r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var o in s)({}).hasOwnProperty.call(s,o)&&(e[o]=s[o])}return e}).apply(null,arguments)}let a=function(e){return n.createElement(l.A,r({width:32,height:32,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"img"},e),o||(o=n.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.717 11.566 9.482 8.036C9.592 7.816 9.908 7.816 10.018 8.036L11.783 11.566C11.883 11.766 11.738 12 11.515 12H7.985C7.762 12 7.617 11.765 7.717 11.566M7.717 17.866 9.482 14.336C9.592 14.116 9.908 14.116 10.018 14.336L11.783 17.866C11.883 18.066 11.738 18.3 11.515 18.3H7.985C7.762 18.3 7.617 18.065 7.717 17.866M9.482 20.636 7.717 24.166C7.617 24.366 7.762 24.6 7.985 24.6H11.515C11.738 24.6 11.883 24.365 11.783 24.166L10.018 20.636C9.908 20.416 9.592 20.416 9.482 20.636M14.017 11.566 15.782 8.036C15.892 7.816 16.208 7.816 16.318 8.036L18.083 11.566C18.183 11.766 18.038 12 17.815 12H14.285C14.062 12 13.917 11.765 14.017 11.566M15.782 14.336 14.017 17.866C13.917 18.066 14.062 18.3 14.285 18.3H17.815C18.038 18.3 18.183 18.065 18.083 17.866L16.318 14.336C16.208 14.116 15.892 14.116 15.782 14.336M14.017 24.166 15.782 20.636C15.892 20.416 16.208 20.416 16.318 20.636L18.083 24.166C18.183 24.366 18.038 24.6 17.815 24.6H14.285C14.062 24.6 13.917 24.365 14.017 24.166M22.082 8.036 20.317 11.566C20.217 11.766 20.362 12 20.585 12H24.115C24.338 12 24.483 11.765 24.383 11.566L22.618 8.036C22.508 7.816 22.192 7.816 22.082 8.036M20.317 17.866 22.082 14.336C22.192 14.116 22.508 14.116 22.618 14.337L24.383 17.867C24.483 18.066 24.338 18.3 24.115 18.3H20.585C20.362 18.3 20.217 18.065 20.317 17.866M22.082 20.636 20.317 24.166C20.217 24.366 20.362 24.6 20.585 24.6H24.115C24.338 24.6 24.483 24.365 24.383 24.166L22.618 20.636C22.508 20.416 22.192 20.416 22.082 20.636",fill:"currentColor"})))}},61745:e=>{e.exports={folderName:"styles_folderName___o8PG",noFolders:"styles_noFolders__eb2Rr",container:"styles_container__7tApR",iconPlaceholder:"styles_iconPlaceholder__t7mdE",foldersList:"styles_foldersList__0aPf3",folder:"styles_folder__CcoMG",mostRecentlySelectedFolder:"styles_mostRecentlySelectedFolder__VHT12",selectedFolder:"styles_selectedFolder__nihYw"}},62524:(e,t,s)=>{"use strict";s.d(t,{k:()=>o,x:()=>n});let o=Object.freeze({capture:"application/x-polycam-capture",scene:"application/x-polycam-scene",folder:"application/x-polycam-folder",album:"application/x-polycam-album"}),n=Object.values(o)},64468:e=>{e.exports={container:"styles_container__zvaSP"}},66608:e=>{e.exports={uploadText:"styles_uploadText__1aftX",uploadCompleteText:"styles_uploadCompleteText__inlxj",infoBox:"styles_infoBox__Ks_o_",content:"styles_content__lF9OM",uploadBox:"styles_uploadBox__FViZW"}},68129:(e,t,s)=>{"use strict";s.d(t,{A:()=>a});var o=s(54568),n=s(9917),l=s(24699),r=s.n(l);function a({children:e,className:t,open:s,position:l="bottom",...i}){return(0,o.jsx)("div",{...i,className:(0,n.A)(t,r().tooltip,{[r().open]:s,[r().top]:"top"===l,[r().right]:"right"===l,[r().bottom]:"bottom"===l,[r().left]:"left"===l}),children:e})}},69416:e=>{e.exports={noFolders:"styles_noFolders__pd66r",wrapper:"styles_wrapper__0XXWb",dropdownButton:"styles_dropdownButton__2w_F3",open:"styles_open___sTIo",rotatableIcon:"styles_rotatableIcon__WMqqd",up:"styles_up__xMBtP",dropover:"styles_dropover__URY0w",skeleton:"styles_skeleton__CqiI9",skeletonRow:"styles_skeletonRow__7jI6V",shimmer:"styles_shimmer__je7tK"}},71783:(e,t,s)=>{"use strict";s.d(t,{A:()=>p});
1var o=s(54568),n=s(7620),l=s(9917),r=s(55657),a=s(255),i=s(81174),c=s(5535),d=s(68129),u=s(5219),m=s.n(u);function p({className:e,orgs:t,checked:s,toggle:u,mode:h,disabled:g,...x}){return(0,o.jsx)(a.A,{className:(0,l.A)(m().permissions,e),...x,children:t.map(e=>(0,o.jsx)(n.Fragment,{children:e.settings?.autoShare==="required"&&s.includes(e.id)?"update"===h?(0,o.jsxs)(c.A,{children:[(0,o.jsx)(c.A,{children:"Added to team "}),(0,o.jsx)(c.A,{className:m().bold,children:e.displayName}),"."]}):(0,o.jsxs)(c.A,{children:[(0,o.jsx)(c.A,{children:"Will be added to team "}),(0,o.jsx)(c.A,{className:m().bold,children:e.displayName}),"."]}):(0,o.jsxs)(a.A,{element:"label",className:m().orgRow,children:[(0,o.jsxs)(a.A,{className:m().nameAndIcon,children:[(0,o.jsx)(r.A,{profile:e,size:32,shape:"square"}),(0,o.jsx)(c.A,{className:m().orgName,children:e.displayName})]}),(0,o.jsxs)(a.A,{className:m().toggle,children:[(0,o.jsx)(i.A,{element:"div",title:"Share with team",size:"small",toggled:s.includes(e.id),setToggled:()=>u(e.id),disabled:g}),(0,o.jsx)(d.A,{className:m().tooltip,open:!0,position:"left",children:s.includes(e.id)?"Your teammates can access":"Not shared with team"})]})]})},e.id))})}},77002:e=>{e.exports={quotaNumber:"styles_quotaNumber__1tQLb",quotaText:"styles_quotaText__sLXIy",quotaReminder:"styles_quotaReminder__vt4x8"}},79067:(e,t,s)=>{"use strict";s.d(t,{A:()=>a});var o,n=s(7620),l=s(18123);function r(){return(r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var o in s)({}).hasOwnProperty.call(s,o)&&(e[o]=s[o])}return e}).apply(null,arguments)}let a=function(e){return n.createElement(l.A,r({width:32,height:32,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"img"}
1,e),o||(o=n.createElement("path",{d:"M7 25 16 7 25 25z",fill:"currentColor",stroke:"currentColor",strokeLinejoin:"round"})))}},81920:(e,t,s)=>{"use strict";s.d(t,{A:()=>a});var o,n=s(7620),l=s(18123);function r(){return(r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var o in s)({}).hasOwnProperty.call(s,o)&&(e[o]=s[o])}return e}).apply(null,arguments)}let a=function(e){return n.createElement(l.A,r({width:32,height:32,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"img"},e),o||(o=n.createElement("path",{d:"M8 17 13 22 24 11",stroke:"currentColor",strokeLinecap:"round"})))}},87992:(e,t,s)=>{"use strict";s.d(t,{A:()=>c});var o=s(54568),n=s(9917),l=s(255),r=s(36270),a=s(64468),i=s.n(a);function c({size:e,...t}){return(0,o.jsx)(l.A,{...t,className:(0,n.A)(i().container,t.className),children:(0,o.jsx)(r.A,{size:e})})}},90173:(e,t,s)=>{"use strict";s.d(t,{A:()=>a});var o,n=s(7620),l=s(18123);function r(){return(r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var o in s)({}).hasOwnProperty.call(s,o)&&(e[o]=s[o])}return e}).apply(null,arguments)}let a=function(e){return n.createElement(l.A,r({width:32,height:32,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"img"},e),o||(o=n.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15 9.5C14.448 9.5 14 9.948 14 10.5H18C18 9.948 17.552 9.5 17 9.5zM19 10.5C19 9.395 18.105 8.5 17 8.5H15C13.895 8.5 13 9.395 13 10.5H10V11.5H11V21.5C11 22.605 11.895 23.5 13 23.5H19C20.105 23.5 21 22.605 21 21.5V11.5H22V10.5zM20 11.5H12V21.5C12 22.052 12.448 22.5 13 22.5H19C19.552 22.5 20 22.052 20 21.5zM14 18.5V14.5H15V18.5zM17 18.5V14.5H18V18.5z",fill:"currentColor"})))}},94014:e=>{e.exports={title:"SelectOptions_title__yDTKK",customOptionLabel:"SelectOptions_customOptionLabel__4yxOJ",customOptionSliderValue:"SelectOptions_customOptionSliderValue__RDseI",modes:"SelectOptions_modes__l5TKF",modeBtn:"SelectOptions_modeBtn__p6P8M",optionInfo:"SelectOptions_optionInfo__0IRKF",disabledWarning:"SelectOptions_disabledWarning__XHL1s",checked:"SelectOptions_checked__r8JhH",optionLabel:"SelectOptions_optionLabel__fdOii",statBox:"SelectOptions_statBox__3h6GO",btn:"SelectOptions_btn__GVSDr",divider:"SelectOptions_divider__2JpBg",container:"SelectOptions_container__w9d9y",modeBtnIcon:"SelectOptions_modeBtnIcon__y3Elz",modeVideo:"SelectOptions_modeVideo__56BwE",processingModeBadge:"SelectOptions_processingModeBadge__uP4ej",section:"SelectOptions_section__eekv6",foldIcon:"SelectOptions_foldIcon__5IkAz",rotate:"SelectOptions_rotate__bLlJJ",optionBox:"SelectOptions_optionBox__09E_e",optionText:"SelectOptions_optionText__lS_DK",picker:"SelectOptions_picker__trP3O",detailLevelItem:"SelectOptions_detailLevelItem__eAO05",disabledItem:"SelectOptions_disabledItem__3VHIq",customOptions:"SelectOptions_customOptions__J4yhN",customOptionLabelBox:"SelectOptions_customOptionLabelBox__VdmAF",customOptionTooltipButton:"SelectOptions_customOptionTooltipButton__9UquI",customOptionTooltip:"SelectOptions_customOptionTooltip__CbaL2",customOptionSliderBox:"SelectOptions_customOptionSliderBox__ZFWsw",footer:"SelectOptions_footer__HebbT"}},95506:e=>{e.exports={badge:"BasicBadge_badge__CnZ6m"}}}]);

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.