Module 457417

688 characters · in 9f9da790c97a01be.js
Dependencies
Required by (2)
Lazily required by (0)none
Requires (3)
Lazily requires (0)none
Source Raw
function(e,t,n){n.d(t,{E3:()=>o,KH:()=>c,Vw:()=>u,dJ:()=>i});var l=n(64700),s=n(870844),a=n(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,l.createContext)(null),u=()=>(0,a.P)((0,l.useContext)(c))}