PageSourceSearch

https://nationalmuseumofmexicanart.org/js/196.js

js nationalmuseumofmexicanart.org collected 2026-09-24 09:15:34 UTC 8,658 bytes, 1 lines download raw bytes

1(self.webpackChunk=self.webpackChunk||[]).push([[196],{174:(e,t,i)=>{"use strict";i.d(t,{Z:()=>a});var n=i(615);const s=function(e){if(!e)return console.error("You need to pass a breakpoint name!"),!1;let t=new RegExp("\\+$|\\-$"),i=["xs","md","lg","xl","xxl"];window.A17&&window.A17.breakpoints&&(Array.isArray(window.A17.breakpoints)?i=window.A17.breakpoints:console.warn("A17.breakpoints should be an array. Using defaults."));let s=(0,n.Z)(),o=i.indexOf(s),r=t.exec(e),a=!!r&&r[0],l=r?e.slice(0,-1):e,d=i.indexOf(l);return d<0?(console.warn("Unrecognized breakpoint. Supported breakpoints are: "+i.join(", ")),!1):"+"===a&&o>=d||"-"===a&&o<=d||!a&&e===s};const o=function(e){for(var t in e)e.hasOwnProperty(t)&&delete e[t]};function r(e,t={}){if(!(e&&e instanceof Element))throw new Error("Node argument is required");return this.$node=e,this.options=Object.assign({},t.options||{}),this.__subBehaviors=[],this.__isEnabled=!1,this.__children=t.children,this.customMethodNames.forEach((e=>{this[e]=this[e].bind(this)})),this._binds={},this._data=new Proxy(this._binds,{set:(e,t,i)=>(this.updateBinds(t,i),e[t]=i,!0)}),this}r.prototype=Object.freeze({updateBinds(e,t){this.$node.querySelectorAll("[data-"+this.name.toLowerCase()+"-bindel*="+e+"]").forEach((e=>{e.innerHTML=t}));this.$node.querySelectorAll("[data-"+this.name.toLowerCase()+'-bindattr*="'+e+':"]').forEach((i=>{i.dataset[this.name.toLowerCase()+"Bindattr"].split(",").forEach((n=>{(n=n.split(":"))[0]===e&&("class"===n[1]?(this._binds[e]!==t&&i.classList.remove(this._binds[e]),t&&i.classList.add(t)):i.setAttribute(n[1],t))}))}))},init(){const e=new RegExp("^data-"+this.name+"-(.*)","i");for(let t=0;t<this.$node.attributes.length;t++){const i=this.$node.attributes[t],n=e.exec(i.nodeName);null!=n&&n.length>=2&&(this.options[n[1]]&&console.warn(`Ignoring ${n[1]} option, as it already exists on the ${name} behavior. Please choose another name.`),this.options[n[1]]=i.value)}null!=this.lifecycle.init&&this.lifecycle.init.call(this),null!=this.lifecycle.resized&&(this.__resizedBind=this.__resized.bind(this),window.addEventListener("resized",this.__resizedBind)),(null!=this.lifecycle.mediaQueryUpdated||this.options.media)&&(this.__mediaQueryUpdatedBind=this.__mediaQueryUpdated.bind(this),window.addEventListener("mediaQueryUpdated",this.__mediaQueryUpdatedBind)),this.options.media?this.__toggleEnabled():this.enable()},destroy(){!0===this.__isEnabled&&this.disable(),null!=this.lifecycle.destroy&&this.lifecycle.destroy.call(this),this.__subBehaviors.forEach((e=>{e.destroy()})),null!=this.lifecycle.resized&&window.removeEventListener("resized",this.__resizedBind),(null!=this.lifecycle.mediaQueryUpdated||this.options.media)&&window.removeEventListener("mediaQueryUpdated",this.__mediaQueryUpdatedBind),o(this)},getChild(e,t,i=!1){return null==t&&(t=this.$node),null!=this.__children&&null!=this.__children[e]?this.__children[e]:t[i?"querySelectorAll":"querySelector"]("[data-"+this.name.toLowerCase()+"-"+e.toLowerCase()+"]")},getChildren(e,t){return this.getChild(e,t,!0)},isEnabled(){return this.__isEnabled},enable(){this.__isEnabled=!0,null!=this.lifecycle.enabled&&this.lifecycle.enabled.call(this)},disable(){this.__isEnabled=!1,null!=this.lifecycle.disabled&&this.lifecycle.disabled.call(this)},addSubBehavior(e,t,i={}){const n=new e(t,i);return n.behaviorName=this.name,n.init(),this.__subBehaviors.push(n),n},__toggleEnabled(){const e=s(this.options.media);e&&!this.__isEnabled?this.enable():!e&&this.__isEnabled&&this.disable()},__mediaQueryUpdated(){null!=this.lifecycle.mediaQueryUpdated&&this.lifecycle.mediaQueryUpdated.call(this),this.options.media&&this.__toggleEnabled()},__resized(){null!=this.lifecycle.resized&&this.lifecycle.resized.call(this)}});const a=(e,t,i={})=>{const n=function(...e){r.apply(this,e)},s=[],o={name:{get(){return this.behaviorName}},behaviorName:{value:e,writable:!0},lifecycle:{value:i},customMethodNames:{value:s}};return Object.keys(t).forEach((e=>{s.push(e),o[e]={value:t[e],writable:!0}})),n.prototype=Object.create(r.prototype,o),n}},196:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>r});var n=i(174);i(509);function s(e){return function(e){if(Array.isArray(e))return o(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return o(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);"Object"===i&&e.constructor&&(i=e.constructor.name);if("Map"===i||"Set"===i)return Array.from(e);if("Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return o(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i<t;i++)n[i]=e[i];return n}const r=(0,n.Z)("SocialDropdown",{toggle:function(e){e.preventDefault(),e.stopPropagation(),this._data.isActive?this.close():this.open()},close:function(e){var t;e&&e.stopPropagation(),this._data.isActive=!1,this.$trigger.setAttribute("aria-expanded","fal
1se"),this.$trigger.classList.remove("bg-darkest","text-inverse"),(t=this.$content.classList).add.apply(t,s(this._data.activeClasses))},open:function(e){var t;document.dispatchEvent(new CustomEvent("SocialDropdown:closeAll")),this._data.isActive=!0,this.$trigger.setAttribute("aria-expanded","true"),this.$trigger.classList.add("bg-darkest","text-inverse"),(t=this.$content.classList).remove.apply(t,s(this._data.activeClasses))},handleEsc:function(e){"Escape"===e.key&&this.close()}},{init:function(){this._data.isActive=!1,this._data.activeClasses=["opacity-0","invisible","pointer-events-none"],this.$trigger=this.getChild("trigger"),this.$content=this.getChild("content"),this.$trigger.addEventListener("click",this.toggle,!1),document.addEventListener("keyup",this.handleEsc,!1),document.addEventListener("click",this.close),document.addEventListener("SocialDropdown:closeAll",this.close,!1)},enabled:function(){},resized:function(){},mediaQueryUpdated:function(){},disabled:function(){},destroy:function(){this.$trigger.removeEventListener("click",this.toggle),document.removeEventListener("keyup",this.handleEsc),document.removeEventListener("click",this.close),document.removeEventListener("SocialDropdown:closeAll",this.close)}})},509:(e,t,i)=>{"use strict";i.d(t,{Qp:()=>v,tG:()=>f});var n=!1;if("undefined"!=typeof window){var s={get passive(){n=!0}};window.addEventListener("testPassive",null,s),window.removeEventListener("testPassive",null,s)}var o="undefined"!=typeof window&&window.navigator&&window.navigator.platform&&(/iP(ad|hone|od)/.test(window.navigator.platform)||"MacIntel"===window.navigator.platform&&window.navigator.maxTouchPoints>1),r=[],a=!1,l=-1,d=void 0,c=void 0,h=function(e){return r.some((function(t){return!(!t.options.allowTouchMove||!t.options.allowTouchMove(e))}))},u=function(e){var t=e||window.event;return!!h(t.target)||(t.touches.length>1||(t.preventDefault&&t.preventDefault(),!1))},p=function(){void 0!==c&&(document.body.style.paddingRight=c,c=void 0),void 0!==d&&(document.body.style.overflow=d,d=void 0)},v=function(e,t){if(e){if(!r.some((function(t){return t.targetElement===e}))){var i={targetElement:e,options:t||{}};r=[].concat(function(e){if(Array.isArray(e)){for(var t=0,i=Array(e.length);t<e.length;t++)i[t]=e[t];return i}return Array.from(e)}(r),[i]),o?(e.ontouchstart=function(e){1===e.targetTouches.length&&(l=e.targetTouches[0].clientY)},e.ontouchmove=function(t){1===t.targetTouches.length&&function(e,t){var i=e.targetTouches[0].clientY-l;!h(e.target)&&(t&&0===t.scrollTop&&i>0||function(e){return!!e&&e.scrollHeight-e.scrollTop<=e.clientHeight}(t)&&i<0?u(e):e.stopPropagation())}(t,e)},a||(document.addEventListener("touchmove",u,n?{passive:!1}:void 0),a=!0)):function(e){if(void 0===c){var t=!!e&&!0===e.reserveScrollBarGap,i=window.innerWidth-document.documentElement.clientWidth;t&&i>0&&(c=document.body.style.paddingRight,document.body.style.paddingRight=i+"px")}void 0===d&&(d=document.body.style.overflow,document.body.style.overflow="hidden")}(t)}}else console.error("disableBodyScroll unsuccessful - targetElement must be provided when calling disableBodyScroll on IOS devices.")},f=function(e){e?(r=r.filter((function(t){return t.targetElement!==e})),o?(e.ontouchstart=null,e.ontouchmove=null,a&&0===r.length&&(document.removeEventListener("touchmove",u,n?{passive:!1}:void 0),a=!1)):r.length||p()):console.error("enableBodyScroll unsuccessful - targetElement must be provided when calling enableBodyScroll on IOS devices.")}}}]);

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.