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AMA,CAELnG,QAAS,IAAM8E,EAAOoB,KAAK,KAC3BnK,IAAK,kBACLsI,IAAI,MACJ7I,MAAO,IACPC,OAAQ,KAIF,QAAT1D,IACC,SAACoO,IAAMA,CAELnG,QAAS,IAAM8E,EAAOoB,KAAK,KAC3BnK,IAAK,uBACLsI,IAAI,MACJ7I,MAAO,IACPC,OAAQ,SAKd,SAAC4G,EAAQA,KAGX,SAACrK,MAAAA,CACCgI,QAAS,IAAM+F,IACf1L,UAAU,0BACVkF,MAAO,CACL6G,MAAO,KACPC,IAAK,M,UAGP,SAACpG,EAAAA,EAASA,CAAC9H,MAAiB,UAAVJ,EAAoB,OAAS,OAAQG,KAAM,OAG9DmN,GAEGE,GAEAE,GAGAE,GAEAE,GARF,SAAC7N,MAAAA,CAAIqC,UAAU,gB,SAAiBzC,KAWhC,qB,SAAGA,IAGJsM,IACC,SAAClM,MAAAA,CAAIqC,UAAU,sB,UACb,UAACrC,MAAAA,C,WACC,SAACuM,IAAAA,CAAElK,UAAU,qB,SAAqB,gBAClC,SAACmK,EAAAA,EAAIA,CAACE,MAAO,IAAKD,SAAmB,QAAT1M","sources":["webpack://_N_E/./src/components/Button/Content.tsx","webpack://_N_E/./src/components/Button/index.tsx","webpack://_N_E/./src/lib/cloudflareImageResize.ts","webpack://_N_E/./src/components/Image/Image.tsx","webpack://_N_E/./src/components/Modal/index.tsx","webpack://_N_E/./src/lib/object.ts","webpack://_N_E/./src/lib/tawk-to.ts","webpack://_N_E/./src/modules/Auth/AuthLogo.tsx","webpack://_N_E/./src/modules/Auth/AuthLayoutDesktop.tsx"],"sourcesContent":["import { useSystemStore } from \"components/PageHeader/systemStore\";\nimport React, { ReactNode } from \"react\";\nimport ClipLoader from \"react-spinners/ClipLoader\";\nimport { Variant, BtnState } from \".\";\n\ntype Props = {\n variant?: Variant;\n state?: BtnState;\n children: ReactNode;\n};\n\nconst ButtonContent: React.FC = ({\n variant = \"primary\",\n state = \"active\",\n children,\n}) => {\n const themeMode = useSystemStore((state) => state.theme);\n\n return (\n <>\n {state === \"loading\" ? (\n
\n \n
\n ) : (\n children\n )}\n \n );\n};\n\nexport default ButtonContent;\n","import React, { ReactNode } from \"react\";\nimport Content from \"./Content\";\nimport { Route } from \"nextjs-routes\";\nimport { ObjectOmit } from \"lib/object\";\n\nexport type Variant =\n | \"primary\"\n | \"primary_outlined\"\n | \"primary_05\"\n | \"primary_40\"\n | \"secondary\"\n | \"secondary_transparant\"\n | \"secondary_white\"\n | \"secondary_gray\"\n | \"secondary_gray_2\"\n | \"white\"\n | \"white_2\"\n | \"green\"\n | \"red\"\n | \"red_2\"\n | \"black\"\n | \"yellow\"\n | \"orange\"\n | \"green_transparant\"\n | \"transparant\"\n | \"gray_transparant\"\n | \"white_transparant\";\nexport type Size = \"small\" | \"medium\" | \"large\";\nexport type BtnState = \"active\" | \"disabled\" | \"loading\";\nexport type RoundedSize = \"small\" | \"medium\" | \"large\" | \"full\";\ntype HtmlBtnProps = React.ButtonHTMLAttributes;\ntype Props = {\n size?: Size;\n variant?: Variant;\n state?: BtnState;\n rounded?: RoundedSize;\n className?: string;\n path?: Route | string;\n isOutside?: boolean;\n isFull?: boolean;\n children: ReactNode;\n};\n\nexport const styles: {\n base: string;\n size: { [s in Size]: string };\n rounded: { [r in RoundedSize]: string };\n} & {\n [v in Variant]: {\n [v in BtnState]: string;\n };\n} = {\n base: \"border-2 items-center inline-flex justify-center hover:no-underline\",\n size: {\n // large: \"h-48 text-b1 font-bold px-18\",\n // update height button large\n large: \"h-40 text-b1 font-bold px-18\",\n medium: \"h-36 text-b2 font-medium px-16\",\n small: \"h-24 text-c1 font-medium px-14\",\n },\n primary: {\n active: \"bg-purple-50 border-purple-50 text-white_to_white\",\n disabled:\n \"bg-neutral20_to_dark30 border-neutral20_to_dark30 text-neutral-40 cursor-not-allowed\",\n loading: \"bg-purple-50 border-purple-50\",\n },\n primary_outlined: {\n active: \"bg-transparent border-transparent text-purple-50\",\n disabled:\n \"bg-transparent border-transparent text-purple-50 cursor-not-allowed\",\n loading: \"bg-transparent border-transparent\",\n },\n primary_05: {\n active: \"bg-purple-05 border-purple-05 text-black_to_black\",\n disabled:\n \"bg-neutral20_to_dark30 border-neutral20_to_dark30 text-neutral-40 cursor-not-allowed\",\n loading: \"bg-purple-05 border-purple-05\",\n },\n primary_40: {\n active: \"bg-purple-40 border-purple-40 text-white_to_white\",\n disabled:\n \"bg-neutral20_to_dark30 border-neutral20_to_dark30 text-neutral-40 cursor-not-allowed\",\n loading: \"bg-purple-40 border-purple-40\",\n },\n secondary: {\n active: \"bg-white border-purple-50 hover:bg-purple-05 !text-purple-50\",\n disabled:\n \"bg-neutral-10 border-neutral-40 text-neutral-40 cursor-not-allowed\",\n loading: \"bg-white border-purple-50 !text-purple-50\",\n },\n secondary_transparant: {\n active: \"bg-transparent border-purple-50 !text-purple-50\",\n disabled:\n \"bg-neutral-10 border-neutral-40 text-neutral-40 cursor-not-allowed\",\n loading: \"bg-transparent border-purple-50 !text-purple-50\",\n },\n secondary_white: {\n active: \"bg-transparent border-white !text-white\",\n disabled:\n \"bg-transparent border-white !text-white opacity-30 cursor-not-allowed\",\n loading: \"bg-transparent border-white !text-white\",\n },\n secondary_gray: {\n active: \"bg-transparent border-neutral-40 text-neutral-60\",\n disabled:\n \"bg-transparent border-neutral-40 text-neutral-80 opacity-30 cursor-not-allowed\",\n loading: \"bg-transparent border-neutral-40 text-neutral-80\",\n },\n secondary_gray_2: {\n active: \"bg-white_to_black border-neutral-40 text-neutral-60\",\n disabled:\n \"bg-white_to_black border-neutral-40 text-neutral-80 opacity-30 cursor-not-allowed\",\n loading: \"bg-white_to_black border-neutral-40 text-neutral-80\",\n },\n green_transparant: {\n active: \"bg-transparent border-none text-green-70\",\n disabled: \"text-neutral-40 cursor-not-allowed\",\n loading: \"bg-transparent text-green-70\",\n },\n transparant: {\n active: \"bg-transparent !border-0 text-black_to_black\",\n disabled:\n \"bg-transparent !border-0 text-black_to_black opacity-30 cursor-not-allowed\",\n loading: \"bg-transparent !border-0 text-black_to_black\",\n },\n gray_transparant: {\n active:\n \"bg-[#00000066] !border-0 text-white_to_white !text-b2 !font-normal\",\n disabled:\n \"bg-[#00000066] opacity-[0.24] !border-0 text-white_to_white !text-b2 !font-normal cursor-not-allowed\",\n loading:\n \"bg-[#00000066] !border-0 text-white_to_white !text-b2 !font-normal\",\n },\n white: {\n active: \"bg-white_to_white border-white_to_dark20 text-black_to_black\",\n disabled:\n \"bg-neutral-10 border-neutral-10 text-neutral-40 cursor-not-allowed\",\n loading: \"bg-white_to_white border-white_to_dark20 text-black_to_black\",\n },\n white_2: {\n active: \"bg-white_to_white border-white_to_white text-black_to_black\",\n disabled:\n \"bg-neutral-10 border-neutral-10 text-neutral-40 cursor-not-allowed\",\n loading: \"bg-white_to_white border-white_to_white text-black_to_black\",\n },\n white_transparant: {\n active: \"bg-transparent border-white text-white\",\n disabled: \"text-neutral-40 cursor-not-allowed\",\n loading: \"bg-transparent border-white text-white\",\n },\n green: {\n active: \"bg-green-10 border-green-70 text-green-70\",\n disabled:\n \"bg-neutral-20 border-neutral20_to_dark30 text-neutral-40 cursor-not-allowed\",\n loading: \"bg-green-10 border-green-70\",\n },\n red: {\n active: \"bg-red-10 border-red-70 text-red-70\",\n disabled:\n \"bg-neutral-20 border-neutral20_to_dark30 text-neutral-40 cursor-not-allowed\",\n loading: \"bg-red-10 border-red-70\",\n },\n red_2: {\n active: \"bg-red-50 border-red-50 text-white_to_white\",\n disabled:\n \"bg-neutral-10 border-neutral-10 text-neutral-40 cursor-not-allowed\",\n loading: \"bg-red-50 border-red-50\",\n },\n black: {\n active: \"bg-black_to_black border-black_to_black text-white_to_white\",\n disabled:\n \"bg-neutral-10 border-neutral-10 text-neutral-40 cursor-not-allowed\",\n loading: \"bg-black_to_black border-black_to_black\",\n },\n orange: {\n active: \"bg-orange-50 border-orange-50 text-white\",\n disabled:\n \"bg-neutral-20 border-neutral20_to_dark30 text-neutral-40 cursor-not-allowed\",\n loading: \"bg-orange-10 border-orange-50\",\n },\n yellow: {\n active: \"bg-yellow-10 border-yellow-70 text-yellow-70\",\n disabled:\n \"bg-neutral-20 border-neutral20_to_dark30 text-neutral-40 cursor-not-allowed\",\n loading: \"bg-yellow-10 border-yellow-70\",\n },\n rounded: {\n small: \"rounded-sm\",\n medium: \"rounded-8\",\n large: \"rounded-lg\",\n full: \"rounded-full\",\n },\n};\n\nconst Button: React.FC = (props) => {\n const {\n size = \"medium\",\n variant = \"primary\",\n type = \"button\",\n state = \"active\",\n rounded = \"medium\",\n className = \"\",\n isFull,\n children,\n } = props;\n const roundedClass = styles[\"rounded\"][rounded];\n const btnStyles = `${styles.base} ${styles.size[size]} ${\n styles[variant][state]\n } ${roundedClass} ${isFull ? \"w-full\" : \"\"} ${className || \"\"}`;\n\n return (\n \n \n {children}\n \n \n );\n};\n\nexport default Button;\n","// import Const from \"../helpers/const\"\n\nimport { CONST } from \"./const\";\n\nexport type CloudflareOptions = {\n width?: number;\n height?: number;\n quality?: number;\n // more options\n //https://developers.cloudflare.com/images/image-resizing/url-format/#options\n};\n\nexport const isImageResizable = (sourceImage: string) => {\n const imageUrl = new URL(sourceImage);\n const imageHosts = CONST.IMAGE_HOSTS.split(\",\");\n\n return imageHosts.includes(imageUrl.host);\n};\n\nexport const resizeImageUrl = (\n sourceImage: string,\n options: CloudflareOptions\n) => {\n try {\n const imageUrl = new URL(sourceImage);\n\n if (isImageResizable(sourceImage)) {\n const pathname = imageUrl.pathname + imageUrl.search;\n\n const { width, height, quality } = options;\n\n let optionsText = width ? `width=${width}` : \"\";\n if (height) {\n optionsText += `,height=${height}`;\n }\n if (quality) {\n optionsText += `,quality=${quality}`;\n } else {\n optionsText += `,quality=75`;\n }\n if (width && height) {\n optionsText += `,fit=cover`;\n }\n if (width || height) {\n optionsText += `,format=auto`;\n }\n return `${imageUrl.origin}/cdn-cgi/image/${optionsText}${pathname}`;\n } else {\n return sourceImage;\n }\n } catch {\n return sourceImage;\n }\n};\n","import {\n CloudflareOptions,\n isImageResizable,\n resizeImageUrl,\n} from \"lib/cloudflareImageResize\";\n\nexport const Image: React.FC<\n CloudflareOptions & React.HTMLProps\n> = (props) => {\n const srcSet =\n props.src && isImageResizable(props.src)\n ? [1, 2, 3]\n .map(\n (i) =>\n `${resizeImageUrl(props.src, {\n width: props.width * i,\n height: props.height * i,\n })} ${i}x`\n )\n .join(\", \")\n : null;\n if (!props.src) return
;\n\n return (\n // @ts-ignore\n \n );\n};\n","import React, { ReactNode, useContext, useState } from \"react\";\nimport IconClose from \"../Icon/IconClose\";\nimport { useIsDesktop } from \"lib/device\";\nimport { isMoodleURL, useIsSubdomain, useIsTenant } from \"lib/host\";\nimport { motion } from \"framer-motion\";\nimport { useModalStore } from \"./modalStore\";\nimport { useSystemStore } from \"components/PageHeader/systemStore\";\n\nconst useOutsideClick = (callback: () => void) => {\n const ref = React.useRef();\n\n React.useEffect(() => {\n const handleClick = (event: any) => {\n if (ref.current && !(ref.current as any)?.contains(event.target)) {\n callback();\n }\n };\n\n document.addEventListener(\"click\", handleClick, true);\n\n return () => {\n document.removeEventListener(\"click\", handleClick, true);\n };\n }, [ref]);\n\n return ref;\n};\n\nexport type Props = {\n useParentRef?: any;\n isAlert?: boolean;\n isQuiz?: boolean;\n isShow?: boolean;\n isSearch?: boolean;\n isFullScreen?: boolean;\n isTopBorderTransparent?: boolean;\n contentStyles?: object;\n contentWidth?: number;\n isWidthScreen?: string;\n className?: string;\n childrenClassName?: string;\n contentClassName?: string;\n zIndex?: number;\n title?: string | ReactNode;\n onClose?(): void;\n onClickOutside?(): void;\n children: ReactNode;\n color?: string;\n hFull?: Boolean;\n bottomChildren?: ReactNode;\n customTitleElement?: ReactNode;\n};\n\nconst Modal: React.FC = ({\n useParentRef = null,\n isAlert = false,\n isQuiz = false,\n isShow,\n isSearch = false,\n isFullScreen,\n isTopBorderTransparent,\n className,\n childrenClassName,\n contentClassName,\n zIndex,\n contentStyles,\n contentWidth,\n isWidthScreen,\n title,\n onClose,\n onClickOutside,\n children,\n color = \"#19093A\",\n hFull = true,\n bottomChildren,\n customTitleElement,\n}) => {\n const isDesktop = useIsDesktop();\n const isSubdomainTenant = useIsSubdomain();\n const isTenantURL = useIsTenant();\n const isB2B = isTenantURL;\n const [isClosed, setisClosed] = useState(false);\n // const { openModal } = useModalStore((state) => state);\n const isSijuleTenant =\n typeof window !== \"undefined\" && isMoodleURL(window.location.hostname);\n const theme = useSystemStore((state) => state.theme);\n const screen = typeof window !== \"undefined\" && window.innerWidth;\n const isMobile = screen < 770;\n\n const transitionDuration = 700;\n\n const onCloseModal = () => {\n // openModal(false);\n setisClosed(true);\n setTimeout(() => {\n onClose();\n setisClosed(false);\n }, transitionDuration);\n };\n\n const ref = useOutsideClick(() => {\n if (onClickOutside) {\n setisClosed(true);\n setTimeout(() => {\n onClickOutside();\n setisClosed(false);\n }, transitionDuration);\n }\n });\n\n // if (isSearch) {\n // openModal(isSearch);\n // }\n\n if (isShow) {\n return (\n \n \n \n {customTitleElement ?? (\n \n {title && (\n

{title}

\n )}\n {onClose && (\n \n \n \n )}\n
\n )}\n\n
{children}
\n\n {bottomChildren && (\n \n {bottomChildren}\n \n )}\n \n \n\n \n \n );\n }\n return null;\n};\n\nexport default Modal;\n","// Merge a `source` object to a `target` recursively\nexport const ObjectDeepMerge = (\n target: Record,\n source: Record\n) => {\n // Iterate through `source` properties and if an `Object` set property to merge of `target` and `source` properties\n for (const key of Object.keys(source)) {\n if (source[key] instanceof Object)\n Object.assign(source[key], ObjectDeepMerge(target[key], source[key]));\n }\n\n // Join `target` and modified `source`\n Object.assign(target || {}, source);\n return target;\n};\n\n// omit keys from object\nexport const ObjectOmit = (obj: Record, keys: string[]) => {\n const result = { ...obj };\n keys.forEach(function (prop) {\n delete result[prop];\n });\n return result;\n};\n\n// sort array of object by key\nexport const ArrayObjectSortBy = >(\n array: Value[],\n key: string,\n isDesc?: boolean\n) => {\n if (array) {\n return array.sort(function (a: Value, b: Value) {\n if (isDesc) {\n if (key == \"created_date\") {\n //@ts-ignore\n return new Date(b[key]) - new Date(a[key]);\n } else {\n return b[key] - a[key];\n }\n } else {\n return a[key] - b[key];\n }\n });\n } else {\n return array;\n }\n};\n\n\n// reduce array with same objects\nexport const ReduceArrayFromDuplicate = (items: any[]) => {\n const filteredOption2 = Object.values(items.reduce((acc,cur)=>Object.assign(acc,{[cur.id]:cur}),{}));\n return filteredOption2\n}\n\n// generate object when not null\nexport const parseDataParams = (params) => {\n let newParams = {};\n for (let [k, v] of Object.entries(params)) {\n if (v) {\n newParams[k] = v;\n }\n }\n\n return newParams;\n};\n\n\n// suffle an array\nexport const ShuffleArray = (array: any) => {\n let currentIndex = array.length, randomIndex: number;\n\n // While there remain elements to shuffle.\n while (currentIndex > 0) {\n\n // Pick a remaining element.\n randomIndex = Math.floor(Math.random() * currentIndex);\n currentIndex--;\n\n // And swap it with the current element.\n [array[currentIndex], array[randomIndex]] = [\n array[randomIndex], array[currentIndex]];\n }\n\n return array;\n}\n\n\n// example raw: [\"a\",\"b\"], obj: {\"a\" : \"aaa\", \"b\" : \"bbb\", \"c\": \"ccc\"}\nexport const FilteredKeys = (raw: string[], obj: object) => {\n const filtered = Object.keys(obj)\n .filter(key => raw.includes(key))\n .reduce((obj, key) => {\n obj[key] = raw[key];\n return obj;\n }, {});\n return filtered\n}","import type { UserData } from \"../modules/Auth/authStore\";\n\nconst toggleView = (currentUser: UserData) => {\n const token = window?.localStorage?.getItem(\"token\");\n\n if (token) {\n // console.log(\"start tawk to \");\n // @ts-ignore\n window.Tawk_API.showWidget();\n // @ts-ignore\n window.Tawk_API.start();\n } else {\n // console.log(\"shutdowning tawk to \");\n // @ts-ignore\n if (window.Tawk_API && typeof window.Tawk_API.shutdown === 'function') {\n // console.log(\"==shutdown ok\");\n // @ts-ignore\n window.Tawk_API.shutdown();\n // @ts-ignore\n window.Tawk_API.hideWidget();\n }\n }\n};\n\nexport const checkTawkTo = (currentUser: UserData) => {\n // Ensure the Tawk object has initalized\n // @ts-ignore\n if (window.$_Tawk && window.$_Tawk.init) {\n toggleView(currentUser);\n } else {\n // If the Tawk object didn't initilize, use a differnt method of loading\n // @ts-ignore\n if (window.Tawk_API) {\n // @ts-ignore\n window.Tawk_API.onLoad = function () {\n toggleView(currentUser);\n };\n }\n }\n};\n","import {\n getSubDomain,\n isBlueBirdURL,\n isSubdomainBluebird,\n useIsSubdomain,\n} from \"lib/host\";\nimport useTranslation from \"next-translate/useTranslation\";\nimport { useGetSubdomainData } from \"modules/Tenant/homeTenantApi\";\nimport { getCookie, randomizeMinMax } from \"lib/helper\";\nimport { Image } from \"components/Image/Image\";\nimport { Logo } from \"components/Logo\";\nimport { useAuthStore } from \"./authStore\";\nimport { useEffect } from \"react\";\nimport { isBrowser } from \"lib/ssr\";\nimport { useIsDesktop } from \"lib/device\";\nimport { CONST } from \"lib/const\";\nimport { b2cSubdomain } from \"./AuthLoginApp\";\nimport Images from \"next/image\";\nimport { useSystemStore } from \"components/PageHeader/systemStore\";\nimport React from \"react\";\n\nexport const AuthLogo: React.FC<{ className?: React.ReactNode }> = ({\n className = \"mb-16\",\n}) => {\n const { tenantData, setTenantData } = useAuthStore((state) => ({\n tenantData: state.tenantData,\n setTenantData: state.setTenantData,\n }));\n const theme = useSystemStore((state) => state.theme);\n const { t } = useTranslation(\"common\");\n const quotesArrayInLang = t(\"quotes\", {}, { returnObjects: true });\n const indexRandomized = randomizeMinMax(0, quotesArrayInLang.length);\n\n const isDesktop = useIsDesktop();\n const subDomain = isBrowser() ? getSubDomain(window.location.hostname) : null;\n // @ts-ignore\n const getSubdomainAPI = useGetSubdomainData();\n const slug: string = CONST.IS_DEV ? \"ares-gate\" : \"gate\";\n\n const referralCode =\n getCookie(\"ref_code_gk\") && getCookie(\"ref_code_gk\") !== \"null\"\n ? getCookie(\"ref_code_gk\")\n : typeof window !== \"undefined\"\n ? new URLSearchParams(window.location.search).get(\"referral\")\n : \"\";\n\n useEffect(() => {\n // Prevent on B2C to hit API\n var b2cPlatform = b2cSubdomain.includes(subDomain);\n if (\n !b2cPlatform &&\n // || referralCode == \"trenggalekkab\"\n\n tenantData?.image_url == undefined\n ) {\n getSubdomainAPI.doFetch(\n {\n slug:\n window.location.hostname === \"e-learning.bluebirdgroup.com\"\n ? \"bluebird\"\n : // : referralCode == \"trenggalekkab\"\n // ? referralCode\n subDomain,\n },\n {\n onSuccess(data) {\n /// Save to zustand\n setTenantData(data[\"data\"]);\n },\n }\n );\n }\n }, [referralCode]);\n\n const isBlueBirdTenant =\n typeof window !== \"undefined\" &&\n (isBlueBirdURL(window.location.hostname) ||\n isSubdomainBluebird(window.location.hostname));\n\n return (\n
\n
\n {tenantData?.image_url != \"\" &&\n tenantData?.image_url != undefined &&\n subDomain !== slug ? (\n isDesktop ? (\n
\n \n

Powered by

\n \n
\n ) : (\n <>\n {isBlueBirdTenant ? (\n
\n \n
\n ) : (\n
\n \n
\n

Powered by

\n \n
\n
\n )}\n \n )\n ) : (\n \n )}\n\n
\n {isBlueBirdTenant ? (\n
\n {/* Selamat Datang di Bluebird Academy E-Learning */}\n Selamat Datang di Portal BirdKembang\n
\n ) : (\n <>\n
\n \n \n )}\n
\n
\n \n );\n};\n\nexport const AuthLogoMaluku: React.FC<{ className?: React.ReactNode }> = ({\n className = \"mb-16\",\n}) => {\n const { tenantData, setTenantData } = useAuthStore((state) => ({\n tenantData: state.tenantData,\n setTenantData: state.setTenantData,\n }));\n const isDesktop = useIsDesktop();\n const subDomain = isBrowser() ? getSubDomain(window.location.hostname) : null;\n // @ts-ignore\n const getSubdomainAPI = useGetSubdomainData();\n const slug: string = CONST.IS_DEV ? \"ares-maluku-gate\" : \"maluku-gate\";\n\n const referralCode =\n getCookie(\"ref_code_gk\") && getCookie(\"ref_code_gk\") !== \"null\"\n ? getCookie(\"ref_code_gk\")\n : typeof window !== \"undefined\"\n ? new URLSearchParams(window.location.search).get(\"referral\")\n : \"\";\n\n useEffect(() => {\n // Prevent on B2C to hit API\n var b2cPlatform = b2cSubdomain.includes(subDomain);\n if (\n !b2cPlatform &&\n // || referralCode == \"trenggalekkab\"\n\n tenantData?.image_url == undefined\n ) {\n getSubdomainAPI.doFetch(\n {\n slug:\n window.location.hostname === \"e-learning.bluebirdgroup.com\"\n ? \"bluebird\"\n : // : referralCode == \"trenggalekkab\"\n // ? referralCode\n subDomain,\n },\n {\n onSuccess(data) {\n /// Save to zustand\n setTenantData(data[\"data\"]);\n },\n }\n );\n }\n }, [referralCode]);\n const theme = useSystemStore((state) => state.theme);\n\n // return ;\n\n return (\n <>\n {theme == \"light\" && (\n \n )}\n\n {theme == \"dark\" && (\n \n )}\n \n );\n};\n\nexport const LogoMaluku = () => {\n return (\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n );\n};\n","import { useRouter } from \"next/router\";\nimport { useRedirectPreviousPath } from \"./authHooks\";\nimport IconClose from \"components/Icon/IconClose\";\nimport {\n getSubDomain,\n isBlueBirdURL,\n isGateURL,\n isJambiURL,\n isMalukuURL,\n isMuaroJambiURL,\n isPesawaranURL,\n isSubdomainBluebird,\n isTrenggalekURL,\n useIsSubdomain,\n} from \"lib/host\";\nimport { isBrowser } from \"lib/ssr\";\nimport { useEffect } from \"react\";\nimport { useGetSubdomainData } from \"modules/Tenant/homeTenantApi\";\nimport { useAuthStore } from \"./authStore\";\nimport { AuthLogo, AuthLogoMaluku } from \"./AuthLogo\";\nimport { DownloadAppBanner } from \"components/Banner/DownloadAppBanner\";\nimport Images from \"next/image\";\nimport { useSystemStore } from \"components/PageHeader/systemStore\";\nimport useTranslation from \"next-translate/useTranslation\";\nimport { getCookie, randomizeMinMax } from \"lib/helper\";\nimport { Logo } from \"components/Logo\";\n\nexport const AuthLayoutDesktop: React.FC<{ children: React.ReactNode }> = ({\n children,\n}) => {\n const { t } = useTranslation(\"common\");\n const quotesArrayInLang = t(\"quotes\", {}, { returnObjects: true });\n const indexRandomized = randomizeMinMax(0, quotesArrayInLang.length);\n const theme = useSystemStore((state) => state.theme);\n const router = useRouter();\n const { previousPath } = useRedirectPreviousPath();\n const isSubdomainTenant = useIsSubdomain();\n const subDomain =\n isBrowser() && typeof window !== \"undefined\"\n ? getSubDomain(window.location.hostname)\n : null;\n const { tenantData, setTenantData } = useAuthStore((state) => ({\n tenantData: state.tenantData,\n setTenantData: state.setTenantData,\n }));\n // @ts-ignore\n const getSubdomainAPI = useGetSubdomainData();\n\n const referralCode =\n getCookie(\"ref_code_gk\") && getCookie(\"ref_code_gk\") !== \"null\"\n ? getCookie(\"ref_code_gk\")\n : typeof window !== \"undefined\"\n ? new URLSearchParams(window.location.search).get(\"referral\")\n : \"\";\n\n useEffect(() => {\n // Prevent on B2C to hit API\n if (\n isSubdomainTenant &&\n // || referralCode == \"trenggalekkab\"\n tenantData?.image_url == null\n ) {\n getSubdomainAPI.doFetch(\n {\n slug:\n window.location.hostname === \"e-learning.bluebirdgroup.com\"\n ? \"bluebird\"\n : // : referralCode == \"trenggalekkab\"\n // ? referralCode\n subDomain,\n },\n {\n onSuccess(data) {\n /// Save to zustand\n setTenantData(data[\"data\"]);\n // @ts-ignore\n // setImageUrl(\n // \"https://s.gokampus.com/cdn-cgi/image/,quality=75/business/logo-summarecon-agung.png\"\n // );\n },\n }\n );\n }\n }, [referralCode]);\n const isGate =\n typeof window !== \"undefined\" && isGateURL(window.location.hostname);\n\n // only for maluku tenant\n const isMalukuTenant =\n typeof window !== \"undefined\" && isMalukuURL(window.location.hostname);\n\n // Only for pesawaran tenant\n const isPesawaranTenant =\n typeof window !== \"undefined\" && isPesawaranURL(window.location.hostname);\n\n // Only for trenggalek tenant\n const isTrenggalekTenant =\n typeof window !== \"undefined\" && isTrenggalekURL(window.location.hostname);\n\n const isMuaroJambiTenant =\n typeof window !== \"undefined\" && isMuaroJambiURL(window.location.hostname);\n const isJambiKotaTenant =\n typeof window !== \"undefined\" && isJambiURL(window.location.hostname);\n\n const onClickArrow = () => {\n // If any trigger from my-class and user not logged in\n var isUsingLoginAuthorize =\n previousPath.includes(\"my-class\") || previousPath.includes(\"course\");\n\n // Kursus terbaik tentang\n var isHomeUrl = previousPath === \"home\";\n\n router.push({\n pathname: isUsingLoginAuthorize || isHomeUrl ? \"/\" : previousPath,\n });\n };\n\n const isBlueBirdTenant =\n typeof window !== \"undefined\" &&\n (isBlueBirdURL(window.location.hostname) ||\n isSubdomainBluebird(window.location.hostname));\n\n return (\n
\n {/* desktop view */}\n
\n {/* */}\n
\n {isMalukuTenant ? (\n <>\n
\n <>\n {theme == \"light\" && (\n \n )}\n {theme == \"dark\" && (\n \n )}\n \n
\n
\n <>\n {theme == \"light\" && (\n \n )}\n {theme == \"dark\" && (\n \n )}\n \n
\n \n ) : isPesawaranTenant ? (\n <>\n
\n <>\n {theme == \"light\" && (\n \n )}\n {theme == \"dark\" && (\n \n )}\n \n
\n
\n
\n {theme == \"light\" && (\n \n )}\n {theme == \"dark\" && (\n \n )}\n
\n
\n \n ) : isTrenggalekTenant ? (\n // || referralCode == \"trenggalekkab\"\n <>\n
\n <>\n {theme == \"light\" && (\n \n )}\n {theme == \"dark\" && (\n \n )}\n \n
\n
\n
\n {theme == \"light\" && (\n \n )}\n {theme == \"dark\" && (\n \n )}\n
\n
\n \n ) : isMuaroJambiTenant ? (\n <>\n
\n <>\n {theme == \"light\" && (\n \n )}\n {theme == \"dark\" && (\n \n )}\n \n
\n
\n
\n {theme == \"light\" && (\n \n )}\n {theme == \"dark\" && (\n \n )}\n
\n
\n \n ) : isJambiKotaTenant ? (\n <>\n
\n <>\n {theme == \"light\" && (\n \n )}\n {theme == \"dark\" && (\n \n )}\n \n
\n
\n
\n {theme == \"light\" && (\n \n )}\n {theme == \"dark\" && (\n \n )}\n
\n
\n \n ) : (\n \n )}\n\n
\n
\n onClickArrow()}\n className=\"absolute cursor-pointer\"\n style={{\n right: \"4%\",\n top: \"4%\",\n }}\n >\n \n
\n\n
\n
\n {children}\n
\n
\n
\n
\n
\n
\n {/* mobile view */}\n
\n
{/* */}
\n \n {isMalukuTenant ? (\n
\n {theme == \"light\" && (\n router.push(\"/\")}\n src={\"/maluku/logo2.png\"}\n alt=\"app\"\n width={152}\n height={25}\n />\n )}\n\n {theme == \"dark\" && (\n router.push(\"/\")}\n src={\"/maluku/logo-dark-ver.png\"}\n alt=\"app\"\n width={152}\n height={25}\n />\n )}\n
\n ) : isPesawaranTenant ? (\n
\n {theme == \"light\" && (\n router.push(\"/\")}\n src={\"/pesawaran/logo.png\"}\n alt=\"app\"\n width={152}\n height={25}\n />\n )}\n\n {theme == \"dark\" && (\n router.push(\"/\")}\n src={\"/pesawaran/logo-dark.svg\"}\n alt=\"app\"\n width={152}\n height={25}\n />\n )}\n
\n ) : isTrenggalekTenant ? (\n // || referralCode == \"trenggalekkab\"\n
\n {theme == \"light\" && (\n router.push(\"/\")}\n src={\"/trenggalek/logo.png\"}\n alt=\"app\"\n width={152}\n height={25}\n />\n )}\n\n {theme == \"dark\" && (\n router.push(\"/\")}\n src={\"/trenggalek/logo-dark.svg\"}\n alt=\"app\"\n width={152}\n height={25}\n />\n )}\n
\n ) : isMuaroJambiTenant ? (\n
\n {theme == \"light\" && (\n router.push(\"/\")}\n src={\"/muaro-jambi/logo.png\"}\n alt=\"app\"\n width={152}\n height={25}\n />\n )}\n\n {theme == \"dark\" && (\n router.push(\"/\")}\n src={\"/muaro-jambi/logo-dark.svg\"}\n alt=\"app\"\n width={152}\n height={25}\n />\n )}\n
\n ) : isJambiKotaTenant ? (\n
\n {theme == \"light\" && (\n router.push(\"/\")}\n src={\"/jambi/logo.png\"}\n alt=\"app\"\n width={152}\n height={25}\n />\n )}\n\n {theme == \"dark\" && (\n router.push(\"/\")}\n src={\"/jambi/logo-dark.svg\"}\n alt=\"app\"\n width={152}\n height={25}\n />\n )}\n
\n ) : (\n \n )}\n\n onClickArrow()}\n className=\"absolute cursor-pointer\"\n style={{\n right: \"4%\",\n top: \"4%\",\n }}\n >\n \n
\n\n {isMalukuTenant ? (\n
{children}
\n ) : isPesawaranTenant ? (\n
{children}
\n ) : isTrenggalekTenant ? (\n // || referralCode == \"trenggalekkab\"\n
{children}
\n ) : isMuaroJambiTenant ? (\n
{children}
\n ) : isJambiKotaTenant ? (\n
{children}
\n ) : (\n <>{children}\n )}\n\n {isBlueBirdTenant && (\n
\n
\n

Powered by

\n \n
\n
\n )}\n \n \n \n );\n};\n"],"names":["variant","state","children","themeMode","useSystemStore","theme","div","ClipLoader","size","color","styles","base","large","medium","small","primary","active","disabled","loading","primary_outlined","primary_05","primary_40","secondary","secondary_transparant","secondary_white","secondary_gray","secondary_gray_2","green_transparant","transparant","gray_transparant","white","white_2","white_transparant","green","red","red_2","black","orange","yellow","rounded","full","props","type","className","isFull","roundedClass","btnStyles","button","ObjectOmit","role","Content","isImageResizable","sourceImage","imageUrl","URL","CONST","includes","host","resizeImageUrl","options","pathname","search","width","height","quality","optionsText","origin","Image","srcSet","src","map","i","join","img","useParentRef","isAlert","isQuiz","isShow","isSearch","isFullScreen","isTopBorderTransparent","childrenClassName","contentClassName","zIndex","contentStyles","contentWidth","isWidthScreen","title","onClose","onClickOutside","hFull","bottomChildren","customTitleElement","useIsDesktop","useIsSubdomain","isB2B","useIsTenant","isClosed","setisClosed","useState","isSijuleTenant","isMoodleURL","window","location","hostname","isMobile","innerWidth","onCloseModal","setTimeout","ref","callback","React","handleClick","event","current","contains","target","document","addEventListener","removeEventListener","useOutsideClick","motion","initial","opacity","animate","style","position","transition","duration","transitionDuration","maxHeight","maxWidth","marginTop","h3","onClick","IconClose","obj","keys","result","forEach","prop","ArrayObjectSortBy","array","key","isDesc","sort","a","b","Date","ReduceArrayFromDuplicate","items","Object","values","reduce","acc","cur","assign","id","toggleView","currentUser","localStorage","getItem","Tawk_API","showWidget","start","shutdown","hideWidget","checkTawkTo","$_Tawk","init","onLoad","AuthLogo","tenantData","setTenantData","useAuthStore","t","useTranslation","quotesArrayInLang","returnObjects","indexRandomized","randomizeMinMax","length","isDesktop","subDomain","isBrowser","getSubDomain","getSubdomainAPI","useGetSubdomainData","slug","referralCode","getCookie","URLSearchParams","get","useEffect","b2cSubdomain","undefined","image_url","doFetch","onSuccess","data","isBlueBirdTenant","isBlueBirdURL","isSubdomainBluebird","alt","name","p","Logo","useWhite","scale","dangerouslySetInnerHTML","__html","AuthLayoutDesktop","router","useRouter","previousPath","useRedirectPreviousPath","isSubdomainTenant","isGate","isGateURL","isMalukuTenant","isMalukuURL","isPesawaranTenant","isPesawaranURL","isTrenggalekTenant","isTrenggalekURL","isMuaroJambiTenant","isMuaroJambiURL","isJambiKotaTenant","isJambiURL","onClickArrow","isUsingLoginAuthorize","isHomeUrl","push","Images","right","top"],"sourceRoot":""}