PageSourceSearch

https://www.strangedazeindeed.com/wp-content/plugins/3d-image-gallery/dist/script.js?ver=1.0.5

js strangedazeindeed.com collected 2026-09-25 14:44:17 UTC 9,978 bytes, 2 lines download raw bytes

1!function(){"use strict";var e=wp.element,t=function(e){var t=e.attributes,n=e.clientId,l=t.gallery,a=t.itemHeight,r=t.columnGap,c=t.rowGap,o=t.background,i=t.shadow,u=t.hoverShadow,s=t.titleTypo,m=t.subtitleTypo;return wp.element.createElement(wp.element.Fragment,null,wp.element.createElement("style",{dangerouslySetInnerHTML:{__html:"\n\t\t\t".concat(null!=s&&s.googleFontLink?"@import url(".concat(null==s?void 0:s.googleFontLink,");"):"","\n\t\t\t").concat(null!=m&&m.googleFontLink?"@import url(".concat(null==m?void 0:m.googleFontLink,");"):"","\n\n\t\t\t#bigbImageGallery-").concat(n," .bigbImageGallery .galleryItems{\n\t\t\t\tgrid-gap: ").concat(c," ").concat(r,";\n\t\t\t}\n\t\t\t#bigbImageGallery-").concat(n," .bigbImageGallery .galleryItem{\n\t\t\t\theight: ").concat(a,";\n\t\t\t\t").concat((null==o?void 0:o.styles)||"background: linear-gradient(#ff5f6d, #ffc371);","\n\t\t\t\tbox-shadow: ").concat((null==i?void 0:i.styles)||"0 4px 4px 0 #000a1459",";\n\t\t\t}\n\t\t\t#bigbImageGallery-").concat(n," .bigbImageGallery .galleryItem:hover, #bigbImageGallery-").concat(n," .bigbImageGallery .galleryItem.nowEditing{\n\t\t\t\tbox-shadow: ").concat((null==u?void 0:u.styles)||"0 12px 20px -12px #000a14cc",";\n\t\t\t}\n\t\t\t#bigbImageGallery-").concat(n," .bigbImageGallery .galleryHeader h3{\n\t\t\t\t").concat((null==s?void 0:s.styles)||"font-size: 48px;","\n\t\t\t}\n\t\t\t#bigbImageGallery-").concat(n," .bigbImageGallery .galleryHeader h5{\n\t\t\t\t").concat((null==m?void 0:m.styles)||"font-size: 20px;","\n\t\t\t}\n\t\t\t").replace(/\s+/g," ")}}),wp.element.createElement("style",null,null==l?void 0:l.map((function(e,t){var l=e.colors,a=e.btnColors,r="#bigbImageGallery-".concat(n," .bigbImageGallery #galleryItem-").concat(t," .galleryHeader"),c="#bigbImageGallery-".concat(n," .bigbImageGallery #galleryItem-").concat(t," .galleryFooter"),o=a.color,i="gradient"===a.bgType?a.gradient:a.bg;return"\n\t\t\t\t\t".concat(r,"::before,\n\t\t\t\t\t").concat(c,"::before{\n\t\t\t\t\t\tbackground: ").concat("gradient"===l.bgType?l.gradient:l.bg,";\n\t\t\t\t\t}\n\t\t\t\t\t").concat(r," h3,\n\t\t\t\t\t").concat(r," h5{\n\t\t\t\t\t\tcolor: ").concat(l.color,";\n\t\t\t\t\t}\n\n\t\t\t\t\t").concat(r," .btnClose{\n\t\t\t\t\t\tcolor: ").concat(o,";\n\t\t\t\t\t\tbackground: ").concat(i,";\n\t\t\t\t\t}\n\t\t\t\t\t").concat(c," nav.controls .control{\n\t\t\t\t\t\tbackground: ").concat(i,";\n\t\t\t\t\t}\n\t\t\t\t\t").concat(c," nav.controls .controlDot{\n\t\t\t\t\t\tbackground: ").concat(i,";\n\t\t\t\t\t}\n\t\t\t\t\t").concat(c," nav.controls .controlDot::after{\n\t\t\t\t\t\tbackground-color: ").concat(o,";\n\t\t\t\t\t}\n\t\t\t\t\t").concat(c," nav.controls .controlArrow{\n\t\t\t\t\t\tcolor: ").concat(o,";\n\t\t\t\t\t}\n\t\t\t\t").replace(/\s+/g," ")}))))};function n(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var l,a,r=[],c=!0,o=!1;try{for(n=n.call(e);!(c=(l=n.next()).done)&&(r.push(l.value),!t||r.length!==t);c=!0);}catch(e){o=!0,a=e}finally{try{c||null==n.return||n.return()}finally{if(o)throw a}}return r}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return l(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,l=new Array(t);n<t;n++)l[n]=e[n];return l}var a=function(t,n,l){var a=(0,e.useRef)(),r=(0,e.useCallback)((function(){return clearInterval(a.current)}),[]),c=(0,e.useCallback)((function(e){var l=function(){a.current=setInterval(t,n)};r(),+e>0?setTimeout(l,e):l()}),[]);return(0,e.useEffect)((function(){return c(l),r}),[]),{intervalRef:a,start:c,stop:r}},r=function(e){var t=e.images,n=e.imgIndex,l=e.wrapper,a=e.container,r=e.loadCount;return wp.element.createElement("div",{className:"galleryImages",ref:a},(null==t?void 0:t.length)&&t.map((function(e,c){var o=n||0;return wp.element.createElement("img",{key:c,className:o===c?"imageVisible":"",src:e,onLoad:function(){var e,n;(r.current++,r.current===t.length)&&(null===(e=a.current)||void 0===e||e.classList.add("galleryImagesLoaded"),null===(n=l.current)||void 0===n||n.querySelector(".galleryLoader").classList.remove("visible"))}})})))},c=function(){return wp.element.createElement("span",{className:"galleryLoader visible"},wp.element.createElement("span",{className:"bar"}),wp.element.createElement("span",{className:"bar"}),wp.element.createElement("span",{className:"bar"}),wp.element.createElement("span",{className:"bar"}),wp.element.createElement("span",{className:"bar"}))}
1,o=function(e){var t=e.title,n=e.subtitle,l=e.onClick;return wp.element.createElement("header",{className:"galleryHeader"},wp.element.createElement("div",{className:"galleryHeadings"},wp.element.createElement("h3",null,t),wp.element.createElement("h5",null,n)),l&&wp.element.createElement("button",{className:"btnClose",onClick:l},wp.element.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"currentColor"},wp.element.createElement("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"}))))},i=function(t){var l=t.gallery,i=t.slideSpeed,u=t.columns,s=t.isPopup,m=void 0===s||s,g=t.editActiveIndex,d=void 0===g?null:g,p=t.setEditActiveIndex,b=void 0===p?null:p,f=(0,e.useRef)(null),v=(0,e.useRef)(null),w=(0,e.useRef)(),y=(0,e.useRef)(0),h=(0,e.useRef)([0,0]),E=(0,e.useRef)(0),I=n((0,e.useState)(null),2),k=I[0],C=I[1],N=n((0,e.useState)(0),2),L=N[0],x=N[1],G=l[k];E.current=null==G?void 0:G.images.length;var S=(0,e.useCallback)((function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"forward",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];n&&e(),x((function(e){var n="forward"===t?e+1:e-1;return n>E.current-1?0:n<0?E.current-1:n}))}),[]),A=(0,e.useCallback)((function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];n&&e(),x(t)}),[]),R=a((function(){return S()}),1e3*i,0).start,H=(0,e.useCallback)((function(e){var t;C(e),b&&b(e),m&&(null===(t=f.current)||void 0===t||t.classList.add("active"))}),[]),F=(0,e.useCallback)((function(){var e;setTimeout((function(){C(null)}),750),null===(e=f.current)||void 0===e||e.classList.remove("active"),y.current=0}),[]);return(0,e.useEffect)((function(){h.current=[0,0]}),[]),wp.element.createElement(wp.element.Fragment,null,wp.element.createElement("div",{className:"galleryItems columns-".concat(u.desktop," columns-tablet-").concat(u.tablet," columns-mobile-").concat(u.mobile)},l.map((function(t,n){var l=t.title,u=t.subtitle,s=t.images,m=(0,e.useRef)(null),g=(0,e.useRef)(),p=(0,e.useRef)([0,0]),b=(0,e.useRef)(0),f=0,v=(0,e.useCallback)((function(){var e,t,n,l=f+1;f=l>s.length-1?0:l<0?s.length-1:l,null===(e=g.current)||void 0===e||null===(t=e.childNodes)||void 0===t||t.forEach((function(e){e&&e.classList.contains("imageVisible")&&e.classList.remove("imageVisible")})),null===(n=g.current)||void 0===n||n.childNodes[f].classList.add("imageVisible")}),[]);return a((function(){return s.length>1&&v()}),1e3*i,200*n),(0,e.useEffect)((function(){p.current=[0,0]}),[]),wp.element.createElement("div",{key:n,className:"galleryItem ".concat(null!==d&&n===d?"bigbNowEditing":""),id:"galleryItem-".concat(n),onClick:function(){return H(n)},ref:m},wp.element.createElement(r,{images:s,wrapper:m,container:g,loadCount:b}),wp.element.createElement(c,null),wp.element.createElement(o,{title:l,subtitle:u}))}))),m&&wp.element.createElement("div",{className:"popupGallery",ref:f},wp.element.createElement("div",{className:"popupContent"},G&&wp.element.createElement("div",{className:"galleryItem ".concat(null!==d&&k===d?"nowEditing":""),id:"galleryItem-".concat(k),ref:v},wp.element.createElement(r,{images:G.images,imgIndex:L,wrapper:v,container:w,loadCount:y}),wp.element.createElement(c,null),wp.element.createElement(o,{title:G.title,subtitle:G.subtitle,onClick:F}),G.images.length>1&&wp.element.createElement("footer",{className:"galleryFooter"},wp.element.createElement("nav",{className:"controls"},wp.element.createElement("button",{className:"control controlArrow",onClick:function(){return S(R,"backward",!0)}},wp.element.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"currentColor"},wp.element.createElement("path",{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z"}))),G.images.map((function(e,t){return wp.element.createElement("button",{key:t,className:"control controlDot ".concat(t===L?"controlDotActive":""),"data-index":t,onClick:function(){return A(R,t)}})})),wp.element.createElement("button",{className:"control controlArrow",onClick:function(){return S(R,"forward",!0)}},wp.element.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"
1currentColor"},wp.element.createElement("path",{d:"M12 4l-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8-8-8z"})))))))))};document.addEventListener("DOMContentLoaded",(function(){document.querySelectorAll(".wp-block-bigb-image-gallery").forEach((function(n){var l=JSON.parse(n.dataset.attributes),a=l.cId,r=l.gallery,c=l.slideSpeed,o=l.columns;(0,e.render)(wp.element.createElement(wp.element.Fragment,null,wp.element.createElement(t,{attributes:l,clientId:a}),wp.element.createElement("div",{className:"bigbImageGallery"},wp.element.createElement(i,{gallery:r,slideSpeed:c,columns:o}))),n),null==n||n.removeAttribute("data-attributes")}))}))}();
2//# sourceMappingURL=script.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.