PageSourceSearch

https://static.sketchfab.com/static/builds/web/dist/384da419c923909cd81443b7bb2513fd-v2.js

js sketchfab.com collected 2026-09-24 08:26:15 UTC 9,875 bytes, 2 lines download raw bytes

1(self.webpackChunksketchfab=self.webpackChunksketchfab||[]).push([[9708],{yTkX:(e,t,n)=>{"use strict";n.d(t,{IO:()=>h,L0:()=>a,PF:()=>i,QG:()=>d,UW:()=>r,eF:()=>u,wv:()=>l});var o=n("HPk7"),s=n("g/7r");function i(e){return e.preventDefault(),e}function r(e){return e.stopPropagation(),e}function a(e){return{eventName:e.split(" ")[0],selector:e.split(" ").slice(1).join(" ")}}function l(e){const t=e.originalEvent||e;return{x:t.type.match(/^touch/)?t.changedTouches[0]?t.changedTouches[0].pageX:0:t.clientX,y:t.type.match(/^touch/)?t.changedTouches[0]?t.changedTouches[0].pageY:0:t.clientY}}function u(e,t){return t.velocity=function(e,t){const n=l(t),o=e?l(e):n;return{x:n.x-o.x,y:n.y-o.y}}(e,t),t}const c=e=>{const{x:t,y:n}=l(e);return e.dragX=t,e.dragY=n,e},p=(e,t,n)=>function(i){let r=!1,a=!1;const l=(0,o.Z)((0,s.Rp)(u,void 0,(e=>{r=!0,a||n.onDrag(c(e))})),16),p=o=>{a=!0,r&&n.onDragEnd(c(o)),window.removeEventListener(e,l),window.removeEventListener(t,p)};window.addEventListener(e,l),window.addEventListener(t,p),n.onDragStart(c(i))},d=({onDrag:e,onDragStart:t=(e=>e),onDragEnd:n=(e=>e)}={})=>({onMouseDown:p("mousemove","mouseup",{onDrag:e,onDragStart:t,onDragEnd:n}),onTouchStart:p("touchmove","touchend",{onDrag:e,onDragStart:t,onDragEnd:n})}),h=e=>t=>{13===(e=>e.which||e.keyCode)(t)&&e(t)}},"7e5f":(e,t,n)=>{"use strict";n.d(t,{Z:()=>b});var o=n("Hjnd"),s=n.n(o),i=n("jQDz"),r=n("nv4P"),a=n("X40V"),l=n("RyS8"),u=n("yTkX"),c=n("R2Pi"),p=n("lotc"),d=n("XXsV"),h=n("lrhy"),f=n("kAIv"),g=n("Oyie");const m=[],b=r.Z.extend({parent:"body",el:'<article data-element="popup" />',optionTypes:{cleanOnClose:p.Z.bool,shouldExitOnClickOutside:p.Z.bool,shouldExitOnEscape:p.Z.bool,shouldRejectOnCancel:p.Z.bool},defaultOptions:{cleanOnClose:!0,shouldExitOnClickOutside:!0,shouldExitOnEscape:!0,shouldRejectOnCancel:!1},events:{'click [data-action="close"]':"cancel","click button:not([type])":u.PF,"mousedown .popup-container":"onMouseDown","mouseup .popup-container":"onMouseUp"},onMouseDown:function(e){this.lastMouseDownTarget=e.target},onMouseUp:function(e){this.options.shouldExitOnClickOutside&&e.currentTarget===this.lastMouseDownTarget&&(this.cancel(e),delete this.lastMouseDownTarget)},constructor:function(){this.onKeyDown=this.onKeyDown.bind(this),this.identifier=Symbol(Math.random()),this.resizeHandler=function(){s().each(m,(function(e,t){t.setHeightForMobileResolution()}))}.bind(this),r.Z.apply(this,arguments)},initialize:function(){r.Z.prototype.initialize.apply(this,arguments),this.renderLayout()},setElement:function(){return r.Z.prototype.setElement.apply(this,arguments),this.$container=this.$(".popup-container"),this},delegateEvents:function(){r.Z.prototype.delegateEvents.apply(this,arguments),s()(window).on("resize",this.resizeHandler),document.addEventListener("keydown",this.onKeyDown,!0)},undelegateEvents:function(){r.Z.prototype.undelegateEvents.apply(this,arguments),s()(window).off("resize",this.resizeHandler),document.removeEventListener("keydown",this.onKeyDown,!0)},getPromise:function(){return this._promise||(this._promise=(0,h.pJ)()),this._promise},open:function(){return-1!==m.indexOf(this)?(this.show(),this.setElement(this.$el),this.getPromise()):(this.render(),m.unshift(this),s()((0,i.Z)(this,"parent")).append(this.$el),this.setElement(this.$el),this.hide(),this.setHeightForMobileResolution(),window.requestAnimationFrame(function(){this.show()}.bind(this)),this.getPromise())},show:function(){this.$container.removeClass("hidden"),document.body.classList.add("--prevent-scroll"),d.K.add(this.identifier)},hide:function(){this.$container.addClass("hidden"),d.K.delete(this.identifier),d.K.isEmpty()&&document.body.classList.remove("--prevent-scroll")},setIsLoading:function(e){this.$container.toggleClass("popup-loading",e)},isHidden:function(){return this.$container.hasClass("hidden")},onKeyDown:function(e){27===e.keyCode&&this.options.shouldExitOnEscape&&d.K.getTopPopup()===this.identifier&&(this.cancel(),e.stopPropagation())},cancel:function(e){return this._close(),this.options.shouldRejectOnCancel?this.getPromise().reject(new l.ud(e)):this.getPromise().resolve({manuallyClosed:Boolean(e&&e.target)})},continue:function(e){return this._close(),this.getPromise().resolve(e)},_close:function(e,t){return this.$container.closest(".inline-popup").length>0?this:this.options.cleanOnClose||t?(this.hide(),(0,h.Vs)(500,(0,f.Z)(this.$el)).catch((()=>{})).then(this.remove.bind(this))):(this.hide(),g.resolve())},close:function(e){return this._close(null,e)},replaceWith:function(e,t){return this.close(t),e.open()},setHeightForMobileResolution:function(){if(!c.default.any)return;const e=this.$(".js-popup");(0,a.Nc)({width:window.innerWidth,breakpoint:"breakpointXSmall"})&&e.css({height:window.innerHeight})},resize:function(e){var t=this.$(".js-popup");e.width&&t.width(e.width),e.height&&t.height(e.height)},autofocus:function(){var e=window.scrollX,t=window.scrollY;this.$(".form-input:visible").length>0?(this.$(".form-input").eq(0).focus(),window.scrollTo(e,t)):(this.$(".btn-primary, .submit").focus(),window.scrollTo(e,t))},_removeElement:function(){this.$el.remove()},remove:function(){return this.undelegateEvents(),r.Z.prototype.remove.apply(this,arguments)},renderLayout:function(){this.$el.html(this.template()),this.$container=this.$(".popup-container")}
1,afterRender:function(){r.Z.prototype.afterRender.apply(this,arguments),this.renderChildren()}})},g6dK:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});n("rFQh");var o=n("lotc"),s=n("KDlt");const i=n("7e5f").Z.extend({displayName:"MessagePopup",optionTypes:{title:o.Z.string.isRequired,text:o.Z.string.isRequired,buttons:o.Z.shape({cancel:o.Z.bool,cancelClass:o.Z.string,cancelLabel:o.Z.string,close:o.Z.bool,closeClass:o.Z.string,closeLabel:o.Z.string,continue:o.Z.bool,continueClass:o.Z.string,continueLabel:o.Z.string,ok:o.Z.bool,okClass:o.Z.string,okLabel:o.Z.string,delete:o.Z.bool,deleteClass:o.Z.string,deleteLabel:o.Z.string}),popupClass:o.Z.string,safe:o.Z.bool,popupClosable:o.Z.bool,shouldRejectOnCancel:o.Z.bool},defaultOptions:{shouldRejectOnCancel:!0},events:{"reset form":"cancel","submit form":"continue"},template:function(){return s.Z.get("front/popups/message",{title:this.options.title,text:this.options.text,buttons:this.options.buttons,safe:this.options.safe,popupClass:this.options.popupClass,popupClosable:this.options.popupClosable})}})},"L/KY":(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});const o=n("/K0U").Z.extend({endpoint:function(){return"/messages"+(this.isNew()?"":`/${this.get("uid")}`)}});n("/Jvv");var s=n("lotc"),i=n("KDlt"),r=n("7e5f"),a=n("g6dK"),l=n("0qif");const u=r.Z.extend({displayName:"ContactPopup",optionTypes:{user:s.Z.shape({uid:s.Z.string.isRequired,displayName:s.Z.string.isRequired}).isRequired,body:s.Z.string},template:function(){return i.Z.get("front/popups/contact",{body:this.options.body})},events:{"reset form":"close","submit form":"applySettings","input .form-input":"onBodyChanged"},onBodyChanged:function(){const e=document.getElementById("messagebody");if(null!=e&&e.value){document.getElementById("submit").removeAttribute("disabled")}},applySettings:function(){new o({recipient:this.options.user.uid,body:this.$('[name="body"]').val()}).save().then(function(){this.replaceWith(new a.Z({title:"Your message has been sent!",text:i.Z.getFromString("Your message has been correctly sent by email to {{ username }}.",{username:this.options.user.displayName}),popupClosable:!0}))}.bind(this),function(e){429===e.status?(this.getPromise().reject(),this.replaceWith(new a.Z({title:"Message not sent",text:"Your message has not been sent because you have reached the limit for sending messages. Please wait a minute before trying again.",popupClosable:!0}))):this.replaceWith(new a.Z({title:"Unexpected error",text:`Please try again later or <a href="${(0,l.X)()}" target="_blank" rel="noopener noreferrer">contact us</a> if the error persists`,safe:!0,popupClosable:!0}))}.bind(this))}})},"/Jvv":(e,t,n)=>{n("nclc"),(window.nunjucksPrecompiled=window.nunjucksPrecompiled||{})["front/popups/contact.jinja"]={b_popup_content:function(e,t,n,o,s){var i="";try{n=n.push(!0),i+='\n\n    <div class="form-column-layout" data-action="process-login">\n\n        <div class="fields">\n\n            <div class="form-field">\n                <label class="form-label" for="body">Message</label>\n                <textarea class="form-input" name="body" id="messagebody" placeholder="Hi ! ..." >',i+=o.suppressValue(o.contextOrFrameLookup(t,n,"body"),e.opts.autoescape),s(null,i+="</textarea>\n            </div>\n\n        </div>\n\n    </div>\n\n")}catch(e){s(o.handleError(e,null,null))}},b_popup_footer:function(e,t,n,o,s){var i="";try{n=n.push(!0),s(null,i+='\n\n    <div class="actions">\n        <button class="button btn-medium btn-tertiary" type="reset">Cancel</button>\n        <button id="submit" class="button btn-medium btn-primary submit" type="submit" disabled>Continue</button>\n    </div>\n\n')}catch(e){s(o.handleError(e,null,null))}},root:function(e,t,n,o,s){var i="";try{var r=null;e.getTemplate("front/layouts/popup.jinja",!0,"front/popups/contact.jinja",!1,(function(a,l){if(a)s(a);else{for(var u in(r=l).blocks)t.addBlock(u,r.blocks[u]);var c,p;i+="\n\n",c="Contact",n.set("popupTitle",c,!0),n.topLevel&&t.setVariable("popupTitle",c),n.topLevel&&t.addExport("popupTitle",c),i+="\n",p="popup-contact",n.set("popupClass",p,!0),n.topLevel&&t.setVariable("popupClass",p),n.topLevel&&t.addExport("popupClass",p),i+="\n\n",(r?function(e,t,n,o,s){s("")}:t.getBlock("popup_content"))(e,t,n,o,(function(a,l){a?s(a):(i+=l,i+="\n\n",(r?function(e,t,n,o,s){s("")}:t.getBlock("popup_footer"))(e,t,n,o,(function(a,l){a?s(a):(i+=l,i+="\n",r?r.rootRenderFunc(e,t,n,o,s):s(null,i))})))}))}}))}catch(e){s(o.handleError(e,null,null))}}}}}]);
2//# sourceMappingURL=384da419c923909cd81443b7bb2513fd-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.