PageSourceSearch

https://crm.ifnmu.edu.ua/assets/index-CEC174c4.js

js ifnmu.edu.ua collected 2026-10-02 23:00:15 UTC 3,658 bytes, 1 lines download raw bytes

1import{n as r}from"./antdProComponents-6rzHkKcZ.js";import{r as N}from"./react-_5RlvHhi.js";import{b as k,a_ as R,aF as g,aG as L,av as i,aA as a,o as u,dE as F,d as U,P as I,bZ as C,E,aJ as T}from"./index-C8gtYebm.js";import{a1 as P}from"./antdForm-ZZ85gsAg.js";import{aF as v,aG as c}from"./antdBase-DlFOY6T8.js";import{c as $,b as M}from"./query-Bn7EN5Pb.js";import{bU as Q,E as q}from"./antdIcons-DhY_pOHd.js";import"./antdTable-Cz58L6xH.js";import"./antdModal-Dh46Xjql.js";import"./pdfjs-Jc8nWIli.js";import"./jspdf-B1PPRTPs.js";import"./utils-D8nkOfAZ.js";import"./tiptap-IID5qgYO.js";import"./reactPdf-ChLvjV_L.js";import"./antdMaskInput-f6hZ1glU.js";import"./antdProTable-Ch7uEBlj.js";import"./chart-DuBnvqdM.js";import"./others-6CDmzJG5.js";import"./pdfLib-_sLH-ZSH.js";import"./x6-CTQrGuB4.js";const oe=()=>{const{t:s}=k(),m=$(),{filterIcon:p,filterDropdown:h,onFilterDropdownOpen:_}=R(s("url_shortener.search")),{setSearchParamsToQuery:d}=g(),[f,o]=N.useState(!0),[l]=P.useForm(),{data:n,isFetching:x}=L({fetcher:i.fetchMyShorlinks,keys:["shortlinks"]}),{mutate:y}=M({mutationFn:i.createShortlink,onSuccess:e=>{d({page:1}),m.setQueriesData(["shortlinks"],t=>({...t,results:[e,...t.results],count:(t==null?void 0:t.count)+1})),u("success",s("url_shortener.notifications_success")),l.resetFields(),o(!0)}}),b=({full_url:e})=>{y({full_url:e})},j=[{title:s("url_shortener.full_url"),filterIcon:p,filterDropdown:h,filterDropdownProps:{onOpenChange:_},dataIndex:"full_url",key:"full_url",className:"URLShortener__url-cell",render:e=>r.jsxs("a",{className:"URLShortener__url-link",href:e,target:"_blank",rel:"noopener noreferrer",title:e,children:[r.jsx("span",{className:"URLShortener__url-start",children:e}),r.jsx("span",{className:"URLShortener__url-ellipsis",children:"..."}),r.jsx("span",{className:"URLShortener__url-end",children:e.slice(-5)})]})},{title:s("url_shortener.short_url"),dataIndex:"short_url",key:"short_url",ellipsis:!0,render:e=>{const t=`${a}/s/${e}`;return r.jsx("a",{className:"text-blue decoration-none",href:t,target:"_blank",rel:"noopener noreferrer",children:t})}},{title:s("url_shortener.statistics"),key:"statistics",render:e=>r.jsxs("span",{className:"flex fl-justify-content-center fl-align-center",children:[r.jsx(Q,{className:"mr-1 text-blue"}),r.jsxs("span",{children:[r.jsx("strong",{className:"mr-1 text-bold",children:e==null?void 0:e.usage_count}),s("url_shortener.clicks")]})]})},{title:"",key:"actions",render:e=>r.jsx(v,{title:s("url_shortener.copy"),children:r.jsx(c,{type:"text",icon:r.jsx(q,{}),className:"URLShortener__copy-btn",onClick:()=>{navigator.clipboard.writeText(`${a}/s/${e==null?void 0:e.short_url}`),u("success",s("url_shortener.notifications_clipboard"))}})})}],S=[{name:"full_url",type:"default",rules:[{pattern:F,message:s("url_shortener.rule_message")}],inputProps:{placeholder:s("url_shortener.input"),allowClear:!0}}];return U("sidebar.url_shortener"),r.jsxs(r.Fragment,{children:[r.jsx(I,{text:s("url_shortener.title")}),r.jsx(C,{form:l,fields:S,onFinish:b,colon:!1,requiredMark:!1,className:"URLShortener__form",fieldsContainerName:"URLShortener__fields",onValuesChange:e=>{const t=!e.full_url||e.full_url.trim()==="";o(t)},children:r.jsx(c,{type:"primary",htmlType:"submit",disabled:f,className:"URLShortener__form-btn",children:s("url_shortener.value")})}),r.jsxs("div",{style:{position:"relative"},children:[r.jsx("span",{style:{position:"absolute",top:-32,right:0,zIndex:10},children:r.jsx(E,{slotId:22})}),r.jsx(T,{dataSource:n==null?void 0:n.results,columns:j,rowKey:"id",count:n==null?void 0:n.count,loading:x,className:"pt-5 URLShortener__table"})]})]})};export{oe 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.