PageSourceSearch

https://www.gant.cz/build-20261007085305-94cf/assets/Index-oSVlFRLn.js

js gant.cz collected 2026-10-08 03:59:27 UTC 6,812 bytes, 1 lines download raw bytes

1import{_}from"./Breadcrumbs-41IJFtkB.js";import{_ as b}from"./EshopTd-BmqGngCq.js";import{L as w}from"./LinkTd-D-4o28Wy.js";import{_ as j}from"./AppCms-B33QJpz6.js";import{Z as V}from"./inertiaui-table-COXRwN9i.js";import{o as s,e as f,w as r,q as p,f as t,b as n,m as h,aH as k,h as m,v as i,t as l,n as c}from"./index.esm-DE1ZI7vc.js";import"./vermont_logo-C4dxYBS9.js";import"./swal-rLQYREDU.js";import"./mitt-DJ65BbbF.js";import"./admin-logo-CG1u3xo6.js";import"./CmsModal-BxwNMCd-.js";import"./inertiaui-modal-CRcWXt9W.js";import"./_commonjsHelpers-BosuxZz1.js";const M={class:"mb-6 flex items-center gap-3",dusk:"coupon-sets-header"},B=["href"],v=["href"],C={key:1,class:"text-sm text-gray-500"},z={class:"flex justify-center"},S={class:"text-sm text-gray-700"},H={class:"flex justify-center"},N={key:0,class:"inline-flex items-center rounded-full bg-green-100 px-2.5 py-0.5 text-sm font-medium text-green-800"},L={key:1,class:"inline-flex items-center rounded-full bg-gray-100 px-2.5 py-0.5 text-sm font-medium text-gray-600"},T={class:"flex justify-center"},Z={key:0,class:"text-[11px] font-bold"},$={key:1,class:"h-3 w-3",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},q={class:"text-sm text-gray-700"},P={class:"text-xs text-gray-600"},A={class:"flex justify-center"},D={key:0,"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z"},E={key:1,"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M10 14l2-2m0 0l2-2m-2 2l-2-2m2 2l2 2m7-2a9 9 0 11-18 0 9 9 0 0118 0z"},I={key:0,class:"text-sm text-gray-700"},O={class:"flex items-center gap-1.5"},F={key:1,class:"text-gray-400"},G={key:0,class:"text-sm text-gray-700"},J={class:"flex items-center gap-1.5"},K={key:1,class:"text-gray-400"},ae={__name:"Index",props:{couponSets:{type:Object,required:!0},canManage:{type:Boolean,default:!1},breadcrumbs:{type:Array,default:()=>[{text:"Sady kupónov",url:k("admin.marketing.coupon-sets.index")}]}},setup(d){const x=u=>{switch(u){case"sky":return"bg-sky-100 text-sky-800";case"indigo":return"bg-indigo-100 text-indigo-800";case"amber":return"bg-amber-100 text-amber-800";case"purple":return"bg-purple-100 text-purple-800";case"emerald":return"bg-emerald-100 text-emerald-800";case"slate":return"bg-slate-100 text-slate-800";case"blue":return"bg-blue-100 text-blue-800";case"violet":return"bg-violet-100 text-violet-800";default:return"bg-gray-100 text-gray-800"}};return(u,o)=>(s(),f(j,{headTitle:"Sady kupónov"},{default:r(()=>[p(_,{items:d.breadcrumbs},null,8,["items"]),t("div",M,[o[1]||(o[1]=t("h1",{class:"text-2xl font-bold text-gray-900",dusk:"coupon-sets-title"},"Sady kupónov",-1)),d.canManage?(s(),n("a",{key:0,href:h(k)("admin.marketing.coupon-sets.create"),class:"inline-flex items-center gap-1.5 rounded-md border border-gray-300 bg-white px-3 py-1.5 text-sm font-medium text-gray-700 shadow-sm transition-all hover:border-gray-400 hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-1",title:"Pridať novú sadu kupónov",dusk:"create-coupon-set-btn"},[...o[0]||(o[0]=[t("svg",{class:"h-4 w-4 text-gray-600",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[t("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M12 4v16m8-8H4"})],-1),t("span",null,"Pridať",-1)])],8,B)):m("",!0)]),p(h(V),{resource:d.couponSets,class:"w-full",dusk:"coupon-sets-table"},{"cell(title)":r(({value:e,item:a})=>{var g;return[p(w,{url:(g=a.actions_data)==null?void 0:g.edit_url,value:e,inertiaLink:"",copyable:""},{actions:r(()=>{var y;return[(y=a.actions_data)!=null&&y.logs_url?(s(),n("a",{key:0,href:a.actions_data.logs_url,class:"ml-1.5 inline-flex h-5 w-5 items-center justify-center rounded text-gray-400 transition-colors hover:bg-gray-100 hover:text-gray-600",title:"Zobraziť logy"},[...o[2]||(o[2]=[t("svg",{class:"h-3.5 w-3.5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[t("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"})],-1)])],8,v)):m("",!0)]}),_:2},1032,["url","value"])]}),"cell(eshop.name)":r(({value:e,item:a})=>[e?(s(),f(b,{key:0,value:e,eshop:e},null,8,["value","eshop"])):(s(),n("span",C,"-"))]),"cell(type)":r(({value:e})=>[t("div",z,[t("span",{class:c(["inline-flex items-center gap-1 rounded-full px-2.5 py-1 text-xs font-semibold text-gray-800",x(e==null?void 0:e.color)])},[o[3]||(o[3]=t("span",{class:"h-2 w-2 rounded-full bg-white/70"},null,-1)),i(" "+l((e==null?void 0:e.label)||"-"),1)],2)])]),"cell(config)":r(({value:e})=>[t("span",S,l(e),1)]),"cell(coupons_count)":r(({value:e})=>[t("div",H,[e>0?(s(),n("span",N,l(e),1)):(s(),n("span",L," 0 "))])]),"cell(price_type)":r(({value:e})=>[t("div",T,[t("span",{class:c(["inline-flex items-center gap-1 rounded-full px-2.5 py-1 text-xs font-semibold text-gray-800",x(e==null?void 0:e.color)])},[(e==null?void 0:e.color)==="blue"?(s(),n("span",Z,"%")):(e==null?void 0:e.color)==="violet"?(s(),n("svg",$,[...o[4]||(o[4]=[t("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M12 8c-1.657 0-3 .895-3 2s1.343 2 3 2 3 .895 3 2-1.343 2-3 2m0-8c1.11 0 2.08.402 2.599 1M12 8V7m0 6v1m0 4v1m-4-9a4 4 0 018 0"},null,-1)])])):m("",!0),i(" "+l((e==null?void 0:e.label)||"-"),1)],2)])]),"cell(cms_type)":r(({value:e})=>[t("span",q,l(e),1)]),"cell(note)":r(({value:e})=>[t("span",P,l(e||"-"),1)]),"cell(enabled)":r(({value:e})=>[t("div",A,[t("span",{class:c(["inline-flex items-center rounded px-2.5 py-0.5 text-xs",e?"bg-green-100 text-gray-800":"bg-gray-100 text-gray-800"])},[(s(),n("svg",{class:c(["mr-1 h-3 w-3",e?"text-green-600":"text-gray-600"]),fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[e?(s(),n("path",D)):(s(),n("path",E))],2)),i(" "+l(e?"Áno":"Nie"),1)],2)])]),"cell(valid_from)":r(({value:e})=>[e?(s(),n("div",I,[t("div",O,[o[5]||(o[5]=t("svg",{class:"h-4 w-4 text-gray-500",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[t("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M8 7V3m8 4V3m-9 8h10M5 21h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z"})],-1)),t("span",null,l(e),1)])])):(s(),n("span",F,"-"))]),"cell(valid_until)":r(({value:e})=>[e?(s(),n("div",G,[t("div",J,[o[6]||(o[6]=t("svg",{class:"h-4 w-4 text-gray-500",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[t("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M8 7V3m8 4V3m-9 8h10M5 21h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z"})],-1)),t("span",null,l(e),1)])])):(s(),n("span",K,"-"))]),"cell(created_at)":r(({value:e})=>[i(l(e||"-"),1)]),_:1},8,["resource"])]),_:1}))}};export{ae 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.