1import{_ as B}from"./AppLayout-2f695083.js";import{S as v}from"./SectionBorder-98f25a98.js";import{_ as S}from"./InputLabel-1dbd30cd.js";import{_ as y}from"./FormSection-3c640620.js";import{_ as V}from"./PrimaryButton-f45e43ea.js";import{_ as k}from"./InputError-987e898b.js";import{_ as w}from"./ActionMessage-26936bb0.js";import{T as P,r as D,G as I,o as p,c as m,w as a,a as d,t as l,b as t,f as i,u as s,e as _,n as C}from"./app-0028cbd5.js";import{C as N,a as U}from"./ckeditor-8257b153.js";import{S as $}from"./SaveIcon-c32b5383.js";import{_ as L}from"./StatusMessage-fd7e0ff4.js";import{_ as T}from"./_plugin-vue_export-helper-c27b6911.js";import"./NavLink-ee4d8e5c.js";import"./CheckedIcon-ef526570.js";import"./WarningIcon-1153cc86.js";import"./SecureStorage-f86316ed.js";import"./BackIcon-e0e565d2.js";import"./Plan-07e10b06.js";import"./SectionTitle-29b231b5.js";import"./vue.runtime.esm-bundler-1bd14299.js";import"./CloseIcon-15595f41.js";const j={class:"font-semibold text-xl text-gray-800 leading-tight"},z={class:"max-w-7xl mx-auto py-2 sm:py-10 sm:px-6 lg:px-8"},A={class:"col-span-6"},G={class:"col-span-6"},K={class:"col-span-6"},M={__name:"Show",props:{shopPages:Object},setup(E){const c=E,e=P({home:c.shopPages.home??"",about:c.shopPages.about??"",terms_and_conditions:c.shopPages.terms_and_conditions??""}),u=U,f=N.component,g={toolbar:["bold","italic","|","link","|","undo","redo","numberedList","bulletedList"]},h=()=>{e.put(route("shop.pages.update"),{errorBag:"updateShopPages",preserveScroll:!0})},b=D(!1);return I(()=>[e.recentlySuccessful,e.hasErrors],()=>{b.value=!1}),(o,r)=>(p(),m(B,{title:o.__("shop.pages.title")},{header:a(()=>[d("h2",j,l(o.__("shop.pages.title")),1)]),default:a(()=>[d("div",null,[d("div",z,[t(y,{onSubmitted:h},{title:a(()=>[i(l(o.__("shop.pages.home.title")),1),s(e).isDirty?(p(),m($,{key:0,class:"inline-block mx-2 fill-slate-500"})):_("",!0)]),description:a(()=>[i(l(o.__("shop.pages.home.description")),1)]),form:a(()=>[d("div",A,[t(S,{value:o.__("shop.pages.home.label")},null,8,["value"]),t(s(f),{editor:s(u),modelValue:s(e).home,"onUpdate:modelValue":r[0]||(r[0]=n=>s(e).home=n),config:g,class:"h-64"},null,8,["editor","modelValue"]),t(k,{message:s(e).errors.home,class:"mt-2"},null,8,["message"])])]),actions:a(()=>[t(w,{on:s(e).recentlySuccessful,class:"mr-3"},{default:a(()=>[i(l(o.__("Saved.")),1)]),_:1},8,["on"]),t(V,{class:C({"opacity-25":s(e).processing}),disabled:s(e).processing},{default:a(()=>[i(l(o.__("Save")),1)]),_:1},8,["class","disabled"])]),_:1}),t(v),t(y,{id:"page_about",onSubmitted:h},{title:a(()=>[i(l(o.__("shop.pages.about.title")),1),s(e).isDirty?(p(),m($,{key:0,class:"inline-block mx-2 fill-slate-500"})):_("",!0)]),description:a(()=>[i(l(o.__("shop.pages.about.description")),1)]),form:a(()=>[d("div",G,[t(S,{value:o.__("shop.pages.about.label")},null,8,["value"]),t(s(f),{editor:s(u),modelValue:s(e).about,"onUpdate:modelValue":r[1]||(r[1]=n=>s(e).about=n),config:g,class:"h-64"},null,8,["editor","modelValue"]),t(k,{message:s(e).errors.about,class:"mt-2"},null,8,["message"])])]),actions:a(()=>[t(w,{on:s(e).recentlySuccessful,class:"mr-3"},{default:a(()=>[i(l(o.__("Saved.")),1)]),_:1},8,["on"]),o.appInfo&&o.appInfo.isApp?(p(),m(L,{key:0,show:!b.value&&(s(e).recentlySuccessful||s(e).hasErrors),type:s(e).recentlySuccessful?"success":"error","auto-hide":s(e).recentlySuccessful?5e3:0,onClose:r[2]||(r[2]=n=>b.value=!0)},{default:a(()=>[i(l(s(e).hasErrors?o.__("save_failed_validation_errors"):o.__("Saved")),1)]),_:1},8,["show","type","auto-hide"])):_("",!0),t(V,{class:C({"opacity-25":s(e).processing}),disabled:s(e).processing},{default:a(()=>[i(l(o.__("Save")),1)]),_:1},8,["class","disabled"])]),_:1}),t(v),t(y,{id:"page_terms",onSubmitted:h},{title:a(()=>[i(l(o.__("shop.pages.terms_and_conditions.title")),1),s(e).isDirty?(p(),m($,{key:0,class:"inline-block mx-2 fill-slate-500"})):_("",!0)]),description:a(()=>[i(l(o.__("shop.pages.terms_and_conditions.description")),1)]),form:a(()=>[d("div",K,[t(S,{value:o.__("shop.pages.terms_and_conditions.label")},null,8,["value"]),t(s(f),{editor:s(u),modelValue:s(e).terms_and_conditions,"onUpdate:modelValue":r[3]||(r[3]=n=>s(e).terms_and_conditions=n),config:g,class:"h-64"},null,8,["editor","modelValue"]),t(k,{message:s(e).errors.terms_and_conditions,class:"mt-2"},null,8,["message"])])]),actions:a(()=>[t(w,{on:s(e).recentlySuccessful,class:"mr-3"},{default:a(()=>[i(l(o.__("Saved.")),1)]),_:1},8,["on"]),t(V,{class:C({"opacity-25":s(e).processing}),disabled:s(e).processing},{default:a(()=>[i(l(o.__("Save")),1)]),_:1},8,["class","disabled"])]),_:1}),t(v)])])]),_:1},8,["title"]))}},ds=T(M,[["__scopeId","data-v-dba1a273"]]);export{ds as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.