PageSourceSearch

https://leanpub.com/assets/description-CIZ8nWpB.js

js leanpub.com collected 2026-09-24 08:26:22 UTC 1,962 bytes, 5 lines download raw bytes

1
2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="de4b0f83-e2c6-5493-a8f2-a9be44bc0b4f")}catch(e){}}();
3import{r as o,W as d}from"./vendor-react-qLnyzkeB.js";import{Y as m,c as g,y as E,n as h,b as x,K as b}from"./use-sync-refs-BjU-iZ6Q.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};e.SENTRY_RELEASE={id:"13978386027a4a2683cfa43e79422df47742043f"}}catch{}})();let p=o.createContext(void 0);function w(){return o.useContext(p)}function $({value:e,children:t}){return d.createElement(p.Provider,{value:e},t)}let c=o.createContext(null);c.displayName="DescriptionContext";function f(){let e=o.useContext(c);if(e===null){let t=new Error("You used a <Description /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,f),t}return e}function D(){var e,t;return(t=(e=o.useContext(c))==null?void 0:e.value)!=null?t:void 0}function M(){let[e,t]=o.useState([]);return[e.length>0?e.join(" "):void 0,o.useMemo(()=>function(r){let a=g(s=>(t(n=>[...n,s]),()=>t(n=>{let i=n.slice(),u=i.indexOf(s);return u!==-1&&i.splice(u,1),i}))),l=o.useMemo(()=>({register:a,slot:r.slot,name:r.name,props:r.props,value:r.value}),[a,r.slot,r.name,r.props,r.value]);return d.createElement(c.Provider,{value:l},r.children)},[t])]}let y="p";function C(e,t){let r=o.useId(),a=w(),{id:l=`headlessui-description-${r}`,...s}=e,n=f(),i=E(t);h(()=>n.register(l),[l,n.register]);let u=x({...n.slot,disabled:a||!1}),v={ref:i,...n.props,id:l};return b()({ourProps:v,theirProps:s,slot:u,defaultTag:y,name:n.name||"Description"})}let T=m(C),Y=Object.assign(T,{});export{M as H,Y as M,w as a,$ as l,D as w};
4
5//# debugId=de4b0f83-e2c6-5493-a8f2-a9be44bc0b4f

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.