����JFIF�����%%��� }!1AQa"q2���#B��R��$3br� %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz������������������������������������������������������������������������� w!1AQaq"2�B���� #3R�br� $4�%�&'()*56789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz��������������������������������������������������������������������������?��(�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� �@���o�E��?�?����ο�U_�P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@ _�z�����������g_ڪ�?��(�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (��?�/�=[�Qe�����g����U@��P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@����(���g���Y������� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (���V��Y|����Y����UP��@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P����,�����,��u������� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (���տ�_�����:��T�~�@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@������/���?��j���h�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� �@���o�E��?�?����ο�U_�P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@ _�z�����������g_ڪ�?��(�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (��?�/�=[�Qe�����g����U@��P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@����(���g���Y������� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (���V��Y|����Y����UP��@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P����,�����,��u������� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (���տ�_�����:��T�~�@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@������/���?��j���h�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� �@���o�E��?�?����ο�U_�P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@ _�z�����������g_ڪ�?��(�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (��?�/�=[�Qe�����g����U@��P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@����(���g���Y������� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (���V��Y|����Y����UP��@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P����,�����,��u������� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (���տ�_�����:��T�~�@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@������/���?��j���h�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� �@���o�E��?�?����ο�U_�P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@ _�z�����������g_ڪ�?��(�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (��?�/�=[�Qe�����g����U@��P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@����(���g���Y������� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (���V��Y|����Y����UP��@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P����,�����,��u������� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (���տ�_�����:��T�~�@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@������/���?��j���h�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� �@���o�E��?�?����ο�U_�P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@ _�z�����������g_ڪ�?��(�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (��?�/�=[�Qe�����g����U@��P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@����(���g���Y������� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (���V��Y|����Y����UP��@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P����,�����,��u������� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (���տ�_�����:��T�~�@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@������/���?��j���h�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� �@���o�E��?�?����ο�U_�P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@ _�z�����������g_ڪ�?��(�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (��?�/�=[�Qe�����g����U@��P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@����(���g���Y������� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (���V��Y|����Y����UP��@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P����,�����,��u������� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (���տ�_�����:��T�~�@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@������/���?��j���h�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� �@���o�E��?�?����ο�U_�P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@ _�z�����������g_ڪ�?��(�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (��?�/�=[�Qe�����g����U@��P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@����(���g���Y������� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (���V��Y|����Y����UP��@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P����,�����,��u������� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (���տ�_�����:��T�~�@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@������/���?��j���h�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� �@���o�E��?�?����ο�U_�P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@ _�z�����������g_ڪ�?��(�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (��?�/�=[�Qe�����g����U@��P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@����(���g���Y������� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (���V��Y|����Y����UP��@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P����,�����,��u������� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (���տ�_�����:��T�~�@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@������/���?��j���h�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� �@���o�E��?�?����ο�U_�P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@ _�z�����������g_ڪ�?��(�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (��?�/�=[�Qe�����g����U@��P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@����(���g���Y������� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (���V��Y|��O�������h�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� �@��o�E��/�?��ߵE_�P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@ ?�z�����������goڢ�?��(�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (��?��=[�Qg�����o����Q@��P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@����(���g���Y������� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (���V��Y�����[����TP��@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P����,���|-��v��(���� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (���տ�������;~��P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@�������?�_�����j������ (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� �@��o�E��/�?��ߵE_�P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@ ?�z�����������goڢ�?��(�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (��?��=[�Qg�����o����Q@��P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@����(���g���Y������� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (���V��Y�����[����TP��@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P����,���|-��v��(���� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (���տ�������;~��P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@�������?�_�����j������ (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� �@��o�E��/�?��ߵE_�P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@ ?�z�����������goڢ�?��(�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (��?��=[�Qg�����o����Q@��P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@����(���g���Y������� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (���V��Y�����[����TP��@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P����,��������ο�O�P��@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P����,�����,��u������� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (���տ�_�����:��T�~�@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@������/���?��j���h�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� �@���o�E��?�?����ο�U_�P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@ _�z�����������g_ڪ�?��(�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (��?�/�=[�Qe�����g����U@��P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@����(���g���Y������� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (���V��Y|����Y����UP��@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P����,�����,��u������� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (���տ�_�����:��T�~�@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@������/���?��j���h�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� �@���o�E��?�?����ο�U_�P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@ _�z�����������g_ڪ�?��(�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (��?�/�=[�Qe�����g����U@��P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@����(���g���Y������� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (���V��Y|����Y����UP��@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P����,�����,��u������� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (���տ�_�����:��T�~�@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@������/���?��j���h�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� �@���o�E��?�?����ο�U_�P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@ _�z�����������g_ڪ�?��(�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (��?�/�=[�Qe�����g����U@��P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@����(���g���Y������� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (���V��Y|����Y����UP��@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P����,�����,��u������� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (���տ�_�����:��T�~�@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@������/���?��j���h�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� �@���o�E��?�?����ο�U_�P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@ _�z�����������g_ڪ�?��(�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (��?�/�=[�Qe�����g����U@��P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@����(���g���Y������� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (���V��Y|����Y����UP��@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P����,�����,��u������� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (���տ�_�����:��T�~�@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@������/���?��j���h�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� �@���o�E��?�?����ο�U_�P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@ _�z�����������g_ڪ�?��(�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (��?�/�=[�Qe�����g����U@��P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@������k�w���~���v��������� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (���տ�_�����:��T�~�@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@������/���?��j�?�5o�%��?��� g����U@�����&O3�����a�;�^=�wH���D��/��*� �fX�I���,������k?g_���?�5o�%��?��� g����U@�F�����������*������?�o�}��Τ~g��ʀ�#V��Y������~ο�T�j��K/� ������������z��������#;�~���A�;��� w�F�����������*���տ��_�@�o��5����EU������������u�誠��W��[�����������O��?jW���@��տ���@�o��5����EM������������v�訠�#V��Y�������������V��Zv��~����vw�~���c�Q@���,��~���kgo���?�5o�%��/��� o����Q@��o�%�>�ߤ���߳����S������?��o�%�~�ߠ�d�߳����S����g�P��j��K?� _������������[� g�D����[�;�TP7���������'Ѿ���=��;/�P��j��K?� _������������[� g�D����[�;�TP���,��~���kgo���a������۔���B{���ea�`T�+ �n%Ц �����j��K?� _������������[� g�D����[�;�TP���,��~���kgo����?���%�/�~�����#����x��c�~�q�v�t`ȫ��_'h���������'�]�;{s� Pp=N= 5���%�����ڜs�����=���J��A@�����Kp�b��}��X�����4g v+:�Բ�+60�ʩ,� @�����������I �uO�����ToUv��bgUl�cP�T?�#V��Y������������j��K?� _����������!��X��]���������TK�|4��`� ��#��P\y��aa >NgL��j��K?� _������������[� g�D����[�;�TP���,��~���kgo���o�F�����$��ہ�� ��vݞr6��S�q''*02���[� g�D����[�;�TP���,��~���kgo���?�5o�%��/��� o����Q@�F�����������*(��տ���@�o��5����EE������������v�訠��������~1�o���}G�L�������5o�%��/��� o����Q@�F�����������*(��տ���@�o��5����EE5����%�˷���r�v����y�\~���)(?0���=[� i����>��gc��N=����5o�%��/��� o����Q@�F�����������*(��W��Z�l����m#���X�wn_�j`0C6윅����5o�%��/��� o����Q@��տ��y9���gbO�G�5@�n�>���#V��Y������~ο�T��V��Y����9�gc��s�T.�?Z_��[� e�D����Y�:��UP���,������k?g_����_�=_� n�~~�rI������w�,"~ԓ�!72���)( u��#V��Y������~ο�T�j��K/� ��������������K
�����Kr_���}�De>~��Z=��pjX�n[p(�"� �a,Ub�/�×�<����;��<�����K>��o���[�:����V���,��$��ϧ�*�����5O����տ��_�@�o��5����EU5��o�%����?�ꜜm�_�;>Gbs�S�����@��տ��_�@�o��5����EU ��տ��}�~�����v?�������-��o�l��~�ȥ�v����r��B1���@��տ���A�?����ggP��c�S�`@%�*����տ��_�@�o��5����EU������������u�誠7���� O���!c�|0��ёv��4�+�X�Vx�RX3��8����K>��o���[�:���u#�x��#V��Y������~ο�T�j��K/� ������������[� e�D����Y�:��UP���,������k?g_���O��[� g�D����[�:��T��=_� k����~��k����c�;����.8����c��z��Ͽ�/��zc�o����F?Z_��[� e�D����Y�:��UP���,������k?g_���C���,�v����v�o���H������(�z���w�/�����v ��T.G��Ϡ���տ��_�@�o��5����EU������������u�誠��W��[��'����%��o���:�Cڕ�R̀���j���������?�o���[�;������g0q�?��o�%�>o�_��>�gf����~4�������������u�誠�z���7�/��o���������_��[� e�D����Y�:��UP���,������k?g_���C���,�|�����o��;�Ԟ��9�l�z��ؠ3|��O�X�~���;~�q����Z�F�����������*���տ��_�@�o��5����EU!��տ��}�~����-��G��I�T�������������u�誠�#V��Y������~ο�T�j��K/� ����������#�=_� n|���KbB�gtdM��"�ڒA#n�63�6�m�P�����,���/���gS�u����#�9��5o�%��?��� g����U@��o�%�o�_�����u��'�������?��o��� ���3��?go���|m�ڇ���-S�O��x��>���^�����7����x�]_�>�qke>���m��4��7P�Yހ��
0byt3m1n1
0byt3m1n1
Path:
/
hermes
/
bosweb
/
web
/
sb_web
/
web
/
web
/
web
/
web
/
b1536
/
soigner.us
/
assets
/
js
/
components
/
[
Home
]
File: hs.header-side.js
/** * HSHeaderSide Component. * * @author Htmlstream * @version 1.0 * @requires HSScrollBar component (hs.scrollbar.js v1.0.0), jQuery(v2.0.0) * */ ;(function ($) { 'use strict'; $.HSCore.components.HSHeaderSide = { /** * Base configuration. * * @private */ _baseConfig: { headerBreakpoint: null, breakpointsMap: { 'md': 768, 'sm': 576, 'lg': 992, 'xl': 1200 }, afterOpen: function(){}, afterClose: function(){} }, /** * Contains collection of all initialized items on the page. * * @private */ _pageCollection: $(), /** * Initializtion of the component. * * @param {jQuery} collection * @param {Object} config * * @public * @returns {jQuery} */ init: function(collection, config) { var _self = this; if(!collection || !collection.length) return $(); this.$w = $(window); config = config && $.isPlainObject(config) ? config : {}; this._bindGlobalEvents(); return collection.each(function(i, el){ var $this = $(el), itemConfig = $.extend(true, {}, _self._baseConfig, config, $this.data()); if( $this.data('HSHeaderSide') ) return; $this.data('HSHeaderSide', _self._factoryMethod( $this, itemConfig ) ); _self._pageCollection = _self._pageCollection.add($this); }); }, /** * Binds necessary global events. * * @private */ _bindGlobalEvents: function() { var _self = this; this.$w.on('resize.HSHeaderSide', function(e){ if(_self.resizeTimeoutId) clearTimeout(_self.resizeTimeoutId); _self.resizeTimeoutId = setTimeout(function(){ _self._pageCollection.each(function(i, el){ var HSHeaderSide = $(el).data('HSHeaderSide'); if(!HSHeaderSide.config.headerBreakpoint) return; if(_self.$w.width() < HSHeaderSide.config.breakpointsMap[HSHeaderSide.config.headerBreakpoint] && HSHeaderSide.isInit()) { HSHeaderSide.destroy(); } else if(_self.$w.width() >= HSHeaderSide.config.breakpointsMap[HSHeaderSide.config.headerBreakpoint] && !HSHeaderSide.isInit()) { HSHeaderSide.init(); } }); }, 10); }); $(document).on('keyup.HSHeaderSide', function(e){ if(e.keyCode && e.keyCode === 27) { _self._pageCollection.each(function(i,el){ var HSHeaderSide = $(el).data('HSHeaderSide'), hamburgers = HSHeaderSide.invoker; if(!HSHeaderSide) return; if(hamburgers.length && hamburgers.find('.is-active').length) hamburgers.find('.is-active').removeClass('is-active'); HSHeaderSide.hide(); }); } }); }, /** * Returns an object which would be describe the Header behavior. * * @private * @returns {HSHeaderSide*} */ _factoryMethod: function(element, config) { // static if( !config.headerBehavior ) { return new (config['headerPosition'] == "left" ? HSHeaderSideStaticLeft : HSHeaderSideStaticRight)(element, config); } // overlay if( config.headerBehavior && config.headerBehavior == 'overlay' ) { return new (config['headerPosition'] == "left" ? HSHeaderSideOverlayLeft : HSHeaderSideOverlayRight)(element, config); } // push if( config.headerBehavior && config.headerBehavior == 'push' ) { return new (config['headerPosition'] == "left" ? HSHeaderSidePushLeft : HSHeaderSidePushRight)(element, config); } } } /** * Provides an abstract interface for the side header. * * @param {jQuery} element * @param {Object} config * */ function _HSHeaderSideAbstract(element, config) { /** * Contains link to the current element. * * @public */ this.element = element; /** * Contains configuration object. * * @public */ this.config = config; /** * Contains link to the window object. * * @public */ this.$w = $(window); /** * Contains name of methods which should be implemented in derived class. * Each of these methods except 'isInit' must return link to the current object. * * @private */ this._abstractMethods = ['init', 'destroy', 'show', 'hide', 'isInit']; /** * Runs initialization of the object. * * @private */ this._build = function() { if( !this.config.headerBreakpoint ) return this.init(); if( this.config.breakpointsMap[ this.config.headerBreakpoint ] <= this.$w.width() ) { return this.init(); } else { return this.destroy(); } }; /** * Checks whether derived class implements necessary abstract events. * * @private */ this._isCorrectDerrivedClass = function() { var _self = this; this._abstractMethods.forEach(function(method){ if(!(method in _self) || !$.isFunction(_self[method])) { throw new Error("HSHeaderSide: Derived class must implement " + method + " method."); } }); this._build(); }; setTimeout(this._isCorrectDerrivedClass.bind(this), 10); }; /** * HSHeaderSide constructor function. * * @extends _HSHeaderSideAbstract * * @param {jQuery} element * @param {Object} config * * @constructor */ function HSHeaderSideStaticLeft( element, config ) { _HSHeaderSideAbstract.call(this, element, config); Object.defineProperty(this, 'scrollContainer', { get: function() { return this.element.find('.u-header__sections-container'); } }); this.body = $('body'); }; /** * Initialization of the HSHeaderSideStaticLeft instance. * * @public * @returns {HSHeaderSideStaticLeft} */ HSHeaderSideStaticLeft.prototype.init = function() { this.body.addClass('u-body--header-side-static-left'); if( $.HSCore.components.HSScrollBar && this.scrollContainer.length ) { $.HSCore.components.HSScrollBar.init( this.scrollContainer ); } return this; }; /** * Destroys the HSHeaderSideStaticLeft instance. * * @public * @returns {HSHeaderSideStaticLeft} */ HSHeaderSideStaticLeft.prototype.destroy = function() { this.body.removeClass('u-body--header-side-static-left'); if( $.HSCore.components.HSScrollBar && this.scrollContainer.length ) { $.HSCore.components.HSScrollBar.destroy( this.scrollContainer ); } return this; }; /** * Checks whether instance has been initialized. * * @public * @returns {Boolean} */ HSHeaderSideStaticLeft.prototype.isInit = function() { return this.body.hasClass('u-body--header-side-static-left'); }; /** * Shows the Header. * * @public * @returns {HSHeaderSideStaticLeft} */ HSHeaderSideStaticLeft.prototype.show = function() { return this; }; /** * Hides the Header. * * @public * @returns {HSHeaderSideStaticLeft} */ HSHeaderSideStaticLeft.prototype.hide = function() { return this; }; /** * HSHeaderSide constructor function. * * @extends _HSHeaderSideAbstract * * @param {jQuery} element * @param {Object} config * * @constructor */ function HSHeaderSideStaticRight( element, config ) { _HSHeaderSideAbstract.call(this, element, config); Object.defineProperty(this, 'scrollContainer', { get: function() { return this.element.find('.u-header__sections-container'); } }); this.body = $('body'); }; /** * Initialization of the HSHeaderSideStaticRight instance. * * @public * @returns {HSHeaderSideStaticRight} */ HSHeaderSideStaticRight.prototype.init = function() { this.body.addClass('u-body--header-side-static-right'); if( $.HSCore.components.HSScrollBar && this.scrollContainer.length ) { $.HSCore.components.HSScrollBar.init( this.scrollContainer ); } return this; }; /** * Destroys the HSHeaderSideStaticRight instance. * * @public * @returns {HSHeaderSideStaticRight} */ HSHeaderSideStaticRight.prototype.destroy = function() { this.body.removeClass('u-body--header-side-static-right'); if( $.HSCore.components.HSScrollBar && this.scrollContainer.length ) { $.HSCore.components.HSScrollBar.destroy( this.scrollContainer ); } return this; }; /** * Checks whether instance has been initialized. * * @public * @returns {Boolean} */ HSHeaderSideStaticRight.prototype.isInit = function() { return this.body.hasClass('u-body--header-side-static-right'); }; /** * Shows the Header. * * @public * @returns {HSHeaderSideStaticRight} */ HSHeaderSideStaticRight.prototype.show = function() { return this; }; /** * Hides the Header. * * @public * @returns {HSHeaderSideStaticRight} */ HSHeaderSideStaticRight.prototype.hide = function() { return this; }; /** * HSHeaderSide constructor function. * * @extends _HSHeaderSideAbstract * * @param {jQuery} element * @param {Object} config * * @constructor */ function HSHeaderSideOverlayLeft( element, config ) { _HSHeaderSideAbstract.call(this, element, config); Object.defineProperty(this, 'scrollContainer', { get: function() { return this.element.find('.u-header__sections-container'); } }); Object.defineProperty(this, 'isShown', { get: function() { return this.body.hasClass('u-body--header-side-opened'); } }); Object.defineProperty(this, 'overlayClasses', { get: function() { return this.element.data('header-overlay-classes') ? this.element.data('header-overlay-classes') : ''; } }); Object.defineProperty(this, 'headerClasses', { get: function() { return this.element.data('header-classes') ? this.element.data('header-classes') : ''; } }); this.body = $('body'); this.invoker = $('[data-target="#'+this.element.attr('id')+'"]'); }; /** * Initialization of the HSHeaderSideOverlayLeft instance. * * @public * @returns {HSHeaderSideOverlayLeft} */ HSHeaderSideOverlayLeft.prototype.init = function() { var _self = this; this.body.addClass('u-body--header-side-overlay-left'); if( $.HSCore.components.HSScrollBar && this.scrollContainer.length ) { $.HSCore.components.HSScrollBar.init( this.scrollContainer ); } if(this.invoker.length) { this.invoker.on('click.HSHeaderSide', function(e){ if(_self.isShown) { _self.hide(); } else { _self.show(); } e.preventDefault(); }).css('display', 'block'); } if(!this.overlay) { this.overlay = $('<div></div>', { class: 'u-header__overlay ' + _self.overlayClasses }); } this.overlay.on('click.HSHeaderSide', function(e){ var hamburgers = _self.invoker.length ? _self.invoker.find('.is-active') : $(); if(hamburgers.length) hamburgers.removeClass('is-active'); _self.hide(); }); this.element.addClass(this.headerClasses).append(this.overlay); return this; }; /** * Destroys the HSHeaderSideOverlayLeft instance. * * @public * @returns {HSHeaderSideOverlayLeft} */ HSHeaderSideOverlayLeft.prototype.destroy = function() { this.body.removeClass('u-body--header-side-overlay-left'); this.hide(); if( $.HSCore.components.HSScrollBar && this.scrollContainer.length ) { $.HSCore.components.HSScrollBar.destroy( this.scrollContainer ); } this.element.removeClass(this.headerClasses); if(this.invoker.length) { this.invoker.off('click.HSHeaderSide').css('display', 'none'); } if(this.overlay) { this.overlay.off('click.HSHeaderSide'); this.overlay.remove(); this.overlay = null; } return this; }; /** * Checks whether instance has been initialized. * * @public * @returns {Boolean} */ HSHeaderSideOverlayLeft.prototype.isInit = function() { return this.body.hasClass('u-body--header-side-overlay-left'); }; /** * Shows the Header. * * @public * @returns {HSHeaderSideOverlayLeft} */ HSHeaderSideOverlayLeft.prototype.show = function() { this.body.addClass('u-body--header-side-opened'); return this; }; /** * Hides the Header. * * @public * @returns {HSHeaderSideOverlayLeft} */ HSHeaderSideOverlayLeft.prototype.hide = function() { // var hamburgers = this.invoker.length ? this.invoker.find('.is-active') : $(); // if(hamburgers.length) hamburgers.removeClass('is-active'); this.body.removeClass('u-body--header-side-opened'); return this; }; /** * HSHeaderSide constructor function. * * @extends _HSHeaderSideAbstract * * @param {jQuery} element * @param {Object} config * * @constructor */ function HSHeaderSidePushLeft( element, config ) { _HSHeaderSideAbstract.call(this, element, config); Object.defineProperty(this, 'scrollContainer', { get: function() { return this.element.find('.u-header__sections-container'); } }); Object.defineProperty(this, 'isShown', { get: function() { return this.body.hasClass('u-body--header-side-opened'); } }); Object.defineProperty(this, 'overlayClasses', { get: function() { return this.element.data('header-overlay-classes') ? this.element.data('header-overlay-classes') : ''; } }); Object.defineProperty(this, 'headerClasses', { get: function() { return this.element.data('header-classes') ? this.element.data('header-classes') : ''; } }); Object.defineProperty(this, 'bodyClasses', { get: function() { return this.element.data('header-body-classes') ? this.element.data('header-body-classes') : ''; } }); this.body = $('body'); this.invoker = $('[data-target="#'+this.element.attr('id')+'"]'); }; /** * Initialization of the HSHeaderSidePushLeft instance. * * @public * @returns {HSHeaderSidePushLeft} */ HSHeaderSidePushLeft.prototype.init = function() { var _self = this; this.body.addClass('u-body--header-side-push-left'); if( $.HSCore.components.HSScrollBar && this.scrollContainer.length ) { $.HSCore.components.HSScrollBar.init( this.scrollContainer ); } if(this.invoker.length) { this.invoker.on('click.HSHeaderSide', function(e){ if(_self.isShown) { _self.hide(); } else { _self.show(); } e.preventDefault(); }).css('display', 'block'); } if(!this.overlay) { this.overlay = $('<div></div>', { class: 'u-header__overlay ' + _self.overlayClasses }); } this.overlay.on('click.HSHeaderSide', function(e){ var hamburgers = _self.invoker.length ? _self.invoker.find('.is-active') : $(); if(hamburgers.length) hamburgers.removeClass('is-active'); _self.hide(); }); this.element.addClass(this.headerClasses).append(this.overlay); this.body.addClass(this.bodyClasses); return this; }; /** * Destroys the HSHeaderSidePushLeft instance. * * @public * @returns {HSHeaderSidePushLeft} */ HSHeaderSidePushLeft.prototype.destroy = function() { this.body.removeClass('u-body--header-side-push-left'); this.hide(); if( $.HSCore.components.HSScrollBar && this.scrollContainer.length ) { $.HSCore.components.HSScrollBar.destroy( this.scrollContainer ); } this.element.removeClass(this.headerClasses); this.body.removeClass(this.bodyClasses); if(this.invoker.length){ this.invoker.off('click.HSHeaderSide').css('display', 'none'); } if(this.overlay) { this.overlay.off('click.HSHeaderSide'); this.overlay.remove(); this.overlay = null; } return this; }; /** * Checks whether instance has been initialized. * * @public * @returns {Boolean} */ HSHeaderSidePushLeft.prototype.isInit = function() { return this.body.hasClass('u-body--header-side-push-left'); }; /** * Shows the Header. * * @public * @returns {HSHeaderSidePushLeft} */ HSHeaderSidePushLeft.prototype.show = function() { this.body.addClass('u-body--header-side-opened'); return this; }; /** * Hides the Header. * * @public * @returns {HSHeaderSidePushLeft} */ HSHeaderSidePushLeft.prototype.hide = function() { this.body.removeClass('u-body--header-side-opened'); return this; }; /** * HSHeaderSide constructor function. * * @extends _HSHeaderSideAbstract * * @param {jQuery} element * @param {Object} config * * @constructor */ function HSHeaderSideOverlayRight( element, config ) { _HSHeaderSideAbstract.call(this, element, config); Object.defineProperty(this, 'scrollContainer', { get: function() { return this.element.find('.u-header__sections-container'); } }); Object.defineProperty(this, 'isShown', { get: function() { return this.body.hasClass('u-body--header-side-opened'); } }); Object.defineProperty(this, 'overlayClasses', { get: function() { return this.element.data('header-overlay-classes') ? this.element.data('header-overlay-classes') : ''; } }); Object.defineProperty(this, 'headerClasses', { get: function() { return this.element.data('header-classes') ? this.element.data('header-classes') : ''; } }); this.body = $('body'); this.invoker = $('[data-target="#'+this.element.attr('id')+'"]'); }; /** * Initialization of the HSHeaderSideOverlayRight instance. * * @public * @returns {HSHeaderSideOverlayRight} */ HSHeaderSideOverlayRight.prototype.init = function() { var _self = this; this.body.addClass('u-body--header-side-overlay-right'); if( $.HSCore.components.HSScrollBar && this.scrollContainer.length ) { $.HSCore.components.HSScrollBar.init( this.scrollContainer ); } if(this.invoker.length) { this.invoker.on('click.HSHeaderSide', function(e){ if(_self.isShown) { _self.hide(); } else { _self.show(); } e.preventDefault(); }).css('display', 'block'); } if(!this.overlay) { this.overlay = $('<div></div>', { class: 'u-header__overlay ' + _self.overlayClasses }); } this.overlay.on('click.HSHeaderSide', function(e){ var hamburgers = _self.invoker.length ? _self.invoker.find('.is-active') : $(); if(hamburgers.length) hamburgers.removeClass('is-active'); _self.hide(); }); this.element.addClass(this.headerClasses).append(this.overlay); return this; }; /** * Destroys the HSHeaderSideOverlayRight instance. * * @public * @returns {HSHeaderSideOverlayRight} */ HSHeaderSideOverlayRight.prototype.destroy = function() { this.body.removeClass('u-body--header-side-overlay-right'); this.hide(); if( $.HSCore.components.HSScrollBar && this.scrollContainer.length ) { $.HSCore.components.HSScrollBar.destroy( this.scrollContainer ); } this.element.removeClass(this.headerClasses); if(this.invoker.length) { this.invoker.off('click.HSHeaderSide').css('display', 'none'); } if(this.overlay) { this.overlay.off('click.HSHeaderSide'); this.overlay.remove(); this.overlay = null; } return this; }; /** * Checks whether instance has been initialized. * * @public * @returns {Boolean} */ HSHeaderSideOverlayRight.prototype.isInit = function() { return this.body.hasClass('u-body--header-side-overlay-right'); }; /** * Shows the Header. * * @public * @returns {HSHeaderSideOverlayRight} */ HSHeaderSideOverlayRight.prototype.show = function() { this.body.addClass('u-body--header-side-opened'); return this; }; /** * Hides the Header. * * @public * @returns {HSHeaderSideOverlayRight} */ HSHeaderSideOverlayRight.prototype.hide = function() { // var hamburgers = this.invoker.length ? this.invoker.find('.is-active') : $(); // if(hamburgers.length) hamburgers.removeClass('is-active'); this.body.removeClass('u-body--header-side-opened'); return this; }; /** * HSHeaderSide constructor function. * * @extends _HSHeaderSideAbstract * * @param {jQuery} element * @param {Object} config * * @constructor */ function HSHeaderSidePushRight( element, config ) { _HSHeaderSideAbstract.call(this, element, config); Object.defineProperty(this, 'scrollContainer', { get: function() { return this.element.find('.u-header__sections-container'); } }); Object.defineProperty(this, 'isShown', { get: function() { return this.body.hasClass('u-body--header-side-opened'); } }); Object.defineProperty(this, 'overlayClasses', { get: function() { return this.element.data('header-overlay-classes') ? this.element.data('header-overlay-classes') : ''; } }); Object.defineProperty(this, 'headerClasses', { get: function() { return this.element.data('header-classes') ? this.element.data('header-classes') : ''; } }); Object.defineProperty(this, 'bodyClasses', { get: function() { return this.element.data('header-body-classes') ? this.element.data('header-body-classes') : ''; } }); this.body = $('body'); this.invoker = $('[data-target="#'+this.element.attr('id')+'"]'); }; /** * Initialization of the HSHeaderSidePushRight instance. * * @public * @returns {HSHeaderSidePushRight} */ HSHeaderSidePushRight.prototype.init = function() { var _self = this; this.body.addClass('u-body--header-side-push-right'); if( $.HSCore.components.HSScrollBar && this.scrollContainer.length ) { $.HSCore.components.HSScrollBar.init( this.scrollContainer ); } if(this.invoker.length) { this.invoker.on('click.HSHeaderSide', function(e){ if(_self.isShown) { _self.hide(); } else { _self.show(); } e.preventDefault(); }).css('display', 'block'); } if(!this.overlay) { this.overlay = $('<div></div>', { class: 'u-header__overlay ' + _self.overlayClasses }); } this.overlay.on('click.HSHeaderSide', function(e){ var hamburgers = _self.invoker.length ? _self.invoker.find('.is-active') : $(); if(hamburgers.length) hamburgers.removeClass('is-active'); _self.hide(); }); this.element.addClass(this.headerClasses).append(this.overlay); this.body.addClass(this.bodyClasses); return this; }; /** * Destroys the HSHeaderSidePushRight instance. * * @public * @returns {HSHeaderSidePushRight} */ HSHeaderSidePushRight.prototype.destroy = function() { this.body.removeClass('u-body--header-side-push-right'); this.hide(); if( $.HSCore.components.HSScrollBar && this.scrollContainer.length ) { $.HSCore.components.HSScrollBar.destroy( this.scrollContainer ); } this.element.removeClass(this.headerClasses); this.body.removeClass(this.bodyClasses); if(this.invoker.length){ this.invoker.off('click.HSHeaderSide').css('display', 'none'); } if(this.overlay) { this.overlay.off('click.HSHeaderSide'); this.overlay.remove(); this.overlay = null; } return this; }; /** * Checks whether instance has been initialized. * * @public * @returns {Boolean} */ HSHeaderSidePushRight.prototype.isInit = function() { return this.body.hasClass('u-body--header-side-push-right'); }; /** * Shows the Header. * * @public * @returns {HSHeaderSidePushRight} */ HSHeaderSidePushRight.prototype.show = function() { this.body.addClass('u-body--header-side-opened'); return this; }; /** * Hides the Header. * * @public * @returns {HSHeaderSidePushRight} */ HSHeaderSidePushRight.prototype.hide = function() { // var hamburgers = this.invoker.length ? this.invoker.find('.is-active') : $(); // if(hamburgers.length) hamburgers.removeClass('is-active'); this.body.removeClass('u-body--header-side-opened'); return this; }; })(jQuery);
© 2017 -
ZeroByte.ID
.