@lanaco/lnc-react-ui 4.0.112 → 4.0.114
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Accordion.cjs +1 -1
- package/dist/Accordion.js +1 -1
- package/dist/AccordionDetails.cjs +1 -1
- package/dist/AccordionDetails.js +1 -1
- package/dist/AccordionSummary.cjs +1 -1
- package/dist/AccordionSummary.js +1 -1
- package/dist/ActionsToolbar.cjs +1 -1
- package/dist/ActionsToolbar.js +1 -1
- package/dist/Alert.cjs +1 -1
- package/dist/Alert.js +1 -1
- package/dist/Avatar.cjs +1 -1
- package/dist/Avatar.js +1 -1
- package/dist/Badge.cjs +1 -1
- package/dist/Badge.js +1 -1
- package/dist/BannerSectionCarousel.cjs +1 -1
- package/dist/BannerSectionCarousel.js +3 -3
- package/dist/BannerSectionWithListImage.cjs +2 -2
- package/dist/BannerSectionWithListImage.js +9 -9
- package/dist/BlogCardsSponsoredSection.cjs +25 -14
- package/dist/BlogCardsSponsoredSection.js +59 -47
- package/dist/BlogListSection.cjs +37 -9
- package/dist/BlogListSection.js +127 -70
- package/dist/BlogsSectionDetailed.cjs +11 -6
- package/dist/BlogsSectionDetailed.js +7 -2
- package/dist/BlogsSectionSimple.cjs +2 -2
- package/dist/BlogsSectionSimple.js +1 -1
- package/dist/BlogsSectionSimpleCentered.cjs +3 -2
- package/dist/BlogsSectionSimpleCentered.js +1 -0
- package/dist/BlogsSectionWithFilters.cjs +2 -2
- package/dist/BlogsSectionWithFilters.js +15 -15
- package/dist/BrandHitsSection.cjs +11 -11
- package/dist/BrandHitsSection.js +40 -38
- package/dist/Breadcrumbs.cjs +1 -1
- package/dist/Breadcrumbs.js +1 -1
- package/dist/Button.cjs +1 -1
- package/dist/Button.js +2 -2
- package/dist/ButtonGroup.cjs +1 -1
- package/dist/ButtonGroup.js +1 -1
- package/dist/CalorieCalculatorSection.cjs +1 -1
- package/dist/CalorieCalculatorSection.js +1 -1
- package/dist/CheckBoxInput.cjs +1 -1
- package/dist/CheckBoxInput.js +1 -1
- package/dist/Chip.cjs +1 -1
- package/dist/Chip.js +1 -1
- package/dist/ColorInput.cjs +1 -1
- package/dist/ColorInput.js +2 -2
- package/dist/ConfirmationForm.cjs +1 -1
- package/dist/ConfirmationForm.js +1 -1
- package/dist/ContactSection.cjs +303 -0
- package/dist/ContactSection.js +1614 -0
- package/dist/Content.cjs +1 -1
- package/dist/Content.js +1 -1
- package/dist/{CustomStyles-DtKDPOdk.cjs → CustomStyles-D3JePSNK.cjs} +1 -1
- package/dist/{CustomStyles-Dd8IsVV6.js → CustomStyles-DpKzWczC.js} +2 -2
- package/dist/DailyMotion-CUHIuSln.js +136 -0
- package/dist/DailyMotion-D46sLmkS.cjs +1 -0
- package/dist/DataView.cjs +1 -1
- package/dist/DataView.js +1 -1
- package/dist/DateInput.cjs +4 -4
- package/dist/DateInput.js +496 -552
- package/dist/DecimalInput.cjs +1 -1
- package/dist/DecimalInput.js +2 -2
- package/dist/DecimalInputV2.cjs +1 -1
- package/dist/DecimalInputV2.js +1 -1
- package/dist/DetailedProductsSection.cjs +2 -2
- package/dist/DetailedProductsSection.js +6 -6
- package/dist/DetailsView.cjs +1 -1
- package/dist/DetailsView.js +1 -1
- package/dist/DoubleRangeSlider.cjs +1 -1
- package/dist/DoubleRangeSlider.js +1 -1
- package/dist/DragAndDropFile.cjs +1 -1
- package/dist/DragAndDropFile.js +1 -1
- package/dist/DragDropFiles.cjs +1 -1
- package/dist/DragDropFiles.js +1 -1
- package/dist/Drawer.cjs +1 -1
- package/dist/Drawer.js +2 -2
- package/dist/Dropdown.cjs +1 -1
- package/dist/Dropdown.js +5 -5
- package/dist/DropdownItem.cjs +1 -1
- package/dist/DropdownItem.js +1 -1
- package/dist/DropdownLookup.cjs +1 -1
- package/dist/DropdownLookup.js +4 -4
- package/dist/DropdownMenu.cjs +1 -1
- package/dist/DropdownMenu.js +1 -1
- package/dist/EditableTable.cjs +1 -1
- package/dist/EditableTable.js +1 -1
- package/dist/Facebook-R53Rry9l.cjs +1 -0
- package/dist/Facebook-aEQQxj-r.js +121 -0
- package/dist/FaqSection.cjs +219 -0
- package/dist/FaqSection.js +481 -0
- package/dist/FeedbackSection.cjs +3 -3
- package/dist/FeedbackSection.js +9 -9
- package/dist/FieldOfInterestsWithTagsCardsSection.cjs +7 -7
- package/dist/FieldOfInterestsWithTagsCardsSection.js +24 -23
- package/dist/FileInput.cjs +1 -1
- package/dist/FileInput.js +1 -1
- package/dist/FilePlayer-9FdL9kM0.js +202 -0
- package/dist/FilePlayer-D9up8eWZ.cjs +1 -0
- package/dist/FlexBox.cjs +1 -1
- package/dist/FlexBox.js +1 -1
- package/dist/FlexGrid.cjs +1 -1
- package/dist/FlexGrid.js +1 -1
- package/dist/FlexGridItem.cjs +1 -1
- package/dist/FlexGridItem.js +1 -1
- package/dist/Footer.cjs +1 -1
- package/dist/Footer.js +1 -1
- package/dist/FormField.cjs +1 -1
- package/dist/FormField.js +1 -1
- package/dist/FormView.cjs +1 -1
- package/dist/FormView.js +1 -1
- package/dist/GiftCardsSection.cjs +2 -2
- package/dist/GiftCardsSection.js +9 -9
- package/dist/Grid.cjs +1 -1
- package/dist/Grid.js +1 -1
- package/dist/GridItem.cjs +1 -1
- package/dist/GridItem.js +1 -1
- package/dist/Header.cjs +1 -1
- package/dist/Header.js +1 -1
- package/dist/HelpBannerSection.cjs +62 -0
- package/dist/HelpBannerSection.js +81 -0
- package/dist/Icon.cjs +1 -1
- package/dist/Icon.js +1 -1
- package/dist/IconButton.cjs +1 -1
- package/dist/IconButton.js +1 -1
- package/dist/Kaltura-C170sgeD.cjs +1 -0
- package/dist/Kaltura-Dziqci9-.js +121 -0
- package/dist/Kanban.cjs +1 -1
- package/dist/Kanban.js +5 -5
- package/dist/KanbanActionsToolbar.cjs +1 -1
- package/dist/KanbanActionsToolbar.js +1 -1
- package/dist/{KanbanCard-CXRQQu4S.cjs → KanbanCard-CP60mpJO.cjs} +1 -1
- package/dist/{KanbanCard-CIscpYlR.js → KanbanCard-Crf-cTxA.js} +2 -2
- package/dist/KanbanCard.cjs +1 -1
- package/dist/KanbanCard.js +2 -2
- package/dist/KanbanFooter.cjs +1 -1
- package/dist/KanbanFooter.js +1 -1
- package/dist/KanbanHeader.cjs +1 -1
- package/dist/KanbanHeader.js +1 -1
- package/dist/KanbanView.cjs +1 -1
- package/dist/KanbanView.js +2 -2
- package/dist/Link.cjs +1 -1
- package/dist/Link.js +1 -1
- package/dist/LocationSearchSection.cjs +1 -1
- package/dist/LocationSearchSection.js +1 -1
- package/dist/MenuItem.cjs +1 -1
- package/dist/MenuItem.js +1 -1
- package/dist/Mixcloud-Cfn28kqf.js +113 -0
- package/dist/Mixcloud-Towpm_ct.cjs +1 -0
- package/dist/Modal.cjs +1 -1
- package/dist/Modal.js +2 -2
- package/dist/MultiSelectDropdown.cjs +1 -1
- package/dist/MultiSelectDropdown.js +3 -3
- package/dist/MultiSelectDropdownLookup.cjs +1 -1
- package/dist/MultiSelectDropdownLookup.js +3 -3
- package/dist/Mux-D0MPDKkM.js +165 -0
- package/dist/Mux-yqNOmuss.cjs +1 -0
- package/dist/NestedDropdownItem.cjs +1 -1
- package/dist/NestedDropdownItem.js +1 -1
- package/dist/NestedMenuItem.cjs +1 -1
- package/dist/NestedMenuItem.js +1 -1
- package/dist/Notification.cjs +1 -1
- package/dist/Notification.js +1 -1
- package/dist/NotificationContainer.cjs +1 -1
- package/dist/NotificationContainer.js +2 -2
- package/dist/NotificationMessage.cjs +1 -1
- package/dist/NotificationMessage.js +1 -1
- package/dist/NumberInput.cjs +1 -1
- package/dist/NumberInput.js +2 -2
- package/dist/PageLayout.cjs +1 -1
- package/dist/PageLayout.js +1 -1
- package/dist/Pagination.cjs +1 -1
- package/dist/Pagination.js +1 -1
- package/dist/PasswordInput.cjs +1 -1
- package/dist/PasswordInput.js +2 -2
- package/dist/Popover.cjs +1 -1
- package/dist/Popover.js +1 -1
- package/dist/PopoverContent.cjs +1 -1
- package/dist/PopoverContent.js +2 -2
- package/dist/PopoverDescription.cjs +1 -1
- package/dist/PopoverDescription.js +1 -1
- package/dist/PopoverHeading.cjs +1 -1
- package/dist/PopoverHeading.js +1 -1
- package/dist/PopoverTrigger.cjs +1 -1
- package/dist/PopoverTrigger.js +2 -2
- package/dist/Preview-B8HyPnfR.cjs +1 -0
- package/dist/Preview-CO6WSP5f.js +127 -0
- package/dist/ProgressBar.cjs +1 -1
- package/dist/ProgressBar.js +1 -1
- package/dist/QuattroCardsSection.cjs +5 -5
- package/dist/QuattroCardsSection.js +7 -7
- package/dist/RadioGroup.cjs +1 -1
- package/dist/RadioGroup.js +1 -1
- package/dist/RadioInput.cjs +1 -1
- package/dist/RadioInput.js +1 -1
- package/dist/RangeSlider.cjs +1 -1
- package/dist/RangeSlider.js +1 -1
- package/dist/ReviewsSection.cjs +1 -1
- package/dist/ReviewsSection.js +1 -1
- package/dist/SalesCampaignsSection.cjs +1 -1
- package/dist/SalesCampaignsSection.js +1 -1
- package/dist/SearchBar.cjs +1 -1
- package/dist/SearchBar.js +3 -3
- package/dist/SearchSection-BUD-hnQA.cjs +161 -0
- package/dist/SearchSection-xe0nvARV.js +1214 -0
- package/dist/SearchSection.cjs +1 -0
- package/dist/SearchSection.js +9 -0
- package/dist/Separator.cjs +1 -1
- package/dist/Separator.js +1 -1
- package/dist/ShopCardsSection.cjs +1 -1
- package/dist/ShopCardsSection.js +3 -2
- package/dist/Sidebar.cjs +1 -1
- package/dist/Sidebar.js +1 -1
- package/dist/SimpleCategoriesSection.cjs +2 -2
- package/dist/SimpleCategoriesSection.js +4 -4
- package/dist/SoundCloud-D85Da68L.js +123 -0
- package/dist/SoundCloud-YZlcPffr.cjs +1 -0
- package/dist/Spinner.cjs +1 -1
- package/dist/Spinner.js +2 -2
- package/dist/StatsSection.cjs +117 -0
- package/dist/StatsSection.js +154 -0
- package/dist/Streamable-CJQf8evZ.cjs +1 -0
- package/dist/Streamable-Zj4FOeBP.js +115 -0
- package/dist/Surface.cjs +1 -1
- package/dist/Surface.js +1 -1
- package/dist/SwipeableDrawer.cjs +1 -1
- package/dist/SwipeableDrawer.js +1 -1
- package/dist/TabItem.cjs +1 -1
- package/dist/TabItem.js +1 -1
- package/dist/Table.cjs +1 -1
- package/dist/Table.js +3 -3
- package/dist/TableView.cjs +1 -1
- package/dist/TableView.js +1 -1
- package/dist/Tabs.cjs +1 -1
- package/dist/Tabs.js +1 -1
- package/dist/TextAreaInput.cjs +1 -1
- package/dist/TextAreaInput.js +2 -2
- package/dist/TextInput.cjs +1 -1
- package/dist/TextInput.js +2 -2
- package/dist/ThemeProvider.cjs +1 -1
- package/dist/ThemeProvider.js +2 -2
- package/dist/TimeInput.cjs +1 -1
- package/dist/TimeInput.js +2 -2
- package/dist/Toggle.cjs +1 -1
- package/dist/Toggle.js +1 -1
- package/dist/TreeMenu.cjs +1 -1
- package/dist/TreeMenu.js +1 -1
- package/dist/TreeMenuSeparator.cjs +1 -1
- package/dist/TreeMenuSeparator.js +1 -1
- package/dist/Twitch-Ba2O5gTX.cjs +1 -0
- package/dist/Twitch-DC97YrR8.js +117 -0
- package/dist/UploadedFile.cjs +1 -1
- package/dist/UploadedFile.js +1 -1
- package/dist/UrgentSaleProductsSection.cjs +1 -1
- package/dist/UrgentSaleProductsSection.js +5 -5
- package/dist/Vidyard-BdNB5Wka.cjs +1 -0
- package/dist/Vidyard-D9vYqvNv.js +113 -0
- package/dist/Vimeo-23LnW4uS.js +146 -0
- package/dist/Vimeo-DatJiKS5.cjs +1 -0
- package/dist/Wistia-D--UDN6c.cjs +1 -0
- package/dist/Wistia-d2TQ3m-s.js +124 -0
- package/dist/YouTube-BEkcZxN7.cjs +1 -0
- package/dist/YouTube-x5-hc3s6.js +176 -0
- package/dist/_commonjsHelpers-BkfeUUK-.js +28 -0
- package/dist/_commonjsHelpers-DwTZ_eVU.cjs +1 -0
- package/dist/{emotion-react.browser.esm-1R69UXoj.cjs → emotion-react.browser.esm-Cvnp-zmB.cjs} +1 -1
- package/dist/{emotion-react.browser.esm-C6iWxXPG.js → emotion-react.browser.esm-DUVZ5oEL.js} +1 -1
- package/dist/{floating-ui.react.esm-h3qa3pb9.js → floating-ui.react.esm-CfpRzwmn.js} +1 -1
- package/dist/{floating-ui.react.esm-Bb1ww976.cjs → floating-ui.react.esm-CiYofNnh.cjs} +1 -1
- package/dist/{hoist-non-react-statics.cjs-Dr-ytKVG.cjs → hoist-non-react-statics.cjs-DGqlkKoS.cjs} +1 -1
- package/dist/{hoist-non-react-statics.cjs-CAHiRNzQ.js → hoist-non-react-statics.cjs-NQME298B.js} +1 -1
- package/dist/{index-EeoArxOx.cjs → index-41nUb2kP.cjs} +1 -1
- package/dist/{index-BlxaTV-D.js → index-6RFrSPs_.js} +1 -1
- package/dist/{index-64mXPFBC.js → index-B1vKwsDE.js} +1 -1
- package/dist/{index-Bq3leL2e.js → index-BXrmgzsU.js} +1 -1
- package/dist/{index-gY9e_8LL.cjs → index-BZnmT78f.cjs} +1 -1
- package/dist/{index-CQLF61YV.js → index-BgRyIsRu.js} +1 -1
- package/dist/{index-BPVoEhTF.cjs → index-BpbMKBf_.cjs} +1 -1
- package/dist/index-CDGmG-qk.cjs +1 -0
- package/dist/{index-S5Cd7WrG.js → index-CblbdqjE.js} +1 -1
- package/dist/{index-DaiUAQVF.cjs → index-Cp66dWMi.cjs} +1 -1
- package/dist/{index-DAOBjHnD.cjs → index-DA7SIHV1.cjs} +1 -1
- package/dist/{index-C1DkD2ug.cjs → index-DCFJmN23.cjs} +1 -1
- package/dist/{index-CkWvbrVT.js → index-Dt62UGku.js} +1 -1
- package/dist/index-wlx30R-h.js +62 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +60 -50
- package/dist/{react-toastify.esm--2awuizG.js → react-toastify.esm-BLQznunb.js} +1 -1
- package/dist/{react-toastify.esm-Dq1k28O7.cjs → react-toastify.esm-BoMuFZcq.cjs} +1 -1
- package/dist/{styled-components.browser.esm-CMTEDJ_5.cjs → styled-components.browser.esm-CvykQBGY.cjs} +1 -1
- package/dist/{styled-components.browser.esm-C9FYANiy.js → styled-components.browser.esm-D-n22PJk.js} +1 -1
- package/dist/usePopover.cjs +1 -1
- package/dist/usePopover.js +1 -1
- package/package.json +8 -2
- package/vite.config.js +14 -0
- package/dist/_commonjsHelpers-DKOUU3wS.cjs +0 -1
- package/dist/_commonjsHelpers-DaMA6jEr.js +0 -8
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const s=require("react"),Oe=require("./index-EeoArxOx.cjs");function ge(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=ge(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function j(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=ge(e))&&(r&&(r+=" "),r+=t);return r}function S(){return S=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},S.apply(this,arguments)}function ye(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,u;for(u=0;u<r.length;u++)i=r[u],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function K(e){return typeof e=="number"&&!isNaN(e)}function G(e){return typeof e=="boolean"}function H(e){return typeof e=="string"}function x(e){return typeof e=="function"}function $(e){return H(e)||x(e)?e:null}function oe(e){return e===0||e}function Ne(e,t){return e===!1||K(e)&&e>0?e:t}var Te=!!(typeof window<"u"&&window.document&&window.document.createElement);function re(e){return s.isValidElement(e)||H(e)||x(e)||K(e)}var he={TOP_LEFT:"top-left",TOP_RIGHT:"top-right",TOP_CENTER:"top-center",BOTTOM_LEFT:"bottom-left",BOTTOM_RIGHT:"bottom-right",BOTTOM_CENTER:"bottom-center"},k={INFO:"info",SUCCESS:"success",WARNING:"warning",ERROR:"error",DEFAULT:"default"};function Pe(e,t,n){n===void 0&&(n=300);var r=e.scrollHeight,i=e.style;requestAnimationFrame(function(){i.minHeight="initial",i.height=r+"px",i.transition="all "+n+"ms",requestAnimationFrame(function(){i.height="0",i.padding="0",i.margin="0",setTimeout(t,n)})})}function Re(e){var t=e.enter,n=e.exit,r=e.appendPosition,i=r===void 0?!1:r,u=e.collapse,g=u===void 0?!0:u,m=e.collapseDuration,o=m===void 0?300:m;return function(c){var b=c.children,C=c.position,h=c.preventExitTransition,R=c.done,I=c.nodeRef,P=c.isIn,D=i?t+"--"+C:t,L=i?n+"--"+C:n,A=s.useRef(),l=s.useRef(0);s.useLayoutEffect(function(){d()},[]),s.useEffect(function(){P||(h?O():T())},[P]);function d(){var a=I.current;A.current=a.className,a.className+=" "+D,a.addEventListener("animationend",y)}function y(a){if(a.target===I.current){var v=I.current;v.removeEventListener("animationend",y),l.current===0&&(v.className=A.current)}}function T(){l.current=1;var a=I.current;a.className+=" "+L,a.addEventListener("animationend",O)}function O(){var a=I.current;a.removeEventListener("animationend",O),g?Pe(a,R,o):R()}return s.createElement(s.Fragment,null,b)}}var w={list:new Map,emitQueue:new Map,on:function(t,n){return this.list.has(t)||this.list.set(t,[]),this.list.get(t).push(n),this},off:function(t,n){if(n){var r=this.list.get(t).filter(function(i){return i!==n});return this.list.set(t,r),this}return this.list.delete(t),this},cancelEmit:function(t){var n=this.emitQueue.get(t);return n&&(n.forEach(clearTimeout),this.emitQueue.delete(t)),this},emit:function(t){for(var n=this,r=arguments.length,i=new Array(r>1?r-1:0),u=1;u<r;u++)i[u-1]=arguments[u];this.list.has(t)&&this.list.get(t).forEach(function(g){var m=setTimeout(function(){g.apply(void 0,i)},0);n.emitQueue.has(t)||n.emitQueue.set(t,[]),n.emitQueue.get(t).push(m)})}};function q(e,t){t===void 0&&(t=!1);var n=s.useRef(e);return s.useEffect(function(){t&&(n.current=e)}),n.current}function Le(e,t){switch(t.type){case 0:return[].concat(e,[t.toastId]).filter(function(n){return n!==t.staleId});case 1:return oe(t.toastId)?e.filter(function(n){return n!==t.toastId}):[]}}var De=["delay","staleId"];function xe(e){var t=s.useReducer(function(l){return l+1},0),n=t[1],r=s.useReducer(Le,[]),i=r[0],u=r[1],g=s.useRef(null),m=q(0),o=q([]),E=q({}),c=q({toastKey:1,displayedToast:0,props:e,containerId:null,isToastActive:b,getToast:function(d){return E[d]||null}});s.useEffect(function(){return c.containerId=e.containerId,w.cancelEmit(3).on(0,P).on(1,function(l){return g.current&&h(l)}).on(5,C).emit(2,c),function(){return w.emit(3,c)}},[]),s.useEffect(function(){c.isToastActive=b,c.displayedToast=i.length,w.emit(4,i.length,e.containerId)},[i]),s.useEffect(function(){c.props=e});function b(l){return i.indexOf(l)!==-1}function C(l){var d=l.containerId,y=c.props.limit;y&&(!d||c.containerId===d)&&(m-=o.length,o=[])}function h(l){u({type:1,toastId:l})}function R(){var l=o.shift(),d=l.toastContent,y=l.toastProps,T=l.staleId;D(d,y,T)}function I(l){var d=l.containerId,y=l.toastId,T=l.updateId;return!!(!g.current||c.props.enableMultiContainer&&d!==c.props.containerId||E[y]&&T==null)}function P(l,d){var y,T=d.delay,O=d.staleId,a=ye(d,De);if(!(!re(l)||I(a))){var v=a.toastId,B=a.updateId,U=a.data,f=c.props,_=function(){return h(v)},V=a.updateId==null;V&&m++;var N={toastId:v,updateId:B,isLoading:a.isLoading,theme:a.theme||f.theme,icon:(y=a.icon)!=null?y:f.icon,isIn:!1,key:a.key||c.toastKey++,type:a.type,closeToast:_,closeButton:a.closeButton,rtl:f.rtl,position:a.position||f.position,transition:a.transition||f.transition,className:$(a.className||f.toastClassName),bodyClassName:$(a.bodyClassName||f.bodyClassName),style:a.style||f.toastStyle,bodyStyle:a.bodyStyle||f.bodyStyle,onClick:a.onClick||f.onClick,pauseOnHover:G(a.pauseOnHover)?a.pauseOnHover:f.pauseOnHover,pauseOnFocusLoss:G(a.pauseOnFocusLoss)?a.pauseOnFocusLoss:f.pauseOnFocusLoss,draggable:G(a.draggable)?a.draggable:f.draggable,draggablePercent:K(a.draggablePercent)?a.draggablePercent:f.draggablePercent,draggableDirection:a.draggableDirection||f.draggableDirection,closeOnClick:G(a.closeOnClick)?a.closeOnClick:f.closeOnClick,progressClassName:$(a.progressClassName||f.progressClassName),progressStyle:a.progressStyle||f.progressStyle,autoClose:a.isLoading?!1:Ne(a.autoClose,f.autoClose),hideProgressBar:G(a.hideProgressBar)?a.hideProgressBar:f.hideProgressBar,progress:a.progress,role:H(a.role)?a.role:f.role,deleteToast:function(){L(v)}};x(a.onOpen)&&(N.onOpen=a.onOpen),x(a.onClose)&&(N.onClose=a.onClose),N.draggableDirection==="y"&&N.draggablePercent===80&&(N.draggablePercent*=1.5);var F=f.closeButton;a.closeButton===!1||re(a.closeButton)?F=a.closeButton:a.closeButton===!0&&(F=re(f.closeButton)?f.closeButton:!0),N.closeButton=F;var M=l;s.isValidElement(l)&&!H(l.type)?M=s.cloneElement(l,{closeToast:_,toastProps:N,data:U}):x(l)&&(M=l({closeToast:_,toastProps:N,data:U})),f.limit&&f.limit>0&&m>f.limit&&V?o.push({toastContent:M,toastProps:N,staleId:O}):K(T)&&T>0?setTimeout(function(){D(M,N,O)},T):D(M,N,O)}}function D(l,d,y){var T=d.toastId;y&&delete E[y],E[T]={content:l,props:d},u({type:0,toastId:T,staleId:y})}function L(l){delete E[l];var d=o.length;if(m=oe(l)?m-1:m-c.displayedToast,m<0&&(m=0),d>0){var y=oe(l)?1:c.props.limit;if(d===1||y===1)c.displayedToast++,R();else{var T=y>d?d:y;c.displayedToast=T;for(var O=0;O<T;O++)R()}}else n()}function A(l){for(var d={},y=e.newestOnTop?Object.keys(E).reverse():Object.keys(E),T=0;T<y.length;T++){var O=E[y[T]],a=O.props.position;d[a]||(d[a]=[]),d[a].push(O)}return Object.keys(d).map(function(v){return l(v,d[v])})}return{getToastToRender:A,collection:E,containerRef:g,isToastActive:b}}function fe(e){return e.targetTouches&&e.targetTouches.length>=1?e.targetTouches[0].clientX:e.clientX}function ve(e){return e.targetTouches&&e.targetTouches.length>=1?e.targetTouches[0].clientY:e.clientY}function Be(e){var t=s.useState(!0),n=t[0],r=t[1],i=s.useState(!1),u=i[0],g=i[1],m=s.useRef(null),o=q({start:0,x:0,y:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,boundingRect:null}),E=q(e,!0),c=e.autoClose,b=e.pauseOnHover,C=e.closeToast,h=e.onClick,R=e.closeOnClick;s.useEffect(function(){return x(e.onOpen)&&e.onOpen(s.isValidElement(e.children)&&e.children.props),function(){x(E.onClose)&&E.onClose(s.isValidElement(E.children)&&E.children.props)}},[]),s.useEffect(function(){return e.draggable&&d(),function(){e.draggable&&y()}},[e.draggable]),s.useEffect(function(){return e.pauseOnFocusLoss&&A(),function(){e.pauseOnFocusLoss&&l()}},[e.pauseOnFocusLoss]);function I(v){if(e.draggable){var B=m.current;o.canCloseOnClick=!0,o.canDrag=!0,o.boundingRect=B.getBoundingClientRect(),B.style.transition="",o.x=fe(v.nativeEvent),o.y=ve(v.nativeEvent),e.draggableDirection==="x"?(o.start=o.x,o.removalDistance=B.offsetWidth*(e.draggablePercent/100)):(o.start=o.y,o.removalDistance=B.offsetHeight*(e.draggablePercent/100))}}function P(){if(o.boundingRect){var v=o.boundingRect,B=v.top,U=v.bottom,f=v.left,_=v.right;e.pauseOnHover&&o.x>=f&&o.x<=_&&o.y>=B&&o.y<=U?L():D()}}function D(){r(!0)}function L(){r(!1)}function A(){document.hasFocus()||L(),window.addEventListener("focus",D),window.addEventListener("blur",L)}function l(){window.removeEventListener("focus",D),window.removeEventListener("blur",L)}function d(){document.addEventListener("mousemove",T),document.addEventListener("mouseup",O),document.addEventListener("touchmove",T),document.addEventListener("touchend",O)}function y(){document.removeEventListener("mousemove",T),document.removeEventListener("mouseup",O),document.removeEventListener("touchmove",T),document.removeEventListener("touchend",O)}function T(v){if(o.canDrag){v.preventDefault();var B=m.current;n&&L(),o.x=fe(v),o.y=ve(v),e.draggableDirection==="x"?o.delta=o.x-o.start:o.delta=o.y-o.start,o.start!==o.x&&(o.canCloseOnClick=!1),B.style.transform="translate"+e.draggableDirection+"("+o.delta+"px)",B.style.opacity=""+(1-Math.abs(o.delta/o.removalDistance))}}function O(){var v=m.current;if(o.canDrag){if(o.canDrag=!1,Math.abs(o.delta)>o.removalDistance){g(!0),e.closeToast();return}v.style.transition="transform 0.2s, opacity 0.2s",v.style.transform="translate"+e.draggableDirection+"(0)",v.style.opacity="1"}}var a={onMouseDown:I,onTouchStart:I,onMouseUp:P,onTouchEnd:P};return c&&b&&(a.onMouseEnter=L,a.onMouseLeave=D),R&&(a.onClick=function(v){h&&h(v),o.canCloseOnClick&&C()}),{playToast:D,pauseToast:L,isRunning:n,preventExitTransition:u,toastRef:m,eventHandlers:a}}function Ee(e){var t=e.closeToast,n=e.theme,r=e.ariaLabel,i=r===void 0?"close":r;return s.createElement("button",{className:"Toastify__close-button Toastify__close-button--"+n,type:"button",onClick:function(g){g.stopPropagation(),t(g)},"aria-label":i},s.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},s.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}function pe(e){var t,n,r=e.delay,i=e.isRunning,u=e.closeToast,g=e.type,m=e.hide,o=e.className,E=e.style,c=e.controlledProgress,b=e.progress,C=e.rtl,h=e.isIn,R=e.theme,I=S({},E,{animationDuration:r+"ms",animationPlayState:i?"running":"paused",opacity:m?0:1});c&&(I.transform="scaleX("+b+")");var P=j("Toastify__progress-bar",c?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated","Toastify__progress-bar-theme--"+R,"Toastify__progress-bar--"+g,(t={},t["Toastify__progress-bar--rtl"]=C,t)),D=x(o)?o({rtl:C,type:g,defaultClassName:P}):j(P,o),L=(n={},n[c&&b>=1?"onTransitionEnd":"onAnimationEnd"]=c&&b<1?null:function(){h&&u()},n);return s.createElement("div",Object.assign({role:"progressbar","aria-hidden":m?"true":"false","aria-label":"notification timer",className:D,style:I},L))}pe.defaultProps={type:k.DEFAULT,hide:!1};var Se=["theme","type"],J=function(t){var n=t.theme,r=t.type,i=ye(t,Se);return s.createElement("svg",Object.assign({viewBox:"0 0 24 24",width:"100%",height:"100%",fill:n==="colored"?"currentColor":"var(--toastify-icon-color-"+r+")"},i))};function we(e){return s.createElement(J,Object.assign({},e),s.createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))}function _e(e){return s.createElement(J,Object.assign({},e),s.createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))}function ke(e){return s.createElement(J,Object.assign({},e),s.createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))}function Ae(e){return s.createElement(J,Object.assign({},e),s.createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))}function Fe(){return s.createElement("div",{className:"Toastify__spinner"})}var me={info:_e,warning:we,success:ke,error:Ae,spinner:Fe},Me=function(t){var n,r,i=Be(t),u=i.isRunning,g=i.preventExitTransition,m=i.toastRef,o=i.eventHandlers,E=t.closeButton,c=t.children,b=t.autoClose,C=t.onClick,h=t.type,R=t.hideProgressBar,I=t.closeToast,P=t.transition,D=t.position,L=t.className,A=t.style,l=t.bodyClassName,d=t.bodyStyle,y=t.progressClassName,T=t.progressStyle,O=t.updateId,a=t.role,v=t.progress,B=t.rtl,U=t.toastId,f=t.deleteToast,_=t.isIn,V=t.isLoading,N=t.icon,F=t.theme,M=j("Toastify__toast","Toastify__toast-theme--"+F,"Toastify__toast--"+h,(n={},n["Toastify__toast--rtl"]=B,n)),te=x(L)?L({rtl:B,position:D,type:h,defaultClassName:M}):j(M,L),ne=!!v,ue=me[h],ae={theme:F,type:h},z=ue&&ue(ae);N===!1?z=void 0:x(N)?z=N(ae):s.isValidElement(N)?z=s.cloneElement(N,ae):H(N)?z=N:V&&(z=me.spinner());function Ie(W){if(W){var de={closeToast:I,type:h,theme:F};if(x(W))return W(de);if(s.isValidElement(W))return s.cloneElement(W,de)}}return s.createElement(P,{isIn:_,done:f,position:D,preventExitTransition:g,nodeRef:m},s.createElement("div",Object.assign({id:U,onClick:C,className:te},o,{style:A,ref:m}),s.createElement("div",Object.assign({},_&&{role:a},{className:x(l)?l({type:h}):j("Toastify__toast-body",l),style:d}),z&&s.createElement("div",{className:j("Toastify__toast-icon",(r={},r["Toastify--animate-icon Toastify__zoom-enter"]=!V,r))},z),s.createElement("div",null,c)),Ie(E),(b||ne)&&s.createElement(pe,Object.assign({},O&&!ne?{key:"pb-"+O}:{},{rtl:B,theme:F,delay:b,isRunning:u,isIn:_,closeToast:I,hide:R,type:h,style:T,className:y,controlledProgress:ne,progress:v}))))},je=Re({enter:"Toastify--animate Toastify__bounce-enter",exit:"Toastify--animate Toastify__bounce-exit",appendPosition:!0}),ce=function(t){var n=xe(t),r=n.getToastToRender,i=n.containerRef,u=n.isToastActive,g=t.className,m=t.style,o=t.rtl,E=t.containerId;function c(b){var C,h=j("Toastify__toast-container","Toastify__toast-container--"+b,(C={},C["Toastify__toast-container--rtl"]=o,C));return x(g)?g({position:b,rtl:o,defaultClassName:h}):j(h,$(g))}return s.createElement("div",{ref:i,className:"Toastify",id:E},r(function(b,C){var h=C.length===0?S({},m,{pointerEvents:"none"}):S({},m);return s.createElement("div",{className:c(b),style:h,key:"container-"+b},C.map(function(R){var I=R.content,P=R.props;return s.createElement(Me,Object.assign({},P,{isIn:u(P.toastId),key:"toast-"+P.key,closeButton:P.closeButton===!0?Ee:P.closeButton}),I)}))}))};ce.defaultProps={position:he.TOP_RIGHT,transition:je,rtl:!1,autoClose:5e3,hideProgressBar:!1,closeButton:Ee,pauseOnHover:!0,pauseOnFocusLoss:!0,closeOnClick:!0,newestOnTop:!1,draggable:!0,draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};var Q=new Map,se,Y,be,ie=[],le=!1;function He(){return Q.size>0}function ze(e,t){var n=t.containerId,r=Q.get(n||se);return r?r.getToast(e):null}function Ce(){return Math.random().toString(36).substr(2,9)}function Ue(e){return e&&(H(e.toastId)||K(e.toastId))?e.toastId:Ce()}function X(e,t){return He()?w.emit(0,e,t):(ie.push({content:e,options:t}),le&&Te&&(le=!1,Y=document.createElement("div"),document.body.appendChild(Y),Oe.reactDomExports.render(s.createElement(ce,Object.assign({},be)),Y))),t.toastId}function Z(e,t){return S({},t,{type:t&&t.type||e,toastId:Ue(t)})}var ee=function(t){return function(n,r){return X(n,Z(t,r))}},p=function(t,n){return X(t,Z(k.DEFAULT,n))};p.loading=function(e,t){return X(e,Z(k.DEFAULT,S({isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1},t)))};function qe(e,t,n){var r=t.pending,i=t.error,u=t.success,g;r&&(g=H(r)?p.loading(r,n):p.loading(r.render,S({},n,r)));var m={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},o=function(b,C,h){var R=S({type:b},m,n,{data:h}),I=H(C)?{render:C}:C;return g?p.update(g,S({},R,I)):p(I.render,S({},R,I)),h},E=x(e)?e():e;return E.then(function(c){return u&&o("success",u,c)}).catch(function(c){return i&&o("error",i,c)}),E}p.promise=qe;p.success=ee(k.SUCCESS);p.info=ee(k.INFO);p.error=ee(k.ERROR);p.warning=ee(k.WARNING);p.warn=p.warning;p.dark=function(e,t){return X(e,Z(k.DEFAULT,S({theme:"dark"},t)))};p.dismiss=function(e){return w.emit(1,e)};p.clearWaitingQueue=function(e){return e===void 0&&(e={}),w.emit(5,e)};p.isActive=function(e){var t=!1;return Q.forEach(function(n){n.isToastActive&&n.isToastActive(e)&&(t=!0)}),t};p.update=function(e,t){t===void 0&&(t={}),setTimeout(function(){var n=ze(e,t);if(n){var r=n.props,i=n.content,u=S({},r,t,{toastId:t.toastId||e,updateId:Ce()});u.toastId!==e&&(u.staleId=e);var g=u.render||i;delete u.render,X(g,u)}},0)};p.done=function(e){p.update(e,{progress:1})};p.onChange=function(e){return x(e)&&w.on(4,e),function(){x(e)&&w.off(4,e)}};p.configure=function(e){e===void 0&&(e={}),le=!0,be=e};p.POSITION=he;p.TYPE=k;w.on(2,function(e){se=e.containerId||e,Q.set(se,e),ie.forEach(function(t){w.emit(0,t.content,t.options)}),ie=[]}).on(3,function(e){Q.delete(e.containerId||e),Q.size===0&&w.off(0).off(1).off(5),Te&&Y&&document.body.removeChild(Y)});exports.ToastContainer=ce;exports.toast=p;
|
|
1
|
+
"use strict";const s=require("react"),Oe=require("./index-41nUb2kP.cjs");function ge(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=ge(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function j(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=ge(e))&&(r&&(r+=" "),r+=t);return r}function S(){return S=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},S.apply(this,arguments)}function ye(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,u;for(u=0;u<r.length;u++)i=r[u],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function K(e){return typeof e=="number"&&!isNaN(e)}function G(e){return typeof e=="boolean"}function H(e){return typeof e=="string"}function x(e){return typeof e=="function"}function $(e){return H(e)||x(e)?e:null}function oe(e){return e===0||e}function Ne(e,t){return e===!1||K(e)&&e>0?e:t}var Te=!!(typeof window<"u"&&window.document&&window.document.createElement);function re(e){return s.isValidElement(e)||H(e)||x(e)||K(e)}var he={TOP_LEFT:"top-left",TOP_RIGHT:"top-right",TOP_CENTER:"top-center",BOTTOM_LEFT:"bottom-left",BOTTOM_RIGHT:"bottom-right",BOTTOM_CENTER:"bottom-center"},k={INFO:"info",SUCCESS:"success",WARNING:"warning",ERROR:"error",DEFAULT:"default"};function Pe(e,t,n){n===void 0&&(n=300);var r=e.scrollHeight,i=e.style;requestAnimationFrame(function(){i.minHeight="initial",i.height=r+"px",i.transition="all "+n+"ms",requestAnimationFrame(function(){i.height="0",i.padding="0",i.margin="0",setTimeout(t,n)})})}function Re(e){var t=e.enter,n=e.exit,r=e.appendPosition,i=r===void 0?!1:r,u=e.collapse,g=u===void 0?!0:u,m=e.collapseDuration,o=m===void 0?300:m;return function(c){var b=c.children,C=c.position,h=c.preventExitTransition,R=c.done,I=c.nodeRef,P=c.isIn,D=i?t+"--"+C:t,L=i?n+"--"+C:n,A=s.useRef(),l=s.useRef(0);s.useLayoutEffect(function(){d()},[]),s.useEffect(function(){P||(h?O():T())},[P]);function d(){var a=I.current;A.current=a.className,a.className+=" "+D,a.addEventListener("animationend",y)}function y(a){if(a.target===I.current){var v=I.current;v.removeEventListener("animationend",y),l.current===0&&(v.className=A.current)}}function T(){l.current=1;var a=I.current;a.className+=" "+L,a.addEventListener("animationend",O)}function O(){var a=I.current;a.removeEventListener("animationend",O),g?Pe(a,R,o):R()}return s.createElement(s.Fragment,null,b)}}var w={list:new Map,emitQueue:new Map,on:function(t,n){return this.list.has(t)||this.list.set(t,[]),this.list.get(t).push(n),this},off:function(t,n){if(n){var r=this.list.get(t).filter(function(i){return i!==n});return this.list.set(t,r),this}return this.list.delete(t),this},cancelEmit:function(t){var n=this.emitQueue.get(t);return n&&(n.forEach(clearTimeout),this.emitQueue.delete(t)),this},emit:function(t){for(var n=this,r=arguments.length,i=new Array(r>1?r-1:0),u=1;u<r;u++)i[u-1]=arguments[u];this.list.has(t)&&this.list.get(t).forEach(function(g){var m=setTimeout(function(){g.apply(void 0,i)},0);n.emitQueue.has(t)||n.emitQueue.set(t,[]),n.emitQueue.get(t).push(m)})}};function q(e,t){t===void 0&&(t=!1);var n=s.useRef(e);return s.useEffect(function(){t&&(n.current=e)}),n.current}function Le(e,t){switch(t.type){case 0:return[].concat(e,[t.toastId]).filter(function(n){return n!==t.staleId});case 1:return oe(t.toastId)?e.filter(function(n){return n!==t.toastId}):[]}}var De=["delay","staleId"];function xe(e){var t=s.useReducer(function(l){return l+1},0),n=t[1],r=s.useReducer(Le,[]),i=r[0],u=r[1],g=s.useRef(null),m=q(0),o=q([]),E=q({}),c=q({toastKey:1,displayedToast:0,props:e,containerId:null,isToastActive:b,getToast:function(d){return E[d]||null}});s.useEffect(function(){return c.containerId=e.containerId,w.cancelEmit(3).on(0,P).on(1,function(l){return g.current&&h(l)}).on(5,C).emit(2,c),function(){return w.emit(3,c)}},[]),s.useEffect(function(){c.isToastActive=b,c.displayedToast=i.length,w.emit(4,i.length,e.containerId)},[i]),s.useEffect(function(){c.props=e});function b(l){return i.indexOf(l)!==-1}function C(l){var d=l.containerId,y=c.props.limit;y&&(!d||c.containerId===d)&&(m-=o.length,o=[])}function h(l){u({type:1,toastId:l})}function R(){var l=o.shift(),d=l.toastContent,y=l.toastProps,T=l.staleId;D(d,y,T)}function I(l){var d=l.containerId,y=l.toastId,T=l.updateId;return!!(!g.current||c.props.enableMultiContainer&&d!==c.props.containerId||E[y]&&T==null)}function P(l,d){var y,T=d.delay,O=d.staleId,a=ye(d,De);if(!(!re(l)||I(a))){var v=a.toastId,B=a.updateId,U=a.data,f=c.props,_=function(){return h(v)},V=a.updateId==null;V&&m++;var N={toastId:v,updateId:B,isLoading:a.isLoading,theme:a.theme||f.theme,icon:(y=a.icon)!=null?y:f.icon,isIn:!1,key:a.key||c.toastKey++,type:a.type,closeToast:_,closeButton:a.closeButton,rtl:f.rtl,position:a.position||f.position,transition:a.transition||f.transition,className:$(a.className||f.toastClassName),bodyClassName:$(a.bodyClassName||f.bodyClassName),style:a.style||f.toastStyle,bodyStyle:a.bodyStyle||f.bodyStyle,onClick:a.onClick||f.onClick,pauseOnHover:G(a.pauseOnHover)?a.pauseOnHover:f.pauseOnHover,pauseOnFocusLoss:G(a.pauseOnFocusLoss)?a.pauseOnFocusLoss:f.pauseOnFocusLoss,draggable:G(a.draggable)?a.draggable:f.draggable,draggablePercent:K(a.draggablePercent)?a.draggablePercent:f.draggablePercent,draggableDirection:a.draggableDirection||f.draggableDirection,closeOnClick:G(a.closeOnClick)?a.closeOnClick:f.closeOnClick,progressClassName:$(a.progressClassName||f.progressClassName),progressStyle:a.progressStyle||f.progressStyle,autoClose:a.isLoading?!1:Ne(a.autoClose,f.autoClose),hideProgressBar:G(a.hideProgressBar)?a.hideProgressBar:f.hideProgressBar,progress:a.progress,role:H(a.role)?a.role:f.role,deleteToast:function(){L(v)}};x(a.onOpen)&&(N.onOpen=a.onOpen),x(a.onClose)&&(N.onClose=a.onClose),N.draggableDirection==="y"&&N.draggablePercent===80&&(N.draggablePercent*=1.5);var F=f.closeButton;a.closeButton===!1||re(a.closeButton)?F=a.closeButton:a.closeButton===!0&&(F=re(f.closeButton)?f.closeButton:!0),N.closeButton=F;var M=l;s.isValidElement(l)&&!H(l.type)?M=s.cloneElement(l,{closeToast:_,toastProps:N,data:U}):x(l)&&(M=l({closeToast:_,toastProps:N,data:U})),f.limit&&f.limit>0&&m>f.limit&&V?o.push({toastContent:M,toastProps:N,staleId:O}):K(T)&&T>0?setTimeout(function(){D(M,N,O)},T):D(M,N,O)}}function D(l,d,y){var T=d.toastId;y&&delete E[y],E[T]={content:l,props:d},u({type:0,toastId:T,staleId:y})}function L(l){delete E[l];var d=o.length;if(m=oe(l)?m-1:m-c.displayedToast,m<0&&(m=0),d>0){var y=oe(l)?1:c.props.limit;if(d===1||y===1)c.displayedToast++,R();else{var T=y>d?d:y;c.displayedToast=T;for(var O=0;O<T;O++)R()}}else n()}function A(l){for(var d={},y=e.newestOnTop?Object.keys(E).reverse():Object.keys(E),T=0;T<y.length;T++){var O=E[y[T]],a=O.props.position;d[a]||(d[a]=[]),d[a].push(O)}return Object.keys(d).map(function(v){return l(v,d[v])})}return{getToastToRender:A,collection:E,containerRef:g,isToastActive:b}}function fe(e){return e.targetTouches&&e.targetTouches.length>=1?e.targetTouches[0].clientX:e.clientX}function ve(e){return e.targetTouches&&e.targetTouches.length>=1?e.targetTouches[0].clientY:e.clientY}function Be(e){var t=s.useState(!0),n=t[0],r=t[1],i=s.useState(!1),u=i[0],g=i[1],m=s.useRef(null),o=q({start:0,x:0,y:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,boundingRect:null}),E=q(e,!0),c=e.autoClose,b=e.pauseOnHover,C=e.closeToast,h=e.onClick,R=e.closeOnClick;s.useEffect(function(){return x(e.onOpen)&&e.onOpen(s.isValidElement(e.children)&&e.children.props),function(){x(E.onClose)&&E.onClose(s.isValidElement(E.children)&&E.children.props)}},[]),s.useEffect(function(){return e.draggable&&d(),function(){e.draggable&&y()}},[e.draggable]),s.useEffect(function(){return e.pauseOnFocusLoss&&A(),function(){e.pauseOnFocusLoss&&l()}},[e.pauseOnFocusLoss]);function I(v){if(e.draggable){var B=m.current;o.canCloseOnClick=!0,o.canDrag=!0,o.boundingRect=B.getBoundingClientRect(),B.style.transition="",o.x=fe(v.nativeEvent),o.y=ve(v.nativeEvent),e.draggableDirection==="x"?(o.start=o.x,o.removalDistance=B.offsetWidth*(e.draggablePercent/100)):(o.start=o.y,o.removalDistance=B.offsetHeight*(e.draggablePercent/100))}}function P(){if(o.boundingRect){var v=o.boundingRect,B=v.top,U=v.bottom,f=v.left,_=v.right;e.pauseOnHover&&o.x>=f&&o.x<=_&&o.y>=B&&o.y<=U?L():D()}}function D(){r(!0)}function L(){r(!1)}function A(){document.hasFocus()||L(),window.addEventListener("focus",D),window.addEventListener("blur",L)}function l(){window.removeEventListener("focus",D),window.removeEventListener("blur",L)}function d(){document.addEventListener("mousemove",T),document.addEventListener("mouseup",O),document.addEventListener("touchmove",T),document.addEventListener("touchend",O)}function y(){document.removeEventListener("mousemove",T),document.removeEventListener("mouseup",O),document.removeEventListener("touchmove",T),document.removeEventListener("touchend",O)}function T(v){if(o.canDrag){v.preventDefault();var B=m.current;n&&L(),o.x=fe(v),o.y=ve(v),e.draggableDirection==="x"?o.delta=o.x-o.start:o.delta=o.y-o.start,o.start!==o.x&&(o.canCloseOnClick=!1),B.style.transform="translate"+e.draggableDirection+"("+o.delta+"px)",B.style.opacity=""+(1-Math.abs(o.delta/o.removalDistance))}}function O(){var v=m.current;if(o.canDrag){if(o.canDrag=!1,Math.abs(o.delta)>o.removalDistance){g(!0),e.closeToast();return}v.style.transition="transform 0.2s, opacity 0.2s",v.style.transform="translate"+e.draggableDirection+"(0)",v.style.opacity="1"}}var a={onMouseDown:I,onTouchStart:I,onMouseUp:P,onTouchEnd:P};return c&&b&&(a.onMouseEnter=L,a.onMouseLeave=D),R&&(a.onClick=function(v){h&&h(v),o.canCloseOnClick&&C()}),{playToast:D,pauseToast:L,isRunning:n,preventExitTransition:u,toastRef:m,eventHandlers:a}}function Ee(e){var t=e.closeToast,n=e.theme,r=e.ariaLabel,i=r===void 0?"close":r;return s.createElement("button",{className:"Toastify__close-button Toastify__close-button--"+n,type:"button",onClick:function(g){g.stopPropagation(),t(g)},"aria-label":i},s.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},s.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}function pe(e){var t,n,r=e.delay,i=e.isRunning,u=e.closeToast,g=e.type,m=e.hide,o=e.className,E=e.style,c=e.controlledProgress,b=e.progress,C=e.rtl,h=e.isIn,R=e.theme,I=S({},E,{animationDuration:r+"ms",animationPlayState:i?"running":"paused",opacity:m?0:1});c&&(I.transform="scaleX("+b+")");var P=j("Toastify__progress-bar",c?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated","Toastify__progress-bar-theme--"+R,"Toastify__progress-bar--"+g,(t={},t["Toastify__progress-bar--rtl"]=C,t)),D=x(o)?o({rtl:C,type:g,defaultClassName:P}):j(P,o),L=(n={},n[c&&b>=1?"onTransitionEnd":"onAnimationEnd"]=c&&b<1?null:function(){h&&u()},n);return s.createElement("div",Object.assign({role:"progressbar","aria-hidden":m?"true":"false","aria-label":"notification timer",className:D,style:I},L))}pe.defaultProps={type:k.DEFAULT,hide:!1};var Se=["theme","type"],J=function(t){var n=t.theme,r=t.type,i=ye(t,Se);return s.createElement("svg",Object.assign({viewBox:"0 0 24 24",width:"100%",height:"100%",fill:n==="colored"?"currentColor":"var(--toastify-icon-color-"+r+")"},i))};function we(e){return s.createElement(J,Object.assign({},e),s.createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))}function _e(e){return s.createElement(J,Object.assign({},e),s.createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))}function ke(e){return s.createElement(J,Object.assign({},e),s.createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))}function Ae(e){return s.createElement(J,Object.assign({},e),s.createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))}function Fe(){return s.createElement("div",{className:"Toastify__spinner"})}var me={info:_e,warning:we,success:ke,error:Ae,spinner:Fe},Me=function(t){var n,r,i=Be(t),u=i.isRunning,g=i.preventExitTransition,m=i.toastRef,o=i.eventHandlers,E=t.closeButton,c=t.children,b=t.autoClose,C=t.onClick,h=t.type,R=t.hideProgressBar,I=t.closeToast,P=t.transition,D=t.position,L=t.className,A=t.style,l=t.bodyClassName,d=t.bodyStyle,y=t.progressClassName,T=t.progressStyle,O=t.updateId,a=t.role,v=t.progress,B=t.rtl,U=t.toastId,f=t.deleteToast,_=t.isIn,V=t.isLoading,N=t.icon,F=t.theme,M=j("Toastify__toast","Toastify__toast-theme--"+F,"Toastify__toast--"+h,(n={},n["Toastify__toast--rtl"]=B,n)),te=x(L)?L({rtl:B,position:D,type:h,defaultClassName:M}):j(M,L),ne=!!v,ue=me[h],ae={theme:F,type:h},z=ue&&ue(ae);N===!1?z=void 0:x(N)?z=N(ae):s.isValidElement(N)?z=s.cloneElement(N,ae):H(N)?z=N:V&&(z=me.spinner());function Ie(W){if(W){var de={closeToast:I,type:h,theme:F};if(x(W))return W(de);if(s.isValidElement(W))return s.cloneElement(W,de)}}return s.createElement(P,{isIn:_,done:f,position:D,preventExitTransition:g,nodeRef:m},s.createElement("div",Object.assign({id:U,onClick:C,className:te},o,{style:A,ref:m}),s.createElement("div",Object.assign({},_&&{role:a},{className:x(l)?l({type:h}):j("Toastify__toast-body",l),style:d}),z&&s.createElement("div",{className:j("Toastify__toast-icon",(r={},r["Toastify--animate-icon Toastify__zoom-enter"]=!V,r))},z),s.createElement("div",null,c)),Ie(E),(b||ne)&&s.createElement(pe,Object.assign({},O&&!ne?{key:"pb-"+O}:{},{rtl:B,theme:F,delay:b,isRunning:u,isIn:_,closeToast:I,hide:R,type:h,style:T,className:y,controlledProgress:ne,progress:v}))))},je=Re({enter:"Toastify--animate Toastify__bounce-enter",exit:"Toastify--animate Toastify__bounce-exit",appendPosition:!0}),ce=function(t){var n=xe(t),r=n.getToastToRender,i=n.containerRef,u=n.isToastActive,g=t.className,m=t.style,o=t.rtl,E=t.containerId;function c(b){var C,h=j("Toastify__toast-container","Toastify__toast-container--"+b,(C={},C["Toastify__toast-container--rtl"]=o,C));return x(g)?g({position:b,rtl:o,defaultClassName:h}):j(h,$(g))}return s.createElement("div",{ref:i,className:"Toastify",id:E},r(function(b,C){var h=C.length===0?S({},m,{pointerEvents:"none"}):S({},m);return s.createElement("div",{className:c(b),style:h,key:"container-"+b},C.map(function(R){var I=R.content,P=R.props;return s.createElement(Me,Object.assign({},P,{isIn:u(P.toastId),key:"toast-"+P.key,closeButton:P.closeButton===!0?Ee:P.closeButton}),I)}))}))};ce.defaultProps={position:he.TOP_RIGHT,transition:je,rtl:!1,autoClose:5e3,hideProgressBar:!1,closeButton:Ee,pauseOnHover:!0,pauseOnFocusLoss:!0,closeOnClick:!0,newestOnTop:!1,draggable:!0,draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};var Q=new Map,se,Y,be,ie=[],le=!1;function He(){return Q.size>0}function ze(e,t){var n=t.containerId,r=Q.get(n||se);return r?r.getToast(e):null}function Ce(){return Math.random().toString(36).substr(2,9)}function Ue(e){return e&&(H(e.toastId)||K(e.toastId))?e.toastId:Ce()}function X(e,t){return He()?w.emit(0,e,t):(ie.push({content:e,options:t}),le&&Te&&(le=!1,Y=document.createElement("div"),document.body.appendChild(Y),Oe.reactDomExports.render(s.createElement(ce,Object.assign({},be)),Y))),t.toastId}function Z(e,t){return S({},t,{type:t&&t.type||e,toastId:Ue(t)})}var ee=function(t){return function(n,r){return X(n,Z(t,r))}},p=function(t,n){return X(t,Z(k.DEFAULT,n))};p.loading=function(e,t){return X(e,Z(k.DEFAULT,S({isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1},t)))};function qe(e,t,n){var r=t.pending,i=t.error,u=t.success,g;r&&(g=H(r)?p.loading(r,n):p.loading(r.render,S({},n,r)));var m={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},o=function(b,C,h){var R=S({type:b},m,n,{data:h}),I=H(C)?{render:C}:C;return g?p.update(g,S({},R,I)):p(I.render,S({},R,I)),h},E=x(e)?e():e;return E.then(function(c){return u&&o("success",u,c)}).catch(function(c){return i&&o("error",i,c)}),E}p.promise=qe;p.success=ee(k.SUCCESS);p.info=ee(k.INFO);p.error=ee(k.ERROR);p.warning=ee(k.WARNING);p.warn=p.warning;p.dark=function(e,t){return X(e,Z(k.DEFAULT,S({theme:"dark"},t)))};p.dismiss=function(e){return w.emit(1,e)};p.clearWaitingQueue=function(e){return e===void 0&&(e={}),w.emit(5,e)};p.isActive=function(e){var t=!1;return Q.forEach(function(n){n.isToastActive&&n.isToastActive(e)&&(t=!0)}),t};p.update=function(e,t){t===void 0&&(t={}),setTimeout(function(){var n=ze(e,t);if(n){var r=n.props,i=n.content,u=S({},r,t,{toastId:t.toastId||e,updateId:Ce()});u.toastId!==e&&(u.staleId=e);var g=u.render||i;delete u.render,X(g,u)}},0)};p.done=function(e){p.update(e,{progress:1})};p.onChange=function(e){return x(e)&&w.on(4,e),function(){x(e)&&w.off(4,e)}};p.configure=function(e){e===void 0&&(e={}),le=!0,be=e};p.POSITION=he;p.TYPE=k;w.on(2,function(e){se=e.containerId||e,Q.set(se,e),ie.forEach(function(t){w.emit(0,t.content,t.options)}),ie=[]}).on(3,function(e){Q.delete(e.containerId||e),Q.size===0&&w.off(0).off(1).off(5),Te&&Y&&document.body.removeChild(Y)});exports.ToastContainer=ce;exports.toast=p;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const U=require("react"),je=require("./emotion-is-prop-valid.esm-BNsx9k19.cjs"),ft=require("./hoist-non-react-statics.cjs-
|
|
1
|
+
"use strict";const U=require("react"),je=require("./emotion-is-prop-valid.esm-BNsx9k19.cjs"),ft=require("./hoist-non-react-statics.cjs-DGqlkKoS.cjs");var Ie={exports:{}},O={};/**
|
|
2
2
|
* @license React
|
|
3
3
|
* react-is.production.js
|
|
4
4
|
*
|
package/dist/{styled-components.browser.esm-C9FYANiy.js → styled-components.browser.esm-D-n22PJk.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import ue, { useRef as Ke, useContext as Te, useLayoutEffect as ht, createElement as pt } from "react";
|
|
2
2
|
import { i as je } from "./emotion-is-prop-valid.esm-CbWxtx4i.js";
|
|
3
|
-
import { m as mt } from "./hoist-non-react-statics.cjs-
|
|
3
|
+
import { m as mt } from "./hoist-non-react-statics.cjs-NQME298B.js";
|
|
4
4
|
var Oe = { exports: {} }, O = {};
|
|
5
5
|
/**
|
|
6
6
|
* @license React
|
package/dist/usePopover.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const t=require("react"),e=require("./floating-ui.react.esm-
|
|
1
|
+
"use strict";const t=require("react"),e=require("./floating-ui.react.esm-CiYofNnh.cjs"),n=require("./floating-ui.dom-CN4MB7mG.cjs");function k({initialOpen:p=!1,placement:f,offsetValue:g,modal:a=!0,open:l,onOpenChange:m}){const[I,b]=t.useState(p),[r,h]=t.useState(void 0),[u,x]=t.useState(void 0),s=l??I,o=m??b,i=e.useFloating({placement:f,open:s,onOpenChange:o,whileElementsMounted:n.autoUpdate,middleware:[n.offset(g),n.flip({fallbackAxisSideDirection:"end"}),n.shift({padding:5})]}),c=i.context,O=e.useClick(c,{enabled:l==null}),S=e.useDismiss(c),U=e.useRole(c),d=e.useInteractions([O,S,U]);return t.useMemo(()=>({open:s,setOpen:o,...d,...i,modal:a,labelId:r,descriptionId:u,setLabelId:h,setDescriptionId:x}),[s,o,d,i,a,r,u])}module.exports=k;
|
package/dist/usePopover.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useState as o, useMemo as k } from "react";
|
|
2
|
-
import { c as v, d as C, e as D, f as w, g as M } from "./floating-ui.react.esm-
|
|
2
|
+
import { c as v, d as C, e as D, f as w, g as M } from "./floating-ui.react.esm-CfpRzwmn.js";
|
|
3
3
|
import { o as S, f as U, s as A, a as E } from "./floating-ui.dom-B931An3C.js";
|
|
4
4
|
function R({
|
|
5
5
|
initialOpen: r = !1,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lanaco/lnc-react-ui",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.114",
|
|
4
4
|
"description": "React component library",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"keywords": [
|
|
@@ -157,7 +157,12 @@
|
|
|
157
157
|
"./BlogListSection": "./dist/BlogListSection.js",
|
|
158
158
|
"./AdBannerSection": "./dist/AdBannerSection.js",
|
|
159
159
|
"./QuattroCardsSection": "./dist/QuattroCardsSection.js",
|
|
160
|
-
"./FeedbackSection": "./dist/FeedbackSection.js"
|
|
160
|
+
"./FeedbackSection": "./dist/FeedbackSection.js",
|
|
161
|
+
"./HelpBannerSection": "./dist/HelpBannerSection.js",
|
|
162
|
+
"./ContactSection": "./dist/ContactSection.js",
|
|
163
|
+
"./FaqSection": "./dist/FaqSection.js",
|
|
164
|
+
"./SearchSection": "./dist/SearchSection.js",
|
|
165
|
+
"./StatsSection": "./dist/StatsSection.js"
|
|
161
166
|
},
|
|
162
167
|
"dependencies": {
|
|
163
168
|
"@dnd-kit/core": "^6.0.5",
|
|
@@ -187,6 +192,7 @@
|
|
|
187
192
|
"react-hook-form": "^7.39.1",
|
|
188
193
|
"react-modern-drawer": "^1.1.2",
|
|
189
194
|
"react-number-format": "^4.9.3",
|
|
195
|
+
"react-player": "^2.16.0",
|
|
190
196
|
"react-responsive-carousel": "^3.2.23",
|
|
191
197
|
"react-select": "^5.4.0",
|
|
192
198
|
"react-syntax-highlighter": "^15.5.0",
|
package/vite.config.js
CHANGED
|
@@ -317,6 +317,20 @@ export default defineConfig({
|
|
|
317
317
|
__dirname,
|
|
318
318
|
"src/Landing Sections/general-sections/feedback-section/FeedbackSection.jsx"
|
|
319
319
|
),
|
|
320
|
+
resolve(
|
|
321
|
+
__dirname,
|
|
322
|
+
"src/Help Sections/banner-section/HelpBannerSection.jsx"
|
|
323
|
+
),
|
|
324
|
+
resolve(
|
|
325
|
+
__dirname,
|
|
326
|
+
"src/Help Sections/contact-section/ContactSection.jsx"
|
|
327
|
+
),
|
|
328
|
+
resolve(__dirname, "src/Help Sections/faq-section/FaqSection.jsx"),
|
|
329
|
+
resolve(
|
|
330
|
+
__dirname,
|
|
331
|
+
"src/Help Sections/search-section/SearchSection.jsx"
|
|
332
|
+
),
|
|
333
|
+
resolve(__dirname, "src/Help Sections/stats-section/StatsSection.jsx"),
|
|
320
334
|
],
|
|
321
335
|
name: "@lanaco/lnc-react-ui",
|
|
322
336
|
fileName: (format, name) => {
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var o=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function l(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}exports.commonjsGlobal=o;exports.getDefaultExportFromCjs=l;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
var o = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
2
|
-
function l(e) {
|
|
3
|
-
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
4
|
-
}
|
|
5
|
-
export {
|
|
6
|
-
o as c,
|
|
7
|
-
l as g
|
|
8
|
-
};
|