1import{R as a,h as R,a as c,F as W,j as t,H as I,g as j}from"./app.627af7b6.js";import{H as z,T as F}from"./WhatsAppButton.6afccb9c.js";import{F as A}from"./Footer.39693726.js";import{m as D}from"./index.2dd88f64.js";import{u as H,F as M}from"./Fade.71c08766.js";import{u as B}from"./useMediaQuery.d8f69e14.js";import{G as d}from"./Grid2.d7aa8bb3.js";import{C as f}from"./Card.84379b0a.js";import{B as i}from"./Box.b2a60e9a.js";import{T as e}from"./Typography.a1637358.js";import{B as r}from"./Modal.95957054.js";import"./jsx-runtime_commonjs-proxy.3ae32752.js";import"./isMuiElement.68ecd9af.js";import"./DefaultPropsProvider.fe5a72c1.js";import"./Paper.b8eebb90.js";import"./Slide.d2b1515b.js";import"./List.596aa30a.js";import"./listItemTextClasses.a7a0b0ec.js";import"./index.252b9187.js";import"./LocationOn.e90743a4.js";import"./Phone.15ed17b9.js";import"./IconButton.1e7dab2f.js";import"./YouTube.1bfe797b.js";import"./getThemeProps.da735222.js";function $(){const p=a.useRef(!0),s=a.useCallback(()=>p.current,[]);return a.useEffect(()=>()=>void(p.current=!1),[]),s}function dt(p){const s=H(),w=B(s.breakpoints.up("laptop")),n=o=>{j.Inertia.visit(o)},x=new Date,S=x.getFullYear(),y=String(x.getMonth()+1).padStart(2,"0"),T=String(x.getDate()).padStart(2,"0"),l=`${S}-${y}-${T}`,[g,b]=a.useState(),[C,v]=a.useState();a.useEffect(()=>{R.get("https://servicecms.salokapark.app/api/saloka-at-night/getmaxdate").then(o=>{b(o.data.maxdate),v(o.data.opendate)}
1).catch(o=>{console.log(o)})},[]);const[m,u]=a.useState(!1);a.useEffect(()=>{l>=C&&l<=g?u(!0):u(!1)},[l,g]);const h=l=="2023-10-10",k=$();return c(W,{children:[t(I,{title:"Ticket"}),t(M,{in:k,timeout:1e3,style:{transitionDelay:k?"500ms":"0ms"},children:c("div",{children:[t(z,{}),w?t("div",{theme:s,children:t(d,{container:!0,direction:"column",spacing:0,sx:{marginTop:"100px",display:"flex",width:"100%",justifyContent:"center",alignItems:"center"},children:t(f,{elevation:3,sx:{width:"70%",borderRadius:"30px"},children:c(d,{container:!0,direction:"column",spacing:0,sx:{marginY:"30px",display:"flex",width:"100%",justifyContent:"center",alignItems:"center"},children:[t(i,{sx:{width:"100%",display:"flex",justifyContent:"center",alignItems:"center"},children:t(e,{sx:{fontSize:"28px",fontWeight:500},children:"Rencanakan kunjungan kamu dan keluarga ke Saloka!"})}),h?t(i,{sx:{width:"50%",minWidth:"550px",marginTop:"30px"},children:t(r,{onClick:()=>n("/ticket/pilih-ticket"),variant:"contained",color:"warning",sx:{width:"100%",height:"75px",borderRadius:"30px"},children:t(e,{sx:{fontSize:"24px",fontWeight:600,letterSpacing:2},children:"Ticket by Saloka"})})}):t(i,{sx:{width:"50%",minWidth:"550px",marginTop:"30px"},children:t(r,{onClick:()=>n("/ticket/pilih-ticket"),variant:"contained",color:"primary",sx:{width:"100%",height:"75px",borderRadius:"30px"},children:t(e,{sx:{fontSize:"24px",fontWeight:600,letterSpacing:2},children:"Ticket by Saloka"})})}),m?t(i,{sx:{width:"50%",minWidth:"550px",marginTop:"30px"},children:t(r,{onClick:()=>n("/tiket-saloka-at-night/pilih-ticket"),variant:"contained",color:"warning",sx:{width:"100%",height:"75px",borderRadius:"30px"},children:t(e,{sx:{fontSize:"24px",fontWeight:600,letterSpacing:2},children:"SALOKA AT NIGHT"})})}):null,h?t(i,{sx:{width:"50%",minWidth:"550px",marginTop:"30px"},children:t(r,{onClick:()=>n("/tiket-saloka/flash-sale"),variant:"contained",color:"primary",sx:{width:"100%",height:"75px",borderRadius:"30px"},children:t(e,{sx:{fontSize:"24px",fontWeight:600,letterSpacing:2},children:"Flash Sale 10.10"})})}):null,t(i,{sx:{width:"50%",minWidth:"550px",marginTop:"30px"},children:t(r,{onClick:()=>n("/group-ticket/pilih-ticket"),variant:"contained",color:"red",sx:{width:"100%",height:"75px",borderRadius:"30px",backgroundColor:"red.light"},children:t(e,{sx:{fontSize:"24px",fontWeight:600,letterSpacing:2},children:"Tiket Rombongan"})})}),t(i,{sx:{width:"40%",minWidth:"440px"},children:c(d,{container:!0,direction:"row",spacing:0,sx:{marginTop:"30px",display:"flex",width:"100%",justifyContent:"space-between",alignItems:"center"},children:[t(e,{children:"other ticket provider:"}),t(i,{children:t(r,{onClick:()=>n("/ticket/goers"),children:"Ticket by goers"})})]})})]})})})}):t("div",{theme:s,children:t(d,{container:!0,direction:"column",spacing:0,sx:{marginTop:"100px",display:"flex",width:"100%",justifyContent:"center",alignItems:"center"},children:t(f,{elevation:3,sx:{width:"80%",borderRadius:"30px",display:"flex",justifyContent:"center",alignItems:"center"},children:c(d,{container:!0,direction:"column",spacing:0,sx:{marginY:"30px",display:"flex",width:"90%",justifyContent:"center",alignItems:"center"},children:[t(i,{sx:{width:"100%",display:"flex",justifyContent:"center",alignItems:"center"},children:t(e,{sx:{textAlign:"center",fontSize:"18px",fontWeight:500},children:"Rencanakan kunjungan kamu dan keluarga ke Saloka!"})}),h?t(i,{sx:{width:"80%",marginTop:"30px"},children:t(r,{onClick:()=>n("/ticket/pilih-ticket"),variant:"contained",color:"warning",sx:{width:"100%",height:"75px",borderRadius:"30px"},children:t(e,{sx:{fontSize:"18px",fontWeight:600},children:"Ticket by Saloka"})})}):t(i,{sx:{width:"80%",marginTop:"30px"},children:t(r,{onClick:()=>n("/ticket/pilih-ticket"),variant:"contained",color:"primary",sx:{width:"100%",height:"75px",borderRadius:"30px"},children:t(e,{sx:{fontSize:"18px",fontWeight:600},children:"Ticket by Saloka"})})}),m?t(i,{sx:{width:"80%",marginTop:"30px"},children:t(r,{onClick:()=>n("/tiket-saloka-at-night/pilih-ticket"),variant:"contained",color:"warning",sx:{width:"100%",height:"75px",borderRadius:"30px"},children:t(e,{sx:{fontSize:"18px",fontWeight:600},children:"SALOKA AT NIGHT"})})}):null,h?t(i,{sx:{width:"80%",marginTop:"30px"},children:t(r,{onClick:()=>n("/tiket-saloka/flash-sale"),variant:"contained",color:"primary",sx:{width:"100%",height:"75px",borderRadius:"30px"},children:t(e,{sx:{fontSize:"18px",fontWeight:600},children:"Flash Sale 10.10"})})}):null,t(i,{sx:{width:"80%",marginTop:"30px"},children:t(r,{onClick:()=>n("/group-ticket/pilih-ticket"),variant:"contained",color:"red",sx:{width:"100%",height:"75px",borderRadius:"30px",backgroundColor:"red.light"},children:t(e,{sx:{fontSize:"18px",fontWeight:600},children:"Tiket Rombongan"})})}),t(i,{sx:{width:"80%"},children:c(d,{container:!0,direction:"column",spacing:0,sx:{marginTop:"30px",display:"flex",width:"100%",justifyContent:"space-between",alignItems:"center"},children:[t(e,{children:"other ticket provider:"}),t(i,{children:t(r,{onClick:()=>n("/ticket/goers"),children:"Ticket by goers"})})]})})]})})})}),t(i,{sx:{marginTop:"100px",width:"100%",height:"100%",backgroundImage:`url(${D[2]})`,backgroundRepeat:"no-repeat",backgroundSize:"cover"},children:t(A,{})}),t(F,{})]})})]})}export{dt as default,$ as useIsMounted};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.