# Path: src/sii/lib/printing/TemplateElement.py
# class TemplateElement(object):
#     def resources(self):
#     def carta(self) -> str:
#     def oficio(self) -> str:
#     def thermal80mm(self) -> str:


from .TemplateElement import TemplateElement, Resource
            \\begin{center}
                \\large{\\textbf{R.U.T.: %s}}\\break
                \\newline
                \\large{\\textbf{%s}}\\break
                \\newline
                \\large{\\textbf{N\\textdegree\\ %s}}
            \\end{center}
        \\end{mdframed}
        \\vspace{0.5em}
        \\large{\\textbf{S.I.I. - %s}}
        %s
    \\end{center}
    """
    def __init__(self, rut, dte_type, dte_serial, sii_branch, logo_path=''):
        self._rut          = rut
        self._dte_type     = dte_type
        self._dte_type_str = DOC_TYPE_STRINGS[dte_type]
        self._dte_serial   = dte_serial
        self._sii_branch   = sii_branch

        self._logo_path = logo_path
        if self._logo_path:
            with open(self._logo_path, 'r') as fh:
                self._logo_data = fh.read()

    @property
    def resources(self):
        ress = []

        if self._logo_path:

# Path: src/sii/lib/printing/TemplateElement.py
# class TemplateElement(object):
#     def resources(self):
#     def carta(self) -> str:
#     def oficio(self) -> str:
#     def thermal80mm(self) -> str:


# Path: src/sii/lib/printing/SectionSiiPatch.py
from .TemplateElement import TemplateElement, Resource

            \\begin{center}
                \\large{\\textbf{R.U.T.: %s}}\\break
                \\newline
                \\large{\\textbf{%s}}\\break
                \\newline
                \\large{\\textbf{N\\textdegree\\ %s}}
            \\end{center}
        \\end{mdframed}
        \\vspace{0.5em}
        \\large{\\textbf{S.I.I. - %s}}
        %s
    \\end{center}
    """
    def __init__(self, rut, dte_type, dte_serial, sii_branch, logo_path=''):
        self._rut          = rut
        self._dte_type     = dte_type
        self._dte_type_str = DOC_TYPE_STRINGS[dte_type]
        self._dte_serial   = dte_serial
        self._sii_branch   = sii_branch

        self._logo_path = logo_path
        if self._logo_path:
            with open(self._logo_path, 'r') as fh:
                self._logo_data = fh.read()

    @property
    def resources(self):
        ress = []

        if self._logo_path:

            ress.append(Resource('logo.eps', self._logo_data))