disabled
  %   qˆ¿“þe!q·ÄGˆ9[‘à-7³Wüÿøìë÷ƒ‚êÄõ U    q‹      ½WmsÛ6þî_�°�Zî˜â›(‘¶¤^k§—L“6“8Óö“–"ŠdèmnúßoAP2åIšØssüBØgŸÝÅîœ>»ýíæîÏ7ÏI¡W%yóþ§W/oˆãzÞïÑ�çÝÞÝ’?^Ü½~E‚¡Oî$­”Ð¢®héyÏuˆShÝ¨+ÏÛn·Ãm4¬åÒ»{ëíŒ²À »OW÷ C®¹3?›¶Œ»UY©Y«çTM�¦©E·²@9¾V )1².üµ›™sSW*íÞíp³£™£a§-øšT*Ð³÷w?»‰ã}JÉîûÝ›zÕP-²²¯çåóYÜƒ*º‚™³„
$Õµì	ÞÖ»=Îc˜Òáè!`#`ÛÔR÷ä·‚ëbÆa#¸íà’ˆ
DKW1ZÂÌÒj¡K˜ÿØPV yƒ:(HÞ®+-V@ÞkQ
½'¯D&©Ü_‘[Š¤?(¹šz{6-Eõ‘rŒÍÔ�)å	åÌQz_‚* Ð4�ìg¹bR4º¿ò�n¨�uˆ’læ|økr?ü œùÔ³+_äûJ3	¡¢{ö* ’ž}ýO?ÑÌ1lOðáÔºÏ{Ámr|�ýÄ8àuùžÕ|�/.6Dpªäxæº„×¤ª5*[Õ ºŠ æ�&øÉÊZ'ÙžtÔÏˆëöõ˜Ì ¨)-›RÊRaš‰j9s|§7”ón<?#Sm­ÁÙjidý·PÖ[³ŒÓ¼?MK±¬Úräí–LU8_›Ô­5´žæÆOKûêäµ*ÌG+Ø†*NLA’†Jm#`þmë×è¤p­Ì?îüüÌûžü«Ä²Åü%+º¬@_ý°Ó³µ¬®2-Š+ñ”¦t§qy:�iéˆ±$ò9Í’(Çã4ýŽ®šk^Í`‡}g¨wš¼~yG¾÷Î6T›S?Õ;2#lÉ»Ãxà—œKÒœËs+p~y>4]ïüâºo§kb�š—Þ+¨ÖO¬}ìÿÖoùºj;Îà‚ü“ÉôÛ×hèàüüRË5\æ´TpyÞÕsS4çÇ¸b<	ùvÀk¶FßôÅ‹‡ïO4¶ú<¸¸&#æï/îÃ¡4VTTnE7&d6‡ÛW›°Xö÷Ù»¯·D5~-±ô�ä¢Ô˜åuÓ¶ÓÓRmx%Þï-Ö1%EH]­êµìræHÐéû´þVõ�ï�mpñ ¸Ö_Ä½z¸�°Gþê‹°_`?€�‰³s¬ië½È%6�ï­l…j]jE½æ9Å¹‹OFä­•ïB‚ëÕí±vÌÌ«M-øÀ¿pH»œÕ’›xa‡´NácùSµÎ'¨Z_,KÏ+c+©ÂKPw;h{Ó¦V²²f�ù�`<%¥PšÔ9¡eIY‰^+Ld¦	Å<[W˜˜æ2€Y£bŽ$…ÙdÃÖJzVê �êSKØœ-øêhjÍ§´uƒ»Eát¾†˜»tî’‚¸x‚¡ðºlÂyAU±ÈðÊT}÷M0ö¯¯ì•u.BéNüÖ,ÚÈÅb+fŽˆÅB·MíŽÇÁ e9g~0âˆ�ŽÆ<ã(H#<ÎðˆÓÆœKò	\¨{ŸN8 K‚<ñSÊ‹óQÉhgÙ$I-‡µS=´nmã`¶fA/M]—öüÌçÀ�†IžÀ}àì(Œ¢$cËÞîó.¶;{Âc©UGGQÌYò$Œ}ˆƒ€¦,Ž!Î�¦“`œPuÐþÖJ?mCHl;÷A�rŸe3~ÊÃd’bôi’Æ~'YäÇ6¶ƒ?jRÒ(Ì"–°0Ny–g�%É(M&y’Ò ¿¿Ï}¾S÷±f�µ½l6Né$L’<bd,KXÆhÄýh’2k��|‚XTyýdæ4‰³ I&qú|ä3žEŸ„hPú”…ÿÈlJþÉÌ	gyÄsãd§¹ŸÑdÂÓÙ
ŸñÙkÉý�xh”÷§¢ÒæŠ—×µ>¹îò`š]Â¿ƒ)^jñ¬PæSµÂ^:?ëß�þY§ú?»‡;½ùUmÛßÐþªNÅjù@u÷ÃÓÔféûûçþbYàQvs}”4¶bìÍÔ\ZûpÊÚor¸ýêùÙŠºGgÌ    T   sˆl–Ãa¾”*_)%íÆÜ¸Ð”Å£ŽþD1,Ü xOˆoùR„�ÒJ�674x™¤~VÅ€-¶Ø€ }¨j‰E²u±ß=#5HÒÇø ¢    srequire 'tilt/template'
require 'asciidoctor'

# AsciiDoc see: http://asciidoc.org/
module Tilt
  # Asciidoctor implementation for AsciiDoc see:
  # http://asciidoctor.github.com/
  #
  # Asciidoctor is an open source, pure-Ruby processor for
  # converting AsciiDoc documents or strings into HTML 5,
  # DocBook 4.5 and other formats.
  class AsciidoctorTemplate < Template
    self.default_mime_type = 'text/html'

    def prepare
      options[:header_footer] = false if options[:header_footer].nil?
    end

    def evaluate(scope, locals, &block)
      @output ||= Asciidoctor.render(data, options, &block)
    end

    def allows_script?
      false
    end
  end
end
  <   uˆl–Ãa¾”*i?u8 …p/Üiå1hß�þ\+‹8à,Œ¼ëÁ|ŸÏÀƒ®9¿ÓÈv…†±’rÿ æ    u# Copyright (C) 2012-2026 Zammad Foundation, https://zammad-foundation.org/

class NotificationFactory::Messaging

=begin

  result = NotificationFactory::Messaging.template(
    template: 'ticket_update',
    locale: 'en-us',
    timezone: 'Europe/Berlin',
    objects:  {
      recipient: User.find(2),
      ticket: Ticket.find(1)
    },
  )

returns

  {
    subject: 'some subject',
    body: 'some body',
  }

=end

  def self.template(data)
    return render_inline(data) if data[:templateInline]

    messaging_template = messaging_template(data)

    message_body = render_template(messaging_template[:body], data)
    if !data[:raw]
      data = adjust_data(data, message_body)
      message_body = render_template(application_template, data)
    end

    {
      subject: render_template(messaging_template[:subject], data).strip,
      body:    message_body.strip,
    }
  end

  def self.messaging_template(data)
    NotificationFactory.template_read(
      locale:   data[:locale] || Locale.default,
      template: data[:template],
      format:   'md',
      type:     'messaging',
    )
  end

  def self.application_template
    NotificationFactory.application_template_read(
      format: 'md',
      type:   'messaging',
    )
  end

  def self.render_inline(data)
    NotificationFactory::Renderer.new(
      objects:  data[:objects],
      locale:   data[:locale],
      timezone: data[:timezone],
      template: data[:templateInline]
    ).render
  end

  def self.render_template(template, data)
    NotificationFactory.render_file_