-
Notifications
You must be signed in to change notification settings - Fork 0
/
LanguageShow.feb5fc7a.js
7 lines (7 loc) · 19.6 KB
/
LanguageShow.feb5fc7a.js
1
2
3
4
5
6
7
import{S as x,i as ee,s as te,a as E,c as k,b as T,m as v,g as re,d as Fe,t as c,e as d,f as I,h as B,j as ae,k as We,l as z,n as ze,o as be,p as Q,q as Ge,r as oe,u as fe,v as ue,w as ie,x as he,y as $e,z as Ke,A as Pe,B as Me,C as qe,D as _e,E as R,F as U,G as h,H as le,I as G,J as ne,K,L as M,M as q,N as X,O as J,P as Y,Q as Z,R as ke}from"./chunks/index.591d8817.js";import{B as Ve}from"./chunks/Banner.d0dbe81c.js";import{R as ce,f as me,u as Le,r as He,K as w,a as H,F as N,m as Ue,b as de}from"./chunks/common.3f93f87b.js";import{w as pe}from"./chunks/index.2a87ddeb.js";import Te from"./Datatable.9bd3a419.js";const Je=r=>r&4,Qe=r=>({}),Se=r=>({...r[2]});function Xe(r){let t;const n=r[12].default,e=oe(n,r,r[13],Se);return{c(){e&&e.c()},l(s){e&&e.l(s)},m(s,l){e&&e.m(s,l),t=!0},p(s,l){e&&e.p&&(!t||l&8196)&&fe(e,n,s,s[13],Je(l)||!t?ue(s[13]):ie(n,s[13],l,Qe),Se)},i(s){t||(c(e,s),t=!0)},o(s){d(e,s),t=!1},d(s){e&&e.d(s)}}}function Ye(r){let t,n;const e=[r[5],{as:r[0]},{slotProps:r[2]},{use:[...r[1],r[3]]},{name:"TabGroup"}];let s={$$slots:{default:[Xe]},$$scope:{ctx:r}};for(let l=0;l<e.length;l+=1)s=E(s,e[l]);return t=new ce({props:s}),{c(){k(t.$$.fragment)},l(l){T(t.$$.fragment,l)},m(l,o){v(t,l,o),n=!0},p(l,[o]){const a=o&47?re(e,[o&32&&Fe(l[5]),o&1&&{as:l[0]},o&4&&{slotProps:l[2]},o&10&&{use:[...l[1],l[3]]},e[4]]):{};o&8196&&(a.$$scope={dirty:o,ctx:l}),t.$set(a)},i(l){n||(c(t.$$.fragment,l),n=!0)},o(l){d(t.$$.fragment,l),n=!1},d(l){I(t,l)}}}const je="headlessui-tabs-context";function ge(r){let t=Ge(je);if(t===void 0)throw new Error(`<${r} /> is missing a parent <TabGroup /> component.`);return t}function Ze(r,t,n){let e;const s=["as","use","defaultIndex","vertical","manual"];let l=B(t,s),o,{$$slots:a={},$$scope:f}=t,{as:u="div"}=t,{use:_=[]}=t,{defaultIndex:$=0}=t,{vertical:S=!1}=t,{manual:p=!1}=t;const C=me(ae(),["change"]),A=We();let b=null,m=[],D=[],O=pe(null);z(r,O,i=>n(14,o=i));let j=pe({selectedIndex:b,orientation:S?"vertical":"horizontal",activation:p?"manual":"auto",tabs:m,panels:D,listRef:O,setSelectedIndex(i){b!==i&&(n(9,b=i),A("change",i))},registerTab(i){if(m.includes(i))return;if(!o){n(10,m=[...m,i]);return}let g=b!==null?m[b]:null,F=Array.from(o.querySelectorAll('[id^="headlessui-tabs-tab-"]')).reduce((L,W,P)=>Object.assign(L,{[W.id]:P}),{}),se=[...m,i];se.sort((L,W)=>F[L.id]-F[W.id]),n(10,m=se),n(9,b=(()=>g===null?null:m.indexOf(g))())},unregisterTab(i){n(10,m=m.filter(g=>g!==i))},registerPanel(i){D.includes(i)||n(11,D=[...D,i])},unregisterPanel(i){n(11,D=D.filter(g=>g!==i))}});return ze(je,j),be(()=>{if(m.length<=0||b!==null)return;let i=m.filter(Boolean),g=i.filter(F=>!F.hasAttribute("disabled"));if(!(g.length<=0))if($<0)n(9,b=i.indexOf(g[0]));else if($>i.length)n(9,b=i.indexOf(g[g.length-1]));else{let F=i.slice(0,$),L=[...i.slice($),...F].find(W=>g.includes(W));if(!L)return;n(9,b=i.indexOf(L))}}),r.$$set=i=>{t=E(E({},t),Q(i)),n(5,l=B(t,s)),"as"in i&&n(0,u=i.as),"use"in i&&n(1,_=i.use),"defaultIndex"in i&&n(6,$=i.defaultIndex),"vertical"in i&&n(7,S=i.vertical),"manual"in i&&n(8,p=i.manual),"$$scope"in i&&n(13,f=i.$$scope)},r.$$.update=()=>{r.$$.dirty&3968&&j.update(i=>({...i,selectedIndex:b,orientation:S?"vertical":"horizontal",activation:p?"manual":"auto",tabs:m,panels:D})),r.$$.dirty&512&&n(2,e={selectedIndex:b})},[u,_,e,C,O,l,$,S,p,b,m,D,a,f]}class xe extends x{constructor(t){super(),ee(this,t,Ze,Ye,te,{as:0,use:1,defaultIndex:6,vertical:7,manual:8})}}const et=r=>r&32,tt=r=>({}),De=r=>({...r[5]});function st(r){let t;const n=r[17].default,e=oe(n,r,r[19],De);return{c(){e&&e.c()},l(s){e&&e.l(s)},m(s,l){e&&e.m(s,l),t=!0},p(s,l){e&&e.p&&(!t||l&524320)&&fe(e,n,s,s[19],et(l)||!t?ue(s[19]):ie(n,s[19],l,tt),De)},i(s){t||(c(e,s),t=!0)},o(s){d(e,s),t=!1},d(s){e&&e.d(s)}}}function lt(r){let t,n,e;const s=[{...r[12],...r[3]},{as:r[0]},{slotProps:r[5]},{use:[...r[1],r[7]]},{name:"Tab"}];function l(a){r[18](a)}let o={$$slots:{default:[st]},$$scope:{ctx:r}};for(let a=0;a<s.length;a+=1)o=E(o,s[a]);return r[2]!==void 0&&(o.el=r[2]),t=new ce({props:o}),he.push(()=>$e(t,"el",l)),t.$on("keydown",r[9]),t.$on("click",r[11]),t.$on("focus",function(){Ke(r[4].activation==="manual"?r[10]:r[11])&&(r[4].activation==="manual"?r[10]:r[11]).apply(this,arguments)}),{c(){k(t.$$.fragment)},l(a){T(t.$$.fragment,a)},m(a,f){v(t,a,f),e=!0},p(a,[f]){r=a;const u=f&4267?re(s,[f&4104&&{...r[12],...r[3]},f&1&&{as:r[0]},f&32&&{slotProps:r[5]},f&130&&{use:[...r[1],r[7]]},s[4]]):{};f&524320&&(u.$$scope={dirty:f,ctx:r}),!n&&f&4&&(n=!0,u.el=r[2],Pe(()=>n=!1)),t.$set(u)},i(a){e||(c(t.$$.fragment,a),e=!0)},o(a){d(t.$$.fragment,a),e=!1},d(a){I(t,a)}}}function nt(r,t,n){let e,s,l,o,a;const f=["as","use","disabled"];let u=B(t,f),_,$,S=Me,p=()=>(S(),S=qe(l,P=>n(16,$=P)),l);r.$$.on_destroy.push(()=>S());let{$$slots:C={},$$scope:A}=t,{as:b="button"}=t,{use:m=[]}=t,{disabled:D=!1}=t;const O=me(ae());let j=ge("Tab");z(r,j,P=>n(4,_=P));let i=`headlessui-tabs-tab-${Le()}`,g=null;be(()=>(_.registerTab(g),()=>_.unregisterTab(g)));function F(P){let y=P,V=_.tabs.filter(Boolean);if(y.key===w.Space||y.key===w.Enter){y.preventDefault(),y.stopPropagation(),_.setSelectedIndex(e);return}switch(y.key){case w.Home:case w.PageUp:return y.preventDefault(),y.stopPropagation(),H(V,N.First);case w.End:case w.PageDown:return y.preventDefault(),y.stopPropagation(),H(V,N.Last)}return Ue(_.orientation,{vertical(){if(y.key===w.ArrowUp)return H(V,N.Previous|N.WrapAround);if(y.key===w.ArrowDown)return H(V,N.Next|N.WrapAround)},horizontal(){if(y.key===w.ArrowLeft)return H(V,N.Previous|N.WrapAround);if(y.key===w.ArrowRight)return H(V,N.Next|N.WrapAround)}})}function se(){g?.focus()}function L(){D||(g?.focus(),_.setSelectedIndex(e))}function W(P){g=P,n(2,g)}return r.$$set=P=>{n(21,t=E(E({},t),Q(P))),n(12,u=B(t,f)),"as"in P&&n(0,b=P.as),"use"in P&&n(1,m=P.use),"disabled"in P&&n(13,D=P.disabled),"$$scope"in P&&n(19,A=P.$$scope)},r.$$.update=()=>{r.$$.dirty&20&&n(15,e=g?_.tabs.indexOf(g):-1),r.$$.dirty&32784&&n(14,s=e===_.selectedIndex),r.$$.dirty&32784&&p(n(6,l=_.panels[e]?.ref)),n(3,o={id:i,role:"tab",type:He({type:t.type,as:b},g),"aria-controls":$?_.panels[e]?.id:void 0,"aria-selected":s,tabIndex:s?0:-1,disabled:D?!0:void 0}),r.$$.dirty&32776,r.$$.dirty&16384&&n(5,a={selected:s})},t=Q(t),[b,m,g,o,_,a,l,O,j,F,se,L,u,D,s,e,$,C,W,A]}class ve extends x{constructor(t){super(),ee(this,t,nt,lt,te,{as:0,use:1,disabled:13})}}const rt=r=>r&4,at=r=>({}),Ee=r=>({...r[2]});function ot(r){let t;const n=r[10].default,e=oe(n,r,r[12],Ee);return{c(){e&&e.c()},l(s){e&&e.l(s)},m(s,l){e&&e.m(s,l),t=!0},p(s,l){e&&e.p&&(!t||l&4100)&&fe(e,n,s,s[12],rt(l)||!t?ue(s[12]):ie(n,s[12],l,at),Ee)},i(s){t||(c(e,s),t=!0)},o(s){d(e,s),t=!1},d(s){e&&e.d(s)}}}function ft(r){let t,n,e;const s=[{...r[8],...r[3]},{as:r[0]},{slotProps:r[2]},{use:[...r[1],r[5]]},{name:"TabList"}];function l(a){r[11](a)}let o={$$slots:{default:[ot]},$$scope:{ctx:r}};for(let a=0;a<s.length;a+=1)o=E(o,s[a]);return r[4]!==void 0&&(o.el=r[4]),t=new ce({props:o}),he.push(()=>$e(t,"el",l)),{c(){k(t.$$.fragment)},l(a){T(t.$$.fragment,a)},m(a,f){v(t,a,f),e=!0},p(a,[f]){const u=f&303?re(s,[f&264&&{...a[8],...a[3]},f&1&&{as:a[0]},f&4&&{slotProps:a[2]},f&34&&{use:[...a[1],a[5]]},s[4]]):{};f&4100&&(u.$$scope={dirty:f,ctx:a}),!n&&f&16&&(n=!0,u.el=a[4],Pe(()=>n=!1)),t.$set(u)},i(a){e||(c(t.$$.fragment,a),e=!0)},o(a){d(t.$$.fragment,a),e=!1},d(a){I(t,a)}}}function ut(r,t,n){let e,s;const l=["as","use"];let o=B(t,l),a,f,{$$slots:u={},$$scope:_}=t,{as:$="div"}=t,{use:S=[]}=t;const p=me(ae());let C=ge("TabList");z(r,C,m=>n(9,a=m));let A=a.listRef;z(r,A,m=>n(4,f=m));function b(m){f=m,A.set(f)}return r.$$set=m=>{t=E(E({},t),Q(m)),n(8,o=B(t,l)),"as"in m&&n(0,$=m.as),"use"in m&&n(1,S=m.use),"$$scope"in m&&n(12,_=m.$$scope)},r.$$.update=()=>{r.$$.dirty&512&&n(3,e={role:"tablist","aria-orientation":a.orientation}),r.$$.dirty&512&&n(2,s={selectedIndex:a.selectedIndex})},[$,S,s,e,f,p,C,A,o,a,u,b,_]}class it extends x{constructor(t){super(),ee(this,t,ut,ft,te,{as:0,use:1})}}const ct=r=>r&4,mt=r=>({}),Re=r=>({...r[2]});function dt(r){let t;const n=r[7].default,e=oe(n,r,r[8],Re);return{c(){e&&e.c()},l(s){e&&e.l(s)},m(s,l){e&&e.m(s,l),t=!0},p(s,l){e&&e.p&&(!t||l&260)&&fe(e,n,s,s[8],ct(l)||!t?ue(s[8]):ie(n,s[8],l,mt),Re)},i(s){t||(c(e,s),t=!0)},o(s){d(e,s),t=!1},d(s){e&&e.d(s)}}}function _t(r){let t,n;const e=[r[5],{as:r[0]},{slotProps:r[2]},{use:[...r[1],r[3]]},{name:"TabPanels"}];let s={$$slots:{default:[dt]},$$scope:{ctx:r}};for(let l=0;l<e.length;l+=1)s=E(s,e[l]);return t=new ce({props:s}),{c(){k(t.$$.fragment)},l(l){T(t.$$.fragment,l)},m(l,o){v(t,l,o),n=!0},p(l,[o]){const a=o&47?re(e,[o&32&&Fe(l[5]),o&1&&{as:l[0]},o&4&&{slotProps:l[2]},o&10&&{use:[...l[1],l[3]]},e[4]]):{};o&260&&(a.$$scope={dirty:o,ctx:l}),t.$set(a)},i(l){n||(c(t.$$.fragment,l),n=!0)},o(l){d(t.$$.fragment,l),n=!1},d(l){I(t,l)}}}function gt(r,t,n){let e;const s=["as","use"];let l=B(t,s),o,{$$slots:a={},$$scope:f}=t,{as:u="div"}=t,{use:_=[]}=t;const $=me(ae());let S=ge("TabPanels");return z(r,S,p=>n(6,o=p)),r.$$set=p=>{t=E(E({},t),Q(p)),n(5,l=B(t,s)),"as"in p&&n(0,u=p.as),"use"in p&&n(1,_=p.use),"$$scope"in p&&n(8,f=p.$$scope)},r.$$.update=()=>{r.$$.dirty&64&&n(2,e={selectedIndex:o.selectedIndex})},[u,_,e,$,S,l,o,a,f]}class pt extends x{constructor(t){super(),ee(this,t,gt,_t,te,{as:0,use:1})}}const bt=r=>r&16,ht=r=>({}),ye=r=>({...r[4]});function $t(r){let t;const n=r[13].default,e=oe(n,r,r[15],ye);return{c(){e&&e.c()},l(s){e&&e.l(s)},m(s,l){e&&e.m(s,l),t=!0},p(s,l){e&&e.p&&(!t||l&32784)&&fe(e,n,s,s[15],bt(l)||!t?ue(s[15]):ie(n,s[15],l,ht),ye)},i(s){t||(c(e,s),t=!0)},o(s){d(e,s),t=!1},d(s){e&&e.d(s)}}}function Pt(r){let t,n,e;const s=[{...r[9],...r[3]},{as:r[0]},{use:[...r[1],r[6]]},{name:"TabPanel"},{slotProps:r[4]},{visible:r[2]},{features:de.RenderStrategy|de.Static}];function l(a){r[14](a)}let o={$$slots:{default:[$t]},$$scope:{ctx:r}};for(let a=0;a<s.length;a+=1)o=E(o,s[a]);return r[5]!==void 0&&(o.el=r[5]),t=new ce({props:o}),he.push(()=>$e(t,"el",l)),{c(){k(t.$$.fragment)},l(a){T(t.$$.fragment,a)},m(a,f){v(t,a,f),e=!0},p(a,[f]){const u=f&607?re(s,[f&520&&{...a[9],...a[3]},f&1&&{as:a[0]},f&66&&{use:[...a[1],a[6]]},s[3],f&16&&{slotProps:a[4]},f&4&&{visible:a[2]},f&0&&{features:de.RenderStrategy|de.Static}]):{};f&32784&&(u.$$scope={dirty:f,ctx:a}),!n&&f&32&&(n=!0,u.el=a[5],Pe(()=>n=!1)),t.$set(u)},i(a){e||(c(t.$$.fragment,a),e=!0)},o(a){d(t.$$.fragment,a),e=!1},d(a){I(t,a)}}}function kt(r,t,n){let e,s,l,o,a;const f=["as","use"];let u=B(t,f),_,$,{$$slots:S={},$$scope:p}=t,{as:C="div"}=t,{use:A=[]}=t;const b=me(ae());let m=pe(null);z(r,m,i=>n(5,$=i));let D=ge("TabPanel");z(r,D,i=>n(12,_=i));let O=`headlessui-tabs-panel-${Le()}`;be(()=>(_.registerPanel(e),()=>_.unregisterPanel(e)));function j(i){$=i,m.set($)}return r.$$set=i=>{t=E(E({},t),Q(i)),n(9,u=B(t,f)),"as"in i&&n(0,C=i.as),"use"in i&&n(1,A=i.use),"$$scope"in i&&n(15,p=i.$$scope)},r.$$.update=()=>{r.$$.dirty&6144&&n(10,s=_.panels.indexOf(e)),r.$$.dirty&5120&&n(2,l=s===_.selectedIndex),r.$$.dirty&5124&&n(3,o={id:O,role:"tabpanel","aria-labelledby":_.tabs[s]?.id,tabIndex:l?0:-1}),r.$$.dirty&1032,r.$$.dirty&4&&n(4,a={selected:l})},n(11,e={id:O,ref:m}),[C,A,l,o,a,$,b,m,D,u,s,e,_,S,j,p]}class Ie extends x{constructor(t){super(),ee(this,t,kt,Pt,te,{as:0,use:1})}}function Ae(r){let t,n;return t=new xe({props:{$$slots:{default:[Nt]},$$scope:{ctx:r}}}),{c(){k(t.$$.fragment)},l(e){T(t.$$.fragment,e)},m(e,s){v(t,e,s),n=!0},p(e,s){const l={};s&135&&(l.$$scope={dirty:s,ctx:e}),t.$set(l)},i(e){n||(c(t.$$.fragment,e),n=!0)},o(e){d(t.$$.fragment,e),n=!1},d(e){I(t,e)}}}function we(r){let t,n;return t=new ve({props:{class:"flex flex-grow justify-center bg-gray-50 bg-opacity-50 text-gray-800 border-transparent hover:border-emerald-600 hover:bg-emerald-600 hover:text-gray-200 whitespace-nowrap py-2 border-b-2 text-sm",$$slots:{default:[Tt]},$$scope:{ctx:r}}}),{c(){k(t.$$.fragment)},l(e){T(t.$$.fragment,e)},m(e,s){v(t,e,s),n=!0},p(e,s){const l={};s&129&&(l.$$scope={dirty:s,ctx:e}),t.$set(l)},i(e){n||(c(t.$$.fragment,e),n=!0)},o(e){d(t.$$.fragment,e),n=!1},d(e){I(t,e)}}}function Tt(r){let t,n,e=r[0].bibles.length+"",s;return{c(){t=Y(`Bibles
`),n=G("span"),s=Y(e),this.h()},l(l){t=Z(l,`Bibles
`),n=K(l,"SPAN",{class:!0});var o=M(n);s=Z(o,e),o.forEach(h),this.h()},h(){q(n,"class","bg-gray-100 text-gray-900 hidden ml-3 py-0.5 px-2.5 rounded-full text-xs md:inline-block")},m(l,o){R(l,t,o),R(l,n,o),X(n,s)},p(l,o){o&1&&e!==(e=l[0].bibles.length+"")&&ke(s,e)},d(l){l&&h(t),l&&h(n)}}}function Ne(r){let t,n;return t=new ve({props:{class:"flex flex-grow justify-center bg-gray-50 bg-opacity-50 text-gray-800 border-transparent hover:border-emerald-600 hover:bg-emerald-600 hover:text-gray-200 whitespace-nowrap py-2 border-b-2 text-sm",$$slots:{default:[vt]},$$scope:{ctx:r}}}),{c(){k(t.$$.fragment)},l(e){T(t.$$.fragment,e)},m(e,s){v(t,e,s),n=!0},p(e,s){const l={};s&129&&(l.$$scope={dirty:s,ctx:e}),t.$set(l)},i(e){n||(c(t.$$.fragment,e),n=!0)},o(e){d(t.$$.fragment,e),n=!1},d(e){I(t,e)}}}function vt(r){let t,n,e=r[0].films.length+"",s;return{c(){t=Y(`Films
`),n=G("span"),s=Y(e),this.h()},l(l){t=Z(l,`Films
`),n=K(l,"SPAN",{class:!0});var o=M(n);s=Z(o,e),o.forEach(h),this.h()},h(){q(n,"class","bg-gray-100 text-gray-900 hidden ml-3 py-0.5 px-2.5 rounded-full text-xs md:inline-block")},m(l,o){R(l,t,o),R(l,n,o),X(n,s)},p(l,o){o&1&&e!==(e=l[0].films.length+"")&&ke(s,e)},d(l){l&&h(t),l&&h(n)}}}function Be(r){let t,n;return t=new ve({props:{class:"flex flex-grow justify-center bg-gray-50 bg-opacity-50 text-gray-800 border-transparent hover:border-emerald-600 hover:bg-emerald-600 hover:text-gray-200 whitespace-nowrap py-2 border-b-2 text-sm",$$slots:{default:[It]},$$scope:{ctx:r}}}),{c(){k(t.$$.fragment)},l(e){T(t.$$.fragment,e)},m(e,s){v(t,e,s),n=!0},p(e,s){const l={};s&129&&(l.$$scope={dirty:s,ctx:e}),t.$set(l)},i(e){n||(c(t.$$.fragment,e),n=!0)},o(e){d(t.$$.fragment,e),n=!1},d(e){I(t,e)}}}function It(r){let t,n,e=r[0].resources.length+"",s;return{c(){t=Y(`Resources
`),n=G("span"),s=Y(e),this.h()},l(l){t=Z(l,`Resources
`),n=K(l,"SPAN",{class:!0});var o=M(n);s=Z(o,e),o.forEach(h),this.h()},h(){q(n,"class","inline-flex items-center rounded-full bg-gray-100 px-2.5 py-0.5 text-sm font-medium text-gray-800")},m(l,o){R(l,t,o),R(l,n,o),X(n,s)},p(l,o){o&1&&e!==(e=l[0].resources.length+"")&&ke(s,e)},d(l){l&&h(t),l&&h(n)}}}function St(r){let t,n,e,s,l=r[0].bibles.length!=0&&we(r),o=r[0].films.length!=0&&Ne(r),a=r[0].resources.length!=0&&Be(r);return{c(){t=G("div"),l&&l.c(),n=le(),o&&o.c(),e=le(),a&&a.c(),this.h()},l(f){t=K(f,"DIV",{class:!0});var u=M(t);l&&l.l(u),n=ne(u),o&&o.l(u),e=ne(u),a&&a.l(u),u.forEach(h),this.h()},h(){q(t,"class","relative z-10 flex flex-row justify-center divide-x divide-gray-200 rounded-tl-lg rounded-tr-lg w-1/2 lg:w-1/3 mx-auto")},m(f,u){R(f,t,u),l&&l.m(t,null),X(t,n),o&&o.m(t,null),X(t,e),a&&a.m(t,null),s=!0},p(f,u){f[0].bibles.length!=0?l?(l.p(f,u),u&1&&c(l,1)):(l=we(f),l.c(),c(l,1),l.m(t,n)):l&&(J(),d(l,1,1,()=>{l=null}),U()),f[0].films.length!=0?o?(o.p(f,u),u&1&&c(o,1)):(o=Ne(f),o.c(),c(o,1),o.m(t,e)):o&&(J(),d(o,1,1,()=>{o=null}),U()),f[0].resources.length!=0?a?(a.p(f,u),u&1&&c(a,1)):(a=Be(f),a.c(),c(a,1),a.m(t,null)):a&&(J(),d(a,1,1,()=>{a=null}),U())},i(f){s||(c(l),c(o),c(a),s=!0)},o(f){d(l),d(o),d(a),s=!1},d(f){f&&h(t),l&&l.d(),o&&o.d(),a&&a.d()}}}function Dt(r){let t,n,e;return n=new it({props:{$$slots:{default:[St]},$$scope:{ctx:r}}}),{c(){t=G("span"),k(n.$$.fragment),this.h()},l(s){t=K(s,"SPAN",{slot:!0});var l=M(t);T(n.$$.fragment,l),l.forEach(h),this.h()},h(){q(t,"slot","tabs")},m(s,l){R(s,t,l),v(n,t,null),e=!0},p(s,l){const o={};l&129&&(o.$$scope={dirty:l,ctx:s}),n.$set(o)},i(s){e||(c(n.$$.fragment,s),e=!0)},o(s){d(n.$$.fragment,s),e=!1},d(s){s&&h(t),I(n)}}}function Et(r){let t,n;return t=new Ie({props:{$$slots:{default:[Rt]},$$scope:{ctx:r}}}),{c(){k(t.$$.fragment)},l(e){T(t.$$.fragment,e)},m(e,s){v(t,e,s),n=!0},p(e,s){const l={};s&130&&(l.$$scope={dirty:s,ctx:e}),t.$set(l)},i(e){n||(c(t.$$.fragment,e),n=!0)},o(e){d(t.$$.fragment,e),n=!1},d(e){I(t,e)}}}function Rt(r){let t,n;return t=new Te({props:{inputData:r[3],locale:r[1],tableType:"language_bibles"}}),{c(){k(t.$$.fragment)},l(e){T(t.$$.fragment,e)},m(e,s){v(t,e,s),n=!0},p(e,s){const l={};s&2&&(l.locale=e[1]),t.$set(l)},i(e){n||(c(t.$$.fragment,e),n=!0)},o(e){d(t.$$.fragment,e),n=!1},d(e){I(t,e)}}}function Ce(r){let t,n;return t=new Ie({props:{$$slots:{default:[yt]},$$scope:{ctx:r}}}),{c(){k(t.$$.fragment)},l(e){T(t.$$.fragment,e)},m(e,s){v(t,e,s),n=!0},p(e,s){const l={};s&131&&(l.$$scope={dirty:s,ctx:e}),t.$set(l)},i(e){n||(c(t.$$.fragment,e),n=!0)},o(e){d(t.$$.fragment,e),n=!1},d(e){I(t,e)}}}function yt(r){let t,n;return t=new Te({props:{inputData:r[0].films,locale:r[1],tableType:"films"}}),{c(){k(t.$$.fragment)},l(e){T(t.$$.fragment,e)},m(e,s){v(t,e,s),n=!0},p(e,s){const l={};s&1&&(l.inputData=e[0].films),s&2&&(l.locale=e[1]),t.$set(l)},i(e){n||(c(t.$$.fragment,e),n=!0)},o(e){d(t.$$.fragment,e),n=!1},d(e){I(t,e)}}}function Oe(r){let t,n;return t=new Ie({props:{$$slots:{default:[At]},$$scope:{ctx:r}}}),{c(){k(t.$$.fragment)},l(e){T(t.$$.fragment,e)},m(e,s){v(t,e,s),n=!0},p(e,s){const l={};s&131&&(l.$$scope={dirty:s,ctx:e}),t.$set(l)},i(e){n||(c(t.$$.fragment,e),n=!0)},o(e){d(t.$$.fragment,e),n=!1},d(e){I(t,e)}}}function At(r){let t,n;return t=new Te({props:{inputData:r[0].resources,locale:r[1],tableType:"resources"}}),{c(){k(t.$$.fragment)},l(e){T(t.$$.fragment,e)},m(e,s){v(t,e,s),n=!0},p(e,s){const l={};s&1&&(l.inputData=e[0].resources),s&2&&(l.locale=e[1]),t.$set(l)},i(e){n||(c(t.$$.fragment,e),n=!0)},o(e){d(t.$$.fragment,e),n=!1},d(e){I(t,e)}}}function wt(r){let t,n,e,s,l=r[3].length!=0&&Et(r),o=r[0].films.length!=0&&Ce(r),a=r[0].resources.length!=0&&Oe(r);return{c(){l&&l.c(),t=le(),o&&o.c(),n=le(),a&&a.c(),e=_e()},l(f){l&&l.l(f),t=ne(f),o&&o.l(f),n=ne(f),a&&a.l(f),e=_e()},m(f,u){l&&l.m(f,u),R(f,t,u),o&&o.m(f,u),R(f,n,u),a&&a.m(f,u),R(f,e,u),s=!0},p(f,u){f[3].length!=0&&l.p(f,u),f[0].films.length!=0?o?(o.p(f,u),u&1&&c(o,1)):(o=Ce(f),o.c(),c(o,1),o.m(n.parentNode,n)):o&&(J(),d(o,1,1,()=>{o=null}),U()),f[0].resources.length!=0?a?(a.p(f,u),u&1&&c(a,1)):(a=Oe(f),a.c(),c(a,1),a.m(e.parentNode,e)):a&&(J(),d(a,1,1,()=>{a=null}),U())},i(f){s||(c(l),c(o),c(a),s=!0)},o(f){d(l),d(o),d(a),s=!1},d(f){l&&l.d(f),f&&h(t),o&&o.d(f),f&&h(n),a&&a.d(f),f&&h(e)}}}function Nt(r){let t,n,e,s,l,o;return t=new Ve({props:{translations:r[2],$$slots:{tabs:[Dt]},$$scope:{ctx:r}}}),l=new pt({props:{$$slots:{default:[wt]},$$scope:{ctx:r}}}),{c(){k(t.$$.fragment),n=le(),e=G("div"),s=G("div"),k(l.$$.fragment),this.h()},l(a){T(t.$$.fragment,a),n=ne(a),e=K(a,"DIV",{class:!0});var f=M(e);s=K(f,"DIV",{class:!0});var u=M(s);T(l.$$.fragment,u),u.forEach(h),f.forEach(h),this.h()},h(){q(s,"class","flex-grow"),q(e,"class","flex")},m(a,f){v(t,a,f),R(a,n,f),R(a,e,f),X(e,s),v(l,s,null),o=!0},p(a,f){const u={};f&4&&(u.translations=a[2]),f&129&&(u.$$scope={dirty:f,ctx:a}),t.$set(u);const _={};f&131&&(_.$$scope={dirty:f,ctx:a}),l.$set(_)},i(a){o||(c(t.$$.fragment,a),c(l.$$.fragment,a),o=!0)},o(a){d(t.$$.fragment,a),d(l.$$.fragment,a),o=!1},d(a){I(t,a),a&&h(n),a&&h(e),I(l)}}}function Bt(r){let t,n,e=r[0]&&Ae(r);return{c(){e&&e.c(),t=_e()},l(s){e&&e.l(s),t=_e()},m(s,l){e&&e.m(s,l),R(s,t,l),n=!0},p(s,[l]){s[0]?e?(e.p(s,l),l&1&&c(e,1)):(e=Ae(s),e.c(),c(e,1),e.m(t.parentNode,t)):e&&(J(),d(e,1,1,()=>{e=null}),U())},i(s){n||(c(e),n=!0)},o(s){d(e),n=!1},d(s){e&&e.d(s),s&&h(t)}}}function Ct(r,t,n){let{language:e}=t,{locale:s}=t,{translations:l={title:e.name??"",subtitle:e.autonym??"",breadcrumbs:[]}}=t;e.location,e.glotto_id,e.iso,e.level,e.macroarea,Number(e.population).toLocaleString(),e.status_id;const o=e.bibles.map(a=>({lc:s,id:a.id,tt:a.title,tv:a.title_vernacular,dt:a.date,ci:a.country_id,cn:a.country?.name??""}));return r.$$set=a=>{"language"in a&&n(0,e=a.language),"locale"in a&&n(1,s=a.locale),"translations"in a&&n(2,l=a.translations)},[e,s,l,o]}class zt extends x{constructor(t){super(),ee(this,t,Ct,Bt,te,{language:0,locale:1,translations:2})}}export{zt as default};