PageSourceSearch

https://mofa.gov.qa/ResourcePackages/Mofa/assets/dist/e-services-listing.6cce8394425b45b6848f.js

js mofa.gov.qa collected 2026-10-01 10:14:06 UTC 10,834 bytes, 2 lines download raw bytes

1(window.webpackJsonp=window.webpackJsonp||[]).push([[10],{106:function(module,__webpack_exports__,__webpack_require__){"use strict";function normalizeComponent(scriptExports,render,staticRenderFns,functionalTemplate,injectStyles,scopeId,moduleIdentifier,shadowMode){var hook,options="function"==typeof scriptExports?scriptExports.options:scriptExports;if(render&&(options.render=render,options.staticRenderFns=staticRenderFns,options._compiled=!0),functionalTemplate&&(options.functional=!0),scopeId&&(options._scopeId="data-v-"+scopeId),moduleIdentifier?(hook=function(context){(context=context||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(context=__VUE_SSR_CONTEXT__),injectStyles&&injectStyles.call(this,context),context&&context._registeredComponents&&context._registeredComponents.add(moduleIdentifier)},options._ssrRegister=hook):injectStyles&&(hook=shadowMode?function(){injectStyles.call(this,(options.functional?this.parent:this).$root.$options.shadowRoot)}:injectStyles),hook)if(options.functional){options._injectStyles=hook;var originalRender=options.render;options.render=function(h,context){return hook.call(context),originalRender(h,context)}}else{var existing=options.beforeCreate;options.beforeCreate=existing?[].concat(existing,hook):[hook]}return{exports:scriptExports,options:options}}__webpack_require__.d(__webpack_exports__,"a",(function(){return normalizeComponent}))},107:function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"a",(function(){return WidgetInitializer}));var widget_init=__webpack_require__(1),ElementsEnumerator=function(elementsClass){this.elementsClass=elementsClass};ElementsEnumerator.prototype.getElements=function(){for(var elements=document.getElementsByClassName(this.elementsClass),elementIdPrefix=this.elementsClass+"-",i=0;i<elements.length;i++){elements[i].setAttribute("id",elementIdPrefix+(i+1))}return elements};var WidgetInitializer=function(elementsClass){this.elementsClass=elementsClass};function innerInitialization(initializationCallback){for(var notInitializedElements=new ElementsEnumerator(this.elementsClass).getElements(),i=0;i<notInitializedElements.length;i++){var element=notInitializedElements[i];if(element.hasAttribute("data-vue-initialized"))return;var newElement=initializationCallback(element);newElement&&(element=newElement),element.setAttribute("data-vue-initialized","")}}WidgetInitializer.prototype.initialize=function(initializationCallback){var that=this;Object(widget_init.a)((function(){return innerInitialization.call(that,initializationCallback)}))}},140:function(module,__webpack_exports__,__webpack_require__){"use strict";var render=function(){var _vm=this,_h=_vm.$createElement,_c=_vm._self._c||_h;return _c("nav",{attrs:{role:"navigation","aria-label":"Pagination Navigation"}},[_c("ul",{staticClass:"eservices-pagination",class:_vm.paginationClass},[_c("li",{staticClass:"eservices-pagination-item",class:{disabled:1===_vm.currentPage}},[_c("button",{staticClass:"eservices-pagination-button",attrs:{"aria-label":1===_vm.currentPage?"Previous disabled":"Previous"},on:{click:_vm.prevPage}},[_c("svg",{staticClass:"icon icon-arrow-left",attrs:{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"}},[_c("path",{attrs:{d:"M14.0117 14.5938C14.2617 14.8438 14.2617 15.2812 14.0117 15.5312C13.7305 15.7812 13.3242 15.7812 13.0742 15.5312L10.0117 12.4688C9.73047 12.2188 9.73047 11.7812 10.0117 11.5312L13.0742 8.46875C13.3242 8.21875 13.7305 8.21875 14.0117 8.46875C14.2617 8.71875 14.2617 9.15625 14.0117 9.40625L11.418 12L14.0117 14.5938Z"}})])])]),_vm._v(" "),_vm.lastSetOfPages&&!_vm.hasOnlyOneSetOfPages?_c("li",{staticClass:"eservices-pagination-item"},[_c("button",{staticClass:"eservices-pagination-button eservices-pagination-button-jump",on:{click:_vm.changeSetOfPages}},[_vm._v("\n             ...\n         ")])]):_vm._e(),_vm._v(" "),_vm._l(_vm.currentSetOfPages,(function(item){return _c("li",{key:item,staticClass:"eservices-pagination-item eservices-pagination-item--btn"},[_c("button",{staticClass:"eservices-pagination-button",class:{active:_vm.currentPage===item},attrs:{"aria-label":_vm.currentPage===item?"Current Page, Page "+item:"Page "+item},on:{click:function($event){return _vm.changePage(item)}}},[_vm._v(_vm._s(item))])])})),_vm._v(" "),_vm.lastSetOfPages?_vm._e():_c("li",{staticClass:"eservices-pagination-item"},[_c("button",{staticClass:"eservices-pagination-button eservices-pagination-button-jump",on:{click:_vm.changeSetOfPages}},[_vm._v("\n             ...\n         ")])]),_vm._v(" "),_c("li",{staticClass:"eservices-pagination-item",class:{disabled:_vm.currentPage===_vm.totalPages}},[_c("button",{staticClass:"eservices-pagination-button",attrs:{"aria-label":_vm.currentPage===_vm.totalPages?"Next disabled":"Next"},on:{click:_vm.nextPage}},[_c("svg",{staticClass:"icon icon-arrow-right",attrs:{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"}},[_c("path",{attrs:{d:"M9.98828 9.40625C9.73828 9.15625 9.73828 8.71875 9.98828 8.46875C10.2695 8.21875 10.6758 8.21875 10.9258 8.46875L13.9883 11.5312C14.2695 11.7812 14.2695 12.2188 13.9883 12.4688L10.9258 15.5312C10.6758 15.7812 10.2695 15.7812 9.98828 15.5312C9.73828 15.2812 9.73828 14.8438 9.98828 14.5938L12.582 12L9.98828 9.40625Z"}})])])])],2)])};render._withStripped=!0;var components_Paginationvue_type_script_lang_js_={name:"Pagination",props:{cssSuffix:{type:String,default:"primary"},pageCount:{type:Number,default:0},perPage:{type:Number,default:10},total:{type:Number,default:0},currentPage:{type:Number,default:1}},computed:{paginationClass(){return"pagination-"+this.cssSuffix},totalPages(){return this.pageCount>0?this.pageCount:this.total>0?Math.ceil(this.total/this.perPage):1},pagesToDisplay(){return this.totalPages>0&&this.totalPages<this.defaultPagesToDisplay?this.totalPages:this.defaultPagesToDisplay},lastSetOfPages(){return this.currentSetOfPages.includes(this.totalPages)},hasOnlyOneSetOfPages(){return 1===this.slicePagesIntoPageSets.length},currentSetOfPages(){return this.slicePagesIntoPageSets.filter(ps=>ps.includes(this.currentPage)).flat()},slicePagesIntoPageSets(){const pageSetsResults=[],pageSetSize=this.pagesToDisplay;for(let i=1;i<=this.totalPages;i+=pageSetSize){const pageSet=[];for(let j=i;j<=Math.min(i+pageSetSize-1,this.totalPages);j++)pageSet.push(j);pageSetsResults.push(pageSet)}return pageSetsResults}},data:()=>({defaultPagesToDisplay:3}),methods:{changePage(item){this.currentPage=item,this.$emit("page-changed",item),this.scrollToTop()},nextPage(){this.currentPage<this.totalPages&&(this.currentPage=this.currentPage+1,this.$emit("page-changed",this.currentPage),this.scrollToTop())},prevPage(){this.currentPage>1&&(this.currentPage=this.currentPage-1,this.$emit("page-changed",this.currentPage),this.scrollToTop())},changeSetOfPages(){this.lastSetOfPages?this.changePage(this.currentSetOfPages[0]-1):this.changePage(this.currentSetOfPages[this.currentSetOfPages.length-1]+1),this.scrollToTop()},scrollToTop(){window.scrollTo({top:0,behavior:"smooth"})}},watch:{perPage(){this.currentPage=1,this.$emit("page-changed",1)},total(){this.currentPage=1,this.$emit("page-changed",1)}}},componentNormalizer=__webpack_require__(106),component=Object(componentNormalizer.a)(components_Paginationvue_type_script_lang_js_,render,[],!1,null,null,null);component.options.__file="ResourcePackages/Mofa/assets/src/js/components/Pagination.vue";__webpack_exports__.a=component.exports},158:function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__);var _functions_widget_initializer__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(107),_functions_constants__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(0),_functions_config_utils__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(8),_components_Pagination__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(140),widgetInitializer=new _functions_widget_initializer__WEBPACK_IMPORTED_MODULE_0__.a(_functions_constants__WEBPACK_IMPORTED_MODULE_1__.a.COMPONENTS.E_SERVICES_LISTING);function initEServicesListingApp(element){var config=_functions_config_utils__WEBPACK_IMPORTED_MODULE_2__.a.getConfigFor(element);
1return new Vue({el:"#"+element.id,data:{allEservices:config.viewModels,categoriesInUse:config.categoriesInUse,searchInput:"",submittedSearchInput:"",selectedCategories:[],elementId:element.id,currentPage:1,itemsPerPage:config.itemsPerPage,listDisplayMode:config.displayMode,isMenuOpen:!1},mounted(){GlobalApp.globalClickHandlers.push(this.closeMenu)},computed:{eServicesFitlteredByCategories:function(){return this.currentPage=1,0===this.selectedCategories.length?this.allEservices:this.allEservices.filter(e=>e.Categories.some(c=>this.selectedCategories.some(x=>x.Title===c)))},filteredEservices:function(){return this.submittedSearchInput?this.eServicesFitlteredByCategories.filter(e=>e.Title.toLowerCase().includes(this.submittedSearchInput.toLowerCase())):this.eServicesFitlteredByCategories},pagesCount:function(){return Math.ceil(this.itemCount/this.itemsPerPage)},itemCount:function(){return this.filteredEservices.length},pagedEservices:function(){if(this.displayPagination){if(!this.filteredEservices||0===this.filteredEservices.length)return[];let maxItem=this.currentPage*this.itemsPerPage,minItem=maxItem-this.itemsPerPage;return this.filteredEservices.slice(minItem,maxItem)}return this.filteredEservices},displayPagination:function(){return"Paging"===this.listDisplayMode&&this.filteredEservices.length>this.itemsPerPage},noCacheSuffix:()=>(new Date).getTime()},methods:{search:function(){this.currentPage=1,this.submittedSearchInput=this.searchInput},clearSearch:function(){this.currentPage=1,this.submittedSearchInput="",this.searchInput=""},isCategoryChecked(category){return this.selectedCategories.includes(category)},removeCategoryFilter:function(category){const index=this.selectedCategories.indexOf(category);-1!==index&&this.selectedCategories.splice(index,1)},pageChanged:function(page){this.currentPage=page},toggleMenu:function(e){this.isMenuOpen=!this.isMenuOpen},closeMenu:function(e){this.$refs.serviceTypeMenu.contains(e.target)||(this.isMenuOpen=!1)},toggleCheckbox(index){const category=this.categoriesInUse[index];this.selectedCategories.includes(category)?this.selectedCategories=this.selectedCategories.splice(index,1):this.selectedCategories.push(category)}},components:{Pagination:_components_Pagination__WEBPACK_IMPORTED_MODULE_3__.a}}).$el}GlobalApp.registerInitializationHandler(_functions_constants__WEBPACK_IMPORTED_MODULE_1__.a.COMPONENTS.E_SERVICES_LISTING,(function(){widgetInitializer.initialize(initEServicesListingApp)}))}}]);
2//# sourceMappingURL=e-services-listing.6cce8394425b45b6848f.js.map

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.