@emailmaker/filemanager 0.10.79 → 0.10.80
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/276.c0a535f6d0c018f0ff32.js +426 -0
- package/debug-script.js +446 -1
- package/{file-manager-IconsTab-7TU2tOCK.js → file-manager-IconsTab-_YE67Dr8.js} +2 -2
- package/{file-manager-index-CBQ0C6Zs.js → file-manager-index-BOQvCJ_s.js} +8 -8
- package/file-manager.d.ts +1 -0
- package/file-manager.esm.js +1 -1
- package/file-manager.js +94317 -2
- package/fm-icons-tab.0b3920cbbaa6c052568d.js +2302 -0
- package/hooks/index.d.ts +1 -0
- package/hooks/useProxyDisplayFallback.d.ts +8 -0
- package/mockServiceWorker.js +344 -1
- package/package.json +1 -1
- package/suppress-resize-observer-errors.js +61 -1
- package/types.d.ts +52 -0
- package/utils/isAntImagePreviewClick.d.ts +1 -0
- package/276.c9198a5e2f9e61e3ca1a.js +0 -1
- package/file-manager.js.LICENSE.txt +0 -129
- package/fm-icons-tab.e5da568eed15b8781b57.js +0 -1
|
@@ -1,129 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
Copyright (c) 2018 Jed Watson.
|
|
3
|
-
Licensed under the MIT License (MIT), see
|
|
4
|
-
http://jedwatson.github.io/classnames
|
|
5
|
-
*/
|
|
6
|
-
|
|
7
|
-
/*! Fabric.js Copyright 2008-2015, Printio (Juriy Zaytsev, Maxim Chernyak) */
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* @license
|
|
11
|
-
* Lodash <https://lodash.com/>
|
|
12
|
-
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
|
13
|
-
* Released under MIT license <https://lodash.com/license>
|
|
14
|
-
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
15
|
-
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
16
|
-
*/
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
* @license React
|
|
20
|
-
* react-is.production.min.js
|
|
21
|
-
*
|
|
22
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
23
|
-
*
|
|
24
|
-
* This source code is licensed under the MIT license found in the
|
|
25
|
-
* LICENSE file in the root directory of this source tree.
|
|
26
|
-
*/
|
|
27
|
-
|
|
28
|
-
/**
|
|
29
|
-
* @license React
|
|
30
|
-
* react-jsx-runtime.production.min.js
|
|
31
|
-
*
|
|
32
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
33
|
-
*
|
|
34
|
-
* This source code is licensed under the MIT license found in the
|
|
35
|
-
* LICENSE file in the root directory of this source tree.
|
|
36
|
-
*/
|
|
37
|
-
|
|
38
|
-
/**
|
|
39
|
-
* @license React
|
|
40
|
-
* use-sync-external-store-shim.production.min.js
|
|
41
|
-
*
|
|
42
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
43
|
-
*
|
|
44
|
-
* This source code is licensed under the MIT license found in the
|
|
45
|
-
* LICENSE file in the root directory of this source tree.
|
|
46
|
-
*/
|
|
47
|
-
|
|
48
|
-
/**
|
|
49
|
-
* @license React
|
|
50
|
-
* use-sync-external-store-shim/with-selector.production.min.js
|
|
51
|
-
*
|
|
52
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
53
|
-
*
|
|
54
|
-
* This source code is licensed under the MIT license found in the
|
|
55
|
-
* LICENSE file in the root directory of this source tree.
|
|
56
|
-
*/
|
|
57
|
-
|
|
58
|
-
/**
|
|
59
|
-
* @remix-run/router v1.16.1
|
|
60
|
-
*
|
|
61
|
-
* Copyright (c) Remix Software Inc.
|
|
62
|
-
*
|
|
63
|
-
* This source code is licensed under the MIT license found in the
|
|
64
|
-
* LICENSE.md file in the root directory of this source tree.
|
|
65
|
-
*
|
|
66
|
-
* @license MIT
|
|
67
|
-
*/
|
|
68
|
-
|
|
69
|
-
/**
|
|
70
|
-
* React Router DOM v6.23.1
|
|
71
|
-
*
|
|
72
|
-
* Copyright (c) Remix Software Inc.
|
|
73
|
-
*
|
|
74
|
-
* This source code is licensed under the MIT license found in the
|
|
75
|
-
* LICENSE.md file in the root directory of this source tree.
|
|
76
|
-
*
|
|
77
|
-
* @license MIT
|
|
78
|
-
*/
|
|
79
|
-
|
|
80
|
-
/**
|
|
81
|
-
* React Router v6.23.1
|
|
82
|
-
*
|
|
83
|
-
* Copyright (c) Remix Software Inc.
|
|
84
|
-
*
|
|
85
|
-
* This source code is licensed under the MIT license found in the
|
|
86
|
-
* LICENSE.md file in the root directory of this source tree.
|
|
87
|
-
*
|
|
88
|
-
* @license MIT
|
|
89
|
-
*/
|
|
90
|
-
|
|
91
|
-
/** */
|
|
92
|
-
|
|
93
|
-
/** */
|
|
94
|
-
|
|
95
|
-
/** */
|
|
96
|
-
|
|
97
|
-
/** */
|
|
98
|
-
|
|
99
|
-
/** */
|
|
100
|
-
|
|
101
|
-
/** */
|
|
102
|
-
|
|
103
|
-
/** */
|
|
104
|
-
|
|
105
|
-
/** */
|
|
106
|
-
|
|
107
|
-
/** */
|
|
108
|
-
|
|
109
|
-
/** */
|
|
110
|
-
|
|
111
|
-
/** */
|
|
112
|
-
|
|
113
|
-
/** */
|
|
114
|
-
|
|
115
|
-
/** */
|
|
116
|
-
|
|
117
|
-
/** */
|
|
118
|
-
|
|
119
|
-
/** */
|
|
120
|
-
|
|
121
|
-
/** */
|
|
122
|
-
|
|
123
|
-
/** */
|
|
124
|
-
|
|
125
|
-
/** */
|
|
126
|
-
|
|
127
|
-
/** */
|
|
128
|
-
|
|
129
|
-
/** */
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(Object("undefined"!=typeof self?self:this).webpackChunkfileManager=Object("undefined"!=typeof self?self:this).webpackChunkfileManager||[]).push([[379],{1560:(e,o,t)=>{"use strict";t.r(o),t.d(o,{IconsTab:()=>ye,default:()=>Ce});var n=t(4848),i=t(5442),r=t.n(i),s=t(550),l=t(2389),a=t(6005),c=t(2761),d=t(5072),u=t.n(d),m=t(7825),h=t.n(m),p=t(7659),f=t.n(p),_=t(5056),g=t.n(_),b=t(540),v=t.n(b),x=t(1113),y=t.n(x),C=t(9875),w=t.n(C),T={};T.styleTagTransform=y(),T.setAttributes=g(),T.insert=f().bind(null,"head"),T.domAPI=h(),T.insertStyleElement=v(),u()(w(),T);const k=w()&&w().locals?w().locals:void 0,S=({query:e,onQueryChange:o,onSubmit:t,hasResults:i=!1,inputRef:r})=>{const{t:d}=(0,l.Bd)(),{options:u}=(0,c.wh)(),{config:m}=u,h=e.length>0&&i;return(0,n.jsxs)("div",{className:k.iconsSearchFormCenteredContainer,children:[(0,n.jsx)(s.Form,{layout:"inline",onFinish:t,className:h?k.iconsSearchResults:k.iconsSearchFormCentered,children:(0,n.jsx)(s.Form.Item,{className:k.iconsSearchFormInput,children:(0,n.jsx)(s.Input,{ref:r,className:k.iconsSearchFormInputInput,allowClear:!0,prefix:(0,n.jsx)(a.g,{size:16,strokeWidth:null==m?void 0:m.iconStrokeWidth,onClick:t}),placeholder:d("Search icons"),value:e,onChange:e=>o(e.target.value),onKeyDown:e=>"Space"===e.code&&t(),onPressEnter:t,spellCheck:"false"})})}),h&&(0,n.jsx)("div",{className:`ant-divider ${k.iconsSearchDivider}`,role:"separator"})]})},I=e=>{const{t:o}=(0,l.Bd)(),{colorHex:t,setColorHex:i,colorHex2:r,setColorHex2:a,colorHex3:c,setColorHex3:d,sizePx:u,setSizePx:m,strokeWidth:h,setStrokeWidth:p,showSecondColor:f,showThirdColor:_}=e;return(0,n.jsx)("div",{className:k.iconsControls,children:(0,n.jsxs)("div",{className:k.iconsControlsControls,children:[(0,n.jsxs)("div",{className:k.iconsControlsStrokeWidth,children:[(0,n.jsx)("span",{children:o("Size")}),(0,n.jsx)(s.InputNumber,{min:20,max:200,step:1,value:u,formatter:e=>`${e}px`,parser:e=>{const o=String(null!=e?e:"").trim().replace(/\s*px\s*$/i,""),t=parseInt(o,10);return Number.isFinite(t)?t:0},onChange:e=>m("number"!=typeof e||Number.isNaN(e)?50:e)})]}),(0,n.jsxs)("div",{className:k.iconsControlsStrokeWidth,children:[(0,n.jsx)("span",{children:o("Stroke width")}),(0,n.jsx)(s.InputNumber,{min:.3,max:3,step:.1,value:"number"==typeof h?h:1,formatter:e=>`${e}px`,parser:e=>e?e.replace("px",""):"",onChange:e=>p("number"==typeof e?e:1)})]}),(0,n.jsxs)(s.Space,{size:8,children:[(0,n.jsxs)("div",{className:k.iconsControlElement,children:[(0,n.jsx)("span",{children:o("Color1")}),(0,n.jsx)(s.ColorPicker,{value:t,format:"hex",disabledAlpha:!0,onChange:(e,o)=>i(o),size:"middle"})]}),f&&(0,n.jsxs)("div",{className:k.iconsControlElement,children:[(0,n.jsx)("span",{children:o("Color2")}),(0,n.jsx)(s.ColorPicker,{value:r,format:"hex",disabledAlpha:!0,onChange:(e,o)=>a(o),size:"middle"})]}),_&&(0,n.jsxs)("div",{className:k.iconsControlElement,children:[(0,n.jsx)("span",{children:o("Color3")}),(0,n.jsx)(s.ColorPicker,{value:c,format:"hex",disabledAlpha:!0,onChange:(e,o)=>d(o),size:"middle"})]})]})]})})};var F=t(3567),j=t(1790),G=t(2429),B=t(3263);const N=(0,n.jsx)(F.A,{style:{fontSize:20},spin:!0}),H=({items:e,loading:o,isCollectingResults:t=!1,hasMore:i=!1,hasQuery:a,selectedHash:d,onItemClick:u,onInsert:m,onLoadMore:h,colorVars:p,svgTextMap:f,previewSize:_,selectedHashes:g,onToggleSelect:b})=>{const{t:v}=(0,l.Bd)(),{ThumbsUpIcon:x}=(0,G.D)(),y=Boolean(g&&g.size>0),C=r().useRef(null),{positionedItems:w,containerHeight:T,isNearEnd:S,handleViewportChange:I}=(0,B.W)({items:e,getId:e=>e.hash,getPreviewSrc:()=>{},getAltText:e=>e.name,layoutMode:"grid",minColumnWidth:160,estimatedItemHeight:(null!=_?_:50)+56,gap:16,prefetchThresholdPx:240}),F=(0,c._O)(I,[e.length,null!=_?_:50]);r().useEffect(()=>{i||(C.current=null)},[i,e.length]),r().useEffect(()=>{if(!o&&!t&&i&&e.length>0&&S){if(C.current===e.length)return;C.current=e.length,null==h||h()}},[i,t,S,e.length,o,h]);const H=a?(0,n.jsx)("div",{className:k.iconsGridEmptyState,children:(0,n.jsx)(j.G,{})}):(0,n.jsx)("div",{className:k.iconsGridEmptyState,children:(0,n.jsxs)("div",{className:k.resultsContainer,children:[(0,n.jsx)("span",{className:k.videoIcon,children:(0,n.jsx)(x,{className:k.playButton,style:{width:48,height:49,marginBottom:10}})}),(0,n.jsx)("h1",{className:k.title,children:v("Thousands of icons")}),(0,n.jsx)("p",{className:k.subtitle,children:v("Enter a search query and we'll find the perfect icon for you")})]})});return(0,n.jsxs)("div",{id:"iconsScrollableDiv",ref:F,className:k.iconsGrid,children:[0!==e.length||o?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:k.iconsGridVirtualCanvas,style:{height:T},children:w.map(({row:e,layout:o})=>{var t,i,r,l,a,c,m,h,v,x,C;const w=e.item,T=Boolean(g&&g.has(w.hash)||d===w.hash),S=f[w.hash];return(0,n.jsxs)("div",{style:{position:"absolute",top:o.top,left:o.left,width:o.width,height:o.height},className:`${k.iconsGridItem} ${T?k.iconsGridItemSelected:""} ${y?k.iconsGridShowCheckboxes:""}`,onClick:()=>u(w),children:[(0,n.jsx)("div",{style:{height:null!=_?_:50},className:k.iconsGridItemThumbnail,children:S?(0,n.jsx)("div",{style:{color:null==p?void 0:p.colorHex,"--icon-grad-1":null!==(t=null==p?void 0:p.colorHex)&&void 0!==t?t:"#000","--icon-grad-2":null!==(i=null==p?void 0:p.colorHex2)&&void 0!==i?i:"#ff007a","--icon-color-1":null!==(r=null==p?void 0:p.colorHex)&&void 0!==r?r:"#000","--icon-color-2":null!==(l=null==p?void 0:p.colorHex2)&&void 0!==l?l:"#ff007a","--icon-color-3":null!==(a=null==p?void 0:p.colorHex3)&&void 0!==a?a:"#00C2FF","--icon-stroke-1":null!==(c=null==p?void 0:p.colorHex)&&void 0!==c?c:"#000","--icon-stroke-2":null!==(m=null==p?void 0:p.colorHex2)&&void 0!==m?m:"#ff007a","--icon-stroke-3":null!==(h=null==p?void 0:p.colorHex3)&&void 0!==h?h:"#00C2FF","--icon-fill-1":null!==(v=null==p?void 0:p.colorHex)&&void 0!==v?v:"#000","--icon-fill-2":null!==(x=null==p?void 0:p.colorHex2)&&void 0!==x?x:"#ff007a","--icon-fill-3":null!==(C=null==p?void 0:p.colorHex3)&&void 0!==C?C:"#00C2FF"},dangerouslySetInnerHTML:{__html:S},className:k.iconsGridItemSvg}):(0,n.jsx)("div",{className:k.iconsGridItemImg,style:{display:"flex",alignItems:"center",justifyContent:"center"},children:(0,n.jsx)(s.Spin,{indicator:N,size:"small"})})}),(0,n.jsx)("div",{className:k.iconsGridItemName,title:w.name,children:w.name}),b?(0,n.jsx)("div",{onClick:e=>{e.stopPropagation()},className:k.iconsGridCheckbox,children:(0,n.jsx)(s.Checkbox,{checked:Boolean(g&&g.has(w.hash)),onChange:()=>b(w.hash)})}):null]},w.hash)})}),t&&(0,n.jsx)("div",{className:k.iconsGridLoadingMore,children:(0,n.jsx)(s.Spin,{indicator:N})})]}):H,o&&0===e.length&&(0,n.jsx)("div",{className:k.iconsGridLoading,children:(0,n.jsx)(s.Spin,{indicator:N})})]})};var $=t(4393),M=t(27),E=t(9249);const z=new Set(["и","в","во","на","с","со","к","ко","у","о","об","от","до","по","за","из","без","для","при","про","или","the","a","an","and","or","of","to","in","on","for"]),R={дом:["home","house"],домой:["home"],сердце:["heart"],любовь:["heart"],звезда:["star"],солнце:["sun"],луна:["moon"],облако:["cloud"],дождь:["rain","cloud"],снег:["snow"],огонь:["fire","flame"],вода:["droplet","water"],молния:["bolt","zap","lightning"],пользователь:["user","person"],человек:["user","person","people"],люди:["users","people"],лицо:["face","smile"],улыбка:["smile"],рука:["hand"],глаз:["eye"],ключ:["key"],замок:["lock"],почта:["mail","email","inbox"],письмо:["mail","envelope","email"],конверт:["envelope","mail"],сообщение:["message","chat"],чат:["message","chat"],телефон:["phone"],смартфон:["smartphone","device"],камера:["camera"],фото:["image","photo"],картинка:["image","picture"],изображение:["image","photo"],видео:["video"],музыка:["music"],звук:["volume","speaker","audio"],микрофон:["mic","microphone"],поиск:["search"],лупа:["search"],настройки:["settings","cog","gear"],меню:["menu"],закрыть:["x","close"],удалить:["trash","delete"],корзина:["trash"],редактировать:["edit","pencil"],копировать:["copy"],сохранить:["save"],скачать:["download"],загрузить:["upload"],папка:["folder"],файл:["file","document"],документ:["file","document"],текст:["text"],календарь:["calendar"],время:["clock"],часы:["clock","watch"],карта:["map"],глобус:["globe"],мир:["globe","world","earth"],адрес:["map-pin","location","pin"],метка:["map-pin","marker","pin"],стрелка:["arrow","chevron"],влево:["left","arrow-left","chevron-left"],вправо:["right","arrow-right","chevron-right"],вверх:["up","arrow-up","chevron-up"],вниз:["down","arrow-down","chevron-down"],плей:["play"],пауза:["pause"],стоп:["stop"],галочка:["check"],крестик:["x"],плюс:["plus"],минус:["minus"],покупки:["shopping","cart","bag"],магазин:["store","shop"],подарок:["gift"],щит:["shield"],банк:["bank","building"],картабанковская:["credit-card","card"],уведомление:["bell"],колокол:["bell"],флаг:["flag"],закладка:["bookmark"],ссылка:["link"],код:["code","terminal"],терминал:["terminal"],лампочка:["lightbulb","light-bulb"],идея:["lightbulb"],батарея:["battery"],питание:["power","plug"],сеть:["wifi","network"],принтер:["printer"],монитор:["monitor","display"],компьютер:["computer","laptop","pc"],клавиатура:["keyboard"],книга:["book"],график:["chart","graph"],таблица:["table","grid"],список:["list"],фильтр:["filter"],тег:["tag"],отправить:["send"],поделиться:["share"],нравится:["thumbs","like"],скрыть:["eye-off","hidden"],предупреждение:["alert","warning"],ошибка:["x-circle","alert-circle"],успех:["check-circle"],информация:["info"],помощь:["help"],вопрос:["help","question"],язык:["language","languages","translate"],перевод:["language","translate"],масштаб:["zoom","maximize"],экран:["monitor","screen","display"],цвет:["palette","swatch"],кисть:["brush","paint"],карандаш:["pencil"],выравнивание:["align"],центр:["center"],круг:["circle"],квадрат:["square"],вход:["log-in","login"],выход:["log-out","logout"],профиль:["user","account"],команда:["users","group"],задача:["check","list","todo"],цель:["target"],вложение:["paperclip"],архив:["archive"],ножницы:["scissors"],скрепка:["paperclip"],локация:["map-pin"],навигация:["navigation","compass"],компас:["compass"],самолет:["plane","airplane"],машина:["car"],мяч:["ball"],мячик:["ball"],поезд:["train"],корабль:["ship"],велосипед:["bike","bicycle"],кофе:["coffee"],еда:["utensils","cake","pizza"],собака:["dog"],кошка:["cat"],птица:["bird"],дерево:["tree"],цветок:["flower"],гора:["mountain"],волны:["waves"],зонт:["umbrella"],работа:["briefcase"],школа:["school","academic","graduation"],больница:["cross","heart","medical"],ребенок:["baby"],семья:["home","users"],группа:["users","group"],мужчина:["man","user"],женщина:["woman","user"],кольцо:["ring"],корона:["crown"],медаль:["medal","award"],кубок:["trophy"],рюкзак:["backpack"],чемодан:["luggage"],кошелек:["wallet"],очки:["glasses"],шляпа:["hat"],рубашка:["shirt"],обувь:["shoe"],здание:["building"],окно:["window"],дверь:["door"],лифт:["arrow-up-down","arrows-up-down"],парковка:["parking"],топливо:["fuel"],дорога:["route","road"],мост:["bridge"],река:["waves"],море:["waves"],ночь:["moon"],день:["sun"],таймер:["timer"],будильник:["alarm"],деньги:["banknote","currency","dollar"],процент:["percent"],квитанция:["receipt"],счет:["receipt","document"],договор:["document","signature"],печать:["stamp"],подпись:["signature","pen"],суд:["scale"],полиция:["shield"],пожарные:["fire"],скорая:["life","buoy","cross"],аптека:["pill"],таблетка:["pill"],здоровье:["heart","pulse"],рост:["trending-up","arrow-up"],падение:["trending-down","arrow-down"],робот:["bot","cpu"],мозг:["brain"],база:["database"],сервер:["server"],облакоинтернет:["cloud"],заметка:["note","sticky"],комментарий:["chat","bubble"],якорь:["anchor"],пароль:["key","lock"],отпечаток:["fingerprint"],обновить:["refresh","sync"],синхронизация:["refresh","sync"],наушники:["headphones"],громкость:["volume"],беззвука:["volume-x","mute"],повтор:["repeat"],следующий:["skip-forward","forward"],предыдущий:["skip-back","backward"],камеравыкл:["camera-off"],микрофонвыкл:["mic-off"],телефонзвонок:["phone-call"],входящие:["inbox"],исходящие:["send","outbox"],черновик:["draft","file"],спам:["ban","shield"],рассылка:["mail","send"],подписка:["bell","rss"],отписка:["bell-off"],палитра:["palette"],градиент:["gradient"],слои:["layers"],кроп:["crop"],поворот:["rotate"],гаечный:["wrench"],молоток:["hammer"],баг:["bug"],штрихкод:["barcode"],куаркод:["qr-code"],звезда2:["sparkles"],магия:["wand","sparkles"],снежинка:["snowflake"],радуга:["rainbow"],лист:["leaf"],ракета:["rocket"],спутник:["satellite"],капля:["droplet"],грузовик:["truck"],автобус:["bus"],такси:["car","taxi"],торт:["cake"],пицца:["pizza"],яблоко:["apple"],банан:["banana"],рыба:["fish"],вино:["wine"],пиво:["beer"],чашка:["cup","mug"],рассылка2:["mail","megaphone"],шаблон:["layout","file"],воронка:["filter","funnel"],аналитика:["chart","pie"],отчет:["document","chart"],дашборд:["layout","grid"],поддержка:["life-buoy","headset"],телеграм:["telegram","send"],вотсап:["whatsapp"],инстаграм:["instagram"],ютуб:["youtube"],твиттер:["twitter"],фейсбук:["facebook"],гитхаб:["github","git"],гугл:["google","chrome"],яндекс:["search"],эпл:["apple"],вк:["vk"]};function A(e){return/[\u0400-\u04FF]/.test(e)}function O(e){return e>=48&&e<=57||e>=65&&e<=90||e>=97&&e<=122||e>=1040&&e<=1103||1025===e||1105===e}function P(e){let o=0,t=e.length;for(;o<t&&!O(e.charCodeAt(o));)o+=1;for(;t>o&&!O(e.charCodeAt(t-1));)t-=1;return e.slice(o,t)}function W(e){const o=e.toLowerCase().trim().split(/[\s,.;/\\|]+/).map(P).filter(e=>e.length>=2&&!z.has(e));if(0===o.length)return[];const t=[];for(const e of o)if(A(e)){const o=R[e];(null==o?void 0:o.length)?t.push([...o]):t.push([e])}else t.push([e]);return t}const L=[{json:$.Pt,label:"Lucide"},{json:M.Pt,label:"Tabler Icons"}];function D(e,o){let t=o;const n=e.icons;for(let e=0;e<24;e+=1){const e=n[t];if(!e||"string"!=typeof e.parent)break;t=e.parent}return t}function U(e,o){const t=e.icons[o];return Boolean(t&&"body"in t&&t.hidden)}let q=null;function X(e,o,t){const{haystack:n,slug:i}=e;if(!function(e,o,t){return!!(o.length>=2&&e.includes(o))||0!==t.length&&t.every(o=>o.some(o=>o.length>=2&&e.includes(o)))}(n,o,t))return 0;let r=10;if(o.length>=2&&n.includes(o))i.startsWith(o)?r+=100:n.startsWith(o)?r+=50:n.split(/\s+/).some(e=>e.startsWith(o))?r+=30:r+=15;else if(t.length>0)for(const e of t){const o=e.filter(e=>e.length>=2&&n.includes(e));0!==o.length&&(r+=Math.max(...o.map(e=>i.startsWith(e)?100:n.startsWith(e)?50:n.split(/\s+/).some(o=>o.startsWith(e))?30:15)))}return r}function V(e){const o=e.trim();if(o.length<3)return[];const{direct:t,groups:n}=function(e){return{direct:e.trim().toLowerCase(),groups:W(e)}}(o),i=new Map;for(const e of(q||(q=L.flatMap(({json:e,label:o})=>function(e,o){const t=e.prefix||o.toLowerCase(),n=[];for(const i of Object.keys(e.icons)){const r=e.icons[i];if(r&&"body"in r&&r.hidden)continue;const s=D(e,i);if(U(e,s))continue;if(!(0,E.y)(e,i))continue;const l=`${i} ${i.replace(/-/g," ")}`.toLowerCase();n.push({prefix:t,slug:i,canonical:s,haystack:l,label:o})}return n}(e,o))),q)){const o=X(e,t,n);if(o<=0)continue;const r=`${e.prefix}:${e.canonical}`,s=i.get(r);(!s||o>s.score)&&i.set(r,{score:o})}return Array.from(i.entries()).sort((e,o)=>o[1].score-e[1].score||e[0].localeCompare(o[0])).map(([e])=>e)}function Z(e){var o;const t=e.indexOf(":"),n=t>0?e.slice(0,t):"",i=t>0?e.slice(t+1):e,r=L.find(e=>(e.json.prefix||e.label.toLowerCase())===n),s=null!==(o=null==r?void 0:r.label)&&void 0!==o?o:n;return{hash:e,name:(l=i,l.split("-").map(e=>e.length?e.charAt(0).toUpperCase()+e.slice(1):e).join(" ")),imagePreviewUrl:"",isFree:!0,familySlug:n,familyName:s};var l}var J=t(1452),Q=t(6649),K=t(3817);const Y="path|rect|circle|ellipse|polygon|line|polyline|g";function ee(e){const o=e.trim();if(!o||"none"===o||"transparent"===o)return null;if(/^url\(#/.test(o))return null;if(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/.test(o)){const e=o.match(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6})/);return e?"#"+(3===e[1].length?e[1].replace(/(.)/g,"$1$1"):e[1]).toLowerCase():null}if(/^rgb\(/.test(o)){const e=o.match(/^rgb\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/);if(e)return"#"+[1,2,3].map(o=>parseInt(e[o],10).toString(16).padStart(2,"0")).join("")}if(/^rgba\(/.test(o)){const e=o.match(/^rgba\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*[\d.]+\s*\)/);if(e)return"#"+[1,2,3].map(o=>parseInt(e[o],10).toString(16).padStart(2,"0")).join("")}const t={black:"#000000",white:"#ffffff",red:"#ff0000",green:"#008000",blue:"#0000ff"},n=o.toLowerCase();return t[n]?t[n]:("currentcolor"===n||"inherit"===n||/^[a-zA-Z]+$/.test(o),null)}function oe(e,o){const t=new RegExp(`${o}\\s*:\\s*([^;]+)`,"i"),n=e.match(t);return n?n[1].trim():null}function te(e){let o=0;const t=new RegExp(`<(?:${Y})([^>]*)>`,"gi");let n;for(;null!==(n=t.exec(e));){const e=n[1],t=e.match(/fill\s*=\s*["']([^"']*)["']/i),i=e.match(/style\s*=\s*["']([^"']*)["']/i),r=t&&t[1]&&!/^none$/i.test(t[1])&&!/^url\(#/i.test(t[1]),s=i&&oe(i[1],"fill")&&!/^none$/i.test(oe(i[1],"fill"));(r||s)&&(o+=1)}return o}function ne(e){let o=0;const t=new RegExp(`<(?:${Y})([^>]*)>`,"gi");let n;for(;null!==(n=t.exec(e));){const e=n[1],t=e.match(/stroke\s*=\s*["']([^"']*)["']/i),i=e.match(/style\s*=\s*["']([^"']*)["']/i),r=t&&t[1]&&!/^none$/i.test(t[1])&&!/^url\(#/i.test(t[1]),s=i&&oe(i[1],"stroke")&&!/^none$/i.test(oe(i[1],"stroke"));(r||s)&&(o+=1)}return o}function ie(e){return/<linearGradient/i.test(e)||/<radialGradient/i.test(e)||/fill="url\(#|stroke="url\(#/i.test(e)}function re(e){const o=e.trim().replace(/(?:px|em|ex|%)\s*$/i,""),t=parseFloat(o);return Number.isNaN(t)||t<=0||t>10?null:Math.round(10*t)/10}function se(e){const o=[],t=e.indexOf("</defs>"),n=t>=0?e.slice(t):e,i=new RegExp(`<(?:${Y})[^>]*stroke-width\\s*=\\s*["']([^"']+)["']`,"gi");let r;for(;null!==(r=i.exec(n));){const e=re(r[1]);null!=e&&o.push(e)}const s=new RegExp(`<(?:${Y})[^>]*style\\s*=\\s*["'][^"']*stroke-width\\s*:\\s*([^;"]+)[^"']*["']`,"gi");for(;null!==(r=s.exec(n));){const e=re(r[1]);null!=e&&o.push(e)}if(0===o.length)return;o.sort((e,o)=>e-o);const l=Math.floor(o.length/2);return o.length%2==1?o[l]:(o[l-1]+o[l])/2}function le(e,o){let t=e;const n=/<linearGradient[\s\S]*?<\/linearGradient>/i.test(t)||/<radialGradient[\s\S]*?<\/radialGradient>/i.test(t);if(!/fill="url\(#/i.test(t)&&!/stroke="url\(#/i.test(t)){const e=function(e){var o,t,n,i,r,s,l,a;const c=new Map,d={v:1},u=e=>{const o=ee(e);o&&!c.has(o)&&(c.set(o,d.v),d.v=Math.min(d.v+1,3))},m=e.match(/<svg([^>]*)>/i);if(null==m?void 0:m[1]){const e=m[1],o=e.match(/fill\s*=\s*["']([^"']*)["']/i),t=e.match(/stroke\s*=\s*["']([^"']*)["']/i);!(null==o?void 0:o[1])||/^none$/i.test(o[1])||/^url\(#/i.test(o[1])||u(o[1]),!(null==t?void 0:t[1])||/^none$/i.test(t[1])||/^url\(#/i.test(t[1])||u(t[1])}const h=new RegExp(`<(?:${Y})([^>]*)>`,"gi");let p;for(;null!==(p=h.exec(e));){const e=p[1],c=e.match(/fill\s*=\s*["']([^"']*)["']/i),d=e.match(/style\s*=\s*["']([^"']*)["']/i),m=null===(o=null==d?void 0:d[1])||void 0===o?void 0:o.match(/fill\s*:\s*([^;]+)/i),h=null===(i=null!==(t=null==c?void 0:c[1])&&void 0!==t?t:null===(n=null==m?void 0:m[1])||void 0===n?void 0:n.trim())||void 0===i?void 0:i.trim();!h||/^none$/i.test(h)||/^url\(#/i.test(h)||u(h);const f=e.match(/stroke\s*=\s*["']([^"']*)["']/i),_=e.match(/style\s*=\s*["']([^"']*)["']/i),g=null===(r=null==_?void 0:_[1])||void 0===r?void 0:r.match(/stroke\s*:\s*([^;]+)/i),b=null===(a=null!==(s=null==f?void 0:f[1])&&void 0!==s?s:null===(l=null==g?void 0:g[1])||void 0===l?void 0:l.trim())||void 0===a?void 0:a.trim();!b||/^none$/i.test(b)||/^url\(#/i.test(b)||u(b)}return c}(t),o=o=>{const t=ee(o),n=t?e.get(t):void 0;return 1===n?"var(--icon-color-1)":2===n?"var(--icon-color-2)":3===n?"var(--icon-color-3)":"currentColor"};t=t.replace(/<svg([^>]*)>/i,(e,t)=>{let n=t;const i=t.match(/fill\s*=\s*["']([^"']*)["']/i);!(null==i?void 0:i[1])||/^none$/i.test(i[1])||/^url\(#/i.test(i[1])||(n=n.replace(/fill\s*=\s*["'][^"']*["']/i,`fill="${o(i[1])}"`));const r=t.match(/stroke\s*=\s*["']([^"']*)["']/i);return!(null==r?void 0:r[1])||/^none$/i.test(r[1])||/^url\(#/i.test(r[1])||(n=n.replace(/stroke\s*=\s*["'][^"']*["']/i,`stroke="${o(r[1])}"`)),`<svg${n}>`}),t=t.replace(/<(path|rect|circle|ellipse|polygon|line|polyline)([^>]*?)(\/>|>)/gi,(e,t,n,i)=>{var r,s,l,a,c,d,u,m;let h=n;const p=n.match(/fill\s*=\s*["']([^"']*)["']/i),f=n.match(/style\s*=\s*["']([^"']*)["']/i),_=null===(r=null==f?void 0:f[1])||void 0===r?void 0:r.match(/fill\s*:\s*([^;]+)/i),g=null===(a=null!==(s=null==p?void 0:p[1])&&void 0!==s?s:null===(l=null==_?void 0:_[1])||void 0===l?void 0:l.trim())||void 0===a?void 0:a.trim();if(g&&!/^none$/i.test(g)&&!/^url\(#/i.test(g)){const e=o(g);p?h=h.replace(/fill\s*=\s*["'][^"']*["']/i,`fill="${e}"`):(null==f?void 0:f[1])&&(h=h.replace(/style\s*=\s*["']([^"']*)["']/i,(o,t)=>'style="'+t.replace(/fill\s*:\s*[^;]+/gi,"fill: "+e)+'"'))}const b=n.match(/stroke\s*=\s*["']([^"']*)["']/i),v=n.match(/style\s*=\s*["']([^"']*)["']/i),x=null===(c=null==v?void 0:v[1])||void 0===c?void 0:c.match(/stroke\s*:\s*([^;]+)/i),y=null===(m=null!==(d=null==b?void 0:b[1])&&void 0!==d?d:null===(u=null==x?void 0:x[1])||void 0===u?void 0:u.trim())||void 0===m?void 0:m.trim();if(y&&!/^none$/i.test(y)&&!/^url\(#/i.test(y)){const e=o(y);b?h=h.replace(/stroke\s*=\s*["'][^"']*["']/i,`stroke="${e}"`):(null==v?void 0:v[1])&&(h=h.replace(/style\s*=\s*["']([^"']*)["']/i,(o,t)=>'style="'+t.replace(/stroke\s*:\s*[^;]+/gi,"stroke: "+e)+'"'))}return`<${t}${h}${i}`})}return n&&(t=t.replace(/<linearGradient([^>]*?)>([\s\S]*?)<\/linearGradient>/gi,(e,o,t)=>{let n=0;return`<linearGradient${o}>${t.replace(/<stop([^>]*?)>/gi,(e,o)=>{const t=0===n?"var(--icon-grad-1)":"var(--icon-grad-2)";return n+=1,/stop-color\s*=/.test(o)?"<stop"+o.replace(/stop-color="[^"]*"/i,'stop-color="'+t+'"')+">":"<stop"+o+' stop-color="'+t+'">'})}</linearGradient>`}),t=t.replace(/<radialGradient([^>]*?)>([\s\S]*?)<\/radialGradient>/gi,(e,o,t)=>{let n=0;return`<radialGradient${o}>${t.replace(/<stop([^>]*?)>/gi,(e,o)=>{const t=0===n?"var(--icon-grad-1)":"var(--icon-grad-2)";return n+=1,/stop-color\s*=/.test(o)?"<stop"+o.replace(/stop-color="[^"]*"/i,'stop-color="'+t+'"')+">":"<stop"+o+' stop-color="'+t+'">'})}</radialGradient>`})),"number"!=typeof(null==o?void 0:o.strokeWidth)||Number.isNaN(o.strokeWidth)||(/stroke-width\s*=\s*["'][^"']*["']/i.test(t)&&(t=t.replace(/stroke-width\s*=\s*["'][^"']*["']/gi,`stroke-width="${o.strokeWidth}"`)),/stroke-width\s*:/.test(t)&&(t=t.replace(/stroke-width\s*:\s*[^;]+/gi,`stroke-width: ${o.strokeWidth}`)),/stroke-width/i.test(t)||(t=t.replace(/<svg/,`<svg stroke-width="${o.strokeWidth}"`))),t=t.replace(/<svg([^>]*)>/i,(e,o)=>`<svg${o.replace(/\swidth="[^"]*"/i,"").replace(/\sheight="[^"]*"/i,"")} width="100%" height="100%">`),t}const ae=new Map,ce={[$.Pt.prefix||"lucide"]:$.Pt,[M.Pt.prefix||"tabler"]:M.Pt};function de(e){const o=r().useCallback(async(o,t)=>{var n,i,r,s,l,a,c,d;const u=function(e){const o=e.indexOf(":");if(o<=0)return null;const t=e.slice(0,o),n=e.slice(o+1);return n?{prefix:t,slug:n}:null}(o);if(!u)throw new Error(`Invalid icon id (expected prefix:name): ${o}`);const{prefix:m,slug:h}=u,p=null!==(n=null==t?void 0:t.size)&&void 0!==n?n:96,f=[o,e?"css=1":"css=0",e?"":`c1=${null!==(r=null===(i=null==t?void 0:t.inlineColors)||void 0===i?void 0:i.colorHex)&&void 0!==r?r:""}|c2=${null!==(l=null===(s=null==t?void 0:t.inlineColors)||void 0===s?void 0:s.colorHex2)&&void 0!==l?l:""}|c3=${null!==(c=null===(a=null==t?void 0:t.inlineColors)||void 0===a?void 0:a.colorHex3)&&void 0!==c?c:""}`,null!=(null==t?void 0:t.strokeWidth)?`sw=${t.strokeWidth}`:"",`s=${p}`].filter(Boolean).join("|"),_=ae.get(f);if(_)return _;if(null===(d=null==t?void 0:t.signal)||void 0===d?void 0:d.aborted)throw new DOMException("Aborted","AbortError");const g=function(e,o,t){const n=ce[e];if(!n)throw new Error(`Unknown icon set prefix: ${e}`);const i=(0,E.y)(n,o);if(!i)throw new Error(`Unknown icon: ${e}:${o}`);const r=(0,J.p)(i,{width:t,height:t});let s=(0,Q.U)(r.body,r.attributes);return s=s.replace(/<svg([^>]*)>/i,(e,o)=>`<svg${o.replace(/\swidth="[^"]*"/i,"").replace(/\sheight="[^"]*"/i,"")} width="100%" height="100%">`),s}(m,h,p);let b=g;e?b=le(b,{strokeWidth:null==t?void 0:t.strokeWidth}):(null==t?void 0:t.inlineColors)&&(b=(0,K.K7)(b,t.inlineColors));const v={text:b,url:`data:image/svg+xml;utf8,${encodeURIComponent(b)}`,original:g};return ae.set(f,v),v},[e]);return{fetchSvgDataUrl:o,normalizeSvgForCss:le}}var ue=t(6213),me=t(969),he=t(5070),pe=t(486),fe=t(5954),_e=t(520),ge=t(3435),be=t(3795),ve=t(7407),xe=t(7742);const ye=({customRequest:e,query:o,setQuery:t,inputRef:i})=>{var a,d,u;const{t:m}=(0,l.Bd)(),[h,p]=r().useState(""),f=void 0!==o?o:h,_=void 0!==t?t:p,[g,b]=r().useState(""),[v,x]=r().useState([]),[y,C]=r().useState(0),[w,T]=r().useState(!1),[F,j]=r().useState(!1),[B,N]=r().useState(!1),[$,M]=r().useState(null),[E,z]=r().useState({}),[R,A]=r().useState({}),[O,P]=r().useState("#000000"),[W,L]=r().useState("#ff007a"),[D,U]=r().useState("#00C2FF"),[q,X]=r().useState(1),[J,Q]=r().useState(50),re=!0,[le,ae]=r().useState(!1),ce=(0,c.wh)(),{options:ye}=ce,Ce=r().useRef(!1),we=r().useRef(null),Te=r().useRef(0),ke=r().useRef(null),Se=r().useRef(null),Ie=r().useRef(void 0);Ie.current=function(e){var o;if(!e)return;if(e.handleTranslate)return e.handleTranslate;const t=null===(o=e.iconStockTranslateUrl)||void 0===o?void 0:o.trim();return t?function(e){const o=e.trim();return async(e,t)=>{var n,i;const r=e.trim();if(!/[\u0400-\u04FF]/.test(r))return r;try{const s=await fetch(o,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({text:e,locale:t.locale}),credentials:"same-origin"});if(!s.ok)return r;const l=await s.json(),a=null!==(i=null!==(n=l.translatedText)&&void 0!==n?n:l.text)&&void 0!==i?i:r;return String(a).trim()||r}catch(e){return r}}}(t):void 0}(null==ye?void 0:ye.config);const Fe=r().useRef(null===(a=null==ye?void 0:ye.config)||void 0===a?void 0:a.locale);Fe.current=null===(d=null==ye?void 0:ye.config)||void 0===d?void 0:d.locale;const je=r().useRef(null),Ge=r().useRef(new Set),Be=r().useRef(null),Ne=r().useRef(new Set),[He,$e]=r().useState(new Set),Me=r().useRef([]),Ee=r().useRef(null),{fetchSvgDataUrl:ze,normalizeSvgForCss:Re}=de(re),Ae=r().useMemo(()=>{if(0===v.length)return null;const e=new Set(v.map(e=>e.hash)),o=Object.keys(R).some(o=>e.has(o))?R:E,t=v.map(e=>o[e.hash]).filter(e=>Boolean(e));return 0===t.length?null:function(e){const o=[],t=new Set;let n,i=0,r=0,s=!1;for(const l of e){i+=l.fillsCount,r+=l.strokesCount,l.hasGradient&&(s=!0);for(const e of l.colors){const n=ee(e);n&&!t.has(n)&&(t.add(n),o.push(e))}null==n&&null!=l.strokeWidth&&(n=l.strokeWidth)}return{colors:o,fillsCount:i,strokesCount:r,hasGradient:s,strokeWidth:n}}(t.map(e=>{return{colors:function(e){const o=[],t=new Set;Array.from(e.matchAll(/<stop[^>]*?stop-color\s*=\s*["']([^"']+)["']/gi)).map(e=>e[1]).forEach(e=>{const n=ee(e);n&&!t.has(n)&&(t.add(n),o.push(e))});const n=new RegExp(`<(?:${Y})([^>]*)>`,"gi");let i;for(;null!==(i=n.exec(e));){const e=i[1],n=e.match(/fill\s*=\s*["']([^"']*)["']/i);if(n&&n[1]){const e=ee(n[1]);e&&!t.has(e)&&(t.add(e),o.push(n[1]))}const r=e.match(/stroke\s*=\s*["']([^"']*)["']/i);if(r&&r[1]){const e=ee(r[1]);e&&!t.has(e)&&(t.add(e),o.push(r[1]))}const s=e.match(/style\s*=\s*["']([^"']*)["']/i);if(s&&s[1]){const e=oe(s[1],"fill");if(e){const n=ee(e);n&&!t.has(n)&&(t.add(n),o.push(e))}const n=oe(s[1],"stroke");if(n){const e=ee(n);e&&!t.has(e)&&(t.add(e),o.push(n))}}}const r=e.match(/<svg([^>]*)>/i);if(r&&r[1]){const e=r[1];for(const[n,i]of[["fill",/fill\s*=\s*["']([^"']*)["']/i],["stroke",/stroke\s*=\s*["']([^"']*)["']/i]]){const n=e.match(i);if(n&&n[1]){const e=ee(n[1]);e&&!t.has(e)&&(t.add(e),o.push(n[1]))}}const n=e.match(/style\s*=\s*["']([^"']*)["']/i);if(n&&n[1])for(const e of["fill","stroke"]){const i=oe(n[1],e);if(i){const e=ee(i);e&&!t.has(e)&&(t.add(e),o.push(i))}}}return o}(o=e),fillsCount:te(o),strokesCount:ne(o),hasGradient:ie(o),strokeWidth:se(o)};var o}))},[v,R,E]),Oe=Boolean(null==Ae?void 0:Ae.hasGradient),Pe=r().useMemo(()=>v.some(e=>{const o=E[e.hash];return o&&/var\(--icon-color-2\)/i.test(o)}),[v,E]),We=r().useMemo(()=>v.some(e=>{const o=E[e.hash];return o&&/var\(--icon-color-3\)/i.test(o)}),[v,E]),Le=r().useMemo(()=>!!Ae&&(Oe||Ae.colors.length>=2&&Pe),[Ae,Oe,re,Pe]),De=r().useMemo(()=>!!Ae&&Ae.colors.length>=3&&We,[Ae,re,We]);r().useEffect(()=>(Ce.current=!0,()=>{var e,o;Ce.current=!1;try{null===(e=je.current)||void 0===e||e.abort(),null===(o=Be.current)||void 0===o||o.abort()}catch(e){}}),[]);const Ue=r().useRef(f),qe=r().useCallback(async e=>{var o,t,n;const i=null!==(t=null===(o=e.override)||void 0===o?void 0:o.query)&&void 0!==t?t:g;if(!i||i.trim().length<3)return;if(e.initial?F:B||F)return;if(!Ce.current)return;e.initial?(Me.current=void 0!==(null===(n=e.override)||void 0===n?void 0:n.stockIds)?e.override.stockIds:V(i),j(!0),x([]),z({}),A({}),C(0),T(!1)):N(!0);const r=Me.current,l=e.initial?0:y,a=(e.initial,30),c=`${i}|${l}|${a}|${e.initial?"i":"m"}`;if(!Ne.current.has(c)){Ne.current.add(c);try{const o=r.slice(l,l+a).map(Z);if(!Ce.current)return;if(e.initial){const e=o.filter((e,o,t)=>t.findIndex(o=>o.hash===e.hash)===o);x(e)}else x(e=>{const t=new Set(e.map(e=>e.hash)),n=o.filter(e=>!t.has(e.hash));return n.length>0?[...e,...n]:e});T(l+o.length<r.length),C(l+o.length)}catch(e){if("AbortError"===(null==e?void 0:e.name))return;console.error(e),s.message.error(m("Request error"))}finally{Ce.current&&(e.initial?j(!1):N(!1)),Ne.current.delete(c)}}},[g,B,F,y,m]);r().useEffect(()=>{Se.current=qe},[qe]);const Xe=r().useCallback(async e=>{var o;if(!e||e.trim().length<3)return;const t=e.trim();if(ke.current===t)return;const n=++Te.current,i=e.trim();let r,s=i;if(Ie.current)try{const o=await Ie.current(e,{locale:Fe.current});s=(null!=o?o:i).trim()||i}catch(e){console.error("IconsTab: translation error",e),s=i}n===Te.current&&(Ge.current.clear(),M(null),$e(new Set),b(s),Ie.current&&i!==s&&(r=function(e,o){if(0===o.length)return e;const t=new Set(e),n=[...e];for(const e of o)t.has(e)||(t.add(e),n.push(e));return n}(V(s),V(i))),await(null===(o=Se.current)||void 0===o?void 0:o.call(Se,{initial:!0,override:{query:s,stockIds:r}})),ke.current=t)},[]),Ve=r().useCallback(async()=>{!f||f.trim().length<3||(we.current&&(window.clearTimeout(we.current),we.current=null),await Xe(f))},[f,Xe]),Ze=r().useCallback(()=>{Te.current+=1,Ge.current.clear(),Me.current=[],Ee.current=null,b(""),x([]),N(!1),T(!1),C(0),ke.current=null,M(null),$e(new Set),P("#000000"),L("#ff007a"),U("#00C2FF")},[]);r().useEffect(()=>{const e=Ue.current;e&&e.trim().length>=3&&Xe(e)},[]),r().useEffect(()=>{const e=f.trim();we.current&&(window.clearTimeout(we.current),we.current=null),e.length<3?Ze():we.current=window.setTimeout(()=>{Xe(e)},700)},[f,Ze,Xe]);const Je=r().useCallback(e=>{M(e.hash)},[]);r().useEffect(()=>{var e;if(0===v.length)return;let o=v.map(e=>e.hash).filter(e=>!E[e]);if(o=o.filter(e=>!Ge.current.has(e)),0===o.length)return;let t=!1;null===(e=je.current)||void 0===e||e.abort();const n=new AbortController;return je.current=n,async function(e,o,t){if(0===e.length)return[];const n=new Array(e.length);let i=0;const r=Math.max(1,Math.min(o,e.length));return await Promise.all(Array.from({length:r},()=>(async()=>{for(;;){const o=i++;if(o>=e.length)return;n[o]=await t(e[o])}})())),n}(o,8,e=>ze(e,{strokeWidth:"number"==typeof q?q:void 0,size:J,signal:n.signal,inlineColors:void 0}).then(o=>({h:e,r:o})).catch(o=>("AbortError"===(null==o?void 0:o.name)||Ge.current.add(e),{h:e,r:null}))).then(e=>{if(t||!Ce.current)return;const o={},n={};e.forEach(e=>{e&&e.h&&e.r&&(o[e.h]=e.r.text,e.r.original&&(n[e.h]=e.r.original))}),Object.keys(o).length>0&&z(e=>Object.assign(Object.assign({},e),o)),Object.keys(n).length>0&&A(e=>Object.assign(Object.assign({},e),n))}).catch(()=>{}),()=>{t=!0,n.abort()}},[O,W,D,ze,v,J,q,E,re]),r().useEffect(()=>{if(0===v.length)return;const e=v.map(e=>e.hash),o={};let t=!1;e.forEach(e=>{const n=R[e]||E[e];if(!n)return;const i=Re(n,{strokeWidth:"number"==typeof q?q:void 0});i&&i!==E[e]&&(o[e]=i,t=!0)}),t&&Object.keys(o).length>0&&z(e=>Object.assign(Object.assign({},e),o))},[v,Re,R,q,E]),r().useEffect(()=>{if(0===v.length)return;const e=g.trim();if(!e||Ee.current===e)return;const o=v.find(e=>R[e.hash]);if(!o)return;const t=R[o.hash];if(!t)return;Ee.current=e;const n=function(e){var o,t,n,i,r,s,l,a;const c=[],d=new Set,u=e=>{const o=ee(e);o&&!d.has(o)&&(d.add(o),c.push(e))},m=Array.from(e.matchAll(/<stop[^>]*?stop-color\s*=\s*["']([^"']+)["']/gi)).map(e=>e[1]);if(m.length>=2)return m.slice(0,3).forEach(e=>u(e)),c;const h=e.match(/<svg([^>]*)>/i);if(null==h?void 0:h[1]){const e=h[1],o=e.match(/fill\s*=\s*["']([^"']*)["']/i),t=e.match(/stroke\s*=\s*["']([^"']*)["']/i);!(null==o?void 0:o[1])||/^none$/i.test(o[1])||/^url\(#/i.test(o[1])||u(o[1]),!(null==t?void 0:t[1])||/^none$/i.test(t[1])||/^url\(#/i.test(t[1])||u(t[1])}const p=new RegExp(`<(?:${Y})([^>]*)>`,"gi");let f;for(;null!==(f=p.exec(e));){const e=f[1],c=e.match(/fill\s*=\s*["']([^"']*)["']/i),d=e.match(/style\s*=\s*["']([^"']*)["']/i),m=null===(o=null==d?void 0:d[1])||void 0===o?void 0:o.match(/fill\s*:\s*([^;]+)/i),h=null===(i=null!==(t=null==c?void 0:c[1])&&void 0!==t?t:null===(n=null==m?void 0:m[1])||void 0===n?void 0:n.trim())||void 0===i?void 0:i.trim();!h||/^none$/i.test(h)||/^url\(#/i.test(h)||u(h);const p=e.match(/stroke\s*=\s*["']([^"']*)["']/i),_=e.match(/style\s*=\s*["']([^"']*)["']/i),g=null===(r=null==_?void 0:_[1])||void 0===r?void 0:r.match(/stroke\s*:\s*([^;]+)/i),b=null===(a=null!==(s=null==p?void 0:p[1])&&void 0!==s?s:null===(l=null==g?void 0:g[1])||void 0===l?void 0:l.trim())||void 0===a?void 0:a.trim();!b||/^none$/i.test(b)||/^url\(#/i.test(b)||u(b)}return c.slice(0,3)}(t),i=e=>{const o=(e||"").trim().match(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$/);return o?"#"+(3===o[1].length?o[1].replace(/(.)/g,"$1$1"):o[1]).toLowerCase():function(e){var o;const t=e.trim();if(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$/.test(t)){const e=t.match(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6})/);if(e)return"#"+(3===e[1].length?e[1].replace(/(.)/g,"$1$1"):e[1]).toLowerCase()}const n=t.match(/^rgb\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/);if(n)return"#"+[1,2,3].map(e=>parseInt(n[e],10).toString(16).padStart(2,"0")).join("");const i=t.match(/^rgba\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*[\d.]+\s*\)/);return i?"#"+[1,2,3].map(e=>parseInt(i[e],10).toString(16).padStart(2,"0")).join(""):null!==(o={black:"#000000",white:"#ffffff",red:"#ff0000",green:"#008000",blue:"#0000ff"}[t.toLowerCase()])&&void 0!==o?o:ee(t)||"#000000"}(e)};n[0]&&P(i(n[0])),n[1]&&L(i(n[1])),n[2]&&U(i(n[2]))},[g,v,R]);const Qe=r().useCallback(e=>(0,K.K7)(e,{colorHex:O,colorHex2:W,colorHex3:D}),[O,W,D]),Ke=r().useCallback(e=>{$e(o=>{const t=new Set(o);return t.has(e)?t.delete(e):t.add(e),t})},[]),Ye=r().useCallback(()=>{$e(new Set)},[]),eo=r().useMemo(()=>{if(1===He.size){const[e]=Array.from(He);return v.find(o=>o.hash===e)||null}return 0===He.size&&$&&v.find(e=>e.hash===$)||null},[v,$,He]),oo=r().useCallback((e,o="image/png")=>{try{const t=e.split(",");if(t.length<2)return new Blob([],{type:o});const n=t[1]||"",i=atob(n),r=new Array(i.length);for(let e=0;e<i.length;e+=1)r[e]=i.charCodeAt(e);const s=new Uint8Array(r);return new Blob([s],{type:o})}catch(e){return new Blob([],{type:o})}},[]),to=r().useCallback(async(e,o)=>{try{let t=E[e.hash]||R[e.hash];t||(t=(await ze(e.hash,{strokeWidth:"number"==typeof q?q:void 0,size:J,signal:o,inlineColors:void 0})).text);const n=Qe(t),i=(0,K.of)(n,J);return(0,K.e2)(n,i.width,i.height)}catch(e){return null}},[Qe,O,W,D,ze,R,J,q,E,re]),no=r().useCallback(async o=>{var t;try{if(!Ce.current)return;ae(!0),null===(t=Be.current)||void 0===t||t.abort();const n=new AbortController;Be.current=n;const i=await to(o,n.signal);if(!Ce.current||!i)return;await Promise.resolve(e(i))}catch(e){console.error("IconsTab: insert error",e),s.message.error(m("Request error"))}finally{Ce.current&&ae(!1)}},[e,to,m]),{isCopyIconsModalVisible:io,isCopyLoading:ro,copyForm:so,openCopyModal:lo,closeCopyModal:ao,resetAfterClose:co,handleCopyTreeSelect:uo,handleIconsCopyOk:mo,fetchChildFolders:ho,generateMenuItemsFromFolders:po,handleCreateFolderAndCopy:fo}=(({items:e,selectedHashes:o,getPngDataUrlForItem:t,dataUrlToBlob:n,clearSelection:i})=>{const{t:a}=(0,l.Bd)(),{options:d,state:u}=(0,c.wh)(),m=(0,ge.E)(),[h,p]=r().useState(!1),[f]=s.Form.useForm(),[_,g]=r().useState(!1),b=r().useRef(!1),{state:v,actions:{fetchFolders:x,fetchChildFolders:y,handleModalOk:C}}=(0,c.nv)(),{EmptyFolderIcon:w}=(0,G.D)(),{activeFormField:T,setActiveFormField:k,generateMenuItemsFromFolders:S}=(0,_e.p)({folders:Array.isArray(v.folders)?v.folders:[],selectedFolder:u.selectedFolder,EmptyFolderIcon:w,handleCreateFolderModalOk:C,setIsLoading:g,t:a}),I=r().useCallback(async()=>{await x(),p(!0)},[x]),F=r().useCallback(async e=>{e.length>0&&(f.setFieldsValue({targetFolder:e[0]}),T!==e[0].toString()&&k(""))},[T,f,k]),j=r().useCallback(async r=>{var s,l;try{const{dataProviders:l}=d;if(!l||!l.uploadFile&&!l.uploadFiles)return void m.error({id:"FILES_UPLOAD_PROVIDER_NOT_CONFIGURED",message:a("API-endpoint for file upload is not configured"),placement:"bottomRight"});const c=r||(null==u?void 0:u.selectedFolder)||void 0,h=Array.from(o);if(0===h.length)return;const p=null!==(s=l.uploadFile)&&void 0!==s?s:async e=>{var o,t,n;if(!l.uploadFiles)throw new Error("Upload is not supported by data provider");const i=await l.uploadFiles({folderId:e.folderId,items:[{name:e.name,size:e.size,type:e.type,folderId:e.folderId,data:e.data,extension:e.extension}]}),r=null===(o=null==i?void 0:i.detailed)||void 0===o?void 0:o[0];if(!i||!i.success||!r||!1===r.success){const e=(null===(t=null==r?void 0:r.error)||void 0===t?void 0:t.message)||(null===(n=null==i?void 0:i.error)||void 0===n?void 0:n.message)||"Upload failed";throw new Error(e)}return r.data},{successCount:f,failCount:_}=await async function(e){var o;const{hashes:t,items:n,folderId:i,dataProviders:r,getPngDataUrlForItem:s,dataUrlToBlob:l,config:a}=e;let c=0,d=0;for(const e of t){const t=n.find(o=>o.hash===e);if(!t){d+=1;continue}const u=await s(t);if(!u){d+=1;continue}const m=(null===(o=t.name)||void 0===o?void 0:o.trim())||`icon-${e}`,h=(0,ve.Px)(`${m}.png`,a),p=await(0,xe.v)(r,h,i,!1,(0,be.m)(a)),f=l(u,"image/png"),_=new File([f],p,{type:"image/png",lastModified:Date.now()});try{await r.uploadFile({name:p,size:_.size,type:_.type,folderId:i,data:_,extension:"png"}),c+=1}catch(e){d+=1}}return{successCount:c,failCount:d}}({hashes:h,items:e,folderId:c,dataProviders:{uploadFile:p,getFiles:l.getFiles,getFolders:l.getFolders},getPngDataUrlForItem:t,dataUrlToBlob:n,config:null==d?void 0:d.config});f>0&&m.success({id:"FILES_COPY_SUCCESS",message:a("Files copied"),placement:"bottomRight",data:{successCount:f,totalCount:h.length,itemIds:h,folderId:null!=c?c:null}}),_>0&&m.error({id:"FILES_COPY_ERROR",message:a("При копировании произошли ошибки"),placement:"bottomRight",data:{failCount:_,totalCount:h.length,itemIds:h,folderId:null!=c?c:null}}),i()}catch(e){console.error(e),m.error({id:"FILES_COPY_ERROR",message:a("При копировании произошли ошибки"),placement:"bottomRight",innerException:e,data:{failCount:Array.from(o).length||0,totalCount:Array.from(o).length||0,itemIds:Array.from(o),folderId:null!==(l=null==u?void 0:u.selectedFolder)&&void 0!==l?l:null}})}},[i,n,t,e,m,d,o,null==u?void 0:u.selectedFolder,a]),B=r().useCallback(()=>{_||b.current||(p(!1),k(""),g(!1))},[_,k]),N=r().useCallback(()=>{k(""),g(!1)},[k]),H=r().useCallback(async e=>{if(!b.current){b.current=!0,g(!0);try{await j(null!=e?e:null),p(!1),k("")}finally{b.current=!1,g(!1)}}},[j,k]),$=r().useCallback(()=>{var e;const o=null!==(e=u.selectedFolder)&&void 0!==e?e:"folders";k(o),f.setFieldsValue({folderName:a("New folder"),targetFolder:o})},[f,u.selectedFolder,k,a]);return{isCopyIconsModalVisible:h,isCopyLoading:_,copyForm:f,openCopyModal:I,closeCopyModal:B,resetAfterClose:N,handleCopyTreeSelect:F,handleIconsCopyOk:H,handleCreateFolderAndCopy:$,fetchChildFolders:y,generateMenuItemsFromFolders:S}})({items:v,selectedHashes:He,getPngDataUrlForItem:to,dataUrlToBlob:oo,clearSelection:Ye}),_o=Boolean(g.trim())&&(v.length>0||F),go=_o&&He.size>0;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:`${k.iconsTab} ${g.trim()?k.hasSearch:""}`,children:[_o&&go?(0,n.jsxs)("div",{className:k.iconsHeaderContainer,children:[(0,n.jsxs)("div",{className:k.iconsHeaderContainerLeft,children:[(0,n.jsxs)(s.Typography.Text,{type:"secondary",children:[He.size," ",m("selected")]}),(0,n.jsx)(s.Button,{icon:(0,n.jsx)(ue.Q,{size:16}),onClick:Ye,children:m("Deselected")})]}),(0,n.jsx)(s.Space,{children:(0,n.jsx)(s.Button,{icon:(0,n.jsx)(me.U,{size:16}),onClick:lo,children:m("Copy to folder")})})]}):(0,n.jsx)(S,{query:f,onQueryChange:_,onSubmit:Ve,hasResults:v.length>0||F,inputRef:i}),_o?(0,n.jsx)(I,{colorHex:O,setColorHex:P,colorHex2:W,setColorHex2:L,colorHex3:D,setColorHex3:U,sizePx:J,setSizePx:Q,strokeWidth:q,setStrokeWidth:X,showSecondColor:Le,showThirdColor:De}):null,(0,n.jsx)(H,{items:v,loading:F,isCollectingResults:B,hasMore:w,hasQuery:Boolean(g.trim()),selectedHash:$,onItemClick:Je,onInsert:no,onLoadMore:()=>{qe({initial:!1}).catch(()=>{})},colorVars:{colorHex:O,colorHex2:W,colorHex3:D},svgTextMap:E,previewSize:J,selectedHashes:He,onToggleSelect:Ke}),eo?(0,n.jsxs)("div",{className:k.iconsBottomBar,children:[(0,n.jsx)(s.Divider,{className:"zero-divider"}),(0,n.jsx)("div",{className:k.iconsBottomBarContent,children:(0,n.jsx)(s.Space,{children:(0,n.jsx)(s.Button,{size:"large",type:"primary",style:{height:40},loading:le,onClick:()=>no(eo),children:m("Choose")})})})]}):null]}),(0,n.jsx)(s.Modal,{title:(0,n.jsx)("div",{className:"modal-title",children:m("Copy to folder")}),open:io,onCancel:()=>{ro||ao()},maskClosable:!ro,closable:!ro,keyboard:!ro,footer:(0,n.jsxs)("div",{className:fe.default.formFooter,children:[(0,n.jsxs)(s.Button,{className:fe.default.folderButton,onClick:fo,loading:ro,children:[(0,n.jsx)(he.J,{size:18,strokeWidth:null===(u=ye.config)||void 0===u?void 0:u.iconStrokeWidth}),m("Create folder")]}),(0,n.jsx)(s.Button,{type:"primary",className:fe.default.folderButton,onClick:()=>{ao()},loading:ro,children:m("Done")})]}),afterClose:()=>co(),children:(0,n.jsxs)("div",{className:k.copyToFolderModalBody,children:[ro?(0,n.jsx)("div",{className:k.copyToFolderModalLoadingOverlay,children:(0,n.jsx)(s.Spin,{size:"large"})}):null,(0,n.jsx)(s.Form,{form:so,layout:"vertical",initialValues:{targetFolder:"folders",folderName:m("New folder"),is_force_create:!1},children:(0,n.jsxs)("div",{className:fe.default.foldersWrapper,children:[(0,n.jsx)(s.Form.Item,{name:"targetFolder",rules:[{required:!0,message:m("Select the destination folder")}],className:fe.default.formItem,children:(0,n.jsx)(pe.z,{onSelect:uo,generateMenuItems:()=>po({targetForm:so,onTreeSelect:uo,onComplete:mo,actionButtonText:m("Copy here")}),fetchChildFolders:ho,disabledFolders:[],mode:"selection",className:"folderSelectionTree",defaultExpandAll:!0})}),(0,n.jsx)(s.Form.Item,{name:"folderName",style:{display:"none"},rules:[{required:!0,validator:(e,o)=>"string"==typeof o&&0===o.trim().length?Promise.reject(new Error(m("Enter the name of the folder"))):Promise.resolve()}],children:(0,n.jsx)(s.Input,{})}),(0,n.jsx)(s.Form.Item,{name:"is_force_create",style:{display:"none"},children:(0,n.jsx)(s.Input,{})})]})})]})})]})},Ce=ye},9875:(e,o,t)=>{var n=t(1601),i=t(6314)(n);i.push([e.id,'.iconsTab-module__iconsTab__rVCdL{display:flex;flex-direction:column;height:100%;min-height:0}.iconsTab-module__iconsTab__rVCdL.iconsTab-module__hasSearch__eOBPx{padding-top:0}.iconsTab-module__iconsSearchWrapper__Wl05l{width:100%;height:100%;min-height:0;overflow:hidden;box-sizing:border-box;line-height:0;display:flex;flex-direction:column;align-items:center;padding:24px}.iconsTab-module__iconsSearchForm__pOT9P{display:flex;gap:8px;width:100%;margin-bottom:0}.iconsTab-module__iconsSearchFormCenteredContainer__EcZ66{display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;width:100%;padding:24px 24px 0}.iconsTab-module__iconsSearchFormCentered__mBHMX{display:flex;flex-direction:row;width:100%;align-items:flex-start;justify-content:center}.iconsTab-module__iconsSearchFormCentered__mBHMX .iconsTab-module__iconsSearchFormInput__aOh5i{width:640px;max-width:100%;padding:0;margin:auto auto 12px;transition:all 300ms ease}.iconsTab-module__iconsSearchFormCentered__mBHMX .iconsTab-module__iconsSearchFormInputInput__P1TM6{max-width:100%;width:100%}.iconsTab-module__iconsSearchFormInput__aOh5i{width:240px;padding:0;margin-bottom:0;transition:all 300ms ease}.iconsTab-module__iconsSearchResults__iMIGw{width:100%;display:flex;flex-direction:row;gap:8px;align-items:flex-start;justify-content:flex-start}.iconsTab-module__iconsSearchResults__iMIGw .iconsTab-module__iconsSearchFormInput__aOh5i{width:240px;flex:0 0 auto;margin-bottom:0}.iconsTab-module__iconsControlsControls__fPlU6{display:flex;align-items:center;gap:16px}.iconsTab-module__iconsSearchFormInputInput__P1TM6{width:100%}.iconsTab-module__iconsControls__U6HDG{display:flex;justify-content:space-between;align-items:center;width:100%;padding:24px 6px 24px 24px;border-bottom:1px solid var(--colorBorder)}.iconsTab-module__iconsControlsFamilySlug__WcZT7{opacity:.7}.iconsTab-module__iconsControlElement___RXMX{display:flex;align-items:center;gap:8px}.iconsTab-module__iconsControlElement___RXMX>span{color:var(--colorTextTertiary)}.iconsTab-module__iconsControlsStrokeWidth__p7z65{display:flex;align-items:center;gap:8px}.iconsTab-module__iconsControlsStrokeWidth__p7z65>span{color:var(--colorTextTertiary)}.iconsTab-module__iconsControlsStrokeWidth__p7z65 .iconsTab-module__ant-input-number__gVeff{width:80px}.iconsTab-module__iconsControlsCompact__kjz5q{position:relative}.iconsTab-module__iconsControlsInputNumber__uJAmX{width:110px}.iconsTab-module__iconsControlsInputNumber__uJAmX .ant-input-number,.iconsTab-module__iconsControlsInputNumber__uJAmX .ant-input-number-focused{border-top-left-radius:6px;border-bottom-left-radius:6px}.iconsTab-module__iconsControlsDropdownBtn__CsHya{padding:0;height:32px;min-width:36px;width:36px;border-top-right-radius:6px !important;border-bottom-right-radius:6px !important;border-top-left-radius:0 !important;border-bottom-left-radius:0 !important;display:inline-flex;align-items:center;justify-content:center;color:var(--colorTextTertiary)}.iconsTab-module__iconsControlsDropdownBtn__CsHya .anticon{font-size:12px;line-height:1}.iconsTab-module__iconsControlsDropdownBtn__CsHya:hover{color:var(--colorTextSecondary)}.iconsTab-module__iconsControlsCompact__kjz5q .iconsTab-module__iconsControlsDropdownBtn__CsHya{border-top-right-radius:6px !important;border-bottom-right-radius:6px !important}.iconsTab-module__sliderDropdown__rp1Dw{position:absolute;left:50%;transform:translateX(-50%);top:calc(100% + 6px);width:240px;background:#fff;border:1px solid rgba(0,0,0,.08);box-shadow:0 4px 12px rgba(0,0,0,.12);border-radius:8px;padding:10px 12px;z-index:1000}.iconsTab-module__iconsControlsHeader__Dk5bC{display:flex;align-items:center}.iconsTab-module__iconsSearchFormSelect__wc4Eb{width:160px !important}.iconsTab-module__iconsSearchFormStyleItem__s6wIB{margin-bottom:0;animation:iconsTab-module__fadeInSlide__JHeZ6 300ms ease forwards}@keyframes iconsTab-module__fadeInSlide__JHeZ6{from{opacity:0;transform:translateX(-10px)}to{opacity:1;transform:translateX(0)}}.iconsTab-module__iconsSearchDivider__baxtd{margin-top:24px;margin-bottom:0;border-color:var(--colorBorder);width:100%}.iconsTab-module__iconsSearchFormInputIcon__LGFqD{font-size:16px;cursor:pointer}.iconsTab-module__iconsGrid__fdgZB{width:100%;flex:1 1 auto;min-height:0;overflow:auto;overflow-x:hidden;box-sizing:border-box;padding:24px}.iconsTab-module__iconsBottomBar__ZJjsz{position:sticky;bottom:0;background:var(--colorBgLayout);z-index:5;width:100%}.iconsTab-module__iconsBottomBarContent__9SxMG{display:flex;justify-content:right;padding:17px 24px;align-items:center}.iconsTab-module__iconsGridEmpty__gE6NT{margin:40px 0px}.iconsTab-module__iconsGridEmptyState__OGcNZ{display:flex;justify-content:center;align-items:center;padding:0}.iconsTab-module__resultsContainer__u4uoQ{width:640px;max-width:100%;overflow:auto;box-sizing:border-box;padding:60px 16px;border-radius:12px;background-color:var(--colorBgContainer);display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center}.iconsTab-module__playButton__CS3Kr{color:var(--colorPrimary);margin-bottom:16px}.iconsTab-module__title__X8NPu{font-size:16px;font-weight:600;line-height:1.2;margin-bottom:4px}.iconsTab-module__subtitle__k6wsl{font-size:14px;color:var(--colorSecondary);line-height:1.2}.iconsTab-module__iconsGridInfiniteScroll__x0_E9{overflow:hidden !important}.iconsTab-module__iconsGridLoadingMore__MJy6W{display:flex;justify-content:center;padding:16px 0}.iconsTab-module__iconsGridGrid__jpJcf{display:grid;grid-template-columns:repeat(auto-fill, minmax(var(--icons-grid-min-col, 148px), 1fr));gap:16px}.iconsTab-module__iconsGridVirtualCanvas__cdbMd{position:relative;width:100%}.iconsTab-module__iconsGridItem__iHBC0{position:relative;border-radius:8px;padding:12px;background:#fff;cursor:pointer;display:flex;flex-direction:column;box-sizing:border-box;overflow:hidden;box-shadow:inset 0 0 0 1px #f0f0f0}.iconsTab-module__iconsGridItemThumbnail__nz4oB{display:flex;align-items:center;justify-content:center;flex:1 1 auto;min-height:0}.iconsTab-module__iconsGridItemSvg__nMNf2{width:100%;height:100%;display:flex;align-items:center;justify-content:center}.iconsTab-module__iconsGridItemImg__uR1rx{max-width:100%;object-fit:contain}.iconsTab-module__iconsGridItemName__dxHty{margin-top:8px;font-size:12px;line-height:1.2;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;flex:0 0 auto}.iconsTab-module__iconsGridItemSelected__O6f4h::after{content:"";position:absolute;inset:0;border:2px solid #1890ff;border-radius:inherit;pointer-events:none}.iconsTab-module__iconsGridItemInsertButton__nuuWZ{position:absolute;top:8px;right:8px}.iconsTab-module__iconsGridLoading__r5wNu{display:flex;align-items:center;justify-content:center;width:100%;min-height:50vh}.iconsTab-module__iconsControlsBackButton__lHXYH{margin-right:20px}.iconsTab-module__iconsGridCheckbox__TebOL{position:absolute;top:8px;left:8px;z-index:2;opacity:0;pointer-events:none;transition:opacity .15s ease-in-out}.iconsTab-module__iconsGridItem__iHBC0:hover .iconsTab-module__iconsGridCheckbox__TebOL{opacity:1;pointer-events:auto}.iconsTab-module__iconsGridShowCheckboxes__Lwxc6 .iconsTab-module__iconsGridCheckbox__TebOL{opacity:1;pointer-events:auto}.iconsTab-module__iconsHeaderContainer__nlaKy{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;box-sizing:border-box;padding:24px 24px;margin:0;border-bottom:1px solid var(--colorBorder)}.iconsTab-module__iconsHeaderContainerLeft__sqO0_{display:flex;gap:10px;align-items:center}.iconsTab-module__iconsHeaderDivider__ujyPd{margin-top:24px;margin-bottom:0;border-color:var(--colorBorder);width:100%}.iconsTab-module__copyToFolderModalBody__AkxuH{position:relative}.iconsTab-module__copyToFolderModalLoadingOverlay__dd9RB{position:absolute;inset:0;z-index:10;display:flex;align-items:center;justify-content:center;background:hsla(0,0%,100%,.6);pointer-events:all}',""]),i.locals={iconsTab:"iconsTab-module__iconsTab__rVCdL",hasSearch:"iconsTab-module__hasSearch__eOBPx",iconsSearchWrapper:"iconsTab-module__iconsSearchWrapper__Wl05l",iconsSearchForm:"iconsTab-module__iconsSearchForm__pOT9P",iconsSearchFormCenteredContainer:"iconsTab-module__iconsSearchFormCenteredContainer__EcZ66",iconsSearchFormCentered:"iconsTab-module__iconsSearchFormCentered__mBHMX",iconsSearchFormInput:"iconsTab-module__iconsSearchFormInput__aOh5i",iconsSearchFormInputInput:"iconsTab-module__iconsSearchFormInputInput__P1TM6",iconsSearchResults:"iconsTab-module__iconsSearchResults__iMIGw",iconsControlsControls:"iconsTab-module__iconsControlsControls__fPlU6",iconsControls:"iconsTab-module__iconsControls__U6HDG",iconsControlsFamilySlug:"iconsTab-module__iconsControlsFamilySlug__WcZT7",iconsControlElement:"iconsTab-module__iconsControlElement___RXMX",iconsControlsStrokeWidth:"iconsTab-module__iconsControlsStrokeWidth__p7z65","ant-input-number":"iconsTab-module__ant-input-number__gVeff",antInputNumber:"iconsTab-module__ant-input-number__gVeff",iconsControlsCompact:"iconsTab-module__iconsControlsCompact__kjz5q",iconsControlsInputNumber:"iconsTab-module__iconsControlsInputNumber__uJAmX",iconsControlsDropdownBtn:"iconsTab-module__iconsControlsDropdownBtn__CsHya",sliderDropdown:"iconsTab-module__sliderDropdown__rp1Dw",iconsControlsHeader:"iconsTab-module__iconsControlsHeader__Dk5bC",iconsSearchFormSelect:"iconsTab-module__iconsSearchFormSelect__wc4Eb",iconsSearchFormStyleItem:"iconsTab-module__iconsSearchFormStyleItem__s6wIB",fadeInSlide:"iconsTab-module__fadeInSlide__JHeZ6",iconsSearchDivider:"iconsTab-module__iconsSearchDivider__baxtd",iconsSearchFormInputIcon:"iconsTab-module__iconsSearchFormInputIcon__LGFqD",iconsGrid:"iconsTab-module__iconsGrid__fdgZB",iconsBottomBar:"iconsTab-module__iconsBottomBar__ZJjsz",iconsBottomBarContent:"iconsTab-module__iconsBottomBarContent__9SxMG",iconsGridEmpty:"iconsTab-module__iconsGridEmpty__gE6NT",iconsGridEmptyState:"iconsTab-module__iconsGridEmptyState__OGcNZ",resultsContainer:"iconsTab-module__resultsContainer__u4uoQ",playButton:"iconsTab-module__playButton__CS3Kr",title:"iconsTab-module__title__X8NPu",subtitle:"iconsTab-module__subtitle__k6wsl",iconsGridInfiniteScroll:"iconsTab-module__iconsGridInfiniteScroll__x0_E9",iconsGridLoadingMore:"iconsTab-module__iconsGridLoadingMore__MJy6W",iconsGridGrid:"iconsTab-module__iconsGridGrid__jpJcf",iconsGridVirtualCanvas:"iconsTab-module__iconsGridVirtualCanvas__cdbMd",iconsGridItem:"iconsTab-module__iconsGridItem__iHBC0",iconsGridItemThumbnail:"iconsTab-module__iconsGridItemThumbnail__nz4oB",iconsGridItemSvg:"iconsTab-module__iconsGridItemSvg__nMNf2",iconsGridItemImg:"iconsTab-module__iconsGridItemImg__uR1rx",iconsGridItemName:"iconsTab-module__iconsGridItemName__dxHty",iconsGridItemSelected:"iconsTab-module__iconsGridItemSelected__O6f4h",iconsGridItemInsertButton:"iconsTab-module__iconsGridItemInsertButton__nuuWZ",iconsGridLoading:"iconsTab-module__iconsGridLoading__r5wNu",iconsControlsBackButton:"iconsTab-module__iconsControlsBackButton__lHXYH",iconsGridCheckbox:"iconsTab-module__iconsGridCheckbox__TebOL",iconsGridShowCheckboxes:"iconsTab-module__iconsGridShowCheckboxes__Lwxc6",iconsHeaderContainer:"iconsTab-module__iconsHeaderContainer__nlaKy",iconsHeaderContainerLeft:"iconsTab-module__iconsHeaderContainerLeft__sqO0_",iconsHeaderDivider:"iconsTab-module__iconsHeaderDivider__ujyPd",copyToFolderModalBody:"iconsTab-module__copyToFolderModalBody__AkxuH",copyToFolderModalLoadingOverlay:"iconsTab-module__copyToFolderModalLoadingOverlay__dd9RB"},e.exports=i}}]);
|