Heray-Was-Here
Server : Apache
System : Linux vps103298.mylogin.co 4.18.0-513.11.1.el8_9.x86_64 #1 SMP Wed Jan 17 02:00:40 EST 2024 x86_64
User : calvet ( 273824)
PHP Version : 7.4.33
Disable Function : NONE
Directory :  /home/www/calvetrealty.com/wp-content/plugins/divi-pixel/dist/public/js/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/www/calvetrealty.com/wp-content/plugins/divi-pixel/dist/public/js/Panorama.min.js
!function i(a,r,n){function f(e,t){if(!r[e]){if(!a[e]){var o="function"==typeof require&&require;if(!t&&o)return o(e,!0);if(s)return s(e,!0);throw(t=new Error("Cannot find module '"+e+"'")).code="MODULE_NOT_FOUND",t}o=r[e]={exports:{}},a[e][0].call(o.exports,function(t){return f(a[e][1][t]||t)},o,o.exports,i,a,r,n)}return r[e].exports}for(var s="function"==typeof require&&require,t=0;t<n.length;t++)f(n[t]);return f}({1:[function(t,e,o){"use strict";jQuery(function(w){function a(t,e){"on"!==t.getAttribute("data-is-autoload")||!n(t)||"Equirectangular"!==t.getAttribute("data-type")&&"Cube Map"!==t.getAttribute("data-type")||e.loadScene()}function r(t,e){var o=this;this.$el=t,this.el=t[0],this.opt=e,this.mouseDrag=this.mouseDragEvent.bind(this),this.applySizing(),window.addEventListener("resize",function(){t.css({left:"50%",top:"50%"}),o.applySizing()})}function n(t){t=t.getBoundingClientRect();return 0<=t.top&&0<=t.left&&t.top<=(window.innerHeight||document.documentElement.clientHeight)}document.querySelectorAll(".dipi-panorama").forEach(function(t){var e={loadButtonLabel:"Click to<br>Load<br>Panorama",loadingLabel:"Loading...",bylineLabel:"by %s",noPanoramaError:"No panorama image was specified.",fileAccessError:"Could not access one/multiple of panorama image.",malformedURLError:"There is something wrong with the panorama URL.",iOS8WebGLError:"Due to iOS 8's broken WebGL implementation, only progressive encoded JPEGs work for your device (this panorama uses standard encoding).",genericWebGLError:"Your browser does not have the necessary WebGL support to display this panorama.",textureSizeError:"This panorama is too big for your device! It's %spx wide, but your device only supports images up to %spx wide. Try another device. (If you're the author, try scaling down the image.)",unknownError:"Unknown error. Check developer console."},o={},i=("Equirectangular"===t.getAttribute("data-type")?o={hfov:120,strings:e,type:"equirectangular",panorama:t.getAttribute("data-image")}:"Cube Map"===t.getAttribute("data-type")&&(o={hfov:120,strings:e,type:"cubemap",cubeMap:[t.getAttribute("data-image0"),t.getAttribute("data-image1"),t.getAttribute("data-image2"),t.getAttribute("data-image3"),t.getAttribute("data-image4"),t.getAttribute("data-image5")]}),pannellum.viewer(t,o));"on"===t.getAttribute("data-is-autoload")&&n(t)&&!i.isLoaded()&&a(t,i),i.on("load",function(){t.parentNode.classList.add("loaded")}),addEventListener("scroll",function(){i.isLoaded()||a(t,i)})}),document.querySelectorAll(".dipi-panorama-video").forEach(function(t,e){var o=!1,o={autoplay:o="on"===t.getAttribute("data-is-autoload")?!0:o,plugins:{pannellum:{}}};videojs(t,o),videojs.on(t,"loadeddata",function(){t.parentNode.parentNode.classList.add("loaded")})}),r.prototype.applySizing=function(){var l,d,h,t=this.opt,e=this.$el,o=t.width,i=t.height,a=t.moduleHeight;window.innerWidth<=980&&(a=t.moduleHeightTablet),window.innerWidth<=768&&(a=t.moduleHeightPhone),"Horizontal"===t.direction?(a<i&&(o*=a/i),e.css({width:o,height:a,backgroundSize:o+"px "+a+"px"})):e.css({minWidth:o,minHeight:i,backgroundSize:o+"px "+i+"px"}),"Both"!==t.repeat&&"Horizontal"!==t.repeat||e.css({width:3*o}),"Both"!==t.repeat&&"Vertical"!==t.repeat||e.css({height:3*i}),d=t,h=(l=e).parent(),l.on("mousewheel DOMMouseScroll",function(t){!function(t){var e=t.originalEvent,e=e.wheelDelta||-e.detail;void 0!==this&&(this.scrollTop+=30*(e<0?1:-1));t.preventDefault()}(t);var e=0<function(t){return"number"==typeof t.originalEvent.detail&&0!==t.originalEvent.detail?t.originalEvent.detail:"number"==typeof t.originalEvent.wheelDelta?t.originalEvent.wheelDelta:void 0}(t)?"up":"down",o=l.outerHeight(),i=l.outerWidth(),a=l.offset().top+d.scroll_speed,r=w(window).height()-(l.offset().top-d.scroll_speed+o),n=l.offset().left+d.scroll_speed,f=w(window).width()-(l.offset().left-d.scroll_speed+i),s=(w(window).height(),l.offset().top,w(window).height()-(h.offset().top+h.outerHeight())),p=w(window).width()-(h.offset().left+h.outerWidth());t.shiftKey?"Vertical"!==d.direction&&("up"==e&&(parseInt(h.offset().left)>parseInt(n)?l.offset({left:n}):"Both"===d.repeat||"Horizontal"===d.repeat?l.offset({left:h.offset().left-parseInt(d.width)}):l.offset({left:h.offset().left})),"down"==e)&&(f<p?l.offset({left:l.offset().left-+d.scroll_speed}):"Both"===d.repeat||"Horizontal"===d.repeat?l.offset({left:l.offset().left+parseInt(d.width)}):l.offset({left:w(window).width()-(i+p)})):"Horizontal"!==d.direction&&("up"==e&&(r<s?l.offset({top:l.offset().top-+d.scroll_speed}):"Both"===d.repeat||"Vertical"===d.repeat?l.offset({top:l.offset().top+parseInt(d.height)}):l.offset({top:w(window).height()-(o+s)})),"down"==e)&&(h.offset().top>a?l.offset({top:a}):"Both"===d.repeat||"Vertical"===d.repeat?l.offset({top:l.offset().top-parseInt(d.height)}):l.offset({top:h.offset().top}))}),this.el.removeEventListener("mousedown",this.mouseDrag,!0),this.el.removeEventListener("touchstart",this.mouseDrag,!0),this.el.addEventListener("mousedown",this.mouseDrag,!0),this.el.addEventListener("touchstart",this.mouseDrag,!0)},r.prototype.mouseDragEvent=function(t){var a,r,n,f,s,p,l,d,e,h,u,o,g,c;"Vertical"!==this.opt.direction&&"Both"!==this.opt.direction||(a=this.$el,r=this.opt,o=t,n=a.parent(),f=a.outerHeight(),e=("touchstart"===o.type?(void 0!==o.originalEvent?o.originalEvent.touches:o.targetTouches)[0]:o).pageY,s=a.offset().top+f-e,p=a.offset().top,a.parents().on("mousemove.vertical",function(t){var e=t.pageY+s-f,o=w(window).height()-(a.offset().top+f),i=w(window).height()-(n.offset().top+n.outerHeight());a.offset({top:e}),p<e&&(n.offset().top>e?a.offset({top:e}):("Both"===r.repeat||"Vertical"===r.repeat?a.offset({top:a.offset().top-parseInt(r.height)}):a.offset({top:n.offset().top}),s=a.offset().top+f-t.pageY)),e<p&&(o<i?a.offset({top:e}):("Both"===r.repeat||"Vertical"===r.repeat?a.offset({top:a.offset().top+parseInt(r.height)}):a.offset({top:w(window).height()-(f+i)}),s=a.offset().top+f-t.pageY))}),a.parents().on("touchmove.vertical",function(t){var e=t.originalEvent.touches[0].pageY+s-f,o=w(window).height()-(a.offset().top+f),i=w(window).height()-(n.offset().top+n.outerHeight());a.offset({top:e}),p<e&&(n.offset().top>e?a.offset({top:e}):("Both"===r.repeat||"Vertical"===r.repeat?a.offset({top:a.offset().top-parseInt(r.height)}):a.offset({top:n.offset().top}),s=a.offset().top+f-t.originalEvent.touches[0].pageY)),e<p&&(o<i?a.offset({top:e}):("Both"===r.repeat||"Vertical"===r.repeat?a.offset({top:a.offset().top+parseInt(r.height)}):a.offset({top:w(window).height()-(f+i)}),s=a.offset().top+f-t.originalEvent.touches[0].pageY))}),w(document).on("mouseup",function(){a.parents().off("mousemove.vertical")}),w(document).on("touchend",function(){a.parents().off("touchmove.vertical")}),o.preventDefault()),"Horizontal"!==this.opt.direction&&"Both"!==opt.direction||(l=this.$el,d=this.opt,e=t,h=l.parent(),l.outerHeight(),u=l.outerWidth(),o=0,o=("touchstart"===e.type?(void 0!==e.originalEvent?e.originalEvent.touches:e.targetTouches)[0]:e).pageX,g=l.offset().left+u-o,c=l.offset().left,l.parents().on("mousemove.horizontal",function(t){var e=t.pageX+g-u,o=w(window).width()-(l.offset().left+u),i=w(window).width()-(h.offset().left+h.outerWidth());c<e?h.offset().left>e?l.offset({left:e}):("Both"===d.repeat||"Horizontal"===d.repeat?l.offset({left:l.offset().left-parseInt(d.width)}):l.offset({left:h.offset().left}),g=l.offset().left+u-t.pageX):e<c&&(o<i?l.offset({left:e}):("Both"===d.repeat||"Horizontal"===d.repeat?l.offset({left:l.offset().left+parseInt(d.width)}):l.offset({left:w(window).width()-(u+i)}),g=l.offset().left+u-t.pageX)),c=e}),l.parents().on("touchmove.horizontal",function(t){var e=t.originalEvent.touches[0].pageX+g-u,o=w(window).width()-(l.offset().left+u),i=w(window).width()-(h.offset().left+h.outerWidth());c<e?h.offset().left>e?l.offset({left:e}):("Both"===d.repeat||"Horizontal"===d.repeat?l.offset({left:l.offset().left-parseInt(d.width)}):l.offset({left:h.offset().left}),g=l.offset().left+u-t.originalEvent.touches[0].pageX):e<c&&(o<i?l.offset({left:e}):("Both"===d.repeat||"Horizontal"===d.repeat?l.offset({left:l.offset().left+parseInt(d.width)}):l.offset({left:w(window).width()-(u+i)}),g=l.offset().left+u-t.originalEvent.touches[0].pageX)),c=e}),w(document).on("mouseup",function(){l.parents().off("mousemove.horizontal")}),w(document).on("touchend",function(){l.parents().off("touchmove.horizontal")}),e.preventDefault())},w(".dipi-panorma-image2d .dipi-img-drag").each(function(){var t=w(this),e=parseInt(t.attr("data-module-height"),10),o=t.attr("data-image-width")<t.parent().width()?(i=t.parent().width(),t.parent().width()/t.attr("data-image-width")*t.attr("data-image-height")):(i=t.attr("data-image-width"),t.attr("data-image-height")),i={scroll_speed:50,repeat:t.attr("data-repeat"),direction:t.attr("data-direction"),width:i,height:o,moduleHeight:e,moduleHeightTablet:parseInt(t.attr("data-module-height-tablet"),10),moduleHeightPhone:parseInt(t.attr("data-module-height-phone"),10)};new r(t,i)})})},{}]},{},[1]);

Hry