PageSourceSearch

https://static.sketchfab.com/static/builds/web/dist/3bbed8d208ec541a1175a004a3142118-v2.js

js sketchfab.com collected 2026-09-24 08:25:07 UTC 9,586 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunksketchfab=self.webpackChunksketchfab||[]).push([[2458],{pgZm:(e,a,s)=>{s.d(a,{Qs:()=>o,WQ:()=>l,_f:()=>n,oF:()=>t});const r=["spectator","contributor","project_lead","admin"];function t(e,a){return r.indexOf(e)>=r.indexOf(a)}function l(e){return t(e,"contributor")}const o=(e,a)=>e.slug?["orgs:project",{username:e.org.username,slug:e.slug,uid:e.uid},a]:["orgs:project_without_slug",{username:e.org.username,uid:e.uid},a],n=e=>0===e.depth},vAnt:(e,a,s)=>{s.d(a,{Z:()=>p});var r,t,l=s("sQwH"),o=s("3MRe"),n=s("D4hk"),c=s("3Z9q"),i=s("X40V"),d=s("wExz"),m=s("lMO9");const u=["subtext","text","onClick","icon","size","type","className","iconClassName","disabled","loading","success","progress","htmlType","children"],Z=c.forwardRef(((e,a)=>e.href&&!e.disabled?c.createElement("a",(0,n.Z)({ref:a},e)):c.createElement("button",(0,n.Z)({ref:a},e)))),p=c.forwardRef(((e,a)=>{let{subtext:s,text:p,onClick:v,icon:h,size:f="medium",type:b="primary",className:g="",iconClassName:N="",disabled:z=!1,loading:w=!1,success:C=!1,progress:y,htmlType:k,children:M}=e,_=(0,o.Z)(e,u);const E=z||w;return c.createElement(Z,(0,n.Z)({ref:a},_,{type:k,className:(0,i.AK)("button",`btn-${b}`,`btn-${f}`,g,{"btn-loading":w,"btn-disabled":E}),disabled:E,onClick:e=>{!E&&v&&v(e)}}),C?r||(r=(0,l.Z)(m.Z,{})):w?t||(t=(0,l.Z)(d.Z,{})):h?(0,l.Z)("span",{className:"icon"},void 0,h):N?(0,l.Z)("span",{className:(0,i.AK)("icon ",N)}):null,(0,l.Z)("span",{className:"button__text-container"},void 0,p,s?(0,l.Z)("span",{className:"button__subtext"},void 0,s):null),M,w&&void 0!==y?(0,l.Z)("span",{className:"button__progress",style:{width:100*y+"%"}}):null)}))},Q0AI:(e,a,s)=>{s.d(a,{Z:()=>l});var r=s("sQwH"),t=(s("3Z9q"),s("X40V"));function l({error:e,isTouched:a,label:s,children:l,className:o,labelClassName:n,htmlFor:c="",direction:i="vertical","data-selenium":d}){return(0,r.Z)("div",{className:(0,t.AK)("c-form-field",o,{"--vertical":"vertical"===i}),"data-selenium":d},void 0,s?(0,r.Z)("label",{htmlFor:c,className:(0,t.AK)("form-label",n)},void 0,s):null,l,e&&a?(0,r.Z)("p",{className:"form-error"},void 0,e):null)}},V4X4:(e,a,s)=>{s.d(a,{Z:()=>i});var r=s("D4hk"),t=s("3MRe"),l=s("MndH"),o=s("3Z9q"),n=s("X40V");const c=["onChange","className","grey","border","error","hasError","isTouched","autoFocus"],i=o.forwardRef(((e,a)=>{let{onChange:s,className:i="form-input",grey:d=!1,border:m=!1,error:u="",hasError:Z=!1,isTouched:p=!1,autoFocus:v=!1}=e,h=(0,t.Z)(e,c);const f=o.useRef(null);return o.useEffect((()=>{v&&f.current&&f.current.focus()}),[v]),o.createElement("input",(0,r.Z)({ref:a||f,onChange:e=>s(e.target.value),className:(0,n.AK)(i,{"--grey":d,"--border":m,"--error":(Boolean(u)||Z)&&p}),autoFocus:v},(0,l.Z)(h,"hasChanged")))}))},lMO9:(e,a,s)=>{s.d(a,{Z:()=>l});var r=s("sQwH"),t=(s("3Z9q"),s("KDlt"));s("Z5CY");const l=()=>(0,r.Z)("div",{className:"check",dangerouslySetInnerHTML:{__html:t.Z.getFromMacro("front/macros/logo","spinner_check",[])}})},wExz:(e,a,s)=>{s.d(a,{Z:()=>l});var r,t=s("sQwH");s("3Z9q");const l=()=>r||(r=(0,t.Z)("div",{className:"sketchfab-spinner"},void 0,(0,t.Z)("svg",{viewBox:"0 0 13 16",xmlns:"http://www.w3.org/2000/svg"},void 0,(0,t.Z)("g",{fillRule:"nonzero"},void 0,(0,t.Z)("path",{className:"shape1",d:"M5.3029 8.1731L0 4.9864v5.8286l5.3029 3.1867z"}),(0,t.Z)("path",{className:"shape2",d:"M5.9987 6.9902l5.8157-3.495L5.9987 0 .1829 3.4953z"}),(0,t.Z)("path",{className:"shape3",d:"M6.6944 8.1731v5.8286l5.303-3.1867V4.9864z"})))))},"/7yb":(e,a,s)=>{s.d(a,{Z:()=>l});var r=s("3Z9q"),t=s("HPk7");const l=function(e,a,s="keypress"){r.useEffect((()=>{const r=(0,t.Z)((s=>{e===s.key&&a(s)}),1e3);return window.addEventListener(s,r),()=>{window.removeEventListener(s,r)}}),[e,s,a])}},edGM:(e,a,s)=>{s.r(a),s.d(a,{default:()=>x});var r,t,l,o=s("sQwH"),n=s("IDtV"),c=s("3Z9q"),i=s("YpOo"),d=s("YhrH"),m=s("D4hk"),u=s("VDcQ"),Z=s("MB/E"),p=s("X40V"),v=s("V4X4"),h=s("sr4a"),f=s("Q0AI"),b=s("vAnt"),g=s("xtQ3"),N=s("1bEe"),z=s("RyS8"),w=s("hMta"),C=s("/7yb"),y=s("pgZm"),k=s("Oyie");const M={name:()=>({validators:[(0,N.C1)(),(0,N.BS)(48)],initialValue:""})},_=Object.keys(M),E=(0,g.Z)(M)((({orgUid:e,form:a,onFolderCreated:s,onCancelCreation:n,popup:i,parentProject:d})=>{const[g,N]=c.useState(""),M=(0,u.I0)(),E=d.breadcrumbs[0],x=c.useCallback((r=>{r.preventDefault(),a.onSubmit((async a=>{try{const r=(await M(Z.Nw.orgs.createProject(e,a.name,d.uid))).project;s(r),i.close()}catch(e){if(!(0,z.Oe)(e))return void N("The folder could not be created. Please try again later.");if(Object.keys(e.response.data.detail).some((e=>_.includes(e))))return k.reject(e);N((0,z.wp)(e))}}))}),[M,a,s,e,i,d]);(0,C.Z)("Enter",(e=>{x(e)}));
1const j=(0,u.v9)(Z.wl.authUser.getOrgRole(e)).caseOf({Some:e=>(0,y.oF)(e,"admin"),None:()=>!1});return(0,o.Z)(c.Fragment,{},void 0,(0,o.Z)("div",{className:(0,p.AK)("c-popup__body",w.Z.view)},void 0,c.createElement(f.Z,(0,m.Z)({htmlFor:"folderTitle",label:"Title",labelClassName:w.Z.subtitle},a.fields.name),c.createElement(v.Z,(0,m.Z)({id:"folderTitle"},a.fields.name,{maxLength:48,border:!0,autoFocus:!0}))),(0,o.Z)("div",{className:(0,p.AK)("form-global-error",{cloaked:!g})},void 0,r||(r=(0,o.Z)("i",{className:"icon fa-regular fa-warning"})),(0,o.Z)("span",{className:"message"},void 0,g)),(0,o.Z)("div",{className:w.Z.textContainer},void 0,(0,o.Z)("span",{className:w.Z.subtitle},void 0,"Members"),(0,o.Z)(h.Z,{users:d.latestMembers.map((e=>e.user))}),(0,o.Z)("span",{className:w.Z.info},void 0,"All members of"," ",(0,o.Z)("span",{className:(0,p.c6)(w.Z,"bold")},void 0,E.name)," will see this folder"),(0,o.Z)("span",{className:w.Z.description},void 0,j?t||(t=(0,o.Z)("p",{},void 0,"You can manage members from the main project.")):l||(l=(0,o.Z)("p",{},void 0,"To invite new members to this project, contact your administrator."))))),(0,o.Z)("div",{className:"c-popup__footer"},void 0,(0,o.Z)(b.Z,{type:"primary",size:"large",text:"Cancel",className:"btn-primary-inverted-border",onClick:n}),(0,o.Z)(b.Z,{type:"primary",size:"large",text:"Create",className:w.Z.buttonCreate,onClick:x,"data-selenium":"submit-button"})))}));const x=(0,n.Z)((function({orgUid:e,popup:a,onFolderCreated:s,parentProject:r}){return(0,o.Z)(i.Z,{className:d.Z.popup,title:"Create a new folder",onClose:()=>a.close()},void 0,(0,o.Z)(E,{orgUid:e,parentProject:r,onCancelCreation:()=>{a.cancel()},popup:a,onFolderCreated:function(e){s(e),a.close()}}))}),{shouldExitOnEscape:!1,shouldRejectOnCancel:!0})},sr4a:(e,a,s)=>{s.d(a,{Z:()=>i});var r,t=s("sQwH"),l=s("3Z9q"),o=s("I0q+"),n=s("D4hk");const c=e=>l.createElement("svg",(0,n.Z)({width:32,height:32},e),r||(r=(0,t.Z)("g",{fillRule:"evenodd"},void 0,(0,t.Z)("path",{d:"M15.985 32v-1c.631 0 1.257-.039 1.875-.116l.124.993c-.655.081-1.322.123-1.999.123zm3.973-.496l-.247-.97a14.899 14.899 0 001.785-.576l.367.93a15.9 15.9 0 01-1.905.616zm3.724-1.47l-.482-.876a15.027 15.027 0 001.586-1.004l.587.81c-.54.39-1.104.748-1.691 1.07zm3.27-2.374l-.685-.729c.456-.428.885-.885 1.285-1.367l.77.638c-.426.514-.883 1-1.37 1.458zm2.533-3.048l-.843-.54c.337-.526.641-1.074.91-1.639l.904.43a15.966 15.966 0 01-.971 1.749zm1.727-3.641l-.951-.31c.193-.594.35-1.2.468-1.815l.983.188c-.127.661-.294 1.308-.5 1.937zM32 16c0 .333-.01.664-.03.992l-1-.061a15.223 15.223 0 00-.001-1.893l.999-.063c.021.339.032.68.032 1.025zm-.283-3.013l-.984.187a14.874 14.874 0 00-.466-1.815l.952-.31c.205.63.371 1.277.498 1.938zm-2.228-5.592c.359.56.683 1.145.97 1.75l-.903.429a14.966 14.966 0 00-.91-1.64l.843-.539zm-1.177-1.61l-.77.639c-.4-.482-.83-.938-1.287-1.366l.685-.73c.487.457.945.943 1.372 1.457zm-2.982-2.78l-.585.811a15.025 15.025 0 00-1.588-.998l.479-.878c.588.32 1.154.676 1.694 1.065zm-3.44-1.883l-.37.93c-.58-.23-1.176-.424-1.783-.58l.25-.969a15.9 15.9 0 011.903.62zM15.934 0h.051c.671 0 1.332.041 1.981.121l-.122.993a15.146 15.146 0 00-1.366-.106L15.938 1l-.004-1zm-1.997.13l.127.992c-.623.08-1.238.197-1.842.353l-.25-.968c.64-.165 1.296-.292 1.965-.377zm-3.9 1.01l.372.928c-.581.233-1.147.502-1.695.805L8.23 2c.582-.323 1.185-.61 1.808-.86zM6.541 3.077l.59.807c-.505.37-.987.77-1.442 1.2l-.687-.728c.485-.457 1-.884 1.539-1.279zM3.588 5.871l.775.633a15.05 15.05 0 00-1.097 1.522l-.847-.532a16.05 16.05 0 011.17-1.623zM1.486 9.198l.906.426a14.883 14.883 0 00-.69 1.742l-.953-.308c.208-.639.454-1.26.737-1.86zM.244 13.042l.984.184a15.01 15.01 0 00-.229 1.861L0 15.027c.04-.673.123-1.336.244-1.985zm-.237 4.034l.998-.066c.042.627.122 1.248.241 1.86l-.983.19a15.997 15.997 0 01-.256-1.984zm.766 3.937l.95-.313c.196.595.43 1.175.699 1.74l-.904.43c-.286-.6-.535-1.22-.745-1.857zm1.72 3.61l.843-.54c.338.527.709 1.033 1.11 1.513l-.77.64a16.055 16.055 0 01-1.183-1.613zm2.601 3.107l.681-.733c.46.426.945.823 1.453 1.188l-.584.812c-.543-.39-1.06-.813-1.55-1.267zM8.3 30.04l.48-.877c.55.3 1.116.567 1.699.796l-.367.93c-.624-.245-1.23-.53-1.812-.849zm4.004.506c.605.152 1.22.267 1.844.343l-.121.993a15.978 15.978 0 01-1.484-.253l-.484-.113.245-.97zM14.703 17.27h-4.447a1.256 1.256 0 110-2.512h4.447V10.29a1.29 1.29 0 012.58 0v4.468h4.461a1.256 1.256 0 110 2.512h-4.462v4.44a1.29 1.29 0 11-2.579 0v-4.44z"}))));const i=function({users:e,maxDisplayed:a=4,onAdd:s,usersCount:r}){const l=(r||e.length)-a;return(0,t.Z)("div",{className:"c-org-users"},void 0,e.slice(0,a).map((e=>(0,t.Z)("div",{className:"c-org-users__avatar"},e.uid,(0,t.Z)(o.Z,{alt:`Avatar of ${e.username}`,deferred:!1,avatars:e.avatars,size:64})))),l>0?(0,t.Z)("div",{className:"c-org-users-remaining"},void 0,`+ ${l}`):null,s?(0,t.Z)(c,{className:"c-org-users__add",onClick:s}):null)}}}]);
2//# sourceMappingURL=3bbed8d208ec541a1175a004a3142118-v2.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.