{
const routes = JSON.parse('[\u0022content-list.tools.index\u0022]');
open = open && ($event.detail.md5 === '6845215967268131619319d7c5bb004c' || routes?.includes($event.detail?.route));
}"
x-on:click="() => {
open = !open;
$dispatch('clicked-item', { md5: '6845215967268131619319d7c5bb004c' });
}"
class="text-body-14 text-neutral-900 relative flex flex-col items-center w-full space-x-0.5 border-2 border-transparent px-4 py-2.5 rounded-md" :class="{ 'bg-primary-30' : open }">
Problems
{
active = !active;
$dispatch('clicked-item', { md5: '2252c06709f2e010c39f58698edb7f5b', route: 'https://www.therapistaid.com/tools/anger' });
}"
@clicked-item.window="() => {
active = active && $event.detail.md5 === '2252c06709f2e010c39f58698edb7f5b';
if(active){
$dispatch('close-mobile-menu');
setTimeout(() => window.location = 'https://www.therapistaid.com/tools/anger', 300);
}
}"
class="font-medium text-body-14 text-left w-full space-x-0.5 border-2 border-transparent px-4 py-2 cursor-pointer"
:class="{
'bg-primary-50 text-primary-800 rounded-md': active,
'text-neutral-900': active === false
}">
Anger
{
active = !active;
$dispatch('clicked-item', { md5: '7cc9ccf10b6cc62f88e9723b04e4e753', route: 'https://www.therapistaid.com/tools/anxiety' });
}"
@clicked-item.window="() => {
active = active && $event.detail.md5 === '7cc9ccf10b6cc62f88e9723b04e4e753';
if(active){
$dispatch('close-mobile-menu');
setTimeout(() => window.location = 'https://www.therapistaid.com/tools/anxiety', 300);
}
}"
class="font-medium text-body-14 text-left w-full space-x-0.5 border-2 border-transparent px-4 py-2 cursor-pointer"
:class="{
'bg-primary-50 text-primary-800 rounded-md': active,
'text-neutral-900': active === false
}">
Anxiety
{
active = !active;
$dispatch('clicked-item', { md5: '795eba72bf80fca4b28b20cef30c15fe', route: 'https://www.therapistaid.com/tools/communication' });
}"
@clicked-item.window="() => {
active = active && $event.detail.md5 === '795eba72bf80fca4b28b20cef30c15fe';
if(active){
$dispatch('close-mobile-menu');
setTimeout(() => window.location = 'https://www.therapistaid.com/tools/communication', 300);
}
}"
class="font-medium text-body-14 text-left w-full space-x-0.5 border-2 border-transparent px-4 py-2 cursor-pointer"
:class="{
'bg-primary-50 text-primary-800 rounded-md': active,
'text-neutral-900': active === false
}">
Communication
{
active = !active;
$dispatch('clicked-item', { md5: '743d547e3bc65a3054dc8f91a8ab194b', route: 'https://www.therapistaid.com/tools/depression' });
}"
@clicked-item.window="() => {
active = active && $event.detail.md5 === '743d547e3bc65a3054dc8f91a8ab194b';
if(active){
$dispatch('close-mobile-menu');
setTimeout(() => window.location = 'https://www.therapistaid.com/tools/depression', 300);
}
}"
class="font-medium text-body-14 text-left w-full space-x-0.5 border-2 border-transparent px-4 py-2 cursor-pointer"
:class="{
'bg-primary-50 text-primary-800 rounded-md': active,
'text-neutral-900': active === false
}">
Depression
More +
{
active = !active;
$dispatch('clicked-item', { md5: '3e1d9b314ae9c31b7582d23dbcb02343', route: 'https://www.therapistaid.com/tools/emotions' });
}"
@clicked-item.window="() => {
active = active && $event.detail.md5 === '3e1d9b314ae9c31b7582d23dbcb02343';
if(active){
$dispatch('close-mobile-menu');
setTimeout(() => window.location = 'https://www.therapistaid.com/tools/emotions', 300);
}
}"
class="font-medium text-body-14 text-left w-full space-x-0.5 border-2 border-transparent px-4 py-2 cursor-pointer" x-show="openTopics"
:class="{
'bg-primary-50 text-primary-800 rounded-md': active,
'text-neutral-900': active === false
}">
Emotions
{
active = !active;
$dispatch('clicked-item', { md5: 'a5f41630728dd6f56dd659cbdfa8866d', route: 'https://www.therapistaid.com/tools/grief' });
}"
@clicked-item.window="() => {
active = active && $event.detail.md5 === 'a5f41630728dd6f56dd659cbdfa8866d';
if(active){
$dispatch('close-mobile-menu');
setTimeout(() => window.location = 'https://www.therapistaid.com/tools/grief', 300);
}
}"
class="font-medium text-body-14 text-left w-full space-x-0.5 border-2 border-transparent px-4 py-2 cursor-pointer" x-show="openTopics"
:class="{
'bg-primary-50 text-primary-800 rounded-md': active,
'text-neutral-900': active === false
}">
Grief
{
active = !active;
$dispatch('clicked-item', { md5: '86c4301976c062c5a859cc6f302614a6', route: 'https://www.therapistaid.com/tools/relationships' });
}"
@clicked-item.window="() => {
active = active && $event.detail.md5 === '86c4301976c062c5a859cc6f302614a6';
if(active){
$dispatch('close-mobile-menu');
setTimeout(() => window.location = 'https://www.therapistaid.com/tools/relationships', 300);
}
}"
class="font-medium text-body-14 text-left w-full space-x-0.5 border-2 border-transparent px-4 py-2 cursor-pointer" x-show="openTopics"
:class="{
'bg-primary-50 text-primary-800 rounded-md': active,
'text-neutral-900': active === false
}">
Relationships
{
active = !active;
$dispatch('clicked-item', { md5: 'c62410762ba5763bbf295f15c7eb6a8b', route: 'https://www.therapistaid.com/tools/self-esteem' });
}"
@clicked-item.window="() => {
active = active && $event.detail.md5 === 'c62410762ba5763bbf295f15c7eb6a8b';
if(active){
$dispatch('close-mobile-menu');
setTimeout(() => window.location = 'https://www.therapistaid.com/tools/self-esteem', 300);
}
}"
class="font-medium text-body-14 text-left w-full space-x-0.5 border-2 border-transparent px-4 py-2 cursor-pointer" x-show="openTopics"
:class="{
'bg-primary-50 text-primary-800 rounded-md': active,
'text-neutral-900': active === false
}">
Self-Esteem
{
active = !active;
$dispatch('clicked-item', { md5: 'b78a0b5187c416f1b042bbfd22206ffc', route: 'https://www.therapistaid.com/tools/stress' });
}"
@clicked-item.window="() => {
active = active && $event.detail.md5 === 'b78a0b5187c416f1b042bbfd22206ffc';
if(active){
$dispatch('close-mobile-menu');
setTimeout(() => window.location = 'https://www.therapistaid.com/tools/stress', 300);
}
}"
class="font-medium text-body-14 text-left w-full space-x-0.5 border-2 border-transparent px-4 py-2 cursor-pointer" x-show="openTopics"
:class="{
'bg-primary-50 text-primary-800 rounded-md': active,
'text-neutral-900': active === false
}">
Stress
{
active = !active;
$dispatch('clicked-item', { md5: 'f4151b6ec551bb708742e7d8593fa2bd', route: 'https://www.therapistaid.com/tools/substance-use' });
}"
@clicked-item.window="() => {
active = active && $event.detail.md5 === 'f4151b6ec551bb708742e7d8593fa2bd';
if(active){
$dispatch('close-mobile-menu');
setTimeout(() => window.location = 'https://www.therapistaid.com/tools/substance-use', 300);
}
}"
class="font-medium text-body-14 text-left w-full space-x-0.5 border-2 border-transparent px-4 py-2 cursor-pointer" x-show="openTopics"
:class="{
'bg-primary-50 text-primary-800 rounded-md': active,
'text-neutral-900': active === false
}">
Substance Use
Treatments
{
active = !active;
$dispatch('clicked-item', { md5: 'ec29ed5e24a76a49645b9ec0812c9086', route: 'https://www.therapistaid.com/tools/art' });
}"
@clicked-item.window="() => {
active = active && $event.detail.md5 === 'ec29ed5e24a76a49645b9ec0812c9086';
if(active){
$dispatch('close-mobile-menu');
setTimeout(() => window.location = 'https://www.therapistaid.com/tools/art', 300);
}
}"
class="font-medium text-body-14 text-left w-full space-x-0.5 border-2 border-transparent px-4 py-2 cursor-pointer"
:class="{
'bg-primary-50 text-primary-800 rounded-md': active,
'text-neutral-900': active === false
}">
Art
{
active = !active;
$dispatch('clicked-item', { md5: 'e31d365cc315c3a703d90855ebf6a96a', route: 'https://www.therapistaid.com/tools/cbt' });
}"
@clicked-item.window="() => {
active = active && $event.detail.md5 === 'e31d365cc315c3a703d90855ebf6a96a';
if(active){
$dispatch('close-mobile-menu');
setTimeout(() => window.location = 'https://www.therapistaid.com/tools/cbt', 300);
}
}"
class="font-medium text-body-14 text-left w-full space-x-0.5 border-2 border-transparent px-4 py-2 cursor-pointer"
:class="{
'bg-primary-50 text-primary-800 rounded-md': active,
'text-neutral-900': active === false
}">
CBT
{
active = !active;
$dispatch('clicked-item', { md5: 'fc0d896535d8cae55752b67870bf42fa', route: 'https://www.therapistaid.com/tools/dbt' });
}"
@clicked-item.window="() => {
active = active && $event.detail.md5 === 'fc0d896535d8cae55752b67870bf42fa';
if(active){
$dispatch('close-mobile-menu');
setTimeout(() => window.location = 'https://www.therapistaid.com/tools/dbt', 300);
}
}"
class="font-medium text-body-14 text-left w-full space-x-0.5 border-2 border-transparent px-4 py-2 cursor-pointer"
:class="{
'bg-primary-50 text-primary-800 rounded-md': active,
'text-neutral-900': active === false
}">
DBT
{
active = !active;
$dispatch('clicked-item', { md5: '5236a67eaed9e2c3ee71048e47ac3337', route: 'https://www.therapistaid.com/tools/education' });
}"
@clicked-item.window="() => {
active = active && $event.detail.md5 === '5236a67eaed9e2c3ee71048e47ac3337';
if(active){
$dispatch('close-mobile-menu');
setTimeout(() => window.location = 'https://www.therapistaid.com/tools/education', 300);
}
}"
class="font-medium text-body-14 text-left w-full space-x-0.5 border-2 border-transparent px-4 py-2 cursor-pointer"
:class="{
'bg-primary-50 text-primary-800 rounded-md': active,
'text-neutral-900': active === false
}">
Education
More +
{
active = !active;
$dispatch('clicked-item', { md5: '1660603c8e7f5444d68b8ee15b83ee7c', route: 'https://www.therapistaid.com/tools/goals' });
}"
@clicked-item.window="() => {
active = active && $event.detail.md5 === '1660603c8e7f5444d68b8ee15b83ee7c';
if(active){
$dispatch('close-mobile-menu');
setTimeout(() => window.location = 'https://www.therapistaid.com/tools/goals', 300);
}
}"
class="font-medium text-body-14 text-left w-full space-x-0.5 border-2 border-transparent px-4 py-2 cursor-pointer" x-show="openTopics"
:class="{
'bg-primary-50 text-primary-800 rounded-md': active,
'text-neutral-900': active === false
}">
Goals
{
active = !active;
$dispatch('clicked-item', { md5: '2fbd64517c16f27e1720a032e5c36f8d', route: 'https://www.therapistaid.com/tools/behavior' });
}"
@clicked-item.window="() => {
active = active && $event.detail.md5 === '2fbd64517c16f27e1720a032e5c36f8d';
if(active){
$dispatch('close-mobile-menu');
setTimeout(() => window.location = 'https://www.therapistaid.com/tools/behavior', 300);
}
}"
class="font-medium text-body-14 text-left w-full space-x-0.5 border-2 border-transparent px-4 py-2 cursor-pointer" x-show="openTopics"
:class="{
'bg-primary-50 text-primary-800 rounded-md': active,
'text-neutral-900': active === false
}">
Parenting and Behavior
{
active = !active;
$dispatch('clicked-item', { md5: 'aac97e3798ddd08318b2a443b33f1946', route: 'https://www.therapistaid.com/tools/positive-psychology' });
}"
@clicked-item.window="() => {
active = active && $event.detail.md5 === 'aac97e3798ddd08318b2a443b33f1946';
if(active){
$dispatch('close-mobile-menu');
setTimeout(() => window.location = 'https://www.therapistaid.com/tools/positive-psychology', 300);
}
}"
class="font-medium text-body-14 text-left w-full space-x-0.5 border-2 border-transparent px-4 py-2 cursor-pointer" x-show="openTopics"
:class="{
'bg-primary-50 text-primary-800 rounded-md': active,
'text-neutral-900': active === false
}">
Positive Psychology
{
active = !active;
$dispatch('clicked-item', { md5: 'a9bac86fc43ef36c4259fdf46522ae29', route: 'https://www.therapistaid.com/tools/relaxation' });
}"
@clicked-item.window="() => {
active = active && $event.detail.md5 === 'a9bac86fc43ef36c4259fdf46522ae29';
if(active){
$dispatch('close-mobile-menu');
setTimeout(() => window.location = 'https://www.therapistaid.com/tools/relaxation', 300);
}
}"
class="font-medium text-body-14 text-left w-full space-x-0.5 border-2 border-transparent px-4 py-2 cursor-pointer" x-show="openTopics"
:class="{
'bg-primary-50 text-primary-800 rounded-md': active,
'text-neutral-900': active === false
}">
Relaxation
{
active = !active;
$dispatch('clicked-item', { md5: 'b5895a21df37131e72554e11a67b0754', route: 'https://www.therapistaid.com/tools/values' });
}"
@clicked-item.window="() => {
active = active && $event.detail.md5 === 'b5895a21df37131e72554e11a67b0754';
if(active){
$dispatch('close-mobile-menu');
setTimeout(() => window.location = 'https://www.therapistaid.com/tools/values', 300);
}
}"
class="font-medium text-body-14 text-left w-full space-x-0.5 border-2 border-transparent px-4 py-2 cursor-pointer" x-show="openTopics"
:class="{
'bg-primary-50 text-primary-800 rounded-md': active,
'text-neutral-900': active === false
}">
Values