import{T as l,c as r,a as n,b as e,w as d,u as o,d as c,v as u,g as _,o as m}from"./app-13978987.js";import{_ as p}from"./PageHeader-8c638686.js";import{_ as b}from"./AdminLayout-bd13ff9d.js";import"./dropdown-45d66330.js";const f={class:"container p-4 sm:p-6"},h={class:"mx-auto max-w-7xl"},y={class:"card card-body"},v={class:"mb-4"},x=e("label",{class:"label mb-1",for:"module"}," Upload Module ",-1),k={class:"mb-6"},g=e("label",{class:"label mb-1",for:"purchase_key"}," Purchase Key ",-1),w={class:"flex items-center justify-between"},M=["disabled"],B=_({layout:b}),N=Object.assign(B,{__name:"Module",setup(S){const s=l({module:null,purchase_key:""}),i=()=>{s.post(route("admin.module-developer-settings.store"),{preserveState:!1,preserveScroll:!0})};return(U,t)=>(m(),r("main",f,[n(p),e("div",h,[e("div",y,[e("form",{onSubmit:d(i,["prevent"])},[e("div",v,[x,e("input",{class:"input",id:"module",type:"file",accept:".zip",onChange:t[0]||(t[0]=a=>o(s).module=a.target.files[0]),required:""},null,32)]),e("div",k,[g,c(e("input",{class:"input",id:"purchase_key",type:"text","onUpdate:modelValue":t[1]||(t[1]=a=>o(s).purchase_key=a),required:""},null,512),[[u,o(s).purchase_key]])]),e("div",w,[e("button",{class:"btn btn-primary",disabled:o(s).processing,type:"submit"}," Upload ",8,M)])],32)])])]))}});export{N as default};
