PageSourceSearch

https://tapntag.ai/web/assets/list-BjECho21.js

js tapntag.ai collected 2026-10-05 12:43:36 UTC 6,265 bytes, 2 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/save-BSYhZN2d.js","assets/vendor-map-BvHxHz2a.js","assets/vendor-react-PEuRF1c_.js","assets/vendor-tdesign-BHVKvSRQ.js","assets/vendor-refine-Dz60a73-.js","assets/modulepreload-polyfill-C4MyQ8I2.js","assets/vendor-lib-DEY2X_J5.js","assets/vendor-markdown-CsGLYLod.js","assets/vendor-echarts-B8W7ugNr.js","assets/vendor-tinymce-BoQPt6qI.js","assets/index-B0zv18DP.js","assets/uploadImage-Bx_RZ5yj.js","assets/useUpload-DAVqeK9k.js"])))=>i.map(i=>d[i]);
2import{j as e}from"./vendor-map-BvHxHz2a.js";import{d as n,_ as f}from"./vendor-markdown-CsGLYLod.js";import{aq as d,i as w,aX as b,aT as y,al as _}from"./modulepreload-polyfill-C4MyQ8I2.js";import{P as k}from"./index--uvXKzI8.js";import{a as m,z,J as I,m as D,g as S}from"./vendor-refine-Dz60a73-.js";import{r as c}from"./vendor-react-PEuRF1c_.js";import{S as C}from"./index-BB9wRcQK.js";import"./vendor-echarts-B8W7ugNr.js";import{D as E,E as L}from"./link-DlJoT168.js";import"./vendor-tinymce-BoQPt6qI.js";import"./vendor-lib-DEY2X_J5.js";import{c as R}from"./scroll-area-CVUBbHIe.js";import{C as P}from"./button-DRq4ltpI.js";import{d as Y}from"./debounce-CLTjDgnO.js";import"./vendor-tdesign-BHVKvSRQ.js";import"./index-B0zv18DP.js";import"./action-DHZzPzB7.js";const M="_select_j1iqv_1",T={select:M};function B({data:t,refetch:i}){const s=m(),{resource:l}=z(),{mutate:x}=I();return e.jsxs("div",{className:"relative rounded-[12px] rounded-lg p-3 bg-white",children:[e.jsxs("div",{className:"flex justify-between gap-3 items-center",children:[e.jsxs("div",{className:"flex gap-3 pr-[38px]",children:[t.image?e.jsx(w.Image,{src:t.image,fit:"cover",width:83,height:69}):e.jsx("div",{className:"h-[69px] w-[83px] rounded-lg bg-gray-200"}),e.jsx("div",{className:"flex-1",children:e.jsxs("div",{className:"mt-1 flex flex-col gap-2",children:[e.jsx("div",{className:"text-lg font-medium",children:t.name}),e.jsxs("div",{className:"font-regular text-xs text-[#8c8c8c]",children:[s("market.prize.fields.created_at"),":",e.jsx("span",{className:"ml-1",children:n(t.created_at).format("YYYY-MM-DD")})]})]})})]}),e.jsx("div",{className:"divider w-[1px] h-[20px] bg-[#ececec]"}),e.jsxs("div",{className:"flex flex-col items-center gap-2 flex-1",children:[e.jsx("div",{className:"text-xs font-medium text-[#8c8c8c]",children:s("market.prizeItem.list.stock")}),e.jsx("div",{className:"text-sm font-medium text-[#000]",children:t.stock??s("market.prizeItem.list.unlimited")})]}),e.jsx("div",{className:"divider w-[1px] h-[20px] bg-[#ececec]"}),e.jsxs("div",{className:"flex flex-col items-center gap-2 flex-1 justify-center",children:[e.jsx("div",{className:"text-xs font-medium text-[#8c8c8c]",children:s("market.prizeItem.list.status")}),e.jsx(C,{size:"small",checked:t.status,onChange:()=>x({url:`${l==null?void 0:l.name}/${t.id}`,method:"patch",values:{status:!t.status}},{onSuccess:()=>{i()}})})]})]}),e.jsx("div",{className:"my-4 h-[1px] w-full bg-[#ececec]"}),e.jsxs("div",{className:"flex items-center justify-end gap-4",children:[e.jsx(E,{rowId:t.id,Cp:J}),e.jsx(L,{rowId:t.id,modal:{width:800},Cp:A,component:()=>f(()=>import("./save-BSYhZN2d.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12]))})]})]})}function q({data:t,refetch:i}){return e.jsx(R,{className:"h-full w-full",children:e.jsx("div",{className:"grid grid-cols-2 gap-4 pb-4",children:t.map(s=>e.jsx(B,{data:s,refetch:i},s.id))})})}const J=c.forwardRef(V);function V(t,i){const s=m();return e.jsxs("div",{...t,ref:i,className:d(t.className,"font-regular text-xs text-[#262626] flex items-center gap-1 cursor-pointer relative"),children:[e.jsx("div",{className:"t-icon i-tabler:trash h-4 w-4"}),s("market.prize.list.delete")]})}const A=c.forwardRef(F);function F(t,i){const s=m();return e.jsxs("div",{...t,ref:i,className:d(t.className,"font-regular text-xs text-[#262626] flex items-center gap-1 cursor-pointer relative"),children:[e.jsx("div",{className:"t-icon i-tabler:edit h-4 w-4"}),s("market.prize.list.edit")]})}function O(){const t=m(),[i,s]=c.useState(""),[l,x]=c.useState([n().subtract(30,"day").toDate(),n().toDate()]),{tableQueryResult:o,pageSize:p,setPageSize:u,current:h,setCurrent:j,filters:Q,setFilters:g}=D({filters:{initial:[{field:"time",operator:"between",value:l.map(a=>n(a).format("YYYY-MM-DD"))}]},pagination:{current:0,pageSize:10},syncWithLocation:!0}
2),r=o.data;S();const v=c.useCallback(Y(a=>{g([{field:"keyword",operator:"eq",value:a}])},500),[]);return e.jsxs("div",{className:"relative h-full flex flex-col gap-4 p-4 pb-[76px]",children:[e.jsxs("div",{className:"rounded-lg px-5 py-4 bg-white",children:[e.jsxs("div",{className:"flex items-start justify-between",children:[e.jsxs("div",{className:"flex flex-col gap-1",children:[e.jsx("div",{className:"text-lg font-medium",children:t("market.prizeItem.name")}),e.jsx("div",{className:"font-regular text-xs text-[#8c8c8c]",children:t("market.prizeItem.list.description")})]}),e.jsx(P,{modal:{width:800},Cp:b,children:t("market.prizeItem.list.create"),theme:"solid",type:"primary",className:"h-[40px] rounded-full",size:"large",icon:e.jsx("div",{className:"t-icon i-tabler:gift h-6 w-6 text-base"}),component:()=>f(()=>import("./save-BSYhZN2d.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12]))})]}),e.jsx("div",{className:"my-4 h-[1px] w-full bg-[#ececec]"}),e.jsx("div",{className:"flex items-center justify-between",children:e.jsx("div",{className:"w-[300px]",children:e.jsx(y,{value:i,onChange:a=>{v(a),s(a)},placeholder:t("market.prizeItem.list.search"),prefix:e.jsx("div",{className:"flex items-center justify-center px-2",children:e.jsx("div",{className:"w-4 h-4 i-tabler:search"})})})})})]}),e.jsxs("div",{className:"flex-1 overflow-hidden",children:[e.jsx(q,{data:(r==null?void 0:r.data)??[],refetch:o.refetch}),o.isInitialLoading&&e.jsx("div",{className:"h-full w-full flex items-center justify-center",children:e.jsx(_,{size:"large"})})]}),e.jsx("div",{className:d("flex-1 overflow-hidden absolute bottom-0 left-0 bg-white h-[76px] shadow-md flex justify-end items-center px-8 w-full",T.select),children:e.jsx(k,{total:(r==null?void 0:r.total)??0,showSizeChanger:!0,showQuickJumper:!0,currentPage:h,pageSize:p,onChange:(a,N)=>{j(a),u(N)}})})]})}const me=()=>e.jsx(O,{});export{me 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.