import{jsx as o}from"react/jsx-runtime";import{E as d}from"./editor-provider-CwMLJaUa.js";import s from"react";import{E as c}from"./element-render-CNVmCtfj.js";import"uuid";import"./ui-components-B24mpb8o.js";import"next-themes";import"sonner";import"@radix-ui/react-label";import"class-variance-authority";import"@radix-ui/react-checkbox";import"lucide-react";import"@radix-ui/react-avatar";import"@radix-ui/react-dropdown-menu";import"@radix-ui/react-scroll-area";import"@radix-ui/react-popover";import"@radix-ui/react-radio-group";import"@radix-ui/react-dialog";import"@radix-ui/react-slot";import"clsx";import"@radix-ui/react-separator";import"@radix-ui/react-tooltip";import"@radix-ui/react-tabs";import"@radix-ui/react-accordion";import"@radix-ui/react-progress";import"@radix-ui/react-select";import"cmdk";import"@radix-ui/react-switch";import"react-day-picker";import"@radix-ui/react-slider";import"embla-carousel-react";import"@radix-ui/react-toggle-group";import"vaul";import"tailwind-merge";import"./use-editor-D8T8wKX0.js";import"./element-wrapper-Dx7uKeuw.js";import"./index-B_TQB0Un.js";import"./ActionsWrapper-B0x6l4Ay.js";import"@dnd-kit/sortable";import"@dnd-kit/utilities";import"./editor-button-CfVR9Tmb.js";import"./format-text-Bn-rZ97T.js";import"./editor-checkbox-NriWhn-U.js";import"./editor-dropdown-menu-item-CTOzV-k-.js";import"./editor-dropdown-menu-label-DIsG9Apn.js";import"./editor-heading-DrS955XT.js";import"./editor-icon-CstSklTu.js";import"lucide-react/dynamic";import"./editor-iframe-CazmhQnh.js";import"./editor-image-B304n_b2.js";import"./editor-input-BV9coAbt.js";import"./editor-label-BCd8YjLB.js";import"@inertiajs/react";import"./editor-paragraph-DHw6lKn-.js";import"./editor-radio-BKbh1Ju-.js";import"./editor-select-BFOWM7CS.js";import"./editor-span-C4swUTL_.js";import"./editor-textarea-8J5BayKc.js";import"./editor-video-DY4Aawa_.js";import"./dynamic-wrapper-C8l0N6yv.js";import"./dynamic-component-error-boundary-CZSziI0v.js";import"./dynamic-component-registry-DaVbBr1A.js";import"./best-course-CXdgw1Qm.js";import"./video-player-DuM4pi_Z.js";import"plyr-react";/* empty css                     */import"./course-search-input-Bn-RU39I.js";import"./search-input-Cc2brlhX.js";import"./debounce-CWHP_ANh.js";import"./route-D0xh7FtZ.js";import"./email-subscribe-input-LTZJb-W8.js";import"./subscribe-input-DOZ_pHNC.js";import"./use-lang-Cw_jKJYs.js";import"./button-gradient-primary-BCGlXQYd.js";import"./input-error-BbsDx4-P.js";import"./new-blogs-carousel-CXlHL6G8.js";import"./blog-card-1-BvxNMtXV.js";import"date-fns";import"embla-carousel-autoplay";import"./new-courses-1-DVUGWJxG.js";import"./course-card-5-6fOjdjSC.js";import"./new-courses-carousel-Cvixr0dP.js";import"./course-card-1-DFk6PmIT.js";import"./top-course-categories-1-C35MxfL1.js";import"./category-card-1-BeqP5_PO.js";import"./top-course-categories-2-J1lkkhja.js";import"./category-card-2-07fQlNb8.js";import"./top-course-categories-3-CpMDkJ5H.js";import"./course-card-2-BsrMWZf2.js";import"./tabs-DqFmhKFO.js";import"./top-course-categories-4-J1lkkhja.js";import"./top-course-categories-5-Fn6mocbt.js";import"./category-card-4-zAq0hcsN.js";import"./top-course-categories-6-hdmBSRfc.js";import"./top-courses-1-BOHnZtzT.js";import"./course-card-3-7q2dUiBN.js";import"./checkout-item-C6mQbTml.js";import"./top-courses-carousel-Cs6SytAh.js";import"./top-instructors-carousel-1-dT6SfO1e.js";import"./instructor-socials-BXNMa78k.js";import"./top-instructors-carousel-2-MeiZCQQ6.js";import"./top-sponsors-carousel-1-p3_LSnDe.js";import"./top-testimonials-carousel-1-D749RxtS.js";import"./review-card-1-gmrHyRh7.js";import"./top-testimonials-carousel-2-CMXh8TTq.js";import"./quote-ok39FnMZ.js";import"./editor-hr-V-OJ7uoD.js";import"./DroppableContainer-DEpdCVDs.js";import"@dnd-kit/core";const ur=({pageData:t})=>{const i=(n,a)=>n,r={elements:[t],selectedElement:{id:"",content:[],name:"",styles:{},type:null},device:"Desktop",previewMode:!0,liveMode:!0,projectPageId:"",activeTab:"Customize",theme:"system",compactSidebar:!0,windowWidth:typeof window!="undefined"?window.innerWidth:0},m={editor:r,history:{currentIndex:0,history:[r]}},[p,e]=s.useReducer(i,m);return o(d.Provider,{value:{editor:p,dispatch:e,projectId:"",pageDetails:null},children:o(c,{element:t})})};export{ur as default};
