import{T as m,c as u,a as c,b as s,t as l,w as b,d as n,f as v,u as o,v as d,g,o as f}from"./app-13978987.js";import{_ as k}from"./AdminLayout-bd13ff9d.js";import{_ as C}from"./PageHeader-8c638686.js";import{_ as O}from"./SpinnerBtn-cb152833.js";import"./dropdown-45d66330.js";const h={class:"container p-4 sm:p-6"},D={class:"space-y-6"},E={class:"grid grid-cols-1 lg:grid-cols-12"},N={class:"lg:col-span-5"},S={class:"lg:col-span-7"},T={class:"card"},y={class:"card-body"},V={class:"mb-2"},I={class:"label mb-1"},K={value:!0},U={value:!1},q={class:"mb-2"},w={class:"label mb-1"},B={class:"mb-2"},M={class:"label mb-1"},$={class:"mb-2"},j={class:"label mb-1"},x={class:"mb-2"},A={class:"label mb-1"},P={class:"mt-3"},z=g({layout:k}),Q=Object.assign(z,{__name:"Cookie",props:["segments","id","COOKIE_CONSENT","cookieData"],setup(p){const r=p,t=m({COOKIE_CONSENT:r.COOKIE_CONSENT,cookieData:r.cookieData});function _(){t.put(route("admin.developer-settings.update",r.id))}return(e,a)=>(f(),u("main",h,[c(C,{title:e.trans("Cookie Settings")},null,8,["title"]),s("div",D,[s("div",E,[s("div",N,[s("strong",null,l(e.trans("Cookie Settings")),1),s("p",null,l(e.trans("Edit cookie settings")),1)]),s("div",S,[s("form",{onSubmit:b(_,["prevent"])},[s("div",T,[s("div",y,[s("div",V,[s("label",I,l(e.trans("Cookie Permission")),1),n(s("select",{class:"select","onUpdate:modelValue":a[0]||(a[0]=i=>o(t).COOKIE_CONSENT=i)},[s("option",K,l(e.trans("Enable")),1),s("option",U,l(e.trans("Disable")),1)],512),[[v,o(t).COOKIE_CONSENT]])]),s("div",q,[s("label",w,l(e.trans("Title")),1),n(s("input",{type:"text","onUpdate:modelValue":a[1]||(a[1]=i=>o(t).cookieData.title=i),required:"",class:"input"},null,512),[[d,o(t).cookieData.title]])]),s("div",B,[s("label",M,l(e.trans("Intro")),1),n(s("textarea",{"onUpdate:modelValue":a[2]||(a[2]=i=>o(t).cookieData.intro=i),required:"",class:"textarea"},null,512),[[d,o(t).cookieData.intro]])]),s("div",$,[s("label",j,l(e.trans("Essentials btn text")),1),n(s("input",{type:"text","onUpdate:modelValue":a[3]||(a[3]=i=>o(t).cookieData.essentials=i),required:"",class:"input"},null,512),[[d,o(t).cookieData.essentials]])]),s("div",x,[s("label",A,l(e.trans("Accept all btn text")),1),n(s("input",{type:"text","onUpdate:modelValue":a[4]||(a[4]=i=>o(t).cookieData.all=i),required:"",class:"input"},null,512),[[d,o(t).cookieData.all]])]),s("div",P,[c(O,{processing:o(t).processing,"btn-text":e.trans("Save Changes")},null,8,["processing","btn-text"])])])])],32)])])])]))}});export{Q as default};
