Build 543408stable
Module 457417
688 characters · in 1173fec62b6333de.jsDependencies
Source Raw
function(e,t,l){l.d(t,{E3:()=>o,KH:()=>c,Vw:()=>d,dJ:()=>i});var n=l(64700),s=l(870844),a=l(353640);let i="custom-themes-share-modal",r={searchText:"",selectedDestinations:[],message:{},messageText:"",channel:{},maxDestinations:5,send:async()=>{},sending:!1,canSend:()=>!1},o=()=>(0,s.y)()((e,t)=>({...r,canSend:()=>!t().sending&&t().selectedDestinations.length>0,updateSearchText:t=>e({searchText:t}),updateSelectShareDestinations:t=>e({selectedDestinations:t}),updateMessage:t=>e({message:t}),updateChannel:t=>e({channel:t}),updateSending:t=>e({sending:t}),updateMessageText:t=>e({messageText:t}),setSend:t=>e({send:t})})),c=(0,n.createContext)(null),d=()=>(0,a.P)((0,n.useContext)(c))}