PageSourceSearch

https://admiral.pathao.com/js/chunk-c0ce.27cfb9d7.js

js pathao.com collected 2026-10-01 10:23:10 UTC 6,709 bytes, 2 lines download raw bytes

1(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-c0ce"],{"36c7":function(t,e,n){"use strict";n.d(e,"a",function(){return p});var r={name:"PtLoader",props:{container:{type:String,default:"",description:"Container that holds the loader, can be any css selector"},iconClass:{type:String,default:"fa-refresh",description:"Font awesome icon class, can be (fa-spinner/fa-refresh/fa-cog/fa-circle-o-notch), pass empty string to hide icon"},text:{type:String,default:""},textClass:{type:String,default:""}},data:function(){return{containerWidth:0,containerHeight:0}},computed:{getClasses:function(){return{"pt-loader":!0,"pt-loader-inline":!this.container,"pt-loader-full":"body"===this.container,"pt-loader-container":!!this.container&&"body"!==this.container}},getStyles:function(){return this.container&&"body"!==this.container&&(this.containerWidth||this.containerHeight)?{width:this.containerWidth+"px",height:this.containerHeight+"px"}:""}},mounted:function(){if(!this.container||"body"===this.container)return"";var t=document.querySelector(this.container);t&&(t.style.position="relative",this.containerWidth=t.clientWidth,this.containerHeight=t.clientHeight)},beforeDestroy:function(){if(!this.container||"body"===this.container)return"";var t=document.querySelector(this.container);t&&(t.style="")}};function s(t,e,n,r,s,o,i,a,c,l){"function"===typeof i&&(c=a,a=i,i=!1);const u="function"===typeof n?n.options:n;let d;if(t&&t.render&&(u.render=t.render,u.staticRenderFns=t.staticRenderFns,u._compiled=!0,s&&(u.functional=!0)),r&&(u._scopeId=r),o?(d=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),e&&e.call(this,c(t)),t&&t._registeredComponents&&t._registeredComponents.add(o)},u._ssrRegister=d):e&&(d=i?function(){e.call(this,l(this.$root.$options.shadowRoot))}:function(t){e.call(this,a(t))}),d)if(u.functional){const t=u.render;u.render=function(e,n){return d.call(n),t(e,n)}}else{const t=u.beforeCreate;u.beforeCreate=t?[].concat(t,d):[d]}return n}var o=r,i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{class:t.getClasses,style:t.getStyles},[t.text?n("span",{class:t.textClass},[t._v(t._s(t.text))]):t._e(),t._v(" "),t.iconClass?n("i",{staticClass:"fa fa-spin",class:t.iconClass}):t._e()])},a=[];i._withStripped=!0;var c=void 0,l=void 0,u=void 0,d=!1,p=s({render:i,staticRenderFns:a},c,o,l,d,u,void 0,void 0)},"4d77":function(t,e,n){"use strict";n.d(e,"c",function(){return o}),n.d(e,"d",function(){return i}),n.d(e,"a",function(){return a}),n.d(e,"b",function(){return c});var r=n("c93e"),s=n("2f62");const o=Object(r["a"])({},Object(s["d"])("auth",{currentUser:t=>t.currentUser}),Object(s["c"])("auth",["loggedIn"])),i=Object(s["b"])("auth",["logIn","logOut"]),a=Object(r["a"])({},Object(s["d"])("actAs",{isActingUser:t=>t.isActingUser})),c=Object(s["b"])("actAs",["actAs","stopAct"])},"9ab3":function(t,e,n){"use strict";var r=n("c080"),s=n("323e"),o=n.n(s),i=n("86b6");e["a"]={mounted(){const t=this;r["a"].interceptors.request.use(e=>{return t.runningApiCount||o.a.start(),t.runningApiCount++,e},t=>{return Promise.reject(t)}),r["a"].interceptors.response.use(e=>{return t.runningApiCount--,setTimeout(()=>{t.runningApiCount||t.$nextTick(()=>{o.a.done()})},300),e},e=>{return 401===e.response.status&&(o.a.done(),i["a"].dispatch("auth/logOut")),t.runningApiCount--,t.runningApiCount||t.$nextTick(()=>{o.a.done()}),Promise.reject(e)})},data(){return{runningApiCount:0}}}},b6e6:function(t,e,n){"use strict";n.r(e);var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("layout",[n("div",{staticClass:"w-full flex flex-col my-8"},[n("div",{staticClass:"unauth-form-header mb-2 semi-bold-font"},[t._v("Welcome to Pathao Admiral")]),n("div",{staticClass:"unauth-form-desc"},[t._v("Login to your account by filling the form below")])]),n("pt-form",{staticClass:"pb-8"},[n("pt-form-group",{attrs:{label:"Email","label-for":"username"}},[n("pt-form-input",{attrs:{id:"username",type:"text",placeholder:"Enter your Email/Phone Number here"},model:{value:t.username,callback:function(e){t.username=e},expression:"username"}})],1),n("pt-form-group",{attrs:{label:"Password","label-for":"password"}},[n("pt-form-input",{attrs:{id:"password",type:"password",placeholder:"Enter your password here"},model:{value:t.password,callback:function(e){t.password=e},expression:"password"}})],1),n("router-link",{staticClass:"mb-4 no-underline text-primary font-bold hover:text-primary-dark space-letters",attrs:{to:"/reset-password"}},[t._v("Forgot your password?")]),n("div",{staticClass:"flex lg:flex-row sm:flex-col justify-start"},[n("div",{staticClass:"sm:w-full lg:w-1/3"},[n("pt-button",{staticClass:"sm:w-full lg:w-32",attrs:{disabled:t.tryingToLogIn||t.disableLoginBtn,variant:"primary"},on:{action:t.tryToLogIn}},[t._v("\n          Sign In\n          "),n("pt-loader",{directives:[{name:"show",rawName:"v-show",value:t.tryingToLogIn,expression:"tryingToLogIn"}],attrs:{"icon-class":"fa-spinner"}})],1)],1),n("div",{staticClass:"flex justify-center items-center sm:mt-2 lg:mt-0 sm:w-full lg:w-2/3"},[n("router-link",{staticClass:"text-grey-dark font-bold no-underline hover:text-grey-darker space-letters",attrs:{to:"/signup"}},[t._v("New partner? Sign Up")])],1)])],1)],1)},s=[],o=n("c93e"),i=n("ba84"),a=n.n(i),c=n("2f62"),l=n("bd79"),u=n("9106"),d=n("36c7"),p=n("b37a"),h=n("9ab3"),f=n("4d77"),g=n("4023"),m=n.n(g),b=n("f121"),y={page:{title:"Log in",meta:[{name:"description",content:`Log in to ${m.a.title}`}]},components:{Layout:p["a"],PtForm:l["a"],PtFormGroup:l["c"],PtFormInput:l["d"],PtButton:u["a"],Pt
1Loader:d["a"]},mixins:[h["a"]],data(){return{username:null,password:null,tryingToLogIn:!1}},computed:Object(o["a"])({},Object(c["c"])({userRoles:"auth/roles"}),{disableLoginBtn(){return!this.username||!this.password}}),methods:Object(o["a"])({},f["d"],{tryToLogIn(){this.tryingToLogIn=!0,this.logIn({username:this.username,password:this.password}).then(()=>{this.tryingToLogIn=!1;let t="404";a()(this.userRoles,b["a"].USER_ROLES.PARTNER)>-1?t="captain-management-drivers":a()(this.userRoles,b["a"].USER_ROLES.SUPER_ADMIN)>-1?t="activity-log-list":a()(this.userRoles,b["a"].USER_ROLES.ADMIRAL_ADMIN)>-1&&(t="partner-list"),this.$router.push({name:t})}).catch(t=>{const e=t.response&&t.response.data&&t.response.data.message,n=e?t.response.data.message:"User credentials not correct";this.$notification.error(n),this.tryingToLogIn=!1})}})},v=y,_=n("2877"),w=Object(_["a"])(v,r,s,!1,null,null,null);w.options.__file="login.vue";e["default"]=w.exports}}]);
2//# sourceMappingURL=chunk-c0ce.27cfb9d7.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.