PageSourceSearch

https://www.barcouncilofindia.org/p__info__form.552498eb.async.js

js barcouncilofindia.org collected 2026-09-24 21:22:52 UTC 40,063 bytes, 1 lines download raw bytes

1(self.webpackChunkbcw1=self.webpackChunkbcw1||[]).push([[1822,5090,855],{60664:function(Oe,H,a){"use strict";a.d(H,{T:function(){return U},f:function(){return ie}});var f=a(29924),V=a(67241),v=a(5946),Z=a(67402),P=a(67294),N=Object.defineProperty,T=Object.defineProperties,c=Object.getOwnPropertyDescriptors,D=Object.getOwnPropertySymbols,B=Object.prototype.hasOwnProperty,m=Object.prototype.propertyIsEnumerable,X=(l,p,s)=>p in l?N(l,p,{enumerable:!0,configurable:!0,writable:!0,value:s}):l[p]=s,$=(l,p)=>{for(var s in p||(p={}))B.call(p,s)&&X(l,s,p[s]);if(D)for(var s of D(p))m.call(p,s)&&X(l,s,p[s]);return l},le=(l,p)=>T(l,c(p));const ie=l=>{const{fc:p}=l,s=v.N[p];return s?P.createElement(f.ZP.Group,$({},l),s.map(k=>{const{label:Q}=v.s[k];return P.createElement(f.ZP,{key:k,value:k},Q)})):P.createElement(V.y,{data:`Radio category (${p}) not found.`})},U=l=>{const{input:p}=l;if(!p)return P.createElement(Z.Z,null);const s=v.s[p];return s!=null&&s.label?P.createElement(V.BV,le($({},l),{data:s,color:s==null?void 0:s.type})):P.createElement(V.y,{data:p})}},56879:function(Oe,H,a){"use strict";a.d(H,{Jw:function(){return ve},M4:function(){return g},NW:function(){return de}});var f=a(61321),V=a(34618),v=a(99581),Z=a(79090),P=a(23430),N=a(23680),T=a(71577),c=a(45387),D=a(85402),B=a(69677),m=a(34041),X=a(85589),$=a.n(X),le=a(73171),ie=a.n(le),U=a(32452),l=a(67294),p=a(48435),s=a(67294),k=Object.defineProperty,Q=Object.defineProperties,pe=Object.getOwnPropertyDescriptors,K=Object.getOwnPropertySymbols,ae=Object.prototype.hasOwnProperty,se=Object.prototype.propertyIsEnumerable,ue=(n,r,i)=>r in n?k(n,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):n[r]=i,ce=(n,r)=>{for(var i in r||(r={}))ae.call(r,i)&&ue(n,i,r[i]);if(K)for(var i of K(r))se.call(r,i)&&ue(n,i,r[i]);return n},G=(n,r)=>Q(n,pe(r));const j={defaultColumns:3,defaultRows:3,withDropdown:!1,columnResizable:!1,exportAttrString:""};$().use(ie()(j));const de=["undo","redo","separator","bold","italic","underline","strike-through","text-color","separator","superscript","subscript","remove-styles","emoji","separator","text-indent","text-align","separator","headings","list-ul","list-ol","blockquote","code","separator","link","separator","hr","separator","media","remove-styles","separator","table","separator","clear","fullscreen"],ve=n=>$().createEditorState(n),g=n=>({raw:n.toRAW(),html:n.toHTML(),text:n.toText()}),_=n=>{const{name:r="content",label:i="Content",form:d,title:b,formItemProps:F={}}=n,[S,A]=(0,l.useState)(!1),[w,x]=(0,l.useState)(!1),{fc:C="feedContentImage",uid:t}=n,o=z=>{if(z.file.status==="uploading"){A(!0);return}if(z.file.status==="done"&&(A(!1),z.file.response&&z.file.response.publicUrl)){const ee=d.getFieldValue(r),e=z.file.response.publicUrl,ye=U.ContentUtils.insertMedias(ee,[{type:"IMAGE",url:e}]);d.setFieldsValue({[r]:ye})}},I=[{key:"antd-uploader",type:"component",component:s.createElement(s.Fragment,null,s.createElement(N.default,{accept:"image/*",showUploadList:!1,name:"file",data:{fc:C,uid:t},action:p.SC,headers:p.Yc,onChange:o},s.createElement(T.Z,{type:"link",className:"control-item button upload-button","data-title":"Insert Image"},!S&&s.createElement(v.Z,null),S&&s.createElement(Z.Z,null))),s.createElement("span",null,s.createElement(T.Z,{type:"link",className:"control-item button","data-title":"Insert Download Button",onClick:()=>x(!0)},s.createElement(P.Z,null))))}];return s.createElement(s.Fragment,null,b&&s.createElement("label",null,b),s.createElement(c.Z.Item,G(ce({},F),{name:r,label:i,validateTrigger:"onBlur"}),s.createElement($(),{language:"en",id:"editor",controls:de,extendControls:I,style:{border:"1px solid #d9d9d9"}})),s.createElement(q,{form:d,setModalVisible:x,modalVisible:w,name:r}))};H.ZP=_;const q=n=>{const{form:r,modalVisible:i,setModalVisible:d,name:b}=n,[F,S]=(0,l.useState)(""),[A,w]=(0,l.useState)(""),[x,C]=(0,l.useState)("primary"),t=()=>{if(!F||!A)return;const o=r.getFieldValue(b),I=`<a href="${A}" download class="ant-btn ant-btn-${x}" style="display: inline-block; margin: 10px 0; padding: 4px 15px; text-decoration: none; border-radius: 2px;">${F}</a>`,z=U.ContentUtils.insertHTML(o,I);r.setFieldsValue({[b]:z}),d(!1),S(""),w(""),C("primary")};return s.createElement(s.Fragment,null,s.createElement(D.default,{title:"Insert Download Button",open:i,onOk:t,onCancel:()=>{d(!1),S(""),w(""),C("primary")},okText:"Insert",cancelText:"Cancel"},s.createElement(c.Z,{layout:"vertical"},s.createElement(c.Z.Item,{label:"Button Text",required:!0},s.createElement(B.default,{placeholder:"Enter button text (e.g., Download File)",value:F,onChange:o=>S(o.target.value)})),s.createElement(c.Z.Item,{label:"Button Type",required:!0},s.createElement(m.default,{value:x,onChange:o=>C(o),placeholder:"Select button type"},s.createElement(m.default.Option,{value:"primary"},"Primary"),s.createElement(m.default.Option,{value:"default"},"Default"),s.createElement(m.default.Option,{value:"dashed"},"Dashed"),s.createElement(m.default.Option,{value:"text"},"Text"),s.createElement(m.default.Option,{value:"link"},"Link"))),s.createElement(c.Z.Item,{label:"File URL",required:!0},s.createElement(B.default,{placeholder:"Enter file URL (e.g., https://example.com/file.pdf)",value:A,onChange:o=>w(o.target.value)})))))}},65038:function(Oe,H,a){"use strict";a.r(H),a.d(H,{FeedForm:function(){return Ne},FeedGalleriesFormItem:function(){return Ae},FeedGalleryPhotosFormItem:function(){return We},G_FEED_STATUS_LABELS:function(){return Be},default:function(){return $e}});
1var f=a(58963),V=a(97407),v=a(29686),Z=a(94151),P=a(18624),N=a(57446),T=a(71501),c=a(14313),D=a(39097),B=a(75226),m=a(59620),X=a(60532),$=a(88484),le=a(23487),ie=a(2388),U=a(34041),l=a(45387),p=a(71577),s=a(69677),k=a(20550),Q=a(54907),pe=a(59652),K=a(29924),ae=a(94199),se=a(71230),ue=a(15746),ce=a(26713),G=a(77283),j=a(14670),de=a(97538),ve=a(14104),g=a(67294),_=a(75600),q=a(67241),n=a(67294),r=Object.defineProperty,i=Object.getOwnPropertySymbols,d=Object.prototype.hasOwnProperty,b=Object.prototype.propertyIsEnumerable,F=(O,E,h)=>E in O?r(O,E,{enumerable:!0,configurable:!0,writable:!0,value:h}):O[E]=h,S=(O,E)=>{for(var h in E||(E={}))d.call(E,h)&&F(O,h,E[h]);if(i)for(var h of i(E))b.call(E,h)&&F(O,h,E[h]);return O};const A=["scheduleOn"],w={scheduleNow:{key:"scheduleNow",label:"Schedule Now"},scheduleOn:{key:"scheduleOn",label:"Schedule On"}},x=O=>n.createElement(K.ZP.Group,S({},O),n.createElement(ce.Z,{direction:"vertical",size:10,style:{marginBottom:10}},A.map(E=>n.createElement(K.ZP,{key:E,value:E},w[E].label))));var C=a(60010),t=a(42997),o=a(56879),I=a(14186),z=a(52858),ee=a(45930),e=a(67294),ye=Object.defineProperty,Pe=Object.defineProperties,me=Object.getOwnPropertyDescriptors,Ee=Object.getOwnPropertySymbols,De=Object.prototype.hasOwnProperty,Ze=Object.prototype.propertyIsEnumerable,Re=(O,E,h)=>E in O?ye(O,E,{enumerable:!0,configurable:!0,writable:!0,value:h}):O[E]=h,Y=(O,E)=>{for(var h in E||(E={}))De.call(E,h)&&Re(O,h,E[h]);if(Ee)for(var h of Ee(E))Ze.call(E,h)&&Re(O,h,E[h]);return O},fe=(O,E)=>Pe(O,me(E)),Ue=(O,E)=>{var h={};for(var M in O)De.call(O,M)&&E.indexOf(M)<0&&(h[M]=O[M]);if(O!=null&&Ee)for(var M of Ee(O))E.indexOf(M)<0&&Ze.call(O,M)&&(h[M]=O[M]);return h},Fe=(O,E,h)=>new Promise((M,he)=>{var R=ne=>{try{J(h.next(ne))}catch(oe){he(oe)}},te=ne=>{try{J(h.throw(ne))}catch(oe){he(oe)}},J=ne=>ne.done?M(ne.value):Promise.resolve(ne.value).then(R,te);J((h=h.apply(O,E)).next())});const{Option:je}=U.default,Ve=[{key:"cle",value:"cle",label:"Affiliated College/University Department(CLE)"},{key:"clu",value:"clu",label:"University"},{key:"pu",value:"pu",label:"Public"},{key:"ad",value:"ad",label:"Advocate"},{key:"iba",value:"iba",label:"Bar Association"},{key:"fil",value:"fil",label:"Foreign Individual Lawyers"},{key:"flf",value:"flf",label:"Foreign Law Firms"}],Ce={labelCol:{span:3},wrapperCol:{span:21}},Ge={wrapperCol:{offset:Ce.labelCol.span,span:21}},Ae=O=>{const E=O.fieldKey||"galleries";return e.createElement(l.Z.Item,{label:"Galleries"},e.createElement(l.Z.List,{name:E},(h,{add:M,remove:he})=>e.createElement(e.Fragment,null,h.map((R,te)=>{const J=R,{key:ne}=J,oe=Ue(J,["key"]);return e.createElement(l.Z.Item,{required:!0,key:`galleries_${R.fieldKey}`},e.createElement(e.Fragment,null,e.createElement("h4",{style:{display:"inline"}},"Gallery ",te+1," :")," ",h.length>1&&e.createElement(p.Z,{size:"small",danger:!0,title:"Remove",onClick:()=>{he(R.name)}},"Remove"),e.createElement(l.Z.Item,fe(Y({},oe),{label:"Title",name:[R.name,"title"],fieldKey:[R.fieldKey,"title"],rules:[{required:!0,message:"Please enter the gallery title!"}]}),e.createElement(s.default,{type:"text",placeholder:"Enter gallery title",allowClear:!0})),e.createElement(l.Z.Item,fe(Y({},oe),{name:[R.name,"desc"],label:"Description",fieldKey:[R.fieldKey,"desc"],rules:[{required:!1}]}),e.createElement(ve.default,{autoSize:{minRows:3,maxRows:5},placeholder:"Enter Description"})),e.createElement(l.Z.Item,null,e.createElement(We,fe(Y({},O),{field:R})))))}),e.createElement(l.Z.Item,null,e.createElement(p.Z,{type:"dashed",onClick:()=>{M()},style:{width:"20%"}},e.createElement(T.Z,null)," Add Galleries")))))},Ne=O=>{var E;const{feedId:h="new",data:M={},ruid:he}=O,[R]=l.Z.useForm(),[te,J]=(0,g.useState)(!1),[ne,oe]=(0,g.useState)(void 0),[we,Me]=(0,g.useState)(void 0),[Se,Le]=(0,g.useState)(void 0),[Te,be]=(0,g.useState)(),ge=(E=(0,_.useLocation)().state)==null?void 0:E.duplicateData;(0,g.useEffect)(()=>{Ke(h),h!="new"&&be(Te),setTimeout(()=>{let u=Y({},M);const y=M&&M.content&&M.content.html?M.content.html:"";u.scheduleDateTime&&(u.scheduleDateTime=(0,t.W1)(u.scheduleDateTime)),u.scheduleDateTime&&(u.scheduleDateTime=(0,t.fU)(u.scheduleDateTime)),u=(0,q.jF)({fieldKeys:["scheduleDateTime"],data:u,toMoment:!0}),R.setFieldsValue(fe(Y({feedType:{key:"press",label:"Press Release"},scheduleType:"scheduleOn",isScheduleDateVisible:"Yes",isPinned:"No",isPinnedInDashboard:"No",isNewsLiveFeed:"No",keywords:["Bar Council of India","Advocate Council","BCI","Announcement"],status:"draft",titleAlign:"center"},u),{content:(0,o.Jw)(y)}))})},[]);const[xe,ze]=(0,g.useState)({list:[],total:0}),[Xe,ke]=(0,g.useState)(),[_e,Je]=(0,g.useState)(),Ke=u=>Fe(void 0,null,function*(){const y={feedId:u,category:"feedUpdate"};J(!0);const{status:W,class:L,message:Ie,payload:re}=yield(0,z.FS)(Y({},y));if(J(!1),!W){(0,Z.FB)(null,Ie,re,L);return}if(re&&re.list){const{list:qe}=re;ke(re==null?void 0:re.fieldOrders),Je(re==null?void 0:re.fieldLabels),ze({list:qe.reverse(),total:re.total})}});(0,g.useEffect)(()=>{Ke(h),h!="new"&&be(Te),setTimeout(()=>{let u=Y({},M);const y=M&&M.content&&M.content.html?M.content.html:"";u.scheduleDateTime&&(u.scheduleDateTime=(0,t.W1)(u.scheduleDateTime)),u.scheduleDateTime&&(u.scheduleDateTime=(0,t.fU)(u.scheduleDateTime)),u=(0,q.jF)({fieldKeys:["scheduleDateTime"],data:u,toMoment:!0}),R.setFieldsValue(fe(Y({feedType:{key:"press",label:"Press Release"},scheduleType:"scheduleOn",isScheduleDateVisible:"Yes",isPinned:"No",isPinnedInDashboard:"No",isNewsLiveFeed:"No",keywords:["Bar Council of India","Advocate Council","BCI","Announcement"],status:"draft",titleAlign:"center"},u),{content:(0,o.Jw)(y)}))})},[]),(0,g.useEffect)(()=>{var u;if(ge){const y=((u=ge==null?void 0:ge.content)==null?void 0:u.html)||"";ge.scheduleDateTime&&(ge.scheduleDateTime=(0,t.W1)(ge.scheduleDateTime),ge.scheduleDateTime=(0,t.fU)(ge.scheduleDateTime));const W=(0,q.jF)({fieldKeys:["scheduleDateTime"],data:ge,toMoment:!0});R.setFieldsValue(fe(Y({feedType:{key:"press",label:"Press Release"},scheduleType:"scheduleOn",isScheduleDateVisible:"Yes",isPinned:"No",isPinnedInDashboard:"No",isNewsLiveFeed:"No",keywords:["Bar Council of India","Advocate Council","BCI","Announcement"],status:"draft",titleAlign:"center"},W),{content:(0,o.Jw)(y)}))}},[ge]);const Qe=u=>Fe(void 0,null,function*(){u.content&&(u.content=(0,o.M4)(u.content));let y=Y({},u);y=(0,q.jF)({fieldKeys:["scheduleDateTime"],data:y,toMoment:!0,allowCustomFormat:!0,format:f.I1}),J(!0),Me(void 0),oe(void 0),be(void 0);const{status:W,class:L,message:Ie,payload:re}=yield(0,ee.gq)(h,y);if(J(!1),Me(Ie),oe(L),!W){(0,Z.FB)(R,Ie,re,L);return}re!=null&&re.isNew&&(re!=null&&re.feedId)&&(0,f.gB)(`/admin/info/form/${re.feedId}`,{isWindowRedirect:!0})});return e.createElement(e.Fragment,null,ge&&e.createElement("div",{style:{display:"flex",justifyContent:"flex-end",marginBottom:"10px"}},e.createElement(k.Z,{color:"orange",style:{fontSize:"15px",padding:"10px 18px",borderRadius:"8px",fontWeight:500,border:"1px solid #ffd591"}},"\u26A0\uFE0F You are currently editing a duplicate of the feed (",ge==null?void 0:ge._id,"). Please review the details carefully before saving.")),e.createElement(Q.default,{defaultActiveKey:[],expandIcon:({isActive:u})=>e.createElement(c.Z,{rotate:u?90:0}),style:{marginBottom:"1rem"}},e.createElement(Q.default.Panel,{header:e.createElement(e.Fragment,null,"Modification Logs"),extra:e.createElement(k.Z,{color:"green"},xe.total),key:"1"},e.createElement(I.lN,fe(Y({},O),{category:"feedUpdate",fieldOrders:Xe,fieldLabels:_e,data:xe==null?void 0:xe.list[0]})))),e.createElement(pe.default,null,e.createElement(l.Z,Y({form:R,name:"UserLogin",onFinish:Qe},Ce),e.createElement(l.Z.Item,{noStyle:!0,shouldUpdate:(u,y)=>u.titleAlign!==y.titleAlign},({getFieldValue:u})=>{const y=u("titleAlign")||"center";return e.createElement(l.Z.Item,{label:"Title",required:!0},e.createElement("div",{style:{display:"flex",gap:"8px",alignItems:"center"}},e.createElement(l.Z.Item,{name:"title",noStyle:!0,rules:[{required:!0,message:"Title is required"}]},e.createElement(s.default,{placeholder:"Title",allowClear:!0,style:{flex:1,textAlign:y}})),e.createElement(l.Z.Item,{name:"titleAlign",noStyle:!0,initialValue:"center"},e.createElement(K.ZP.Group,{buttonStyle:"solid"},e.createElement(K.ZP.Button,{value:"left"},e.createElement(ae.Z,{title:"Left Align"},e.createElement("span",{style:{display:"inline-block",width:"100%",height:"100%"}},e.createElement(D.Z,null)))),e.createElement(K.ZP.Button,{value:"center"},e.createElement(ae.Z,{title:"Center Align"},e.createElement("span",{style:{display:"inline-block",width:"100%",height:"100%"}},e.createElement(B.Z,null)))),e.createElement(K.ZP.Button,{value:"right"},e.createElement(ae.Z,{title:"Right Align"},e.createElement("span",{style:{display:"inline-block",width:"100%",height:"100%"}},e.createElement(m.Z,null)))),e.createElement(K.ZP.Button,{value:"justify"},e.createElement(ae.Z,{title:"Justify Align"},e.createElement("span",{style:{display:"inline-block",width:"100%",height:"100%"}},e.createElement(X.Z,null))))))))}),e.createElement(l.Z.Item,{name:"shortDesc",label:"Short Description",extra:"This will be shown in the notification list"},e.createElement(s.default,{placeholder:"Sub title",allowClear:!0})),e.createElement(l.Z.Item,{name:"feedType",label:"Type",rules:[{required:!0,message:"Please select type"}]},e.createElement(N.ZP,{category:"feedType",placeholder:"Select feed type",onChange:u=>Fe(void 0,null,function*(){R.setFieldsValue({feedType:u});const y=typeof u=="object"?{key:u.key,label:u.label}:{key:u,label:u};J(!0);const{payload:W}=yield(0,ee.t3)(h,{feedType:y});(W==null?void 0:W.order)!==void 0&&R.setFieldsValue({order:W==null?void 0:W.order}),W!=null&&W.orderMessage&&Le(W.orderMessage),J(!1)})})),e.createElement(l.Z.Item,{name:"shortPath",label:"Short Path"},e.createElement(s.default,{placeholder:"Short Path",allowClear:!0})),e.createElement(l.Z.Item,{noStyle:!0,shouldUpdate:(u,y)=>u.feedType!==y.feedType},({getFieldValue:u})=>{const y=u("feedType");if(y&&y.key==="redirect-page")return e.createElement(e.Fragment,null,e.createElement(l.Z.Item,{name:"isUrlRedirective",label:"Is URL / Short Path URL to be Redirected with Redirect URL ?",rules:[{required:!0,message:"Please select a redirection option!"}]},e.createElement(K.ZP.Group,null,e.createElement(K.ZP,{value:"Yes"},"Yes, Redirect to Redirective URL"),e.createElement(K.ZP,{value:"No"},"No, Stop Redirecting"))),e.createElement(l.Z.Item,{noStyle:!0,shouldUpdate:(W,L)=>W.isUrlRedirective!==L.isUrlRedirective},({getFieldValue:W})=>{const L=W("isUrlRedirective");if(L&&L==="Yes")return e.createElement(e.Fragment,null,e.createElement(l.Z.Item,{name:"redirectiveUrl",label:"Redirect URL",extra:e.createElement("span",null,"If this field is updated, both this notification and its associated short URL will always redirect to the specified Redirect URL ",e.createElement("br",null)," whether it is a relative path like"," ",e.createElement("strong",null,"/info")," or a full URL such as"," ",e.createElement("strong",null,"https://www.barcouncilofindia.org"),"."),rules:[{required:!0,message:"Please select a redirection option!"}]},e.createElement(s.default,{placeholder:"Redirect URL",allowClear:!0})))}))}),e.createElement(l.Z.Item,{name:"customUrl",label:"Custom Url",extra:"This will be used to create a custom url for the custom notification."},e.createElement(s.default,{placeholder:"Custom Url",allowClear:!0,style:{width:"50%"}})),e.createElement(l.Z.Item,{name:"keywords",label:"Keywords",extra:"Comma Separated Values"},e.createElement(U.default,{mode:"tags",tokenSeparators:[","]})),e.createElement(o.ZP,{form:R}),e.createElement(l.Z.Item,{name:"cardImage",label:"Card Image"},e.createElement(V.AvatarUpload,{fc:"feedCardImage",key:"feedCardImage",label:e.createElement(e.Fragment,null,"Choose jpg/png file to upload photo"),fileMaxSize:2,buttonType:"primary",isCrop:!1,extra:{ruid:he}})),e.createElement(l.Z.Item,{label:"Attachments"},e.createElement(l.Z.List,{name:"attachments"},(u,{add:y,remove:W})=>e.createElement(e.Fragment,null,u.map((L,Ie)=>e.createElement(e.Fragment,null,e.createElement("h4",{style:{display:"inline"}},"Attachment ",Ie+1," :")," ",e.createElement(p.Z,{size:"small",danger:!0,title:"Remove!",onClick:()=>{W(L.name)}},"Remove"),e.createElement(l.Z.Item,fe(Y({},L),{label:"Label",name:[L.name,"label"],fieldKey:[L.fieldKey,"label"]}),e.createElement(s.default,{style:{width:"100%"},placeholder:"Title",allowClear:!0,type:"text"})),e.createElement(l.Z.Item,fe(Y({},L),{label:"Upload Document",name:[L.name,"pdfFeedAttachement"],fieldKey:[L.fieldKey,"pdfFeedAttachement"]}),e.createElement(v.PdfUpload,{fc:"pdfFeedAttachement",extra:{ruid:he},maxSize:4,uniqueType:["application/vnd.ms-excel","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/msword","application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/pdf","application/zip","application/x-zip-compressed","image/jpeg","video/mp4","audio/mpeg","image/png"],title:e.createElement("span",null,e.createElement($.Z,null)," Upload Feed Attachment")})),e.createElement(se.Z,{gutter:16},e.createElement(ue.Z,{span:7},e.createElement(l.Z.Item,fe(Y({},L),{label:"Drawer Width",name:[L.name,"drawerWidth"],fieldKey:[L.fieldKey,"drawerWidth"]}),e.createElement(s.default,{placeholder:"Enter drawer width percentage",type:"text"}))),e.createElement(ue.Z,{span:7},e.createElement(l.Z.Item,fe(Y({},L),{label:"Zoom Scale",name:[L.name,"zoomScale"],fieldKey:[L.fieldKey,"zoomScale"]}),e.createElement(s.default,{placeholder:"Enter zoom scale (e.g., 1.0)",type:"number",step:"0.1"})))))),e.createElement(l.Z.Item,null,e.createElement(p.Z,{type:"dashed",onClick:()=>{y()},style:{width:"20%"}},e.createElement(T.Z,null)," Add Attachments"))))),e.createElement(l.Z.Item,{label:"Inline PDF"},e.createElement(l.Z.List,{name:"inLineFiles"},(u,{add:y,remove:W})=>e.createElement(e.Fragment,null,u.map((L,Ie)=>e.createElement(e.Fragment,null,e.createElement("h4",{style:{display:"inline"}},"Inline PDF ",Ie+1," :")," ",e.createElement(p.Z,{size:"small",danger:!0,title:"Remove!",onClick:()=>{W(L.name)}},"Remove"),e.createElement(l.Z.Item,fe(Y({},L),{label:"Label",name:[L.name,"label"]}),e.createElement(s.default,{style:{width:"100%"},placeholder:"Title",allowClear:!0,type:"text"})),e.createElement(l.Z.Item,fe(Y({},L),{label:"Upload Document",name:[L.name,"pdfInlineFiles"]}),e.createElement(v.PdfUpload,{fc:"pdfInlineFiles",extra:{ruid:he},maxSize:4,title:e.createElement("span",null,e.createElement($.Z,null)," Upload Inline PDF Attachment")})))),e.createElement(l.Z.Item,null,e.createElement(p.Z,{type:"dashed",onClick:()=>{y()},style:{width:"20%"}},e.createElement(T.Z,null)," Add Inline PDF Attachment")))),e.createElement(l.Z.Item,{name:"isHidePageNumber",label:"Hide Page Number on PDF Viewer"},e.createElement(P.xB,null))),e.createElement(Ae,null),e.createElement(l.Z.Item,{name:"isPinned",label:"Is Pinned?"},e.createElement(P.xB,null)),e.createElement(l.Z.Item,{name:"isPinnedInDashboard",label:"Is Pinned in Dashboard?"},e.createElement(P.xB,null)),e.createElement(l.Z.Item,{noStyle:!0,shouldUpdate:(u,y)=>u.isPinnedInDashboard!==y.isPinnedInDashboard},({getFieldValue:u})=>u("isPinnedInDashboard")!=="Yes"?null:e.createElement(l.Z.Item,{name:"pinnedUt",label:"Pinned for",rules:[{required:!0,message:"Please enter the Pinned for"}]},e.createElement(U.default,{options:Ve,placeholder:"Select for whom to show",mode:"multiple"}))),e.createElement(l.Z.Item,{name:"isNewsLiveFeed",label:"News Live Feed"},e.createElement(P.xB,null)),e.createElement(l.Z.Item,{noStyle:!0,shouldUpdate:(u,y)=>u.isNewsLiveFeed!==y.isNewsLiveFeed||u.isPinnedInDashboard!==y.isPinnedInDashboard},({getFieldValue:u})=>{const y=u("isNewsLiveFeed"),W=u("isPinnedInDashboard");return y!=="Yes"&&W!=="Yes"||!(y||W)?null:e.createElement(e.Fragment,null,e.createElement(l.Z.Item,{name:"newsLiveFeedText",label:"News live feed text"},e.createElement(ve.default,{placeholder:"Title",allowClear:!0})),e.createElement(l.Z.Item,{name:"newsLiveFeedOrder",label:"Order of News"},e.createElement(C.jT,{placeholder:"Order of News",min:0,allowClear:!0})))}),e.createElement(l.Z.Item,{label:"Display Date",required:!0},e.createElement(ce.Z,null,e.createElement(l.Z.Item,{name:"scheduleType",required:!0,style:{display:"none"}},e.
1createElement(x,null)),e.createElement(l.Z.Item,{noStyle:!0,shouldUpdate:(u,y)=>u.scheduleType!==y.scheduleType},({getFieldValue:u})=>u("scheduleType")!=="scheduleOn"?e.createElement(e.Fragment,null):e.createElement(l.Z.Item,{noStyle:!0,name:"scheduleDateTime",rules:[{required:!0,message:"Please select the date"}]},e.createElement(G.default,{style:{width:"200px"},showTime:!0,use12Hours:!0,format:"DD/MM/YYYY hh:mm A",placeholder:"Date Time",allowClear:!0}))))),e.createElement(l.Z.Item,{name:"isScheduleDateVisible",label:"Show the scheduled date to the public?"},e.createElement(P.xB,null)),e.createElement(l.Z.Item,{label:"Order",labelCol:Ce.labelCol,wrapperCol:Ce.wrapperCol},e.createElement("div",{style:{display:"flex",alignItems:"center",gap:"8px",width:"100%"}},e.createElement(l.Z.Item,{name:"order",noStyle:!0,style:{flex:1}},e.createElement(C.jT,{placeholder:"Order",min:0,allowClear:!0})),Se&&e.createElement(k.Z,{color:"blue",style:{whiteSpace:"nowrap"}},Se))),e.createElement(l.Z.Item,{name:"status",label:"Status"},e.createElement(U.default,{placeholder:"Select status",allowClear:!0,style:{width:"20%"}},He.map((u,y)=>e.createElement(je,{key:y,value:u},Be[u].label)))),e.createElement(l.Z.Item,Y({},Ge),e.createElement(p.Z,{size:"large",loading:te,type:"primary",htmlType:"submit"},"Save")," ",(Te||h)&&e.createElement(e.Fragment,null,e.createElement("br",null),e.createElement("br",null),e.createElement("a",{href:`/info/${Te||h}`,target:"_blank",rel:"noreferrer"},e.createElement(p.Z,null,"View Notification")))),we&&ne&&e.createElement(j.Z,{style:{marginTop:"1rem"}
1,type:ne,message:we,showIcon:!0}))))},Ye=O=>{const[E,h]=(0,g.useState)(!1),[M,he]=(0,g.useState)(void 0),[R,te]=(0,g.useState)(void 0),J=(0,_.useNavigate)(),ne=Me=>Fe(void 0,null,function*(){h(!0);const{status:Se,class:Le,message:Te,payload:be}=yield(0,ee.GG)(Me);h(!1),Se||(0,Z.FB)(de.Z,Te,be,Le),be&&(be._id&&he(be._id),te(be))}),{feedId:oe}=(0,_.useParams)();(0,g.useEffect)(()=>{he(oe),oe!=="new"?ne(oe):(he("new"),te({}))},[oe]);const we=()=>{J("/admin/info/form/new",{state:{duplicateData:R}})};return e.createElement(le.Oc,{title:"Notification",onBack:()=>_.history.push("/admin/info/list"),extra:(R==null?void 0:R._id)&&e.createElement(p.Z,{type:"dashed",onClick:we},"Duplicate Feed")},E&&e.createElement(ie.Z,null),!E&&R&&M&&e.createElement(Ne,{feedId:M,data:R}))},He=["draft","live","removed","unlisted"],Be={draft:{key:"draft",label:"Draft",tagProps:{color:"orange"}},live:{key:"live",label:"Live",tagProps:{color:"green"}},removed:{key:"removed",label:"Removed",tagProps:{color:"red"}},unlisted:{key:"unlisted",label:"Unlisted",tagProps:{color:"yellow"}}},We=O=>{const{field:E,ruid:h}=O;return e.createElement(l.Z.Item,{label:"Photos"},e.createElement(l.Z.List,{name:[E.name,"photos"]},(M,{add:he,remove:R})=>e.createElement(e.Fragment,null,M.map((te,J)=>{const ne=te,{key:oe}=ne,we=Ue(ne,["key"]);return e.createElement(l.Z.Item,{required:!0,key:`photos_${te.fieldKey}`},e.createElement(e.Fragment,null,e.createElement("h4",{style:{display:"inline"}},"Photo ",J+1," :")," ",M.length>1&&e.createElement(p.Z,{size:"small",danger:!0,title:"Remove",onClick:()=>{R(te.name)}},"Remove"),e.createElement(l.Z.Item,fe(Y({},we),{label:"Title",name:[te.name,"photoTitle"],fieldKey:[te.fieldKey,"photoTitle"],rules:[{required:!1}]}),e.createElement(s.default,{type:"text",placeholder:"Enter photo title",allowClear:!0})),e.createElement(l.Z.Item,{name:[te.name,"photo"],label:"Picture",rules:[{required:!0,message:"Please upload your picture!"}]},e.createElement(V.AvatarUpload,{fc:"feedGalleryPhoto",key:"feedGalleryPhoto",label:e.createElement(e.Fragment,null,"Choose jpg/png file to upload photo"),buttonType:"primary",isCrop:!1,extra:{ruid:h}})),e.createElement(l.Z.Item,{name:[te.name,"thumbnail"],label:"Thumbnail",rules:[{required:!1}]},e.createElement(V.AvatarUpload,{fc:"feedGalleryThumbnail",key:"feedGalleryThumbnail",label:e.createElement(e.Fragment,null,"Choose jpg/png file to upload thumbnail"),buttonType:"primary",isCrop:!1,extra:{ruid:h}}))))}),e.createElement(l.Z.Item,null,e.createElement(p.Z,{type:"dashed",onClick:()=>{he()},style:{width:"20%"}},e.createElement(T.Z,null)," Add Photos")))))};var $e=Ye},45930:function(Oe,H,a){"use strict";a.d(H,{$J:function(){return pe},CD:function(){return C},DO:function(){return A},Dx:function(){return Q},GG:function(){return X},IH:function(){return j},QR:function(){return q},Xg:function(){return ae},Zw:function(){return G},aP:function(){return ue},ac:function(){return b},b0:function(){return ve},cR:function(){return ce},gq:function(){return ie},hX:function(){return de},iK:function(){return r},kT:function(){return se},l3:function(){return K},m6:function(){return w},mr:function(){return S},n3:function(){return n},nZ:function(){return p},nm:function(){return _},py:function(){return F},qI:function(){return g},t3:function(){return $},ty:function(){return le},xj:function(){return x},zR:function(){return U}});var f=a(89610),V=Object.defineProperty,v=Object.defineProperties,Z=Object.getOwnPropertyDescriptors,P=Object.getOwnPropertySymbols,N=Object.prototype.hasOwnProperty,T=Object.prototype.propertyIsEnumerable,c=(t,o,I)=>o in t?V(t,o,{enumerable:!0,configurable:!0,writable:!0,value:I}):t[o]=I,D=(t,o)=>{for(var I in o||(o={}))N.call(o,I)&&c(t,I,o[I]);if(P)for(var I of P(o))T.call(o,I)&&c(t,I,o[I]);return t},B=(t,o)=>v(t,Z(o)),m=(t,o,I)=>new Promise((z,ee)=>{var e=me=>{try{Pe(I.next(me))}catch(Ee){ee(Ee)}},ye=me=>{try{Pe(I.throw(me))}catch(Ee){ee(Ee)}},Pe=me=>me.done?z(me.value):Promise.resolve(me.value).then(e,ye);Pe((I=I.apply(t,o)).next())});function X(t){return m(this,null,function*(){return(0,f.ZP)(`/server/api/feed/${t}`)})}function $(t,o){return m(this,null,function*(){return(0,f.ZP)(`/server/api/feedType/order/${t}`,{method:"POST",data:o})})}function le(){return m(this,null,function*(){return(0,f.ZP)("/server/api/narchives")})}function ie(t,o){return m(this,null,function*(){return(0,f.ZP)(`/server/api/feed/${t}`,{method:"POST",data:o})})}function U(t){return m(this,null,function*(){return(0,f.ZP)("/server/api/notification/seen",{method:"POST",data:t})})}function l(t,o){return m(this,null,function*(){return request(`/server/api/feed/block/add/${o}`,{method:"POST",data:t})})}function p(){return m(this,arguments,function*(t={}){return(0,f.ZP)("/server/api/feed/list",{params:t})})}function s(){return m(this,arguments,function*(t={}){return request("/server/api/enrolmentDay/events/list",{params:t})})}function k(){return m(this,arguments,function*(t={}){return request("/server/api/server/log/files",{params:t})})}function Q(){return m(this,arguments,function*(t={}){return(0,f.ZP)("/server/api/feed/university/list",{params:t})})}function pe(){return m(this,arguments,function*(t={}){return(0,f.ZP)("/server/api/feed/stateBarCouncil/list",{params:t})})}function K(){return m(this,arguments,function*(t={}){return(0,f.ZP)("/server/api/feed/association/list",{params:t})})}function ae(){return m(this,arguments,function*(t={}){return(0,f.ZP)("/server/api/feed/clerkAssociation/list",{params:t})})}function se(){return m(this,arguments,function*(t={}){return(0,f.ZP)("/server/api/feed/block/list",{params:t})})}function ue(){return m(this,arguments,function*(t={}){return(0,f.ZP)("/server/api/feed/public/notices",{params:t})})}function ce(){return m(this,arguments,function*(t={}){return(0,f.ZP)("/server/api/feed/public/complaint",{method:"POST",data:t})})}function G(){return m(this,arguments,function*(t={}){return(0,f.ZP)("/server/api/bci/members",{params:t})})}function j(){return m(this,arguments,function*(t={}){return(0,f.ZP)("/server/api/get/analytics",{params:t})})}function de(){return m(this,arguments,function*(t={}){return(0,f.ZP)("/server/api/get/course/analytics",{params:t})})}function ve(t,o){return m(this,null,function*(){return(0,f.ZP)(`/server/api/request/faq/form/${t}`,{method:"POST",data:o})})}function g(t){return m(this,null,function*(){return(0,f.ZP)("/server/api/request/faqCategory/form",{method:"POST",data:t})})}function _(){return m(this,arguments,function*(t={}){return(0,f.ZP)("/server/api/request/faq/list",{params:t})})}function q(t){return m(this,null,function*(){return(0,f.ZP)(`/server/api/request/faq/form/${t}`)})}function n(){return m(this,arguments,function*(t={}){return(0,f.ZP)("/server/api/request/category",{params:t})})}function r(t){return m(this,null,function*(){const o=t==null?void 0:t.oathId;return(0,f.ZP)(`/server/api/enrolmentDay/list/${o}`,{params:t})})}function i(t){return m(this,null,function*(){const o=t==null?void 0:t.oathId;return request(`/server/api/enrolmentDay/oathDate/${o}`,{params:t})})}function d(t){return m(this,null,function*(){return request("/server/api/enrolmentDay/otpVerify",{method:"POST",data:t})})}function b(t){return m(this,null,function*(){return(0,f.ZP)("/server/api/university/list",{method:"POST",data:t})})}function F(t){return m(this,null,function*(){return(0,f.ZP)("/server/api/get/custom/pageAnalytics",{params:t})})}function S(t,o){return m(this,null,function*(){return(0,f.ZP)("/server/api/rmh/add
1/rmhFieldOrder",{method:"POST",data:B(D({},t),{_id:o})})})}function A(t,o){return m(this,null,function*(){return(0,f.ZP)("/server/api/rmh/add/rmhFieldLabel",{method:"POST",data:B(D({},t),{_id:o})})})}function w(t){return m(this,null,function*(){return(0,f.ZP)("/server/api/rmh/list/rmhFieldOrder",{params:t})})}function x(t){return m(this,null,function*(){return(0,f.ZP)("/server/api/rmh/list/rmhFieldLabel",{params:t})})}function C(t){return m(this,null,function*(){return(0,f.ZP)(`/server/api/feed-type/list/${t}`)})}},41207:function(Oe){function H(v){return typeof v=="object"&&v!=null&&v.nodeType===1}function a(v,Z){return(!Z||v!=="hidden")&&v!=="visible"&&v!=="clip"}function f(v,Z){if(v.clientHeight<v.scrollHeight||v.clientWidth<v.scrollWidth){var P=getComputedStyle(v,null);return a(P.overflowY,Z)||a(P.overflowX,Z)||function(N){var T=function(c){if(!c.ownerDocument||!c.ownerDocument.defaultView)return null;try{return c.ownerDocument.defaultView.frameElement}catch(D){return null}}(N);return!!T&&(T.clientHeight<N.scrollHeight||T.clientWidth<N.scrollWidth)}(v)}return!1}function V(v,Z,P,N,T,c,D,B){return c<v&&D>Z||c>v&&D<Z?0:c<=v&&B<=P||D>=Z&&B>=P?c-v-N:D>Z&&B<P||c<v&&B>P?D-Z+T:0}Oe.exports=function(v,Z){var P=window,N=Z.scrollMode,T=Z.block,c=Z.inline,D=Z.boundary,B=Z.skipOverflowHiddenElements,m=typeof D=="function"?D:function(Pe){return Pe!==D};if(!H(v))throw new TypeError("Invalid target");for(var X,$,le=document.scrollingElement||document.documentElement,ie=[],U=v;H(U)&&m(U);){if((U=($=(X=U).parentElement)==null?X.getRootNode().host||null:$)===le){ie.push(U);break}U!=null&&U===document.body&&f(U)&&!f(document.documentElement)||U!=null&&f(U,B)&&ie.push(U)}for(var l=P.visualViewport?P.visualViewport.width:innerWidth,p=P.visualViewport?P.visualViewport.height:innerHeight,s=window.scrollX||pageXOffset,k=window.scrollY||pageYOffset,Q=v.getBoundingClientRect(),pe=Q.height,K=Q.width,ae=Q.top,se=Q.right,ue=Q.bottom,ce=Q.left,G=T==="start"||T==="nearest"?ae:T==="end"?ue:ae+pe/2,j=c==="center"?ce+K/2:c==="end"?se:ce,de=[],ve=0;ve<ie.length;ve++){var g=ie[ve],_=g.getBoundingClientRect(),q=_.height,n=_.width,r=_.top,i=_.right,d=_.bottom,b=_.left;if(N==="if-needed"&&ae>=0&&ce>=0&&ue<=p&&se<=l&&ae>=r&&ue<=d&&ce>=b&&se<=i)return de;var F=getComputedStyle(g),S=parseInt(F.borderLeftWidth,10),A=parseInt(F.borderTopWidth,10),w=parseInt(F.borderRightWidth,10),x=parseInt(F.borderBottomWidth,10),C=0,t=0,o="offsetWidth"in g?g.offsetWidth-g.clientWidth-S-w:0,I="offsetHeight"in g?g.offsetHeight-g.clientHeight-A-x:0,z="offsetWidth"in g?g.offsetWidth===0?0:n/g.offsetWidth:0,ee="offsetHeight"in g?g.offsetHeight===0?0:q/g.offsetHeight:0;if(le===g)C=T==="start"?G:T==="end"?G-p:T==="nearest"?V(k,k+p,p,A,x,k+G,k+G+pe,pe):G-p/2,t=c==="start"?j:c==="center"?j-l/2:c==="end"?j-l:V(s,s+l,l,S,w,s+j,s+j+K,K),C=Math.max(0,C+k),t=Math.max(0,t+s);else{C=T==="start"?G-r-A:T==="end"?G-d+x+I:T==="nearest"?V(r,d,q,A,x+I,G,G+pe,pe):G-(r+q/2)+I/2,t=c==="start"?j-b-S:c==="center"?j-(b+n/2)+o/2:c==="end"?j-i+w+o:V(b,i,n,S,w+o,j,j+K,K);var e=g.scrollLeft,ye=g.scrollTop;G+=ye-(C=Math.max(0,Math.min(ye+C/ee,g.scrollHeight-q/ee+I))),j+=e-(t=Math.max(0,Math.min(e+t/z,g.scrollWidth-n/z+o)))}de.push({el:g,top:C,left:t})}return de}},28058:function(Oe,H,a){"use strict";a.d(H,{E:function(){return q}});var f=a(67294),V=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","#","$","%","*","+",",","-",".",":",";","=","?","@","[","]","^","_","{","|","}","~"],v=n=>{let r=0;for(let i=0;i<n.length;i++){let d=n[i],b=V.indexOf(d);r=r*83+b}return r},Z=(n,r)=>{var i="";for(let d=1;d<=r;d++){let b=Math.floor(n)/Math.pow(83,r-d)%83;i+=V[Math.floor(b)]}return i},P=n=>{let r=n/255;return r<=.04045?r/12.92:Math.pow((r+.055)/1.055,2.4)},N=n=>{let r=Math.max(0,Math.min(1,n));return r<=.0031308?Math.trunc(r*12.92*255+.5):Math.trunc((1.055*Math.pow(r,.4166666666666667)-.055)*255+.5)},T=n=>n<0?-1:1,c=(n,r)=>
1T(n)*Math.pow(Math.abs(n),r),D=class extends Error{constructor(n){super(n),this.name="ValidationError",this.message=n}},B=n=>{if(!n||n.length<6)throw new D("The blurhash string must be at least 6 characters");let r=v(n[0]),i=Math.floor(r/9)+1,d=r%9+1;if(n.length!==4+2*d*i)throw new D(`blurhash length mismatch: length is ${n.length} but it should be ${4+2*d*i}`)},m=n=>{try{B(n)}catch(r){return{result:!1,errorReason:r.message}}return{result:!0}},X=n=>{let r=n>>16,i=n>>8&255,d=n&255;return[P(r),P(i),P(d)]},$=(n,r)=>{let i=Math.floor(n/361),d=Math.floor(n/19)%19,b=n%19;return[c((i-9)/9,2)*r,c((d-9)/9,2)*r,c((b-9)/9,2)*r]},le=(n,r,i,d)=>{B(n),d=d|1;let b=v(n[0]),F=Math.floor(b/9)+1,S=b%9+1,A=(v(n[1])+1)/166,w=new Array(S*F);for(let t=0;t<w.length;t++)if(t===0){let o=v(n.substring(2,6));w[t]=X(o)}else{let o=v(n.substring(4+t*2,6+t*2));w[t]=$(o,A*d)}let x=r*4,C=new Uint8ClampedArray(x*i);for(let t=0;t<i;t++)for(let o=0;o<r;o++){let I=0,z=0,ee=0;for(let me=0;me<F;me++)for(let Ee=0;Ee<S;Ee++){let De=Math.cos(Math.PI*o*Ee/r)*Math.cos(Math.PI*t*me/i),Ze=w[Ee+me*S];I+=Ze[0]*De,z+=Ze[1]*De,ee+=Ze[2]*De}let e=N(I),ye=N(z),Pe=N(ee);C[4*o+0+t*x]=e,C[4*o+1+t*x]=ye,C[4*o+2+t*x]=Pe,C[4*o+3+t*x]=255}return C},ie=le,U=4,l=(n,r,i,d)=>{let b=0,F=0,S=0,A=r*U;for(let x=0;x<r;x++){let C=U*x;for(let t=0;t<i;t++){let o=C+t*A,I=d(x,t);b+=I*P(n[o]),F+=I*P(n[o+1]),S+=I*P(n[o+2])}}let w=1/(r*i);return[b*w,F*w,S*w]},p=n=>{let r=N(n[0]),i=N(n[1]),d=N(n[2]);return(r<<16)+(i<<8)+d},s=(n,r)=>{let i=Math.floor(Math.max(0,Math.min(18,Math.floor(c(n[0]/r,.5)*9+9.5)))),d=Math.floor(Math.max(0,Math.min(18,Math.floor(c(n[1]/r,.5)*9+9.5)))),b=Math.floor(Math.max(0,Math.min(18,Math.floor(c(n[2]/r,.5)*9+9.5))));return i*19*19+d*19+b},k=(n,r,i,d,b)=>{if(d<1||d>9||b<1||b>9)throw new D("BlurHash must have between 1 and 9 components");if(r*i*4!==n.length)throw new D("Width and height must match the pixels array");let F=[];for(let t=0;t<b;t++)for(let o=0;o<d;o++){let I=o==0&&t==0?1:2,z=l(n,r,i,(ee,e)=>I*Math.cos(Math.PI*o*ee/r)*Math.cos(Math.PI*t*e/i));F.push(z)}let S=F[0],A=F.slice(1),w="",x=d-1+(b-1)*9;w+=Z(x,1);let C;if(A.length>0){let t=Math.max(...A.map(I=>Math.max(...I))),o=Math.floor(Math.max(0,Math.min(82,Math.floor(t*166-.5))));C=(o+1)/166,w+=Z(o,1)}else C=1,w+=Z(0,1);return w+=Z(p(S),4),A.forEach(t=>{w+=Z(s(t,C),2)}),w},Q=null,pe=Object.defineProperty,K=Object.defineProperties,ae=Object.getOwnPropertyDescriptors,se=Object.getOwnPropertySymbols,ue=Object.prototype.hasOwnProperty,ce=Object.prototype.propertyIsEnumerable,G=(n,r,i)=>r in n?pe(n,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):n[r]=i,j=(n,r)=>{for(var i in r||(r={}))ue.call(r,i)&&G(n,i,r[i]);if(se)for(var i of se(r))ce.call(r,i)&&G(n,i,r[i]);return n},de=(n,r)=>K(n,ae(r)),ve=(n,r)=>{var i={};for(var d in n)ue.call(n,d)&&r.indexOf(d)<0&&(i[d]=n[d]);if(n!=null&&se)for(var d of se(n))r.indexOf(d)<0&&ce.call(n,d)&&(i[d]=n[d]);return i},g=class extends f.PureComponent{constructor(){super(...arguments),this.canvas=null,this.handleRef=n=>{this.canvas=n,this.draw()},this.draw=()=>{let{hash:n,height:r,punch:i,width:d}=this.props;if(this.canvas){let b=ie(n,d,r,i),F=this.canvas.getContext("2d"),S=F.createImageData(d,r);S.data.set(b),F.putImageData(S,0,0)}}}componentDidUpdate(){this.draw()}render(){let n=this.props,{hash:r,height:i,width:d}=n,b=ve(n,["hash","height","width"]);return f.createElement("canvas",de(j({},b),{height:i,width:d,ref:this.handleRef}))}};g.defaultProps={height:128,width:128};var _={position:"absolute",top:0,bottom:0,left:0,right:0,width:"100%",height:"100%"},q=class extends f.PureComponent{componentDidUpdate(){if(this.props.resolutionX<=0)throw new Error("resolutionX must be larger than zero");if(this.props.resolutionY<=0)throw new Error("resolutionY must be larger than zero")}render(){let n=this.props,{hash:r,height:i,width:d,punch:b,resolutionX:F,resolutionY:S,style:A}=n,w=ve(n,["hash","height","width","punch","resolutionX","resolutionY","style"]);return f.createElement("div",de(j({},w),{style:de(j({display:"inline-block",height:i,width:d},A),{position:"relative"})}),f.createElement(g,{hash:r,height:S,width:F,punch:b,style:_}))}};q.defaultProps={height:128,width:128,resolutionX:32,resolutionY:32}},10059:function(Oe,H,a){"use strict";H.__esModule=!0,H.default=void 0;var f=V(a(41207));function V(c){return c&&c.__esModule?c:{default:c}}function v(c){return c===Object(c)&&Object.keys(c).length!==0}function Z(c,D){D===void 0&&(D="auto");var B="scrollBehavior"in document.body.style;
1c.forEach(function(m){var X=m.el,$=m.top,le=m.left;X.scroll&&B?X.scroll({top:$,left:le,behavior:D}):(X.scrollTop=$,X.scrollLeft=le)})}function P(c){return c===!1?{block:"end",inline:"nearest"}:v(c)?c:{block:"start",inline:"nearest"}}function N(c,D){var B=c.isConnected||c.ownerDocument.documentElement.contains(c);if(v(D)&&typeof D.behavior=="function")return D.behavior(B?(0,f.default)(c,D):[]);if(B){var m=P(D);return Z((0,f.default)(c,m),m.behavior)}}var T=N;H.default=T,Oe.exports=H.default}}]);

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.