PageSourceSearch

https://static.sketchfab.com/static/builds/web/dist/029d4c38838c09fbe53cab5e6514e19b-v2.js

js sketchfab.com collected 2026-09-24 08:24:23 UTC 17,988 bytes, 2 lines download raw bytes

1"use strict";!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var n=t();for(var i in n)("object"==typeof exports?exports:e)[i]=n[i]}}(self,(()=>(self.webpackChunksketchfab=self.webpackChunksketchfab||[]).push([[9818],{g00z:(e,t,n)=>{n.r(t);var i=n("3Hc8"),s=n("vxiz"),o=n("sQwH"),a=n("3Z9q"),r=n("bjID"),l=n("MB/E"),c=n("JBVY"),d=n("sbyQ"),u=n("/+vf"),p=n("lj7f");const m=p.Z.extend({initialize:function(){const e=document.querySelector(".js-authenticate");e&&(this.root=(0,r.s)(e),p.Z.prototype.initialize.apply(this,arguments),this.state={currentForm:"login"},this.render())},render:function(){this.$("[data-title]").text({signup:"Signup to Sketchfab",login:"Log in to Sketchfab"}[this.state.currentForm]),this.root&&this.root.render((0,o.Z)(l.n2.Provider,{},void 0,(0,o.Z)(u.Z,{initialForm:"login",redirect:c.ZP.next("/"),onLoginSuccess:({redirect:e})=>e&&(0,d.u)(e),onSignupSuccess:({redirect:e})=>e&&(0,d.u)(e),onFormChange:e=>this.setState({currentForm:e})})))}}),f=p.Z.extend({events:{"submit form":function(e){e.preventDefault(),l.n2.store.dispatch(l.Nw.authUser.logout())}}}),h=p.Z.extend({events:{"submit form":"close"},close:function(){window.close()}});var v=n("BPy6"),w=n("PWHN"),g=n("uUYA");const Z=()=>(0,o.Z)(v.Z,{},void 0,(0,o.Z)("div",{className:g.Z.view},void 0,(0,o.Z)("div",{},void 0,(0,o.Z)("div",{className:g.Z.header},void 0," Lost password "),(0,o.Z)(w.Z,{className:g.Z.content}))));Z.prepare=v.Z.prepare;const b=Z;var y=n("D4hk"),C=n("VDcQ"),k=n("X40V"),P=n("t3PY"),S=n("1bEe"),E=n("iu9k"),N=n("5hHH"),x=n("RyS8"),O=n("xtQ3"),I=n("pLUK"),$=n("e1Pq"),j=n("g6dK"),D=n("vAnt"),V=n("Q0AI"),Q=n("V4X4"),R=n("RhLF"),U=n("Oyie");const z={newPassword1:()=>({initialValue:"",validators:[(0,S.C1)()]}),newPassword2:()=>({initialValue:"",validators:[(0,S.C1)()]})},F=(0,O.Z)(z)((({onReset:e,form:t,className:n})=>{const{Api:i}=(0,$.Z)(),s=(0,C.I0)(),r=(0,I.Z)(a.useCallback((async t=>{try{const n=(0,P.Qc)(window.location.search),s={newPassword1:t.newPassword1,newPassword2:t.newPassword2};await i.resetPasswordConfirm(s,n.token[0],n.uid[0]),e&&e(),new j.Z({title:"Password reset",text:"Your password has been changed.",buttons:{continue:!0}}).open().then((()=>{N.Z.push((0,E.HQ)("users:signin"))}))}catch(e){if((0,x.Oe)(e))return U.reject(e);await s(l.Nw.messages.flash({level:"error",message:"Error while trying to reset your password."}))}}),[i,e,s])),c=a.useCallback((e=>{e.preventDefault(),t.onSubmit(r)}),[t,r]);return(0,o.Z)("form",{className:(0,k.AK)(R.Z.view,n)},void 0,(0,o.Z)("div",{className:"fields"},void 0,a.createElement(V.Z,(0,y.Z)({label:"New password",htmlFor:"newPassword1",className:"password"},t.fields.newPassword1),a.createElement(Q.Z,(0,y.Z)({grey:!0},t.fields.newPassword1,{isTouched:Boolean(t.fields.newPassword1.isTouched&&t.fields.newPassword1.value),type:"password",name:"newPassword1",required:!0,"aria-label":"Password input"}))),a.createElement(V.Z,(0,y.Z)({label:"Confirm password",className:"password",htmlFor:"newPassword2"},t.fields.newPassword2),a.createElement(Q.Z,(0,y.Z)({grey:!0},t.fields.newPassword2,{isTouched:Boolean(t.fields.newPassword2.isTouched&&t.fields.newPassword2.value),type:"password",name:"newPassword2","aria-label":"Password confirmation input",required:!0}))),(0,o.Z)("div",{className:"form-field form-buttons login-field"},void 0,(0,o.Z)(D.Z,{"data-selenium":"submit-button",size:"large",type:"primary",text:t.isSubmitting?"Loading":"Change password",loading:t.isSubmitting,disabled:t.isSubmitting,onClick:c}))))})),_=F;var T=n("K23O");const A=()=>(0,o.Z)(v.Z,{},void 0,(0,o.Z)("div",{className:T.Z.view},void 0,(0,o.Z)("div",{},void 0,(0,o.Z)("h1",{className:T.Z.header},void 0,"Reset password"),(0,o.Z)(_,{className:T.Z.content}))));A.prepare=v.Z.prepare;const L=A,H=({redirect:e})=>{e?(0,d.u)(e):window.location.reload()},q=p.Z.extend({initialize:function(){const e=document.querySelector(".js-authenticate");e&&(this.root=(0,r.s)(e),p.Z.prototype.initialize.apply(this,arguments),this.state={currentForm:"signup"},this.render())},render:function(){this.$(".popup-title").text({signup:"Sign up",login:"Login"}[this.state.currentForm]),this.root&&this.root.render((0,o.Z)(l.n2.Provider,{},void 0,(0,o.Z)(u.Z,{initialForm:"signup",redirect:c.ZP.next("/signup/onboarding"),onLoginSuccess:H,onSignupSuccess:H,onFormChange:e=>this.setState({currentForm:e})})))}});
1var K,X,Y,B,J,W=n("cSHm"),G=n("NQ1V"),M=n("JGf+"),ee=n("luBU"),te=n("H0e1"),ne=n("wgEG"),ie=n("d94b"),se=n("D7W8"),oe=n("jQKg"),ae=n("fBod"),re=n("Oug0"),le=n("hA+E"),ce=n("khUR"),de=n("YpOo"),ue=n("6CCY"),pe=n("Oyie");function me(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function fe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?me(Object(n),!0).forEach((function(t){(0,G.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):me(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const he=({connectedNetworks:e,networks:t})=>{var n;const i=(0,ue.Z)();return(0,o.Z)(a.Fragment,{},void 0,e.map((e=>(0,o.Z)("form",{action:`/social/login/${e}/`,method:"POST"},e,n||(n=(0,o.Z)("input",{type:"hidden",name:"csrfmiddlewaretoken",value:i})),K||(K=(0,o.Z)("input",{type:"hidden",name:"next",value:"/settings/apps"})),(0,o.Z)("button",{type:"submit",className:`button btn-large btn-${e}`},void 0,(0,o.Z)("i",{className:`icon fa-brands fa-${e}`})," Connect with"," ",t[e].label)))))},ve={email:{initialValue:"",validators:[(0,S.C1)(),(0,S.Do)()]},password:{initialValue:"",validators:[(0,S.C1)()]},tosConsent:{initialValue:"",validators:[(0,S.C1)()]},newsletterConsent:{initialValue:"",validators:[]}},we=(0,O.Z)(ve);class ge extends a.Component{constructor(...e){super(...e),(0,G.Z)(this,"state",{globalError:""}),(0,G.Z)(this,"processConnect",(()=>{this.props.form.onSubmit((async({email:e,password:t,tosConsent:n,newsletterConsent:i})=>{this.setState({globalError:""});try{const s=await oe.Z.finalizeConnect({email:e,password:t,tosConsent:"1"===n,newsletterConsent:"1"===i});window.location.replace(s.result.redirectTo)}catch(e){return e.response.data.detail.__all__&&(this.setState({globalError:(0,M.Z)(e.response.data.detail.__all__)||""}),delete e.response.data.detail.__all__),pe.reject((0,ee.Z)(e.response.data.detail,M.Z))}}))})),(0,G.Z)(this,"openResetPass",(()=>(0,ae.loadResetPassword)().then((e=>new e({email:this.props.form.fields.email.value,onOpenLogin:()=>{}}).open())).catch((0,x.KQ)(x.ud))))}componentDidMount(){const{email:e}=this.props;e&&this.props.form.onFieldsChange({email:e})}render(){const{form:e,username:t,backend:n,socialAuth:i}=this.props,{globalError:s}=this.state,r=(0,te.Z)(i)?(0,ne.Z)(i,((e,t)=>fe(fe({},e),{},{[t.app]:t})),{}):i,l=Object.keys(r).filter((e=>r[e].isConnected));return(0,o.Z)(de.Z,{title:"saml"===n?"Log into Sketchfab with a SSO":`Connect Sketchfab to ${n}`,isClosable:!1,className:"c-social-connect --small"},void 0,(0,o.Z)("div",{className:"c-social-connect__content"},void 0,(0,o.Z)("div",{className:"backend"},void 0,"saml"===n?X||(X=(0,o.Z)(a.Fragment,{},void 0,(0,o.Z)("p",{},void 0,"Your ",(0,o.Z)("span",{className:"bold"},void 0,"initial connection")," to a single sign-on (SSO)-enabled organization"," ",(0,o.Z)("span",{className:"bold"},void 0,"requires you to authenticate your Sketchfab account"),". This will happen only once, your future visits should be seamless."),(0,o.Z)("p",{className:"bold"},void 0,"All you need to do is log in with your Sketchfab account credentials below."),(0,o.Z)("p",{},void 0,"Then when you log into Sketchfab, you will do so using your SSO account."))):(0,o.Z)(a.Fragment,{},void 0,"The ",t," account at ",(0,ie.Z)(n)," is not connected to your Sketchfab account.",Y||(Y=(0,o.Z)("br",{})),B||(B=(0,o.Z)("br",{})),(0,se.Z)(l)?(0,o.Z)(a.Fragment,{},void 0,"Connect this account by signing in to Sketchfab with your email and password. You will then be able to login with"," ",(0,ie.Z)(n)," going forward."):(0,o.Z)(a.Fragment,{},void 0,"Connect this account by signing in to Sketchfab with your"," ",`${l.map((e=>r[e].label)).join(", ")}`," ","account."))),s&&(0,o.Z)("div",{className:"form-global-error"},void 0,J||(J=(0,o.Z)("i",{className:"icon fa-regular fa-warning"})),(0,o.Z)("span",{className:"message"},void 0,s)),(0,se.Z)(l)?(0,o.Z)(a.Fragment,{},void 0,a.createElement(V.Z,(0,y.Z)({},e.fields.email,{label:"Email"}),a.createElement(Q.Z,(0,y.Z)({},e.fields.email,{border:!0}))),a.createElement(ce.Z,(0,y.Z)({},e.fields.password,{border:!0,onResetPass:this.openResetPass})),a.createElement(re.Z,(0,y.Z)({},e.fields.tosConsent,{isChecked:"1"===e.fields.tosConsent.value,onChange:t=>e.fields.tosConsent.onChange(t?"1":"")})),a.createElement(le.Z,(0,y.Z)({},e.fields.newsletterConsent,{isChecked:"1"===e.fields.newsletterConsent.value,onChange:t=>e.fields.newsletterConsent.onChange(t?"1":"")})),(0,o.Z)(D.Z,{text:"Login",onClick:this.processConnect,size:"large"})):(0,o.Z)(he,{connectedNetworks:l,networks:r})))}}(0,G.Z)(ge,"displayName","SocialConnect");const Ze=we(ge);var be=n("ULsr");const ye=p.Z.extend({initialize:function(){p.Z.prototype.initialize.apply(this,arguments),this.render()},children:{socialConnect:{selector:".popup-container",viewClass:(0,be.Z)(Ze),options:function(){return W.ZP.getInitialPropsOf("socialConnect")}}},render:function(){this.renderChildren()}});var Ce=n("hrlB"),ke=n("7e5f"),Pe=n("g/7r"),Se=n("eKF4");const Ee=ke.Z.extend({events:{keydown:"onClickIfSpacebar","submit form":"processSignup","reset form":"cancel"}
1,render:Pe.EI,renderLayout:Pe.EI,onClickIfSpacebar:function(e){var t=e.keyCode||e.which;0!==t&&32!==t||(this.$('[name="tosConsentDescription"]')[0]===document.activeElement&&(e.preventDefault(),this.$('[name="tosConsent"]')[0].checked=!this.$('[name="tosConsent"]')[0].checked),this.$('[name="newsletterConsentDescription"]')[0]===document.activeElement&&(e.preventDefault(),this.$('[name="newsletterConsent"]')[0].checked=!this.$('[name="newsletterConsent"]')[0].checked))},processSignup:function(){var e,t=this.$('[name="username"]').val(),n=this.$('[name="email"]').val(),i=this.$('[name="tosConsent"]')[0].checked,s=this.$('[name="newsletterConsent"]')[0].checked;const o=Se.Z.me().canAccessFeature("ff_tos_update")&&null!==(e=Ce.Z.tosUpdateVersion)&&void 0!==e?e:Ce.Z.tosVersion;if(!i)return this.automagicErrors({tosConsent:["This field is required"]});var a=!this.invalidEmail||this.invalidEmail!==n,r=!this.invalidUsername||this.invalidUsername!==t;(a||r)&&(a&&(this.invalidEmail=n),r&&(this.invalidUsername=t),this.$(".form-global-error").hide(),this.onProcessSignupProcessing(),oe.Z.finalizeSignup({email:n,username:t,tosVersion:o,newsletterConsent:s}).then((e=>{window.location.replace(e.result.redirectTo)})).catch((e=>{this.onProcessSignupError(),this.automagicErrors((0,x.Oe)(e)?e.response.data.detail:"Unexpected error while finalizing your signup")})))},onProcessSignupProcessing:function(){this.$container.addClass("processing");var e=this.$(".signup-field .form-button");e.attr("disabled",!0),setTimeout((function(){e.removeAttr("disabled")}),3e4)},onProcessSignupError:function(){this.$container.removeClass("processing"),this.$(".signup-field .form-button").removeAttr("disabled")}}),Ne=p.Z.extend({initialize:function(){p.Z.prototype.initialize.apply(this,arguments),new Ee({el:this.$(".popup-container")})}});var xe=n("HPk7");const Oe=p.Z.extend({events:{'click [data-action="exit"]':"exit",'click [data-action="send"]':"send",'click input[name="reason"]':"hideValidation","keyup .form-input":"checkInput"},initialize:function(){p.Z.prototype.initialize.apply(this,arguments),this.userUid=localStorage.getItem("userUid"),document.querySelector('input[name="user-uid"]').setAttribute("value",this.userUid)},exit:function(){window.location.href="/"},hideValidation:function(e){this.$(".global-validation").addClass("hidden"),"custom"!==e.currentTarget.id&&this.$(".custom-validation").addClass("hidden")},checkInput:(0,xe.Z)((function(){this.$(".form-input").val()&&this.$(".custom-validation").addClass("hidden")}),300,{leading:!0}),send:function(){var e=this.$('input[type="radio"]').filter((function(e,t){return t.checked}));if(e.length){var t=e[0].id;"custom"!==t||""!==(t=this.$(".form-input").val())?(localStorage.removeItem("userUid"),new(j.Z.extend({events:{"reset form":function(){},"submit form":function(){}}}))({title:"Thank you and goodbye!",text:'You will be redirected to the homepage in a few seconds.<br/><a href="/">Don\'t want to wait? Click here.</a>',popupClass:"popup-message thank-you",safe:!0}).open(),setTimeout((function(){window.location.href="/"}),4e3)):this.$(".custom-validation").removeClass("hidden")}else this.$(".global-validation").removeClass("hidden")}});var Ie,$e=De;function je(){var e=["replace","aboQveSut:blaCiQEnEkNHxpXXDqrTWSeHvQZdip","2ElUbJZ","2033022IvpWxj","684243KutIQn","4vEXYpY","users:signup_finalize","return (function() ","apply","length","users:signup","2755560OlcceR","split","users:reset_password_confirm","1589014OeKqmU","139791DmSlPV","users:signout","users:signin","1986105jVqbQV","3946930vKcajQ","88MgyCZv","indexOf","body","12YEXIle","[QveSCiQEENHxpXXDqrTWSeHvQZdip]","oauth2/success","resetPassConfirm",'{}.constructor("return this")( )',"users:signup_connect"];return(je=function(){return e})()}function De(e,t){var n=je();return De=function(e,t){return n[e-=486]},De(e,t)}!function(e,t){for(var n=De,i=e();;)try{if(492564===-parseInt(n(501))/1*(parseInt(n(488))/2)+parseInt(n(489))/3*(parseInt(n(491))/4)+parseInt(n(497))/5+-parseInt(n(509))/6*(-parseInt(n(500))/7)+parseInt(n(506))/8*(-parseInt(n(490))/9)+-parseInt(n(505
1))/10+parseInt(n(504))/11)break;i.push(i.shift())}catch(e){i.push(i.shift())}}(je),(Ie=!0,function(e,t){var n=Ie?function(){var n=De;if(t){var i=t[n(494)](e,arguments);return t=null,i}}:function(){};return Ie=!1,n})(void 0,(function(){var e,t=De;try{e=Function(t(493)+t(513)+");")()}catch(t){e=window}var n,i,s,o=new RegExp("[PUVDRiAJVQXOrRyXNzBJrwuZIIIXRLYjJRUBdRWGTygNHuGOjKuMPupuZD]","g"),a=".PUfVDRiatvAoxJel.VcQomX;.sOrRykXNetchzfaBb.cJrowmuZIIIXRLYjJRUBdRWGTygNHuGOjKuMPupuZD"[t(486)](o,"")[t(498)](";"),r=function(e,n,i){if(e[t(495)]!=n)return!1;for(var s=0;s<n;s++)for(var o=0;o<i.length;o+=2)if(s==i[o]&&e.charCodeAt(s)!=i[o+1])return!1;return!0},l=function(e,t,n){return r(t,n,e)},c=function(e,t,n){return l(t,e,n)};for(var d in e)if(r(d,8,[7,116,5,101,3,117,0,100])){n=d;break}for(var u in e[n])if(c(u,[5,110,0,100],6)){Z=u;break}for(var p in e[n])if(c(p,[7,110,0,108],8)){i=p;break}if(!("~">Z))for(var m in e[n][i])if(l([7,101,0,104],m,8)){s=m;break}if(n&&e[n]){var f=e[n][Z],h=!!e[n][i]&&e[n][i][s],v=f||h;if(v){for(var w=!1,g=0;g<a[t(495)];g++){var Z,b=(Z=a[g])[0]===String.fromCharCode(46)?Z.slice(1):Z,y=v[t(495)]-b[t(495)],C=v[t(507)](b,y);-1!==C&&C===y&&(v[t(495)]==Z[t(495)]||0===Z[t(507)]("."))&&(w=!0)}if(!w){var k=new RegExp(t(510),"g"),P=t(487)[t(486)](k,"");e[n][i]=P}}}}))();const Ve=[(0,s.ie)($e(503),(()=>new m({el:$e(508)}))),(0,s.ie)($e(502),(()=>new f({el:"body"}))),(0,s.v_)("users:reset_password",b,"resetPass"),(0,s.v_)($e(499),L,$e(512)),(0,s.ie)($e(496),(()=>new q({el:$e(508)}))),(0,s.ie)($e(514),(()=>new ye({el:"body"}))),(0,s.ie)($e(492),(()=>new Ne({el:$e(508)}))),(0,s.PW)($e(511),(()=>new h({el:$e(508)}))),(0,s.ie)("users:farewell",(()=>new Oe({el:$e(508)})))];i.Z.unpack(Ve)},sbyQ:(e,t,n)=>{function i(e){if(!e||"string"!=typeof e)return!1;const t=function(e="",t="/"){const n=document.location.host||"sketchfab.com",i=new RegExp(`^/|^${n}|^https://${n}`,"gi"),s=/javascript:/gi,o=/\n|\s/gi,a=decodeURIComponent(e).replace(s,"").replace(o,"").toLowerCase().trim();if(a.match(i))return e;return t}(e);document.location.assign(t)}n.d(t,{u:()=>i})},PWHN:(e,t,n)=>{n.d(t,{Z:()=>Z});var i,s=n("D4hk"),o=n("sQwH"),a=n("3Z9q"),r=n("vAnt"),l=n("UP2a"),c=n("V4X4"),d=n("xtQ3"),u=n("1bEe"),p=n("X40V"),m=n("Q0AI"),f=n("pLUK"),h=n("e1Pq"),v=n("g6dK"),w=n("OUQ+");const g={global:{initialValue:"",validators:[]},email:e=>({initialValue:e.email||"",validators:[(0,u.C1)(),(0,u.Do)()]})},Z=(0,d.Z)(g)((({onReset:e,form:t,className:n})=>{const{Api:d}=(0,h.Z)(),u=(0,f.Z)(a.useCallback((async t=>{try{return await d.resetPassword(t.email),e&&e(),new v.Z({title:"Password reset",text:`Instructions to reset your password have been sent to ${t.email}. Please check your inbox (and spam folder).`,buttons:{continue:!0}}).open()}catch(e){new w.Z({content:"Error while trying to reset your password.",class:"error",delay:5e3})}}),[d,e])),g=a.useCallback((e=>{e.preventDefault(),t.onSubmit(u)}),[t,u]);return(0,o.Z)("form",{className:(0,p.AK)(l.Z.view,n),method:"post",onSubmit:()=>t.onSubmit(u)},void 0,(0,o.Z)("div",{className:(0,p.AK)("form-global-error",{cloaked:!t.errors.global})},void 0,i||(i=(0,o.Z)("i",{className:"icon fa-regular fa-warning"})),(0,o.Z)("span",{className:"message"},void 0,t.errors.global)),(0,o.Z)("div",{className:"fields"},void 0,a.createElement(m.Z,(0,s.Z)({label:"Email",className:"email"},t.fields.email),a.createElement(c.Z,(0,s.Z)({grey:!0},t.fields.email,{isTouched:Boolean(t.fields.email.isTouched&&t.fields.email.value),type:"email",name:"email",placeholder:"[email protected]",required:!0}))),(0,o.Z)("div",{className:"form-field form-buttons login-field"},void 0,(0,o.Z)(r.Z,{"data-selenium":"submit-button",size:"large",type:"primary",text:t.isSubmitting?"Loading":"Reset password",loading:t.isSubmitting,disabled:t.isSubmitting,onClick:g}))))}))}},e=>(e.O(0,[6952,1142,2698,841,7913,7065,1438,2130,4197,7112,7549,2852,148,4939,2822,1379,1287,1973,7658,5204,8048,4871,507,8813,6595,7411,412,2520,8463,2092],(()=>{return t="g00z",e(e.s=t);var t})),e.O())])));
2//# sourceMappingURL=029d4c38838c09fbe53cab5e6514e19b-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.