0006
  J   ˆl–Ðz¾”ªC]Šq@=q¦®41hß�þDó«8Ø�@mI+¿ÏÂ647Á_“I|¥ŽõHºl=$¤�zTÖ™	ÁÀ ‡    // Copyright (C) 2012-2026 Zammad Foundation, https://zammad-foundation.org/

import type { TicketCount } from '#shared/graphql/types.ts'

interface RequiredUser {
  id: string
  internalId: number
  ticketsCount?: Maybe<TicketCount>
}

export const useUsersTicketsCount = () => {
  const getTicketData = (user?: Maybe<RequiredUser>) => {
    if (!user || !user.ticketsCount) return null
    return {
      count: user.ticketsCount,
      createLabel: __('Create new ticket for this user'),
      createLink: `/tickets/create?customer_id=${user.internalId}`,
      query: `customer.id: ${user.internalId}`,
    }
  }

  return { getTicketData }
}
  /   ˆ{‹„„-i[D<†ªoZƒ›Ù«Ä475_‘I|¥‰ÓMdœv ©ƒ†ü+=ÄÃ Û    ‹      ­“QoÓ0…ß÷+.~à­¹mV@Úœ ‘T¢¢k«. „*'v‹ÄŽì;ºí×“6EëP+@ðäØþrÏ9×ºüE:K²Ïó¼Ï®'0¿}7'ÀzˆÏÄ4K»‹aÐ Ž¦XIÔ\ n6›`sX·Æl�%ÕÕ=9]P I²øŒoÏâ3à¥²]�“¦JÅc#Õ=Ø ½#¯¥ê‡ø(êZHMƒ+g)#Ñ—Â)‰…­k”!�‰­kk&"W.—¤<ùå’cW¶Â½Ï­|Øü±¶æ.ŠÈwšÛOs*á»¨ôÚDŒlÃb®ë5xWDua�Ç¼æ[°Ö+¢¢ˆ}'³¯-‡TnÿŽ¹€Ò©UÄÞ&Ñôr]±x*jÅQg®;f"<Am¥^i%OÂ7|£OL;&U¾pº!mÍŠmÄÃ¨…­|#Ú¬¯Ú¥;¤:Dþ®¢xÖŒùÕb4ÍÒñ¢k‰Ü–xr÷OOÇây{mRíTAÖ=ìsu"/Mî›ËŸ[Ø»vz]‹zp”ü‹¨¤îé0jö);òÀsàUäY|äðÐý/vÃ~øº×öÂ70è_‡ 'ÀA~8�ë÷#Àq7m»qÿÁµŸKQ    ?   ˆl–Ðz¾”Êe¶…4 Y¸'n61hß�þBÐŸYÀ’28à¼çÇƒl.Æ_ˆI|¥�+y,ÆÅ )    // Copyright 2021 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef INCLUDE_V8_DEBUG_H_
#define INCLUDE_V8_DEBUG_H_

#include <stdint.h>

#include "v8-script.h"  // NOLINT(build/include_directory)
#include "v8config.h"   // NOLINT(build/include_directory)

namespace v8 {

class Isolate;
class String;

/**
 * A single JavaScript stack frame.
 */
class V8_EXPORT StackFrame {
 public:
  /**
   * Returns the source location, 0-based, for the associated function call.
   */
  Location GetLocation() const;

  /**
   * Returns the number, 1-based, of the line for the associate function call.
   * This method will return Message::kNoLineNumberInfo if it is unable to
   * retrieve the line number, or if kLineNumber was not passed as an option
   * when capturing the StackTrace.
   */
  int GetLineNumber() const { return GetLocation().GetLineNumber() + 1; }

  /**
   * Returns the 1-based column offset on the line for the associated function
   * call.
   * This method will return Message::kNoColumnInfo if it is unable to retrieve
   * the column number, or if kColumnOffset was not passed as an option when
   * capturing the StackTrace.
   */
  int GetColumn() const { return GetLocation().GetColumnNumber() + 1; }

  /**
   * Returns the id of the script for the function for this StackFrame.
   * This method will return Message::kNoScriptIdInfo if it is unable to
   * retrieve the script id, or if kScriptId was not passed as an option when
   * capturing the StackTrace.
   */
  int GetScriptId() const;

  /**
   * Returns the name of the resource that contains the script for the
   * function for this StackFrame.
   */
  Local<String> GetScriptName() const;

  /**
   * Returns the name of the resource that contains the script for the
   * function for this StackFrame or sourceURL value if the script name
   * is undefined and its source ends with //# sourceURL=... string or
   * deprecated //@ sourceURL=... string.
   */
  Local<String> GetScriptNameOrSourceURL() const;

  /**
   * Returns the source of the script for the function for this StackFrame.
   */
  Local<String> GetScriptSource() const;

  /**
   * Returns the source mapping URL (if one is present) of the script for
   * the function for this StackFrame.
   */
  Local<String> GetScriptSourceMappingURL() const;

  /**
   * Returns the name of the function associated with this stack frame.
   */
  Local<String> GetFunctionName() const;

  /**
   * Returns whether or not the associated function is compiled via a call to
   * eval().
   */
  bool IsEval() const;

  /**
   * Returns whether or not the associated function is called 