import{j as e,m as t,A as n}from"./animations-a0c9H6Gi.js";import{r as o,b as r,a,g as i}from"./vendor-CZtH_kdS.js";import{p as l,R as s}from"./index-Re8qxHhK.js";import{u as c}from"./utils-D2rZEKS1.js";import{H as d,s as u}from"./index-DOhJNQpp.js";import{X as p}from"./ui-DDJIpv1b.js";import"./router-CXDad3l3.js";var f={exports:{}},h={},m={exports:{}},y={},v={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t){var n=[].slice.call(t.querySelectorAll("*"),0).reduce(function(t,n){return t.concat(n.shadowRoot?e(n.shadowRoot):[n])},[]);return n.filter(l)};
/*!
   * Adapted from jQuery UI core
   *
   * http://jqueryui.com
   *
   * Copyright 2014 jQuery Foundation and other contributors
   * Released under the MIT license.
   * http://jquery.org/license
   *
   * http://api.jqueryui.com/category/ui-core/
   */
var n="none",o="contents",r=/^(input|select|textarea|button|object|iframe)$/;function a(e){var t=e.offsetWidth<=0&&e.offsetHeight<=0;if(t&&!e.innerHTML)return!0;try{var r=window.getComputedStyle(e),a=r.getPropertyValue("display");return t?a!==o&&function(e,t){return"visible"!==t.getPropertyValue("overflow")||e.scrollWidth<=0&&e.scrollHeight<=0}(e,r):a===n}catch(i){return!1}}function i(e,t){var n=e.nodeName.toLowerCase();return(r.test(n)&&!e.disabled||"a"===n&&e.href||t)&&function(e){for(var t=e,n=e.getRootNode&&e.getRootNode();t&&t!==document.body;){if(n&&t===n&&(t=n.host.parentNode),a(t))return!1;t=t.parentNode}return!0}(e)}function l(e){var t=e.getAttribute("tabindex");null===t&&(t=void 0);var n=isNaN(t);return(n||t>=0)&&i(e,!n)}e.exports=t.default}(v,v.exports);var g=v.exports;Object.defineProperty(y,"__esModule",{value:!0}),y.resetState=function(){w=[]},y.log=function(){},y.handleBlur=O,y.handleFocus=N,y.markForFocusLater=function(){w.push(document.activeElement)},y.returnFocus=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];try{return void(0!==w.length&&w.pop().focus({preventScroll:e}))}catch(t){}},y.popWithoutFocus=function(){w.length>0&&w.pop()},y.setupScopedFocus=function(e){j=e,window.addEventListener?(window.addEventListener("blur",O,!1),document.addEventListener("focus",N,!0)):(window.attachEvent("onBlur",O),document.attachEvent("onFocus",N))},y.teardownScopedFocus=function(){j=null,window.addEventListener?(window.removeEventListener("blur",O),document.removeEventListener("focus",N)):(window.detachEvent("onBlur",O),document.detachEvent("onFocus",N))};var b,x=(b=g)&&b.__esModule?b:{default:b};var w=[],j=null,C=!1;function O(){C=!0}function N(){if(C){if(C=!1,!j)return;setTimeout(function(){j.contains(document.activeElement)||((0,x.default)(j)[0]||j).focus()},0)}}var k={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var r=(0,n.default)(e);if(!r.length)return void t.preventDefault();var a=void 0,i=t.shiftKey,l=r[0],s=r[r.length-1],c=o();if(e===c){if(!i)return;a=s}s!==c||i||(a=l);l===c&&i&&(a=s);if(a)return t.preventDefault(),void a.focus();var d=/(\bChrome\b|\bSafari\b)\//.exec(navigator.userAgent);if(null==d||"Chrome"==d[1]||null!=/\biPod\b|\biPad\b/g.exec(navigator.userAgent))return;var u=r.indexOf(c);u>-1&&(u+=i?-1:1);if(void 0===(a=r[u]))return t.preventDefault(),void(a=i?s:l).focus();t.preventDefault(),a.focus()};var n=function(e){return e&&e.__esModule?e:{default:e}}(g);function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;return e.activeElement.shadowRoot?o(e.activeElement.shadowRoot):e.activeElement}e.exports=t.default}(k,k.exports);var S,E,_,M=k.exports,A={},P=function(){},D={},T={exports:{}};
/*!
  Copyright (c) 2015 Jed Watson.
  Based on code that is Copyright 2013-2015, Facebook, Inc.
  All rights reserved.
*/
S=T,E=!("undefined"==typeof window||!window.document||!window.document.createElement),_={canUseDOM:E,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:E&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:E&&!!window.screen},S.exports?S.exports=_:window.ExecutionEnvironment=_;var R=T.exports;Object.defineProperty(D,"__esModule",{value:!0}),D.canUseDOM=D.SafeNodeList=D.SafeHTMLCollection=void 0;var L=function(e){return e&&e.__esModule?e:{default:e}}(R);var F=L.default,U=F.canUseDOM?window.HTMLElement:{};D.SafeHTMLCollection=F.canUseDOM?window.HTMLCollection:{},D.SafeNodeList=F.canUseDOM?window.NodeList:{},D.canUseDOM=F.canUseDOM,D.default=U,Object.defineProperty(A,"__esModule",{value:!0}),A.resetState=function(){I&&(I.removeAttribute?I.removeAttribute("aria-hidden"):null!=I.length?I.forEach(function(e){return e.removeAttribute("aria-hidden")}):document.querySelectorAll(I).forEach(function(e){return e.removeAttribute("aria-hidden")}));I=null},A.log=function(){},A.assertNodeList=B,A.setElement=function(e){var t=e;if("string"==typeof t&&W.canUseDOM){var n=document.querySelectorAll(t);B(n,t),t=n}return I=t||I},A.validateElement=q,A.hide=function(e){var t=!0,n=!1,o=void 0;try{for(var r,a=q(e)[Symbol.iterator]();!(t=(r=a.next()).done);t=!0){r.value.setAttribute("aria-hidden","true")}}catch(i){n=!0,o=i}finally{try{!t&&a.return&&a.return()}finally{if(n)throw o}}},A.show=function(e){var t=!0,n=!1,o=void 0;try{for(var r,a=q(e)[Symbol.iterator]();!(t=(r=a.next()).done);t=!0){r.value.removeAttribute("aria-hidden")}}catch(i){n=!0,o=i}finally{try{!t&&a.return&&a.return()}finally{if(n)throw o}}},A.documentNotReadyOrSSRTesting=function(){I=null};var H=function(e){return e&&e.__esModule?e:{default:e}}(P),W=D;var I=null;function B(e,t){if(!e||!e.length)throw new Error("react-modal: No elements were found for selector "+t+".")}function q(e){var t=e||I;return t?Array.isArray(t)||t instanceof HTMLCollection||t instanceof NodeList?t:[t]:((0,H.default)(!1,["react-modal: App element is not defined.","Please use `Modal.setAppElement(el)` or set `appElement={el}`.","This is needed so screen readers don't see main content","when modal is opened. It is not recommended, but you can opt-out","by setting `ariaHideApp={false}`."].join(" ")),[])}var z={};Object.defineProperty(z,"__esModule",{value:!0}),z.resetState=function(){var e=document.getElementsByTagName("html")[0];for(var t in V)K(e,V[t]);var n=document.body;for(var o in $)K(n,$[o]);V={},$={}},z.log=function(){};var V={},$={};function K(e,t){e.classList.remove(t)}z.add=function(e,t){return n=e.classList,o="html"==e.nodeName.toLowerCase()?V:$,void t.split(" ").forEach(function(e){!function(e,t){e[t]||(e[t]=0),e[t]+=1}(o,e),n.add(e)});var n,o},z.remove=function(e,t){return n=e.classList,o="html"==e.nodeName.toLowerCase()?V:$,void t.split(" ").forEach(function(e){!function(e,t){e[t]&&(e[t]-=1)}(o,e),0===o[e]&&n.remove(e)});var n,o};var Z={};Object.defineProperty(Z,"__esModule",{value:!0}),Z.log=function(){Y.openInstances.forEach(function(e){})},Z.resetState=function(){Y=new G};var G=function e(){var t=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.register=function(e){-1===t.openInstances.indexOf(e)&&(t.openInstances.push(e),t.emit("register"))},this.deregister=function(e){var n=t.openInstances.indexOf(e);-1!==n&&(t.openInstances.splice(n,1),t.emit("deregister"))},this.subscribe=function(e){t.subscribers.push(e)},this.emit=function(e){t.subscribers.forEach(function(n){return n(e,t.openInstances.slice())})},this.openInstances=[],this.subscribers=[]},Y=new G;Z.default=Y;var J={};Object.defineProperty(J,"__esModule",{value:!0}),J.resetState=function(){for(var e=[X,ee],t=0;t<e.length;t++){var n=e[t];n&&(n.parentNode&&n.parentNode.removeChild(n))}X=ee=null,te=[]},J.log=function(){for(var e=[X,ee],t=0;t<e.length;t++);};var Q=function(e){return e&&e.__esModule?e:{default:e}}(Z);var X=void 0,ee=void 0,te=[];function ne(){0!==te.length&&te[te.length-1].focusContent()}Q.default.subscribe(function(e,t){X||ee||((X=document.createElement("div")).setAttribute("data-react-modal-body-trap",""),X.style.position="absolute",X.style.opacity="0",X.setAttribute("tabindex","0"),X.addEventListener("focus",ne),(ee=X.cloneNode()).addEventListener("focus",ne)),(te=t).length>0?(document.body.firstChild!==X&&document.body.insertBefore(X,document.body.firstChild),document.body.lastChild!==ee&&document.body.appendChild(ee)):(X.parentElement&&X.parentElement.removeChild(X),ee.parentElement&&ee.parentElement.removeChild(ee))}),function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),i=o,s=g(l),c=v(y),d=g(M),u=v(A),p=v(z),f=D,h=g(f),m=g(Z);function v(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function g(e){return e&&e.__esModule?e:{default:e}}var b={overlay:"ReactModal__Overlay",content:"ReactModal__Content"},x=0,w=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.setOverlayRef=function(e){n.overlay=e,n.props.overlayRef&&n.props.overlayRef(e)},n.setContentRef=function(e){n.content=e,n.props.contentRef&&n.props.contentRef(e)},n.afterClose=function(){var e=n.props,t=e.appElement,o=e.ariaHideApp,r=e.htmlOpenClassName,a=e.bodyOpenClassName,i=e.parentSelector,l=i&&i().ownerDocument||document;a&&p.remove(l.body,a),r&&p.remove(l.getElementsByTagName("html")[0],r),o&&x>0&&0===(x-=1)&&u.show(t),n.props.shouldFocusAfterRender&&(n.props.shouldReturnFocusAfterClose?(c.returnFocus(n.props.preventScroll),c.teardownScopedFocus()):c.popWithoutFocus()),n.props.onAfterClose&&n.props.onAfterClose(),m.default.deregister(n)},n.open=function(){n.beforeOpen(),n.state.afterOpen&&n.state.beforeClose?(clearTimeout(n.closeTimer),n.setState({beforeClose:!1})):(n.props.shouldFocusAfterRender&&(c.setupScopedFocus(n.node),c.markForFocusLater()),n.setState({isOpen:!0},function(){n.openAnimationFrame=requestAnimationFrame(function(){n.setState({afterOpen:!0}),n.props.isOpen&&n.props.onAfterOpen&&n.props.onAfterOpen({overlayEl:n.overlay,contentEl:n.content})})}))},n.close=function(){n.props.closeTimeoutMS>0?n.closeWithTimeout():n.closeWithoutTimeout()},n.focusContent=function(){return n.content&&!n.contentHasFocus()&&n.content.focus({preventScroll:!0})},n.closeWithTimeout=function(){var e=Date.now()+n.props.closeTimeoutMS;n.setState({beforeClose:!0,closesAt:e},function(){n.closeTimer=setTimeout(n.closeWithoutTimeout,n.state.closesAt-Date.now())})},n.closeWithoutTimeout=function(){n.setState({beforeClose:!1,isOpen:!1,afterOpen:!1,closesAt:null},n.afterClose)},n.handleKeyDown=function(e){(function(e){return"Tab"===e.code||9===e.keyCode})(e)&&(0,d.default)(n.content,e),n.props.shouldCloseOnEsc&&function(e){return"Escape"===e.code||27===e.keyCode}(e)&&(e.stopPropagation(),n.requestClose(e))},n.handleOverlayOnClick=function(e){null===n.shouldClose&&(n.shouldClose=!0),n.shouldClose&&n.props.shouldCloseOnOverlayClick&&(n.ownerHandlesClose()?n.requestClose(e):n.focusContent()),n.shouldClose=null},n.handleContentOnMouseUp=function(){n.shouldClose=!1},n.handleOverlayOnMouseDown=function(e){n.props.shouldCloseOnOverlayClick||e.target!=n.overlay||e.preventDefault()},n.handleContentOnClick=function(){n.shouldClose=!1},n.handleContentOnMouseDown=function(){n.shouldClose=!1},n.requestClose=function(e){return n.ownerHandlesClose()&&n.props.onRequestClose(e)},n.ownerHandlesClose=function(){return n.props.onRequestClose},n.shouldBeClosed=function(){return!n.state.isOpen&&!n.state.beforeClose},n.contentHasFocus=function(){return document.activeElement===n.content||n.content.contains(document.activeElement)},n.buildClassName=function(e,t){var o="object"===(void 0===t?"undefined":r(t))?t:{base:b[e],afterOpen:b[e]+"--after-open",beforeClose:b[e]+"--before-close"},a=o.base;return n.state.afterOpen&&(a=a+" "+o.afterOpen),n.state.beforeClose&&(a=a+" "+o.beforeClose),"string"==typeof t&&t?a+" "+t:a},n.attributesFromObject=function(e,t){return Object.keys(t).reduce(function(n,o){return n[e+"-"+o]=t[o],n},{})},n.state={afterOpen:!1,beforeClose:!1},n.shouldClose=null,n.moveFromContentToOverlay=null,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),a(t,[{key:"componentDidMount",value:function(){this.props.isOpen&&this.open()}},{key:"componentDidUpdate",value:function(e,t){this.props.isOpen&&!e.isOpen?this.open():!this.props.isOpen&&e.isOpen&&this.close(),this.props.shouldFocusAfterRender&&this.state.isOpen&&!t.isOpen&&this.focusContent()}},{key:"componentWillUnmount",value:function(){this.state.isOpen&&this.afterClose(),clearTimeout(this.closeTimer),cancelAnimationFrame(this.openAnimationFrame)}},{key:"beforeOpen",value:function(){var e=this.props,t=e.appElement,n=e.ariaHideApp,o=e.htmlOpenClassName,r=e.bodyOpenClassName,a=e.parentSelector,i=a&&a().ownerDocument||document;r&&p.add(i.body,r),o&&p.add(i.getElementsByTagName("html")[0],o),n&&(x+=1,u.hide(t)),m.default.register(this)}},{key:"render",value:function(){var e=this.props,t=e.id,o=e.className,r=e.overlayClassName,a=e.defaultStyles,i=e.children,l=o?{}:a.content,s=r?{}:a.overlay;if(this.shouldBeClosed())return null;var c={ref:this.setOverlayRef,className:this.buildClassName("overlay",r),style:n({},s,this.props.style.overlay),onClick:this.handleOverlayOnClick,onMouseDown:this.handleOverlayOnMouseDown},d=n({id:t,ref:this.setContentRef,style:n({},l,this.props.style.content),className:this.buildClassName("content",o),tabIndex:"-1",onKeyDown:this.handleKeyDown,onMouseDown:this.handleContentOnMouseDown,onMouseUp:this.handleContentOnMouseUp,onClick:this.handleContentOnClick,role:this.props.role,"aria-label":this.props.contentLabel},this.attributesFromObject("aria",n({modal:!0},this.props.aria)),this.attributesFromObject("data",this.props.data||{}),{"data-testid":this.props.testId}),u=this.props.contentElement(d,i);return this.props.overlayElement(c,u)}}]),t}(i.Component);w.defaultProps={style:{overlay:{},content:{}},defaultStyles:{}},w.propTypes={isOpen:s.default.bool.isRequired,defaultStyles:s.default.shape({content:s.default.object,overlay:s.default.object}),style:s.default.shape({content:s.default.object,overlay:s.default.object}),className:s.default.oneOfType([s.default.string,s.default.object]),overlayClassName:s.default.oneOfType([s.default.string,s.default.object]),parentSelector:s.default.func,bodyOpenClassName:s.default.string,htmlOpenClassName:s.default.string,ariaHideApp:s.default.bool,appElement:s.default.oneOfType([s.default.instanceOf(h.default),s.default.instanceOf(f.SafeHTMLCollection),s.default.instanceOf(f.SafeNodeList),s.default.arrayOf(s.default.instanceOf(h.default))]),onAfterOpen:s.default.func,onAfterClose:s.default.func,onRequestClose:s.default.func,closeTimeoutMS:s.default.number,shouldFocusAfterRender:s.default.bool,shouldCloseOnOverlayClick:s.default.bool,shouldReturnFocusAfterClose:s.default.bool,preventScroll:s.default.bool,role:s.default.string,contentLabel:s.default.string,aria:s.default.object,data:s.default.object,children:s.default.node,shouldCloseOnEsc:s.default.bool,overlayRef:s.default.func,contentRef:s.default.func,id:s.default.string,overlayElement:s.default.func,contentElement:s.default.func,testId:s.default.string},t.default=w,e.exports=t.default}(m,m.exports);var oe=m.exports;function re(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!=e&&this.setState(e)}function ae(e){this.setState(function(t){var n=this.constructor.getDerivedStateFromProps(e,t);return null!=n?n:null}.bind(this))}function ie(e,t){try{var n=this.props,o=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,o)}finally{this.props=n,this.state=o}}re.__suppressDeprecationWarning=!0,ae.__suppressDeprecationWarning=!0,ie.__suppressDeprecationWarning=!0;const le=r(Object.freeze(Object.defineProperty({__proto__:null,polyfill:function(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");if("function"!=typeof e.getDerivedStateFromProps&&"function"!=typeof t.getSnapshotBeforeUpdate)return e;var n=null,o=null,r=null;if("function"==typeof t.componentWillMount?n="componentWillMount":"function"==typeof t.UNSAFE_componentWillMount&&(n="UNSAFE_componentWillMount"),"function"==typeof t.componentWillReceiveProps?o="componentWillReceiveProps":"function"==typeof t.UNSAFE_componentWillReceiveProps&&(o="UNSAFE_componentWillReceiveProps"),"function"==typeof t.componentWillUpdate?r="componentWillUpdate":"function"==typeof t.UNSAFE_componentWillUpdate&&(r="UNSAFE_componentWillUpdate"),null!==n||null!==o||null!==r){var a=e.displayName||e.name,i="function"==typeof e.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+a+" uses "+i+" but also contains the following legacy lifecycles:"+(null!==n?"\n  "+n:"")+(null!==o?"\n  "+o:"")+(null!==r?"\n  "+r:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks")}if("function"==typeof e.getDerivedStateFromProps&&(t.componentWillMount=re,t.componentWillReceiveProps=ae),"function"==typeof t.getSnapshotBeforeUpdate){if("function"!=typeof t.componentDidUpdate)throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=ie;var l=t.componentDidUpdate;t.componentDidUpdate=function(e,t,n){var o=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:n;l.call(this,e,t,o)}}return e}},Symbol.toStringTag,{value:"Module"})));Object.defineProperty(h,"__esModule",{value:!0}),h.bodyOpenClassName=h.portalClassName=void 0;var se=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},ce=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),de=o,ue=be(de),pe=be(a),fe=be(l),he=be(oe),me=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(A),ye=D,ve=be(ye),ge=le;function be(e){return e&&e.__esModule?e:{default:e}}function xe(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var we=h.portalClassName="ReactModalPortal",je=h.bodyOpenClassName="ReactModal__Body--open",Ce=ye.canUseDOM&&void 0!==pe.default.createPortal,Oe=function(e){return document.createElement(e)},Ne=function(){return Ce?pe.default.createPortal:pe.default.unstable_renderSubtreeIntoContainer};function ke(e){return e()}var Se=function(){function e(){var t,n,o;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);for(var r=arguments.length,a=Array(r),i=0;i<r;i++)a[i]=arguments[i];return n=o=xe(this,(t=e.__proto__||Object.getPrototypeOf(e)).call.apply(t,[this].concat(a))),o.removePortal=function(){!Ce&&pe.default.unmountComponentAtNode(o.node);var e=ke(o.props.parentSelector);e&&e.contains(o.node)&&e.removeChild(o.node)},o.portalRef=function(e){o.portal=e},o.renderPortal=function(t){var n=Ne()(o,ue.default.createElement(he.default,se({defaultStyles:e.defaultStyles},t)),o.node);o.portalRef(n)},xe(o,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(e,de.Component),ce(e,[{key:"componentDidMount",value:function(){ye.canUseDOM&&(Ce||(this.node=Oe("div")),this.node.className=this.props.portalClassName,ke(this.props.parentSelector).appendChild(this.node),!Ce&&this.renderPortal(this.props))}},{key:"getSnapshotBeforeUpdate",value:function(e){return{prevParent:ke(e.parentSelector),nextParent:ke(this.props.parentSelector)}}},{key:"componentDidUpdate",value:function(e,t,n){if(ye.canUseDOM){var o=this.props,r=o.isOpen,a=o.portalClassName;e.portalClassName!==a&&(this.node.className=a);var i=n.prevParent,l=n.nextParent;l!==i&&(i.removeChild(this.node),l.appendChild(this.node)),(e.isOpen||r)&&!Ce&&this.renderPortal(this.props)}}},{key:"componentWillUnmount",value:function(){if(ye.canUseDOM&&this.node&&this.portal){var e=this.portal.state,t=Date.now(),n=e.isOpen&&this.props.closeTimeoutMS&&(e.closesAt||t+this.props.closeTimeoutMS);n?(e.beforeClose||this.portal.closeWithTimeout(),setTimeout(this.removePortal,n-t)):this.removePortal()}}},{key:"render",value:function(){return ye.canUseDOM&&Ce?(!this.node&&Ce&&(this.node=Oe("div")),Ne()(ue.default.createElement(he.default,se({ref:this.portalRef,defaultStyles:e.defaultStyles},this.props)),this.node)):null}}],[{key:"setAppElement",value:function(e){me.setElement(e)}}]),e}();Se.propTypes={isOpen:fe.default.bool.isRequired,style:fe.default.shape({content:fe.default.object,overlay:fe.default.object}),portalClassName:fe.default.string,bodyOpenClassName:fe.default.string,htmlOpenClassName:fe.default.string,className:fe.default.oneOfType([fe.default.string,fe.default.shape({base:fe.default.string.isRequired,afterOpen:fe.default.string.isRequired,beforeClose:fe.default.string.isRequired})]),overlayClassName:fe.default.oneOfType([fe.default.string,fe.default.shape({base:fe.default.string.isRequired,afterOpen:fe.default.string.isRequired,beforeClose:fe.default.string.isRequired})]),appElement:fe.default.oneOfType([fe.default.instanceOf(ve.default),fe.default.instanceOf(ye.SafeHTMLCollection),fe.default.instanceOf(ye.SafeNodeList),fe.default.arrayOf(fe.default.instanceOf(ve.default))]),onAfterOpen:fe.default.func,onRequestClose:fe.default.func,closeTimeoutMS:fe.default.number,ariaHideApp:fe.default.bool,shouldFocusAfterRender:fe.default.bool,shouldCloseOnOverlayClick:fe.default.bool,shouldReturnFocusAfterClose:fe.default.bool,preventScroll:fe.default.bool,parentSelector:fe.default.func,aria:fe.default.object,data:fe.default.object,role:fe.default.string,contentLabel:fe.default.string,shouldCloseOnEsc:fe.default.bool,overlayRef:fe.default.func,contentRef:fe.default.func,id:fe.default.string,overlayElement:fe.default.func,contentElement:fe.default.func},Se.defaultProps={isOpen:!1,portalClassName:we,bodyOpenClassName:je,role:"dialog",ariaHideApp:!0,closeTimeoutMS:0,shouldFocusAfterRender:!0,shouldCloseOnEsc:!0,shouldCloseOnOverlayClick:!0,shouldReturnFocusAfterClose:!0,preventScroll:!1,parentSelector:function(){return document.body},overlayElement:function(e,t){return ue.default.createElement("div",e,t)},contentElement:function(e,t){return ue.default.createElement("div",e,t)}},Se.defaultStyles={overlay:{position:"fixed",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(255, 255, 255, 0.75)"},content:{position:"absolute",top:"40px",left:"40px",right:"40px",bottom:"40px",border:"1px solid #ccc",background:"#fff",overflow:"auto",WebkitOverflowScrolling:"touch",borderRadius:"4px",outline:"none",padding:"20px"}},(0,ge.polyfill)(Se),h.default=Se,function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=function(e){return e&&e.__esModule?e:{default:e}}(h);t.default=n.default,e.exports=t.default}(f,f.exports);i(f.exports).setAppElement("#root");const Ee=()=>{const[r,a]=o.useState("all"),[i,l]=o.useState(null),[f,h]=o.useState(6),[m,y]=o.useState([]),[v,g]=o.useState(!0),[b,x]=o.useState(null),[w]=c({threshold:.1,triggerOnce:!0}),[j,C]=o.useState(null);o.useEffect(()=>{let e=!1;return(async()=>{g(!0),x(null);const{data:t,error:n}=await u.from("projects").select("*").order("created_at",{ascending:!1});if(e)return;if(n)return y([]),x(n.message),void g(!1);const o=(t??[]).map(e=>{const t=(e=>{const t=e.toLowerCase().trim();return t.includes("animation")?"animation":t.includes("video")?"video":t.includes("voice")?"voice":t.includes("design")?"design":"other"})(e.category??"other"),n="video"===e.type?"video":"image",o=(e.image_url??"").trim(),r=(e.video_url??"").trim(),a=o||("video"===n&&r?(()=>{const e=function(e){try{const t=new URL(e);if(t.hostname.includes("youtu.be"))return t.pathname.replace("/","")||null;if(t.searchParams.get("v"))return t.searchParams.get("v");const n=t.pathname.split("/").filter(Boolean),o=n.indexOf("embed");return o>=0&&n[o+1]?n[o+1]:null}catch{return null}}(r);return e?`https://img.youtube.com/vi/${e}/hqdefault.jpg`:""})():"");return{id:e.id,title:(e.title??"").trim()||"Untitled Project",category:t,description:(e.description??"").trim()||"—",type:n,image:a||"/assets/thumbnail/shade3 copy.jpg",video:"video"===n&&r||void 0,link:e.external_link??void 0,tags:e.tags??void 0}}).filter(e=>Boolean(e.title)&&Boolean(e.image));y(o),g(!1)})(),()=>{e=!0}},[]);const O=[{id:"all",label:"All Projects"},{id:"animation",label:"2D Animation"},{id:"video",label:"Video Production"},{id:"voice",label:"Voice & Localization"},{id:"design",label:"Design"}],N=m,k={animation:1,video:2,voice:3,design:4,other:5},S="all"===r?[...N].sort((e,t)=>{const n=k[e.category]-k[t.category];return 0!==n?n:Number(t.id)-Number(e.id)}):N.filter(e=>e.category===r),E=S.slice(0,f),_=f<S.length;o.useEffect(()=>{h(6)},[r]);const M=S.filter(e=>"design"===e.category),A=()=>{l(null)};return o.useEffect(()=>{const e=e=>{"Escape"===e.key&&(null!==j&&C(null),i&&l(null))};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[j,i]),o.useEffect(()=>(document.body.style.overflow=null!==j||i?"hidden":"",()=>{document.body.style.overflow=""}),[j,i]),o.useEffect(()=>{try{if(!Array.isArray(O)||!Array.isArray(m))throw new Error("Projects or categories array is not defined correctly")}catch(e){}},[]),e.jsxs(e.Fragment,{children:[e.jsxs(d,{children:[e.jsx("title",{children:"Projects | Colour Wave Creations"}),e.jsx("meta",{name:"description",content:"Explore our portfolio of animation, video, and multimedia projects."})]}),e.jsxs("section",{id:"portfolio",ref:w,className:"py-16 md:py-24 lg:py-32 bg-white dark:bg-gray-900 overflow-hidden",children:[e.jsxs("div",{className:"container mx-auto px-4 sm:px-6 lg:px-8",children:[v&&e.jsx("div",{className:"text-center py-10",children:e.jsx("p",{className:"text-gray-500 dark:text-gray-400",children:"Loading projects…"})}),!v&&b&&e.jsxs("div",{className:"text-center py-6",children:[e.jsxs("p",{className:"text-red-600 dark:text-red-400 font-medium",children:["Couldn’t load projects from Supabase: ",b]}),e.jsx("p",{className:"text-gray-500 dark:text-gray-400 text-sm mt-2",children:"Showing the built-in portfolio as a fallback."})]}),e.jsx("div",{className:"flex flex-wrap gap-3 justify-center mb-8",children:O.map(t=>e.jsx("button",{onClick:()=>a(t.id),className:`px-5 py-2 rounded-full font-semibold border transition-colors duration-200 text-sm\n                  ${r===t.id?"bg-green-500 text-white border-green-500 shadow-lg":"bg-white dark:bg-gray-800 text-gray-800 dark:text-gray-200 border-gray-300 dark:border-gray-700 hover:bg-green-50 dark:hover:bg-gray-700"}\n                `,style:{minWidth:120},children:t.label},t.id))}),e.jsx(t.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.4,ease:[.22,1,.36,1]},className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8 min-h-[400px]",children:"design"===r?M.length>0?M.map((n,o)=>e.jsxs(t.div,{initial:{opacity:0,y:30},animate:{opacity:1,y:0},exit:{opacity:0,scale:.9},transition:{delay:.05*o,duration:.6,ease:[.22,1,.36,1]},whileHover:{scale:1.03,y:-8},className:"w-full h-full flex items-center justify-center bg-transparent rounded-2xl shadow-lg relative",style:{minHeight:320},children:[e.jsx(t.img,{src:n.image,alt:n.title,loading:"lazy",className:"object-contain w-full h-full max-h-80 select-none rounded-2xl shadow-md",draggable:"false",onClick:()=>C(o),style:{cursor:"pointer"},whileTap:{scale:.98},transition:{type:"spring",stiffness:400,damping:17}}),e.jsx(t.div,{className:"absolute inset-0 flex items-center justify-center opacity-0 hover:opacity-100 transition-opacity duration-300",initial:{opacity:0},whileHover:{opacity:1},children:e.jsx(t.span,{className:"px-4 py-2 rounded-full bg-green-500 text-white text-sm font-semibold shadow-lg",initial:{scale:.8},whileHover:{scale:1.1},transition:{type:"spring",stiffness:400},children:"View"})}),e.jsx("div",{className:"absolute inset-0 z-10",style:{pointerEvents:"all",background:"transparent",cursor:"pointer"},onContextMenu:e=>e.preventDefault(),onMouseDown:e=>e.preventDefault(),onDragStart:e=>e.preventDefault(),onClick:()=>C(o)})]},n.id)):e.jsx("div",{className:"col-span-full text-center py-12",children:e.jsx("p",{className:"text-gray-500 dark:text-gray-400",children:"No design projects found."})}):E.length>0?E.map((n,o)=>e.jsxs(t.div,{initial:{opacity:0,y:30},animate:{opacity:1,y:0},exit:{opacity:0,scale:.9},transition:{delay:.05*o,duration:.6,ease:[.22,1,.36,1]},whileHover:{scale:1.03,y:-8},whileTap:{scale:.97},className:"group h-full rounded-2xl shadow-lg bg-white dark:bg-gray-800",onClick:()=>{if("design"===n.category){const e=M.findIndex(e=>e.id===n.id);C(e>=0?e:0)}else l(n)},style:{cursor:"pointer"},children:[e.jsxs("div",{className:"w-full rounded-t-2xl overflow-hidden relative select-none "+("design"===n.category?"bg-gray-100 dark:bg-gray-900":""),children:[e.jsx("img",{src:n.image,alt:n.title,loading:"lazy",referrerPolicy:"no-referrer",width:"100%",height:"100%",className:("design"===n.category?"object-contain":"object-cover")+" w-full h-56",draggable:"false",decoding:"async",onError:e=>{e.currentTarget.src="/assets/thumbnail/shade3 copy.jpg"}}),"video"===n.type&&e.jsx("div",{className:"absolute inset-0 flex items-center justify-center",style:{pointerEvents:"none"},children:e.jsx("span",{className:"opacity-0 group-hover:opacity-100 transition-opacity duration-300",style:{pointerEvents:"none"},children:e.jsx("span",{className:"flex items-center justify-center w-16 h-16 bg-green-500 bg-opacity-90 rounded-full shadow-lg",children:e.jsx("svg",{width:"36",height:"36",viewBox:"0 0 24 24",fill:"none",stroke:"white",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:e.jsx("polygon",{points:"9.5,7.5 18,12 9.5,16.5"})})})})}),e.jsx("div",{className:"absolute inset-0 flex items-end justify-end p-3 pointer-events-none",children:e.jsx("span",{className:"opacity-0 group-hover:opacity-100 transition-opacity duration-200 px-2 py-1 rounded-md bg-yellow-500 text-gray-900 text-xs font-semibold shadow",children:"View"})})]}),e.jsxs("div",{className:"p-6 flex-grow",children:[e.jsx("div",{className:"mb-3",children:e.jsx("span",{className:`text-xs font-medium py-1 px-2 rounded-full uppercase \n                          ${"animation"===n.category?"bg-green-100 dark:bg-green-900/40 text-green-800 dark:text-green-300":""}\n                          ${"video"===n.category?"bg-blue-100 dark:bg-blue-900/40 text-blue-800 dark:text-blue-300":""}\n                          ${"voice"===n.category?"bg-purple-100 dark:bg-purple-900/40 text-purple-800 dark:text-purple-300":""}\n                          ${"design"===n.category?"bg-yellow-100 dark:bg-yellow-900/40 text-yellow-800 dark:text-yellow-300":""}\n                        `,children:"animation"===n.category?"2D ANIMATION":"video"===n.category?"VIDEO PRODUCTION":"voice"===n.category?"VOICE & LOCALIZATION":"design"===n.category?"DESIGN":n.category.toUpperCase()})}),e.jsx("h3",{className:"text-lg font-semibold text-gray-900 dark:text-white mb-2 line-clamp-2",children:n.title}),e.jsx("p",{className:"text-gray-700 dark:text-gray-200 text-sm line-clamp-3",children:n.description})]})]},n.id)):e.jsx("div",{className:"col-span-full text-center py-12",children:e.jsx("p",{className:"text-gray-500 dark:text-gray-400",children:"No projects found for this category."})})},r),_&&e.jsx(t.div,{layout:!0,initial:{opacity:0,y:20},animate:{opacity:1,y:0},exit:{opacity:0},className:"mt-12 flex justify-center",children:e.jsxs("button",{onClick:()=>{h(S.length)},className:"group relative inline-flex items-center justify-center px-10 py-4 font-bold text-white transition-all duration-300 bg-green-500 rounded-full hover:bg-green-600 shadow-xl hover:shadow-2xl active:scale-95 overflow-hidden",children:[e.jsx("div",{className:"absolute inset-0 flex items-center justify-center w-full h-full text-white duration-300 -translate-x-full bg-green-600 group-hover:translate-x-0 ease-[0.22, 1, 0.36, 1]",children:e.jsx("svg",{className:"w-6 h-6 animate-bounce",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2.5",d:"M19 9l-7 7-7-7"})})}),e.jsx("span",{className:"absolute flex items-center justify-center w-full h-full text-white transition-all duration-300 transform group-hover:translate-x-full ease-[0.22, 1, 0.36, 1]",children:"Show All Projects"}),e.jsx("span",{className:"relative invisible",children:"Show All Projects"})]})})]}),e.jsx(n,{children:null!==j&&e.jsxs(e.Fragment,{children:[e.jsx(t.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.3,ease:[.4,0,.2,1]},className:"fixed inset-0 bg-black/80 backdrop-blur-sm z-[999]",onClick:()=>C(null)}),e.jsx(t.div,{initial:{opacity:0,scale:.9,y:20},animate:{opacity:1,scale:1,y:0},exit:{opacity:0,scale:.9,y:20},transition:{duration:.4,ease:[.4,0,.2,1],type:"spring",stiffness:300,damping:30},className:"fixed inset-0 z-[1000] flex items-center justify-center p-4 pointer-events-none",onClick:()=>C(null),children:e.jsxs("div",{className:"relative bg-white dark:bg-gray-800 rounded-2xl w-full h-full max-w-6xl max-h-[90vh] mx-auto flex items-center justify-center p-4 shadow-2xl pointer-events-auto",style:{minHeight:400},onClick:e=>e.stopPropagation(),children:[e.jsx(n,{mode:"wait",children:e.jsx(t.img,{initial:{opacity:0,scale:.95,x:20},animate:{opacity:1,scale:1,x:0},exit:{opacity:0,scale:.95,x:-20},transition:{duration:.3,ease:[.4,0,.2,1]},src:M[j].image.replace("/public",""),alt:M[j].title,loading:"lazy",className:"object-contain w-full h-full max-h-[80vh] max-w-full mx-auto select-none",draggable:"false",style:{display:"block",margin:"0 auto"}},j)}),e.jsx("div",{className:"absolute inset-0 z-10",style:{pointerEvents:"all",background:"transparent"},onContextMenu:e=>e.preventDefault(),onMouseDown:e=>e.preventDefault(),onDragStart:e=>e.preventDefault()}),M.length>1&&e.jsxs(e.Fragment,{children:[e.jsx(t.button,{initial:{opacity:0,x:-20},animate:{opacity:1,x:0},transition:{delay:.2},whileHover:{scale:1.1,x:-5},whileTap:{scale:.95},className:"absolute left-4 md:left-8 top-1/2 -translate-y-1/2 bg-white/90 dark:bg-gray-800/90 backdrop-blur-sm rounded-full p-3 shadow-lg hover:bg-green-500 hover:text-white transition-all z-30",style:{pointerEvents:"auto"},onClick:e=>{e.stopPropagation(),C((j-1+M.length)%M.length)},"aria-label":"Previous design",children:e.jsx("svg",{width:"24",height:"24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",viewBox:"0 0 24 24",children:e.jsx("polyline",{points:"15 18 9 12 15 6"})})}),e.jsx(t.button,{initial:{opacity:0,x:20},animate:{opacity:1,x:0},transition:{delay:.2},whileHover:{scale:1.1,x:5},whileTap:{scale:.95},className:"absolute right-4 md:right-8 top-1/2 -translate-y-1/2 bg-white/90 dark:bg-gray-800/90 backdrop-blur-sm rounded-full p-3 shadow-lg hover:bg-green-500 hover:text-white transition-all z-30",style:{pointerEvents:"auto"},onClick:e=>{e.stopPropagation(),C((j+1)%M.length)},"aria-label":"Next design",children:e.jsx("svg",{width:"24",height:"24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",viewBox:"0 0 24 24",children:e.jsx("polyline",{points:"9 18 15 12 9 6"})})})]}),e.jsx(t.button,{initial:{opacity:0,scale:.8},animate:{opacity:1,scale:1},transition:{delay:.1},whileHover:{scale:1.1,rotate:90},whileTap:{scale:.9},onClick:()=>C(null),className:"absolute top-4 right-4 z-40 p-2 rounded-full bg-gray-100/90 dark:bg-gray-700/90 backdrop-blur-sm text-gray-800 dark:text-white hover:bg-red-500 hover:text-white transition-all shadow-lg","aria-label":"Close modal",children:e.jsx(p,{size:24})})]})})]})}),e.jsx(n,{children:i&&"video"===i.type&&e.jsxs(e.Fragment,{children:[e.jsx(t.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.3,ease:[.4,0,.2,1]},className:"fixed inset-0 bg-black/80 backdrop-blur-sm z-[999]",onClick:A}),e.jsx(t.div,{initial:{opacity:0,scale:.9,y:20},animate:{opacity:1,scale:1,y:0},exit:{opacity:0,scale:.9,y:20},transition:{duration:.4,ease:[.4,0,.2,1],type:"spring",stiffness:300,damping:30},className:"fixed inset-0 z-[1000] flex items-center justify-center p-4 pointer-events-none",onClick:A,children:e.jsxs(t.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{delay:.1},className:"relative bg-white dark:bg-gray-800 rounded-2xl w-full max-w-5xl mx-auto flex flex-col shadow-2xl pointer-events-auto overflow-hidden",style:{maxHeight:"90vh"},onClick:e=>e.stopPropagation(),children:[e.jsxs("div",{className:"flex items-center justify-between p-4 md:p-6 border-b border-gray-200 dark:border-gray-700 bg-gradient-to-r from-gray-50 to-white dark:from-gray-800 dark:to-gray-900",children:[e.jsxs("div",{className:"flex-1 min-w-0 pr-4",children:[e.jsx(t.h3,{initial:{opacity:0,x:-10},animate:{opacity:1,x:0},transition:{delay:.2},className:"text-lg md:text-xl font-bold text-gray-900 dark:text-white mb-1 line-clamp-2",children:i.title}),e.jsx(t.p,{initial:{opacity:0,x:-10},animate:{opacity:1,x:0},transition:{delay:.25},className:"text-sm text-gray-600 dark:text-gray-400 line-clamp-1",children:i.description})]}),e.jsx(t.button,{initial:{opacity:0,scale:.8},animate:{opacity:1,scale:1},transition:{delay:.1},whileHover:{scale:1.1,rotate:90},whileTap:{scale:.9},onClick:A,className:"flex-shrink-0 p-2 rounded-full bg-gray-100 dark:bg-gray-700 text-gray-800 dark:text-white hover:bg-red-500 hover:text-white transition-all shadow-md","aria-label":"Close modal",children:e.jsx(p,{size:20})})]}),e.jsx("div",{className:"relative w-full bg-black",children:e.jsx(t.div,{initial:{opacity:0,scale:.98},animate:{opacity:1,scale:1},transition:{delay:.3,duration:.5},className:"relative aspect-video w-full",children:e.jsx(s,{url:i.video,controls:!0,width:"100%",height:"100%",className:"react-player",config:{youtube:{playerVars:{modestbranding:1,rel:0,showinfo:0}}},style:{position:"absolute",top:0,left:0},playsinline:!0})})}),e.jsx("div",{className:"p-4 md:p-6 border-t border-gray-200 dark:border-gray-700 bg-gradient-to-r from-gray-50 to-white dark:from-gray-800 dark:to-gray-900",children:e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("div",{className:"flex items-center space-x-2",children:e.jsx("span",{className:"text-xs font-medium text-gray-500 dark:text-gray-400 uppercase tracking-wide",children:"animation"===i.category?"2D Animation":"video"===i.category?"Video Production":i.category})}),e.jsxs(t.a,{href:i.video,target:"_blank",rel:"noopener noreferrer",whileHover:{scale:1.05},whileTap:{scale:.95},className:"flex items-center space-x-2 px-4 py-2 rounded-lg bg-green-500 hover:bg-green-600 text-white text-sm font-medium transition-colors shadow-md",children:[e.jsx("svg",{className:"w-4 h-4",fill:"currentColor",viewBox:"0 0 24 24",children:e.jsx("path",{d:"M10 6V8H5V19H16V14H18V19C18 20.1 17.1 21 16 21H5C3.89 21 3 20.1 3 19V8C3 6.9 3.89 6 5 6H10M18 6V11H16V7.41L11.42 12L10 10.59L14.59 6H18Z"})}),e.jsx("span",{children:"Watch on YouTube"})]})]})})]})},"video-modal")]})}),e.jsx("style",{children:"\n          .modal {\n            position: fixed;\n            top: 0;\n            left: 0;\n            right: 0;\n            bottom: 0;\n            display: flex;\n            align-items: center;\n            justify-content: center;\n            z-index: 1000;\n            outline: none;\n            padding: 1rem;\n            overflow-y: auto;\n          }\n\n          .modal-overlay {\n            position: fixed;\n            top: 0;\n            left: 0;\n            right: 0;\n            bottom: 0;\n            background-color: rgba(0, 0, 0, 0.75);\n            z-index: 999;\n            transition: opacity 300ms ease;\n          }\n\n          .react-player {\n            transition: all 0.3s ease;\n          }\n\n          .react-player iframe {\n            border-radius: 0;\n          }\n\n          /* Custom video player styling */\n          .react-player > div {\n            border-radius: 0 !important;\n          }\n\n          @media (max-width: 768px) {\n            .modal {\n              padding: 0.5rem;\n            }\n          }\n\n          .line-clamp-2 {\n            display: -webkit-box;\n            -webkit-line-clamp: 2;\n            -webkit-box-orient: vertical;\n            overflow: hidden;\n          }\n\n          .line-clamp-3 {\n            display: -webkit-box;\n            -webkit-line-clamp: 3;\n            -webkit-box-orient: vertical;\n            overflow: hidden;\n          }\n        "})]})]})};export{Ee as default};
