PageSourceSearch

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

js sketchfab.com collected 2026-09-24 08:25:23 UTC 11,535 bytes, 2 lines download raw bytes

1(self.webpackChunksketchfab=self.webpackChunksketchfab||[]).push([[4511],{yTkX:(t,e,n)=>{"use strict";n.d(e,{IO:()=>d,L0:()=>p,PF:()=>s,QG:()=>h,UW:()=>r,eF:()=>a,wv:()=>c});var o=n("HPk7"),i=n("g/7r");function s(t){return t.preventDefault(),t}function r(t){return t.stopPropagation(),t}function p(t){return{eventName:t.split(" ")[0],selector:t.split(" ").slice(1).join(" ")}}function c(t){const e=t.originalEvent||t;return{x:e.type.match(/^touch/)?e.changedTouches[0]?e.changedTouches[0].pageX:0:e.clientX,y:e.type.match(/^touch/)?e.changedTouches[0]?e.changedTouches[0].pageY:0:e.clientY}}function a(t,e){return e.velocity=function(t,e){const n=c(e),o=t?c(t):n;return{x:n.x-o.x,y:n.y-o.y}}(t,e),e}const l=t=>{const{x:e,y:n}=c(t);return t.dragX=e,t.dragY=n,t},u=(t,e,n)=>function(s){let r=!1,p=!1;const c=(0,o.Z)((0,i.Rp)(a,void 0,(t=>{r=!0,p||n.onDrag(l(t))})),16),u=o=>{p=!0,r&&n.onDragEnd(l(o)),window.removeEventListener(t,c),window.removeEventListener(e,u)};window.addEventListener(t,c),window.addEventListener(e,u),n.onDragStart(l(s))},h=({onDrag:t,onDragStart:e=(t=>t),onDragEnd:n=(t=>t)}={})=>({onMouseDown:u("mousemove","mouseup",{onDrag:t,onDragStart:e,onDragEnd:n}),onTouchStart:u("touchmove","touchend",{onDrag:t,onDragStart:e,onDragEnd:n})}),d=t=>e=>{13===(t=>t.which||t.keyCode)(e)&&t(e)}},isBB:(t,e,n)=>{"use strict";n.d(e,{Z:()=>r});var o=n("QbBG"),i=n("KDlt"),s=n("lotc");n("VHLl");const r=o.Z.extend({displayName:"Popup",optionTypes:{child:s.Z.component.isRequired,title:s.Z.string,className:s.Z.string,isClosable:s.Z.bool,width:s.Z.number},defaultOptions:{className:"",isClosable:!0},state:{},events:{},template:function(){const{width:t,className:e,isClosable:n,title:o,child:s}=this.options;return i.Z.getFromMacro("front/macros/components/molecules/popup","popup",[{className:e,isClosable:n,width:t,title:o,components:this.createChildrenComponents({child:s})}])}})},"7e5f":(t,e,n)=>{"use strict";n.d(e,{Z:()=>w});var o=n("Hjnd"),i=n.n(o),s=n("jQDz"),r=n("nv4P"),p=n("X40V"),c=n("RyS8"),a=n("yTkX"),l=n("R2Pi"),u=n("lotc"),h=n("XXsV"),d=n("lrhy"),m=n("kAIv"),f=n("Oyie");const g=[],w=r.Z.extend({parent:"body",el:'<article data-element="popup" />',optionTypes:{cleanOnClose:u.Z.bool,shouldExitOnClickOutside:u.Z.bool,shouldExitOnEscape:u.Z.bool,shouldRejectOnCancel:u.Z.bool},defaultOptions:{cleanOnClose:!0,shouldExitOnClickOutside:!0,shouldExitOnEscape:!0,shouldRejectOnCancel:!1},events:{'click [data-action="close"]':"cancel","click button:not([type])":a.PF,"mousedown .popup-container":"onMouseDown","mouseup .popup-container":"onMouseUp"},onMouseDown:function(t){this.lastMouseDownTarget=t.target},onMouseUp:function(t){this.options.shouldExitOnClickOutside&&t.currentTarget===this.lastMouseDownTarget&&(this.cancel(t),delete this.lastMouseDownTarget)},constructor:function(){this.onKeyDown=this.onKeyDown.bind(this),this.identifier=Symbol(Math.random()),this.resizeHandler=function(){i().each(g,(function(t,e){e.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),i()(window).on("resize",this.resizeHandler),document.addEventListener("keydown",this.onKeyDown,!0)},undelegateEvents:function(){r.Z.prototype.undelegateEvents.apply(this,arguments),i()(window).off("resize",this.resizeHandler),document.removeEventListener("keydown",this.onKeyDown,!0)},getPromise:function(){return this._promise||(this._promise=(0,d.pJ)()),this._promise},open:function(){return-1!==g.indexOf(this)?(this.show(),this.setElement(this.$el),this.getPromise()):(this.render(),g.unshift(this),i()((0,s.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"),h.K.add(this.identifier)},hide:function(){this.$container.addClass("hidden"),h.K.delete(this.identifier),h.K.isEmpty()&&document.body.classList.remove("--prevent-scroll")},setIsLoading:function(t){this.$container.toggleClass("popup-loading",t)},isHidden:function(){return this.$container.hasClass("hidden")},onKeyDown:function(t){27===t.keyCode&&this.options.shouldExitOnEscape&&h.K.getTopPopup()===this.identifier&&(this.cancel(),t.stopPropagation())},cancel:function(t){return this._close(),this.options.shouldRejectOnCancel?this.getPromise().reject(new c.ud(t)):this.getPromise().resolve({manuallyClosed:Boolean(t&&t.target)})},continue:function(t){return this._close(),this.getPromise().resolve(t)},_close:function(t,e){return this.$container.closest(".inline-popup").length>0?this:this.options.cleanOnClose||e?(this.hide(),(0,d.Vs)(500,(0,m.Z)(this.$el)).catch((()=>{})).then(this.remove.bind(this))):(this.hide(),f.resolve())},close:function(t){return this._close(null,t)},replaceWith:function(t,e){return this.close(e),t.open()},setHeightForMobileResolution:function(){if(!l.default.any)return;const t=this.$(".js-popup");(0,p.Nc)({width:window.innerWidth,breakpoint:"breakpointXSmall"})&&t.css({height:window.innerHeight})},resize:function(t){var e=this.$(".js-popup");t.width&&e.width(t.width),t.height&&e.height(t.height)},autofocus:function(){var t=window.scrollX,e=window.scrollY;this.$(".form-input:visible").length>0?(this.$(".form-input").eq(0).focus(),window.scrollTo(t,e)):(this.$(".btn-primary, .submit").focus(),window.scrollTo(t,e))},_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()}})},"Qbh+":(t,e,n)=>{"use strict";n.d(e,{Z:()=>l});var o=n("NQ1V"),i=n("QbBG"),s=n("KDlt"),r=n("7e5f"),p=n("E9rg");function c(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,o)}return n}function a(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?c(Object(n),!0).forEach((function(e){(0,o.Z)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function l(t,e={}){return r.Z.extend({displayName:"Popup",mixins:[p.Z],defaultOptions:a(a({},t.prototype.defaultOptions),e),children:{componentWrapper:{selector:".js-popup-content",viewClass:i.Z.extend({displayName:`PopupWrapper(${t.prototype.displayName})`,template:function(){return s.Z.getFromString("{{ components.child | component }}",{components:this.createChildrenComponents({child:{viewClass:t,options:this.options}})})}}),options:function(){return a(a({},this.options),{},{popup:{continue:this.continue.bind(this),cancel:this.cancel.bind(this),open:this.open.bind(this),close:this.close.bind(this),remove:this.remove.bind(this),show:this.show.bind(this),hide:this.hide.bind(this),resize:this.resize.bind(this),autofocus:this.autofocus.bind(this),isHidden:this.isHidden.bind(this)}})}}},template:function(){return s.Z.getFromString('\n                <div class="popup-container">\n                    <div class="popup-overlay"></div>\n                    <div class="js-popup js-popup-content c-popup__container"></div>\n                </div>\n                ',{})}})}},"gZ/N":(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>l});var o=n("QbBG"),i=n("KDlt"),s=n("g/7r"),r=n("Qbh+"),p=n("lotc"),c=n("isBB");const a=o.Z.extend({displayName:"MessagePopupContent",template:function(){const{buttons:t=[],children:e=[]}=this.options;return i.Z.getFromString('\n                <div class="c-message-popup">\n                    <div class="c-message-popup__content">\n                        {{ options.html | safe }}\n                        {% if options.text %}\n                            <p class="c-message-popup__text">{{ options.text }}</p>\n                        {% endif %}\n                        {{ components.children | component }}\n                    </div>\n                    {% if components.buttons.length %}\n                        <div class="c-message-popup__buttons">\n                            {{ components.buttons | component }}\n                        </div>\n                    {% endif %}\n                </div>\n                ',{options:this.options,components:this.createChildrenComponents({buttons:t,children:e})})}}),l=(0,r.Z)(o.Z.extend({displayName:"MessagePopup",optionTypes:{title:p.Z.string.isRequired,popup:p.Z.object.isRequired,text:p.Z.string,html:p.Z.string,children:p.Z.component,width:p.Z.number,renderButtons:p.Z.func},defaultOptions:{title:"",text:"",html:"",width:450,shouldRejectOnCancel:!0,renderButtons:s.EI},template:function(){return i.Z.getFromString("{{ components.popup | component }}",{components:this.createChildrenComponents({popup:{viewClass:c.Z,options:{title:this.options.title,width:this.options.width,child:{viewClass:a,options:{html:this.options.html,text:this.options.text,children:this.options.children,buttons:this.options.renderButtons(this.options.popup)}}}}})})}}))},VHLl:()=>{(window.nunjucksPrecompiled=window.nunjucksPrecompiled||{})["front/macros/components/molecules/popup.jinja"]={root:function(t,e,n,o,i){var s="";try{var r=o.makeMacro([],["options"],(function(i){var s=n;n=new o.Frame,(i=i||{}).hasOwnProperty("caller")&&n.set("caller",i.caller),n.set("options",i.hasOwnProperty("options")?i.options:{});var r="";return r+='\n    <section\n        style="',r+=o.suppressValue(o.memberLookup(o.contextOrFrameLookup(e,n,"options"),"width")?"width:"+o.memberLookup(o.c
1ontextOrFrameLookup(e,n,"options"),"width")+"px":"",t.opts.autoescape),r+='"\n        class="c-popup ',r+=o.suppressValue(o.memberLookup(o.contextOrFrameLookup(e,n,"options"),"className"),t.opts.autoescape),r+='">\n        ',o.memberLookup(o.contextOrFrameLookup(e,n,"options"),"title")&&(r+='\n            <header class="c-popup__header">\n                <div class="c-popup__title">\n                    ',r+=o.suppressValue(o.memberLookup(o.contextOrFrameLookup(e,n,"options"),"title"),t.opts.autoescape),r+='\n                </div>\n\n                <div class="c-popup__actions">\n                    ',o.memberLookup(o.contextOrFrameLookup(e,n,"options"),"isClosable")&&(r+='\n                        <a data-selenium="close-popup" class="c-popup__close" data-action="close" arial-label="Close popup">\n                            <i class="fa-regular fa-times"></i>\n                        </a>\n                    '),r+="\n                </div>\n            </header>\n        "),r+='\n\n        <div class="c-popup__content c-popup__full-height">\n            ',r+=o.suppressValue(t.getFilter("component").call(e,o.memberLookup(o.memberLookup(o.contextOrFrameLookup(e,n,"options"),"components"),"child")),t.opts.autoescape),r+="\n        </div>\n    </section>\n",n=s,new o.SafeString(r)}));e.addExport("popup"),e.setVariable("popup",r),i(null,s+="\n")}catch(t){i(o.handleError(t,null,null))}}}}}]);
2//# sourceMappingURL=3a3194b63790004587e652f12af11580-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.