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AAAC,OAAA,EAAkB","sources":["webpack://_N_E/../../node_modules/use-count-up/lib/index.module.js","webpack://_N_E/./src/components/core/Stories/Modal/V1/index.tsx","webpack://_N_E/./src/hooks/useStories/index.tsx","webpack://_N_E/./src/components/core/Stories/Button/index.tsx","webpack://_N_E/./src/components/core/Stories/Content/index.tsx","webpack://_N_E/./src/components/core/Stories/Header/index.tsx","webpack://_N_E/./src/components/core/Stories/index.tsx","webpack://_N_E/./src/components/core/Stories/Button/styles.module.scss","webpack://_N_E/./src/components/core/Stories/Modal/V1/styles.module.scss","webpack://_N_E/./src/components/core/Stories/styles.module.scss"],"sourcesContent":["var D=Object.getOwnPropertySymbols;var z=Object.prototype.hasOwnProperty,G=Object.prototype.propertyIsEnumerable;var T=(e,t)=>{var r={};for(var n in e)z.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&D)for(var n of D(e))t.indexOf(n)<0&&G.call(e,n)&&(r[n]=e[n]);return r};import{useState as X,useRef as d,useCallback as Y}from\"react\";import{useEffect as Z,useLayoutEffect as _}from\"react\";var J=Object.defineProperty,H=Object.defineProperties,K=Object.getOwnPropertyDescriptors,j=Object.getOwnPropertySymbols,Q=Object.prototype.hasOwnProperty,W=Object.prototype.propertyIsEnumerable,I=(e,t,r)=>t in e?J(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,x=(e,t)=>{for(var r in t||(t={}))Q.call(t,r)&&I(e,r,t[r]);if(j)for(var r of j(t))W.call(t,r)&&I(e,r,t[r]);return e},U=(e,t)=>H(e,K(t)),S=typeof window==\"undefined\"?Z:_,h=({isPlaying:e,duration:t,startAt:r=0,updateInterval:n=0,onComplete:i,onUpdate:y})=>{let[p,g]=X(r),v=d(r*-1e3),s=d(null),m=d(null),f=d(null),o=d({elapsedTimeRef:0,startAtRef:r,durationRef:t,updateIntervalRef:n});o.current=U(x({},o.current),{durationRef:t,updateIntervalRef:n});let c=a=>{let u=a/1e3;if(m.current===null){m.current=u,s.current=requestAnimationFrame(c);return}let{durationRef:l,elapsedTimeRef:F,updateIntervalRef:C,startAtRef:b}=o.current,O=u-m.current,E=F+O;m.current=u,o.current=U(x({},o.current),{elapsedTimeRef:E});let M=b+(C===0?E:(E/C|0)*C),N=b+E,A=typeof l==\"number\"&&N>=l;g(A?l:M),A||(s.current=requestAnimationFrame(c))},R=()=>{s.current&&cancelAnimationFrame(s.current),f.current&&clearTimeout(f.current),m.current=null},P=Y(a=>{let u=typeof a==\"number\"?a:r;R(),o.current=U(x({},o.current),{elapsedTimeRef:0,startAtRef:u}),g(u),e&&(s.current=requestAnimationFrame(c))},[e,r]);return S(()=>{if(y==null||y(p),t&&p>=t){v.current+=t*1e3;let{shouldRepeat:a=!1,delay:u=0,newStartAt:l}=(i==null?void 0:i(v.current/1e3))||{};a&&(f.current=setTimeout(()=>P(l),u*1e3))}},[p,t]),S(()=>(e&&(s.current=requestAnimationFrame(c)),R),[e]),{elapsedTime:p,reset:P}};var q={easeInCubic:(e,t,r,n)=>(e/=n,r*e*e*e+t),easeOutCubic:(e,t,r,n)=>(e/=n,e--,r*(e*e*e+1)+t),linear:(e,t,r,n)=>r*e/n+t},V=q.easeOutCubic,L=e=>typeof e==\"function\"?e:q[e];var ee=(e,t)=>{if(typeof e==\"number\")return typeof t==\"number\"?t:2},$=(e,t)=>e.replace(/\\B(?=(\\d{3})+(?!\\d))/g,t),k=e=>(e.toString().split(\".\")[1]||\"\").length,te=(e,t)=>{let r=k(e),n=k(t||1);return r>=n?r:n},w=({isCounting:e=!1,start:t=0,end:r,duration:n,decimalPlaces:i=te(t,r),decimalSeparator:y=\".\",thousandsSeparator:p=\"\",onComplete:g,easing:v=V,formatter:s,updateInterval:m,onUpdate:f})=>{let o=ee(r,n),c=a=>{let u;if(o===0&&typeof r==\"number\")u=r;else if(typeof r==\"number\"&&typeof o==\"number\"){let b=L(v),O=af(c(a)):void 0});return{value:c(R),reset:P}};var B=r=>{var n=r,{children:e}=n,t=T(n,[\"children\"]);let i=w(t);return typeof e==\"function\"?e(i):i.value};B.displayName=\"CountUp\";export{B as CountUp,w as useCountUp};\n","import { ModalsKey } from '@/enums/modalsKey';\n\nimport styles from './styles.module.scss';\nimport { AnimatePresence } from 'framer-motion';\nimport Stories from '../..';\nimport { useModal } from '@/hooks/modals/useModal';\nimport { stories } from '@/constants/stories';\nimport { Story } from '../../props';\nimport { useMemo } from 'react';\nimport { Modal } from '@starsoft/common/components';\n\nexport default function StoriesModal() {\n const { handleContainer, isOpen, onClose } = useModal(ModalsKey.Story);\n const formattedStories: Story[] = useMemo(\n () =>\n stories.map(story => ({\n duration: 5000,\n type: 'image',\n url: story?.image,\n ...story,\n })),\n [],\n );\n\n return (\n \n onClose()}\n />\n
\n {isOpen && (\n \n \n \n )}\n
\n
\n );\n}\n","import { useCallback, useEffect, useState } from 'react';\nimport { UseStoriesProps } from './props';\nimport { useCountUp } from 'use-count-up';\nimport { useRouter } from 'next/router';\nimport { usePathname } from '../usePathname';\nimport { useSearchParams } from '../useSearchParams';\n\nexport function useStories({ stories }: UseStoriesProps) {\n const search = useSearchParams();\n const item = search.get('item') ?? 0;\n const [touchStartX, setTouchStartX] = useState(null);\n const [touchEndX, setTouchEndX] = useState(null);\n const minSwipeDistance: number = 50;\n const [current, setCurrent] = useState(Number(item));\n const { push } = useRouter();\n const pathname: string = usePathname();\n\n const handleNextStory = useCallback(() => {\n if (current == stories.length - 1) {\n push(pathname.split('?')[0]);\n return;\n }\n\n setCurrent(prev => prev + 1);\n }, [current, stories, pathname, push]);\n\n const handlePreviousStory = useCallback(() => {\n if (current == 0) {\n return;\n }\n\n setCurrent(prev => prev - 1);\n }, [current]);\n\n const handleTouchStart = (e: React.TouchEvent) => {\n setTouchStartX(e.targetTouches[0].clientX);\n setTouchEndX(null);\n };\n\n const handleTouchMove = (e: React.TouchEvent) => {\n setTouchEndX(e.targetTouches[0].clientX);\n };\n\n const handleTouchEnd = () => {\n if (touchStartX === null || touchEndX === null) return;\n\n const distance: number = touchStartX - touchEndX;\n const isSwipe: boolean = Math.abs(distance) > minSwipeDistance;\n\n if (!isSwipe) return;\n\n if (distance > 0) {\n handleNextStory();\n } else {\n handlePreviousStory();\n }\n };\n\n const { value, reset } = useCountUp({\n decimalPlaces: 2,\n duration: 5,\n start: 5,\n isCounting: true,\n updateInterval: 0,\n end: 0,\n easing: 'linear',\n // onComplete: () => handleNextStory(),\n });\n\n function handleReset() {\n if (typeof window == 'undefined') {\n return;\n }\n reset();\n }\n\n useEffect(handleReset, [current, reset]);\n\n return {\n current,\n handleTouchEnd,\n handleNextStory,\n handleTouchMove,\n handleTouchStart,\n countdown: value,\n handlePreviousStory,\n };\n}\n","import { RootState } from '@/lib/store';\nimport { useSelector } from 'react-redux';\nimport { StoryButtonProps } from './props';\nimport styles from './styles.module.scss';\n\nexport default function StoryButton({ action, onClick }: StoryButtonProps) {\n const isAdminView: boolean = useSelector(\n (state: RootState) => state.theme.isAdminView,\n );\n\n return (\n \n );\n}\n","import dynamic from 'next/dynamic';\nimport { StoryImageProps } from './props';\nimport { SettingLayoutComponentId } from '@starsoft/common/models';\nimport useRewardStoriesVariant from '@/hooks/theme/variants/useRewardStoriesVariant';\n\nconst StoryImageV1 = dynamic(() => import('./V1'), { ssr: true });\nconst StoryImageV2 = dynamic(() => import('./V2'), { ssr: true });\n\nexport default function StoryImage({ ...props }: StoryImageProps): JSX.Element {\n const version: string = useRewardStoriesVariant();\n\n switch (version?.toString()) {\n case SettingLayoutComponentId.StoriesV1.toString():\n return ;\n case SettingLayoutComponentId.StoriesV2.toString():\n return ;\n default:\n return ;\n }\n}\n","import { useComponentVariant } from '@/hooks/theme/useComponentVariant';\nimport { SettingLayoutComponentId } from '@starsoft/common/models';\nimport dynamic from 'next/dynamic';\nimport { ComponentTypeId } from '@starsoft/common/models/setting/layout/component/type/types.enum';\nimport { StoriesHeaderProps } from './props';\nimport useRewardStoriesVariant from '@/hooks/theme/variants/useRewardStoriesVariant';\n\nconst StoriesHeaderV1 = dynamic(() => import('./V1'), { ssr: true });\nconst StoriesHeaderV2 = dynamic(() => import('./V2'), { ssr: true });\n\nexport default function StoriesHeader({\n ...props\n}: StoriesHeaderProps): JSX.Element {\n const version: string = useRewardStoriesVariant();\n\n switch (version?.toString()) {\n case SettingLayoutComponentId.StoriesV1.toString():\n return ;\n case SettingLayoutComponentId.StoriesV2.toString():\n return ;\n default:\n return ;\n }\n}\n","import { ModalsKey } from '@/enums/modalsKey';\nimport { useModal } from '@/hooks/modals/useModal';\nimport { useStories } from '@/hooks/useStories';\nimport { useEffect, useMemo } from 'react';\nimport StoryButton from './Button';\nimport StoryContent from './Content';\nimport StoriesHeader from './Header';\nimport { StoriesProps } from './props';\nimport styles from './styles.module.scss';\n\nexport default function Stories({ stories, onStoryChange }: StoriesProps) {\n const { onClose } = useModal(ModalsKey.Story);\n\n const {\n current,\n countdown,\n handleTouchEnd,\n handleTouchMove,\n handleNextStory,\n handleTouchStart,\n handlePreviousStory,\n } = useStories({ stories });\n\n const Stories = useMemo(\n () =>\n stories.map((story, index) => (\n \n )),\n [stories, current],\n );\n\n function handleCloseStories() {\n if (current == stories.length - 1) {\n setTimeout(() => {\n onClose();\n }, 4600);\n }\n }\n\n useEffect(() => {\n if (onStoryChange) {\n onStoryChange(current);\n }\n }, [current, onStoryChange]);\n\n useEffect(handleCloseStories, [current, onClose, stories.length]);\n\n return (\n \n \n \n {Stories}\n \n\n \n \n \n );\n}\n","// extracted by mini-css-extract-plugin\nmodule.exports = {\"container\":\"styles_container__zbG84\",\"container--left\":\"styles_container--left__8Wlwk\",\"container--right\":\"styles_container--right__SfJLc\",\"container--admin\":\"styles_container--admin__1kGFD\",\"skeleton-animation\":\"styles_skeleton-animation__5tlro\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"container\":\"styles_container__zGGbU\",\"container__close\":\"styles_container__close__dqGcH\",\"container__image\":\"styles_container__image__7QFte\",\"skeleton-animation\":\"styles_skeleton-animation__AA9Tf\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"container\":\"styles_container__wV8je\",\"container__content\":\"styles_container__content__F_Oeh\",\"skeleton-animation\":\"styles_skeleton-animation__faAE8\"};"],"names":["J","Object","prototype","hasOwnProperty","propertyIsEnumerable","defineProperty","H","defineProperties","K","getOwnPropertyDescriptors","j","getOwnPropertySymbols","Q","W","I","e","t","r","enumerable","configurable","writable","value","x","call","U","S","window","react__WEBPACK_IMPORTED_MODULE_0__","useEffect","useLayoutEffect","h","isPlaying","duration","startAt","updateInterval","n","onComplete","i","onUpdate","y","p","g","useState","v","useRef","s","m","f","o","elapsedTimeRef","startAtRef","durationRef","updateIntervalRef","current","c","a","u","requestAnimationFrame","l","F","C","b","E","M","N","A","R","cancelAnimationFrame","clearTimeout","P","useCallback","shouldRepeat","delay","newStartAt","setTimeout","elapsedTime","reset","q","easeInCubic","easeOutCubic","linear","V","L","ee","$","replace","k","toString","split","length","te","w","isCounting","start","end","decimalPlaces","decimalSeparator","thousandsSeparator","easing","formatter","Math","round","toFixed","StoriesModal","handleContainer","isOpen","onClose","useModal","ModalsKey","Story","formattedStories","useMemo","stories","map","story","type","url","image","react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__","jsxs","Modal","open","jsx","className","concat","styles","onClick","div","AnimatePresence","mode","Stories","StoryButton","param","action","isAdminView","useSelector","state","theme","jsx_runtime","StoryImageV1","dynamic","Promise","all","__webpack_require__","then","bind","ssr","StoryImageV2","StoryImage","props","version","useRewardStoriesVariant","SettingLayoutComponentId","StoriesV1","StoriesV2","StoriesHeaderV1","StoriesHeaderV2","StoriesHeader","onStoryChange","countdown","handleTouchEnd","handleTouchMove","handleNextStory","handleTouchStart","handlePreviousStory","useStories","search","item","useSearchParams","get","touchStartX","setTouchStartX","touchEndX","setTouchEndX","setCurrent","Number","push","useRouter","pathname","usePathname","prev","useCountUp","distance","abs","targetTouches","clientX","index","StoryContent","isCurrent","onTouchStart","onTouchMove","onTouchEnd","count","style","transform","module","exports"],"sourceRoot":""}