import{T as c,c as d,o as E,a as s,t as n,x as u,i as A,l as _,A as m,u as e,v as S,b as C}from"./app-Do7K7VDV.js";import{_ as b}from"./AdminLayout-DeT_GLTC.js";import{_ as I}from"./SpinnerBtn-C-rqKjUt.js";import"./AssetModal-C18ToIEK.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./InputFieldError-0BmYlL24.js";import"./ToastrContainer-CtYDvNPN.js";const T={class:"space-y-6"},W={class:"grid grid-cols-1 lg:grid-cols-12"},D={class:"lg:col-span-5"},K={class:"lg:col-span-7"},v={class:"card"},g={class:"card-body"},N={class:"mb-2"},U={class:"label"},Y={value:"public"},f={value:"wasabi"},h={key:0},O={class:"mb-2"},y={class:"label"},F={class:"mb-2"},L={class:"label"},R={class:"mb-2"},M={class:"label"},B={class:"mb-2"},V={class:"label"},G={class:"mb-2"},P={class:"label"},k={class:"mb-2"},w={class:""},$={layout:b},X=Object.assign($,{__name:"Storage",props:["id","FILESYSTEM_DISK","WAS_ACCESS_KEY_ID","SECRET_ACCESS_KEY","WAS_DEFAULT_REGION","WAS_BUCKET","WAS_ENDPOINT","segments","buttons"],setup(r){const i=r,t=c({FILESYSTEM_DISK:i.FILESYSTEM_DISK,WAS_ACCESS_KEY_ID:i.WAS_ACCESS_KEY_ID,SECRET_ACCESS_KEY:i.SECRET_ACCESS_KEY,WAS_DEFAULT_REGION:i.WAS_DEFAULT_REGION,WAS_BUCKET:i.WAS_BUCKET,WAS_ENDPOINT:i.WAS_ENDPOINT});function p(){t.put(route("admin.developer-settings.update",i.id))}return(a,o)=>(E(),d("div",T,[s("div",W,[s("div",D,[s("strong",null,n(a.trans("Application Storage Settings")),1),s("p",null,n(a.trans("Edit you storage settings for store uploaded files")),1)]),s("div",K,[s("form",{onSubmit:u(p,["prevent"])},[s("div",v,[s("div",g,[s("div",N,[s("label",U,n(a.trans("Storage Upload Mode")),1),_(s("select",{class:"select","onUpdate:modelValue":o[0]||(o[0]=l=>e(t).FILESYSTEM_DISK=l),name:"FILESYSTEM_DISK",id:"disk-method"},[s("option",Y,n(a.trans("Own server (Uploads folder)")),1),s("option",f,n(a.trans("Wasabi")),1)],512),[[m,e(t).FILESYSTEM_DISK]])]),e(t).FILESYSTEM_DISK!="public"?(E(),d("div",h,[s("div",O,[s("label",y,n(a.trans("Wasabi Access Key Id")),1),_(s("input",{type:"text",name:"WAS_ACCESS_KEY_ID",class:"input","onUpdate:modelValue":o[1]||(o[1]=l=>e(t).WAS_ACCESS_KEY_ID=l)},null,512),[[S,e(t).WAS_ACCESS_KEY_ID]])]),s("div",F,[s("label",L,n(a.trans("Wasabi Secret Access Key")),1),_(s("input",{type:"text",name:"SECRET_ACCESS_KEY",class:"input","onUpdate:modelValue":o[2]||(o[2]=l=>e(t).SECRET_ACCESS_KEY=l)},null,512),[[S,e(t).SECRET_ACCESS_KEY]])]),s("div",R,[s("label",M,n(a.trans("Wasabi Default Region")),1),_(s("input",{type:"text",name:"WAS_DEFAULT_REGION",class:"input","onUpdate:modelValue":o[3]||(o[3]=l=>e(t).WAS_DEFAULT_REGION=l)},null,512),[[S,e(t).WAS_DEFAULT_REGION]])]),s("div",B,[s("label",V,n(a.trans("Wasabi Bucket Name")),1),_(s("input",{type:"text",name:"WAS_BUCKET",class:"input","onUpdate:modelValue":o[4]||(o[4]=l=>e(t).WAS_BUCKET=l)},null,512),[[S,e(t).WAS_BUCKET]])]),s("div",G,[s("label",P,n(a.trans("Wasabi Endpoint")),1),_(s("input",{type:"text",name:"WAS_ENDPOINT",class:"input","onUpdate:modelValue":o[5]||(o[5]=l=>e(t).WAS_ENDPOINT=l)},null,512),[[S,e(t).WAS_ENDPOINT]])])])):A("",!0),s("div",k,[s("div",w,[C(I,{processing:e(t).processing,"btn-text":a.trans("Save Changes")},null,8,["processing","btn-text"])])])])])],32)])])]))}});export{X as default};
