1import{bc as T,bd as k,be as S,bf as I,bg as $,bh as D,bi as R,bj as N,bk as P,_ as le,f as b,i as Z,d5 as Qe,a6 as ue,fR as We,cO as Ke,G as ee,d as j,eM as Xe,k as v,B as ge,h as d,w as h,g as x,j as U,aE as Ce,dC as Me,ct as me,q as G,t as H,y as ae,u as ne,L as ve,bz as re,I as Ie,b6 as Oe,cr as Ae,H as _,bu as Ye,cn as Ee,F as Ue,aR as Je,b8 as ea,x as pe,fS as aa,fT as ta,aN as Be,fI as la,aO as we,bt as Ve,co as xe,fU as Le,aD as _e,b4 as Te,a2 as ke,fV as na,cN as ie,eK as oa,fW as Se,eh as ra,aG as $e,eb as ia,eQ as da,e as sa,c as ca,o as ua,b3 as ma,fX as pa,b7 as Ca}from"./index-CN0rsLsI.js";/* empty css */import{C as va,e as de,f as te,b as La,B as fa,u as ha,d as ya,a as ba,g as ga}from"./Board.vue_vue_type_style_index_0_scoped_57e4cb11_lang-mf8ckzZu.js";import{L as Ma,a as De,_ as se,b as Ea}from"./SelectBoardLayoutDialog.vue_vue_type_style_index_0_scoped_063ef035_lang-sF3bO0W3.js";import{V as J}from"./VSkeletonLoader-DmX27l8c.js";import{_ as Ba,C as wa,c as Re}from"./SvsColorPickerMenu.vue_vue_type_script_setup_true_lang-C6PcnXj3.js";import{_ as xa}from"./KebabMenu.vue_vue_type_script_setup_true_lang-GjnoHBKz.js";import{V as Pe,a as Fe,c as qe}from"./VExpansionPanels-j9tobT6T.js";import{_ as Ia}from"./KebabMenuAction.vue_vue_type_script_setup_true_lang-D6WkZ8Us.js";import{_ as oe}from"./WarningChip.vue_vue_type_script_setup_true_lang-DpW9Fsyn.js";import"./CollaboraPostMessage.schema-uVzha-wX.js";import"./index-CwNcbkkA.js";/* empty css */import"./InlineEditor.vue_vue_type_style_index_1_lang-Cpma7mFD.js";import"./sortable.esm-BzJVkfZx.js";import{_ as Oa}from"./EmptyState.vue_vue_type_script_setup_true_lang-DmNq_ktP.js";import{D as Aa}from"./DefaultWireframe-UIjbo5CT.js";import"./KebabMenuList.vue_vue_type_script_setup_true_lang-CqtoPDiG.js";import"./ContextExternalToolConfigurator.vue_vue_type_script_setup_true_lang-CJEypCTg.js";import"./ExternalToolConfigurator.vue_vue_type_script_setup_true_lang-BmWgLfFF.js";import"./VAutocomplete-CNb7rp1i.js";import"./VRow-Dg4Ts87B.js";import"./index-B5SEjhFT.js";import"./VPicker-BnQneIY4.js";const Ua=function(o){return{mediaBoardControllerCollapseMediaAvailableLine:async(t,a,e={})=>{I("mediaBoardControllerCollapseMediaAvailableLine","boardId",t),I("mediaBoardControllerCollapseMediaAvailableLine","collapsableBodyParams",a);const l="/media-boards/{boardId}/media-available-line/collapse".replace("{boardId}",encodeURIComponent(String(t))),n=new URL(l,$),i={method:"PATCH",...void 0,...e},c={},m={};await D(),c["Content-Type"]="application/json",R(n,m,e.query);let L={};return i.headers={...c,...L,...e.headers},i.data=N(a,i,o),{url:P(n),options:i}},mediaBoardControllerCreateLine:async(t,a={})=>{I("mediaBoardControllerCreateLine","boardId",t);const e="/media-boards/{boardId}/media-lines".replace("{boardId}",encodeURIComponent(String(t))),l=new URL(e,$),r={method:"POST",...void 0,...a},i={},c={};await D(),R(l,c,a.query);let m={};return r.headers={...i,...m,...a.headers},{url:P(l),options:r}},mediaBoardControllerGetMediaAvailableLine:async(t,a={})=>{I("mediaBoardControllerGetMediaAvailableLine","boardId",t);const e="/media-boards/{boardId}/media-available-line".replace("{boardId}",encodeURIComponent(String(t))),l=new URL(e,$),r={method:"GET",...void 0,...a},i={},c={};await D(),R(l,c,a.query);let m={};return r.headers={...i,...m,...a.headers},{url:P(l),options:r}},mediaBoardControllerGetMediaBoardForUser:async(t={})=>{const a="/media-boards/me",e=new URL(a,$),n={method:"GET",...void 0,...t},r={},i={};await D(),R(e,i,t.query);let c={};return n.headers={...r,...c,...t.headers},{url:P(e),options:n}},mediaBoardControllerSetMediaBoardLayout:async(t,a,e={})=>{I("mediaBoardControllerSetMediaBoardLayout","boardId",t),I("mediaBoardControllerSetMediaBoardLayout","layoutBodyParams",a);const l="/media-boards/{boardId}/layout".replace("{boardId}",encodeURIComponent(String(t))),n=new URL(l,$),i={method:"PATCH",...void 0,...e},c={},m={};await D(),c["Content-Type"]="application/json",R(n,m,e.query);let L={};return i.headers={...c,...L,...e.headers},i.data=N(a,i,o),{url:P(n),options:i}},mediaBoardControllerUpdateMediaAvailableLineColor:async(t,a,e={})=>{I("mediaBoardControllerUpdateMediaAvailableLineColor","boardId",t),I("mediaBoardControllerUpdateMediaAvailableLineColor","colorBodyParams",a);const l="/media-boards/{boardId}/media-available-line/color".replace("{boardId}",encodeURIComponent(String(t))),n=new URL(l,$),i={method:"PATCH",...void 0,...e},c={},m={};await D(),c["Content-Type"]="application/json",R(n,m,e.query);let L={};return i.headers={...c,...L,...e.headers},i.data=N(a,i,o),{url:P(n),options:i}}}},Va=function(o){const t=Ua(o);return{async mediaBoardControllerCollapseMediaAvailableLine(a,e,l){const n=await t.mediaBoardControllerCollapseMediaAvailableLine(a,e,l);return T(n,S,k)},async mediaBoardControllerCreateLine(a,e){const l=await t.mediaBoardControllerCreateLine(a,e);return T(l,S,k)},async mediaBoardControllerGetMediaAvailableLine(a,e){const l=await t.mediaBoardControllerGetMediaAvailableLine(a,e);return T(l,S,k)},async mediaBoardControllerGetMediaBoardForUser(a){const e=await t.mediaBoardControllerGetMediaBoardForUser(a);return T(e,S,k)},async mediaBoardControllerSetMediaBoardLayout(a,e,l){const n=await t.mediaBoardControllerSetMediaBoardLayout(a,e,l);return T(n,S,k)},async mediaBoardControllerUpdateMediaAvailableLineColor(a,e,l){const n=await t.mediaBoardControllerUpdateMediaAvailableLineColor(a,e,l);return T(n,S,k)}}},_a=function(o,t,a){const e=Va(o);return{mediaBoardControllerCollapseMediaAvailableLine(l,n,r){return e.mediaBoardControllerCollapseMediaAvailableLine(l,n,r).then(i=>i(a,t))},mediaBoardControllerCreateLine(l,n){return e.mediaBoardControllerCreateLine(l,n).then(r=>r(a,t))},mediaBoardControllerGetMediaAvailableLine(l,n){return e.mediaBoardControllerGetMediaAvailableLine(l,n).then(r=>r(a,t))},mediaBoardControllerGetMediaBoardForUser(l){return e.mediaBoardControllerGetMediaBoardForUser(l).then(n=>n(a,t))},mediaBoardControllerSetMediaBoardLayout(l,n,r){return e.mediaBoardControllerSetMediaBoardLayout(l,n,r).then(i=>i(a,t))},mediaBoardControllerUpdateMediaAvailableLineColor(l,n,r){return e.mediaBoardControllerUpdateMediaAvailableLineColor(l,n,r).then(i=>i(a,t))}}},Ta=function(o){return{mediaElementControllerCreateElement:async(t,a={})=>{I("mediaElementControllerCreateElement","createMediaElementBodyParams",t);
1const e="/media-elements",l=new URL(e,$),r={method:"POST",...void 0,...a},i={},c={};await D(),i["Content-Type"]="application/json",R(l,c,a.query);let m={};return r.headers={...i,...m,...a.headers},r.data=N(t,r,o),{url:P(l),options:r}},mediaElementControllerDeleteElement:async(t,a={})=>{I("mediaElementControllerDeleteElement","elementId",t);const e="/media-elements/{elementId}".replace("{elementId}",encodeURIComponent(String(t))),l=new URL(e,$),r={method:"DELETE",...void 0,...a},i={},c={};await D(),R(l,c,a.query);let m={};return r.headers={...i,...m,...a.headers},{url:P(l),options:r}},mediaElementControllerMoveElement:async(t,a,e={})=>{I("mediaElementControllerMoveElement","elementId",t),I("mediaElementControllerMoveElement","moveElementBodyParams",a);const l="/media-elements/{elementId}/position".replace("{elementId}",encodeURIComponent(String(t))),n=new URL(l,$),i={method:"PUT",...void 0,...e},c={},m={};await D(),c["Content-Type"]="application/json",R(n,m,e.query);let L={};return i.headers={...c,...L,...e.headers},i.data=N(a,i,o),{url:P(n),options:i}}}},ka=function(o){const t=Ta(o);return{async mediaElementControllerCreateElement(a,e){const l=await t.mediaElementControllerCreateElement(a,e);return T(l,S,k)},async mediaElementControllerDeleteElement(a,e){const l=await t.mediaElementControllerDeleteElement(a,e);return T(l,S,k)},async mediaElementControllerMoveElement(a,e,l){const n=await t.mediaElementControllerMoveElement(a,e,l);return T(n,S,k)}}},Sa=function(o,t,a){const e=ka(o);return{mediaElementControllerCreateElement(l,n){return e.mediaElementControllerCreateElement(l,n).then(r=>r(a,t))},mediaElementControllerDeleteElement(l,n){return e.mediaElementControllerDeleteElement(l,n).then(r=>r(a,t))},mediaElementControllerMoveElement(l,n,r){return e.mediaElementControllerMoveElement(l,n,r).then(i=>i(a,t))}}},$a=function(o){return{mediaLineControllerCollapseMediaLine:async(t,a,e={})=>{I("mediaLineControllerCollapseMediaLine","lineId",t),I("mediaLineControllerCollapseMediaLine","collapsableBodyParams",a);const l="/media-lines/{lineId}/collapse".replace("{lineId}",encodeURIComponent(String(t))),n=new URL(l,$),i={method:"PATCH",...void 0,...e},c={},m={};await D(),c["Content-Type"]="application/json",R(n,m,e.query);let L={};return i.headers={...c,...L,...e.headers},i.data=N(a,i,o),{url:P(n),options:i}},mediaLineControllerDeleteLine:async(t,a={})=>{I("mediaLineControllerDeleteLine","lineId",t);const e="/media-lines/{lineId}".replace("{lineId}",encodeURIComponent(String(t))),l=new URL(e,$),r={method:"DELETE",...void 0,...a},i={},c={};await D(),R(l,c,a.query);let m={};return r.headers={...i,...m,...a.headers},{url:P(l),options:r}},mediaLineControllerMoveLine:async(t,a,e={})=>{I("mediaLineControllerMoveLine","lineId",t),I("mediaLineControllerMoveLine","moveColumnBodyParams",a);const l="/media-lines/{lineId}/position".replace("{lineId}",encodeURIComponent(String(t))),n=new URL(l,$),i={method:"PUT",...void 0,...e},c={},m={};await D(),c["Content-Type"]="application/json",R(n,m,e.query);let L={};return i.headers={...c,...L,...e.headers},i.data=N(a,i,o),{url:P(n),options:i}}
1,mediaLineControllerUpdateBackgroundColor:async(t,a,e={})=>{I("mediaLineControllerUpdateBackgroundColor","lineId",t),I("mediaLineControllerUpdateBackgroundColor","colorBodyParams",a);const l="/media-lines/{lineId}/color".replace("{lineId}",encodeURIComponent(String(t))),n=new URL(l,$),i={method:"PATCH",...void 0,...e},c={},m={};await D(),c["Content-Type"]="application/json",R(n,m,e.query);let L={};return i.headers={...c,...L,...e.headers},i.data=N(a,i,o),{url:P(n),options:i}},mediaLineControllerUpdateLineTitle:async(t,a,e={})=>{I("mediaLineControllerUpdateLineTitle","lineId",t),I("mediaLineControllerUpdateLineTitle","renameBodyParams",a);const l="/media-lines/{lineId}/title".replace("{lineId}",encodeURIComponent(String(t))),n=new URL(l,$),i={method:"PATCH",...void 0,...e},c={},m={};await D(),c["Content-Type"]="application/json",R(n,m,e.query);let L={};return i.headers={...c,...L,...e.headers},i.data=N(a,i,o),{url:P(n),options:i}}}},Da=function(o){const t=$a(o);return{async mediaLineControllerCollapseMediaLine(a,e,l){const n=await t.mediaLineControllerCollapseMediaLine(a,e,l);return T(n,S,k)},async mediaLineControllerDeleteLine(a,e){const l=await t.mediaLineControllerDeleteLine(a,e);return T(l,S,k)},async mediaLineControllerMoveLine(a,e,l){const n=await t.mediaLineControllerMoveLine(a,e,l);return T(n,S,k)}
1,async mediaLineControllerUpdateBackgroundColor(a,e,l){const n=await t.mediaLineControllerUpdateBackgroundColor(a,e,l);return T(n,S,k)},async mediaLineControllerUpdateLineTitle(a,e,l){const n=await t.mediaLineControllerUpdateLineTitle(a,e,l);return T(n,S,k)}}},Ra=function(o,t,a){const e=Da(o);return{mediaLineControllerCollapseMediaLine(l,n,r){return e.mediaLineControllerCollapseMediaLine(l,n,r).then(i=>i(a,t))},mediaLineControllerDeleteLine(l,n){return e.mediaLineControllerDeleteLine(l,n).then(r=>r(a,t))},mediaLineControllerMoveLine(l,n,r){return e.mediaLineControllerMoveLine(l,n,r).then(i=>i(a,t))},mediaLineControllerUpdateBackgroundColor(l,n,r){return e.mediaLineControllerUpdateBackgroundColor(l,n,r).then(i=>i(a,t))},mediaLineControllerUpdateLineTitle(l,n,r){return e.mediaLineControllerUpdateLineTitle(l,n,r).then(i=>i(a,t))}}},Pa={},Fa={width:"200",height:"273",viewBox:"0 0 200 273",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true"};function qa(o,t){return b(),Z("svg",Fa,[...t[0]||(t[0]=[Qe('<path fill-rule="evenodd" clip-rule="evenodd" d="M104.329 239C159.448 239 199.605 248.551 199.605 255.84C199.605 263.13 154.922 273 99.8025 273C44.6831 273 0 263.13 0 255.84C0 248.551 49.2093 239 104.329 239Z" fill="#ECEEF0"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M96.7945 9.49379L97.356 9.06819L97.8437 8.7121C99.6573 7.4148 100.828 6.89616 101.357 7.15617C102.016 7.48074 101.571 8.63542 100.02 10.6202C102.637 10.2677 104.605 10.3951 105.923 11.0014C108.425 12.1528 108.022 14.0876 105.266 14.2168C123.208 15.2779 129.21 43.4952 130.184 49.6306C130.245 50.0307 129.971 50.4049 129.571 50.4663C129.503 50.4767 129.434 50.4775 129.366 50.4688L127.314 50.2051L127.342 50.3131L127.478 50.753L127.827 51.8092L128.074 52.5895C129.102 55.8957 130.548 61.3077 130.966 64.6891C131.449 68.605 130.058 66.3641 129.366 66.4618C129.285 66.4732 130.493 70.8697 132.322 77H59.0505C60.6284 71.9805 63.7042 60.9193 63.7042 60.9193L61.6255 62.9259C59.9818 64.4869 59.4539 62.953 59.6066 60.9193L59.7886 59.1262C60.6164 51.3435 64.6526 18.3605 79.5102 14.1834C82.4968 13.551 84.6781 12.7193 86.0544 11.6884C88.2787 10.0223 79.0268 8.82002 78.9305 8.82002C78.8433 6.06305 92.5163 5.1889 96.7945 9.49379Z" fill="rgba(var(--v-theme-primary))"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M81.3012 214.718L77.7342 244.336L90.4749 245.768C91.3047 245.785 91.9764 246.447 92.0054 247.277L74.6354 248.043L41.664 252.063C41.664 252.063 41.3192 250.819 41.4508 250.423C41.4787 250.341 42.531 249.887 43.7519 249.751C44.9728 249.615 67.8639 246.304 67.8639 246.304L40.0012 247.277C40.0012 247.277 40.0914 245.785 40.8107 245.222C41.7542 244.484 64.7826 244.336 64.7826 244.336L45.0382 243.176C45.0382 243.176 45.1095 242.027 45.6234 241.723C48.0563 240.279 73.557 243.176 73.557 243.176L77.7342 214.42L81.3012 214.718ZM120.985 214.718L125.59 243.723L112.223 245.607C111.393 245.625 110.721 246.286 110.692 247.117H127.027L149.534 252.985C149.534 252.985 150.35 252.293 150.22 251.548C150.092 250.811 149.57 250.644 149.465 250.61L149.462 250.609L149.483 250.607L133.898 247.424L156.353 250.767C156.353 250.767 156.263 249.275 155.543 248.712C154.6 247.974 135.101 245.633 135.101 245.633L152.403 245.966C152.403 245.966 152.332 244.817 151.818 244.514C149.385 243.07 128.53 243.176 128.53 243.176L124.552 214.42L120.985 214.718Z" fill="#E98404"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M42.9967 223.779L42.8986 224.516C43.6504 227.189 44.5311 230.303 45.681 232.953C47.8924 238.051 50.9812 242.539 51.8838 243.806L52.1409 244.161C50.1053 249.591 45.5421 250.891 44.0612 249.149C42.1896 255.005 39.9562 254.008 37.933 253.633C37.8402 254.106 36.7188 262.987 35.0273 263.825C20.8956 270.829 3.332 153.141 48.7227 95.0682C54.2646 87.9779 50.3225 167.051 43.2131 222.118L42.9967 223.779Z" fill="rgba(var(--v-theme-primary))"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M42.9967 223.779L42.8986 224.516C43.6504 227.189 44.5311 230.303 45.681 232.953C47.8924 238.051 50.9812 242.539 51.8838 243.806L52.1409 244.161C50.1053 249.591 45.5421 250.891 44.0612 249.149C42.1896 255.005 39.9562 254.008 37.933 253.633C37.8402 254.106 36.7188 262.987 35.0273 263.825C20.8956 270.829 3.332 153.141 48.7227 95.0682C54.2646 87.9779 50.3225 167.051 43.2131 222.118L42.9967 223.779Z" fill="black" fill-opacity="0.2"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M28.2374 191.109C25.1468 193.385 22.3008 203.118 23.2197 208.666C24.1386 214.215 28.0103 217.62 31.2473 213.63C34.4845 209.639 36.3637 201.906 35.4447 196.358C34.5257 190.809 31.328 188.832 28.2374 191.109ZM32.0414 161.54C32.8698 152.798 29.9624 146.286 25.5473 146.996C21.1325 147.706 16.8814 155.369 16.053 164.112C15.2245 172.854 18.1318 179.366 22.5471 178.656C26.9619 177.946 31.2127 170.283 32.0414 161.54ZM48.7979 133.394C49.3808 127.242 47.3349 122.66 44.2281 123.16C41.1215 123.659 38.1301 129.052 37.5472 135.204C36.9642 141.356 39.01 145.938 42.1169 145.438C45.2235 144.939 48.2147 139.546 48.7979 133.394Z" fill="black" fill-opacity="0.1"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M148.562 223.779L148.66 224.516C147.908 227.189 147.027 230.303 145.877 232.953C143.666 238.051 140.577 242.539 139.674 243.8
106L139.417 244.161C141.453 249.591 146.016 250.891 147.497 249.149C149.369 255.005 151.602 254.008 153.625 253.633C153.718 254.106 154.839 262.987 156.531 263.825C170.663 270.829 188.226 153.141 142.836 95.0682C137.294 87.9779 141.236 167.051 148.345 222.118L148.562 223.779Z" fill="rgba(var(--v-theme-primary))"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M148.562 223.779L148.66 224.516C147.908 227.189 147.027 230.303 145.877 232.953C143.666 238.051 140.577 242.539 139.674 243.806L139.417 244.161C141.453 249.591 146.016 250.891 147.497 249.149C149.369 255.005 151.602 254.008 153.625 253.633C153.718 254.106 154.839 262.987 156.531 263.825C170.663 270.829 188.226 153.141 142.836 95.0682C137.294 87.9779 141.236 167.051 148.345 222.118L148.562 223.779Z" fill="black" fill-opacity="0.2"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M163.321 191.109C166.411 193.385 169.257 203.118 168.338 208.666C167.42 214.215 163.548 217.62 160.311 213.63C157.074 209.639 155.195 201.906 156.113 196.358C157.033 190.809 160.23 188.832 163.321 191.109ZM159.517 161.54C158.688 152.798 161.596 146.286 166.011 146.996C170.426 147.706 174.677 155.369 175.505 164.112C176.334 172.854 173.426 179.366 169.011 178.656C164.596 177.946 160.346 170.283 159.517 161.54ZM142.76 133.394C142.177 127.242 144.223 122.66 147.33 123.16C150.437 123.659 153.428 129.052 154.011 135.204C154.594 141.356 152.548 145.938 149.441 145.438C146.335 144.939 143.344 139.546 142.76 133.394Z" fill="black" fill-opacity="0.1"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M71.365 38.1057C71.5367 35.4093 73.9018 29.0291 79.4024 29.7923C84.903 30.5556 86.6715 35.4269 86.4998 38.1237C86.3281 40.8205 82.0114 45.839 79.1195 45.2045C76.2272 44.57 71.1929 40.8025 71.365 38.1057ZM118.854 38.1057C118.682 35.4093 116.317 29.0291 110.816 29.7923C105.316 30.5556 103.547 35.4269 103.719 38.1237C103.891 40.8205 108.207 45.839 111.099 45.2045C113.992 44.57 119.026 40.8025 118.854 38.1057Z" fill="white"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M80.0162 42.7446C77.3405 42.838 75.0901 40.5632 74.9888 37.6635C74.8876 34.7639 76.9738 32.3376 79.6495 32.2442C82.3247 32.1508 84.5751 34.4256 84.6763 37.3252C84.7776 40.2249 82.6914 42.6512 80.0162 42.7446ZM109.862 42.4781C112.398 42.5666 114.531 40.4107 114.627 37.6625C114.723 34.9144 112.745 32.6149 110.209 32.5264C107.674 32.4378 105.541 34.5938 105.445 37.3419C105.349 40.0901 107.327 42.3895 109.862 42.4781Z" fill="#9E292B"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M106.639 49.1632C99.1407 47.1099 93.9001 65.0838 93.9001 65.0838C93.9001 65.0838 85.9255 51.9675 83.4814 49.1632C83.4814 49.1632 92.9558 41.662 99.1407 41.5006C100.067 41.4764 106.639 49.1632 106.639 49.1632Z" fill="#AF6303"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M93.3325 33.4308C97.0642 33.4308 98.2926 33.827 99.544 38.1514C100.523 41.5353 105.998 45.8663 106.614 49.0397C106.827 50.1353 101.099 41.9556 97.801 47.2686C94.3114 52.8907 94.0694 66.748 94.0694 66.748C94.0694 66.748 87.6624 55.8297 86.511 48.9134C86.0409 46.089 83.2308 50.6117 83.0515 48.9134C82.7921 46.4562 88.7272 33.4308 93.3325 33.4308Z" fill="#F7A600"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M80.5795 22.0296C79.1898 21.834 79.041 21.447 80.1333 20.8684C82.3376 19.7008 85.226 22.6104 85.9313 23.8493C85.9833 23.9407 86.0117 24.024 86.0164 24.0982L86.0253 24.1224C86.385 25.1668 83.8813 26.2761 80.5195 27.4337C80.2887 27.5131 80.0512 27.5954 79.8089 27.6792C76.5226 28.817 72.3572 30.2591 72.0223 29.2865C71.6627 28.2421 76.8382 23.3135 80.2001 22.1559L80.5795 22.0296ZM107.583 22.0368C108.4 21.6294 108.452 21.2503 107.739 20.8995C106.214 20.1491 103.583 21.5376 103.094 22.8694C103.055 22.9762 103.035 23.0688 103.035 23.1466L103.019 23.2451C102.93 24.3146 105.488 25.7737 108.856 26.5513L109.135 26.6165C110.324 26.8975 111.665 27.3552 112.907 27.7795C115.139 28.5416 117.054 29.1956 117.209 28.5229C117.42 27.6115 113.846 24.2481 111.258 23.1444C111.73 22.9022 111.962 22.678 111.956 22.4717C111.941 21.9855 109.246 21.7076 107.583 22.0368Z" fill="#9E292B"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M84.6763 37.3252C84.7776 40.2249 82.6914 42.6512 80.0162 42.7446C77.3405 42.838 75.0901 40.5632 74.9888 37.6635C74.8876 34.7639 76.9738 32.3376 79.6495 32.2442C82.3247 32.1507 84.5751 34.4256 84.6763 37.3252ZM110.209 32.5264C112.745 32.6149 114.723 34.9144 114.627 37.6625C114.531 40.4107 112.398 42.5666 109.862 42.4781C107.327 42.3895 105.349 40.0901 105.445 37.3419C105.541 34.5938 107.674 32.4378 110.209 32.5264ZM85.9313 23.8493C85.966 23.9102 85.9902 23.9676 86.0038 24.021L86.0164 24.0982L86.0253 24.1224C86.2451 24.7607 85.3956 25.4231 83.9343 26.106L83.521 26.2928L83.0794 26.4806L82.6116 26.6693L82.1196 26.859L81.6056 27.0496L80.5195 27.4337L78.6252 28.0873L77.6389 28.4201L76.9023 28.6606L76.1797 28.8867L75.711 29.0265L75.2562 29.1555L74.8184 29.2718L74.4008 29.3738L74.0063 29.4596C72.9243 29.6782 72.1582 29.681 72.0223 29.2865C71.9416 29.052 72.1398 28.6218 72.5338 28.0825L72.7677 27.778C72.8938 27.6208 73.0334 27.4567 73.1847 27.2875L73.5025 26.9425L73.8487 26.5869C73.9085 26.5269 73.9695 26.4666 74.0314 26.406L74.4145 26.0401L74.8184 25.6713L75.2401 25.3027C75.455 25.119 75.6754 24.9366 75.8997 24.7571L76.353 24.4027L76.8136 24.0595C76.8908 24.0034 76.9682 23.9479 77.0457 23.8931L77.5117 23.5724C78.3669 23.001 79.2214 22.5251 79.992 22.2314L80.2001 22.1559L80.5795 22.0296L80.2808 21.9811C79.1742 21.7733 79.1251 21.4024 80.1333 20.8684C81.8967 19.9343 84.098 21.6097 85.2691 22.9515L85.4762 23.1984L85.6571 23.4333C85.6849 23.4711 85.7116 23.5083 85.737 23.5448L85.8744 23.7533C85.8947 23.7863 85.9137 23.8183 85.9313 23.8493ZM107.739 20.8995C108.452 21.2503 108.4 21.6294 107.583 22.0368C108.214 21.9119 108.993 21.8744 109.718 21.9024L110.107 21.9241L110.478 21.958C111.317 22.0508 111.949 22.237 111.956 22.4717C111.962 22.678 111.73 22.9022 111.258 23.1444C113.846 24.2481 117.42 27.6115 117.209 28.5229C117.129 28.8719 116.574 28.8638 115.748 28.6687L115.403 28.581L115.032 28.4759L114.638 28.3557L113.791 28.0796L111.706 27.3733C110.832 27.0832 109.948 26.8086 109.135 26.6165L108.856 26.5513C105.488 25.7737 102.93 24.3146 103.019 23.2451L103.035 23.1466C103.035 23.0688 103.055 22.9762 103.094 22.8694C103.583 21.5376 106.214 20.1491 107.739 20.8995Z" fill="black" fill-opacity="0.8"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M87.6206 108.951C88.9137 105.589 91.1897 102.3 92.2585 102.578C93.3274 102.857 92.537 105.427 92.2585 106.496L91.8887 107.929C88.0198 123.075 86.5846 133.594 87.5356 139.304L87.6206 139.774C88.4413 143.953 90.4204 144.637 95.0448 142.059L95.5598 141.765C95.5598 141.765 99.2214 139.034 99.6648 139.367C100.108 139.7 98.5084 143.978 98.5084 143.978C94.3707 160.477 92.6502 171.869 93.3159 177.976L93.3727 178.454C93.9226 182.707 95.2844 183.248 99.1852 180.632
1L99.6209 180.334C99.6209 180.334 102.487 177.815 102.909 178.045C103.331 178.276 102.762 182.049 102.762 182.049C102.495 189.33 103.12 194.182 104.473 196.436C105.421 198.014 107.396 199.534 110.04 197.811C110.965 197.208 112.596 196.536 113.199 197.461C113.802 198.387 112.443 199.14 111.518 199.743C107.159 202.582 103.317 202.28 101.044 198.495C99.5277 195.97 98.7776 191.886 98.7062 186.154L98.7009 185.416L98.5623 185.474C92.2585 190.131 88.7368 184.832 87.9477 178.454C87.1585 172.077 89.9855 162.73 93.1872 148.961L93.6479 147.004L93.4971 147.051C88.3347 148.585 84.7456 146.274 83.6422 140.26L83.5899 139.962C82.4888 133.35 82.5034 122.257 87.6206 108.951Z" fill="black" fill-opacity="0.1"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M49.7444 103.047C53.0439 94.0597 56.6097 84.347 59.3475 76.1776H132.058L159.43 166.717C169.05 192.126 144.739 219.837 123.487 226.815C115.563 230.179 106.699 232.06 97.3431 232.06C85.1687 232.06 73.8274 228.874 64.3069 223.384C53.3044 219.531 45.4983 209.801 41.0256 198.538C38.009 192.081 36.3431 184.995 36.3431 177.56C36.3431 175.587 36.4605 173.638 36.6894 171.719C36.8065 170.002 37.0066 168.33 37.2903 166.717L41.0021 152.65C40.0547 153.788 39.3333 154.192 38.8377 153.861C37.1801 152.755 41.9648 135.232 46.0486 130.005L46.5709 129.361C46.8993 128.952 47.1179 128.66 47.2437 128.464L47.3247 128.143C47.1645 128.153 46.64 128.522 45.9406 129.014C44.2682 130.189 41.5959 132.068 40.5147 131.432C39.5353 130.856 44.274 117.948 49.7444 103.047L49.7444 103.047Z" fill="rgba(var(--v-theme-primary))"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M88.6992 105.45C89.9923 102.088 92.2683 98.7985 93.3371 99.077C94.406 99.3554 93.6156 101.926 93.3371 102.995L92.9673 104.428C89.0984 119.574 87.6632 130.093 88.6142 135.803L88.6992 136.273C89.5199 140.452 91.499 141.135 96.1234 138.558L96.6384 138.264C96.6384 138.264 100.3 135.533 100.743 135.866C101.187 136.199 99.587 140.477 99.587 140.477C95.4493 156.976 93.7288 168.368 94.3945 174.474L94.4513 174.953C95.0012 179.206 96.363 179.747 100.264 177.131L100.699 176.833C100.699 176.833 103.566 174.314 103.987 174.544C104.409 174.775 103.841 178.548 103.841 178.548C103.574 185.829 104.199 190.681 105.552 192.934C106.499 194.513 108.474 196.032 111.118 194.31C112.044 193.707 113.674 193.035 114.277 193.96C114.88 194.886 113.522 195.639 112.596 196.241C108.238 199.081 104.396 198.779 102.123 194.994C100.606 192.469 99.8562 188.385 99.7848 182.653L99.7795 181.915L99.6409 181.973C93.3371 186.63 89.8154 181.33 89.0263 174.953C88.2371 168.576 91.0641 159.229 94.2658 145.46L94.7265 143.503L94.5757 143.55C89.4133 145.084 85.8242 142.773 84.7208 136.759L84.6685 136.46C83.5674 129.849 83.582 118.755 88.6992 105.45Z" fill="black" fill-opacity="0.1"></path>',18)])])}const Ha=le(Pa,[["render",qa]]),ja=()=>{const o=_a(void 0,"/v3",ue),t=Ra(void 0,"/v3",ue),a=Sa(void 0,"/v3",ue);return{getMediaBoardForUser:async()=>(await o.mediaBoardControllerGetMediaBoardForUser()).data,updateBoardLayout:async(p,C)=>{await o.mediaBoardControllerSetMediaBoardLayout(p,{layout:C})},getAvailableMedia:async p=>(await o.mediaBoardControllerGetMediaAvailableLine(p)).data,createLine:async p=>(await o.mediaBoardControllerCreateLine(p)).data,moveLine:async(p,C,y)=>{await t.mediaLineControllerMoveLine(p,{toBoardId:C,toPosition:y})},updateLineTitle:async(p,C)=>{await t.mediaLineControllerUpdateLineTitle(p,{title:C})},updateLineColor:async(p,C)=>
1{await t.mediaLineControllerUpdateBackgroundColor(p,{backgroundColor:C})},updateLineCollapsed:async(p,C)=>{await t.mediaLineControllerCollapseMediaLine(p,{collapsed:C})},updateAvailableLineColor:async(p,C)=>{await o.mediaBoardControllerUpdateMediaAvailableLineColor(p,{backgroundColor:C})},updateAvailableLineCollapsed:async(p,C)=>{await o.mediaBoardControllerCollapseMediaAvailableLine(p,{collapsed:C})},deleteLine:async p=>{await t.mediaLineControllerDeleteLine(p)},createElement:async(p,C,y)=>(await a.mediaElementControllerCreateElement({lineId:p,position:C,schoolExternalToolId:y})).data,moveElement:async(p,C,y)=>{await a.mediaElementControllerMoveElement(p,{toLineId:C,toPosition:y})},deleteElement:async p=>{await a.mediaElementControllerDeleteElement(p)}}},Za=()=>{const o=ja(),{handleAnyError:t,notifyWithTemplate:a}=Ke(),e=ee(),l=ee(),n=ee(!1),r=ee(!1),i=s=>e.value===void 0?-1:e.value.lines.findIndex(f=>f.id===s),c=s=>e.value===void 0?-1:e.value.lines.findIndex(f=>f.elements.find(V=>V.id===s)!==void 0),m=async()=>{n.value=!0;try{e.value=await o.getMediaBoardForUser()}catch(s){t(s,a("notLoaded","board"))}n.value=!1},L=async s=>{if(e.value!==void 0)try{e.value.layout=s,await o.updateBoardLayout(e.value.id,s)}catch(u){t(u,g("notUpdated","boardRow"))}},A=async()=>{if(e.value!==void 0){n.value=!0;try{const s=await o.getAvailableMedia(e.value.id);l.value=s}catch(s){t(s,g("notLoaded","board"))}n.value=!1}},O=async()=>{if(e.value!==void 0)try{r.value=!0;const s=await o.createLine(e.value.id);return e.value.lines.push(s),s}catch(s){t(s,g("notCreated","boardRow"))}finally{r.value=!1}},E=async s=>{if(e.value!==void 0)try{r.value=!0;const u=i(s);if(u<0)return;const f=Array.from(e.value.lines);f.splice(u,1),e.value.lines=f,await o.deleteLine(s),await A()}catch(u){t(u,g("notDeleted","boardRow"))}finally{r.value=!1}},B=async s=>{if(e.value!==void 0)try{const{lineId:u,newLineIndex:f,oldLineIndex:F}=s;
1if(f===F||f<0||f>e.value.lines.length-1)return;r.value=!0;const V=Array.from(e.value.lines),K=V.splice(F,1)[0];V.splice(f,0,K),e.value.lines=V,await o.moveLine(u,e.value.id,f)}catch(u){t(u,g("notUpdated","boardRow"))}finally{r.value=!1}},w=async(s,u)=>{if(e.value!==void 0)try{const f=i(s);if(f<0)return;e.value.lines[f].title=u,await o.updateLineTitle(s,u)}catch(f){t(f,g("notUpdated","boardRow"))}},q=async(s,u)=>{if(e.value!==void 0)try{const f=i(s);if(f<0)return;e.value.lines[f].backgroundColor=u,await o.updateLineColor(s,u)}catch(f){t(f,g("notUpdated","boardRow"))}},p=async s=>{if(!(e.value===void 0||l.value===void 0))try{l.value.backgroundColor=s,await o.updateAvailableLineColor(e.value.id,s)}catch(u){t(u,g("notUpdated","boardRow"))}},C=async(s,u)=>{if(e.value!==void 0)try{const f=i(s);if(f<0)return;e.value.lines[f].collapsed=u,await o.updateLineCollapsed(s,u)}catch(f){t(f,g("notUpdated","boardRow"))}},y=async s=>{if(!(e.value===void 0||l.value===void 0))try{l.value.collapsed=s,await o.updateAvailableLineCollapsed(e.value.id,s)}catch(u){t(u,g("notUpdated","boardRow"))}},M=async s=>{if(!(e.value===void 0||l.value===void 0))try{let{toLineId:u}=s;const{oldElementIndex:f,newElementIndex:F,schoolExternalToolId:V}=s;if(u===void 0){const Q=await O();if(!Q)throw new Error("New line could not be created");u=Q.id}if(r.value=!0,l.value){const Q=Array.from(l.value.elements);Q.splice(f,1),l.value.elements=Q}const K=await o.createElement(u,F,V),Y=i(u),X=Array.from(e.value.lines[Y].elements);return X.splice(F,0,K),e.value.lines[Y].elements=X,K}catch(u){t(u,g("notCreated","boardElement"))}finally{r.value=!1}},W=async s=>{if(e.value!==void 0)try{r.value=!0;const u=c(s);if(u<0)return;const f=e.value.lines[u].elements.findIndex(V=>V.id===s),F=Array.from(e.value.lines[u].elements);F.splice(f,1),e.value.lines[u].elements=F,await o.deleteElement(s),await A()}catch(u){t(u,g("notCreated","boardElement"))}finally{r.value=!1}},z=async s=>{if(e.value!==void 0)try{let{toLineId:u}=s;const{elementId:f,oldElementIndex:F,newElementIndex:V,fromLineId:K}=s;if(K===u&&F===V)return;if(u===void 0){const be=await O();if(!be)throw new Error("New line could not be created");u=be.id}r.value=!0;const Y=i(K),X=i(u);if(Y<0||X<0||V<0||V>e.value.lines[X].elements.length)return;await o.moveElement(f,u,V);const Q=Array.from(e.value.lines[Y].elements),ze=Q.splice(F,1)[0];e.value.lines[Y].elements=Q;const ye=Array.from(e.value.lines[X].elements);ye.splice(V,0,ze),e.value.lines[X].elements=ye}catch(u){t(u,g("notUpdated","boardElement"))}finally{r.value=!1}},g=(s,u)=>()=>{a(s,u)(),m()};return{mediaBoard:e,availableMediaLine:l,updateMediaBoardLayout:L,getLineIndex:i,getLineIndexOfElement:c,fetchMediaBoardForUser:m,fetchAvailableMedia:A,createLine:O,deleteLine:E,moveLine:B,updateLineTitle:w,updateLineBackgroundColor:q,updateLineCollapsed:C,updateAvailableLineBackgroundColor:p,updateAvailableLineCollapsed:y,createElement:M,deleteElement:W,moveElement:z,isLoading:n,isBoardOperationLoading:r}},fe=We(Za),He="available-media-line",Ga=100,Na="/_nuxt/default_img_media_shelf-CT1tOGHp.png",za={class:"bg-white rounded"},Qa={class:"position-relative"},Wa={key:0,class:"chip-position"},Ka={key:1,class:"three-dot-menu"},Xa={"data-testid":"media-element-title"},Ya={class:"description text-body-2","data-testid":"media-element-description"},Ja=j({__name:"MediaBoardElementDisplay",props:{element:{type:Object,default:void 0},isUnavailable:{type:Boolean,default:!1}},setup(o){const t=ee(null),a=Xe(t);return(e,l)=>(b(),Z("div",za,[v(ge,{ref_key:"card",ref:t,class:"pa-4",variant:"outlined",tabindex:"0","data-testid":"media-element-"+o.element?.title,elevation:d(a)?4:2,ripple:!1,hover:d(a)},{default:h(()=>[o.element?(b(),x(ge,{key:0,class:"element d-flex flex-column justify-end",elevation:"0",variant:"outlined",ripple:!1},{default:h(()=>[U("div",Qa,[U("div",{class:Ce({"opacity-60":o.isUnavailable})},[o.element.thumbnail?(b(),x(Me,{key:0,src:o.element.thumbnail,"aspect-ratio":16/9,width:"100%","data-testid":"media-element-thumbnail"},null,8,["src"])):(b(),x(Me,{key:1,"aspect-ratio":16/9,width:"100%",src:Na,"data-testid":"media-element-default-thumbnail"}))],2),e.$slots.imageOverlay?(b(),Z("div",Wa,[me(e.$slots,"imageOverlay",{}
1,void 0,!0)])):G("",!0),e.$slots.menu?(b(),Z("div",Ka,[me(e.$slots,"menu",{},void 0,!0)])):G("",!0)]),v(d(va),null,{title:h(()=>[U("div",Xa,H(o.element.title),1)]),subtitle:h(()=>[v(d(Ma),{"data-testid":"media-element-domain"},{default:h(()=>[ae(H(o.element.domain),1)]),_:1})]),description:h(()=>[U("div",Ya,H(o.element.description),1)]),_:1})]),_:3})):(b(),x(J,{key:1,class:"element border",type:"image, article"}))]),_:3},8,["data-testid","elevation","hover"])]))}}),he=le(Ja,[["__scopeId","data-v-f23a8d13"]]),je=o=>{const{t}=ne();ve(o,(a,e)=>{a&&a!==e&&re(t("error.generic"))})},et=j({__name:"MediaBoardAvailableElement",props:{element:{type:Object,required:!0}},setup(o){const t=o,{t:a}=ne(),{launchTool:e,fetchSchoolLaunchRequest:l,error:n}=De(),{mediaBoard:r}=fe();je(n);const i=_(()=>({title:t.element.name,domain:t.element.domain,description:t.element.description,thumbnail:t.element.thumbnailUrl||t.element.logoUrl})),c=async E=>{const B=r.value?.id;B&&await l(E.schoolExternalToolId,{contextId:B,contextType:Ye.MEDIA_BOARD})};ve(()=>t.element,async(E,B)=>{E&&E!==B&&await c(E)},{immediate:!0});const m=Ie().value.CTL_TOOLS_RELOAD_TIME_MS,L=setInterval(async()=>{await c(t.element)},m);Oe(()=>{clearInterval(L)});const{isDragging:A}=de(),O=async()=>{if(n.value){re(a("error.generic"));return}A.value||(e(),await c(t.element))};return(E,B)=>(b(),x(he,{element:i.value,onClick:O,onKeyup:Ae(O,["enter"])},null,8,["element"]))}}),at=j({__name:"MediaBoardLineMenu",props:xe({lineId:{type:String,required:!1,default:void 0}},{collapsed:{type:Boolean,default:!1},collapsedModifiers:{},color:{type:String,default:wa.TRANSPARENT},colorModifiers:{}}),emits:xe(["delete:line","rename-title"],["update:collapsed","update:color"]),setup(o){const t=Ee(o,"collapsed"),a=Ee(o,"color");return(e,l)=>(b(),Z(Ue,null,[Je(v(pe,{variant:"text",ripple:!1,icon:t.value?d(aa):d(ta),size:"small",style:{height:"36px",width:"36px"},"data-testid":"collapse-line-btn",onClick:l[0]||(l[0]=n=>t.value=!t.value)},null,8,["icon"]),[[ea,!0]]),v(d(xa),{"data-testid":"line-menu-btn"},{default:h(()=>[o.lineId?(b(),x(Be,{key:0,"prepend-icon":d(la),"data-testid":"action-update-line-title",onClick:l[1]||(l[1]=n=>e.$emit("rename-title",o.lineId))},{default:h(()=>[v(we,null,{default:h(()=>[U("span",null,H(e.$t("common.actions.rename")),1)]),_:1})]),_:1},8,["prepend-icon"])):G("",!0),v(d(Ba),{color:a.value,"onUpdate:color":l[2]||(l[2]=n=>a.value=n)},null,8,["color"]),o.lineId?(b(),x(Be,{key:1,"prepend-icon":d(Ve),"data-testid":"action-delete-line",onClick:l[3]||(l[3]=n=>e.$emit("delete:line",o.lineId))},{default:h(()=>[v(we,null,{default:h(()=>[U("span",null,H(e.$t("common.actions.delete")),1)]),_:1})]),_:1},8,["prepend-icon"])):G("",!0)]),_:1})],64))}}),Ze=le(at,[["__scopeId","data-v-42c2ab6b"]]),Ge=(o,t)=>({openItems:_({get(){return t.value?[]:[o]},set(e){t.value=!e.includes(o)}})});var ce=(o=>(o.Mobile="(max-width: 599px)",o.Tablet="(min-width: 600px) and (max-width: 1263px)",o.Desktop="(min-width: 1264px)",o))(ce||{});const tt=["data-line-id"],lt={class:"line-header rounded"},nt={class:"d-flex align-center py-2 px-4"},ot={class:"w-100 title"},rt=j({__name:"MediaBoardAvailableLine",props:{line:{type:Object,required:!0},layout:{type:String,required:!0}},emits:["create:element","update:line-background-color","update:line-collapsed"],setup(o,{emit:t}){const a=o,e=t,l=Le(ce.Desktop),n=_({get(){return a.line?.collapsed},set(E){e("update:line-collapsed",E)}}),{openItems:r}=Ge("availableLinePanel",n),{dragStart:i,dragEnd:c}=de(),m=_(()=>a.line.elements??[]),L=_(()=>a.layout===ie.LIST),A=_(()=>Re(a.line.backgroundColor)),O=async E=>{c();const{newIndex:B,oldIndex:w,to:q,from:p,item:C}=E,y=te(p,"lineId"),M=te(q,"lineId");if(y===M||B===void 0||w===void 0||w<0||w>m.value.length-1)return;const z=m.value[w];C?.parentNode?.removeChild(C);const g={toLineId:M,oldElementIndex:w,newElementIndex:B,schoolExternalToolId:z.schoolExternalToolId};e("create:element",g)};return(E,B)=>(b(),Z("div",{class:"line-drag-handle d-flex flex-column flex-shrink-1 rounded mb-4",style:_e({backgroundColor:A.value}),"data-line-id":d(He),"data-testid":"available-line"},[U("div",lt,[U("div",nt,[U("span",ot,H(E.$t("feature.media-shelf.availableLine.title")),1),v(Ze,{collapsed:n.value,"onUpdate:collapsed":B[0]||(B[0]=w=>n.value=w),color:o.line.backgroundColor,"onUpdate:color":B[1]||(B[
11]=w=>E.$emit("update:line-background-color",w))},null,8,["collapsed","color"])]),v(Te,{"aria-hidden":"true",class:"border-opacity-100",color:"black"})]),v(Pe,{modelValue:d(r),"onUpdate:modelValue":B[2]||(B[2]=w=>ke(r)?r.value=w:null)},{default:h(()=>[v(Fe,{value:"availableLinePanel",elevation:"0",class:"pa-0 bg-transparent"},{default:h(()=>[v(qe,{class:"no-inner-padding"},{default:h(()=>[v(d(se),{list:m.value,"item-key":"id",tag:"div",options:{group:"elements",direction:"horizontal",delay:200,delayOnTouchOnly:!0,ghostClass:"sortable-drag-ghost",easing:"cubic-bezier(1, 0, 0, 1)",chosenClass:d(l)?"":"sortable-chosen",dragoverBubble:!0,animation:250,scroll:!0,forceFallback:!0,bubbleScroll:!0,sort:!1},class:Ce(["d-flex flex-grid flex-shrink-1 py-4 px-6 ga-6 flex-1-1 scrollable-line",{"flex-wrap":!L.value}]),"data-testid":"available-media-line-space",onStart:d(i),onEnd:O},{item:h(({element:w})=>[(b(),x(et,{key:d(na)(),element:w},null,8,["element"]))]),_:1},8,["list","options","class","onStart"])]),_:1})]),_:1})]),_:1},8,["modelValue"])],12,tt))}}),it=le(rt,[["__scopeId","data-v-eba04d38"]]),Ne=j({__name:"MediaBoardExternalToolElementMenu",emits:["delete:element"],setup(o){return(t,a)=>(b(),x(d(La),{variant:"outlined",scope:d(fa).MEDIA_EXTERNAL_TOOL_ELEMENT,"has-background":"","data-testid":"deleted-element-menu-btn"},{default:h(()=>[v(d(Ia),{icon:d(Ve),"data-testid":"kebab-menu-action-delete",onClick:a[0]||(a[0]=e=>t.$emit("delete:element"))},{default:h(()=>[ae(H(t.$t("components.board.action.deleteFromSection")),1)]),_:1},8,["icon"])]),_:1},8,["scope"]))}}),dt={class:"d-flex ga-1 flex-column pa-3"},st=j({__name:"MediaBoardExternalToolDeletedElement",props:{element:{type:Object,required:!0}},emits:["delete:element"],setup(o,{emit:t}){const a=o,e=t,l=async()=>{e("delete:element",a.element.id)},n=_(()=>({title:a.element?.content.title,description:a.element?.content.description,thumbnail:void 0,domain:""}));return(r,i)=>(b(),x(he,{element:n.value,"is-unavailable":!0},{imageOverlay:h(()=>[U("div",dt,[v(d(oe),{"data-testid":"warning-chip-no-longer-available",class:"mr-1"},{default:h(()=>[ae(H(r.$t("common.medium.chip.noLongerAvailable")),1)]),_:1})])]),menu:h(()=>[v(Ne,{"onDelete:element":l})]),_:1},8,["element"]))}}),ct={class:"d-flex ga-1 flex-column pa-3"},ut=j({__name:"MediaBoardExternalToolElement",props:{element:{type:Object,required:!0}},emits:["delete:element"],setup(o,{emit:t}){const a=o,e=t,{t:l}=ne(),{fetchDisplayData:n,displayData:r,error:i}=ha(),{launchTool:c,fetchContextLaunchRequest:m,error:L}=De(),{determineMediaBoardElementStatusMessage:A,isOperational:O}=Ea();je(i);const E=_(()=>r.value?{title:r.value.name,domain:r.value.domain,description:r.value.description,thumbnail:r.value.thumbnailUrl||r.value.logoUrl}:void 0),B=async g=>{await n(g.content.contextExternalToolId),r.value&&O(r.value.status)&&await m(g.content.contextExternalToolId)};ve(()=>a.element,async(g,s)=>{g&&g!==s&&await B(g)},{immediate:!0});const w=_(()=>r.value?.status.isOutdatedOnScopeContext||r.value?.status.isOutdatedOnScopeSchool||r.value?.status.isIncompleteOnScopeContext),q=_(()=>r.value?.status.isDeactivated),p=_(()=>r.value?.status.isNotLicensed&&!r.value?.status.isDeactivated),C=Ie().value.CTL_TOOLS_RELOAD_TIME_MS,y=setInterval(async()=>{await B(a.element)},C);Oe(()=>{clearInterval(y)});
1const{isDragging:M}=de(),W=()=>{e("delete:element",a.element.id)},z=async()=>{if(!!L.value){re(l("error.load"));return}if(!r.value)return;if(!O(r.value.status)){oa(A(r.value.status));return}if(M.value)return;if(c(),!!L.value){re(l("error.generic"));return}await m(a.element.content.contextExternalToolId)};return(g,s)=>(b(),x(he,{element:E.value,onClick:z,onKeyup:Ae(z,["enter"])},{imageOverlay:h(()=>[U("div",ct,[q.value?(b(),x(d(oe),{key:0,"data-testid":"warning-chip-deactivated",class:"mr-1"},{default:h(()=>[ae(H(g.$t("common.medium.chip.deactivated")),1)]),_:1})):G("",!0),p.value?(b(),x(d(oe),{key:1,"data-testid":"warning-chip-not-licensed",class:"mr-1"},{default:h(()=>[ae(H(g.$t("common.medium.chip.notLicensed")),1)]),_:1})):G("",!0),w.value?(b(),x(d(oe),{key:2,"data-testid":"warning-chip-incomplete",class:"mr-1"},{default:h(()=>[ae(H(g.$t("common.medium.chip.incomplete")),1)]),_:1})):G("",!0)])]),menu:h(()=>[v(Ne,{"onDelete:element":W})]),_:1},8,["element"]))}}),mt={class:"d-flex align-center py-2 px-4"},pt=j({__name:"MediaBoardLineHeader",props:{lineId:{type:String,required:!0},title:{type:String,required:!0},titlePlaceholder:{type:String,required:!0}},emits:["move:line-left","move:line-right","update:title"],setup(o,{emit:t}){const e=$e(o,"lineId"),l=t,{isEditMode:n,startEditMode:r,stopEditMode:i}=Se(e.value),c=ee(null),{isFocusedById:m}=ra(e.value,c),L=()=>{r()},A=()=>{i()},O=E=>{l("update:title",E)};return(E,B)=>(b(),x(d(ya),{"is-edit-mode":d(n),onStartEditMode:L,onEndEditMode:A},{default:h(()=>[U("div",{ref_key:"lineHeader",ref:c,class:"line-header rounded",tabindex:"0"},[U("div",mt,[v(d(ba),{"data-testid":"media-line-title",value:o.title,scope:"column","is-edit-mode":d(n),placeholder:o.titlePlaceholder,class:"w-100","is-focused":d(m),"onUpdate:value":O},null,8,["value","is-edit-mode","placeholder","is-focused"]),me(E.$slots,"menu",{},void 0,!0)]),v(Te,{"aria-hidden":"true",class:"border-opacity-100",color:"black"})],512)]),_:3},8,["is-edit-mode"]))}}),Ct=le(pt,[["__scopeId","data-v-8566f7cc"]]),vt=j({__name:"MediaBoardLine",props:{line:{type:Object,required:!0},layout:{type:String,required:!0},index:{type:Number,required:!0}},emits:["update:line-title","update:line-background-color","update:line-collapsed","update:element-position","delete:line","delete:element"],setup(o,{emit:t}){const a=o,e=t,{t:l}=ne(),n=Le(ce.Desktop),r=_({get(){return a.line?.collapsed},set(C){e("update:line-collapsed",C)}}),{openItems:i}=Ge("linePanel",r),{dragStart:c,dragEnd:m}=de(),{startEditMode:L}=Se($e(a,"line").value.id),A=_(()=>`${l("feature.media-shelf.line.title").toString()} ${a.index+1}`),O=_(()=>a.layout===ie.LIST),E=_(()=>Re(a.line.backgroundColor)),B=()=>{L()},w=C=>{e("delete:element",C)},q=async C=>{m();const{newIndex:y,oldIndex:M,to:W,from:z,item:g}=C,s=te(z,"lineId"),u=te(W,"lineId"),f=te(g,"elementId");y===void 0||M===void 0||s===void 0||f===void 0||(u!==s&&g?.parentNode?.removeChild(g),u===He?e("delete:element",f):e("update:element-position",{elementId:f,oldElementIndex:M,newElementIndex:y,fromLineId:s,toLineId:u}))},p=C=>"type"in C?C.type===ia.DELETED:!1;return(C,y)=>(b(),Z("div",{class:"line-drag-handle d-flex flex-column flex-shrink-1 rounded",style:_e({backgroundColor:E.value})},[v(Ct,{title:o.line.title,"title-placeholder":A.value,"line-id":o.line.id,"data-testid":"media-board-line-header-"+o.index,"onUpdate:title":y[3]||(y[3]=M=>C.$emit("update:line-title",M))},{menu:h(()=>[v(Ze,{collapsed:r.value,"onUpdate:collapsed":y[0]||(y[0]=M=>r.value=M),"line-id":o.line.id,color:o.line.backgroundColor,"onDelete:line":y[1]||(y[1]=M=>C.$emit("delete:line",M)),"onUpdate:color":y[2]||(y[2]=M=>C.$emit("update:line-background-color",M)),onRenameTitle:B},null,8,["collapsed","line-id","color"])]),_:1},8,["title","title-placeholder","line-id","data-testid"]),v(Pe,{modelValue:d(i),"onUpdate:modelValue":y[4]||(y[4]=M=>ke(i)?i.value=M:null)},{default:h(()=>[v(Fe,{value:"linePanel",elevation:"0",class:"pa-0 bg-transparent"},{default:h(()=>[v(qe,{class:"no-inner-padding"},{default:h(()=>[v(d(se),{list:o.line.elements,"item-key":"id",tag:"div",options:{group:"elements",direction:"horizontal",delay:200,delayOnTouchOnly:!0,ghostClass:"sortable-drag-ghost",easing:"cubic-bezier(1, 0, 0, 1)",chosenClass:d(n)?"":"sortable-chosen",dragoverBubble:!0,animation:250,scroll:!0,forceFallback:!0,bubbleScroll:!0},class:Ce(["d-flex flex-grid flex-shrink-1 py-4 px-6 ga-6 flex-1-1 scrollable-line",{"flex-wrap":!O.value}
1]),"data-testid":"media-line-space-"+o.index,onStart:d(c),onEnd:q},{item:h(({element:M})=>[p(M)?(b(),x(st,{key:0,"data-element-id":M.id,element:M,"onDelete:element":w},null,8,["data-element-id","element"])):(b(),x(ut,{key:1,"data-element-id":M.id,element:M,"onDelete:element":w},null,8,["data-element-id","element"]))]),_:1},8,["list","options","data-testid","class","onStart"])]),_:1})]),_:1})]),_:1},8,["modelValue"])],4))}}),Lt={class:"mx-n4 px-4"},ft=j({__name:"MediaBoardLineGhost",emits:["create:line"],setup(o){return(t,a)=>(b(),Z("div",Lt,[v(d(ga),{"data-testid":"create-line-button","is-column-active":!1,label:t.$t("feature.media-shelf.createLine"),onAddColumn:a[0]||(a[0]=e=>t.$emit("create:line"))},null,8,["label"]),v(d(se),{list:[],"item-key":"id",tag:"div",options:{group:"elements",direction:"horizontal",delay:200,delayOnTouchOnly:!0,disabled:!1,ghostClass:"sortable-drag-ghost",easing:"cubic-bezier(1, 0, 0, 1)",dragoverBubble:!0,draggable:".draggable",animation:250,forceFallback:!0,bubbleScroll:!0},class:"d-flex flex-grid flex-shrink-1 pa-2 ga-6 flex-1-1","data-testid":"ghost-line-space"})]))}}),ht={class:"d-flex flex-column flex-shrink-1"},yt=j({__name:"MediaBoard",props:{board:{type:Object,required:!0},availableMediaLine:{type:Object,required:!0}},setup(o){const t=Le(ce.Desktop),{updateLineTitle:a,updateLineBackgroundColor:e,updateAvailableLineBackgroundColor:l,updateLineCollapsed:n,updateAvailableLineCollapsed:r,createLine:i,moveLine:c,moveElement:m,deleteLine:L,deleteElement:A,createElement:O}=fe(),{isInEditMode:E}=da(),B=async w=>{const{newIndex:q,oldIndex:p,item:C}=w,y=te(C,"lineId");y!==void 0&&q!==void 0&&p!==void 0&&await c({newLineIndex:q,oldLineIndex:p,lineId:y})};return(w,q)=>(b(),Z("div",ht,[U("div",null,[v(it,{line:o.availableMediaLine,layout:o.board.layout,"onCreate:element":d(O),"onUpdate:lineBackgroundColor":d(l),"onUpdate:lineCollapsed":d(r)},null,8,["line","layout","onCreate:element","onUpdate:lineBackgroundColor","onUpdate:lineCollapsed"]),v(d(se),{list:o.board.lines,"item-key":"id",tag:"div",options:{direction:"vertical",group:"lines",delay:200,delayOnTouchOnly:!0,disabled:d(E),ghostClass:"sortable-drag-ghost",chosenClass:d(t)?"":"sortable-chosen",easing:"cubic-bezier(1, 0, 0, 1)",dragoverBubble:!0,animation:250,scroll:!0,forceFallback:!0,bubbleScroll:!0},class:"d-flex flex-column flex-shrink-1 ga-4 mb-4",onEnd:B},{item:h(({element:p,index:C})=>[(b(),x(vt,{key:p.id,"data-testid":"media-board-line-"+C,"data-line-id":p.id,index:C,line:p,layout:o.board.layout,"onUpdate:lineBackgroundColor":y=>d(e)(p.id,y),"onUpdate:lineCollapsed":y=>d(n)(p.id,y),"onUpdate:lineTitle":y=>d(a)(p.id,y),"onUpdate:elementPosition":d(m),"onDelete:line":d(L),"onDelete:element":d(A)},null,8,["data-testid","data-line-id","index","line","layout","onUpdate:lineBackgroundColor","onUpdate:lineCollapsed","onUpdate:lineTitle","onUpdate:elementPosition","onDelete:line","onDelete:element"]))]),_:1},8,["list","options"]),o.board.lines.length<d(Ga)?(b(),x(ft,{key:0,"onCreate:line":d(i)},null,8,["onCreate:line"])):G("",!0)])]))}}),bt={class:"ml-1 d-flex"},gt={"aria-level":"1",class:"mt-0 me-auto","data-testid":"page-title"},Mt={class:"d-flex py-4 ga-6"},zt=j({__name:"MediaShelf.page",setup(o){const{t}=ne();sa(ca(t("feature.media-shelf.title")));const{mediaBoard:a,availableMediaLine:e,fetchMediaBoardForUser:l,fetchAvailableMedia:n,updateMediaBoardLayout:r,isLoading:i,isBoardOperationLoading:c}=fe(),m=_(()=>{const L=!a.value||a.value.lines.every(O=>O.elements.length===0),A=!e.value?.elements.length;return L&&A&&!i.value&&!c.value});return ua(async()=>{await l(),await n()}),(L,A)=>(b(),x(d(Aa),{ref:"main","max-width":"full"},{default:h(()=>[U("div",bt,[U("h1",gt,H(L.$t("feature.media-shelf.title")),1),d(a)&&!m.value?(b(),x(ma,{key:0,variant:"outlined",divided:"",rounded:"xl",density:"compact",mandatory:"","model-value":d(a).layout,"onUpdate:modelValue":d(r)},{default:h(()=>[v(pe,{icon:"$gridRowOutline",size:"x-small",width:"48px",value:d(ie).LIST,"aria-label":L.$t("feature.media-shelf.layout.list"),"data-testid":"media-board-layout-list"},null,8,["value","aria-label"]),v(pe,{icon:d(pa),size:"x-small",width:"48px",value:d(ie).GRI
1D,"aria-label":L.$t("feature.media-shelf.layout.grid"),"data-testid":"media-board-layout-grid"},null,8,["icon","value","aria-label"])]),_:1},8,["model-value","onUpdate:modelValue"])):G("",!0)]),d(i)&&(!d(a)||!d(e))?(b(),x(Ca,{key:0,class:"loader","data-testid":"skeleton-loader"},{default:h(()=>[v(J,{type:"list-item",width:"100%",height:"50px"}),U("div",Mt,[v(J,{type:"image, article",width:"20%",height:"5%"}),v(J,{type:"image, article",width:"20%",height:"5%"})]),v(J,{type:"list-item",width:"100%",height:"50px"}),v(J,{type:"image, article",width:"20%",height:"5%"})]),_:1})):m.value?(b(),x(d(Oa),{key:1,title:d(t)("feature.media-shelf.emptyState"),"data-testid":"empty-state"},{media:h(()=>[v(d(Ha))]),_:1},8,["title"])):(b(),Z(Ue,{key:2},[d(a)&&d(e)?(b(),x(d(yt),{key:0,board:d(a),"available-media-line":d(e)},null,8,["board","available-media-line"])):G("",!0)],64))]),_:1},512))}});export{zt as MediaShelfPage};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.