PageSourceSearch

https://sharethemeal.org/assets/Collapse-CCqyTvVl.js

js sharethemeal.org collected 2026-09-24 08:44:10 UTC 5,671 bytes, 1 lines download raw bytes

1import{R as y,t as M}from"./chunk-4N6VE7H7-Exqj4PTM.js";import{a,p as W,T as P,o as B,m as G,t as H,c as K,b as c}from"./utils-DIUWyMmR.js";import{k as X}from"./index-Cp7v22Jw.js";import{T as g}from"./Transition-DDGySKfU.js";function d(e){"@babel/helpers - typeof";return d=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},d(e)}var L=["tag","horizontal","isOpen","className","navbar","cssModule","children","innerRef"],l;function p(){return p=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},p.apply(this,arguments)}function $(e,t){if(e==null)return{};var o=q(e,t),n,r;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function q(e,t){if(e==null)return{};var o={},n=Object.keys(e),r,i;for(i=0;i<n.length;i++)r=n[i],!(t.indexOf(r)>=0)&&(o[r]=e[r]);return o}function A(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function F(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function J(e,t,o){return t&&F(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Q(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&b(e,t)}function b(e,t){return b=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},b(e,t)}function U(e){var t=Y();return function(){var n=h(e),r;if(t){var i=h(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return V(this,r)}}function V(e,t){if(t&&(d(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return j(e)}function j(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Y(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(o){return o.__proto__||Object.getPrototypeOf(o)},h(e)}function _(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),o.push.apply(o,n)}return o}function f(e){for(var t=1;t<arguments.length;t++){var o=arguments[t]!=null?arguments[t]:{};t%2?_(Object(o),!0).forEach(function(n){u(e,n,o[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):_(Object(o)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(o,n))})}return e}function u(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}var Z=f(f({},g.propTypes),{},{horizontal:a.bool,isOpen:a.bool,children:a.oneOfType([a.arrayOf(a.node),a.node]),tag:H,className:a.node,navbar:a.bool,cssModule:a.object,innerRef:a.shape({current:a.object})}),ee=f(f({},g.defaultProps),{},{horizontal:!1,isOpen:!1,appear:!1,enter:!0,exit:!0,tag:"div",timeout:K.Collapse}),te=(l={},u(l,c.ENTERING,"collapsing"),u(l,c.ENTERED,"collapse show"),u(l,c.EXITING,"collapsing"),u(l,c.EXITED,"collapse"),l);function ne(e){return te[e]||"collapse"}var T=(function(e){Q(o,e);var t=U(o);function o(n){var r;return A(this,o),r=t.call(this,n),r.state={dimension:null},r.nodeRef=n.innerRef||y.createRef(),["onEntering","onEntered","onExit","onExiting","onExited"].forEach(function(i){r[i]=r[i].bind(j(r))}),r}return J(o,[{key:"onEntering",value:function(r,i){var s=this.getNode();this.setState({dimension:this.getDimension(s)}),this.props.onEntering(s,i)}},{key:"onEntered",value:function(r,i){var s=this.getNode();this.setState({dimension:null}),this.props.onEntered(s,i)}},{key:"onExit",value:function(){var r=this.getNode();this.setState({dimension:this.getDimension(r)}),this.props.onExit(r)}},{key:"onExiting",value:function(){var r=this.getNode();this.getDimension(r),this.setState({dimension:0}),this.props.onExiting(r)}},{key:"onExited",value:function(){var r=this.getNode();this.setState({dimension:null}),this.props.onExited(r)}},{key:"getNode",value:function(){return this.nodeRef.current}},{key:"getDimension",value:function(r){return this.props.horizontal?r.scrollWidth:r.scrollHeight}},{key:"render",value:function(){var r=this,i=this.props,s=i.tag,v=i.horizontal,x=i.isOpen,w=i.className,R=i.navbar,S=i.cssModule,N=i.children;i.innerRef;var m=$(i,L),O=this.state.dimension,D=W(m,P),E=B(m,P);return y.createElement(g,p({},D,{in:x,nodeRef:this.nodeRef,onEntering:this.onEntering,onEntered:this.onEntered,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}),function(k){var z=ne(k),C=G(X(w,v&&"collapse-horizontal",z,R&&"navbar-collapse"),S),I=O===null?null:u({},v?"width":"height",O);return y.createElement(s,p({},E,{style:f(f({},E.style),I),className:C,ref:r.nodeRef}),N)})}}]),o})(M.Component);T.propTypes=Z;T.defaultProps=ee;export{T as C};

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.