(()=>{"use strict";const e=window.React,{__}=wp.i18n,{addFilter:t}=wp.hooks,{SelectControl:n,PanelBody:a,TextControl:r,TextareaControl:s,ToggleControl:l}=wp.components,{Fragment:o}=wp.element,{createHigherOrderComponent:u}=wp.compose,{InspectorControls:i}=wp.editor;t("editor.BlockEdit","uncanny-learndash-groups/uo-groups",u((t=>u=>{if("uncanny-learndash-groups/uo-groups"==u.name&&u.isSelected){const p=(0,e.createElement)(l,{label:__("First and last name required","uncanny-learndash-groups"),help:__("Require a first and last name for new students that are added via the Bulk Add & Invite Users tool.","uncanny-learndash-groups"),checked:u.attributes.firstLastNameRequired,onChange:e=>{u.setAttributes({firstLastNameRequired:e})}});return(0,e.createElement)(o,null,(0,e.createElement)(t,{...u}),(0,e.createElement)(i,null,(0,e.createElement)(a,{title:__("Group Management Settings","uncanny-learndash-groups")},(0,e.createElement)(n,{label:__("Group Name Selector","uncanny-learndash-groups"),value:u.attributes.groupNameSelector,options:[{label:"Show",value:"show"},{label:"Hide",value:"hide"}],onChange:e=>{u.setAttributes({groupNameSelector:e})}}),(0,e.createElement)(n,{label:__("Group Courses","uncanny-learndash-groups"),value:u.attributes.groupCoursesSection,options:[{label:"Show",value:"show"},{label:"Hide",value:"hide"}],onChange:e=>{u.setAttributes({groupCoursesSection:e})}}),(0,e.createElement)(n,{label:__("Add Courses Button","uncanny-learndash-groups"),value:u.attributes.addCoursesButton,options:[{label:"Show",value:"show"},{label:"Hide",value:"hide"}],onChange:e=>{u.setAttributes({addCoursesButton:e})}}),(0,e.createElement)(n,{label:__("Seats Quantity","uncanny-learndash-groups"),value:u.attributes.seatsQuantity,options:[{label:"Show",value:"show"},{label:"Hide",value:"hide"}],onChange:e=>{u.setAttributes({seatsQuantity:e})}}),(0,e.createElement)(n,{label:__("Add Seats Button","uncanny-learndash-groups"),value:u.attributes.addSeatsButton,options:[{label:"Show",value:"show"},{label:"Hide",value:"hide"}],onChange:e=>{u.setAttributes({addSeatsButton:e})}}),(0,e.createElement)(n,{label:__("Remove User Button","uncanny-learndash-groups"),value:u.attributes.removeUserButton,options:[{label:"Show",value:"show"},{label:"Hide",value:"hide"}],onChange:e=>{u.setAttributes({removeUserButton:e})}}),(0,e.createElement)(n,{label:__("Upload Users Button","uncanny-learndash-groups"),value:u.attributes.uploadUsersButton,options:[{label:"Show",value:"show"},{label:"Hide",value:"hide"}],onChange:e=>{u.setAttributes({uploadUsersButton:e})}}),(0,e.createElement)(n,{label:__("Download Keys Button","uncanny-learndash-groups"),value:u.attributes.downloadKeysButton,options:[{label:"Show",value:"show"},{label:"Hide",value:"hide"}],onChange:e=>{u.setAttributes({downloadKeysButton:e})}}),(0,e.createElement)(n,{label:__("Progress Report Button","uncanny-learndash-groups"),value:u.attributes.progressReportButton,options:[{label:"Show",value:"show"},{label:"Hide",value:"hide"}],onChange:e=>{u.setAttributes({progressReportButton:e})}}),(0,e.createElement)(n,{label:__("Quiz Report Button","uncanny-learndash-groups"),value:u.attributes.quizReportButton,options:[{label:"Show",value:"show"},{label:"Hide",value:"hide"}],onChange:e=>{u.setAttributes({quizReportButton:e})}}),(0,e.createElement)(n,{label:__("Key Column","uncanny-learndash-groups"),value:u.attributes.keyColumn,options:[{label:"Show",value:"show"},{label:"Hide",value:"hide"}],onChange:e=>{u.setAttributes({keyColumn:e})}}),(0,e.createElement)(n,{label:__("Group Leader Section","uncanny-learndash-groups"),value:u.attributes.groupLeaderSection,options:[{label:"Show",value:"show"},{label:"Hide",value:"hide"}],onChange:e=>{u.setAttributes({groupLeaderSection:e})}}),(0,e.createElement)(n,{label:__("Add Group Leader Button","uncanny-learndash-groups"),value:u.attributes.addGroupLeaderButton,options:[{label:"Show",value:"show"},{label:"Hide",value:"hide"}],onChange:e=>{u.setAttributes({addGroupLeaderButton:e})}}),(0,e.createElement)(n,{label:__("Key Options","uncanny-learndash-groups"),value:u.attributes.keyOptions,options:[{label:"Show",value:"show"},{label:"Hide",value:"hide"}],onChange:e=>{u.setAttributes({keyOptions:e})}}),(0,e.createElement)(n,{label:__("Group Email Button","uncanny-learndash-groups"),value:u.attributes.groupEmailEutton,options:[{label:"Show",value:"show"},{label:"Hide",value:"hide"}],onChange:e=>{u.setAttributes({groupEmailEutton:e})}}),(0,e.createElement)(n,{label:__("CSV Export Button","uncanny-learndash-groups"),value:u.attributes.csvExportButton,options:[{label:"Show",value:"show"},{label:"Hide",value:"hide"}],onChange:e=>{u.setAttributes({csvExportButton:e})}}),(0,e.createElement)(n,{label:__("Excel export button","uncanny-learndash-groups"),value:u.attributes.excelExportButton,options:[{label:"Show",value:"show"},{label:"Hide",value:"hide"}],onChange:e=>{u.setAttributes({excelExportButton:e})}}),(0,e.createElement)(r,{label:__("Edit Group Page ID","uncanny-learndash-groups"),value:u.attributes.editGroupPageID,type:"string",onChange:e=>{u.setAttributes({editGroupPageID:e})}}),(0,e.createElement)(r,{label:__("Edit Group Page URL","uncanny-learndash-groups"),value:u.attributes.editGroupPageURL,type:"string",onChange:e=>{u.setAttributes({editGroupPageURL:e})}})),(0,e.createElement)(a,{title:__("Enrolled users","uncanny-learndash-groups")},(0,e.createElement)(l,{label:__('Show "Add user" button',"uncanny-learndash-groups"),checked:"show"==u.attributes.addUserButton,onChange:e=>{u.setAttributes({addUserButton:e?"show":"hide"})}}),"show"==u.attributes.addUserButton?p:"",(0,e.createElement)(r,{label:__("Page length","uncanny-learndash-groups"),value:u.attributes.enrolledUsersPageLength,help:__("Number of rows to display on a single page when the page loads.","uncanny-learndash-groups"),onChange:e=>{"-"!=(e=e.replace(/[^\d-]/g,""))&&(e=parseInt(e),isNaN(e)?e="":e<-1&&(e=-1)),u.setAttributes({enrolledUsersPageLength:e.toString()})}}),(0,e.createElement)(s,{label:__("Length menu","uncanny-learndash-groups"),value:u.attributes.enrolledUsersLengthMenu,help:`\n ${__("Entries used in the length drop down select list. Enter each choice on a new line. For more control, you may specify both a value and label like this:","uncanny-learndash-groups")}\n\n ${__("-1 : All","uncanny-learndash-groups")}\n `,onChange:e=>{u.setAttributes({enrolledUsersLengthMenu:e})}})),(0,e.createElement)(a,{title:__("Group leaders","uncanny-learndash-groups")},(0,e.createElement)(r,{label:__("Page length","uncanny-learndash-groups"),value:u.attributes.groupLeadersPageLength,help:__("Number of rows to display on a single page when the page loads.","uncanny-learndash-groups"),onChange:e=>{"-"!=(e=e.replace(/[^\d-]/g,""))&&(e=parseInt(e),isNaN(e)?e="":e<-1&&(e=-1)),u.setAttributes({groupLeadersPageLength:e.toString()})}}),(0,e.createElement)(s,{label:__("Length menu","uncanny-learndash-groups"),value:u.attributes.groupLeadersLengthMenu,help:`\n ${__("Entries used in the length drop down select list. Enter each choice on a new line. For more control, you may specify both a value and label like this:","uncanny-learndash-groups")}\n\n ${__("-1 : All","uncanny-learndash-groups")}\n `,onChange:e=>{u.setAttributes({groupLeadersLengthMenu:e})}}))))}return(0,e.createElement)(t,{...u})}),"addGroupsUOSettings")),t("editor.BlockEdit","uncanny-learndash-groups/uo-groups-url",u((t=>n=>"uncanny-learndash-groups/uo-groups-url"==n.name&&n.isSelected?(0,e.createElement)(o,null,(0,e.createElement)(t,{...n}),(0,e.createElement)(i,null,(0,e.createElement)(a,{title:__("Group Management Link Settings","uncanny-learndash-groups")},(0,e.createElement)(r,{label:__("Link Text","uncanny-learndash-groups"),value:n.attributes.text,type:"string",onChange:e=>{n.setAttributes({text:e})}})))):(0,e.createElement)(t,{...n})),"addGroupsUrlUOSettings")),(0,e.createElement)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M21.9,0c0,0.2,0,0.4,0.1,0.6c0,0.4,0,0.9,0,1.3c0,0.5,0,1-0.1,1.4c-0.1,1.1-0.3,2.2-0.7,3.3c-0.3,0.9-0.7,1.8-1.3,2.5 c-0.5,0.7-1.1,1.4-1.8,1.9c-0.7,0.5-1.5,1-2.4,1.3c-1.1,0.4-2.2,0.5-3.3,0.6c3,1.1,4.5,4.3,3.4,7.3c-0.8,2.2-2.9,3.7-5.2,3.8h-0.3 C10,24,9.5,23.9,9,23.8c-1.2-0.3-2.3-1.1-3.1-2.1c-1.2-1.7-1.4-3.9-0.5-5.8c-1,1.1-1.9,2.3-2.5,3.7c-0.4,0.8-0.7,1.7-0.9,2.6 c-0.1-0.6,0-1.2,0-1.8c0.1-1.1,0.2-2.2,0.5-3.3c0.2-0.9,0.6-1.8,1-2.6c0.5-0.8,1-1.5,1.7-2.2c0.7-0.7,1.6-1.2,2.5-1.5 c1-0.4,2.1-0.6,3.2-0.7c0.6,0,1.1,0,1.7-0.1c1-0.1,2-0.4,3-0.8c0.9-0.4,1.7-0.9,2.4-1.6c0.7-0.6,1.3-1.3,1.8-2.1 c0.5-0.9,1-1.8,1.3-2.7C21.5,1.9,21.8,0.9,21.9,0z M10.2,13.8c-0.8,0.1-1.5,0.4-2.1,0.9c-0.7,0.6-1.2,1.4-1.5,2.2 c-0.3,1-0.3,2.1,0.1,3.1c0.3,0.8,0.8,1.6,1.5,2.1c0.6,0.4,1.3,0.7,2,0.8c0.7,0.1,1.5-0.1,2.1-0.4c0.6-0.3,1.1-0.7,1.5-1.2 c0.4-0.6,0.8-1.2,0.9-1.9c0.2-0.9,0.1-1.9-0.2-2.8c-0.3-0.8-0.9-1.6-1.7-2.1C12,14,11.1,13.8,10.2,13.8z"}),(0,e.createElement)("path",{d:"M10,15.5c0.3-0.1,0.5-0.1,0.8-0.1c-0.5,0.5-0.5,1.2-0.1,1.8c0.5,0.6,1.3,0.6,1.9,0.2c0.2-0.2,0.4-0.4,0.4-0.7 c0.5,0.7,0.7,1.7,0.5,2.5c-0.2,0.8-0.8,1.5-1.5,1.8c-1.4,0.8-3.2,0.2-4-1.2c0-0.1-0.1-0.2-0.1-0.3c-0.3-0.8-0.3-1.8,0.2-2.6 C8.5,16.2,9.2,15.6,10,15.5z"}));const p=(0,e.createElement)("svg",{width:"24",height:"24",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 19.98 24"},(0,e.createElement)("path",{fill:"#2b2b2b",d:"M21.9,0c0,.21,0,.42.05.63,0,.44.05.87,0,1.3s0,1-.09,1.45a14.91,14.91,0,0,1-.69,3.3A10.38,10.38,0,0,1,20,9.22a8.34,8.34,0,0,1-1.83,1.92,8.89,8.89,0,0,1-2.4,1.26,11.69,11.69,0,0,1-3.27.57,5.68,5.68,0,0,1-1.78,11h-.26A5.9,5.9,0,0,1,9,23.8a5.68,5.68,0,0,1-3.62-7.93,12.6,12.6,0,0,0-2.49,3.67,13.65,13.65,0,0,0-.87,2.57,13.52,13.52,0,0,1,0-1.8A14.81,14.81,0,0,1,2.54,17a11.15,11.15,0,0,1,1-2.56,8.72,8.72,0,0,1,1.71-2.15,8.42,8.42,0,0,1,2.48-1.55A11.13,11.13,0,0,1,11,10c.56,0,1.12,0,1.68-.1a9.89,9.89,0,0,0,3-.76,9,9,0,0,0,2.42-1.57,10.43,10.43,0,0,0,1.79-2.13A13.71,13.71,0,0,0,21.2,2.74,14.31,14.31,0,0,0,21.9,0ZM10.17,13.83A4.2,4.2,0,0,0,8,14.69a4.52,4.52,0,0,0-1.52,2.22A4.82,4.82,0,0,0,6.59,20a4.49,4.49,0,0,0,1.54,2.08,4,4,0,0,0,4.18.39,4.39,4.39,0,0,0,1.45-1.19,4.57,4.57,0,0,0,.91-1.91,4.82,4.82,0,0,0-.25-2.81,4.46,4.46,0,0,0-1.69-2.07A4.06,4.06,0,0,0,10.17,13.83Z",transform:"translate(-2.01)"}),(0,e.createElement)("path",{fill:"#f9ba0f",d:"M10.17,13.83a4.06,4.06,0,0,1,2.56.64,4.46,4.46,0,0,1,1.69,2.07,4.82,4.82,0,0,1,.25,2.81,4.57,4.57,0,0,1-.91,1.91,4.39,4.39,0,0,1-1.45,1.19,4,4,0,0,1-4.18-.39A4.56,4.56,0,0,1,6.59,20a4.82,4.82,0,0,1-.07-3.07A4.52,4.52,0,0,1,8,14.69,4.13,4.13,0,0,1,10.17,13.83Zm.61,1.58h0A3,3,0,0,0,8,16.88a2.94,2.94,0,0,0,3.7,4.18,1.51,1.51,0,0,0,.26-.12,2.93,2.93,0,0,0,1-4.32h0a1.29,1.29,0,0,0-.32-1.16,1.33,1.33,0,0,0-1.88-.07Z",transform:"translate(-2.01)"}),(0,e.createElement)("path",{fill:"#fef4d8",d:"M10.78,15.41a1.33,1.33,0,0,1,1.88,0l0,0A1.29,1.29,0,0,1,13,16.61a3.42,3.42,0,0,0-.7-.67A2.91,2.91,0,0,0,10.78,15.41Z",transform:"translate(-2.01)"}),(0,e.createElement)("path",{fill:"#000000",d:"M10,15.47a2.68,2.68,0,0,1,.8-.06,1.3,1.3,0,0,0-.08,1.76,1.32,1.32,0,0,0,1.86.17,1.27,1.27,0,0,0,.44-.72,2.92,2.92,0,0,1-1,4.32,3,3,0,0,1-4-1.23l-.12-.26A2.94,2.94,0,0,1,8,16.88,3,3,0,0,1,10,15.47Z",transform:"translate(-2.01)"}),(0,e.createElement)("path",{fill:"#d6d6d6",d:"M10.78,15.41h0a3,3,0,0,1,1.53.54,3.42,3.42,0,0,1,.7.67h0a1.32,1.32,0,1,1-2.58-.56A1.35,1.35,0,0,1,10.78,15.41Z",transform:"translate(-2.01)"})),c=({children:t})=>(0,e.createElement)("div",{className:"uo-ult-groups-content"},t),{__:d}=wp.i18n,{registerBlockType:g}=wp.blocks;g("uncanny-learndash-groups/uo-groups",{title:d("Group Management","uncanny-learndash-groups"),description:d("The Group Management page provides all the functionality for Group Leaders to manage their own groups.","uncanny-learndash-groups"),icon:p,category:"uncanny-learndash-groups",keywords:[d("Uncanny Owl - Groups Plugin","uncanny-learndash-groups")],supports:{html:!1},attributes:{groupNameSelector:{type:"string",default:"show"},groupCoursesSection:{type:"string",default:"show"},addCoursesButton:{type:"string",default:"show"},seatsQuantity:{type:"string",default:"show"},addSeatsButton:{type:"string",default:"show"},addUserButton:{type:"string",default:"show"},removeUserButton:{type:"string",default:"show"},uploadUsersButton:{type:"string",default:"show"},downloadKeysButton:{type:"string",default:"show"},progressReportButton:{type:"string",default:"show"},csvExportButton:{type:"string",default:"show"},excelExportButton:{type:"string",default:"hide"},quizReportButton:{type:"string",default:"show"},keyColumn:{type:"string",default:"show"},groupLeaderSection:{type:"string",default:"show"},addGroupLeaderButton:{type:"string",default:"show"},keyOptions:{type:"string",default:"show"},groupEmailEutton:{type:"string",default:"hide"},firstLastNameRequired:{type:"boolean",default:!1},enrolledUsersPageLength:{type:"string",default:"50"},enrolledUsersLengthMenu:{type:"string",default:`25\n50\n100\n-1 : ${d("All","uncanny-learndash-groups")}`},groupLeadersPageLength:{type:"string",default:"50"},groupLeadersLengthMenu:{type:"string",default:`25\n50\n100\n-1 : ${d("All","uncanny-learndash-groups")}`},editGroupPageID:{type:"string",default:""},editGroupPageURL:{type:"string",default:""}},edit:({className:t,attributes:n,setAttributes:a})=>(0,e.createElement)("div",{className:t},(0,e.createElement)(c,null,d("Group Management","uncanny-learndash-groups"))),save:({className:e,attributes:t})=>null}),g("uncanny-learndash-groups/uo-groups-url",{title:d("Group Management Link","uncanny-learndash-groups"),description:d("Add a button that links to the Group Management Page.","uncanny-learndash-groups"),icon:p,category:"uncanny-learndash-groups",keywords:[d("Uncanny Owl - Groups Plugin","uncanny-learndash-groups")],supports:{html:!1},attributes:{text:{type:"string",default:d("Group Management","uncanny-learndash-groups")}},edit:({className:t,attributes:n,setAttributes:a})=>(0,e.createElement)("div",{className:t},(0,e.createElement)(c,null,d("Group Management Link Settings","uncanny-learndash-groups"))),save:({className:e,attributes:t})=>null});const{__:h}=wp.i18n,{addFilter:m}=wp.hooks,{SelectControl:y,PanelBody:b,TextControl:w,TextareaControl:E,ToggleControl:v}=wp.components,{Fragment:C}=wp.element,{createHigherOrderComponent:A}=wp.compose,{InspectorControls:S}=wp.editor;m("editor.BlockEdit","uncanny-learndash-groups/uo-groups-edit-group",A((t=>n=>"uncanny-learndash-groups/uo-groups-edit-group"==n.name&&n.isSelected?(0,e.createElement)(C,null,(0,e.createElement)(t,{...n}),(0,e.createElement)(S,null,(0,e.createElement)(b,{title:h("Edit Group Settings","uncanny-learndash-groups")},(0,e.createElement)(y,{label:h("Group Parent Selector","uncanny-learndash-groups"),value:n.attributes.groupParent,options:[{label:"Show",value:"show"},{label:"Hide",value:"hide"}],onChange:e=>{n.setAttributes({groupParent:e})}}),(0,e.createElement)(y,{label:h("Group Name Selector","uncanny-learndash-groups"),value:n.attributes.groupName,options:[{label:"Show",value:"show"},{label:"Hide",value:"hide"}],onChange:e=>{n.setAttributes({groupName:e})}}),(0,e.createElement)(y,{label:h("Total Seats Selector","uncanny-learndash-groups"),value:n.attributes.totalSeats,options:[{label:"Show",value:"show"},{label:"Hide",value:"hide"}],onChange:e=>{n.setAttributes({totalSeats:e})}}),(0,e.createElement)(y,{label:h("Group Courses Selector","uncanny-learndash-groups"),value:n.attributes.groupCourses,options:[{label:"Show",value:"show"},{label:"Hide",value:"hide"}],onChange:e=>{n.setAttributes({groupCourses:e})}}),(0,e.createElement)(y,{label:h("Group Image Selector","uncanny-learndash-groups"),value:n.attributes.groupImage,options:[{label:"Show",value:"show"},{label:"Hide",value:"hide"}],onChange:e=>{n.setAttributes({groupImage:e})}}),(0,e.createElement)(w,{label:h("Category (Slug(s) seperated by commas)","uncanny-learndash-groups"),value:n.attributes.category,type:"string",onChange:e=>{n.setAttributes({category:e})}}),(0,e.createElement)(w,{label:h("Course Category (Slug(s) seperated by commas)","uncanny-learndash-groups"),value:n.attributes.courseCategory,type:"string",onChange:e=>{n.setAttributes({courseCategory:e})}})))):(0,e.createElement)(t,{...n})),"addEditGroupsUOSettings"));const{__:f}=wp.i18n,{registerBlockType:B}=wp.blocks;B("uncanny-learndash-groups/uo-groups-edit-group",{title:f("Edit Group Wizard","uncanny-learndash-groups"),description:f("Edit LearnDash groups from the front end.","uncanny-learndash-groups"),icon:p,category:"uncanny-learndash-groups",keywords:[f("Uncanny Owl - Groups Plugin","uncanny-learndash-groups")],supports:{html:!1},attributes:{groupName:{type:"string",default:"show"},groupParent:{type:"string",default:"show"},totalSeats:{type:"string",default:"show"},groupCourses:{type:"string",default:"show"},groupImage:{type:"string",default:"show"},category:{type:"string",default:""},courseCategory:{type:"string",default:""}},edit:({className:t,attributes:n,setAttributes:a})=>(0,e.createElement)("div",{className:t},(0,e.createElement)(c,null,f("Edit Group Wizard","uncanny-learndash-groups"))),save:({className:e,attributes:t})=>null});const{__:k}=wp.i18n,{addFilter:x}=wp.hooks,{SelectControl:G,PanelBody:O,TextControl:N}=wp.components,{Fragment:P}=wp.element,{createHigherOrderComponent:L}=wp.compose,{InspectorControls:_}=wp.editor;x("editor.BlockEdit","uncanny-learndash-groups/uo-groups-course-report",L((t=>n=>"uncanny-learndash-groups/uo-groups-course-report"==n.name&&n.isSelected?(0,e.createElement)(P,null,(0,e.createElement)(t,{...n}),(0,e.createElement)(_,null,(0,e.createElement)(O,{title:k("Group Management Settings","uncanny-learndash-groups")},(0,e.createElement)(N,{label:k("Transcript Page ID","uncanny-learndash-groups"),value:n.attributes.transcriptPageId,type:"string",onChange:e=>{n.setAttributes({transcriptPageId:e})}}),(0,e.createElement)(G,{label:k("Course Order","uncanny-learndash-groups"),value:n.attributes.courseOrder,options:[{label:"Title",value:"title"},{label:"ID",value:"ID"},{label:"Date",value:"date"},{label:"Menu Order",value:"menu_order"}],onChange:e=>{n.setAttributes({courseOrder:e})}})))):(0,e.createElement)(t,{...n})),"addUoGroupCourseReportSettings"));const{__:U}=wp.i18n,{registerBlockType:T}=wp.blocks;T("uncanny-learndash-groups/uo-groups-course-report",{title:U("Course Report","uncanny-learndash-groups"),description:U("The Course Report (which can also be accessed from the Group Management page) allows Group Leaders to view course reports of their group members.","uncanny-learndash-groups"),icon:p,category:"uncanny-learndash-groups",keywords:[U("Uncanny Owl - Groups Plugin","uncanny-learndash-groups")],supports:{html:!1},attributes:{transcriptPageId:{type:"string",default:"0"},courseOrder:{type:"string",default:"title"}},edit:({className:t,attributes:n,setAttributes:a})=>(0,e.createElement)("div",{className:t},(0,e.createElement)(c,null,U("Course Report","uncanny-learndash-groups"))),save:({className:e,attributes:t})=>null});const{__:R}=wp.i18n,{addFilter:M}=wp.hooks,{SelectControl:I,PanelBody:D,TextControl:H}=wp.components,{Fragment:z}=wp.element,{createHigherOrderComponent:F}=wp.compose,{InspectorControls:Q}=wp.editor;M("editor.BlockEdit","uncanny-learndash-groups/uo-groups-quiz-report",F((t=>n=>"uncanny-learndash-groups/uo-groups-quiz-report"==n.name&&n.isSelected?(0,e.createElement)(z,null,(0,e.createElement)(t,{...n}),(0,e.createElement)(Q,null,(0,e.createElement)(D,{title:R("Group Management Settings","uncanny-learndash-groups")},(0,e.createElement)(I,{label:R("Course Order By","uncanny-learndash-groups"),value:n.attributes.courseOrderby,options:[{label:"Title",value:"title"},{label:"ID",value:"ID"},{label:"Date",value:"date"},{label:"Menu Order",value:"menu_order"}],onChange:e=>{n.setAttributes({courseOrderby:e})}}),(0,e.createElement)(I,{label:R("Course Order","uncanny-learndash-groups"),value:n.attributes.courseOrder,options:[{label:"Ascending",value:"ASC"},{label:"Descending",value:"DESC"}],onChange:e=>{n.setAttributes({courseOrder:e})}}),(0,e.createElement)(I,{label:R("Quiz Order By","uncanny-learndash-groups"),value:n.attributes.quizOrderby,options:[{label:"Title",value:"title"},{label:"ID",value:"ID"},{label:"Date",value:"date"},{label:"Menu Order",value:"menu_order"}],onChange:e=>{n.setAttributes({quizOrderby:e})}}),(0,e.createElement)(I,{label:R("Quiz Order","uncanny-learndash-groups"),value:n.attributes.quizOrder,options:[{label:"Ascending",value:"ASC"},{label:"Descending",value:"DESC"}],onChange:e=>{n.setAttributes({quizOrder:e})}})))):(0,e.createElement)(t,{...n})),"addUoGroupQuizReportSettings"));const{__:q}=wp.i18n,{registerBlockType:K}=wp.blocks;K("uncanny-learndash-groups/uo-groups-quiz-report",{title:q("Quiz Report","uncanny-learndash-groups"),description:q("The Quiz Report allows Group Leaders to view quiz reports of their group members","uncanny-learndash-groups"),icon:p,category:"uncanny-learndash-groups",keywords:[q("Uncanny Owl - Groups Plugin","uncanny-learndash-groups")],supports:{html:!1},attributes:{courseOrderby:{type:"string",default:"title"},courseOrder:{type:"string",default:"ASC"},quizOrderby:{type:"string",default:"title"},quizOrder:{type:"string",default:"ASC"}},edit:({className:t,attributes:n,setAttributes:a})=>(0,e.createElement)("div",{className:t},(0,e.createElement)(c,null,q("Quiz Report","uncanny-learndash-groups"))),save:({className:e,attributes:t})=>null});const{__:Z}=wp.i18n,{addFilter:$}=wp.hooks,{PanelBody:V,TextControl:W}=wp.components,{Fragment:Y}=wp.element,{createHigherOrderComponent:j}=wp.compose,{InspectorControls:J}=wp.editor;$("editor.BlockEdit","uncanny-learndash-groups/uo-groups-buy-courses",j((t=>n=>"uncanny-learndash-groups/uo-groups-buy-courses"==n.name&&n.isSelected?(0,e.createElement)(Y,null,(0,e.createElement)(t,{...n}),(0,e.createElement)(J,null,(0,e.createElement)(V,{title:Z("Only include products from","uncanny-learndash-groups")},(0,e.createElement)(W,{label:Z("Product Categories (IDs seperated by commas)","uncanny-learndash-groups"),value:n.attributes.productCat,type:"string",onChange:e=>{n.setAttributes({productCat:e})}}),(0,e.createElement)(W,{label:Z("Product Tags (IDs seperated by commas)","uncanny-learndash-groups"),value:n.attributes.productCat,type:"string",onChange:e=>{n.setAttributes({productTag:e})}}),(0,e.createElement)(W,{label:Z("Minimum Quantity","uncanny-learndash-groups"),value:n.attributes.minQty,type:"number",onChange:e=>{n.setAttributes({minQty:e})}}),(0,e.createElement)(W,{label:Z("Maximum Quantity","uncanny-learndash-groups"),value:n.attributes.maxQty,type:"number",onChange:e=>{n.setAttributes({maxQty:e})}})))):(0,e.createElement)(t,{...n})),"addUoGroupBuyCoursesSettings"));const{__:X}=wp.i18n,{registerBlockType:ee}=wp.blocks;ee("uncanny-learndash-groups/uo-groups-buy-courses",{title:X("Buy Courses","uncanny-learndash-groups"),description:X("The Buy Courses page allows Group Leaders and new customers to purchase courses and create new Groups directly. This page is only auto-generated if you activate the plugin after WooCommerce is installed and active.","uncanny-learndash-groups"),icon:p,category:"uncanny-learndash-groups",keywords:[X("Uncanny Owl - Groups Plugin","uncanny-learndash-groups")],supports:{html:!1},attributes:{productCat:{type:"string",default:""},productTag:{type:"string",default:""},minQty:{type:"string",default:""},maxQty:{type:"string",default:""}},edit:({className:t,attributes:n,setAttributes:a})=>(0,e.createElement)("div",{className:t},(0,e.createElement)(c,null,X("Buy Courses","uncanny-learndash-groups"))),save:({className:e,attributes:t})=>null});const{__:te}=wp.i18n,{addFilter:ne}=wp.hooks,{SelectControl:ae,PanelBody:re,TextControl:se,ToggleControl:le}=wp.components,{Fragment:oe}=wp.element,{createHigherOrderComponent:ue}=wp.compose,{InspectorControls:ie}=wp.editor;ne("editor.BlockEdit","uncanny-learndash-groups/uo-groups-essays-report",ue((t=>n=>"uncanny-learndash-groups/uo-groups-essays-report"==n.name&&n.isSelected?(0,e.createElement)(oe,null,(0,e.createElement)(t,{...n}),(0,e.createElement)(ie,null,(0,e.createElement)(re,{title:te("General","uncanny-learndash-groups")},(0,e.createElement)(se,{label:te("Columns","uncanny-learndash-groups"),value:n.attributes.columns,type:"string",onChange:e=>{n.setAttributes({columns:e})}})),(0,e.createElement)(re,{title:te("Export buttons","uncanny-learndash-groups")},(0,e.createElement)(le,{label:te("CSV export","uncanny-learndash-groups"),checked:"show"==n.attributes.csvExport,onChange:e=>{n.setAttributes({csvExport:e?"show":"hide"})}}),(0,e.createElement)(le,{label:te("Excel export","uncanny-learndash-groups"),checked:"show"==n.attributes.excelExport,onChange:e=>{n.setAttributes({excelExport:e?"show":"hide"})}})),(0,e.createElement)(re,{title:te("Performance","uncanny-learndash-groups"),initialOpen:!1},(0,e.createElement)(le,{label:te("Load on render","uncanny-learndash-groups"),checked:"yes"==n.attributes.loadOnRender,onChange:e=>{n.setAttributes({loadOnRender:e?"yes":"no"})}})))):(0,e.createElement)(t,{...n})),"addUoGroupEssaysReportSettings"));const{__:pe}=wp.i18n,{registerBlockType:ce}=wp.blocks;ce("uncanny-learndash-groups/uo-groups-essays-report",{title:pe("Essay Management","uncanny-learndash-groups"),description:pe("Allows Group Leaders to manage essays posted by their group members","uncanny-learndash-groups"),icon:p,category:"uncanny-learndash-groups",keywords:[pe("Uncanny Owl - Groups Plugin","uncanny-learndash-groups")],supports:{html:!1},attributes:{columns:{type:"string",default:"Title, First Name, Last Name, Username, Status, Points, Question, Content, Course, Lesson, Quiz, Comments, Date"},csvExport:{type:"string",default:"hide"},excelExport:{type:"string",default:"hide"},loadOnRender:{type:"string",default:"yes"}},edit:({className:t,attributes:n,setAttributes:a})=>(0,e.createElement)("div",{className:t},(0,e.createElement)(c,null,pe("Group Essay Management","uncanny-learndash-groups"))),save:({className:e,attributes:t})=>null});const{__:de}=wp.i18n,{addFilter:ge}=wp.hooks,{SelectControl:he,PanelBody:me,TextControl:ye,ToggleControl:be}=wp.components,{Fragment:we}=wp.element,{createHigherOrderComponent:Ee}=wp.compose,{InspectorControls:ve}=wp.editor;ge("editor.BlockEdit","uncanny-learndash-groups/uo-groups-assignments-report",Ee((t=>n=>"uncanny-learndash-groups/uo-groups-assignments-report"==n.name&&n.isSelected?(0,e.createElement)(we,null,(0,e.createElement)(t,{...n}),(0,e.createElement)(ve,null,(0,e.createElement)(me,{title:de("General","uncanny-learndash-groups")},(0,e.createElement)(ye,{label:de("Columns","uncanny-learndash-groups"),value:n.attributes.columns,type:"string",onChange:e=>{n.setAttributes({columns:e})}}),(0,e.createElement)(he,{label:de("Status","uncanny-learndash-groups"),value:n.attributes.status,options:[{label:"All",value:"all"},{label:"Approved",value:"approved"},{label:"Not Approved",value:"not-approved"}],onChange:e=>{n.setAttributes({status:e})}})),(0,e.createElement)(me,{title:de("Export buttons","uncanny-learndash-groups")},(0,e.createElement)(be,{label:de("CSV export","uncanny-learndash-groups"),checked:"show"==n.attributes.csvExport,onChange:e=>{n.setAttributes({csvExport:e?"show":"hide"})}}),(0,e.createElement)(be,{label:de("Excel export","uncanny-learndash-groups"),checked:"show"==n.attributes.excelExport,onChange:e=>{n.setAttributes({excelExport:e?"show":"hide"})}})))):(0,e.createElement)(t,{...n})),"addUoGroupAssignmentReportSettings"));const{__:Ce}=wp.i18n,{registerBlockType:Ae}=wp.blocks;Ae("uncanny-learndash-groups/uo-groups-assignments-report",{title:Ce("Assignment Management","uncanny-learndash-groups"),description:Ce("Allows Group Leaders to manage assignments posted by their group members","uncanny-learndash-groups"),icon:p,category:"uncanny-learndash-groups",keywords:[Ce("Uncanny Owl - Groups Plugin","uncanny-learndash-groups")],supports:{html:!1},attributes:{columns:{type:"string",default:"Title, First Name, Last Name, Username, Status, Points, Assigned Course, Assigned Lesson, Comments, Date"},status:{type:"string",default:"not-approved"},csvExport:{type:"string",default:"hide"},excelExport:{type:"string",default:"hide"}},edit:({className:t,attributes:n,setAttributes:a})=>(0,e.createElement)("div",{className:t},(0,e.createElement)(c,null,Ce("Group Assignment Management","uncanny-learndash-groups"))),save:({className:e,attributes:t})=>null});const{__:Se}=wp.i18n,{addFilter:fe}=wp.hooks,{SelectControl:Be,PanelBody:ke,TextControl:xe}=wp.components,{Fragment:Ge}=wp.element,{createHigherOrderComponent:Oe}=wp.compose,{InspectorControls:Ne}=wp.editor;fe("editor.BlockEdit","uncanny-learndash-groups/uo-groups-progress-report",Oe((t=>n=>"uncanny-learndash-groups/uo-groups-progress-report"===n.name&&n.isSelected?(0,e.createElement)(Ge,null,(0,e.createElement)(t,{...n}),(0,e.createElement)(Ne,null,(0,e.createElement)(ke,{title:Se("Group Management Settings","uncanny-learndash-groups")},(0,e.createElement)(Be,{label:Se("Course Order By","uncanny-learndash-groups"),value:n.attributes.orderby,options:[{label:"ID",value:"ID"},{label:"Title",value:"title"},{label:"Date",value:"date"},{label:"Menu Order",value:"menu_order"}],onChange:e=>{n.setAttributes({orderby:e})}}),(0,e.createElement)(Be,{label:Se("Course Order","uncanny-learndash-groups"),value:n.attributes.order,options:[{label:"Ascending",value:"asc"},{label:"Descending",value:"desc"}],onChange:e=>{n.setAttributes({order:e})}}),(0,e.createElement)(Be,{label:Se("Expand Course By Default","uncanny-learndash-groups"),value:n.attributes.expandByDefault,options:[{label:"No",value:"no"},{label:"Yes",value:"yes"}],onChange:e=>{n.setAttributes({expandByDefault:e})}})))):(0,e.createElement)(t,{...n})),"addUoGroupProgressReportSettings"));const{__:Pe}=wp.i18n,{registerBlockType:Le}=wp.blocks;Le("uncanny-learndash-groups/uo-groups-progress-report",{title:Pe("Progress Report","uncanny-learndash-groups"),description:Pe("This hierarchy view of courses, lessons, topics and quizzes allows all of them be reviewed and marked complete or incomplete.","uncanny-learndash-groups"),icon:p,category:"uncanny-learndash-groups",keywords:[Pe("Uncanny Owl - Groups Plugin","uncanny-learndash-groups")],supports:{html:!1},attributes:{orderby:{type:"string",default:"ID"},order:{type:"string",default:"asc"},expandByDefault:{type:"string",default:"no"}},edit:({className:t,attributes:n,setAttributes:a})=>(0,e.createElement)("div",{className:t},(0,e.createElement)(c,null,Pe("Progress Report","uncanny-learndash-groups"))),save:({className:e,attributes:t})=>null});const{__:_e}=wp.i18n,{addFilter:Ue}=wp.hooks,{PanelBody:Te,TextControl:Re,SelectControl:Me}=wp.components,{Fragment:Ie}=wp.element,{createHigherOrderComponent:De}=wp.compose,{InspectorControls:He}=wp.editor;Ue("editor.BlockEdit","uncanny-learndash-groups/uo-groups-enrollment-key-redemption",De((t=>n=>"uncanny-learndash-groups/uo-groups-enrollment-key-redemption"==n.name&&n.isSelected?(0,e.createElement)(Ie,null,(0,e.createElement)(t,{...n}),(0,e.createElement)(He,null,(0,e.createElement)(Te,{title:_e("Enrollment Key Redemption Settings","uncanny-learndash-codes")},(0,e.createElement)(Re,{label:_e("redirect"),value:n.attributes.redirect,type:"text",onChange:e=>{n.setAttributes({redirect:e})}})))):(0,e.createElement)(t,{...n})),"addUoEnrollmentKeyRedemptionSettings"));const{__:ze}=wp.i18n,{registerBlockType:Fe}=wp.blocks;Fe("uncanny-learndash-groups/uo-groups-enrollment-key-redemption",{title:ze("Enrollment Key Redemption","uncanny-learndash-groups"),description:ze("Signed in users can redeem group or course codes from anywhere on a LearnDash site by using this.","uncanny-learndash-groups"),icon:p,category:"uncanny-learndash-groups",keywords:[ze("Uncanny Owl")],supports:{html:!1},attributes:{redirect:{type:"string",default:""}},edit:({className:t,attributes:n,setAttributes:a})=>(0,e.createElement)("div",{className:t},(0,e.createElement)(c,null,ze("User Redeem Code","uncanny-learndash-groups"))),save:({className:e,attributes:t})=>null});const{__:Qe}=wp.i18n,{addFilter:qe}=wp.hooks,{PanelBody:Ke,TextControl:Ze,SelectControl:$e}=wp.components,{Fragment:Ve}=wp.element,{createHigherOrderComponent:We}=wp.compose,{InspectorControls:Ye}=wp.editor;qe("editor.BlockEdit","uncanny-learndash-groups/uo-groups-enrollment-key-registration",We((t=>n=>"uncanny-learndash-groups/uo-groups-enrollment-key-registration"==n.name&&n.isSelected?(0,e.createElement)(Ve,null,(0,e.createElement)(t,{...n}),(0,e.createElement)(Ye,null,(0,e.createElement)(Ke,{title:Qe("Enrollment Key Registratiopn Settings","uncanny-learndash-groups")},(0,e.createElement)(Ze,{label:Qe("redirect"),value:n.attributes.redirect,type:"text",onChange:e=>{n.setAttributes({redirect:e})}}),(0,e.createElement)(Ze,{label:Qe("code_optional"),value:n.attributes.code_optional,type:"text",onChange:e=>{n.setAttributes({code_optional:e})}}),(0,e.createElement)(Ze,{label:Qe("auto_login"),value:n.attributes.auto_login,type:"text",onChange:e=>{n.setAttributes({auto_login:e})}}),(0,e.createElement)(Ze,{label:Qe("role"),value:n.attributes.role,type:"text",onChange:e=>{n.setAttributes({role:e})}})))):(0,e.createElement)(t,{...n})),"addUoEnrollmentKeyRegistrationSettings"));const{__:je}=wp.i18n,{registerBlockType:Je}=wp.blocks;Je("uncanny-learndash-groups/uo-groups-enrollment-key-registration",{title:je("Enrollment Key Registration","uncanny-learndash-groups"),description:je("This will add a very basic registration form to the page that includes a code redemption field.","uncanny-learndash-groups"),icon:p,category:"uncanny-learndash-groups",keywords:[je("Uncanny Owl")],supports:{html:!1},attributes:{redirect:{type:"string",default:""},code_optional:{type:"string",default:"no"},auto_login:{type:"string",default:"yes"},role:{type:"string",default:"subscriber"}},edit:({className:t,attributes:n,setAttributes:a})=>(0,e.createElement)("div",{className:t},(0,e.createElement)(c,null,je("User Code Registration","uncanny-learndash-groups"))),save:({className:e,attributes:t})=>null})})();