����JFIF��x�x����'
Server IP : 66.29.137.217 / Your IP : 3.21.126.72 Web Server : LiteSpeed System : Linux premium294.web-hosting.com 4.18.0-513.11.1.lve.el8.x86_64 #1 SMP Thu Jan 18 16:21:02 UTC 2024 x86_64 User : gltevjme ( 1095) PHP Version : 7.0.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/gltevjme/cbt.gltechlimited.com/public/js/ |
Upload File : |
"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[565],{15422:(t,e,s)=>{s.d(e,{Z:()=>o});const r={props:["on"]};const o=(0,s(51900).Z)(r,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",[s("transition",{attrs:{"leave-active-class":"transition ease-in duration-1000","leave-class":"opacity-100","leave-to-class":"opacity-0"}},[s("div",{directives:[{name:"show",rawName:"v-show",value:t.on,expression:"on"}],staticClass:"text-gray-600"},[t._t("default")],2)])],1)}),[],!1,null,null,null).exports},93046:(t,e,s)=>{s.d(e,{Z:()=>o});const r={props:{type:{type:String,default:"submit"}}};const o=(0,s(51900).Z)(r,(function(){var t=this,e=t.$createElement;return(t._self._c||e)("button",{staticClass:"inline-flex items-center px-4 py-2 bg-gray-800 border border-transparent rounded-sm font-semibold text-xs text-white uppercase tracking-widest hover:bg-gray-700 active:bg-gray-900 focus:outline-none focus:border-gray-900 focus:shadow-outline-gray transition ease-in-out duration-150",attrs:{type:t.type}},[t._t("default")],2)}),[],!1,null,null,null).exports},48243:(t,e,s)=>{s.d(e,{Z:()=>o});const r={components:{ArcSectionTitle:s(34073).Z},computed:{hasActions:function(){return!!this.$slots.actions}}};const o=(0,s(51900).Z)(r,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"md:grid md:grid-cols-3 md:gap-6"},[s("arc-section-title",{scopedSlots:t._u([{key:"title",fn:function(){return[t._t("title")]},proxy:!0},{key:"description",fn:function(){return[t._t("description")]},proxy:!0}],null,!0)}),t._v(" "),s("div",{staticClass:"mt-5 md:mt-0 md:col-span-2"},[s("form",{on:{submit:function(e){return e.preventDefault(),t.$emit("submitted")}}},[s("div",{staticClass:"shadow sm:rounded-sm"},[s("div",{staticClass:"px-4 py-5 bg-white sm:p-6"},[s("div",{staticClass:"grid grid-cols-6 gap-6"},[t._t("form")],2)]),t._v(" "),t.hasActions?s("div",{staticClass:"flex items-center justify-end px-4 py-3 bg-gray-50 text-right sm:px-6"},[t._t("actions")],2):t._e()])])])],1)}),[],!1,null,null,null).exports},6985:(t,e,s)=>{s.d(e,{Z:()=>o});const r={props:["value"],methods:{focus:function(){this.$refs.input.focus()}}};const o=(0,s(51900).Z)(r,(function(){var t=this,e=t.$createElement;return(t._self._c||e)("input",{ref:"input",staticClass:"text-sm border-gray-300 focus:border-indigo-300 focus:ring focus:ring-indigo-200 focus:ring-opacity-50 rounded-sm shadow-sm",domProps:{value:t.value},on:{input:function(e){return t.$emit("input",e.target.value)}}})}),[],!1,null,null,null).exports},26216:(t,e,s)=>{s.d(e,{Z:()=>o});const r={props:["message"]};const o=(0,s(51900).Z)(r,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{directives:[{name:"show",rawName:"v-show",value:t.message,expression:"message"}]},[s("p",{staticClass:"text-red-600 text-sm"},[t._v("\n "+t._s(t.message)+"\n ")])])}),[],!1,null,null,null).exports},39283:(t,e,s)=>{s.d(e,{Z:()=>o});const r={props:["value"]};const o=(0,s(51900).Z)(r,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("label",{staticClass:"block font-medium text-gray-700 text-sm mb-1"},[t.value?s("span",[t._v(t._s(t.value))]):s("span",[t._t("default")],2)])}),[],!1,null,null,null).exports},9556:(t,e,s)=>{s.d(e,{Z:()=>o});const r={props:{type:{type:String,default:"button"}}};const o=(0,s(51900).Z)(r,(function(){var t=this,e=t.$createElement;return(t._self._c||e)("button",{staticClass:"inline-flex items-center px-4 py-2 bg-white border border-gray-300 rounded-sm font-semibold text-xs text-gray-700 uppercase tracking-widest shadow-sm hover:text-gray-500 focus:outline-none focus:border-blue-300 focus:shadow-outline-blue active:text-gray-800 active:bg-gray-50 transition ease-in-out duration-150",attrs:{type:t.type}},[t._t("default")],2)}),[],!1,null,null,null).exports},34073:(t,e,s)=>{s.d(e,{Z:()=>r});const r=(0,s(51900).Z)({},(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"md:col-span-1"},[s("div",{staticClass:"px-4 sm:px-0"},[s("h3",{staticClass:"text-base font-medium text-gray-900"},[t._t("title")],2),t._v(" "),s("p",{staticClass:"mt-1 text-sm text-gray-600"},[t._t("description")],2)])])}),[],!1,null,null,null).exports},40565:(t,e,s)=>{s.r(e),s.d(e,{default:()=>m});var r=s(93046),o=s(48243),a=s(6985),n=s(26216),i=s(39283),l=s(15422),c=s(9556);const u={components:{ArcActionMessage:l.Z,ArcButton:r.Z,ArcFormSection:o.Z,ArcInput:a.Z,ArcInputError:n.Z,ArcLabel:i.Z,ArcSecondaryButton:c.Z},props:["user"],data:function(){return{form:this.$inertia.form({_method:"PUT",first_name:this.user.first_name,last_name:this.user.last_name,email:this.user.email,photo:null}),photoPreview:null}},methods:{updateProfileInformation:function(){this.$refs.photo&&(this.form.photo=this.$refs.photo.files[0]),this.form.post(route("user-profile-information.update"),{errorBag:"updateProfileInformation",preserveScroll:!0})},selectNewPhoto:function(){this.$refs.photo.click()},updatePhotoPreview:function(){var t=this,e=new FileReader;e.onload=function(e){t.photoPreview=e.target.result},e.readAsDataURL(this.$refs.photo.files[0])},deletePhoto:function(){var t=this;this.$inertia.delete(route("current-user-photo.destroy"),{preserveScroll:!0,onSuccess:function(){return t.photoPreview=null}})}}};const m=(0,s(51900).Z)(u,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("arc-form-section",{on:{submitted:t.updateProfileInformation},scopedSlots:t._u([{key:"title",fn:function(){return[t._v("\n "+t._s(t.__("Profile Information"))+"\n ")]},proxy:!0},{key:"form",fn:function(){return[t.$page.props.jetstream.managesProfilePhotos?s("div",{staticClass:"col-span-6 sm:col-span-4"},[s("input",{ref:"photo",staticClass:"hidden",attrs:{type:"file"},on:{change:t.updatePhotoPreview}}),t._v(" "),s("arc-label",{attrs:{for:"photo",value:t.__("Photo")}}),t._v(" "),s("div",{directives:[{name:"show",rawName:"v-show",value:!t.photoPreview,expression:"! photoPreview"}],staticClass:"mt-2"},[s("img",{staticClass:"rounded-full h-20 w-20 object-cover",attrs:{src:t.user.profile_photo_url,alt:t.user.name}})]),t._v(" "),s("div",{directives:[{name:"show",rawName:"v-show",value:t.photoPreview,expression:"photoPreview"}],staticClass:"mt-2"},[s("span",{staticClass:"block rounded-full w-20 h-20",style:"background-size: cover; background-repeat: no-repeat; background-position: center center; background-image: url('"+t.photoPreview+"');"})]),t._v(" "),s("arc-secondary-button",{staticClass:"mt-2 ltr:mr-2 rtl:ml-2",attrs:{type:"button"},nativeOn:{click:function(e){return e.preventDefault(),t.selectNewPhoto(e)}}},[t._v("\n "+t._s(t.__("Select A New Photo"))+"\n ")]),t._v(" "),t.user.profile_photo_path?s("arc-secondary-button",{staticClass:"mt-2",attrs:{type:"button"},nativeOn:{click:function(e){return e.preventDefault(),t.deletePhoto(e)}}},[t._v("\n "+t._s(t.__("Remove Photo"))+"\n ")]):t._e(),t._v(" "),s("arc-input-error",{staticClass:"mt-2",attrs:{message:t.form.errors.photo}})],1):t._e(),t._v(" "),s("div",{staticClass:"col-span-6 sm:col-span-4"},[s("arc-label",{attrs:{for:"first_name",value:t.__("First Name")}}),t._v(" "),s("arc-input",{staticClass:"mt-1 block w-full",attrs:{id:"first_name",type:"text",autocomplete:"first_name"},model:{value:t.form.first_name,callback:function(e){t.$set(t.form,"first_name",e)},expression:"form.first_name"}}),t._v(" "),s("arc-input-error",{staticClass:"mt-2",attrs:{message:t.form.errors.first_name}})],1),t._v(" "),s("div",{staticClass:"col-span-6 sm:col-span-4"},[s("arc-label",{attrs:{for:"last_name",value:t.__("Last Name")}}),t._v(" "),s("arc-input",{staticClass:"mt-1 block w-full",attrs:{id:"last_name",type:"text",autocomplete:"last_name"},model:{value:t.form.last_name,callback:function(e){t.$set(t.form,"last_name",e)},expression:"form.last_name"}}),t._v(" "),s("arc-input-error",{staticClass:"mt-2",attrs:{message:t.form.errors.last_name}})],1),t._v(" "),s("div",{staticClass:"col-span-6 sm:col-span-4"},[s("arc-label",{attrs:{for:"email",value:t.__("Email")}}),t._v(" "),s("arc-input",{staticClass:"mt-1 block w-full",attrs:{id:"email",type:"email"},model:{value:t.form.email,callback:function(e){t.$set(t.form,"email",e)},expression:"form.email"}}),t._v(" "),s("arc-input-error",{staticClass:"mt-2",attrs:{message:t.form.errors.email}})],1)]},proxy:!0},{key:"actions",fn:function(){return[s("arc-action-message",{staticClass:"mr-3",attrs:{on:t.form.recentlySuccessful}},[t._v("\n "+t._s(t.__("Saved"))+".\n ")]),t._v(" "),s("arc-button",{class:{"opacity-25":t.form.processing},attrs:{disabled:t.form.processing}},[t._v("\n "+t._s(t.__("Save"))+"\n ")])]},proxy:!0}])})}),[],!1,null,null,null).exports}}]);