
    $gj              	       r    d dl Z d dlZd dlmZ d dlmZ ed         Z	 	 	 ddeded	ee         d
efdZ	ddgZ
dS )    N)Optional)Literal)graphiqlapollo-sandbox
pathfinderTr   subscription_enabledreplace_variablesgraphql_idereturnc                    t          j        t                    j        d         }|dk    r|dz  }n|dk    r|dz  }n|dz  }|                    d          }|r(|                    d	t          j        |                     }|S )
N   r   zstatic/apollo-sandbox.htmlr   zstatic/pathfinder.htmlzstatic/graphiql.htmlzutf-8)encodingz{{ SUBSCRIPTION_ENABLED }})pathlibPath__file__parents	read_textreplacejsondumps)r   r	   r
   herepathtemplates         T/var/www/html/netbox-4.1.3/venv/lib/python3.11/site-packages/strawberry/http/ides.pyget_graphql_ide_htmlr   	   s    
 <!!)!,D&&&22		$	$..,,~~w~//H 
##($*5I*J*J
 
 O    r   GraphQL_IDE)TTr   )r   r   typingr   typing_extensionsr   r   boolstrr   __all__ r   r   <module>r$      s            % % % % % %@A "&")3  +& 		   0 "=
1r   