Sindbad~EG File Manager

Current Path : /home/numerotech/bni.numerotech.com/bni_hallmark/core/library/__pycache__/
Upload File :
Current File : //home/numerotech/bni.numerotech.com/bni_hallmark/core/library/__pycache__/helper.cpython-310.pyc

o

�;�c�	�@s~ddlmZddlmZmZddlmZmZmZmZddl	Z	ddlZddl
m
Z
ddlmZGdd�d�Z
ejjje
d	�dS)
�)�app)�url_for�render_template_string)�datetime�date�time�	timedeltaN��	num2words)�Authc@s|eZdZdZdZdd�Zdd�Zdd�Zd	d
�Zdd�Z	d
d�Z
dd�Zdd�Zdd�Z
dd�Zdd�Zdd�Zdd�ZdS)�Helper�e�DELEGATEcC�dS�NzVirtual Conference - 1�)�datarr�sC:\Users\Admin\Dropbox\Ramya_work_files\Delegate Registration\CommonDelegateRegistration_new\core\library\helper.py�
test_login�zHelper.test_logincCrrrrrrr�footer_textrzHelper.footer_textcCs(t|d�}t|d�}t|�t|�}|S)Nz
%Y, %m, %d)r�str)Zd1Zd2Zdiffrrr�	date_diffs

zHelper.date_diffcCst�dd�}|S)Ni�i')�random�randint)�numberrrr�random4digt%�zHelper.random4digtcCst|dd�}|S)N�en_IN)�langr	)�amountZwords_in_amountrrr�
amountTowords)rzHelper.amountTowordscCst|�}|d�}|S)N�,)�int)r �num�rsrrr�amountTodecimal-szHelper.amountTodecimalcCstj��}|��}|S)N)r�now�	timestamp)�ct�tsrrr�getcurrenttimestamp4s
zHelper.getcurrenttimestampcCs:|r|�d�}|dkr|dd||dd�}|S|S)N�@rz*****�)�find)�email�loZ
mask_emailrrr�
email_mask;s
zHelper.email_maskcCs<|rt|�}|dkr|dd�d||dd�}|S|S)Nr�z******)�len)�mobiler0�maskrrr�mobile_maskCs zHelper.mobile_maskcs`t|��d�^�}d��fdd�tdt��d�D�ddd��dd�g�}d�|g|�S)	N�.r"csg|]
}�|d|��qS)r2r)�.0�x��srr�
<listcomp>Msz$Helper.formatINR.<locals>.<listcomp>����������)r�	partition�join�ranger3)r�d�rrr:r�	formatINRKs>zHelper.formatINRcCs(tj�d�jdi|��}t|fi|��S)Nz{{login_content|safe}}r�r�	jinja_env�from_string�renderr)r�temprrr�convert_htmlPszHelper.convert_htmlcCs$tj�d�j||d�}t|||d�S)Nz({{payment_content.payment_content|safe}})�payment_contentr rG)rMr rKrrr�convert_html_for_payment_screenTsz&Helper.convert_html_for_payment_screencCs"|r
|�d�}t|�}|Sd}|S)Nr"r)�splitr3)�delegate_ids�delegate_idrrr�split_delegate_idsYs
�zHelper.split_delegate_idsN)�__name__�
__module__�__qualname__ZDefaultCountryID�AppTyperrrrr!r&r+r1r6rFrLrNrRrrrrrs 
r)r)�corer�flaskrrrrrrrr
�core.library.authrrrH�globals�updaterrrr�<module>sV

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists