PageSourceSearch

https://colorit.jp/wp/wp-content/themes/colorit/assets/js/eat.bundle.js?ver=1.0.0

js colorit.jp collected 2026-10-05 23:03:55 UTC 11,641 bytes, 332 lines download raw bytes

vendor: 3,344 bytes, lines 1-86
1! function() {
2	var e = {
3			425: function(e, t, o) {
4				"use strict";
5
6				function n(e, t) {
7					for (var o = 0; o < t.length; o++) {
8						var n = t[o];
9						n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(e, n.key, n)
10					}
11				}
12
13				function i(e) {
14					return function(e) {
15						if (Array.isArray(e)) return a(e)
16					}(e) || function(e) {
17						if ("undefined" != typeof Symbol && Symbol.iterator in Object(e)) return Array.from(e)
18					}(e) || function(e, t) {
19						if (e) {
20							if ("string" == typeof e) return a(e, t);
21							var o = Object.prototype.toString.call(e).slice(8, -1);
22							return "Object" === o && e.constructor && (o = e.constructor.name), "Map" === o || "Set" === o ? Array.from(e) : "Arguments" === o || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o) ? a(e, t) : void 0
23						}
24					}(e) || function() {
25						throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")
26					}()
27				}
28
29				function a(e, t) {
30					(null == t || t > e.length) && (t = e.length);
31					for (var o = 0, n = new Array(t); o < t; o++) n[o] = e[o];
32					return n
33				}
34				o.r(t);
35				var r, s, l, d, c, u = (r = ["a[href]", "area[href]", 'input:not([disabled]):not([type="hidden"]):not([aria-hidden])', "select:not([disabled]):not([aria-hidden])", "textarea:not([disabled]):not([aria-hidden])", "button:not([disabled]):not([aria-hidden])", "iframe", "object", "embed", "[contenteditable]", '[tabindex]:not([tabindex^="-"])'], s = function() {
36					function e(t) {
37						var o = t.targetModal,
38							n = t.triggers,
39							a = void 0 === n ? [] : n,
40							r = t.onShow,
41							s = void 0 === r ? function() {} : r,
42							l = t.onClose,
43							d = void 0 === l ? function() {} : l,
44							c = t.openTrigger,
45							u = void 0 === c ? "data-micromodal-trigger" : c,
46							f = t.closeTrigger,
47							h = void 0 === f ? "data-micromodal-close" : f,
48							v = t.openClass,
49							m = void 0 === v ? "is-open" : v,
50							g = t.disableScroll,
51							p = void 0 !== g && g,
52							y = t.disableFocus,
53							b = void 0 !== y && y,
54							w = t.awaitCloseAnimation,
55							M = void 0 !== w && w,
56							E = t.awaitOpenAnimation,
57							S = void 0 !== E && E,
58							k = t.debugMode,
59							C = void 0 !== k && k;
60						! function(e, t) {
61							if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function")
62						}(this, e), this.modal = document.getElementById(o), this.config = {
63							debugMode: C,
64							disableScroll: p,
65							openTrigger: u,
66							closeTrigger: h,
67							openClass: m,
68							onShow: s,
69							onClose: d,
70							awaitCloseAnimation: M,
71							awaitOpenAnimation: S,
72							disableFocus: b
73						}, a.length > 0 && this.registerTriggers.apply(this, i(a)), this.onClick = this.onClick.bind(this), this.onKeydown = this.onKeydown.bind(this)
74					}
75					var t, o;
76					return t = e, (o = [{
77						key: "registerTriggers",
78						value: function() {
79							for (var e = this, t = arguments.length, o = new Array(t), n = 0; n < t; n++) o[n] = arguments[n];
80							o.filter(Boolean).forEach((function(t) {
81								t.addEventListener("click", (function(t) {
82									return e.showModal(t)
83								}))
84							}))
85						}
86					}, {
87						key: "showModal",
88						value: function() {
89							var e = this,
90								t = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : null;
91							if (this.activeElement = document.activeElement, this.modal.setAttribute("aria-hidden", "false"), this.modal.classList.add(this.config.openClass), this.scrollBehaviour("disable"), this.addEventListeners(), this.config.awaitOpenAnimation) {
92								var o = function t() {
93									e.modal.removeEventListener("animationend", t, !1), e.setFocusToFirstNode()
94								};
95								this.modal.addEventListener("animationend", o, !1)
96							} else this.setFocusToFirstNode();
97							this.config.onShow(this.modal, this.activeElement, t)
98						}
99					}, {
100						key: "closeModal",
101						value: function() {
102							var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : null,
103								t = this.modal;
104							if (this.modal.setAttribute("aria-hidden", "true"), this.removeEventListeners(), this.scrollBehaviour("enable"), this.activeElement && this.activeElement.focus && this.activeElement.focus(), this.config.onClose(this.modal, this.activeElement, e), this.config.awaitCloseAnimation) {
105								var o = this.config.openClass;
106								this.modal.addEventListener("animationend", (function e() {
107									t.classList.remove(o), t.removeEventListener("animationend", e, !1)
108								}), !1)
109							} else t.classList.remove(this.config.openClass)
110						}
111					}, {
112						key: "closeModalById",
113						value: function(e) {
114							this.modal = document.getElementById(e), this.modal && this.closeModal()
115						}
116					}, {
117						key: "scrollBehaviour",
118						value: function(e) {
119							if (this.config.disableScroll) {
120								var t = document.querySelector("body");
121								switch (e) {
122									case "enable":
123										Object.assign(t.style, {
124											overflow: ""
125										});
126										break;
127									case "disable":
128										Object.assign(t.style, {
129											overflow: "hidden"
130										})
131								}
132							}
133						}
134					}, {
135						key: "addEventListeners",
136						value: function() {
137							this.modal.addEventListener("touchstart", this.onClick), this.modal.addEventListener("click", this.onClick), document.addEventListener("keydown", this.onKeydown)
138						}
139					}, {
140						key: "removeEventListeners",
141						value: function() {
142							this.modal.removeEventListener("touchstart", this.onClick), this.modal.removeEventListener("click", this.onClick), document.removeEventListener("keydown", this.onKeydown)
143						}
144					}, {
vendor: 4,477 bytes, lines 145-270
145						key: "onClick",
146						value: function(e) {
147							(e.target.hasAttribute(this.config.closeTrigger) || e.target.parentNode.hasAttribute(this.config.closeTrigger)) && (e.preventDefault(), e.stopPropagation(), this.closeModal(e))
148						}
149					}, {
150						key: "onKeydown",
151						value: function(e) {
152							27 === e.keyCode && this.closeModal(e), 9 === e.keyCode && this.retainFocus(e)
153						}
154					}, {
155						key: "getFocusableNodes",
156						value: function() {
157							var e = this.modal.querySelectorAll(r);
158							return Array.apply(void 0, i(e))
159						}
160					}, {
161						key: "setFocusToFirstNode",
162						value: function() {
163							var e = this;
164							if (!this.config.disableFocus) {
165								var t = this.getFocusableNodes();
166								if (0 !== t.length) {
167									var o = t.filter((function(t) {
168										return !t.hasAttribute(e.config.closeTrigger)
169									}));
170									o.length > 0 && o[0].focus(), 0 === o.length && t[0].focus()
171								}
172							}
173						}
174					}, {
175						key: "retainFocus",
176						value: function(e) {
177							var t = this.getFocusableNodes();
178							if (0 !== t.length)
179								if (t = t.filter((function(e) {
180										return null !== e.offsetParent
181									})), this.modal.contains(document.activeElement)) {
182									var o = t.indexOf(document.activeElement);
183									e.shiftKey && 0 === o && (t[t.length - 1].focus(), e.preventDefault()), !e.shiftKey && t.length > 0 && o === t.length - 1 && (t[0].focus(), e.preventDefault())
184								} else t[0].focus()
185						}
186					}]) && n(t.prototype, o), e
187				}(), l = null, d = function(e) {
188					if (!document.getElementById(e)) return console.warn("MicroModal: ❗Seems like you have missed %c'".concat(e, "'"), "background-color: #f8f9fa;color: #50596c;font-weight: bold;", "ID somewhere in your code. Refer example below to resolve it."), console.warn("%cExample:", "background-color: #f8f9fa;color: #50596c;font-weight: bold;", '<div class="modal" id="'.concat(e, '"></div>')), !1
189				}, c = function(e, t) {
190					if (function(e) {
191							e.length <= 0 && (console.warn("MicroModal: ❗Please specify at least one %c'micromodal-trigger'", "background-color: #f8f9fa;color: #50596c;font-weight: bold;", "data attribute."), console.warn("%cExample:", "background-color: #f8f9fa;color: #50596c;font-weight: bold;", '<a href="#" data-micromodal-trigger="my-modal"></a>'))
192						}(e), !t) return !0;
193					for (var o in t) d(o);
194					return !0
195				}, {
196					init: function(e) {
197						var t = Object.assign({}, {
198								openTrigger: "data-micromodal-trigger"
199							}, e),
200							o = i(document.querySelectorAll("[".concat(t.openTrigger, "]"))),
201							n = function(e, t) {
202								var o = [];
203								return e.forEach((function(e) {
204									var n = e.attributes[t].value;
205									void 0 === o[n] && (o[n] = []), o[n].push(e)
206								})), o
207							}(o, t.openTrigger);
208						if (!0 !== t.debugMode || !1 !== c(o, n))
209							for (var a in n) {
210								var r = n[a];
211								t.targetModal = a, t.triggers = i(r), l = new s(t)
212							}
213					},
214					show: function(e, t) {
215						var o = t || {};
216						o.targetModal = e, !0 === o.debugMode && !1 === d(e) || (l && l.removeEventListeners(), (l = new s(o)).showModal())
217					},
218					close: function(e) {
219						e ? l.closeModalById(e) : l.closeModal()
220					}
221				});
222				"undefined" != typeof window && (window.MicroModal = u), u.init({
223					onShow: function(e) {
224						return console.info("${modal.id} is shown")
225					},
226					onClose: function(e) {
227						return console.info("${modal.id} is hidden")
228					},
229					openTrigger: "data-custom-open",
230					closeTrigger: "data-custom-close",
231					openClass: "is-open",
232					disableScroll: !1,
233					disableFocus: !1,
234					awaitOpenAnimation: !0,
235					awaitCloseAnimation: !0,
236					debugMode: !0
237				})
238			},
239			28: function() {
240				setTimeout((function() {
241					new Splide("#eatSlider01", {
242						autoplay: !0,
243						interval: 2500,
244						pauseOnHover: !1,
245						type: "fade",
246						rewind: !0,
247						speed: 1500,
248						padding: "0%",
249						perPage: 1,
250						perMove: 1,
251						wheel: !1,
252						mediaQuery: "min",
253						trimSpace: !1,
254						arrows: !0,
255						pagination: !1,
256						updateOnMove: !1
257					}).mount()
258				}), 1e3), setTimeout((function() {
259					new Splide("#eatSlider02", {
260						// autoplay: !0,
261						interval: 2500,
262						pauseOnHover: !1,
263						type: "fade",
264						rewind: !0,
265						speed: 1500,
266						padding: "0%",
267						perPage: 1,
268						perMove: 1,
269						wheel: !1,
270						mediaQuery: "min",
271						trimSpace: !1,
272						arrows: !0,
273						pagination: !1,
274						updateOnMove: !1
275					}).mount()
276				}), 1e3), setTimeout((function() {
277					new Splide("#eatSlider03", {
278						// autoplay: !0,
279						interval: 2500,
280						pauseOnHover: !1,
281						type: "fade",
282						rewind: !0,
283						speed: 1500,
284						padding: "0%",
285						perPage: 1,
286						perMove: 1,
287						wheel: !1,
288						mediaQuery: "min",
289						trimSpace: !1,
290						arrows: !0,
291						pagination: !1,
292						updateOnMove: !1
293					}).mount()
294				}), 1e3), setTimeout((function() {
295					new Splide("#eatSlider04", {
296						autoplay: !1,
297						interval: 2500,
298						pauseOnHover: !1,
299						type: "fade",
300						rewind: !0,
301						speed: 1500,
302						padding: "0%",
303						perPage: 1,
304						perMove: 1,
305						wheel: !1,
306						mediaQuery: "min",
307						trimSpace: !1,
308						arrows: !0,
309						pagination: !1,
310						updateOnMove: !1
311					}).mount()
312				}), 1e3)
313			}
314		},
315		t = {};
316
317	function o(n) {
318		var i = t[n];
319		if (void 0 !== i) return i.exports;
320		var a = t[n] = {
321			exports: {}
322		};
323		return e[n](a, a.exports, o), a.exports
324	}
325	o.r = function(e) {
326		"undefined" != typeof Symbol && Symbol.toStringTag && Object.defineProperty(e, Symbol.toStringTag, {
327			value: "Module"
328		}), Object.defineProperty(e, "__esModule", {
329			value: !0
330		})
331	}, o(28), o(425)
332}();

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.