PageSourceSearch

https://www.vermont.cz/build-20260930113052-cfa8/assets/GiftVoucherTemplateBasicForm-CT6XZkSM.js

js vermont.cz collected 2026-10-05 21:45:53 UTC 3,365 bytes, 1 lines download raw bytes

1import{C as d}from"./CmsTextInput-Bpd0QAvi.js";import{C as f}from"./CmsToggleSection-Cu5Qhklh.js";import{C as m}from"./CmsDatePicker-D0q0on3k.js";import{_ as p}from"./CollapsibleCard-CK8DtqE4.js";import{F as v}from"./vee-validate-CO2qdH_i.js";import{a as k,c as r,g as y,d as g}from"./index.esm-Bu2p_nm2.js";import{o as c,e as V,w as n,q as t,f as l,n as x,v as j,m as s,p as P}from"./index.esm-C__ncqa8.js";import"./CmsInputHelperErrorCountText-GFeyRO7Y.js";import"./CmsToggleSwitch-DyNWjzcZ.js";import"./vue-datepicker-D11aFytj.js";import"./_commonjsHelpers-BosuxZz1.js";const C={class:"grid gap-3 p-4 lg:grid-cols-2"},h={class:"flex items-start justify-between rounded-lg border border-gray-200 bg-white p-4 dark:border-gray-700 dark:bg-gray-800"},$={class:"flex-shrink-0"},E={__name:"GiftVoucherTemplateBasicForm",props:{form:{type:Object,required:!0},giftVoucherTemplate:{type:Object,required:!0}},emits:["submit"],setup(a){const i=P(),u=k().shape({eshop_title:r().nullable(),order:g().nullable(),is_enabled:y(),enabled_from:r().nullable(),enabled_until:r().nullable()});return(b,e)=>(c(),V(s(v),{ref_key:"formElement",ref:i,"validation-schema":s(u),onSubmit:e[5]||(e[5]=o=>b.$emit("submit"))},{default:n(()=>[t(p,{title:"Základné údaje",primary:"","storage-key":"gift-voucher-template-basic-info","default-collapsed":!1},{default:n(()=>[l("div",C,[t(d,{modelValue:a.form.eshop_title,"onUpdate:modelValue":e[0]||(e[0]=o=>a.form.eshop_title=o),name:"eshop_title",label:"Názov v eshope",required:"",disabled:""},null,8,["modelValue"]),t(d,{modelValue:a.form.order,"onUpdate:modelValue":e[1]||(e[1]=o=>a.form.order=o),name:"order",label:"Poradie",type:"number"},null,8,["modelValue"]),t(f,{modelValue:a.form.is_enabled,"onUpdate:modelValue":e[2]||(e[2]=o=>a.form.is_enabled=o),title:"Povolené",description:"Aktivuje alebo deaktivuje túto šablónu",color:"blue"},null,8,["modelValue"]),l("div",h,[e[6]||(e[6]=l("div",{class:"flex-1 pr-4"},[l("h3",{class:"text-sm font-medium text-gray-900 dark:text-white"},"Farba darčekovej poukážky"),l("p",{class:"mt-1 text-sm text-gray-500 dark:text-gray-400"}," Ukážka výberu farby na stránke nákupu darčekovej poukážky ")],-1)),l("div",$,[l("div",{class:x(["h-[24px] w-[24px] border border-gray-300",a.giftVoucherTemplate.data.background_color_class])},null,2)])]),t(m,{modelValue:a.form.enabled_from,"onUpdate:modelValue":e[3]||(e[3]=o=>a.form.enabled_from=o),name:"enabled_from",label:"Povolené od","enable-time-picker":!0,format:"dd/MM/yyyy HH:mm",clearable:""},null,8,["modelValue"]),t(m,{modelValue:a.form.enabled_until,"onUpdate:modelValue":e[4]||(e[4]=o=>a.form.enabled_until=o),name:"enabled_until",label:"Povolené do","enable-time-picker":!0,format:"dd/MM/yyyy HH:mm",clearable:""},null,8,["modelValue"]),e[7]||(e[7]=l("div",{class:"lg:col-span-2"},[l("div",{class:"rounded-lg border border-blue-200 bg-blue-50 p-3"},[l("p",{class:"text-sm text-blue-800"},[l("strong",null,"Poznámka:"),j(' Ak je šablóna povolená a je nastavené "Povolené od" alebo "Povolené do", systém bude validovať dátum a čas (môže sa použiť na zobrazenie alebo skrytie v budúcnosti), ale "Povolené" má vyššiu prioritu. '),l("br"),l("br"),l("strong",null,'Na použitie "Povolené do" musí byť definované aj "Povolené od".')])])],-1))])]),_:1})]),_:1},8,["validation-schema"]))}};export{E 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.