PageSourceSearch

https://www.volvo.com/clientlibs-edge/production/20260917131920/shared/components/content/image/image.js

js volvo.com collected 2026-10-02 03:13:01 UTC 4,166 bytes, 1 lines download raw bytes

1(()=>{"use strict";var e,t,o,i,r,s,n={71455(e,t,o){var i=o(38443),r=o(360),s=o(7967),n=o(48183);let l=".s7innercontainer",a=".s7zoomviewer__overlay",h=".s7fullscreenbutton";class u extends i.A{constructor(e,t){super(e,t),this.init()}init(){this.options.isZoom&&((0,r.BT)("ZoomViewer").then(()=>{this.initZoomViewer()}).catch(e=>{console.warn(e)}),this.zoomImageRef=this.zoomImage.bind(this)),(0,n.A)(this.el)}setRefs(){this.zoomContainer=this.el.querySelector(l)}isFullscreen(){return!!this.zoomContainer&&"fullscreen"===this.zoomContainer.getAttribute("mode")}placeZoomViewer(){this.ZoomViewerContainer=this.el.querySelector(`#${this.el.id}_container`),this.el.insertBefore(this.ZoomViewerContainer,this.el.firstChild)}onFullscreenHandler(){this.ZoomViewer.zoomView.zoomReset(),this.isFullscreen()||this.zoomContainer.addEventListener("wheel",this.zoomImageRef)}setupOverlay(){let e=this.el.querySelector(a);this.setRefs(),this.zoomContainer.insertBefore(e,this.zoomContainer.firstChild.nextSibling)}zoomImage(e){(e.wheelDelta?e.wheelDelta>0:e.deltaY<0)?this.ZoomViewer.zoomView.zoomIn():this.ZoomViewer.zoomView.zoomOut()}bindUIEvents(){this.el.querySelector(h).addEventListener("click",()=>{this.onFullscreenHandler()}),document.addEventListener("fullscreenchange",()=>{this.setupOverlayHeight(),this.ZoomViewer.zoomView.setModifier({fmt:"png"}),this.ZoomViewer.zoomView.zoomReset(),this.isFullscreen()||(this.zoomContainer.removeEventListener("wheel",this.zoomImageRef,!1),this.ZoomViewer.zoomView.setModifier({fmt:"png-alpha"}))})}setupOverlayHeight(){let e=this.el.querySelector(h).parentNode;this.isFullscreen()?e.style.removeProperty("height"):e.style.height="100%"}initZoomViewer(){this.ZoomViewer=new window.s7viewers.ZoomViewer({containerId:this.el.id,params:{asset:this.options.assetPath,serverurl:this.options.imageServer,singleclick:"none",doubleclick:"zoom",iconeffect:"0",zoomstep:"2,1",fmt:"png-alpha"},handlers:{initComplete:()=>{this.setupOverlay(),this.setupOverlayHeight(),this.bindUIEvents(),this.setRefs(),this.placeZoomViewer()},trackEvent:(e,t,o,i,r)=>{"ZOOM"===r.split(",")[0]&&setTimeout(()=>{this.setupOverlayHeight()},10)}}}).init()}}(0,s.kz)({ImageViewer:u})}},l={};function a(e){var t=l[e];if(void 0!==t)return t.exports;var o=l[e]={exports:{}};return n[e].call(o.exports,o,o.exports,a),o.exports}a.m=n,a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,a.t=function(o,i){if(1&i&&(o=this(o)),8&i||"object"==typeof o&&o&&(4&i&&o.__esModule||16&i&&"function"==typeof o.then))return o;var r=Object.create(null);a.r(r);var s={};e=e||[null,t({}),t([]),t(t)];for(var n=2&i&&o;("object"==typeof n||"function"==typeof n)&&!~e.indexOf(n);n=t(n))Object.getOwnPropertyNames(n).forEach(e=>{s[e]=()=>o[e]});return s.default=()=>o,a.d(r,s),r},a.d=(e,t)=>{for(var o in t)a.o(t,o)&&!a.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},a.e=()=>Promise.resolve(),a.g=(()=>{if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}})(),a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),a.r=e=>{"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o=[],a.O=(e,t,i,r)=>{if(t){r=r||0;for(var s=o.length;s>0&&o[s-1][2]>r;s--)o[s]=o[s-1];o[s]=[t,i,r];return}for(var n=1/0,s=0;s<o.length;s++){for(var t=o[s][0],i=o[s][1],r=o[s][2],l=!0,h=0;h<t.length;h++)(!1&r||n>=r)&&Object.keys(a.O).every(e=>a.O[e](t[h]))?t.splice(h--,1):(l=!1,r<n&&(n=r));if(l){o.splice(s--,1);var u=i();void 0!==u&&(e=u)}}return e},a.rv=()=>"1.7.11",a.j="343",i={343:0},a.O.j=e=>0===i[e],r=(e,t)=>{var o,r,s=t[0],n=t[1],l=t[2],h=0;if(s.some(e=>0!==i[e])){for(o in n)a.o(n,o)&&(a.m[o]=n[o]);if(l)var u=l(a)}for(e&&e(t);h<s.length;h++)r=s[h],a.o(i,r)&&i[r]&&i[r][0](),i[r]=0;return a.O(u)},(s=self.webpackChunkvolvo_fe_build=self.webpackChunkvolvo_fe_build||[]).forEach(r.bind(null,0)),s.push=r.bind(null,s.push.bind(s)),a.ruid="[email protected]";var h=a.O(void 0,["8263"],()=>a(71455));h=a.O(h)})();

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.