PageSourceSearch

https://drafter.ru/_next/static/chunks/4558-b7affecb8c5909d7.js

js drafter.ru collected 2026-10-06 07:08:36 UTC 135,299 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4558],{3446:e=>{e.exports={overlay:"PopupViewStats_overlay__hVA4d",window:"PopupViewStats_window__d9IM_",title:"PopupViewStats_title__tUN8r",totalRow:"PopupViewStats_totalRow__5LyNr",totalNum:"PopupViewStats_totalNum__UxcsR",totalLabel:"PopupViewStats_totalLabel__1f51d",chart:"PopupViewStats_chart__tMQmD",sourceList:"PopupViewStats_sourceList__bPg9o",sourceRow:"PopupViewStats_sourceRow__S6hSf",sourceName:"PopupViewStats_sourceName__9q3Hh",sourceDot:"PopupViewStats_sourceDot__8PNnX",sourceBarTrack:"PopupViewStats_sourceBarTrack__VFxG3",sourceBarFill:"PopupViewStats_sourceBarFill___SW3b",sourceVal:"PopupViewStats_sourceVal__IXdkj",emptyState:"PopupViewStats_emptyState__xd_W0",footnote:"PopupViewStats_footnote__uVwB1"}},3619:e=>{e.exports={container:"ChatInput_container__5L1PA",input_container:"ChatInput_input_container__K0meJ",text:"ChatInput_text__a3lKT",send:"ChatInput_send__n6u4T"}},6646:e=>{e.exports={"min-phone-only":'"(max-width: 420px)"',"phone-only":'"(max-width: 800px)"',"tablet-portrait-up":'"(max-width: 1200px)"',"tablet-landscape-up":'"(max-width: 1400px)"',"desktop-up":'"(min-width: 1401px)"',overlay:"PopupStoryCreate_overlay__jnqHY",hidden:"PopupStoryCreate_hidden__1dim0",windowWrapper:"PopupStoryCreate_windowWrapper__4Pj_8",closeButton:"PopupStoryCreate_closeButton__2Heen",window:"PopupStoryCreate_window__fxFv_",stage:"PopupStoryCreate_stage__1kEma",paintContainer:"PopupStoryCreate_paintContainer__gHoxH",chooseImageBlock:"PopupStoryCreate_chooseImageBlock__KG_wA",chooseButtons:"PopupStoryCreate_chooseButtons__9ht1r",button:"PopupStoryCreate_button___j_US",buttonIcon:"PopupStoryCreate_buttonIcon__yQURO",text:"PopupStoryCreate_text__Pm6G_",visualhidden:"PopupStoryCreate_visualhidden__O_w_b",floatingToolbar:"PopupStoryCreate_floatingToolbar__id0MO",toolbarIcon:"PopupStoryCreate_toolbarIcon__A6eKD",historyControls:"PopupStoryCreate_historyControls__MDTfS",historyButton:"PopupStoryCreate_historyButton__mM193",disabled:"PopupStoryCreate_disabled__CxuqL",modeBlock:"PopupStoryCreate_modeBlock__sIuA5","emoji-grid":"PopupStoryCreate_emoji-grid__Wjm2d","emoji-item":"PopupStoryCreate_emoji-item__gJ6_u",windowWhoSeen:"PopupStoryCreate_windowWhoSeen__sB6ot",windowShowTime:"PopupStoryCreate_windowShowTime__t4CiC",windowAdMark:"PopupStoryCreate_windowAdMark__hhB03",windowSticker:"PopupStoryCreate_windowSticker__8ICZb",windowUserPicker:"PopupStoryCreate_windowUserPicker__YSi6C",pickerChips:"PopupStoryCreate_pickerChips__C9roQ",chip:"PopupStoryCreate_chip__clSf1",chipRemove:"PopupStoryCreate_chipRemove__cO9iz",pickerInput:"PopupStoryCreate_pickerInput__6_kQv",pickerList:"PopupStoryCreate_pickerList__dTlrj",pickerState:"PopupStoryCreate_pickerState__jSNcz",pickerRow:"PopupStoryCreate_pickerRow__2R_4l",pickerRowName:"PopupStoryCreate_pickerRowName__jH9W3",pickerCheckbox:"PopupStoryCreate_pickerCheckbox__0AHoS",pickerCheckbox_active:"PopupStoryCreate_pickerCheckbox_active__jFHlA",buttons:"PopupStoryCreate_buttons__H_VfJ",button_active:"PopupStoryCreate_button_active__oAOkA",modeTitle:"PopupStoryCreate_modeTitle__dEPF4",modeArrow:"PopupStoryCreate_modeArrow__f_oZr",topPanel:"PopupStoryCreate_topPanel__Nemib",topPanelClose:"PopupStoryCreate_topPanelClose__c1LcJ",topPanelContent:"PopupStoryCreate_topPanelContent__BVG5Q",fontRow:"PopupStoryCreate_fontRow__KIp83",brushRow:"PopupStoryCreate_brushRow___qnke",fontIconButton:"PopupStoryCreate_fontIconButton__8_2yG",fontAaButton:"PopupStoryCreate_fontAaButton__W1rpO","brush-widths":"PopupStoryCreate_brush-widths__ka__t","brush-width-item":"PopupStoryCreate_brush-width-item__VHBf4","brush-width-item_active":"PopupStoryCreate_brush-width-item_active__Wlrg7",publishError:"PopupStoryCreate_publishError__mHkuy",shareButton:"PopupStoryCreate_shareButton__kOIGZ"}},6675:e=>{e.exports={overlay:"PopupAuth_overlay__GUvAE",window:"PopupAuth_window__Ra5oD",title:"PopupAuth_title__AV4vs",text:"PopupAuth_text__6wMcE",btn:"PopupAuth_btn__rM5X5",btnGold:"PopupAuth_btnGold__BKxTt"}},8940:e=>{e.exports={container:"StoryItem_container__w1auj",img__block:"StoryItem_img__block__y5z_4",img:"StoryItem_img__N8BzT",unseen:"StoryItem_unseen__ryUsI",name:"StoryItem_name__LOOgp",active:"StoryItem_active__6GM9L"}},9814:e=>{e.exports={"min-phone-only":'"(max-width: 420px)"',"phone-only":'"(max-width: 800px)"',"tablet-portrait-up":'"(max-width: 1200px)"',"tablet-landscape-up":'"(max-width: 1400px)"',"desktop-up":'"(min-width: 1401px)"',overlay:"PopupStory_overlay__OqGL6",hidden:"PopupStory_hidden__ejl3c",windowWrapper:"PopupStory_windowWrapper__Z13eL",closeButton:"PopupStory_closeButton__GseG2",window:"PopupStory_window__ugRvK",media:"PopupStory_media__4B4Q1",tapZones:"PopupStory_tapZones__WfR9T",tapPrev:"PopupStory_tapPrev__zGlPH",tapNext:"PopupStory_tapNext__3sFLv",edgeChevron:"PopupStory_edgeChevron__PQv1I",edgeChevronPrev:"PopupStory_edgeChevronPrev__GemdG",edgeChevronNext:"PopupStory_edgeChevronNext__4_wjV",topOverlay:"PopupStory_topOverlay__HKgEf","switch-chain":"PopupStory_switch-chain__BHOEU",item:"PopupStory_item__SvWz_","item-fill":"PopupStory_item-fill___o0sF",headerRow:"PopupStory_headerRow__TCPRQ",headerActions:"PopupStory_headerActions__FchP8",playPauseButton:"PopupStory_playPauseButton___7ddK",commentsButton:"PopupStory_commentsButton__aj9Ue",viewersButton:"PopupStory_viewersButton__GR562",commentsCount:"PopupStory_commentsCount__KvuXj",closeInline:"PopupStory_closeInline__bSnEH",userInfo:"PopupStory_userInfo__B7MLt",avatarLink:"PopupStory_avatarLink__30IRx",titleBlock:"PopupStory_titleBlock__bgvgO",name:"PopupStory_name__whDKZ",date:"PopupStory_date__lnIje",bottomOverlay:"PopupStory_bottomOverlay__iIeUe",input:"PopupStory_input__HHtgS","share-button":"PopupStory_share-button__GHrn_",commentsPanel:"PopupStory_commentsPanel__joj_4",commentsPanelHeader:"PopupStory_commentsPanelHeader__tlGXj",commentsBack:"PopupStory_commentsBack__YYE3m",commentsPanelTitle:"PopupStory_commentsPanelTitle__ru21v",commentsPanelBody:"PopupStory_commentsPanelBody__hLhwJ"}},14208:e=>{e.exports={btn_more:"Story_Menu_btn_more__OBedw",hidden:"Story_Menu_hidden__HkHf3",menu:"Story_Menu_menu__v5dJg",menu__list_item:"Story_Menu_menu__list_item__YYyW2"}},18168:e=>{e.exports={container:"Post_Owner_container__LEgNt",container_owner:"Post_Owner_container_owner__aFm4Z",owner_info:"Post_Owner_owner_info__lUQiW",repost_icon:"Post_Owner_repost_icon__cq3kr",owner_avatar:"Post_Owner_owner_avatar__Bz2Ae",owner_name:"Post_Owner_owner_name__1vYgB",container_repostComment:"Post_Owner_container_repostComment__01jls"}},19779:e=>{e.exports={overlay:"PopupResend_overlay__uJZi9",hidden:"PopupResend_hidden__3adSx",window:"PopupResend_window__nzQx3","to
1p-block":"PopupResend_top-block__ob2MW",title:"PopupResend_title__jdgsS","search-block":"PopupResend_search-block__b0yzv",input:"PopupResend_input__SEGbm","search-icon":"PopupResend_search-icon__LdRix",list:"PopupResend_list__n4Zjr",item:"PopupResend_item__L4g6L",image:"PopupResend_image__uWZ1z",name:"PopupResend_name__CHpI2",button:"PopupResend_button__1K4AK",success:"PopupResend_success__y2bmJ","msg-block":"PopupResend_msg-block__kcva3","action-buttons":"PopupResend_action-buttons__yhoYL","action-button":"PopupResend_action-button__S8MUN","button-name":"PopupResend_button-name__C2tmi"}},19898:e=>{e.exports={container:"Post_FooterDraft_container__bBK_W",btn:"Post_FooterDraft_btn__JRR3Z",btn_gold:"Post_FooterDraft_btn_gold__Cz6oK"}},23914:e=>{e.exports={btn_more:"Post_Menu_btn_more__ZebhC",hidden:"Post_Menu_hidden__9S_yE",menu:"Post_Menu_menu__9_mIT",menu__list_item:"Post_Menu_menu__list_item__cVTKe",container:"Post_Menu_container__k4ZTy",popup_container:"Post_Menu_popup_container__lcnzn",popup_title:"Post_Menu_popup_title__H64mf",popup_text:"Post_Menu_popup_text__Lwiw_",popup_text_error:"Post_Menu_popup_text_error__MqO3a",popup_fields_block:"Post_Menu_popup_fields_block__9Fofw",password_block:"Post_Menu_password_block__I3fss",btn_password:"Post_Menu_btn_password__8SAK3",popup_input:"Post_Menu_popup_input__zj6yO",button_block:"Post_Menu_button_block__733J1",popup_button:"Post_Menu_popup_button__6uTMl",popup_button_cancel:"Post_Menu_popup_button_cancel__eyJ1A",popup_button_red:"Post_Menu_popup_button_red__1uPyP"}},24182:e=>{e.exports={"min-phone-only":'"(max-width: 420px)"',"phone-only":'"(max-width: 800px)"',"tablet-portrait-up":'"(max-width: 1200px)"',"tablet-landscape-up":'"(max-width: 1400px)"',"desktop-up":'"(min-width: 1401px)"',container:"Paint_container__hyMLn",canvas:"Paint_canvas__azBX8",btn_block:"Paint_btn_block__wSYIv",btn:"Paint_btn__zXhGt"}},25471:(e,t,l)=>{"use strict";l.d(t,{A:()=>i});var a,n=l(12115);function r(){return(r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var a in l)({}).hasOwnProperty.call(l,a)&&(e[a]=l[a])}return e}).apply(null,arguments)}let i=function(e){return n.createElement("svg",r({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 25"},e),a||(a=n.createElement("path",{stroke:"#fff",strokeLinecap:"round",strokeWidth:5,d:"M3 2.5v20M13 2.5v20"})))}},25580:e=>{e.exports={container:"LikeRepostItem_container__UCTMb",img_block:"LikeRepostItem_img_block__MwTrP",img:"LikeRepostItem_img__62ZrA",name_block:"LikeRepostItem_name_block__IHYG2",text:"LikeRepostItem_text__vsYZ2"}},25714:e=>{e.exports={reactions:"Post_Footer_reactions__Na_aU",reaction:"Post_Footer_reaction__21tB7",icon:"Post_Footer_icon__v89aQ",counter:"Post_Footer_counter__RgH6d"}},25963:e=>{e.exports={list:"CommentsList_list__QFpSs",repliesList:"CommentsList_repliesList__cixfa",container:"CommentsList_container__4G0T7",deleted:"CommentsList_deleted__OPPH1","deleted-text":"CommentsList_deleted-text__ykThY",img_block:"CommentsList_img_block__qHusj",img:"CommentsList_img__ADTZX",general:"CommentsList_general__kIB_8",info:"CommentsList_info__EHMxK",comment:"CommentsList_comment__VFZiP",name:"CommentsList_name___AQO_",date:"CommentsList_date__3L4op",text:"CommentsList_text__eF7n_",response_link:"CommentsList_response_link__4DuJX",pin:"CommentsList_pin__TlMVt",icon:"CommentsList_icon___WPHc",msg:"CommentsList_msg__UDgxa",replies:"CommentsList_replies__Qw8wt",replies_block:"CommentsList_replies_block__KCAn2",replies_link:"CommentsList_replies_link__3etTU",replies_list:"CommentsList_replies_list___FQAi",hidden:"CommentsList_hidden__QaUlv",actions:"CommentsList_actions__R1YW0","action-points-icon":"CommentsList_action-points-icon__4sVca",menu:"CommentsList_menu__Tv17f","menu-list":"CommentsList_menu-list__9hA8X",item:"CommentsList_item__0uO30",like:"CommentsList_like___mWlO","claim-popup":"CommentsList_claim-popup__OeKVM",title:"CommentsList_title__msy3e","claim-popup-body":"CommentsList_claim-popup-body__ZbLUC",input:"CommentsList_input__oOei_",buttons:"CommentsList_buttons__TeCMb",button:"CommentsList_button__2lGiq"}},34004:e=>{e.exports={container:"StoryViewers_container__ITKmn",total:"StoryViewers_total__lOVK0",list:"StoryViewers_list__5n6or",state:"StoryViewers_state__wDqvu"}},35250:(e,t,l)=>{"use strict";l.d(t,{x:()=>n});var a=l(9339);let n=(0,a.createServerReference)("706e56718995d467235831b527d55e6a130133b33b",a.callServer,void 0,a.findSourceMapURL,"requestPostView")},45909:e=>{e.exports={list:"LikesRepostsList_list__8T36J"}},47642:e=>{e.exports={container:"StoryViewerItem_container__8ugkV",avatar:"StoryViewerItem_avatar__uzGpU",info:"StoryViewerItem_info__TsGuE",name:"StoryViewerItem_name__KFNM3",date:"StoryViewerItem_date__kexWK",deleted:"StoryViewerItem_deleted___51ET"}},47911:e=>{e.exports={list:"CommentsList_list__aHzHI",repliesList:"CommentsList_repliesList__rpMOl",container:"CommentsList_container__MNXKy",deleted:"CommentsList_deleted__h4qZl","deleted-text":"CommentsList_deleted-text__WGhOw",img_block:"CommentsList_img_block__Uevs2",img:"CommentsList_img__9oFZF",general:"CommentsList_general__MW8Ch",info:"CommentsList_info__7lTkl",comment:"CommentsList_comment__WHoOQ",name:"CommentsList_name__SobQ3",date:"CommentsList_date__fuc72",text:"CommentsList_text__BSCGq",response_link:"CommentsList_response_link__jX1Nb",pin:"CommentsList_pin__RymIg",icon:"CommentsList_icon__K6M1H",msg:"CommentsList_msg__4VUSw",replies:"CommentsList_replies__MlTMT",replies_block:"CommentsList_replies_block___6iCe",replies_link:"CommentsList_replies_link__60KHl",replies_list:"CommentsList_replies_list__rqjGd",hidden:"CommentsList_hidden__Yo24N",actions:"CommentsList_actions__2ey7k","action-points-icon":"CommentsList_action-points-icon__8eya3",menu:"CommentsList_menu__Rwbu1","menu-list":"CommentsList_menu-list__HvSf0",item:"CommentsList_item__S_Onj",like:"CommentsList_like__hclkt","claim-popup":"CommentsList_claim-popup__mgt00",title:"CommentsList_title__f2hTP","claim-popup-body":"CommentsList_claim-popup-body__oaIta",input:"CommentsList_input__yi0zf",buttons:"CommentsList_buttons__Nd0Kv",button:"CommentsList_button__g1kJM"}},53778:e=>{e.exports={description:"Post_Description_description__kxN1c",text:"Post_Description_text__O15o9",shade:"Post_Description_shade__0J3Ai",text_descriptions:"Post_Description_text_descriptions__V4drl",readMore:"Post_Description_readMore__Dh2M3"}},57688:e=>{e.exports={reaction:"ViewStatsChip_reaction__zsqdI",icon:"ViewStatsChip_icon__n_P18",counter:"ViewStatsChip_counter__qEYPb"}},59582:e=>{e.exports={container:"CameraCapture_container__BVP_j",video:"CameraCapture_video__m5bJO",video_mirrored:"CameraCapture_video_mirrored__u_pJv",error:"CameraCapture_error__stCa4",controls:"CameraCapture_controls__kmmxS",switchButton:"CameraCapture_switchButton__G2Nkb",switchButton_placeholder:"CameraCapture_switchButton_placeholder__GvwMN",shutterButton:"CameraCapture_shutterButton__ndbrk"}},59596:e=>{e.exports={container:"Post_Image_container__SAYos",slideImg:"Post_Image_slideImg__rt45o","next-button":"Post_Image_next-button__GprY7","prev-button":"Post_Image_prev-button__QQcvb",pointsList:"Post_Image_pointsList__VBH4H",point:"Post_Image_point__qwVYE",point_active:"Post_Image_point_active__gMefm"}},61654:(e,t,l)=>{"use strict";l.d(t,{LV:()=>n});var a=l(77337);let n=e=>({id:e?.id,user_id:e?.user_id,author:"Drafter",title:e?.title,slug:e?.slug,tags:Array.isArray(e?.tags)?e.tags.map(e=>e.name):[],content:e?.content||"",short_content:e?.short_content||e?.content||"",created_at:e?.created_at,likes_count:e?.likes_count,comments_count:e?.comments_count,reposts_count:e?.reposts_count,photoList:(e?.gallery||[]).filter(e=>!!e?.path).map(e=>({url:e.path,position:e.position??null})),is_liked:e?.is_liked,is_favorite:e?.is_favorite,owner_type:e?.owner_type||null,owner:e?.owner||null,repost_comment:e?.repost_comment||null,entity_type:a.N.News,link:e?.url||`https://drafter.ru/news/${e?.id}`,isLocalLink:!1,seo:e?.seo,url:e?.url,published_at:e?.published_at??null,source:e?.source??null})},71839:e=>{e.exports={overlay:"PopupPost_overlay__1yeeN",window:"PopupPost_window__1Am_U"}},74026:e=>{e.exports={container:"Story_container__zakAw",story_image:"Story_story_image__zFGRR"}},74558:(e,t,l)=>{"use strict";l.d(t,{default:()=>a_});var a,n,r,i,s,o,c,d,f,p,u,m,_,h,x,v,g,w,b,M,j,E,y,k,C,S,P,N,Z,L,R,A,z,B,O,I,T,D,U,V,$,F,W,H,q,G=l(95155),K=l(95773),J=l.n(K),Q=l(12115),X=l(54387),Y=l(73321),ee=l(98500),et=l.n(ee),el=l(77315),ea=l(25714),en=l.n(ea),er=l(69730),ei=l.n(er),es=l(57094),eo=l(12505),ec=l(99925),ed=l(93641),ef=l.n(ed),ep=l(45909),eu=l.n(ep),em=l(25580),e_=l.n(em);function eh({like:e}){return(0,G.jsxs)("div",{className:ei()(e_().container,"anim-show"),children:[(0,G.jsx)("div",{className:e_().img_block,children:(0,G.jsx)(el.A,{avatar:e.user?.avatar,shape:"square",objectPosition:"top center",alt:"Аватар пользователя"})}),(0,G.jsxs)("div",{className:e_().name_block,children:[e.user?.surname&&(0,G.jsx)("p",{className:e_().text,children:e.user?.surname}),e.user?.name&&(0,G.jsx)("p",{className:e_().text,children:e.user?.name})]})]})}function ex({likesList:e,onScroll:t}){return(0,G.jsx)("ul",{className:eu().list,onScroll:t,children:e.map((e,t)=>(0,G.jsx)("li",{children:(0,G.jsx)(eh,{like:e})},t))})}var ev=l(26138),eg=l(47510),ew=l(9339);let eb=(0,ew.createServerReference)("7018179c60d626ef18a78cf2b8f7dcec79b6c89dac",ew.callServer,void 0,ew.findSourceMapURL,"requestGetLikes");function eM({idPost:e,entity_type:t,handleClose:l}){let a=(0,Q.useRef)(null),{list:n,handleScroll:r,resetList:i}=(0,ev.A)([]);(0,Q.useEffect)(()=>{(async()=>{i(await s(1))})()},[]);let s=async l=>{let a=await eb(e,t,l);return a.success&&Array.isArray(a.data)?a.data:[]},o=async e=>{e===a.current&&l()};return(0,G.jsx)("div",{className:ei()(ef().container,ef().overlay),onClick:e=>{e.stopPropagation(),e.preventDefault(),o(e.target)},ref:a,children:(0,G.jsxs)("div",{className:ei()(ef().window,"anim-show"),children:[(0,G.jsx)("h3",{className:ef().title,children:"Понравилось"}),n.length>0&&(0,G.jsx)(ex,{onScroll:e=>{r(e.currentTarget,s)},likesList:n}),(0,G.jsx)(eg.A,{onClick:l,top:"40px",right:"40px"})]})})}var ej=l(19779),eE=l.n(ej);function ey(){return(ey=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var a in l)({}).hasOwnProperty.call(l,a)&&(e[a]=l[a])}return e}).apply(null,arguments)}let ek=function(e){return Q.createElement("svg",ey({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none"},e),n||(n=Q.createElement("path",{stroke:"#E5D6A0",strokeLinecap:"round",d:"M14.543 8c0 3.142 0 4.714-.976 5.69s-2.548.976-5.69.976-4.714 0-5.691-.976S1.21 11.
1142 1.21 8s0-4.714.976-5.691c.977-.976 2.548-.976 5.69-.976"})),r||(r=Q.createElement("path",{stroke:"#E5D6A0",strokeLinecap:"round",strokeLinejoin:"round",d:"m10.647 2.289 1.571 1.362c1.082.937 1.623 1.407 1.623 2.015s-.54 1.078-1.623 2.016l-1.571 1.362c-.476.412-.714.618-.909.529-.195-.09-.195-.404-.195-1.033V7.524c-2 0-4.166.928-5 2.476 0-4.953 2.963-6.191 5-6.191V2.793c0-.63 0-.944.195-1.033.195-.09.434.117.909.529"})))};var eC=l(26603);function eS(){return(eS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var a in l)({}).hasOwnProperty.call(l,a)&&(e[a]=l[a])}return e}).apply(null,arguments)}let eP=function(e){return Q.createElement("svg",eS({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none"},e),i||(i=Q.createElement("path",{fill:"#E5D6A0",d:"M8 4.577a3.423 3.423 0 1 0 0 6.846 3.423 3.423 0 0 0 0-6.846m0 5.646a2.223 2.223 0 1 1 0-4.446 2.223 2.223 0 0 1 0 4.446"})),s||(s=Q.createElement("path",{fill:"#E5D6A0",d:"M14.627 5.251a4.9 4.9 0 0 0-.31-1.618 3.3 3.3 0 0 0-.769-1.181 3.3 3.3 0 0 0-1.18-.769 4.9 4.9 0 0 0-1.619-.309c-.71-.033-.938-.04-2.748-.04s-2.038.007-2.749.04c-.553.01-1.1.115-1.619.31-.444.167-.847.43-1.18.768-.34.333-.602.736-.77 1.181a4.9 4.9 0 0 0-.309 1.618c-.033.711-.04.938-.04 2.749 0 1.81.007 2.038.04 2.749.01.553.115 1.1.31 1.618.167.445.43.848.769 1.181.333.34.736.601 1.18.769a4.9 4.9 0 0 0 1.619.309c.71.033.938.04 2.748.04s2.038-.007 2.749-.04c.553-.01 1.1-.115 1.618-.31a3.4 3.4 0 0 0 1.95-1.95 4.9 4.9 0 0 0 .31-1.617c.032-.712.04-.938.04-2.749 0-1.81-.008-2.038-.04-2.749m-1.2 5.443a3.7 3.7 0 0 1-.229 1.238 2.2 2.2 0 0 1-1.265 1.265 3.7 3.7 0 0 1-1.238.23c-.704.032-.914.038-2.695.038s-1.99-.006-2.693-.038a3.7 3.7 0 0 1-1.238-.23 2.1 2.1 0 0 1-.767-.498 2.1 2.1 0 0 1-.499-.767 3.7 3.7 0 0 1-.229-1.238c-.032-.703-.039-.913-.039-2.693s.007-1.992.039-2.695c.006-.423.083-.841.23-1.238.106-.29.277-.552.498-.767.215-.221.477-.391.767-.498a3.7 3.7 0 0 1 1.238-.23c.702-.033.914-.04 2.693-.04 1.78 0 1.991.008 2.695.04.422.006.84.083 1.238.229a2.2 2.2 0 0 1 1.265 1.265c.147.397.225.816.23 1.238.031.704.038.914.038 2.694 0 1.781-.007 1.991-.039 2.694"})))};l(9814),l(74026);var eN=l(5772);function eZ(){return(eZ=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var a in l)({}).hasOwnProperty.call(l,a)&&(e[a]=l[a])}return e}).apply(null,arguments)}let eL=function(e){return Q.createElement("svg",eZ({xmlns:"http://www.w3.org/2000/svg",width:8,height:14,fill:"none"},e),o||(o=Q.createElement("path",{fill:"#000",fillRule:"evenodd",d:"M.843 6.288 6.5.631l1.414 1.414-4.95 4.95 4.95 4.95L6.5 13.36.843 7.702a1 1 0 0 1 0-1.414",clipRule:"evenodd"})))};function eR(){return(eR=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var a in l)({}).hasOwnProperty.call(l,a)&&(e[a]=l[a])}return e}).apply(null,arguments)}l(25471),l(79647),l(14208);let eA=function(e){return Q.createElement("svg",eR({xmlns:"http://www.w3.org/2000/svg",width:18,height:4,fill:"none"},e),c||(c=Q.createElement("ellipse",{cx:1.8,cy:2,fill:"#E5D6A0",rx:1.8,ry:2})),d||(d=Q.createElement("ellipse",{cx:8.999,cy:2,fill:"#E5D6A0",rx:1.8,ry:2})),f||(f=Q.createElement("ellipse",{cx:16.2,cy:2,fill:"#E5D6A0",rx:1.8,ry:2})))};l(24560);var ez=l(82918),eB=l(77337);l(81326),l(25963);var eO=l(96805);function eI(){return(eI=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var a in l)({}).hasOwnProperty.call(l,a)&&(e[a]=l[a])}return e}).apply(null,arguments)}let eT=function(e){return Q.createElement("svg",eI({xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none"},e),p||(p=Q.createElement("path",{stroke:"#fff",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"m2.314 16.486.506-3.469a1.05 1.05 0 0 1 .296-.6l9.801-9.814a1.05 1.05 0 0 1 .992-.284c.9.249 1.715.737 2.36 1.412a5.17 5.17 0 0 1 1.401 2.371 1.05 1.05 0 0 1-.284.992l-9.812 9.802a1.05 1.05 0 0 1-.6.295l-3.468.506a1.053 1.053 0 0 1-1.192-1.212M11.063 4.47l4.469 4.47"})))};function eD(){return(eD=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var a in l)({}).hasOwnProperty.call(l,a)&&(e[a]=l[a])}return e}).apply(null,arguments)}let eU=function(e){return Q.createElement("svg",eD({xmlns:"http://www.w3.org/2000/svg",width:18,height:20,fill:"none"},e),u||(u=Q.createElement("path",{stroke:"#fff",strokeWidth:1.5,d:"M4 9.167c0-2.357 0-3.536.732-4.268S6.643 4.167 9 4.167h2.5c2.357 0 3.536 0 4.268.732s.732 1.911.732 4.268v4.166c0 2.357 0 3.536-.732 4.268s-1.9
111.732-4.268.732H9c-2.357 0-3.536 0-4.267-.732C4 16.869 4 15.69 4 13.333z"})),m||(m=Q.createElement("path",{stroke:"#fff",strokeWidth:1.5,d:"M4 15.833a2.5 2.5 0 0 1-2.5-2.5v-5c0-3.142 0-4.714.977-5.69.976-.976 2.547-.976 5.69-.976H11.5a2.5 2.5 0 0 1 2.5 2.5"})))};var eV=l(94662);function e$(){return(e$=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var a in l)({}).hasOwnProperty.call(l,a)&&(e[a]=l[a])}return e}).apply(null,arguments)}let eF=function(e){return Q.createElement("svg",e$({xmlns:"http://www.w3.org/2000/svg",width:18,height:18,fill:"none"},e),_||(_=Q.createElement("path",{stroke:"#E64646",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M9 16.5a7.5 7.5 0 1 0 0-15 7.5 7.5 0 0 0 0 15"})),h||(h=Q.createElement("path",{stroke:"#E64646",strokeLinejoin:"round",strokeWidth:2.25,d:"M9 12.333h.008v.009H9z"})),x||(x=Q.createElement("path",{stroke:"#E64646",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M9 9V5.667"})))};function eW(){return(eW=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var a in l)({}).hasOwnProperty.call(l,a)&&(e[a]=l[a])}return e}).apply(null,arguments)}let eH=function(e){return Q.createElement("svg",eW({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 13 13"},e),v||(v=Q.createElement("path",{stroke:"#E5D6A0",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"m1 12 3.056-3.056M7.269 10.7c-2.288-.52-4.448-2.68-4.968-4.968-.082-.362-.123-.543-.004-.837.118-.293.264-.385.555-.566.658-.411 1.37-.542 2.11-.477 1.036.092 1.555.138 1.814.003s.434-.45.786-1.08l.445-.799c.293-.525.44-.789.785-.913s.553-.049.969.102a3.44 3.44 0 0 1 2.075 2.075c.15.416.226.623.102.969-.124.344-.387.491-.913.785l-.817.455c-.63.351-.944.527-1.079.788-.134.262-.086.769.012 1.783.072.746-.052 1.463-.468 2.13-.182.29-.273.436-.567.555-.293.118-.474.077-.837-.005"})))};var eq=l(86566),eG=l(77324);l(47642),l(34004),l(90866),l(97697);var eK=l(6646),eJ=l.n(eK),eQ=l(43695),eX=l(89354),eY=l.n(eX);function e1({onClick:e=e=>{},active:t=!1,children:l=""}){return(0,G.jsx)("button",{className:ei()(eY().button,{[eY().button_active]:t}),onClick:()=>e(l),children:l})}function e0({children:e="",turnBack:t=()=>{},hideBackArrow:l=!1}){return(0,G.jsxs)("div",{className:ei()(eY().modeTitle),children:[!l&&(0,G.jsx)(eQ.A,{className:ei()(eY().modeArrow),onClick:()=>t()}),(0,G.jsx)("p",{children:e})]})}var e2=l(27452);let e3=(0,ew.createServerReference)("40bed40ef8526d51d666422eb56caa3f72c96929d4",ew.callServer,void 0,ew.findSourceMapURL,"requestSearch");function e5({title:e,selected:t,onToggleUser:l,turnBack:a}){let[n,r]=(0,Q.useState)(""),[i]=(0,e2.d7)(n.trim(),1e3),[s,o]=(0,Q.useState)([]),[c,d]=(0,Q.useState)(!1);return(0,Q.useEffect)(()=>{if(!i){o([]),d(!1);return}let e=!1;return(async()=>{d(!0);let t=await e3(`search=${encodeURIComponent(i)}&type=users`);e||(o(Array.isArray(t?.data?.users)?t.data.users:[]),d(!1))})(),()=>{e=!0}},[i]),(0,G.jsxs)("div",{className:ei()(eJ().windowWhoSeen,eJ().windowUserPicker),children:[(0,G.jsx)(e0,{turnBack:a,children:e}),t.length>0&&(0,G.jsx)("div",{className:ei()(eJ().pickerChips),children:t.map(e=>(0,G.jsxs)("span",{className:ei()(eJ().chip),onClick:()=>l(e),children:[`${e.name} ${e.surname??""}`.trim(),(0,G.jsx)("span",{className:ei()(eJ().chipRemove),children:"\xd7"})]},e.id))}),(0,G.jsx)("input",{type:"text",className:ei()(eJ().pickerInput),placeholder:"Поиск по имени",value:n,onChange:e=>r(e.target.value)}),(0,G.jsxs)("div",{className:ei()(eJ().pickerList),children:[c&&(0,G.jsx)("p",{className:ei()(eJ().pickerState),children:"Поиск…"}),!c&&i&&0===s.length&&(0,G.jsx)("p",{className:ei()(eJ().pickerState),children:"Никого не найдено"}),!c&&s.map(e=>{let a;return(0,G.jsxs)("div",{className:ei()(eJ().pickerRow),onClick:()=>l(e),children:[(0,G.jsx)(el.A,{avatar:e.avatar,shape:"circle",size:32,alt:"Аватар пользователя"}),(0,G.jsx)("span",{className:ei()(eJ().pickerRowName),children:`${e.name} ${e.surname??""}`.trim()}),(0,G.jsx)("span",{className:ei()(eJ().pickerCheckbox,{[eJ().pickerCheckbox_active]:(a=e.id,t.some(e=>e.id===a))})})]},e.id)})]})]})}function e4({mode:e,onChangeMode:t,hiddenUsers:l,favoriteUsers:a,onToggleHiddenUser:n,onToggleFavoriteUser:r,turnBack:i,hideBackArrow:s=!1}){let[o,c]=(0,Q.useState)(!1);return o&&2===e?(0,G.jsx)(e5,{title:"Скрыть от",selected:l,onToggleUser:n,turnBack:()=>c(!1)}):o&&3===e?(0,G.jsx)(e5,{title:"Показать только",selected:a,onToggleUser:r,turnBack:()=>c(!1)}):(0,G.jsxs)("div",{className:ei()(eJ().windowWhoSeen),children:[(0,G.jsx)(e0,{turnBack:i,hideBackArrow:s,children:"Кто увидит"}),(0,G.jsxs)("div",{className:ei()(eJ().buttons),children:[(0,G.jsx)(e1,{active:1===e,onClick:()=>t(1),children:"Все"}),(0,G.jsx)(e1,{active:2===e,onClick:()=>{t(2),c(!0)},children:l.length>0?`Скрыть от (${l.length})`:"Скрыть от"}),(0,G.jsx)(e1,{active:3===e,onClick:()=>{t(3),c(!0)},children:a.length>0?`Только для избранных (${a.length})`:"Только для избранных"})]})]})}function e6({handleAllowReplies:e,currentValue:t,turnBack:l,hideBackArrow:a=!1}){return(0,G.jsxs)("div",{className:ei()(eJ().windowAdMark),children:[(0,G.jsx)(e0,{turnBack:l,hideBackArrow:a,children:"Ответы"}),(0,G.jsx)("div",{className:ei()(eJ().buttons),children:(0,G.jsx)(e1,{active:t,onClick:()=>e(!t),children:t?"Ответы разрешены":"Ответы запрещены"})})]})}function e7(){return(e7=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var a in l)({}).hasOwnProperty.call(l,a)&&(e[a]=l[a])}return e}).apply(null,arguments)}l(99726),l(8940),l(13069);let e8=function(e){return Q.createElement("svg",e7({xmlns:"http://www.w3.org/2000/svg",width:36,height:37,fill:"none"},e),g||(g=Q.createElement("rect",{width:35,height:35,x:35.5,y:1,stroke:"#fff",rx:4.5,transform:"rotate(90 35.5 1)"})),w||(w=Q.createElement("path",{fill:"#fff",d:"M12.205 17.234a.751.751 0 0 0 .565 1.265.75.75 0 0 0 .524-.234l4.95-5.239V25.75a.75.75 0 1 0 1.499 0V13.024l4.952 5.241a.748.748 0 0 0 1.305-.49.75.75 0 0 0-.216-.54l-6.064-6.417a1 1 0 0 0-.566-.3.75.75 0 0 0-.328 0 1 1 0 0 0-.558.3z"})))};var e9=l(17460);function te(){return(te=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var a in l)({}).hasOwnProperty.call(l,a)&&(e[a]=l[a])}return e}).apply(null,arguments)}let tt=function(e){return Q.createElement("svg",te({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},e),b||(b=Q.createElement("path",{stroke:"#fff",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 10a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7M3 20.4v.6h18v-.6c0-2.24 0-3.36-.436-4.216a4 4 0 0 0-1.748-1.748C17.96 14 16.84 14 14.6 14H9.4c-2.24 0-3.36 0-4.216.436a4 4 0 0 0-1.748 1.748C3 17.04 3 18.16 3 20.4"})))};function tl(){return(tl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var a in l)({}).hasOwnProperty.call(l,a)&&(e[a]=l[a])}return e}).apply(null,arguments)}let ta=function(e){return Q.createElement("svg",tl({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),M||(M=Q.createElement("path",{stroke:"#fff",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M5.506 15.992 8.03 9.029
1c.46-.967 1.162-1.766 1.967.151.743 1.77 1.85 5.01 2.505 6.815m-5.85-2.993h4.669"})),j||(j=Q.createElement("path",{stroke:"#fff",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M3.464 4.318C2 5.636 2 7.758 2 12s0 6.364 1.464 7.682C4.93 21 7.286 21 12 21s7.071 0 8.535-1.318S22 16.242 22 12s0-6.364-1.465-7.682C19.072 3 16.714 3 12 3S4.929 3 3.464 4.318"})),E||(E=Q.createElement("path",{stroke:"#fff",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M18.484 8.986v2.995m0 0v3.943m0-3.943h-2.018c-.24 0-.478.044-.702.131-1.693.657-1.693 3.1 0 3.757.225.087.462.131.702.131h2.018"})))};function tn(){return(tn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var a in l)({}).hasOwnProperty.call(l,a)&&(e[a]=l[a])}return e}).apply(null,arguments)}let tr=function(e){return Q.createElement("svg",tn({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 14 18"},e),y||(y=Q.createElement("path",{stroke:"#fff",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 6 7 1m0 0L2 6m5-5v13m-6 3h12"})))};function ti(){return(ti=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var a in l)({}).hasOwnProperty.call(l,a)&&(e[a]=l[a])}return e}).apply(null,arguments)}let ts=function(e){return Q.createElement("svg",ti({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),k||(k=Q.createElement("path",{fill:"#fff",fillRule:"evenodd",d:"M9.25 2a.75.75 0 0 1 .75-.75h4a.75.75 0 1 1 0 1.5h-4A.75.75 0 0 1 9.25 2M12 4.75a8.25 8.25 0 1 0 0 16.5 8.25 8.25 0 0 0 0-16.5M2.25 13A9.75 9.75 0 0 1 12 3.25 9.75 9.75 0 0 1 21.75 13 9.75 9.75 0 0 1 12 22.75 9.75 9.75 0 0 1 2.25 13M12 8.25a.75.75 0 0 1 .75.75v4a.75.75 0 1 1-1.5 0V9a.75.75 0 0 1 .75-.75",clipRule:"evenodd"})))};function to(){return(to=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var a in l)({}).hasOwnProperty.call(l,a)&&(e[a]=l[a])}return e}).apply(null,arguments)}let tc=function(e){return Q.createElement("svg",to({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",transform:"rotate(180)",viewBox:"0 0 264.583 264.583"},e),C||(C=Q.createElement("defs",null,Q.createElement("radialGradient",{xlinkHref:"#icon-font-color-2_svg__a",id:"icon-font-color-2_svg__b",cx:132.292,cy:164.708,r:132.292,fx:132.292,fy:164.708,gradientUnits:"userSpaceOnUse"}))),S||(S=Q.createElement("g",{transform:"translate(0 -32.417)"},Q.createElement("path",{fill:"red",d:"M131.137 32.422a132 132 0 0 1 2.54.002l-1.385 132.284z"}),Q.createElement("path",{fill:"#ff0400",d:"M133.446 32.422a132 132 0 0 1 2.54.046l-3.694 132.24z"}),Q.createElement("path",{fill:"#ff0900",d:"M135.755 32.462a132 132 0 0 1 2.538.09l-6.001 132.156z"}),Q.createElement("path",{fill:"#ff0d00",d:"M138.062 32.543a132 132 0 0 1 2.536.135l-8.306 132.03z"}),Q.createElement("path",{fill:"#f10",d:"M140.368 32.663a132 132 0 0 1 2.533.18l-10.61 131.865Z"}),Q.createElement("path",{fill:"#ff1500",d:"M142.671 32.824a132 132 0 0 1 2.53.224l-12.91 131.66z"}),Q.createElement("path",{fill:"#ff1a00",d:"M144.971 33.026a132 132 0 0 1 2.526.267l-15.205 131.415Z"}),Q.createElement("path",{fill:"#ff1e00",d:"M147.268 33.267a132 132 0 0 1 2.52.312l-17.496 131.13Z"}),Q.createElement("path",{fill:"#f20",d:"M149.56 33.548a132 132 0 0 1 2.514.356l-19.782 130.804Z"}),Q.createElement("path",{fill:"#ff2600",d:"M151.846 33.87a132 132 0 0 1 2.508.4l-22.062 130.438Z"}),Q.createElement("path",{fill:"#ff2b00",d:"M154.126 34.231a132 132 0 0 1 2.5.443l-24.334 130.034Z"}),Q.createElement("path",{fill:"#ff2f00",d:"M156.4 34.632a132 132 0 0 1 2.493.487l-26.601 129.59Z"}),Q.createElement("path",{fill:"#f30",d:"M158.666 35.072a132 132 0 0 1 2.484.53l-28.858 129.106Z"}),Q.createElement("path",{fill:"#ff3700",d:"M160.925 35.552a132 132 0 0 1 2.474.574l-31.107 128.582Z"}),Q.createElement("path",{fill:"#ff3c00",d:"M163.175 36.072a132 132 0 0 1 2.463.616l-33.346 128.02Z"}),Q.createElement("path",{fill:"#ff4000",d:"M165.415 36.63a132 132 0 0 1 2.453.66l-35.576 127.418Z"}),Q.createElement("path",{fill:"none",d:"M167.645 37.228a132 132 0 0 1 2.44.702l-37.793 126.778Z"}),Q.createElement("path",{fill:"#f40",d:"M167.645 37.228a132 132 0 0 1 2.44.702l-37.793 126.778Z"}),Q.createElement("path",{fill:"#ff4800",d:"M169.865 37.864a132 132 0 0 1 2.428.745l-40.001 126.1z"}),Q.createElement("path",{fill:"#ff4d00",d:"M172.073 38.54a132 132 0 0 1 2.414.786l-42.195 125.382z"}),Q.createElement("path",{fill:"#ff5100",d:"M174.268 39.253a132 132 0 0 1 2.401.829l-44.377 124.626Z"}),Q.createElement("path",{fill:"#f50",d:"M176.452 40.005a132 132 0 0 1 2.385.87l-46.545 123.833Z"}),Q.createElement("path",{fill:"#ff5900",d:"M178.621 40.794a132 132 0 0 1 2.37.913l-48.7 123.001Z"}),Q.createElement("path",{fill:"#ff5e00",d:"M180.777 41.622a132 132 0 0 1 2.354.953l-50.84 122.133Z"}),Q.createElement("path",{fill:"#ff6200",d:"M182.918 42.487a132 132 0 0 1 2.337.994l-52.963 121.227Z"}),Q.createElement("path",{fill:"#f60",d:"M185.043 43.389a132 132 0 0 1 2.32 1.035l-55.071 120.284Z"}),Q.createElement("path",{fill:"#ff6a00",d:"M187.152 44.328a132 132 0 0 1 2.301 1.075l-57.161 119.305Z"}),Q.createElement("path",{fill:"#ff6f00",d:"M189.245 45.304a132 132 0 0 1 2.281 1.115l-59.234 118.29z"}),Q.createElement("path",{fill:"#ff7300",d:"M191.32 46.316a132 132 0 0 1 2.262 1.155l-61.29 117.237Z"}),Q.createElement("path",{fill:"#f70",d:"M193.377 47.364a132 132 0 0 1 2.242 1.194l-63.327 116.15z"}),Q.createElement("path",{fill:"#ff7b00",d:"M195.416 48.448a132 132 0 0 1 2.22 1.233l-65.344 115.027Z"}),Q.createElement("path",{fill:"#ff8000",d:"M197.435 49.568a132 132 0 0 1 2.199 1.271l-67.342 113.87Z"}),Q.createElement("path",{fill:"#ff8400",d:"M199.435 50.722a132 132 0 0 1 2.176 1.31l-69.32 112.676Z"}),Q.createElement("path",{fill:"#f80",d:"M201.414 51.911a132 132 0 0 1 2.153 1.348l-71.275 111.45Z"}),Q.createElement("path",{fill:"#ff8c00",d:"M203.372 53.135a132 132 0 0 1 2.129 1.385l-73.21 110.188Z"}),Q.createElement("path",{fill:"#ff9100",d:"M205.308 54.392a132 132 0 0 1 2.105 1.422l-75.121 108.894z"}),Q.createElement("path",{fill:"#ff9500",d:"M207.223 55.683a132 132 0 0 1 2.079 1.459l-77.01 107.566z"}),Q.createElement("path",{fill:"#f90",d:"M209.114 57.008a132 132 0 0 1 2.053 1.494l-78.875 106.206Z"}),Q.createElement("path",{fill:"#ff9d00",d:"M210.982 58.365a132 132 0 0 1 2.027 1.53l-80.717 104.813Z"}),Q.createElement("path",{fill:"#ffa200",d:"M212.826 59.754a132 132 0 0 1 2 1.566l-82.534 103.388Z"}),Q.createElement("path",{fill:"#ffa600",d:"M214.645 61.176a132 132 0 0 1 1.973 1.6l-84.326 101.932Z"}),Q.createElement("path",{fill:"#fa0",d:"M216.44 62.629a132 132 0 0 1 1.944 1.634l-86.092 100.445Z"}),Q.createElement("path",{fill:"#ffae00",d:"M218.208 64.113a132 132 0 0 1 1.916 1.668l-87.832 98.927z"}),Q.createElement("path",{fill:"#ffb300",d:"M219.95 65.628a132 132 0 0 1 1.887 1.7l-89.545 97.38z"}),Q.createElement("path",{fill:"#ffb700",d:"M221.667 67.173a132 132 0 0 1 1.856 1.733l-91.231 95.802z"}),Q.createElement("path",{fill:"#fb0",d:"M223.355 68.747a132 132 0 0 1 1.826 1.766l-92.89 94.195z"}),Q.createElement("path",{fill:"#fb0",d:"M223.355 68.747a132 132 0 0 1 1.826 1.766l-92.89 94.195z"}),Q.createElement("path",{fill:"#ffbf00",d:"M225.016 70.351a132 132 0 0 1 1.794 
11.798l-94.518 92.56z"}),Q.createElement("path",{fill:"#ffc400",d:"M226.649 71.984a132 132 0 0 1 1.762 1.828l-96.12 90.896z"}),Q.createElement("path",{fill:"#ffc800",d:"M228.253 73.645a132 132 0 0 1 1.73 1.859l-97.691 89.204z"}),Q.createElement("path",{fill:"#fc0",d:"M229.827 75.333a132 132 0 0 1 1.698 1.89l-99.233 87.485z"}),Q.createElement("path",{fill:"#ffd000",d:"M231.372 77.05a132 132 0 0 1 1.665 1.917l-100.745 85.741Z"}),Q.createElement("path",{fill:"#ffd500",d:"M232.887 78.792a132 132 0 0 1 1.63 1.947l-102.225 83.97Z"}),Q.createElement("path",{fill:"#ffd900",d:"M234.371 80.56a132 132 0 0 1 1.597 1.976l-103.676 82.172Z"}),Q.createElement("path",{fill:"#fd0",d:"M235.824 82.355a132 132 0 0 1 1.562 2.003l-105.094 80.35Z"}),Q.createElement("path",{fill:"#ffe100",d:"M237.246 84.174a132 132 0 0 1 1.526 2.03l-106.48 78.504Z"}),Q.createElement("path",{fill:"#ffe600",d:"M238.635 86.018a132 132 0 0 1 1.491 2.056l-107.834 76.634Z"}),Q.createElement("path",{fill:"#ffea00",d:"M239.992 87.886a132 132 0 0 1 1.455 2.082l-109.155 74.74Z"}),Q.createElement("path",{fill:"#fe0",d:"M241.317 89.777a132 132 0 0 1 1.418 2.107l-110.443 72.824Z"}),Q.createElement("path",{fill:"#fff200",d:"M242.608 91.692a132 132 0 0 1 1.381 2.13l-111.697 70.886Z"}),Q.createElement("path",{fill:"#fff700",d:"M243.865 93.628a132 132 0 0 1 1.344 2.155l-112.917 68.925Z"}),Q.createElement("path",{fill:"#fffb00",d:"M245.089 95.586a132 132 0 0 1 1.306 2.178l-114.103 66.944Z"}),Q.createElement("path",{fill:"#ff0",d:"M246.278 97.565a132 132 0 0 1 1.268 2.2l-115.254 64.943Z"}),Q.createElement("path",{fill:"#fbff00",d:"M247.432 99.565a132 132 0 0 1 1.23 2.222l-116.37 62.921z"}),Q.createElement("path",{fill:"#f7ff00",d:"M248.552 101.584a132 132 0 0 1 1.19 2.244l-117.45 60.88z"}),Q.createElement("path",{fill:"#f2ff00",d:"M249.636 103.623a132 132 0 0 1 1.15 2.264l-118.494 58.821z"}),Q.createElement("path",{fill:"#ef0",d:"M250.684 105.68a132 132 0 0 1 1.111 2.284l-119.503 56.744z"}),Q.createElement("path",{fill:"#eaff00",d:"M251.696 107.755a132 132 0 0 1 1.072 2.303l-120.476 54.65z"}
1),Q.createElement("path",{fill:"#e6ff00",d:"M252.672 109.848a132 132 0 0 1 1.031 2.321l-121.411 52.54z"}),Q.createElement("path",{fill:"#e1ff00",d:"M253.611 111.957a132 132 0 0 1 .99 2.339l-122.31 50.412z"}),Q.createElement("path",{fill:"#df0",d:"M254.513 114.082a132 132 0 0 1 .95 2.356l-123.171 48.27z"}),Q.createElement("path",{fill:"#d9ff00",d:"M255.378 116.223a132 132 0 0 1 .908 2.372l-123.994 46.113z"}),Q.createElement("path",{fill:"#d5ff00",d:"M256.206 118.379a132 132 0 0 1 .866 2.387l-124.78 43.942z"}),Q.createElement("path",{fill:"#d0ff00",d:"M256.995 120.548a132 132 0 0 1 .825 2.403l-125.528 41.757z"}),Q.createElement("path",{fill:"#cf0",d:"M257.747 122.732a132 132 0 0 1 .783 2.416l-126.238 39.56z"}),Q.createElement("path",{fill:"#c8ff00",d:"M258.46 124.927a132 132 0 0 1 .74 2.43l-126.908 37.351z"}),Q.createElement("path",{fill:"#c4ff00",d:"M259.136 127.135a132 132 0 0 1 .697 2.442l-127.541 35.131z"}),Q.createElement("path",{fill:"#bfff00",d:"M259.772 129.355a132 132 0 0 1 .655 2.454l-128.135 32.9z"}),Q.createElement("path",{fill:"#bf0",d:"M260.37 131.585a132 132 0 0 1 .612 2.465l-128.69 30.658z"}),Q.createElement("path",{fill:"#b7ff00",d:"M260.928 133.825a132 132 0 0 1 .57 2.476l-129.206 28.407z"}),Q.createElement("path",{fill:"#b3ff00",d:"M261.448 136.075a132 132 0 0 1 .525 2.485l-129.681 26.148z"}),Q.createElement("path",{fill:"#aeff00",d:"M261.928 138.334a132 132 0 0 1 .482 2.493l-130.118 23.881z"}),Q.createElement("path",{fill:"#af0",d:"M262.368 140.6a132 132 0 0 1 .439 2.502l-130.515 21.606z"}),Q.createElement("path",{fill:"#a6ff00",d:"M262.769 142.874a132 132 0 0 1 .395 2.509l-130.872 19.325z"}),Q.createElement("path",{fill:"#a2ff00",d:"M263.13 145.154a132 132 0 0 1 .352 2.516l-131.19 17.038z"}),Q.createElement("path",{fill:"#9eff00",d:"M263.452 147.44a132 132 0 0 1 .307 2.522l-131.467 14.746z"}),Q.createElement("path",{fill:"#9f0",d:"M263.733 149.732a132 132 0 0 1 .263 2.527l-131.704 12.45z"}),Q.createElement("path",{fill:"#95ff00",d:"M263.974 152.029a132 132 0 0 1 .22 2.53l-131.902 10.15z"}),Q.createElement("path",{fill:"#91ff00",d:"M264.176 154.329a132 132 0 0 1 .174 2.534l-132.058 7.845z"}),Q.createElement("path",{fill:"#8cff00",d:"M264.337 156.632a132 132 0 0 1 .13 2.537l-132.175 5.54z"}),Q.createElement("path",{fill:"#8f0",d:"M264.457 158.938a132 132 0 0 1 .087 2.538l-132.252 3.232z"}),Q.createElement("path",{fill:"#84ff00",d:"M264.538 161.245a132 132 0 0 1 .042 2.54l-132.288.923z"}),Q.createElement("path",{fill:"#80ff00",d:"M264.578 163.554a132 132 0 0 1-.002 2.54l-132.284-1.386z"}),Q.createElement("path",{fill:"#7bff00",d:"M264.578 165.863a132 132 0 0 1-.046 2.54l-132.24-3.695z"}),Q.createElement("path",{fill:"#7f0",d:"M264.538 168.171a132 132 0 0 1-.09 2.538l-132.156-6z"}),Q.createElement("path",{fill:"#73ff00",d:"M264.457 170.479a132 132 0 0 1-.135 2.536l-132.03-8.307z"}),Q.createElement("path",{fill:"#6fff00",d:"M264.337 172.785a132 132 0 0 1-.18 2.533l-131.865-10.61Z"}),Q.createElement("path",{fill:"#6aff00",d:"M264.176 175.088a132 132 0 0 1-.224 2.53l-131.66-12.91z"}),Q.createElement("path",{fill:"#6f0",d:"M263.974 177.388a132 132 0 0 1-.267 2.526l-131.415-15.206Z"}),Q.createElement("path",{fill:"#62ff00",d:"M263.733 179.684a132 132 0 0 1-.312 2.52l-131.13-17.496Z"}),Q.createElement("path",{fill:"#5eff00",d:"M263.452 181.976a132 132 0 0 1-.356 2.515l-130.804-19.783Z"}),Q.createElement("path",{fill:"#59ff00",d:"M263.13 184.262a132 132 0 0 1-.4 2.508l-130.438-22.062Z"}),Q.createElement("path",{fill:"#5f0",d:"M262.769 186.543a132 132 0 0 1-.443 2.5l-130.034-24.335Z"}),Q.createElement("path",{fill:"#51ff00",d:"M262.368 188.817a132 132 0 0 1-.487 2.492l-129.59-26.6Z"}),Q.createElement("path",{fill:"#4dff00",d:"M261.928 191.083a132 132 0 0 1-.53 2.484l-129.106-28.859Z"}),Q.createElement("path",{fill:"#48ff00",d:"M261.448 193.341a132 132 0 0 1-.574 2.475l-128.582-31.108Z"}),Q.createElement("path",{fill:"#4f0",d:"M260.928 195.591a132 132 0 0 1-.616 2.464l-128.02-33.347Z"}),Q.createElement("path",{fill:"#40ff00",d:"M260.37 197.832a132 132 0 0 1-.66 2.452l-127.418-35.576Z"}),Q.createElement("path",{fill:"#3cff00",d:"M259.772 200.062a132 132 0 0 1-.702 2.44l-126.778-37.794z"}),Q.createElement("path",{fill:"#37ff00",d:"M259.136 202.281a132 132 0 0 1-.745 2.428l-126.1-40Z"}),Q.createElement("path",{fill:"#3f0",d:"M258.46 204.49a132 132 0 0 1-.786 2.414l-125.382-42.196Z"}),Q.createElement("path",{fill:"#2fff00",d:"M257.747 206.685a132 132 0 0 1-.829 2.4l-124.626-44.377Z"}),Q.createElement("path",{fill:"#2bff00",d:"M256.995 208.868a132 132 0 0 1-.87 2.386l-123.833-46.546Z"}),Q.createElement("path",{fill:"#26ff00",d:"M256.206 211.038a132 132 0 0 1-.913 2.37l-123.001-48.7Z"}),Q.createElement("path",{fill:"#2f0",d:"M255.378 213.193a132 132 0 0 1-.953 2.354l-122.133-50.839Z"}),Q.createElement("path",{fill:"#1eff00",d:"M254.513 215.334a132 132 0 0 1-.994 2.337l-121.227-52.963Z"}),Q.createElement("path",{fill:"#1aff00",d:"M253.611 217.46a132 132 0 0 1-1.035 2.319l-120.284-55.07Z"}),Q.createElement("path",{fill:"#15ff00",d:"M252.672 219.569a132 132 0 0 1-1.075 2.3l-119.305-57.16Z"}),Q.createElement("path",{fill:"#1f0",d:"M251.696 221.661a132 132 0 0 1-1.115 2.282l-118.29-59.235z"}),Q.createElement("path",{fill:"#0dff00",d:"M250.684 223.737a132 132 0 0 1-1.155 2.262l-117.237-61.29z"}),Q.createElement("path",{fill:"#09ff00",d:"M249.636 225.794a132 132 0 0 1-1.194 2.241l-116.15-63.327Z"}),Q.createElement("path",{fill:"#04ff00",d:"M248.552 227.832a132 132 0 0 1-1.233 2.22l-115.027-65.344Z"}),Q.createElement("path",{fill:"#0f0",d:"M247.432 229.852a132 132 0 0 1-1.271 2.198l-113.87-67.342z"}),Q.createElement("path",{fill:"#00ff04",d:"M246.278 231.851a132 132 0 0 1-1.31 2.176l-112.676-69.319Z"}),Q.createElement("path",{fill:"#00ff09",d:"M245.089 233.83a132 132 0 0 1-1.348 2.153l-111.45-71.275Z"}),Q.createElement("path",{fill:"#00ff0d",d:"M243.865 235.789a132 132 0 0 1-1.385 2.128l-110.188-73.209Z"}),Q.createElement("path",{fill:"#0f1",d:"M242.608 237.725a132 132 0 0 1-1.422 2.104l-108.894-75.12z"}),Q.createElement("path",{fill:"#00ff15",d:"M241.317 239.64a132 132 0 0 1-1.459 2.078l-107.566-77.01Z"}),Q.createElement("path",{fill:"#00ff1a",d:"M239.992 241.53a132 132 0 0 1-1.494 2.054l-106.206-78.876Z"}),Q.createElement("path",{fill:"#00ff1e",d:"M238.635 243.398a132 132 0 0 1-1.53 2.027l-104.813-80.717Z"}),Q.createElement("path",{fill:"#0f2",d:"M237.246 245.242a132 132 0 0 1-1.566 2l-103.388-82.534Z"}),Q.createElement("path",{fill:"#00ff26",d:"M235.824 247.062a132 132 0 0 1-1.6 1.972l-101.932-84.326Z"}),Q.createElement("path",{fill:"#00ff2b",d:"M234.371 248.856a132 132 0 0 1-1.634 1.944l-100.445-86.092Z"}),Q.createElement("path",{fill:"#00ff2f",d:"M232.887 250.625a132 132 0 0 1-1.668 1.915l-98.927-87.832z"}),Q.createElement("path",{fill:"#0f3",d:"M231.372 252.367a132 132 0 0 1-1.7 1.886l-97.38-89.545z"}),Q.createElement("path",{fill:"#00ff37",d:"M229.827 254.083a132 132 0 0 1-1.733 1.856l-95.802-91.23z"}),Q.createElement("path",{fill:"#00ff3c",d:"M228.253 255.772a132 132 0 0 1-1.766 1.825l-94.195-92.889z"}),Q.createElement("path",{fill:"#00ff40",d:"M226.649 257.433a132 132 0 0 1-1.798 1.794l-92.56-94.519z"}),Q.createElement("path",{fill:"#0f4",d:"M225.016 259.065a132 132 0 0 1-1.828 1.763l-90.896-96.12z"}),Q.createElement("path",{fill:"#00ff48",d:"M223.355 260.67a132 132 0 0 1-1.859 1.73l-89.204-97.692z"}),Q.createElement("path",{fill:"#00ff4d",d:"M221.667 262.244a132 132 0 0 1-1.89 1.698l-87.485-99.234z"}),Q.createElement("path",{fill:"#00ff51",d:"M219.95 263.789a132 132 0 0 1-1.917 1.665l-85.741-100.746Z"}),Q.createElement("path",{fill:"#0f5",d:"M218.208 265.304a132 132 0 0 1-1.947 1.63l-83.97-102.226Z"}),Q.createElement("path",{fill:"#00ff59",d:"M216.44 266.788a132 132 0 0 1-1.976 1.596l-82.172-103.676Z"}),Q.createElement("path",{fill:"#00ff5e",d:"M214.645 268.24a132 132 0 0 1-2.003 1.563l-80.35-105.095Z"}),Q.createElement("path",{fill:"#00ff62",d:"M212.826 269.662a132 132 0 0 1-2.03 1.527l-78.504-106.48Z"}),Q.createElement("path",{fill:"#0f6",d:"M210.982 271.052a132 132 0 0 1-2.056 1.49l-76.634-107.834Z"}),Q.createElement("path",{fill:"#00ff6a",d:"M209.114 272.409a132 132 0 0 1-2.082 1.455l-74.74-109.156Z"}),Q.createElement("path",{fill:"#00ff6f",d:"M207.223 273.733a132 132 0 0 1-2.107 1.419l-72.824-110.444Z"}),Q.createElement("path",{fill:"#00ff73",d:"M205.308 275.024a132 132 0 0 1-2.13 1.382l-70.886-111.698Z"}),Q.createElement("path",{fill:"#0f7",d:"M203.372 276.282a132 132 0 0 1-2.155 1.344l-68.925-112.918Z"}),Q.createElement("path",{fill:"#00ff7b",d:"M201.414 277.506a132 132 0 0 1-2.178 
11.306l-66.944-114.104Z"}),Q.createElement("path",{fill:"#00ff80",d:"M199.435 278.695a132 132 0 0 1-2.2 1.268l-64.943-115.255Z"}),Q.createElement("path",{fill:"#00ff84",d:"M197.435 279.85a132 132 0 0 1-2.222 1.229l-62.921-116.37Z"}),Q.createElement("path",{fill:"#0f8",d:"M195.416 280.969a132 132 0 0 1-2.244 1.19l-60.88-117.45z"}),Q.createElement("path",{fill:"#00ff8c",d:"M193.377 282.052a132 132 0 0 1-2.264 1.152l-58.821-118.496z"}),Q.createElement("path",{fill:"#00ff91",d:"M191.32 283.1a132 132 0 0 1-2.284 1.112l-56.744-119.504Z"}),Q.createElement("path",{fill:"#00ff95",d:"M189.245 284.113a132 132 0 0 1-2.303 1.071l-54.65-120.476Z"}),Q.createElement("path",{fill:"#0f9",d:"M187.152 285.089a132 132 0 0 1-2.321 1.03l-52.54-121.41Z"}),Q.createElement("path",{fill:"#00ff9d",d:"M185.043 286.028a132 132 0 0 1-2.339.99l-50.412-122.31Z"}),Q.createElement("path",{fill:"#00ffa2",d:"M182.918 286.93a132 132 0 0 1-2.356.95l-48.27-123.172Z"}),Q.createElement("path",{fill:"#00ffa6",d:"M180.777 287.795a132 132 0 0 1-2.372.908l-46.113-123.995z"}),Q.createElement("path",{fill:"#0fa",d:"M178.621 288.622a132 132 0 0 1-2.387.867l-43.942-124.78z"}),Q.createElement("path",{fill:"#00ffae",d:"M176.452 289.412a132 132 0 0 1-2.403.825l-41.757-125.529Z"}),Q.createElement("path",{fill:"#00ffb3",d:"M174.268 290.164a132 132 0 0 1-2.416.782l-39.56-126.238Z"}),Q.createElement("path",{fill:"#00ffb7",d:"M172.073 290.877a132 132 0 0 1-2.43.74l-37.351-126.909Z"}),Q.createElement("path",{fill:"#0fb",d:"M169.865 291.552a132 132 0 0 1-2.442.698l-35.131-127.542Z"}),Q.createElement("path",{fill:"#00ffbf",d:"M167.645 292.189a132 132 0 0 1-2.454.655l-32.9-128.136z"}),Q.createElement("path",{fill:"#00ffc4",d:"M165.415 292.786a132 132 0 0 1-2.465.612l-30.658-128.69Z"}),Q.createElement("path",{fill:"#00ffc8",d:"M163.175 293.345a132 132 0 0 1-2.476.569l-28.407-129.206z"}),Q.createElement("path",{fill:"#0fc",d:"M160.925 293.864a132 132 0 0 1-2.485.526l-26.148-129.682Z"}),Q.createElement("path",{fill:"#00ffd0",d:"M158.666 294.344a132 132 0 0 1-2.493.483l-23.881-130.119Z"}),Q.createElement("path",{fill:"#00ffd5",d:"M156.4 294.785a132 132 0 0 1-2.502.439l-21.606-130.516Z"}),Q.createElement("path",{fill:"#00ffd9",d:"M154.126 295.186a132 132 0 0 1-2.509.395l-19.325-130.873Z"}),Q.createElement("path",{fill:"#0fd",d:"M151.846 295.547a132 132 0 0 1-2.516.351l-17.038-131.19Z"}),Q.createElement("path",{fill:"#00ffe1",d:"M149.56 295.868a132 132 0 0 1-2.522.308l-14.746-131.468Z"}),Q.createElement("path",{fill:"#00ffe6",d:"M147.268 296.15a132 132 0 0 1-2.527.263l-12.45-131.705Z"}),Q.createElement("path",{fill:"#00ffea",d:"M144.971 296.391a132 132 0 0 1-2.53.22l-10.15-131.903z"}),Q.createElement("path",{fill:"#0fe",d:"M142.671 296.592a132 132 0 0 1-2.534.175l-7.845-132.059z"}),Q.createElement("path",{fill:"#00fff2",d:"M140.368 296.753a132 132 0 0 1-2.537.131l-5.54-132.176z"}),Q.createElement("path",{fill:"#00fff7",d:"M138.062 296.874a132 132 0 0 1-2.538.086l-3.232-132.252z"}),Q.createElement("path",{fill:"#00fffb",d:"M135.755 296.955a132 132 0 0 1-2.54.042l-.923-132.289z"}),Q.createElement("path",{fill:"#0ff",d:"M133.446 296.995a132 132 0 0 1-2.54-.002l1.386-132.284z"}),Q.createElement("path",{fill:"#00fbff",d:"M131.137 296.995a132 132 0 0 1-2.54-.047l3.695-132.24z"}),Q.createElement("path",{fill:"#00f7ff",d:"M128.829 296.955a132 132 0 0 1-2.538-.091l6-132.156z"}),Q.createElement("path",{fill:"#00f2ff",d:"M126.521 296.874a132 132 0 0 1-2.536-.135l8.307-132.03z"}),Q.createElement("path",{fill:"#0ef",d:"M124.215 296.753a132 132 0 0 1-2.533-.18l10.61-131.865z"}),Q.createElement("path",{fill:"#00eaff",d:"M121.912 296.592a132 132 0 0 1-2.53-.223l12.91-131.66z"}),Q.createElement("path",{fill:"#00e6ff",d:"M119.612 296.391a132 132 0 0 1-2.526-.268l15.206-131.415z"}),Q.createElement("path",{fill:"#00e1ff",d:"M117.316 296.15a132 132 0 0 1-2.52-.312l17.496-131.13z"}),Q.createElement("path",{fill:"#0df",d:"M115.024 295.868a132 132 0 0 1-2.515-.355l19.783-130.805z"}),Q.createElement("path",{fill:"#00d9ff",d:"M112.738 295.547a132 132 0 0 1-2.508-.4l22.062-130.439z"}),Q.createElement("path",{fill:"#00d5ff",d:"M110.457 295.186a132 132 0 0 1-2.5-.444l24.335-130.034z"}),Q.createElement("path",{fill:"#00d0ff",d:"M108.183 294.785a132 132 0 0 1-2.492-.487l26.6-129.59z"}),Q.createElement("path",{fill:"#0cf",d:"M105.917 294.344a132 132 0 0 1-2.484-.53l28.859-129.106z"}),Q.createElement("path",{fill:"#00c8ff",d:"M103.659 293.864a132 132 0 0 1-2.475-.573l31.108-128.583z"}),Q.createElement("path",{fill:"#00c4ff",d:"M101.409 293.345a132 132 0 0 1-2.464-.617l33.347-128.02Z"}),Q.createElement("path",{fill:"#00bfff",d:"M99.168 292.786a132 132 0 0 1-2.452-.66l35.576-127.418Z"}),Q.createElement("path",{fill:"#0bf",d:"M96.938 292.189a132 132 0 0 1-2.44-.703l37.794-126.778Z"}),Q.createElement("path",{fill:"#00b7ff",d:"M94.719 291.552a132 132 0 0 1-2.428-.744l40-126.1Z"}),Q.createElement("path",{fill:"#00b3ff",d:"M92.51 290.877a132 132 0 0 1-2.414-.787l42.196-125.382Z"}),Q.createElement("path",{fill:"#00aeff",d:"M90.315 290.164a132 132 0 0 1-2.4-.83l44.377-124.626Z"}),Q.createElement("path",{fill:"#0af",d:"M88.132 289.412a132 132 0 0 1-2.386-.87l46.546-123.834Z"}),Q.createElement("path",{fill:"#00a6ff",d:"M85.962 288.622a132 132 0 0 1-2.37-.912l48.7-123.002Z"}),Q.createElement("path",{fill:"#00a2ff",d:"M83.807 287.795a132 132 0 0 1-2.354-.954l50.839-122.133Z"}),Q.createElement("path",{fill:"#009dff",d:"M81.666 286.93a132 132 0 0 1-2.337-.995l52.963-121.227Z"}),Q.createElement("path",{fill:"#09f",d:"M79.54 286.028a132 132 0 0 1-2.319-1.035l55.07-120.285Z"}),Q.createElement("path",{fill:"#0095ff",d:"M77.431 285.089a132 132 0 0 1-2.3-1.076l57.16-119.305Z"}),Q.createElement("path",{fill:"#0091ff",d:"M75.339 284.113a132 132 0 0 1-2.282-1.116l59.235-118.289Z"}),Q.createElement("path",{fill:"#008cff",d:"M73.263 283.1a132 132 0 0 1-2.262-1.154l61.29-117.238Z"}),Q.createElement("path",{fill:"#08f",d:"M71.206 282.052a132 132 0 0 1-2.241-1.194l63.327-116.15Z"}),Q.createElement("path",{fill:"#0084ff",d:"M69.168 280.969a132 132 0 0 1-2.22-1.234l65.344-115.027Z"}),Q.createElement("path",{fill:"#0080ff",d:"M67.148 279.85a132 132 0 0 1-2.198-1.273l67.342-113.869z"}),Q.createElement("path",{fill:"#007bff",d:"M65.149 278.695a132 132 0 0 1-2.176-1.31l69.319-112.677Z"}),Q.createElement("path",{fill:"#07f",d:"M63.17 277.506a132 132 0 0 1-2.153-1.348l71.275-111.45Z"}),Q.createElement("path",{fill:"#0072ff",d:"M61.211 276.282a132 132 0 0 1-2.128-1.385l73.209-110.189Z"}),Q.createElement("path",{fill:"#006fff",d:"M59.275 275.024a132 132 0 0 1-2.104-1.422l75.12-108.894Z"}),Q.createElement("path",{fill:"#006aff",d:"M57.36 273.733a132 132 0 0 1-2.078-1.458l77.01-107.567Z"}),Q.createElement("path",{fill:"#06f",d:"M55.47 272.409a132 132 0 0 1-2.054-1.495l78.876-106.206z"}),Q.createElement("path",{fill:"#0062ff",d:"M53.602 271.052a132 132 0 0 1-2.027-1.53l80.717-104.814Z"}),Q.createElement("path",{fill:"#005eff",d:"M51.758 269.662a132 132 0 0 1-2-1.565l82.534-103.389Z"}),Q.createElement("path",{fill:"#0059ff",d:"M49.938 268.24a132 132 0 0 1-1.972-1.6l84.326-101.932Z"}),Q.createElement("path",{fill:"#05f",d:"M48.144 266.788a132 132 0 0 1-1.944-1.634l86.092-100.446Z"}),Q.createElement("path",{fill:"#0051ff",d:"M46.375 265.304a132 132 0 0 1-1.915-1.668l87.832-98.928z"}),Q.createElement("path",{fill:"#004dff",d:"M44.633 263.789a132 132 0 0 1-1.886-1.701l89.545-97.38z"}),Q.createElement("path",{fill:"#0048ff",d:"M42.917 262.244a132 132 0 0 1-1.856-1.734l91.23-95.802z"}),Q.createElement("path",{fill:"#04f",d:"M41.228 260.67a132 132 0 0 1-1.825-1.767l92.889-94.195z"}),Q.createElement("path",{fill:"#0040ff",d:"M39.567 259.065a132 132 0 0 1-1.794-1.797l94.519-92.56z"}),Q.createElement("path",{fill:"#003cff",d:"M37.935 257.433a132 132 0 0 1-1.763-1.829l96.12-90.896z"}),Q.createElement("path",{fill:"#0037ff",d:"M36.33 255.772a132 132 0 0 1-1.73-1.86l97.692-89.204z"}),Q.createElement("path",{fill:"#03f",d:"M34.756 254.083a132 132 0 0 1-1.698-1.889l99.234-87.486z"}),Q.createElement("path",{fill:"#002fff",d:"M33.211 252.367a132 132 0 0 1-1.665-1.9
118l100.746-85.74Z"}),Q.createElement("path",{fill:"#002bff",d:"M31.696 250.625a132 132 0 0 1-1.63-1.947l102.226-83.97Z"}),Q.createElement("path",{fill:"#0026ff",d:"M30.212 248.856a132 132 0 0 1-1.596-1.975l103.676-82.173Z"}),Q.createElement("path",{fill:"#02f",d:"M28.76 247.062a132 132 0 0 1-1.563-2.003l105.095-80.35Z"}),Q.createElement("path",{fill:"#001eff",d:"M27.338 245.242a132 132 0 0 1-1.527-2.03l106.48-78.504Z"}),Q.createElement("path",{fill:"#001aff",d:"M25.948 243.398a132 132 0 0 1-1.49-2.056l107.834-76.634Z"}),Q.createElement("path",{fill:"#0015ff",d:"M24.591 241.53a132 132 0 0 1-1.455-2.081l109.156-74.74Z"}),Q.createElement("path",{fill:"#01f",d:"M23.267 239.64a132 132 0 0 1-1.419-2.108l110.444-72.824Z"}),Q.createElement("path",{fill:"#000dff",d:"M21.976 237.725a132 132 0 0 1-1.382-2.131l111.698-70.886Z"}),Q.createElement("path",{fill:"#0009ff",d:"M20.718 235.789a132 132 0 0 1-1.344-2.155l112.918-68.926Z"}),Q.createElement("path",{fill:"#0004ff",d:"M19.494 233.83a132 132 0 0 1-1.306-2.178l114.104-66.944Z"}),Q.createElement("path",{fill:"#00f",d:"M18.305 231.851a132 132 0 0 1-1.268-2.2l115.255-64.943Z"}),Q.createElement("path",{fill:"#0400ff",d:"M17.15 229.852a132 132 0 0 1-1.229-2.223l116.37-62.92Z"}),Q.createElement("path",{fill:"#0900ff",d:"M16.031 227.832a132 132 0 0 1-1.19-2.243l117.45-60.88z"}),Q.createElement("path",{fill:"#0d00ff",d:"M14.948 225.794a132 132 0 0 1-1.152-2.264l118.496-58.822Z"}),Q.createElement("path",{fill:"#10f",d:"M13.9 223.737a132 132 0 0 1-1.112-2.284l119.504-56.745Z"}),Q.createElement("path",{fill:"#1500ff",d:"M12.887 221.661a132 132 0 0 1-1.071-2.302l120.476-54.65Z"}),Q.createElement("path",{fill:"#1a00ff",d:"M11.911 219.569a132 132 0 0 1-1.03-2.321l121.41-52.54Z"}),Q.createElement("path",{fill:"#1e00ff",d:"M10.972 217.46a132 132 0 0 1-.99-2.34l122.31-50.412Z"}),Q.createElement("path",{fill:"#20f",d:"M10.07 215.334a132 132 0 0 1-.95-2.356l123.172-48.27Z"}),Q.createElement("path",{fill:"#2600ff",d:"M9.205 213.193a132 132 0 0 1-.908-2.371l123.995-46.114Z"}),Q.createElement("path",{fill:"#2b00ff",d:"M8.378 211.038a132 132 0 0 1-.867-2.388l124.78-43.942Z"}),Q.createElement("path",{fill:"#2f00ff",d:"M7.588 208.868a132 132 0 0 1-.825-2.402l125.529-41.758Z"}),Q.createElement("path",{fill:"#30f",d:"M6.836 206.685a132 132 0 0 1-.782-2.416l126.238-39.56z"}),Q.createElement("path",{fill:"#3700ff",d:"M6.123 204.49a132 132 0 0 1-.74-2.43l126.909-37.352Z"}),Q.createElement("path",{fill:"#3c00ff",d:"M5.448 202.281a132 132 0 0 1-.698-2.442l127.542-35.13Z"}),Q.createElement("path",{fill:"#4000ff",d:"M4.811 200.062a132 132 0 0 1-.655-2.454l128.136-32.9Z"}),Q.createElement("path",{fill:"#40f",d:"M4.214 197.832a132 132 0 0 1-.612-2.465l128.69-30.659Z"}),Q.createElement("path",{fill:"#4800ff",d:"M3.655 195.591a132 132 0 0 1-.569-2.475l129.206-28.408z"}),Q.createElement("path",{fill:"#4d00ff",d:"M3.136 193.341a132 132 0 0 1-.526-2.484l129.682-26.149Z"}),Q.createElement("path",{fill:"#5100ff",d:"M2.656 191.083a132 132 0 0 1-.483-2.493l130.119-23.882Z"}),Q.createElement("path",{fill:"#50f",d:"M2.215 188.817a132 132 0 0 1-.439-2.502l130.516-21.607Z"}),Q.createElement("path",{fill:"#5900ff",d:"M1.814 186.543a132 132 0 0 1-.395-2.51l130.873-19.325Z"}),Q.createElement("path",{fill:"#5e00ff",d:"M1.453 184.262a132 132 0 0 1-.351-2.515l131.19-17.039Z"}),Q.createElement("path",{fill:"#6200ff",d:"M1.132 181.976a132 132 0 0 1-.308-2.521l131.468-14.747Z"}),Q.createElement("path",{fill:"#60f",d:"M.85 179.684a132 132 0 0 1-.263-2.526l131.705-12.45Z"}),Q.createElement("path",{fill:"#6a00ff",d:"M.609 177.388a132 132 0 0 1-.22-2.53l131.903-10.15Z"}),Q.createElement("path",{fill:"#6f00ff",d:"M.408 175.088a132 132 0 0 1-.175-2.534l132.059-7.846Z"}),Q.createElement("path",{fill:"#7300ff",d:"M.247 172.785a132 132 0 0 1-.131-2.537l132.176-5.54z"}),Q.createElement("path",{fill:"#70f",d:"M.126 170.479a132 132 0 0 1-.087-2.538l132.253-3.233Z"}),Q.createElement("path",{fill:"#7b00ff",d:"M.045 168.171a132 132 0 0 1-.042-2.54l132.289-.923Z"}),Q.createElement("path",{fill:"#8000ff",d:"M.005 165.863a132 132 0 0 1 .002-2.54l132.285 1.385z"}),Q.createElement("path",{fill:"#8400ff",d:"M.005 163.554a132 132 0 0 1 .047-2.54l132.24 3.694z"}),Q.createElement("path",{fill:"#80f",d:"M.045 161.245a132 132 0 0 1 .091-2.538l132.156 6.001Z"}),Q.createElement("path",{fill:"#8c00ff",d:"M.126 158.938a132 132 0 0 1 .135-2.536l132.03 8.306Z"}),Q.createElement("path",{fill:"#9100ff",d:"M.247 156.632a132 132 0 0 1 .18-2.533l131.865 10.61Z"}),Q.createElement("path",{fill:"#9500ff",d:"M.408 154.329a132 132 0 0 1 .223-2.53l131.66 12.91Z"}),Q.createElement("path",{fill:"#90f",d:"M.609 152.029a132 132 0 0 1 .268-2.526l131.415 15.205Z"}),Q.createElement("path",{fill:"#9d00ff",d:"M.85 149.732a132 132 0 0 1 .312-2.52l131.13 
117.496Z"}),Q.createElement("path",{fill:"#a200ff",d:"M1.132 147.44a132 132 0 0 1 .355-2.514l130.805 19.782Z"}),Q.createElement("path",{fill:"#a600ff",d:"M1.453 145.154a132 132 0 0 1 .4-2.508l130.439 22.062Z"}),Q.createElement("path",{fill:"#a0f",d:"M1.814 142.874a132 132 0 0 1 .444-2.5l130.034 24.334Z"}),Q.createElement("path",{fill:"#ae00ff",d:"M2.215 140.6a132 132 0 0 1 .487-2.493l129.59 26.601Z"}),Q.createElement("path",{fill:"#b300ff",d:"M2.656 138.334a132 132 0 0 1 .53-2.484l129.106 28.858Z"}),Q.createElement("path",{fill:"#b700ff",d:"M3.136 136.075a132 132 0 0 1 .573-2.474l128.583 31.107Z"}),Q.createElement("path",{fill:"#b0f",d:"M3.655 133.825a132 132 0 0 1 .617-2.463l128.02 33.346z"}),Q.createElement("path",{fill:"#bf00ff",d:"M4.214 131.585a132 132 0 0 1 .66-2.453l127.418 35.576Z"}),Q.createElement("path",{fill:"#c400ff",d:"M4.811 129.355a132 132 0 0 1 .703-2.44l126.778 37.793Z"}),Q.createElement("path",{fill:"#c800ff",d:"M5.448 127.135a132 132 0 0 1 .744-2.428l126.1 40.001Z"}),Q.createElement("path",{fill:"#c0f",d:"M6.123 124.927a132 132 0 0 1 .787-2.414l125.382 42.195Z"}),Q.createElement("path",{fill:"#d000ff",d:"M6.836 122.732a132 132 0 0 1 .83-2.401l124.626 44.377Z"}),Q.createElement("path",{fill:"#d500ff",d:"M7.588 120.548a132 132 0 0 1 .87-2.385l123.834 46.545Z"}),Q.createElement("path",{fill:"#d900ff",d:"M8.378 118.379a132 132 0 0 1 .912-2.37l123.002 48.7Z"}),Q.createElement("path",{fill:"#d0f",d:"M9.205 116.223a132 132 0 0 1 .954-2.354l122.133 50.84z"}),Q.createElement("path",{fill:"#e100ff",d:"M10.07 114.083a132 132 0 0 1 .995-2.338l121.227 52.963z"}
1),Q.createElement("path",{fill:"#e600ff",d:"M10.972 111.957a132 132 0 0 1 1.035-2.32l120.285 55.071z"}),Q.createElement("path",{fill:"#ea00ff",d:"M11.911 109.848a132 132 0 0 1 1.076-2.301l119.305 57.161z"}),Q.createElement("path",{fill:"#e0f",d:"M12.887 107.755a132 132 0 0 1 1.116-2.281l118.289 59.234z"}),Q.createElement("path",{fill:"#f200ff",d:"M13.9 105.68a132 132 0 0 1 1.154-2.262l117.238 61.29z"}),Q.createElement("path",{fill:"#f700ff",d:"M14.948 103.623a132 132 0 0 1 1.194-2.242l116.15 63.327z"}),Q.createElement("path",{fill:"#fb00ff",d:"M16.031 101.584a132 132 0 0 1 1.234-2.22l115.027 65.344Z"}),Q.createElement("path",{fill:"#f0f",d:"M17.15 99.565a132 132 0 0 1 1.273-2.199l113.869 67.342z"}),Q.createElement("path",{fill:"#ff00fb",d:"M18.305 97.565a132 132 0 0 1 1.31-2.176l112.677 69.32Z"}),Q.createElement("path",{fill:"#ff00f7",d:"M19.494 95.586a132 132 0 0 1 1.348-2.153l111.45 71.275Z"}),Q.createElement("path",{fill:"#ff00f2",d:"M20.718 93.628a132 132 0 0 1 1.385-2.129l110.189 73.21z"}),Q.createElement("path",{fill:"#f0e",d:"M21.976 91.692a132 132 0 0 1 1.422-2.105l108.894 75.121Z"}),Q.createElement("path",{fill:"#ff00ea",d:"M23.267 89.778a132 132 0 0 1 1.458-2.08l107.567 77.01Z"}),Q.createElement("path",{fill:"#ff00e6",d:"M24.591 87.886a132 132 0 0 1 1.495-2.053l106.206 78.875Z"}),Q.createElement("path",{fill:"#ff00e1",d:"M25.948 86.018a132 132 0 0 1 1.53-2.027l104.814 80.717z"}),Q.createElement("path",{fill:"#f0d",d:"M27.338 84.174a132 132 0 0 1 1.565-2l103.389 82.534Z"}),Q.createElement("path",{fill:"#ff00d9",d:"M28.76 82.355a132 132 0 0 1 1.6-1.973l101.932 84.326Z"}),Q.createElement("path",{fill:"#ff00d5",d:"M30.212 80.56a132 132 0 0 1 1.634-1.944l100.446 86.092Z"}),Q.createElement("path",{fill:"#ff00d0",d:"M31.696 78.792a132 132 0 0 1 1.668-1.916l98.928 87.832z"}),Q.createElement("path",{fill:"#f0c",d:"M33.211 77.05a132 132 0 0 1 1.701-1.887l97.38 89.545z"}),Q.createElement("path",{fill:"#ff00c8",d:"M34.756 75.333a132 132 0 0 1 1.734-1.856l95.802 91.231z"}),Q.createElement("path",{fill:"#ff00c4",d:"M36.33 73.645a132 132 0 0 1 1.767-1.826l94.195 92.89z"}),Q.createElement("path",{fill:"#ff00bf",d:"M37.935 71.984a132 132 0 0 1 1.797-1.794l92.56 94.518z"}),Q.createElement("path",{fill:"#f0b",d:"M39.567 70.351a132 132 0 0 1 1.829-1.762l90.896 96.12z"}),Q.createElement("path",{fill:"#ff00b7",d:"M41.228 68.747a132 132 0 0 1 1.86-1.73l89.204 97.691z"}),Q.createElement("path",{fill:"#ff00b3",d:"M42.917 67.173a132 132 0 0 1 1.889-1.698l87.486 99.233z"}),Q.createElement("path",{fill:"#ff00ae",d:"M44.633 65.628a132 132 0 0 1 1.918-1.665l85.74 100.745Z"}),Q.createElement("path",{fill:"#f0a",d:"M46.375 64.113a132 132 0 0 1 1.947-1.63l83.97 102.225Z"}),Q.createElement("path",{fill:"#ff00a6",d:"M48.144 62.629a132 132 0 0 1 1.975-1.597l82.173 103.676Z"}),Q.createElement("path",{fill:"#ff00a2",d:"M49.938 61.176a132 132 0 0 1 2.003-1.562l80.35 105.094Z"}),Q.createElement("path",{fill:"#ff009d",d:"M51.758 59.754a132 132 0 0 1 2.03-1.526l78.504 106.48Z"}),Q.createElement("path",{fill:"#f09",d:"M53.602 58.365a132 132 0 0 1 2.056-1.491l76.634 107.834Z"}),Q.createElement("path",{fill:"#ff0095",d:"M55.47 57.008a132 132 0 0 1 2.081-1.455l74.74 109.155z"}),Q.createElement("path",{fill:"#ff0091",d:"M57.36 55.683a132 132 0 0 1 2.108-1.418l72.824 110.443Z"}),Q.createElement("path",{fill:"#ff008c",d:"M59.275 54.392a132 132 0 0 1 2.131-1.381l70.886 111.697Z"}),Q.createElement("path",{fill:"#f08",d:"M61.211 53.135a132 132 0 0 1 2.155-1.344l68.926 112.917Z"}),Q.createElement("path",{fill:"#ff0084",d:"M63.17 51.911a132 132 0 0 1 2.178-1.306l66.944 114.103Z"}),Q.createElement("path",{fill:"#ff0080",d:"M65.149 50.722a132 132 0 0 1 2.2-1.268l64.943 115.254Z"}),Q.createElement("path",{fill:"#ff007b",d:"M67.148 49.568a132 132 0 0 1 2.223-1.23l62.92 116.37Z"}),Q.createElement("path",{fill:"#f07",d:"M69.168 48.448a132 132 0 0 1 2.243-1.19l60.88 117.45Z"}),Q.createElement("path",{fill:"#ff0073",d:"M71.206 47.364a132 132 0 0 1 2.264-1.15l58.822 118.494Z"}),Q.createElement("path",{fill:"#ff006f",d:"M73.263 46.316a132 132 0 0 1 2.284-1.111l56.745 119.503Z"}),Q.createElement("path",{fill:"#ff006a",d:"M75.339 45.304a132 132 0 0 1 2.302-1.072l54.65 120.476Z"}),Q.createElement("path",{fill:"#f06",d:"M77.431 44.328a132 132 0 0 1 2.321-1.031l52.54 121.411Z"}),Q.createElement("path",{fill:"#ff0062",d:"M79.54 43.389a132 132 0 0 1 2.34-.99l50.412 122.31Z"}),Q.createElement("path",{fill:"#ff005e",d:"M81.666 42.487a132 132 0 0 1 2.356-.95l48.27 123.171Z"}),Q.createElement("path",{fill:"#ff0059",d:"M83.807 41.622a132 132 0 0 1 2.371-.908l46.114 123.994Z"}),Q.createElement("path",{fill:"#f05",d:"M85.962 40.794a132 132 0 0 1 2.388-.866l43.942 124.78Z"}),Q.createElement("path",{fill:"#ff0051",d:"M88.132 40.005a132 132 0 0 1 2.402-.825l41.758 125.528Z"}),Q.createElement("path",{fill:"#ff004d",d:"M90.315 39.253a132 132 0 0 1 2.416-.783l39.56 12
16.238Z"}),Q.createElement("path",{fill:"#ff0048",d:"M92.51 38.54a132 132 0 0 1 2.43-.74l37.352 126.908Z"}),Q.createElement("path",{fill:"#f04",d:"M94.719 37.864a132 132 0 0 1 2.442-.697l35.13 127.541Z"}),Q.createElement("path",{fill:"#ff0040",d:"M96.938 37.228a132 132 0 0 1 2.454-.655l32.9 128.135Z"}),Q.createElement("path",{fill:"#ff003c",d:"M99.168 36.63a132 132 0 0 1 2.465-.612l30.659 128.69z"}),Q.createElement("path",{fill:"#ff0037",d:"M101.409 36.072a132 132 0 0 1 2.475-.57l28.408 129.206z"}),Q.createElement("path",{fill:"#f03",d:"M103.659 35.552a132 132 0 0 1 2.484-.525l26.149 129.681z"}),Q.createElement("path",{fill:"#ff002f",d:"M105.917 35.072a132 132 0 0 1 2.493-.482l23.882 130.118z"}),Q.createElement("path",{fill:"#ff002b",d:"M108.183 34.632a132 132 0 0 1 2.502-.439l21.607 130.515Z"}),Q.createElement("path",{fill:"#ff0026",d:"M110.457 34.231a132 132 0 0 1 2.51-.395l19.325 130.872z"}),Q.createElement("path",{fill:"#f02",d:"M112.738 33.87a132 132 0 0 1 2.515-.352l17.039 131.19z"}),Q.createElement("path",{fill:"#ff001e",d:"M115.024 33.548a132 132 0 0 1 2.521-.307l14.747 131.467z"}),Q.createElement("path",{fill:"#ff001a",d:"M117.316 33.267a132 132 0 0 1 2.526-.263l12.45 131.704z"}),Q.createElement("path",{fill:"#ff0015",d:"M119.612 33.026a132 132 0 0 1 2.53-.22l10.15 131.902z"}),Q.createElement("path",{fill:"#f01",d:"M121.912 32.824a132 132 0 0 1 2.534-.174l7.846 132.058z"}),Q.createElement("path",{fill:"#ff000d",d:"M124.215 32.663a132 132 0 0 1 2.537-.13l5.54 132.175z"}),Q.createElement("path",{fill:"#ff0009",d:"M126.521 32.543a132 132 0 0 1 2.539-.087l3.232 132.252z"}),Q.createElement("path",{fill:"#ff0004",d:"M128.829 32.462a132 132 0 0 1 2.54-.042l.923 132.288z"}),Q.createElement("circle",{cx:132.292,cy:164.708,r:132.292,fill:"url(#icon-font-color-2_svg__b)"}))))};function td(){return(td=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var a in l)({}).hasOwnProperty.call(l,a)&&(e[a]=l[a])}return e}).apply(null,arguments)}let tf=function(e){return Q.createElement("svg",td({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 18 18"},e),P||(P=Q.createElement("path",{fill:"#fff",d:"M.288 17.5 7.896.7h2.376l7.632 16.8h-2.52L8.592 2.044h.96L2.76 17.5zm3.24-4.2.648-1.92h9.456l.696 1.92z"})))};function tp(){return(tp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var a in l)({}).hasOwnProperty.call(l,a)&&(e[a]=l[a])}return e}).apply(null,arguments)}let tu=function(e){return Q.createElement("svg",tp({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),N||(N=Q.createElement("path",{stroke:"#fff",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9.06 11.9 3.5 17.46c-.37.37-.37.97 0 1.34l1.7 1.7c.37.37.97.37 1.34 0l5.56-5.56M12.1 14.94 9.06 11.9l7.44-7.44c1.1-1.1 2.88-1.1 3.98 0s1.1 2.88 0 3.98l-7.44 7.44"})))};function tm(){return(tm=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var a in l)({}).hasOwnProperty.call(l,a)&&(e[a]=l[a])}return e}).apply(null,arguments)}let t_=function(e){return Q.createElement("svg",tm({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),Z||(Z=Q.createElement("path",{stroke:"#fff",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 10h10.5a5.5 5.5 0 1 1 0 11H7"})),L||(L=Q.createElement("path",{stroke:"#fff",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M8.5 5.5 4 10l4.5 4.5"})))};function th(){return(th=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var a in l)({}).hasOwnProperty.call(l,a)&&(e[a]=l[a])}return e}).apply(null,arguments)}let tx=function(e){return Q.createElement("svg",th({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),R||(R=Q.createElement("path",{stroke:"#fff",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M20 10H9.5a5.5 5.5 0 1 0 0 11H17"})),A||(A=Q.createElement("path",{stroke:"#fff",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M15.5 5.5 20 10l-4.5 4.5"})))};var tv=l(3117),tg=l(24182),tw=l.n(tg),tb=l(82201),tM=l.n(tb);let tj=(0,Q.forwardRef)(({fabricCanvas:e,setFabricCanvas:t,callbackSelectText:a=()=>{},width:n,height:r,onHistoryChange:i=()=>{}},s)=>{let o=(0,Q.useRef)(null),c=(0,Q.useRef)(null),[d,f]=(0,Q.useState)(null),p=(0,Q.useRef)(null),u=(0,Q.useRef)(null),m=(0,Q.useRef)(!1),_=(0,Q.useRef)({stack:[],index:-1,isRestoring:!1});(0,Q.useEffect)(()=>{(async()=>{let e=await Promise.all([l.e(8313),l.e(9304),l.e(2132)]).then(l.t.bind(l,72867,23));p.current=e,o.current&&t(new e.fabric.Canvas(o.current,{width:360,height:640}))})()},[]),(0,Q.useEffect)(()=>{e&&n&&r&&e.setDimensions({width:n,height:r},{cssOnly:!0})},[e,n,r]),(0,Q.useEffect)(()=>{(async()=>
1{if(e){let t=e=>{if(Array.isArray(e.selected)){let t=e.selected[0];f(t),u.current&&t!==u.current&&B()}},l=e=>{if(Array.isArray(e.selected)){let t=e.selected[0];f(t),u.current&&t!==u.current&&B()}},a=()=>{f(null),u.current&&(B(),m.current&&(e.isDrawingMode=!0))};e?.on("selection:created",t),e?.on("selection:updated",l),e?.on("selection:cleared",a);let n=t=>{_.current.isRestoring||t?.target?.type!=="path"&&h(e)};e?.on("object:added",n),e?.on("object:modified",n),e?.on("object:removed",n);let r=t=>{let l=t?.path;l&&(e.isDrawingMode=!1,l.selectable=!0,l.evented=!0,u.current=l,e.setActiveObject(l),e.requestRenderAll())};return e?.on("path:created",r),h(e),()=>{e?.off("selection:created",t),e?.off("selection:updated",l),e?.off("selection:cleared",a),e?.off("object:added",n),e?.off("object:modified",n),e?.off("object:removed",n),e?.off("path:created",r),e?.dispose()}}})()},[e]),(0,Q.useEffect)(()=>{d&&"i-text"===d.type&&a()},[d]);let h=e=>{let t=JSON.stringify(e.toJSON(["selectable","evented"])),l=_.current,a=l.stack.slice(0,l.index+1);for(a.push(t);a.length>20;)a.shift();l.stack=a,l.index=a.length-1,x()},x=()=>{let e=_.current;i({canUndo:e.index>0,canRedo:e.index<e.stack.length-1})},v=(0,Q.useRef)(null),g=()=>{e&&!_.current.isRestoring&&(v.current&&clearTimeout(v.current),v.current=setTimeout(()=>{v.current=null,_.current.isRestoring||h(e)},400))};(0,Q.useEffect)(()=>()=>{v.current&&clearTimeout(v.current)},[]);let w=t=>{v.current&&(clearTimeout(v.current),v.current=null);let l=_.current,a=l.stack[t];e&&a&&(l.isRestoring=!0,e.loadFromJSON(a,()=>{e.renderAll(),l.index=t,l.isRestoring=!1,x()}))},b=()=>{let e=_.current;e.index>0&&w(e.index-1)},M=()=>{let e=_.current;e.index<e.stack.length-1&&w(e.index+1)},j=async t=>{if(t.current&&e){let l=(await tM()(t.current,{backgroundColor:null,useCORS:!0,allowTaint:!0})).toDataURL("image/png");p.current?.fabric.Image.fromURL(l,t=>{y(t),e?.add(t),e?.renderAll()})}},E=t=>{let l=new FileReader;l.onerror=()=>{console.error("Ошибка при чтении файла",l.error)},l.onload=()=>{"string"==typeof l.result&&p.current?.fabric.Image.fromURL(l.result,t=>{c.current=t,y(t),e&&(e.add(t),e.renderAll(),S("#fff"))},{crossOrigin:"anonymous"})},l.readAsDataURL(t)},y=e=>{let t=Math.min(360/(e.width||1),640/(e.height||1));e.set({left:180,top:320,originX:"center",originY:"center",scaleX:t,scaleY:t}),e.selectable=!0,e.hasControls=!0,e.lockMovementX=!1,e.lockMovementY=!1},k=()=>{c.current&&(e?.remove(c.current),e?.renderAll(),c.current=null)},C=()=>{e?.clear(),e?.renderAll(),c.current=null,_.current={stack:[],index:-1,isRestoring:!1},e&&h(e)},S=t=>{e?.setBackgroundColor(t,e.renderAll.bind(e)),g()},P=()=>e?.backgroundColor,N=()=>{if(e&&p.current){let t=new p.current.fabric.IText("Текст",{left:180,top:320,originX:"center",originY:"center",fill:"#000",fontSize:32});e.add(t),e.setActiveObject(t),e.requestRenderAll()}},Z=t=>{if(e&&p.current){let l=new p.current.fabric.Text(t,{left:180,top:320,originX:"center",originY:"center",fontSize:64});e.add(l),e.setActiveObject(l),e.requestRenderAll()}},L=(t,l)=>{if(e){let a=e?.getActiveObject();a&&"i-text"===a.type&&(a.set(t,l),e.renderAll(),g())}},R=t=>{if(!e)return;let l=e.getActiveObject();if(l&&"i-text"===l.type){if("plain"===t)l.set({stroke:void 0,strokeWidth:0,backgroundColor:""});else if("outline"===t){let e=l.fill||"#fff";l.set({fill:e,stroke:"#000"===e||"#000000"===e?"#fff":"#000",strokeWidth:2,backgroundColor:""})}else"plate"===t&&l.set({stroke:void 0,strokeWidth:0,backgroundColor:"#ffffff"});e.renderAll(),g()}},A=()=>{let t=e?.getActiveObject();if(t&&"i-text"===t.type){if(t.backgroundColor)return"plate";if(t.stroke)return"outline"}return"plain"},z=()=>{let t=e?.getActiveObject();if(t&&"i-text"===t.type)return{backgroundColor:t.backgroundColor,textAlign:t.textAlign,fontSize:t.fontSize,fontStyle:t.fontStyle,fontWeight:t.fontWeight,fill:t.fill}},B=()=>{let t=u.current;t&&(t.selectable=!1,t.evented=!1,u.current=null,e&&!_.current.isRestoring&&h(e))},O=t=>{e&&(m.current=t,e.isDrawingMode=t,t&&e.freeDrawingBrush&&(e.freeDrawingBrush.color=T.current.color,e.freeDrawingBrush.width=T.current.width),!t&&u.current&&(B(),e.discardActiveObject(),e.requestRenderAll()))},I=()=>{let t=e?.getActiveObject();t&&(t.bringToFront(),e?.requestRenderAll())},T=(0,Q.useRef)({color:"#ffffff",width:6}),D=t=>{T.current.color=t,e?.freeDrawingBrush&&(e.freeDrawingBrush.color=t)},U=t=>{T.current.width=t,e?.freeDrawingBrush&&(e.freeDrawingBrush.width=t)},V=()=>T.current,$=()=>{if(e){let t=e.toDataURL({format:"png",multiplier:1}),l=document.createElement("a");l.href=t,l.download="edited-image.png",document.body.appendChild(l),l.click(),document.body.removeChild(l)}},F=()=>
1{if(e){let t=e.toDataURL({format:"png",multiplier:1}),l=atob(t.split(",")[1]),a=t.split(",")[0].split(":")[1].split(";")[0],n=new Uint8Array(l.length);for(let e=0;e<l.length;e++)n[e]=l.charCodeAt(e);return new File([new Blob([n],{type:a})],"edited-image.png",{type:"image/png"})}};return(0,Q.useImperativeHandle)(s,()=>({handleImageFromFile:E,handleImageFromScreenshot:j,handleRemoveImg:k,handleClear:C,handleSetBackgroundColor:S,getBackgroundColor:P,addText:N,addEmoji:Z,handleChangeText:L,getPropertyText:z,handleApplyTextPreset:R,getTextPreset:A,handleSetDrawingMode:O,handleSetBrushColor:D,handleSetBrushWidth:U,getBrushState:V,handleUndo:b,handleRedo:M,handleBringActiveToFront:I,handleSaveImage:$,handleCreateFile:F})),(0,G.jsx)("div",{className:tw().container,children:(0,G.jsx)("canvas",{ref:o,width:360,height:640,className:tw().canvas})})});tj.displayName="Paint";var tE=l(95848),ty=l.n(tE);let tk=["#FFFFFF","#000000","#F44336","#FF9800","#FFEB3B","#4CAF50","#2196F3","#9C27B0"];function tC({color:e,setColor:t}){let l=(0,Q.useRef)(null),a=(0,Q.useCallback)(e=>{var a;let n,r,i,s,o=l.current;if(!o)return;let c=o.getBoundingClientRect();t((a=360*Math.min(1,Math.max(0,(e-c.left)/c.width)),n=e=>(e+a/30)%12,r=.5,i=e=>.5-r*Math.max(-1,Math.min(n(e)-3,Math.min(9-n(e),1))),s=e=>Math.round(255*e).toString(16).padStart(2,"0"),`#${s(i(0))}${s(i(8))}${s(i(4))}`.toUpperCase()))},[t]);return(0,G.jsxs)("div",{className:ei()(ty().container),children:[tk.map(l=>(0,G.jsx)("button",{type:"button",className:ei()(ty().swatch,{[ty().swatch_active]:l.toLowerCase()===e?.toLowerCase()}),style:{background:l},onClick:()=>t(l),"aria-label":l},l)),(0,G.jsx)("div",{ref:l,className:ei()(ty().strip),onPointerDown:e=>{e.currentTarget.setPointerCapture(e.pointerId),a(e.clientX)},onPointerMove:e=>{1===e.buttons&&a(e.clientX)}})]})}function tS(){return(tS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var a in l)({}).hasOwnProperty.call(l,a)&&(e[a]=l[a])}return e}).apply(null,arguments)}function tP(){return(tP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var a in l)({}).hasOwnProperty.call(l,a)&&(e[a]=l[a])}return e}).apply(null,arguments)}function tN(){return(tN=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var a in l)({}).hasOwnProperty.call(l,a)&&(e[a]=l[a])}return e}).apply(null,arguments)}function tZ(){return(tZ=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var a in l)({}).hasOwnProperty.call(l,a)&&(e[a]=l[a])}return e}).apply(null,arguments)}let tL=function(e){return Q.createElement("svg",tZ({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),I||(I=Q.createElement("rect",{width:2,height:16,x:11,y:4,fill:"#fff",rx:1})),T||(T=Q.createElement("rect",{width:16,height:2,x:4,y:11,fill:"#fff",rx:1})))},tR=[{weight:400,style:"normal"},{weight:700,style:"normal"},{weight:100,style:"normal"},{weight:400,style:"italic"},{weight:700,style:"italic"},{weight:100,style:"italic"}],tA=["plain","outline","plate"],tz={plain:"Обычный",outline:"Обводка",plate:"Плашка"},tB=["left","center","right"],tO={left:function(e){return Q.createElement("svg",tS({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 40 40"},e),z||(z=Q.createElement("path",{stroke:"#fff",strokeLinecap:"round",strokeWidth:2,d:"M10 12h20M10 20h15M10 28h20"})))},center:function(e){return Q.createElement("svg",tP({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 40 40"},e),B||(B=Q.createElement("path",{stroke:"#fff",strokeLinecap:"round",strokeWidth:2,d:"M10 12h20M13 20h14M10 28h20"})))},right:function(e){return Q.createElement("svg",tN({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 40 40"},e),O||(O=Q.createElement("path",{stroke:"#fff",strokeLinecap:"round",strokeWidth:2,d:"M10 12h20M15 20h15M10 28h20"})))}};function tI({paint:e,callback:t}){let l=e?.getPropertyText(),[a,n]=(0,Q.useState)(l?.fill||"#000000"),[r,i]=(0,Q.useState)(l?.backgroundColor||"#ffffff"),[s,o]=(0,Q.useState)(Number(l?.fontWeight)||400),[c,d]=(0,Q.useState)(l?.fontStyle||"normal"),[f,p]=(0,Q.useState)(l?.textAlign||"left"),[u,m]=(0,Q.useState)(e?.getTextPreset()||"plain");(0,Q.useEffect)(()=>{e?.handleChangeText("fill",a)},[a]),(0,Q.useEffect)(()=>{"plate"===u&&e?.handleChangeText("backgroundColor",r)},[r]),(0,Q.useEffect)(()=>{e?.handleChangeText("fontWeight",s)},[s]),(0,Q.useEffect)(()=>{e?.handleChangeText("fontStyle",c)},[c]),(0,Q.useEffect)(()=>{e?.handleChangeText("textAlign",f)},[f]);let _="plate"===u?r:a,h=tO[f];return(0,G.jsxs)("div",{className:ei()(eJ().fontRow),children:[(0,G.jsx)("button",{type:"button",className:ei()(eJ().fontIconButton),onClick:()=>{t(),e?.addText(),o(400),d("normal"),p("left")},title:"Добавить текст",children:(0,G.jsx)(tL,{})}),(0,G.jsx)("button",{type:"button",className:ei()(eJ().fontIconButton,eJ().fontAaButton),style:{fontWeight:s,fontStyle:c},onClick:()=>{let e=tR.findIndex(e=>e.weight===s&&e.style===c),t=tR[(e+1+tR.length)%tR.length];o(t.weight),d(t.style)},title:"Начертание",children:"Аа"}),(0,G.jsx)("button",{type:"button",className:ei()(eJ().fontIconButton,eJ().fontPresetButton),onClick:()=>{let t=tA[(tA.indexOf(u)+1)%tA.length];m(t),e?.handleApplyTextPreset(t)},title:"Оформление",children:tz[u]}),(0,G.jsx)("button",{type:"button",className:ei()(eJ().fontIconButton),onClick:()=>{p(tB[(tB.indexOf(f)+1)%tB.length])},title:"Выравнивание",children:(0,G.jsx)(h,{})}),(0,G.jsx)("button",{type:"button",className:ei()(eJ().fontIconButton),onClick:()=>e?.handleBringActiveToFront(),title:"Наверх (если текст перекрыт кистью или стикером)",children:"Наверх"}),(0,G.jsx)(tC,{color:_,setColor:e=>{"plate"===u?i(e):n(e)}})]})}function tT({paint:e,callback:t}
1){let[l,a]=(0,Q.useState)(e?.getBackgroundColor()||"#ffffff");return(0,Q.useEffect)(()=>{e?.handleSetBackgroundColor(l),t()},[l]),(0,G.jsx)(tC,{color:l,setColor:a})}let tD=[2,6,12,20];function tU({paint:e}){let t=e?.getBrushState(),[l,a]=(0,Q.useState)(t?.color||"#ffffff"),[n,r]=(0,Q.useState)(t?.width||6);return(0,G.jsxs)("div",{className:ei()(eJ().brushRow),children:[(0,G.jsx)("div",{className:ei()(eJ()["brush-widths"]),children:tD.map(t=>(0,G.jsx)("button",{type:"button",className:ei()(eJ()["brush-width-item"],{[eJ()["brush-width-item_active"]]:t===n}),onClick:()=>{r(t),e?.handleSetBrushWidth(t)},children:(0,G.jsx)("span",{style:{width:t,height:t,background:l}})},t))}),(0,G.jsx)(tC,{color:l,setColor:t=>{a(t),e?.handleSetBrushColor(t)}})]})}let tV=["\uD83D\uDE00","\uD83D\uDE02","\uD83D\uDE0D","\uD83E\uDD73","\uD83D\uDE0E","\uD83E\uDD14","\uD83D\uDE22","\uD83D\uDE31","\uD83D\uDD25","✨","\uD83C\uDF89","\uD83D\uDCAF","\uD83D\uDC4D","\uD83D\uDE4C","\uD83D\uDC4F","❤️","\uD83D\uDC94","⭐","\uD83C\uDF08","☀️","\uD83C\uDF19","⚡","\uD83C\uDF88","\uD83C\uDF81"];function t$({paint:e,turnBack:t}){return(0,G.jsxs)("div",{className:ei()(eJ().windowSticker),children:[(0,G.jsx)(e0,{turnBack:t,children:"Стикеры"}),(0,G.jsx)("div",{className:ei()(eJ().buttons),children:(0,G.jsx)(e1,{onClick:()=>e?.handleBringActiveToFront(),children:"Выбранный стикер наверх"})}),(0,G.jsx)("ul",{className:ei()(eJ()["emoji-grid"]),children:tV.map(t=>(0,G.jsx)("li",{className:ei()(eJ()["emoji-item"]),onClick:()=>e?.addEmoji(t),children:t},t))})]})}function tF(){return(tF=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var a in l)({}).hasOwnProperty.call(l,a)&&(e[a]=l[a])}return e}).apply(null,arguments)}let tW=function(e){return Q.createElement("svg",tF({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),D||(D=Q.createElement("circle",{cx:12,cy:12,r:9,stroke:"#fff",strokeWidth:2})),U||(U=Q.createElement("circle",{cx:9,cy:10,r:1.25,fill:"#fff"})),V||(V=Q.createElement("circle",{cx:15,cy:10,r:1.25,fill:"#fff"})),$||($=Q.createElement("path",{stroke:"#fff",strokeLinecap:"round",strokeWidth:2,d:"M8.5 14c.7 1.2 2 2 3.5 2s2.8-.8 3.5-2"})))};function tH({handleShowTime:e,currentValue:t,turnBack:l}){return(0,G.jsxs)("div",{className:ei()(eJ().windowShowTime),children:[(0,G.jsx)(e0,{turnBack:l,children:"Срок показа"}),(0,G.jsxs)("div",{className:ei()(eJ().buttons),children:[(0,G.jsx)(e1,{active:1===t,onClick:()=>e(1),children:"12 ч"}),(0,G.jsx)(e1,{active:2===t,onClick:()=>e(2),children:"24 ч"}),(0,G.jsx)(e1,{active:3===t,onClick:()=>e(3),children:"7 дн"})]})]})}function tq({handleAdMark:e,currentValue:t,turnBack:l}){return(0,G.jsxs)("div",{className:ei()(eJ().windowAdMark),children:[(0,G.jsx)(e0,{turnBack:l,children:"Реклама"}),(0,G.jsx)("div",{className:ei()(eJ().buttons),children:(0,G.jsx)(e1,{active:1===t,onClick:()=>e(),children:"Отменить рекламу"})})]})}var tG=l(59582),tK=l.n(tG);function tJ(){return(tJ=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var a in l)({}).hasOwnProperty.call(l,a)&&(e[a]=l[a])}return e}).apply(null,arguments)}let tQ=function(e){return Q.createElement("svg",tJ({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),F||(F=Q.createElement("path",{stroke:"#fff",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"m17 4 3 3-3 3"})),W||(W=Q.createElement("path",{stroke:"#fff",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M20 7H8a5 5 0 0 0-5 5M7 20l-3-3 3-3"})),H||(H=Q.createElement("path",{stroke:"#fff",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 17h12a5 5 0 0 0 5-5"})))};function tX({onCapture:e,onClose:t}){let l=(0,Q.useRef)(null),a=(0,Q.useRef)(null),[n,r]=(0,Q.useState)("environment"),[i,s]=(0,Q.useState)(null);return(0,Q.useEffect)(()=>{let e=!1,t=()=>{a.current?.getTracks().forEach(e=>e.stop()),a.current=null};return(async()=>{if(!navigator.mediaDevices?.getUserMedia)return s("Камера недоступна в этом браузере");try{t();let r=await navigator.mediaDevices.getUserMedia({video:{facingMode:n},audio:!1});
1if(e)return void r.getTracks().forEach(e=>e.stop());a.current=r,l.current&&(l.current.srcObject=r,await l.current.play())}catch(e){s("Нет доступа к камере. Разрешите доступ или выберите файл")}})(),()=>{e=!0,t()}},[n]),(0,G.jsxs)("div",{className:ei()(tK().container),children:[i?(0,G.jsx)("div",{className:ei()(tK().error),children:(0,G.jsx)("p",{children:i})}):(0,G.jsx)("video",{ref:l,className:ei()(tK().video,{[tK().video_mirrored]:"user"===n}),muted:!0,playsInline:!0}),(0,G.jsx)(eg.A,{className:tK().closeButton,onClick:t,top:"10px",right:"10px"}),!i&&(0,G.jsxs)("div",{className:ei()(tK().controls),children:[(0,G.jsx)("button",{type:"button",className:ei()(tK().switchButton),onClick:()=>r("user"===n?"environment":"user"),children:(0,G.jsx)(tQ,{})}),(0,G.jsx)("button",{type:"button",className:ei()(tK().shutterButton),onClick:()=>{let t=l.current;if(!t||!t.videoWidth)return;let a=document.createElement("canvas");a.width=t.videoWidth,a.height=t.videoHeight;let r=a.getContext("2d");r&&("user"===n&&(r.translate(a.width,0),r.scale(-1,1)),r.drawImage(t,0,0),a.toBlob(t=>{t&&e(new File([t],"camera-shot.png",{type:"image/png"}))},"image/png"))},children:(0,G.jsx)(e9.A,{})}),(0,G.jsx)("div",{className:ei()(tK().switchButton_placeholder)})]})]})}let tY=(0,ew.createServerReference)("40155dd3fd3c20c580c1b85846fc35301be97fff67",ew.callServer,void 0,ew.findSourceMapURL,"requestCreateStories");var t1=l(40237);let t0=9/16;function t2({handleClose:e,refCard:t,entityType:l,entityId:a}){let[n,r]=(0,Q.useState)(null),[i,s]=(0,Q.useState)(!1),[o,c]=(0,Q.useState)(!1),d=(0,Q.useRef)(null),[f,p]=(0,Q.useState)(null),[u,m]=(0,Q.useState)(1),[_,h]=(0,Q.useState)([]),[x,v]=(0,Q.useState)([]),[g,w]=(0,Q.useState)(!0),[b,M]=(0,Q.useState)(1),[j,E]=(0,Q.useState)(0),[y,k]=(0,Q.useState)({canUndo:!1,canRedo:!1}),[C,S]=(0,Q.useState)([]),[P,N]=(0,Q.useState)(!1),[Z,L]=(0,Q.useState)(null),R=(0,Q.useRef)(null);(0,Q.useEffect)(()=>{t?.current&&d.current&&(d.current.handleClear(),d.current.handleImageFromScreenshot(t),s(!0)),d.current?.handleSaveImage},[t,f]);let A=e=>{d.current&&(d.current.handleClear(),d.current.handleImageFromFile(e),s(!0),c(!1))},z=async e=>{let t=await (0,t1.i)(e.file);if(!t.success||!t.data?.id)return null;let n=new FormData;return n.set("story_ttl",String(b)),n.set("is_adv",String(j)),n.set("file_uuid",t.data.id),n.set("allow_replies",g?"1":"0"),_.forEach(e=>n.append("hidden_user_ids[]",String(e.id))),x.forEach(e=>n.append("favorite_user_ids[]",String(e.id))),e.id===R.current&&(l&&n.set("entity_type",String(l)),a&&n.set("entity_id",String(a))),n},B=async(t,l)=>{N(!0),L(null);for(let e=l;e<t.length;e++){let l=t[e];S(e=>e.map(e=>e.id===l.id?{...e,status:"pending"}:e));let a=await z(l);if(!a){S(e=>e.map(e=>e.id===l.id?{...e,status:"error"}:e)),L(`Не удалось загрузить файл ${e+1} из ${t.length}`),N(!1);return}let n=await tY(a);if(console.log("response",n),!n.success){S(e=>e.map(e=>e.id===l.id?{...e,status:"error"}:e)),L(`Не удалось опубликовать слайд ${e+1} из ${t.length}`),N(!1);return}S(e=>e.map(e=>e.id===l.id?{...e,status:"success"}:e))}N(!1),e()},O=async()=>{let e=C;if(i){let t=(()=>{let e=d?.current?.handleCreateFile();if(!e)return null;let t=`${Date.now()}-${Math.random().toString(36).slice(2)}`;return R.current||(R.current=t),{id:t,file:e,thumbnail:URL.createObjectURL(e),status:"draft"}})();t&&S(e=[...C,t])}e.length&&await B(e,0)},I=async()=>{let e=C.findIndex(e=>"error"===e.status);-1!==e&&await B(C,e)};(0,Q.useEffect)(()=>{d.current?.handleSetDrawingMode("brush"===n)},[n]);let{width:T=0,height:D=0}=(0,ez.l)(),U=T>0&&T<=800,V=(0,Q.useMemo)(()=>{var e;let t,l;if(!T||!D)return{width:216,height:384};if(U){let e=T-24,t=Math.min(e/t0,Math.max(D-196,220));return{width:Math.round(e),height:Math.round(t)}}let a=Math.min(D-(2*Math.max(20,.05*T)+40+172),760);return(l=(t=e=Math.min(.9*T,420))/t0)>a&&(t=(l=a)*t0),t<240&&e>=240&&(l=(t=240)/t0),{width:Math.round(t),height:Math.round(l)}},[T,D,U]);return(0,G.jsx)("div",{className:ei()(eJ().container,eJ().overlay),children:(0,G.jsxs)("div",{className:ei()(eJ().windowWrapper),children:[(0,G.jsxs)("div",{className:ei()(eJ().window,"anim-show"),children:[(0,G.jsxs)("div",{className:ei()(eJ().stage),style:{width:V.width,height:V.height},children:[(0,G.jsx)("div",{className:ei()(eJ().paintContainer,{[eJ().visualhidden]:!i}),children:(0,G.jsx)(tj,{ref:d,fabricCanvas:f,setFabricCanvas:p,width:V.width,height:V.height,callbackSelectText:()=>{},onHistoryChange:k})}),(0,G.jsxs)("div",{className:ei()(eJ().chooseImageBlock,{[eJ().visualhidden]:i||o}),children:[(0,G.jsx)(e8,{}),(0,G.jsx)("p",{children:"Перетащите сюда фото"}),(0,G.jsxs)("div",{className:ei()(eJ().chooseButtons),children:[(0,G.jsxs)("label",{children:[(0,G.jsx)("input",{type:"file",accept:"image/*",onChange:e=>{let t=e.target;d.current&&t.files&&t.files[0]&&A(t.files[0])},style:{display:"none"}}),(0,G.jsx)("span",{className:ei()(eJ().button),children:"Выбрать файл"})]}),(0,G.jsxs)("span",{className:ei()(eJ().button),onClick:()=>c(!0),children:[(0,G.jsx)(e9.A,{className:eJ().buttonIcon}),"Камера"]})]}),(0,G.jsx)("p",{className:ei()(eJ().text),onClick:()=>r("color"),children:"Выбрать фон"})]}),o&&(0,G.jsx)(tX,{onCapture:A,onClose:()=>c(!1)}),i&&(0,G.jsx)(t3,{mode:n,setMode:r,refPaint:d,history:y}),(0,G.jsxs)(t5,{mode:n,turnBack:()=>r(null),children:["font"===n&&(0,G.jsx)(tI,{paint:d.current,callback:()=>
1{s(!0),d?.current?.getBackgroundColor()||d?.current?.handleSetBackgroundColor("#fff")}}),"color"===n&&(0,G.jsx)(tT,{paint:d.current,callback:()=>s(!0)}),"brush"===n&&(0,G.jsx)(tU,{paint:d.current})]}),(0,G.jsx)(t4,{mode:n,setMode:r,refPaint:d,whoSeenMode:u,handleWhoSeenMode:e=>{m(e),2!==e&&h([]),3!==e&&v([])},hiddenUsers:_,favoriteUsers:x,handleToggleHiddenUser:e=>{h(t=>t.some(t=>t.id===e.id)?t.filter(t=>t.id!==e.id):[...t,e])},handleToggleFavoriteUser:e=>{v(t=>t.some(t=>t.id===e.id)?t.filter(t=>t.id!==e.id):[...t,e])},time:b,handleShowTime:e=>{M(e)},adMark:j,handleAdMark:()=>{E(+(0===j))},allowReplies:g,handleAllowReplies:e=>{w(e)}})]}),Z&&(0,G.jsx)("p",{className:ei()(eJ().publishError),children:Z}),(0,G.jsx)("button",{className:ei()(eJ().shareButton),disabled:P,onClick:Z?I:O,children:Z?"Повторить":P?"Публикация…":"Опубликовать"})]}),(0,G.jsx)(eg.A,{className:eJ().closeButton,onClick:e,top:U?"10px":"-16px",right:U?"10px":"-16px"})]})})}function t3({mode:e,setMode:t,refPaint:l,history:a}){return(0,G.jsxs)(G.Fragment,{children:[(0,G.jsxs)("div",{className:ei()(eJ().historyControls,{[eJ().hidden]:!!e}),children:[(0,G.jsx)("div",{className:ei()(eJ().historyButton,{[eJ().disabled]:!a.canUndo}),onClick:()=>l.current?.handleUndo(),children:(0,G.jsx)(t_,{})}),(0,G.jsx)("div",{className:ei()(eJ().historyButton,{[eJ().disabled]:!a.canRedo}),onClick:()=>l.current?.handleRedo(),children:(0,G.jsx)(tx,{})})]}),(0,G.jsxs)("div",{className:ei()(eJ().floatingToolbar,{[eJ().hidden]:!!e}),children:[(0,G.jsx)("div",{className:ei()(eJ().toolbarIcon),onClick:()=>t("who-seen"),children:(0,G.jsx)(tt,{})}),(0,G.jsx)("div",{className:ei()(eJ().toolbarIcon),onClick:()=>t("font"),children:(0,G.jsx)(tf,{})}),(0,G.jsx)("div",{className:ei()(eJ().toolbarIcon),onClick:()=>t("color"),children:(0,G.jsx)(tc,{})}),(0,G.jsx)("div",{className:ei()(eJ().toolbarIcon),onClick:()=>t("brush"),children:(0,G.jsx)(tu,{})}),(0,G.jsx)("div",{className:ei()(eJ().toolbarIcon),onClick:()=>t("sticker"),children:(0,G.jsx)(tW,{})}),(0,G.jsx)("div",{className:ei()(eJ().toolbarIcon),onClick:()=>t("show-time"),children:(0,G.jsx)(ts,{})}),(0,G.jsx)("div",{className:ei()(eJ().toolbarIcon),onClick:()=>t("allow-replies"),children:(0,G.jsx)(eo.M4l,{})}),(0,G.jsx)("div",{className:ei()(eJ().toolbarIcon),onClick:l.current?.handleSaveImage,children:(0,G.jsx)(tr,{})}),(0,G.jsx)("div",{className:ei()(eJ().toolbarIcon),onClick:()=>t("ad-mark"),children:(0,G.jsx)(ta,{})})]})]})}function t5({mode:e,turnBack:t,children:l}){return(0,G.jsxs)("div",{className:ei()(eJ().topPanel,{[eJ().hidden]:"font"!==e&&"color"!==e&&"brush"!==e}),children:[(0,G.jsx)("div",{className:ei()(eJ().topPanelClose),onClick:t,children:(0,G.jsx)(tv.A,{})}),(0,G.jsx)("div",{className:ei()(eJ().topPanelContent),children:l})]})}function t4({mode:e,setMode:t,refPaint:l,whoSeenMode:a,handleWhoSeenMode:n,hiddenUsers:r,favoriteUsers:i,handleToggleHiddenUser:s,handleToggleFavoriteUser:o,time:c,handleShowTime:d,adMark:f,handleAdMark:p,allowReplies:u,handleAllowReplies:m}){let _=()=>{t(null)};return(0,G.jsxs)("div",{className:ei()(eJ().modeBlock,{[eJ().hidden]:"who-seen"!==e&&"sticker"!==e&&"show-time"!==e&&"ad-mark"!==e&&"allow-replies"!==e}),children:["who-seen"===e&&(0,G.jsx)(e4,{mode:a,onChangeMode:n,hiddenUsers:r,favoriteUsers:i,onToggleHiddenUser:s,onToggleFavoriteUser:o,turnBack:()=>_()}),"sticker"===e&&(0,G.jsx)(t$,{paint:l.current,turnBack:()=>_()}),"show-time"===e&&(0,G.jsx)(tH,{handleShowTime:d,currentValue:c,turnBack:()=>_()}),"ad-mark"===e&&(0,G.jsx)(tq,{handleAdMark:p,currentValue:f,turnBack:()=>_()}),"allow-replies"===e&&(0,G.jsx)(e6,{handleAllowReplies:m,currentValue:u,turnBack:()=>_()})]})}var t6=l(29385);let t7=(0,ew.createServerReference)("70cef4d7b922bb1b453b43329aac4e93a171ea8f55",ew.callServer,void 0,ew.findSourceMapURL,"requestAddRepost");function t8({handleClose:e,linkEntity:t,refResend:l,entityType:a=7,entityId:n,onRepost:r=()=>{}}){let i=(0,Q.useRef)(null),s=async t=>{t===i.current&&e()},o=(0,Q.useRef)(null),[c,d]=(0,Q.useState)(!1),[f,p]=(0,Q.useState)(t9),[u,m]=(0,Q.useState)(""),_=async()=>{let e=o?.current?.value;a&&n&&(await t7(a,n,e)).success&&(m("Пост репостнут"),r(),o?.current?.value&&(o.current.value=""))};return(0,G.jsxs)("div",{className:ei()(eE().container,eE().overlay),onClick:e=>{e.stopPropagation(),e.preventDefault(),s(e.target)},ref:i,children:[(0,G.jsxs)("div",{className:ei()(eE().window,"anim-show"),children:[(0,G.jsxs)("div",{className:ei()(eE()["top-block"]),children:[(0,G.jsx)("h3",{className:eE().title,children:"Поделиться"}),(0,G.jsx)("div",{className:eE()["search-block"]})]}),(0,G.jsx)("div",{className:eE()["msg-block"],children:(0,G.jsx)("input",{className:eE().input,type:"text",placeholder:"Сообщение",ref:o})}),u&&(0,G.jsx)("p",{className:eE().message,children:u}),(0,G.jsxs)("div",{className:eE()["action-buttons"],children:[(0,G.jsxs)("div",{className:eE()["action-button"],children:[(0,G.jsx)("button",{className:eE().button,onClick:()=>{d(!0)},children:(0,G.jsx)(eP,{})}),(0,G.jsx)("p",{className:eE()["button-name"],children:"Добавить в историю"})]}),(0,G.jsxs)("div",{className:eE()["action-button"],children:[(0,G.jsx)("button",{className:eE().button,onClick:()=>{(0,t6.A)(t)},children:(0,G.jsx)(eC.A,{width:14})}),(0,G.jsx)("p",{className:eE()["button-name"],children:"Скопировать ссылку"})]}),(0,G.jsxs)("div",{className:eE()["action-button"],onClick:_,children:[(0,G.jsx)("button",{className:eE().button,children:(0,G.jsx)(ek,{})}),(0,G.jsx)("p",{className:eE()["button-name"],children:"На своей странице"})]})]}),(0,G.jsx)(eg.A,{onClick:e})]}),c&&(0,G.jsx)(t2,{entityId:n,entityType:a,refCard:l,handleClose:()=>{d(!1)}})]})}let t9=[{image:"",name:"Название чата 1"},{image:"",name:"Название чата 2"},{image:"",name:"Название чата 3"},{image:"",name:"Название чата 4"},{image:"",name:"Название чата 5"},{image:"",name:"Название чата 6"},{image:"",name:"Название чата 7"},{image:"",name:"Название чата 8"},{image:"",name:"Название чата 9"},{image:"",name:"Название чата 11"},{image:"",name:"Название чата 12"},{image:"",name:"Название чата 13"},{image:"",name:"Название чата 14"},{image:"",name:"Название чата 15"}];var le=l(99474),lt=l.n(le);function ll({title:e,text:t,linkImg:l,tag:a,author:n}){return(0,G.jsxs)("article",{className:lt().container,children:[(0,G.jsx)(eN.default,{src:l,alt:"Фото",width:420,height:160,className:lt().img_block}),(0,G.jsxs)("div",{className:lt().content,children:[(0,G.jsxs)("div",{className:lt().content_top,children:[(0,G.jsx)("span",{className:lt().author,children:n}),!!a&&(0,G.jsx)("span",{className:lt().tag,children:a})]}),(0,G.jsx)("h3",{className:lt().title,children:e}),(0,G.jsx)("p",{className:lt().text,dangerouslySetInnerHTML:{__html:t}})]})]})}let la=(0,ew.createServerReference)("40e7b4ac547da27abc94c02ebe602bf5fb91aed52e",ew.callServer,void 0,ew.findSourceMapURL,"requestLikeAdd"),ln=(0,ew.createServerReference)("40eb397585b56ed56635
15ac3a522a6833ca979dc88",ew.callServer,void 0,ew.findSourceMapURL,"requestLikeRemove");l(71839),l(61654);let lr=(0,Q.createContext)(null);function li(){return(0,Q.useContext)(lr)}var ls=l(6675),lo=l.n(ls);function lc({handleClose:e}){let t=(0,Q.useRef)(null),l=new URLSearchParams({source:window?.location?.href??""}),a=async l=>{l===t.current&&e()};return(0,G.jsx)("div",{className:ei()(lo().container,lo().overlay),onClick:e=>{e.stopPropagation(),e.preventDefault(),a(e.target)},ref:t,children:(0,G.jsxs)("div",{className:ei()(lo().window,"anim-show"),children:[(0,G.jsx)("h3",{className:lo().title,children:"Авторизация"}),(0,G.jsx)("p",{className:lo().text,children:"Для продолжения работы требуется авторизоваться на платформе"}),(0,G.jsx)(et(),{href:`https://id.drafter.ru/auth?${l.toString()}`,className:ei()(lo().btn,lo().btnGold),children:"Войти"}),(0,G.jsx)(et(),{href:"https://id.drafter.ru/registration",className:lo().btn,children:"Зарегистрироваться"}),(0,G.jsx)(eg.A,{onClick:e,top:"40px",right:"40px"})]})})}var ld=l(57688),lf=l.n(ld),lp=l(38323);let lu=(0,ew.createServerReference)("602e4c7e73c240c565d3653b56e936f7f0ad619ed0",ew.callServer,void 0,ew.findSourceMapURL,"requestViewStatistics");var lm=l(3446),l_=l.n(lm);let lh={0:"#8a949c",1:"#3987e5",2:"#3fae55",3:"#d55181",4:"#c98500",5:"#1f9e8a",6:"#d9772e"};function lx({data:e,handleClose:t}){let l=(0,Q.useRef)(null),a=0===e.views_total||0===e.sources.length,n=(e=>{if(!e||0===e.length)return[];let t=new Map;e.forEach(({date:e,count:l})=>t.set(e,l));let l=[...t.keys()].sort(),a=new Date(`${l[0]}T00:00:00`),n=new Date(`${l[l.length-1]}T00:00:00`),r=[];for(let e=new Date(a);e<=n;e.setDate(e.getDate()+1)){let l=e.toISOString().slice(0,10);r.push({date:l,count:t.get(l)??0})}return r})(e.views_by_day),r=function(e,t,l,a){if(0===e.length)return{linePoints:"",areaPoints:""};let n=Math.max(...e),r=68,i=e.length>1?340/(e.length-1):0,s=e.map((e,t)=>[t*i,n>0?6+r-e/n*r:74]).map(([e,t])=>`${e},${t}`).join(" "),o=`${s} ${340},${80} 0,${80}`;return{linePoints:s,areaPoints:o}}(n.map(e=>e.count),340,80,6);return(0,G.jsx)("div",{className:ei()(l_().overlay),ref:l,onClick:e=>{e.stopPropagation(),e.preventDefault(),e.target===l.current&&t()},children:(0,G.jsxs)("div",{className:ei()(l_().window,"anim-show"),children:[(0,G.jsx)("h3",{className:l_().title,children:"Статистика просмотров"}),(0,G.jsxs)("div",{className:l_().totalRow,children:[(0,G.jsx)("span",{className:l_().totalNum,children:e.views_total}),(0,G.jsx)("span",{className:l_().totalLabel,children:"просмотров всего"})]}),a?(0,G.jsx)("div",{className:l_().emptyState,children:"Пока нет просмотров"}):(0,G.jsxs)(G.Fragment,{children:[n.length>1&&(0,G.jsxs)("svg",{className:l_().chart,viewBox:"0 0 340 80",preserveAspectRatio:"none",children:[(0,G.jsx)("polygon",{fill:"var(--color6)",opacity:.18,points:r.areaPoints}),(0,G.jsx)("polyline",{fill:"none",stroke:"var(--color6)",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",points:r.linePoints})]}),(0,G.jsx)("div",{className:l_().sourceList,children:e.sources.map(t=>{let l=Math.round(t.count/e.views_total*100),a=lh[t.source]??lh[0];return(0,G.jsxs)("div",{className:l_().sourceRow,children:[(0,G.jsxs)("div",{className:l_().sourceName,children:[(0,G.jsx)("span",{className:l_().sourceDot,style:{backgroundColor:a}}),t.name]}),(0,G.jsx)("div",{className:l_().sourceBarTrack,children:(0,G.jsx)("div",{className:l_().sourceBarFill,style:{width:`${l}%`,backgroundColor:a}})}),(0,G.jsx)("div",{className:l_().sourceVal,children:t.count})]},t.source)})})]}),(0,G.jsx)("div",{className:l_().footnote,children:function(e){if(!e)return"Статистика ещё не собрана";let t=e.split(" ")[0].split("-").reverse().join(".");return`Статистика ведётся с ${t}`}(e.tracking_since)}),(0,G.jsx)(eg.A,{onClick:t,top:"20px",right:"20px"})]})})}function lv({entityType:e,entityId:t,isOwner:l}){let{data:a,loading:n,error:r}=function(e,t,l){let[a,n]=(0,Q.useState)(null),[r,i]=(0,Q.useState)(!1),[s,o]=(0,Q.useState)(null);return(0,Q.useEffect)(()=>
1{if(!l)return;let a=!1;return(async()=>{i(!0);let l=await lu(e,t);a||(l.success&&l.data?(n(l.data),o(null)):(console.error(`useViewStatistics: не удалось получить статистику (entity_type=${e}, entity_id=${t})`,l),o(l.error??`Ошибка ${l.code}`)),i(!1))})(),()=>{a=!0}},[e,t,l]),{data:a,loading:r,error:s}}(e,t,l),[i,s]=(0,Q.useState)(!1);if(!l)return null;let o=a?a.views_total:n?"":r?"—":0;return(0,G.jsxs)(G.Fragment,{children:[(0,G.jsxs)("div",{className:lf().reaction,title:r??void 0,onClick:e=>{e.preventDefault(),e.stopPropagation(),a&&s(!0)},children:[(0,G.jsx)(lp.whC,{className:lf().icon}),(0,G.jsx)("div",{className:lf().counter,children:o})]}),i&&a&&(0,G.jsx)(lx,{data:a,handleClose:()=>s(!1)})]})}function lg({post:e,mode:t}){let{id:l,likes_count:a,comments_count:n,reposts_count:r,is_liked:i,title:s,short_content:o,entity_type:c,author:d,user_id:f,tags:p}=e,{isRepost:u,repostData:m,repostType:_}=e,h=m?.id,x=Number(_),{myProfile:v}=(0,eO.E)(),g=li(),w=(e.isRepost?e.repostPhotoList:e.photoList)||[],b=(0,Q.useRef)(null),M=(0,Y.useRouter)(),[j,E]=(0,Q.useState)(i),[y,k]=(0,Q.useState)(a),[C,S]=(0,Q.useState)(r),[P,N]=(0,Q.useState)(!1),[Z,L]=(0,Q.useState)(!1),[R,A]=(0,Q.useState)(!1),[z,B]=(0,Q.useState)("/");(0,Q.useEffect)(()=>{(async()=>{B((e.isLocalLink?`https://lk.drafter.ru${e.link}`:`${e.link}`)??"/")})()});let O=async()=>{if(v?.id){let t=await la({entity_type:e.entity_type,entity_id:l});t.success&&!isNaN(t.data.likes_count)&&(E(!0),k(t.data.likes_count))}else A(!0)},I=async()=>{if(v?.id){let t=await ln({entity_type:e.entity_type,entity_id:l});t.success&&!isNaN(t.data.likes_count)&&(E(!1),k(t.data.likes_count))}else A(!0)},T=async()=>{v?.id?L(!0):A(!0)},D=async()=>{if(e.isLocalLink){if(g&&"open"!==t)return void g.openPost(e.id,{scrollToComments:!0});M.push(`${e.link}#comments_block`)}else window.open(`${e.link}#comments_block`)};return(0,Q.useEffect)(()=>{S(r)},[r]),(0,Q.useEffect)(()=>{E(i)},[i]),(0,G.jsxs)(G.Fragment,{children:[(0,G.jsxs)("div",{className:en().reactions,children:[(0,G.jsxs)("div",{className:ei()(en().reaction,en().likes),onClick:e=>{e.preventDefault(),e.stopPropagation()},children:[j?(0,G.jsx)(es.W2K,{className:en().icon,onClick:()=>I()}):(0,G.jsx)(es.DND,{className:en().icon,onClick:()=>O()}),(0,G.jsx)("div",{className:en().counter,onClick:()=>N(!0),children:y??0})]}),(0,G.jsxs)("div",{className:ei()(en().reaction,en().comments),onClick:e=>{e.preventDefault(),e.stopPropagation(),D()},children:[(0,G.jsx)(eo.M4l,{className:en().icon}),(0,G.jsx)("div",{className:en().counter,children:n??0})]}),(0,G.jsxs)("div",{className:ei()(en().reaction,en().reposts),onClick:e=>{e.preventDefault(),e.stopPropagation(),T()},children:[(0,G.jsx)(ec.nmQ,{className:en().icon}),(0,G.jsx)("div",{className:en().counter,children:C??0})]}),(0,G.jsx)(lv,{entityType:e.entity_type,entityId:l,isOwner:!!v?.id&&v.id===f})]}),P&&(0,G.jsx)(eM,{idPost:l,entity_type:e.entity_type,handleClose:()=>N(!1)}),Z&&(0,G.jsx)(t8,{entityType:u&&x?x:c,entityId:u&&h?h:l,refResend:b,handleClose:()=>L(!1),linkEntity:z,onRepost:()=>{S(C+1)}}),R&&(0,G.jsx)(lc,{handleClose:()=>A(!1)}),(0,G.jsx)("div",{ref:b,style:{position:"absolute",top:-100500},children:(0,G.jsx)(ll,{title:s,text:o,linkImg:w[0]?.url||"/img/plug.jpg",tag:Array.isArray(p)&&p[0]?p[0]:"",author:d})})]})}var lw=l(23914),lb=l.n(lw),lM=l(95878);let lj=(0,ew.createServerReference)("40e9177755469b9e4279c030ab20553e8235233676",ew.callServer,void 0,ew.findSourceMapURL,"requestRemoveUserPost"),lE=(0,ew.createServerReference)("408c0b64e5632b2658da3747c13b2745d2cd65394d",ew.callServer,void 0,ew.findSourceMapURL,"requestHideAuthor"),ly=(0,ew.createServerReference)("605d811b51ddc3f9f4f5f9bfdfb6f9fb3eee8e0eb0",ew.callServer,void 0,ew.findSourceMapURL,"requestSetPostNotifications");function lk({callbackUpdatePost:e=()=>{},callbackRemovePost:t=()=>{},callbackHideAuthor:l=()=>{},id_post:a,authorId:n,isSubscribedToAuthor:r=!1,initialNotificationsEnabled:i=!1}){let s=(0,Y.useRouter)(),[o,c]=(0,Q.useState)(!1),d=(0,Q.useRef)(null),[f,p]=(0,Q.useState)(!1),[u,m]=(0,Q.useState)(i);(0,Q.useEffect)(()=>{let e=e=>{d.current&&!d.current?.contains(e.target)&&(e.target.closest(".Post_Menu_btn_more__iGo3r")||c(!1))};return window.addEventListener("mousedown",e),()=>{window.removeEventListener("mousedown",e)}},[d]);let _=async()=>{let e=await lj(a);e.success?t():console.error("Ошибка",e)},h=async()=>{e(),s.push(`/posts/${a}/update-post`)},x=async()=>
1{if(!n)return;let e=await lE(n);e.success?l():console.error("Ошибка",e),c(!1)},v=async()=>{if(!n)return;let e=!u,t=await ly(n,e);t.success?m(e):console.error("Ошибка",t),c(!1)};return(0,G.jsxs)(G.Fragment,{children:[(0,G.jsxs)("div",{className:lb().btn_more,onClick:()=>{c(!o)},children:[(0,G.jsx)(eA,{}),(0,G.jsx)("ul",{ref:d,className:o?`${lb().menu}`:`${lb().menu} ${lb().hidden}`,children:n?(0,G.jsxs)(G.Fragment,{children:[r&&(0,G.jsx)("li",{className:lb().menu__list_item,onClick:v,children:u?"Не уведомлять о постах":"Уведомлять о постах"}),(0,G.jsx)("li",{className:lb().menu__list_item,onClick:x,children:"Скрыть автора"})]}):(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)("li",{className:lb().menu__list_item,onClick:h,children:"Редактировать"}),(0,G.jsx)("li",{className:lb().menu__list_item,onClick:()=>p(!0),children:"Удалить"})]})})]}),f&&(0,G.jsx)(lC,{handleClose:()=>p(!1),handleSuccess:_})]})}function lC({handleClose:e,handleSuccess:t}){return(0,G.jsx)(lM.A,{closeAction:e,maxHeight:200,maxWidth:540,fullScreen:!0,isCloseButtonDisplay:!1,children:(0,G.jsxs)("div",{className:lb().popup_container,children:[(0,G.jsx)("h3",{className:lb().popup_title,children:"Удалить пост?"}),(0,G.jsxs)("div",{className:lb().button_block,children:[(0,G.jsx)("button",{onClick:e,className:ei()(lb().popup_button,lb().popup_button_cancel),children:"Отменить"}),(0,G.jsx)("button",{onClick:()=>{t()},className:ei()(lb().popup_button,lb().popup_button_red),children:"Удалить"})]})]})})}var lS=l(18168),lP=l.n(lS);function lN(){return(lN=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var a in l)({}).hasOwnProperty.call(l,a)&&(e[a]=l[a])}return e}).apply(null,arguments)}let lZ=function(e){return Q.createElement("svg",lN({xmlns:"http://www.w3.org/2000/svg",width:21,height:17,fill:"none"},e),q||(q=Q.createElement("path",{fill:"#E5D6A0",d:"M13.276 2.475A.937.937 0 0 1 14.6 1.15l5.625 5.625a.937.937 0 0 1 0 1.325L14.6 13.725a.937.937 0 0 1-1.325-1.325L17.3 8.375H9.563a7.19 7.19 0 0 0-7.187 7.188.938.938 0 0 1-1.875 0A9.06 9.06 0 0 1 9.563 6.5h7.738z"})))};function lL({post:e,isActionsAvailable:t,callbackRemovePost:l,isAuthenticated:a}){let{owner_type:n,owner:r,repost_comment:i,id:s,user_id:o}=e,[c,d]=(0,Q.useState)(""),[f,p]=(0,Q.useState)(null),[u,m]=(0,Q.useState)("");return(0,Q.useEffect)(()=>{r&&1===n&&(d(`${r?.surname} ${r?.name} ${r?.patronymic}`),r?.avatar&&p(r.avatar),r?.id&&m(`/users/${r.id}`))},[r]),(0,G.jsxs)("div",{className:lP().container,children:[(0,G.jsxs)("div",{className:lP().container_owner,children:[(0,G.jsxs)("div",{className:lP().owner_info,children:[(0,G.jsx)("div",{className:lP().repost_icon,children:(0,G.jsx)(lZ,{fill:"var(--color5)"})}),(0,G.jsx)(et(),{href:u,children:(0,G.jsx)("div",{className:lP().owner_avatar,children:(0,G.jsx)(el.A,{avatar:f,shape:"square",objectPosition:"top center",fallbackSrc:"/img/ava.svg",alt:"Аватар пользователя"})})}),(0,G.jsx)(et(),{href:u,className:lP().owner_name,children:c})]}),t&&(0,G.jsx)(lk,{callbackRemovePost:l,id_post:s}),!t&&a&&(0,G.jsx)(lk,{callbackHideAuthor:l,id_post:s,authorId:o,isSubscribedToAuthor:!!e.is_subscribed_to_author,initialNotificationsEnabled:!!e.author_post_notifications_enabled})]}),i&&(0,G.jsx)("p",{className:lP().container_repostComment,children:i})]})}var lR=l(53778),lA=l.n(lR);function lz({post:e,mode:t,content:l,isRepost:a}){let n=(0,Y.useRouter)(),r=li(),i=(0,Q.useRef)(null),s=l?.length>200,[o,c]=(0,Q.useState)(!!i.current&&i.current?.scrollHeight>100);return(0,Q.useEffect)(()=>{c(!!i.current&&i.current?.scrollHeight>100)},[i.current]),(0,G.jsxs)("div",{className:lA().description,children:[l&&(0,G.jsxs)("div",{ref:i,className:ei()(lA().text,{[lA().text_descriptions]:"open"!==t&&e.entity_type!==eB.N.News}),children:[(0,G.jsx)("div",{lang:"ru",dangerouslySetInnerHTML:{__html:(s||o)&&"open"!==t?`${l?.substring(0,200)}...`:l}}),"open"!==t&&e.entity_type!==eB.N.News&&(0,G.jsx)("div",{className:lA().shade})]}),"small"!==t&&"open"!==t&&(0,G.jsx)("div",{className:lA().readMore,onClick:()=>(()=>
1{if(e.isLocalLink){if(r)return void r.openPost(e.id,{scrollToComments:!s&&!o});s||o?n.push(`${e.link}`):n.push(`${e.link}#comments_block`)}else s||o?window.open(`${e.link}`):window.open(`${e.link}#comments_block`)})(),children:s||o?"читать далее":"Читать комментарии"}),a&&e.content&&(0,G.jsx)("div",{className:ei()(lA().text,lA().repostText),children:e.content})]})}var lB=l(59596),lO=l.n(lB),lI=l(14488),lT=l(56658);function lD({photoList:e=[],mode:t,title:l}){let[a,n]=(0,Q.useState)(0),[r,i]=(0,Q.useState)(e.length),s=(0,lT.O)(e.map(e=>e.url));return(0,G.jsx)("div",{className:lO().container,children:r>0?(0,G.jsxs)(G.Fragment,{children:[r>1&&"open"===t&&(0,G.jsx)("div",{className:ei()(lO()["prev-button"]),onClick:()=>void n(0===a?r-1:a-1),children:(0,G.jsx)(eL,{})}),(0,G.jsx)(eN.default,{src:e[a]?.url??"/img/plug.jpg",className:lO().slideImg,width:610,height:360,alt:l,quality:100,priority:"open"===t,style:(0,lI.K)(e[a]?.position,e[a]?.url?s[e[a].url]:void 0)}),e.length>1&&"open"===t&&(0,G.jsx)("div",{className:ei()(lO()["next-button"]),onClick:()=>void n(a===r-1?0:a+1),children:(0,G.jsx)(eL,{})}),e.length>1&&"open"===t&&(0,G.jsx)("ul",{className:lO().pointsList,children:e.map((e,t)=>(0,G.jsx)("li",{onClick:()=>n(t),className:ei()(lO().point,{[lO().point_active]:a===t})},t))})]}):(0,G.jsx)(eN.default,{src:"/img/plug.jpg",className:lO().slideImg,width:610,height:360,alt:l,quality:100,priority:"open"===t})})}var lU=l(85437),lV=l.n(lU),l$=l(47911),lF=l.n(l$),lW=l(13714);let lH=(0,ew.createServerReference)("40d1fe6a04e87a56528958b63c344716edf1a0c2e3",ew.callServer,void 0,ew.findSourceMapURL,"requestUnpinComment"),lq=(0,ew.createServerReference)("4043b33ce8a1cfb12c0454534c9e1705fb2b4f2409",ew.callServer,void 0,ew.findSourceMapURL,"requestPinComment"),lG=(0,ew.createServerReference)("406d18f093c532056ee94e2d631786bed434330a02",ew.callServer,void 0,ew.findSourceMapURL,"requestGetCommentReplies"),lK=(0,ew.createServerReference)("401b7b9608cd908170718cf061b8af87f769d88653",ew.callServer,void 0,ew.findSourceMapURL,"requestClaimComment"),lJ=(0,ew.createServerReference)("40342cf0791541afc0fd38d5b285f94b20a4953152",ew.callServer,void 0,ew.findSourceMapURL,"requestRemoveComment");var lQ=l(8876);function lX({entity_id:e,entity_author_id:t,list:l,isRepliesList:a,replyData:n,setReplyData:r,editData:i,setEditData:s,orderDir:o,onScroll:c=()=>{}}){return(0,G.jsx)("ul",{className:ei()(lF().list,{[lF().repliesList]:a}),onScroll:c,children:l.length>0&&l.map((c,d)=>(0,G.jsx)("li",{children:(0,G.jsx)(lY,{comment:c,entity_id:e,entity_author_id:t,isReply:a,list:l,replyData:n,setReplyData:r,editData:i,setEditData:s,orderDir:o})},`${d}-${c.id}`))})}function lY({comment:e,entity_id:t,entity_author_id:l,isReply:a,replyData:n,setReplyData:r,editData:i,setEditData:s,orderDir:o}){let{id:c,created_at:d,is_deleted:f}=e,{is_pinned:p,is_liked:u}=e,m=(0,Y.usePathname)(),{myProfile:_}=(0,eO.E)(),h=_?.id??null,x=!!(h&&_?.roles?.find(e=>"super-admin"===e.name)),v=h===l,g=h===e?.user?.id,w=(0,Q.useRef)(null),[b,M]=(0,Q.useState)(!1),[j,E]=(0,Q.useState)(null),y=j?.length??e?.count_replies;console.log(e);let[k,C]=(0,Q.useState)(!1),[S,P]=(0,Q.useState)(u??!1),[N,Z]=(0,Q.useState)(f??!1),[L,R]=(0,Q.useState)(p??!1),[A,z]=(0,Q.useState)(""),B=async(e,t=1)=>{let l=await lG({commentId:e,page:t,order_dir:o});E(l.success&&Array.isArray(l.data)?l.data:[])},O=async()=>{try{if(S){let t=await ln({entity_type:eB.N.Comment,entity_id:c});console.log(t),t.success&&(P(!1),e.count_like?e.count_like-=1:e.count_like=0)}else{let t=await la({entity_type:eB.N.Comment,entity_id:c});console.log(t),t.success&&(P(!0),e.count_like?e.count_like+=1:e.count_like=1)}}catch(e){console.error(e)}},[I,T]=(0,Q.useState)(!1),D=async e=>{let t=await lK({id:c,reason:e,type:"1",entity_type:eB.N.Comment});return t.success&&z(t?.data?.message??"Жалоба отправлена"),t},U=async()=>{try{let e=await lJ(c);console.log(e),e.success&&Z(!0)}catch(e){console.error(e)}},V=async()=>{try{if(L){let e=await lH(c);console.log(e),R(!1)}else{let e=await lq(c);console.log(e),R(!0)}}catch(e){console.error(e)}};return(0,Q.useEffect)(()=>
1{if(!w.current)return;let e=e=>{let t=w.current;t&&!t.contains(e.target)&&C(!1)};return document.addEventListener("click",e),()=>{document.removeEventListener("click",e)}},[w.current,k]),(0,Q.useEffect)(()=>{i||n||B(e.id)},[i,n,o]),(0,G.jsxs)("div",{className:ei()(lF().container,{[lF().deleted]:N}),children:[(0,G.jsx)("div",{className:lF().img_block,children:!N&&(0,G.jsx)(el.A,{avatar:e.user?.avatar,shape:"square",fallbackSrc:"/img/zaglushka-avatar.png",alt:"Аватар пользователя"})}),(0,G.jsxs)("div",{className:lF().general,children:[(0,G.jsxs)("div",{className:lF().info,children:[(0,G.jsxs)("div",{className:lF().comment,children:[!N&&(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)("p",{className:lF().name,children:`${e.user?.name}`}),(0,G.jsx)("p",{className:lF().text,children:e.text}),d&&(0,G.jsx)("p",{className:lF().date,children:function(e){let[t,l]=(0,lQ.Bo)(e).split(" "),[a,n,r]=t.split("-"),[i,s]=(l??"").split(":");return`${r}.${n}.${a} ${i}:${s}`}(d)}),!a&&(0,G.jsx)("p",{className:lF().response_link,onClick:()=>{r&&r({parent:e})},children:"Ответить"}),L&&(0,G.jsxs)("div",{className:lF().pin,children:[(0,G.jsx)(eH,{className:ei()(lF().icon,lF()["pin-icon"])}),(0,G.jsx)("p",{children:v?"Автор":"Админ"})]}),A&&(0,G.jsx)("p",{className:lF().msg,children:A})]}),N&&(0,G.jsx)("p",{className:lF()["deleted-text"],children:"Комментарий удален"})]}),!N&&(0,G.jsxs)("div",{className:ei()(lF().actions),ref:w,children:[(0,G.jsxs)("div",{className:lF().menu,children:[(0,G.jsx)(eA,{className:ei()(lF()["action-points-icon"]),onClick:()=>C(!k)}),k&&(0,G.jsxs)("div",{className:lF()["menu-list"],children:[g&&(0,G.jsxs)("div",{className:lF().item,onClick:()=>{s&&s({source:e})},children:[(0,G.jsx)(eT,{className:ei()(lF().icon,lF()["edit-icon"])}),(0,G.jsx)("p",{children:"Редактировать"})]}),(0,G.jsxs)("div",{className:lF().item,onClick:()=>{let e=`https://https://api.drafter.ru${m}#post-${t}-comments-${c}`;(0,t6.A)(e)},children:[(0,G.jsx)(eU,{className:ei()(lF().icon,lF()["copy-icon"])}),(0,G.jsx)("p",{children:"Скопировать ссылку"})]}),(x||g||v)&&(0,G.jsxs)("div",{className:lF().item,onClick:U,children:[(0,G.jsx)(eV.A,{stroke:"var(--color5)",width:20,className:ei()(lF().icon,lF()["remove-icon"])}),(0,G.jsx)("p",{children:"Удалить"})]}),!g&&(0,G.jsxs)("div",{className:lF().item,onClick:()=>T(!0),children:[(0,G.jsx)(eF,{className:ei()(lF().icon,lF()["claim-icon"])}),(0,G.jsx)("p",{children:"Пожаловаться"})]}),(x||v)&&(0,G.jsxs)("div",{className:lF().item,onClick:V,children:[(0,G.jsx)(eH,{className:ei()(lF().icon,lF()["pin-icon"])}),(0,G.jsx)("p",{children:L?"Открепить":"Закрепить"})]})]})]}),(0,G.jsxs)("div",{className:lF().like,onClick:O,children:[S?(0,G.jsx)(es.W2K,{className:ei()(lF().icon)}):(0,G.jsx)(es.DND,{className:ei()(lF().icon)})," ",e.count_like]})]})]}),!a&&!N&&(0,G.jsx)("div",{className:lF().replies,children:!!y&&y>0&&(0,G.jsxs)("div",{className:ei()(lF().replies_block,{[lF().replies_block_open]:b}),children:[(0,G.jsx)("p",{className:lF().replies_link,onClick:()=>M(!b),children:b?"Скрыть комментарии":`---Показать ${y} ${(0,lW.Be)(y)} `}),j&&(0,G.jsx)("div",{className:ei()(lF().replies_list,{[lF().hidden]:!b}),children:(0,G.jsx)(lX,{list:j,entity_id:t,isRepliesList:!0,replyData:n,setReplyData:r,editData:i,setEditData:s,orderDir:o})})]})}),(0,G.jsx)(l1,{isOpen:I,setIsOpen:T,handleClaimComment:D})]})]})}function l1({isOpen:e,setIsOpen:t,handleClaimComment:l}){let[a,n]=(0,Q.useState)(""),r=(0,Q.useRef)(null),i=async()=>{let e=r.current,a=e?.value??"";e&&(e.value?(await l(a)).success?t(!1):n("Ошибка при отправке"):n("Опишите причину жалобы"))};return(0,Q.useEffect)(()=>{n("")},[e]),(0,G.jsx)(eq.Ay,{isModalOpen:e,children:(0,G.jsxs)(eq.QI,{className:ei()(lF().window,lF()["claim-popup"]),closeModal:()=>{t(!1)},children:[(0,G.jsx)("h1",{className:lF().title,children:"Введите причину"}),(0,G.jsxs)("div",{className:lF()["claim-popup-body"],children:[(0,G.jsx)("input",{type:"text",className:lF().input,placeholder:"Введите причину",ref:r}),(0,G.jsxs)("div",{className:lF().buttons,children:[(0,G.jsx)("button",{className:lF().button,onClick:()=>i(),children:"Отправить"}),(0,G.jsx)("button",{className:lF().button,onClick:()=>t(!1),children:"Отмена"})]}),a&&(0,G.jsx)("p",{className:lF().msg,children:a})]})]})})}var l0=l(3619),l2=l.n(l0),l3=l(10102),l5=l(75663),l4=l(97616);function l6({message:e,setMessage:t,handleSendMsg:l,handleSendFile:a,onInit:n=()=>{}}){let r=(0,Q.useRef)(null);return(0,Q.useEffect)(()=>{r.current&&n(r.current)},[r.current]),(0,G.jsxs)("form",{className:l2().container,children:[(0,G.jsxs)("div",{className:ei()(l2().input_container,l2().small),children:[(0,G.jsx)("textarea",{rows:1,className:l2().text,placeholder:"Написать сообщение...",value:e,onCh
1ange:e=>{""===e.target.value.trim()?e.target.style.height="20px":(e.target.style.height="auto",e.target.style.height=e.target.scrollHeight+"px"),console.log(e.target.scrollHeight,e.target.style.height),t(e.target.value)}}),a&&(0,G.jsx)(l3.A,{})]}),(0,G.jsx)("button",{type:"button",className:l2().send,onClick:l,disabled:!e.trim(),children:e.trim()?(0,G.jsx)(l4.A,{}):(0,G.jsx)(l5.A,{})})]})}let l7=(0,ew.createServerReference)("405494784e552a986ddbbf785a9f289a8f98ef3bd0",ew.callServer,void 0,ew.findSourceMapURL,"requestGetComments"),l8=(0,ew.createServerReference)("40664db08a6b8db4e4540e5c1ef7f5193a253a2e37",ew.callServer,void 0,ew.findSourceMapURL,"requestSendComment"),l9=(0,ew.createServerReference)("4081db6f829ce6398e2dff5913b15e8c5de1cd9c51",ew.callServer,void 0,ew.findSourceMapURL,"requestUpdateComment"),ae=[{value:"desc",title:"Сначала новые"},{value:"asc",title:"Сначала старые"}];function at({entity_type:e,entity_id:t,entity_author_id:l,entity:a,setEntity:n}){let{myProfile:r}=(0,eO.E)(),[i,s]=(0,Q.useState)(""),[o,c]=(0,Q.useState)(null),{list:d,handleScroll:f,setList:p,resetList:u}=(0,ev.A)([]),[m,_]=(0,Q.useState)(null),[h,x]=(0,Q.useState)(null),[v,g]=(0,Q.useState)("desc"),w=async(l=1,a=v)=>{let n=await l7({page:l,entity_type:e,entity_id:t,order_dir:a});return n&&n.success&&Array.isArray(n.data)?n.data:[]},b=async e=>{let t=e.value;g(t),u(await w(1,t))},M=async()=>{let l=await l8({entity_type:e,entity_id:t,text:i});if(console.log("response",l),l.success&&l?.data?.id){let e=[l.data,...d];s(""),p(e),a&&n&&(a.comments_count=e.length,n({...a}))}},j=async()=>{if(m?.parent?.id){let l=m.parent.id,a=await l8({entity_type:e,entity_id:t,text:i,parent_id:l});a.success&&a.data&&(s(""),p([...d]),_(null))}},E=async()=>{if(h?.source?.id){let e=h?.source?.id,t=await l9({id:e,text:i});if(console.log("response",t),t.success&&t.data){let l=d.findIndex(({id:t})=>t===e);l>=0&&(d[l]=t.data),s(""),p([...d]),x(null)}}};return(0,Q.useEffect)(()=>{m&&(s(""),x(null))},[m]),(0,Q.useEffect)(()=>{h&&(s(h?.source?.text??""),_(null))},[h]),(0,Q.useEffect)(()=>{o&&(m||h?o.focus():s(""))},[h,m]),(0,Q.useEffect)(()=>{(async()=>{u(await w(1))})()},[t,e]),(0,G.jsxs)("div",{className:lV().container,id:`post-${t}-comments`,children:[(0,G.jsx)(eG.A,{className:lV().sort,list:ae,selectedValue:ae.find(e=>e.value===v)??null,setValue:b}),(0,G.jsx)(lX,{list:d,entity_id:t,entity_author_id:l,isRepliesList:!1,replyData:m,setReplyData:_,editData:h,setEditData:x,orderDir:v,onScroll:e=>{f(e.currentTarget,w)}}),m&&(0,G.jsx)(al,{data:m,onCancel:()=>{_(null)}}),h&&(0,G.jsx)(aa,{data:h,onCancel:()=>{x(null)}}),r?.id&&(0,G.jsx)(l6,{onInit:e=>c(e),message:i,setMessage:s,handleSendMsg:()=>{m?j():h?E():M()}})]})}function al({data:e,onCancel:t}){let l=e?.parent?.user?.name;return(0,G.jsxs)("div",{className:lV().reply,children:[(0,G.jsx)("div",{className:lV().cancel,onClick:()=>t(),children:"x"}),(0,G.jsxs)("div",{className:lV().text,children:[(0,G.jsx)("p",{children:"Ответ"}),(0,G.jsx)("p",{className:lV().name,children:l})]})]})}function aa({data:e,onCancel:t}){let l=e?.source?.text??"",a=l.length>20?`${l.substring(0,20)}...`:l;return(0,G.jsxs)("div",{className:lV().reply,children:[(0,G.jsx)("div",{className:lV().cancel,onClick:()=>t(),children:"x"}),(0,G.jsxs)("div",{className:lV().text,children:[(0,G.jsx)("p",{children:"Редактирование"}),(0,G.jsx)("p",{className:lV().name,children:a})]})]})}var an=l(19898),ar=l.n(an);let ai=(0,ew.createServerReference)("405fcf6dc7c2cbc4ecc715eaf1b7bb8667176c1196",ew.callServer,void 0,ew.findSourceMapURL,"requestPublishedUserPost");function as({callbackUpdatePost:e=()=>{},callbackRemovePost:t=()=>{},id_post:l}){let a=(0,Y.useRouter)(),[n,r]=(0,Q.useState)(!1),i=async()=>{let e=await lj(l);e.success?t():console.error("Ошибка",e)},s=async()=>{e(),a.push(`/posts/${l}/update-post`)},o=async()=>{(await ai(l)).success};return(0,G.jsxs)("div",{className:ei()(ar().container),children:[(0,G.jsx)("button",{className:ei()(ar().btn),onClick:()=>r(!0),children:"Удалить"}),(0,G.jsx)("button",{className:ei()(ar().btn),onClick:()=>s(),children:"Редактировать"}),(0,G.jsx)("button",{className:ei()(ar().btn,ar().btn_gold),onClick:()=>o(),children:"Опубликовать"}),n&&(0,G.jsx)(lC,{handleClose:()=>r(!1),handleSuccess:i})]})}var ao=l(58584),ac=((a={})[a.Draft=1]="Draft",a[a.Scheduled=2]="Scheduled",a[a.Published=3]="Published",a),ad=l(24458),af=l(35250);let ap=(0,ew.createServerReference)("4005ea12368c8b7de8307d3d8d37bd1095d09a14ff",ew.callServer,void 0,ew.findSourceMapURL,"requestUnhideAuthor"),au=/\s*<p>\s*Источник:\s*<a\b[^>]*>[^<]*<\/a>\s*<\/p>\s*$/i,am=(0,ew.createServerReference)("40434c6c86e83b51c79644f1c56fa0b213613ed293",ew.callServer,void 0,ew.findSourceMapURL,"requestGetNews");function a_({post:e,mode:t,isDraft:l=!1}){let{myProfile:a}
1=(0,eO.E)();(0,Q.useEffect)(()=>{console.log("mode mode",t)},[]);let[n,r]=(0,Q.useState)(e),{created_at:i,id:s,photoList:o,owner:c,tags:d=[]}=n,{isRepost:f,repostData:p,repostType:u,repostPhotoList:m=[]}=n,{author:_,author_avatar:h,user_id:x}=n,v=!c&&n.entity_type===eB.N.UserPost&&!!_,g=n.entity_type===eB.N.News,w=(f?p.title:g&&n.seo?.h1||n.title)??"",b=!f&&g&&n.source?(n.content||"").replace(au,""):n.content,M=(0,Y.useRouter)(),[j,E]=(0,Q.useState)(n.is_favorite),[y,k]=(0,Q.useState)(!1),C=a?.id===n?.user_id,S=(0,Q.useRef)(null),[P,N]=(0,Q.useState)(!1);(0,Q.useEffect)(()=>{"open"===t&&a?.id&&!C&&(0,af.x)(n.entity_type,n.id)},[t,n.id,a?.id]),(0,Q.useEffect)(()=>{"open"===t&&g&&a?.id&&(async()=>{let e=await am(n.id);e.success&&e.data&&(E(!!e.data.is_favorite),r(t=>({...t,is_liked:!!e.data.is_liked,is_favorite:!!e.data.is_favorite})))})()},[t,g,n.id,a?.id]);let Z=n.entity_type===eB.N.UserPost&&n.status===ac.Scheduled&&C,L=n.publish_at?function(e){let[t,l]=(0,lQ.Bo)(e).split(" "),[a,n,r]=t.split("-");return`${r}.${n}.${a} ${l.slice(0,5)}`}(n.publish_at):"";(0,Q.useEffect)(()=>{console.log("myProfile",a)},[a]),(0,Q.useEffect)(()=>{window.location.href.includes("#comments_block")&&setTimeout(()=>{S.current&&S.current.scrollIntoView({behavior:"smooth",block:"start"})},100)},[S]);let[R,A]=(0,Q.useState)(!0);(0,Q.useEffect)(()=>{setInterval(()=>{A(!1)},500)},[]);let z=async()=>{k(!0),"open"===t&&M.back()},[B,O]=(0,Q.useState)(!!n.is_author_hidden),I=async()=>{let e=await ap(x);e.success?O(!1):console.error("Ошибка",e)};return(0,G.jsxs)(G.Fragment,{children:[!y&&(0,G.jsxs)("div",{className:ei()(J().container,{"anim-show":R}),children:[c&&(0,G.jsx)(lL,{post:n,isActionsAvailable:!!C,callbackRemovePost:z,isAuthenticated:!!a?.id}),(0,G.jsxs)("article",{className:`${J().container_post} ${"small"===t?J().small:""}`,children:[(0,G.jsxs)("div",{className:J().flex,style:{flexDirection:"column"},children:["open"===t&&(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)("h1",{className:J().titleOpen,children:w}),(0,G.jsx)(lD,{mode:t,photoList:f?m:o,title:w})]}),(0,G.jsxs)("div",{className:J().content,children:[(0,G.jsx)("div",{className:J().topBlock,children:(0,G.jsx)("div",{className:J().info,children:(0,G.jsxs)("div",{className:J().flex,style:{gap:"20px"},children:[(0,G.jsxs)("div",{className:J().headerLeft,children:[v&&(0,G.jsx)(et(),{href:`/users/${x}`,className:J().authorAvatar,children:(0,G.jsx)(el.A,{avatar:h,objectPosition:"top center",fallbackSrc:"/img/ava.svg",alt:"Аватар пользователя"})}),(0,G.jsxs)("div",{className:J().headerLeftColumn,children:[v&&(0,G.jsx)(et(),{href:`/users/${x}`,className:J().authorName,children:_}),(0,G.jsxs)("div",{className:J().timeAndTag,children:[(0,G.jsx)("span",{className:J().timePostAdded,children:`${(0,X.A)((0,lQ.Bo)(i)," ")}`}),Z&&(0,G.jsxs)("div",{className:J().scheduledBadge,children:[(0,G.jsx)(ad.A,{className:J().scheduledBadgeIcon}),(0,G.jsxs)("div",{children:["Публикация отложена до",(0,G.jsx)("div",{children:L})]})]}),d.length>0&&(0,G.jsx)("span",{className:ei()(J().tag,{[J().tagCard]:"open"!==t}),children:d[0]}),B&&(0,G.jsxs)("span",{className:J().hiddenAuthorBadge,children:["Автор скрыт",(0,G.jsx)("button",{type:"button",className:J().hiddenAuthorBadgeButton,onClick:e=>{e.stopPropagation(),e.preventDefault(),I()},children:"Вернуть в ленту"})]})]})]})]}),(0,G.jsxs)("div",{style:{display:"flex",gap:"20px",alignItems:"center",flexDirection:"row-reverse"},onClick:e=>{e.stopPropagation(),e.preventDefault()},children:[C&&!c&&!l&&(0,G.jsx)(lk,{callbackRemovePost:z,id_post:s}),!C&&!c&&!l&&!!a?.id&&(0,G.jsx)(lk,{callbackHideAuthor:()=>{k(!0)},id_post:s,authorId:x,isSubscribedToAuthor:!!n.is_subscribed_to_author,initialNotificationsEnabled:!!n.author_post_notifications_enabled}),(0,G.jsx)("div",{className:J().favorite,onClick:()=>N(!a?.id),children:(0,G.jsx)(ao.N,{disabled:!a?.id,isFavorite:j,setIsFavorite:E,entityType:n.entity_type,entityId:s})})]})]})})}),"open"!==t&&(0,G.jsx)("h3",{className:J().title,children:(f?p.title:n.title)??""}),(0,G.jsx)(lz,{post:n,content:f?7===u?p.description:p.text:"open"===t?b:n.short_content,mode:t,isRepost:!!f}),f&&(0,G.jsx)("h3",{className:J().repostTitle,children:p.text}),"open"===t&&!f&&n.source&&(0,G.jsxs)("a",{href:n.source.url,target:"_blank",rel:"noopener noreferrer nofollow",className:J().sourceLink,children:["Источник: ",n.source.name]})]})]}),(0,G.jsxs)("div",{children:["open"!==t&&(0,G.jsx)(lD,{mode:t,photoList:f?m:o,title:w}),l?(0,G.jsx)(as,{id_post:n.id,callbackRemovePost:z}):(0,G.jsx)(lg,{post:n,mode:t})]})]}),"open"===t&&(0,G.jsx)("div",{className:J().comments,ref:S,id:"comments_block",children:(0,G.jsx)(at,{entity_type:n.entity_type,entity_id:s,entity_author_id:n.user,entity:n,setEntity:r})})]}),P&&(0,G.jsx)(lc,{handleClose:()=>N(!1)})]})}},79647:(e,t,l)=>{"use strict";l.d(t,{A:()=>i});var a,n=l(12115);function r(){return(r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var a in l)({}).hasOwnProperty.call(l,a)&&(e[a]=l[a])}return e}).apply(null,arguments)}let i=function(e){return n.createElement("svg",r({xmlns:"http://www.w3.org/2000/svg",width:21,height:24,fill:"none"},e),a||(a=n.createElement("path",{fill:"#fff",d:"M20 10.268c1.333.77 1.333 2.694 0 3.464L3.5 23.258c-1.333.77-3-.192-3-1.732V2.474C.5.934 2.167-.028 3.5.742z"})))}},81326:e=>{e.exports={container:"StoryComments_container__kVNJe",sort:"StoryComments_sort__TWBaJ",list:"StoryComments_list__KOBNP",reply:"StoryComments_reply__Xdrrv",text:"StoryComments_text__4mfZz",name:"StoryComments_name__dmKYd",cancel:"StoryComments_cancel__3QQye"}},85437:e=>{e.exports={container:"Comments_container__Ae3sS",sort:"Comments_sort__ejOoG",list:"Comments_list__kHgIc",reply:"Comments_reply__r0E1M",text:"Comments_text__A6wKn",name:"Comments_name__IwbZt",cancel:"Comments_cancel__ME27N"}},89354:e=>{e.exports={button:"ModeControls_button__PDngG",button_active:"ModeControls_button_active__8N_J3",modeTitle:"ModeControls_modeTitle__EBOf1",modeArrow:"ModeControls_modeArrow__ZBk8i"}},90866:e=>{e.exports={container:"PopupStoryPrivacy_container__H9Qa5",state:"PopupStoryPrivacy_state__m6r4i",section:"PopupStoryPrivacy_section__t42tk",saveButton:"PopupStoryPrivacy_saveButton__NlbFi"}},93641:e=>{e.exports={overlay:"PopupLikes_overlay___MIjs",window:"PopupLikes_window__SELZr",title:"PopupLikes_title__Rk1yl"}},94662:(e,t,l)=>{"use strict";l.d(t,{A:()=>i});var a,n=l(12115);function r(){return(r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var a in l)({}).hasOwnProperty.call(l,a)&&(e[a]=l[a])}return e}).apply(null,arguments)}let i=function(e){return n.createElement("svg",r({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20"},e),a||(a=n.createElement("path",{d:"M7.643 12.357 10 10m0 0 2.357-2.357M10 10 7.643 7.643M10 10l2.357 2.357m-2.358 5.976a8.333 8.333 0 1 0 0-16.666 8.333 8.333 0 1 0 0 16.666"})))}},95773:e=>{e.exports={container:"Post_container__PFdaO",container_post:"Post_container_post__AJs0N",titleOpen:"Post_titleOpen__v5lZg",flex:"Post_flex__StHbj",topBlock:"Post_topBlock__hlEpr",info:"Post_info__51MQI",favorite:"Post_favorite__81lVD",headerLeft:"Post_headerLeft__yNzZk",authorAvatar:"Post_authorAvatar__fA0Je",headerLeftColumn:"Post_headerLeftColumn__pJohj",authorName:"Post_authorName__vXg0U",timeAndTag:"Post_timeAndTag__b5Aco",tag:"Post_tag__3MkM7",tagCard:"Post_tagCard__s8spV",timePostAdded:"Post_timePostAdded__OFKdM",scheduledBadge:"Post_scheduledBadge__UDyCj",scheduledBadgeIcon:"Post_scheduledBadgeIcon__S4g3X",hiddenAuthorBadge:"Post_hiddenAuthorBadge__BKquI",hiddenAuthorBadgeButton:"Post_hiddenAuthorBadgeButton__5TWPQ",message:"Post_message__zdb_t",actions:"Post_actions__HVIrJ","actions-icon":"Post_actions-icon__qJ_hT","actions-box":"Post_actions-box__u5_41",action:"Post_action__IZKsW",hoverIconEditDeletePost:"Post_hoverIconEditDeletePost__BX1AJ",content:"Post_content__yKyHR",title:"Post_title__szV3G",small:"Post_small__tFY8F",comments:"Post_comments__mt535",sourceLink:"Post_sourceLink__kV0X5"}},95848:e=>{e.exports={container:"BlockColor_container__zARKS",swatch:"BlockColor_swatch__xMaAf",swatch_active:"BlockColor_swatch_active__hrmms",strip:"BlockColor_strip__E1dVu"}},99474:e=>{e.exports={container:"Post_Resend_container__KVJZO",img_block:"Post_Resend_img_block__HsmyA",content:"Post_Resend_content__5ya61",content_top:"Post_Resend_content_top__65AMG",author:"Post_Resend_author__6HHc1",tag:"Post_Resend_tag__LmcSD",title:"Post_Resend_title__N5rEq",text:"Post_Resend_text__PGQ11"}},99726:e=>{e.exports={"min-phone-only":'"(max-width: 420px)"',"phone-only":'"(max-width: 800px)"',"tablet-portrait-up":'"(max-width: 1200px)"',"tablet-landscape-up":'"(max-width: 1400px)"',"desktop-up":'"(min-width: 1401px)"',container:"Stories_container__M8ifU",figure:"Stories_figure__Qmlhs",plus:"Stories_plus__LllVl",name:"Stories_n
1ame__mZVOi",active:"Stories_active__oUhX_"}}}]);

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.