0xV3NOMx
Linux ip-172-26-7-228 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64



Your IP : 3.129.194.30


Current Path : /var/www/qpms/assets/
Upload File :
Current File : /var/www/qpms/assets/PrepareQuestionPaper-DU8fxbup.js

import{j as W,m as F,b4 as G,U as K,r,g as $,c as E,aV as A,s as Q,au as X,K as J,ag as Y,B as q,bI as Z,bJ as ee,aj as z,ah as te,an as ne,v as R,E as w}from"./index-BNUFy9rV.js";import{a as oe,P as ae,c as re,b as le,e as se,T as ie}from"./index-CnlaopLU.js";const h=e=>e?typeof e=="function"?e():e:null,ce=e=>{const{componentCls:n,popoverColor:o,titleMinWidth:t,fontWeightStrong:a,innerPadding:l,boxShadowSecondary:i,colorTextHeading:s,borderRadiusLG:c,zIndexPopup:m,titleMarginBottom:p,colorBgElevated:g,popoverBg:f,titleBorderBottom:y,innerContentPadding:P,titlePadding:v}=e;return[{[n]:Object.assign(Object.assign({},K(e)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:m,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","--antd-arrow-background-color":g,width:"max-content",maxWidth:"100vw","&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${n}-content`]:{position:"relative"},[`${n}-inner`]:{backgroundColor:f,backgroundClip:"padding-box",borderRadius:c,boxShadow:i,padding:l},[`${n}-title`]:{minWidth:t,marginBottom:p,color:s,fontWeight:a,borderBottom:y,padding:v},[`${n}-inner-content`]:{color:o,padding:P}})},oe(e,"var(--antd-arrow-background-color)"),{[`${n}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block",[`${n}-content`]:{display:"inline-block"}}}]},pe=e=>{const{componentCls:n}=e;return{[n]:ae.map(o=>{const t=e[`${o}6`];return{[`&${n}-${o}`]:{"--antd-arrow-background-color":t,[`${n}-inner`]:{backgroundColor:t},[`${n}-arrow`]:{background:"transparent"}}}})}},de=e=>{const{lineWidth:n,controlHeight:o,fontHeight:t,padding:a,wireframe:l,zIndexPopupBase:i,borderRadiusLG:s,marginXS:c,lineType:m,colorSplit:p,paddingSM:g}=e,f=o-t,y=f/2,P=f/2-n,v=a;return Object.assign(Object.assign(Object.assign({titleMinWidth:177,zIndexPopup:i+30},re(e)),le({contentRadius:s,limitVerticalRadius:!0})),{innerPadding:l?0:12,titleMarginBottom:l?0:c,titlePadding:l?`${y}px ${v}px ${P}px`:0,titleBorderBottom:l?`${n}px ${m} ${p}`:"none",innerContentPadding:l?`${g}px ${v}px`:0})},V=W("Popover",e=>{const{colorBgElevated:n,colorText:o}=e,t=F(e,{popoverBg:n,popoverColor:o});return[ce(t),pe(t),G(t,"zoom-big")]},de,{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]});var me=function(e,n){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&n.indexOf(t)<0&&(o[t]=e[t]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,t=Object.getOwnPropertySymbols(e);a<t.length;a++)n.indexOf(t[a])<0&&Object.prototype.propertyIsEnumerable.call(e,t[a])&&(o[t[a]]=e[t[a]]);return o};const ge=(e,n,o)=>!n&&!o?null:r.createElement(r.Fragment,null,n&&r.createElement("div",{className:`${e}-title`},h(n)),r.createElement("div",{className:`${e}-inner-content`},h(o))),ue=e=>{const{hashId:n,prefixCls:o,className:t,style:a,placement:l="top",title:i,content:s,children:c}=e;return r.createElement("div",{className:E(n,o,`${o}-pure`,`${o}-placement-${l}`,t),style:a},r.createElement("div",{className:`${o}-arrow`}),r.createElement(se,Object.assign({},e,{className:n,prefixCls:o}),c||ge(o,i,s)))},L=e=>{const{prefixCls:n,className:o}=e,t=me(e,["prefixCls","className"]),{getPrefixCls:a}=r.useContext($),l=a("popover",n),[i,s,c]=V(l);return i(r.createElement(ue,Object.assign({},t,{prefixCls:l,hashId:s,className:E(o,c)})))};var fe=function(e,n){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&n.indexOf(t)<0&&(o[t]=e[t]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,t=Object.getOwnPropertySymbols(e);a<t.length;a++)n.indexOf(t[a])<0&&Object.prototype.propertyIsEnumerable.call(e,t[a])&&(o[t[a]]=e[t[a]]);return o};const ye=e=>{let{title:n,content:o,prefixCls:t}=e;return r.createElement(r.Fragment,null,n&&r.createElement("div",{className:`${t}-title`},h(n)),r.createElement("div",{className:`${t}-inner-content`},h(o)))},ve=r.forwardRef((e,n)=>{var o,t;const{prefixCls:a,title:l,content:i,overlayClassName:s,placement:c="top",trigger:m="hover",children:p,mouseEnterDelay:g=.1,mouseLeaveDelay:f=.1,onOpenChange:y,overlayStyle:P={}}=e,v=fe(e,["prefixCls","title","content","overlayClassName","placement","trigger","children","mouseEnterDelay","mouseLeaveDelay","onOpenChange","overlayStyle"]),{getPrefixCls:C}=r.useContext($),b=C("popover",a),[x,_,N]=V(b),I=C(),S=E(s,_,N),[j,B]=A(!1,{value:(o=e.open)!==null&&o!==void 0?o:e.visible,defaultValue:(t=e.defaultOpen)!==null&&t!==void 0?t:e.defaultVisible}),d=(O,T)=>{B(O,!0),y==null||y(O,T)},u=O=>{O.keyCode===J.ESC&&d(!1,O)},k=O=>{d(O)};return x(r.createElement(ie,Object.assign({placement:c,trigger:m,mouseEnterDelay:g,mouseLeaveDelay:f,overlayStyle:P},v,{prefixCls:b,overlayClassName:S,ref:n,open:j,onOpenChange:k,overlay:l||i?r.createElement(ye,{prefixCls:b,title:l,content:i}):null,transitionName:Q(I,"zoom-big",v.transitionName),"data-popover-inject":!0}),X(p,{onKeyDown:O=>{var T,D;r.isValidElement(p)&&((D=p==null?void 0:(T=p.props).onKeyDown)===null||D===void 0||D.call(T,O)),u(O)}})))}),M=ve;M._InternalPanelDoNotUseOrYouWillBeFired=L;const Ce=e=>{const{componentCls:n,iconCls:o,antCls:t,zIndexPopup:a,colorText:l,colorWarning:i,marginXXS:s,marginXS:c,fontSize:m,fontWeightStrong:p,colorTextHeading:g}=e;return{[n]:{zIndex:a,[`&${t}-popover`]:{fontSize:m},[`${n}-message`]:{marginBottom:c,display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${n}-message-icon ${o}`]:{color:i,fontSize:m,lineHeight:1,marginInlineEnd:c},[`${n}-title`]:{fontWeight:p,color:g,"&:only-child":{fontWeight:"normal"}},[`${n}-description`]:{marginTop:s,color:l}},[`${n}-buttons`]:{textAlign:"end",whiteSpace:"nowrap",button:{marginInlineStart:c}}}}},be=e=>{const{zIndexPopupBase:n}=e;return{zIndexPopup:n+60}},H=W("Popconfirm",e=>Ce(e),be,{resetStyle:!1});var Oe=function(e,n){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&n.indexOf(t)<0&&(o[t]=e[t]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,t=Object.getOwnPropertySymbols(e);a<t.length;a++)n.indexOf(t[a])<0&&Object.prototype.propertyIsEnumerable.call(e,t[a])&&(o[t[a]]=e[t[a]]);return o};const U=e=>{const{prefixCls:n,okButtonProps:o,cancelButtonProps:t,title:a,description:l,cancelText:i,okText:s,okType:c="primary",icon:m=r.createElement(z,null),showCancel:p=!0,close:g,onConfirm:f,onCancel:y,onPopupClick:P}=e,{getPrefixCls:v}=r.useContext($),[C]=Y("Popconfirm",te.Popconfirm),b=h(a),x=h(l);return r.createElement("div",{className:`${n}-inner-content`,onClick:P},r.createElement("div",{className:`${n}-message`},m&&r.createElement("span",{className:`${n}-message-icon`},m),r.createElement("div",{className:`${n}-message-text`},b&&r.createElement("div",{className:E(`${n}-title`)},b),x&&r.createElement("div",{className:`${n}-description`},x))),r.createElement("div",{className:`${n}-buttons`},p&&r.createElement(q,Object.assign({onClick:y,size:"small"},t),i||(C==null?void 0:C.cancelText)),r.createElement(Z,{buttonProps:Object.assign(Object.assign({size:"small"},ee(c)),o),actionFn:f,close:g,prefixCls:v("btn"),quitOnNullishReturnValue:!0,emitEvent:!0},s||(C==null?void 0:C.okText))))},Pe=e=>{const{prefixCls:n,placement:o,className:t,style:a}=e,l=Oe(e,["prefixCls","placement","className","style"]),{getPrefixCls:i}=r.useContext($),s=i("popconfirm",n),[c]=H(s);return c(r.createElement(L,{placement:o,className:E(s,t),style:a,content:r.createElement(U,Object.assign({prefixCls:s},l))}))};var xe=function(e,n){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&n.indexOf(t)<0&&(o[t]=e[t]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,t=Object.getOwnPropertySymbols(e);a<t.length;a++)n.indexOf(t[a])<0&&Object.prototype.propertyIsEnumerable.call(e,t[a])&&(o[t[a]]=e[t[a]]);return o};const he=r.forwardRef((e,n)=>{var o,t;const{prefixCls:a,placement:l="top",trigger:i="click",okType:s="primary",icon:c=r.createElement(z,null),children:m,overlayClassName:p,onOpenChange:g,onVisibleChange:f}=e,y=xe(e,["prefixCls","placement","trigger","okType","icon","children","overlayClassName","onOpenChange","onVisibleChange"]),{getPrefixCls:P}=r.useContext($),[v,C]=A(!1,{value:(o=e.open)!==null&&o!==void 0?o:e.visible,defaultValue:(t=e.defaultOpen)!==null&&t!==void 0?t:e.defaultVisible}),b=(d,u)=>{C(d,!0),f==null||f(d),g==null||g(d,u)},x=d=>{b(!1,d)},_=d=>{var u;return(u=e.onConfirm)===null||u===void 0?void 0:u.call(void 0,d)},N=d=>{var u;b(!1,d),(u=e.onCancel)===null||u===void 0||u.call(void 0,d)},I=(d,u)=>{const{disabled:k=!1}=e;k||b(d,u)},S=P("popconfirm",a),j=E(S,p),[B]=H(S);return B(r.createElement(M,Object.assign({},ne(y,["title"]),{trigger:i,placement:l,onOpenChange:I,open:v,ref:n,overlayClassName:j,content:r.createElement(U,Object.assign({okType:s,icon:c},e,{prefixCls:S,close:x,onConfirm:_,onCancel:N})),"data-popover-inject":!0}),m))}),Ee=he;Ee._InternalPanelDoNotUseOrYouWillBeFired=Pe;const $e=e=>async(n,o)=>{try{n({type:"SET_LOADER"});const t=o(),a=localStorage.getItem("dbname"),l=await R.get("app.php?a=getTemplateDetails&db="+a+"&teachcode="+t.loginfo.userData.fregno+"&data="+JSON.stringify(e)+"&usertype="+t.loginfo.userData.fusertype);n({type:"UNSET_LOADER"}),l.data.error_code===0?n({type:"GET_TEMPLATE_DETAILS",payload:l.data.data}):n({type:"GET_TEMPLATE_DETAILS",payload:[]})}catch(t){w("error",t.message)}},Te=e=>async(n,o)=>{try{n({type:"SET_LOADER"});const t=o(),a=localStorage.getItem("dbname"),l=await R.get("app.php?a=getViewPrepareQpDetails&db="+a+"&teachcode="+e+"&usertype="+t.loginfo.userData.fusertype);if(n({type:"UNSET_LOADER"}),l.data.error_code===0){const i=l.data.data.map((s,c)=>({...s,key:c,fslno:c+1}));n({type:"VIEW_PREPARE_QP_OPTION2",payload:i})}else n({type:"VIEW_PREPARE_QP_OPTION2",payload:[]}),w("info",l.data.data.msg)}catch(t){w("error",t.message)}},_e=(e,n,o)=>async(t,a)=>{try{const l=a();let i=localStorage.getItem("dbname");t({type:"SET_LOADER"});const s=await R.post("app.php?a=saveTeachConfirm&db="+i+"&univcode="+l.loginfo.userData.funivcode,e);t({type:"UNSET_LOADER"}),s.data.error_code===0?n(o):w("info",s.data.data.msg)}catch(l){w("error",l.message)}};export{Ee as P,Te as a,_e as c,$e as g};