HEX
Server: Apache
System: Linux p3plzcpnl506847.prod.phx3.secureserver.net 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
User: slfopp7cb1df (5698090)
PHP: 8.1.34
Disabled: NONE
Upload Files
File: /home/slfopp7cb1df/public_html/sitepacket.com/src/client/src/api/hooksDeprecated.js
import * as consts from 'Client/consts'

// Deprecated jQuery API
window.ImageMapPro.subscribe(action => {
  try {
    var jq = window.jQuery || window.$ || $ || jQuery
  } catch (e) {

  }

  if (jq) {
    if (action.type == consts.HOOK_MAP_INIT) {
      jq.imageMapProInitialized?.call(this, action.payload.map)
    }
    if (action.type == consts.HOOK_OBJECT_HIGHLIGHT) {
      jq.imageMapProEventHighlightedShape?.call(this, action.payload.map, action.payload.object)
    }
    if (action.type == consts.HOOK_OBJECT_UNHIGHLIGHT) {
      jq.imageMapProEventUnhighlightedShape?.call(this, action.payload.map, action.payload.object)
    }
    if (action.type == consts.HOOK_OBJECT_CLICK) {
      jq.imageMapProEventClickedShape?.call(this, action.payload.map, action.payload.object)
    }
    if (action.type == consts.HOOK_TOOLTIP_SHOW) {
      jq.imageMapProEventOpenedTooltip?.call(this, action.payload.map, action.payload.object)
    }
    if (action.type == consts.HOOK_TOOLTIP_HIDE) {
      jq.imageMapProEventClosedTooltip?.call(this, action.payload.map, action.payload.object)
    }
    if (action.type == consts.HOOK_ARTBOARD_CHANGE) {
      jq.imageMapProEventSwitchedFloor?.call(this, action.payload.map, action.payload.layer)
    }
  }
})