import i from"./TopBar.c92e4bb0.js";import m from"./Container.f87d9f62.js";import a from"./Content.e22a1fd6.js";import p from"./Page.3927bdbf.js";import s from"./PageHeader.a5f457a5.js";import n from"./PageHeaderTitle.3ed783af.js";import l from"./PageBody.dec1fae1.js";import f from"./Button.f17dffc9.js";import u from"./List.d5d221b1.js";import c from"./ListItem.ee1e88fb.js";import d from"./StatusBubble.4f1d8322.js";import _ from"./NotificationBadge.b6fae3d5.js";import g from"./MainLayout.17290af6.js";import b from"./IconBox.e6c961ac.js";import v from"./IconGlobe.07030b80.js";import h from"./IconStorage.ef2b2e41.js";import y from"./Modal.a59fc373.js";import $ from"./ModalContainer.51de3ea9.js";import x from"./FormInput.7debc7c5.js";import F from"./FormSelect.6e35ae7d.js";import I from"./FormActions.83ccca91.js";import{n as P}from"./plugin-vue2_normalizer.000ba15c.js";import"./TopBar.27b84f08.js";import"./Dropdown.d1060583.js";import"./DropdownList.02c48c2f.js";import"./DropdownListItem.ac31464c.js";import"./IconMoon.ade3e41b.js";import"./IconSun.8809e5d7.js";import"./IconSearch.27dac870.js";import"./IconButton.eadc8d3d.js";import"./Breadcrumbs.d39e2491.js";import"./BreadcrumbsItem.da3f8155.js";import"./TopBarTabBarContainer.3bdb2bb3.js";import"./TabBar.c1d45ed5.js";import"./TabBarItem.e9886f0a.js";import"./Confirm.888708f1.js";import"./Notification.d432029f.js";import"./IconDanger.2f6e115d.js";import"./IconWarning.ca92fb65.js";import"./IconSuccess.09b85716.js";import"./IconInfo.ad7662f9.js";import"./SearchPalette.282fdde5.js";import"./notification.db2f2ae7.js";import"./app.79e1f42d.js";import"./IconClose.edb7c8fd.js";import"./Form.2cdcadd9.js";import"./FormGroup.efd02a6a.js";import"./Label.9d0d3ee0.js";import"./ErrorText.b141a597.js";import"./HelperText.14a7ed0b.js";import"./IconClipboard.8551be1b.js";import"./IconKey.455a255f.js";const C={metaInfo(){return{title:`${this.__("Profile")}`}},layout:g,components:{TopBar:i,Container:m,Content:a,Page:p,PageHeader:s,PageHeaderTitle:n,PageBody:l,Button:f,List:u,ListItem:c,StatusBubble:d,NotificationBadge:_,IconBox:b,IconGlobe:v,IconStorage:h,Modal:y,ModalContainer:$,FormInput:x,FormSelect:F,FormActions:I},props:{profile:Object,countries:Object},data(){return{form:{name:this.profile.name,email:this.profile.email,language:this.profile.language,address:this.profile.address,country:this.profile.country,zip:this.profile.zip,city:this.profile.city},breadcrumbs:[{title:this.$page.props.settings.name,to:"/"},{title:this.__("Profile"),to:this.route("profile.index")}]}},methods:{submit(){this.$inertia.patch(this.route("profile.update"),this.form,{onStart:()=>this.sending=!0,onFinish:()=>this.sending=!1})}}};var B=function(){var r=this,o=r._self._c;return o("Page",[o("TopBar",{attrs:{breadcrumbs:r.breadcrumbs}}),o("Content",[o("Container",[o("PageBody",[o("form",{staticClass:"space-y-4",on:{submit:function(t){return t.preventDefault(),r.submit.apply(null,arguments)}}},[o("FormInput",{attrs:{label:r.__("Name"),errors:r.$page.props.errors.name},model:{value:r.form.name,callback:function(t){r.$set(r.form,"name",t)},expression:"form.name"}}),o("FormInput",{attrs:{label:r.__("Email"),type:"email",errors:r.$page.props.errors.email},model:{value:r.form.email,callback:function(t){r.$set(r.form,"email",t)},expression:"form.email"}}),o("FormSelect",{attrs:{label:r.__("Language"),errors:r.$page.props.errors.language},model:{value:r.form.language,callback:function(t){r.$set(r.form,"language",t)},expression:"form.language"}},[o("option",{attrs:{value:"en"}},[r._v("English")]),o("option",{attrs:{value:"nl"}},[r._v("Dutch")]),o("option",{attrs:{value:"fr"}},[r._v("French")]),o("option",{attrs:{value:"da"}},[r._v("Danish")]),o("option",{attrs:{value:"nb-no"}},[r._v("Norwegian")]),o("option",{attrs:{value:"pt"}},[r._v("Portuguese")])]),o("FormInput",{attrs:{label:r.__("Address"),type:"text",errors:r.$page.props.errors.address},model:{value:r.form.address,callback:function(t){r.$set(r.form,"address",t)},expression:"form.address"}}),o("FormSelect",{attrs:{label:r.__("Country"),errors:r.$page.props.errors.country},model:{value:r.form.country,callback:function(t){r.$set(r.form,"country",t)},expression:"form.country"}},r._l(r.countries,function(t,e){return o("option",{domProps:{value:e,textContent:r._s(t)}})}),0),o("FormInput",{attrs:{label:r.__("ZIP"),type:"text",errors:r.$page.props.errors.zip},model:{value:r.form.zip,callback:function(t){r.$set(r.form,"zip",t)},expression:"form.zip"}}),o("FormInput",{attrs:{label:r.__("City"),type:"text",errors:r.$page.props.errors.city},model:{value:r.form.city,callback:function(t){r.$set(r.form,"city",t)},expression:"form.city"}}),o("FormActions",[o("Button",[r._v(r._s(r.__("Save")))])],1)],1)])],1)],1)],1)},k=[],z=P(C,B,k,!1,null,null,null,null);const zr=z.exports;export{zr as default};
