PageSourceSearch

https://coisar.com/assets/AccountSwitcher-BZVUfa3_.js

js coisar.com collected 2026-10-07 21:03:32 UTC 7,846 bytes, 2 lines download raw bytes

1import{Y as P,r as B,c as D,N as C,C as x,D as y,V as r,Q as s,M as e,u as o,P as i,ab as I,a9 as A,G as n}from"./vue-vendor-B47-IOI5.js";import{g as M}from"./index-O33Ma34B.js";import{_ as T}from"./AvatarPhoto-Ci1IvqMe.js";import{_ as U}from"./ReadingListPanel--tAFuvU4.js";import{S as O,M as R,b as g,g as N}from"./headlessui-Y2YZn8U5.js";import"./jsonata-B8fnlbK5.js";import"./firebase-app-i3LHiLFe.js";import"./firebase-auth-DkOTFHyk.js";import"./firebase-firestore-pXPEshlx.js";import"./firebase-functions-CJeCuegn.js";import"./analytics-B7ftq9Nc.js";import"./vuefire-qJ79R-Ug.js";import"./firebase-storage-CFW5eRaO.js";import"./fontawesome-B4kGKycv.js";import"./gettext-75PVbkNV.js";import"./storyblok-CixJIiwy.js";import"./vueuse-kBox2k3A.js";import"./sentry-DjxoU76I.js";(function(){try{var d=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},m=new d.Error().stack;m&&(d._sentryDebugIds=d._sentryDebugIds||{},d._sentryDebugIds[m]="d2ebb97f-db90-4323-be7b-405c0683bb48",d._sentryDebugIdIdentifier="sentry-dbid-d2ebb97f-db90-4323-be7b-405c0683bb48")}catch{}})();const V={class:"relative"},W={class:"relative flex flex-col"},j={class:"md:block hidden w-32 text-sm grow"},E={class:"flex items-center font-medium text-gray-600"},F={class:"font-semibold text-sm truncate"},L={class:"flex items-center mt-1 text-gray-600 text-sm"},q={class:"font-regular text-xs truncate"},G={class:"md:flex hidden"},H={class:"py-1"},Q=["onClick"],Y={href:"https://support.humandesignclub.com",target:"_blank",class:"flex items-center hover:bg-gray-100 px-4 py-2 text-gray-700 text-sm group"},J={href:"/legal/imprint/",target:"_blank",class:"flex items-center hover:bg-gray-100 px-4 py-2 text-gray-700 text-sm group"},K={href:"/legal/terms/",target:"_blank",class:"flex items-center hover:bg-gray-100 px-4 py-2 text-gray-700 text-sm group"},X={href:"/legal/privacy/",target:"_blank",class:"flex items-center hover:bg-gray-100 px-4 py-2 rounded-b-xl text-gray-700 text-sm group"},ye={__name:"AccountSwitcher",props:{list:Array,reading:Object},emits:["readingAdd","readingSelect","userLogout"],setup(d,{emit:m}){const u=d,b=m,k=M(),{logout:v}=k,z=P(),_=B({}),S=t=>{const l=t==null?void 0:t.id;return l&&Object.prototype.hasOwnProperty.call(_.value,l)?_.value[l]:t==null?void 0:t.photoUrl},f=D(()=>{var t,l,a,p,h,c;return{id:(t=u.reading)==null?void 0:t.id,name:(l=u.reading)==null?void 0:l.name,type:(p=(a=u.reading)==null?void 0:a.bodygraph)==null?void 0:p.Properties.Type.id,short:(c=(h=u.reading)==null?void 0:h.name)==null?void 0:c.charAt(0).toUpperCase(),photoUrl:S(u.reading)}});function $(){z.push({name:"list"})}function w(t){b("readingSelect",t.id)}return(t,l)=>{const a=C("font-awesome-icon"),p=C("router-link");return x(),y(o(N),{as:"div",class:"inline-block relative md:w-[240px] text-left"},{default:r(({open:h})=>[s("div",V,[e(o(O),{class:"flex flex-row justify-even items-center gap-4 md:border-2 lg:bg-white p-2 border-indigo-200 hover:border-indigo-300 focus:border-indigo-500/90 md:border-solid rounded-xl w-full group ui-open:ring-2 ui-open:ring-indigo-500/90 ui-open:ring-offset-2"},{default:r(()=>[s("div",W,[e(T,{"photo-url":f.value.photoUrl,alt:f.value.name||"Profile","fallback-text":f.value.short,"size-class":"w-10 h-10"},null,8,["photo-url","alt","fallback-text"])]),s("div",j,[s("p",E,[s("span",F,i(f.value.name),1)]),s("p",L,[s("span",q,i(f.value.type),1)])]),s("div",G,[h?(x(),y(a,{key:0,size:"lg",class:"w-4 h-4 text-gray-600 fill-gray-600",icon:["fass","chevron-down"],"aria-hidden":"true"})):(x(),y(a,{key:1,size:"lg",class:"w-4 h-4 text-gray-600 fill-gray-600",icon:["fass","chevron-right"],"aria-hidden":"true"}))])]),_:2},1024)]),e(I,{"enter-active-class":"transition ease-out duration-100","enter-from-class":"transform opacity-0 scale-95","enter-to-class":"transform opacity-100 scale-100","leave-active-class":"transition ease-in duration-75","leave-from-class":"transform opacity-100 scale-100","leave-to-class":"transform opacity-0 scale-95"},{default:r(()=>[e(o(R),{as:"ul",class:"right-0 z-50 absolute gap-2 border border-stone-300 bg-white mt-2 border-solid rounded-xl divide-y divide-gray-500/30 w-[240px]"},{default:r(()=>
1[s("div",H,[e(U,{readings:d.list,favouritesOnly:!0,showFilters:!1,showFavouriteButton:!1,showChangeButton:!1,showEditButton:!1,showDeleteButton:!1,showMenu:!1,showMetaColumn:!1,showProfile:!1,itemClickable:!0,avatarPosition:"inside",rootClass:"w-full",filtersClass:"hidden",listWrapperClass:"w-full",listCardClass:"w-full",rowClass:"flex items-center gap-4 p-2 w-full",rowHoverClass:"hover:bg-gray-100",contentPaddingClass:"",contentWrapperClass:"flex items-center gap-4 w-full flex-1",textWrapperClass:"flex flex-col gap-1 flex-1 min-w-0",actionsWrapperClass:"flex items-center gap-2 ml-auto",nameClass:"font-semibold text-sm text-gray-600 truncate",typeBadgeClass:"text-gray-600 text-xs",onSelectReading:w},{actions:r(({reading:c})=>[s("button",{type:"button",onClick:A(Z=>w(c),["stop"]),class:"ml-auto p-0 flex items-center text-gray-600 hover:text-gray-700"},[e(a,{size:"lg",class:"w-3 h-3",icon:["fass","chevron-right"],"aria-hidden":"true"})],8,Q)]),_:1},8,["readings"])]),e(o(g),{as:"li"},{default:r(()=>[s("button",{onClick:$,class:"flex items-center hover:bg-gray-100 px-4 py-2 w-full text-gray-700 text-sm group"},[e(a,{size:"lg",class:"group-hover:text-gray-500 mr-3 w-4 h-4 fill-gray-600",icon:["fass","list"],"aria-hidden":"true"}),n(" "+i(t.$gettext("All Coisars")),1)])]),_:1}),e(o(g),{as:"li"},{default:r(()=>[s("a",{href:"#",onClick:l[0]||(l[0]=c=>b("readingAdd")),class:"flex items-center hover:bg-gray-100 px-4 py-2 text-gray-700 text-sm group"},[e(a,{size:"lg",class:"group-hover:text-gray-500 mr-3 w-4 h-4 fill-gray-600",icon:["fass","user-plus"],"aria-hidden":"true"}),n(" "+i(t.$gettext("Create Coisar")),1)])]),_:1}),e(o(g),{as:"li"},{default:r(()=>[e(p,{to:{name:"onboarding"},class:"flex items-center hover:bg-gray-100 px-4 py-2 text-gray-700 text-sm group"},{default:r(()=>[e(a,{size:"lg",class:"group-hover:text-gray-500 mr-3 w-4 h-4 fill-gray-600",icon:["fass","arrow-right"],"aria-hidden":"true"}),n(" "+i(t.$gettext("Introduction")),1)]),_:1})]),_:1}),e(o(g),{as:"li"},{default:r(()=>[e(p,{to:{name:"profile-settings"},class:"flex items-center hover:bg-gray-100 px-4 py-2 text-gray-700 text-sm group"},{default:r(()=>[e(a,{size:"lg",class:"group-hover:text-gray-500 mr-3 w-4 h-4 fill-gray-600",icon:["fass","gear"],"aria-hidden":"true"}),n(" "+i(t.$gettext("Profile Settings")),1)]),_:1})]),_:1}),e(o(g),{as:"li"},{default:r(()=>[s("a",Y,[e(a,{size:"lg",class:"group-hover:text-gray-500 mr-3 w-4 h-4 fill-gray-600",icon:["fass","messages-question"],"aria-hidden":"true"}),n(" "+i(t.$gettext("Support")),1)])]),_:1}),e(o(g),{as:"li"},{default:r(()=>[s("a",J,[e(a,{size:"lg",class:"group-hover:text-gray-500 mr-3 w-4 h-4 fill-gray-600",icon:["fass","building"],"aria-hidden":"true"}),n(" "+i(t.$gettext("Imprint")),1)])]),_:1}),e(o(g),{as:"li"},{default:r(()=>[s("a",K,[e(a,{size:"lg",class:"group-hover:text-gray-500 mr-3 w-4 h-4 fill-gray-600",icon:["fass","file-contract"],"aria-hidden":"true"}),n(" "+i(t.$gettext("Terms")),1)])]),_:1}),e(o(g),{as:"li"},{default:r(()=>[s("a",X,[e(a,{size:"lg",class:"group-hover:text-gray-500 mr-3 w-4 h-4 fill-gray-600",icon:["fass","shield-check"],"aria-hidden":"true"}),l[2]||(l[2]=n(" Datenschutz "))])]),_:1}),e(o(g),{as:"li"},{default:r(()=>[s("a",{href:"#",onClick:l[1]||(l[1]=(...c)=>o(v)&&o(v)(...c)),class:"flex items-center hover:bg-gray-100 px-4 py-2 text-gray-700 text-sm group"},[e(a,{size:"lg",class:"group-hover:text-gray-500 mr-3 w-4 h-4 text-gray-600",icon:["fass","right-to-bracket"],"aria-hidden":"true"}),n(" "+i(t.$gettext("Logout")),1)])]),_:1})]),_:1})]),_:1})]),_:1})}}};export{ye as default};
2//# sourceMappingURL=AccountSwitcher-BZVUfa3_.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.