{
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 px-1 py-2.5 rounded-md" :class="{ 'bg-primary-30' : open }"
>
issues
{
active = !active;
$dispatch('clicked-item', { md5: '2b4d1e59172b6ab762e1262fa971d0c1', route: 'https://staging.therapistaid.com/tools/anger' });
}"
@clicked-item.window="() => {
if ($event.detail.md5 !== '2b4d1e59172b6ab762e1262fa971d0c1') {
return;
}
if(active){
$dispatch('close-mobile-menu');
setTimeout(() => window.location = 'https://staging.therapistaid.com/tools/anger', 300);
}
}"
class="text-body-14 text-left w-full space-x-0.5 py-2 cursor-pointer font-medium pl-6 pr-3"
:class="{
'bg-primary-50 text-primary-800 rounded-md': active,
'text-neutral-900': active === false
}"
>
Anger
{
active = !active;
$dispatch('clicked-item', { md5: 'c18618601af472b0d9ca4757f087d122', route: 'https://staging.therapistaid.com/tools/anxiety' });
}"
@clicked-item.window="() => {
if ($event.detail.md5 !== 'c18618601af472b0d9ca4757f087d122') {
return;
}
if(active){
$dispatch('close-mobile-menu');
setTimeout(() => window.location = 'https://staging.therapistaid.com/tools/anxiety', 300);
}
}"
class="text-body-14 text-left w-full space-x-0.5 py-2 cursor-pointer font-medium pl-6 pr-3"
:class="{
'bg-primary-50 text-primary-800 rounded-md': active,
'text-neutral-900': active === false
}"
>
Anxiety
{
active = !active;
$dispatch('clicked-item', { md5: 'c5ba4900ce0c6665784cfea69942b0ed', route: 'https://staging.therapistaid.com/tools/communication' });
}"
@clicked-item.window="() => {
if ($event.detail.md5 !== 'c5ba4900ce0c6665784cfea69942b0ed') {
return;
}
if(active){
$dispatch('close-mobile-menu');
setTimeout(() => window.location = 'https://staging.therapistaid.com/tools/communication', 300);
}
}"
class="text-body-14 text-left w-full space-x-0.5 py-2 cursor-pointer font-medium pl-6 pr-3"
:class="{
'bg-primary-50 text-primary-800 rounded-md': active,
'text-neutral-900': active === false
}"
>
Communication
{
active = !active;
$dispatch('clicked-item', { md5: '353152cfc01cb5161b2b53bcf863e699', route: 'https://staging.therapistaid.com/tools/depression' });
}"
@clicked-item.window="() => {
if ($event.detail.md5 !== '353152cfc01cb5161b2b53bcf863e699') {
return;
}
if(active){
$dispatch('close-mobile-menu');
setTimeout(() => window.location = 'https://staging.therapistaid.com/tools/depression', 300);
}
}"
class="text-body-14 text-left w-full space-x-0.5 py-2 cursor-pointer font-medium pl-6 pr-3"
:class="{
'bg-primary-50 text-primary-800 rounded-md': active,
'text-neutral-900': active === false
}"
>
Depression
More +
{
active = !active;
$dispatch('clicked-item', { md5: 'b1869383566be02498d91a16c976fbda', route: 'https://staging.therapistaid.com/tools/emotions' });
}"
@clicked-item.window="() => {
if ($event.detail.md5 !== 'b1869383566be02498d91a16c976fbda') {
return;
}
if(active){
$dispatch('close-mobile-menu');
setTimeout(() => window.location = 'https://staging.therapistaid.com/tools/emotions', 300);
}
}"
class="text-body-14 text-left w-full space-x-0.5 py-2 cursor-pointer font-medium pl-6 pr-3" 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: '8aebdb71838c942bb8d793be4cc85aaa', route: 'https://staging.therapistaid.com/tools/grief' });
}"
@clicked-item.window="() => {
if ($event.detail.md5 !== '8aebdb71838c942bb8d793be4cc85aaa') {
return;
}
if(active){
$dispatch('close-mobile-menu');
setTimeout(() => window.location = 'https://staging.therapistaid.com/tools/grief', 300);
}
}"
class="text-body-14 text-left w-full space-x-0.5 py-2 cursor-pointer font-medium pl-6 pr-3" 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: 'c88a3b24c04170f49bc82ccb88b89087', route: 'https://staging.therapistaid.com/tools/relationships' });
}"
@clicked-item.window="() => {
if ($event.detail.md5 !== 'c88a3b24c04170f49bc82ccb88b89087') {
return;
}
if(active){
$dispatch('close-mobile-menu');
setTimeout(() => window.location = 'https://staging.therapistaid.com/tools/relationships', 300);
}
}"
class="text-body-14 text-left w-full space-x-0.5 py-2 cursor-pointer font-medium pl-6 pr-3" 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: '94d1064b6142f556fe91221c77cb9d01', route: 'https://staging.therapistaid.com/tools/self-esteem' });
}"
@clicked-item.window="() => {
if ($event.detail.md5 !== '94d1064b6142f556fe91221c77cb9d01') {
return;
}
if(active){
$dispatch('close-mobile-menu');
setTimeout(() => window.location = 'https://staging.therapistaid.com/tools/self-esteem', 300);
}
}"
class="text-body-14 text-left w-full space-x-0.5 py-2 cursor-pointer font-medium pl-6 pr-3" 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: '421c7d7473089cf1cb7d1f2ceaf49176', route: 'https://staging.therapistaid.com/tools/stress' });
}"
@clicked-item.window="() => {
if ($event.detail.md5 !== '421c7d7473089cf1cb7d1f2ceaf49176') {
return;
}
if(active){
$dispatch('close-mobile-menu');
setTimeout(() => window.location = 'https://staging.therapistaid.com/tools/stress', 300);
}
}"
class="text-body-14 text-left w-full space-x-0.5 py-2 cursor-pointer font-medium pl-6 pr-3" 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: 'ceb3a2e6785791709c6456354509580f', route: 'https://staging.therapistaid.com/tools/substance-use' });
}"
@clicked-item.window="() => {
if ($event.detail.md5 !== 'ceb3a2e6785791709c6456354509580f') {
return;
}
if(active){
$dispatch('close-mobile-menu');
setTimeout(() => window.location = 'https://staging.therapistaid.com/tools/substance-use', 300);
}
}"
class="text-body-14 text-left w-full space-x-0.5 py-2 cursor-pointer font-medium pl-6 pr-3" 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: '786b51f4e1b19e3972364d1d48049f3c', route: 'https://staging.therapistaid.com/tools/art' });
}"
@clicked-item.window="() => {
if ($event.detail.md5 !== '786b51f4e1b19e3972364d1d48049f3c') {
return;
}
if(active){
$dispatch('close-mobile-menu');
setTimeout(() => window.location = 'https://staging.therapistaid.com/tools/art', 300);
}
}"
class="text-body-14 text-left w-full space-x-0.5 py-2 cursor-pointer font-medium pl-6 pr-3"
:class="{
'bg-primary-50 text-primary-800 rounded-md': active,
'text-neutral-900': active === false
}"
>
Art
{
active = !active;
$dispatch('clicked-item', { md5: 'b6a03c593a228b68b743a8114839304c', route: 'https://staging.therapistaid.com/tools/cbt' });
}"
@clicked-item.window="() => {
if ($event.detail.md5 !== 'b6a03c593a228b68b743a8114839304c') {
return;
}
if(active){
$dispatch('close-mobile-menu');
setTimeout(() => window.location = 'https://staging.therapistaid.com/tools/cbt', 300);
}
}"
class="text-body-14 text-left w-full space-x-0.5 py-2 cursor-pointer font-medium pl-6 pr-3"
:class="{
'bg-primary-50 text-primary-800 rounded-md': active,
'text-neutral-900': active === false
}"
>
CBT
{
active = !active;
$dispatch('clicked-item', { md5: 'dfb7278d86a6421d42f076a789f94692', route: 'https://staging.therapistaid.com/tools/dbt' });
}"
@clicked-item.window="() => {
if ($event.detail.md5 !== 'dfb7278d86a6421d42f076a789f94692') {
return;
}
if(active){
$dispatch('close-mobile-menu');
setTimeout(() => window.location = 'https://staging.therapistaid.com/tools/dbt', 300);
}
}"
class="text-body-14 text-left w-full space-x-0.5 py-2 cursor-pointer font-medium pl-6 pr-3"
:class="{
'bg-primary-50 text-primary-800 rounded-md': active,
'text-neutral-900': active === false
}"
>
DBT
{
active = !active;
$dispatch('clicked-item', { md5: '325684e7453cd423b72da40dff8195c8', route: 'https://staging.therapistaid.com/tools/education' });
}"
@clicked-item.window="() => {
if ($event.detail.md5 !== '325684e7453cd423b72da40dff8195c8') {
return;
}
if(active){
$dispatch('close-mobile-menu');
setTimeout(() => window.location = 'https://staging.therapistaid.com/tools/education', 300);
}
}"
class="text-body-14 text-left w-full space-x-0.5 py-2 cursor-pointer font-medium pl-6 pr-3"
:class="{
'bg-primary-50 text-primary-800 rounded-md': active,
'text-neutral-900': active === false
}"
>
Education
More +
{
active = !active;
$dispatch('clicked-item', { md5: '471905bfb688fa5ae0f12744c8f47342', route: 'https://staging.therapistaid.com/tools/goals' });
}"
@clicked-item.window="() => {
if ($event.detail.md5 !== '471905bfb688fa5ae0f12744c8f47342') {
return;
}
if(active){
$dispatch('close-mobile-menu');
setTimeout(() => window.location = 'https://staging.therapistaid.com/tools/goals', 300);
}
}"
class="text-body-14 text-left w-full space-x-0.5 py-2 cursor-pointer font-medium pl-6 pr-3" 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: '35d0398a5586382e2b2e0feb36fca213', route: 'https://staging.therapistaid.com/tools/behavior' });
}"
@clicked-item.window="() => {
if ($event.detail.md5 !== '35d0398a5586382e2b2e0feb36fca213') {
return;
}
if(active){
$dispatch('close-mobile-menu');
setTimeout(() => window.location = 'https://staging.therapistaid.com/tools/behavior', 300);
}
}"
class="text-body-14 text-left w-full space-x-0.5 py-2 cursor-pointer font-medium pl-6 pr-3" 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: '3317aa43c270eaf37e509763eb99a5e1', route: 'https://staging.therapistaid.com/tools/positive-psychology' });
}"
@clicked-item.window="() => {
if ($event.detail.md5 !== '3317aa43c270eaf37e509763eb99a5e1') {
return;
}
if(active){
$dispatch('close-mobile-menu');
setTimeout(() => window.location = 'https://staging.therapistaid.com/tools/positive-psychology', 300);
}
}"
class="text-body-14 text-left w-full space-x-0.5 py-2 cursor-pointer font-medium pl-6 pr-3" 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: 'a275e617ddbfe23c9e52863a409deee7', route: 'https://staging.therapistaid.com/tools/relaxation' });
}"
@clicked-item.window="() => {
if ($event.detail.md5 !== 'a275e617ddbfe23c9e52863a409deee7') {
return;
}
if(active){
$dispatch('close-mobile-menu');
setTimeout(() => window.location = 'https://staging.therapistaid.com/tools/relaxation', 300);
}
}"
class="text-body-14 text-left w-full space-x-0.5 py-2 cursor-pointer font-medium pl-6 pr-3" 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: 'fa56d7ee130cdbd8b40522543264829f', route: 'https://staging.therapistaid.com/tools/values' });
}"
@clicked-item.window="() => {
if ($event.detail.md5 !== 'fa56d7ee130cdbd8b40522543264829f') {
return;
}
if(active){
$dispatch('close-mobile-menu');
setTimeout(() => window.location = 'https://staging.therapistaid.com/tools/values', 300);
}
}"
class="text-body-14 text-left w-full space-x-0.5 py-2 cursor-pointer font-medium pl-6 pr-3" x-show="openTopics"
:class="{
'bg-primary-50 text-primary-800 rounded-md': active,
'text-neutral-900': active === false
}"
>
Values