PageSourceSearch

https://static.sketchfab.com/static/builds/web/dist/23467402c9bb851eda09f95bb4bbd745-v2.js

js sketchfab.com collected 2026-09-24 08:25:22 UTC 8,826 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunksketchfab=self.webpackChunksketchfab||[]).push([[4234],{XuRc:(e,t,s)=>{s.d(t,{Z:()=>a});var r=s("3Z9q"),n=s("g/7r");const a=(e,t,s,a=[])=>{const o=(0,r.useRef)(e()),c=e=>t((t=>{const r=s(t,e);return o.current=r,r})),i=(0,r.useRef)(c);(0,r.useEffect)((()=>{i.current=c}));const l=(0,r.useMemo)((()=>{let e=()=>{throw new Error("Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")};const t={getState:()=>o.current,dispatch:(...t)=>e(...t)},s=a.map((e=>e(t)));return e=(0,n.qC)(...s)(((...e)=>i.current(...e))),e}),[]);return[e(),l]}},vAnt:(e,t,s)=>{s.d(t,{Z:()=>p});var r,n,a=s("sQwH"),o=s("3MRe"),c=s("D4hk"),i=s("3Z9q"),l=s("X40V"),u=s("wExz"),d=s("lMO9");const h=["subtext","text","onClick","icon","size","type","className","iconClassName","disabled","loading","success","progress","htmlType","children"],m=i.forwardRef(((e,t)=>e.href&&!e.disabled?i.createElement("a",(0,c.Z)({ref:t},e)):i.createElement("button",(0,c.Z)({ref:t},e)))),p=i.forwardRef(((e,t)=>{let{subtext:s,text:p,onClick:Z,icon:v,size:b="medium",type:f="primary",className:w="",iconClassName:g="",disabled:C=!1,loading:k=!1,success:N=!1,progress:x,htmlType:E,children:y}=e,L=(0,o.Z)(e,h);const R=C||k;return i.createElement(m,(0,c.Z)({ref:t},L,{type:E,className:(0,l.AK)("button",`btn-${f}`,`btn-${b}`,w,{"btn-loading":k,"btn-disabled":R}),disabled:R,onClick:e=>{!R&&Z&&Z(e)}}),N?r||(r=(0,a.Z)(d.Z,{})):k?n||(n=(0,a.Z)(u.Z,{})):v?(0,a.Z)("span",{className:"icon"},void 0,v):g?(0,a.Z)("span",{className:(0,l.AK)("icon ",g)}):null,(0,a.Z)("span",{className:"button__text-container"},void 0,p,s?(0,a.Z)("span",{className:"button__subtext"},void 0,s):null),y,k&&void 0!==x?(0,a.Z)("span",{className:"button__progress",style:{width:100*x+"%"}}):null)}))},"8xE2":(e,t,s)=>{s.d(t,{Z:()=>i});var r=s("sQwH"),n=s("NQ1V"),a=s("3Z9q"),o=s("g/7r"),c=s("X40V");class i extends a.Component{constructor(...e){super(...e),(0,n.Z)(this,"onClickIfSpacebar",(e=>{var t=e.keyCode||e.which;0!==t&&32!==t||this.onClick(e)})),(0,n.Z)(this,"onClick",(e=>{e.preventDefault(),this.props.disabled||this.props.onChange(!this.props.isChecked,e)}))}render(){const{isChecked:e,isIndeterminate:t,name:s,isTouched:n,error:i,disabled:l=!1,label:u="",className:d="",children:h,title:m}=this.props;return(0,r.Z)(a.Fragment,{},void 0,(0,r.Z)("div",{onKeyDown:this.onClickIfSpacebar,onClick:this.onClick,className:`c-checkbox ${d} ${l?"--disabled":""} ${t?"--indeterminate":""} ${e?"--active":""}`,title:m},void 0,(0,r.Z)("input",{id:s,className:"c-checkbox__input",type:"checkbox",name:s,checked:e,onChange:o.EI,disabled:l}),(0,r.Z)("div",{"data-selenium":`checkbox-${s}`,className:"c-checkbox__actor"}),(0,r.Z)("label",{tabIndex:0,className:(0,c.AK)("c-checkbox__label",{"--disabled":l}),htmlFor:s},void 0,h||u)),n&&i?(0,r.Z)("label",{className:"form-error"},void 0,i):null)}}},"3IF6":(e,t,s)=>{s.d(t,{YN:()=>i,ZP:()=>c});var r=s("3Z9q");const n="Admin",a=[{title:"Spectator",value:"spectator",description:"Can view and comment 3D models."},{title:"Contributor",value:"contributor",description:"Can view, comment, upload, duplicate, download and edit 3D settings of 3D models."},{title:"Project Lead",value:"project_lead",description:"Same rights as Contributor, plus you can create, edit, and delete folders within a project that you've been added to."}];function o(e){const{withAdmin:t=!0}=e||{};return(0,r.useMemo)((()=>a.concat(t?[{title:n,value:"admin",description:"Same rights as Project Lead, plus you can invite or remove members, set permissions, and change organization settings."}]:[])),[t])}const c=o;function i(){const e=o();return t=>{const s=e.find((e=>e.value===t));return(null==s?void 0:s.title)||t}}},V4X4:(e,t,s)=>{s.d(t,{Z:()=>l});var r=s("D4hk"),n=s("3MRe"),a=s("MndH"),o=s("3Z9q"),c=s("X40V");const i=["onChange","className","grey","border","error","hasError","isTouched","autoFocus"],l=o.forwardRef(((e,t)=>{let{onChange:s,className:l="form-input",grey:u=!1,border:d=!1,error:h="",hasError:m=!1,isTouched:p=!1,autoFocus:Z=!1}=e,v=(0,n.Z)(e,i);const b=o.useRef(null);return o.useEffect((()=>{Z&&b.current&&b.current.focus()}
1),[Z]),o.createElement("input",(0,r.Z)({ref:t||b,onChange:e=>s(e.target.value),className:(0,c.AK)(l,{"--grey":u,"--border":d,"--error":(Boolean(h)||m)&&p}),autoFocus:Z},(0,a.Z)(v,"hasChanged")))}))},gmGo:(e,t,s)=>{s.d(t,{Z:()=>d});var r=s("D4hk"),n=s("sQwH"),a=s("3MRe"),o=s("3Z9q"),c=s("X40V"),i=s("V4X4"),l=s("BujJ");const u=["className","placeholder","maxLength"];function d(e){let{className:t,placeholder:s,maxLength:d=120}=e,h=(0,a.Z)(e,u);return(0,n.Z)("div",{className:(0,c.AK)("c-search-input",l.Z.view,t)},void 0,(0,n.Z)("i",{"aria-hidden":"true",className:(0,c.AK)("fa-regular fa-search",l.Z.icon)}),o.createElement(i.Z,(0,r.Z)({"data-selenium":"search-input",type:"text",name:"query",autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",className:l.Z.input,maxLength:d,placeholder:s,"aria-label":s},h)))}},lMO9:(e,t,s)=>{s.d(t,{Z:()=>a});var r=s("sQwH"),n=(s("3Z9q"),s("KDlt"));s("Z5CY");const a=()=>(0,r.Z)("div",{className:"check",dangerouslySetInnerHTML:{__html:n.Z.getFromMacro("front/macros/logo","spinner_check",[])}})},wExz:(e,t,s)=>{s.d(t,{Z:()=>a});var r,n=s("sQwH");s("3Z9q");const a=()=>r||(r=(0,n.Z)("div",{className:"sketchfab-spinner"},void 0,(0,n.Z)("svg",{viewBox:"0 0 13 16",xmlns:"http://www.w3.org/2000/svg"},void 0,(0,n.Z)("g",{fillRule:"nonzero"},void 0,(0,n.Z)("path",{className:"shape1",d:"M5.3029 8.1731L0 4.9864v5.8286l5.3029 3.1867z"}),(0,n.Z)("path",{className:"shape2",d:"M5.9987 6.9902l5.8157-3.495L5.9987 0 .1829 3.4953z"}),(0,n.Z)("path",{className:"shape3",d:"M6.6944 8.1731v5.8286l5.303-3.1867V4.9864z"})))))},"yKt+":(e,t,s)=>{s.d(t,{YA:()=>a});var r=s("sQwH");const n=(0,s("3Z9q").createContext)({}),a=({children:e,org:t})=>(0,r.Z)(n.Provider,{value:{org:t}},void 0,e)},hk5G:(e,t,s)=>{s.d(t,{Z:()=>l});var r=s("lrhy"),n=s("3Z9q"),a=s("HPk7"),o=s("Cgfs"),c=s("pLUK"),i=s("Oyie");const l=(e,t,s=[],l=window)=>{const u=n.useRef(1/0),d=(0,c.Z)(n.useCallback((()=>{return((e=l)===window?window.scrollY:e.scrollTop)>u.current?t().then((()=>(0,r.gw)(300))):i.resolve();var e}),[l,...s]));n.useEffect((()=>{if(l){const e=(0,a.Z)(d,200);return l.addEventListener("scroll",e,{passive:!0}),()=>{l.removeEventListener("scroll",e)}}}),[l,d]);const h=n.useMemo((()=>(0,o.Z)((()=>{if(!e.current)return;const t=l?(s=l)===window?document.documentElement.scrollHeight:s.scrollHeight:0;var s;const r=t-(e.current.offsetTop+e.current.offsetHeight);u.current=t-(r+2*window.innerHeight)}),100)),[l,e]);n.useEffect((()=>(h(),window.addEventListener("resize",h),()=>window.removeEventListener("resize",h))))}},"BR/Y":(e,t,s)=>{s.d(t,{Z:()=>h});var r=s("3Z9q"),n=s("4fae"),a=s("MB/E"),o=s("D7W8"),c=s("rEmB"),i=s("Sbzs"),l=s("HGbS"),u=s("XuRc"),d=s("MBtD");const h=(e,t,s,h=[])=>{const m=(0,r.useContext)(l.N1),[p,Z]=(0,r.useState)(t),v=(0,r.useRef)(t),b=(0,r.useRef)({}),f=(0,r.useRef)(!0),w=(0,r.useCallback)((e=>{const{entities:t}=(0,n.Fv)(e,s);(0,o.Z)(t)||(0,c.Z)(t,b.current)||(b.current=t,f.current=!0,a.n2.store.dispatch(a.Nw.entities.update(t)),f.current=!1)}),[s]),g=(0,r.useCallback)((()=>v.current),[]),C=(0,r.useCallback)((e=>{v.current=(0,i.Z)(e)?e(v.current):e,Z(v.current),w(v.current)}),[w]);(0,r.useEffect)((()=>(0,d.se)(a.n2.store,a.wl.entities.all,(e=>{f.current||(e=>{const{result:t}=(0,n.Fv)(v.current,s),r=(0,n.cY)(t,s,e);v.current=r,Z(r)})(e)}))),[s]);const k=(0,r.useMemo)((()=>[(0,l.OF)(m),...h]),[m]),[,N]=(0,u.Z)(g,C,e,k);return[p,N]}},pLUK:(e,t,s)=>{s.d(t,{Z:()=>n});var r=s("3Z9q");const n=e=>{const t=(0,r.useRef)();return(0,r.useCallback)(((...s)=>t.current?t.current:(t.current=e(...s),t.current.catch((e=>{throw t.current=void 0,e})).then((e=>(t.current=void 0,e))))),[e])}},ajs0:(e,t,s)=>{s.d(t,{Z:()=>o});var r=s("3Z9q"),n=s("3wYL"),a=s("BR/Y");function o(e,t,{initialState:s=n.E3,reducer:o=n.I6,schema:c}={}){const i=r.useCallback(((t,s)=>e(t,s).then((({results:e,cursors:t})=>({list:e,cursors:t})))),t),[l,u]=(0,a.Z)(o,s,r.useMemo((()=>c?{list:[c]}:{}),[c])),d=r.useCallback((()=>u(n.Nw.first((e=>i(e,null))))),[i,u]),h=r.useCallback((()=>u(n.Nw.next(((e,t)=>i(e,t))))),[i,u]),m=r.useCallback((()=>u(n.Nw.previous(((e,t)=>i(e,t))))),[i,u]),p=r.useCallback((()=>u(n.Nw.reset())),[u]);return{dispatch:u,onLoadFirst:d,onLoadNext:h,onLoadPrevious:m,onReset:p,list:n.wl.list(l),loading:n.wl.loading(l),isLoading:n.wl.isLoading(l),hasPreviousPage:n.wl.hasPreviousPage(l),hasNextPage:n.wl.hasNextPage(l)}}},e1Pq:(e,t,s)=>{s.d(t,{Z:()=>a});var r=s("3Z9q"),n=s("HGbS");function a(){return r.useContext(n.N1)}},KUgi:(e,t,s)=>{e.exports=s.p+"static/assets/images/placeholders/users/blue/eec88860d2c0d280b973b7d66e95b21c-v2.png"}}]);
2//# sourceMappingURL=23467402c9bb851eda09f95bb4bbd745-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.