PageSourceSearch

https://kanisius.sch.id/assets/GeneralModal-bf7f0606.js

js kanisius.sch.id collected 2026-10-10 01:42:22 UTC 2,438 bytes, 1 lines download raw bytes

1import{_ as g,E as I,k as M,u as T,s as C,l as L,r as t,w as h,o as S,c as d,d as u,j as i,n as w,U as $,e as f}from"./index-b9dc2928.js";import{C as B,S as E,N}from"./carousel-25b91bcf.js";import{D}from"./default-940a17c9.js";const Y=I({components:{Carousel:B,Slide:E,Navigation:N},props:{openModal:{Boolean},modalType:{String},modalId:{String},modalTitle:{String},youtubeLink:{String},backClose:{Boolean}},setup(e,{emit:n}){const{t:k,locale:y}=M(),v=T(),p=C(),s=L({}),r=t(""),o=t(""),m=t(""),a=L({}),c=t(!1),b=l=>{l==o.value&&(a[l]==!1?a[l]=!0:(s[l]="",a[l]=!1,n("close-modal",a[l])))};return h(()=>{if(e.modalId?o.value=e.modalId:o.value="",e.modalType?s[o.value]=e.modalType:s[o.value]="",e.openModal?a[o.value]=e.openModal:a[o.value]=!1,e.modalTitle?r.value=e.modalTitle:r.value="",e.youtubeLink){let l=e.youtubeLink.replace("https://youtu.be/","https://www.youtube.com/embed/");m.value=l}else m.value="";e.backClose?c.value=e.backClose:c.value=!1}),S(()=>{document.addEventListener("keydown",function(l){l.key==="Escape"&&a[o.value]&&b(o.value)})}),{DefaultImage:D,t:k,locale:y,route:v,router:p,modalType:s,modalTitle:r,modalId:o,youtubeLink:m,openModal:a,backClose:c,clickModal:b}}}),G=["id"],R=f("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},[f("title",null,"close"),f("path",{d:"M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z"})],-1),V=[R],j=["src","title"];function z(e,n,k,y,v,p){return d(),u("div",{id:e.modalId,class:w(["general-modal-component",{"general-modal-component-open":e.openModal[e.modalId]}])},[e.openModal[e.modalId]?(d(),u("div",{key:0,class:"general-modal-close-button",onClick:n[0]||(n[0]=s=>e.clickModal(e.modalId))},V)):i("",!0),e.modalType[e.modalId]=="Youtube"?(d(),u("iframe",{key:1,class:w({"open-youtube":e.modalType[e.modalId]=="Youtube"&&e.openModal[e.modalId]}),src:e.youtubeLink?e.youtubeLink:"",title:e.modalTitle?e.modalTitle:"",frameborder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",referrerpolicy:"strict-origin-when-cross-origin",allowfullscreen:""},null,10,j)):i("",!0),e.modalType[e.modalId]!="Youtube"?$(e.$slots,"default",{key:2}):i("",!0),e.openModal[e.modalId]&&e.backClose?(d(),u("div",{key:3,class:"general-modal-close-outer",onClick:n[1]||(n[1]=s=>e.clickModal(e.modalId))})):i("",!0)],10,G)}const A=g(Y,[["render",z]]);export{A as G};

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.