From 01fd9662acb919c1aa31e32a544dbf83b616a36e Mon Sep 17 00:00:00 2001 From: madsenandreas Date: Tue, 16 Apr 2024 06:00:08 +0000 Subject: [PATCH] deploy: b7f7b30e1a9cc52ab356262774327e01e4a5229a --- 163.67773e18.iframe.bundle.js | 2 + ... 163.67773e18.iframe.bundle.js.LICENSE.txt | 0 200.78d84044.iframe.bundle.js | 2 - ...bundle.js => 251.6acc2ae4.iframe.bundle.js | 2 +- 296.34c5ea5c.iframe.bundle.js | 1 + 312.b2a56372.iframe.bundle.js | 1 - 378.f80a919d.iframe.bundle.js | 1 + 497.650e2593.iframe.bundle.js | 402 +++++++++++++++++ ... 497.650e2593.iframe.bundle.js.LICENSE.txt | 12 + 497.650e2593.iframe.bundle.js.map | 1 + 607.45aeac29.iframe.bundle.js | 1 - 678.e37c25a0.iframe.bundle.js | 2 + ... 678.e37c25a0.iframe.bundle.js.LICENSE.txt | 0 678.e984e9a5.iframe.bundle.js | 2 - ...bundle.js => 737.86053457.iframe.bundle.js | 2 +- ...bundle.js => 748.c3bb3d52.iframe.bundle.js | 4 +- ... 748.c3bb3d52.iframe.bundle.js.LICENSE.txt | 0 784.85ed88b9.iframe.bundle.js | 134 ++++++ ... 784.85ed88b9.iframe.bundle.js.LICENSE.txt | 0 784.85ed88b9.iframe.bundle.js.map | 1 + 784.ec327f43.iframe.bundle.js | 134 ------ 784.ec327f43.iframe.bundle.js.map | 1 - 797.6ec4627a.iframe.bundle.js | 1 - 831.73a165c3.iframe.bundle.js | 1 - 856.51214c11.iframe.bundle.js | 411 ------------------ 856.51214c11.iframe.bundle.js.map | 1 - ...bundle.js => 882.ce94055e.iframe.bundle.js | 2 +- 984.bc677805.iframe.bundle.js | 1 + ...ncements-stories.79268b8d.iframe.bundle.js | 1 - ...ncements-stories.cc7f3e9b.iframe.bundle.js | 1 + ...ttonLink-stories.5f82ed51.iframe.bundle.js | 1 + ...ttonLink-stories.d29dc07f.iframe.bundle.js | 1 - ...boxInput-stories.089e5569.iframe.bundle.js | 1 - ...boxInput-stories.aa481911.iframe.bundle.js | 1 + ...eModules-stories.8112661d.iframe.bundle.js | 1 - ...eModules-stories.f2d211b1.iframe.bundle.js | 1 + ...tonLinks-stories.8df222a1.iframe.bundle.js | 1 + ...tonLinks-stories.c350f542.iframe.bundle.js | 1 - ...geBanner-stories.5e4c3737.iframe.bundle.js | 1 - ...geBanner-stories.7626d164.iframe.bundle.js | 1 + ...wnButton-stories.be9b49a6.iframe.bundle.js | 1 - ...wnButton-stories.cc5f4a9f.iframe.bundle.js | 1 + ...con-Icon-stories.135a34bb.iframe.bundle.js | 1 - ...con-Icon-stories.f36bb45f.iframe.bundle.js | 1 + ...onButton-stories.3902ebd6.iframe.bundle.js | 1 + ...onButton-stories.9db18370.iframe.bundle.js | 1 - ...ink-Link-stories.1c1d1753.iframe.bundle.js | 1 + ...ink-Link-stories.b0ce82ba.iframe.bundle.js | 1 - ...oginForm-stories.5dd5554f.iframe.bundle.js | 1 + ...oginForm-stories.cd9173c4.iframe.bundle.js | 1 - ...al-Modal-stories.355e901c.iframe.bundle.js | 1 + ...al-Modal-stories.861a08e7.iframe.bundle.js | 1 - ...lExample-stories.2bafacf8.iframe.bundle.js | 1 - ...lExample-stories.ce996d6e.iframe.bundle.js | 1 + ...ndicator-stories.09329ba3.iframe.bundle.js | 1 - ...ndicator-stories.dbc802f8.iframe.bundle.js | 1 + ...extInput-stories.10d092a1.iframe.bundle.js | 1 - ...extInput-stories.67c6f877.iframe.bundle.js | 1 + iframe.html | 8 +- index.html | 3 +- main.106db4dd.iframe.bundle.js | 2 + ...main.106db4dd.iframe.bundle.js.LICENSE.txt | 0 main.f42ba85f.iframe.bundle.js | 2 - ...oginPage-stories.01312b8e.iframe.bundle.js | 1 + ...oginPage-stories.040c69c8.iframe.bundle.js | 1 - project.json | 2 +- runtime~main.0b1f1962.iframe.bundle.js | 1 + runtime~main.d81a7c83.iframe.bundle.js | 1 - .../essentials-actions-1/manager-bundle.js | 2 +- .../essentials-actions-10/manager-bundle.js | 2 +- .../manager-bundle.js | 8 +- .../manager-bundle.js | 8 +- .../essentials-controls-0/manager-bundle.js | 125 ++++-- .../essentials-controls-9/manager-bundle.js | 125 ++++-- .../essentials-measure-14/manager-bundle.js | 2 +- .../essentials-measure-5/manager-bundle.js | 2 +- .../essentials-outline-15/manager-bundle.js | 2 +- .../essentials-outline-6/manager-bundle.js | 2 +- .../essentials-toolbars-13/manager-bundle.js | 2 +- .../essentials-toolbars-4/manager-bundle.js | 2 +- .../essentials-viewport-12/manager-bundle.js | 2 +- .../essentials-viewport-3/manager-bundle.js | 2 +- sb-addons/interactions-16/manager-bundle.js | 33 +- sb-addons/links-8/manager-bundle.js | 2 +- sb-addons/styling-7/manager-bundle.js | 2 +- sb-manager/WithTooltip-4HIR6TLV-L6ICANXH.js | 1 + sb-manager/WithTooltip-V3YHNWJZ-LVYLGZW2.js | 1 - sb-manager/chunk-2IXBUOFS.js | 7 - .../{chunk-INSKDKQB.js => chunk-5AW67ZFX.js} | 12 +- sb-manager/chunk-NGTUFCUO.js | 9 - sb-manager/chunk-OQCANWBN.js | 7 + sb-manager/chunk-TCCQ5FBZ.js | 9 + .../{chunk-NMB3SATH.js => chunk-WZJAIZ64.js} | 46 +- sb-manager/globals-module-info.js | 1 - sb-manager/globals.js | 2 +- sb-manager/index.js | 2 +- sb-manager/runtime.js | 2 +- ...=> syntaxhighlighter-NMPM6SWI-WFK223KV.js} | 2 +- sb-preview/globals.js | 2 +- sb-preview/runtime.js | 32 +- ...s-Banner-stories.babbc0bc.iframe.bundle.js | 1 - ...s-Banner-stories.d330834d.iframe.bundle.js | 1 + ...s-Button-stories.42a9f35f.iframe.bundle.js | 1 - ...s-Button-stories.5d9d1c9d.iframe.bundle.js | 1 + ...ies-Card-stories.6b69c5e1.iframe.bundle.js | 1 + ...ies-Card-stories.c6c670e1.iframe.bundle.js | 1 - ...s-Footer-stories.6f18824e.iframe.bundle.js | 1 - ...s-Footer-stories.8e691f9c.iframe.bundle.js | 1 + ...s-Navbar-stories.58ec9f22.iframe.bundle.js | 1 + ...s-Navbar-stories.6ad2e907.iframe.bundle.js | 1 - 110 files changed, 879 insertions(+), 762 deletions(-) create mode 100644 163.67773e18.iframe.bundle.js rename 200.78d84044.iframe.bundle.js.LICENSE.txt => 163.67773e18.iframe.bundle.js.LICENSE.txt (100%) delete mode 100644 200.78d84044.iframe.bundle.js rename 203.8e06ff51.iframe.bundle.js => 251.6acc2ae4.iframe.bundle.js (98%) create mode 100644 296.34c5ea5c.iframe.bundle.js delete mode 100644 312.b2a56372.iframe.bundle.js create mode 100644 378.f80a919d.iframe.bundle.js create mode 100644 497.650e2593.iframe.bundle.js rename 856.51214c11.iframe.bundle.js.LICENSE.txt => 497.650e2593.iframe.bundle.js.LICENSE.txt (74%) create mode 100644 497.650e2593.iframe.bundle.js.map delete mode 100644 607.45aeac29.iframe.bundle.js create mode 100644 678.e37c25a0.iframe.bundle.js rename 678.e984e9a5.iframe.bundle.js.LICENSE.txt => 678.e37c25a0.iframe.bundle.js.LICENSE.txt (100%) delete mode 100644 678.e984e9a5.iframe.bundle.js rename 875.2dc3f5b0.iframe.bundle.js => 737.86053457.iframe.bundle.js (97%) rename 272.cfcb1b23.iframe.bundle.js => 748.c3bb3d52.iframe.bundle.js (97%) rename 272.cfcb1b23.iframe.bundle.js.LICENSE.txt => 748.c3bb3d52.iframe.bundle.js.LICENSE.txt (100%) create mode 100644 784.85ed88b9.iframe.bundle.js rename 784.ec327f43.iframe.bundle.js.LICENSE.txt => 784.85ed88b9.iframe.bundle.js.LICENSE.txt (100%) create mode 100644 784.85ed88b9.iframe.bundle.js.map delete mode 100644 784.ec327f43.iframe.bundle.js delete mode 100644 784.ec327f43.iframe.bundle.js.map delete mode 100644 797.6ec4627a.iframe.bundle.js delete mode 100644 831.73a165c3.iframe.bundle.js delete mode 100644 856.51214c11.iframe.bundle.js delete mode 100644 856.51214c11.iframe.bundle.js.map rename 740.fb7741a3.iframe.bundle.js => 882.ce94055e.iframe.bundle.js (94%) create mode 100644 984.bc677805.iframe.bundle.js delete mode 100644 components-announcements-announcements-stories.79268b8d.iframe.bundle.js create mode 100644 components-announcements-announcements-stories.cc7f3e9b.iframe.bundle.js create mode 100644 components-button-ButtonLink-stories.5f82ed51.iframe.bundle.js delete mode 100644 components-button-ButtonLink-stories.d29dc07f.iframe.bundle.js delete mode 100644 components-checkbox-input-CheckboxInput-stories.089e5569.iframe.bundle.js create mode 100644 components-checkbox-input-CheckboxInput-stories.aa481911.iframe.bundle.js delete mode 100644 components-course-modules-CourseModules-stories.8112661d.iframe.bundle.js create mode 100644 components-course-modules-CourseModules-stories.f2d211b1.iframe.bundle.js create mode 100644 components-course-modules-page-navigation-PageNavigationButtonLinks-stories.8df222a1.iframe.bundle.js delete mode 100644 components-course-modules-page-navigation-PageNavigationButtonLinks-stories.c350f542.iframe.bundle.js delete mode 100644 components-course-page-banner-CoursePageBanner-stories.5e4c3737.iframe.bundle.js create mode 100644 components-course-page-banner-CoursePageBanner-stories.7626d164.iframe.bundle.js delete mode 100644 components-dropdown-button-DropdownButton-stories.be9b49a6.iframe.bundle.js create mode 100644 components-dropdown-button-DropdownButton-stories.cc5f4a9f.iframe.bundle.js delete mode 100644 components-icon-Icon-stories.135a34bb.iframe.bundle.js create mode 100644 components-icon-Icon-stories.f36bb45f.iframe.bundle.js create mode 100644 components-icon-button-IconButton-stories.3902ebd6.iframe.bundle.js delete mode 100644 components-icon-button-IconButton-stories.9db18370.iframe.bundle.js create mode 100644 components-link-Link-stories.1c1d1753.iframe.bundle.js delete mode 100644 components-link-Link-stories.b0ce82ba.iframe.bundle.js create mode 100644 components-login-form-LoginForm-stories.5dd5554f.iframe.bundle.js delete mode 100644 components-login-form-LoginForm-stories.cd9173c4.iframe.bundle.js create mode 100644 components-modal-Modal-stories.355e901c.iframe.bundle.js delete mode 100644 components-modal-Modal-stories.861a08e7.iframe.bundle.js delete mode 100644 components-modal-ModalExample-stories.2bafacf8.iframe.bundle.js create mode 100644 components-modal-ModalExample-stories.ce996d6e.iframe.bundle.js delete mode 100644 components-module-progress-indicator-ModulesProgressIndicator-stories.09329ba3.iframe.bundle.js create mode 100644 components-module-progress-indicator-ModulesProgressIndicator-stories.dbc802f8.iframe.bundle.js delete mode 100644 components-text-input-TextInput-stories.10d092a1.iframe.bundle.js create mode 100644 components-text-input-TextInput-stories.67c6f877.iframe.bundle.js create mode 100644 main.106db4dd.iframe.bundle.js rename main.f42ba85f.iframe.bundle.js.LICENSE.txt => main.106db4dd.iframe.bundle.js.LICENSE.txt (100%) delete mode 100644 main.f42ba85f.iframe.bundle.js create mode 100644 pages-login-page-LoginPage-stories.01312b8e.iframe.bundle.js delete mode 100644 pages-login-page-LoginPage-stories.040c69c8.iframe.bundle.js create mode 100644 runtime~main.0b1f1962.iframe.bundle.js delete mode 100644 runtime~main.d81a7c83.iframe.bundle.js create mode 100644 sb-manager/WithTooltip-4HIR6TLV-L6ICANXH.js delete mode 100644 sb-manager/WithTooltip-V3YHNWJZ-LVYLGZW2.js delete mode 100644 sb-manager/chunk-2IXBUOFS.js rename sb-manager/{chunk-INSKDKQB.js => chunk-5AW67ZFX.js} (95%) delete mode 100644 sb-manager/chunk-NGTUFCUO.js create mode 100644 sb-manager/chunk-OQCANWBN.js create mode 100644 sb-manager/chunk-TCCQ5FBZ.js rename sb-manager/{chunk-NMB3SATH.js => chunk-WZJAIZ64.js} (54%) delete mode 100644 sb-manager/globals-module-info.js rename sb-manager/{syntaxhighlighter-V7JZZA35-DXZCI2WR.js => syntaxhighlighter-NMPM6SWI-WFK223KV.js} (54%) delete mode 100644 stories-Banner-stories.babbc0bc.iframe.bundle.js create mode 100644 stories-Banner-stories.d330834d.iframe.bundle.js delete mode 100644 stories-Button-stories.42a9f35f.iframe.bundle.js create mode 100644 stories-Button-stories.5d9d1c9d.iframe.bundle.js create mode 100644 stories-Card-stories.6b69c5e1.iframe.bundle.js delete mode 100644 stories-Card-stories.c6c670e1.iframe.bundle.js delete mode 100644 stories-Footer-stories.6f18824e.iframe.bundle.js create mode 100644 stories-Footer-stories.8e691f9c.iframe.bundle.js create mode 100644 stories-Navbar-stories.58ec9f22.iframe.bundle.js delete mode 100644 stories-Navbar-stories.6ad2e907.iframe.bundle.js diff --git a/163.67773e18.iframe.bundle.js b/163.67773e18.iframe.bundle.js new file mode 100644 index 00000000..5b5f3952 --- /dev/null +++ b/163.67773e18.iframe.bundle.js @@ -0,0 +1,2 @@ +/*! For license information please see 163.67773e18.iframe.bundle.js.LICENSE.txt */ +"use strict";(self.webpackChunkmooc=self.webpackChunkmooc||[]).push([[163],{"./src/vue/components/course-modules/completed-utils.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{function countPagesAndCompleted(entry){var totalPages=0,completedPages=0,pages=[];return function processNode(node){"page"===node.type||"discussion"===node.type||"quiz"===node.type?("isCompleted"in node&&totalPages++,node.isCompleted&&completedPages++,pages.push(node)):"module"===node.type&&node.nodes.forEach((function(child){return processNode(child)}))}(entry),{id:entry.id,totalPages,completedPages,pages}}function completedPagesForAllModules(modulesCompletedCount){var totalPages=0,completedPages=0,completedModules=0;return modulesCompletedCount.forEach((function(module){module.totalPages>0&&module.totalPages===module.completedPages&&completedModules++,totalPages+=module.totalPages,completedPages+=module.completedPages})),{totalPages,completedPages,completedModules,totalModules:modulesCompletedCount.length}}__webpack_require__.d(__webpack_exports__,{E:()=>countPagesAndCompleted,K:()=>completedPagesForAllModules})},"./node_modules/css-loader/dist/cjs.js??clonedRuleSet-16.use[1]!./node_modules/@storybook/preset-vue3-webpack/node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/resolve-url-loader/index.js!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-16.use[3]!./node_modules/@storybook/preset-vue3-webpack/node_modules/vue-loader/dist/index.js??ruleSet[0]!./src/vue/components/button/ButtonLink.vue?vue&type=style&index=0&id=cba08fa2&lang=scss":(module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{Z:()=>__WEBPACK_DEFAULT_EXPORT__});var _node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/css-loader/dist/runtime/sourceMaps.js"),_node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0__),_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/css-loader/dist/runtime/api.js"),___CSS_LOADER_EXPORT___=__webpack_require__.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__)()(_node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default());___CSS_LOADER_EXPORT___.push([module.id,".btn-link{cursor:pointer;position:relative;background:#303030;color:#fff;border:none;border-radius:.1875rem;font-weight:700;line-height:1;display:flex;align-items:center;bottom:-0.05rem;text-decoration:none !important;width:fit-content}.btn-link:hover{background:#00468e;color:#fff;text-decoration:none !important}.btn-link--filled{background:#303030;color:#fff}.btn-link--filled.btn-link--sm{padding:.25rem .875rem .25rem .875rem}.btn-link--filled.btn-link--md{padding:.5rem 1.375rem .5rem 1.375rem}.btn-link--filled.btn-link--lg{padding:.75rem 1.75rem .75rem 1.75rem}.btn-link--outlined{background:#fff;color:#303030;border:.125rem solid #303030}.btn-link--outlined:hover{border:.125rem solid #00468e}.btn-link--outlined.btn-link--sm{padding:.125rem .75rem .125rem .75rem}.btn-link--outlined.btn-link--md{padding:.375rem 1.25rem .375rem 1.15rem}.btn-link--outlined.btn-link--lg{padding:.625rem 1.625rem .625rem 1.625rem}.btn-link--dropdown{background:#fff;color:#303030;border:.125rem solid #303030}.btn-link--dropdown:hover{background:#303030;border:.125rem solid #303030}.btn-link--dropdown.btn-link--sm{padding:.125rem .75rem .125rem .75rem}.btn-link--dropdown.btn-link--md{padding:.375rem 1.25rem .375rem 1.25rem}.btn-link--dropdown.btn-link--lg{padding:.625rem 1.625rem .625rem 1.625rem}.feide-symbol{width:1em;height:1em;margin-right:.5em;margin-top:-0.5em}","",{version:3,sources:["webpack://./src/vue/components/button/ButtonLink.vue","webpack://./src/vue/design/colors.scss"],names:[],mappings:"AAGA,UACE,cAAA,CACA,iBAAA,CACA,kBCGe,CDFf,UCKY,CDJZ,WAAA,CACA,sBAAA,CACA,eAAA,CACA,aAAA,CACA,YAAA,CACA,kBAAA,CACA,eAAA,CACA,+BAAA,CACA,iBAAA,CAEA,gBACE,kBAAA,CACA,UCRU,CDSV,+BAAA,CAGF,kBACE,kBChBa,CDiBb,UCdU,CDgBV,+BACE,qCAAA,CAEF,+BACE,qCAAA,CAEF,+BACE,qCAAA,CAIJ,oBACE,eC5BU,CD6BV,aChCa,CDiCb,4BAAA,CAEA,0BACE,4BAAA,CAGF,iCACE,qCAAA,CAEF,iCACE,uCAAA,CAEF,iCACE,yCAAA,CAIJ,oBACE,eChDU,CDiDV,aCpDa,CDqDb,4BAAA,CAEA,0BACE,kBCxDW,CDyDX,4BAAA,CAGF,iCACE,qCAAA,CAEF,iCACE,uCAAA,CAEF,iCACE,yCAAA,CAKN,cACE,SAAA,CACA,UAAA,CACA,iBAAA,CACA,iBAAA",sourcesContent:["\n@import '../../design/colors.scss';\n\n.btn-link {\n cursor: pointer;\n position: relative;\n background: $color-grey-900;\n color: $color-white;\n border: none;\n border-radius: 0.1875rem;\n font-weight: 700;\n line-height: 1;\n display: flex;\n align-items: center;\n bottom: -0.05rem;\n text-decoration:none!important;\n width: fit-content;\n\n &:hover {\n background: #00468e;\n color: $color-white;\n text-decoration:none!important;\n }\n\n &--filled {\n background: $color-grey-900;\n color: $color-white;\n\n &.btn-link--sm {\n padding: 0.25rem 0.875rem 0.25rem 0.875rem;\n }\n &.btn-link--md {\n padding: 0.5rem 1.375rem 0.5rem 1.375rem;\n }\n &.btn-link--lg {\n padding: 0.75rem 1.75rem 0.75rem 1.75rem;\n }\n }\n\n &--outlined {\n background: $color-white;\n color: $color-grey-900;\n border: 0.125rem solid $color-grey-900;\n\n &:hover {\n border: 0.125rem solid #00468e;\n }\n\n &.btn-link--sm {\n padding: 0.125rem 0.75rem 0.125rem 0.75rem;\n }\n &.btn-link--md {\n padding: 0.375rem 1.25rem 0.375rem 1.15rem;\n }\n &.btn-link--lg {\n padding: 0.625rem 1.625rem 0.625rem 1.625rem;\n }\n }\n\n &--dropdown {\n background: $color-white;\n color: $color-grey-900;\n border: 0.125rem solid $color-grey-900;\n\n &:hover {\n background: $color-grey-900;\n border: 0.125rem solid $color-grey-900;\n }\n\n &.btn-link--sm {\n padding: 0.125rem 0.75rem 0.125rem 0.75rem;\n }\n &.btn-link--md {\n padding: 0.375rem 1.25rem 0.375rem 1.25rem;\n }\n &.btn-link--lg {\n padding: 0.625rem 1.625rem 0.625rem 1.625rem;\n }\n }\n}\n\n.feide-symbol{\n width: 1em;\n height: 1em;\n margin-right: 0.5em;\n margin-top: -0.5em;\n}\n","// support colors\n$color-grey-100: #f9f9f9; \n$color-grey-200: #f1f1f1;\n$color-grey-300: #eaeaea;\n$color-grey-400: #e6e6e6;\n$color-grey-500: #bfbfbf;\n$color-grey-600: #999999;\n$colorgrey-700: #737373;\n$color-grey-800: #666666;\n$color-grey-900: #303030;\n\n$color-black: #1a1a1a;\n$color-white: #ffffff;\n$primary-hover-color:#00468e;\n\n\n// Color palettes\n$color-palette-green: (\n background: (\n 200: #e3f2eb,\n 300: #94caae,\n 400: #7dbf9d,\n 500: #3b7858,\n 600: #254b38\n ),\n foreground: (\n 200: $color-black,\n 300: $color-black,\n 400: $color-black,\n 500: $color-white,\n 600: $color-white\n )\n);\n\n$color-palette-eggshell: (\n background: (\n 300: #f6efe4,\n 400: #f2e8da,\n 500: #d6b689,\n 600: #8c6631,\n 700: #5e4521\n ),\n foreground: (\n 300: $color-black,\n 400: $color-black,\n 500: $color-white,\n 600: $color-white,\n 700: $color-white\n )\n);\n\n$color-palette-peach: (\n background: (\n 300: #f8ece6,\n 400: #eed0c3,\n 500: #dc9e83,\n 600: #a7532f,\n 700: #63321c\n ),\n foreground: (\n 300: $color-black,\n 400: $color-black,\n 500: $color-black,\n 600: $color-white,\n 700: $color-grey-200\n )\n);\n\n$color-palette-azur: (\n background: (\n 300: #eaeaf5,\n 400: #e2e3f1,\n 500: #c7c9e3,\n 600: #999cbf,\n 700: #666883\n ),\n foreground: (\n 300: #303030,\n 400: #303030,\n 500: #303030,\n 600: #303030,\n 700: #ffffff\n )\n);\n\n$color-palette-steel: (\n background: (\n 200: #f5f7f9,\n 300: #ebeef3,\n 400: #bac6d8,\n 500: #99abc5,\n 600: #51698f,\n 700: #2e3c51\n ),\n foreground: (\n 200: $color-grey-900,\n 300: $color-grey-900,\n 400: $color-grey-900,\n 500: $color-grey-900,\n 600: $color-white,\n 700: $color-white\n )\n);\n\n$color-palette-slate: (\n background: (\n 200: #eceff2,\n 300: #a0b1bf,\n 400: #6d889d,\n 500: #546b7d,\n 600: #191d24\n ),\n foreground: (\n 200: $color-grey-900,\n 300: $color-grey-900,\n 400: $color-grey-900,\n 500: $color-white,\n 600: $color-white\n )\n);\n\n// extra colors\n$color-palette-red: (\n background: (\n 200: #ffebee,\n 300: #ffcdd2,\n 400: #ef9a9a,\n 500: #ef5350,\n 600: #c62828\n ),\n foreground: (#E2E3F1\n 200: $color-grey-900,\n 300: $color-black,\n 400: $color-grey-900,\n 500: $color-grey-900,\n 600: $color-white\n )\n);\n\n$color-palette-orange: (\n background: (\n 200: #fff3e0,\n 300: #ffcc80,\n 400: #ffa726,\n 500: #fb8c00,\n 600: #EF6C00\n ),\n foreground: (\n 200: $color-grey-900,\n 300: $color-black,\n 400: $color-grey-900,\n 500: $color-grey-900,\n 600: $color-black\n )\n);\n"],sourceRoot:""}]);const __WEBPACK_DEFAULT_EXPORT__=___CSS_LOADER_EXPORT___},"./node_modules/css-loader/dist/cjs.js??clonedRuleSet-16.use[1]!./node_modules/@storybook/preset-vue3-webpack/node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/resolve-url-loader/index.js!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-16.use[3]!./node_modules/@storybook/preset-vue3-webpack/node_modules/vue-loader/dist/index.js??ruleSet[0]!./src/vue/components/icon/Icon.vue?vue&type=style&index=0&id=90c4211a&lang=scss":(module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{Z:()=>__WEBPACK_DEFAULT_EXPORT__});var _node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/css-loader/dist/runtime/sourceMaps.js"),_node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0__),_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/css-loader/dist/runtime/api.js"),___CSS_LOADER_EXPORT___=__webpack_require__.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__)()(_node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default());___CSS_LOADER_EXPORT___.push([module.id,".material-icon{color:inherit}.material-icon__icon .custom-size-1em{font-size:1em}.material-icon__icon .custom-size-2em{font-size:2em}.material-icon__icon .custom-size-3em{font-size:3em}","",{version:3,sources:["webpack://./src/vue/components/icon/Icon.vue"],names:[],mappings:"AACA,eACE,aAAA,CAII,sCACE,aAAA,CADF,sCACE,aAAA,CADF,sCACE,aAAA",sourcesContent:["\n.material-icon {\n color: inherit;\n\n &__icon {\n @each $size in (1em, 2em, 3em) {\n .custom-size-#{$size} {\n font-size: #{$size};\n }\n }\n }\n}\n"],sourceRoot:""}]);const __WEBPACK_DEFAULT_EXPORT__=___CSS_LOADER_EXPORT___},"./src/vue/components/button/ButtonLink.vue":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{Z:()=>ButtonLink});var vue_esm_bundler=__webpack_require__("./node_modules/vue/dist/vue.esm-bundler.js"),Icon=__webpack_require__("./src/vue/components/icon/Icon.vue"),vuex_esm_bundler=__webpack_require__("./node_modules/vuex/dist/vuex.esm-bundler.js"),api=__webpack_require__("./src/js/api/api.js"),util=__webpack_require__("./src/js/modules/util.js");function _createForOfIteratorHelper(o,allowArrayLike){var it="undefined"!=typeof Symbol&&o[Symbol.iterator]||o["@@iterator"];if(!it){if(Array.isArray(o)||(it=function _unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen)}(o))||allowArrayLike&&o&&"number"==typeof o.length){it&&(o=it);var i=0,F=function F(){};return{s:F,n:function n(){return i>=o.length?{done:!0}:{done:!1,value:o[i++]}},e:function e(_e){throw _e},f:F}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var err,normalCompletion=!0,didErr=!1;return{s:function s(){it=it.call(o)},n:function n(){var step=it.next();return normalCompletion=step.done,step},e:function e(_e2){didErr=!0,err=_e2},f:function f(){try{normalCompletion||null==it.return||it.return()}finally{if(didErr)throw err}}}}function _arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i0)if(findNodeById(targetId,node.nodes))return node.id}}catch(err){_iterator.e(err)}finally{_iterator.f()}return null}function _typeof(o){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}function _regeneratorRuntime(){_regeneratorRuntime=function _regeneratorRuntime(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function define(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{define({},"")}catch(t){define=function define(t,e,r){return t[e]=r}}function wrap(t,e,r,n){var i=e&&e.prototype instanceof Generator?e:Generator,a=Object.create(i.prototype),c=new Context(n||[]);return o(a,"_invoke",{value:makeInvokeMethod(t,r,c)}),a}function tryCatch(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=wrap;var h="suspendedStart",l="suspendedYield",f="executing",s="completed",y={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var p={};define(p,a,(function(){return this}));var d=Object.getPrototypeOf,v=d&&d(d(values([])));v&&v!==r&&n.call(v,a)&&(p=v);var g=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(p);function defineIteratorMethods(t){["next","throw","return"].forEach((function(e){define(t,e,(function(t){return this._invoke(e,t)}))}))}function AsyncIterator(t,e){function invoke(r,o,i,a){var c=tryCatch(t[r],t,o);if("throw"!==c.type){var u=c.arg,h=u.value;return h&&"object"==_typeof(h)&&n.call(h,"__await")?e.resolve(h.__await).then((function(t){invoke("next",t,i,a)}),(function(t){invoke("throw",t,i,a)})):e.resolve(h).then((function(t){u.value=t,i(u)}),(function(t){return invoke("throw",t,i,a)}))}a(c.arg)}var r;o(this,"_invoke",{value:function value(t,n){function callInvokeWithMethodAndArg(){return new e((function(e,r){invoke(t,n,e,r)}))}return r=r?r.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg()}})}function makeInvokeMethod(e,r,n){var o=h;return function(i,a){if(o===f)throw new Error("Generator is already running");if(o===s){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=maybeInvokeDelegate(c,n);if(u){if(u===y)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=s,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=f;var p=tryCatch(e,r,n);if("normal"===p.type){if(o=n.done?s:l,p.arg===y)continue;return{value:p.arg,done:n.done}}"throw"===p.type&&(o=s,n.method="throw",n.arg=p.arg)}}}function maybeInvokeDelegate(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,maybeInvokeDelegate(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=tryCatch(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function pushTryEntry(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function resetTryEntry(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function Context(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(pushTryEntry,this),this.reset(!0)}function values(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function next(){for(;++o=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return handle("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),resetTryEntry(r),y}},catch:function _catch(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;resetTryEntry(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function delegateYield(e,r,n){return this.delegate={iterator:values(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function _toConsumableArray(arr){return function _arrayWithoutHoles(arr){if(Array.isArray(arr))return data_arrayLikeToArray(arr)}(arr)||function _iterableToArray(iter){if("undefined"!=typeof Symbol&&null!=iter[Symbol.iterator]||null!=iter["@@iterator"])return Array.from(iter)}(arr)||data_unsupportedIterableToArray(arr)||function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,o)}return t}function _objectSpread(e){for(var r=1;r=o.length?{done:!0}:{done:!1,value:o[i++]}},e:function e(_e){throw _e},f:F}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var err,normalCompletion=!0,didErr=!1;return{s:function s(){it=it.call(o)},n:function n(){var step=it.next();return normalCompletion=step.done,step},e:function e(_e2){didErr=!0,err=_e2},f:function f(){try{normalCompletion||null==it.return||it.return()}finally{if(didErr)throw err}}}}function data_unsupportedIterableToArray(o,minLen){if(o){if("string"==typeof o)return data_arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);return"Object"===n&&o.constructor&&(n=o.constructor.name),"Map"===n||"Set"===n?Array.from(o):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?data_arrayLikeToArray(o,minLen):void 0}}function data_arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i=o.length?{done:!0}:{done:!1,value:o[i++]}},e:function e(_e){throw _e},f:F}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var err,normalCompletion=!0,didErr=!1;return{s:function s(){it=it.call(o)},n:function n(){var step=it.next();return normalCompletion=step.done,step},e:function e(_e2){didErr=!0,err=_e2},f:function f(){try{normalCompletion||null==it.return||it.return()}finally{if(didErr)throw err}}}}function store_helper_toConsumableArray(arr){return function store_helper_arrayWithoutHoles(arr){if(Array.isArray(arr))return store_helper_arrayLikeToArray(arr)}(arr)||function store_helper_iterableToArray(iter){if("undefined"!=typeof Symbol&&null!=iter[Symbol.iterator]||null!=iter["@@iterator"])return Array.from(iter)}(arr)||store_helper_unsupportedIterableToArray(arr)||function store_helper_nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function store_helper_unsupportedIterableToArray(o,minLen){if(o){if("string"==typeof o)return store_helper_arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);return"Object"===n&&o.constructor&&(n=o.constructor.name),"Map"===n||"Set"===n?Array.from(o):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?store_helper_arrayLikeToArray(o,minLen):void 0}}function store_helper_arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i0&&update(item.nodes)}}catch(err){_iterator2.e(err)}finally{_iterator2.f()}}(data),results};function store_typeof(o){return store_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},store_typeof(o)}function store_regeneratorRuntime(){store_regeneratorRuntime=function _regeneratorRuntime(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function define(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{define({},"")}catch(t){define=function define(t,e,r){return t[e]=r}}function wrap(t,e,r,n){var i=e&&e.prototype instanceof Generator?e:Generator,a=Object.create(i.prototype),c=new Context(n||[]);return o(a,"_invoke",{value:makeInvokeMethod(t,r,c)}),a}function tryCatch(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=wrap;var h="suspendedStart",l="suspendedYield",f="executing",s="completed",y={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var p={};define(p,a,(function(){return this}));var d=Object.getPrototypeOf,v=d&&d(d(values([])));v&&v!==r&&n.call(v,a)&&(p=v);var g=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(p);function defineIteratorMethods(t){["next","throw","return"].forEach((function(e){define(t,e,(function(t){return this._invoke(e,t)}))}))}function AsyncIterator(t,e){function invoke(r,o,i,a){var c=tryCatch(t[r],t,o);if("throw"!==c.type){var u=c.arg,h=u.value;return h&&"object"==store_typeof(h)&&n.call(h,"__await")?e.resolve(h.__await).then((function(t){invoke("next",t,i,a)}),(function(t){invoke("throw",t,i,a)})):e.resolve(h).then((function(t){u.value=t,i(u)}),(function(t){return invoke("throw",t,i,a)}))}a(c.arg)}var r;o(this,"_invoke",{value:function value(t,n){function callInvokeWithMethodAndArg(){return new e((function(e,r){invoke(t,n,e,r)}))}return r=r?r.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg()}})}function makeInvokeMethod(e,r,n){var o=h;return function(i,a){if(o===f)throw new Error("Generator is already running");if(o===s){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=maybeInvokeDelegate(c,n);if(u){if(u===y)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=s,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=f;var p=tryCatch(e,r,n);if("normal"===p.type){if(o=n.done?s:l,p.arg===y)continue;return{value:p.arg,done:n.done}}"throw"===p.type&&(o=s,n.method="throw",n.arg=p.arg)}}}function maybeInvokeDelegate(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,maybeInvokeDelegate(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=tryCatch(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function pushTryEntry(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function resetTryEntry(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function Context(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(pushTryEntry,this),this.reset(!0)}function values(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function next(){for(;++o=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return handle("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),resetTryEntry(r),y}},catch:function _catch(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;resetTryEntry(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function delegateYield(e,r,n){return this.delegate={iterator:values(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function store_asyncGeneratorStep(gen,resolve,reject,_next,_throw,key,arg){try{var info=gen[key](arg),value=info.value}catch(error){return void reject(error)}info.done?resolve(value):Promise.resolve(value).then(_next,_throw)}function store_asyncToGenerator(fn){return function(){var self=this,args=arguments;return new Promise((function(resolve,reject){var gen=fn.apply(self,args);function _next(value){store_asyncGeneratorStep(gen,resolve,reject,_next,_throw,"next",value)}function _throw(err){store_asyncGeneratorStep(gen,resolve,reject,_next,_throw,"throw",err)}_next(void 0)}))}}function store_toConsumableArray(arr){return function store_arrayWithoutHoles(arr){if(Array.isArray(arr))return store_arrayLikeToArray(arr)}(arr)||function store_iterableToArray(iter){if("undefined"!=typeof Symbol&&null!=iter[Symbol.iterator]||null!=iter["@@iterator"])return Array.from(iter)}(arr)||function store_unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return store_arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return store_arrayLikeToArray(o,minLen)}(arr)||function store_nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function store_arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i0&&update(item.nodes)}}catch(err){_iterator.e(err)}finally{_iterator.f()}})(data)}(state.courseModules,"isActive",!0,!1),function updatePropertiesRecursively(data,searchPropertyName,searchPropertyValue,updatePropertyName,newPropertyValue){var results=[],updateParentNodes=function updateParentNodes(data,item,parentIsActive){for(var parent=getParentNode(data,item);parent;)parent.isActive=!0,parent=getParentNode(data,parent)},getParentNode=function getParentNode(data,item){var parent=null;return function findParent(items){var _step4,_iterator4=store_helper_createForOfIteratorHelper(items);try{for(_iterator4.s();!(_step4=_iterator4.n()).done;){var currentItem=_step4.value;if(currentItem.nodes&¤tItem.nodes.includes(item)){parent=currentItem;break}currentItem.nodes&¤tItem.nodes.length>0&&findParent(currentItem.nodes)}}catch(err){_iterator4.e(err)}finally{_iterator4.f()}}(data),parent};(function update(items){var _step3,parentIsActive=arguments.length>1&&void 0!==arguments[1]&&arguments[1],_iterator3=store_helper_createForOfIteratorHelper(items);try{for(_iterator3.s();!(_step3=_iterator3.n()).done;){var item=_step3.value;item.hasOwnProperty(searchPropertyName)&&item[searchPropertyName]===searchPropertyValue&&(item[updatePropertyName]=newPropertyValue,updateParentNodes(data,item,parentIsActive),results.push(item)),item.nodes&&item.nodes.length>0&&update(item.nodes,item.isActive||parentIsActive)}}catch(err){_iterator3.e(err)}finally{_iterator3.f()}})(data)}(state.courseModules,"url",url,"isActive",!0),function checkProperties(data,searchPropertyName,searchPropertyValue,secondPropertyName,secondPropertyValue){return function search(items){var _step5,_iterator5=store_helper_createForOfIteratorHelper(items);try{for(_iterator5.s();!(_step5=_iterator5.n()).done;){var item=_step5.value;if(item.hasOwnProperty(searchPropertyName)&&item[searchPropertyName]===searchPropertyValue&&item.hasOwnProperty(secondPropertyName)&&item[secondPropertyName]===secondPropertyValue)return!0;if(item.nodes&&item.nodes.length>0&&search(item.nodes))return!0}}catch(err){_iterator5.e(err)}finally{_iterator5.f()}return!1}(data)}(state.courseModules,"url",url,"type","discussion")&&function checkSecondPropertyExistence(data,searchPropertyName,searchPropertyValue,secondPropertyName){return function search(items){var _step6,_iterator6=store_helper_createForOfIteratorHelper(items);try{for(_iterator6.s();!(_step6=_iterator6.n()).done;){var item=_step6.value;if(item.hasOwnProperty(searchPropertyName)&&item[searchPropertyName]===searchPropertyValue&&item.hasOwnProperty(secondPropertyName))return!0;if(item.nodes&&item.nodes.length>0&&search(item.nodes))return!0}}catch(err){_iterator6.e(err)}finally{_iterator6.f()}return!1}(data)}(state.courseModules,"url",url,"isCompleted")&&(state.pageCompletion="true",sessionStorage.setItem("pageCompletion","true"),findAndUpdateByProperty(state.courseModules,"url",url,"isCompleted",!0)),setSessionStorage(api.Z.getCurrentCourseId(),state.courseModules)}},actions:{fetchCourseModules:function fetchCourseModules(_ref){return store_asyncToGenerator(store_regeneratorRuntime().mark((function _callee(){var dispatch,commit,response;return store_regeneratorRuntime().wrap((function _callee$(_context){for(;;)switch(_context.prev=_context.next){case 0:if(dispatch=_ref.dispatch,commit=_ref.commit,_context.prev=1,null!==sessionStorage.getItem(api.Z.getCurrentCourseId())){_context.next=12;break}return _context.next=5,fetchModulesForCourse();case 5:response=_context.sent,commit("SET_COURSE_MODULES",response),commit("SET_COURSE_COMPLETION_PROGRESSION"),commit("SET_LIST_ALL_PAGES"),commit("SET_COURSE_MODULES_IN_STORE",!0),_context.next=16;break;case 12:commit("SET_COURSE_COMPLETION_PROGRESSION"),commit("SET_LIST_ALL_PAGES"),commit("SET_COURSE_MODULES_IN_STORE",!0),dispatch("fetchCourseModulesBackGround");case 16:_context.next=21;break;case 18:_context.prev=18,_context.t0=_context.catch(1),console.error("Error fetching course modules:",_context.t0);case 21:case"end":return _context.stop()}}),_callee,null,[[1,18]])})))()},fetchCourseModulesBackGround:function fetchCourseModulesBackGround(_ref2){return store_asyncToGenerator(store_regeneratorRuntime().mark((function _callee2(){var state,commit,response,storeCourseModules,responseCourseModules;return store_regeneratorRuntime().wrap((function _callee2$(_context2){for(;;)switch(_context2.prev=_context2.next){case 0:return state=_ref2.state,commit=_ref2.commit,_context2.prev=1,_context2.next=4,fetchModulesForCourse();case 4:response=_context2.sent,storeCourseModules=JSON.parse(JSON.stringify(state.courseModules)),responseCourseModules=JSON.parse(JSON.stringify(response)),deepCompare(storeCourseModules,responseCourseModules)||"false"===state.pageCompletion&&(commit("SET_COURSE_MODULES",response),commit("SET_COURSE_COMPLETION_PROGRESSION"),commit("SET_LIST_ALL_PAGES"),commit("SET_COURSE_MODULES_IN_STORE",!0)),_context2.next=13;break;case 10:_context2.prev=10,_context2.t0=_context2.catch(1),console.error("Error fetching course modules:",_context2.t0);case 13:return _context2.prev=13,sessionStorage.setItem("pageCompletion","false"),_context2.finish(13);case 16:case"end":return _context2.stop()}}),_callee2,null,[[1,10,13,16]])})))()},setActivePageAndModule:function setActivePageAndModule(_ref3,url){(0,_ref3.commit)("SET_ACTIVE_MODULE_AND_PAGE",url)},setPageCompletion:function setPageCompletion(_ref4,completed){var commit=_ref4.commit;commit("SET_PAGE_COMPLETION",completed),commit("SET_COURSE_COMPLETION_PROGRESSION")}},getters:{courseModules:function courseModules(state){return state.courseModules},courseModulesInStore:function courseModulesInStore(state){return state.courseModulesInStore},completionProgression:function completionProgression(state){return state.completionProgression},pages:function pages(state){return state.pages},pageCompletion:function pageCompletion(state){return state.pageCompletion}}});const vue_store=store;var _hoisted_1=["src"];const ButtonLinkvue_type_script_setup_true_lang_js={__name:"ButtonLink",props:{size:String,type:String,url:String},setup:function setup(__props){var props=__props,isFilled=!props.type||"filled"===props.type||"feideLogin"===props.type,isOutlined="outlined"===props.type||"previous"===props.type||"next"===props.type,isDropdown="dropdown"===props.type;return function(_ctx,_cache){return(0,vue_esm_bundler.wg)(),(0,vue_esm_bundler.iD)("a",{class:(0,vue_esm_bundler.C_)(["btn-link",{"btn-link--filled":(0,vue_esm_bundler.SU)(isFilled)},{"btn-link--outlined":(0,vue_esm_bundler.SU)(isOutlined)},{"btn-link--dropdown":isDropdown},{"btn-link--sm":"sm"===__props.size},{"btn-link--md":!__props.size||"md"===__props.size},{"btn-link--lg":"lg"===__props.size}]),onClick:_cache[0]||(_cache[0]=function($event){return function setActivePageAndModule(url){vue_store.dispatch("setActivePageAndModule",url).then((function(){window.location=url})).catch((function(error){console.error("Error:",error)}))}(__props.url)})},["previous"===__props.type?((0,vue_esm_bundler.wg)(),(0,vue_esm_bundler.j4)(Icon.Z,{key:0,name:"chevron_left",size:"1.5em"})):(0,vue_esm_bundler.kq)("",!0),"feideLogin"===__props.type?((0,vue_esm_bundler.wg)(),(0,vue_esm_bundler.iD)("img",{key:1,class:"feide-symbol",src:"".concat((0,vue_esm_bundler.SU)("/frontend/"),"feide_white-symbol.svg")},null,8,_hoisted_1)):(0,vue_esm_bundler.kq)("",!0),(0,vue_esm_bundler.WI)(_ctx.$slots,"default"),"next"===__props.type?((0,vue_esm_bundler.wg)(),(0,vue_esm_bundler.j4)(Icon.Z,{key:2,name:"chevron_right",size:"1.5em"})):(0,vue_esm_bundler.kq)("",!0)],2)}}};var injectStylesIntoStyleTag=__webpack_require__("./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),injectStylesIntoStyleTag_default=__webpack_require__.n(injectStylesIntoStyleTag),styleDomAPI=__webpack_require__("./node_modules/style-loader/dist/runtime/styleDomAPI.js"),styleDomAPI_default=__webpack_require__.n(styleDomAPI),insertBySelector=__webpack_require__("./node_modules/style-loader/dist/runtime/insertBySelector.js"),insertBySelector_default=__webpack_require__.n(insertBySelector),setAttributesWithoutAttributes=__webpack_require__("./node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js"),setAttributesWithoutAttributes_default=__webpack_require__.n(setAttributesWithoutAttributes),insertStyleElement=__webpack_require__("./node_modules/style-loader/dist/runtime/insertStyleElement.js"),insertStyleElement_default=__webpack_require__.n(insertStyleElement),styleTagTransform=__webpack_require__("./node_modules/style-loader/dist/runtime/styleTagTransform.js"),styleTagTransform_default=__webpack_require__.n(styleTagTransform),ButtonLinkvue_type_style_index_0_id_cba08fa2_lang_scss=__webpack_require__("./node_modules/css-loader/dist/cjs.js??clonedRuleSet-16.use[1]!./node_modules/@storybook/preset-vue3-webpack/node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/resolve-url-loader/index.js!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-16.use[3]!./node_modules/@storybook/preset-vue3-webpack/node_modules/vue-loader/dist/index.js??ruleSet[0]!./src/vue/components/button/ButtonLink.vue?vue&type=style&index=0&id=cba08fa2&lang=scss"),options={};options.styleTagTransform=styleTagTransform_default(),options.setAttributes=setAttributesWithoutAttributes_default(),options.insert=insertBySelector_default().bind(null,"head"),options.domAPI=styleDomAPI_default(),options.insertStyleElement=insertStyleElement_default();injectStylesIntoStyleTag_default()(ButtonLinkvue_type_style_index_0_id_cba08fa2_lang_scss.Z,options);ButtonLinkvue_type_style_index_0_id_cba08fa2_lang_scss.Z&&ButtonLinkvue_type_style_index_0_id_cba08fa2_lang_scss.Z.locals&&ButtonLinkvue_type_style_index_0_id_cba08fa2_lang_scss.Z.locals;const ButtonLink=ButtonLinkvue_type_script_setup_true_lang_js;ButtonLinkvue_type_script_setup_true_lang_js.__docgenInfo={exportName:"default",displayName:"ButtonLink",description:"",tags:{},props:[{name:"size",type:{name:"string"}},{name:"type",type:{name:"string"}},{name:"url",type:{name:"string"}}],slots:[{name:"default"}],sourceFiles:["/home/runner/work/frontend/frontend/src/vue/components/button/ButtonLink.vue"]}},"./src/vue/components/icon/Icon.vue":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{Z:()=>Icon});var vue_esm_bundler=__webpack_require__("./node_modules/vue/dist/vue.esm-bundler.js"),_hoisted_1=["innerHTML"];var IconPaths={alarm:"M480-80q-75 0-140.5-28.5t-114-77q-48.5-48.5-77-114T120-440q0-75 28.5-140.5t77-114q48.5-48.5 114-77T480-800q75 0 140.5 28.5t114 77q48.5 48.5 77 114T840-440q0 75-28.5 140.5t-77 114q-48.5 48.5-114 77T480-80Zm0-360Zm112 168 56-56-128-128v-184h-80v216l152 152ZM224-866l56 56-170 170-56-56 170-170Zm512 0 170 170-56 56-170-170 56-56ZM480-160q117 0 198.5-81.5T760-440q0-117-81.5-198.5T480-720q-117 0-198.5 81.5T200-440q0 117 81.5 198.5T480-160Z",article:"M280-280h280v-80H280v80Zm0-160h400v-80H280v80Zm0-160h400v-80H280v80Zm-80 480q-33 0-56.5-23.5T120-200v-560q0-33 23.5-56.5T200-840h560q33 0 56.5 23.5T840-760v560q0 33-23.5 56.5T760-120H200Zm0-80h560v-560H200v560Zm0-560v560-560Z",campaign:"M720-440v-80h160v80H720Zm48 280-128-96 48-64 128 96-48 64Zm-80-480-48-64 128-96 48 64-128 96ZM200-200v-160h-40q-33 0-56.5-23.5T80-440v-80q0-33 23.5-56.5T160-600h160l200-120v480L320-360h-40v160h-80Zm240-182v-196l-98 58H160v80h182l98 58Zm120 36v-268q27 24 43.5 58.5T620-480q0 41-16.5 75.5T560-346ZM300-480Z",chat:"M240-400h320v-80H240v80Zm0-120h480v-80H240v80Zm0-120h480v-80H240v80ZM80-80v-720q0-33 23.5-56.5T160-880h640q33 0 56.5 23.5T880-800v480q0 33-23.5 56.5T800-240H240L80-80Zm126-240h594v-480H160v525l46-45Zm-46 0v-480 480Z",check_circle_filled:"m424-296 282-282-56-56-226 226-114-114-56 56 170 170Zm56 216q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Z",chevron_left:"M560-240 320-480l240-240 56 56-184 184 184 184-56 56Z",chevron_right:"M504-480 320-664l56-56 240 240-240 240-56-56 184-184Z",cancel:"m336-280 144-144 144 144 56-56-144-144 144-144-56-56-144 144-144-144-56 56 144 144-144 144 56 56ZM480-80q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-80q134 0 227-93t93-227q0-134-93-227t-227-93q-134 0-227 93t-93 227q0 134 93 227t227 93Zm0-320Z",close:"m256-200-56-56 224-224-224-224 56-56 224 224 224-224 56 56-224 224 224 224-56 56-224-224-224 224Z",description:"M320-240h320v-80H320v80Zm0-160h320v-80H320v80ZM240-80q-33 0-56.5-23.5T160-160v-640q0-33 23.5-56.5T240-880h320l240 240v480q0 33-23.5-56.5T720-80H240Zm280-520v-200H240v640h480v-440H520ZM240-800v200-200 640-640Z",devices:"M80-160v-120h80v-440q0-33 23.5-56.5T240-800h600v80H240v440h240v120H80Zm520 0q-17 0-28.5-11.5T560-200v-400q0-17 11.5-28.5T600-640h240q17 0 28.5 11.5T880-600v400q0 17-11.5 28.5T840-160H600Zm40-120h160v-280H640v280Zm0 0h160-160Z",edit_document:"M200-120q-33 0-56.5-23.5T120-200v-560q0-33 23.5-56.5T200-840h357l-80 80H200v560h560v-278l80-80v358q0 33-23.5 56.5T760-120H200Zm280-360ZM360-360v-170l367-367q12-12 27-18t30-6q16 0 30.5 6t26.5 18l56 57q11 12 17 26.5t6 29.5q0 15-5.5 29.5T897-728L530-360H360Zm481-424-56-56 56 56ZM440-440h56l232-232-28-28-29-28-231 231v57Zm260-260-29-28 29 28 28 28-28-28Z",error:"M480-280q17 0 28.5-11.5T520-320q0-17-11.5-28.5T480-360q-17 0-28.5 11.5T440-320q0 17 11.5-28.5T480-280Zm-40-160h80v-240h-80v240Zm40 360q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-80q134 0 227-93t93-227q0-134-93-227t-227-93q-134 0-227 93t-93 227q0 134 93 227t227 93Zm0-320Z",expand_more:"M480-345 240-585l56-56 184 184 184-184 56 56-240 240Z",face:"M360-390q-21 0-35.5-14.5T310-440q0-21 14.5-35.5T360-490q21 0 35.5 14.5T410-440q0 21-14.5 35.5T360-390Zm240 0q-21 0-35.5-14.5T550-440q0-21 14.5-35.5T600-490q21 0 35.5 14.5T650-440q0 21-14.5 35.5T600-390ZM480-160q134 0 227-93t93-227q0-24-3-46.5T786-570q-21 5-42 7.5t-44 2.5q-91 0-172-39T390-708q-32 78-91.5 135.5T160-486v6q0 134 93 227t227 93Zm0 80q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm-54-715q42 70 114 112.5T700-640q14 0 27-1.5t27-3.5q-42-70-114-112.5T480-800q-14 0-27 1.5t-27 3.5ZM177-581q51-29 89-75t57-103q-51 29-89 75t-57 103Zm249-214Zm-103 36Z",feedback:"M480-360q17 0 28.5-11.5T520-400q0-17-11.5-28.5T480-440q-17 0-28.5 11.5T440-400q0 17 11.5 28.5T480-360Zm-40-160h80v-240h-80v240ZM80-80v-720q0-33 23.5-56.5T160-880h640q33 0 56.5 23.5T880-800v480q0 33-23.5 56.5T800-240H240L80-80Zm126-240h594v-480H160v525l46-45Zm-46 0v-480 480Z",flag:"M200-120v-680h360l16 80h224v400H520l-16-80H280v280h-80Zm300-440Zm86 160h134v-240H510l-16-80H280v240h290l16 80Z",format_list_numbered:"M120-80v-60h100v-30h-60v-60h60v-30H120v-60h120q17 0 28.5 11.5T280-280v40q0 17-11.5 28.5T240-200q17 0 28.5 11.5T280-160v40q0 17-11.5 28.5T240-80H120Zm0-280v-110q0-17 11.5-28.5T160-510h60v-30H120v-60h120q17 0 28.5 11.5T280-560v70q0 17-11.5 28.5T240-450h-60v30h100v60H120Zm60-280v-180h-60v-60h120v240h-60Zm180 440v-80h480v80H360Zm0-240v-80h480v80H360Zm0-240v-80h480v80H360Z",grade:"m354-247 126-76 126 77-33-144 111-96-146-13-58-136-58 135-146 13 111 97-33 143ZM233-80l65-281L80-550l288-25 112-265 112 265 288 25-218 189 65 281-247-149L233-80Zm247-350Z",info:"M440-280h80v-240h-80v240Zm40-320q17 0 28.5-11.5T520-640q0-17-11.5-28.5T480-680q-17 0-28.5 11.5T440-640q0 17 11.5 28.5T480-600Zm0 520q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-80q134 0 227-93t93-227q0-134-93-227t-227-93q-134 0-227 93t-93 227q0 134 93 227t227 93Zm0-320Z",light_bulb:"M440-80v-120h80v120h-80ZM80-440v-80h120v80H80Zm680 0v-80h120v80H760Zm-40 276-84-84 56-56 84 84-56 56Zm-480 0-56-56 84-84 56 56-84 84Zm240-116q-83 0-141.5-58.5T280-480q0-48 21.5-89.5T360-640v-200h240v200q37 29 58.5 70.5T680-480q0 83-58.5 141.5T480-280Zm-40-396q10-2 20-3t20-1q10 0 20 1t20 3v-84h-80v84Zm40 316q50 0 85-35t35-85q0-50-35-85t-85-35q-50 0-85 35t-35 85q0 50 35 85t85 35Zm0-120Z",link:"M440-280H280q-83 0-141.5-58.5T80-480q0-83 58.5-141.5T280-680h160v80H280q-50 0-85 35t-35 85q0 50 35 85t85 35h160v80ZM320-440v-80h320v80H320Zm200 160v-80h160q50 0 85-35t35-85q0-50-35-85t-85-35H520v-80h160q83 0 141.5 58.5T880-480q0 83-58.5 141.5T680-280H520Z",notification_important:"M440-440h80v-200h-80v200Zm40 120q17 0 28.5-11.5T520-360q0-17-11.5-28.5T480-400q-17 0-28.5 11.5T440-360q0 17 11.5 28.5T480-320ZM160-200v-80h80v-280q0-83 50-147.5T420-792v-28q0-25 17.5-42.5T480-880q25 0 42.5 17.5T540-820v28q80 20 130 84.5T720-560v280h80v80H160Zm320-300Zm0 420q-33 0-56.5-23.5T400-160h160q0 33-23.5 56.5T480-80ZM320-280h320v-280q0-66-47-113t-113-47q-66 0-113 47t-47 113v280Z",open_in_new:"M200-120q-33 0-56.5-23.5T120-200v-560q0-33 23.5-56.5T200-840h280v80H200v560h560v-280h80v280q0 33-23.5 56.5T760-120H200Zm188-212-56-56 372-372H560v-80h280v280h-80v-144L388-332Z",star:"m354-247 126-76 126 77-33-144 111-96-146-13-58-136-58 135-146 13 111 97-33 143ZM233-80l65-281L80-550l288-25 112-265 112 265 288 25-218 189 65 281-247-149L233-80Zm247-350Z",question_mark:"M424-320q0-81 14.5-116.5T500-514q41-36 62.5-62.5T584-637q0-41-27.5-68T480-732q-51 0-77.5 31T365-638l-103-44q21-64 77-111t141-47q105 0 161.5 58.5T698-641q0 50-21.5 85.5T609-475q-49 47-59.5 71.5T539-320H424Zm56 240q-33 0-56.5-23.5T400-160q0-33 23.5-56.5T480-240q33 0 56.5 23.5T560-160q0 33-23.5 56.5T480-80Z",quote:"m228-240 92-160q-66 0-113-47t-47-113q0-66 47-113t113-47q66 0 113 47t47 113q0 23-5.5 42.5T458-480L320-240h-92Zm360 0 92-160q-66 0-113-47t-47-113q0-66 47-113t113-47q66 0 113 47t47 113q0 23-5.5 42.5T818-480L680-240h-92Z",video_camera:"M160-160q-33 0-56.5-23.5T80-240v-480q0-33 23.5-56.5T160-800h480q33 0 56.5 23.5T720-720v180l160-160v440L720-420v180q0 33-23.5 56.5T640-160H160Zm0-80h480v-480H160v480Zm0 0v-480 480Z",warning:"m40-120 440-760 440 760H40Zm138-80h604L480-720 178-200Zm302-40q17 0 28.5-11.5T520-280q0-17-11.5-28.5T480-320q-17 0-28.5 11.5T440-280q0 17 11.5 28.5T480-240q0 17-11.5 28.5T440-200Zm-40-120h80v-200h-80v200Zm40-100Z"};const Iconvue_type_script_lang_js={props:{name:{type:String,required:!0},size:{type:[String,Number],default:"1em"},color:{type:String,default:"currentColor"}},setup:function setup(props){var iconPath=(0,vue_esm_bundler.Fl)((function(){var selected=IconPaths[props.name];if(selected)return selected}));return{iconClasses:(0,vue_esm_bundler.Fl)((function(){return["material-icon","custom-size-".concat("string"==typeof props.size&&props.size.includes("em")?props.size:"1em")]})),iconContent:(0,vue_esm_bundler.Fl)((function(){return'')})),iconPath}}};var injectStylesIntoStyleTag=__webpack_require__("./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),injectStylesIntoStyleTag_default=__webpack_require__.n(injectStylesIntoStyleTag),styleDomAPI=__webpack_require__("./node_modules/style-loader/dist/runtime/styleDomAPI.js"),styleDomAPI_default=__webpack_require__.n(styleDomAPI),insertBySelector=__webpack_require__("./node_modules/style-loader/dist/runtime/insertBySelector.js"),insertBySelector_default=__webpack_require__.n(insertBySelector),setAttributesWithoutAttributes=__webpack_require__("./node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js"),setAttributesWithoutAttributes_default=__webpack_require__.n(setAttributesWithoutAttributes),insertStyleElement=__webpack_require__("./node_modules/style-loader/dist/runtime/insertStyleElement.js"),insertStyleElement_default=__webpack_require__.n(insertStyleElement),styleTagTransform=__webpack_require__("./node_modules/style-loader/dist/runtime/styleTagTransform.js"),styleTagTransform_default=__webpack_require__.n(styleTagTransform),Iconvue_type_style_index_0_id_90c4211a_lang_scss=__webpack_require__("./node_modules/css-loader/dist/cjs.js??clonedRuleSet-16.use[1]!./node_modules/@storybook/preset-vue3-webpack/node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/resolve-url-loader/index.js!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-16.use[3]!./node_modules/@storybook/preset-vue3-webpack/node_modules/vue-loader/dist/index.js??ruleSet[0]!./src/vue/components/icon/Icon.vue?vue&type=style&index=0&id=90c4211a&lang=scss"),options={};options.styleTagTransform=styleTagTransform_default(),options.setAttributes=setAttributesWithoutAttributes_default(),options.insert=insertBySelector_default().bind(null,"head"),options.domAPI=styleDomAPI_default(),options.insertStyleElement=insertStyleElement_default();injectStylesIntoStyleTag_default()(Iconvue_type_style_index_0_id_90c4211a_lang_scss.Z,options);Iconvue_type_style_index_0_id_90c4211a_lang_scss.Z&&Iconvue_type_style_index_0_id_90c4211a_lang_scss.Z.locals&&Iconvue_type_style_index_0_id_90c4211a_lang_scss.Z.locals;const __exports__=(0,__webpack_require__("./node_modules/@storybook/preset-vue3-webpack/node_modules/vue-loader/dist/exportHelper.js").Z)(Iconvue_type_script_lang_js,[["render",function render(_ctx,_cache,$props,$setup,$data,$options){return(0,vue_esm_bundler.wg)(),(0,vue_esm_bundler.iD)("span",{class:(0,vue_esm_bundler.C_)($setup.iconClasses),innerHTML:$setup.iconContent},null,10,_hoisted_1)}]]),Icon=__exports__;__exports__.__docgenInfo={exportName:"default",displayName:"Icon",description:"",tags:{},props:[{name:"name",type:{name:"string"},required:!0},{name:"size",type:{name:"string|number"},defaultValue:{func:!1,value:"'1em'"}},{name:"color",type:{name:"string"},defaultValue:{func:!1,value:"'currentColor'"}}],sourceFiles:["/home/runner/work/frontend/frontend/src/vue/components/icon/Icon.vue"]}}}]); \ No newline at end of file diff --git a/200.78d84044.iframe.bundle.js.LICENSE.txt b/163.67773e18.iframe.bundle.js.LICENSE.txt similarity index 100% rename from 200.78d84044.iframe.bundle.js.LICENSE.txt rename to 163.67773e18.iframe.bundle.js.LICENSE.txt diff --git a/200.78d84044.iframe.bundle.js b/200.78d84044.iframe.bundle.js deleted file mode 100644 index de5df117..00000000 --- a/200.78d84044.iframe.bundle.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! For license information please see 200.78d84044.iframe.bundle.js.LICENSE.txt */ -"use strict";(self.webpackChunkmooc=self.webpackChunkmooc||[]).push([[200],{"./src/vue/components/course-modules/completed-utils.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{function countPagesAndCompleted(entry){var totalPages=0,completedPages=0,pages=[];return function processNode(node){"page"===node.type||"discussion"===node.type||"quiz"===node.type?("isCompleted"in node&&totalPages++,node.isCompleted&&completedPages++,pages.push(node)):"module"===node.type&&node.nodes.forEach((function(child){return processNode(child)}))}(entry),{id:entry.id,totalPages,completedPages,pages}}function completedPagesForAllModules(modulesCompletedCount){var totalPages=0,completedPages=0,completedModules=0;return modulesCompletedCount.forEach((function(module){module.totalPages>0&&module.totalPages===module.completedPages&&completedModules++,totalPages+=module.totalPages,completedPages+=module.completedPages})),{totalPages,completedPages,completedModules,totalModules:modulesCompletedCount.length}}__webpack_require__.d(__webpack_exports__,{E:()=>countPagesAndCompleted,K:()=>completedPagesForAllModules})},"./node_modules/css-loader/dist/cjs.js??clonedRuleSet-17.use[1]!./node_modules/@storybook/preset-vue3-webpack/node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/resolve-url-loader/index.js!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-17.use[3]!./node_modules/@storybook/preset-vue3-webpack/node_modules/vue-loader/dist/index.js??ruleSet[0]!./src/vue/components/button/ButtonLink.vue?vue&type=style&index=0&id=cba08fa2&lang=scss":(module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{Z:()=>__WEBPACK_DEFAULT_EXPORT__});var _node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/css-loader/dist/runtime/sourceMaps.js"),_node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0__),_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/css-loader/dist/runtime/api.js"),___CSS_LOADER_EXPORT___=__webpack_require__.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__)()(_node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default());___CSS_LOADER_EXPORT___.push([module.id,".btn-link{cursor:pointer;position:relative;background:#303030;color:#fff;border:none;border-radius:.1875rem;font-weight:700;line-height:1;display:flex;align-items:center;bottom:-0.05rem;text-decoration:none !important;width:fit-content}.btn-link:hover{background:#00468e;color:#fff;text-decoration:none !important}.btn-link--filled{background:#303030;color:#fff}.btn-link--filled.btn-link--sm{padding:.25rem .875rem .25rem .875rem}.btn-link--filled.btn-link--md{padding:.5rem 1.375rem .5rem 1.375rem}.btn-link--filled.btn-link--lg{padding:.75rem 1.75rem .75rem 1.75rem}.btn-link--outlined{background:#fff;color:#303030;border:.125rem solid #303030}.btn-link--outlined:hover{border:.125rem solid #00468e}.btn-link--outlined.btn-link--sm{padding:.125rem .75rem .125rem .75rem}.btn-link--outlined.btn-link--md{padding:.375rem 1.25rem .375rem 1.15rem}.btn-link--outlined.btn-link--lg{padding:.625rem 1.625rem .625rem 1.625rem}.btn-link--dropdown{background:#fff;color:#303030;border:.125rem solid #303030}.btn-link--dropdown:hover{background:#303030;border:.125rem solid #303030}.btn-link--dropdown.btn-link--sm{padding:.125rem .75rem .125rem .75rem}.btn-link--dropdown.btn-link--md{padding:.375rem 1.25rem .375rem 1.25rem}.btn-link--dropdown.btn-link--lg{padding:.625rem 1.625rem .625rem 1.625rem}.feide-symbol{width:1em;height:1em;margin-right:.5em;margin-top:-0.5em}","",{version:3,sources:["webpack://./src/vue/components/button/ButtonLink.vue","webpack://./src/vue/design/colors.scss"],names:[],mappings:"AAGA,UACE,cAAA,CACA,iBAAA,CACA,kBCGe,CDFf,UCKY,CDJZ,WAAA,CACA,sBAAA,CACA,eAAA,CACA,aAAA,CACA,YAAA,CACA,kBAAA,CACA,eAAA,CACA,+BAAA,CACA,iBAAA,CAEA,gBACE,kBAAA,CACA,UCRU,CDSV,+BAAA,CAGF,kBACE,kBChBa,CDiBb,UCdU,CDgBV,+BACE,qCAAA,CAEF,+BACE,qCAAA,CAEF,+BACE,qCAAA,CAIJ,oBACE,eC5BU,CD6BV,aChCa,CDiCb,4BAAA,CAEA,0BACE,4BAAA,CAGF,iCACE,qCAAA,CAEF,iCACE,uCAAA,CAEF,iCACE,yCAAA,CAIJ,oBACE,eChDU,CDiDV,aCpDa,CDqDb,4BAAA,CAEA,0BACE,kBCxDW,CDyDX,4BAAA,CAGF,iCACE,qCAAA,CAEF,iCACE,uCAAA,CAEF,iCACE,yCAAA,CAKN,cACE,SAAA,CACA,UAAA,CACA,iBAAA,CACA,iBAAA",sourcesContent:["\n@import '../../design/colors.scss';\n\n.btn-link {\n cursor: pointer;\n position: relative;\n background: $color-grey-900;\n color: $color-white;\n border: none;\n border-radius: 0.1875rem;\n font-weight: 700;\n line-height: 1;\n display: flex;\n align-items: center;\n bottom: -0.05rem;\n text-decoration:none!important;\n width: fit-content;\n\n &:hover {\n background: #00468e;\n color: $color-white;\n text-decoration:none!important;\n }\n\n &--filled {\n background: $color-grey-900;\n color: $color-white;\n\n &.btn-link--sm {\n padding: 0.25rem 0.875rem 0.25rem 0.875rem;\n }\n &.btn-link--md {\n padding: 0.5rem 1.375rem 0.5rem 1.375rem;\n }\n &.btn-link--lg {\n padding: 0.75rem 1.75rem 0.75rem 1.75rem;\n }\n }\n\n &--outlined {\n background: $color-white;\n color: $color-grey-900;\n border: 0.125rem solid $color-grey-900;\n\n &:hover {\n border: 0.125rem solid #00468e;\n }\n\n &.btn-link--sm {\n padding: 0.125rem 0.75rem 0.125rem 0.75rem;\n }\n &.btn-link--md {\n padding: 0.375rem 1.25rem 0.375rem 1.15rem;\n }\n &.btn-link--lg {\n padding: 0.625rem 1.625rem 0.625rem 1.625rem;\n }\n }\n\n &--dropdown {\n background: $color-white;\n color: $color-grey-900;\n border: 0.125rem solid $color-grey-900;\n\n &:hover {\n background: $color-grey-900;\n border: 0.125rem solid $color-grey-900;\n }\n\n &.btn-link--sm {\n padding: 0.125rem 0.75rem 0.125rem 0.75rem;\n }\n &.btn-link--md {\n padding: 0.375rem 1.25rem 0.375rem 1.25rem;\n }\n &.btn-link--lg {\n padding: 0.625rem 1.625rem 0.625rem 1.625rem;\n }\n }\n}\n\n.feide-symbol{\n width: 1em;\n height: 1em;\n margin-right: 0.5em;\n margin-top: -0.5em;\n}\n","// support colors\n$color-grey-100: #f9f9f9; \n$color-grey-200: #f1f1f1;\n$color-grey-300: #eaeaea;\n$color-grey-400: #e6e6e6;\n$color-grey-500: #bfbfbf;\n$color-grey-600: #999999;\n$colorgrey-700: #737373;\n$color-grey-800: #666666;\n$color-grey-900: #303030;\n\n$color-black: #1a1a1a;\n$color-white: #ffffff;\n$primary-hover-color:#00468e;\n\n\n// Color palettes\n$color-palette-green: (\n background: (\n 200: #e3f2eb,\n 300: #94caae,\n 400: #7dbf9d,\n 500: #3b7858,\n 600: #254b38\n ),\n foreground: (\n 200: $color-black,\n 300: $color-black,\n 400: $color-black,\n 500: $color-white,\n 600: $color-white\n )\n);\n\n$color-palette-eggshell: (\n background: (\n 300: #f6efe4,\n 400: #f2e8da,\n 500: #d6b689,\n 600: #8c6631,\n 700: #5e4521\n ),\n foreground: (\n 300: $color-black,\n 400: $color-black,\n 500: $color-white,\n 600: $color-white,\n 700: $color-white\n )\n);\n\n$color-palette-peach: (\n background: (\n 300: #f8ece6,\n 400: #eed0c3,\n 500: #dc9e83,\n 600: #a7532f,\n 700: #63321c\n ),\n foreground: (\n 300: $color-black,\n 400: $color-black,\n 500: $color-black,\n 600: $color-white,\n 700: $color-grey-200\n )\n);\n\n$color-palette-azur: (\n background: (\n 300: #eaeaf5,\n 400: #e2e3f1,\n 500: #c7c9e3,\n 600: #999cbf,\n 700: #666883\n ),\n foreground: (\n 300: #303030,\n 400: #303030,\n 500: #303030,\n 600: #303030,\n 700: #ffffff\n )\n);\n\n$color-palette-steel: (\n background: (\n 200: #f5f7f9,\n 300: #ebeef3,\n 400: #bac6d8,\n 500: #99abc5,\n 600: #51698f,\n 700: #2e3c51\n ),\n foreground: (\n 200: $color-grey-900,\n 300: $color-grey-900,\n 400: $color-grey-900,\n 500: $color-grey-900,\n 600: $color-white,\n 700: $color-white\n )\n);\n\n$color-palette-slate: (\n background: (\n 200: #eceff2,\n 300: #a0b1bf,\n 400: #6d889d,\n 500: #546b7d,\n 600: #191d24\n ),\n foreground: (\n 200: $color-grey-900,\n 300: $color-grey-900,\n 400: $color-grey-900,\n 500: $color-white,\n 600: $color-white\n )\n);\n\n// extra colors\n$color-palette-red: (\n background: (\n 200: #ffebee,\n 300: #ffcdd2,\n 400: #ef9a9a,\n 500: #ef5350,\n 600: #c62828\n ),\n foreground: (#E2E3F1\n 200: $color-grey-900,\n 300: $color-black,\n 400: $color-grey-900,\n 500: $color-grey-900,\n 600: $color-white\n )\n);\n\n$color-palette-orange: (\n background: (\n 200: #fff3e0,\n 300: #ffcc80,\n 400: #ffa726,\n 500: #fb8c00,\n 600: #EF6C00\n ),\n foreground: (\n 200: $color-grey-900,\n 300: $color-black,\n 400: $color-grey-900,\n 500: $color-grey-900,\n 600: $color-black\n )\n);\n"],sourceRoot:""}]);const __WEBPACK_DEFAULT_EXPORT__=___CSS_LOADER_EXPORT___},"./node_modules/css-loader/dist/cjs.js??clonedRuleSet-17.use[1]!./node_modules/@storybook/preset-vue3-webpack/node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/resolve-url-loader/index.js!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-17.use[3]!./node_modules/@storybook/preset-vue3-webpack/node_modules/vue-loader/dist/index.js??ruleSet[0]!./src/vue/components/icon/Icon.vue?vue&type=style&index=0&id=90c4211a&lang=scss":(module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{Z:()=>__WEBPACK_DEFAULT_EXPORT__});var _node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/css-loader/dist/runtime/sourceMaps.js"),_node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0__),_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/css-loader/dist/runtime/api.js"),___CSS_LOADER_EXPORT___=__webpack_require__.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__)()(_node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default());___CSS_LOADER_EXPORT___.push([module.id,".material-icon{color:inherit}.material-icon__icon .custom-size-1em{font-size:1em}.material-icon__icon .custom-size-2em{font-size:2em}.material-icon__icon .custom-size-3em{font-size:3em}","",{version:3,sources:["webpack://./src/vue/components/icon/Icon.vue"],names:[],mappings:"AACA,eACE,aAAA,CAII,sCACE,aAAA,CADF,sCACE,aAAA,CADF,sCACE,aAAA",sourcesContent:["\n.material-icon {\n color: inherit;\n\n &__icon {\n @each $size in (1em, 2em, 3em) {\n .custom-size-#{$size} {\n font-size: #{$size};\n }\n }\n }\n}\n"],sourceRoot:""}]);const __WEBPACK_DEFAULT_EXPORT__=___CSS_LOADER_EXPORT___},"./src/vue/components/button/ButtonLink.vue":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{Z:()=>ButtonLink});var vue_esm_bundler=__webpack_require__("./node_modules/vue/dist/vue.esm-bundler.js"),Icon=__webpack_require__("./src/vue/components/icon/Icon.vue"),vuex_esm_bundler=__webpack_require__("./node_modules/vuex/dist/vuex.esm-bundler.js"),api=__webpack_require__("./src/js/api/api.js"),util=__webpack_require__("./src/js/modules/util.js");function _createForOfIteratorHelper(o,allowArrayLike){var it="undefined"!=typeof Symbol&&o[Symbol.iterator]||o["@@iterator"];if(!it){if(Array.isArray(o)||(it=function _unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen)}(o))||allowArrayLike&&o&&"number"==typeof o.length){it&&(o=it);var i=0,F=function F(){};return{s:F,n:function n(){return i>=o.length?{done:!0}:{done:!1,value:o[i++]}},e:function e(_e){throw _e},f:F}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var err,normalCompletion=!0,didErr=!1;return{s:function s(){it=it.call(o)},n:function n(){var step=it.next();return normalCompletion=step.done,step},e:function e(_e2){didErr=!0,err=_e2},f:function f(){try{normalCompletion||null==it.return||it.return()}finally{if(didErr)throw err}}}}function _arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i0)if(findNodeById(targetId,node.nodes))return node.id}}catch(err){_iterator.e(err)}finally{_iterator.f()}return null}function _typeof(o){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}function _regeneratorRuntime(){_regeneratorRuntime=function _regeneratorRuntime(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function define(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{define({},"")}catch(t){define=function define(t,e,r){return t[e]=r}}function wrap(t,e,r,n){var i=e&&e.prototype instanceof Generator?e:Generator,a=Object.create(i.prototype),c=new Context(n||[]);return o(a,"_invoke",{value:makeInvokeMethod(t,r,c)}),a}function tryCatch(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=wrap;var h="suspendedStart",l="suspendedYield",f="executing",s="completed",y={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var p={};define(p,a,(function(){return this}));var d=Object.getPrototypeOf,v=d&&d(d(values([])));v&&v!==r&&n.call(v,a)&&(p=v);var g=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(p);function defineIteratorMethods(t){["next","throw","return"].forEach((function(e){define(t,e,(function(t){return this._invoke(e,t)}))}))}function AsyncIterator(t,e){function invoke(r,o,i,a){var c=tryCatch(t[r],t,o);if("throw"!==c.type){var u=c.arg,h=u.value;return h&&"object"==_typeof(h)&&n.call(h,"__await")?e.resolve(h.__await).then((function(t){invoke("next",t,i,a)}),(function(t){invoke("throw",t,i,a)})):e.resolve(h).then((function(t){u.value=t,i(u)}),(function(t){return invoke("throw",t,i,a)}))}a(c.arg)}var r;o(this,"_invoke",{value:function value(t,n){function callInvokeWithMethodAndArg(){return new e((function(e,r){invoke(t,n,e,r)}))}return r=r?r.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg()}})}function makeInvokeMethod(e,r,n){var o=h;return function(i,a){if(o===f)throw new Error("Generator is already running");if(o===s){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=maybeInvokeDelegate(c,n);if(u){if(u===y)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=s,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=f;var p=tryCatch(e,r,n);if("normal"===p.type){if(o=n.done?s:l,p.arg===y)continue;return{value:p.arg,done:n.done}}"throw"===p.type&&(o=s,n.method="throw",n.arg=p.arg)}}}function maybeInvokeDelegate(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,maybeInvokeDelegate(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=tryCatch(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function pushTryEntry(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function resetTryEntry(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function Context(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(pushTryEntry,this),this.reset(!0)}function values(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function next(){for(;++o=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return handle("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),resetTryEntry(r),y}},catch:function _catch(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;resetTryEntry(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function delegateYield(e,r,n){return this.delegate={iterator:values(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function _toConsumableArray(arr){return function _arrayWithoutHoles(arr){if(Array.isArray(arr))return data_arrayLikeToArray(arr)}(arr)||function _iterableToArray(iter){if("undefined"!=typeof Symbol&&null!=iter[Symbol.iterator]||null!=iter["@@iterator"])return Array.from(iter)}(arr)||data_unsupportedIterableToArray(arr)||function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,o)}return t}function _objectSpread(e){for(var r=1;r=o.length?{done:!0}:{done:!1,value:o[i++]}},e:function e(_e){throw _e},f:F}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var err,normalCompletion=!0,didErr=!1;return{s:function s(){it=it.call(o)},n:function n(){var step=it.next();return normalCompletion=step.done,step},e:function e(_e2){didErr=!0,err=_e2},f:function f(){try{normalCompletion||null==it.return||it.return()}finally{if(didErr)throw err}}}}function data_unsupportedIterableToArray(o,minLen){if(o){if("string"==typeof o)return data_arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);return"Object"===n&&o.constructor&&(n=o.constructor.name),"Map"===n||"Set"===n?Array.from(o):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?data_arrayLikeToArray(o,minLen):void 0}}function data_arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i=o.length?{done:!0}:{done:!1,value:o[i++]}},e:function e(_e){throw _e},f:F}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var err,normalCompletion=!0,didErr=!1;return{s:function s(){it=it.call(o)},n:function n(){var step=it.next();return normalCompletion=step.done,step},e:function e(_e2){didErr=!0,err=_e2},f:function f(){try{normalCompletion||null==it.return||it.return()}finally{if(didErr)throw err}}}}function store_helper_toConsumableArray(arr){return function store_helper_arrayWithoutHoles(arr){if(Array.isArray(arr))return store_helper_arrayLikeToArray(arr)}(arr)||function store_helper_iterableToArray(iter){if("undefined"!=typeof Symbol&&null!=iter[Symbol.iterator]||null!=iter["@@iterator"])return Array.from(iter)}(arr)||store_helper_unsupportedIterableToArray(arr)||function store_helper_nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function store_helper_unsupportedIterableToArray(o,minLen){if(o){if("string"==typeof o)return store_helper_arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);return"Object"===n&&o.constructor&&(n=o.constructor.name),"Map"===n||"Set"===n?Array.from(o):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?store_helper_arrayLikeToArray(o,minLen):void 0}}function store_helper_arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i0&&update(item.nodes)}}catch(err){_iterator2.e(err)}finally{_iterator2.f()}}(data),results};function store_typeof(o){return store_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},store_typeof(o)}function store_regeneratorRuntime(){store_regeneratorRuntime=function _regeneratorRuntime(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function define(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{define({},"")}catch(t){define=function define(t,e,r){return t[e]=r}}function wrap(t,e,r,n){var i=e&&e.prototype instanceof Generator?e:Generator,a=Object.create(i.prototype),c=new Context(n||[]);return o(a,"_invoke",{value:makeInvokeMethod(t,r,c)}),a}function tryCatch(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=wrap;var h="suspendedStart",l="suspendedYield",f="executing",s="completed",y={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var p={};define(p,a,(function(){return this}));var d=Object.getPrototypeOf,v=d&&d(d(values([])));v&&v!==r&&n.call(v,a)&&(p=v);var g=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(p);function defineIteratorMethods(t){["next","throw","return"].forEach((function(e){define(t,e,(function(t){return this._invoke(e,t)}))}))}function AsyncIterator(t,e){function invoke(r,o,i,a){var c=tryCatch(t[r],t,o);if("throw"!==c.type){var u=c.arg,h=u.value;return h&&"object"==store_typeof(h)&&n.call(h,"__await")?e.resolve(h.__await).then((function(t){invoke("next",t,i,a)}),(function(t){invoke("throw",t,i,a)})):e.resolve(h).then((function(t){u.value=t,i(u)}),(function(t){return invoke("throw",t,i,a)}))}a(c.arg)}var r;o(this,"_invoke",{value:function value(t,n){function callInvokeWithMethodAndArg(){return new e((function(e,r){invoke(t,n,e,r)}))}return r=r?r.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg()}})}function makeInvokeMethod(e,r,n){var o=h;return function(i,a){if(o===f)throw new Error("Generator is already running");if(o===s){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=maybeInvokeDelegate(c,n);if(u){if(u===y)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=s,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=f;var p=tryCatch(e,r,n);if("normal"===p.type){if(o=n.done?s:l,p.arg===y)continue;return{value:p.arg,done:n.done}}"throw"===p.type&&(o=s,n.method="throw",n.arg=p.arg)}}}function maybeInvokeDelegate(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,maybeInvokeDelegate(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=tryCatch(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function pushTryEntry(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function resetTryEntry(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function Context(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(pushTryEntry,this),this.reset(!0)}function values(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function next(){for(;++o=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return handle("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),resetTryEntry(r),y}},catch:function _catch(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;resetTryEntry(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function delegateYield(e,r,n){return this.delegate={iterator:values(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function store_asyncGeneratorStep(gen,resolve,reject,_next,_throw,key,arg){try{var info=gen[key](arg),value=info.value}catch(error){return void reject(error)}info.done?resolve(value):Promise.resolve(value).then(_next,_throw)}function store_asyncToGenerator(fn){return function(){var self=this,args=arguments;return new Promise((function(resolve,reject){var gen=fn.apply(self,args);function _next(value){store_asyncGeneratorStep(gen,resolve,reject,_next,_throw,"next",value)}function _throw(err){store_asyncGeneratorStep(gen,resolve,reject,_next,_throw,"throw",err)}_next(void 0)}))}}function store_toConsumableArray(arr){return function store_arrayWithoutHoles(arr){if(Array.isArray(arr))return store_arrayLikeToArray(arr)}(arr)||function store_iterableToArray(iter){if("undefined"!=typeof Symbol&&null!=iter[Symbol.iterator]||null!=iter["@@iterator"])return Array.from(iter)}(arr)||function store_unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return store_arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return store_arrayLikeToArray(o,minLen)}(arr)||function store_nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function store_arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i0&&update(item.nodes)}}catch(err){_iterator.e(err)}finally{_iterator.f()}})(data)}(state.courseModules,"isActive",!0,!1),function updatePropertiesRecursively(data,searchPropertyName,searchPropertyValue,updatePropertyName,newPropertyValue){var results=[],updateParentNodes=function updateParentNodes(data,item,parentIsActive){for(var parent=getParentNode(data,item);parent;)parent.isActive=!0,parent=getParentNode(data,parent)},getParentNode=function getParentNode(data,item){var parent=null;return function findParent(items){var _step4,_iterator4=store_helper_createForOfIteratorHelper(items);try{for(_iterator4.s();!(_step4=_iterator4.n()).done;){var currentItem=_step4.value;if(currentItem.nodes&¤tItem.nodes.includes(item)){parent=currentItem;break}currentItem.nodes&¤tItem.nodes.length>0&&findParent(currentItem.nodes)}}catch(err){_iterator4.e(err)}finally{_iterator4.f()}}(data),parent};(function update(items){var _step3,parentIsActive=arguments.length>1&&void 0!==arguments[1]&&arguments[1],_iterator3=store_helper_createForOfIteratorHelper(items);try{for(_iterator3.s();!(_step3=_iterator3.n()).done;){var item=_step3.value;item.hasOwnProperty(searchPropertyName)&&item[searchPropertyName]===searchPropertyValue&&(item[updatePropertyName]=newPropertyValue,updateParentNodes(data,item,parentIsActive),results.push(item)),item.nodes&&item.nodes.length>0&&update(item.nodes,item.isActive||parentIsActive)}}catch(err){_iterator3.e(err)}finally{_iterator3.f()}})(data)}(state.courseModules,"url",url,"isActive",!0),function checkProperties(data,searchPropertyName,searchPropertyValue,secondPropertyName,secondPropertyValue){return function search(items){var _step5,_iterator5=store_helper_createForOfIteratorHelper(items);try{for(_iterator5.s();!(_step5=_iterator5.n()).done;){var item=_step5.value;if(item.hasOwnProperty(searchPropertyName)&&item[searchPropertyName]===searchPropertyValue&&item.hasOwnProperty(secondPropertyName)&&item[secondPropertyName]===secondPropertyValue)return!0;if(item.nodes&&item.nodes.length>0&&search(item.nodes))return!0}}catch(err){_iterator5.e(err)}finally{_iterator5.f()}return!1}(data)}(state.courseModules,"url",url,"type","discussion")&&function checkSecondPropertyExistence(data,searchPropertyName,searchPropertyValue,secondPropertyName){return function search(items){var _step6,_iterator6=store_helper_createForOfIteratorHelper(items);try{for(_iterator6.s();!(_step6=_iterator6.n()).done;){var item=_step6.value;if(item.hasOwnProperty(searchPropertyName)&&item[searchPropertyName]===searchPropertyValue&&item.hasOwnProperty(secondPropertyName))return!0;if(item.nodes&&item.nodes.length>0&&search(item.nodes))return!0}}catch(err){_iterator6.e(err)}finally{_iterator6.f()}return!1}(data)}(state.courseModules,"url",url,"isCompleted")&&(state.pageCompletion="true",sessionStorage.setItem("pageCompletion","true"),findAndUpdateByProperty(state.courseModules,"url",url,"isCompleted",!0)),setSessionStorage(api.Z.getCurrentCourseId(),state.courseModules)}},actions:{fetchCourseModules:function fetchCourseModules(_ref){return store_asyncToGenerator(store_regeneratorRuntime().mark((function _callee(){var dispatch,commit,response;return store_regeneratorRuntime().wrap((function _callee$(_context){for(;;)switch(_context.prev=_context.next){case 0:if(dispatch=_ref.dispatch,commit=_ref.commit,_context.prev=1,null!==sessionStorage.getItem(api.Z.getCurrentCourseId())){_context.next=12;break}return _context.next=5,fetchModulesForCourse();case 5:response=_context.sent,commit("SET_COURSE_MODULES",response),commit("SET_COURSE_COMPLETION_PROGRESSION"),commit("SET_LIST_ALL_PAGES"),commit("SET_COURSE_MODULES_IN_STORE",!0),_context.next=16;break;case 12:commit("SET_COURSE_COMPLETION_PROGRESSION"),commit("SET_LIST_ALL_PAGES"),commit("SET_COURSE_MODULES_IN_STORE",!0),dispatch("fetchCourseModulesBackGround");case 16:_context.next=21;break;case 18:_context.prev=18,_context.t0=_context.catch(1),console.error("Error fetching course modules:",_context.t0);case 21:case"end":return _context.stop()}}),_callee,null,[[1,18]])})))()},fetchCourseModulesBackGround:function fetchCourseModulesBackGround(_ref2){return store_asyncToGenerator(store_regeneratorRuntime().mark((function _callee2(){var state,commit,response,storeCourseModules,responseCourseModules;return store_regeneratorRuntime().wrap((function _callee2$(_context2){for(;;)switch(_context2.prev=_context2.next){case 0:return state=_ref2.state,commit=_ref2.commit,_context2.prev=1,_context2.next=4,fetchModulesForCourse();case 4:response=_context2.sent,storeCourseModules=JSON.parse(JSON.stringify(state.courseModules)),responseCourseModules=JSON.parse(JSON.stringify(response)),deepCompare(storeCourseModules,responseCourseModules)||"false"===state.pageCompletion&&(commit("SET_COURSE_MODULES",response),commit("SET_COURSE_COMPLETION_PROGRESSION"),commit("SET_LIST_ALL_PAGES"),commit("SET_COURSE_MODULES_IN_STORE",!0)),_context2.next=13;break;case 10:_context2.prev=10,_context2.t0=_context2.catch(1),console.error("Error fetching course modules:",_context2.t0);case 13:return _context2.prev=13,sessionStorage.setItem("pageCompletion","false"),_context2.finish(13);case 16:case"end":return _context2.stop()}}),_callee2,null,[[1,10,13,16]])})))()},setActivePageAndModule:function setActivePageAndModule(_ref3,url){(0,_ref3.commit)("SET_ACTIVE_MODULE_AND_PAGE",url)},setPageCompletion:function setPageCompletion(_ref4,completed){var commit=_ref4.commit;commit("SET_PAGE_COMPLETION",completed),commit("SET_COURSE_COMPLETION_PROGRESSION")}},getters:{courseModules:function courseModules(state){return state.courseModules},courseModulesInStore:function courseModulesInStore(state){return state.courseModulesInStore},completionProgression:function completionProgression(state){return state.completionProgression},pages:function pages(state){return state.pages},pageCompletion:function pageCompletion(state){return state.pageCompletion}}});const vue_store=store;var _hoisted_1=["src"];const ButtonLinkvue_type_script_setup_true_lang_js={__name:"ButtonLink",props:{size:String,type:String,url:String},setup:function setup(__props){var props=__props,isFilled=!props.type||"filled"===props.type||"feideLogin"===props.type,isOutlined="outlined"===props.type||"previous"===props.type||"next"===props.type,isDropdown="dropdown"===props.type;return function(_ctx,_cache){return(0,vue_esm_bundler.wg)(),(0,vue_esm_bundler.iD)("a",{class:(0,vue_esm_bundler.C_)(["btn-link",{"btn-link--filled":(0,vue_esm_bundler.SU)(isFilled)},{"btn-link--outlined":(0,vue_esm_bundler.SU)(isOutlined)},{"btn-link--dropdown":isDropdown},{"btn-link--sm":"sm"===__props.size},{"btn-link--md":!__props.size||"md"===__props.size},{"btn-link--lg":"lg"===__props.size}]),onClick:_cache[0]||(_cache[0]=function($event){return function setActivePageAndModule(url){vue_store.dispatch("setActivePageAndModule",url).then((function(){window.location=url})).catch((function(error){console.error("Error:",error)}))}(__props.url)})},["previous"===__props.type?((0,vue_esm_bundler.wg)(),(0,vue_esm_bundler.j4)(Icon.Z,{key:0,name:"chevron_left",size:"1.5em"})):(0,vue_esm_bundler.kq)("",!0),"feideLogin"===__props.type?((0,vue_esm_bundler.wg)(),(0,vue_esm_bundler.iD)("img",{key:1,class:"feide-symbol",src:"".concat((0,vue_esm_bundler.SU)("/frontend/"),"feide_white-symbol.svg")},null,8,_hoisted_1)):(0,vue_esm_bundler.kq)("",!0),(0,vue_esm_bundler.WI)(_ctx.$slots,"default"),"next"===__props.type?((0,vue_esm_bundler.wg)(),(0,vue_esm_bundler.j4)(Icon.Z,{key:2,name:"chevron_right",size:"1.5em"})):(0,vue_esm_bundler.kq)("",!0)],2)}}};var injectStylesIntoStyleTag=__webpack_require__("./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),injectStylesIntoStyleTag_default=__webpack_require__.n(injectStylesIntoStyleTag),styleDomAPI=__webpack_require__("./node_modules/style-loader/dist/runtime/styleDomAPI.js"),styleDomAPI_default=__webpack_require__.n(styleDomAPI),insertBySelector=__webpack_require__("./node_modules/style-loader/dist/runtime/insertBySelector.js"),insertBySelector_default=__webpack_require__.n(insertBySelector),setAttributesWithoutAttributes=__webpack_require__("./node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js"),setAttributesWithoutAttributes_default=__webpack_require__.n(setAttributesWithoutAttributes),insertStyleElement=__webpack_require__("./node_modules/style-loader/dist/runtime/insertStyleElement.js"),insertStyleElement_default=__webpack_require__.n(insertStyleElement),styleTagTransform=__webpack_require__("./node_modules/style-loader/dist/runtime/styleTagTransform.js"),styleTagTransform_default=__webpack_require__.n(styleTagTransform),ButtonLinkvue_type_style_index_0_id_cba08fa2_lang_scss=__webpack_require__("./node_modules/css-loader/dist/cjs.js??clonedRuleSet-17.use[1]!./node_modules/@storybook/preset-vue3-webpack/node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/resolve-url-loader/index.js!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-17.use[3]!./node_modules/@storybook/preset-vue3-webpack/node_modules/vue-loader/dist/index.js??ruleSet[0]!./src/vue/components/button/ButtonLink.vue?vue&type=style&index=0&id=cba08fa2&lang=scss"),options={};options.styleTagTransform=styleTagTransform_default(),options.setAttributes=setAttributesWithoutAttributes_default(),options.insert=insertBySelector_default().bind(null,"head"),options.domAPI=styleDomAPI_default(),options.insertStyleElement=insertStyleElement_default();injectStylesIntoStyleTag_default()(ButtonLinkvue_type_style_index_0_id_cba08fa2_lang_scss.Z,options);ButtonLinkvue_type_style_index_0_id_cba08fa2_lang_scss.Z&&ButtonLinkvue_type_style_index_0_id_cba08fa2_lang_scss.Z.locals&&ButtonLinkvue_type_style_index_0_id_cba08fa2_lang_scss.Z.locals;const ButtonLink=ButtonLinkvue_type_script_setup_true_lang_js;ButtonLinkvue_type_script_setup_true_lang_js.__docgenInfo={exportName:"default",displayName:"ButtonLink",description:"",tags:{},props:[{name:"size",type:{name:"string"}},{name:"type",type:{name:"string"}},{name:"url",type:{name:"string"}}],slots:[{name:"default"}],sourceFiles:["/home/runner/work/frontend/frontend/src/vue/components/button/ButtonLink.vue"]}},"./src/vue/components/icon/Icon.vue":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{Z:()=>Icon});var vue_esm_bundler=__webpack_require__("./node_modules/vue/dist/vue.esm-bundler.js"),_hoisted_1=["innerHTML"];var IconPaths={alarm:"M480-80q-75 0-140.5-28.5t-114-77q-48.5-48.5-77-114T120-440q0-75 28.5-140.5t77-114q48.5-48.5 114-77T480-800q75 0 140.5 28.5t114 77q48.5 48.5 77 114T840-440q0 75-28.5 140.5t-77 114q-48.5 48.5-114 77T480-80Zm0-360Zm112 168 56-56-128-128v-184h-80v216l152 152ZM224-866l56 56-170 170-56-56 170-170Zm512 0 170 170-56 56-170-170 56-56ZM480-160q117 0 198.5-81.5T760-440q0-117-81.5-198.5T480-720q-117 0-198.5 81.5T200-440q0 117 81.5 198.5T480-160Z",article:"M280-280h280v-80H280v80Zm0-160h400v-80H280v80Zm0-160h400v-80H280v80Zm-80 480q-33 0-56.5-23.5T120-200v-560q0-33 23.5-56.5T200-840h560q33 0 56.5 23.5T840-760v560q0 33-23.5 56.5T760-120H200Zm0-80h560v-560H200v560Zm0-560v560-560Z",campaign:"M720-440v-80h160v80H720Zm48 280-128-96 48-64 128 96-48 64Zm-80-480-48-64 128-96 48 64-128 96ZM200-200v-160h-40q-33 0-56.5-23.5T80-440v-80q0-33 23.5-56.5T160-600h160l200-120v480L320-360h-40v160h-80Zm240-182v-196l-98 58H160v80h182l98 58Zm120 36v-268q27 24 43.5 58.5T620-480q0 41-16.5 75.5T560-346ZM300-480Z",chat:"M240-400h320v-80H240v80Zm0-120h480v-80H240v80Zm0-120h480v-80H240v80ZM80-80v-720q0-33 23.5-56.5T160-880h640q33 0 56.5 23.5T880-800v480q0 33-23.5 56.5T800-240H240L80-80Zm126-240h594v-480H160v525l46-45Zm-46 0v-480 480Z",check_circle_filled:"m424-296 282-282-56-56-226 226-114-114-56 56 170 170Zm56 216q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Z",chevron_left:"M560-240 320-480l240-240 56 56-184 184 184 184-56 56Z",chevron_right:"M504-480 320-664l56-56 240 240-240 240-56-56 184-184Z",cancel:"m336-280 144-144 144 144 56-56-144-144 144-144-56-56-144 144-144-144-56 56 144 144-144 144 56 56ZM480-80q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-80q134 0 227-93t93-227q0-134-93-227t-227-93q-134 0-227 93t-93 227q0 134 93 227t227 93Zm0-320Z",close:"m256-200-56-56 224-224-224-224 56-56 224 224 224-224 56 56-224 224 224 224-56 56-224-224-224 224Z",description:"M320-240h320v-80H320v80Zm0-160h320v-80H320v80ZM240-80q-33 0-56.5-23.5T160-160v-640q0-33 23.5-56.5T240-880h320l240 240v480q0 33-23.5-56.5T720-80H240Zm280-520v-200H240v640h480v-440H520ZM240-800v200-200 640-640Z",devices:"M80-160v-120h80v-440q0-33 23.5-56.5T240-800h600v80H240v440h240v120H80Zm520 0q-17 0-28.5-11.5T560-200v-400q0-17 11.5-28.5T600-640h240q17 0 28.5 11.5T880-600v400q0 17-11.5 28.5T840-160H600Zm40-120h160v-280H640v280Zm0 0h160-160Z",edit_document:"M200-120q-33 0-56.5-23.5T120-200v-560q0-33 23.5-56.5T200-840h357l-80 80H200v560h560v-278l80-80v358q0 33-23.5 56.5T760-120H200Zm280-360ZM360-360v-170l367-367q12-12 27-18t30-6q16 0 30.5 6t26.5 18l56 57q11 12 17 26.5t6 29.5q0 15-5.5 29.5T897-728L530-360H360Zm481-424-56-56 56 56ZM440-440h56l232-232-28-28-29-28-231 231v57Zm260-260-29-28 29 28 28 28-28-28Z",error:"M480-280q17 0 28.5-11.5T520-320q0-17-11.5-28.5T480-360q-17 0-28.5 11.5T440-320q0 17 11.5-28.5T480-280Zm-40-160h80v-240h-80v240Zm40 360q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-80q134 0 227-93t93-227q0-134-93-227t-227-93q-134 0-227 93t-93 227q0 134 93 227t227 93Zm0-320Z",expand_more:"M480-345 240-585l56-56 184 184 184-184 56 56-240 240Z",face:"M360-390q-21 0-35.5-14.5T310-440q0-21 14.5-35.5T360-490q21 0 35.5 14.5T410-440q0 21-14.5 35.5T360-390Zm240 0q-21 0-35.5-14.5T550-440q0-21 14.5-35.5T600-490q21 0 35.5 14.5T650-440q0 21-14.5 35.5T600-390ZM480-160q134 0 227-93t93-227q0-24-3-46.5T786-570q-21 5-42 7.5t-44 2.5q-91 0-172-39T390-708q-32 78-91.5 135.5T160-486v6q0 134 93 227t227 93Zm0 80q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm-54-715q42 70 114 112.5T700-640q14 0 27-1.5t27-3.5q-42-70-114-112.5T480-800q-14 0-27 1.5t-27 3.5ZM177-581q51-29 89-75t57-103q-51 29-89 75t-57 103Zm249-214Zm-103 36Z",feedback:"M480-360q17 0 28.5-11.5T520-400q0-17-11.5-28.5T480-440q-17 0-28.5 11.5T440-400q0 17 11.5 28.5T480-360Zm-40-160h80v-240h-80v240ZM80-80v-720q0-33 23.5-56.5T160-880h640q33 0 56.5 23.5T880-800v480q0 33-23.5 56.5T800-240H240L80-80Zm126-240h594v-480H160v525l46-45Zm-46 0v-480 480Z",flag:"M200-120v-680h360l16 80h224v400H520l-16-80H280v280h-80Zm300-440Zm86 160h134v-240H510l-16-80H280v240h290l16 80Z",format_list_numbered:"M120-80v-60h100v-30h-60v-60h60v-30H120v-60h120q17 0 28.5 11.5T280-280v40q0 17-11.5 28.5T240-200q17 0 28.5 11.5T280-160v40q0 17-11.5 28.5T240-80H120Zm0-280v-110q0-17 11.5-28.5T160-510h60v-30H120v-60h120q17 0 28.5 11.5T280-560v70q0 17-11.5 28.5T240-450h-60v30h100v60H120Zm60-280v-180h-60v-60h120v240h-60Zm180 440v-80h480v80H360Zm0-240v-80h480v80H360Zm0-240v-80h480v80H360Z",grade:"m354-247 126-76 126 77-33-144 111-96-146-13-58-136-58 135-146 13 111 97-33 143ZM233-80l65-281L80-550l288-25 112-265 112 265 288 25-218 189 65 281-247-149L233-80Zm247-350Z",info:"M440-280h80v-240h-80v240Zm40-320q17 0 28.5-11.5T520-640q0-17-11.5-28.5T480-680q-17 0-28.5 11.5T440-640q0 17 11.5 28.5T480-600Zm0 520q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-80q134 0 227-93t93-227q0-134-93-227t-227-93q-134 0-227 93t-93 227q0 134 93 227t227 93Zm0-320Z",light_bulb:"M440-80v-120h80v120h-80ZM80-440v-80h120v80H80Zm680 0v-80h120v80H760Zm-40 276-84-84 56-56 84 84-56 56Zm-480 0-56-56 84-84 56 56-84 84Zm240-116q-83 0-141.5-58.5T280-480q0-48 21.5-89.5T360-640v-200h240v200q37 29 58.5 70.5T680-480q0 83-58.5 141.5T480-280Zm-40-396q10-2 20-3t20-1q10 0 20 1t20 3v-84h-80v84Zm40 316q50 0 85-35t35-85q0-50-35-85t-85-35q-50 0-85 35t-35 85q0 50 35 85t85 35Zm0-120Z",link:"M440-280H280q-83 0-141.5-58.5T80-480q0-83 58.5-141.5T280-680h160v80H280q-50 0-85 35t-35 85q0 50 35 85t85 35h160v80ZM320-440v-80h320v80H320Zm200 160v-80h160q50 0 85-35t35-85q0-50-35-85t-85-35H520v-80h160q83 0 141.5 58.5T880-480q0 83-58.5 141.5T680-280H520Z",notification_important:"M440-440h80v-200h-80v200Zm40 120q17 0 28.5-11.5T520-360q0-17-11.5-28.5T480-400q-17 0-28.5 11.5T440-360q0 17 11.5 28.5T480-320ZM160-200v-80h80v-280q0-83 50-147.5T420-792v-28q0-25 17.5-42.5T480-880q25 0 42.5 17.5T540-820v28q80 20 130 84.5T720-560v280h80v80H160Zm320-300Zm0 420q-33 0-56.5-23.5T400-160h160q0 33-23.5 56.5T480-80ZM320-280h320v-280q0-66-47-113t-113-47q-66 0-113 47t-47 113v280Z",open_in_new:"M200-120q-33 0-56.5-23.5T120-200v-560q0-33 23.5-56.5T200-840h280v80H200v560h560v-280h80v280q0 33-23.5 56.5T760-120H200Zm188-212-56-56 372-372H560v-80h280v280h-80v-144L388-332Z",star:"m354-247 126-76 126 77-33-144 111-96-146-13-58-136-58 135-146 13 111 97-33 143ZM233-80l65-281L80-550l288-25 112-265 112 265 288 25-218 189 65 281-247-149L233-80Zm247-350Z",question_mark:"M424-320q0-81 14.5-116.5T500-514q41-36 62.5-62.5T584-637q0-41-27.5-68T480-732q-51 0-77.5 31T365-638l-103-44q21-64 77-111t141-47q105 0 161.5 58.5T698-641q0 50-21.5 85.5T609-475q-49 47-59.5 71.5T539-320H424Zm56 240q-33 0-56.5-23.5T400-160q0-33 23.5-56.5T480-240q33 0 56.5 23.5T560-160q0 33-23.5 56.5T480-80Z",quote:"m228-240 92-160q-66 0-113-47t-47-113q0-66 47-113t113-47q66 0 113 47t47 113q0 23-5.5 42.5T458-480L320-240h-92Zm360 0 92-160q-66 0-113-47t-47-113q0-66 47-113t113-47q66 0 113 47t47 113q0 23-5.5 42.5T818-480L680-240h-92Z",video_camera:"M160-160q-33 0-56.5-23.5T80-240v-480q0-33 23.5-56.5T160-800h480q33 0 56.5 23.5T720-720v180l160-160v440L720-420v180q0 33-23.5 56.5T640-160H160Zm0-80h480v-480H160v480Zm0 0v-480 480Z",warning:"m40-120 440-760 440 760H40Zm138-80h604L480-720 178-200Zm302-40q17 0 28.5-11.5T520-280q0-17-11.5-28.5T480-320q-17 0-28.5 11.5T440-280q0 17 11.5 28.5T480-240q0 17-11.5 28.5T440-200Zm-40-120h80v-200h-80v200Zm40-100Z"};const Iconvue_type_script_lang_js={props:{name:{type:String,required:!0},size:{type:[String,Number],default:"1em"},color:{type:String,default:"currentColor"}},setup:function setup(props){var iconPath=(0,vue_esm_bundler.Fl)((function(){var selected=IconPaths[props.name];if(selected)return selected}));return{iconClasses:(0,vue_esm_bundler.Fl)((function(){return["material-icon","custom-size-".concat("string"==typeof props.size&&props.size.includes("em")?props.size:"1em")]})),iconContent:(0,vue_esm_bundler.Fl)((function(){return'')})),iconPath}}};var injectStylesIntoStyleTag=__webpack_require__("./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),injectStylesIntoStyleTag_default=__webpack_require__.n(injectStylesIntoStyleTag),styleDomAPI=__webpack_require__("./node_modules/style-loader/dist/runtime/styleDomAPI.js"),styleDomAPI_default=__webpack_require__.n(styleDomAPI),insertBySelector=__webpack_require__("./node_modules/style-loader/dist/runtime/insertBySelector.js"),insertBySelector_default=__webpack_require__.n(insertBySelector),setAttributesWithoutAttributes=__webpack_require__("./node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js"),setAttributesWithoutAttributes_default=__webpack_require__.n(setAttributesWithoutAttributes),insertStyleElement=__webpack_require__("./node_modules/style-loader/dist/runtime/insertStyleElement.js"),insertStyleElement_default=__webpack_require__.n(insertStyleElement),styleTagTransform=__webpack_require__("./node_modules/style-loader/dist/runtime/styleTagTransform.js"),styleTagTransform_default=__webpack_require__.n(styleTagTransform),Iconvue_type_style_index_0_id_90c4211a_lang_scss=__webpack_require__("./node_modules/css-loader/dist/cjs.js??clonedRuleSet-17.use[1]!./node_modules/@storybook/preset-vue3-webpack/node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/resolve-url-loader/index.js!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-17.use[3]!./node_modules/@storybook/preset-vue3-webpack/node_modules/vue-loader/dist/index.js??ruleSet[0]!./src/vue/components/icon/Icon.vue?vue&type=style&index=0&id=90c4211a&lang=scss"),options={};options.styleTagTransform=styleTagTransform_default(),options.setAttributes=setAttributesWithoutAttributes_default(),options.insert=insertBySelector_default().bind(null,"head"),options.domAPI=styleDomAPI_default(),options.insertStyleElement=insertStyleElement_default();injectStylesIntoStyleTag_default()(Iconvue_type_style_index_0_id_90c4211a_lang_scss.Z,options);Iconvue_type_style_index_0_id_90c4211a_lang_scss.Z&&Iconvue_type_style_index_0_id_90c4211a_lang_scss.Z.locals&&Iconvue_type_style_index_0_id_90c4211a_lang_scss.Z.locals;const __exports__=(0,__webpack_require__("./node_modules/@storybook/preset-vue3-webpack/node_modules/vue-loader/dist/exportHelper.js").Z)(Iconvue_type_script_lang_js,[["render",function render(_ctx,_cache,$props,$setup,$data,$options){return(0,vue_esm_bundler.wg)(),(0,vue_esm_bundler.iD)("span",{class:(0,vue_esm_bundler.C_)($setup.iconClasses),innerHTML:$setup.iconContent},null,10,_hoisted_1)}]]),Icon=__exports__;__exports__.__docgenInfo={exportName:"default",displayName:"Icon",description:"",tags:{},props:[{name:"name",type:{name:"string"},required:!0},{name:"size",type:{name:"string|number"},defaultValue:{func:!1,value:"'1em'"}},{name:"color",type:{name:"string"},defaultValue:{func:!1,value:"'currentColor'"}}],sourceFiles:["/home/runner/work/frontend/frontend/src/vue/components/icon/Icon.vue"]}}}]); \ No newline at end of file diff --git a/203.8e06ff51.iframe.bundle.js b/251.6acc2ae4.iframe.bundle.js similarity index 98% rename from 203.8e06ff51.iframe.bundle.js rename to 251.6acc2ae4.iframe.bundle.js index c57907a5..98cc8eb7 100644 --- a/203.8e06ff51.iframe.bundle.js +++ b/251.6acc2ae4.iframe.bundle.js @@ -1 +1 @@ -"use strict";(self.webpackChunkmooc=self.webpackChunkmooc||[]).push([[203],{"./node_modules/@storybook/preset-vue3-webpack/node_modules/vue-loader/dist/exportHelper.js":(__unused_webpack_module,exports)=>{exports.Z=(sfc,props)=>{const target=sfc.__vccOpts||sfc;for(const[key,val]of props)target[key]=val;return target}},"./node_modules/css-loader/dist/cjs.js??clonedRuleSet-17.use[1]!./node_modules/@storybook/preset-vue3-webpack/node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/resolve-url-loader/index.js!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-17.use[3]!./node_modules/@storybook/preset-vue3-webpack/node_modules/vue-loader/dist/index.js??ruleSet[0]!./src/vue/components/dropdown-button/DropdownButton.vue?vue&type=style&index=0&id=4b73863a&lang=scss":(module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{Z:()=>__WEBPACK_DEFAULT_EXPORT__});var _node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/css-loader/dist/runtime/sourceMaps.js"),_node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0__),_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/css-loader/dist/runtime/api.js"),___CSS_LOADER_EXPORT___=__webpack_require__.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__)()(_node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default());___CSS_LOADER_EXPORT___.push([module.id,".dropdown{position:relative;width:9rem}.dropdown .dropdown-button__content{display:flex;justify-content:flex-start;align-items:center;position:relative}.dropdown .dropdown-button__content .toggle-icon{position:relative;bottom:-0.15rem;margin-left:.15rem;transition:transform .3s ease}.dropdown .dropdown-button__content--open .toggle-icon{transform:rotateX(-180deg);bottom:0}.dropdown__content{width:100%;position:absolute;top:3rem;list-style:none;padding:0;margin:0;overflow:hidden;background-color:#fff;border-top:none;border-radius:.25rem;display:hidden;box-shadow:0 .2rem .3rem rgba(19,19,19,.35);animation-name:hideshow;animation-duration:.7s;animation-iteration-count:1;animation-direction:alternate}@keyframes hideshow{0%{opacity:0}100%{opacity:1}}.dropdown__content.show{display:block}.dropdown__item{padding:.75rem;cursor:pointer;min-width:6rem}.dropdown__item:focus{background-color:#303030;color:#fff}.dropdown__item:hover{background-color:#303030;color:#fff}","",{version:3,sources:["webpack://./src/vue/components/dropdown-button/DropdownButton.vue","webpack://./src/vue/design/colors.scss","webpack://./src/vue/design/_box-shadow.scss","webpack://./src/vue/design/_hide-show-effect.scss"],names:[],mappings:"AAKA,UACE,iBAAA,CACA,UAAA,CACA,oCACE,YAAA,CACA,0BAAA,CACA,kBAAA,CACA,iBAAA,CACA,iDACE,iBAAA,CACA,eAAA,CACA,kBAAA,CACA,6BAAA,CAIA,uDACE,0BAAA,CACA,QAAA,CAKN,mBACE,UAAA,CACA,iBAAA,CACA,QAAA,CACA,eAAA,CACA,SAAA,CACA,QAAA,CACA,eAAA,CACA,qBCxBU,CDyBV,eAAA,CACA,oBAAA,CACA,cAAA,CEhCA,2CANgB,CAAA,uBAAA,CCClB,sBAAA,CACA,2BAAA,CACA,6BAAA,CAEA,oBACE,GACE,SAAA,CAEF,KACE,SAAA,CAAA,CHgCF,wBACE,aAAA,CAIJ,gBACE,cAAA,CACA,cAAA,CACA,cAAA,CAEA,sBACE,wBC7CW,CD8CX,UC3CQ,CD8CV,sBACE,wBClDW,CDmDX,UChDQ",sourcesContent:['\n@import "../../design/hide-show-effect";\n@import "../../design/box-shadow";\n@import "../../design/colors.scss";\n\n.dropdown {\n position: relative;\n width: 9rem;\n .dropdown-button__content {\n display: flex;\n justify-content: flex-start;\n align-items: center;\n position: relative;\n .toggle-icon {\n position: relative;\n bottom: -0.15rem;\n margin-left: 0.15rem;\n transition: transform 0.3s ease;\n }\n\n &--open {\n .toggle-icon {\n transform: rotateX(-180deg);\n bottom: 0;\n }\n }\n }\n\n &__content {\n width: 100%;\n position: absolute;\n top: 3rem;\n list-style: none;\n padding: 0;\n margin: 0;\n overflow: hidden;\n background-color: $color-white;\n border-top: none;\n border-radius: 0.25rem;\n display: hidden;\n @include box-shadow(medium);\n @include hide-show-effect;\n\n &.show {\n display: block;\n }\n }\n\n &__item {\n padding: 0.75rem;\n cursor: pointer;\n min-width: 6rem;\n\n &:focus {\n background-color: $color-grey-900;\n color: $color-white;\n }\n\n &:hover {\n background-color: $color-grey-900;\n color: $color-white;\n }\n }\n}\n',"// support colors\n$color-grey-100: #f9f9f9; \n$color-grey-200: #f1f1f1;\n$color-grey-300: #eaeaea;\n$color-grey-400: #e6e6e6;\n$color-grey-500: #bfbfbf;\n$color-grey-600: #999999;\n$colorgrey-700: #737373;\n$color-grey-800: #666666;\n$color-grey-900: #303030;\n\n$color-black: #1a1a1a;\n$color-white: #ffffff;\n$primary-hover-color:#00468e;\n\n\n// Color palettes\n$color-palette-green: (\n background: (\n 200: #e3f2eb,\n 300: #94caae,\n 400: #7dbf9d,\n 500: #3b7858,\n 600: #254b38\n ),\n foreground: (\n 200: $color-black,\n 300: $color-black,\n 400: $color-black,\n 500: $color-white,\n 600: $color-white\n )\n);\n\n$color-palette-eggshell: (\n background: (\n 300: #f6efe4,\n 400: #f2e8da,\n 500: #d6b689,\n 600: #8c6631,\n 700: #5e4521\n ),\n foreground: (\n 300: $color-black,\n 400: $color-black,\n 500: $color-white,\n 600: $color-white,\n 700: $color-white\n )\n);\n\n$color-palette-peach: (\n background: (\n 300: #f8ece6,\n 400: #eed0c3,\n 500: #dc9e83,\n 600: #a7532f,\n 700: #63321c\n ),\n foreground: (\n 300: $color-black,\n 400: $color-black,\n 500: $color-black,\n 600: $color-white,\n 700: $color-grey-200\n )\n);\n\n$color-palette-azur: (\n background: (\n 300: #eaeaf5,\n 400: #e2e3f1,\n 500: #c7c9e3,\n 600: #999cbf,\n 700: #666883\n ),\n foreground: (\n 300: #303030,\n 400: #303030,\n 500: #303030,\n 600: #303030,\n 700: #ffffff\n )\n);\n\n$color-palette-steel: (\n background: (\n 200: #f5f7f9,\n 300: #ebeef3,\n 400: #bac6d8,\n 500: #99abc5,\n 600: #51698f,\n 700: #2e3c51\n ),\n foreground: (\n 200: $color-grey-900,\n 300: $color-grey-900,\n 400: $color-grey-900,\n 500: $color-grey-900,\n 600: $color-white,\n 700: $color-white\n )\n);\n\n$color-palette-slate: (\n background: (\n 200: #eceff2,\n 300: #a0b1bf,\n 400: #6d889d,\n 500: #546b7d,\n 600: #191d24\n ),\n foreground: (\n 200: $color-grey-900,\n 300: $color-grey-900,\n 400: $color-grey-900,\n 500: $color-white,\n 600: $color-white\n )\n);\n\n// extra colors\n$color-palette-red: (\n background: (\n 200: #ffebee,\n 300: #ffcdd2,\n 400: #ef9a9a,\n 500: #ef5350,\n 600: #c62828\n ),\n foreground: (#E2E3F1\n 200: $color-grey-900,\n 300: $color-black,\n 400: $color-grey-900,\n 500: $color-grey-900,\n 600: $color-white\n )\n);\n\n$color-palette-orange: (\n background: (\n 200: #fff3e0,\n 300: #ffcc80,\n 400: #ffa726,\n 500: #fb8c00,\n 600: #EF6C00\n ),\n foreground: (\n 200: $color-grey-900,\n 300: $color-black,\n 400: $color-grey-900,\n 500: $color-grey-900,\n 600: $color-black\n )\n);\n","$box-shadow-small: 0 0.1rem 0.2rem rgba(19, 19, 19, 0.15);\n$box-shadow-medium: 0 0.2rem 0.3rem rgba(19, 19, 19, 0.35);\n\n@mixin box-shadow($size: small) {\n @if $size == small {\n box-shadow: $box-shadow-small;\n } @else if $size == medium {\n box-shadow: $box-shadow-medium;\n } @else {\n box-shadow: 0;\n }\n}\n","@mixin hide-show-effect() {\n animation-name: hideshow;\n animation-duration: 0.7s;\n animation-iteration-count: 1;\n animation-direction: alternate;\n\n @keyframes hideshow {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n }\n}\n"],sourceRoot:""}]);const __WEBPACK_DEFAULT_EXPORT__=___CSS_LOADER_EXPORT___},"./node_modules/css-loader/dist/runtime/api.js":module=>{module.exports=function(cssWithMappingToString){var list=[];return list.toString=function toString(){return this.map((function(item){var content="",needLayer=void 0!==item[5];return item[4]&&(content+="@supports (".concat(item[4],") {")),item[2]&&(content+="@media ".concat(item[2]," {")),needLayer&&(content+="@layer".concat(item[5].length>0?" ".concat(item[5]):""," {")),content+=cssWithMappingToString(item),needLayer&&(content+="}"),item[2]&&(content+="}"),item[4]&&(content+="}"),content})).join("")},list.i=function i(modules,media,dedupe,supports,layer){"string"==typeof modules&&(modules=[[null,modules,void 0]]);var alreadyImportedModules={};if(dedupe)for(var k=0;k0?" ".concat(item[5]):""," {").concat(item[1],"}")),item[5]=layer),media&&(item[2]?(item[1]="@media ".concat(item[2]," {").concat(item[1],"}"),item[2]=media):item[2]=media),supports&&(item[4]?(item[1]="@supports (".concat(item[4],") {").concat(item[1],"}"),item[4]=supports):item[4]="".concat(supports)),list.push(item))}},list}},"./node_modules/css-loader/dist/runtime/sourceMaps.js":module=>{module.exports=function(item){var content=item[1],cssMapping=item[3];if(!cssMapping)return content;if("function"==typeof btoa){var base64=btoa(unescape(encodeURIComponent(JSON.stringify(cssMapping)))),data="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(base64),sourceMapping="/*# ".concat(data," */");return[content].concat([sourceMapping]).join("\n")}return[content].join("\n")}},"./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js":module=>{var stylesInDOM=[];function getIndexByIdentifier(identifier){for(var result=-1,i=0;i{var memo={};module.exports=function insertBySelector(insert,style){var target=function getTarget(target){if(void 0===memo[target]){var styleTarget=document.querySelector(target);if(window.HTMLIFrameElement&&styleTarget instanceof window.HTMLIFrameElement)try{styleTarget=styleTarget.contentDocument.head}catch(e){styleTarget=null}memo[target]=styleTarget}return memo[target]}(insert);if(!target)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");target.appendChild(style)}},"./node_modules/style-loader/dist/runtime/insertStyleElement.js":module=>{module.exports=function insertStyleElement(options){var element=document.createElement("style");return options.setAttributes(element,options.attributes),options.insert(element,options.options),element}},"./node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js":(module,__unused_webpack_exports,__webpack_require__)=>{module.exports=function setAttributesWithoutAttributes(styleElement){var nonce=__webpack_require__.nc;nonce&&styleElement.setAttribute("nonce",nonce)}},"./node_modules/style-loader/dist/runtime/styleDomAPI.js":module=>{module.exports=function domAPI(options){if("undefined"==typeof document)return{update:function update(){},remove:function remove(){}};var styleElement=options.insertStyleElement(options);return{update:function update(obj){!function apply(styleElement,options,obj){var css="";obj.supports&&(css+="@supports (".concat(obj.supports,") {")),obj.media&&(css+="@media ".concat(obj.media," {"));var needLayer=void 0!==obj.layer;needLayer&&(css+="@layer".concat(obj.layer.length>0?" ".concat(obj.layer):""," {")),css+=obj.css,needLayer&&(css+="}"),obj.media&&(css+="}"),obj.supports&&(css+="}");var sourceMap=obj.sourceMap;sourceMap&&"undefined"!=typeof btoa&&(css+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap))))," */")),options.styleTagTransform(css,styleElement,options.options)}(styleElement,options,obj)},remove:function remove(){!function removeStyleElement(styleElement){if(null===styleElement.parentNode)return!1;styleElement.parentNode.removeChild(styleElement)}(styleElement)}}}},"./node_modules/style-loader/dist/runtime/styleTagTransform.js":module=>{module.exports=function styleTagTransform(css,styleElement){if(styleElement.styleSheet)styleElement.styleSheet.cssText=css;else{for(;styleElement.firstChild;)styleElement.removeChild(styleElement.firstChild);styleElement.appendChild(document.createTextNode(css))}}},"./src/vue/components/dropdown-button/DropdownButton.vue":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{Z:()=>DropdownButton});var vue_esm_bundler=__webpack_require__("./node_modules/vue/dist/vue.esm-bundler.js"),_hoisted_1={class:"dropdown"},_hoisted_2=["data-key","tabIndex","onClick","onFocus"];var Button=__webpack_require__("./src/vue/components/Button.vue"),Icon=__webpack_require__("./src/vue/components/icon/Icon.vue");const DropdownButtonvue_type_script_lang_js={props:{options:Array,preselect:String},components:{Button:Button.Z,Icon:Icon.Z},data:function data(){var _this=this;return{isOpen:!1,selectedOption:this.preselect?this.options.find((function(item){return item.key===_this.preselect})):this.options[0],currentIndex:this.preselect?this.options.find((function(item){return item.key===_this.preselect})).key:this.options[0].key}},emits:["selected"],methods:{toggleDropdown:function toggleDropdown(){this.isOpen=!this.isOpen,this.focusOnFirstItem()},openDropdown:function openDropdown(){this.isOpen=!0,this.focusOnFirstItem(),this.currentIndex=this.filteredOptions.length>0?this.filteredOptions[0].key:null},focusOnFirstItem:function focusOnFirstItem(){var _this2=this;this.$nextTick((function(){var firstItem=_this2.$refs.dropdownList.querySelector('.dropdown__item[tabIndex="0"]');firstItem&&firstItem.focus()}))},selectOption:function selectOption(option){this.selectedOption=option,this.isOpen=!1,this.$emit("selected",option.key)},focusOnItem:function focusOnItem(item){var _this3=this;this.$nextTick((function(){var targetItem=_this3.$refs.dropdownList.querySelector('.dropdown__item[data-key="'.concat(item.key,'"]'));targetItem&&targetItem.focus()}))},handleKeyDown:function handleKeyDown(event){var _this4=this;switch(event.key){case"ArrowDown":this.navigateList("down");break;case"ArrowUp":this.navigateList("up");break;case"Enter":this.selectOption(this.filteredOptions.find((function(option){return option.key===_this4.currentIndex})))}},navigateList:function navigateList(direction){var _this5=this;if("down"===direction){var index=this.filteredOptions.findIndex((function(item){return item.key===_this5.currentIndex}));if(index>=0&&index0){var _option=this.filteredOptions[_index-1];this.currentIndex=_option.key,this.focusOnItem(_option)}}}},computed:{filteredOptions:function filteredOptions(){var _this6=this;return this.options.filter((function(option){return option.key!==_this6.selectedOption.key}))}}};var injectStylesIntoStyleTag=__webpack_require__("./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),injectStylesIntoStyleTag_default=__webpack_require__.n(injectStylesIntoStyleTag),styleDomAPI=__webpack_require__("./node_modules/style-loader/dist/runtime/styleDomAPI.js"),styleDomAPI_default=__webpack_require__.n(styleDomAPI),insertBySelector=__webpack_require__("./node_modules/style-loader/dist/runtime/insertBySelector.js"),insertBySelector_default=__webpack_require__.n(insertBySelector),setAttributesWithoutAttributes=__webpack_require__("./node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js"),setAttributesWithoutAttributes_default=__webpack_require__.n(setAttributesWithoutAttributes),insertStyleElement=__webpack_require__("./node_modules/style-loader/dist/runtime/insertStyleElement.js"),insertStyleElement_default=__webpack_require__.n(insertStyleElement),styleTagTransform=__webpack_require__("./node_modules/style-loader/dist/runtime/styleTagTransform.js"),styleTagTransform_default=__webpack_require__.n(styleTagTransform),DropdownButtonvue_type_style_index_0_id_4b73863a_lang_scss=__webpack_require__("./node_modules/css-loader/dist/cjs.js??clonedRuleSet-17.use[1]!./node_modules/@storybook/preset-vue3-webpack/node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/resolve-url-loader/index.js!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-17.use[3]!./node_modules/@storybook/preset-vue3-webpack/node_modules/vue-loader/dist/index.js??ruleSet[0]!./src/vue/components/dropdown-button/DropdownButton.vue?vue&type=style&index=0&id=4b73863a&lang=scss"),options={};options.styleTagTransform=styleTagTransform_default(),options.setAttributes=setAttributesWithoutAttributes_default(),options.insert=insertBySelector_default().bind(null,"head"),options.domAPI=styleDomAPI_default(),options.insertStyleElement=insertStyleElement_default();injectStylesIntoStyleTag_default()(DropdownButtonvue_type_style_index_0_id_4b73863a_lang_scss.Z,options);DropdownButtonvue_type_style_index_0_id_4b73863a_lang_scss.Z&&DropdownButtonvue_type_style_index_0_id_4b73863a_lang_scss.Z.locals&&DropdownButtonvue_type_style_index_0_id_4b73863a_lang_scss.Z.locals;const __exports__=(0,__webpack_require__("./node_modules/@storybook/preset-vue3-webpack/node_modules/vue-loader/dist/exportHelper.js").Z)(DropdownButtonvue_type_script_lang_js,[["render",function render(_ctx,_cache,$props,$setup,$data,$options){var _component_Icon=(0,vue_esm_bundler.up)("Icon"),_component_Button=(0,vue_esm_bundler.up)("Button");return(0,vue_esm_bundler.wg)(),(0,vue_esm_bundler.iD)("div",_hoisted_1,[(0,vue_esm_bundler.Wm)(_component_Button,{type:"dropdown",size:"lg",onClick:$options.toggleDropdown,onKeydown:[(0,vue_esm_bundler.D2)((0,vue_esm_bundler.iM)($options.openDropdown,["prevent"]),["down"]),(0,vue_esm_bundler.D2)((0,vue_esm_bundler.iM)($options.openDropdown,["prevent"]),["enter"]),(0,vue_esm_bundler.D2)((0,vue_esm_bundler.iM)($options.openDropdown,["prevent"]),["space"])]},{default:(0,vue_esm_bundler.w5)((function(){var _$data$selectedOption;return[(0,vue_esm_bundler._)("span",{class:(0,vue_esm_bundler.C_)(["dropdown-button__content",{"dropdown-button__content--open":$data.isOpen}])},[(0,vue_esm_bundler.Uk)((0,vue_esm_bundler.zw)(null!==(_$data$selectedOption=$data.selectedOption)&&void 0!==_$data$selectedOption&&_$data$selectedOption.value?$data.selectedOption.value:"Bokmål")+" ",1),(0,vue_esm_bundler.Wm)(_component_Icon,{class:"toggle-icon",size:"1.5em",name:"expand_more"})],2)]})),_:1},8,["onClick","onKeydown"]),(0,vue_esm_bundler.wy)((0,vue_esm_bundler._)("ul",{ref:"dropdownList",class:"dropdown__content",onKeydown:_cache[0]||(_cache[0]=(0,vue_esm_bundler.iM)((function(){return $options.handleKeyDown&&$options.handleKeyDown.apply($options,arguments)}),["prevent"])),tabindex:"0"},[((0,vue_esm_bundler.wg)(!0),(0,vue_esm_bundler.iD)(vue_esm_bundler.HY,null,(0,vue_esm_bundler.Ko)($options.filteredOptions,(function(option){return(0,vue_esm_bundler.wg)(),(0,vue_esm_bundler.iD)("li",{key:option.key,"data-key":option.key,tabIndex:option.key===$data.currentIndex?0:-1,onClick:function onClick($event){return $options.selectOption(option)},onFocus:function onFocus($event){return $data.currentIndex=option.key},class:"dropdown__item"},(0,vue_esm_bundler.zw)(option.value),41,_hoisted_2)})),128))],544),[[vue_esm_bundler.F8,$data.isOpen]])])}]]),DropdownButton=__exports__;__exports__.__docgenInfo={exportName:"default",displayName:"DropdownButton",description:"",tags:{},props:[{name:"options",type:{name:"array"}},{name:"preselect",type:{name:"string"}}],events:[{name:"selected",type:{names:["undefined"]}}],sourceFiles:["/home/runner/work/frontend/frontend/src/vue/components/dropdown-button/DropdownButton.vue"]}}}]); \ No newline at end of file +"use strict";(self.webpackChunkmooc=self.webpackChunkmooc||[]).push([[251],{"./node_modules/@storybook/preset-vue3-webpack/node_modules/vue-loader/dist/exportHelper.js":(__unused_webpack_module,exports)=>{exports.Z=(sfc,props)=>{const target=sfc.__vccOpts||sfc;for(const[key,val]of props)target[key]=val;return target}},"./node_modules/css-loader/dist/cjs.js??clonedRuleSet-16.use[1]!./node_modules/@storybook/preset-vue3-webpack/node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/resolve-url-loader/index.js!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-16.use[3]!./node_modules/@storybook/preset-vue3-webpack/node_modules/vue-loader/dist/index.js??ruleSet[0]!./src/vue/components/dropdown-button/DropdownButton.vue?vue&type=style&index=0&id=4b73863a&lang=scss":(module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{Z:()=>__WEBPACK_DEFAULT_EXPORT__});var _node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/css-loader/dist/runtime/sourceMaps.js"),_node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0__),_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/css-loader/dist/runtime/api.js"),___CSS_LOADER_EXPORT___=__webpack_require__.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__)()(_node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default());___CSS_LOADER_EXPORT___.push([module.id,".dropdown{position:relative;width:9rem}.dropdown .dropdown-button__content{display:flex;justify-content:flex-start;align-items:center;position:relative}.dropdown .dropdown-button__content .toggle-icon{position:relative;bottom:-0.15rem;margin-left:.15rem;transition:transform .3s ease}.dropdown .dropdown-button__content--open .toggle-icon{transform:rotateX(-180deg);bottom:0}.dropdown__content{width:100%;position:absolute;top:3rem;list-style:none;padding:0;margin:0;overflow:hidden;background-color:#fff;border-top:none;border-radius:.25rem;display:hidden;box-shadow:0 .2rem .3rem rgba(19,19,19,.35);animation-name:hideshow;animation-duration:.7s;animation-iteration-count:1;animation-direction:alternate}@keyframes hideshow{0%{opacity:0}100%{opacity:1}}.dropdown__content.show{display:block}.dropdown__item{padding:.75rem;cursor:pointer;min-width:6rem}.dropdown__item:focus{background-color:#303030;color:#fff}.dropdown__item:hover{background-color:#303030;color:#fff}","",{version:3,sources:["webpack://./src/vue/components/dropdown-button/DropdownButton.vue","webpack://./src/vue/design/colors.scss","webpack://./src/vue/design/_box-shadow.scss","webpack://./src/vue/design/_hide-show-effect.scss"],names:[],mappings:"AAKA,UACE,iBAAA,CACA,UAAA,CACA,oCACE,YAAA,CACA,0BAAA,CACA,kBAAA,CACA,iBAAA,CACA,iDACE,iBAAA,CACA,eAAA,CACA,kBAAA,CACA,6BAAA,CAIA,uDACE,0BAAA,CACA,QAAA,CAKN,mBACE,UAAA,CACA,iBAAA,CACA,QAAA,CACA,eAAA,CACA,SAAA,CACA,QAAA,CACA,eAAA,CACA,qBCxBU,CDyBV,eAAA,CACA,oBAAA,CACA,cAAA,CEhCA,2CANgB,CAAA,uBAAA,CCClB,sBAAA,CACA,2BAAA,CACA,6BAAA,CAEA,oBACE,GACE,SAAA,CAEF,KACE,SAAA,CAAA,CHgCF,wBACE,aAAA,CAIJ,gBACE,cAAA,CACA,cAAA,CACA,cAAA,CAEA,sBACE,wBC7CW,CD8CX,UC3CQ,CD8CV,sBACE,wBClDW,CDmDX,UChDQ",sourcesContent:['\n@import "../../design/hide-show-effect";\n@import "../../design/box-shadow";\n@import "../../design/colors.scss";\n\n.dropdown {\n position: relative;\n width: 9rem;\n .dropdown-button__content {\n display: flex;\n justify-content: flex-start;\n align-items: center;\n position: relative;\n .toggle-icon {\n position: relative;\n bottom: -0.15rem;\n margin-left: 0.15rem;\n transition: transform 0.3s ease;\n }\n\n &--open {\n .toggle-icon {\n transform: rotateX(-180deg);\n bottom: 0;\n }\n }\n }\n\n &__content {\n width: 100%;\n position: absolute;\n top: 3rem;\n list-style: none;\n padding: 0;\n margin: 0;\n overflow: hidden;\n background-color: $color-white;\n border-top: none;\n border-radius: 0.25rem;\n display: hidden;\n @include box-shadow(medium);\n @include hide-show-effect;\n\n &.show {\n display: block;\n }\n }\n\n &__item {\n padding: 0.75rem;\n cursor: pointer;\n min-width: 6rem;\n\n &:focus {\n background-color: $color-grey-900;\n color: $color-white;\n }\n\n &:hover {\n background-color: $color-grey-900;\n color: $color-white;\n }\n }\n}\n',"// support colors\n$color-grey-100: #f9f9f9; \n$color-grey-200: #f1f1f1;\n$color-grey-300: #eaeaea;\n$color-grey-400: #e6e6e6;\n$color-grey-500: #bfbfbf;\n$color-grey-600: #999999;\n$colorgrey-700: #737373;\n$color-grey-800: #666666;\n$color-grey-900: #303030;\n\n$color-black: #1a1a1a;\n$color-white: #ffffff;\n$primary-hover-color:#00468e;\n\n\n// Color palettes\n$color-palette-green: (\n background: (\n 200: #e3f2eb,\n 300: #94caae,\n 400: #7dbf9d,\n 500: #3b7858,\n 600: #254b38\n ),\n foreground: (\n 200: $color-black,\n 300: $color-black,\n 400: $color-black,\n 500: $color-white,\n 600: $color-white\n )\n);\n\n$color-palette-eggshell: (\n background: (\n 300: #f6efe4,\n 400: #f2e8da,\n 500: #d6b689,\n 600: #8c6631,\n 700: #5e4521\n ),\n foreground: (\n 300: $color-black,\n 400: $color-black,\n 500: $color-white,\n 600: $color-white,\n 700: $color-white\n )\n);\n\n$color-palette-peach: (\n background: (\n 300: #f8ece6,\n 400: #eed0c3,\n 500: #dc9e83,\n 600: #a7532f,\n 700: #63321c\n ),\n foreground: (\n 300: $color-black,\n 400: $color-black,\n 500: $color-black,\n 600: $color-white,\n 700: $color-grey-200\n )\n);\n\n$color-palette-azur: (\n background: (\n 300: #eaeaf5,\n 400: #e2e3f1,\n 500: #c7c9e3,\n 600: #999cbf,\n 700: #666883\n ),\n foreground: (\n 300: #303030,\n 400: #303030,\n 500: #303030,\n 600: #303030,\n 700: #ffffff\n )\n);\n\n$color-palette-steel: (\n background: (\n 200: #f5f7f9,\n 300: #ebeef3,\n 400: #bac6d8,\n 500: #99abc5,\n 600: #51698f,\n 700: #2e3c51\n ),\n foreground: (\n 200: $color-grey-900,\n 300: $color-grey-900,\n 400: $color-grey-900,\n 500: $color-grey-900,\n 600: $color-white,\n 700: $color-white\n )\n);\n\n$color-palette-slate: (\n background: (\n 200: #eceff2,\n 300: #a0b1bf,\n 400: #6d889d,\n 500: #546b7d,\n 600: #191d24\n ),\n foreground: (\n 200: $color-grey-900,\n 300: $color-grey-900,\n 400: $color-grey-900,\n 500: $color-white,\n 600: $color-white\n )\n);\n\n// extra colors\n$color-palette-red: (\n background: (\n 200: #ffebee,\n 300: #ffcdd2,\n 400: #ef9a9a,\n 500: #ef5350,\n 600: #c62828\n ),\n foreground: (#E2E3F1\n 200: $color-grey-900,\n 300: $color-black,\n 400: $color-grey-900,\n 500: $color-grey-900,\n 600: $color-white\n )\n);\n\n$color-palette-orange: (\n background: (\n 200: #fff3e0,\n 300: #ffcc80,\n 400: #ffa726,\n 500: #fb8c00,\n 600: #EF6C00\n ),\n foreground: (\n 200: $color-grey-900,\n 300: $color-black,\n 400: $color-grey-900,\n 500: $color-grey-900,\n 600: $color-black\n )\n);\n","$box-shadow-small: 0 0.1rem 0.2rem rgba(19, 19, 19, 0.15);\n$box-shadow-medium: 0 0.2rem 0.3rem rgba(19, 19, 19, 0.35);\n\n@mixin box-shadow($size: small) {\n @if $size == small {\n box-shadow: $box-shadow-small;\n } @else if $size == medium {\n box-shadow: $box-shadow-medium;\n } @else {\n box-shadow: 0;\n }\n}\n","@mixin hide-show-effect() {\n animation-name: hideshow;\n animation-duration: 0.7s;\n animation-iteration-count: 1;\n animation-direction: alternate;\n\n @keyframes hideshow {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n }\n}\n"],sourceRoot:""}]);const __WEBPACK_DEFAULT_EXPORT__=___CSS_LOADER_EXPORT___},"./node_modules/css-loader/dist/runtime/api.js":module=>{module.exports=function(cssWithMappingToString){var list=[];return list.toString=function toString(){return this.map((function(item){var content="",needLayer=void 0!==item[5];return item[4]&&(content+="@supports (".concat(item[4],") {")),item[2]&&(content+="@media ".concat(item[2]," {")),needLayer&&(content+="@layer".concat(item[5].length>0?" ".concat(item[5]):""," {")),content+=cssWithMappingToString(item),needLayer&&(content+="}"),item[2]&&(content+="}"),item[4]&&(content+="}"),content})).join("")},list.i=function i(modules,media,dedupe,supports,layer){"string"==typeof modules&&(modules=[[null,modules,void 0]]);var alreadyImportedModules={};if(dedupe)for(var k=0;k0?" ".concat(item[5]):""," {").concat(item[1],"}")),item[5]=layer),media&&(item[2]?(item[1]="@media ".concat(item[2]," {").concat(item[1],"}"),item[2]=media):item[2]=media),supports&&(item[4]?(item[1]="@supports (".concat(item[4],") {").concat(item[1],"}"),item[4]=supports):item[4]="".concat(supports)),list.push(item))}},list}},"./node_modules/css-loader/dist/runtime/sourceMaps.js":module=>{module.exports=function(item){var content=item[1],cssMapping=item[3];if(!cssMapping)return content;if("function"==typeof btoa){var base64=btoa(unescape(encodeURIComponent(JSON.stringify(cssMapping)))),data="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(base64),sourceMapping="/*# ".concat(data," */");return[content].concat([sourceMapping]).join("\n")}return[content].join("\n")}},"./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js":module=>{var stylesInDOM=[];function getIndexByIdentifier(identifier){for(var result=-1,i=0;i{var memo={};module.exports=function insertBySelector(insert,style){var target=function getTarget(target){if(void 0===memo[target]){var styleTarget=document.querySelector(target);if(window.HTMLIFrameElement&&styleTarget instanceof window.HTMLIFrameElement)try{styleTarget=styleTarget.contentDocument.head}catch(e){styleTarget=null}memo[target]=styleTarget}return memo[target]}(insert);if(!target)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");target.appendChild(style)}},"./node_modules/style-loader/dist/runtime/insertStyleElement.js":module=>{module.exports=function insertStyleElement(options){var element=document.createElement("style");return options.setAttributes(element,options.attributes),options.insert(element,options.options),element}},"./node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js":(module,__unused_webpack_exports,__webpack_require__)=>{module.exports=function setAttributesWithoutAttributes(styleElement){var nonce=__webpack_require__.nc;nonce&&styleElement.setAttribute("nonce",nonce)}},"./node_modules/style-loader/dist/runtime/styleDomAPI.js":module=>{module.exports=function domAPI(options){if("undefined"==typeof document)return{update:function update(){},remove:function remove(){}};var styleElement=options.insertStyleElement(options);return{update:function update(obj){!function apply(styleElement,options,obj){var css="";obj.supports&&(css+="@supports (".concat(obj.supports,") {")),obj.media&&(css+="@media ".concat(obj.media," {"));var needLayer=void 0!==obj.layer;needLayer&&(css+="@layer".concat(obj.layer.length>0?" ".concat(obj.layer):""," {")),css+=obj.css,needLayer&&(css+="}"),obj.media&&(css+="}"),obj.supports&&(css+="}");var sourceMap=obj.sourceMap;sourceMap&&"undefined"!=typeof btoa&&(css+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap))))," */")),options.styleTagTransform(css,styleElement,options.options)}(styleElement,options,obj)},remove:function remove(){!function removeStyleElement(styleElement){if(null===styleElement.parentNode)return!1;styleElement.parentNode.removeChild(styleElement)}(styleElement)}}}},"./node_modules/style-loader/dist/runtime/styleTagTransform.js":module=>{module.exports=function styleTagTransform(css,styleElement){if(styleElement.styleSheet)styleElement.styleSheet.cssText=css;else{for(;styleElement.firstChild;)styleElement.removeChild(styleElement.firstChild);styleElement.appendChild(document.createTextNode(css))}}},"./src/vue/components/dropdown-button/DropdownButton.vue":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{Z:()=>DropdownButton});var vue_esm_bundler=__webpack_require__("./node_modules/vue/dist/vue.esm-bundler.js"),_hoisted_1={class:"dropdown"},_hoisted_2=["data-key","tabIndex","onClick","onFocus"];var Button=__webpack_require__("./src/vue/components/Button.vue"),Icon=__webpack_require__("./src/vue/components/icon/Icon.vue");const DropdownButtonvue_type_script_lang_js={props:{options:Array,preselect:String},components:{Button:Button.Z,Icon:Icon.Z},data:function data(){var _this=this;return{isOpen:!1,selectedOption:this.preselect?this.options.find((function(item){return item.key===_this.preselect})):this.options[0],currentIndex:this.preselect?this.options.find((function(item){return item.key===_this.preselect})).key:this.options[0].key}},emits:["selected"],methods:{toggleDropdown:function toggleDropdown(){this.isOpen=!this.isOpen,this.focusOnFirstItem()},openDropdown:function openDropdown(){this.isOpen=!0,this.focusOnFirstItem(),this.currentIndex=this.filteredOptions.length>0?this.filteredOptions[0].key:null},focusOnFirstItem:function focusOnFirstItem(){var _this2=this;this.$nextTick((function(){var firstItem=_this2.$refs.dropdownList.querySelector('.dropdown__item[tabIndex="0"]');firstItem&&firstItem.focus()}))},selectOption:function selectOption(option){this.selectedOption=option,this.isOpen=!1,this.$emit("selected",option.key)},focusOnItem:function focusOnItem(item){var _this3=this;this.$nextTick((function(){var targetItem=_this3.$refs.dropdownList.querySelector('.dropdown__item[data-key="'.concat(item.key,'"]'));targetItem&&targetItem.focus()}))},handleKeyDown:function handleKeyDown(event){var _this4=this;switch(event.key){case"ArrowDown":this.navigateList("down");break;case"ArrowUp":this.navigateList("up");break;case"Enter":this.selectOption(this.filteredOptions.find((function(option){return option.key===_this4.currentIndex})))}},navigateList:function navigateList(direction){var _this5=this;if("down"===direction){var index=this.filteredOptions.findIndex((function(item){return item.key===_this5.currentIndex}));if(index>=0&&index0){var _option=this.filteredOptions[_index-1];this.currentIndex=_option.key,this.focusOnItem(_option)}}}},computed:{filteredOptions:function filteredOptions(){var _this6=this;return this.options.filter((function(option){return option.key!==_this6.selectedOption.key}))}}};var injectStylesIntoStyleTag=__webpack_require__("./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),injectStylesIntoStyleTag_default=__webpack_require__.n(injectStylesIntoStyleTag),styleDomAPI=__webpack_require__("./node_modules/style-loader/dist/runtime/styleDomAPI.js"),styleDomAPI_default=__webpack_require__.n(styleDomAPI),insertBySelector=__webpack_require__("./node_modules/style-loader/dist/runtime/insertBySelector.js"),insertBySelector_default=__webpack_require__.n(insertBySelector),setAttributesWithoutAttributes=__webpack_require__("./node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js"),setAttributesWithoutAttributes_default=__webpack_require__.n(setAttributesWithoutAttributes),insertStyleElement=__webpack_require__("./node_modules/style-loader/dist/runtime/insertStyleElement.js"),insertStyleElement_default=__webpack_require__.n(insertStyleElement),styleTagTransform=__webpack_require__("./node_modules/style-loader/dist/runtime/styleTagTransform.js"),styleTagTransform_default=__webpack_require__.n(styleTagTransform),DropdownButtonvue_type_style_index_0_id_4b73863a_lang_scss=__webpack_require__("./node_modules/css-loader/dist/cjs.js??clonedRuleSet-16.use[1]!./node_modules/@storybook/preset-vue3-webpack/node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/resolve-url-loader/index.js!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-16.use[3]!./node_modules/@storybook/preset-vue3-webpack/node_modules/vue-loader/dist/index.js??ruleSet[0]!./src/vue/components/dropdown-button/DropdownButton.vue?vue&type=style&index=0&id=4b73863a&lang=scss"),options={};options.styleTagTransform=styleTagTransform_default(),options.setAttributes=setAttributesWithoutAttributes_default(),options.insert=insertBySelector_default().bind(null,"head"),options.domAPI=styleDomAPI_default(),options.insertStyleElement=insertStyleElement_default();injectStylesIntoStyleTag_default()(DropdownButtonvue_type_style_index_0_id_4b73863a_lang_scss.Z,options);DropdownButtonvue_type_style_index_0_id_4b73863a_lang_scss.Z&&DropdownButtonvue_type_style_index_0_id_4b73863a_lang_scss.Z.locals&&DropdownButtonvue_type_style_index_0_id_4b73863a_lang_scss.Z.locals;const __exports__=(0,__webpack_require__("./node_modules/@storybook/preset-vue3-webpack/node_modules/vue-loader/dist/exportHelper.js").Z)(DropdownButtonvue_type_script_lang_js,[["render",function render(_ctx,_cache,$props,$setup,$data,$options){var _component_Icon=(0,vue_esm_bundler.up)("Icon"),_component_Button=(0,vue_esm_bundler.up)("Button");return(0,vue_esm_bundler.wg)(),(0,vue_esm_bundler.iD)("div",_hoisted_1,[(0,vue_esm_bundler.Wm)(_component_Button,{type:"dropdown",size:"lg",onClick:$options.toggleDropdown,onKeydown:[(0,vue_esm_bundler.D2)((0,vue_esm_bundler.iM)($options.openDropdown,["prevent"]),["down"]),(0,vue_esm_bundler.D2)((0,vue_esm_bundler.iM)($options.openDropdown,["prevent"]),["enter"]),(0,vue_esm_bundler.D2)((0,vue_esm_bundler.iM)($options.openDropdown,["prevent"]),["space"])]},{default:(0,vue_esm_bundler.w5)((function(){var _$data$selectedOption;return[(0,vue_esm_bundler._)("span",{class:(0,vue_esm_bundler.C_)(["dropdown-button__content",{"dropdown-button__content--open":$data.isOpen}])},[(0,vue_esm_bundler.Uk)((0,vue_esm_bundler.zw)(null!==(_$data$selectedOption=$data.selectedOption)&&void 0!==_$data$selectedOption&&_$data$selectedOption.value?$data.selectedOption.value:"Bokmål")+" ",1),(0,vue_esm_bundler.Wm)(_component_Icon,{class:"toggle-icon",size:"1.5em",name:"expand_more"})],2)]})),_:1},8,["onClick","onKeydown"]),(0,vue_esm_bundler.wy)((0,vue_esm_bundler._)("ul",{ref:"dropdownList",class:"dropdown__content",onKeydown:_cache[0]||(_cache[0]=(0,vue_esm_bundler.iM)((function(){return $options.handleKeyDown&&$options.handleKeyDown.apply($options,arguments)}),["prevent"])),tabindex:"0"},[((0,vue_esm_bundler.wg)(!0),(0,vue_esm_bundler.iD)(vue_esm_bundler.HY,null,(0,vue_esm_bundler.Ko)($options.filteredOptions,(function(option){return(0,vue_esm_bundler.wg)(),(0,vue_esm_bundler.iD)("li",{key:option.key,"data-key":option.key,tabIndex:option.key===$data.currentIndex?0:-1,onClick:function onClick($event){return $options.selectOption(option)},onFocus:function onFocus($event){return $data.currentIndex=option.key},class:"dropdown__item"},(0,vue_esm_bundler.zw)(option.value),41,_hoisted_2)})),128))],544),[[vue_esm_bundler.F8,$data.isOpen]])])}]]),DropdownButton=__exports__;__exports__.__docgenInfo={exportName:"default",displayName:"DropdownButton",description:"",tags:{},props:[{name:"options",type:{name:"array"}},{name:"preselect",type:{name:"string"}}],events:[{name:"selected",type:{names:["undefined"]}}],sourceFiles:["/home/runner/work/frontend/frontend/src/vue/components/dropdown-button/DropdownButton.vue"]}}}]); \ No newline at end of file diff --git a/296.34c5ea5c.iframe.bundle.js b/296.34c5ea5c.iframe.bundle.js new file mode 100644 index 00000000..ed36de7e --- /dev/null +++ b/296.34c5ea5c.iframe.bundle.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkmooc=self.webpackChunkmooc||[]).push([[296],{"./node_modules/@storybook/components/dist/syntaxhighlighter-NMPM6SWI.mjs":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{SyntaxHighlighter:()=>_chunk_V3JBNODJ_mjs__WEBPACK_IMPORTED_MODULE_0__.d3,createCopyToClipboardFunction:()=>_chunk_V3JBNODJ_mjs__WEBPACK_IMPORTED_MODULE_0__.xV,default:()=>_chunk_V3JBNODJ_mjs__WEBPACK_IMPORTED_MODULE_0__.qG});var _chunk_V3JBNODJ_mjs__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@storybook/components/dist/chunk-V3JBNODJ.mjs")}}]); \ No newline at end of file diff --git a/312.b2a56372.iframe.bundle.js b/312.b2a56372.iframe.bundle.js deleted file mode 100644 index 98362bb1..00000000 --- a/312.b2a56372.iframe.bundle.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkmooc=self.webpackChunkmooc||[]).push([[312],{"./node_modules/memoizerific sync recursive":module=>{function webpackEmptyContext(req){var e=new Error("Cannot find module '"+req+"'");throw e.code="MODULE_NOT_FOUND",e}webpackEmptyContext.keys=()=>[],webpackEmptyContext.resolve=webpackEmptyContext,webpackEmptyContext.id="./node_modules/memoizerific sync recursive",module.exports=webpackEmptyContext}}]); \ No newline at end of file diff --git a/378.f80a919d.iframe.bundle.js b/378.f80a919d.iframe.bundle.js new file mode 100644 index 00000000..0b880cf0 --- /dev/null +++ b/378.f80a919d.iframe.bundle.js @@ -0,0 +1 @@ +(self.webpackChunkmooc=self.webpackChunkmooc||[]).push([[378],{"./src/js/api/api.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{Z:()=>api});var settings=__webpack_require__("./src/js/settings.js"),settings_default=__webpack_require__.n(settings),util=__webpack_require__("./src/js/modules/util.js"),settingsRoot=__webpack_require__("./src/js/settingsRoot.js"),settingsRoot_default=__webpack_require__.n(settingsRoot);const utilRoot={_env:"undefined"!=typeof ENV?ENV:{},getRoles:function getRoles(){return this._env.current_user_roles},isAuthenticated:function isAuthenticated(){return null!==this.getRoles()},getLinkToMyCourses:function getLinkToMyCourses(){return"/courses"+settingsRoot.hrefQueryString},parse_query_string:function parse_query_string(query){for(var vars=query.split("&"),query_string={},i=0;i div > div > div > div > div.ic-Login-header > div.ic-Login-header__links").hide()}return!1},isEnrollCodeParamPassed:function isEnrollCodeParamPassed(urlParamsObj){var enrollCode=urlParamsObj&&urlParamsObj.enroll_code;return void 0!==enrollCode?enrollCode:null},isLoginParamPassed:function isLoginParamPassed(urlParamsObj){return void 0!==(urlParamsObj&&urlParamsObj.login)},triggerForgotPasswordIfParamPassed:function triggerForgotPasswordIfParamPassed(){void 0!==this.urlParamsToObject().gp&&$("#login_forgot_password").click()},redirectToEnrollIfCodeParamPassed:function redirectToEnrollIfCodeParamPassed(){if(""!==document.location.search){var urlParamsObj=this.urlParamsToObject(),design=urlParamsObj&&urlParamsObj.design,newHref=null,enrollCode=this.isEnrollCodeParamPassed(urlParamsObj);enrollCode&&(newHref="/enroll/"+enrollCode,design&&(newHref+="?design="+design));var forwardTo=urlParamsObj&&urlParamsObj.forwardTo;if(forwardTo&&(newHref+=design?"&":"?",newHref+="forwardTo="+encodeURIComponent(forwardTo)),newHref)return window.location.href=newHref,!0;if(this.isLoginParamPassed(urlParamsObj)){var linkToMyCourses=this.getLinkToMyCourses();return window.location.href=linkToMyCourses,!0}}return!1},redirectToSamlIfUdirCourse:function redirectToSamlIfUdirCourse(kpasApiUrl){try{if(!this.isAuthenticated()){var currentUrl=""+window.location.pathname,currentCourseId=this.getCourseIdFromUrl(currentUrl);this.isDeepLinkToUdirCourse(currentCourseId,kpasApiUrl).then((function(result){return!!result&&(window.location="/login/saml/2",!0)}))}}catch(e){console.log(e)}},getCourseIdFromUrl:function getCourseIdFromUrl(currentUrl){var matches=currentUrl.match(/\/courses\/(\d+)/);if(null!=matches)return parseInt(matches[1],10);if(this._env.group)return this._env.group.context_id;if($("#discussion_container").size()>0){var tmp=$("#discussion_topic div.entry-content header div div.pull-left span a");if(tmp.length){var tmpHref=tmp.attr("href");if(tmpHref.length){var tmpHrefArr=tmpHref.split("/");if(3==tmpHrefArr.length)return parseInt(tmpHrefArr[2],10)}}}return null}};function _typeof(o){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}function _defineProperty(obj,key,value){return(key=function _toPropertyKey(arg){var key=function _toPrimitive(input,hint){if("object"!==_typeof(input)||null===input)return input;var prim=input[Symbol.toPrimitive];if(void 0!==prim){var res=prim.call(input,hint||"default");if("object"!==_typeof(res))return res;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===hint?String:Number)(input)}(arg,"string");return"symbol"===_typeof(key)?key:String(key)}(key))in obj?Object.defineProperty(obj,key,{value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}function _readOnlyError(name){throw new TypeError('"'+name+'" is read-only')}const api=((_urlToTypeMapping=[]).quizzes="Quiz",_urlToTypeMapping.assignments="Assignment",_urlToTypeMapping.discussion_topics="Discussion",_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({_ajax:"undefined"!=typeof $?$:{},_env:"undefined"!=typeof ENV?ENV:{},_location:"undefined"!=typeof document?document.location:{search:"",href:""},_uriPrefix:"/api/v1",_defaultError:function _defaultError(event,jqxhr,settings,thrownError){console.log(event,jqxhr,settings,thrownError)},_sendRequest:function _sendRequest(method){var options=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},error=options.error||this._defaultError;method(this._uriPrefix+options.uri,options.params||{},options.callback).fail(error)},_get:function _get(options){var uri=this._uriPrefix+options.uri,params=options.params||{},callback=options.callback,customError=options.error;$.ajax({url:uri,type:"GET",data:params,success:function success(response){if("student_id"in params&&(response=response.map((function(el){return el.student_id=params.student_id,el}))),uri.includes("/groups/")&&uri.includes("/users")){var groupId=uri.split("/groups/");groupId[1].split("/users"),_readOnlyError("groupId"),parseInt(groupId[0]),_readOnlyError("groupId"),response=response.map((function(el){return el.group_id=groupId,el}))}callback(response)},error:function error(XMLHttpRequest,textStatus,errorThrown){console.log("Error during GET"),customError&&customError(XMLHttpRequest.responseText)}})},_post:function _post(options){this._sendRequest(this._ajax.post,options)},_put:function _put(options){var uri=this._uriPrefix+options.uri,params=options.params||{},callback=options.callback;$.ajax({url:uri,type:"PUT",data:params,success:function success(response){callback(response)},error:function error(XMLHttpRequest,textStatus,errorThrown){console.log("Error during PUT")}})},_delete:function _delete(options){var uri=this._uriPrefix+options.uri,params=options.params||{},callback=options.callback;$.ajax({url:uri,type:"DELETE",data:params,success:function success(response){callback(response)},error:function error(XMLHttpRequest,textStatus,errorThrown){console.log("Error during DELETE")}})},listModulesForCourse:function listModulesForCourse(callback,error,cid){var href="/api/v1/courses/".concat(cid,"/modules?per_page=100");$.getJSON(href,(function(modules){var noOfModules=modules.length,asyncsDone=0;modules.forEach((function(module,index){var j,href="/api/v1/courses/".concat(cid,"/modules/").concat(module.id,"/items?per_page=100");$.getJSON(href,(j=index,function(items){modules[j].items=items,++asyncsDone===noOfModules&&callback(modules)}))}))}))},getCurrentModuleItemId:function getCurrentModuleItemId(){var moduleId,relativeUrl=location.pathname;if(/\/courses\/\d+\/modules\/items\/\d+$/.test(relativeUrl)){var n=relativeUrl.lastIndexOf("/");moduleId=relativeUrl.substring(n+1)}else{var q=""+this._location.search;if(void 0===q||-1==q.indexOf("module_item_id"))return null;-1!=(moduleId=q.substring(q.indexOf("module_item_id")+14+1,q.length)).indexOf("&")&&(moduleId=moduleId.substring(0,moduleId.indexOf("&")))}return parseInt(moduleId,10)},getCurrentTypeAndContentId:function getCurrentTypeAndContentId(){var type=null,contentId=null;if(/\/courses\/\d+\/\w+\/\.*/.test(""+this._location.pathname)){var tmp=this._location.pathname.split("/");tmp.length>=4&&(type=_urlToTypeMapping[tmp[3]])}if(/\/courses\/\d+\/\w+\/\d+/.test(""+this._location.pathname)){var _tmp=this._location.pathname.split("/");_tmp.length>=5&&(contentId=parseInt(_tmp[4],10))}return{contentId,type}},getAllCourses:function getAllCourses(_callback,error){this._get({callback:function callback(courses){var filteredCourses=courses.filter(util.Z.filterSearchAllCourse);_callback(filteredCourses)},error,uri:"/search/all_courses",params:{per_page:999}})},getAllPublicCourses:function getAllPublicCourses(_callback2,error){this._get({callback:function callback(courses){var filteredCourses=courses.filter(util.Z.filterSearchAllCourse);_callback2(filteredCourses)},error,uri:"/search/all_courses?open_enrollment_only=true",params:{per_page:999}})},getEnrolledCourses:function getEnrolledCourses(_callback3,error){if(!util.Z.isAuthenticated())return _callback3([]),!1;this._get({callback:function callback(courses){if(settings_default().filterCourses){var filteredCourses=courses.filter(util.Z.filterCourse);_callback3(filteredCourses)}else _callback3(courses)},error,uri:"/courses?include[]=public_description",params:{include:["syllabus_body","course_progress"],per_page:"100"}})},getModulesForCurrentCourse:function getModulesForCurrentCourse(callback,error){var courseId=this.getCurrentCourseId();this.listModulesForCourse(callback,error,courseId)},getModulesForCourseId:function getModulesForCourseId(callback,error,courseId){this._get({callback,error,uri:"/courses/".concat(courseId,"/modules"),params:{per_page:999}})},getModulesForCourseIdIncludeItems:function getModulesForCourseIdIncludeItems(courseId,callback,error){this._get({callback,error,uri:"/courses/".concat(courseId,"/modules?include[]=items"),params:{per_page:999}})},getItemsForModuleId:function getItemsForModuleId(callback,error,courseId,moduleId,params){this._get({callback,error,uri:"/courses/".concat(courseId,"/modules/").concat(moduleId,"/items"),params})},getCurrentCourseId:function getCurrentCourseId(){var currentUrl=""+this._location.pathname;return utilRoot.getCourseIdFromUrl(currentUrl)},getModuleItemSequence:function getModuleItemSequence(courseId,moduleItemId,_callback4,error){this._get({callback:function callback(moduleItemSequence){_callback4(courseId,moduleItemSequence)},error,uri:"/courses/".concat(courseId,"/module_item_sequence"),params:{asset_id:moduleItemId,asset_type:"ModuleItem"}})},getCourse:function getCourse(courseId,callback,error){this._get({callback,error,uri:"/courses/".concat(courseId,"?include[]=self_enrollment_code"),params:{}})},isGroupDiscussion:function isGroupDiscussion(courseId,contentId,callback){void 0!==ENV.DISCUSSION.IS_GROUP?callback(ENV.DISCUSSION.IS_GROUP):this.getDiscussionTopic(courseId,contentId,(function(discussion){callback(!!discussion.group_category_id)}))},getCurrentGroupId:function getCurrentGroupId(){var matches=(""+this._location.pathname).match(/\/groups\/(\d+)/);return null!=matches?parseInt(matches[1],10):null},getGroup:function getGroup(groupId,callback,error){this._get({callback,error,uri:"/groups/".concat(groupId),params:{}})},getGroupMembers:function getGroupMembers(groupId,callback,error){this._get({callback,error,uri:"/groups/".concat(groupId,"/users"),params:{include:["avatar_url"],per_page:999}})},getCurrentModuleForItemOrTypeAndContentId:function getCurrentModuleForItemOrTypeAndContentId(moduleItemId,typeAndContentId,callback,error){this.getModulesForCurrentCourse((function(modules){for(var bCurrentItemFound=!1,currentHeaderItem=null,i=0;i=5&&(groupTopicId=tmp[4],groupId=tmp[2]),null!=groupTopicId){var _this=this;this.getSpecificGroupDiscussionTopic(groupId,groupTopicId,(function(groupDiscussion){_this.getUserGroups((function(groups){for(var i=0;i]+)>")[1];that._get({callback:that._getGroupsForAccountHelper(accumulatedGroups,callback,error),error,uri:fullURI.split("api/v1")[1],params:{}})}}},getGroupsForAccount:function getGroupsForAccount(account,callback,error){this._get({callback:this._getGroupsForAccountHelper([],callback,error),error,uri:"/accounts/".concat(account,"/groups"),params:{per_page:999}})},getGroupCategory:function getGroupCategory(categoryID,callback,error){this._get({callback,error,uri:"/group_categories/".concat(categoryID),params:{}})},getGroupsInCategory:function getGroupsInCategory(categoryID,callback,error){this._get({callback,error,uri:"/group_categories/".concat(categoryID,"/groups"),params:{per_page:999}})},getGroupsInCourse:function getGroupsInCourse(courseID,callback,error){this._get({callback,error,uri:"/courses/".concat(courseID,"/groups"),params:{per_page:999}})},getUserGroups:function getUserGroups(callback,error){this._get({callback,error,uri:"/users/self/groups",params:{per_page:999}})},getUserGroupsForCourse:function getUserGroupsForCourse(courseId,callback,error){this.getUserGroups((function(groups){for(var usersGroups=[],i=0;i{"use strict";__webpack_require__.d(__webpack_exports__,{Z:()=>__WEBPACK_DEFAULT_EXPORT__});var _settingsRoot__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./src/js/settingsRoot.js"),_api_api_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./src/js/api/api.js"),_settings__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./src/js/settings.js"),_settings__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(_settings__WEBPACK_IMPORTED_MODULE_2__);const __WEBPACK_DEFAULT_EXPORT__={courseListEnum:{normalCourse:1,allCoursesList:2,myCoursesList:3,dataportenCallback:4,uidpCallback:5},mapCourseSettings:function mapCourseSettings(courses,courseSettings){return courses.forEach((function(course){var cc=courseSettings.find((function(x){return x.course_id===course.id}));cc&&(course.course_settings=cc)})),courses},mmoocLoadScript:function mmoocLoadScript(mmoocScript){var mmoocScriptElement=document.createElement("script");mmoocScriptElement.setAttribute("charset","UTF-8"),mmoocScriptElement.setAttribute("src",mmoocScript),document.body.appendChild(mmoocScriptElement)},isMobileOrTablet:function isMobileOrTablet(){return!!(navigator.userAgent.match(/Android/i)||navigator.userAgent.match(/webOS/i)||navigator.userAgent.match(/iPhone/i)||navigator.userAgent.match(/iPad/i)||navigator.userAgent.match(/iPod/i)||navigator.userAgent.match(/BlackBerry/i)||navigator.userAgent.match(/Windows Phone/i))},getPageTitleBeforeColon:function getPageTitleBeforeColon(){var title=document.title;return title.indexOf(":")&&(title=title.substring(0,title.indexOf(":"))),title},getPageTitleAfterColon:function getPageTitleAfterColon(){var title=document.title;return title.indexOf(":")&&(title=title.substring(title.indexOf(":")+1,title.length)),title},filterCourse:function filterCourse(course){return!_settings__WEBPACK_IMPORTED_MODULE_2___default().filterCourses||_settings__WEBPACK_IMPORTED_MODULE_2___default().filterCoursesOnAccountId.includes(course.account_id)},filterSearchAllCourse:function filterSearchAllCourse(course){return!_settings__WEBPACK_IMPORTED_MODULE_2___default().filterCourses||_settings__WEBPACK_IMPORTED_MODULE_2___default().filterCoursesOnAccountId.includes(course.course.account_id)},callWhenElementIsPresent:function callWhenElementIsPresent(classId,callback){var checkExist=setInterval((function(){$(classId).length&&(clearInterval(checkExist),callback())}),100)},arraySorted:function arraySorted(array,elementToSort){return"[object Array]"===Object.prototype.toString.call(array)&&elementToSort?array.sort((function(a,b){if(a.hasOwnProperty(elementToSort)&&b.hasOwnProperty(elementToSort)){var field1=a[elementToSort].toLocaleLowerCase(),field2=b[elementToSort].toLocaleLowerCase();return field1.localeCompare(field2,"nb",{usage:"sort"})}return 0})):array},goBack:function goBack(e){var oldHash=window.location.hash;return history.back(),window.location.hash!==oldHash||"string"==typeof document.referrer&&""!==document.referrer||window.setTimeout((function(){window.location.href="/frontend/"}),1e3),e&&(e.preventDefault&&e.preventDefault(),e.preventPropagation&&e.preventPropagation()),!1},adaptHeightToIframeContentForId:function adaptHeightToIframeContentForId(containerId,frameId){var scrollHeight=Number(document.getElementById(frameId).contentWindow.document.body.scrollHeight)+20;document.getElementsByClassName(containerId)[0].style.height=scrollHeight+"px"},isEnrolledAsStudent:function isEnrolledAsStudent(enrollments){for(var i=0;i