PageSourceSearch

https://poly.cam/_next/static/chunks/4412.c6ec306d3c2ab44e.js

js poly.cam collected 2026-10-01 10:40:02 UTC 16,091 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]="eca3632c-d3b3-4c53-9b06-81035b6d2b98",e._sentryDebugIdIdentifier="sentry-dbid-eca3632c-d3b3-4c53-9b06-81035b6d2b98")}()}catch(e){}try{("u">typeof window?window:"u">typeof global?global:"u">typeof globalThis?globalThis:"u">typeof self?self:{}).SENTRY_RELEASE={id:"09b537e5b0e1d2c027e458d27317d495159dc879"}}catch(e){}(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4412],{983:(e,t,s)=>{"use strict";s.d(t,{A:()=>i});var r,l=s(7620),n=s(18123);function a(){return(a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var r in s)({}).hasOwnProperty.call(s,r)&&(e[r]=s[r])}return e}).apply(null,arguments)}let i=function(e){return l.createElement(n.A,a({width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"img"},e),r||(r=l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.707 2.5 6.207 8 11.707 13.5 11 14.207 4.793 8 11 1.793z",fill:"currentColor"})))}},5062:e=>{e.exports={label:"EditDetailsView_label__qNlN6",descriptionInfo:"EditDetailsView_descriptionInfo__foRJz",error:"EditDetailsView_error__KB6hu",formContainer:"EditDetailsView_formContainer__fI0rj",footer:"EditDetailsView_footer__z_MQS",footerStrip:"EditDetailsView_footerStrip__6gthr",footerButton:"EditDetailsView_footerButton__gQpKn",content:"EditDetailsView_content__2wU_6",thumbnail:"EditDetailsView_thumbnail__1Fnlw",thumbnailImage:"EditDetailsView_thumbnailImage__LgWtI",section:"EditDetailsView_section__MDWzP",descriptionBox:"EditDetailsView_descriptionBox__ZRDGS",divider:"EditDetailsView_divider__XBwjp",editableTags:"EditDetailsView_editableTags__CRrPU"}},7795:(e,t,s)=>{"use strict";s.d(t,{O:()=>a,m:()=>n});var r=s(7620);let l=(0,r.createContext)({onSubmit:()=>{throw Error("No parent form is present!")}}),n=()=>(0,r.useContext)(l),a=l.Provider},10123:(e,t,s)=>{"use strict";s.d(t,{A:()=>o});var r=s(54568),l=s(9917),n=s(76893),a=s(53181),i=s.n(a);function o({className:e,source:t,alt:s="",crossOrigin:a="anonymous",width:c,height:u,...d}){if(t instanceof Blob)return(0,r.jsx)(n.default,{className:e,source:t,alt:s,crossOrigin:a,width:c,height:u,...d});let _="string"==typeof t?t:"number"==typeof t?String(t):"src"in t?t.src:"uri"in t?t.uri:"";return(0,r.jsx)("img",{className:(0,l.A)(i().image,e),src:_,alt:s,crossOrigin:a,width:c,height:u,...d})}},24773:(e,t,s)=>{"use strict";s.d(t,{A:()=>i});var r,l=s(7620),n=s(18123);function a(){return(a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var r in s)({}).hasOwnProperty.call(s,r)&&(e[r]=s[r])}return e}).apply(null,arguments)}let i=function(e){return l.createElement(n.A,a({width:16,height:15,viewBox:"0 0 16 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"img"},e),r||(r=l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8 6.814 12.8 2.014 13.507 2.721 8.707 7.521 13.507 12.321 12.8 13.028 8 8.228 3.2 13.028 2.493 12.321 7.293 7.521 2.493 2.721 3.2 2.014z",fill:"currentColor"})))}},33949:e=>{e.exports={btn:"styles_btn__YWG_A",doneCapsuleText:"styles_doneCapsuleText__Xt3yd",errorBox:"styles_errorBox__YMfpm",l:"styles_l__SKSuN",s:"styles_s__Xhgcv",m:"styles_m__qccIk",container:"styles_container__nKZ7b",wrapper:"styles_wrapper__hjlfh",active:"styles_active__m_GzI",tight:"styles_tight__paXAT",capsule:"styles_capsule__ufLfF",textArea:"styles_textArea__WNGwF",noBorder:"styles_noBorder__Rj6Zl",multiline:"styles_multiline__mbWlm",fill:"styles_fill__Be_xp",error:"styles_error__Uhsw7",errorFill:"styles_errorFill__keKz4",disabled:"styles_disabled__lfjg7",textInput:"styles_textInput__TwWLZ",fixed:"styles_fixed__eep5K",doneAccessory:"styles_doneAccessory__ujKm2",doneCapsule:"styles_doneCapsule__Vrwog"}},34908:(e,t,s)=>{"use strict";s.d(t,{A:()=>i});var r,l=s(7620),n=s(18123);function a(){return(a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var r in s)({}).hasOwnProperty.call(s,r)&&(e[r]=s[r])}return e}).apply(null,arguments)}let i=function(e){return l.createElement(n.A,a({width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"img"},e),r||(r=l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.509 7.801C14.064 7.274 14.544 6.667 14.929 6H13.746C12.48 7.814 10.378 9 8 9S3.52 7.814 2.254 6H1.07C1.456 6.667 1.936 7.274 2.491 7.801L.896 9.396 1.604 10.103 3.26 8.446C3.97 8.969 4.772 9.378 5.635 9.645L5.018 11.866 5.982 
112.134 6.608 9.879Q7.287 10 8 10T9.392 9.88L10.018 12.133 10.982 11.866 10.365 9.645C11.228 9.378 12.028 8.969 12.739 8.445L14.396 10.104 15.105 9.396z",fill:"currentColor"})))}},41162:(e,t,s)=>{"use strict";s.d(t,{A:()=>n});var r=s(54568),l=s(7795);function n({onSubmit:e,children:t,...s}){return(0,r.jsx)(l.O,{value:{onSubmit:e},children:(0,r.jsx)("form",{onSubmit:e=>e.preventDefault(),...s,children:t})})}},48272:e=>{e.exports={container:"styles_container__wcAjc",x:"styles_x__d_sMl",y:"styles_y___jhPz"}},53181:e=>{e.exports={image:"styles_image__tKVlg"}},56511:(e,t,s)=>{"use strict";s.d(t,{A:()=>b});var r=s(54568),l=s(54437),n=s(9917),a=s(255),i=s(98814),o=s(82245),c=s(5535),u=s(83442),d=s(983),_=s(24773),f=s(28298),h=s(22695),p=s(98751),m=s.n(p);function g({children:e}){return(0,r.jsx)(a.A,{className:(0,h.HZ)()?m().background:m().backgroundNative,children:e})}var x=s(70337),y=s.n(x);function b({className:e,spacing:t="compact",header:s,headerPalette:h="bright",palette:p="bright",footer:m,children:x,background:v,onBack:A,onClose:j,safeInsetTop:w,safeInsetBottom:N,closeDisabled:C,dismissable:S,hideCloseButton:E,ref:k}){let B=S?()=>{j?.(),T.dismiss()}:j;(0,l.A)("Escape",B??A);let T=(0,u.c)(),D=(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(f.Ay,{palette:h,hideWhenEmpty:!0,className:(0,n.A)(y().header,y()[t])}),s&&(0,r.jsx)(f.N5,{justify:"center",children:"string"==typeof s?(0,r.jsx)(c.A,{children:s}):s}),A&&(0,r.jsx)(f.N5,{justify:"start",children:(0,r.jsx)(i.A,{palette:"flat",size:"m",shape:"square",className:y().backBtn,onClick:A,title:"Back",children:(0,r.jsx)(d.A,{})})}),B&&!E&&(0,r.jsx)(f.N5,{justify:"end",children:(0,r.jsx)(i.A,{palette:"flat",size:"m",shape:"square",className:y().closeBtn,onClick:B,disabled:C,title:"Close",children:(0,r.jsx)(_.A,{})})}),(0,r.jsx)(a.A,{className:y().content,children:x}),m&&(0,r.jsx)(a.A,{className:(0,n.A)(y().footer,y()[t]),children:m})]});return(0,r.jsxs)(a.A,{ref:k,className:(0,n.A)(y().container,e,"overlay"!==T.style&&y()[T.style]),palette:p,children:[v&&(0,r.jsx)(g,{children:v}),(0,r.jsx)(o.A,{className:y().innerSafeArea,safeInsetTop:w,safeInsetBottom:N,children:D})]})}},62618:(e,t,s)=>{"use strict";s.d(t,{A:()=>o});var r,l,n=s(7620),a=s(18123);function i(){return(i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var r in s)({}).hasOwnProperty.call(s,r)&&(e[r]=s[r])}return e}).apply(null,arguments)}let o=function(e){return n.createElement(a.A,i({width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"img"},e),r||(r=n.createElement("circle",{cx:8,cy:8,r:6.5,stroke:"currentColor"})),l||(l=n.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.5 5.375V4.875H8.5V8.5H7.5zM8.75 10.625C8.75 10.211 8.414 9.875 8 9.875S7.25 10.211 7.25 10.625V10.685C7.25 11.099 7.586 11.435 8 11.435S8.75 11.099 8.75 10.685z",fill:"currentColor"})))}},64412:(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>E,useEditDetails:()=>k}
1);var r=s(54568),l=s(7620),n=s(255),a=s(98814),i=s(9917),o=s(5535),c=s(69931),u=s(24773),d=s(84765),_=s.n(d);function f({tags:e,setTags:t,onBlur:s,className:d,...h}){let[p,m]=(0,l.useState)(""),g=(0,l.useCallback)((r,l)=>{if(m(""),r.length&&!e.includes(r)){let n=[...e,r];t(n),l&&s?.(n)}},[s,t,e]);return(0,l.useEffect)(()=>{if(p.endsWith(",")){let e=p.slice(0,-1);e.length>0&&g(e)}},[g,p]),(0,r.jsxs)(n.A,{...h,className:(0,i.A)(_().content,d),children:[(0,r.jsx)(c.A,{value:p,onChange:m,onBlur:()=>{g(p,!0)},onSubmit:g,stroke:!0}),(0,r.jsx)(n.A,{className:_().tagList,children:e.map(s=>(0,r.jsxs)(a.A,{size:"s",shape:"capsule",palette:"subtle",onClick:()=>t(e.filter(e=>e!==s,!0)),title:"Click to remove",children:[(0,r.jsx)(o.A,{className:_().tagText,children:s}),(0,r.jsx)(u.A,{})]},s))})]})}var h=s(41162),p=s(65764),m=s(10123),g=s(96155),x=s(56511),y=s(98838),b=s(20926),v=s(8340),A=s(83442),j=s(22695),w=s(48748),N=s(63236),C=s(5062),S=s.n(C);function E({id:e,contentType:t,thumbnail:s,name:l,placeholderName:i,description:u,tags:d}){let _=(0,A.c)(),{strings:b}=(0,v.B)(),{values:w,update:N,save:C,busy:B,failed:T}=k(e,t,l??"",u??"",d,_);return(0,r.jsx)(h.A,{className:S().formContainer,onSubmit:C,children:(0,r.jsx)(x.A,{header:"capture"===t?b.CaptureDetails:"Scene details",onClose:_.popStack,onBack:_.dismiss,footer:(0,r.jsxs)(n.A,{className:S().footer,children:[(0,r.jsx)(o.A,{className:S().error,children:T&&b.SomethingWentWrongPleaseTryAgain}),(0,r.jsxs)(n.A,{className:S().footerStrip,children:[(0,r.jsx)(a.A,{className:S().footerButton,size:"l",palette:"flat",disabled:B,onClick:()=>_.dismiss(),children:b.Cancel}),(0,r.jsx)(p.A,{className:S().footerButton,size:"l",palette:"action",disabled:B,children:b.Save})]})]}),children:(0,r.jsx)(y.A,{children:(0,r.jsxs)(g.A,{className:S().content,children:[(0,r.jsx)(n.A,{className:S().thumbnail,children:s&&(0,r.jsx)(m.A,{className:S().thumbnailImage,source:s,alt:"avatar"})}),(0,r.jsxs)(n.A,{className:S().section,children:[(0,r.jsx)(o.A,{className:S().label,children:b.Title}),(0,r.jsx)(c.A,{value:w.name,onChange:N.name,placeholder:i,stroke:!0})]}),(0,r.jsxs)(n.A,{className:S().section,children:[(0,r.jsx)(o.A,{className:S().label,children:b.Description}),(0,r.jsxs)(n.A,{className:S().descriptionBox,children:[(0,r.jsx)(c.A,{value:w.description,onChange:N.description,placeholder:b.Untitled,stroke:!0,multiline:!0}),(0,r.jsxs)(o.A,{className:S().descriptionInfo,children:[w.description.length,"/",500]})]})]}),"web"===j.iD&&(0,r.jsxs)(n.A,{className:S().section,children:[(0,r.jsx)(n.A,{className:S().divider}),(0,r.jsx)(o.A,{className:S().label,children:b.ExploreTags}),(0,r.jsx)(f,{className:S().editableTags,tags:w.tags??[],setTags:N.tags})]})]})})})})}let k=(e,t,s,r,n,a,i=(0,b.B)())=>{let[o,c]=(0,l.useState)({name:s,description:r,tags:n}),u=(0,l.useRef)(o),d=(0,w.K)(()=>{let e=e=>{let t={...u.current,...e};u.current=t,c(t)};return{name:t=>e({name:t}),description:t=>{t.length<=500&&e({description:t})},tags:t=>e({tags:t})}},[]),[_,f]=(0,l.useState)(!1),[h,p]=(0,l.useState)(!1);return{values:o,update:d,save:(0,l.useCallback)(async()=>{f(!0),p(!1);try{let s=u.current;"capture"===t&&await i.capture(e).update({name:s.name,description:s.description||N.TF,tags:s.tags&&s.tags.length>0?s.tags:N.TF}),"scene"===t&&await i.scene(e).update({name:s.name,description:s.description}),a.dismiss()}catch(e){p(!0),console.error(e)}finally{f(!1)}},[t,i,e,a]),busy:_,failed:h}}},65764:(e,t,s)=>{"use strict";s.d(t,{A:()=>a});var r=s(54568),l=s(98814),n=s(7795);function a({children:e,onClick:t,...s}){let{onSubmit:i}=(0,n.m)();return(0,r.jsx)(l.A,{...s,type:"submit",onClick:e=>{t?.(e),e.defaultPrevented||(e.preventDefault(),i())},children:e})}},69931:(e,t,s)=>{"use strict";s.d(t,{A:()=>d});var r=s(54568),l=s(7620),n=s(9917),a=s(62618),i=s(34908),o=s(92472),c=s(33949),u=s.n(c);function d({type:e="text",inputState:t="default",className:s,innerClassName:c,fieldClassName:_,value:f,disabled:h,onChange:p,onBlur:m,onFocus:g,onSubmit:x,submitOnEnter:y,preventDefault:b,stopPropagation:v,prefix:A,suffix:j,fill:w,multiline:N,stroke:C,tight:S,errorMessage:E,size:k="l",shape:B,resize:T,showClearButton:D,iosAccessoryView:O,ref:V,...I}){let[R,M]=(0,l.useState)("password"===e),z=e=>{if("Enter"===e.key){if(N){if(y){if(e.shiftKey)return}else if(!(e.ctrlKey||e.metaKey))return}x&&(x(e.currentTarget.value),b&&e.preventDefault(),v&&e.stopPropagation())}},K=N&&"password"!==e?(0,r.jsx)("textarea",{ref:V,value:f,className:(0,n.A)(u().textArea,_,{[u().fixed]:!1===T}),onChange:e=>p(e.currentTarget.value),onBlur:e=>m?.(e.currentTarget.value),onFocus:e=>g?.(e.currentTarget.value),onKeyDown:z,disabled:h,...I}):(0,r.jsx)("input",{ref:V,value:f,className:(0,n.A)(u().textInput,_),type:"password"!==e||R?e:"text",onCh
1ange:e=>p(e.currentTarget.value),onBlur:e=>m?.(e.currentTarget.value),onFocus:e=>g?.(e.currentTarget.value),onKeyDown:z,disabled:h,...I}),L=R?"Show password":"Hide password";return(0,r.jsxs)("div",{className:(0,n.A)(u().container,s),children:[(0,r.jsxs)("label",{className:(0,n.A)(u().wrapper,"error"===t&&u().error,h&&u().disabled,N&&u().multiline,!C&&u().noBorder,w&&"error"===t&&u().errorFill,w&&u().fill,u()[k],"capsule"===B&&u().capsule,S&&u().tight,c),onMouseDown:e=>{let t=e.currentTarget.querySelector("input, textarea");e.target!==t&&(e.preventDefault(),t.focus())},children:[A,K,"password"===e&&(0,r.jsx)("button",{type:"button",className:u().btn,title:L,"aria-label":L,onClick:()=>M(!R),disabled:h,children:R?(0,r.jsx)(i.A,{}):(0,r.jsx)(o.A,{})}),j&&(0,r.jsx)("span",{style:{userSelect:"none"},children:j})]}),"error"===t&&E&&(0,r.jsxs)("div",{className:u().errorBox,children:[(0,r.jsx)(a.A,{}),(0,r.jsx)("p",{children:E})]})]})}},70337:e=>{e.exports={header:"styles_header__xm38M",container:"styles_container__T37a2",fullScreen:"styles_fullScreen__Y4VOC",sheet:"styles_sheet__V9U2E",modal:"styles_modal__vqqAL",generous:"styles_generous__4yGeF",backBtn:"styles_backBtn__tWWlb",closeBtn:"styles_closeBtn__PlGmD",content:"styles_content__Z6uq0",footer:"styles_footer__TEMo9",compact:"styles_compact__48Pk0",innerSafeArea:"styles_innerSafeArea__SmGLr"}},76893:(e,t,s)=>{"use strict";s.d(t,{default:()=>o});var r=s(54568),l=s(7620),n=s(9917),a=s(53181),i=s.n(a);function o({className:e,source:t,alt:s="",crossOrigin:a="anonymous",width:c,height:u,...d}){let _=(0,l.useMemo)(()=>URL.createObjectURL(t),[t]);return(0,r.jsx)("img",{className:(0,n.A)(i().image,e),src:_,alt:s,crossOrigin:a,width:c,height:u,...d})}},82245:(e,t,s)=>{"use strict";s.d(t,{A:()=>n,O:()=>i});var r=s(54568),l=s(255);function n({safeInsetTop:e,safeInsetBottom:t,onLayout:s,...a}){return(0,r.jsx)(l.A,{...a})}let a={top:0,bottom:0},i=()=>a},84765:e=>{e.exports={tagText:"styles_tagText__LV_HE",content:"styles_content__9mQKx",tagList:"styles_tagList__XKSZ6"}},92472:(e,t,s)=>{"use strict";s.d(t,{A:()=>i});var r,l=s(7620),n=s(18123);function a(){return(a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var r in s)({}).hasOwnProperty.call(s,r)&&(e[r]=s[r])}return e}).apply(null,arguments)}let i=function(e){return l.createElement(n.A,a({width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"img"},e),r||(r=l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8 11C5.7 11 3.678 9.806 2.522 8 3.678 6.194 5.7 5 8 5S12.322 6.194 13.478 8C12.322 9.806 10.3 11 8 11M8 4C10.878 4 13.377 5.621 14.635 8 13.377 10.379 10.878 12 8 12S2.623 10.379 1.365 8C2.623 5.621 5.122 4 8 4M8 10C9.105 10 10 9.105 10 8S9.105 6 8 6 6 6.895 6 8 6.896 10 8 10",fill:"currentColor"})))}},96155:(e,t,s)=>{"use strict";s.d(t,{A:()=>n});var r=s(54568),l=s(255);function n({children:e,limitedAvoidance:t,transformedClassName:s,...a}){return(0,r.jsx)(l.A,{...a,children:e})}},98751:e=>{e.exports={backgroundNative:"styles_backgroundNative__lUmSa",background:"styles_background__PSQx0"}},98838:(e,t,s)=>{"use strict";s.d(t,{A:()=>d});var r=s(54568),l=s(7620),n=s(9917),a=s(86403),i=s(7347),o=s(28198),c=s(48272),u=s.n(c);function d({axis:e="y",children:t,ref:s,keyboardShouldPersistTaps:c,keyboardDismissMode:_,...f}){let{className:h,...p}=(0,a.i)(f),[m,g]=(0,l.useState)(null),[x,y]=(0,i.ac)(e,m);return(0,l.useImperativeHandle)(s,()=>x,[x]),(0,r.jsx)(o.N2,{value:x,children:(0,r.jsx)("div",{...p,ref:g,className:(0,n.A)(u().container,u()[e],h),onScroll:y,children:t})})}}}]);

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.