PageSourceSearch

https://reviewmyelearning.com/assets/Portfolio-DbE4kQid.js

js reviewmyelearning.com collected 2026-10-03 22:02:30 UTC 5,474 bytes, 4 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{};e._posthogReleaseId=e._posthogReleaseId||"01a0f4aa-c8bc-0000-917f-f2bf77a886bd";var n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]="1f36d453-0343-55df-9b4c-a5b3f9b2ba2f")}catch(e){}}();import{u as v,a as y,r as u,o as k,c as r,b as i,w as z,d as s,e as o,f as c,g as L,t as m,h as C,F as h,i as T,v as M,j,k as B}from"./index-BzauN4-I.js";import{c as U}from"./v-clipboard.es-C1jM7FIP.js";import{_ as V}from"./Toast-CZJveAPl.js";const $={key:0,class:"my-[25%] mx-[50%]"},N={key:1,class:"flex-grow"},P={class:"bg-white py-6"},S={class:"flex mx-auto max-w-4xl"},H={key:0,role:"alert",class:"alert shadow-lg mb-2"},R={class:""},q={class:"mx-auto max-w-7xl"},D={class:"text-center text-4xl font-bold tracking-wide text-gray-900 sm:text-6xl"},E=["innerHTML"],F={class:"mt-6 flex justify-center gap-4"},G=["href"],I=["href"],Y={key:0,class:"mx-auto mt-3 max-w-2xl p-6 bg-white border border-gray-200 rounded-lg shadow dark:bg-gray-800 dark:border-gray-700"},A={role:"list",class:"flex flex-wrap justify-center gap-3 mt-6 px-6 pb-24"},O=["onClick"],W={class:"flex flex-1 flex-col mb-2"},J=["src"],K={class:"prose p-2 border-b-2 border-gray-50 font-medium text-gray-900"},Q=["innerHTML"],eo={__name:"Portfolio",setup(X){const e=v(),g=y(),x=u([]),b=u(window.location.origin),d=u(!1),p=u(!1);k(()=>{var n,t,l;document.title=e.organization.title+" Portfolio",x.value=e.organization.portfolio_courses,((n=g==null?void 0:g.user)==null?void 0:n._id)===((l=(t=e==null?void 0:e.organization)==null?void 0:t.owner)==null?void 0:l._id)&&(d.value=!0)});const w=n=>{window.open(`/course-review/${n._id}?mode=portfolio`,"_blank")},_=()=>{U.copy(window.location.origin),p.value=!0,B("portfolio_link copied"),setTimeout(()=>{p.value=!1},2e3)};return(n,t)=>{var l;return i(),r(h,null,[s(e).organizationInfoLoading?(i(),r("div",$,t[3]||(t[3]=[o("span",{class:"absolute loading loading-spinner w-[50px] text-gray-400"},null,-1)]))):(i(),r("div",N,[o("div",P,[o("div",S,[d.value?(i(),r("div",H,[t[8]||(t[8]=o("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",class:"stroke-info shrink-0 w-6 h-6"},[o("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})],-1)),o("div",null,[t[5]||(t[5]=o("h3",{class:"font-bold"},"Your Portfolio URL",-1)),o("div",R,[t[4]||(t[4]=L(" To share your Portfolio copy this URL: ")),o("span",{class:"font-semibold tooltip tooltip-top","data-tip":"Click to copy",onClick:t[0]||(t[0]=a=>_())},m(b.value),1)]),t[6]||(t[6]=o("div",{class:"text-xs"},"Your visitors will not see this message",-1))]),o("button",{onClick:t[1]||(t[1]=a=>d.value=!1),class:"bg-white rounded-md inline-flex text-gray-400 hover:text-gray-500 self-start"},t[7]||(t[7]=[o("span",{class:"sr-only"},"Close",-1),o("svg",{class:"size-6",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},[o("path",{d:"M6.28 5.22a.75.75 0 00-1.06 1.06L8.94 10l-3.72 3.72a.75.75 0 101.06 1.06L10 11.06l3.72 3.72a.75.75 0 101.06-1.06L11.06 10l3.72-3.72a.75.75 0 00-1.06-1.06L10 8.94 6.28 5.22z"})],-1)]))])):c("",!0)]),o("div",q,[o("h2",D,m(s(e).organization.title),1),o("p",{class:"mt-6 prose",innerHTML:s(e).organization.about},null,8,E),o("div",F,[s(e).organization.contact_email?(i(),r("a",{key:0,href:`mailto:${s(e).organization.contact_email}`,class:"rme-btn rme-btn-primary",target:"_blank"},"Contact Us",8,G)):c("",!0),s(e).organization.home_page?(i(),r("a",{key:1,href:s(e).organization.home_page,target:"_blank",class:"rme-btn rme-btn-primary"},"Visit Website",8,I)):c("",!0)])])]),o("div",null,[(s(e).organization.portfolio_courses.length===0||!s(e).organization.about)&&d.value?(i(),r("div",Y,t[9]||(t[9]=[C('<a href="#"><h5 class="mb-2 text-2xl font-bold tracking-tight text-gray-900 dark:text-white"> Create your Portfolio </h5></a><p class="mb-3 font-normal text-gray-700 dark:text-gray-400"> To create your portfolio you should first add some infomation about your organization. </p><p class="mb-3 font-normal text-gray-700 dark:text-gray-400"> Then navigate to one of your courses and toggle the &quot;Include in my portfolio.&quot; switch. </p><a href="/profile#portfolio" aria-label="Go to Settings" class="inline-flex items-center px-3 py-2 rme-btn rme-btn-primary"> Go to Settings <svg class="rtl:rotate-180 w-3.5 h-3.5 ms-2" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 14 10"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M1 5h12m0 0L9 1m4 4L9 9"></path></svg></a>',4)]))):c("",!0)]),o("ul",A,[(i(!0),r(h,null,T((l=s(e).organization)==null?void 0:l.portfolio_courses,a=>(i(),r("li",{class:"portfolio-card cursor-pointer",onClick:f=>w(a)},[o("div",W,[o("img",{class:"w-full h-64 object-cover rounded-lg border-b border-gray-200",src:(a==null?void 0:a.thumbnail)??"imgs/thumbnail.jpg",onError:t[2]||(t[2]=f=>f.target.src="imgs/thumbnail.jpg"),alt:"thumbnail",loading:"lazy"}
1,null,40,J),o("h3",K,m(a.title),1),o("p",{class:"prose text-left p-2",innerHTML:a.description},null,8,Q)])],8,O))),256))])])),z(j(V,{message:"Copied URL to Clipboard"},null,512),[[M,p.value]])],64)}}};export{eo as default};
2//# sourceMappingURL=Portfolio-DbE4kQid.js.map
3
4//# chunkId=1f36d453-0343-55df-9b4c-a5b3f9b2ba2f

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.