PageSourceSearch

https://app.wmsp.edu.pk/_next/static/chunks/pages/schools/certificate/[...slug]-93ad3e0397ede6fa.js

js wmsp.edu.pk collected 2026-10-03 18:13:57 UTC 16,379 bytes, 2 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5925],{2003:(e,t,n)=>{"use strict";n.d(t,{H:()=>r});var o=n(6668);function r(e){let t=(0,o.FE)(null!=e?e:o.hP);return"\n  @page {\n    margin: ".concat(t.printMarginTopIn,"in ").concat(t.printMarginXIn,"in;\n  }\n  @media print {\n    html, body {\n      width: 100% !important;\n      height: auto !important;\n      margin: 0 !important;\n      padding: 0 !important;\n      overflow: visible !important;\n    }\n    .ilhaq-certificate-print-root {\n      width: 100%;\n      display: flex;\n      justify-content: center;\n      align-items: flex-start;\n      box-sizing: border-box;\n      overflow: visible !important;\n    }\n    .ilhaq-certificate {\n      flex-shrink: 0;\n      box-sizing: border-box !important;\n      margin: 0 !important;\n      border: none !important;\n      box-shadow: none !important;\n      filter: none !important;\n      -webkit-print-color-adjust: exact !important;\n      print-color-adjust: exact !important;\n    }\n  }\n")}r()},2682:(e,t,n)=>{"use strict";n.d(t,{AP:()=>r,BC:()=>f,G2:()=>c,GU:()=>d,J5:()=>i,Jj:()=>h,Lh:()=>b,Py:()=>l,UC:()=>a,VK:()=>w,Y8:()=>p,YD:()=>s,Z7:()=>u,aL:()=>g,l4:()=>v,qs:()=>E,rI:()=>y,yH:()=>m});var o=n(4306);async function r(){return await (0,o.G)({method:"GET",query:"/schools"})}async function i(e){return await (0,o.G)({method:"GET",query:"/schools/".concat(e)})}async function s(e){let{id:t,...n}=null==e?void 0:e.arg;return await (0,o.G)({method:"PATCH",query:"/schools/".concat(t),bodyObj:null==n?void 0:n.data})}async function l(){return await (0,o.G)({method:"GET",query:"/schools/form-metadata"})}async function a(){return await (0,o.G)({method:"GET",query:"/schools/next/ilhaq-number"})}async function c(e){return await (0,o.G)({method:"POST",query:"/schools",bodyObj:null==e?void 0:e.arg})}async function d(e){let{page:t=1,limit:n=50,search:r="",searchBy:i="name",isMale:s,isFemale:l,isUnassigned:a}=e,c=new URLSearchParams({page:t.toString(),limit:n.toString(),search:r,searchBy:i});void 0!==s&&c.append("isMale",s.toString()),void 0!==l&&c.append("isFemale",l.toString()),void 0!==a&&c.append("isUnassigned",a.toString());let d=await (0,o.G)({method:"GET",query:"/schools/paginated?".concat(c.toString())});return null==d?void 0:d.data}async function u(){let e=await (0,o.G)({method:"GET",query:"/school/file/template",responseType:"blob"}),t=window.URL.createObjectURL(e),n=document.createElement("a");n.href=t,n.download="school_template.csv",document.body.appendChild(n),n.click(),n.remove(),window.URL.revokeObjectURL(t)}async function h(e){let t=new FormData;return t.append("file",e),await (0,o.G)({method:"POST",query:"/school/file/csv",bodyObj:t})}async function p(e){return await (0,o.G)({method:"DELETE",query:"/schools/".concat(null==e?void 0:e.arg)})}async function m(){return await (0,o.G)({method:"GET",query:"/schools/totalCount"})}async function f(){return await (0,o.G)({method:"GET",query:"/schools/ilhaq-list"})}async function g(e){return await (0,o.G)({method:"GET",query:"/schools/ilhaq/".concat(e)})}async function y(){return await (0,o.G)({method:"GET",query:"/schools"})}async function b(){return await (0,o.G)({method:"GET",query:"/schools/permissions"})}async function w(e){return await (0,o.G)({method:"PATCH",query:"/users/schools/update-permissions",bodyObj:e})}async function v(e){return await (0,o.G)({method:"GET",query:"/schools/".concat(e,"/permissions")})}async function E(e){return await (0,o.G)({method:"PATCH",query:"/schools/".concat(e.schoolId,"/permissions"),bodyObj:{permissions:e.permissions}})}},3020:(e,t,n)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/schools/certificate/[...slug]",function(){return n(6155)}])},4464:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});let o=(0,n(1713).A)("printer",[["path",{d:"M6 18H4a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-2",key:"143wyd"}],["path",{d:"M6 9V3a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v6",key:"1itne7"}],["rect",{x:"6",y:"14",width:"12",height:"8",rx:"1",key:"1ue0tg"}]])},6155:(e,t,n)=>{"use strict";n.r(t),n.d(t,{__N_SSP:()=>A,default:()=>x});var o=n(7876),r=n(4232),i=n(9099),s=n(5656),l=n(2682),a=n(1662),c=n(8084),d=n(1268),u=n(2108),h=n(9924),p=n(8313),m=n(468),f=n(4464),g=n(8110),y=n(8322),b=n(2003),w=n(2753),v=n(5920);function E(e,t){let n=null==e?void 0:e.find(e=>e.signatureType===t);return(null==n?void 0:n.signatureUrl)||null}var A=!0;function x(){let{slug:e}=(0,i.useRouter)().query,t=Array.isArray(e)?e[0]:e,{forModule:n}=(0,v.J)(),A=n("schools","read")||n("schools"),x=(0,r.useRef)(null),{data:T,error:S,isLoading:k}=(0,s.Ay)(A&&t?"/schools/".concat(t):null,()=>(0,l.J5)(t)),{data:P}=(0,s.Ay)(A?"signatures/active":null,a.ef),{data:G}=(0,s.Ay)(A?"ilhaq-certificate-layout":null,()=>(0,w.l)()),q=null==G?void 0:G.settings,j=(0,g.useReactToPrint)({contentRef:x,pageStyle:(0,b.H)(q)}),C=(0,r.useMemo)(()=>{var e;let t=null!=(e=null==P?void 0:P.data)?e:P;return Array.isArray(t)?t:[]}
1,[P]),N=E(C,"PRESIDENT_WAFAQ"),R=E(C,"NAZAM_ALA_WAFAQ");return A?k?(0,o.jsx)(c.A,{breadcrumbs:[{title:"الحاق",link:"/schools"},{title:"سرٹیفکیٹ "}],children:(0,o.jsxs)("div",{className:"p-6 text-right",dir:"rtl",children:[(0,o.jsx)(d.y,{})," لوڈ ہو رہا ہے..."]})}):S?(0,o.jsx)(c.A,{breadcrumbs:[{title:"الحاق",link:"/schools"},{title:"سرٹیفکیٹ "}],children:(0,o.jsx)(u.Bm,{status:"error",variant:"outline",children:(0,o.jsx)(u.XL,{children:"ڈیٹا لوڈ کرنے میں مسئلہ ہوا"})})}):(0,o.jsxs)(c.A,{breadcrumbs:[{title:"الحاق",link:"/schools"},{title:"سرٹیفکیٹ "}],children:[(0,o.jsx)(h.a,{textAlign:"center",mb:4,children:(0,o.jsx)(p.$,{onClick:j,style:{padding:"10px 20px",backgroundColor:"#ea9e33",color:"black",border:"none",borderRadius:"5px",cursor:"pointer"},children:(0,o.jsx)(f.A,{size:20})})}),(0,o.jsx)(m.m,{p:"0",children:(0,o.jsx)("div",{ref:x,className:"ilhaq-certificate-print-root",children:(0,o.jsx)(y.P,{schoolDetails:null==T?void 0:T.data,presidentSignatureUrl:N,nazimAlaSignatureUrl:R,layout:q})})})]}):(0,o.jsx)(c.A,{breadcrumbs:[{title:"الحاق",link:"/schools"},{title:"سرٹیفکیٹ "}],children:(0,o.jsx)("p",{className:"text-center text-red-600 text-lg",children:"آپ کو اس صفحے تک رسائی کی اجازت نہیں ہے۔"})})}},8110:function(e,t,n){var o,r;"undefined"!=typeof self&&self,r=n(4232),e.exports=function(){"use strict";var e={155:function(e){e.exports=r}},t={};function n(o){var r=t[o];if(void 0!==r)return r.exports;var i=t[o]={exports:{}};return e[o](i,i.exports,n),i.exports}n.d=function(e,t){for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};n.r(o),n.d(o,{useReactToPrint:function(){return u}});var i=n(155);function s({level:e="error",messages:t,suppressErrors:n=!1}){n||("error"===e?console.error(t):"warning"===e?console.warn(t):console.debug(t))}function l(e,t){if(t||!e){let e=document.getElementById("printWindow");e&&document.body.removeChild(e)}}function a(e){return e instanceof Error?e:Error("Unknown Error")}function c(e,t){let{documentTitle:n,onAfterPrint:o,onPrintError:r,preserveAfterPrint:i,print:c,suppressErrors:d}=t;setTimeout(()=>{var t,u;if(e.contentWindow){function h(){null==o||o(),l(i)}if(e.contentWindow.focus(),c)c(e).then(h).catch(e=>{r?r("print",a(e)):s({messages:["An error was thrown by the specified `print` function"],suppressErrors:d})});else{if(e.contentWindow.print){let o=null!=(u=null==(t=e.contentDocument)?void 0:t.title)?u:"",r=e.ownerDocument.title;n&&(e.ownerDocument.title=n,e.contentDocument&&(e.contentDocument.title=n)),e.contentWindow.print(),n&&(e.ownerDocument.title=r,e.contentDocument&&(e.contentDocument.title=o))}else s({messages:["Printing for this browser is not currently possible: the browser does not have a `print` method available for iframes."],suppressErrors:d});[/Android/i,/webOS/i,/iPhone/i,/iPad/i,/iPod/i,/BlackBerry/i,/Windows Phone/i].some(e=>{var t,n;return(null!=(n=null!=(t=navigator.userAgent)?t:navigator.vendor)?n:"opera"in window&&window.opera).match(e)})?setTimeout(h,500):h()}}else s({messages:["Printing failed because the `contentWindow` of the print iframe did not load. This is possibly an error with `react-to-print`. Please file an issue: https://github.com/MatthewHerbst/react-to-print/issues/"],suppressErrors:d})},500)}function d(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,null),o=n.nextNode();for(;o;)t.push(o),o=n.nextNode();return t}function u({bodyClass:e,contentRef:t,copyShadowRoots:n,documentTitle:o,fonts:r,ignoreGlobalStyles:u,nonce:h,onAfterPrint:p,onBeforePrint:m,onPrintError:f,pageStyle:g,preserveAfterPrint:y,print:b,suppressErrors:w}){return(0,i.useCallback)(i=>{function v(){let l={bodyClass:e,contentRef:t,copyShadowRoots:n,documentTitle:o,fonts:r,ignoreGlobalStyles:u,nonce:h,onAfterPrint:p,onBeforePrint:m,onPrintError:f,pageStyle:g,preserveAfterPrint:y,print:b,suppressErrors:w},v=function(){let e=document.createElement("iframe");return e.width=`${document.documentElement.clientWidth}px`,e.height=`${document.documentElement.clientHeight}px`,e.style.position="absolute",e.style.top=`-${document.documentElement.clientHeight+100}px`,e.style.left=`-${document.documentElement.clientWidth+100}px`,e.id="printWindow",e.srcdoc="<!DOCTYPE html>",e}
1(),E=function(e,t){let{contentRef:n,fonts:o,ignoreGlobalStyles:r,suppressErrors:i}=t,l=function({contentRef:e,optionalContent:t,suppressErrors:n}){return!t||t instanceof Event||(e&&s({level:"warning",messages:['"react-to-print" received a `contentRef` option and a optional-content param passed to its callback. The `contentRef` option will be ignored.']}),"function"!=typeof t)?e?e.current:void s({messages:['"react-to-print" did not receive a `contentRef` option or a optional-content param pass to its callback.'],suppressErrors:n}):t()}({contentRef:n,optionalContent:e,suppressErrors:i});if(!l)return;let a=l.cloneNode(!0),c=document.querySelectorAll("link[rel~='stylesheet'], link[as='style']"),d=a.querySelectorAll("img"),u=a.querySelectorAll("video"),h=o?o.length:0;return{contentNode:l,clonedContentNode:a,clonedImgNodes:d,clonedVideoNodes:u,numResourcesToLoad:(r?0:c.length)+d.length+u.length+h,originalCanvasNodes:l.querySelectorAll("canvas")}}(i,l);if(!E)return void s({messages:["There is nothing to print"],suppressErrors:w});let A=function(e,t,n){let{suppressErrors:o}=e,r=[],i=[];return function(l,a){r.includes(l)?s({level:"debug",messages:["Tried to mark a resource that has already been handled",l],suppressErrors:o}):(a?(s({messages:['"react-to-print" was unable to load a resource but will continue attempting to print the page',...a],suppressErrors:o}),i.push(l)):r.push(l),r.length+i.length===t&&c(n,e))}}(l,E.numResourcesToLoad,v);v.onload=()=>{!function(e,t,n,o){var r,i,l,u,h;let{contentNode:p,clonedContentNode:m,clonedImgNodes:f,clonedVideoNodes:g,numResourcesToLoad:y,originalCanvasNodes:b}=n,{bodyClass:w,fonts:v,ignoreGlobalStyles:E,pageStyle:A,nonce:x,suppressErrors:T,copyShadowRoots:S}=o;e.onload=null;let k=null!=(r=e.contentDocument)?r:null==(i=e.contentWindow)?void 0:i.document;if(k){let n=k.body.appendChild(m);S&&function e(t,n,o){let r=d(t),i=d(n);if(r.length===i.length)for(let t=0;t<r.length;t++){let n=r[t],s=i[t],l=n.shadowRoot;if(null!==l){let t=s.attachShadow({mode:l.mode});t.innerHTML=l.innerHTML,e(l,t,o)}}else s({messages:["When cloning shadow root content, source and target elements have different size. `onBeforePrint` likely resolved too early.",t,n],suppressErrors:o})}(p,n,!!T),v&&((null==(l=e.contentDocument)?void 0:l.fonts)&&(null==(u=e.contentWindow)?void 0:u.FontFace)?v.forEach(n=>{let o=new FontFace(n.family,n.source,{weight:n.weight,style:n.style});e.contentDocument.fonts.add(o),o.loaded.then(()=>{t(o)}).catch(e=>{t(o,["Failed loading the font:",o,"Load error:",a(e)])})}):(v.forEach(e=>{t(e)}),s({messages:['"react-to-print" is not able to load custom fonts because the browser does not support the FontFace API but will continue attempting to print the page'],suppressErrors:T})));let o=k.createElement("style");x&&(o.setAttribute("nonce",x),k.head.setAttribute("nonce",x)),o.appendChild(k.createTextNode(null!=A?A:'\n    @page {\n        /* Remove browser default header (title) and footer (url) */\n        margin: 0;\n    }\n    @media print {\n        body {\n            /* Tell browsers to print background colors */\n            color-adjust: exact; /* Firefox. This is an older version of "print-color-adjust" */\n            print-color-adjust: exact; /* Firefox/Safari */\n            -webkit-print-color-adjust: exact; /* Chrome/Safari/Edge/Opera */\n        }\n    }\n')),k.head.appendChild(o),w&&k.body.classList.add(...w.split(" "));let r=k.querySelectorAll("canvas");for(let e=0;e<b.length;++e){let t=b[e],n=r[e];if(void 0===n){s({messages:["A canvas element could not be copied for printing, has it loaded? `onBeforePrint` likely resolved too early.",t],suppressErrors:T});continue}let o=n.getContext("2d");o&&o.drawImage(t,0,0)}for(let e=0;e<f.length;e++){let n=f[e],o=n.getAttribute("src");if(o){let e=new Image;e.onload=()=>{t(n)},e.onerror=(e,o,r,i,s)=>{t(n,["Error loading <img>",n,"Error",s])},e.src=o}else t(n,['Found an <img> tag with an empty "src" attribute. This prevents pre-loading it.',n])}for(let e=0;e<g.length;e++){let n=g[e];n.preload="auto";let o=n.getAttribute("poster");if(o){let e=new Image;e.onload=()=>{t(n)},e.onerror=(e,r,i,s,l)=>{t(n,["Error loading video poster",o,"for video",n,"Error:",l])},e.src=o}else n.readyState>=2?t(n):n.src?(n.onloadeddata=()=>{t(n)},n.onerror=(e,o,r,i,s)=>{t(n,["Error loading video",n,"Error",s])},n.onstalled=()=>{t(n,["Loading video stalled, skipping",n])}):t(n,["Error loading video, `src` is empty",n])}let i="select",c=p.querySelectorAll(i),y=k.querySelectorAll(i);for(let e=0;e<c.length;e++)y[e].value=c[e].value;if(!E){let e=document.querySelectorAll("style, link[rel~='stylesheet'], link[as='style']");for(let n=0,o=e.length;n<o;++n){let o=e[n];if("style"===o.tagName.toLowerCase()){let e=k.createElement(o.tagName),t=o.sheet;if(t){let r="";try{let e=t.cssRules.length;for(let n=0;n<e;++n)"string"==typeof t.cssRules[n].cssText&&(r+=`${t.cssRules[n].cssText}\r
2`)}catch(e){s({messages:["A stylesheet could not be accessed. This is likely due to the stylesheet having cross-origin imports, and many browsers block script access to cross-origin stylesheets. See https://github.com/MatthewHerbst/react-to-
2print/issues/429 for details. You may be able to load the sheet by both marking the stylesheet with the cross `crossorigin` attribute, and setting the `Access-Control-Allow-Origin` header on the server serving the stylesheet. Alternatively, host the stylesheet on your domain to avoid this issue entirely.",o,`Original error: ${a(e).message}`],level:"warning"})}e.setAttribute("id",`react-to-print-${n}`),x&&e.setAttribute("nonce",x),e.appendChild(k.createTextNode(r)),k.head.appendChild(e)}}else if(o.getAttribute("href"))if(o.hasAttribute("disabled"))s({messages:["`react-to-print` encountered a <link> tag with a `disabled` attribute and will ignore it. Note that the `disabled` attribute is deprecated, and some browsers ignore it. You should stop using it. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/link#attr-disabled. The <link> is:",o],level:"warning"}),t(o);else{let e=k.createElement(o.tagName);for(let t=0,n=o.attributes.length;t<n;++t){let n=o.attributes[t];n&&e.setAttribute(n.nodeName,null!=(h=n.nodeValue)?h:"")}e.onload=()=>{t(e)},e.onerror=(n,o,r,i,s)=>{t(e,["Failed to load",e,"Error:",s])},x&&e.setAttribute("nonce",x),k.head.appendChild(e)}else s({messages:["`react-to-print` encountered a <link> tag with an empty `href` attribute. In addition to being invalid HTML, this can cause problems in many browsers, and so the <link> was not loaded. The <link> is:",o],level:"warning"}),t(o)}}}0===y&&c(e,o)}(v,A,E,l)},document.body.appendChild(v)}l(y,!0),m?m().then(()=>{v()}).catch(e=>{null==f||f("onBeforePrint",a(e))}):v()},[e,t,n,o,r,u,h,p,m,f,g,y,b,w])}return o}()}},e=>{var t=t=>e(e.s=t);e.O(0,[6744,8084,2187,636,6593,8792],()=>t(3020)),_N_E=e.O()}]);

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.