PageSourceSearch

https://www.ncsi.gov.om/_next/static/chunks/pages/Licenses-14070e70434688f7.js

js ncsi.gov.om collected 2026-09-24 09:53:44 UTC 8,596 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9936],{4406:(e,t,s)=>{"use strict";s.r(t),s.d(t,{__N_SSG:()=>u,default:()=>m});var a=s(7876),l=s(4232),r=s(7328),n=s.n(r),i=s(9099),c=s(3401),d=s(5359),o=s(5422),u=!0;let m=()=>{let{t:e}=(0,c.useTranslation)("common"),{locale:t}=(0,i.useRouter)();null==t||t.startsWith("ar");let[s,r]=(0,l.useState)("survey-request"),u={fontFamily:(null==t?void 0:t.startsWith("ar"))?'"Janna LT", DroidKufiRegular':'"Gill Sans MT", Arial, sans-serif'},m=e("survey-request"===s?"survey_request":"Licences");return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(n(),{children:[(0,a.jsx)("title",{children:"Licences"}),(0,a.jsx)("meta",{id:"ctl00_ctl00_SEO_description",name:"description",content:e("meta_des_publications")}),(0,a.jsx)("meta",{id:"ctl00_ctl00_SEO_keyWords",name:"keywords",content:"NCSI,NCSI Oman,Oman Statistics,Oman Indicators الإحصاء , المركز الوطنى للإحصاء والمعلومات , عمان, مؤشرات,Heba Elaraby,Adel Elaraby ,Omar Yusuf,Mahmoud AbdelSabour,Mahmoud Roushdy,Amr Eladly,Eachawy,Maab Ashraf,Yasmeen AbdelSattar,National,Centre,for,Statistics,and,Information,-,"})]}),(0,a.jsx)("section",{className:"events-section px-0 md:px-12 lg:px-20 bg-[#f4f4f4]",children:(0,a.jsx)("div",{className:"_breadcrumb",children:(0,a.jsx)("p",{className:"_breadcrumb-header text-[22px] font-semibold text-[#222]",children:m})})}),(0,a.jsx)("section",{className:"w-full flex flex-col items-center  py-4",children:(0,a.jsxs)("div",{className:"w-full max-w-6xl",children:[(0,a.jsx)("div",{className:"flex mb-10 justify-start px-4",children:(0,a.jsxs)("div",{className:"flex items-center gap-4",children:[(0,a.jsx)("button",{onClick:()=>r("survey-request"),className:"px-6 py-2 rounded-md font-medium transition-all duration-200 ".concat("survey-request"===s?"bg-[#00A895] text-white":"bg-white border border-[#00A895] text-[#00A895]"),children:e("submit_a_new_application")}),(0,a.jsx)("button",{onClick:()=>r("search-licences"),className:"px-6 py-2 rounded-md font-medium transition-all duration-200 ".concat("search-licences"===s?"bg-[#00A895] text-white":"bg-white border border-[#00A895] text-[#00A895]"),style:u,children:e("verify_licence")})]})}),(0,a.jsx)("div",{children:"survey-request"===s?(0,a.jsx)(o.default,{}):(0,a.jsx)(d.default,{})})]})})]})}},5359:(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>p});var a=s(7876),l=s(4232),r=s(7328),n=s.n(r),i=s(9099),c=s(9516),d=s(1713);let o=(0,d.A)("chevron-up",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]),u=(0,d.A)("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);var m=s(3401),x=s(3243);let h=async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{field:"created_at",direction:"asc"};try{var l,r;let n=await x.A.post("/V1/liscences/list",{pagesize:t,currentpage:e,searchstring:s,sortorder:a,filter:{type:"",classification_id:"",status:1}});return{licences:(null==(l=n.data.data)?void 0:l.liscences)||[],total:(null==(r=n.data.data)?void 0:r.total)||0}}catch(e){return console.error("Error fetching licences:",e),{licences:[],total:0}}},p=()=>{let{t:e}=(0,m.useTranslation)("common"),{locale:t}=(0,i.useRouter)(),[s,r]=(0,l.useState)([]),[d,x]=(0,l.useState)(0),[p,f]=(0,l.useState)(""),[y,g]=(0,l.useState)(!1),[b,_]=(0,l.useState)(1),[j,v]=(0,l.useState)(!1),N=Math.ceil(d/3),[w,k]=(0,l.useState)({field:"created_at",direction:"asc"}),S=(0,l.useRef)(null);(0,l.useEffect)(()=>{if(!p.trim()){r([]),x(0),v(!1);return}return clearTimeout(S.current),S.current=setTimeout(()=>{A(1,p,w)},500),()=>clearTimeout(S.current)},[p,w]);let A=async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:p,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:w;g(!0);try{let{licences:a,total:l}=await h(e,3,t,s);r(a),x(l),_(e),v(!0)}catch(e){console.error("Error fetching licences:",e)}g(!1)};(0,l.useEffect)(()=>{j&&p.trim()&&A(b,p,w)},[b]);let E=e=>{"survey_status"!==e&&k(t=>
1({field:e,direction:t.field===e&&"asc"===t.direction?"desc":"asc"}))},C=[{key:"id",label:e("No")},{key:"licensenumber",label:e("licence_number")},{key:"title",label:e("survey/study_title_header")},{key:"agency",label:e("implementing_entity")},{key:"implementation_period_from",label:e("Licence_Period_From")},{key:"implementation_period_to",label:e("Licence_Period_To")},{key:"survey_status",label:e("Licence_Status")}],L={"In Progress":"in_progress",Expired:"expired"};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(n(),{children:(0,a.jsx)("title",{children:e("verify_licence")})}),(0,a.jsx)("section",{className:"min-h-screen flex flex-col items-center py-4 px-4 ".concat("ar"===t?"direction-rtl":""),children:(0,a.jsxs)("div",{className:"w-full max-w-6xl",children:[(0,a.jsx)("div",{className:"flex mb-6  justify-center md:justify-start",children:(0,a.jsxs)("div",{className:"flex items-center gap-2 w-full",children:[(0,a.jsx)("div",{className:"h-9 md:h-10    w-full    max-w-sm sm:max-w-md md:max-w-lg lg:max-w-xl    bg-white border-2 border-[#0056A3] rounded-lg shadow-sm    px-4 flex items-center",children:(0,a.jsx)("input",{type:"text",value:p,onChange:e=>f(e.target.value),placeholder:"".concat(e("licence_number")," / ").concat(e("survey/study_title")," / ").concat(e("implementing_entity")),className:"w-full h-full bg-transparent outline-none text-[14px] text-gray-700 placeholder:text-gray-500 text-start"})}),(0,a.jsx)("button",{type:"button",onClick:()=>{p.trim()&&A(1,p,w)},className:"w-9 h-9 md:w-10 md:h-10 rounded-lg bg-[#009C8C] hover:bg-[#007a6f] grid place-items-center shadow-md transition",children:(0,a.jsx)(c.A,{size:16,className:"text-white"})})]})}),j&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"bg-white border border-gray-200 rounded-lg shadow-sm overflow-x-auto",children:y?(0,a.jsx)("div",{className:"flex justify-center items-center py-12 text-gray-500",children:e("Loading")}):0===s.length?(0,a.jsx)("div",{className:"flex justify-center items-center py-12 text-gray-500",children:e("No Data Found")}):(0,a.jsxs)("table",{className:"min-w-full text-sm text-gray-700 border-collapse",children:[(0,a.jsx)("thead",{children:(0,a.jsx)("tr",{className:"bg-[#e5e5e5] text-gray-800 font-semibold border-b border-gray-200",children:C.map(e=>{let{key:t,label:s}=e;return(0,a.jsx)("th",{onClick:()=>E(t),className:"px-4 py-3 text-left cursor-pointer select-none whitespace-nowrap",children:(0,a.jsxs)("div",{className:"flex items-center gap-1",children:[s,w.field===t?"asc"===w.direction?(0,a.jsx)(o,{size:14}):(0,a.jsx)(u,{size:14}):null]})},t)})})}),(0,a.jsx)("tbody",{children:s.map((t,s)=>(0,a.jsxs)("tr",{className:"".concat(s%2==0?"bg-white":"bg-[#f4f4f4]"," hover:bg-gray-200 transition"),children:[(0,a.jsx)("td",{className:"px-4 py-3",children:(b-1)*3+(s+1)}),(0,a.jsx)("td",{className:"px-4 py-3",children:t.licensenumber}),(0,a.jsx)("td",{className:"px-4 py-3",children:t.title}),(0,a.jsx)("td",{className:"px-4 py-3",children:t.agency}),(0,a.jsx)("td",{className:"px-4 py-3",children:t.implementation_period_from?new Date(t.implementation_period_from).toLocaleDateString():"-"}),(0,a.jsx)("td",{className:"px-4 py-3",children:t.implementation_period_to?new Date(t.implementation_period_to).toLocaleDateString():"-"}),(0,a.jsx)("td",{className:"px-4 py-3",children:t.survey_status?e(L[t.survey_status]||t.survey_status):"-"})]},t.id))})]})}),N>1&&s.length>0&&(0,a.jsxs)("div",{id:"pagination",className:"pagination d-flex justify-content-center flex-wrap mt-6 gap-2",children:[b>1&&(0,a.jsx)("button",{className:"page-button",onClick:()=>_(b-1),children:(0,a.jsx)("i",{className:"fas fa-caret-left text-white"})}),(()=>{let e=[];
1if(N<=5)for(let t=1;t<=N;t++)e.push(t);else{let t=Math.max(1,b-2),s=Math.min(N,b+2);t>2&&e.push(1,"...");for(let a=t;a<=s;a++)e.push(a);s<N-1&&e.push("...",N)}return e.map((e,t)=>"..."===e?(0,a.jsx)("span",{className:"page-dots text-gray-500",children:"..."},"dots-".concat(t)):(0,a.jsx)("button",{className:"page-button ".concat(e===b?"active":""),onClick:()=>_(e),children:e},e))})(),b<N&&(0,a.jsx)("button",{className:"page-button",onClick:()=>_(b+1),children:(0,a.jsx)("i",{className:"fas fa-caret-right text-white"})})]})]})]})})]})}},6049:(e,t,s)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/Licenses",function(){return s(4406)}])}},e=>{var t=t=>e(e.s=t);e.O(0,[5422,636,6593,8792],()=>t(6049)),_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.