PageSourceSearch

https://nationalmuseumofmexicanart.org/js/617.js

js nationalmuseumofmexicanart.org collected 2026-10-01 10:45:44 UTC 6,149 bytes, 1 lines download raw bytes

1(self.webpackChunk=self.webpackChunk||[]).push([[617],{174:(e,t,i)=>{"use strict";i.d(t,{Z:()=>o});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)(),r=i.indexOf(s),a=t.exec(e),o=!!a&&a[0],l=a?e.slice(0,-1):e,d=i.indexOf(l);return d<0?(console.warn("Unrecognized breakpoint. Supported breakpoints are: "+i.join(", ")),!1):"+"===o&&r>=d||"-"===o&&r<=d||!o&&e===s};const r=function(e){for(var t in e)e.hasOwnProperty(t)&&delete e[t]};function a(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}a.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),r(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 o=(e,t,i={})=>{const n=function(...e){a.apply(this,e)},s=[],r={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),r[e]={value:t[e],writable:!0}})),n.prototype=Object.create(a.prototype,r),n}},617:(e,t,i)=>{"use strict";function n(e,t){var i="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!i){if(Array.isArray(e)||(i=function(e,t){if(!e)return;if("string"==typeof e)return s(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 s(e,t)}(e))||t&&e&&"number"==typeof e.length){i&&(e=i);var n=0,r=function(){};return{s:r,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,l=!1;return{s:function(){i=i.call(e)},n:function(){var e=i.next();return o=e.done,e},e:function(e){l=!0,a=e},f:function(){try{o||null==i.return||i.return()}finally{if(l)throw a}}}}function s(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}i.r(t),i.d(t,{default:()=>r});const r=(0,i(174).Z)("Newsletter",{observerCallback:function(e,t){var i,s=n(e);try{for(s.s();!(i=s.n()).done;){var r=i.value;
1"childList"===r.type&&(this.$input=r.target.querySelector('input[type="email"]'),this.$input&&this.add())}}catch(e){s.e(e)}finally{s.f()}},add:function(){this.$input.setAttribute("placeholder","Email Address"),this.observer.disconnect()}},{init:function(){if(window._ctct_m="a8de2ead6fc0f5433ab4177c50a3190f",!document.querySelector("#signupScript")){var e=document.createElement("script");e.src="https://static.ctctcdn.com/js/signup-form-widget/current/signup-form-widget.min.js",e.crossorigin="anonymous",e.id="signupScript",e.async=!0,e.defer=!0,document.body.appendChild(e)}this.$input=!1,this.observer=new MutationObserver(this.observerCallback),this.observer.observe(this.getChild("wrapper"),{attributes:!1,childList:!0,subtree:!0})},enabled:function(){},resized:function(){},mediaQueryUpdated:function(){},disabled:function(){},destroy:function(){}})}}]);

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.