
    em                        d Z ddlmZ ddlZddlmZmZ ddlZddlmZ ddl	m
Z
 dd	lmZ erdd
l	mZ  G d de          ZdS )z4
GoldenTemplate based on the golden-layout library.
    )annotationsN)TYPE_CHECKINGLiteral   )config)JS_URLS   )BasicTemplate)ResourcesTypec                      e Zd ZdZ ej        ddd          Z ej        e	          j
        dz  Z ej        e	          j
        dz  Zej         dej         d	ej         d
ded         ej         dddZd Zdd fdZ xZS )GoldenTemplatezB
    GoldenTemplate is built on top of golden-layout library.
       Tz-
        The width of the sidebar in percent.)defaultconstantdocz
golden.csszgolden.htmlz2/golden-layout@1.5.9/src/css/goldenlayout-base.cssz8/golden-layout@1.5.9/src/css/goldenlayout-dark-theme.cssz9/golden-layout@1.5.9/src/css/goldenlayout-light-theme.css)goldenlayoutzgolden-theme-darkzgolden-theme-lightjQueryz-/golden-layout@1.5.9/dist/goldenlayout.min.js)jqueryr   )cssjsc                     d|v r	d|_         d S d S )Nmain)
      r   r   )margin)selfnamemodeltagss       >lib/python3.11/site-packages/panel/template/golden/__init__.py_apply_rootzGoldenTemplate._apply_root,   s    T>>+ELLL >    autocdnbool | Literal['auto']returnr   c                    t                                          |          }| j        j        j        dk    rdnd}|d         d| = |S )N)r$   r   darklightr   zgolden-theme-)superresolve_resources_designtheme_name)r   r$   	resources	del_theme	__class__s       r    r+   z GoldenTemplate.resolve_resources0   sT    GG--#-66	"l06BBFF	e8Y889r"   )r#   )r$   r%   r&   r   )__name__
__module____qualname____doc__paramIntegersidebar_widthpathlibPath__file__parent_css	_templater   npm_cdnr   
_resourcesr!   r+   __classcell__)r1   s   @r    r   r      s         "EM"t B0 1 1 1M 7<!!(<7DX&&-=I  &~aaa$*N!l!l!l%+^"n"n"n
 
 h'%~\\\
 

 
J, , ,          r"   r   )r5   
__future__r   r9   typingr   r   r6   r   io.resourcesr   baser
   r   r    r"   r    <module>rG      s     # " " " " "  ) ) ) ) ) ) ) )        # # # # # #             .------         ]          r"   