PageSourceSearch

https://uniprep.ai/chunk-HZHYXZ7T.js

js uniprep.ai collected 2026-10-05 13:10:50 UTC 18,860 bytes, 1 lines download raw bytes

1import{b as xt}from"./chunk-4NFHN5VQ.js";import{a as yt,b as F}from"./chunk-4CH4EIN2.js";import{a as wt}from"./chunk-OGLHDN4G.js";import{c as St}from"./chunk-KSIW5RF2.js";import"./chunk-ZITLZF3L.js";import{b as ft}from"./chunk-UAT63NLQ.js";import{b as ht,c as L}from"./chunk-PPFB4XRT.js";import{b as gt}from"./chunk-O6SOUJVL.js";import"./chunk-T4A7HUPO.js";import"./chunk-Q73566E4.js";import"./chunk-ZPCRPMMG.js";import"./chunk-TQAODRPP.js";import{b as Ct,c as I}from"./chunk-PBMB7ANT.js";import"./chunk-COKEKVS6.js";import{A as V,g as dt,h as mt,m as pt,p as ut,s as _t,y as bt}from"./chunk-2ZZAYGZY.js";import"./chunk-EZOEUJNH.js";import"./chunk-VRJUQZIJ.js";import"./chunk-D7ZL2HQF.js";import{m as vt}from"./chunk-OAFOQKPS.js";import{a as M}from"./chunk-C4JV2Z3C.js";import"./chunk-ZOZJ2PQS.js";import"./chunk-IBR4YQLK.js";import"./chunk-G6M6TK2O.js";import{B as T,F as ct}from"./chunk-HZJWQTSJ.js";import{d as at,k as st,s as E}from"./chunk-S3UNRQY2.js";import{h as lt}from"./chunk-MBOB6GRN.js";import{A as k,l as it,m as nt,n as ot,o as rt}from"./chunk-JO5ICFIF.js";import"./chunk-4O3FVBGX.js";import{$c as q,Ac as g,Cc as C,Ea as u,Fa as _,Hb as h,Mc as y,Ob as J,Pb as K,Pc as Z,Qc as j,Rc as c,Sc as x,Tc as O,Ub as f,Uc as P,Xc as D,Yc as A,Zc as B,_c as tt,cd as et,dd as R,mc as d,nc as e,oc as n,pb as H,pc as p,qb as $,qd as S,ra as W,sa as U,tc as X,uc as Y,va as G,vb as s,wc as w}from"./chunk-ZXF7JNRK.js";import{a as N,b as z}from"./chunk-QQZXABBW.js";var Et=(()=>{let o=class o{constructor(i){this.http=i}getContributors(i){return this.http.post(M.ApiUrl+"/getcontributorlists",i)}getContributorDropDownList(){return this.http.get(`${M.ApiUrl}/contributordropdownlist`)}getContributionsDetails(i){return this.http.post(`${M.ApiUrl}/fetchcontributordetails`,{id:i})}};o.\u0275fac=function(a){return new(a||o)(G(lt))},o.\u0275prov=W({token:o,factory:o.\u0275fac,providedIn:"root"});let t=o;return t})();var Mt=()=>({width:"50vw"}),It=()=>({"960px":"60vw","959px":"80vw","425px":"90vw"});function Lt(t,o){if(t&1){let l=w();e(0,"div",50),g("click",function(){u(l);let a=C();return _(a.isViewContributor=!1)}),p(1,"span",51),n()}}function Ft(t,o){if(t&1){let l=w();e(0,"div",52)(1,"button",53),g("click",function(){u(l);let a=C();return _(a.showFilter())}),e(2,"span"),c(3,"Filter"),n()()()}}function Qt(t,o){t&1&&(e(0,"div",57),p(1,"p-skeleton",58),n())}function jt(t,o){if(t&1&&(e(0,"div",18),f(1,Qt,2,0,"div",56),n()),t&2){let l=C(2);s(),d("ngForOf",l.loopRange)}}function Ot(t,o){t&1&&(e(0,"div",75),c(1,"Titan"),n())}function Pt(t,o){t&1&&(e(0,"div",76),c(1,"Diamond"),n())}function Dt(t,o){t&1&&(e(0,"div",77),c(1,"Ruby"),n())}function At(t,o){t&1&&(e(0,"div",78),c(1,"Platinum"),n())}function Bt(t,o){t&1&&(e(0,"div",79),c(1,"Gold"),n())}function qt(t,o){t&1&&(e(0,"div",80),c(1,"Silver"),n())}function Rt(t,o){t&1&&(e(0,"div",81),c(1,"Bronze"),n())}function Nt(t,o){if(t&1&&(e(0,"div",82),p(1,"img",83),n()),t&2){let l=C().$implicit;s(),d("src",l.image,$)}}function zt(t,o){t&1&&(e(0,"div",84),p(1,"i",85),n())}function Wt(t,o){if(t&1){let l=w();e(0,"div",57)(1,"div",59)(2,"div",60)(3,"div",61),X(4,62),f(5,Ot,2,0,"div",63)(6,Pt,2,0,"div",64)(7,Dt,2,0,"div",65)(8,At,2,0,"div",66)(9,Bt,2,0,"div",67)(10,qt,2,0,"div",68)(11,Rt,2,0,"div",69),Y(),e(12,"div",70),f(13,Nt,2,1,"div",71)(14,zt,2,0,"ng-template",null,3,S),e(16,"div",72)(17,"h5"),c(18),n(),e(19,"div",73),c(20),n(),e(21,"div",73),c(22),n()()(),e(23,"button",74),g("click",function(){let a=u(l).$implicit,r=C(3);return _(r.viewContributor(a))}),c(24," View "),n()()()()()}if(t&2){let l=o.$implicit,i=y(15);s(4),d("ngSwitch",l.contributiontier),s(),d("ngSwitchCase","Titan Contributor"),s(),d("ngSwitchCase","Diamond Contributor"),s(),d("ngSwitchCase","Ruby Contributor"),s(),d("ngSwitchCase","Platinum Contributor"),s(),d("ngSwitchCase","Gold Contributor"),s(),d("ngSwitchCase","Silver Contributor"),s(),d("ngSwitchCase","Bronze Contributor"),s(2),d("ngIf",l.image)("ngIfElse",i),s(5),x(l.name),s(2),x(l.designation),s(2),x(l.location)}}function Ut(t,o){if(t&1&&(e(0,"div",18),f(1,Wt,25,13,"div",56),n()),t&2){let l=C(2);s(),d("ngForOf",l.contributorList)}}
1function Gt(t,o){if(t&1&&(e(0,"div",54),f(1,jt,2,1,"div",55)(2,Ut,2,1,"ng-template",null,2,S),n()),t&2){let l=y(3),i=C();s(),d("ngIf",i.isSkeletonVisible)("ngIfElse",l)}}function Ht(t,o){if(t&1){let l=w();e(0,"div",88)(1,"div",59)(2,"div",89),g("click",function(){let a=u(l),r=a.$implicit,m=a.index,b=C(2);return _(b.viewOneQuestion(r,m))}),e(3,"div",90)(4,"div",91)(5,"div",92)(6,"p",93),c(7),n()(),e(8,"div",94),p(9,"i",95),n()(),e(10,"button",96),c(11,"Read Answer"),n(),e(12,"button",96),c(13,"Read Answer"),n()()()()()}if(t&2){let l=o.$implicit;s(6),d("title",tt(l.question)),s(),O(" ",l.question),s(3),j(q("btn d-md-block d-none w-100 flex-shrink-0 btn-primary btn-rounded m-0 primary-btn ",l.read==1?"questionread":"")),s(2),j(q("btn d-md-none d-flex flex-shrink-0 btn-primary btn-rounded m-0 primary-btn ",l.read==1?"questionread":""))}}function $t(t,o){t&1&&(e(0,"div",97)(1,"h3",98),c(2,"No details found"),n()())}function Jt(t,o){if(t&1&&(e(0,"div",54)(1,"div",18),f(2,Ht,14,9,"div",86),n(),f(3,$t,3,0,"div",87),n()),t&2){let l=C();s(2),d("ngForOf",l.selectedContributor==null?null:l.selectedContributor.question_answer),s(),d("ngIf",!(l.selectedContributor!=null&&l.selectedContributor.question_answer)||(l.selectedContributor==null?null:l.selectedContributor.question_answer.length)==0)}}function Kt(t,o){if(t&1&&(e(0,"div"),c(1),n()),t&2){let l=o.$implicit;s(),P("",l.state," - ",l.district)}}function Xt(t,o){if(t&1&&c(0),t&2){let l=o.$implicit;P(" ",l.state," - ",l.district," ")}}function Yt(t,o){t&1&&(e(0,"div",99)(1,"div",100),p(2,"div",101),e(3,"div",102)(4,"h5",103),c(5,"Contributor"),n()(),p(6,"div",101),n()())}var Q=(()=>{let o=class o{constructor(i,a,r,m,b,v,Tt){this.fb=i,this.contributorsService=a,this.locationService=r,this.toast=m,this.meta=b,this.route=v,this.socialShareService=Tt,this.title="",this.isViewContributor=!1,this.contributorList=[],this.contributorQandAList=[],this.contibutionTierList=[],this.locationList=[],this.isQuestionAnswerVisible=!1,this.loopRange=[0,1,2,3,4,5,6,7],this.isSkeletonVisible=!0,this.isQandAModal=!1}ngOnInit(){this.filterForm=this.fb.group({contributiontier:[""],location:[""]});let i=Number(this.route.snapshot.paramMap.get("id")),a=Number(this.route.snapshot.paramMap.get("questionId"));i&&a&&this.getContributionDetails(i,a),this.getContributorList({}),this.getDropdownValues()}getContributorList(i){this.contributorsService.getContributors(i).subscribe({next:a=>{this.isSkeletonVisible=!1,this.contributorList=a.data},error:a=>{this.isSkeletonVisible=!1,console.log(a?.error?.message)}})}getDropdownValues(){this.contributorsService.getContributorDropDownList().subscribe({next:i=>{this.contibutionTierList=i.contributiontier},error:i=>{console.log(i?.error?.message)}}),this.locationService.getLocation().subscribe({next:i=>{this.locationList=i},error:i=>{console.log(i?.error?.message)}})}getContributionDetails(i,a){this.contributorsService.getContributionsDetails(i).subscribe({next:r=>{this.viewContributor(r.data,a)},error:r=>{console.log(r?.error?.message)}})}showFilter(){this.isQuestionAnswerVisible=!0}submitFilterForm(){let i=this.filterForm.value;if(!i.location&&!i.contributiontier){this.toast.add({severity:"error",summary:"Error",detail:"Please make sure you have some filter!"});return}this.getContributorList(i),this.isQuestionAnswerVisible=!1}resetFilter(){this.filterForm.reset(),this.getContributorList({}),this.isQuestionAnswerVisible=!1}viewContributor(i,a){if(this.isViewContributor=!0,this.title=i.name,this.selectedContributor=i,a){let r=this.selectedContributor?.question_answer[a-1];this.viewOneQuestion(r,a-1)}}viewOneQuestion(i,a){this.isQandAModal=!0,this.selectedQuestionData=z(N({},i),{id:a+1})}onShowModal(i){let a=document.getElementById("socialSharingList");a.style.display="none"}showSocialSharingList(){let i=document.getElementById("socialSharingList");i.style.display==""?i.style.display="block":i.style.display=i.style.display=="none"?"block":"none"}shareQuestion(i){let a=this.socialShareService.socialMediaList,r=window.location.origin+"/pages/contributors/"+this.selectedContributor?.id+"/"+this.selectedQuestionData?.id;this.meta.updateTag({property:"og:url",content:r});let m=a[i]+encodeURIComponent(r);window.open(m,"_blank")}copyLink(){let i=encodeURI(window.location.origin+"/pages/contributors/"+this.selectedContributor?.id+"/"+this.selectedQuestionData?.id);this.socialShareService.copyQuestion(i)}};o.\u0275fac=function(a){return new(a||o)(h(bt),h(Et),h(ft),h(T),h(at),h(st),h(wt))}
vendor: 4,391 bytes, line 1
1,o.\u0275cmp=J({type:o,selectors:[["uni-contributors"]],features:[et([T])],decls:76,vars:26,consts:[["showviewContributor",""],["dialogContent",""],["showContributor",""],["noImage",""],[1,"card","readingcard"],[1,"card-header","border-0","bg-transparent"],[1,"row","justify-content-center","align-items-center"],[1,"col-md-12","d-flex","gap-4"],["class","backIcon d-md-flex d-none","role","button","style","height: auto;",3,"click",4,"ngIf"],[1,"select-title","d-flex","justify-content-between","align-items-center"],["tooltipPosition","top","pTooltip","",1,"w-100","mb-0"],["pButton","","severity","warn",1,"how-it-works-button"],[1,"fa-solid","fa-play","d-md-block","d-none"],["class","d-flex align-items-center",4,"ngIf"],["class","card-body text-center flex-fill overflow-y-auto",4,"ngIf","ngIfElse"],["header","Filter Contributors","styleClass","custom-dialog",3,"visibleChange","visible","draggable","breakpoints","resizable"],[1,"container","p-4"],[1,"d-flex","flex-column","gap-3",3,"ngSubmit","formGroup"],[1,"row"],[1,"col-12"],[1,"form-group","mb-2"],["formControlName","contributiontier","optionLabel","contributiontier","styleClass","w-100","optionValue","id","placeholder","Select",3,"options","filter","appendTo"],["formControlName","location","optionValue","id","optionLabel","state","styleClass","w-100","placeholder","Select","filterBy","state,district",3,"options","filter","appendTo"],["pTemplate","item"],["pTemplate","selectedItem"],[1,"d-flex","justify-content-end"],[1,"d-flex","gap-3"],["pButton","","type","button",1,"btn","btn-quit","px-4","py-2","justify-content-center",3,"click"],["pButton","","type","submit",1,"btn","btn-primary","px-4","py-2","justify-content-center"],["header","Header",1,"questionmodal",3,"visibleChange","onShow","visible","draggable","maximizable"],["pTemplate","header"],[1,"carousel-container","px-4","pb-3"],[1,"card","flex-fill","answercard"],[1,"card-body","text-start",2,"min-height","25rem"],[1,"d-flex","align-items-center","justify-content-between","position-relative"],[1,"uniprep-primary","unselectable","d-md-block","d-none"],[1,"uniprep-primary","unselectable","d-md-none","d-block"],[1,"btn","btn-primary","socialShareBtn",3,"click"],[1,"fa-light","fa-xl","fa-share-nodes"],["id","socialSharingList"],[2,"list-style","none","cursor","pointer"],[3,"click"],[1,"pi","pi-whatsapp"],[1,"pi","pi-envelope"],[1,"pi","pi-facebook"],[1,"pi","pi-twitter"],[1,"pi","pi-instagram"],[1,"pi","pi-linkedin"],[1,"pi","pi-link"],[1,"fw-medium",2,"white-space","inherit","max-height","80%","min-height","80%",3,"innerHTML"],["role","button",1,"backIcon","d-md-flex","d-none",2,"height","auto",3,"click"],[1,"fa-solid","fa-chevron-left"],[1,"d-flex","align-items-center"],["pButton","","pButton","","type","button",1,"btn","btn-primary","btn-rounded","py-2","px-4",3,"click"],[1,"card-body","text-center","flex-fill","overflow-y-auto"],["class","row",4,"ngIf","ngIfElse"],["class","col-md-3 col-sm-6 my-2",4,"ngFor","ngForOf"],[1,"col-md-3","col-sm-6","my-2"],["height","13rem","styleClass","mb-3"],[1,"row","w-100","h-100","m-0","justify-content-center"],[1,"card","questioncard"],[1,"card-body"],[3,"ngSwitch"],["style","background-color: #1d4ed8;","class","contributor-tag",4,"ngSwitchCase"],["style","background-color: #808ec1;","class","contributor-tag",4,"ngSwitchCase"],["style","background-color: #c8063b;","class","contributor-tag",4,"ngSwitchCase"],["style","background-color: #404040;","class","contributor-tag",4,"ngSwitchCase"],["style","background-color: #ec9d32;","class","contributor-tag",4,"ngSwitchCase"],["style","background-color: #a1abb1;","class","contributor-tag",4,"ngSwitchCase"],["style","background-color: #cc6637;","class","contributor-tag",4,"ngSwitchCase"],[1,"d-flex","gap-3","my-4"],["class","contributor-img-sec",4,"ngIf","ngIfElse"],[1,"text-start"],[1,"text-small"],["pButton","","type","button",1,"btn","btn-secondary","p-1","w-100","justify-content-center",3,"click"],[1,"contributor-tag",2,"background-color","#1d4ed8"],[1,"contributor-tag",2,"background-color","#808ec1"],[1,"contributor-tag",2,"background-color","#c8063b"],[1,"contributor-tag",2,"background-color","#404040"],[1,"contributor-tag",2,"background-color","#ec9d32"],[1,"contributor-tag",2,"background-color","#a1abb1"],[1,"contributor-tag",2,"background-color","#cc6637"],[1,"contributor-img-sec"],["alt","Sponsors Image",3,"src"],[1,"n
1o-image"],[1,"fa","fa-solid","fa-image-slash"],["class","readingcardgrid my-2",4,"ngFor","ngForOf"],["class","d-flex justify-content-center",4,"ngIf"],[1,"readingcardgrid","my-2"],["role","button",1,"card","questioncard",3,"click"],[1,"card-body","d-flex","flex-sm-column","flex-row","justify-content-sm-between","align-items-center","gap-2"],[1,"row","justify-content-center","w-100"],[1,"col"],[1,"text-start","fw-bold","questiontext","mb-0",3,"title"],[1,"col-2","align-items-center","justify-content-center","text-center"],["pTooltip","Most Popular Question","tooltipPosition","right",1,"fa-regular","fa-star","uniprep-secondary","fa-xl"],["pButton","","pButton","","type","button"],[1,"d-flex","justify-content-center"],[1,"uniprep-lightgray"],[1,"d-flex","w-100","flex-column","px-4"],[1,"d-flex","flex-row","justify-content-md-between","justify-content-center"],[1,"d-md-block","d-none"],[1,"col-md-8","col-auto-2","col-6"],[1,"select-title","w-100","text-center","mb-0"]],template:function(a,r){if(a&1){let m=w();e(0,"div",4)(1,"div",5)(2,"div",6)(3,"div",7),f(4,Lt,2,0,"div",8),e(5,"div",9)(6,"div")(7,"h5",10),c(8),n()(),e(9,"div")(10,"button",11),c(11,"How it works? "),p(12,"i",12),n()()(),f(13,Ft,4,0,"div",13),n()()(),f(14,Gt,4,2,"div",14)(15,Jt,4,2,"ng-template",null,0,S),n(),e(17,"p-dialog",15),B("visibleChange",function(v){return u(m),A(r.isQuestionAnswerVisible,v)||(r.isQuestionAnswerVisible=v),_(v)}),e(18,"div",16)(19,"form",17),g("ngSubmit",function(){return u(m),_(r.submitFilterForm())}),e(20,"div",18)(21,"div",19)(22,"div",20)(23,"label"),c(24,"Contribution Tier"),n(),p(25,"p-select",21),n()(),e(26,"div",19)(27,"div",20)(28,"label"),c(29,"Location"),n(),e(30,"p-select",22),f(31,Kt,2,2,"ng-template",23)(32,Xt,1,2,"ng-template",24),n()()()(),e(33,"div",25)(34,"div",26)(35,"button",27),g("click",function(){return u(m),_(r.resetFilter())}),c(36," Reset Filter "),n(),e(37,"button",28),c(38," Filter Data "),n()()()()()(),e(39,"p-dialog",29,1),B("visibleChange",function(v){return u(m),A(r.isQandAModal,v)||(r.isQandAModal=v),_(v)}),g("onShow",function(v){return u(m),_(r.onShowModal(v))}),f(41,Yt,7,0,"ng-template",30),e(42,"div",31)(43,"div",32)(44,"div",33)(45,"div",34)(46,"h3",35),c(47),n(),e(48,"h5",36),c(49),n(),e(50,"button",37),g("click",function(){return u(m),_(r.showSocialSharingList())}),p(51,"i",38),n(),e(52,"p-card",39)(53,"ul",40)(54,"li",41),g("click",function(){return u(m),_(r.shareQuestion("Whatsapp"))}),p(55,"i",42),c(56,"Whatsapp"),n(),e(57,"li",41),g("click",function(){return u(m),_(r.shareQuestion("Mail"))}),p(58,"i",43),c(59,"Email"),n(),e(60,"li",41),g("click",function(){return u(m),_(r.shareQuestion("Facebook"))}),p(61,"i",44),c(62,"Facebook"),n(),e(63,"li",41),g("click",function(){return u(m),_(r.shareQuestion("Twitter"))}),p(64,"i",45),c(65,"Twitter"),n(),e(66,"li",41),g("click",function(){return u(m),_(r.shareQuestion("Instagram"))}),p(67,"i",46),c(68,"Instagram"),n(),e(69,"li",41),g("click",function(){return u(m),_(r.shareQuestion("LinkedIn"))}),p(70,"i",47),c(71,"LinkedIn"),n(),e(72,"li",41),g("click",function(){return u(m),_(r.copyLink())}),p(73,"i",48),c(74,"Copy Link"),n()()()(),p(75,"div",49),n()()()()}if(a&2){let m=y(16);s(4),d("ngIf",r.isViewContributor),s(4),O(" ",r.isViewContributor?r.title:"Contributors"),s(5),d("ngIf",!r.isViewContributor),s(),d("ngIf",!r.isViewContributor)("ngIfElse",m),s(3),Z(R(24,Mt)),D("visible",r.isQuestionAnswerVisible),d("draggable",!1)("breakpoints",R(25,It))("resizable",!1),s(2),d("formGroup",r.filterForm),s(6),d("options",r.contibutionTierList)("filter",!0)("appendTo","body"),s(5),d("options",r.locationList)("filter",!0)("appendTo","body"),s(9),D("visible",r.isQandAModal),d("draggable",!1)("maximizable",!0),s(8),x(r.selectedQuestionData==null?null:r.selectedQuestionData.question),s(2),x(r.selectedQuestionData==null?null:r.selectedQuestionData.question),s(26),d("innerHTML",r.selectedQuestionData==null?null:r.selectedQuestionData.answer,H)}},dependencies:[k,it,nt,ot,rt,E,I,Ct,ct,F,yt,St,L,ht,V,pt,dt,mt,ut,_t],styles:[".contributor-img-sec[_ngcontent-%COMP%]{width:80px;height:80px;border:1px solid var(--p-primary-100);border-radius:50%;overflow:hidden}.contributor-img-sec[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:100%;height:100%;object-fit:cover}.contributor-tag[_ngcontent-%COMP%]{background:var(--p-primary-400);color:var(--p-neutral-50);padding:3px 10px;border-radius:15px;font-size:.85rem;width:75px;line-height:initial;position:absolute;top:7px;right:7px}.no-image[_ngcontent-%COMP%]{height:80px;width:80px;border-radius:50%;background:#d3d3d3;display:flex;align-items:center;justify-content:center}.no-image[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{font-size:30px;color:var(--p-neutral-50)}.questioncard[_ngcontent-%COMP%]{border:1px solid var(--p-primary-500);padding:0}.answercard[_ngcontent-%COMP%]{background-color:var(--p-primary-50);border:2px solid var(--p-primary-500);overflow-y:auto}.socialShareBtn[_ngcontent-%COMP%]{height:40px;width:40px;border-radius:50px!important;margin:0;display:flex;justify-content:center;align-items:center}#socialSharingList[_ngcontent-%COMP%]{display:none;position:absolute;right:0rem;top:3rem}#socialSharingList[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]{padding:10px!important;margin-bottom:0}#socialSharingList[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{display:flex;align-items:center;margin-bottom:5px}#socialSharingList[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{margin-right:10px}"]});let t=o;return t})();var Zt=[{path:"",component:Q},{path:":id/:questionId",component:Q}],Fe=(()=>{let o=class o{};o.\u0275fac=function(a){return new(a||o)}
1,o.\u0275mod=K({type:o}),o.\u0275inj=U({imports:[k,vt,E.forChild(Zt),I,gt,L,V,Q,xt,F]});let t=o;return t})();export{Fe as ContributorsModule};

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.